tg_web_dist/js/index.BKWCPqQT.js
2025-07-01 14:42:09 +08:00

2 lines
788 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

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

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

import{d as e,c as t,e as n,r,X as o,o as i,D as a,b_ as u,a8 as s,b$ as l,c0 as c,aD as f,O as d,g as p,a_ as h,b1 as g}from"./index.Dp_uSW6y.js";var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){var t={exports:{}};return e(t,t.exports),t.exports}var m,b,w=function(e){return e&&e.Math==Math&&e},E=w("object"==typeof globalThis&&globalThis)||w("object"==typeof window&&window)||w("object"==typeof self&&self)||w("object"==typeof v&&v)||function(){return this}()||Function("return this")(),D=Function.prototype,x=D.apply,C=D.bind,S=D.call,A="object"==typeof Reflect&&Reflect.apply||(C?S.bind(x):function(){return S.apply(x,arguments)}),O=Function.prototype,k=O.bind,B=O.call,F=k&&k.bind(B),T=k?function(e){return e&&F(B,e)}:function(e){return e&&function(){return B.apply(e,arguments)}},_=function(e){return"function"==typeof e},P=function(e){try{return!!e()}catch(t){return!0}},j=!P((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),N=Function.prototype.call,I=N.bind?N.bind(N):function(){return N.apply(N,arguments)},L={}.propertyIsEnumerable,R=Object.getOwnPropertyDescriptor,M=R&&!L.call({1:2},1)?function(e){var t=R(this,e);return!!t&&t.enumerable}:L,z={f:M},$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},H=T({}.toString),V=T("".slice),U=function(e){return V(H(e),8,-1)},W=E.Object,G=T("".split),q=P((function(){return!W("z").propertyIsEnumerable(0)}))?function(e){return"String"==U(e)?G(e,""):W(e)}:W,K=E.TypeError,Y=function(e){if(null==e)throw K("Can't call method on "+e);return e},X=function(e){return q(Y(e))},Z=function(e){return"object"==typeof e?null!==e:_(e)},J={},Q=function(e){return _(e)?e:void 0},ee=function(e,t){return arguments.length<2?Q(J[e])||Q(E[e]):J[e]&&J[e][t]||E[e]&&E[e][t]},te=T({}.isPrototypeOf),ne=ee("navigator","userAgent")||"",re=E.process,oe=E.Deno,ie=re&&re.versions||oe&&oe.version,ae=ie&&ie.v8;ae&&(b=(m=ae.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!b&&ne&&(!(m=ne.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=ne.match(/Chrome\/(\d+)/))&&(b=+m[1]);var ue,se,le=b,ce=!!Object.getOwnPropertySymbols&&!P((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&le&&le<41})),fe=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,de=E.Object,pe=fe?function(e){return"symbol"==typeof e}:function(e){var t=ee("Symbol");return _(t)&&te(t.prototype,de(e))},he=E.String,ge=function(e){try{return he(e)}catch(t){return"Object"}},ve=E.TypeError,ye=function(e){if(_(e))return e;throw ve(ge(e)+" is not a function")},me=function(e,t){var n=e[t];return null==n?void 0:ye(n)},be=E.TypeError,we=Object.defineProperty,Ee=E["__core-js_shared__"]||function(e,t){try{we(E,e,{value:t,configurable:!0,writable:!0})}catch(J_){E[e]=t}return t}("__core-js_shared__",{}),De=y((function(e){(e.exports=function(e,t){return Ee[e]||(Ee[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),xe=E.Object,Ce=function(e){return xe(Y(e))},Se=T({}.hasOwnProperty),Ae=Object.hasOwn||function(e,t){return Se(Ce(e),t)},Oe=0,ke=Math.random(),Be=T(1..toString),Fe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Be(++Oe+ke,36)},Te=De("wks"),_e=E.Symbol,Pe=_e&&_e.for,je=fe?_e:_e&&_e.withoutSetter||Fe,Ne=function(e){if(!Ae(Te,e)||!ce&&"string"!=typeof Te[e]){var t="Symbol."+e;ce&&Ae(_e,e)?Te[e]=_e[e]:Te[e]=fe&&Pe?Pe(t):je(t)}return Te[e]},Ie=E.TypeError,Le=Ne("toPrimitive"),Re=function(e){var t=function(e,t){if(!Z(e)||pe(e))return e;var n,r=me(e,Le);if(r){if(n=I(r,e,t),!Z(n)||pe(n))return n;throw Ie("Can't convert object to primitive value")}return function(e){var t,n;if(_(t=e.toString)&&!Z(n=I(t,e)))return n;if(_(t=e.valueOf)&&!Z(n=I(t,e)))return n;throw be("Can't convert object to primitive value")}(e)}(e,"string");return pe(t)?t:t+""},Me=E.document,ze=Z(Me)&&Z(Me.createElement),$e=function(e){return ze?Me.createElement(e):{}},He=!j&&!P((function(){return 7!=Object.defineProperty($e("div"),"a",{get:function(){return 7}}).a})),Ve=Object.getOwnPropertyDescriptor,Ue=j?Ve:function(e,t){if(e=X(e),t=Re(t),He)try{return Ve(e,t)}catch(n){}if(Ae(e,t))return $(!I(z.f,e,t),e[t])},We={f:Ue},Ge=/#|\.prototype\./,qe=function(e,t){var n=Ye[Ke(e)];return n==Ze||n!=Xe&&(_(t)?P(t):!!t)},Ke=qe.normalize=function(e){return String(e).replace(Ge,".").toLowerCase()},Ye=qe.data={},Xe=qe.NATIVE="N",Ze=qe.POLYFILL="P",Je=qe,Qe=T(T.bind),et=function(e,t){return ye(e),void 0===t?e:Qe?Qe(e,t):function(){return e.apply(t,arguments)}},tt=E.String,nt=E.TypeError,rt=function(e){if(Z(e))return e;throw nt(tt(e)+" is not an object")},ot=E.TypeError,it=Object.defineProperty,at=j?it:function(e,t,n){if(rt(e),t=Re(t),rt(n),He)try{return it(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ot("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ut={f:at},st=j?function(e,t,n){return ut.f(e,t,$(1,n))}:function(e,t,n){return e[t]=n,e},lt=We.f,ct=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return A(e,this,arguments)};return t.prototype=e.prototype,t},ft=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?E:d?E[c]:(E[c]||{}).prototype,g=f?J:J[c]||st(J,c,{})[c],v=g.prototype;for(o in t)n=!Je(f?o:c+(d?".":"#")+o,e.forced)&&h&&Ae(h,o),a=g[o],n&&(u=e.noTargetGet?(l=lt(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?et(i,E):e.wrap&&n?ct(i):p&&_(i)?T(i):i,(e.sham||i&&i.sham||a&&a.sham)&&st(s,"sham",!0),st(g,o,s),p&&(Ae(J,r=c+"Prototype")||st(J,r,{}),st(J[r],o,i),e.real&&v&&!v[o]&&st(v,o,i)))},dt=De("keys"),pt=function(e){return dt[e]||(dt[e]=Fe(e))},ht=!P((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gt=pt("IE_PROTO"),vt=E.Object,yt=vt.prototype,mt=ht?vt.getPrototypeOf:function(e){var t=Ce(e);if(Ae(t,gt))return t[gt];var n=t.constructor;return _(n)&&t instanceof n?n.prototype:t instanceof vt?yt:null},bt=E.String,wt=E.TypeError,Et=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=T(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return rt(n),function(e){if("object"==typeof e||_(e))return e;throw wt("Can't set "+bt(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Dt=Math.ceil,xt=Math.floor,Ct=function(e){var t=+e;return t!=t||0===t?0:(t>0?xt:Dt)(t)},St=Math.max,At=Math.min,Ot=function(e,t){var n=Ct(e);return n<0?St(n+t,0):At(n,t)},kt=Math.min,Bt=function(e){return(t=e.length)>0?kt(Ct(t),9007199254740991):0;var t},Ft={indexOf:(se=!1,function(e,t,n){var r,o=X(e),i=Bt(o),a=Ot(n,i);if(se&&t!=t){for(;i>a;)if((r=o[a++])!=r)return!0}else for(;i>a;a++)if((se||a in o)&&o[a]===t)return se||a||0;return!se&&-1})},Tt={},_t=Ft.indexOf,Pt=T([].push),jt=function(e,t){var n,r=X(e),o=0,i=[];for(n in r)!Ae(Tt,n)&&Ae(r,n)&&Pt(i,n);for(;t.length>o;)Ae(r,n=t[o++])&&(~_t(i,n)||Pt(i,n));return i},Nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],It=Nt.concat("length","prototype"),Lt=Object.getOwnPropertyNames||function(e){return jt(e,It)},Rt={f:Lt},Mt={f:Object.getOwnPropertySymbols},zt=T([].concat),$t=ee("Reflect","ownKeys")||function(e){var t=Rt.f(rt(e)),n=Mt.f;return n?zt(t,n(e)):t},Ht=Object.keys||function(e){return jt(e,Nt)},Vt=j?Object.defineProperties:function(e,t){rt(e);for(var n,r=X(t),o=Ht(t),i=o.length,a=0;i>a;)ut.f(e,n=o[a++],r[n]);return e},Ut=ee("document","documentElement"),Wt=pt("IE_PROTO"),Gt=function(){},qt=function(e){return"<script>"+e+"<\/script>"},Kt=function(e){e.write(qt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yt=function(){try{ue=new ActiveXObject("htmlfile")}catch(r){}var e,t;Yt="undefined"!=typeof document?document.domain&&ue?Kt(ue):((t=$e("iframe")).style.display="none",Ut.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qt("document.F=Object")),e.close(),e.F):Kt(ue);for(var n=Nt.length;n--;)delete Yt.prototype[Nt[n]];return Yt()};Tt[Wt]=!0;var Xt=Object.create||function(e,t){var n;return null!==e?(Gt.prototype=rt(e),n=new Gt,Gt.prototype=null,n[Wt]=e):n=Yt(),void 0===t?n:Vt(n,t)},Zt=function(e,t,n){var r=Re(t);r in e?ut.f(e,r,$(0,n)):e[r]=n},Jt=E.Array,Qt=Math.max,en=function(e,t,n){for(var r=Bt(e),o=Ot(t,r),i=Ot(r,r),a=Jt(Qt(i-o,0)),u=0;o<i;o++,u++)Zt(a,u,e[o]);return a.length=u,a},tn=T("".replace),nn=T("".split),rn=T([].join),on=String(Error("zxcasd").stack),an=/\n\s*at [^:]*:[^\n]*/,un=an.test(on),sn=/@[^\n]*\n/.test(on)&&!/zxcasd/.test(on),ln={},cn=Ne("iterator"),fn=Array.prototype,dn={};dn[Ne("toStringTag")]="z";var pn="[object z]"===String(dn),hn=Ne("toStringTag"),gn=E.Object,vn="Arguments"==U(function(){return arguments}()),yn=pn?U:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=gn(e),hn))?n:vn?U(t):"Object"==(r=U(t))&&_(t.callee)?"Arguments":r},mn=Ne("iterator"),bn=function(e){if(null!=e)return me(e,mn)||me(e,"@@iterator")||ln[yn(e)]},wn=E.TypeError,En=function(e,t,n){var r,o;rt(e);try{if(!(r=me(e,"return"))){if("throw"===t)throw n;return n}r=I(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return rt(r),n},Dn=E.TypeError,xn=function(e,t){this.stopped=e,this.result=t},Cn=xn.prototype,Sn=E.String,An=function(e){if("Symbol"===yn(e))throw TypeError("Cannot convert a Symbol value to a string");return Sn(e)},On=!P((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",$(1,7)),7!==e.stack)})),kn=Ne("toStringTag"),Bn=E.Error,Fn=[].push,Tn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=te(_n,this);Et?n=Et(new Bn(void 0),o?mt(this):_n):(n=o?this:Xt(_n),st(n,kn,"Error")),st(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:An(e)}(t,"")),On&&st(n,"stack",function(e,t){if("string"!=typeof e)return e;if(un)for(;t--;)e=tn(e,an,"");else if(sn)return rn(en(nn(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){Z(t)&&"cause"in t&&st(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=et(t,f),v=function(e){return r&&En(r,"normal",e),new xn(!0,e)},y=function(e){return d?(rt(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=bn(e)))throw Dn(ge(e)+" is not iterable");if(void 0!==(c=o)&&(ln.Array===c||fn[cn]===c)){for(i=0,a=Bt(e);a>i;i++)if((u=y(e[i]))&&te(Cn,u))return u;return new xn(!1)}r=function(e,t){var n=arguments.length<2?bn(e):t;if(ye(n))return rt(I(n,e));throw wn(ge(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=I(s,r)).done;){try{u=y(l.value)}catch(c){En(r,"throw",c)}if("object"==typeof u&&u&&te(Cn,u))return u}new xn(!1)}(e,Fn,{that:i}),st(n,"errors",i),n};Et?Et(Tn,Bn):function(e,t){for(var n=$t(t),r=ut.f,o=We.f,i=0;i<n.length;i++){var a=n[i];Ae(e,a)||r(e,a,o(t,a))}}(Tn,Bn);var _n=Tn.prototype=Xt(Bn.prototype,{constructor:$(1,Tn),message:$(1,""),name:$(1,"AggregateError")});ft({global:!0},{AggregateError:Tn});var Pn=T(Function.toString);_(Ee.inspectSource)||(Ee.inspectSource=function(e){return Pn(e)});var jn,Nn,In,Ln=Ee.inspectSource,Rn=E.WeakMap,Mn=_(Rn)&&/native code/.test(Ln(Rn)),zn=E.TypeError,$n=E.WeakMap;if(Mn||Ee.state){var Hn=Ee.state||(Ee.state=new $n),Vn=T(Hn.get),Un=T(Hn.has),Wn=T(Hn.set);jn=function(e,t){if(Un(Hn,e))throw new zn("Object already initialized");return t.facade=e,Wn(Hn,e,t),t},Nn=function(e){return Vn(Hn,e)||{}},In=function(e){return Un(Hn,e)}}else{var Gn=pt("state");Tt[Gn]=!0,jn=function(e,t){if(Ae(e,Gn))throw new zn("Object already initialized");return t.facade=e,st(e,Gn,t),t},Nn=function(e){return Ae(e,Gn)?e[Gn]:{}},In=function(e){return Ae(e,Gn)}}var qn,Kn,Yn,Xn={set:jn,get:Nn,has:In,enforce:function(e){return In(e)?Nn(e):jn(e,{})},getterFor:function(e){return function(t){var n;if(!Z(t)||(n=Nn(t)).type!==e)throw zn("Incompatible receiver, "+e+" required");return n}}},Zn=Function.prototype,Jn=j&&Object.getOwnPropertyDescriptor,Qn=Ae(Zn,"name"),er={PROPER:Qn&&"something"===function(){}.name,CONFIGURABLE:Qn&&(!j||j&&Jn(Zn,"name").configurable)},tr=function(e,t,n,r){st(e,t,n)},nr=Ne("iterator"),rr=!1;[].keys&&("next"in(Yn=[].keys())?(Kn=mt(mt(Yn)))!==Object.prototype&&(qn=Kn):rr=!0);var or=null==qn||P((function(){var e={};return qn[nr].call(e)!==e}));qn=or?{}:Xt(qn),_(qn[nr])||tr(qn,nr,(function(){return this}));var ir={IteratorPrototype:qn,BUGGY_SAFARI_ITERATORS:rr},ar=pn?{}.toString:function(){return"[object "+yn(this)+"]"},ur=ut.f,sr=Ne("toStringTag"),lr=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ae(o,sr)||ur(o,sr,{configurable:!0,value:t}),r&&!pn&&st(o,"toString",ar)}},cr=ir.IteratorPrototype,fr=function(){return this},dr=er.PROPER,pr=ir.BUGGY_SAFARI_ITERATORS,hr=Ne("iterator"),gr=function(){return this},vr=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Xt(cr,{next:$(1,s)}),lr(u,l,!1,!0),ln[l]=fr;var c,f,d=function(e){if(e===o&&y)return y;if(!pr&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[hr]||g["@@iterator"]||o&&g[o],y=!pr&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=mt(m.call(new e)))!==Object.prototype&&c.next&&(lr(c,p,!0,!0),ln[p]=gr),dr&&"values"==o&&v&&"values"!==v.name&&(h=!0,y=function(){return I(v,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||ft({target:t,proto:!0,forced:pr||h},f)),ln[t]=y,f},yr=Xn.set,mr=Xn.getterFor("Array Iterator");vr(Array,"Array",(function(e,t){yr(this,{type:"Array Iterator",target:X(e),index:0,kind:t})}),(function(){var e=mr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),ln.Arguments=ln.Array;var br=T("".charAt),wr=T("".charCodeAt),Er=T("".slice),Dr=function(e){return function(t,n){var r,o,i=An(Y(t)),a=Ct(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=wr(i,a))<55296||r>56319||a+1===u||(o=wr(i,a+1))<56320||o>57343?e?br(i,a):r:e?Er(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),xr=Xn.set,Cr=Xn.getterFor("String Iterator");vr(String,"String",(function(e){xr(this,{type:"String Iterator",string:An(e),index:0})}),(function(){var e,t=Cr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Dr(n,r),t.index+=e.length,{value:e,done:!1})}));var Sr=J.AggregateError,Ar=Ne("toStringTag");for(var Or in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var kr=E[Or],Br=kr&&kr.prototype;Br&&yn(Br)!==Ar&&st(Br,Ar,Or),ln[Or]=ln.Array}var Fr,Tr,_r=Sr,Pr=function(e){return e&&e.Math==Math&&e},jr=Pr("object"==typeof globalThis&&globalThis)||Pr("object"==typeof window&&window)||Pr("object"==typeof self&&self)||Pr("object"==typeof v&&v)||function(){return this}()||Function("return this")(),Nr=function(e){try{return!!e()}catch(t){return!0}},Ir=!Nr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Lr=Function.prototype.call,Rr=Lr.bind?Lr.bind(Lr):function(){return Lr.apply(Lr,arguments)},Mr={}.propertyIsEnumerable,zr=Object.getOwnPropertyDescriptor,$r=zr&&!Mr.call({1:2},1)?function(e){var t=zr(this,e);return!!t&&t.enumerable}:Mr,Hr={f:$r},Vr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ur=Function.prototype,Wr=Ur.bind,Gr=Ur.call,qr=Wr&&Wr.bind(Gr),Kr=Wr?function(e){return e&&qr(Gr,e)}:function(e){return e&&function(){return Gr.apply(e,arguments)}},Yr=Kr({}.toString),Xr=Kr("".slice),Zr=function(e){return Xr(Yr(e),8,-1)},Jr=jr.Object,Qr=Kr("".split),eo=Nr((function(){return!Jr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Zr(e)?Qr(e,""):Jr(e)}:Jr,to=jr.TypeError,no=function(e){if(null==e)throw to("Can't call method on "+e);return e},ro=function(e){return eo(no(e))},oo=function(e){return"function"==typeof e},io=function(e){return"object"==typeof e?null!==e:oo(e)},ao=function(e,t){return arguments.length<2?function(e){return oo(e)?e:void 0}(jr[e]):jr[e]&&jr[e][t]},uo=Kr({}.isPrototypeOf),so=ao("navigator","userAgent")||"",lo=jr.process,co=jr.Deno,fo=lo&&lo.versions||co&&co.version,po=fo&&fo.v8;po&&(Tr=(Fr=po.split("."))[0]>0&&Fr[0]<4?1:+(Fr[0]+Fr[1])),!Tr&&so&&(!(Fr=so.match(/Edge\/(\d+)/))||Fr[1]>=74)&&(Fr=so.match(/Chrome\/(\d+)/))&&(Tr=+Fr[1]);var ho=Tr,go=!!Object.getOwnPropertySymbols&&!Nr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ho&&ho<41})),vo=go&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,yo=jr.Object,mo=vo?function(e){return"symbol"==typeof e}:function(e){var t=ao("Symbol");return oo(t)&&uo(t.prototype,yo(e))},bo=jr.String,wo=function(e){try{return bo(e)}catch(t){return"Object"}},Eo=jr.TypeError,Do=function(e){if(oo(e))return e;throw Eo(wo(e)+" is not a function")},xo=function(e,t){var n=e[t];return null==n?void 0:Do(n)},Co=jr.TypeError,So=Object.defineProperty,Ao=function(e,t){try{So(jr,e,{value:t,configurable:!0,writable:!0})}catch(J_){jr[e]=t}return t},Oo=jr["__core-js_shared__"]||Ao("__core-js_shared__",{}),ko=y((function(e){(e.exports=function(e,t){return Oo[e]||(Oo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Bo=jr.Object,Fo=function(e){return Bo(no(e))},To=Kr({}.hasOwnProperty),_o=Object.hasOwn||function(e,t){return To(Fo(e),t)},Po=0,jo=Math.random(),No=Kr(1..toString),Io=function(e){return"Symbol("+(void 0===e?"":e)+")_"+No(++Po+jo,36)},Lo=ko("wks"),Ro=jr.Symbol,Mo=Ro&&Ro.for,zo=vo?Ro:Ro&&Ro.withoutSetter||Io,$o=function(e){if(!_o(Lo,e)||!go&&"string"!=typeof Lo[e]){var t="Symbol."+e;go&&_o(Ro,e)?Lo[e]=Ro[e]:Lo[e]=vo&&Mo?Mo(t):zo(t)}return Lo[e]},Ho=jr.TypeError,Vo=$o("toPrimitive"),Uo=function(e){var t=function(e,t){if(!io(e)||mo(e))return e;var n,r=xo(e,Vo);if(r){if(n=Rr(r,e,t),!io(n)||mo(n))return n;throw Ho("Can't convert object to primitive value")}return function(e){var t,n;if(oo(t=e.toString)&&!io(n=Rr(t,e)))return n;if(oo(t=e.valueOf)&&!io(n=Rr(t,e)))return n;throw Co("Can't convert object to primitive value")}(e)}(e,"string");return mo(t)?t:t+""},Wo=jr.document,Go=io(Wo)&&io(Wo.createElement),qo=function(e){return Go?Wo.createElement(e):{}},Ko=!Ir&&!Nr((function(){return 7!=Object.defineProperty(qo("div"),"a",{get:function(){return 7}}).a})),Yo=Object.getOwnPropertyDescriptor,Xo=Ir?Yo:function(e,t){if(e=ro(e),t=Uo(t),Ko)try{return Yo(e,t)}catch(n){}if(_o(e,t))return Vr(!Rr(Hr.f,e,t),e[t])},Zo={f:Xo},Jo=jr.String,Qo=jr.TypeError,ei=function(e){if(io(e))return e;throw Qo(Jo(e)+" is not an object")},ti=jr.TypeError,ni=Object.defineProperty,ri=Ir?ni:function(e,t,n){if(ei(e),t=Uo(t),ei(n),Ko)try{return ni(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ti("Accessors not supported");return"value"in n&&(e[t]=n.value),e},oi={f:ri},ii=Ir?function(e,t,n){return oi.f(e,t,Vr(1,n))}:function(e,t,n){return e[t]=n,e},ai=Kr(Function.toString);oo(Oo.inspectSource)||(Oo.inspectSource=function(e){return ai(e)});var ui,si,li,ci=Oo.inspectSource,fi=jr.WeakMap,di=oo(fi)&&/native code/.test(ci(fi)),pi=ko("keys"),hi=function(e){return pi[e]||(pi[e]=Io(e))},gi={},vi=jr.TypeError,yi=jr.WeakMap;if(di||Oo.state){var mi=Oo.state||(Oo.state=new yi),bi=Kr(mi.get),wi=Kr(mi.has),Ei=Kr(mi.set);ui=function(e,t){if(wi(mi,e))throw new vi("Object already initialized");return t.facade=e,Ei(mi,e,t),t},si=function(e){return bi(mi,e)||{}},li=function(e){return wi(mi,e)}}else{var Di=hi("state");gi[Di]=!0,ui=function(e,t){if(_o(e,Di))throw new vi("Object already initialized");return t.facade=e,ii(e,Di,t),t},si=function(e){return _o(e,Di)?e[Di]:{}},li=function(e){return _o(e,Di)}}var xi={set:ui,get:si,has:li,enforce:function(e){return li(e)?si(e):ui(e,{})},getterFor:function(e){return function(t){var n;if(!io(t)||(n=si(t)).type!==e)throw vi("Incompatible receiver, "+e+" required");return n}}},Ci=Function.prototype,Si=Ir&&Object.getOwnPropertyDescriptor,Ai=_o(Ci,"name"),Oi={PROPER:Ai&&"something"===function(){}.name,CONFIGURABLE:Ai&&(!Ir||Ir&&Si(Ci,"name").configurable)},ki=y((function(e){var t=Oi.CONFIGURABLE,n=xi.get,r=xi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;oo(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_o(i,"name")||t&&i.name!==f)&&ii(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==jr?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ii(e,n,i)):l?e[n]=i:Ao(n,i)})(Function.prototype,"toString",(function(){return oo(this)&&n(this).source||ci(this)}))})),Bi=Math.ceil,Fi=Math.floor,Ti=function(e){var t=+e;return t!=t||0===t?0:(t>0?Fi:Bi)(t)},_i=Math.max,Pi=Math.min,ji=function(e,t){var n=Ti(e);return n<0?_i(n+t,0):Pi(n,t)},Ni=Math.min,Ii=function(e){return e>0?Ni(Ti(e),9007199254740991):0},Li=function(e){return Ii(e.length)},Ri=function(e){return function(t,n,r){var o,i=ro(t),a=Li(i),u=ji(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Mi=Kr([].push),zi=function(e,t){var n,r=ro(e),o=0,i=[];for(n in r)!_o(gi,n)&&_o(r,n)&&Mi(i,n);for(;t.length>o;)_o(r,n=t[o++])&&(~Ri(i,n)||Mi(i,n));return i},$i=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hi=$i.concat("length","prototype"),Vi=Object.getOwnPropertyNames||function(e){return zi(e,Hi)},Ui={f:Vi},Wi={f:Object.getOwnPropertySymbols},Gi=Kr([].concat),qi=ao("Reflect","ownKeys")||function(e){var t=Ui.f(ei(e)),n=Wi.f;return n?Gi(t,n(e)):t},Ki=function(e,t){for(var n=qi(t),r=oi.f,o=Zo.f,i=0;i<n.length;i++){var a=n[i];_o(e,a)||r(e,a,o(t,a))}},Yi=/#|\.prototype\./,Xi=function(e,t){var n=Ji[Zi(e)];return n==ea||n!=Qi&&(oo(t)?Nr(t):!!t)},Zi=Xi.normalize=function(e){return String(e).replace(Yi,".").toLowerCase()},Ji=Xi.data={},Qi=Xi.NATIVE="N",ea=Xi.POLYFILL="P",ta=Xi,na=Zo.f,ra=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?jr:l?jr[u]||Ao(u,{}):(jr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=na(n,r))&&a.value:n[r],!ta(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ki(i,o)}(e.sham||o&&o.sham)&&ii(i,"sham",!0),ki(n,r,i,e)}},oa={};oa[$o("toStringTag")]="z";var ia,aa="[object z]"===String(oa),ua=$o("toStringTag"),sa=jr.Object,la="Arguments"==Zr(function(){return arguments}()),ca=aa?Zr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=sa(e),ua))?n:la?Zr(t):"Object"==(r=Zr(t))&&oo(t.callee)?"Arguments":r},fa=jr.String,da=function(e){if("Symbol"===ca(e))throw TypeError("Cannot convert a Symbol value to a string");return fa(e)},pa=function(){var e=ei(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},ha=jr.RegExp,ga=Nr((function(){var e=ha("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));ga||Nr((function(){return!ha("a","y").sticky}));var va=ga||Nr((function(){var e=ha("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ya={BROKEN_CARET:va},ma=Object.keys||function(e){return zi(e,$i)},ba=Ir?Object.defineProperties:function(e,t){ei(e);for(var n,r=ro(t),o=ma(t),i=o.length,a=0;i>a;)oi.f(e,n=o[a++],r[n]);return e},wa=ao("document","documentElement"),Ea=hi("IE_PROTO"),Da=function(){},xa=function(e){return"<script>"+e+"<\/script>"},Ca=function(e){e.write(xa("")),e.close();var t=e.parentWindow.Object;return e=null,t},Sa=function(){try{ia=new ActiveXObject("htmlfile")}catch(r){}var e,t;Sa="undefined"!=typeof document?document.domain&&ia?Ca(ia):((t=qo("iframe")).style.display="none",wa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(xa("document.F=Object")),e.close(),e.F):Ca(ia);for(var n=$i.length;n--;)delete Sa.prototype[$i[n]];return Sa()};gi[Ea]=!0;var Aa,Oa,ka=Object.create||function(e,t){var n;return null!==e?(Da.prototype=ei(e),n=new Da,Da.prototype=null,n[Ea]=e):n=Sa(),void 0===t?n:ba(n,t)},Ba=jr.RegExp,Fa=Nr((function(){var e=Ba(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ta=jr.RegExp,_a=Nr((function(){var e=Ta("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Pa=xi.get,ja=ko("native-string-replace",String.prototype.replace),Na=RegExp.prototype.exec,Ia=Na,La=Kr("".charAt),Ra=Kr("".indexOf),Ma=Kr("".replace),za=Kr("".slice),$a=(Oa=/b*/g,Rr(Na,Aa=/a/,"a"),Rr(Na,Oa,"a"),0!==Aa.lastIndex||0!==Oa.lastIndex),Ha=ya.BROKEN_CARET,Va=void 0!==/()??/.exec("")[1];($a||Va||Ha||Fa||_a)&&(Ia=function(e){var t,n,r,o,i,a,u,s=this,l=Pa(s),c=da(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Rr(Ia,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ha&&s.sticky,h=Rr(pa,s),g=s.source,v=0,y=c;if(p&&(h=Ma(h,"y",""),-1===Ra(h,"g")&&(h+="g"),y=za(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==La(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Va&&(n=new RegExp("^"+g+"$(?!\\s)",h)),$a&&(r=s.lastIndex),o=Rr(Na,p?n:s,y),p?o?(o.input=za(o.input,v),o[0]=za(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$a&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Va&&o&&o.length>1&&Rr(ja,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=ka(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ua=Ia;ra({target:"RegExp",proto:!0,forced:/./.exec!==Ua},{exec:Ua});$o("species");var Wa=RegExp.prototype,Ga=Kr("".charAt),qa=Kr("".charCodeAt),Ka=Kr("".slice),Ya={charAt:function(e){return function(t,n){var r,o,i=da(no(t)),a=Ti(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qa(i,a))<55296||r>56319||a+1===u||(o=qa(i,a+1))<56320||o>57343?e?Ga(i,a):r:e?Ka(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},Xa=Ya.charAt,Za=function(e,t,n){return t+(n?Xa(e,t).length:1)},Ja=jr.TypeError,Qa=function(e,t){var n=e.exec;if(oo(n)){var r=Rr(n,e,t);return null!==r&&ei(r),r}if("RegExp"===Zr(e))return Rr(Ua,e,t);throw Ja("RegExp#exec called on incompatible receiver")};!function(e){var t=$o(e),n=!Nr((function(){var n={};return n[t]=function(){return 7},7!=""[e](n)})),r=n&&!Nr((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},n[t](""),!e}));if(!n||!r){var o=Kr(/./[t]),i=function(e,t,n){return[function(t){var n=no(this),r=null==t?void 0:xo(t,e);return r?Rr(r,t,n):new RegExp(t)[e](da(n))},function(e){var r=ei(this),o=da(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Qa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Qa(r,o));){var c=da(u[0]);s[l]=c,""===c&&(r.lastIndex=Za(o,Ii(r.lastIndex),a)),l++}return 0===l?null:s}]}(t,""[e],(function(e,t,r,i,a){var u=Kr(e),s=t.exec;return s===Ua||s===Wa.exec?n&&!a?{done:!0,value:o(t,r,i)}:{done:!0,value:u(r,t,i)}:{done:!1}}));ki(String.prototype,e,i[0]),ki(Wa,t,i[1])}}("match"),ra({global:!0},{globalThis:jr});var eu=!Nr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tu=hi("IE_PROTO"),nu=jr.Object,ru=nu.prototype,ou=eu?nu.getPrototypeOf:function(e){var t=Fo(e);if(_o(t,tu))return t[tu];var n=t.constructor;return oo(n)&&t instanceof n?n.prototype:t instanceof nu?ru:null},iu=jr.String,au=jr.TypeError,uu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Kr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return ei(n),function(e){if("object"==typeof e||oo(e))return e;throw au("Can't set "+iu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),su=jr.Array,lu=Math.max,cu=Kr("".replace),fu=Kr("".split),du=Kr([].join),pu=String(Error("zxcasd").stack),hu=/\n\s*at [^:]*:[^\n]*/,gu=hu.test(pu),vu=/@[^\n]*\n/.test(pu)&&!/zxcasd/.test(pu),yu=Kr(Kr.bind),mu=function(e,t){return Do(e),void 0===t?e:yu?yu(e,t):function(){return e.apply(t,arguments)}},bu={},wu=$o("iterator"),Eu=Array.prototype,Du=$o("iterator"),xu=function(e){if(null!=e)return xo(e,Du)||xo(e,"@@iterator")||bu[ca(e)]},Cu=jr.TypeError,Su=function(e,t,n){var r,o;ei(e);try{if(!(r=xo(e,"return"))){if("throw"===t)throw n;return n}r=Rr(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return ei(r),n},Au=jr.TypeError,Ou=function(e,t){this.stopped=e,this.result=t},ku=Ou.prototype,Bu=!Nr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Vr(1,7)),7!==e.stack)})),Fu=$o("toStringTag"),Tu=jr.Error,_u=[].push,Pu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=uo(ju,this);uu?n=uu(new Tu(void 0),o?ou(this):ju):(n=o?this:ka(ju),ii(n,Fu,"Error")),ii(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:da(e)}(t,"")),Bu&&ii(n,"stack",function(e,t){if("string"!=typeof e)return e;if(gu)for(;t--;)e=cu(e,hu,"");else if(vu)return du(function(e,t){for(var n,r,o,i,a=Li(e),u=ji(t,a),s=ji(a,a),l=su(lu(s-u,0)),c=0;u<s;u++,c++)n=l,r=c,o=e[u],(i=Uo(r))in n?oi.f(n,i,Vr(0,o)):n[i]=o;return l.length=c,l}(fu(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){io(t)&&"cause"in t&&ii(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=mu(t,f),v=function(e){return r&&Su(r,"normal",e),new Ou(!0,e)},y=function(e){return d?(ei(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=xu(e)))throw Au(wo(e)+" is not iterable");if(void 0!==(c=o)&&(bu.Array===c||Eu[wu]===c)){for(i=0,a=Li(e);a>i;i++)if((u=y(e[i]))&&uo(ku,u))return u;return new Ou(!1)}r=function(e,t){var n=arguments.length<2?xu(e):t;if(Do(n))return ei(Rr(n,e));throw Cu(wo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Rr(s,r)).done;){try{u=y(l.value)}catch(c){Su(r,"throw",c)}if("object"==typeof u&&u&&uo(ku,u))return u}new Ou(!1)}(e,_u,{that:i}),ii(n,"errors",i),n};uu?uu(Pu,Tu):Ki(Pu,Tu);var ju=Pu.prototype=ka(Tu.prototype,{constructor:Vr(1,Pu),message:Vr(1,""),name:Vr(1,"AggregateError")});ra({global:!0},{AggregateError:Pu});var Nu=$o("unscopables"),Iu=Array.prototype;null==Iu[Nu]&&oi.f(Iu,Nu,{configurable:!0,value:ka(null)});var Lu,Ru,Mu,zu=function(e){Iu[Nu][e]=!0},$u=$o("iterator"),Hu=!1;[].keys&&("next"in(Mu=[].keys())?(Ru=ou(ou(Mu)))!==Object.prototype&&(Lu=Ru):Hu=!0);var Vu=null==Lu||Nr((function(){var e={};return Lu[$u].call(e)!==e}));Vu&&(Lu={}),oo(Lu[$u])||ki(Lu,$u,(function(){return this}));var Uu={IteratorPrototype:Lu,BUGGY_SAFARI_ITERATORS:Hu},Wu=oi.f,Gu=$o("toStringTag"),qu=function(e,t,n){e&&!_o(e=n?e:e.prototype,Gu)&&Wu(e,Gu,{configurable:!0,value:t})},Ku=Uu.IteratorPrototype,Yu=function(){return this},Xu=Oi.PROPER,Zu=Oi.CONFIGURABLE,Ju=Uu.IteratorPrototype,Qu=Uu.BUGGY_SAFARI_ITERATORS,es=$o("iterator"),ts=function(){return this},ns=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=ka(Ku,{next:Vr(1,s)}),qu(u,l,!1),bu[l]=Yu;var c,f,d=function(e){if(e===o&&y)return y;if(!Qu&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[es]||g["@@iterator"]||o&&g[o],y=!Qu&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=ou(m.call(new e)))!==Object.prototype&&c.next&&(ou(c)!==Ju&&(uu?uu(c,Ju):oo(c[es])||ki(c,es,ts)),qu(c,p,!0)),Xu&&"values"==o&&v&&"values"!==v.name&&(Zu?ii(g,"name","values"):(h=!0,y=function(){return Rr(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||ra({target:t,proto:!0,forced:Qu||h},f)),g[es]!==y&&ki(g,es,y,{name:o}),bu[t]=y,f},rs=xi.set,os=xi.getterFor("Array Iterator"),is=ns(Array,"Array",(function(e,t){rs(this,{type:"Array Iterator",target:ro(e),index:0,kind:t})}),(function(){var e=os(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");bu.Arguments=bu.Array,zu("keys"),zu("values"),zu("entries");var as=Ya.charAt,us=xi.set,ss=xi.getterFor("String Iterator");ns(String,"String",(function(e){us(this,{type:"String Iterator",string:da(e),index:0})}),(function(){var e,t=ss(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=as(n,r),t.index+=e.length,{value:e,done:!1})}));var ls,cs={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},fs=qo("span").classList,ds=fs&&fs.constructor&&fs.constructor.prototype,ps=ds===Object.prototype?void 0:ds,hs=$o("iterator"),gs=$o("toStringTag"),vs=is.values,ys=function(e,t){if(e){if(e[hs]!==vs)try{ii(e,hs,vs)}catch(r){e[hs]=vs}if(e[gs]||ii(e,gs,t),cs[t])for(var n in is)if(e[n]!==is[n])try{ii(e,n,is[n])}catch(r){e[n]=is[n]}}};for(var ms in cs)ys(jr[ms]&&jr[ms].prototype,ms);function bs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function ws(){void 0===_r&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}ys(ps,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),bs(),ws()):global&&(null===(ls=global.navigator)||void 0===ls?void 0:ls.userAgent.match("QQBrowser"))&&(bs(),ws());var Es=Array.isArray||function(e){return"Array"==U(e)},Ds=function(){},xs=[],Cs=ee("Reflect","construct"),Ss=/^\s*(?:class|function)\b/,As=T(Ss.exec),Os=!Ss.exec(Ds),ks=function(e){if(!_(e))return!1;try{return Cs(Ds,xs,e),!0}catch(t){return!1}},Bs=!Cs||P((function(){var e;return ks(ks.call)||!ks(Object)||!ks((function(){e=!0}))||e}))?function(e){if(!_(e))return!1;switch(yn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Os||!!As(Ss,Ln(e))}:ks,Fs=Ne("species"),Ts=E.Array,_s=function(e,t){return new(Es(n=e)&&(r=n.constructor,(Bs(r)&&(r===Ts||Es(r.prototype))||Z(r)&&null===(r=r[Fs]))&&(r=void 0)),void 0===r?Ts:r)(0===t?0:t);var n,r},Ps=Ne("species"),js=Ne("isConcatSpreadable"),Ns=E.TypeError,Is=le>=51||!P((function(){var e=[];return e[js]=!1,e.concat()[0]!==e})),Ls=le>=51||!P((function(){var e=[];return(e.constructor={})[Ps]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),Rs=function(e){if(!Z(e))return!1;var t=e[js];return void 0!==t?!!t:Es(e)};ft({target:"Array",proto:!0,forced:!Is||!Ls},{concat:function(e){var t,n,r,o,i,a=Ce(this),u=_s(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Rs(i=-1===t?a:arguments[t])){if(s+(o=Bt(i))>9007199254740991)throw Ns("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Zt(u,s,i[n])}else{if(s>=9007199254740991)throw Ns("Maximum allowed index exceeded");Zt(u,s++,i)}return u.length=s,u}});var Ms=Rt.f,zs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$s={f:function(e){return zs&&"Window"==U(e)?function(e){try{return Ms(e)}catch(t){return en(zs)}}(e):Ms(X(e))}},Hs=T([].slice),Vs={f:Ne},Us=ut.f,Ws=function(e){var t=J.Symbol||(J.Symbol={});Ae(t,e)||Us(t,e,{value:Vs.f(e)})},Gs=T([].push),qs=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Ce(s),g=q(h),v=et(l,c),y=Bt(g),m=0,b=f||_s,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Gs(w,d)}else switch(e){case 4:return!1;case 7:Gs(w,d)}return i?-1:r||o?o:w}}(0),Ks=pt("hidden"),Ys=Ne("toPrimitive"),Xs=Xn.set,Zs=Xn.getterFor("Symbol"),Js=Object.prototype,Qs=E.Symbol,el=Qs&&Qs.prototype,tl=E.TypeError,nl=E.QObject,rl=ee("JSON","stringify"),ol=We.f,il=ut.f,al=$s.f,ul=z.f,sl=T([].push),ll=De("symbols"),cl=De("op-symbols"),fl=De("string-to-symbol-registry"),dl=De("symbol-to-string-registry"),pl=De("wks"),hl=!nl||!nl.prototype||!nl.prototype.findChild,gl=j&&P((function(){return 7!=Xt(il({},"a",{get:function(){return il(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ol(Js,t);r&&delete Js[t],il(e,t,n),r&&e!==Js&&il(Js,t,r)}:il,vl=function(e,t){var n=ll[e]=Xt(el);return Xs(n,{type:"Symbol",tag:e,description:t}),j||(n.description=t),n},yl=function(e,t,n){e===Js&&yl(cl,t,n),rt(e);var r=Re(t);return rt(n),Ae(ll,r)?(n.enumerable?(Ae(e,Ks)&&e[Ks][r]&&(e[Ks][r]=!1),n=Xt(n,{enumerable:$(0,!1)})):(Ae(e,Ks)||il(e,Ks,$(1,{})),e[Ks][r]=!0),gl(e,r,n)):il(e,r,n)},ml=function(e,t){rt(e);var n=X(t),r=Ht(n).concat(Dl(n));return qs(r,(function(t){j&&!I(bl,n,t)||yl(e,t,n[t])})),e},bl=function(e){var t=Re(e),n=I(ul,this,t);return!(this===Js&&Ae(ll,t)&&!Ae(cl,t))&&(!(n||!Ae(this,t)||!Ae(ll,t)||Ae(this,Ks)&&this[Ks][t])||n)},wl=function(e,t){var n=X(e),r=Re(t);if(n!==Js||!Ae(ll,r)||Ae(cl,r)){var o=ol(n,r);return!o||!Ae(ll,r)||Ae(n,Ks)&&n[Ks][r]||(o.enumerable=!0),o}},El=function(e){var t=al(X(e)),n=[];return qs(t,(function(e){Ae(ll,e)||Ae(Tt,e)||sl(n,e)})),n},Dl=function(e){var t=e===Js,n=al(t?cl:X(e)),r=[];return qs(n,(function(e){!Ae(ll,e)||t&&!Ae(Js,e)||sl(r,ll[e])})),r};if(ce||(el=(Qs=function(){if(te(el,this))throw tl("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?An(arguments[0]):void 0,t=Fe(e),n=function(e){this===Js&&I(n,cl,e),Ae(this,Ks)&&Ae(this[Ks],t)&&(this[Ks][t]=!1),gl(this,t,$(1,e))};return j&&hl&&gl(Js,t,{configurable:!0,set:n}),vl(t,e)}).prototype,tr(el,"toString",(function(){return Zs(this).tag})),tr(Qs,"withoutSetter",(function(e){return vl(Fe(e),e)})),z.f=bl,ut.f=yl,We.f=wl,Rt.f=$s.f=El,Mt.f=Dl,Vs.f=function(e){return vl(Ne(e),e)},j&&il(el,"description",{configurable:!0,get:function(){return Zs(this).description}})),ft({global:!0,wrap:!0,forced:!ce,sham:!ce},{Symbol:Qs}),qs(Ht(pl),(function(e){Ws(e)})),ft({target:"Symbol",stat:!0,forced:!ce},{for:function(e){var t=An(e);if(Ae(fl,t))return fl[t];var n=Qs(t);return fl[t]=n,dl[n]=t,n},keyFor:function(e){if(!pe(e))throw tl(e+" is not a symbol");if(Ae(dl,e))return dl[e]},useSetter:function(){hl=!0},useSimple:function(){hl=!1}}),ft({target:"Object",stat:!0,forced:!ce,sham:!j},{create:function(e,t){return void 0===t?Xt(e):ml(Xt(e),t)},defineProperty:yl,defineProperties:ml,getOwnPropertyDescriptor:wl}),ft({target:"Object",stat:!0,forced:!ce},{getOwnPropertyNames:El,getOwnPropertySymbols:Dl}),ft({target:"Object",stat:!0,forced:P((function(){Mt.f(1)}))},{getOwnPropertySymbols:function(e){return Mt.f(Ce(e))}}),rl){var xl=!ce||P((function(){var e=Qs();return"[null]"!=rl([e])||"{}"!=rl({a:e})||"{}"!=rl(Object(e))}));ft({target:"JSON",stat:!0,forced:xl},{stringify:function(e,t,n){var r=Hs(arguments),o=t;if((Z(t)||void 0!==e)&&!pe(e))return Es(t)||(t=function(e,t){if(_(o)&&(t=I(o,this,e,t)),!pe(t))return t}),r[1]=t,A(rl,null,r)}})}if(!el[Ys]){var Cl=el.valueOf;tr(el,Ys,(function(e){return I(Cl,this)}))}lr(Qs,"Symbol"),Tt[Ks]=!0,Ws("asyncIterator"),Ws("hasInstance"),Ws("isConcatSpreadable"),Ws("iterator"),Ws("match"),Ws("matchAll"),Ws("replace"),Ws("search"),Ws("species"),Ws("split"),Ws("toPrimitive"),Ws("toStringTag"),Ws("unscopables"),lr(E.JSON,"JSON",!0);var Sl=J.Symbol;Ws("asyncDispose"),Ws("dispose"),Ws("matcher"),Ws("metadata"),Ws("observable"),Ws("patternMatch"),Ws("replaceAll");var Al=Sl,Ol=Vs.f("iterator"),kl=y((function(e){function t(n){return"function"==typeof Al&&"symbol"==typeof Ol?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Al&&e.constructor===Al&&e!==Al.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Bl=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(kl),Fl=Zo.f,Tl=Nr((function(){Fl(1)}));if(ra({target:"Object",stat:!0,forced:!Ir||Tl,sham:!Ir},{getOwnPropertyDescriptor:function(e,t){return Fl(ro(e),t)}}),"object"===("undefined"==typeof global?"undefined":Bl(global))){var _l=Object.getOwnPropertyDescriptor(global,"window");global.window&&!_l.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}function Pl(e){return"[object Object]"===Object.prototype.toString.call(e)}function jl(e){var t,n;return!1!==Pl(e)&&(void 0===(t=e.constructor)||!1!==Pl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Nl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Il(e){return!!e&&!!e[wc]}function Ll(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ec}(e)||Array.isArray(e)||!!e[bc]||!!e.constructor[bc]||Hl(e)||Vl(e))}function Rl(e,t,n){void 0===n&&(n=!1),0===Ml(e)?(n?Object.keys:Dc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Ml(e){var t=e[wc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Hl(e)?2:Vl(e)?3:0}function zl(e,t){return 2===Ml(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function $l(e,t,n){var r=Ml(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Hl(e){return gc&&e instanceof Map}function Vl(e){return vc&&e instanceof Set}function Ul(e){return e.o||e.t}function Wl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xc(e);delete t[wc];for(var n=Dc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Gl(e,t){return void 0===t&&(t=!1),Kl(e)||Il(e)||!Ll(e)||(Ml(e)>1&&(e.set=e.add=e.clear=e.delete=ql),Object.freeze(e),t&&Rl(e,(function(e,t){return Gl(t,!0)}),!0)),e}function ql(){Nl(2)}function Kl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Yl(e){var t=Cc[e];return t||Nl(18,e),t}function Xl(){return pc}function Zl(e,t){t&&(Yl("Patches"),e.u=[],e.s=[],e.v=t)}function Jl(e){Ql(e),e.p.forEach(tc),e.p=null}function Ql(e){e===pc&&(pc=e.l)}function ec(e){return pc={p:[],l:pc,h:e,m:!0,_:0}}function tc(e){var t=e[wc];0===t.i||1===t.i?t.j():t.O=!0}function nc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Yl("ES5").S(t,e,r),r?(n[wc].P&&(Jl(t),Nl(4)),Ll(e)&&(e=rc(t,e),t.l||ic(t,e)),t.u&&Yl("Patches").M(n[wc],e,t.u,t.s)):e=rc(t,n,[]),Jl(t),t.u&&t.v(t.u,t.s),e!==mc?e:void 0}function rc(e,t,n){if(Kl(t))return t;var r=t[wc];if(!r)return Rl(t,(function(o,i){return oc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return ic(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Wl(r.k):r.o;Rl(3===r.i?new Set(o):o,(function(t,i){return oc(e,r,o,t,i,n)})),ic(e,o,!1),n&&e.u&&Yl("Patches").R(r,n,e.u,e.s)}return r.o}function oc(e,t,n,r,o,i){if(Il(o)){var a=rc(e,o,i&&t&&3!==t.i&&!zl(t.D,r)?i.concat(r):void 0);if($l(n,r,a),!Il(a))return;e.m=!1}if(Ll(o)&&!Kl(o)){if(!e.h.F&&e._<1)return;rc(e,o),t&&t.A.l||ic(e,o)}}function ic(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Gl(t,n)}function ac(e,t){var n=e[wc];return(n?Ul(n):e)[t]}function uc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function sc(e){e.P||(e.P=!0,e.l&&sc(e.l))}function lc(e){e.o||(e.o=Wl(e.t))}function cc(e,t,n){var r=Hl(t)?Yl("MapSet").N(t,n):Vl(t)?Yl("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Xl(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Sc;n&&(o=[r],i=Ac);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Yl("ES5").J(t,n);return(n?n.A:Xl()).p.push(r),r}function fc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Wl(e)}var dc,pc,hc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),gc="undefined"!=typeof Map,vc="undefined"!=typeof Set,yc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,mc=hc?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),bc=hc?Symbol.for("immer-draftable"):"__$immer_draftable",wc=hc?Symbol.for("immer-state"):"__$immer_state",Ec=""+Object.prototype.constructor,Dc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xc=Object.getOwnPropertyDescriptors||function(e){var t={};return Dc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Cc={},Sc={get:function(e,t){if(t===wc)return e;var n=Ul(e);if(!zl(n,t))return function(e,t,n){var r,o=uc(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Ll(r)?r:r===ac(e.t,t)?(lc(e),e.o[t]=cc(e.A.h,r,e)):r},has:function(e,t){return t in Ul(e)},ownKeys:function(e){return Reflect.ownKeys(Ul(e))},set:function(e,t,n){var r,o,i=uc(Ul(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=ac(Ul(e),t),u=null==a?void 0:a[wc];if(u&&u.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(((r=n)===(o=a)?0!==r||1/r==1/o:r!=r&&o!=o)&&(void 0!==n||zl(e.t,t)))return!0;lc(e),sc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==ac(e.t,t)||t in e.t?(e.D[t]=!1,lc(e),sc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Ul(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){Nl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Nl(12)}},Ac={};Rl(Sc,(function(e,t){Ac[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Ac.deleteProperty=function(e,t){return Sc.deleteProperty.call(this,e[0],t)},Ac.set=function(e,t,n){return Sc.set.call(this,e[0],t,n,e[0])};var Oc=function(){function e(e){var t=this;this.g=yc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&Nl(6),void 0!==r&&"function"!=typeof r&&Nl(7),Ll(e)){var u=ec(t),s=cc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?Jl(u):Ql(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Zl(u,r),nc(e,u)}),(function(e){throw Jl(u),e})):(Zl(u,r),nc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===mc)return;return void 0===a&&(a=e),t.F&&Gl(a,!0),a}Nl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Ll(e)||Nl(8),Il(e)&&(e=function(e){return Il(e)||Nl(22,e),function e(t){if(!Ll(t))return t;var n,r=t[wc],o=Ml(t);if(r){if(!r.P&&(r.i<4||!Yl("ES5").K(r)))return r.t;r.I=!0,n=fc(t,o),r.I=!1}else n=fc(t,o);return Rl(n,(function(t,o){var i,a;r&&(a=t,(2===Ml(i=r.t)?i.get(a):i[a])===o)||$l(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=ec(this),n=cc(this,e,void 0);return n[wc].C=!0,Ql(t),n},t.finishDraft=function(e,t){var n=(e&&e[wc]).A;return Zl(n,t),nc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!yc&&Nl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Yl("Patches").$;return Il(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),kc=new Oc,Bc=kc.produce;kc.produceWithPatches.bind(kc),kc.setAutoFreeze.bind(kc),kc.setUseProxies.bind(kc),kc.applyPatches.bind(kc);var Fc=kc.createDraft.bind(kc),Tc=kc.finishDraft.bind(kc);function _c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pc=new WeakMap,jc=new WeakMap,Nc=new WeakMap,Ic=new WeakMap,Lc=new WeakMap,Rc=new WeakMap;function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $c=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Pf.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Pf.levels(r),...Kf.isText(n)?[]:Array.from(Bf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Pf.ancestors(o),Pf.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Pf.equals(i,a))return[];var u=[],s=[];for(var l of Pf.ancestors(i)){var c=Pf.transform(l,e);u.push(c)}for(var f of Pf.ancestors(a)){var d=Pf.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...Pf.ancestors(v)];case"split_node":var{path:y}=e;return[...Pf.levels(y),Pf.next(y)];default:return[]}};function Hc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vc,Uc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Xc(e):e,o=Vc.None,i=Vc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=lf(s,l);if([o,i]=n?[i,c]:[c,o],cf(o,Vc.ZWJ)&&cf(i,Vc.ExtPict)&&!hf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(cf(o,Vc.RI)&&cf(i,Vc.RI)&&!(u=null!==u?!u:!!n||vf(e.substring(0,e.length-a))))break;if(o!==Vc.None&&i!==Vc.None&&df(o,i))break;a+=s.length}return a||1},Wc=/\s/,Gc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,qc=/['\u2018\u2019]/,Kc=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Yc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Wc.test(t))return!1;if(qc.test(t)){var o=Uc(n,r),[i,a]=Kc(n,o,r);if(e(i,a,r))return!0}return!Gc.test(t)},Xc=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Jc(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Zc(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Zc=e=>e>=55296&&e<=56319,Jc=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Vc||(Vc={}));var Qc=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ef=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,tf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,nf=/^[\u1100-\u115F\uA960-\uA97C]$/,rf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,of=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,af=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,uf=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,sf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,lf=(e,t)=>{var n=Vc.Any;return-1!==e.search(Qc)&&(n|=Vc.Extend),8205===t&&(n|=Vc.ZWJ),t>=127462&&t<=127487&&(n|=Vc.RI),-1!==e.search(ef)&&(n|=Vc.Prepend),-1!==e.search(tf)&&(n|=Vc.SpacingMark),-1!==e.search(nf)&&(n|=Vc.L),-1!==e.search(rf)&&(n|=Vc.V),-1!==e.search(of)&&(n|=Vc.T),-1!==e.search(af)&&(n|=Vc.LV),-1!==e.search(uf)&&(n|=Vc.LVT),-1!==e.search(sf)&&(n|=Vc.ExtPict),n};function cf(e,t){return 0!=(e&t)}var ff=[[Vc.L,Vc.L|Vc.V|Vc.LV|Vc.LVT],[Vc.LV|Vc.V,Vc.V|Vc.T],[Vc.LVT|Vc.T,Vc.T],[Vc.Any,Vc.Extend|Vc.ZWJ],[Vc.Any,Vc.SpacingMark],[Vc.Prepend,Vc.Any],[Vc.ZWJ,Vc.ExtPict],[Vc.RI,Vc.RI]];function df(e,t){return-1===ff.findIndex((n=>cf(e,n[0])&&cf(t,n[1])))}var pf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,hf=e=>-1!==e.search(pf),gf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,vf=e=>{var t=e.match(gf);return null!==t&&t[0].length/2%2==1},yf=e=>jl(e)&&Bf.isNodeList(e.children)&&!Cf.isEditor(e),mf={isAncestor:e=>jl(e)&&Bf.isNodeList(e.children),isElement:yf,isElementList:e=>Array.isArray(e)&&e.every((e=>mf.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return yf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},bf=["text"],wf=["text"];function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xf=new WeakMap,Cf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Cf.path(e,o),u="lowest"===r;for(var[s,l]of Cf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Kf.isText(s)&&!Pf.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Cf.point(e,t,{edge:"end"}),focus:Cf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Cf.positions(e,Df(Df({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Cf.start(e,[]),focus:Cf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Cf.positions(e,Df(Df({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Cf.start(e,t),Cf.end(e,t)],end:(e,t)=>Cf.point(e,t,{edge:"end"}),first(e,t){var n=Cf.path(e,t,{edge:"start"});return Cf.node(e,n)},fragment(e,t){var n=Cf.range(e,t);return Bf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Cf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Kf.isText(t)||Cf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Kf.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>mf.isElement(t)&&!e.isInline(t),isEditor(e){if(!jl(e))return!1;var t=xf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||jl(e.marks))&&(null===e.selection||$f.isRange(e.selection))&&Bf.isNodeList(e.children)&&_f.isOperationList(e.operations);return xf.set(e,n),n},isEnd(e,t,n){var r=Cf.end(e,n);return Lf.equals(t,r)},isEdge:(e,t,n)=>Cf.isStart(e,t,n)||Cf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Kf.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>mf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Nc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Cf.start(e,n);return Lf.equals(t,r)},isVoid:(e,t)=>mf.isElement(t)&&e.isVoid(t),last(e,t){var n=Cf.path(e,t,{edge:"end"});return Cf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Cf.path(e,t,n);return[Bf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Cf.path(e,n);for(var[s,l]of Bf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Cf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if($f.isExpanded(n)){var[r]=Cf.nodes(e,{match:Kf.isText});if(r){var[o]=r;return Hc(o,bf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Cf.leaf(e,a);if(0===i.offset){var s=Cf.previous(e,{at:a,match:Kf.isText}),l=Cf.above(e,{match:t=>Cf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Pf.isAncestor(d,f)&&(u=c)}}return Hc(u,wf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Cf.after(e,i,{voids:r});if(a){var[,u]=Cf.last(e,[]),s=[a.path,u];if(Pf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Pf.isPath(i)){var[l]=Cf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Cf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Cf.path(e,t,n);return[Bf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(Sf.isSpan(n))s=n[0],l=n[1];else{var c=Cf.path(e,n,{edge:"start"}),f=Cf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Bf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Cf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Pf.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Kf.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Pc.get(e)||[];if(Cf.isNormalizing(e)){if(n){var o=Array.from(Bf.nodes(e),(e=>{var[,t]=e;return t}));Pc.set(e,o)}0!==r(e).length&&Cf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Bf.has(e,t)){var n=Cf.node(e,t),[o,i]=n;mf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Bf.has(e,s)){var l=Cf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Cf.path(e,t,n),o=Pf.parent(r);return Cf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Pf.isPath(t))if("start"===o){var[,i]=Bf.first(e,t);t=i}else if("end"===o){var[,a]=Bf.last(e,t);t=a}return $f.isRange(t)&&(t="start"===o?$f.start(t):"end"===o?$f.end(t):Pf.common(t.anchor.path,t.focus.path)),Lf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Bf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Cf.pathRefs(e).delete(o),o.current=null,t}};return Cf.pathRefs(e).add(o),o},pathRefs(e){var t=Ic.get(e);return t||(t=new Set,Ic.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Pf.isPath(t)){var o;if("end"===r){var[,i]=Bf.last(e,t);o=i}else{var[,a]=Bf.first(e,t);o=a}var u=Bf.get(e,o);if(!Kf.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if($f.isRange(t)){var[s,l]=$f.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Cf.pointRefs(e).delete(o),o.current=null,t}};return Cf.pointRefs(e).add(o),o},pointRefs(e){var t=Lc.get(e);return t||(t=new Set,Lc.set(e,t)),t},*positions(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:i=e.selection,unit:a="offset",reverse:u=!1,voids:s=!1}=o;if(i){var l=Cf.range(e,i),[c,f]=$f.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of Cf.nodes(e,{at:i,reverse:u,voids:s})){if(mf.isElement(m)){if(!s&&e.isVoid(m)){yield Cf.start(e,b);continue}if(e.isInline(m))continue;if(Cf.hasInlines(e,m)){var w=Pf.isAncestor(b,f.path)?f:Cf.end(e,b),E=Pf.isAncestor(b,c.path)?c:Cf.start(e,b);h=Cf.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(Kf.isText(m)){var D=Pf.equals(b,d.path);for(D?(v=u?d.offset:m.text.length-d.offset,y=d.offset):(v=m.text.length,y=u?v:0),(D||p||"offset"===a)&&(yield{path:b,offset:y},p=!1);;){if(0===g){if(""===h)break;t=h,r=u,g="character"===(n=a)?Uc(t,r):"word"===n?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Uc(e,t),[i,a]=Kc(e,o,t);if(Yc(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(t,r):"line"===n||"block"===n?t.length:1,h=Kc(h,g,u)[1]}if(y=u?y-g:y+g,(v-=g)<0){g=-v;break}g=0,yield{path:b,offset:y}}}}}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Cf.before(e,i,{voids:r});if(a){var[,u]=Cf.first(e,[]),s=[a.path,u];if(Pf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Pf.isPath(i)){var[l]=Cf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Cf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>$f.isRange(t)&&!n?t:{anchor:Cf.start(e,t),focus:Cf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Cf.rangeRefs(e).delete(o),o.current=null,t}};return Cf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Rc.get(e);return t||(t=new Set,Rc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Nc.set(e,t)},start:(e,t)=>Cf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Cf.range(e,t),[i,a]=$f.edges(o),u="";for(var[s,l]of Cf.nodes(e,{at:o,match:Kf.isText,voids:r})){var c=s.text;Pf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Pf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=$f.edges(t);if(0!==o.offset||0!==i.offset||$f.isCollapsed(t))return t;var a=Cf.above(e,{at:i,match:t=>Cf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Cf.start(e,[]),focus:i},l=!0;for(var[c,f]of Cf.nodes(e,{at:s,match:Kf.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Pf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Cf.above(e,Df(Df({},t),{},{match:t=>Cf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Cf.isNormalizing(e);Cf.setNormalizing(e,!1);try{t()}finally{Cf.setNormalizing(e,n)}Cf.normalize(e)}},Sf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Pf.isPath)},Af=["children"],Of=["text"],kf=new WeakMap,Bf={ancestor(e,t){var n=Bf.get(e,t);if(Kf.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Pf.ancestors(t,n)){var o=[Bf.ancestor(e,r),r];yield o}},child(e,t){if(Kf.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Bf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Bf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Pf.common(t,n);return[Bf.get(e,r),r]},descendant(e,t){var n=Bf.get(e,t);if(Cf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))mf.isElement(n)&&(yield[n,r])},extractProps:e=>mf.isAncestor(e)?Hc(e,Af):Hc(e,Of),first(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!Kf.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Kf.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Bc({children:e.children},(e=>{var[n,r]=$f.edges(t),o=Bf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!$f.includes(t,n)}});for(var[,i]of o){if(!$f.includes(t,i)){var a=Bf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Pf.equals(i,r.path)){var s=Bf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Pf.equals(i,n.path)){var l=Bf.leaf(e,i);l.text=l.text.slice(n.offset)}}Cf.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Kf.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Kf.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Kf.isText(e)||mf.isElement(e)||Cf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=kf.get(e);if(void 0!==t)return t;var n=e.every((e=>Bf.isNode(e)));return kf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!Kf.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Bf.get(e,t);if(!Kf.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Pf.levels(t,n)){var o=Bf.get(e,r);yield[o,r]}},matches:(e,t)=>mf.isElement(e)&&mf.isElementProps(t)&&mf.matches(e,t)||Kf.isText(e)&&Kf.isTextProps(t)&&Kf.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Pf.isBefore(u,i):Pf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Kf.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Pf.next(u);if(Bf.has(e,l)){u=l,s=Bf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Pf.previous(u),s=Bf.get(e,u)):(u=Pf.parent(u),s=Bf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Pf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Bf.get(e,u)}},parent(e,t){var n=Pf.parent(t),r=Bf.get(e,n);if(Kf.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Kf.isText(e)?e.text:e.children.map(Bf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))Kf.isText(n)&&(yield[n,r])}};function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _f={isNodeOperation:e=>_f.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!jl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Pf.isPath(e.path)&&Bf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Pf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Pf.isPath(e.path)&&jl(e.properties);case"move_node":return Pf.isPath(e.path)&&Pf.isPath(e.newPath);case"set_node":return Pf.isPath(e.path)&&jl(e.properties)&&jl(e.newProperties);case"set_selection":return null===e.properties&&$f.isRange(e.newProperties)||null===e.newProperties&&$f.isRange(e.properties)||jl(e.properties)&&jl(e.newProperties);case"split_node":return Pf.isPath(e.path)&&"number"==typeof e.position&&jl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>_f.isOperation(e))),isSelectionOperation:e=>_f.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>_f.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Tf(Tf({},e),{},{type:"remove_node"});case"insert_text":return Tf(Tf({},e),{},{type:"remove_text"});case"merge_node":return Tf(Tf({},e),{},{type:"split_node",path:Pf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Pf.equals(t,n))return e;if(Pf.isSibling(n,t))return Tf(Tf({},e),{},{path:t,newPath:n});var r=Pf.transform(n,e),o=Pf.transform(Pf.next(n),e);return Tf(Tf({},e),{},{path:r,newPath:o});case"remove_node":return Tf(Tf({},e),{},{type:"insert_node"});case"remove_text":return Tf(Tf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Tf(Tf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Tf(Tf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Tf(Tf({},e),{},{type:"merge_node",path:Pf.next(e.path)})}}},Pf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Pf.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Pf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Pf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Pf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Pf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Pf.compare(e,t),isBefore:(e,t)=>-1===Pf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Pf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Pf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Pf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Pf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Pf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Pf.isAncestor(t,e)&&!Pf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Bc(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Pf.equals(i,r)||Pf.endsBefore(i,r)||Pf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Pf.equals(a,r)||Pf.isAncestor(a,r))return null;Pf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Pf.equals(u,r)||Pf.endsBefore(u,r)?r[u.length-1]-=1:Pf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Pf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Pf.endsBefore(l,r)?r[l.length-1]+=1:Pf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Pf.equals(f,d))return;if(Pf.isAncestor(f,r)||Pf.equals(f,r)){var p=d.slice();return Pf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Pf.isSibling(f,d)&&(Pf.isAncestor(d,r)||Pf.equals(d,r))?Pf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Pf.endsBefore(d,r)||Pf.equals(d,r)||Pf.isAncestor(d,r)?(Pf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Pf.endsBefore(f,r)&&(Pf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},jf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Pf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lf={compare(e,t){var n=Pf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Lf.compare(e,t),isBefore:(e,t)=>-1===Lf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Pf.equals(e.path,t.path),isPoint:e=>jl(e)&&"number"==typeof e.offset&&Pf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Bc(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Pf.transform(o,t,n);break;case"insert_text":Pf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Pf.equals(t.path,o)&&(e.offset+=t.position),e.path=Pf.transform(o,t,n);break;case"remove_text":Pf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Pf.equals(t.path,o)||Pf.isAncestor(t.path,o))return null;e.path=Pf.transform(o,t,n);break;case"split_node":if(Pf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Pf.transform(o,t,If(If({},n),{},{affinity:"forward"})))}else e.path=Pf.transform(o,t,n)}}))}},Rf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Lf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Mf=["anchor","focus"];function zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $f={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return $f.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=$f.edges(e);return t},equals:(e,t)=>Lf.equals(e.anchor,t.anchor)&&Lf.equals(e.focus,t.focus),includes(e,t){if($f.isRange(t)){if($f.includes(e,t.anchor)||$f.includes(e,t.focus))return!0;var[n,r]=$f.edges(e),[o,i]=$f.edges(t);return Lf.isBefore(n,o)&&Lf.isAfter(r,i)}var[a,u]=$f.edges(e),s=!1,l=!1;return Lf.isPoint(t)?(s=Lf.compare(t,a)>=0,l=Lf.compare(t,u)<=0):(s=Pf.compare(t,a.path)>=0,l=Pf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Hc(e,Mf),[r,o]=$f.edges(e),[i,a]=$f.edges(t),u=Lf.isBefore(r,i)?i:r,s=Lf.isBefore(o,a)?o:a;return Lf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Lf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Lf.equals(t,n)},isExpanded:e=>!$f.isCollapsed(e),isForward:e=>!$f.isBackward(e),isRange:e=>jl(e)&&Lf.isPoint(e.anchor)&&Lf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=$f.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Bc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=$f.isCollapsed(e);$f.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?$f.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Lf.transform(e.anchor,t,{affinity:r}),s=Lf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Hf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=$f.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Vf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(jl(r)&&jl(o)){if(!Vf(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Uf=["text"],Wf=["anchor","focus"];function Gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kf={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Hc(e,Uf)}return Vf(r?o(e):e,r?o(t):t)},isText:e=>jl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Kf.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[qf({},e)];for(var r of t){var o=Hc(r,Wf),[i,a]=$f.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=qf(qf({},d),{},{text:d.text.slice(g)}),d=qf(qf({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=qf(qf({},d),{},{text:d.text.slice(0,v)}),d=qf(qf({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zf={transform(e,t){e.children=Fc(e.children);var n=e.selection&&Fc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Bf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of $f.points(t))t[s]=Lf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Bf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of $f.points(t))t[v]=Lf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Bf.get(e,y),b=Pf.previous(y),w=Bf.get(e,b),E=Bf.parent(e,y),D=y[y.length-1];if(Kf.isText(m)&&Kf.isText(w))w.text+=m.text;else{if(Kf.isText(m)||Kf.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(D,1),t)for(var[x,C]of $f.points(t))t[C]=Lf.transform(x,n);break;case"move_node":var{path:S,newPath:A}=n;if(Pf.isAncestor(S,A))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(A,"] because the destination is inside itself."));var O=Bf.get(e,S),k=Bf.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var F=Pf.transform(S,n),T=Bf.get(e,Pf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of $f.points(t))t[j]=Lf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Bf.parent(e,N).children.splice(I,1),t)for(var[L,R]of $f.points(t)){var M=Lf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Bf.texts(e)){if(-1!==Pf.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Pf.equals($[1],N)?!Pf.hasPrevious($[1]):Pf.common(z[1],N).length<Pf.common($[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=Bf.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of $f.points(t))t[J]=Lf.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Bf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!$f.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Xf({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Bf.get(e,le),he=Bf.parent(e,le),ge=le[le.length-1];if(Kf.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Xf(Xf({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Xf(Xf({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of $f.points(t))t[Ee]=Lf.transform(we,n)}return t})(e,n,t)}finally{e.children=Tc(e.children),e.selection=n?Il(n)?Tc(n):n:null}}},Jf=["text"],Qf=["children"];function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Cf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Bf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Cf.end(e,[]):[0],s=!0),null==s&&(s=!1),$f.isRange(a))if(r||(a=Cf.unhangRange(e,a)),$f.isCollapsed(a))a=a.anchor;else{var[,c]=$f.edges(a),f=Cf.pointRef(e,c);dd.delete(e,{at:a}),a=f.unref()}if(Lf.isPoint(a)){null==u&&(u=Kf.isText(l)?e=>Kf.isText(e):e.isInline(l)?t=>Kf.isText(t)||Cf.isInline(e,t):t=>Cf.isBlock(e,t));var[d]=Cf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Cf.pathRef(e,p),g=Cf.isEnd(e,a,p);dd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Pf.next(v):v}var y=Pf.parent(a),m=a[a.length-1];if(o||!Cf.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Pf.next(a)}if(a=Pf.previous(a),s){var E=Cf.end(e,a);E&&dd.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Pf.isPath(n)?id(e,n):t=>Cf.isBlock(e,t)),n){var a=Cf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Cf.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Cf.node(e,Pf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Pf.next(d);dd.moveNodes(e,{at:l,to:g,voids:o}),dd.removeNodes(e,{at:d,voids:o})}else if(0===p)dd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Pf.next(d);dd.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Pf.next(l),m=Pf.next(d);dd.splitNodes(e,{at:y,voids:o}),dd.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cf.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Pf.isPath(r)){var[u]=Cf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Cf.isBlock(e,t);if(!o&&$f.isRange(r)&&(r=Cf.unhangRange(e,r)),$f.isRange(r))if($f.isCollapsed(r))r=r.anchor;else{var[,s]=$f.edges(r),l=Cf.pointRef(e,s);dd.delete(e,{at:r}),r=l.unref(),null==t.at&&dd.select(e,r)}var[c]=Cf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Cf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Pf.next(g),b=Pf.common(p,g),w=Pf.isSibling(p,g),E=Array.from(Cf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=Cf.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&rd(e,t)}),x=D&&Cf.pathRef(e,D[1]);if(Kf.isText(d)&&Kf.isText(h)){var C=Hc(d,Jf);y=h.text.length,v=C}else{if(!mf.isElement(d)||!mf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));C=Hc(d,Qf),y=h.children.length,v=C}w||dd.moveNodes(e,{at:p,to:m,voids:i}),x&&dd.removeNodes(e,{at:x.current,voids:i}),mf.isElement(h)&&Cf.isEmpty(e,h)||Kf.isText(h)&&""===h.text&&0!==g[g.length-1]?dd.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),x&&x.unref()}}}}))},moveNodes(e,t){Cf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Pf.isPath(r)?id(e,r):t=>Cf.isBlock(e,t));var u=Cf.pathRef(e,n),s=Cf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Cf.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Pf.isSibling(d,f)&&Pf.isAfter(d,f)&&(u.current=Pf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cf.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Pf.isPath(i)?id(e,i):t=>Cf.isBlock(e,t)),!n&&$f.isRange(i)&&(i=Cf.unhangRange(e,i));var u=Cf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Cf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Cf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Cf.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Pf.isPath(o)?id(e,o):t=>Cf.isBlock(e,t)),!i&&$f.isRange(o)&&(o=Cf.unhangRange(e,o)),u&&$f.isRange(o)){if($f.isCollapsed(o)&&Cf.leaf(e,o.anchor)[0].text.length>0)return;var l=Cf.rangeRef(e,o,{affinity:"inward"}),[c,f]=$f.edges(o),d="lowest"===a?"lowest":"highest",p=Cf.isEnd(e,f,f.path);dd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Cf.isStart(e,c,c.path);dd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&dd.select(e,o)}for(var[g,v]of Cf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==v.length){var b=!1;for(var w in t)"children"!==w&&"text"!==w&&t[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),null!=t[w]&&(m[w]=t[w]));b&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cf.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Cf.isBlock(e,t)),$f.isRange(i)&&(i=od(e,i)),Pf.isPath(i)){var s=i,l=Cf.point(e,s),[c]=Cf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Cf.pointRef(e,i,{affinity:"backward"}),[d]=Cf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Cf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(mf.isElement(h)&&e.isInline(h)){var v=Cf.after(e,g);if(!v){var y=Pf.next(g);dd.insertNodes(e,{text:""},{at:y,voids:r}),v=Cf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=Cf.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),D=0===a?i.offset:i.path[b]+0;for(var[x,C]of Cf.levels(e,{at:E,reverse:!0,voids:r})){var S=!1;if(C.length<w.length||0===C.length||!r&&Cf.isVoid(e,x))break;var A=f.current,O=Cf.isEnd(e,A,C);if(u||!f||!Cf.isEdge(e,A,C)){S=!0;var k=Bf.extractProps(x);e.apply({type:"split_node",path:C,position:D,properties:k})}D=C[C.length-1]+(S||O?1:0)}if(null==t.at){var B=m.current||Cf.end(e,[]);dd.select(e,B)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;dd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cf.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Pf.isPath(i)?id(e,i):t=>Cf.isBlock(e,t)),Pf.isPath(i)&&(i=Cf.range(e,i));var u=$f.isRange(i)?Cf.rangeRef(e,i):null,s=Cf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Cf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Cf.node(e,n),a=Cf.range(e,n);r&&u&&(a=$f.intersection(u.current,a)),dd.liftNodes(e,{at:a,match:e=>mf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Cf.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Pf.isPath(u)?id(e,u):e.isInline(t)?t=>Cf.isInline(e,t)||Kf.isText(t):t=>Cf.isBlock(e,t)),o&&$f.isRange(u)){var[s,l]=$f.edges(u),c=Cf.rangeRef(e,u,{affinity:"inward"});dd.splitNodes(e,{at:l,match:a,voids:i}),dd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&dd.select(e,u)}var f=Array.from(Cf.nodes(e,{at:u,match:e.isInline(t)?t=>Cf.isBlock(e,t):e=>Cf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=$f.isRange(u)?$f.intersection(u,Cf.range(e,d)):u;if(p){var h=Array.from(Cf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Pf.equals(o,a)?Pf.parent(o):Pf.common(o,a),s=Cf.range(e,o,a),l=Cf.node(e,u),[c]=l,f=u.length+1,d=Pf.next(a.slice(0,f)),p=td(td({},t),{},{children:[]});dd.insertNodes(e,p,{at:d,voids:i}),dd.moveNodes(e,{at:s,match:e=>mf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},rd=(e,t)=>{if(mf.isElement(t)){var n=t;return!!Cf.isVoid(e,t)||1===n.children.length&&rd(e,n.children[0])}return!Cf.isEditor(t)},od=(e,t)=>{if($f.isCollapsed(t))return t.anchor;var[,n]=$f.edges(t),r=Cf.pointRef(e,n);return dd.delete(e,{at:t}),r.unref()},id=(e,t)=>{var[n]=Cf.node(e,t);return e=>e===n};function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)dd.select(e,r.anchor);else if("focus"===n)dd.select(e,r.focus);else if("start"===n){var[o]=$f.edges(r);dd.select(e,o)}else if("end"===n){var[,i]=$f.edges(r);dd.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=$f.isBackward(n)?"focus":"anchor"),"end"===a&&(a=$f.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Cf.before(e,u,l):Cf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Cf.before(e,s,l):Cf.after(e,s,l);d&&(c.focus=d)}dd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Cf.range(e,t),n)dd.setSelection(e,t);else{if(!$f.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=$f.isBackward(r)?"focus":"anchor"),"end"===o&&(o=$f.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;dd.setSelection(e,{["anchor"===o?"anchor":"focus"]:ud(ud({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Lf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Lf.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},ld={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Cf.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if($f.isRange(a)&&$f.isCollapsed(a)&&(a=a.anchor),Lf.isPoint(a)){var s=Cf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Cf.before(e,a,c)||Cf.start(e,[]):Cf.after(e,a,c)||Cf.end(e,[])},u=!0}}if(Pf.isPath(a))dd.removeNodes(e,{at:a,voids:i});else if(!$f.isCollapsed(a)){if(!u){var[,f]=$f.edges(a),d=Cf.end(e,[]);Lf.equals(f,d)||(a=Cf.unhangRange(e,a,{voids:i}))}var[p,h]=$f.edges(a),g=Cf.above(e,{match:t=>Cf.isBlock(e,t),at:p,voids:i}),v=Cf.above(e,{match:t=>Cf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Pf.equals(g[1],v[1]),m=Pf.equals(p.path,h.path),b=i?null:Cf.void(e,{at:p,mode:"highest"}),w=i?null:Cf.void(e,{at:h,mode:"highest"});if(b){var E=Cf.before(e,p);E&&g&&Pf.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=Cf.after(e,h);D&&v&&Pf.isAncestor(v[1],D.path)&&(h=D)}var x,C=[];for(var S of Cf.nodes(e,{at:a,voids:i})){var[A,O]=S;x&&0===Pf.compare(O,x)||(!i&&Cf.isVoid(e,A)||!Pf.isCommon(O,p.path)&&!Pf.isCommon(O,h.path))&&(C.push(S),x=O)}var k=Array.from(C,(t=>{var[,n]=t;return Cf.pathRef(e,n)})),B=Cf.pointRef(e,p),F=Cf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=Cf.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();dd.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=Cf.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&dd.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&dd.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Cf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if($f.isRange(i))if(r||(i=Cf.unhangRange(e,i)),$f.isCollapsed(i))i=i.anchor;else{var[,a]=$f.edges(i);if(!o&&Cf.void(e,{at:a}))return;var u=Cf.pointRef(e,a);dd.delete(e,{at:i}),i=u.unref()}else Pf.isPath(i)&&(i=Cf.start(e,i));if(o||!Cf.void(e,{at:i})){var s=Cf.above(e,{at:i,match:t=>Cf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Cf.isEnd(e,i,l)?i=Cf.after(e,l):Cf.isStart(e,i,l)&&(i=Cf.before(e,l))}var c=Cf.above(e,{match:t=>Cf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Cf.isStart(e,i,f),p=Cf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Bf.first({children:t},[]),[,m]=Bf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Pf.isAncestor(r,y)&&mf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Pf.isAncestor(r,m)&&mf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Bf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],x=[],C=[],S=!0,A=!1;for(var[O]of b)mf.isElement(O)&&!e.isInline(O)?(S=!1,A=!0,x.push(O)):S?D.push(O):C.push(O);var[k]=Cf.nodes(e,{at:i,match:t=>Kf.isText(t)||Cf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=Cf.isStart(e,i,B),T=Cf.isEnd(e,i,B),_=Cf.pathRef(e,p?Pf.next(f):f),P=Cf.pathRef(e,T?Pf.next(B):B),j=Cf.pathRef(e,f);dd.splitNodes(e,{at:i,match:t=>A?Cf.isBlock(e,t):Kf.isText(t)||Cf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=Cf.pathRef(e,!F||F&&T?Pf.next(B):B);if(dd.insertNodes(e,D,{at:N.current,match:t=>Kf.isText(t)||Cf.isInline(e,t),mode:"highest",voids:o}),h&&x.length&&dd.delete(e,{at:j.unref(),voids:o}),dd.insertNodes(e,x,{at:_.current,match:t=>Cf.isBlock(e,t),mode:"lowest",voids:o}),dd.insertNodes(e,C,{at:P.current,match:t=>Kf.isText(t)||Cf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=C.length>0?Pf.previous(P.current):x.length>0?Pf.previous(_.current):Pf.previous(N.current);var L=Cf.end(e,I);dd.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Cf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Pf.isPath(o)&&(o=Cf.range(e,o)),$f.isRange(o))if($f.isCollapsed(o))o=o.anchor;else{var i=$f.end(o);if(!r&&Cf.void(e,{at:i}))return;var a=Cf.pointRef(e,i);dd.delete(e,{at:o,voids:r}),o=a.unref(),dd.setSelection(e,{anchor:o,focus:o})}if(r||!Cf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dd=fd(fd(fd(fd({},Zf),nd),sd),ld),pd="[object Map]",hd="[object Set]",gd=/^\[object .+?Constructor\]$/,vd=/^(?:0|[1-9]\d*)$/,yd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",md="\\ud83c[\\udffb-\\udfff]",bd="[^\\ud800-\\udfff]",wd="(?:\\ud83c[\\udde6-\\uddff]){2}",Ed="[\\ud800-\\udbff][\\udc00-\\udfff]",Dd="(?:"+yd+"|"+md+")?",xd="[\\ufe0e\\ufe0f]?"+Dd+"(?:\\u200d(?:"+[bd,wd,Ed].join("|")+")[\\ufe0e\\ufe0f]?"+Dd+")*",Cd="(?:"+[bd+yd+"?",yd,wd,Ed,"[\\ud800-\\udfff]"].join("|")+")",Sd=RegExp(md+"(?="+md+")|"+Cd+xd,"g"),Ad=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Od="object"==typeof v&&v&&v.Object===Object&&v,kd="object"==typeof self&&self&&self.Object===Object&&self,Bd=Od||kd||Function("return this")();function Fd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Td(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var _d,Pd,jd=Function.prototype,Nd=Object.prototype,Id=Bd["__core-js_shared__"],Ld=function(){var e=/[^.]+$/.exec(Id&&Id.keys&&Id.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rd=jd.toString,Md=Nd.hasOwnProperty,zd=Nd.toString,$d=RegExp("^"+Rd.call(Md).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hd=Bd.Symbol,Vd=Hd?Hd.iterator:void 0,Ud=Nd.propertyIsEnumerable,Wd=(_d=Object.keys,Pd=Object,function(e){return _d(Pd(e))}),Gd=np(Bd,"DataView"),qd=np(Bd,"Map"),Kd=np(Bd,"Promise"),Yd=np(Bd,"Set"),Xd=np(Bd,"WeakMap"),Zd=ip(Gd),Jd=ip(qd),Qd=ip(Kd),ep=ip(Yd),tp=ip(Xd);function np(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!lp(e)||(t=e,Ld&&Ld in t))return!1;var t,n=sp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?$d:gd;return n.test(ip(e))}(o)?o:void 0}var rp=function(e){return zd.call(e)};function op(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||vd.test(e))&&e>-1&&e%1==0&&e<t}function ip(e){if(null!=e){try{return Rd.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(Gd&&"[object DataView]"!=rp(new Gd(new ArrayBuffer(1)))||qd&&rp(new qd)!=pd||Kd&&"[object Promise]"!=rp(Kd.resolve())||Yd&&rp(new Yd)!=hd||Xd&&"[object WeakMap]"!=rp(new Xd))&&(rp=function(e){var t=zd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?ip(n):void 0;if(r)switch(r){case Zd:return"[object DataView]";case Jd:return pd;case Qd:return"[object Promise]";case ep:return hd;case tp:return"[object WeakMap]"}return t});var ap=Array.isArray;function up(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!sp(e);var t}function sp(e){var t=lp(e)?zd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function lp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function cp(e){return!!e&&"object"==typeof e}function fp(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,up(t=e)?function(e){var t,n,r=ap(e)||cp(n=t=e)&&up(n)&&Md.call(t,"callee")&&(!Ud.call(t,"callee")||"[object Arguments]"==zd.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!Md.call(e,a)||i&&("length"==a||op(a,o))||r.push(a);return r}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Nd))return Wd(e);var t,n,r=[];for(var o in Object(e))Md.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var dp=function(e){if(!e)return[];if(up(e))return"string"==typeof(t=e)||!ap(t)&&cp(t)&&"[object String]"==zd.call(t)?function(e){return t=e,Ad.test(t)?function(e){return e.match(Sd)||[]}(e):function(e){return e.split("")}(e);var t}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);var t;if(Vd&&e[Vd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Vd]());var n=rp(e);return(n==pd?Fd:n==hd?Td:fp)(e)};function pp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function hp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:pp(t[n])&&pp(e[n])&&Object.keys(t[n]).length>0&&hp(e[n],t[n])}))}var gp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function vp(){var e="undefined"!=typeof document?document:{};return hp(e,gp),e}var yp={document:gp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function mp(){var e="undefined"!=typeof window?window:{};return hp(e,yp),e}function bp(e){return(bp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wp(e,t){return(wp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ep(e,t,n){return Ep=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&wp(o,n.prototype),o},Ep.apply(null,arguments)}function Dp(e){var t="function"==typeof Map?new Map:void 0;return Dp=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ep(e,arguments,bp(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wp(r,e)},Dp(e)}var xp=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dp(Array));function Cp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Cp(e)):t.push(e)})),t}function Sp(e,t){return Array.prototype.filter.call(e,t)}function Ap(e,t){var n=mp(),r=vp(),o=[];if(!t&&e instanceof xp)return e;if(!e)return new xp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof xp)return e;o=e}return new xp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Op(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Bp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cp(t.map((function(e){return e.split(" ")})));return Sp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Fp(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Tp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function _p(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Pp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function jp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Ap(t).is(o))i.apply(t,n);else for(var r=Ap(t).parents(),a=0;a<r.length;a+=1)Ap(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Np(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Ip(){var e=mp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Lp(){var e=mp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Rp(){if(this.length>0){var e=mp(),t=vp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Mp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function zp(){for(var e=mp(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function $p(e,t){var n,r=mp();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Hp(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Vp(e){return Ap(Sp(this,e))}function Up(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Wp(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Gp(e){var t,n,r=mp(),o=vp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Ap(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof xp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function qp(){for(var e,t=vp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof xp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Kp(e){var t,n,r=vp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof xp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Yp(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Ap(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Ap(t)}function Xp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Ap(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Ap(t)}function Zp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Ap(t)}function Jp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Ap(r[o]).is(e)||t.push(r[o]);return Ap(t)}function Qp(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function eh(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Ap.fn=xp.prototype;var th="resize scroll".split(" ");function nh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)th.indexOf(e)<0&&(e in this[o]?this[o][e]():Ap(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var rh=nh("click"),oh=nh("focus"),ih=/^(?:0|[1-9]\d*)$/;function ah(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var uh=Object.prototype,sh=uh.hasOwnProperty,lh=uh.toString,ch=uh.propertyIsEnumerable,fh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var dh,ph=(dh=function(e,t){return e&&hh(e,t,mh)},function(e,t){if(null==e)return e;if(!yh(e))return dh(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),hh=function(){return function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var u=i[++r];if(!1===t(o[u],u,o))break}return e}}();function gh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||ih.test(e))&&e>-1&&e%1==0&&e<t}var vh=Array.isArray;function yh(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!function(e){var t,n,r=(n=typeof(t=e),!t||"object"!=n&&"function"!=n?"":lh.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function mh(e){return yh(e)?function(e){var t,n,r=vh(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&yh(n)&&sh.call(t,"callee")&&(!ch.call(t,"callee")||"[object Arguments]"==lh.call(t))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=r.length,i=!!o;for(var a in e)!sh.call(e,a)||i&&("length"==a||gh(a,o))||r.push(a);return r}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||uh))return fh(e);var t,n,r=[];for(var o in Object(e))sh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function bh(e){return e}var wh=function(e,t){return(vh(e)?ah:ph)(e,"function"==typeof t?t:bh)};let Eh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Dh=/^\s+|\s+$/g,xh=/^[-+]0x[0-9a-f]+$/i,Ch=/^0b[01]+$/i,Sh=/^0o[0-7]+$/i,Ah=parseInt,Oh="object"==typeof v&&v&&v.Object===Object&&v,kh="object"==typeof self&&self&&self.Object===Object&&self,Bh=Oh||kh||Function("return this")(),Fh=Object.prototype.toString,Th=Math.max,_h=Math.min,Ph=function(){return Bh.Date.now()};function jh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=Ph();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?_h(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Ph(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Ih(t)||0,Nh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Th(Ih(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(Ph())},y}function Nh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ih(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==Fh.call(t))return NaN;var t;if(Nh(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Nh(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Dh,"");var r=Ch.test(e);return r||Sh.test(e)?Ah(e.slice(2),r?2:8):xh.test(e)?NaN:+e}var Lh=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Nh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),jh(e,t,{leading:r,maxWait:t,trailing:o})};const Rh={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Mh(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const zh=Array.isArray;function $h(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Hh(e){return void 0===e}function Vh(e){return void 0!==e}const Uh=Mh("",{},[],void 0,void 0);function Wh(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Gh(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const qh=["create","update","remove","destroy","pre","post"];function Kh(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Rh;for(const c of qh)for(const t of e){const e=t[c];void 0!==e&&n[c].push(e)}function o(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function i(e,t){var o,a;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;Vh(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Hh(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=Vh(s)&&Vh(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](Uh,e);if(zh(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else $h(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Vh(v)&&(null===(a=v.create)||void 0===a||a.call(v,Uh,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function a(e,t,n,o,a,u){for(;o<=a;++o){const a=n[o];null!=a&&r.insertBefore(e,i(a,u),t)}}function u(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&u(n)}}}function s(e,t,i,a){for(var s,l;i<=a;++i){let a,c;const f=t[i];if(null!=f)if(Vh(f.sel)){u(f),a=n.remove.length+1,c=o(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(s=null==f?void 0:f.data)||void 0===s?void 0:s.hook)||void 0===l?void 0:l.remove;Vh(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function l(e,t,o){var u,c,f,d,p;const h=null===(u=t.data)||void 0===u?void 0:u.hook;null===(c=null==h?void 0:h.prepatch)||void 0===c||c.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}Hh(t.text)?Vh(v)&&Vh(y)?v!==y&&function(e,t,n,o){let u,c,f,d,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:Wh(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Wh(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Wh(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Wh(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=Gh(t,p,g)),c=u[b.key],Hh(c)?r.insertBefore(e,i(b,o),v.elm):(f=t[c],f.sel!==b.sel?r.insertBefore(e,i(b,o),v.elm):(l(f,b,o),t[c]=void 0,r.insertBefore(e,f.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(d=null==n[m+1]?null:n[m+1].elm,a(e,d,n,h,m,o)):s(e,t,p,g))}(g,v,y,o):Vh(y)?(Vh(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Vh(v)?s(g,v,0,v.length-1):Vh(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Vh(v)&&s(g,v,0,v.length-1),r.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let o,a,u;const c=[];for(o=0;o<n.pre.length;++o)n.pre[o]();for(void 0!==e.sel||(e=function(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return Mh(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Wh(e,t)?l(e,t,c):(a=e.elm,u=r.parentNode(a),i(t,c),null!==u&&(r.insertBefore(u,t.elm,r.nextSibling(a)),s(u,[e],0,0))),o=0;o<c.length;++o)c[o].data.hook.insert(c[o]);for(o=0;o<n.post.length;++o)n.post[o]();return t}}function Yh(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let r=0;r<t.length;++r){const e=t[r].data;void 0!==e&&Yh(e,t[r].children,t[r].sel)}}function Xh(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),zh(n)?r=n:$h(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(zh(t)?r=t:$h(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)$h(r[i])&&(r[i]=Mh(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Yh(a,r,e),Mh(e,a,r,o,void 0)}function Zh(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const Jh={create:Zh,update:Zh};function Qh(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const eg={create:Qh,update:Qh},tg=/[A-Z]/g;function ng(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(tg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(tg,"-$&").toLowerCase(),i[r]))}const rg={create:ng,update:ng};function og(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)og(e[r],t,n)}function ig(e,t){const n=e.type,r=t.data.on;r&&r[n]&&og(r[n],t,e)}function ag(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){ig(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const ug={create:ag,update:ag,destroy:ag};function sg(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const lg={create:sg,update:sg},cg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let fg=!1;function dg(e,t,n){var r;r=function(){e[t]=n},cg((function(){cg(r)}))}function pg(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||dg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const hg={pre:function(){fg=!1},create:pg,update:pg,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;fg||(e.elm.offsetLeft,fg=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function gg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?gg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Mh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function vg(e,t,...n){const r=gg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Xh(e,t,r[0].text):Xh(e,t,r)}vg||(vg={});var yg,mg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,bg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wg="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Eg="["+wg+"]",Dg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",xg="\\d+",Cg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Sg="[^\\ud800-\\udfff"+wg+xg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ag="\\ud83c[\\udffb-\\udfff]",Og="[^\\ud800-\\udfff]",kg="(?:\\ud83c[\\udde6-\\uddff]){2}",Bg="[\\ud800-\\udbff][\\udc00-\\udfff]",Fg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Tg="(?:"+Cg+"|"+Sg+")",_g="(?:"+Fg+"|"+Sg+")",Pg="(?:"+Dg+"|"+Ag+")?",jg="[\\ufe0e\\ufe0f]?"+Pg+"(?:\\u200d(?:"+[Og,kg,Bg].join("|")+")[\\ufe0e\\ufe0f]?"+Pg+")*",Ng="(?:"+["[\\u2700-\\u27bf]",kg,Bg].join("|")+")"+jg,Ig="(?:"+[Og+Dg+"?",Dg,kg,Bg,"[\\ud800-\\udfff]"].join("|")+")",Lg=RegExp("[']","g"),Rg=RegExp(Dg,"g"),Mg=RegExp(Ag+"(?="+Ag+")|"+Ig+jg,"g"),zg=RegExp([Fg+"?"+Cg+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[Eg,Fg,"$"].join("|")+")",_g+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[Eg,Fg+Tg,"$"].join("|")+")",Fg+"?"+Tg+"+(?:['](?:d|ll|m|re|s|t|ve))?",Fg+"+(?:['](?:D|LL|M|RE|S|T|VE))?",xg,Ng].join("|"),"g"),$g=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Hg=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Vg="object"==typeof v&&v&&v.Object===Object&&v,Ug="object"==typeof self&&self&&self.Object===Object&&self,Wg=Vg||Ug||Function("return this")(),Gg=(yg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==yg?void 0:yg[e]});function qg(e){return $g.test(e)}var Kg=Object.prototype.toString,Yg=Wg.Symbol,Xg=Yg?Yg.prototype:void 0,Zg=Xg?Xg.toString:void 0;function Jg(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==Kg.call(t))return Zg?Zg.call(e):"";var t,n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}(e)}for(var Qg,ev=(Qg=function(e,t,n){return t=t.toLowerCase(),e+(n?tv(Jg(t).toLowerCase()):t)},function(e){return function(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)n=t(n,e[r],r,e);return n}(function(e,t){return e=Jg(e),void 0===t?(n=e,Hg.test(n)?function(e){return e.match(zg)||[]}(e):function(e){return e.match(mg)||[]}(e)):e.match(t)||[];var n}((t=e,(t=Jg(t))&&t.replace(bg,Gg).replace(Rg,"")).replace(Lg,"")),Qg,"");var t}),tv=function(e){var t=qg(e=Jg(e))?function(e){return qg(e)?e.match(Mg)||[]:(t=e,t.split(""));var t}(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n=void 0===n?r:n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r},nv=ev,rv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),ov={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},iv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:rv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},av={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},uv=1;uv<20;uv++)av["f"+uv]=111+uv;function sv(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in ov)r[ov[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=cv(d),g=ov[h];if(d.length>1&&!g&&!iv[d]&&!av[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=lv(d)),g&&(r[g]=!p||null)}}catch(v){s=!0,l=v}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&(null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r)return!1}return!0}(t,e)}))};return null==n?o:o(n)}function lv(e){return e=cv(e),av[e]||e.toUpperCase().charCodeAt(0)}function cv(e){return e=e.toLowerCase(),iv[e]||e}var fv=sv,dv=function(e,t){return sv(e,{byKey:!0},t)},pv=/^\s+|\s+$/g,hv=/^[-+]0x[0-9a-f]+$/i,gv=/^0b[01]+$/i,vv=/^0o[0-7]+$/i,yv=parseInt,mv="object"==typeof v&&v&&v.Object===Object&&v,bv="object"==typeof self&&self&&self.Object===Object&&self,wv=mv||bv||Function("return this")(),Ev=Object.prototype.toString,Dv=Math.max,xv=Math.min,Cv=function(){return wv.Date.now()};function Sv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Av(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||function(e){return!!e&&"object"==typeof e}(t)&&"[object Symbol]"==Ev.call(t))return NaN;var t;if(Sv(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=Sv(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(pv,"");var r=gv.test(e);return r||vv.test(e)?yv(e.slice(2),r?2:8):hv.test(e)?NaN:+e}var Ov,kv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=Cv();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?xv(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=Cv(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Av(t)||0,Sv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Dv(Av(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(Cv())},y},Bv=y((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",D="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[b]=P[w]=P[i]=P[a]=P[E]=P[D]=P[x]=P[C]=P[S]=P[l]=P[c]=P[f]=P[p]=P[h]=P[g]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[u]=P[m]=!1;var j="object"==typeof v&&v&&v.Object===Object&&v,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function H(e,t,n,r){for(var o=-1,i=e?e.length:0;++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ge),De=ze(ve),xe=re?re.prototype:void 0,Ce=xe?xe.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Ae(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Te(e,t,n,r,d,v,m){var T;if(r&&(T=v?r(e,d,v,m):r(e)),void 0!==T)return T;if(!Ge(e))return e;var _,j,N,I=He(e);if(I){if(j=(_=e).length,N=_.constructor(j),j&&"string"==typeof _[0]&&Q.call(_,"index")&&(N.index=_.index,N.input=_.input),T=N,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var L=Le(e),R=L==u||L==s;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||R&&!v){if(V(e))return v?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:Ge(t=ie(e))?ae(t):{};var t}(R?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,qe(t),e)}(T,e))}else{if(!P[L])return v?e:{};T=function(e,t,n,r){var o,u,s=e.constructor;switch(t){case b:return _e(e);case i:case a:return new s(+e);case w:return o=e,u=r?_e(o.buffer):o.buffer,new o.constructor(u,o.byteOffset,o.byteLength);case E:case D:case x:case C:case S:case A:case O:case k:case B:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return H(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case c:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return H(t?n(G(e),!0):G(e),$,new e.constructor)}(e,r,n);case y:return function(e){return Ce?Object(Ce.call(e)):{}}(e)}}(e,L,Te,t)}}m||(m=new ke);var M=m.get(e);if(M)return M;if(m.set(e,T),!I)var W=n?function(e){return function(e,t,n){var r=t(e);return He(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,qe,Ie)}(e):qe(e);return function(o){for(var i=-1,a=o?o.length:0;++i<a&&!1!==(u=o[i],s=i,W&&(u=e[s=u]),void Be(T,s,Te(u,t,n,r,s,e,m))););var u,s}(W||e),T}function _e(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Pe(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o];Be(n,a,e[a])}return n}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ge(e)||(t=e,Z&&Z in t))&&(We(e)||V(e)?te:T).test(ze(e));var t}(o)?o:void 0}Se.prototype.clear=function(){this.__data__=ye?ye(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0||(n==t.length-1?t.pop():se.call(t,n,1),0))},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Se,map:new(pe||Ae),string:new Se}},Oe.prototype.delete=function(e){return je(this,e).delete(e)},Oe.prototype.get=function(e){return je(this,e).get(e)},Oe.prototype.has=function(e){return je(this,e).has(e)},Oe.prototype.set=function(e,t){return je(this,e).set(e,t),this},ke.prototype.clear=function(){this.__data__=new Ae},ke.prototype.delete=function(e){return this.__data__.delete(e)},ke.prototype.get=function(e){return this.__data__.get(e)},ke.prototype.has=function(e){return this.__data__.has(e)},ke.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var Ie=le?W(le,Object):function(){return[]},Le=function(e){return ee.call(e)};function Re(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function ze(e){if(null!=e){try{return J.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Le(new de(new ArrayBuffer(1)))!=w||pe&&Le(new pe)!=l||he&&Le(he.resolve())!=d||ge&&Le(new ge)!=h||ve&&Le(new ve)!=m)&&(Le=function(e){var t=ee.call(e),n=t==f?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return l;case we:return d;case Ee:return h;case De:return m}return t});var He=Array.isArray;function Ve(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!We(e);var t}var Ue=ce||function(){return!1};function We(e){var t=Ge(e)?ee.call(e):"";return t==u||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e){var t,n,r=He(e)||function(e){return!!e&&"object"==typeof e}(n=t=e)&&Ve(n)&&Q.call(t,"callee")&&(!ue.call(t,"callee")||ee.call(t)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=r.length,a=!!i;for(var u in e)!Q.call(e,u)||a&&("length"==u||Re(u,i))||r.push(u);return r}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}));function Fv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tv=0;function _v(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}function Pv(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const o of Object.keys(t))if("_"!==o){let e=t[o];"string"==typeof e&&(e=n[Symbol.replace](e,"$$$$")),r=_v(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var jv=(Ov=function(e){return"__private_"+Tv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Ov,{value:Nv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Fv(this,Ov)[Ov],this):Fv(this,Ov)[Ov](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(n=this.locale.strings,r=e,!Object.prototype.hasOwnProperty.call(n,r))throw new Error(`missing string: ${e}`);var n,r;const o=this.locale.strings[e];if("object"==typeof o){if(t&&void 0!==t.smart_count)return Pv(o[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return Pv(o,t)}});function Nv(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Iv=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){for(var r=0,o=t.length;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},Lv={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},Rv=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function Mv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Mv.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var zv=/[\/\+\.]/,$v=0;var Hv=function(e){return"__private_"+$v+++"_"+e}("publish");class Vv{constructor(){Object.defineProperty(this,Hv,{value:Uv}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,Hv)[Hv](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Uv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Vv.VERSION="2.0.3";var Wv=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Gv={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function qv(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var Kv=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||r>18||18===r&&o>=18218};function Yv(e){return e<10?`0${e}`:e.toString()}var Xv=function(){const e=new Date;return`${Yv(e.getHours())}:${Yv(e.getMinutes())}:${Yv(e.getSeconds())}`},Zv={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Xv()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Xv()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Xv()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Xv()}]`,...t)}}},Jv={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Qv=Lv;let ey,ty;function ny(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ry=0;function oy(e){return"__private_"+ry+++"_"+e}const{nanoid:iy}=Qv,{justErrorsLogger:ay,debugLogger:uy}=Zv;class sy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class ly extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var cy=oy("plugins"),fy=oy("storeUnsubscribe"),dy=oy("emitter"),py=oy("preProcessors"),hy=oy("uploaders"),gy=oy("postProcessors"),vy=oy("checkRestrictions"),yy=oy("checkMinNumberOfFiles"),my=oy("checkRequiredMetaFieldsOnFile"),by=oy("checkRequiredMetaFields"),wy=oy("showOrLogErrorAndThrow"),Ey=oy("assertNewUploadAllowed"),Dy=oy("checkAndCreateFileStateObject"),xy=oy("startIfAutoProceed"),Cy=oy("addListeners"),Sy=oy("updateOnlineStatus"),Ay=oy("createUpload"),Oy=oy("getUpload"),ky=oy("removeUpload"),By=oy("runUpload");ey=Symbol.for("uppy test: getPlugins"),ty=Symbol.for("uppy test: createUpload");class Fy{constructor(e){Object.defineProperty(this,By,{value:Vy}),Object.defineProperty(this,ky,{value:Hy}),Object.defineProperty(this,Oy,{value:$y}),Object.defineProperty(this,Ay,{value:zy}),Object.defineProperty(this,Cy,{value:My}),Object.defineProperty(this,xy,{value:Ry}),Object.defineProperty(this,Dy,{value:Ly}),Object.defineProperty(this,Ey,{value:Iy}),Object.defineProperty(this,wy,{value:Ny}),Object.defineProperty(this,by,{value:jy}),Object.defineProperty(this,my,{value:Py}),Object.defineProperty(this,yy,{value:_y}),Object.defineProperty(this,vy,{value:Ty}),Object.defineProperty(this,cy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,fy,{writable:!0,value:void 0}),Object.defineProperty(this,dy,{writable:!0,value:Iv()}),Object.defineProperty(this,py,{writable:!0,value:new Set}),Object.defineProperty(this,hy,{writable:!0,value:new Set}),Object.defineProperty(this,gy,{writable:!0,value:new Set}),Object.defineProperty(this,Sy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Jv;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Vv,logger:ay,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=uy),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Lh(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Kv(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ny(this,fy)[fy]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),ny(this,Cy)[Cy]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];ny(this,dy)[dy].emit(e,...n)}on(e,t){return ny(this,dy)[dy].on(e,t),this}once(e,t){return ny(this,dy)[dy].once(e,t),this}off(e,t){return ny(this,dy)[dy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Cant set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new jv([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ny(this,py)[py].add(e)}removePreProcessor(e){return ny(this,py)[py].delete(e)}addPostProcessor(e){ny(this,gy)[gy].add(e)}removePostProcessor(e){return ny(this,gy)[gy].delete(e)}addUploader(e){ny(this,hy)[hy].add(e)}removeUploader(e){return ny(this,hy)[hy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return ny(this,vy)[vy](e,t),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){ny(this,Ey)[Ey](e);const{files:t}=this.getState();let n=ny(this,Dy)[Dy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),ny(this,xy)[xy](),n.id}addFiles(e){ny(this,Ey)[Ey]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=ny(this,Dy)[Dy](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(o){o.isRestriction||r.push(o)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&ny(this,xy)[xy](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=ny(this,Ay)[Ay](t,{forceAllowNewUpload:!0});return ny(this,By)[By](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=ny(this,Ay)[Ay]([e],{forceAllowNewUpload:!0});return ny(this,By)[By](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in ny(this,cy)[cy]?ny(this,cy)[cy][n.type].push(n):ny(this,cy)[cy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(ny(this,cy)[cy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[ey](e){return ny(this,cy)[cy][e]}iteratePlugins(e){Object.values(ny(this,cy)[cy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=ny(this,cy)[cy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ny(this,fy)[fy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",ny(this,Sy)[Sy]),window.removeEventListener("offline",ny(this,Sy)[Sy]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ny(this,By)[By](e):(ny(this,ky)[ky](e),Promise.reject(new Error("Nonexistent upload")))}[ty](){return ny(this,Ay)[Ay](...arguments)}addResultData(e,t){if(!ny(this,Oy)[Oy](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=ny(this,cy)[cy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{ny(this,yy)[yy](t),ny(this,by)[by](t)})).catch((e=>{ny(this,wy)[wy](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=ny(this,Ay)[Ay](r);return ny(this,By)[By](o)})).catch((e=>{ny(this,wy)[wy](e,{showInformer:!1})})))}}function Ty(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new sy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&function(e,t){function n(t){var n=function(e,t){var n=new Mv(e,zv||/[\/\.]/);return void 0!==t?n.match(t):n}(t,e);return n&&n.length>=2}return t?n(t.split(";")[0]):n}(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new sy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new sy(this.i18n("exceedsSize",{size:Rv(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new sy(this.i18n("exceedsSize",{size:Rv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new sy(this.i18n("inferiorSize",{size:Rv(r)}))}function _y(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new sy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Py(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new sy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),ny(this,wy)[wy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function jy(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return ny(this,my)[my](t)}));if(t.length)throw new ly(t,`${this.i18n("missingRequiredMetaField")}`)}function Ny(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function Iy(e){const{allowNewUpload:t}=this.getState();!1===t&&ny(this,wy)[wy](new sy(this.i18n("noMoreFilesAllowed")),{file:e})}function Ly(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Wv(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Gv?Gv[n]:"application/octet-stream"}(t),r=(u=n,(s=t).name?s.name:"image"===u.split("/")[0]?`${u.split("/")[0]}.${u.split("/")[1]}`:"noname"),o=Wv(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${qv(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${qv(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});var u,s;if(this.checkIfFileAlreadyExists(a)){const e=new sy(this.i18n("noDuplicates",{fileName:r}));ny(this,wy)[wy](e,{file:t})}const l=t.meta||{};l.name=r,l.type=n;const c=Number.isFinite(t.data.size)?t.data.size:null;let f={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...l},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:i,remote:t.remote||"",preview:t.preview};const d=this.opts.onBeforeFileAdded(f,e);!1===d?ny(this,wy)[wy](new sy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof d&&null!==d&&(f=d);try{const t=Object.keys(e).map((t=>e[t]));ny(this,vy)[vy](f,t)}catch(u){ny(this,wy)[wy](u,{file:f})}return f}function Ry(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function My(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),ny(this,wy)[wy](e,{throwErr:!1})}else ny(this,wy)[wy](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:ny(this,gy)[gy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&ny(this,my)[my](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",ny(this,Sy)[Sy]),window.addEventListener("offline",ny(this,Sy)[Sy]),setTimeout(ny(this,Sy)[Sy],3e3))}function zy(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=iy();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function $y(e){const{currentUploads:t}=this.getState();return t[e]}function Hy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Vy(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...ny(this,py)[py],...ny(this,hy)[hy],...ny(this,gy)[gy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),ny(this,ky)[ky](e),a}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),ny(this,ky)[ky](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Fy.VERSION="2.1.3";var Uy=Fy,Wy=y((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var e;D.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function x(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,D=r&&r.__k||f,x=D.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):Array.isArray(g)?v(y,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=D[d])||h&&g.key==h.key&&g.type===h.type)D[d]=void 0;else for(p=0;p<x;p++){if((h=D[p])&&g.key==h.key&&g.type===h.type){D[p]=void 0;break}h=null}F(e,g,h=h||c,o,i,a,u,s,l),m=g.__e,(p=g.ref)&&h.ref!=p&&(E||(E=[]),h.ref&&E.push(h.ref,null,g),E.push(p,g.__c||m,g)),null!=m?(null==w&&(w=m),"function"==typeof g.type&&g.__k===h.__k?g.__d=s=C(g,s,e):s=S(e,g,h,D,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=x;d--;)null!=D[d]&&("function"==typeof n.type&&null!=D[d].__e&&D[d].__e==n.__d&&(n.__d=b(r,d+1)),P(D[d],D[d]));if(E)for(d=0;d<E.length;d++)_(E[d],E[++d],E[++d])}function C(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?C(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function k(e){this.l[e.type+!1](r.event?r.event(e):e)}function B(e){this.l[e.type+!0](r.event?r.event(e):e)}function F(e,t,o,i,a,u,s,l,f){var d,g,v,w,E,D,C,S,A,k,B,F=t.type;if(void 0!==t.constructor)return null;null!=o.__h&&(f=o.__h,l=t.__e=o.__e,t.__h=null,u=[l]),(d=r.__b)&&d(t);try{e:if("function"==typeof F){if(S=t.props,A=(d=F.contextType)&&i[d.__c],k=d?A?A.props.value:d.__:i,o.__c?C=(g=t.__c=o.__c).__=g.__E:("prototype"in F&&F.prototype.render?t.__c=g=new F(S,k):(t.__c=g=new m(S,k),g.constructor=F,g.render=j),A&&A.sub(g),g.props=S,g.state||(g.state={}),g.context=k,g.__n=i,v=g.__d=!0,g.__h=[]),null==g.__s&&(g.__s=g.state),null!=F.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=p({},g.__s)),p(g.__s,F.getDerivedStateFromProps(S,g.__s))),w=g.props,E=g.state,v)null==F.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(null==F.getDerivedStateFromProps&&S!==w&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(S,k),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(S,g.__s,k)||t.__v===o.__v){g.props=S,g.state=g.__s,t.__v!==o.__v&&(g.__d=!1),g.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach((function(e){e&&(e.__=t)})),g.__h.length&&s.push(g);break e}null!=g.componentWillUpdate&&g.componentWillUpdate(S,g.__s,k),null!=g.componentDidUpdate&&g.__h.push((function(){g.componentDidUpdate(w,E,D)}))}g.context=k,g.props=S,g.state=g.__s,(d=r.__r)&&d(t),g.__d=!1,g.__v=t,g.__P=e,d=g.render(g.props,g.state,g.context),g.state=g.__s,null!=g.getChildContext&&(i=p(p({},i),g.getChildContext())),v||null==g.getSnapshotBeforeUpdate||(D=g.getSnapshotBeforeUpdate(w,E)),B=null!=d&&d.type===y&&null==d.key?d.props.children:d,x(e,Array.isArray(B)?B:[B],t,o,i,a,u,s,l,f),g.base=t.__e,t.__h=null,g.__h.length&&s.push(g),C&&(g.__E=g.__=null),g.__e=!1}else null==u&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=function(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,g=t.props,v=t.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,s=!1}if(null===v)p===g||s&&e.data===g||(e.data=g);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,g,p,i,s),d)t.__k=[];else if(y=t.props.children,x(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&O(e,"value",y,p.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}(o.__e,t,o,i,a,u,s,f);(d=r.diffed)&&d(t)}catch(T){t.__v=null,(f||null!=u)&&(t.__e=l,t.__h=!!f,u[u.indexOf(l)]=null),r.__e(T,t,o)}}function T(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){r.__e(n,t.__v)}}))}function _(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(o){r.__e(o,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||_(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){r.__e(a,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function j(e,t,n){return this.constructor(e,n)}function N(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],F(t,e=(!i&&o||t).__k=g(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),T(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(i){e=i}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,D.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),v(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(E)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=g,t.createRef=function(){return{current:null}},t.h=g,t.hydrate=function e(t,n){N(t,n,e)},t.isValidElement=i,t.options=r,t.render=N,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Gy=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new jv([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function qy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ky=0;const{render:Yy}=Wy;var Xy=function(e){return"__private_"+Ky+++"_"+e}("updateUI");class Zy extends Gy{constructor(){super(...arguments),Object.defineProperty(this,Xy,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n}(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return qy(this,Xy)[Xy]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(Yy(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Yy(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Zy)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=qy(this,Xy))[Xy])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Jy=Zy;const{debugLogger:Qy}=Zv;var em=Uy,tm=Uy,nm=Jy,rm=Gy,om=Qy;em.Uppy=tm,em.UIPlugin=nm,em.BasePlugin=rm,em.debugLogger=om;class im extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var am=im,um=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new am(e)}))};class sm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var lm,cm,fm,dm,pm,hm=sm;function gm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vm=0;function ym(e){return"__private_"+vm+++"_"+e}async function mm(e){if(401===e.status)throw new hm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var bm=(cm=ym("getPostResponseFunc"),fm=ym("getUrl"),dm=ym("errorHandler"),pm=lm=class e{constructor(e,t){Object.defineProperty(this,dm,{value:Em}),Object.defineProperty(this,fm,{value:wm}),Object.defineProperty(this,cm,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(gm(this,fm)[fm](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>um(gm(this,fm)[fm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(gm(this,cm)[cm](t)).then(mm).catch(gm(this,dm)[dm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>um(gm(this,fm)[fm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(gm(this,cm)[cm](n)).then(mm).catch(gm(this,dm)[dm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>um(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(gm(this,cm)[cm](n)).then(mm).catch(gm(this,dm)[dm](r,e))}},lm.VERSION="2.0.4",lm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${lm.VERSION}`},pm);function wm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Em(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${gm(this,fm)[fm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Dm,xm,Cm,Sm,Am,Om={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};let km,Bm;function Fm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Tm=0;function _m(e){return"__private_"+Tm+++"_"+e}var Pm,jm,Nm=(Dm=_m("queued"),xm=_m("emitter"),Cm=_m("isOpen"),Sm=_m("socket"),Am=_m("handleMessage"),km=Symbol.for("uppy test: getSocket"),Bm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Dm,{writable:!0,value:[]}),Object.defineProperty(this,xm,{writable:!0,value:Iv()}),Object.defineProperty(this,Cm,{writable:!0,value:!1}),Object.defineProperty(this,Sm,{writable:!0,value:void 0}),Object.defineProperty(this,Am,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(t){console.log(t)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Fm(this,Cm)[Cm]}[km](){return Fm(this,Sm)[Sm]}[Bm](){return Fm(this,Dm)[Dm]}open(){Fm(this,Sm)[Sm]=new WebSocket(this.opts.target),Fm(this,Sm)[Sm].onopen=()=>{for(Fm(this,Cm)[Cm]=!0;Fm(this,Dm)[Dm].length>0&&Fm(this,Cm)[Cm];){const e=Fm(this,Dm)[Dm].shift();this.send(e.action,e.payload)}},Fm(this,Sm)[Sm].onclose=()=>{Fm(this,Cm)[Cm]=!1},Fm(this,Sm)[Sm].onmessage=Fm(this,Am)[Am]}close(){var e;null==(e=Fm(this,Sm)[Sm])||e.close()}send(e,t){Fm(this,Cm)[Cm]?Fm(this,Sm)[Sm].send(JSON.stringify({action:e,payload:t})):Fm(this,Dm)[Dm].push({action:e,payload:t})}on(e,t){Fm(this,xm)[xm].on(e,t)}emit(e,t){Fm(this,xm)[xm].emit(e,t)}once(e,t){Fm(this,xm)[xm].once(e,t)}}),Im={RequestClient:bm,Provider:class extends bm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(()=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||Om}},Socket:Nm},Lm=Lh((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function Rm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Mm=0;function zm(e){return"__private_"+Mm+++"_"+e}var $m=(Pm=zm("emitter"),jm=zm("events"),class{constructor(e){Object.defineProperty(this,Pm,{writable:!0,value:void 0}),Object.defineProperty(this,jm,{writable:!0,value:[]}),Rm(this,Pm)[Pm]=e}on(e,t){return Rm(this,jm)[jm].push([e,t]),Rm(this,Pm)[Pm].on(e,t)}remove(){for(const[e,t]of Rm(this,jm)[jm].splice(0))Rm(this,Pm)[Pm].off(e,t)}});function Hm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Vm=0;function Um(e){return"__private_"+Vm+++"_"+e}var Wm=Um("aliveTimer"),Gm=Um("isDone"),qm=Um("onTimedOut"),Km=Um("timeout"),Ym=class{constructor(e,t){Object.defineProperty(this,Wm,{writable:!0,value:void 0}),Object.defineProperty(this,Gm,{writable:!0,value:!1}),Object.defineProperty(this,qm,{writable:!0,value:void 0}),Object.defineProperty(this,Km,{writable:!0,value:void 0}),Hm(this,Km)[Km]=e,Hm(this,qm)[qm]=t}progress(){Hm(this,Gm)[Gm]||Hm(this,Km)[Km]>0&&(clearTimeout(Hm(this,Wm)[Wm]),Hm(this,Wm)[Wm]=setTimeout(Hm(this,qm)[qm],Hm(this,Km)[Km]))}done(){Hm(this,Gm)[Gm]||(clearTimeout(Hm(this,Wm)[Wm]),Hm(this,Wm)[Wm]=null,Hm(this,Gm)[Gm]=!0)}};function Xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zm=0;function Jm(e){return"__private_"+Zm+++"_"+e}var Qm=Jm("activeRequests"),eb=Jm("queuedHandlers"),tb=Jm("call"),nb=Jm("queueNext"),rb=Jm("next"),ob=Jm("queue"),ib=Jm("dequeue");function ab(e){Xm(this,Qm)[Qm]+=1;let t,n=!1;try{t=e()}catch(r){throw Xm(this,Qm)[Qm]-=1,r}return{abort:()=>{n||(n=!0,Xm(this,Qm)[Qm]-=1,t(),Xm(this,nb)[nb]())},done:()=>{n||(n=!0,Xm(this,Qm)[Qm]-=1,Xm(this,nb)[nb]())}}}function ub(){queueMicrotask((()=>Xm(this,rb)[rb]()))}function sb(){if(Xm(this,Qm)[Qm]>=this.limit)return;if(0===Xm(this,eb)[eb].length)return;const e=Xm(this,eb)[eb].shift(),t=Xm(this,tb)[tb](e.fn);e.abort=t.abort,e.done=t.done}function lb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Xm(this,ib)[ib](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Xm(this,eb)[eb].findIndex((e=>n.priority>e.priority));return-1===r?Xm(this,eb)[eb].push(n):Xm(this,eb)[eb].splice(r,0,n),n}function cb(e){const t=Xm(this,eb)[eb].indexOf(e);-1!==t&&Xm(this,eb)[eb].splice(t,1)}var fb,db,pb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,ib,{value:cb}),Object.defineProperty(this,ob,{value:lb}),Object.defineProperty(this,rb,{value:sb}),Object.defineProperty(this,nb,{value:ub}),Object.defineProperty(this,tb,{value:ab}),Object.defineProperty(this,Qm,{writable:!0,value:0}),Object.defineProperty(this,eb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Xm(this,Qm)[Qm]<this.limit?Xm(this,tb)[tb](e):Xm(this,ob)[ob](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(u){n=Promise.reject(u)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},hb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},gb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:vb}=Qv,{Provider:yb,RequestClient:mb,Socket:bb}=Im,{RateLimitedQueue:wb,internalRateLimitedQueue:Eb}=pb;function Db(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),hb(e)?(n=new am(n,e),n):(n.request=e,n)}function xb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Cb=(db=fb=class extends Gy{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=gb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(r){e.log(r)}return n},getResponseError(e,t){let n=new Error("Upload error");return hb(t)&&(n=new am(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Eb in this.opts?this.requests=this.opts[Eb]:this.requests=new wb(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=xb(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=xb(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new $m(this.uppy);const a=new Ym(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=vb();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=Db(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=Db(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]})),new(e.remote.providerOptions.provider?yb:mb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new bb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new $m(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>Lm(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Ym(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[Eb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Cant upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},fb.VERSION="2.0.6",db),Sb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ab(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ob,kb,Bb=function(e){return e&&e.Math==Math&&e},Fb=Bb("object"==typeof globalThis&&globalThis)||Bb("object"==typeof window&&window)||Bb("object"==typeof self&&self)||Bb("object"==typeof Sb&&Sb)||function(){return this}()||Function("return this")(),Tb=Object.defineProperty,_b=function(e,t){try{Tb(Fb,e,{value:t,configurable:!0,writable:!0})}catch(J_){Fb[e]=t}return t},Pb=Fb["__core-js_shared__"]||_b("__core-js_shared__",{}),jb=Ab((function(e){(e.exports=function(e,t){return Pb[e]||(Pb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Nb=Function.prototype,Ib=Nb.bind,Lb=Nb.call,Rb=Ib&&Ib.bind(Lb),Mb=Ib?function(e){return e&&Rb(Lb,e)}:function(e){return e&&function(){return Lb.apply(e,arguments)}},zb=Fb.TypeError,$b=function(e){if(null==e)throw zb("Can't call method on "+e);return e},Hb=Fb.Object,Vb=function(e){return Hb($b(e))},Ub=Mb({}.hasOwnProperty),Wb=Object.hasOwn||function(e,t){return Ub(Vb(e),t)},Gb=0,qb=Math.random(),Kb=Mb(1..toString),Yb=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Kb(++Gb+qb,36)},Xb=function(e){return"function"==typeof e},Zb=function(e,t){return arguments.length<2?function(e){return Xb(e)?e:void 0}(Fb[e]):Fb[e]&&Fb[e][t]},Jb=Zb("navigator","userAgent")||"",Qb=Fb.process,ew=Fb.Deno,tw=Qb&&Qb.versions||ew&&ew.version,nw=tw&&tw.v8;nw&&(kb=(Ob=nw.split("."))[0]>0&&Ob[0]<4?1:+(Ob[0]+Ob[1])),!kb&&Jb&&(!(Ob=Jb.match(/Edge\/(\d+)/))||Ob[1]>=74)&&(Ob=Jb.match(/Chrome\/(\d+)/))&&(kb=+Ob[1]);var rw=kb,ow=function(e){try{return!!e()}catch(t){return!0}},iw=!!Object.getOwnPropertySymbols&&!ow((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rw&&rw<41})),aw=iw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,uw=jb("wks"),sw=Fb.Symbol,lw=sw&&sw.for,cw=aw?sw:sw&&sw.withoutSetter||Yb,fw=function(e){if(!Wb(uw,e)||!iw&&"string"!=typeof uw[e]){var t="Symbol."+e;iw&&Wb(sw,e)?uw[e]=sw[e]:uw[e]=aw&&lw?lw(t):cw(t)}return uw[e]},dw={};dw[fw("toStringTag")]="z";var pw="[object z]"===String(dw),hw=!ow((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gw=function(e){return"object"==typeof e?null!==e:Xb(e)},vw=Fb.document,yw=gw(vw)&&gw(vw.createElement),mw=function(e){return yw?vw.createElement(e):{}},bw=!hw&&!ow((function(){return 7!=Object.defineProperty(mw("div"),"a",{get:function(){return 7}}).a})),ww=Fb.String,Ew=Fb.TypeError,Dw=function(e){if(gw(e))return e;throw Ew(ww(e)+" is not an object")},xw=Function.prototype.call,Cw=xw.bind?xw.bind(xw):function(){return xw.apply(xw,arguments)},Sw=Mb({}.isPrototypeOf),Aw=Fb.Object,Ow=aw?function(e){return"symbol"==typeof e}:function(e){var t=Zb("Symbol");return Xb(t)&&Sw(t.prototype,Aw(e))},kw=Fb.String,Bw=function(e){try{return kw(e)}catch(t){return"Object"}},Fw=Fb.TypeError,Tw=function(e){if(Xb(e))return e;throw Fw(Bw(e)+" is not a function")},_w=function(e,t){var n=e[t];return null==n?void 0:Tw(n)},Pw=Fb.TypeError,jw=Fb.TypeError,Nw=fw("toPrimitive"),Iw=function(e){var t=function(e){if(!gw(e)||Ow(e))return e;var t,n=_w(e,Nw);if(n){if(t=Cw(n,e,"string"),!gw(t)||Ow(t))return t;throw jw("Can't convert object to primitive value")}return function(e){var t,n;if(Xb(t=e.toString)&&!gw(n=Cw(t,e)))return n;if(Xb(t=e.valueOf)&&!gw(n=Cw(t,e)))return n;throw Pw("Can't convert object to primitive value")}(e)}(e);return Ow(t)?t:t+""},Lw=Fb.TypeError,Rw=Object.defineProperty,Mw={f:hw?Rw:function(e,t,n){if(Dw(e),t=Iw(t),Dw(n),bw)try{return Rw(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Lw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},zw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$w=hw?function(e,t,n){return Mw.f(e,t,zw(1,n))}:function(e,t,n){return e[t]=n,e},Hw=Mb(Function.toString);Xb(Pb.inspectSource)||(Pb.inspectSource=function(e){return Hw(e)});var Vw,Uw,Ww,Gw=Pb.inspectSource,qw=Fb.WeakMap,Kw=Xb(qw)&&/native code/.test(Gw(qw)),Yw=jb("keys"),Xw=function(e){return Yw[e]||(Yw[e]=Yb(e))},Zw={},Jw=Fb.TypeError,Qw=Fb.WeakMap;if(Kw||Pb.state){var eE=Pb.state||(Pb.state=new Qw),tE=Mb(eE.get),nE=Mb(eE.has),rE=Mb(eE.set);Vw=function(e,t){if(nE(eE,e))throw new Jw("Object already initialized");return t.facade=e,rE(eE,e,t),t},Uw=function(e){return tE(eE,e)||{}},Ww=function(e){return nE(eE,e)}}else{var oE=Xw("state");Zw[oE]=!0,Vw=function(e,t){if(Wb(e,oE))throw new Jw("Object already initialized");return t.facade=e,$w(e,oE,t),t},Uw=function(e){return Wb(e,oE)?e[oE]:{}},Ww=function(e){return Wb(e,oE)}}var iE={set:Vw,get:Uw,has:Ww,enforce:function(e){return Ww(e)?Uw(e):Vw(e,{})},getterFor:function(e){return function(t){var n;if(!gw(t)||(n=Uw(t)).type!==e)throw Jw("Incompatible receiver, "+e+" required");return n}}},aE=Function.prototype,uE=hw&&Object.getOwnPropertyDescriptor,sE=Wb(aE,"name"),lE={EXISTS:sE,PROPER:sE&&"something"===function(){}.name,CONFIGURABLE:sE&&(!hw||hw&&uE(aE,"name").configurable)},cE=Ab((function(e){var t=lE.CONFIGURABLE,n=iE.get,r=iE.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Xb(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Wb(i,"name")||t&&i.name!==f)&&$w(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Fb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:$w(e,n,i)):l?e[n]=i:_b(n,i)})(Function.prototype,"toString",(function(){return Xb(this)&&n(this).source||Gw(this)}))})),fE=Mb({}.toString),dE=Mb("".slice),pE=function(e){return dE(fE(e),8,-1)},hE=fw("toStringTag"),gE=Fb.Object,vE="Arguments"==pE(function(){return arguments}()),yE=pw?pE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=gE(e),hE))?n:vE?pE(t):"Object"==(r=pE(t))&&Xb(t.callee)?"Arguments":r},mE=pw?{}.toString:function(){return"[object "+yE(this)+"]"};pw||cE(Object.prototype,"toString",mE,{unsafe:!0});var bE={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},wE=mw("span").classList,EE=wE&&wE.constructor&&wE.constructor.prototype,DE=EE===Object.prototype?void 0:EE,xE=Mb(Mb.bind),CE=function(e,t){return Tw(e),void 0===t?e:xE?xE(e,t):function(){return e.apply(t,arguments)}},SE=Fb.Object,AE=Mb("".split),OE=ow((function(){return!SE("z").propertyIsEnumerable(0)}))?function(e){return"String"==pE(e)?AE(e,""):SE(e)}:SE,kE=Math.ceil,BE=Math.floor,FE=function(e){var t=+e;return t!=t||0===t?0:(t>0?BE:kE)(t)},TE=Math.min,_E=function(e){return e>0?TE(FE(e),9007199254740991):0},PE=function(e){return _E(e.length)},jE=Array.isArray||function(e){return"Array"==pE(e)},NE=function(){},IE=[],LE=Zb("Reflect","construct"),RE=/^\s*(?:class|function)\b/,ME=Mb(RE.exec),zE=!RE.exec(NE),$E=function(e){if(!Xb(e))return!1;try{return LE(NE,IE,e),!0}catch(t){return!1}},HE=!LE||ow((function(){var e;return $E($E.call)||!$E(Object)||!$E((function(){e=!0}))||e}))?function(e){if(!Xb(e))return!1;switch(yE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zE||!!ME(RE,Gw(e))}:$E,VE=fw("species"),UE=Fb.Array,WE=function(e,t){return new(jE(n=e)&&(r=n.constructor,(HE(r)&&(r===UE||jE(r.prototype))||gw(r)&&null===(r=r[VE]))&&(r=void 0)),void 0===r?UE:r)(0===t?0:t);var n,r},GE=Mb([].push),qE=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Vb(s),g=OE(h),v=CE(l,c),y=PE(g),m=0,b=f||WE,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:GE(w,d)}else switch(e){case 4:return!1;case 7:GE(w,d)}return i?-1:r||o?o:w}},KE={forEach:qE(0),map:qE(1),filter:qE(2),find:qE(5),findIndex:qE(6)},YE=function(e,t){var n=[][e];return!!n&&ow((function(){n.call(null,t||function(){throw 1},1)}))},XE=KE.forEach,ZE=YE("forEach")?[].forEach:function(e){return XE(this,e,arguments.length>1?arguments[1]:void 0)},JE=function(e){if(e&&e.forEach!==ZE)try{$w(e,"forEach",ZE)}catch(t){e.forEach=ZE}};for(var QE in bE)bE[QE]&&JE(Fb[QE]&&Fb[QE].prototype);JE(DE);var eD={}.propertyIsEnumerable,tD=Object.getOwnPropertyDescriptor,nD=tD&&!eD.call({1:2},1)?function(e){var t=tD(this,e);return!!t&&t.enumerable}:eD,rD={f:nD},oD=function(e){return OE($b(e))},iD=Object.getOwnPropertyDescriptor,aD={f:hw?iD:function(e,t){if(e=oD(e),t=Iw(t),bw)try{return iD(e,t)}catch(n){}if(Wb(e,t))return zw(!Cw(rD.f,e,t),e[t])}},uD=Math.max,sD=Math.min,lD=function(e,t){var n=FE(e);return n<0?uD(n+t,0):sD(n,t)},cD=function(e){return function(t,n,r){var o,i=oD(t),a=PE(i),u=lD(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},fD={includes:cD(!0),indexOf:cD(!1)},dD=fD.indexOf,pD=Mb([].push),hD=function(e,t){var n,r=oD(e),o=0,i=[];for(n in r)!Wb(Zw,n)&&Wb(r,n)&&pD(i,n);for(;t.length>o;)Wb(r,n=t[o++])&&(~dD(i,n)||pD(i,n));return i},gD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vD=gD.concat("length","prototype"),yD={f:Object.getOwnPropertyNames||function(e){return hD(e,vD)}},mD={f:Object.getOwnPropertySymbols},bD=Mb([].concat),wD=Zb("Reflect","ownKeys")||function(e){var t=yD.f(Dw(e)),n=mD.f;return n?bD(t,n(e)):t},ED=function(e,t){for(var n=wD(t),r=Mw.f,o=aD.f,i=0;i<n.length;i++){var a=n[i];Wb(e,a)||r(e,a,o(t,a))}},DD=/#|\.prototype\./,xD=function(e,t){var n=SD[CD(e)];return n==OD||n!=AD&&(Xb(t)?ow(t):!!t)},CD=xD.normalize=function(e){return String(e).replace(DD,".").toLowerCase()},SD=xD.data={},AD=xD.NATIVE="N",OD=xD.POLYFILL="P",kD=xD,BD=aD.f,FD=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Fb:l?Fb[u]||_b(u,{}):(Fb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=BD(n,r))&&a.value:n[r],!kD(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ED(i,o)}(e.sham||o&&o.sham)&&$w(i,"sham",!0),cE(n,r,i,e)}},TD=Object.keys||function(e){return hD(e,gD)},_D=ow((function(){TD(1)}));function PD(e){return"[object Object]"===Object.prototype.toString.call(e)}FD({target:"Object",stat:!0,forced:_D},{keys:function(e){return TD(Vb(e))}});var jD={isHistory(e){return!1!==PD(t=e)&&(void 0===(n=t.constructor)||!1!==PD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||_f.isOperationList(e.redos[0]))&&(0===e.undos.length||_f.isOperationList(e.undos[0]));var t,n,r}},ND=new WeakMap,ID=new WeakMap,LD={isHistoryEditor:e=>jD.isHistory(e.history)&&Cf.isEditor(e),isMerging:e=>ID.get(e),isSaving:e=>ND.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=LD.isMerging(e);ID.set(e,!1),t(),ID.set(e,n)},withoutSaving(e,t){var n=LD.isSaving(e);ND.set(e,!1),t(),ND.set(e,n)}},RD=Fb.String,MD=function(e){if("Symbol"===yE(e))throw TypeError("Cannot convert a Symbol value to a string");return RD(e)},zD=function(){var e=Dw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},$D=lE.PROPER,HD=RegExp.prototype,VD=HD.toString,UD=Mb(zD),WD=ow((function(){return"/a/b"!=VD.call({source:"a",flags:"b"})})),GD=$D&&"toString"!=VD.name;(WD||GD)&&cE(RegExp.prototype,"toString",(function(){var e=Dw(this),t=MD(e.source),n=e.flags;return"/"+t+"/"+MD(void 0===n&&Sw(HD,e)&&!("flags"in HD)?UD(e):n)}),{unsafe:!0});var qD,KD=hw?Object.defineProperties:function(e,t){Dw(e);for(var n,r=oD(t),o=TD(t),i=o.length,a=0;i>a;)Mw.f(e,n=o[a++],r[n]);return e},YD=Zb("document","documentElement"),XD=Xw("IE_PROTO"),ZD=function(){},JD=function(e){return"<script>"+e+"<\/script>"},QD=function(e){e.write(JD("")),e.close();var t=e.parentWindow.Object;return e=null,t},ex=function(){try{qD=new ActiveXObject("htmlfile")}catch(r){}var e,t;ex="undefined"!=typeof document?document.domain&&qD?QD(qD):((t=mw("iframe")).style.display="none",YD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(JD("document.F=Object")),e.close(),e.F):QD(qD);for(var n=gD.length;n--;)delete ex.prototype[gD[n]];return ex()};Zw[XD]=!0;var tx=Object.create||function(e,t){var n;return null!==e?(ZD.prototype=Dw(e),n=new ZD,ZD.prototype=null,n[XD]=e):n=ex(),void 0===t?n:KD(n,t)},nx=fw("unscopables"),rx=Array.prototype;null==rx[nx]&&Mw.f(rx,nx,{configurable:!0,value:tx(null)});var ox=function(e){rx[nx][e]=!0},ix=fD.includes;FD({target:"Array",proto:!0},{includes:function(e){return ix(this,e,arguments.length>1?arguments[1]:void 0)}}),ox("includes");var ax=fw("match"),ux=function(e){var t;return gw(e)&&(void 0!==(t=e[ax])?!!t:"RegExp"==pE(e))},sx=Fb.TypeError,lx=function(e){if(ux(e))throw sx("The method doesn't accept regular expressions");return e},cx=fw("match"),fx=function(e){var t=/./;try{"/./"[e](t)}catch(J_){try{return t[cx]=!1,"/./"[e](t)}catch(n){}}return!1},dx=Mb("".indexOf);FD({target:"String",proto:!0,forced:!fx("includes")},{includes:function(e){return!!~dx(MD($b(this)),MD(lx(e)),arguments.length>1?arguments[1]:void 0)}});var px=/"/g,hx=Mb("".replace);FD({target:"String",proto:!0,forced:ow((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=MD($b(this)),r="<a",(r+=' name="'+hx(MD(t),px,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var gx=function(e,t,n){var r,o;Dw(e);try{if(!(r=_w(e,"return"))){if("throw"===t)throw n;return n}r=Cw(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Dw(r),n},vx=function(e,t,n,r){try{return r?t(Dw(n)[0],n[1]):t(n)}catch(o){gx(e,"throw",o)}},yx={},mx=fw("iterator"),bx=Array.prototype,wx=function(e){return void 0!==e&&(yx.Array===e||bx[mx]===e)},Ex=function(e,t,n){var r=Iw(t);r in e?Mw.f(e,r,zw(0,n)):e[r]=n},Dx=fw("iterator"),xx=function(e){if(null!=e)return _w(e,Dx)||_w(e,"@@iterator")||yx[yE(e)]},Cx=Fb.TypeError,Sx=function(e,t){var n=arguments.length<2?xx(e):t;if(Tw(n))return Dw(Cw(n,e));throw Cx(Bw(e)+" is not iterable")},Ax=Fb.Array,Ox=fw("iterator"),kx=!1;try{var Bx=0,Fx={next:function(){return{done:!!Bx++}},return:function(){kx=!0}};Fx[Ox]=function(){return this},Array.from(Fx,(function(){throw 2}))}catch(Ige){}var Tx=function(e,t){if(!kx)return!1;var n=!1;try{var r={};r[Ox]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},_x=!Tx((function(e){Array.from(e)}));FD({target:"Array",stat:!0,forced:_x},{from:function(e){var t=Vb(e),n=HE(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=CE(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=xx(t),p=0;if(!d||this==Ax&&wx(d))for(a=PE(t),u=n?new this(a):Ax(a);a>p;p++)f=i?o(t[p],p):t[p],Ex(u,p,f);else for(c=(l=Sx(t,d)).next,u=n?new this:[];!(s=Cw(c,l)).done;p++)f=i?vx(l,o,[s.value,p],!0):s.value,Ex(u,p,f);return u.length=p,u}});var Px,jx,Nx,Ix=Mb("".charAt),Lx=Mb("".charCodeAt),Rx=Mb("".slice),Mx={charAt:function(e){return function(t,n){var r,o,i=MD($b(t)),a=FE(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Lx(i,a))<55296||r>56319||a+1===u||(o=Lx(i,a+1))<56320||o>57343?e?Ix(i,a):r:e?Rx(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},zx=!ow((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$x=Xw("IE_PROTO"),Hx=Fb.Object,Vx=Hx.prototype,Ux=zx?Hx.getPrototypeOf:function(e){var t=Vb(e);if(Wb(t,$x))return t[$x];var n=t.constructor;return Xb(n)&&t instanceof n?n.prototype:t instanceof Hx?Vx:null},Wx=fw("iterator"),Gx=!1;[].keys&&("next"in(Nx=[].keys())?(jx=Ux(Ux(Nx)))!==Object.prototype&&(Px=jx):Gx=!0);var qx=null==Px||ow((function(){var e={};return Px[Wx].call(e)!==e}));qx&&(Px={}),Xb(Px[Wx])||cE(Px,Wx,(function(){return this}));var Kx={IteratorPrototype:Px,BUGGY_SAFARI_ITERATORS:Gx},Yx=Mw.f,Xx=fw("toStringTag"),Zx=function(e,t,n){e&&!Wb(e=n?e:e.prototype,Xx)&&Yx(e,Xx,{configurable:!0,value:t})},Jx=Kx.IteratorPrototype,Qx=function(){return this},eC=Fb.String,tC=Fb.TypeError,nC=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Mb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Dw(n),function(e){if("object"==typeof e||Xb(e))return e;throw tC("Can't set "+eC(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),rC=lE.PROPER,oC=lE.CONFIGURABLE,iC=Kx.IteratorPrototype,aC=Kx.BUGGY_SAFARI_ITERATORS,uC=fw("iterator"),sC=function(){return this},lC=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=tx(Jx,{next:zw(1,s)}),Zx(u,l,!1),yx[l]=Qx;var c,f,d,p=function(e){if(e===o&&m)return m;if(!aC&&e in v)return v[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},h=t+" Iterator",g=!1,v=e.prototype,y=v[uC]||v["@@iterator"]||o&&v[o],m=!aC&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Ux(b.call(new e)))!==Object.prototype&&c.next&&(Ux(c)!==iC&&(nC?nC(c,iC):Xb(c[uC])||cE(c,uC,sC)),Zx(c,h,!0)),rC&&"values"==o&&y&&"values"!==y.name&&(oC?$w(v,"name","values"):(g=!0,m=function(){return Cw(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(aC||g||!(d in v))&&cE(v,d,f[d]);else FD({target:t,proto:!0,forced:aC||g},f);return v[uC]!==m&&cE(v,uC,m,{name:o}),yx[t]=m,f},cC=Mx.charAt,fC=iE.set,dC=iE.getterFor("String Iterator");lC(String,"String",(function(e){fC(this,{type:"String Iterator",string:MD(e),index:0})}),(function(){var e,t=dC(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=cC(n,r),t.index+=e.length,{value:e,done:!1})}));var pC,hC=aD.f,gC=Mb("".endsWith),vC=Mb("".slice),yC=Math.min,mC=fx("endsWith"),bC=!(mC||(pC=hC(String.prototype,"endsWith"),!pC||pC.writable));FD({target:"String",proto:!0,forced:!bC&&!mC},{endsWith:function(e){var t=MD($b(this));lx(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:yC(_E(n),r),i=MD(e);return gC?gC(t,i,o):vC(t,o-i.length,o)===i}});var wC=Mb([].join),EC=OE!=Object,DC=YE("join",",");FD({target:"Array",proto:!0,forced:EC||!DC},{join:function(e){return wC(oD(this),void 0===e?",":e)}});var xC=fw("species"),CC=function(e){return rw>=51||!ow((function(){var t=[];return(t.constructor={})[xC]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},SC=KE.map,AC=CC("map");FD({target:"Array",proto:!0,forced:!AC},{map:function(e){return SC(this,e,arguments.length>1?arguments[1]:void 0)}});var OC=Fb.RegExp,kC=ow((function(){var e=OC("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BC=kC||ow((function(){return!OC("a","y").sticky})),FC={BROKEN_CARET:kC||ow((function(){var e=OC("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:BC,UNSUPPORTED_Y:kC},TC=Fb.RegExp,_C=ow((function(){var e=TC(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),PC=Fb.RegExp,jC=ow((function(){var e=PC("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),NC=iE.get,IC=jb("native-string-replace",String.prototype.replace),LC=RegExp.prototype.exec,RC=LC,MC=Mb("".charAt),zC=Mb("".indexOf),$C=Mb("".replace),HC=Mb("".slice),VC=function(){var e=/a/,t=/b*/g;return Cw(LC,e,"a"),Cw(LC,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),UC=FC.BROKEN_CARET,WC=void 0!==/()??/.exec("")[1];(VC||WC||UC||_C||jC)&&(RC=function(e){var t,n,r,o,i,a,u,s=this,l=NC(s),c=MD(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Cw(RC,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=UC&&s.sticky,h=Cw(zD,s),g=s.source,v=0,y=c;if(p&&(h=$C(h,"y",""),-1===zC(h,"g")&&(h+="g"),y=HC(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==MC(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),WC&&(n=new RegExp("^"+g+"$(?!\\s)",h)),VC&&(r=s.lastIndex),o=Cw(LC,p?n:s,y),p?o?(o.input=HC(o.input,v),o[0]=HC(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:VC&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),WC&&o&&o.length>1&&Cw(IC,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=tx(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var GC=RC;FD({target:"RegExp",proto:!0,forced:/./.exec!==GC},{exec:GC});var qC=Function.prototype,KC=qC.apply,YC=qC.bind,XC=qC.call,ZC="object"==typeof Reflect&&Reflect.apply||(YC?XC.bind(KC):function(){return XC.apply(KC,arguments)}),JC=fw("species"),QC=RegExp.prototype,eS=function(e,t,n,r){var o=fw(e),i=!ow((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ow((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[JC]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Mb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Mb(e),s=t.exec;return s===GC||s===QC.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));cE(String.prototype,e,s[0]),cE(QC,o,s[1])}r&&$w(QC[o],"sham",!0)},tS=Mx.charAt,nS=function(e,t,n){return t+(n?tS(e,t).length:1)},rS=Math.floor,oS=Mb("".charAt),iS=Mb("".replace),aS=Mb("".slice),uS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sS=/\$([$&'`]|\d{1,2})/g,lS=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=sS;return void 0!==o&&(o=Vb(o),s=uS),iS(i,s,(function(i,s){var l;switch(oS(s,0)){case"$":return"$";case"&":return e;case"`":return aS(t,0,n);case"'":return aS(t,a);case"<":l=o[aS(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=rS(c/10);return 0===f?i:f<=u?void 0===r[f-1]?oS(s,1):r[f-1]+oS(s,1):i}l=r[c-1]}return void 0===l?"":l}))},cS=Fb.TypeError,fS=function(e,t){var n=e.exec;if(Xb(n)){var r=Cw(n,e,t);return null!==r&&Dw(r),r}if("RegExp"===pE(e))return Cw(GC,e,t);throw cS("RegExp#exec called on incompatible receiver")},dS=fw("replace"),pS=Math.max,hS=Math.min,gS=Mb([].concat),vS=Mb([].push),yS=Mb("".indexOf),mS=Mb("".slice),bS="$0"==="a".replace(/./,"$0"),wS=!!/./[dS]&&""===/./[dS]("a","$0");eS("replace",(function(e,t,n){var r=wS?"$":"$0";return[function(e,n){var r=$b(this),o=null==e?void 0:_w(e,dS);return o?Cw(o,e,r,n):Cw(t,MD(r),e,n)},function(e,o){var i=Dw(this),a=MD(e);if("string"==typeof o&&-1===yS(o,r)&&-1===yS(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Xb(o);s||(o=MD(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=fS(i,a);if(null===d)break;if(vS(f,d),!l)break;""===MD(d[0])&&(i.lastIndex=nS(a,_E(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=MD((d=f[v])[0]),m=pS(hS(FE(d.index),a.length),0),b=[],w=1;w<d.length;w++)vS(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=gS([y],b,m,a);void 0!==E&&vS(D,E);var x=MD(ZC(o,void 0,D))}else x=lS(y,a,m,b,E,o);m>=g&&(h+=mS(a,g,m)+x,g=m+y.length)}return h+mS(a,g)}]}),!!ow((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!bS||wS);var ES=function(e,t){return(ES=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function DS(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}ES(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var xS=function(){return xS=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},xS.apply(this,arguments)};function CS(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 SS(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function AS(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var OS=0,kS=function(){this.id=""+OS++},BS=iE.set,FS=iE.getterFor("Array Iterator"),TS=lC(Array,"Array",(function(e,t){BS(this,{type:"Array Iterator",target:oD(e),index:0,kind:t})}),(function(){var e=FS(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");yx.Arguments=yx.Array,ox("keys"),ox("values"),ox("entries");var _S=function(e,t,n){for(var r in t)cE(e,r,t[r],n);return e},PS=Fb.Array,jS=Math.max,NS=function(e,t,n){for(var r=PE(e),o=lD(t,r),i=lD(void 0===n?r:n,r),a=PS(jS(i-o,0)),u=0;o<i;o++,u++)Ex(a,u,e[o]);return a.length=u,a},IS=yD.f,LS="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],RS={f:function(e){return LS&&"Window"==pE(e)?function(e){try{return IS(e)}catch(t){return NS(LS)}}(e):IS(oD(e))}},MS=ow((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),zS=Object.isExtensible,$S=ow((function(){zS(1)}))||MS?function(e){return!!gw(e)&&(!MS||"ArrayBuffer"!=pE(e))&&(!zS||zS(e))}:zS,HS=!ow((function(){return Object.isExtensible(Object.preventExtensions({}))})),VS=Ab((function(e){var t=Mw.f,n=!1,r=Yb("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=yD.f,t=Mb([].splice),o={};o[r]=1,e(o).length&&(yD.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},FD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:RS.f}))},fastKey:function(e,t){if(!gw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Wb(e,r)){if(!$S(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Wb(e,r)){if(!$S(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return HS&&n&&$S(e)&&!Wb(e,r)&&i(e),e}};Zw[r]=!0})),US=Fb.TypeError,WS=function(e,t){this.stopped=e,this.result=t},GS=WS.prototype,qS=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=CE(t,c),g=function(e){return r&&gx(r,"normal",e),new WS(!0,e)},v=function(e){return f?(Dw(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if(!(o=xx(e)))throw US(Bw(e)+" is not iterable");if(wx(o)){for(i=0,a=PE(e);a>i;i++)if((u=v(e[i]))&&Sw(GS,u))return u;return new WS(!1)}r=Sx(e,o)}for(s=r.next;!(l=Cw(s,r)).done;){try{u=v(l.value)}catch(y){gx(r,"throw",y)}if("object"==typeof u&&u&&Sw(GS,u))return u}return new WS(!1)},KS=Fb.TypeError,YS=function(e,t){if(Sw(t,e))return e;throw KS("Incorrect invocation")},XS=function(e,t,n){var r,o;return nC&&Xb(r=t.constructor)&&r!==n&&gw(o=r.prototype)&&o!==n.prototype&&nC(e,o),e},ZS=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Fb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Mb(u[e]);cE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!gw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!gw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!gw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(kD(e,!Xb(a)||!(o||u.forEach&&!ow((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),VS.enable();else if(kD(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ow((function(){f.has(1)})),h=Tx((function(e){new a(e)})),g=!o&&ow((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){YS(e,u);var n=XS(new a,e,s);return null!=t&&qS(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,FD({global:!0,forced:s!=a},l),Zx(s,e),o||n.setStrong(s,e,r),s},JS=VS.getWeakData,QS=iE.set,eA=iE.getterFor,tA=KE.find,nA=KE.findIndex,rA=Mb([].splice),oA=0,iA=function(e){return e.frozen||(e.frozen=new aA)},aA=function(){this.entries=[]},uA=function(e,t){return tA(e.entries,(function(e){return e[0]===t}))};aA.prototype={get:function(e){var t=uA(this,e);if(t)return t[1]},has:function(e){return!!uA(this,e)},set:function(e,t){var n=uA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=nA(this.entries,(function(t){return t[0]===e}));return~t&&rA(this.entries,t,1),!!~t}};var sA,lA={getConstructor:function(e,t,n,r){var o=e((function(e,o){YS(e,i),QS(e,{type:t,id:oA++,frozen:void 0}),null!=o&&qS(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=eA(t),u=function(e,t,n){var r=a(e),o=JS(Dw(t),!0);return!0===o?iA(r).set(t,n):o[r.id]=n,e};return _S(i,{delete:function(e){var t=a(this);if(!gw(e))return!1;var n=JS(e);return!0===n?iA(t).delete(e):n&&Wb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!gw(e))return!1;var n=JS(e);return!0===n?iA(t).has(e):n&&Wb(n,t.id)}}),_S(i,n?{get:function(e){var t=a(this);if(gw(e)){var n=JS(e);return!0===n?iA(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},cA=iE.enforce,fA=!Fb.ActiveXObject&&"ActiveXObject"in Fb,dA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},pA=ZS("WeakMap",dA,lA);if(Kw&&fA){sA=lA.getConstructor(dA,"WeakMap",!0),VS.enable();var hA=pA.prototype,gA=Mb(hA.delete),vA=Mb(hA.has),yA=Mb(hA.get),mA=Mb(hA.set);_S(hA,{delete:function(e){if(gw(e)&&!$S(e)){var t=cA(this);return t.frozen||(t.frozen=new sA),gA(this,e)||t.frozen.delete(e)}return gA(this,e)},has:function(e){if(gw(e)&&!$S(e)){var t=cA(this);return t.frozen||(t.frozen=new sA),vA(this,e)||t.frozen.has(e)}return vA(this,e)},get:function(e){if(gw(e)&&!$S(e)){var t=cA(this);return t.frozen||(t.frozen=new sA),vA(this,e)?yA(this,e):t.frozen.get(e)}return yA(this,e)},set:function(e,t){if(gw(e)&&!$S(e)){var n=cA(this);n.frozen||(n.frozen=new sA),vA(this,e)?mA(this,e,t):n.frozen.set(e,t)}else mA(this,e,t);return this}})}var bA=fw("iterator"),wA=fw("toStringTag"),EA=TS.values,DA=function(e,t){if(e){if(e[bA]!==EA)try{$w(e,bA,EA)}catch(r){e[bA]=EA}if(e[wA]||$w(e,wA,t),bE[t])for(var n in TS)if(e[n]!==TS[n])try{$w(e,n,TS[n])}catch(r){e[n]=TS[n]}}};for(var xA in bE)DA(Fb[xA]&&Fb[xA].prototype,xA);DA(DE,"DOMTokenList");var CA=new WeakMap,SA=new WeakMap,AA=new WeakMap,OA=new WeakMap,kA=new WeakMap,BA=new WeakMap,FA=new WeakMap,TA=new WeakMap,_A=new WeakMap,PA=new WeakMap,jA=new WeakMap,NA=new WeakMap,IA=new WeakMap,LA=new WeakMap,RA=new WeakMap,MA=new WeakMap,zA=new WeakMap,$A=new WeakMap,HA=new WeakMap,VA=new WeakMap,UA=new WeakMap,WA=new WeakMap,GA=new WeakMap,qA=new WeakMap,KA=new WeakMap,YA=KE.find,XA=!0;"find"in[]&&Array(1).find((function(){XA=!1})),FD({target:"Array",proto:!0,forced:XA},{find:function(e){return YA(this,e,arguments.length>1?arguments[1]:void 0)}}),ox("find"),FD({global:!0},{globalThis:Fb});const ZA=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];$p&&(Ap.fn.css=$p),qp&&(Ap.fn.append=qp),Op&&(Ap.fn.addClass=Op),kp&&(Ap.fn.removeClass=kp),Bp&&(Ap.fn.hasClass=Bp),jp&&(Ap.fn.on=jp),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Tp&&(Ap.fn.removeAttr=Tp),Mp&&(Ap.fn.hide=Mp),zp&&(Ap.fn.show=zp),Rp&&(Ap.fn.offset=Rp),Ip&&(Ap.fn.width=Ip),Lp&&(Ap.fn.height=Lp),Yp&&(Ap.fn.parent=Yp),Xp&&(Ap.fn.parents=Xp),Gp&&(Ap.fn.is=Gp),_p&&(Ap.fn.dataset=_p),Pp&&(Ap.fn.val=Pp),Wp&&(Ap.fn.text=Wp),Up&&(Ap.fn.html=Up),Jp&&(Ap.fn.children=Jp),Qp&&(Ap.fn.remove=Qp),Zp&&(Ap.fn.find=Zp),Hp&&(Ap.fn.each=Hp),eh&&(Ap.fn.empty=eh);var JA,QA,eO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},tO=function(e){return nO(e)&&1===e.nodeType},nO=function(e){var t=eO(e);return!!t&&e instanceof t.Node},rO=function(e){var t=e&&e.anchorNode&&eO(e.anchorNode);return!!t&&e instanceof t.Selection},oO=function(e){return nO(e)&&3===e.nodeType},iO=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},aO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(nO(r=i)&&8===r.nodeType||tO(i)&&0===i.childNodes.length||tO(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},uO=function(e,t,n){return SS(aO(e,t,n),1)[0]},sO=function e(t){var n,r,o="";if(oO(t)&&t.nodeValue)return t.nodeValue;if(tO(t)){try{for(var i=CS(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(se){n={error:se}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function lO(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||lO(o,t)}}function cO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==JA.ELEMENT_NODE?"":t.tagName.toLowerCase()}(QA=JA||(JA={}))[QA.ELEMENT_NODE=1]="ELEMENT_NODE",QA[QA.TEXT_NODE=3]="TEXT_NODE",QA[QA.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",QA[QA.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",QA[QA.COMMENT_NODE=8]="COMMENT_NODE",QA[QA.DOCUMENT_NODE=9]="DOCUMENT_NODE",QA[QA.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",QA[QA.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var fO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),dO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),pO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),hO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),gO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),vO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),yO=!gO&&!hO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,mO={getWindow:function(e){var t=UA.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=VA.get(t);return n||(n=new kS,VA.set(t,n)),n},setNewKey:function(e){var t=new kS;VA.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=RA.get(r);if(null==o){if(Cf.isEditor(r))return n;break}var i=LA.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=mO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return RA.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=mO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[mO.findPath(e,t)[0]];return Bf.get(e,n)},toDOMNode:function(e,t){var n;if(Cf.isEditor(t))n=MA.get(e);else{var r=mO.findKey(e,t);n=$A.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=mO.toDOMNode(e,e);try{r=tO(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=$f.isBackward(t),i=mO.toDOMPoint(e,n),a=$f.isCollapsed(t)?i:mO.toDOMPoint(e,r),u=mO.getWindow(e).document.createRange(),s=SS(o?a:i,2),l=s[0],c=s[1],f=SS(o?i:a,2),d=f[0],p=f[1],h=!!(tO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(tO(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,g?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=SS(Cf.node(e,t.path),1)[0],a=mO.toDOMNode(e,i);Cf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=CS(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=s+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=g}}}catch(v){n={error:v}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=tO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?zA.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=mO.toSlateNode(e,t.target),u=mO.findPath(e,a);if(Cf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Cf.point(e,u,{edge:l?"start":"end"}),f=l?Cf.before(e,c):Cf.after(e,c);if(f)return Cf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return mO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((rO(t)?t.anchorNode:t.startContainer)&&(rO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=vO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=mO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:mO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return $f.isExpanded(d)&&$f.isForward(d)&&tO(i)&&Cf.void(e,{at:d.focus,mode:"highest"})&&(d=Cf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=SS(o?t:function(e){var t,n=SS(e,2),r=n[0],o=n[1];if(tO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=SS(aO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;tO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=uO(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=mO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();AS(AS([],SS(dp(v.querySelectorAll("[data-slate-zero-width]")))),SS(dp(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||dO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=mO.toSlateNode(e,c);return{path:mO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Cf.hasPath(e,n.path)&&Cf.hasPath(e,r.path)},getNodeType:function(e){return mf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Bf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Cf.nodes(e,{universal:!0});try{for(var i=CS(o),a=i.next();!a.done;a=i.next()){var u=SS(a.value,1)[0];mf.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=SS(Cf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=SS(Cf.nodes(e,{match:function(e){return Kf.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=SS(Cf.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&SS(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Cf.isEnd(e,n.anchor,t)||Cf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=CA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return OA.get(e)||null},getHoverbar:function(e){return BA.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=mO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=CS(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Cf.nodes(e,{match:function(t){return!(!mf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=CS(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];lO(mO.toDOMNode(e,h),(function(e,t){var n=Ap(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(g){r={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Cf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=CS(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if($f.isExpanded(t))return!1;var n=mO.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Cf.node(e,t);if(null==n)return!1;var r=SS(n,1)[0].children;return 1===r.length&&""===r[0].text}},bO=1,wO={},EO={},DO=KE.filter,xO=CC("filter");FD({target:"Array",proto:!0,forced:!xO},{filter:function(e){return DO(this,e,arguments.length>1?arguments[1]:void 0)}});var CO="\t\n\v\f\r    \u2028\u2029\ufeff",SO=Mb("".replace),AO="["+CO+"]",OO=RegExp("^"+AO+AO+"*"),kO=RegExp(AO+AO+"*$"),BO={trim:function(e){return function(t){var n=MD($b(t));return 1&e&&(n=SO(n,OO,"")),2&e&&(n=SO(n,kO,"")),n}}(3)},FO=lE.PROPER,TO=BO.trim;FD({target:"String",proto:!0,forced:function(e){return ow((function(){return!!CO[e]()||"…"!=="…"[e]()||FO&&CO[e].name!==e}))}("trim")},{trim:function(){return TO(this)}});var _O=[],PO={};function jO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var NO,IO,LO,RO,MO=Fb.Promise,zO=fw("species"),$O=function(e){var t=Zb(e),n=Mw.f;hw&&t&&!t[zO]&&n(t,zO,{configurable:!0,get:function(){return this}})},HO=Fb.TypeError,VO=fw("species"),UO=function(e,t){var n,r=Dw(e).constructor;return void 0===r||null==(n=Dw(r)[VO])?t:function(e){if(HE(e))return e;throw HO(Bw(e)+" is not a constructor")}(n)},WO=Mb([].slice),GO=/(?:ipad|iphone|ipod).*applewebkit/i.test(Jb),qO="process"==pE(Fb.process),KO=Fb.setImmediate,YO=Fb.clearImmediate,XO=Fb.process,ZO=Fb.Dispatch,JO=Fb.Function,QO=Fb.MessageChannel,ek=Fb.String,tk=0,nk={};try{NO=Fb.location}catch(Ige){}var rk=function(e){if(Wb(nk,e)){var t=nk[e];delete nk[e],t()}},ok=function(e){return function(){rk(e)}},ik=function(e){rk(e.data)},ak=function(e){Fb.postMessage(ek(e),NO.protocol+"//"+NO.host)};KO&&YO||(KO=function(e){var t=WO(arguments,1);return nk[++tk]=function(){ZC(Xb(e)?e:JO(e),void 0,t)},IO(tk),tk},YO=function(e){delete nk[e]},qO?IO=function(e){XO.nextTick(ok(e))}:ZO&&ZO.now?IO=function(e){ZO.now(ok(e))}:QO&&!GO?(RO=(LO=new QO).port2,LO.port1.onmessage=ik,IO=CE(RO.postMessage,RO)):Fb.addEventListener&&Xb(Fb.postMessage)&&!Fb.importScripts&&NO&&"file:"!==NO.protocol&&!ow(ak)?(IO=ak,Fb.addEventListener("message",ik,!1)):IO="onreadystatechange"in mw("script")?function(e){YD.appendChild(mw("script")).onreadystatechange=function(){YD.removeChild(this),rk(e)}}:function(e){setTimeout(ok(e),0)});var uk,sk,lk,ck,fk,dk,pk,hk,gk={set:KO},vk=/ipad|iphone|ipod/i.test(Jb)&&void 0!==Fb.Pebble,yk=/web0s(?!.*chrome)/i.test(Jb),mk=aD.f,bk=gk.set,wk=Fb.MutationObserver||Fb.WebKitMutationObserver,Ek=Fb.document,Dk=Fb.process,xk=Fb.Promise,Ck=mk(Fb,"queueMicrotask"),Sk=Ck&&Ck.value;Sk||(uk=function(){var e,t;for(qO&&(e=Dk.domain)&&e.exit();sk;){t=sk.fn,sk=sk.next;try{t()}catch(n){throw sk?ck():lk=void 0,n}}lk=void 0,e&&e.enter()},GO||qO||yk||!wk||!Ek?!vk&&xk&&xk.resolve?((pk=xk.resolve(void 0)).constructor=xk,hk=CE(pk.then,pk),ck=function(){hk(uk)}):qO?ck=function(){Dk.nextTick(uk)}:(bk=CE(bk,Fb),ck=function(){bk(uk)}):(fk=!0,dk=Ek.createTextNode(""),new wk(uk).observe(dk,{characterData:!0}),ck=function(){dk.data=fk=!fk}));var Ak,Ok,kk,Bk,Fk=Sk||function(e){var t={fn:e,next:void 0};lk&&(lk.next=t),sk||(sk=t,ck()),lk=t},Tk=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Tw(t),this.reject=Tw(n)},_k={f:function(e){return new Tk(e)}},Pk=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},jk="object"==typeof window,Nk=gk.set,Ik=fw("species"),Lk="Promise",Rk=iE.getterFor(Lk),Mk=iE.set,zk=iE.getterFor(Lk),$k=MO&&MO.prototype,Hk=MO,Vk=$k,Uk=Fb.TypeError,Wk=Fb.document,Gk=Fb.process,qk=_k.f,Kk=qk,Yk=!!(Wk&&Wk.createEvent&&Fb.dispatchEvent),Xk=Xb(Fb.PromiseRejectionEvent),Zk=!1,Jk=kD(Lk,(function(){var e=Gw(Hk),t=e!==String(Hk);if(!t&&66===rw)return!0;if(rw>=51&&/native code/.test(e))return!1;var n=new Hk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ik]=r,!(Zk=n.then((function(){}))instanceof r)||!t&&jk&&!Xk})),Qk=Jk||!Tx((function(e){Hk.all(e).catch((function(){}))})),eB=function(e){var t;return!(!gw(e)||!Xb(t=e.then))&&t},tB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Fk((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&iB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Uk("Promise-chain cycle")):(u=eB(a))?Cw(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&rB(e)}))}},nB=function(e,t,n){var r,o;Yk?((r=Wk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Fb.dispatchEvent(r)):r={promise:t,reason:n},!Xk&&(o=Fb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Fb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},rB=function(e){Cw(Nk,Fb,(function(){var t,n=e.facade,r=e.value;if(oB(e)&&(t=Pk((function(){qO?Gk.emit("unhandledRejection",r,n):nB("unhandledrejection",n,r)})),e.rejection=qO||oB(e)?2:1,t.error))throw t.value}))},oB=function(e){return 1!==e.rejection&&!e.parent},iB=function(e){Cw(Nk,Fb,(function(){var t=e.facade;qO?Gk.emit("rejectionHandled",t):nB("rejectionhandled",t,e.value)}))},aB=function(e,t,n){return function(r){e(t,r,n)}},uB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,tB(e,!0))},sB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Uk("Promise can't be resolved itself");var r=eB(t);r?Fk((function(){var n={done:!1};try{Cw(r,t,aB(sB,n,e),aB(uB,n,e))}catch(o){uB(n,o,e)}})):(e.value=t,e.state=1,tB(e,!1))}catch(o){uB({done:!1},o,e)}}};if(Jk&&(Vk=(Hk=function(e){YS(this,Vk),Tw(e),Cw(Ak,this);var t=Rk(this);try{e(aB(sB,t),aB(uB,t))}catch(n){uB(t,n)}}).prototype,(Ak=function(e){Mk(this,{type:Lk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=_S(Vk,{then:function(e,t){var n=zk(this),r=n.reactions,o=qk(UO(this,Hk));return o.ok=!Xb(e)||e,o.fail=Xb(t)&&t,o.domain=qO?Gk.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&tB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ok=function(){var e=new Ak,t=Rk(e);this.promise=e,this.resolve=aB(sB,t),this.reject=aB(uB,t)},_k.f=qk=function(e){return e===Hk||e===kk?new Ok(e):Kk(e)},Xb(MO)&&$k!==Object.prototype)){Bk=$k.then,Zk||(cE($k,"then",(function(e,t){var n=this;return new Hk((function(e,t){Cw(Bk,n,e,t)})).then(e,t)}),{unsafe:!0}),cE($k,"catch",Vk.catch,{unsafe:!0}));try{delete $k.constructor}catch(Ige){}nC&&nC($k,Vk)}FD({global:!0,wrap:!0,forced:Jk},{Promise:Hk}),Zx(Hk,Lk,!1),$O(Lk),kk=Zb(Lk),FD({target:Lk,stat:!0,forced:Jk},{reject:function(e){var t=qk(this);return Cw(t.reject,void 0,e),t.promise}}),FD({target:Lk,stat:!0,forced:Jk},{resolve:function(e){return function(e,t){if(Dw(e),gw(t)&&t.constructor===e)return t;var n=_k.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),FD({target:Lk,stat:!0,forced:Qk},{all:function(e){var t=this,n=qk(t),r=n.resolve,o=n.reject,i=Pk((function(){var n=Tw(t.resolve),i=[],a=0,u=1;qS(e,(function(e){var s=a++,l=!1;u++,Cw(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=qk(t),r=n.reject,o=Pk((function(){var o=Tw(t.resolve);qS(e,(function(e){Cw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var lB=FC.UNSUPPORTED_Y,cB=Math.min,fB=[].push,dB=Mb(/./.exec),pB=Mb(fB),hB=Mb("".slice);function gB(e){Promise.resolve().then(e)}function vB(e,t){return mf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Cf.isVoid(t,e),u="";a||(u=i.map((function(e){return vB(e,t)})).join(""));var s=(PO[r]||jO)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||_O.forEach((function(t){return l=t(e,l)})),"string"==typeof s)return l;var c=s.prefix,f=void 0===c?"":c,d=s.suffix,p=void 0===d?"":d;return f&&(l=f+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=r.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;");var o=mO.getParentsNodes(t,e).some((function(e){return"pre"===mO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=mO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return _O.forEach((function(t){return r=t(e,r)})),r}(e,t)}function yB(e){return"w-e-element-"+e}eS("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=MD($b(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!ux(e))return Cw(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=Cw(GC,f,r))&&!((a=f.lastIndex)>c&&(pB(s,hB(r,c,i.index)),i.length>1&&i.index<r.length&&ZC(fB,s,NS(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&dB(f,"")||pB(s,""):pB(s,hB(r,c)),s.length>o?NS(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Cw(t,this,e,n)}:t,[function(t,n){var o=$b(this),i=null==t?void 0:_w(t,e);return i?Cw(i,t,o,n):Cw(r,MD(o),t,n)},function(e,o){var i=Dw(this),a=MD(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=UO(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(lB?"g":"y"),f=new s(lB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===fS(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=lB?0:h;var v,y=fS(f,lB?hB(a,h):a);if(null===y||(v=cB(_E(f.lastIndex+(lB?h:0)),a.length))===p)h=nS(a,h,l);else{if(pB(g,hB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(pB(g,y[m]),g.length===d)return g;h=p=v}}return pB(g,hB(a,p)),g}]}),!!ow((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]})),lB);var mB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},bB=function(e,t,n){var r=mO.toDOMRange(e,t).getBoundingClientRect(),o=mO.toDOMRange(e,n).getBoundingClientRect();return mB(r,o)&&mB(o,r)},wB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],EB=[],DB=[],xB={},CB=Mw.f,SB=yD.f,AB=iE.enforce,OB=fw("match"),kB=Fb.RegExp,BB=kB.prototype,FB=Fb.SyntaxError,TB=Mb(zD),_B=Mb(BB.exec),PB=Mb("".charAt),jB=Mb("".replace),NB=Mb("".indexOf),IB=Mb("".slice),LB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,RB=/a/g,MB=/a/g,zB=new kB(RB)!==RB,$B=FC.MISSED_STICKY,HB=FC.UNSUPPORTED_Y,VB=hw&&(!zB||$B||_C||jC||ow((function(){return MB[OB]=!1,kB(RB)!=RB||kB(MB)==MB||"/a/i"!=kB(RB,"i")})));if(kD("RegExp",VB)){for(var UB=function(e,t){var n,r,o,i,a,u,s=Sw(BB,this),l=ux(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===UB)return e;if((l||Sw(BB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:TB(d))),e=void 0===e?"":MD(e),t=void 0===t?"":MD(t),d=e,_C&&"dotAll"in RB&&(r=!!t&&NB(t,"s")>-1)&&(t=jB(t,/s/g,"")),n=t,$B&&"sticky"in RB&&(o=!!t&&NB(t,"y")>-1)&&HB&&(t=jB(t,/y/g,"")),jC&&(e=(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=PB(e,r)))t+=PB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:_B(LB,IB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Wb(a,c))throw new FB("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e))[0],f=i[1]),a=XS(kB(e,t),s?this:BB,UB),(r||o||f.length)&&(u=AB(a),r&&(u.dotAll=!0,u.raw=UB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=PB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+PB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{$w(a,"source",""===d?"(?:)":d)}catch(p){}return a},WB=function(e){e in UB||CB(UB,e,{configurable:!0,get:function(){return kB[e]},set:function(t){kB[e]=t}})},GB=SB(kB),qB=0;GB.length>qB;)WB(GB[qB++]);BB.constructor=UB,UB.prototype=BB,cE(Fb,"RegExp",UB)}$O("RegExp");var KB=new RegExp(String.fromCharCode(160),"g");function YB(e){return e.replace(KB," ")}function XB(e,t){var n=e.length;if(n){var r=e[n-1];if(Kf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function ZB(e,t,n){return{type:"paragraph",children:[{text:Ap(e).text().replace(/\s+/gm," ")}]}}function JB(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==JA.ELEMENT_NODE)if(e.nodeType!==JA.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=YB(r),XB(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(XB(n,"\n")||n.push({text:"\n"}));var o=eF(Ap(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in xB)if(e[0].matches(t))return xB[t];return ZB}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){Cf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),DB.forEach((function(n){r=n(e[0],r,t)})))})),r}function QB(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"",r={text:n=YB(n=n.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return DB.forEach((function(n){r=n(e[0],r,t)})),r}function eF(e,t){EB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Ap(r(e[0])))}));var n=cO(e);return"span"===n?e.attr("data-w-e-type")?JB(e,t):QB(e,t):"code"===n?"pre"===cO(e.parent())?JB(e,t):QB(e,t):wB.includes(n)?QB(e,t):JB(e,t)}function tF(e,t,n){var r=Ap(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function nF(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=Ap("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=eF(Ap(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var rF=Mw.f,oF=VS.fastKey,iF=iE.set,aF=iE.getterFor,uF={getConstructor:function(e,t,n,r){var o=e((function(e,o){YS(e,i),iF(e,{type:t,index:tx(null),first:void 0,last:void 0,size:0}),hw||(e.size=0),null!=o&&qS(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=aF(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=oF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),hw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=oF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return _S(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,hw?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),hw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=CE(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),_S(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),hw&&rF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=aF(t),i=aF(r);lC(e,t,(function(e,t){iF(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),$O(t)}};ZS("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),uF);var sF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function lF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):dd.insertNodes(e,t,{mode:"highest"})}var cF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=SS($f.edges(n),2),o=r[0],i=r[1],a=Cf.void(t,{at:o.path}),u=Cf.void(t,{at:i.path});if(!$f.isCollapsed(n)||a){var s=mO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=SS(u,1)[0],d=s.cloneRange(),p=mO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),oO(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",sO(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),u=JSON.parse(a);t.insertFragment(u)}else{var s=e.getData("text/plain"),l=e.getData("text/html");if(l)t.dangerouslyInsertHtml(l);else if(s){var c=s.split(/\r\n|\r|\n/),f=!1;try{for(var d=CS(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&dd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},fF=function(e){return null!=e},dF={object:!0,function:!0,undefined:!0},pF=/^\s*class[\s{/}]/,hF=Function.prototype.toString,gF=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(t){return!1}return!function(e){if(!fF(t=e)||!hasOwnProperty.call(dF,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!pF.test(hF.call(e))},vF=function(e){return null!=e},yF=Object.keys,mF=function(){try{return Object.keys("primitive"),!0}catch(se){return!1}}()?Object.keys:function(e){return yF(vF(e)?Object(e):e)},bF=Math.max,wF=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=bF(arguments.length,2);for(e=Object(function(e){if(!vF(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)mF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},EF=Array.prototype.forEach,DF=Object.create,xF=function(e){var t=DF(null);return EF.call(arguments,(function(e){vF(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t},CF="razdwatrzy",SF=String.prototype.indexOf,AF="function"==typeof CF.contains&&!0===CF.contains("dwa")&&!1===CF.contains("foo")?String.prototype.contains:function(e){return SF.call(this,e,arguments[1])>-1},OF=Ab((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],fF(e)?(n=AF.call(e,"c"),r=AF.call(e,"e"),o=AF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?wF(xF(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],fF(t)?gF(t)?fF(n)?gF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,fF(e)?(r=AF.call(e,"c"),o=AF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?wF(xF(i),a):a}})),kF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},BF=Ab((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return kF(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n=function(e,t){var n;return 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},once:r,off: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},emit:i},u={on:OF(n),once:OF(r),off:OF(o),emit:OF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function FF(e){var t=qA.get(e);return null==t&&(t=BF(),qA.set(e,t)),t}var TF=new WeakMap;function _F(e,t){var n=TF.get(e);null==n&&(n=new Set,TF.set(e,n)),n.add(t)}function PF(e){var t=mO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function jF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=PF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=mO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function NF(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=mf.isElement(t)&&e.isVoid(t),i=mf.isElement(t)&&e.isInline(t),a=HA.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(ZA.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=PF(e);if(null==h)return r;var g,v=h.top,y=h.left,m=h.width,b=h.height,w={},E=s-v,D=l-y;if("bar"===n)return w.left=D+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if("modal"===n)return o?i?D>(m-f)/2?w.right=m-D+5+"px":w.left=D+f+5+"px":w.left="20px":w.left=D+"px",o?((g=E)<0&&(g=0),w.top=g+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((g=E+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function IF(e,t){gB((function(){var n=PF(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-u)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-r;E<0&&(E=0),t.css("left",E+"px")}if(g.indexOf("right")>=0&&c<0){var D=t.css("right"),x=parseInt(D.toString())-Math.abs(c);t.css("right",x+"px")}}}))}var LF=CC("slice"),RF=fw("species"),MF=Fb.Array,zF=Math.max;FD({target:"Array",proto:!0,forced:!LF},{slice:function(e,t){var n,r,o,i=oD(this),a=PE(i),u=lD(e,a),s=lD(void 0===t?a:t,a);if(jE(i)&&(n=i.constructor,(HE(n)&&(n===MF||jE(n.prototype))||gw(n)&&null===(n=n[RF]))&&(n=void 0),n===MF||void 0===n))return WO(i,u,s);for(r=new(void 0===n?MF:n)(zF(s-u,0)),o=0;u<s;u++,o++)u in i&&Ex(r,o,i[u]);return r.length=o,r}});var $F=aD.f,HF=Mb("".startsWith),VF=Mb("".slice),UF=Math.min,WF=fx("startsWith"),GF=!WF&&!!function(){var e=$F(String.prototype,"startsWith");return e&&!e.writable}();FD({target:"String",proto:!0,forced:!GF&&!WF},{startsWith:function(e){var t=MD($b(this));lx(e);var n=_E(UF(arguments.length>1?arguments[1]:void 0,t.length)),r=MD(e);return HF?HF(t,r,n):VF(t,n,n+r.length)===r}});var qF=Object.assign,KF=Object.defineProperty,YF=Mb([].concat),XF=!qF||ow((function(){if(hw&&1!==qF({b:1},qF(KF({},"a",{enumerable:!0,get:function(){KF(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=qF({},e)[n]||TD(qF({},t)).join("")!=r}))?function(e,t){for(var n=Vb(e),r=arguments.length,o=1,i=mD.f,a=rD.f;r>o;)for(var u,s=OE(arguments[o++]),l=i?YF(TD(s),i(s)):TD(s),c=l.length,f=0;c>f;)u=l[f++],hw&&!Cw(a,s,u)||(n[u]=s[u]);return n}:qF;FD({target:"Object",stat:!0,forced:Object.assign!==XF},{assign:XF});var ZF=["props","attrs","style","dataset","on","hook"];function JF(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(!ZF.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=nv(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&&JF(e)}))}var QF=[],eT={};function tT(e,t,n){return vg(n.isInline(e)?"span":"div",null,t)}function nT(e,t){return void 0===t&&(t=!1),vg("span",{"data-slate-string":!0},t?e+"\n":e)}function rT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),vg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?vg("br",null):null)}function oT(e,t,n,r){return LA.set(e,t),RA.set(e,n),mf.isElement(e)?function(e,t){var n,r=mO.findKey(t,e),o=t.isInline(e),i=Cf.isVoid(t,e),a=yB(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=eT[s]||tT;n=i?null:c.map((function(n,r){return oT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=SS(Bf.texts(e),1),g=SS(h[0],1)[0],v=vg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},oT(g,0,e,t));d=vg(p,{style:{position:"relative"}},d,v),LA.set(g,0),RA.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return QF.forEach((function(r){n=r(e,t)})),n}(e,d)),gB((function(){var t=iO(a);null!=t&&($A.set(r,t),HA.set(e,t),zA.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=mO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=mO.findPath(n,e),a=o([e,i]),u=Kf.decorations(e,a),s=u.map((function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=mO.findPath(o,n),u=Pf.parent(a);if(Cf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?rT(Bf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Cf.string(o,u)?""===i?rT():t&&"\n"===i.slice(-1)?nT(i,!0):nT(i):rT(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,QF.forEach((function(e){a=e(i,a)})),vg("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=vg("span",{"data-slate-node":"text",id:l,key:r.id},s);return gB((function(){var t=iO(l);null!=t&&($A.set(r,t),HA.set(e,t),zA.set(t,e))})),c}(e,n,r)}function iT(e,t){var n,r=e.$scroll,o="w-e-textarea-"+e.id,i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),Xh("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=oT(e,n,t,t);return JF(r),r}));var c=jA.get(e);if(null==c&&(c=!0),c){var f=function(e){return Ap('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Kh([eg,lg,hg,rg,ug,Jh]))(n,s),jA.set(e,!1),NA.set(e,p)}else{var d=IA.get(e),p=NA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=iO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=eO(n);h&&UA.set(t,h)}MA.set(t,n),HA.set(t,n),zA.set(n,t),IA.set(e,s)}}function aT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function uT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function sT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return uT(n.overflowY,t)||uT(n.overflowX,t)||!!(o=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}}(r=e))&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}var r,o;return!1}function lT(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function cT(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!aT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;aT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&sT(f)&&!sT(document.documentElement)||null!=f&&sT(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,E=v.bottom,D=v.left,x="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,C="center"===i?D+m/2:"end"===i?w:D,S=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&D>=0&&E<=p&&w<=d&&b>=T&&E<=P&&D>=j&&w<=_)return S;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?x:"end"===o?x-p:"nearest"===o?lT(g,g+p,p,L,M,g+x,g+x+y,y):x-p/2,$="start"===i?C:"center"===i?C-d/2:"end"===i?C-d:lT(h,h+d,d,I,R,h+C,h+C+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?x-T-L:"end"===o?x-P+M+V:"nearest"===o?lT(T,P,B,L,M+V,x,x+y,y):x-(T+B/2)+V/2,$="start"===i?C-j-I:"center"===i?C-(j+F/2)+H/2:"end"===i?C-_+R+H:lT(j,_,F,I,R+H,C,C+m,m);var U=O.scrollLeft,W=O.scrollTop;x+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),C+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}S.push({el:O,top:z,left:$})}return S}function fT(e){return e===Object(e)&&0!==Object.keys(e).length}function dT(e,t){return nO(t)&&mO.hasDOMNode(e,t,{editable:!0})}function pT(e,t){if(e.getConfig().readOnly)return!1;var n=hT(e,t)&&mO.toSlateNode(e,t);return Cf.isVoid(e,n)}function hT(e,t){return nO(t)&&mO.hasDOMNode(e,t)}function gT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=mO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=MA.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=mO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&$f.equals(l,r)){var c=!0;if($f.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||mO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&mO.toDOMRange(t,r);if(g){$f.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n,r=!e.ownerDocument.documentElement.contains(e);if(fT(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:cT(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:fT(n)?n:{block:"start",inline:"nearest"};!function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(cT(e,o),o.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&dO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=mO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var vT=new WeakMap,yT=new WeakMap,mT={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"},bT={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"},wT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ET=function(e){var t=mT[e],n=bT[e],r=wT[e],o=t&&dv(t),i=n&&dv(n),a=r&&dv(r);return function(e){return!(!o||!o(e))||!!(fO&&i&&i(e))||!(fO||!a||!a(e))}},DT={isBold:ET("bold"),isCompose:ET("compose"),isMoveBackward:ET("moveBackward"),isMoveForward:ET("moveForward"),isDeleteBackward:ET("deleteBackward"),isDeleteForward:ET("deleteForward"),isDeleteLineBackward:ET("deleteLineBackward"),isDeleteLineForward:ET("deleteLineForward"),isDeleteWordBackward:ET("deleteWordBackward"),isDeleteWordForward:ET("deleteWordForward"),isExtendBackward:ET("extendBackward"),isExtendForward:ET("extendForward"),isExtendLineBackward:ET("extendLineBackward"),isExtendLineForward:ET("extendLineForward"),isItalic:ET("italic"),isMoveLineBackward:ET("moveLineBackward"),isMoveLineForward:ET("moveLineForward"),isMoveWordBackward:ET("moveWordBackward"),isMoveWordForward:ET("moveWordForward"),isRedo:ET("redo"),isSplitBlock:ET("splitBlock"),isTransposeCharacter:ET("transposeCharacter"),isUndo:ET("undo"),isTab:ET("tab"),isSelectAll:ET("selectAll")};function xT(e){e.preventDefault()}var CT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(yO&&!o&&dT(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=SS(r.getTargetRanges(),1)[0];if(s){var l=mO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&$f.equals(i,l)||dd.select(n,l)}}if(i&&$f.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Cf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Cf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Cf.deleteForward(n);break;case"deleteContentBackward":Cf.deleteBackward(n);break;case"deleteEntireSoftLine":Cf.deleteBackward(n,{unit:"line"}),Cf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Cf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Cf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Cf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Cf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Cf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Cf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Cf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!KA.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Cf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&dT(n,r.target)){var a=mO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===mO.toDOMNode(n,n)||tO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&nO(u)&&mO.hasDOMNode(n,u)){var s=mO.toSlateNode(n,u);if(mf.isElement(s)&&!n.isVoid(s))return}if(pO){var l=a.getSelection();null==l||l.removeAllRanges()}WA.delete(n)}}}},focus:function(e,t,n){var r=mO.toDOMNode(n,n),o=mO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,dO&&e.target!==r?r.focus():WA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&hT(n,e.target)&&nO(e.target)){var r=mO.toSlateNode(n,e.target),o=mO.findPath(n,r);if(Cf.hasPath(n,o)&&Bf.get(n,o)===r){var i=Cf.start(n,o),a=Cf.end(n,o),u=Cf.void(n,{at:i}),s=Cf.void(n,{at:a});if(u&&s&&Pf.equals(u[1],s[1])){var l=Cf.range(n,i);dd.select(n,l)}}}},compositionstart:function(e,t,n){if(dT(n,e.target)){var r=n.selection;if(r&&$f.isExpanded(r)&&(Cf.deleteFragment(n),Promise.resolve().then((function(){gT(t,n,!0)}))),r&&$f.isCollapsed(r)){var o=mO.toDOMRange(n,r).startContainer,i=o.textContent||"";vT.set(n,i),yT.set(n,o)}t.isComposing=!0,a=t,(u=n).getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&(null===(s=a.$placeholder)||void 0===s||s.hide(),a.showPlaceholder=!1)}var a,u,s},compositionend:function(e,t,n){var r=e;if(dT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(vO||dO)&&mO.cleanExposedTexNodeInSelectionBlock(n);for(var i=$f.isBackward(o)?o.focus:o.anchor,a=SS(Cf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=SS(Cf.node(n,i.path.slice(0,u+1)),1)[0];if(mf.isElement(s)&&((pO||dO)&&"link"===s.type||"code"===s.type)){mO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=mO.getLeftLengthOfMaxLength(n);c<l.length?(mO.toDOMRange(n,o).startContainer.textContent=vT.get(n)||"",c>0&&Cf.insertText(n,l.slice(0,c)),t.changeViewState()):Cf.insertText(n,l)}else Cf.insertText(n,l);pO||setTimeout((function(){var e=n.selection;if(null!=e){var t=yT.get(n);null!=t&&mO.toDOMRange(n,e).startContainer!==t&&(t.textContent=vT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){dT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&dT(n,r.target)){if(function(e,t){var n=OA.get(e),r=n&&n.getMenus(),o=BA.get(e),i=o&&o.getMenus(),a=xS(xS({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&fv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),DT.isTab(r))return xT(r),void n.handleTab();if(DT.isRedo(r))return xT(r),void("function"==typeof n.redo&&n.redo());if(DT.isUndo(r))return xT(r),void("function"==typeof n.undo&&n.undo());if(DT.isMoveLineBackward(r))return xT(r),void dd.move(n,{unit:"line",reverse:!0});if(DT.isMoveLineForward(r))return xT(r),void dd.move(n,{unit:"line"});if(DT.isExtendLineBackward(r))return xT(r),void dd.move(n,{unit:"line",edge:"focus",reverse:!0});if(DT.isExtendLineForward(r))return xT(r),void dd.move(n,{unit:"line",edge:"focus"});if(DT.isMoveBackward(r))return xT(r),void(o&&$f.isCollapsed(o)?dd.move(n,{reverse:!0}):dd.collapse(n,{edge:"start"}));if(DT.isMoveForward(r))return xT(r),void(o&&$f.isCollapsed(o)?dd.move(n):dd.collapse(n,{edge:"end"}));if(DT.isMoveWordBackward(r))return xT(r),o&&$f.isExpanded(o)&&dd.collapse(n,{edge:"focus"}),void dd.move(n,{unit:"word",reverse:!0});if(DT.isMoveWordForward(r))return xT(r),o&&$f.isExpanded(o)&&dd.collapse(n,{edge:"focus"}),void dd.move(n,{unit:"word"});if(DT.isSelectAll(r))return xT(r),void n.selectAll();if(yO){if((vO||pO)&&o&&(DT.isDeleteBackward(r)||DT.isDeleteForward(r))&&$f.isCollapsed(o)){var i=Bf.parent(n,o.anchor.path);if(mf.isElement(i)&&Cf.isVoid(n,i)&&Cf.isInline(n,i))return r.preventDefault(),void dd.delete(n,{unit:"block"})}}else{if(DT.isBold(r)||DT.isItalic(r)||DT.isTransposeCharacter(r))return void xT(r);if(DT.isSplitBlock(r))return xT(r),void Cf.insertBreak(n);if(DT.isDeleteBackward(r))return xT(r),void(o&&$f.isExpanded(o)?Cf.deleteFragment(n,{direction:"backward"}):Cf.deleteBackward(n));if(DT.isDeleteForward(r))return xT(r),void(o&&$f.isExpanded(o)?Cf.deleteFragment(n,{direction:"forward"}):Cf.deleteForward(n));if(DT.isDeleteLineBackward(r))return xT(r),void(o&&$f.isExpanded(o)?Cf.deleteFragment(n,{direction:"backward"}):Cf.deleteBackward(n,{unit:"line"}));if(DT.isDeleteLineForward(r))return xT(r),void(o&&$f.isExpanded(o)?Cf.deleteFragment(n,{direction:"forward"}):Cf.deleteForward(n,{unit:"line"}));if(DT.isDeleteWordBackward(r))return xT(r),void(o&&$f.isExpanded(o)?Cf.deleteFragment(n,{direction:"backward"}):Cf.deleteBackward(n,{unit:"word"}));if(DT.isDeleteWordForward(r))return xT(r),void(o&&$f.isExpanded(o)?Cf.deleteFragment(n,{direction:"forward"}):Cf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!yO&&!n.getConfig().readOnly&&dT(n,e.target)){e.preventDefault();var r=e.key;Cf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(dT(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&dT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if($f.isExpanded(o))Cf.deleteFragment(n);else{var a=Bf.parent(n,o.anchor.path);Cf.isVoid(n,a)&&dd.delete(n)}}},paste:function(e,t,n){KA.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&dT(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void KA.set(n,!1);if(!yO||(r=o).clipboardData&&""!==r.clipboardData.getData("text/plain")&&1===r.clipboardData.types.length){o.preventDefault();var a=o.clipboardData;null!=a&&n.insertData(a)}}},dragover:function(e,t,n){if(hT(n,e.target)){var r=mO.toSlateNode(n,e.target);Cf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(hT(n,r.target)&&!n.getConfig().readOnly){var o=mO.toSlateNode(n,r.target),i=mO.findPath(n,o);if(Cf.isVoid(n,o)||Cf.void(n,{at:i,voids:!0})){var a=Cf.range(n,i);dd.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&hT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&hT(n,r.target)&&null!=o&&!(yO&&pO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=mO.findEventRange(n,r);dd.select(n,a),t.isDraggingInternally&&(i&&dd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},ST=1,AT=function(){function e(e){var t=this;this.id=ST++,this.$textArea=null,this.$progressBar=Ap('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Ap('<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=Lh((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=mO.findDocumentOrShadowRoot(t),a=i.activeElement,u=mO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,WA.set(t,!0)):WA.delete(t),!s)return dd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=dT(t,l)||pT(t,l),d=dT(t,c)||pT(t,c);if(f&&d){var p=mO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});dd.select(t,p)}else dd.deselect(t)}}(t,e)}),100);var n=Ap(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Ap('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Ap('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,gB((function(){var e=t.editorInstance,n=mO.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=SA.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&&(wh(CT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Lh((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-mO.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;iT(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=Ap('<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),gB((function(){gT(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function OT(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&OT(t)}function kT(){return Ap('<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 BT(){return Ap('<div class="w-e-bar-divider"></div>')}function FT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=fO?"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")}}}eS("match",(function(e,t,n){return[function(t){var n=$b(this),r=null==t?void 0:_w(t,e);return r?Cw(r,t,n):new RegExp(t)[e](MD(n))},function(e){var r=Dw(this),o=MD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return fS(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=fS(r,o));){var c=MD(u[0]);s[l]=c,""===c&&(r.lastIndex=nS(o,_E(r.lastIndex),a)),l++}return 0===l?null:s}]}));var TT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Ap('<div class="w-e-bar-item"></div>'),this.$button=Ap('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Ap(c);OT(d),f.append(d)}else f.text(a);FT(f,c,a,s,n),n&&c&&f.append(Ap('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),gB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),UT(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=UT(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=UT(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=UT(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),_T=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return DS(t,e),t.prototype.onButtonClick=function(){},t}(TT),PT=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=TA.get(e);null==t&&(t=new Set,TA.set(e,t)),t.add(this),_A.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=_A.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=_A.get(this);e&&e.emit("modalOrPanelHide")}},e}(),jT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Ap('<div class="w-e-drop-panel"></div>'),n}return DS(t,e),t.prototype.genSelfElem=function(){return null},t}(PT),NT=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=kT();o.$button.append(i)}return o}return DS(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=UT(this);if(null==this.dropPanel){var n=new jT(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(TT),IT=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Ap('<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 DS(t,e),t.prototype.genSelfElem=function(){var e=this,t=Ap('<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=_A.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}(PT);function LT(e,t,n){var r=Ap('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Ap('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function RT(e,t){var n=Ap('<div class="button-container"></div>'),r=Ap('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var MT=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Ap("body"),o.modal=null,o.menu=n,o}return DS(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=UT(this),t=this.menu.getModalPositionNode(e);return mf.isElement(t)?NF(e,t,"modal"):jF(e)},t.prototype.handleModal=function(){var e=UT(this),t=this.menu;if(null==this.modal){var n=new IT(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=UT(this),r=this.menu;if(null!=r.getModalContentElem){var o=mO.getTextarea(n),i=mO.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||IF(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(TT),zT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Ap('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return DS(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Ap("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Ap('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Ap('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(Ap('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(PT),$T=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Ap('<div class="w-e-bar-item"></div>'),this.$button=Ap('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),FT(f,s,i,c,n),this.$elem.append(f),this.menu=t,gB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),UT(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=UT(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new zT(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=Ap(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=UT(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=UT(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=kT();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=UT(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}(),HT=function(){function e(e){this.$elem=Ap('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Ap('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Ap('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Ap(n);OT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=kT();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Ap(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),VT=new WeakMap;function UT(e){var t=FA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function WT(e,t,n){void 0===n&&(n=!1);var r=VT.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new NT(e,t,n):a?new MT(e,t,n):new _T(e,t,n)}if("select"===o&&(r=new $T(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return VT.set(t,r),r}function GT(e,t){var n=e.selection;return null!=n&&!$f.isCollapsed(n)&&!mO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Kf.isText(t)}var qT=function(){function e(){var e=this;this.$elem=Ap('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=kv((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&mf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),gB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),mO.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;gB((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=BT();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=EO[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=WT(e,r);this.hoverbarItems.push(i),FA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),mf.isElement(e)){var r=NF(t,e,"bar");return n.css(r),void IF(t,n)}if(Kf.isText(e))return r=jF(t),n.css(r),void IF(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return mO.checkNodeType(t,o)},c=SS(Cf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(null!=c)return n=c[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=kA.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=GT),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=mO.findPath(null,e),r=mO.findPath(null,t);return Pf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function KT(e,t,n,r){if(LA.set(e,t),RA.set(e,n),mf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return KT(t,n,e,r)})),Cf.isVoid(r,e)){var i=SS(Bf.texts(e),1),a=SS(i[0],1)[0];LA.set(a,0),RA.set(a,e)}}}function YT(e){var t,n=e.selector,r=void 0===n?"":n,o=e.config,i=void 0===o?{}:o,a=e.content,u=e.html,s=e.plugins,l=void 0===s?[]:s,c=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];LD.withoutSaving(t,(()=>{Cf.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];LD.withoutSaving(t,(()=>{Cf.withoutNormalizing(t,(()=>{var e=r.map(_f.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var r,o,{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],l=s&&s[s.length-1],c=(r=e,!(!(o=l)||"set_selection"!==r.type||"set_selection"!==o.type)),f=LD.isSaving(t),d=LD.isMerging(t);if(null==f&&(f=(e=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),f){if(null==d&&(d=null!=s&&(0!==i.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Pf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Pf.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=mO.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=mO.getLeftLengthOfMaxLength(t);n<=0||n<Bf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(mO.getLeftLengthOfMaxLength(t)<Bf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=mO.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===JA.TEXT_NODE?e+(t.textContent||""):n===JA.ELEMENT_NODE?sF.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"").length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=FF(t);if(r.on(e,n),"destroyed"===e&&_F(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),_F(t,o)}},t.once=function(e,n){FF(t).once(e,n)},t.off=function(e,n){FF(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=FF(t);o.emit.apply(o,AS([e],SS(n))),"destroyed"===e&&(function(e){return TF.get(e)||new Set}(t).forEach((function(e){return o.off("destroyed",e)})),function(e){TF.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){dd.select(t,e)},t.deselect=function(){var n=t.selection,r=mO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&dd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||dd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=GA.get(t);null!=e&&(t.focus(),dd.select(t,e))},t.getSelectionPosition=function(){return jF(t)},t.getNodePosition=function(e){return NF(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=SS($f.edges(e),2),r=n[0],o=n[1],i=SS(Cf.edges(t,[]),2),a=i[0],u=i[1];return!(!Lf.equals(r,a)||!Lf.equals(o,u))},t.selectAll=function(){var e=Cf.start(t,[]),n=Cf.end(t,[]);dd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=CS(Cf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=SS(p.value,2),g=h[0],v=h[1],y=mO.findKey(t,g);f.push([v,y])}}catch(O){n={error:O}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=CS(Cf.levels(t,{at:Pf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=SS(b.value,2);g=w[0],v=w[1],y=mO.findKey(t,g),f.push([v,y])}}catch(O){i={error:O}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=CS(Cf.levels(t,{at:Pf.common(Pf.parent(e.path),Pf.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var x=SS(D.value,2);g=x[0],v=x[1],y=mO.findKey(t,g),f.push([v,y])}}catch(O){u={error:O}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var C=CS(f),S=C.next();!S.done;S=C.next()){var A=SS(S.value,2);v=A[0],y=A[1],g=SS(Cf.node(t,v),1)[0],VA.set(g,y)}}catch(O){l={error:O}}finally{try{S&&!S.done&&(c=C.return)&&c.call(C)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&$f.isCollapsed(e.selection)){var r=Cf.above(e,{match:function(t){return Cf.isBlock(e,t)},at:e.selection});if(r){var o=SS(r,2)[1],a=Cf.range(e,o,e.selection.anchor),u=function(e,t){var n=Cf.range(e,$f.end(t)),r=Array.from(Cf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(bB(e,Cf.range(e,r[o]),n))return Cf.range(e,r[o],n);if(r.length<2)return Cf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)bB(e,Cf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Cf.range(e,r[i],n)}(t,a);$f.isCollapsed(u)||dd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&GA.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return vB(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Bf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Cf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Cf.nodes(t,{at:[],universal:!0});try{for(var u=CS(a),s=u.next();!s.done;s=u.next()){var l=SS(s.value,1)[0];if(mf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=yB(mO.findKey(t,l).id);i.push(xS(xS({},l),{id:c}))}}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(mf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Kf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){dd.delete(t,{at:{anchor:Cf.start(t,[]),focus:Cf.end(t,[])}}),0===t.children.length&&dd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return mO.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===JA.TEXT_NODE||t===JA.ELEMENT_NODE&&!sF.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;mO.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==JA.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(wB.includes(r.toLowerCase()))s=!0;else for(var l in xB)if(a.matches(l)){s=!0;break}if(s){var c=eF(Ap(a),t);return Array.isArray(c)?(c.forEach((function(e){return lF(t,e)})),u++):(lF(t,c),u++),void(mO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;mO.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&mO.isEmptyPath(t,a)&&dd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=nF(t,e);if(dd.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(a){t.select(Cf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in EO)e.push(t);return e},t.getConfig=function(){var e=PA.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}((t=cF((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Cf.pathRefs(e))jf.transform(n,t);for(var r of Cf.pointRefs(e))Rf.transform(r,t);for(var o of Cf.rangeRefs(e))Hf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Pc.get(e)||[],l=$c(t);for(var c of s)u(Pf.transform(c,t));for(var f of l)u(f);Pc.set(e,a),dd.transform(e,t),e.operations.push(t),Cf.normalize(e),"set_selection"===t.type&&(e.marks=null),jc.get(e)||(jc.set(e,!0),Promise.resolve().then((()=>{jc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if($f.isExpanded(r))dd.setNodes(e,{[t]:n},{match:Kf.isText,split:!0});else{var o=zc(zc({},Cf.marks(e)||{}),{},{[t]:n});e.marks=o,jc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&$f.isCollapsed(n)&&dd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&$f.isCollapsed(n)&&dd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&$f.isExpanded(n)&&dd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Bf.fragment(e,t):[]},insertBreak:()=>{dd.splitNodes(e,{always:!0})},insertFragment:t=>{dd.insertFragment(e,t)},insertNode:t=>{dd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=zc({text:t},r);dd.insertNodes(e,o)}else dd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Kf.isText(n))if(mf.isElement(n)&&0===n.children.length)dd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Cf.isEditor(n)&&mf.isElement(n)&&(e.isInline(n)||0===n.children.length||Kf.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Bf.get(e,r);if(!Kf.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Kf.isText(s)||mf.isElement(s)&&e.isInline(s))!==o?(dd.removeNodes(e,{at:r.concat(i),voids:!0}),i--):mf.isElement(s)?e.isInline(s)&&(null!=l&&Kf.isText(l)?c&&(dd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(dd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Kf.isText(l)&&(Kf.equals(s,l,{loose:!0})?(dd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(dd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(dd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if($f.isExpanded(n))dd.unsetNodes(e,t,{match:Kf.isText,split:!0});else{var r=zc({},Cf.marks(e)||{});delete r[t],e.marks=r,jc.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+bO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(mO.toDOMNode(t,t).focus({preventScroll:!0}),WA.set(t,!0),e){var n=Cf.end(t,[]);dd.select(t,n)}else{var r=GA.get(t);r?dd.select(t,r):dd.select(t,Cf.start(t,[]))}},t.isFocused=function(){return!!WA.get(t)},t.blur=function(){mO.toDOMNode(t,t).blur(),dd.deselect(t),WA.set(t,!1)},t.updateView=function(){mO.getTextarea(t).changeViewState();var e=mO.getToolbar(t);e&&e.changeToolbarState();var n=mO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=mO.getTextarea(t);e.destroy(),CA.delete(t),SA.delete(e);var n=mO.getToolbar(t);n&&(n.destroy(),OA.delete(t),AA.delete(n));var r=mO.getHoverbar(t);r&&(r.destroy(),BA.delete(t),kA.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Ap("#"+e);if(0!==r.length){var o=r[0];if(!mO.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=mO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||mO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=TA.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return mO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=mO.getToolbar(t);n&&(e=n.$box);var r=mO.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=mO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return mO.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return tF(e,"data-w-e-textarea",t)}(c,r))throw new Error("Repeated create editor by selector '"+r+"'");var f=function(e){void 0===e&&(e={});var t=Bv(wO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return wh(t,(function(e,t){n[t]=xS(xS({},e),o[t]||{})})),delete e.MENU_CONF,xS({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(i);PA.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=nF(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),mO.normalizeContent(c),r){var h=new AT(r);CA.set(c,h),SA.set(h,c),h.changeViewState(),gB((function(){var e=h.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var g=void 0;Object.keys(p).length>0&&(g=new qT,kA.set(g,c),BA.set(c,g)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return KT(e,t,c,c)}));var v=f.onCreated,y=f.onDestroyed;return v&&c.on("created",(function(){return v(c)})),y&&c.on("destroyed",(function(){return y(c)})),gB((function(){return c.emit("created")})),c}var XT=CC("splice"),ZT=Fb.TypeError,JT=Math.max,QT=Math.min;FD({target:"Array",proto:!0,forced:!XT},{splice:function(e,t){var n,r,o,i,a,u,s=Vb(this),l=PE(s),c=lD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=QT(JT(FE(t),0),l-c)),l+n-r>9007199254740991)throw ZT("Maximum allowed length exceeded");for(o=WE(s,r),i=0;i<r;i++)(a=c+i)in s&&Ex(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var e_=function(){function e(e,t){var n=this;this.$toolbar=Ap('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=kv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Ap(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),gB((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=Bv(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=BT();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=new HT(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof HT,o=this.menus,i=o[e];if(null==i){var a=EO[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=WT(e,i,r);this.toolbarItems.push(u),FA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=AA.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),t_=lE.EXISTS,n_=Mw.f,r_=Function.prototype,o_=Mb(r_.toString),i_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,a_=Mb(i_.exec);function u_(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,E=e.onSuccess,D=void 0===E?function(e,t){}:E,x=e.onError,C=void 0===x?function(e,t,n){console.error(e.name+" upload error",t,n)}:x,S=e.onProgress,A=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=SS(e.split("#"),2),r=n[0],o=n[1],i=[];wh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var k=new em({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Cb,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return k.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{D(e,r)}catch(o){console.error("wangEditor upload file - onSuccess error",o)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{C(e,t,n)}catch(r){console.error("wangEditor upload file - onError error",r)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{C(e,t)}catch(n){console.error("wangEditor upload file - onError error",n)}k.removeFile(e.id)})),k}function s_(e){return(s_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c_(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){l_(e,t,n[t])}))}return e}function f_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p_(e,t,n){return t&&d_(e.prototype,t),n&&d_(e,n),e}function h_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g_(e,t){if(t&&("object"===s_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h_(e)}function v_(e){return(v_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y_(e,t){return(y_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m_(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y_(e,t)}hw&&!t_&&n_(r_,"name",{configurable:!0,get:function(){try{return a_(i_,o_(this))[1]}catch(se){return""}}});var b_={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)}},w_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f_(this,e),this.init(t,n)}return p_(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||b_,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,c_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),E_=function(){function e(){f_(this,e),this.observers={}}return p_(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 D_(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function x_(e){return null==e?"":""+e}function C_(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 S_(e,t,n){var r=C_(e,t,Object);r.obj[r.k]=n}function A_(e,t){var n=C_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function O_(e,t,n){var r=A_(e,n);return void 0!==r?r:A_(t,n)}function k_(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]):k_(e[r],t[r],n):e[r]=t[r]);return e}function B_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var F_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function T_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return F_[e]})):e}var __="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function P_(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?P_(s,l,n):void 0}o=o[r[i]]}return o}}var j_=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return f_(this,e),n=g_(this,v_(e).call(this)),__&&E_.call(h_(n)),n.data=t||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return m_(e,E_),p_(e,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=A_(this.data,a);return u||!i||"string"!=typeof n?u:P_(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),S_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=A_(this.data,a)||{};r?k_(u,n,o):u=c_({},u,n),S_(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?c_({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),e}(),N_={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}},I_={},L_=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f_(this,e),n=g_(this,v_(e).call(this)),__&&E_.call(h_(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,h_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=w_.create("translator"),n}return m_(e,E_),p_(e,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(t,n,r){var o=this;if("object"!==s_(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(t[t.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(t,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,c_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,E=w?[]:{},D=w?v:g;for(var x in h)if(Object.prototype.hasOwnProperty.call(h,x)){var C="".concat(D).concat(i).concat(x);E[x]=this.translate(C,c_({},n,{joinArrays:!1,ns:s})),E[x]===C&&(E[x]=h[x])}h=E}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,t,n,r));else{var S=!1,A=!1,O=void 0!==n.count&&"string"!=typeof n.count,k=e.hasDefaultValue(n),B=O?this.pluralResolver.getSuffix(c,n.count):"",F=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(S=!0,h=F),this.isValidLookup(h)||(A=!0,h=u);var T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:h,_=k&&F!==h&&this.options.updateMissing;if(A||S||_){if(this.logger.log(_?"updateKey":"missingKey",c,l,u,_?F:h),i){var P=this.resolve(u,c_({},n,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I<N.length;I++)j.push(N[I]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var L=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,_?r:T,_,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,_?r:T,_,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){L([e],u+t,n["defaultValue".concat(t)]||F)}))})):L(j,u,F))}h=this.extendTranslation(h,t,n,p,r),A&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(A||S)&&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(c_({},n,{interpolation:c_({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=c_({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=N_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?c_({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!I_["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(I_["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),e}();function R_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var M_=function(){function e(t){f_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=w_.create("languageUtils")}return p_(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]=R_(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]=R_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=R_(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}(),z_=[{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}],$_={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 H_=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};f_(this,e),this.languageUtils=t,this.options=n,this.logger=w_.create("pluralResolver"),this.rules=function(){var e={};return z_.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:$_[t.fc]}}))})),e}()}return p_(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}(),V_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f_(this,e),this.logger=w_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return p_(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:T_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?B_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?B_(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?B_(t.nestingPrefix):t.nestingPrefixEscaped||B_("$t("),this.nestingSuffix=t.nestingSuffix?B_(t.nestingSuffix):t.nestingSuffixEscaped||B_(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=O_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,c_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(O_(t,s,a),l,n,c_({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=x_(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=c_({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=c_({},t,a))}catch(i){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),i),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=x_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,c_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),U_=function(){function e(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return f_(this,e),o=g_(this,v_(e).call(this)),__&&E_.call(h_(o)),o.backend=t,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=w_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return m_(e,E_),p_(e,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,l,c;r=n.loaded,u=i,s=C_(r,[o],Object),l=s.obj,c=s.k,l[c]=l[c]||[],l[c].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,c_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),e}();function W_(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 G_(){}var q_=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(f_(this,e),t=g_(this,v_(e).call(this)),__&&E_.call(h_(t)),t.options=W_(n),t.services={},t.logger=w_,t.modules={external:[]},r&&!t.isInitialized&&!n.isClone){if(!t.options.initImmediate)return t.init(n,r),g_(t,h_(t));setTimeout((function(){t.init(n,r)}),0)}return t}return m_(e,E_),p_(e,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=c_({},{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"===s_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===s_(e[2])||"object"===s_(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,W_(t)),this.format=this.options.interpolation.format,n||(n=G_),!this.options.isClone){this.modules.logger?w_.init(r(this.modules.logger),this.options):w_.init(null,this.options);var o=new M_(this.options);this.store=new j_(this.options.resources,this.options);var i=this.services;i.logger=w_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new H_(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new V_(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new U_(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 L_(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=D_(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G_,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=D_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=G_),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&&N_.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=D_();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){var o,a;o=e,(a=i)?(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(o,(function(){return n.t.apply(n,arguments)}))}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==s_(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=c_({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=D_();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=D_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G_,o=c_({},this.options,n,{isClone:!0}),i=new e(o);return["store","services","language"].forEach((function(e){i[e]=t[e]})),i.services=c_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new L_(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),K_=new q_;function Y_(e,t){K_.addResourceBundle(e,"translation",t,!0,!0)}K_.init({lng:"zh-CN",resources:{}});var X_=K_.t.bind(K_);Y_("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Y_("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Z_=aa?{}.toString:function(){return"[object "+ca(this)+"]"};aa||ki(Object.prototype,"toString",Z_,{unsafe:!0});var J_,Q_=Array.isArray||function(e){return"Array"==Zr(e)},eP=function(){},tP=[],nP=ao("Reflect","construct"),rP=/^\s*(?:class|function)\b/,oP=Kr(rP.exec),iP=!rP.exec(eP),aP=function(e){if(!oo(e))return!1;try{return nP(eP,tP,e),!0}catch(t){return!1}},uP=!nP||Nr((function(){var e;return aP(aP.call)||!aP(Object)||!aP((function(){e=!0}))||e}))?function(e){if(!oo(e))return!1;switch(ca(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iP||!!oP(rP,ci(e))}:aP,sP=$o("species"),lP=jr.Array,cP=function(e,t){return new(Q_(n=e)&&(r=n.constructor,(uP(r)&&(r===lP||Q_(r.prototype))||io(r)&&null===(r=r[sP]))&&(r=void 0)),void 0===r?lP:r)(0===t?0:t);var n,r},fP=Kr([].push),dP=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Fo(s),g=eo(h),v=mu(l,c),y=Li(g),m=0,b=f||cP,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:fP(w,d)}else switch(e){case 4:return!1;case 7:fP(w,d)}return i?-1:r||o?o:w}}(0),pP=!!(J_=[].forEach)&&Nr((function(){J_.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return dP(this,e,arguments.length>1?arguments[1]:void 0)},hP=function(e){if(e&&e.forEach!==pP)try{ii(e,"forEach",pP)}catch(t){e.forEach=pP}};for(var gP in cs)cs[gP]&&hP(jr[gP]&&jr[gP].prototype);hP(ps),Y_("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Y_("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var vP={type:"paragraph",renderElem:function(e,t,n){return vg("p",null,t)}},yP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function mP(e){var t={exports:{}};return e(t,t.exports),t.exports}var bP,wP,EP=function(e){return e&&e.Math==Math&&e},DP=EP("object"==typeof globalThis&&globalThis)||EP("object"==typeof window&&window)||EP("object"==typeof self&&self)||EP("object"==typeof yP&&yP)||function(){return this}()||Function("return this")(),xP=function(e){try{return!!e()}catch(t){return!0}},CP=!xP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),SP=Function.prototype.call,AP=SP.bind?SP.bind(SP):function(){return SP.apply(SP,arguments)},OP={}.propertyIsEnumerable,kP=Object.getOwnPropertyDescriptor,BP=kP&&!OP.call({1:2},1)?function(e){var t=kP(this,e);return!!t&&t.enumerable}:OP,FP={f:BP},TP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_P=Function.prototype,PP=_P.bind,jP=_P.call,NP=PP&&PP.bind(jP),IP=PP?function(e){return e&&NP(jP,e)}:function(e){return e&&function(){return jP.apply(e,arguments)}},LP=IP({}.toString),RP=IP("".slice),MP=function(e){return RP(LP(e),8,-1)},zP=DP.Object,$P=IP("".split),HP=xP((function(){return!zP("z").propertyIsEnumerable(0)}))?function(e){return"String"==MP(e)?$P(e,""):zP(e)}:zP,VP=DP.TypeError,UP=function(e){if(null==e)throw VP("Can't call method on "+e);return e},WP=function(e){return HP(UP(e))},GP=function(e){return"function"==typeof e},qP=function(e){return"object"==typeof e?null!==e:GP(e)},KP=function(e,t){return arguments.length<2?function(e){return GP(e)?e:void 0}(DP[e]):DP[e]&&DP[e][t]},YP=IP({}.isPrototypeOf),XP=KP("navigator","userAgent")||"",ZP=DP.process,JP=DP.Deno,QP=ZP&&ZP.versions||JP&&JP.version,ej=QP&&QP.v8;ej&&(wP=(bP=ej.split("."))[0]>0&&bP[0]<4?1:+(bP[0]+bP[1])),!wP&&XP&&(!(bP=XP.match(/Edge\/(\d+)/))||bP[1]>=74)&&(bP=XP.match(/Chrome\/(\d+)/))&&(wP=+bP[1]);var tj=wP,nj=!!Object.getOwnPropertySymbols&&!xP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&tj&&tj<41})),rj=nj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,oj=DP.Object,ij=rj?function(e){return"symbol"==typeof e}:function(e){var t=KP("Symbol");return GP(t)&&YP(t.prototype,oj(e))},aj=DP.String,uj=function(e){try{return aj(e)}catch(t){return"Object"}},sj=DP.TypeError,lj=function(e){if(GP(e))return e;throw sj(uj(e)+" is not a function")},cj=function(e,t){var n=e[t];return null==n?void 0:lj(n)},fj=DP.TypeError,dj=Object.defineProperty,pj=function(e,t){try{dj(DP,e,{value:t,configurable:!0,writable:!0})}catch(J_){DP[e]=t}return t},hj=DP["__core-js_shared__"]||pj("__core-js_shared__",{}),gj=mP((function(e){(e.exports=function(e,t){return hj[e]||(hj[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),vj=DP.Object,yj=function(e){return vj(UP(e))},mj=IP({}.hasOwnProperty),bj=Object.hasOwn||function(e,t){return mj(yj(e),t)},wj=0,Ej=Math.random(),Dj=IP(1..toString),xj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Dj(++wj+Ej,36)},Cj=gj("wks"),Sj=DP.Symbol,Aj=Sj&&Sj.for,Oj=rj?Sj:Sj&&Sj.withoutSetter||xj,kj=function(e){if(!bj(Cj,e)||!nj&&"string"!=typeof Cj[e]){var t="Symbol."+e;nj&&bj(Sj,e)?Cj[e]=Sj[e]:Cj[e]=rj&&Aj?Aj(t):Oj(t)}return Cj[e]},Bj=DP.TypeError,Fj=kj("toPrimitive"),Tj=function(e){var t=function(e){if(!qP(e)||ij(e))return e;var t,n=cj(e,Fj);if(n){if(t=AP(n,e,"string"),!qP(t)||ij(t))return t;throw Bj("Can't convert object to primitive value")}return function(e){var t,n;if(GP(t=e.toString)&&!qP(n=AP(t,e)))return n;if(GP(t=e.valueOf)&&!qP(n=AP(t,e)))return n;throw fj("Can't convert object to primitive value")}(e)}(e);return ij(t)?t:t+""},_j=DP.document,Pj=qP(_j)&&qP(_j.createElement),jj=function(e){return Pj?_j.createElement(e):{}},Nj=!CP&&!xP((function(){return 7!=Object.defineProperty(jj("div"),"a",{get:function(){return 7}}).a})),Ij=Object.getOwnPropertyDescriptor,Lj={f:CP?Ij:function(e,t){if(e=WP(e),t=Tj(t),Nj)try{return Ij(e,t)}catch(n){}if(bj(e,t))return TP(!AP(FP.f,e,t),e[t])}},Rj=DP.String,Mj=DP.TypeError,zj=function(e){if(qP(e))return e;throw Mj(Rj(e)+" is not an object")},$j=DP.TypeError,Hj=Object.defineProperty,Vj={f:CP?Hj:function(e,t,n){if(zj(e),t=Tj(t),zj(n),Nj)try{return Hj(e,t,n)}catch(r){}if("get"in n||"set"in n)throw $j("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Uj=CP?function(e,t,n){return Vj.f(e,t,TP(1,n))}:function(e,t,n){return e[t]=n,e},Wj=IP(Function.toString);GP(hj.inspectSource)||(hj.inspectSource=function(e){return Wj(e)});var Gj,qj,Kj,Yj=hj.inspectSource,Xj=DP.WeakMap,Zj=GP(Xj)&&/native code/.test(Yj(Xj)),Jj=gj("keys"),Qj=function(e){return Jj[e]||(Jj[e]=xj(e))},eN={},tN=DP.TypeError,nN=DP.WeakMap;if(Zj||hj.state){var rN=hj.state||(hj.state=new nN),oN=IP(rN.get),iN=IP(rN.has),aN=IP(rN.set);Gj=function(e,t){if(iN(rN,e))throw new tN("Object already initialized");return t.facade=e,aN(rN,e,t),t},qj=function(e){return oN(rN,e)||{}},Kj=function(e){return iN(rN,e)}}else{var uN=Qj("state");eN[uN]=!0,Gj=function(e,t){if(bj(e,uN))throw new tN("Object already initialized");return t.facade=e,Uj(e,uN,t),t},qj=function(e){return bj(e,uN)?e[uN]:{}},Kj=function(e){return bj(e,uN)}}var sN={get:qj,enforce:function(e){return Kj(e)?qj(e):Gj(e,{})}},lN=Function.prototype,cN=CP&&Object.getOwnPropertyDescriptor,fN=bj(lN,"name"),dN={EXISTS:fN,PROPER:fN&&"something"===function(){}.name,CONFIGURABLE:fN&&(!CP||CP&&cN(lN,"name").configurable)},pN=mP((function(e){var t=dN.CONFIGURABLE,n=sN.get,r=sN.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;GP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!bj(i,"name")||t&&i.name!==f)&&Uj(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==DP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Uj(e,n,i)):l?e[n]=i:pj(n,i)})(Function.prototype,"toString",(function(){return GP(this)&&n(this).source||Yj(this)}))})),hN=Math.ceil,gN=Math.floor,vN=function(e){var t=+e;return t!=t||0===t?0:(t>0?gN:hN)(t)},yN=Math.max,mN=Math.min,bN=function(e,t){var n=vN(e);return n<0?yN(n+t,0):mN(n,t)},wN=Math.min,EN=function(e){return e>0?wN(vN(e),9007199254740991):0},DN=function(e){return EN(e.length)},xN=function(e){return function(t,n,r){var o,i=WP(t),a=DN(i),u=bN(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},CN={includes:xN(!0),indexOf:xN(!1)},SN=CN.indexOf,AN=IP([].push),ON=function(e,t){var n,r=WP(e),o=0,i=[];for(n in r)!bj(eN,n)&&bj(r,n)&&AN(i,n);for(;t.length>o;)bj(r,n=t[o++])&&(~SN(i,n)||AN(i,n));return i},kN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],BN=kN.concat("length","prototype"),FN={f:Object.getOwnPropertyNames||function(e){return ON(e,BN)}},TN={f:Object.getOwnPropertySymbols},_N=IP([].concat),PN=KP("Reflect","ownKeys")||function(e){var t=FN.f(zj(e)),n=TN.f;return n?_N(t,n(e)):t},jN=function(e,t){for(var n=PN(t),r=Vj.f,o=Lj.f,i=0;i<n.length;i++){var a=n[i];bj(e,a)||r(e,a,o(t,a))}},NN=/#|\.prototype\./,IN=function(e,t){var n=RN[LN(e)];return n==zN||n!=MN&&(GP(t)?xP(t):!!t)},LN=IN.normalize=function(e){return String(e).replace(NN,".").toLowerCase()},RN=IN.data={},MN=IN.NATIVE="N",zN=IN.POLYFILL="P",$N=IN,HN=Lj.f,VN=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?DP:l?DP[u]||pj(u,{}):(DP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=HN(n,r))&&a.value:n[r],!$N(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jN(i,o)}(e.sham||o&&o.sham)&&Uj(i,"sham",!0),pN(n,r,i,e)}},UN=IP(IP.bind),WN=Array.isArray||function(e){return"Array"==MP(e)},GN={};GN[kj("toStringTag")]="z";var qN="[object z]"===String(GN),KN=kj("toStringTag"),YN=DP.Object,XN="Arguments"==MP(function(){return arguments}()),ZN=qN?MP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=YN(e),KN))?n:XN?MP(t):"Object"==(r=MP(t))&&GP(t.callee)?"Arguments":r},JN=function(){},QN=[],eI=KP("Reflect","construct"),tI=/^\s*(?:class|function)\b/,nI=IP(tI.exec),rI=!tI.exec(JN),oI=function(e){if(!GP(e))return!1;try{return eI(JN,QN,e),!0}catch(t){return!1}},iI=!eI||xP((function(){var e;return oI(oI.call)||!oI(Object)||!oI((function(){e=!0}))||e}))?function(e){if(!GP(e))return!1;switch(ZN(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rI||!!nI(tI,Yj(e))}:oI,aI=kj("species"),uI=DP.Array,sI=function(e,t){return new(WN(n=e)&&(r=n.constructor,(iI(r)&&(r===uI||WN(r.prototype))||qP(r)&&null===(r=r[aI]))&&(r=void 0)),void 0===r?uI:r)(0===t?0:t);var n,r},lI=IP([].push),cI=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=yj(s),g=HP(h),v=function(e,t){return lj(e),void 0===t?e:UN?UN(e,t):function(){return e.apply(t,arguments)}}(l,c),y=DN(g),m=0,b=f||sI,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:lI(w,d)}else switch(e){case 4:return!1;case 7:lI(w,d)}return i?-1:r||o?o:w}},fI={forEach:cI(0),map:cI(1),filter:cI(2),find:cI(5)},dI=kj("species"),pI=function(e){return tj>=51||!xP((function(){var t=[];return(t.constructor={})[dI]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},hI=fI.filter;VN({target:"Array",proto:!0,forced:!pI("filter")},{filter:function(e){return hI(this,e,arguments.length>1?arguments[1]:void 0)}});var gI=qN?{}.toString:function(){return"[object "+ZN(this)+"]"};qN||pN(Object.prototype,"toString",gI,{unsafe:!0});var vI,yI=DP.String,mI=function(e){if("Symbol"===ZN(e))throw TypeError("Cannot convert a Symbol value to a string");return yI(e)},bI=function(){var e=zj(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wI=DP.RegExp,EI=xP((function(){var e=wI("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));EI||xP((function(){return!wI("a","y").sticky}));var DI={BROKEN_CARET:EI||xP((function(){var e=wI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:EI},xI=Object.keys||function(e){return ON(e,kN)},CI=CP?Object.defineProperties:function(e,t){zj(e);for(var n,r=WP(t),o=xI(t),i=o.length,a=0;i>a;)Vj.f(e,n=o[a++],r[n]);return e},SI=KP("document","documentElement"),AI=Qj("IE_PROTO"),OI=function(){},kI=function(e){return"<script>"+e+"<\/script>"},BI=function(e){e.write(kI("")),e.close();var t=e.parentWindow.Object;return e=null,t},FI=function(){try{vI=new ActiveXObject("htmlfile")}catch(r){}var e,t;FI="undefined"!=typeof document?document.domain&&vI?BI(vI):((t=jj("iframe")).style.display="none",SI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(kI("document.F=Object")),e.close(),e.F):BI(vI);for(var n=kN.length;n--;)delete FI.prototype[kN[n]];return FI()};eN[AI]=!0;var TI,_I,PI=Object.create||function(e,t){var n;return null!==e?(OI.prototype=zj(e),n=new OI,OI.prototype=null,n[AI]=e):n=FI(),void 0===t?n:CI(n,t)},jI=DP.RegExp,NI=xP((function(){var e=jI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),II=DP.RegExp,LI=xP((function(){var e=II("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),RI=sN.get,MI=gj("native-string-replace",String.prototype.replace),zI=RegExp.prototype.exec,$I=zI,HI=IP("".charAt),VI=IP("".indexOf),UI=IP("".replace),WI=IP("".slice),GI=(_I=/b*/g,AP(zI,TI=/a/,"a"),AP(zI,_I,"a"),0!==TI.lastIndex||0!==_I.lastIndex),qI=DI.BROKEN_CARET,KI=void 0!==/()??/.exec("")[1];(GI||KI||qI||NI||LI)&&($I=function(e){var t,n,r,o,i,a,u,s=this,l=RI(s),c=mI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=AP($I,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=qI&&s.sticky,h=AP(bI,s),g=s.source,v=0,y=c;if(p&&(h=UI(h,"y",""),-1===VI(h,"g")&&(h+="g"),y=WI(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==HI(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),KI&&(n=new RegExp("^"+g+"$(?!\\s)",h)),GI&&(r=s.lastIndex),o=AP(zI,p?n:s,y),p?o?(o.input=WI(o.input,v),o[0]=WI(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:GI&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),KI&&o&&o.length>1&&AP(MI,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=PI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var YI=$I;VN({target:"RegExp",proto:!0,forced:/./.exec!==YI},{exec:YI});var XI=Function.prototype,ZI=XI.apply,JI=XI.bind,QI=XI.call,eL="object"==typeof Reflect&&Reflect.apply||(JI?QI.bind(ZI):function(){return QI.apply(ZI,arguments)}),tL=kj("species"),nL=RegExp.prototype,rL=function(e,t,n,r){var o=kj(e),i=!xP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!xP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[tL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=IP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=IP(e),s=t.exec;return s===YI||s===nL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));pN(String.prototype,e,s[0]),pN(nL,o,s[1])}r&&Uj(nL[o],"sham",!0)},oL=IP("".charAt),iL=IP("".charCodeAt),aL=IP("".slice),uL=function(e){return function(t,n){var r,o,i=mI(UP(t)),a=vN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=iL(i,a))<55296||r>56319||a+1===u||(o=iL(i,a+1))<56320||o>57343?e?oL(i,a):r:e?aL(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),sL=function(e,t,n){return t+(n?uL(e,t).length:1)},lL=Math.floor,cL=IP("".charAt),fL=IP("".replace),dL=IP("".slice),pL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hL=/\$([$&'`]|\d{1,2})/g,gL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=hL;return void 0!==o&&(o=yj(o),s=pL),fL(i,s,(function(i,s){var l;switch(cL(s,0)){case"$":return"$";case"&":return e;case"`":return dL(t,0,n);case"'":return dL(t,a);case"<":l=o[dL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=lL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?cL(s,1):r[f-1]+cL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},vL=DP.TypeError,yL=function(e,t){var n=e.exec;if(GP(n)){var r=AP(n,e,t);return null!==r&&zj(r),r}if("RegExp"===MP(e))return AP(YI,e,t);throw vL("RegExp#exec called on incompatible receiver")},mL=kj("replace"),bL=Math.max,wL=Math.min,EL=IP([].concat),DL=IP([].push),xL=IP("".indexOf),CL=IP("".slice),SL="$0"==="a".replace(/./,"$0"),AL=!!/./[mL]&&""===/./[mL]("a","$0");rL("replace",(function(e,t,n){var r=AL?"$":"$0";return[function(e,n){var r=UP(this),o=null==e?void 0:cj(e,mL);return o?AP(o,e,r,n):AP(t,mI(r),e,n)},function(e,o){var i=zj(this),a=mI(e);if("string"==typeof o&&-1===xL(o,r)&&-1===xL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=GP(o);s||(o=mI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=yL(i,a);if(null===d)break;if(DL(f,d),!l)break;""===mI(d[0])&&(i.lastIndex=sL(a,EN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=mI((d=f[v])[0]),m=bL(wL(vN(d.index),a.length),0),b=[],w=1;w<d.length;w++)DL(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=EL([y],b,m,a);void 0!==E&&DL(D,E);var x=mI(eL(o,void 0,D))}else x=gL(y,a,m,b,E,o);m>=g&&(h+=CL(a,g,m)+x,g=m+y.length)}return h+CL(a,g)}]}),!!xP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!SL||AL);var OL=kj("unscopables"),kL=Array.prototype;null==kL[OL]&&Vj.f(kL,OL,{configurable:!0,value:PI(null)});var BL=function(e){kL[OL][e]=!0},FL=fI.find,TL=!0;"find"in[]&&Array(1).find((function(){TL=!1})),VN({target:"Array",proto:!0,forced:TL},{find:function(e){return FL(this,e,arguments.length>1?arguments[1]:void 0)}}),BL("find");var _L=kj("match"),PL=function(e){var t;return qP(e)&&(void 0!==(t=e[_L])?!!t:"RegExp"==MP(e))},jL=DP.TypeError,NL=kj("species"),IL=function(e,t,n){var r=Tj(t);r in e?Vj.f(e,r,TP(0,n)):e[r]=n},LL=DP.Array,RL=Math.max,ML=function(e,t,n){for(var r=DN(e),o=bN(t,r),i=bN(void 0===n?r:n,r),a=LL(RL(i-o,0)),u=0;o<i;o++,u++)IL(a,u,e[o]);return a.length=u,a},zL=DI.UNSUPPORTED_Y,$L=Math.min,HL=[].push,VL=IP(/./.exec),UL=IP(HL),WL=IP("".slice);rL("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=mI(UP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!PL(e))return AP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=AP(YI,f,r))&&!((a=f.lastIndex)>c&&(UL(s,WL(r,c,i.index)),i.length>1&&i.index<r.length&&eL(HL,s,ML(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&VL(f,"")||UL(s,""):UL(s,WL(r,c)),s.length>o?ML(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:AP(t,this,e,n)}:t,[function(t,n){var o=UP(this),i=null==t?void 0:cj(t,e);return i?AP(i,t,o,n):AP(r,mI(o),t,n)},function(e,o){var i=zj(this),a=mI(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=zj(i).constructor)||null==(l=zj(c)[NL])?s:function(e){if(iI(e))return e;throw jL(uj(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(zL?"g":"y"),h=new f(zL?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===yL(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=zL?0:y;var b,w=yL(h,zL?WL(a,y):a);if(null===w||(b=$L(EN(h.lastIndex+(zL?y:0)),a.length))===v)y=sL(a,y,d);else{if(UL(m,WL(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(UL(m,w[E]),m.length===g)return m;y=v=b}}return UL(m,WL(a,v)),m}]}),!!xP((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]})),zL);var GL="\t\n\v\f\r    \u2028\u2029\ufeff",qL=IP("".replace),KL="["+GL+"]",YL=RegExp("^"+KL+KL+"*"),XL=RegExp(KL+KL+"*$"),ZL={trim:function(e){return function(t){var n=mI(UP(t));return 1&e&&(n=qL(n,YL,"")),2&e&&(n=qL(n,XL,"")),n}}(3)},JL=dN.PROPER,QL=ZL.trim;function eR(e){return 0===Ap("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function tR(e){return 0===e.length?"":e[0].outerHTML}function nR(e){return e.length?e[0].tagName.toLowerCase():""}function rR(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}VN({target:"String",proto:!0,forced:xP((function(){return!!GL.trim()||"…"!=="…".trim()||JL&&"trim"!==GL.trim.name}))},{trim:function(){return QL(this)}}),VN({global:!0},{globalThis:DP}),$p&&(Ap.fn.css=$p),qp&&(Ap.fn.append=qp),Kp&&(Ap.fn.prepend=Kp),Op&&(Ap.fn.addClass=Op),kp&&(Ap.fn.removeClass=kp),Bp&&(Ap.fn.hasClass=Bp),jp&&(Ap.fn.on=jp),Np&&(Ap.fn.off=Np),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Tp&&(Ap.fn.removeAttr=Tp),Mp&&(Ap.fn.hide=Mp),zp&&(Ap.fn.show=zp),Xp&&(Ap.fn.parents=Xp),_p&&(Ap.fn.dataset=_p),Pp&&(Ap.fn.val=Pp),Wp&&(Ap.fn.text=Wp),Up&&(Ap.fn.html=Up),Jp&&(Ap.fn.children=Jp),Qp&&(Ap.fn.remove=Qp),Zp&&(Ap.fn.find=Zp),Ip&&(Ap.fn.width=Ip),Lp&&(Ap.fn.height=Lp),Vp&&(Ap.fn.filter=Vp),eh&&(Ap.fn.empty=eh);var oR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},iR=function(e,t){return iR=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])},iR(e,t)};function aR(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}iR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var uR=function(){return uR=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},uR.apply(this,arguments)};function sR(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function lR(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function cR(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 fR(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function dR(e){var t=fR(Cf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!mf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Bf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Kf.isText(o[0])&&(dd.setNodes(e,{type:"paragraph"}),!0)}var pR={renderElems:[vP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[oR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){dR(r)||t(e)},r.deleteForward=function(e){dR(r)||n(e)},r}},hR=/"/g,gR=IP("".replace),vR=function(e,t,n,r){var o=mI(UP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+gR(mI(r),hR,"&quot;")+'"'),i+">"+o+"</"+t+">"},yR=function(e){return xP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function mR(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function bR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}VN({target:"String",proto:!0,forced:yR("bold")},{bold:function(){return vR(this,"b","","")}}),VN({target:"String",proto:!0,forced:yR("italics")},{italics:function(){return vR(this,"i","","")}}),VN({target:"String",proto:!0,forced:yR("sub")},{sub:function(){return vR(this,"sub","","")}}),VN({target:"String",proto:!0,forced:yR("sup")},{sup:function(){return vR(this,"sup","","")}});var wR={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},ER=jj("span").classList,DR=ER&&ER.constructor&&ER.constructor.prototype,xR=DR===Object.prototype?void 0:DR,CR=function(e,t){var n=[][e];return!!n&&xP((function(){n.call(null,t||function(){throw 1},1)}))},SR=fI.forEach,AR=CR("forEach")?[].forEach:function(e){return SR(this,e,arguments.length>1?arguments[1]:void 0)},OR=function(e){if(e&&e.forEach!==AR)try{Uj(e,"forEach",AR)}catch(t){e.forEach=AR}};for(var kR in wR)wR[kR]&&OR(DP[kR]&&DP[kR].prototype);function BR(e,t){return null==e.selection||!!fR(Cf.nodes(e,{match:function(t){return"pre"===mO.getNodeType(t)||!!Cf.isVoid(e,t)},universal:!0}),1)[0]}function FR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Cf.removeMark(e,t)}))}OR(xR),VN({target:"Object",stat:!0,forced:xP((function(){xI(1)}))},{keys:function(e){return xI(yj(e))}});var TR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Cf.marks(e);return n?n[t]:!!fR(Cf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return BR(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),_R='<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>',PR='<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>',jR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=X_("textStyle.bold"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',t.hotkey="mod+b",t}return aR(t,e),t}(TR),NR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=X_("textStyle.code"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',t.hotkey="mod+e",t}return aR(t,e),t}(TR),IR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=X_("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return aR(t,e),t}(TR),LR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=X_("textStyle.through"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',t.hotkey="mod+shift+x",t}return aR(t,e),t}(TR),RR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=X_("textStyle.underline"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',t.hotkey="mod+u",t}return aR(t,e),t}(TR),MR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=X_("textStyle.sub"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return aR(t,e),t}(TR),zR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=X_("textStyle.sup"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return aR(t,e),t}(TR),$R=function(){function e(){this.title=X_("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return BR(e)},e.prototype.exec=function(e,t){var n,r,o=Cf.nodes(e,{match:function(e){return Kf.isText(e)},universal:!0});try{for(var i=cR(o),a=i.next();!a.done;a=i.next())FR(e,a.value[0])}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),HR={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=vg("strong",null,c)),a&&(c=vg("code",null,c)),o&&(c=vg("em",null,c)),i&&(c=vg("u",null,c)),u&&(c=vg("s",null,c)),s&&(c=vg("sub",null,c)),l&&(c=vg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new jR}},{key:"underline",factory:function(){return new RR}},{key:"italic",factory:function(){return new IR}},{key:"through",factory:function(){return new LR}},{key:"code",factory:function(){return new NR}},{key:"sub",factory:function(){return new MR}},{key:"sup",factory:function(){return new zR}},{key:"clearStyle",factory:function(){return new $R}}],styleToHtml:function(e,t){if(!Kf.isText(e))return t;if(eR(t))return mR(e,t);var n=Ap(t);if("br"===nR(n))return mR(e,"<br>");var r=n.html();return r=mR(e,r),n.html(r),tR(n)},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!Kf.isText(t))return t;var o=t;return bR(r,"b,strong")&&(o.bold=!0),bR(r,"i,em")&&(o.italic=!0),bR(r,"u")&&(o.underline=!0),bR(r,"s,strike")&&(o.through=!0),bR(r,"sub")&&(o.sub=!0),bR(r,"sup")&&(o.sup=!0),bR(r,"code")&&(o.code=!0),o}};function VR(e){return function(t,n,r){return vg("h"+e,null,n)}}var UR={type:"header1",renderElem:VR(1)},WR={type:"header2",renderElem:VR(2)},GR={type:"header3",renderElem:VR(3)},qR={type:"header4",renderElem:VR(4)},KR={type:"header5",renderElem:VR(5)},YR=dN.PROPER,XR=RegExp.prototype,ZR=XR.toString,JR=IP(bI),QR=xP((function(){return"/a/b"!=ZR.call({source:"a",flags:"b"})})),eM=YR&&"toString"!=ZR.name;(QR||eM)&&pN(RegExp.prototype,"toString",(function(){var e=zj(this),t=mI(e.source),n=e.flags;return"/"+t+"/"+mI(void 0===n&&YP(XR,e)&&!("flags"in XR)?JR(e):n)}),{unsafe:!0});var tM,nM=DP.TypeError,rM=function(e){if(PL(e))throw nM("The method doesn't accept regular expressions");return e},oM=kj("match"),iM=function(e){var t=/./;try{"/./"[e](t)}catch(J_){try{return t[oM]=!1,"/./"[e](t)}catch(n){}}return!1},aM=Lj.f,uM=IP("".startsWith),sM=IP("".slice),lM=Math.min,cM=iM("startsWith");function fM(e){var t=fR(Cf.nodes(e,{match:function(e){return mO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=fR(t,1)[0];return mO.getNodeType(n)}function dM(e){return null==e.selection||!fR(Cf.nodes(e,{match:function(e){var t=mO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function pM(e,t){t&&dd.setNodes(e,{type:t})}VN({target:"String",proto:!0,forced:!(!cM&&(tM=aM(String.prototype,"startsWith"),tM&&!tM.writable)||cM)},{startsWith:function(e){var t=mI(UP(this));rM(e);var n=EN(lM(arguments.length>1?arguments[1]:void 0,t.length)),r=mI(e);return uM?uM(t,r,n):sM(t,n,n+r.length)===r}});var hM=function(){function e(){this.title=X_("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:X_("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return fM(e)},e.prototype.isDisabled=function(e){return dM(e)},e.prototype.exec=function(e,t){pM(e,t.toString())},e}(),gM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return fM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return dM(e)},e.prototype.exec=function(e,t){var n=this.type;pM(e,t===n?"paragraph":n)},e}(),vM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return aR(t,e),t}(gM),yM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return aR(t,e),t}(gM),mM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return aR(t,e),t}(gM),bM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return aR(t,e),t}(gM),wM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return aR(t,e),t}(gM),EM={key:"headerSelect",factory:function(){return new hM}},DM={key:"header1",factory:function(){return new vM}},xM={key:"header2",factory:function(){return new yM}},CM={key:"header3",factory:function(){return new mM}},SM={key:"header4",factory:function(){return new bM}},AM={key:"header5",factory:function(){return new wM}};function OM(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function kM(e){return function(t,n,r){var o=Ap(t);return 0===(n=n.filter((function(e){return!!Kf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var BM={renderElems:[UR,WR,GR,qR,KR],elemsToHtml:[{type:"header1",elemToHtml:OM(1)},{type:"header2",elemToHtml:OM(2)},{type:"header3",elemToHtml:OM(3)},{type:"header4",elemToHtml:OM(4)},{type:"header5",elemToHtml:OM(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:kM(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:kM(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:kM(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:kM(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:kM(5)}],menus:[EM,DM,xM,CM,SM,AM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=fR(Cf.nodes(n,{match:function(e){return mO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&mO.isSelectionAtLineEnd(e,r[1])?dd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},FM=Object.assign,TM=Object.defineProperty,_M=IP([].concat),PM=!FM||xP((function(){if(CP&&1!==FM({b:1},FM(TM({},"a",{enumerable:!0,get:function(){TM(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=FM({},e)[n]||xI(FM({},t)).join("")!=r}))?function(e,t){for(var n=yj(e),r=arguments.length,o=1,i=TN.f,a=FP.f;r>o;)for(var u,s=HP(arguments[o++]),l=i?_M(xI(s),i(s)):xI(s),c=l.length,f=0;c>f;)u=l[f++],CP&&!AP(a,s,u)||(n[u]=s[u]);return n}:FM;function jM(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}VN({target:"Object",stat:!0,forced:Object.assign!==PM},{assign:PM});var NM={selector:"font",preParseHtml:function(e){var t=Ap(e);if("font"!==nR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},IM=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Cf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!fR(Cf.nodes(e,{match:function(t){return"pre"===mO.getNodeType(t)||!!Cf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Ap('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Ap(r).attr("data-value");"0"===o?Cf.removeMark(e,t):Cf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Ap('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Ap('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=X_("color.default")),"bgColor"===t&&(a=X_("color.clear"));var u=Ap('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),LM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("color.color"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',t.mark="color",t}return aR(t,e),t}(IM),RM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("color.bgColor"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',t.mark="bgColor",t}return aR(t,e),t}(IM),MM=["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)"],zM={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&jM(i,{color:r}),o&&jM(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Kf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((eR(t)||"span"!==nR(n=Ap(t)))&&(n=Ap("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),tR(n)):t},preParseHtml:[NM],parseStyleHtml:function(e,t,n){var r=Ap(e);if(!Kf.isText(t))return t;var o=t,i=rR(r,"color");i&&(o.color=i);var a=rR(r,"background-color");return a||(a=rR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new LM},config:{colors:MM}},{key:"bgColor",factory:function(){return new RM},config:{colors:MM}}]},$M=/^(?:\w+:)?\/\/(\S+)$/,HM=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,VM=/^[^\s\.]+\.\S{2,}$/,UM=CN.includes;function WM(e){return void 0===e&&(e="r"),e+"-"+Eh()}function GM(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function qM(e,t,n,r){return sR(this,0,void 0,(function(){var o,i;return lR(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function KM(e,t,n){return sR(this,0,void 0,(function(){var r;return lR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function YM(e){return null==e.selection||!!mO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function XM(e,t){return{type:"link",url:GM(e),children:t?[{text:t}]:[]}}function ZM(e,t,n){return sR(this,0,void 0,(function(){var r,o,i;return lR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),YM(e)?[2]:[4,qM("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,KM("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||($f.isCollapsed(o)?(e.insertText(" "),i=XM(r,t),dd.insertNodes(e,i),e.insertFragment([{text:" "}])):Cf.string(e,o)!==t?(e.deleteFragment(),i=XM(r,t),dd.insertNodes(e,i)):(i=XM(r),dd.wrapNodes(e,i,{split:!0}),dd.collapse(e,{edge:"end"}))),[2]}}))}))}VN({target:"Array",proto:!0},{includes:function(e){return UM(this,e,arguments.length>1?arguments[1]:void 0)}}),BL("includes");var JM={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return vg("a",{href:o,target:void 0===i?"_blank":i},t)}},QM={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function ez(){return WM("w-e-insert-link")}var tz=function(){function e(){this.title=X_("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=ez(),this.urlInputId=ez(),this.buttonId=ez()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return YM(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=fR(LT(X_("link.text"),r),2),u=a[0],s=Ap(a[1]),l=fR(LT(X_("link.url"),o),2),c=l[0],f=Ap(l[1]),d=fR(RT(i,X_("common.ok")),1)[0];if(null==this.$content){var p=Ap("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();ZM(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||$f.isCollapsed(t))s.val("");else{var g=Cf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function nz(){return WM("w-e-update-link")}var rz=function(){function e(){this.title=X_("link.edit"),this.iconSvg=_R,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=nz(),this.buttonId=nz()}return e.prototype.getSelectedLinkElem=function(e){var t=mO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return mO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=fR(LT(X_("link.url"),t),2),o=r[0],i=Ap(r[1]),a=fR(RT(n,X_("common.ok")),1)[0];if(null==this.$content){var u=Ap("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=mO.getSelectedNodeByType(e,"link"),o=r?Bf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){sR(this,0,void 0,(function(){var r,o;return lR(this,(function(i){switch(i.label){case 0:return n?[4,qM("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,KM("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:GM(r)},dd.setNodes(e,o,{match:function(e){return mO.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),oz=function(){function e(){this.title=X_("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==mO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||dd.unwrapNodes(e,{match:function(e){return mO.checkNodeType(e,"link")}})},e}(),iz=function(){function e(){this.title=X_("link.view"),this.iconSvg=PR,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=mO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),az={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},uz={renderElems:[JM],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[QM],menus:[{key:"insertLink",factory:function(){return new tz},config:az},{key:"editLink",factory:function(){return new rz},config:az},{key:"unLink",factory:function(){return new oz}},{key:"viewLink",factory:function(){return new iz}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match($M);if(!t)return!1;var n=t[1];return!(!n||!HM.test(n)&&!VM.test(n))}(t)){if(!YM(o)){var r=o.selection;if(null!=r){var i=Cf.string(o,r);ZM(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=fR(e,2),n=t[0],i=t[1];return"link"!==mO.getNodeType(n)?r([n,i]):""===Bf.string(n)?dd.removeNodes(o,{at:i}):r([n,i])},o}},sz=IP(1..valueOf),lz=DP.RangeError,cz=DP.RangeError,fz=DP.String,dz=Math.floor,pz=IP((function(e){var t=mI(UP(this)),n="",r=vN(e);if(r<0||r==1/0)throw lz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),hz=IP("".slice),gz=IP(1..toFixed),vz=function(e,t,n){return 0===t?n:t%2==1?vz(e,t-1,n*e):vz(e*e,t/2,n)},yz=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=dz(o/1e7)},mz=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=dz(r/t),r=r%t*1e7},bz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=fz(e[t]);n=""===n?r:n+pz("0",7-r.length)+r}return n};function wz(e,t){return"w-e-image-container-"+mO.findKey(e,t).id}VN({target:"Number",proto:!0,forced:xP((function(){return"0.000"!==gz(8e-5,3)||"1"!==gz(.9,0)||"1.25"!==gz(1.255,2)||"1000000000000000128"!==gz(0xde0b6b3a7640080,0)}))||!xP((function(){gz({})}))},{toFixed:function(e){var t,n,r,o,i=sz(this),a=vN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw cz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return fz(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*vz(2,69,1))-69)<0?i*vz(2,-t,1):i/vz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(yz(u,0,n),r=a;r>=7;)yz(u,1e7,0),r-=7;for(yz(u,vz(10,r,1),0),r=t-1;r>=23;)mz(u,1<<23),r-=23;mz(u,1<<r),yz(u,1,1),mz(u,2),l=bz(u)}else yz(u,0,n),yz(u,1<<-t,0),l=bz(u)+pz("0",a);return a>0?s+((o=l.length)<=a?"0."+pz("0",a-o)+l:hz(l,0,o-a)+"."+hz(l,o-a)):s+l}});var Ez={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=mO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,D,x,C=vg("img",{style:v,src:o,alt:a,"data-href":s}),S=n.isDisabled();return g&&!S?function(e,t,n,r){var o=Ap("body"),i=wz(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Lh((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function h(n){if(o.off("mousemove",p),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:uR(uR({},t.style),{width:r+"px",height:i+"px"})};dd.setNodes(e,a,{at:mO.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),vg("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=Ap(t.target);n.hasClass("w-e-image-dragger")&&(t.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(f=!0),function(t){d=function(){var e=Ap("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",p),o.on("mouseup",h);var r=mO.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,vg("div",{className:"w-e-image-dragger left-top"}),vg("div",{className:"w-e-image-dragger right-top"}),vg("div",{className:"w-e-image-dragger left-bottom"}),vg("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,C,{width:d,height:h}):(y=n,m=e,b=C,D=(w={width:d,height:h}).height,x={},(E=w.width)&&(x.width=E),D&&(x.height=D),vg("div",{id:wz(y,m),style:x,className:"w-e-image-container"},b))}},Dz={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:rR(r,"width"),height:rR(r,"height")},children:[{text:""}]}}};function xz(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),sR(this,0,void 0,(function(){var i,a;return lR(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function Cz(e,t,n){return sR(this,0,void 0,(function(){var r;return lR(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function Sz(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),sR(this,0,void 0,(function(){var o,i,a;return lR(this,(function(u){switch(u.label){case 0:return[4,xz("insertImage",e,t,n,r)];case 1:return u.sent()?[4,Cz("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:GM(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),mO.getSelectedNodeByType(e,"image")&&e.move(1),Az(e)||(dd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function Az(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!fR(Cf.nodes(e,{match:function(t){var n=mO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Cf.isVoid(e,t)},universal:!0}),1)[0]}function Oz(){return WM("w-e-insert-image")}var kz=function(){function e(){this.title=X_("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=Oz(),this.altInputId=Oz(),this.hrefInputId=Oz(),this.buttonId=Oz()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return Az(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=fR(LT(X_("image.src"),r),2),s=u[0],l=Ap(u[1]),c=fR(LT(X_("image.desc"),o),2),f=c[0],d=Ap(c[1]),p=fR(LT(X_("image.link"),i),2),h=p[0],g=Ap(p[1]),v=fR(RT(a,X_("common.ok")),1)[0];if(null==this.$content){var y=Ap("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||Sz(e,t,n,r))},e}(),Bz=function(){function e(){this.title=X_("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==mO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||dd.removeNodes(e,{match:function(e){return mO.checkNodeType(e,"image")}})},e}();function Fz(){return WM("w-e-edit-image")}var Tz=function(){function e(){this.title=X_("image.edit"),this.iconSvg=_R,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Fz(),this.altInputId=Fz(),this.hrefInputId=Fz(),this.buttonId=Fz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return mO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==mO.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=fR(LT(X_("image.src"),r),2),l=s[0],c=Ap(s[1]),f=fR(LT(X_("image.desc"),o),2),d=f[0],p=Ap(f[1]),h=fR(LT(X_("image.link"),i),2),g=h[0],v=Ap(h[1]),y=fR(RT(a,X_("common.ok")),1)[0];if(null==this.$content){var m=Ap("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,D=w.alt,x=void 0===D?"":D,C=w.href,S=void 0===C?"":C;return c.val(E),p.val(x),v.val(S),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),sR(this,0,void 0,(function(){var i,a,u,s,l,c;return lR(this,(function(f){switch(f.label){case 0:return[4,xz("editImage",e,t,n,r)];case 1:return f.sent()?[4,Cz("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=mO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:uR(uR({},void 0===u?{}:u),o)},dd.setNodes(e,s,{match:function(e){return mO.checkNodeType(e,"image")}}),l=mO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),_z=function(){function e(){this.title=X_("image.viewLink"),this.iconSvg=PR,this.tag="button"}return e.prototype.getValue=function(e){var t=mO.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),Pz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return mO.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=mO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:uR(uR({},void 0===o?{}:o),{width:this.value,height:""})};dd.setNodes(e,i,{match:function(e){return mO.checkNodeType(e,"image")}})}}},e}(),jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return aR(t,e),t}(Pz),Nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return aR(t,e),t}(Pz),Iz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return aR(t,e),t}(Pz),Lz={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},Rz={renderElems:[Ez],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.style,l=void 0===s?{}:s,c=l.width,f=void 0===c?"":c,d=l.height,p=void 0===d?"":d,h="";return f&&(h+="width: "+f+";"),p&&(h+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+h+'"/>'}}],parseElemsHtml:[Dz],menus:[{key:"insertImage",factory:function(){return new kz},config:Lz},{key:"deleteImage",factory:function(){return new Bz}},{key:"editImage",factory:function(){return new Tz},config:Lz},{key:"viewImageLink",factory:function(){return new _z}},{key:"imageWidth30",factory:function(){return new jz}},{key:"imageWidth50",factory:function(){return new Nz}},{key:"imageWidth100",factory:function(){return new Iz}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},Mz={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),vg("div",{style:{margin:"5px 0"}},vg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},vg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=mO.findPath(n,e),o={checked:t.target.checked};dd.setNodes(n,o,{at:r})}}})),vg("span",null,t))}},zz=function(){function e(){this.title=X_("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!mO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!mO.getSelectedElems(e).some((function(t){if(Cf.isVoid(e,t)&&Cf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);dd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),$z={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Ap(e);0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},Hz={renderElems:[Mz],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Ap(e).find("li"),n=Ap('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[$z],menus:[{key:"todo",factory:function(){return new zz}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&$f.isCollapsed(r)){var o=mO.getSelectedNodeByType(e,"todo");if(o&&0===Bf.string(o).length)return void dd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},Vz={type:"blockquote",renderElem:function(e,t,n){return vg("blockquote",null,t)}},Uz={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},Wz=function(){function e(){this.title=X_("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!mO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!fR(Cf.nodes(e,{match:function(e){var t=mO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";dd.setNodes(e,{type:n},{mode:"highest"})}},e}(),Gz={key:"blockquote",factory:function(){return new Wz}},qz=IP([].slice),Kz=pI("slice"),Yz=kj("species"),Xz=DP.Array,Zz=Math.max;VN({target:"Array",proto:!0,forced:!Kz},{slice:function(e,t){var n,r,o,i=WP(this),a=DN(i),u=bN(e,a),s=bN(void 0===t?a:t,a);if(WN(i)&&(n=i.constructor,(iI(n)&&(n===Xz||WN(n.prototype))||qP(n)&&null===(n=n[Yz]))&&(n=void 0),n===Xz||void 0===n))return qz(i,u,s);for(r=new(void 0===n?Xz:n)(Zz(s-u,0)),o=0;u<s;u++,o++)u in i&&IL(r,o,i[u]);return r.length=o,r}});var Jz={renderElems:[Vz],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Uz],menus:[Gz],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=fR(Cf.nodes(e,{match:function(e){return mO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=mO.findPath(e,a),s=Cf.end(e,u);if(Lf.equals(s,o.focus)){var l=Bf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void dd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},Qz=function(){function e(){this.title=X_("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!fR(Cf.nodes(e,{match:function(t){return"pre"===mO.getNodeType(t)||!!Cf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Ap('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Ap(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Ap("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),e$={menus:[{key:"emotion",factory:function(){return new Qz},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},t$={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},n$={selector:"font",preParseHtml:function(e){var t=Ap(e);if("font"!==nR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",t$[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},r$=IP("".indexOf);VN({target:"String",proto:!0,forced:!iM("includes")},{includes:function(e){return!!~r$(mI(UP(this)),mI(rM(e)),arguments.length>1?arguments[1]:void 0)}});var o$,i$,a$=function(e){return e&&e.Math==Math&&e},u$=a$("object"==typeof globalThis&&globalThis)||a$("object"==typeof window&&window)||a$("object"==typeof self&&self)||a$("object"==typeof yP&&yP)||function(){return this}()||Function("return this")(),s$=Function.prototype,l$=s$.apply,c$=s$.bind,f$=s$.call,d$="object"==typeof Reflect&&Reflect.apply||(c$?f$.bind(l$):function(){return f$.apply(l$,arguments)}),p$=Function.prototype,h$=p$.bind,g$=p$.call,v$=h$&&h$.bind(g$),y$=h$?function(e){return e&&v$(g$,e)}:function(e){return e&&function(){return g$.apply(e,arguments)}},m$=function(e){return"function"==typeof e},b$=function(e){try{return!!e()}catch(t){return!0}},w$=!b$((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E$=Function.prototype.call,D$=E$.bind?E$.bind(E$):function(){return E$.apply(E$,arguments)},x$={}.propertyIsEnumerable,C$=Object.getOwnPropertyDescriptor,S$=C$&&!x$.call({1:2},1)?function(e){var t=C$(this,e);return!!t&&t.enumerable}:x$,A$={f:S$},O$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k$=y$({}.toString),B$=y$("".slice),F$=function(e){return B$(k$(e),8,-1)},T$=u$.Object,_$=y$("".split),P$=b$((function(){return!T$("z").propertyIsEnumerable(0)}))?function(e){return"String"==F$(e)?_$(e,""):T$(e)}:T$,j$=u$.TypeError,N$=function(e){if(null==e)throw j$("Can't call method on "+e);return e},I$=function(e){return P$(N$(e))},L$=function(e){return"object"==typeof e?null!==e:m$(e)},R$={},M$=function(e){return m$(e)?e:void 0},z$=function(e,t){return arguments.length<2?M$(R$[e])||M$(u$[e]):R$[e]&&R$[e][t]||u$[e]&&u$[e][t]},$$=y$({}.isPrototypeOf),H$=z$("navigator","userAgent")||"",V$=u$.process,U$=u$.Deno,W$=V$&&V$.versions||U$&&U$.version,G$=W$&&W$.v8;G$&&(i$=(o$=G$.split("."))[0]>0&&o$[0]<4?1:+(o$[0]+o$[1])),!i$&&H$&&(!(o$=H$.match(/Edge\/(\d+)/))||o$[1]>=74)&&(o$=H$.match(/Chrome\/(\d+)/))&&(i$=+o$[1]);var q$=i$,K$=!!Object.getOwnPropertySymbols&&!b$((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q$&&q$<41})),Y$=K$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X$=u$.Object,Z$=Y$?function(e){return"symbol"==typeof e}:function(e){var t=z$("Symbol");return m$(t)&&$$(t.prototype,X$(e))},J$=u$.String,Q$=u$.TypeError,eH=function(e){if(m$(e))return e;throw Q$(function(e){try{return J$(e)}catch(t){return"Object"}}(e)+" is not a function")},tH=u$.TypeError,nH=Object.defineProperty,rH=u$["__core-js_shared__"]||function(e,t){try{nH(u$,e,{value:t,configurable:!0,writable:!0})}catch(J_){u$[e]=t}return t}("__core-js_shared__",{}),oH=mP((function(e){(e.exports=function(e,t){return rH[e]||(rH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),iH=u$.Object,aH=function(e){return iH(N$(e))},uH=y$({}.hasOwnProperty),sH=Object.hasOwn||function(e,t){return uH(aH(e),t)},lH=0,cH=Math.random(),fH=y$(1..toString),dH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+fH(++lH+cH,36)},pH=oH("wks"),hH=u$.Symbol,gH=hH&&hH.for,vH=Y$?hH:hH&&hH.withoutSetter||dH,yH=function(e){if(!sH(pH,e)||!K$&&"string"!=typeof pH[e]){var t="Symbol."+e;K$&&sH(hH,e)?pH[e]=hH[e]:pH[e]=Y$&&gH?gH(t):vH(t)}return pH[e]},mH=u$.TypeError,bH=yH("toPrimitive"),wH=function(e){var t=function(e){if(!L$(e)||Z$(e))return e;var t,n,r=null==(t=e[bH])?void 0:eH(t);if(r){if(n=D$(r,e,"string"),!L$(n)||Z$(n))return n;throw mH("Can't convert object to primitive value")}return function(e){var t,n;if(m$(t=e.toString)&&!L$(n=D$(t,e)))return n;if(m$(t=e.valueOf)&&!L$(n=D$(t,e)))return n;throw tH("Can't convert object to primitive value")}(e)}(e);return Z$(t)?t:t+""},EH=u$.document,DH=L$(EH)&&L$(EH.createElement),xH=function(e){return DH?EH.createElement(e):{}},CH=!w$&&!b$((function(){return 7!=Object.defineProperty(xH("div"),"a",{get:function(){return 7}}).a})),SH=Object.getOwnPropertyDescriptor,AH={f:w$?SH:function(e,t){if(e=I$(e),t=wH(t),CH)try{return SH(e,t)}catch(n){}if(sH(e,t))return O$(!D$(A$.f,e,t),e[t])}},OH=/#|\.prototype\./,kH=function(e,t){var n=FH[BH(e)];return n==_H||n!=TH&&(m$(t)?b$(t):!!t)},BH=kH.normalize=function(e){return String(e).replace(OH,".").toLowerCase()},FH=kH.data={},TH=kH.NATIVE="N",_H=kH.POLYFILL="P",PH=kH,jH=y$(y$.bind),NH=function(e,t){return eH(e),void 0===t?e:jH?jH(e,t):function(){return e.apply(t,arguments)}},IH=u$.String,LH=u$.TypeError,RH=function(e){if(L$(e))return e;throw LH(IH(e)+" is not an object")},MH=u$.TypeError,zH=Object.defineProperty,$H={f:w$?zH:function(e,t,n){if(RH(e),t=wH(t),RH(n),CH)try{return zH(e,t,n)}catch(r){}if("get"in n||"set"in n)throw MH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},HH=w$?function(e,t,n){return $H.f(e,t,O$(1,n))}:function(e,t,n){return e[t]=n,e},VH=AH.f,UH=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return d$(e,this,arguments)};return t.prototype=e.prototype,t},WH=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?u$:d?u$[c]:(u$[c]||{}).prototype,g=f?R$:R$[c]||HH(R$,c,{})[c],v=g.prototype;for(o in t)n=!PH(f?o:c+(d?".":"#")+o,e.forced)&&h&&sH(h,o),a=g[o],n&&(u=e.noTargetGet?(l=VH(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?NH(i,u$):e.wrap&&n?UH(i):p&&m$(i)?y$(i):i,(e.sham||i&&i.sham||a&&a.sham)&&HH(s,"sham",!0),HH(g,o,s),p&&(sH(R$,r=c+"Prototype")||HH(R$,r,{}),HH(R$[r],o,i),e.real&&v&&!v[o]&&HH(v,o,i)))},GH=Array.isArray||function(e){return"Array"==F$(e)},qH=Math.ceil,KH=Math.floor,YH=function(e){var t=+e;return t!=t||0===t?0:(t>0?KH:qH)(t)},XH=Math.min,ZH=function(e){return(t=e.length)>0?XH(YH(t),9007199254740991):0;var t},JH=function(e,t,n){var r=wH(t);r in e?$H.f(e,r,O$(0,n)):e[r]=n},QH={};QH[yH("toStringTag")]="z";var eV="[object z]"===String(QH),tV=yH("toStringTag"),nV=u$.Object,rV="Arguments"==F$(function(){return arguments}()),oV=eV?F$:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=nV(e),tV))?n:rV?F$(t):"Object"==(r=F$(t))&&m$(t.callee)?"Arguments":r},iV=y$(Function.toString);m$(rH.inspectSource)||(rH.inspectSource=function(e){return iV(e)});var aV=rH.inspectSource,uV=function(){},sV=[],lV=z$("Reflect","construct"),cV=/^\s*(?:class|function)\b/,fV=y$(cV.exec),dV=!cV.exec(uV),pV=function(e){if(!m$(e))return!1;try{return lV(uV,sV,e),!0}catch(t){return!1}},hV=!lV||b$((function(){var e;return pV(pV.call)||!pV(Object)||!pV((function(){e=!0}))||e}))?function(e){if(!m$(e))return!1;switch(oV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dV||!!fV(cV,aV(e))}:pV,gV=yH("species"),vV=u$.Array,yV=function(e,t){return new(GH(n=e)&&(r=n.constructor,(hV(r)&&(r===vV||GH(r.prototype))||L$(r)&&null===(r=r[gV]))&&(r=void 0)),void 0===r?vV:r)(0===t?0:t);var n,r},mV=yH("species"),bV=yH("isConcatSpreadable"),wV=u$.TypeError,EV=q$>=51||!b$((function(){var e=[];return e[bV]=!1,e.concat()[0]!==e})),DV=q$>=51||!b$((function(){var e=[];return(e.constructor={})[mV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),xV=function(e){if(!L$(e))return!1;var t=e[bV];return void 0!==t?!!t:GH(e)};WH({target:"Array",proto:!0,forced:!EV||!DV},{concat:function(e){var t,n,r,o,i,a=aH(this),u=yV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(xV(i=-1===t?a:arguments[t])){if(s+(o=ZH(i))>9007199254740991)throw wV("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&JH(u,s,i[n])}else{if(s>=9007199254740991)throw wV("Maximum allowed index exceeded");JH(u,s++,i)}return u.length=s,u}});var CV,SV=u$.String,AV=function(e){if("Symbol"===oV(e))throw TypeError("Cannot convert a Symbol value to a string");return SV(e)},OV=Math.max,kV=Math.min,BV=function(e,t){var n=YH(e);return n<0?OV(n+t,0):kV(n,t)},FV={indexOf:function(e){return function(t,n,r){var o,i=I$(t),a=ZH(i),u=BV(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1)},TV={},_V=FV.indexOf,PV=y$([].push),jV=function(e,t){var n,r=I$(e),o=0,i=[];for(n in r)!sH(TV,n)&&sH(r,n)&&PV(i,n);for(;t.length>o;)sH(r,n=t[o++])&&(~_V(i,n)||PV(i,n));return i},NV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],IV=Object.keys||function(e){return jV(e,NV)},LV=w$?Object.defineProperties:function(e,t){RH(e);for(var n,r=I$(t),o=IV(t),i=o.length,a=0;i>a;)$H.f(e,n=o[a++],r[n]);return e},RV=z$("document","documentElement"),MV=oH("keys"),zV=function(e){return MV[e]||(MV[e]=dH(e))},$V=zV("IE_PROTO"),HV=function(){},VV=function(e){return"<script>"+e+"<\/script>"},UV=function(e){e.write(VV("")),e.close();var t=e.parentWindow.Object;return e=null,t},WV=function(){try{CV=new ActiveXObject("htmlfile")}catch(r){}var e,t;WV="undefined"!=typeof document?document.domain&&CV?UV(CV):((t=xH("iframe")).style.display="none",RV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(VV("document.F=Object")),e.close(),e.F):UV(CV);for(var n=NV.length;n--;)delete WV.prototype[NV[n]];return WV()};TV[$V]=!0;var GV,qV,KV,YV=Object.create||function(e,t){var n;return null!==e?(HV.prototype=RH(e),n=new HV,HV.prototype=null,n[$V]=e):n=WV(),void 0===t?n:LV(n,t)},XV=NV.concat("length","prototype"),ZV={f:Object.getOwnPropertyNames||function(e){return jV(e,XV)}},JV=u$.Array,QV=Math.max,eU=ZV.f,tU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nU={f:function(e){return tU&&"Window"==F$(e)?function(e){try{return eU(e)}catch(t){return function(e){for(var t=ZH(e),n=BV(void 0,t),r=BV(t,t),o=JV(QV(r-n,0)),i=0;n<r;n++,i++)JH(o,i,e[n]);return o.length=i,o}(tU)}}(e):eU(I$(e))}},rU={f:Object.getOwnPropertySymbols},oU=y$([].slice),iU=function(e,t,n,r){HH(e,t,n)},aU={f:yH},uU=$H.f,sU=function(e){var t=R$.Symbol||(R$.Symbol={});sH(t,e)||uU(t,e,{value:aU.f(e)})},lU=eV?{}.toString:function(){return"[object "+oV(this)+"]"},cU=$H.f,fU=yH("toStringTag"),dU=function(e,t,n,r){if(e){var o=n?e:e.prototype;sH(o,fU)||cU(o,fU,{configurable:!0,value:t}),r&&!eV&&HH(o,"toString",lU)}},pU=u$.WeakMap,hU=m$(pU)&&/native code/.test(aV(pU)),gU=u$.TypeError,vU=u$.WeakMap;if(hU||rH.state){var yU=rH.state||(rH.state=new vU),mU=y$(yU.get),bU=y$(yU.has),wU=y$(yU.set);GV=function(e,t){if(bU(yU,e))throw new gU("Object already initialized");return t.facade=e,wU(yU,e,t),t},qV=function(e){return mU(yU,e)||{}},KV=function(e){return bU(yU,e)}}else{var EU=zV("state");TV[EU]=!0,GV=function(e,t){if(sH(e,EU))throw new gU("Object already initialized");return t.facade=e,HH(e,EU,t),t},qV=function(e){return sH(e,EU)?e[EU]:{}},KV=function(e){return sH(e,EU)}}var DU={set:GV,get:qV,has:KV,enforce:function(e){return KV(e)?qV(e):GV(e,{})},getterFor:function(e){return function(t){var n;if(!L$(t)||(n=qV(t)).type!==e)throw gU("Incompatible receiver, "+e+" required");return n}}},xU=y$([].push),CU=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=aH(s),g=P$(h),v=NH(l,c),y=ZH(g),m=0,b=f||yV,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:xU(w,d)}else switch(e){case 4:return!1;case 7:xU(w,d)}return i?-1:r||o?o:w}},SU=[CU(0),CU(1),CU(2),CU(3),CU(4),CU(5),CU(6),CU(7)][0],AU=zV("hidden"),OU=yH("toPrimitive"),kU=DU.set,BU=DU.getterFor("Symbol"),FU=Object.prototype,TU=u$.Symbol,_U=TU&&TU.prototype,PU=u$.TypeError,jU=u$.QObject,NU=z$("JSON","stringify"),IU=AH.f,LU=$H.f,RU=nU.f,MU=A$.f,zU=y$([].push),$U=oH("symbols"),HU=oH("op-symbols"),VU=oH("string-to-symbol-registry"),UU=oH("symbol-to-string-registry"),WU=oH("wks"),GU=!jU||!jU.prototype||!jU.prototype.findChild,qU=w$&&b$((function(){return 7!=YV(LU({},"a",{get:function(){return LU(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=IU(FU,t);r&&delete FU[t],LU(e,t,n),r&&e!==FU&&LU(FU,t,r)}:LU,KU=function(e,t){var n=$U[e]=YV(_U);return kU(n,{type:"Symbol",tag:e,description:t}),w$||(n.description=t),n},YU=function(e,t,n){e===FU&&YU(HU,t,n),RH(e);var r=wH(t);return RH(n),sH($U,r)?(n.enumerable?(sH(e,AU)&&e[AU][r]&&(e[AU][r]=!1),n=YV(n,{enumerable:O$(0,!1)})):(sH(e,AU)||LU(e,AU,O$(1,{})),e[AU][r]=!0),qU(e,r,n)):LU(e,r,n)},XU=function(e,t){RH(e);var n=I$(t),r=IV(n).concat(eW(n));return SU(r,(function(t){w$&&!D$(ZU,n,t)||YU(e,t,n[t])})),e},ZU=function(e){var t=wH(e),n=D$(MU,this,t);return!(this===FU&&sH($U,t)&&!sH(HU,t))&&(!(n||!sH(this,t)||!sH($U,t)||sH(this,AU)&&this[AU][t])||n)},JU=function(e,t){var n=I$(e),r=wH(t);if(n!==FU||!sH($U,r)||sH(HU,r)){var o=IU(n,r);return!o||!sH($U,r)||sH(n,AU)&&n[AU][r]||(o.enumerable=!0),o}},QU=function(e){var t=RU(I$(e)),n=[];return SU(t,(function(e){sH($U,e)||sH(TV,e)||zU(n,e)})),n},eW=function(e){var t=e===FU,n=RU(t?HU:I$(e)),r=[];return SU(n,(function(e){!sH($U,e)||t&&!sH(FU,e)||zU(r,$U[e])})),r};if(K$||(_U=(TU=function(){if($$(_U,this))throw PU("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?AV(arguments[0]):void 0,t=dH(e),n=function(e){this===FU&&D$(n,HU,e),sH(this,AU)&&sH(this[AU],t)&&(this[AU][t]=!1),qU(this,t,O$(1,e))};return w$&&GU&&qU(FU,t,{configurable:!0,set:n}),KU(t,e)}).prototype,iU(_U,"toString",(function(){return BU(this).tag})),iU(TU,"withoutSetter",(function(e){return KU(dH(e),e)})),A$.f=ZU,$H.f=YU,AH.f=JU,ZV.f=nU.f=QU,rU.f=eW,aU.f=function(e){return KU(yH(e),e)},w$&&LU(_U,"description",{configurable:!0,get:function(){return BU(this).description}})),WH({global:!0,wrap:!0,forced:!K$,sham:!K$},{Symbol:TU}),SU(IV(WU),(function(e){sU(e)})),WH({target:"Symbol",stat:!0,forced:!K$},{for:function(e){var t=AV(e);if(sH(VU,t))return VU[t];var n=TU(t);return VU[t]=n,UU[n]=t,n},keyFor:function(e){if(!Z$(e))throw PU(e+" is not a symbol");if(sH(UU,e))return UU[e]},useSetter:function(){GU=!0},useSimple:function(){GU=!1}}),WH({target:"Object",stat:!0,forced:!K$,sham:!w$},{create:function(e,t){return void 0===t?YV(e):XU(YV(e),t)},defineProperty:YU,defineProperties:XU,getOwnPropertyDescriptor:JU}),WH({target:"Object",stat:!0,forced:!K$},{getOwnPropertyNames:QU,getOwnPropertySymbols:eW}),WH({target:"Object",stat:!0,forced:b$((function(){rU.f(1)}))},{getOwnPropertySymbols:function(e){return rU.f(aH(e))}}),NU){var tW=!K$||b$((function(){var e=TU();return"[null]"!=NU([e])||"{}"!=NU({a:e})||"{}"!=NU(Object(e))}));WH({target:"JSON",stat:!0,forced:tW},{stringify:function(e,t,n){var r=oU(arguments),o=t;if((L$(t)||void 0!==e)&&!Z$(e))return GH(t)||(t=function(e,t){if(m$(o)&&(t=D$(o,this,e,t)),!Z$(t))return t}),r[1]=t,d$(NU,null,r)}})}if(!_U[OU]){var nW=_U.valueOf;iU(_U,OU,(function(e){return D$(nW,this)}))}dU(TU,"Symbol"),TV[AU]=!0,sU("asyncIterator"),sU("hasInstance"),sU("isConcatSpreadable"),sU("iterator"),sU("match"),sU("matchAll"),sU("replace"),sU("search"),sU("species"),sU("split"),sU("toPrimitive"),sU("toStringTag"),sU("unscopables"),dU(u$.JSON,"JSON",!0);var rW,oW,iW,aW=R$.Symbol,uW={},sW=Function.prototype,lW=w$&&Object.getOwnPropertyDescriptor,cW=sH(sW,"name"),fW={PROPER:cW&&"something"===function(){}.name,CONFIGURABLE:cW&&(!w$||w$&&lW(sW,"name").configurable)},dW=!b$((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),pW=zV("IE_PROTO"),hW=u$.Object,gW=hW.prototype,vW=dW?hW.getPrototypeOf:function(e){var t=aH(e);if(sH(t,pW))return t[pW];var n=t.constructor;return m$(n)&&t instanceof n?n.prototype:t instanceof hW?gW:null},yW=yH("iterator"),mW=!1;[].keys&&("next"in(iW=[].keys())?(oW=vW(vW(iW)))!==Object.prototype&&(rW=oW):mW=!0);var bW=null==rW||b$((function(){var e={};return rW[yW].call(e)!==e}));rW=bW?{}:YV(rW),m$(rW[yW])||iU(rW,yW,(function(){return this}));var wW={IteratorPrototype:rW,BUGGY_SAFARI_ITERATORS:mW},EW=wW.IteratorPrototype,DW=function(){return this};u$.String,u$.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{y$(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var xW=fW.PROPER,CW=wW.BUGGY_SAFARI_ITERATORS,SW=yH("iterator"),AW=function(){return this},OW=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=YV(EW,{next:O$(1,s)}),dU(u,l,!1,!0),uW[l]=DW;var c,f,d=function(e){if(e===o&&y)return y;if(!CW&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[SW]||g["@@iterator"]||o&&g[o],y=!CW&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=vW(m.call(new e)))!==Object.prototype&&c.next&&(dU(c,p,!0,!0),uW[p]=AW),xW&&"values"==o&&v&&"values"!==v.name&&(h=!0,y=function(){return D$(v,this)}),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||WH({target:t,proto:!0,forced:CW||h},f)),uW[t]=y,f},kW=DU.set,BW=DU.getterFor("Array Iterator");OW(Array,"Array",(function(e,t){kW(this,{type:"Array Iterator",target:I$(e),index:0,kind:t})}),(function(){var e=BW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),uW.Arguments=uW.Array;var FW=yH("toStringTag");for(var TW in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var _W=u$[TW],PW=_W&&_W.prototype;PW&&oV(PW)!==FW&&HH(PW,FW,TW),uW[TW]=uW.Array}var jW=aW;sU("asyncDispose"),sU("dispose"),sU("matcher"),sU("metadata"),sU("observable"),sU("patternMatch"),sU("replaceAll");var NW=jW,IW=y$("".charAt),LW=y$("".charCodeAt),RW=y$("".slice),MW=function(e){return function(t,n){var r,o,i=AV(N$(t)),a=YH(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=LW(i,a))<55296||r>56319||a+1===u||(o=LW(i,a+1))<56320||o>57343?e?IW(i,a):r:e?RW(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),zW=DU.set,$W=DU.getterFor("String Iterator");OW(String,"String",(function(e){zW(this,{type:"String Iterator",string:AV(e),index:0})}),(function(){var e,t=$W(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=MW(n,r),t.index+=e.length,{value:e,done:!1})}));var HW=aU.f("iterator"),VW=mP((function(e){function t(n){return"function"==typeof NW&&"symbol"==typeof HW?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof NW&&e.constructor===NW&&e!==NW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),UW=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(VW),WW=dN.EXISTS,GW=Vj.f,qW=Function.prototype,KW=IP(qW.toString),YW=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,XW=IP(YW.exec);CP&&!WW&&GW(qW,"name",{configurable:!0,get:function(){try{return XW(YW,KW(this))[1]}catch(se){return""}}});var ZW=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Cf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!fR(Cf.nodes(e,{match:function(t){return"pre"===mO.getNodeType(t)||!!Cf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),JW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return aR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:X_("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===UW(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(ZW),QW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("fontFamily.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',t.mark="fontFamily",t.selectPanelWidth=150,t}return aR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:X_("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===UW(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(ZW),eG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&jM(i,{fontSize:r}),o&&jM(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Kf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((eR(t)||"span"!==nR(n=Ap(t)))&&(n=Ap("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),tR(n)):t},preParseHtml:[n$],parseStyleHtml:function(e,t,n){var r=Ap(e);if(!Kf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=rR(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=rR(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new JW},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 QW},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},tG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Ap(e),n=rR(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},nG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=fR(Cf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":fR(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=fR(Cf.nodes(e,{match:function(e){var t=mO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),rG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return aR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){dd.setNodes(e,{indent:null},{match:function(e){return mf.isElement(e)}})},t}(nG),oG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t}return aR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){dd.setNodes(e,{indent:"2em"},{match:function(e){return mf.isElement(e)},mode:"highest"})},t}(nG),iG={renderStyle:function(e,t){if(!mf.isElement(e))return t;var n=e.indent,r=t;return n&&jM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!mf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Ap(t);return r.css("text-indent",n),tR(r)},preParseHtml:[tG],parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;var o=t,i=rR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new oG}},{key:"delIndent",factory:function(){return new rG}}]},aG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=fR(Cf.nodes(e,{match:function(e){var t=mO.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!mO.getSelectedElems(e).some((function(t){if(Cf.isVoid(e,t)&&Cf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),uG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("justify.left"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return aR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"left"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(aG),sG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("justify.right"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return aR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"right"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(aG),lG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("justify.center"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return aR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"center"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(aG),cG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=X_("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return aR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"justify"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(aG),fG={renderStyle:function(e,t){if(!mf.isElement(e))return t;var n=e.textAlign,r=t;return n&&jM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!mf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Ap(t);return r.css("text-align",n),tR(r)},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;var o=t,i=rR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new uG}},{key:"justifyRight",factory:function(){return new sG}},{key:"justifyCenter",factory:function(){return new lG}},{key:"justifyJustify",factory:function(){return new cG}}]},dG=function(){function e(){this.title=X_("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:X_("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=fR(Cf.nodes(e,{match:function(e){var t=mO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":mf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){dd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),pG={renderStyle:function(e,t){if(!mf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&jM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!mf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Ap(t);return r.css("line-height",n),tR(r)},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=rR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new dG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},hG=function(){function e(){this.title=X_("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),gG=function(){function e(){this.title=X_("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),vG={menus:[{key:"redo",factory:function(){return new hG}},{key:"undo",factory:function(){return new gG}}]},yG={type:"divider",renderElem:function(e,t,n){return Xh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:mO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Xh("hr")])}},mG=function(){function e(){this.title=X_("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!mO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=mO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){dd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),bG={renderElems:[yG],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new mG}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=fR(e,2),o=t[0],i=t[1];if("divider"!==mO.getNodeType(o))return n([o,i]);mO.isLastNode(r,o)&&dd.insertNodes(r,mO.genEmptyParagraph(),{at:[i[0]+1]})},r}},wG=fI.map;VN({target:"Array",proto:!0,forced:!pI("map")},{map:function(e){return wG(this,e,arguments.length>1?arguments[1]:void 0)}});var EG=IP([].join),DG=HP!=Object,xG=CR("join",",");VN({target:"Array",proto:!0,forced:DG||!xG},{join:function(e){return EG(WP(this),void 0===e?",":e)}});var CG=function(){function e(){this.title=X_("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=mO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=mO.getParentNode(e,t);return null==n||"pre"!==mO.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=mO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=mO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Bf.string(t);dd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));dd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Cf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=cR(i),u=a.next();!u.done;u=a.next()){var s=fR(u.value,1)[0];s&&o.push(Bf.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}dd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};dd.insertNodes(e,l,{mode:"highest"})},e}(),SG={key:"codeBlock",factory:function(){return new CG}};VN({target:"String",proto:!0,forced:yR("anchor")},{anchor:function(e){return vR(this,"a","name",e)}}),rL("match",(function(e,t,n){return[function(t){var n=UP(this),r=null==t?void 0:cj(t,e);return r?AP(r,t,n):new RegExp(t)[e](mI(n))},function(e){var r=zj(this),o=mI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return yL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=yL(r,o));){var c=mI(u[0]);s[l]=c,""===c&&(r.lastIndex=sL(o,EN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var AG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return"code"===mO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===mO.getNodeType(e)}))}}},OG={menus:[SG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=mO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Bf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=fR(e,2),r=t[0],i=t[1],a=mO.getNodeType(r);return"code"===a&&i.length<=1&&dd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(mO.isLastNode(o,r)&&dd.insertNodes(o,mO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==mO.getNodeType(r.children[0])&&(dd.unwrapNodes(o),dd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=mO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Cf.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return vg("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return vg("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Ap(e);if("code"!==nR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Ap(e)[0].textContent||""}]}}},AG]},kG=function(){function e(){this.title=X_("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),BG={menus:[{key:"fullScreen",factory:function(){return new kG}}]},FG=function(){function e(){this.title=X_("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!$f.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];dd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Cf.start(e,r))}},e}(),TG=[HR,zM,eG,iG,fG,pG,Rz,bG,e$,uz,OG,Jz,BM,pR,Hz,vG,BG,{menus:[{key:"enter",factory:function(){return new FG}}]}];Y_("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Y_("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var _G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function PG(e){var t={exports:{}};return e(t,t.exports),t.exports}var jG,NG,IG=function(e){return e&&e.Math==Math&&e},LG=IG("object"==typeof globalThis&&globalThis)||IG("object"==typeof window&&window)||IG("object"==typeof self&&self)||IG("object"==typeof _G&&_G)||function(){return this}()||Function("return this")(),RG=Function.prototype,MG=RG.bind,zG=RG.call,$G=MG&&MG.bind(zG),HG=MG?function(e){return e&&$G(zG,e)}:function(e){return e&&function(){return zG.apply(e,arguments)}},VG=function(e){try{return!!e()}catch(t){return!0}},UG=HG({}.toString),WG=HG("".slice),GG=function(e){return WG(UG(e),8,-1)},qG=LG.Object,KG=HG("".split),YG=VG((function(){return!qG("z").propertyIsEnumerable(0)}))?function(e){return"String"==GG(e)?KG(e,""):qG(e)}:qG,XG=LG.TypeError,ZG=function(e){if(null==e)throw XG("Can't call method on "+e);return e},JG=function(e){return YG(ZG(e))},QG=Object.defineProperty,eq=function(e,t){try{QG(LG,e,{value:t,configurable:!0,writable:!0})}catch(J_){LG[e]=t}return t},tq=LG["__core-js_shared__"]||eq("__core-js_shared__",{}),nq=PG((function(e){(e.exports=function(e,t){return tq[e]||(tq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),rq=LG.Object,oq=function(e){return rq(ZG(e))},iq=HG({}.hasOwnProperty),aq=Object.hasOwn||function(e,t){return iq(oq(e),t)},uq=0,sq=Math.random(),lq=HG(1..toString),cq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+lq(++uq+sq,36)},fq=function(e){return"function"==typeof e},dq=function(e,t){return arguments.length<2?function(e){return fq(e)?e:void 0}(LG[e]):LG[e]&&LG[e][t]},pq=dq("navigator","userAgent")||"",hq=LG.process,gq=LG.Deno,vq=hq&&hq.versions||gq&&gq.version,yq=vq&&vq.v8;yq&&(NG=(jG=yq.split("."))[0]>0&&jG[0]<4?1:+(jG[0]+jG[1])),!NG&&pq&&(!(jG=pq.match(/Edge\/(\d+)/))||jG[1]>=74)&&(jG=pq.match(/Chrome\/(\d+)/))&&(NG=+jG[1]);var mq,bq=NG,wq=!!Object.getOwnPropertySymbols&&!VG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bq&&bq<41})),Eq=wq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dq=nq("wks"),xq=LG.Symbol,Cq=xq&&xq.for,Sq=Eq?xq:xq&&xq.withoutSetter||cq,Aq=function(e){if(!aq(Dq,e)||!wq&&"string"!=typeof Dq[e]){var t="Symbol."+e;wq&&aq(xq,e)?Dq[e]=xq[e]:Dq[e]=Eq&&Cq?Cq(t):Sq(t)}return Dq[e]},Oq=function(e){return"object"==typeof e?null!==e:fq(e)},kq=LG.String,Bq=LG.TypeError,Fq=function(e){if(Oq(e))return e;throw Bq(kq(e)+" is not an object")},Tq=!VG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_q=LG.document,Pq=Oq(_q)&&Oq(_q.createElement),jq=function(e){return Pq?_q.createElement(e):{}},Nq=!Tq&&!VG((function(){return 7!=Object.defineProperty(jq("div"),"a",{get:function(){return 7}}).a})),Iq=Function.prototype.call,Lq=Iq.bind?Iq.bind(Iq):function(){return Iq.apply(Iq,arguments)},Rq=HG({}.isPrototypeOf),Mq=LG.Object,zq=Eq?function(e){return"symbol"==typeof e}:function(e){var t=dq("Symbol");return fq(t)&&Rq(t.prototype,Mq(e))},$q=LG.String,Hq=function(e){try{return $q(e)}catch(t){return"Object"}},Vq=LG.TypeError,Uq=function(e){if(fq(e))return e;throw Vq(Hq(e)+" is not a function")},Wq=function(e,t){var n=e[t];return null==n?void 0:Uq(n)},Gq=LG.TypeError,qq=LG.TypeError,Kq=Aq("toPrimitive"),Yq=function(e){var t=function(e){if(!Oq(e)||zq(e))return e;var t,n=Wq(e,Kq);if(n){if(t=Lq(n,e,"string"),!Oq(t)||zq(t))return t;throw qq("Can't convert object to primitive value")}return function(e){var t,n;if(fq(t=e.toString)&&!Oq(n=Lq(t,e)))return n;if(fq(t=e.valueOf)&&!Oq(n=Lq(t,e)))return n;throw Gq("Can't convert object to primitive value")}(e)}(e);return zq(t)?t:t+""},Xq=LG.TypeError,Zq=Object.defineProperty,Jq={f:Tq?Zq:function(e,t,n){if(Fq(e),t=Yq(t),Fq(n),Nq)try{return Zq(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Xq("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Qq=Math.ceil,eK=Math.floor,tK=function(e){var t=+e;return t!=t||0===t?0:(t>0?eK:Qq)(t)},nK=Math.max,rK=Math.min,oK=function(e,t){var n=tK(e);return n<0?nK(n+t,0):rK(n,t)},iK=Math.min,aK=function(e){return e>0?iK(tK(e),9007199254740991):0},uK=function(e){return aK(e.length)},sK=function(e){return function(t,n,r){var o,i=JG(t),a=uK(i),u=oK(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},lK={includes:sK(!0),indexOf:sK(!1)},cK={},fK=lK.indexOf,dK=HG([].push),pK=function(e,t){var n,r=JG(e),o=0,i=[];for(n in r)!aq(cK,n)&&aq(r,n)&&dK(i,n);for(;t.length>o;)aq(r,n=t[o++])&&(~fK(i,n)||dK(i,n));return i},hK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gK=Object.keys||function(e){return pK(e,hK)},vK=Tq?Object.defineProperties:function(e,t){Fq(e);for(var n,r=JG(t),o=gK(t),i=o.length,a=0;i>a;)Jq.f(e,n=o[a++],r[n]);return e},yK=dq("document","documentElement"),mK=nq("keys"),bK=function(e){return mK[e]||(mK[e]=cq(e))},wK=bK("IE_PROTO"),EK=function(){},DK=function(e){return"<script>"+e+"<\/script>"},xK=function(e){e.write(DK("")),e.close();var t=e.parentWindow.Object;return e=null,t},CK=function(){try{mq=new ActiveXObject("htmlfile")}catch(r){}var e,t;CK="undefined"!=typeof document?document.domain&&mq?xK(mq):((t=jq("iframe")).style.display="none",yK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(DK("document.F=Object")),e.close(),e.F):xK(mq);for(var n=hK.length;n--;)delete CK.prototype[hK[n]];return CK()};cK[wK]=!0;var SK=Object.create||function(e,t){var n;return null!==e?(EK.prototype=Fq(e),n=new EK,EK.prototype=null,n[wK]=e):n=CK(),void 0===t?n:vK(n,t)},AK=Aq("unscopables"),OK=Array.prototype;null==OK[AK]&&Jq.f(OK,AK,{configurable:!0,value:SK(null)});var kK=function(e){OK[AK][e]=!0},BK={},FK=HG(Function.toString);fq(tq.inspectSource)||(tq.inspectSource=function(e){return FK(e)});var TK,_K,PK,jK=tq.inspectSource,NK=LG.WeakMap,IK=fq(NK)&&/native code/.test(jK(NK)),LK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},RK=Tq?function(e,t,n){return Jq.f(e,t,LK(1,n))}:function(e,t,n){return e[t]=n,e},MK=LG.TypeError,zK=LG.WeakMap;if(IK||tq.state){var $K=tq.state||(tq.state=new zK),HK=HG($K.get),VK=HG($K.has),UK=HG($K.set);TK=function(e,t){if(VK($K,e))throw new MK("Object already initialized");return t.facade=e,UK($K,e,t),t},_K=function(e){return HK($K,e)||{}},PK=function(e){return VK($K,e)}}else{var WK=bK("state");cK[WK]=!0,TK=function(e,t){if(aq(e,WK))throw new MK("Object already initialized");return t.facade=e,RK(e,WK,t),t},_K=function(e){return aq(e,WK)?e[WK]:{}},PK=function(e){return aq(e,WK)}}var GK,qK,KK,YK={set:TK,get:_K,has:PK,enforce:function(e){return PK(e)?_K(e):TK(e,{})},getterFor:function(e){return function(t){var n;if(!Oq(t)||(n=_K(t)).type!==e)throw MK("Incompatible receiver, "+e+" required");return n}}},XK={}.propertyIsEnumerable,ZK=Object.getOwnPropertyDescriptor,JK={f:ZK&&!XK.call({1:2},1)?function(e){var t=ZK(this,e);return!!t&&t.enumerable}:XK},QK=Object.getOwnPropertyDescriptor,eY={f:Tq?QK:function(e,t){if(e=JG(e),t=Yq(t),Nq)try{return QK(e,t)}catch(n){}if(aq(e,t))return LK(!Lq(JK.f,e,t),e[t])}},tY=Function.prototype,nY=Tq&&Object.getOwnPropertyDescriptor,rY=aq(tY,"name"),oY={PROPER:rY&&"something"===function(){}.name,CONFIGURABLE:rY&&(!Tq||Tq&&nY(tY,"name").configurable)},iY=PG((function(e){var t=oY.CONFIGURABLE,n=YK.get,r=YK.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;fq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!aq(i,"name")||t&&i.name!==f)&&RK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==LG?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:RK(e,n,i)):l?e[n]=i:eq(n,i)})(Function.prototype,"toString",(function(){return fq(this)&&n(this).source||jK(this)}))})),aY=hK.concat("length","prototype"),uY={f:Object.getOwnPropertyNames||function(e){return pK(e,aY)}},sY={f:Object.getOwnPropertySymbols},lY=HG([].concat),cY=dq("Reflect","ownKeys")||function(e){var t=uY.f(Fq(e)),n=sY.f;return n?lY(t,n(e)):t},fY=function(e,t){for(var n=cY(t),r=Jq.f,o=eY.f,i=0;i<n.length;i++){var a=n[i];aq(e,a)||r(e,a,o(t,a))}},dY=/#|\.prototype\./,pY=function(e,t){var n=gY[hY(e)];return n==yY||n!=vY&&(fq(t)?VG(t):!!t)},hY=pY.normalize=function(e){return String(e).replace(dY,".").toLowerCase()},gY=pY.data={},vY=pY.NATIVE="N",yY=pY.POLYFILL="P",mY=pY,bY=eY.f,wY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?LG:l?LG[u]||eq(u,{}):(LG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=bY(n,r))&&a.value:n[r],!mY(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;fY(i,o)}(e.sham||o&&o.sham)&&RK(i,"sham",!0),iY(n,r,i,e)}},EY=!VG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),DY=bK("IE_PROTO"),xY=LG.Object,CY=xY.prototype,SY=EY?xY.getPrototypeOf:function(e){var t=oq(e);if(aq(t,DY))return t[DY];var n=t.constructor;return fq(n)&&t instanceof n?n.prototype:t instanceof xY?CY:null},AY=Aq("iterator"),OY=!1;[].keys&&("next"in(KK=[].keys())?(qK=SY(SY(KK)))!==Object.prototype&&(GK=qK):OY=!0);var kY=null==GK||VG((function(){var e={};return GK[AY].call(e)!==e}));kY&&(GK={}),fq(GK[AY])||iY(GK,AY,(function(){return this}));var BY={IteratorPrototype:GK,BUGGY_SAFARI_ITERATORS:OY},FY=Jq.f,TY=Aq("toStringTag"),_Y=function(e,t,n){e&&!aq(e=n?e:e.prototype,TY)&&FY(e,TY,{configurable:!0,value:t})},PY=BY.IteratorPrototype,jY=function(){return this},NY=LG.String,IY=LG.TypeError,LY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=HG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Fq(n),function(e){if("object"==typeof e||fq(e))return e;throw IY("Can't set "+NY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),RY=oY.PROPER,MY=oY.CONFIGURABLE,zY=BY.IteratorPrototype,$Y=BY.BUGGY_SAFARI_ITERATORS,HY=Aq("iterator"),VY=function(){return this},UY=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=SK(PY,{next:LK(1,s)}),_Y(u,l,!1),BK[l]=jY;var c,f,d=function(e){if(e===o&&y)return y;if(!$Y&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[HY]||g["@@iterator"]||o&&g[o],y=!$Y&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=SY(m.call(new e)))!==Object.prototype&&c.next&&(SY(c)!==zY&&(LY?LY(c,zY):fq(c[HY])||iY(c,HY,VY)),_Y(c,p,!0)),RY&&"values"==o&&v&&"values"!==v.name&&(MY?RK(g,"name","values"):(h=!0,y=function(){return Lq(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||wY({target:t,proto:!0,forced:$Y||h},f)),g[HY]!==y&&iY(g,HY,y,{name:o}),BK[t]=y,f},WY=YK.set,GY=YK.getterFor("Array Iterator"),qY=UY(Array,"Array",(function(e,t){WY(this,{type:"Array Iterator",target:JG(e),index:0,kind:t})}),(function(){var e=GY(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");BK.Arguments=BK.Array,kK("keys"),kK("values"),kK("entries");var KY={};KY[Aq("toStringTag")]="z";var YY="[object z]"===String(KY),XY=Aq("toStringTag"),ZY=LG.Object,JY="Arguments"==GG(function(){return arguments}()),QY=YY?GG:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=ZY(e),XY))?n:JY?GG(t):"Object"==(r=GG(t))&&fq(t.callee)?"Arguments":r},eX=YY?{}.toString:function(){return"[object "+QY(this)+"]"};YY||iY(Object.prototype,"toString",eX,{unsafe:!0});var tX=LG.String,nX=function(e){if("Symbol"===QY(e))throw TypeError("Cannot convert a Symbol value to a string");return tX(e)},rX=HG("".charAt),oX=HG("".charCodeAt),iX=HG("".slice),aX={charAt:function(e){return function(t,n){var r,o,i=nX(ZG(t)),a=tK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=oX(i,a))<55296||r>56319||a+1===u||(o=oX(i,a+1))<56320||o>57343?e?rX(i,a):r:e?iX(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},uX=aX.charAt,sX=YK.set,lX=YK.getterFor("String Iterator");UY(String,"String",(function(e){sX(this,{type:"String Iterator",string:nX(e),index:0})}),(function(){var e,t=lX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=uX(n,r),t.index+=e.length,{value:e,done:!1})}));var cX=function(e,t,n){for(var r in t)iY(e,r,t[r],n);return e},fX=LG.Array,dX=Math.max,pX=uY.f,hX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gX={f:function(e){return hX&&"Window"==GG(e)?function(e){try{return pX(e)}catch(t){return function(e){for(var t,n,r,o,i=uK(e),a=oK(void 0,i),u=oK(i,i),s=fX(dX(u-a,0)),l=0;a<u;a++,l++)t=s,n=l,r=e[a],(o=Yq(n))in t?Jq.f(t,o,LK(0,r)):t[o]=r;return s.length=l,s}(hX)}}(e):pX(JG(e))}},vX=VG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),yX=Object.isExtensible,mX=VG((function(){yX(1)}))||vX?function(e){return!!Oq(e)&&(!vX||"ArrayBuffer"!=GG(e))&&(!yX||yX(e))}:yX,bX=!VG((function(){return Object.isExtensible(Object.preventExtensions({}))})),wX=PG((function(e){var t=Jq.f,n=!1,r=cq("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=uY.f,t=HG([].splice),o={};o[r]=1,e(o).length&&(uY.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},wY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gX.f}))},fastKey:function(e,t){if(!Oq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!aq(e,r)){if(!mX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!aq(e,r)){if(!mX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return bX&&n&&mX(e)&&!aq(e,r)&&i(e),e}};cK[r]=!0})),EX=HG(HG.bind),DX=function(e,t){return Uq(e),void 0===t?e:EX?EX(e,t):function(){return e.apply(t,arguments)}},xX=Aq("iterator"),CX=Array.prototype,SX=Aq("iterator"),AX=function(e){if(null!=e)return Wq(e,SX)||Wq(e,"@@iterator")||BK[QY(e)]},OX=LG.TypeError,kX=function(e,t,n){var r,o;Fq(e);try{if(!(r=Wq(e,"return"))){if("throw"===t)throw n;return n}r=Lq(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Fq(r),n},BX=LG.TypeError,FX=function(e,t){this.stopped=e,this.result=t},TX=FX.prototype,_X=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=DX(t,f),v=function(e){return r&&kX(r,"normal",e),new FX(!0,e)},y=function(e){return d?(Fq(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=AX(e)))throw BX(Hq(e)+" is not iterable");if(void 0!==(c=o)&&(BK.Array===c||CX[xX]===c)){for(i=0,a=uK(e);a>i;i++)if((u=y(e[i]))&&Rq(TX,u))return u;return new FX(!1)}r=function(e,t){var n=arguments.length<2?AX(e):t;if(Uq(n))return Fq(Lq(n,e));throw OX(Hq(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Lq(s,r)).done;){try{u=y(l.value)}catch(m){kX(r,"throw",m)}if("object"==typeof u&&u&&Rq(TX,u))return u}return new FX(!1)},PX=LG.TypeError,jX=function(e,t){if(Rq(t,e))return e;throw PX("Incorrect invocation")},NX=Aq("iterator"),IX=!1;try{var LX=0,RX={next:function(){return{done:!!LX++}},return:function(){IX=!0}};RX[NX]=function(){return this},Array.from(RX,(function(){throw 2}))}catch(Lge){}var MX=Array.isArray||function(e){return"Array"==GG(e)},zX=function(){},$X=[],HX=dq("Reflect","construct"),VX=/^\s*(?:class|function)\b/,UX=HG(VX.exec),WX=!VX.exec(zX),GX=function(e){if(!fq(e))return!1;try{return HX(zX,$X,e),!0}catch(t){return!1}},qX=!HX||VG((function(){var e;return GX(GX.call)||!GX(Object)||!GX((function(){e=!0}))||e}))?function(e){if(!fq(e))return!1;switch(QY(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return WX||!!UX(VX,jK(e))}:GX,KX=Aq("species"),YX=LG.Array,XX=function(e,t){return new(MX(n=e)&&(r=n.constructor,(qX(r)&&(r===YX||MX(r.prototype))||Oq(r)&&null===(r=r[KX]))&&(r=void 0)),void 0===r?YX:r)(0===t?0:t);var n,r},ZX=HG([].push),JX=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=oq(s),g=YG(h),v=DX(l,c),y=uK(g),m=0,b=f||XX,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:ZX(w,d)}else switch(e){case 4:return!1;case 7:ZX(w,d)}return i?-1:r||o?o:w}},QX={filter:JX(2),find:JX(5),findIndex:JX(6)},eZ=wX.getWeakData,tZ=YK.set,nZ=YK.getterFor,rZ=QX.find,oZ=QX.findIndex,iZ=HG([].splice),aZ=0,uZ=function(e){return e.frozen||(e.frozen=new sZ)},sZ=function(){this.entries=[]},lZ=function(e,t){return rZ(e.entries,(function(e){return e[0]===t}))};sZ.prototype={get:function(e){var t=lZ(this,e);if(t)return t[1]},has:function(e){return!!lZ(this,e)},set:function(e,t){var n=lZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=oZ(this.entries,(function(t){return t[0]===e}));return~t&&iZ(this.entries,t,1),!!~t}};var cZ,fZ={getConstructor:function(e,t,n,r){var o=e((function(e,o){jX(e,i),tZ(e,{type:t,id:aZ++,frozen:void 0}),null!=o&&_X(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=nZ(t),u=function(e,t,n){var r=a(e),o=eZ(Fq(t),!0);return!0===o?uZ(r).set(t,n):o[r.id]=n,e};return cX(i,{delete:function(e){var t=a(this);if(!Oq(e))return!1;var n=eZ(e);return!0===n?uZ(t).delete(e):n&&aq(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Oq(e))return!1;var n=eZ(e);return!0===n?uZ(t).has(e):n&&aq(n,t.id)}}),cX(i,n?{get:function(e){var t=a(this);if(Oq(e)){var n=eZ(e);return!0===n?uZ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},dZ=YK.enforce,pZ=!LG.ActiveXObject&&"ActiveXObject"in LG,hZ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},gZ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=LG[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=HG(u[e]);iY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Oq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Oq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Oq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(mY(e,!fq(a)||!(o||u.forEach&&!VG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),wX.enable();else if(mY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=VG((function(){f.has(1)})),h=function(){if(!IX)return!1;var e=!1;try{var t={};t[NX]=function(){return{next:function(){return{done:e=!0}}}},new a(t)}catch(n){}return e}(),g=!o&&VG((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){jX(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,LY&&fq(c=o.constructor)&&c!==l&&Oq(f=c.prototype)&&f!==l.prototype&&LY(n,f),n);return null!=t&&_X(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,wY({global:!0,forced:s!=a},l),_Y(s,e),o||n.setStrong(s,e,r),s}("WeakMap",hZ,fZ);if(IK&&pZ){cZ=fZ.getConstructor(hZ,"WeakMap",!0),wX.enable();var vZ=gZ.prototype,yZ=HG(vZ.delete),mZ=HG(vZ.has),bZ=HG(vZ.get),wZ=HG(vZ.set);cX(vZ,{delete:function(e){if(Oq(e)&&!mX(e)){var t=dZ(this);return t.frozen||(t.frozen=new cZ),yZ(this,e)||t.frozen.delete(e)}return yZ(this,e)},has:function(e){if(Oq(e)&&!mX(e)){var t=dZ(this);return t.frozen||(t.frozen=new cZ),mZ(this,e)||t.frozen.has(e)}return mZ(this,e)},get:function(e){if(Oq(e)&&!mX(e)){var t=dZ(this);return t.frozen||(t.frozen=new cZ),mZ(this,e)?bZ(this,e):t.frozen.get(e)}return bZ(this,e)},set:function(e,t){if(Oq(e)&&!mX(e)){var n=dZ(this);n.frozen||(n.frozen=new cZ),mZ(this,e)?wZ(this,e,t):n.frozen.set(e,t)}else wZ(this,e,t);return this}})}var EZ={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},DZ=jq("span").classList,xZ=DZ&&DZ.constructor&&DZ.constructor.prototype,CZ=xZ===Object.prototype?void 0:xZ,SZ=Aq("iterator"),AZ=Aq("toStringTag"),OZ=qY.values,kZ=function(e,t){if(e){if(e[SZ]!==OZ)try{RK(e,SZ,OZ)}catch(r){e[SZ]=OZ}if(e[AZ]||RK(e,AZ,t),EZ[t])for(var n in qY)if(e[n]!==qY[n])try{RK(e,n,qY[n])}catch(r){e[n]=qY[n]}}};for(var BZ in EZ)kZ(LG[BZ]&&LG[BZ].prototype,BZ);kZ(CZ,"DOMTokenList");var FZ=new WeakMap,TZ={type:"list-item",renderElem:function(e,t,n){FZ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";void 0!==a&&a?s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=mO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Pf.previous(c),d=Cf.node(e,f);if(null==d)break;var p=d[0],h=p.level,g=void 0===h?0:h,v=p.type,y=p.ordered;if(v!==r)break;if(g<i)break;if(g===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e)+".":s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);return vg("div",{style:u},vg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Kf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),vg("span",null,t))}},_Z=function(e,t){return _Z=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])},_Z(e,t)};function PZ(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}_Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function jZ(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 NZ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function IZ(e){return Cf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===mO.findPath(e,t).length}})}var LZ=lK.includes;wY({target:"Array",proto:!0},{includes:function(e){return LZ(this,e,arguments.length>1?arguments[1]:void 0)}}),kK("includes");var RZ,MZ,zZ=function(){var e=Fq(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},$Z=LG.RegExp,HZ=VG((function(){var e=$Z("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));HZ||VG((function(){return!$Z("a","y").sticky}));var VZ={BROKEN_CARET:HZ||VG((function(){var e=$Z("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},UZ=LG.RegExp,WZ=VG((function(){var e=UZ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),GZ=LG.RegExp,qZ=VG((function(){var e=GZ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),KZ=YK.get,YZ=nq("native-string-replace",String.prototype.replace),XZ=RegExp.prototype.exec,ZZ=XZ,JZ=HG("".charAt),QZ=HG("".indexOf),eJ=HG("".replace),tJ=HG("".slice),nJ=(MZ=/b*/g,Lq(XZ,RZ=/a/,"a"),Lq(XZ,MZ,"a"),0!==RZ.lastIndex||0!==MZ.lastIndex),rJ=VZ.BROKEN_CARET,oJ=void 0!==/()??/.exec("")[1];(nJ||oJ||rJ||WZ||qZ)&&(ZZ=function(e){var t,n,r,o,i,a,u,s=this,l=KZ(s),c=nX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Lq(ZZ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=rJ&&s.sticky,h=Lq(zZ,s),g=s.source,v=0,y=c;if(p&&(h=eJ(h,"y",""),-1===QZ(h,"g")&&(h+="g"),y=tJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==JZ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),oJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),nJ&&(r=s.lastIndex),o=Lq(XZ,p?n:s,y),p?o?(o.input=tJ(o.input,v),o[0]=tJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:nJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),oJ&&o&&o.length>1&&Lq(YZ,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=SK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var iJ=ZZ;wY({target:"RegExp",proto:!0,forced:/./.exec!==iJ},{exec:iJ});var aJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return mO.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!mO.getSelectedElems(e).some((function(t){if(Cf.isVoid(e,t)&&Cf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?dd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):dd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),uJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=X_("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return PZ(t,e),t}(aJ),sJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=X_("listModule.orderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',t}return PZ(t,e),t}(aJ),lJ={key:"bulletedList",factory:function(){return new uJ}},cJ={key:"numberedList",factory:function(){return new sJ}},fJ=[],dJ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=FZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=mO.findPath(t,e);if(0===s[0])return u+1;var l=Pf.previous(s),c=Cf.node(t,l);if(!c)return 0;var f=NZ(c,1)[0];if(mO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",fJ.push(i);var s=function(e){var t=FZ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=mO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Pf.next(s),c=Cf.node(t,l);if(!c)return 0;var f=NZ(c,1)[0];if(mO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+fJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},pJ=Aq("species"),hJ=QX.filter,gJ=bq>=51||!VG((function(){var e=[];return(e.constructor={})[pJ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));wY({target:"Array",proto:!0,forced:!gJ},{filter:function(e){return hJ(this,e,arguments.length>1?arguments[1]:void 0)}});var vJ=Function.prototype,yJ=vJ.apply,mJ=vJ.bind,bJ=vJ.call,wJ="object"==typeof Reflect&&Reflect.apply||(mJ?bJ.bind(yJ):function(){return bJ.apply(yJ,arguments)}),EJ=(Aq("species"),RegExp.prototype),DJ=aX.charAt,xJ=function(e,t,n){return t+(n?DJ(e,t).length:1)},CJ=Math.floor,SJ=HG("".charAt),AJ=HG("".replace),OJ=HG("".slice),kJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,BJ=/\$([$&'`]|\d{1,2})/g,FJ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=BJ;return void 0!==o&&(o=oq(o),s=kJ),AJ(i,s,(function(i,s){var l;switch(SJ(s,0)){case"$":return"$";case"&":return e;case"`":return OJ(t,0,n);case"'":return OJ(t,a);case"<":l=o[OJ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=CJ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?SJ(s,1):r[f-1]+SJ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},TJ=LG.TypeError,_J=function(e,t){var n=e.exec;if(fq(n)){var r=Lq(n,e,t);return null!==r&&Fq(r),r}if("RegExp"===GG(e))return Lq(iJ,e,t);throw TJ("RegExp#exec called on incompatible receiver")},PJ=Aq("replace"),jJ=Math.max,NJ=Math.min,IJ=HG([].concat),LJ=HG([].push),RJ=HG("".indexOf),MJ=HG("".slice),zJ="$0"==="a".replace(/./,"$0"),$J=!!/./[PJ]&&""===/./[PJ]("a","$0");!function(e,t,n){var r=Aq(e),o=!VG((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),i=o&&!VG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=HG(/./[r]),u=function(e,t){var n=$J?"$":"$0";return[function(e,n){var r=ZG(this),o=null==e?void 0:Wq(e,PJ);return o?Lq(o,e,r,n):Lq(t,nX(r),e,n)},function(e,r){var i=Fq(this),u=nX(e);if("string"==typeof r&&-1===RJ(r,n)&&-1===RJ(r,"$<")){var s=function(e,t,n,r,i){var u=HG(e),s=t.exec;return s===iJ||s===EJ.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}(t,i,u,r);if(s.done)return s.value}var l=fq(r);l||(r=nX(r));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=_J(i,u);if(null===p)break;if(LJ(d,p),!c)break;""===nX(p[0])&&(i.lastIndex=xJ(u,aK(i.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=nX((p=d[y])[0]),b=jJ(NJ(tK(p.index),u.length),0),w=[],E=1;E<p.length;E++)LJ(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(l){var x=IJ([m],w,b,u);void 0!==D&&LJ(x,D);var C=nX(wJ(r,void 0,x))}else C=FJ(m,u,b,w,D,r);b>=v&&(g+=MJ(u,v,b)+C,v=b+m.length)}return g+MJ(u,v)}]}(0,""[e]);iY(String.prototype,e,u[0]),iY(EJ,r,u[1])}}("replace",0,!!VG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!zJ||$J);var HJ=LG.TypeError,VJ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&DX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&MX(s))l=uK(s),c=VJ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw HJ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},UJ=VJ;function WJ(e){return e.length?e[0].tagName.toLowerCase():""}wY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=oq(this),n=uK(t),r=XX(t,0);return r.length=UJ(r,t,t,n,0,void 0===e?1:tK(e)),r}}),kK("flat"),wY({global:!0},{globalThis:LG}),qp&&(Ap.fn.append=qp),Fp&&(Ap.fn.attr=Fp),Yp&&(Ap.fn.parent=Yp);var GJ={renderElems:[TZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if($f.isExpanded(n))t(e);else{var r=mO.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?dd.setNodes(o,{level:a-1}):dd.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if($f.isCollapsed(a)){var u=mO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void dd.setNodes(o,{level:l+1})}}if($f.isExpanded(a)){var c=0,f=!1;try{for(var d=jZ(IZ(o)),p=d.next();!p.done;p=d.next()){var h=NZ(p.value,1)[0];"list-item"===mO.getNodeType(h)?c++:f=!0}}catch(w){e={error:w}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=jZ(IZ(o)),v=g.next();!v.done;v=g.next()){var y=NZ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,dd.setNodes(o,{level:l+1},{at:m})}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=NZ(e,2),n=t[0],i=t[1],a=mO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||dd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[lJ,cJ],elemsToHtml:[dJ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===WJ(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=WJ(n);"ul"===r||"ol"===r;)r=WJ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},qJ=y((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[o]=x[i]=x[b]=x[a]=x[w]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[h]=x[g]=x[y]=x[m]=!1;var C="object"==typeof v&&v&&v.Object===Object&&v,S="object"==typeof self&&self&&self.Object===Object&&self,A=C||S||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,F=B&&C.process,T=function(){try{return F&&F.binding&&F.binding("util")}catch(se){}}(),_=T&&T.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,L=Function.prototype,R=Object.prototype,M=A["__core-js_shared__"],z=L.toString,$=R.hasOwnProperty,H=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=R.toString,U=RegExp("^"+z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,G=A.Symbol,q=A.Uint8Array,K=R.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Ae(A,"DataView"),te=Ae(A,"Map"),ne=Ae(A,"Promise"),re=Ae(A,"Set"),oe=Ae(A,"WeakMap"),ie=Ae(Object,"create"),ae=Fe(ee),ue=Fe(te),le=Fe(ne),ce=Fe(re),fe=Fe(oe),de=G?G.prototype:void 0,pe=de?de.valueOf:void 0;function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ge(e);this.size=t.size}function be(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=$.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(i){}var o=V.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,V.call(t));var t}function Ee(e){return Re(e)&&we(e)==o}function De(e,t,n,r,l){return e===t||(null==e||null==t||!Re(e)&&!Re(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var v=Pe(e),m=Pe(t),E=v?i:ke(e),D=m?i:ke(t),x=(E=E==o?d:E)==d,C=(D=D==o?d:D)==d,S=E==D;if(S&&je(e)){if(!je(t))return!1;v=!0,x=!1}if(S&&!x)return p||(p=new me),v||Me(e)?xe(e,t,n,r,l,p):function(e,t,n,r,o,i,l){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case a:case u:case f:return Te(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case y:return e==t+"";case c:var d=j;case g:var p=1&r;if(d||(d=N),e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;r|=2,l.set(e,t);var m=xe(d(e),d(t),r,o,i,l);return l.delete(e),m;case"[object Symbol]":if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=x&&$.call(e,"__wrapped__"),O=C&&$.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new me),l(k,B,n,r,p)}}return!!S&&(p||(p=new me),function(e,t,n,r,o,i){var a=1&n,u=Ce(e),s=u.length;if(s!=Ce(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:$.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,l,p))}(e,t,n,r,De,l))}function xe(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Ce(e){return n=Oe,r=ze(t=e),Pe(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r}function Se(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ae(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Le(e)||(t=e,H&&H in t))&&(Ne(e)?U:E).test(Fe(e));var t}(o)?o:void 0}he.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:$.call(t,e)},he.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},ge.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return be(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=be(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(te||ge),string:new he}},ve.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Se(this,e).get(e)},ve.prototype.has=function(e){return Se(this,e).has(e)},ve.prototype.set=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ge,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Oe=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Z(e),(function(t){return K.call(e,t)})))}:function(){return[]},ke=we;function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||D.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){if(null!=e){try{return z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Te(e,t){return e===t||e!=e&&t!=t}(ee&&ke(new ee(new ArrayBuffer(1)))!=w||te&&ke(new te)!=c||ne&&ke(ne.resolve())!=p||re&&ke(new re)!=g||oe&&ke(new oe)!=m)&&(ke=function(e){var t=we(e),n=t==d?e.constructor:void 0,r=n?Fe(n):"";if(r)switch(r){case ae:return w;case ue:return c;case le:return p;case ce:return g;case fe:return m}return t});var _e=Ee(function(){return arguments}())?Ee:function(e){return Re(e)&&$.call(e,"callee")&&!K.call(e,"callee")},Pe=Array.isArray,je=J||function(){return!1};function Ne(e){if(!Le(e))return!1;var t=we(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Le(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Re(e){return null!=e&&"object"==typeof e}var Me=_?function(e){return function(t){return e(t)}}(_):function(e){return Re(e)&&Ie(e.length)&&!!x[we(e)]};function ze(e){return null!=(t=e)&&Ie(t.length)&&!Ne(t)?function(e){var t=Pe(e),n=!t&&_e(e),r=!t&&!n&&je(e),o=!t&&!n&&!r&&Me(e),i=t||n||r||o,a=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length;for(var s in e)!$.call(e,s)||i&&("length"==s||r&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Be(s,u))||a.push(s);return a}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return Q(e);var t,n,r=[];for(var o in Object(e))$.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return De(e,t)}}));Y_("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Y_("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var KJ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function YJ(e){var t={exports:{}};return e(t,t.exports),t.exports}var XJ,ZJ,JJ=function(e){return e&&e.Math==Math&&e},QJ=JJ("object"==typeof globalThis&&globalThis)||JJ("object"==typeof window&&window)||JJ("object"==typeof self&&self)||JJ("object"==typeof KJ&&KJ)||function(){return this}()||Function("return this")(),eQ=function(e){try{return!!e()}catch(t){return!0}},tQ=!eQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nQ=Function.prototype.call,rQ=nQ.bind?nQ.bind(nQ):function(){return nQ.apply(nQ,arguments)},oQ={}.propertyIsEnumerable,iQ=Object.getOwnPropertyDescriptor,aQ={f:iQ&&!oQ.call({1:2},1)?function(e){var t=iQ(this,e);return!!t&&t.enumerable}:oQ},uQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sQ=Function.prototype,lQ=sQ.bind,cQ=sQ.call,fQ=lQ&&lQ.bind(cQ),dQ=lQ?function(e){return e&&fQ(cQ,e)}:function(e){return e&&function(){return cQ.apply(e,arguments)}},pQ=dQ({}.toString),hQ=dQ("".slice),gQ=function(e){return hQ(pQ(e),8,-1)},vQ=QJ.Object,yQ=dQ("".split),mQ=eQ((function(){return!vQ("z").propertyIsEnumerable(0)}))?function(e){return"String"==gQ(e)?yQ(e,""):vQ(e)}:vQ,bQ=QJ.TypeError,wQ=function(e){if(null==e)throw bQ("Can't call method on "+e);return e},EQ=function(e){return mQ(wQ(e))},DQ=function(e){return"function"==typeof e},xQ=function(e){return"object"==typeof e?null!==e:DQ(e)},CQ=function(e,t){return arguments.length<2?function(e){return DQ(e)?e:void 0}(QJ[e]):QJ[e]&&QJ[e][t]},SQ=dQ({}.isPrototypeOf),AQ=CQ("navigator","userAgent")||"",OQ=QJ.process,kQ=QJ.Deno,BQ=OQ&&OQ.versions||kQ&&kQ.version,FQ=BQ&&BQ.v8;FQ&&(ZJ=(XJ=FQ.split("."))[0]>0&&XJ[0]<4?1:+(XJ[0]+XJ[1])),!ZJ&&AQ&&(!(XJ=AQ.match(/Edge\/(\d+)/))||XJ[1]>=74)&&(XJ=AQ.match(/Chrome\/(\d+)/))&&(ZJ=+XJ[1]);var TQ=ZJ,_Q=!!Object.getOwnPropertySymbols&&!eQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&TQ&&TQ<41})),PQ=_Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jQ=QJ.Object,NQ=PQ?function(e){return"symbol"==typeof e}:function(e){var t=CQ("Symbol");return DQ(t)&&SQ(t.prototype,jQ(e))},IQ=QJ.String,LQ=function(e){try{return IQ(e)}catch(t){return"Object"}},RQ=QJ.TypeError,MQ=function(e){if(DQ(e))return e;throw RQ(LQ(e)+" is not a function")},zQ=function(e,t){var n=e[t];return null==n?void 0:MQ(n)},$Q=QJ.TypeError,HQ=Object.defineProperty,VQ=function(e,t){try{HQ(QJ,e,{value:t,configurable:!0,writable:!0})}catch(J_){QJ[e]=t}return t},UQ=QJ["__core-js_shared__"]||VQ("__core-js_shared__",{}),WQ=YJ((function(e){(e.exports=function(e,t){return UQ[e]||(UQ[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),GQ=QJ.Object,qQ=function(e){return GQ(wQ(e))},KQ=dQ({}.hasOwnProperty),YQ=Object.hasOwn||function(e,t){return KQ(qQ(e),t)},XQ=0,ZQ=Math.random(),JQ=dQ(1..toString),QQ=function(e){return"Symbol("+(void 0===e?"":e)+")_"+JQ(++XQ+ZQ,36)},e0=WQ("wks"),t0=QJ.Symbol,n0=t0&&t0.for,r0=PQ?t0:t0&&t0.withoutSetter||QQ,o0=function(e){if(!YQ(e0,e)||!_Q&&"string"!=typeof e0[e]){var t="Symbol."+e;_Q&&YQ(t0,e)?e0[e]=t0[e]:e0[e]=PQ&&n0?n0(t):r0(t)}return e0[e]},i0=QJ.TypeError,a0=o0("toPrimitive"),u0=function(e){var t=function(e){if(!xQ(e)||NQ(e))return e;var t,n=zQ(e,a0);if(n){if(t=rQ(n,e,"string"),!xQ(t)||NQ(t))return t;throw i0("Can't convert object to primitive value")}return function(e){var t,n;if(DQ(t=e.toString)&&!xQ(n=rQ(t,e)))return n;if(DQ(t=e.valueOf)&&!xQ(n=rQ(t,e)))return n;throw $Q("Can't convert object to primitive value")}(e)}(e);return NQ(t)?t:t+""},s0=QJ.document,l0=xQ(s0)&&xQ(s0.createElement),c0=function(e){return l0?s0.createElement(e):{}},f0=!tQ&&!eQ((function(){return 7!=Object.defineProperty(c0("div"),"a",{get:function(){return 7}}).a})),d0=Object.getOwnPropertyDescriptor,p0={f:tQ?d0:function(e,t){if(e=EQ(e),t=u0(t),f0)try{return d0(e,t)}catch(n){}if(YQ(e,t))return uQ(!rQ(aQ.f,e,t),e[t])}},h0=QJ.String,g0=QJ.TypeError,v0=function(e){if(xQ(e))return e;throw g0(h0(e)+" is not an object")},y0=QJ.TypeError,m0=Object.defineProperty,b0={f:tQ?m0:function(e,t,n){if(v0(e),t=u0(t),v0(n),f0)try{return m0(e,t,n)}catch(r){}if("get"in n||"set"in n)throw y0("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},w0=tQ?function(e,t,n){return b0.f(e,t,uQ(1,n))}:function(e,t,n){return e[t]=n,e},E0=dQ(Function.toString);DQ(UQ.inspectSource)||(UQ.inspectSource=function(e){return E0(e)});var D0,x0,C0,S0=UQ.inspectSource,A0=QJ.WeakMap,O0=DQ(A0)&&/native code/.test(S0(A0)),k0=WQ("keys"),B0=function(e){return k0[e]||(k0[e]=QQ(e))},F0={},T0=QJ.TypeError,_0=QJ.WeakMap;if(O0||UQ.state){var P0=UQ.state||(UQ.state=new _0),j0=dQ(P0.get),N0=dQ(P0.has),I0=dQ(P0.set);D0=function(e,t){if(N0(P0,e))throw new T0("Object already initialized");return t.facade=e,I0(P0,e,t),t},x0=function(e){return j0(P0,e)||{}},C0=function(e){return N0(P0,e)}}else{var L0=B0("state");F0[L0]=!0,D0=function(e,t){if(YQ(e,L0))throw new T0("Object already initialized");return t.facade=e,w0(e,L0,t),t},x0=function(e){return YQ(e,L0)?e[L0]:{}},C0=function(e){return YQ(e,L0)}}var R0={get:x0,enforce:function(e){return C0(e)?x0(e):D0(e,{})}},M0=Function.prototype,z0=tQ&&Object.getOwnPropertyDescriptor,$0=YQ(M0,"name"),H0={PROPER:$0&&"something"===function(){}.name,CONFIGURABLE:$0&&(!tQ||tQ&&z0(M0,"name").configurable)},V0=YJ((function(e){var t=H0.CONFIGURABLE,n=R0.get,r=R0.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;DQ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!YQ(i,"name")||t&&i.name!==f)&&w0(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==QJ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:w0(e,n,i)):l?e[n]=i:VQ(n,i)})(Function.prototype,"toString",(function(){return DQ(this)&&n(this).source||S0(this)}))})),U0=Math.ceil,W0=Math.floor,G0=function(e){var t=+e;return t!=t||0===t?0:(t>0?W0:U0)(t)},q0=Math.max,K0=Math.min,Y0=function(e,t){var n=G0(e);return n<0?q0(n+t,0):K0(n,t)},X0=Math.min,Z0=function(e){return e>0?X0(G0(e),9007199254740991):0},J0=function(e){return Z0(e.length)},Q0=function(e){return function(t,n,r){var o,i=EQ(t),a=J0(i),u=Y0(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),e1=dQ([].push),t1=function(e,t){var n,r=EQ(e),o=0,i=[];for(n in r)!YQ(F0,n)&&YQ(r,n)&&e1(i,n);for(;t.length>o;)YQ(r,n=t[o++])&&(~Q0(i,n)||e1(i,n));return i},n1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],r1=n1.concat("length","prototype"),o1={f:Object.getOwnPropertyNames||function(e){return t1(e,r1)}},i1={f:Object.getOwnPropertySymbols},a1=dQ([].concat),u1=CQ("Reflect","ownKeys")||function(e){var t=o1.f(v0(e)),n=i1.f;return n?a1(t,n(e)):t},s1=function(e,t){for(var n=u1(t),r=b0.f,o=p0.f,i=0;i<n.length;i++){var a=n[i];YQ(e,a)||r(e,a,o(t,a))}},l1=/#|\.prototype\./,c1=function(e,t){var n=d1[f1(e)];return n==h1||n!=p1&&(DQ(t)?eQ(t):!!t)},f1=c1.normalize=function(e){return String(e).replace(l1,".").toLowerCase()},d1=c1.data={},p1=c1.NATIVE="N",h1=c1.POLYFILL="P",g1=c1,v1=p0.f,y1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?QJ:l?QJ[u]||VQ(u,{}):(QJ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=v1(n,r))&&a.value:n[r],!g1(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;s1(i,o)}(e.sham||o&&o.sham)&&w0(i,"sham",!0),V0(n,r,i,e)}},m1={};m1[o0("toStringTag")]="z";var b1="[object z]"===String(m1),w1=o0("toStringTag"),E1=QJ.Object,D1="Arguments"==gQ(function(){return arguments}()),x1=b1?gQ:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=E1(e),w1))?n:D1?gQ(t):"Object"==(r=gQ(t))&&DQ(t.callee)?"Arguments":r},C1=QJ.String,S1=function(e){if("Symbol"===x1(e))throw TypeError("Cannot convert a Symbol value to a string");return C1(e)},A1=/"/g,O1=dQ("".replace);y1({target:"String",proto:!0,forced:eQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=S1(wQ(this)),r="<a",(r+=' name="'+O1(S1(t),A1,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var k1,B1=function(){var e=v0(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},F1=QJ.RegExp,T1=eQ((function(){var e=F1("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));T1||eQ((function(){return!F1("a","y").sticky}));var _1={BROKEN_CARET:T1||eQ((function(){var e=F1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:T1},P1=Object.keys||function(e){return t1(e,n1)},j1=tQ?Object.defineProperties:function(e,t){v0(e);for(var n,r=EQ(t),o=P1(t),i=o.length,a=0;i>a;)b0.f(e,n=o[a++],r[n]);return e},N1=CQ("document","documentElement"),I1=B0("IE_PROTO"),L1=function(){},R1=function(e){return"<script>"+e+"<\/script>"},M1=function(e){e.write(R1("")),e.close();var t=e.parentWindow.Object;return e=null,t},z1=function(){try{k1=new ActiveXObject("htmlfile")}catch(r){}var e,t;z1="undefined"!=typeof document?document.domain&&k1?M1(k1):((t=c0("iframe")).style.display="none",N1.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(R1("document.F=Object")),e.close(),e.F):M1(k1);for(var n=n1.length;n--;)delete z1.prototype[n1[n]];return z1()};F0[I1]=!0;var $1,H1,V1=Object.create||function(e,t){var n;return null!==e?(L1.prototype=v0(e),n=new L1,L1.prototype=null,n[I1]=e):n=z1(),void 0===t?n:j1(n,t)},U1=QJ.RegExp,W1=eQ((function(){var e=U1(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),G1=QJ.RegExp,q1=eQ((function(){var e=G1("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),K1=R0.get,Y1=WQ("native-string-replace",String.prototype.replace),X1=RegExp.prototype.exec,Z1=X1,J1=dQ("".charAt),Q1=dQ("".indexOf),e2=dQ("".replace),t2=dQ("".slice),n2=(H1=/b*/g,rQ(X1,$1=/a/,"a"),rQ(X1,H1,"a"),0!==$1.lastIndex||0!==H1.lastIndex),r2=_1.BROKEN_CARET,o2=void 0!==/()??/.exec("")[1];(n2||o2||r2||W1||q1)&&(Z1=function(e){var t,n,r,o,i,a,u,s=this,l=K1(s),c=S1(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=rQ(Z1,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=r2&&s.sticky,h=rQ(B1,s),g=s.source,v=0,y=c;if(p&&(h=e2(h,"y",""),-1===Q1(h,"g")&&(h+="g"),y=t2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==J1(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),o2&&(n=new RegExp("^"+g+"$(?!\\s)",h)),n2&&(r=s.lastIndex),o=rQ(X1,p?n:s,y),p?o?(o.input=t2(o.input,v),o[0]=t2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:n2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),o2&&o&&o.length>1&&rQ(Y1,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=V1(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var i2=Z1;y1({target:"RegExp",proto:!0,forced:/./.exec!==i2},{exec:i2});var a2=Array.isArray||function(e){return"Array"==gQ(e)},u2=function(){},s2=[],l2=CQ("Reflect","construct"),c2=/^\s*(?:class|function)\b/,f2=dQ(c2.exec),d2=!c2.exec(u2),p2=function(e){if(!DQ(e))return!1;try{return l2(u2,s2,e),!0}catch(t){return!1}},h2=!l2||eQ((function(){var e;return p2(p2.call)||!p2(Object)||!p2((function(){e=!0}))||e}))?function(e){if(!DQ(e))return!1;switch(x1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return d2||!!f2(c2,S0(e))}:p2,g2=function(e,t,n){var r=u0(t);r in e?b0.f(e,r,uQ(0,n)):e[r]=n},v2=o0("species"),y2=function(e){return TQ>=51||!eQ((function(){var t=[];return(t.constructor={})[v2]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},m2=dQ([].slice),b2=y2("slice"),w2=o0("species"),E2=QJ.Array,D2=Math.max;function x2(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function C2(e){var t=e.selection;if(null==t)return!1;var n=x2(Cf.nodes(e,{match:function(e){return mO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=x2(n,2)[1],o=Cf.start(e,r);if(Lf.equals(t.anchor,o))return!0}return!1}function S2(e,t){var n,r,o=Cf.nodes(e,{at:t,match:function(e){return"table"===mO.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}y1({target:"Array",proto:!0,forced:!b2},{slice:function(e,t){var n,r,o,i=EQ(this),a=J0(i),u=Y0(e,a),s=Y0(void 0===t?a:t,a);if(a2(i)&&(n=i.constructor,(h2(n)&&(n===E2||a2(n.prototype))||xQ(n)&&null===(n=n[w2]))&&(n=void 0),n===E2||void 0===n))return m2(i,u,s);for(r=new(void 0===n?E2:n)(D2(s-u,0)),o=0;u<s;u++,o++)u in i&&g2(r,o,i[u]);return r.length=o,r}});var A2=dQ(dQ.bind),O2=o0("species"),k2=QJ.Array,B2=function(e,t){return new(a2(n=e)&&(r=n.constructor,(h2(r)&&(r===k2||a2(r.prototype))||xQ(r)&&null===(r=r[O2]))&&(r=void 0)),void 0===r?k2:r)(0===t?0:t);var n,r},F2=dQ([].push),T2=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=qQ(s),g=mQ(h),v=function(e,t){return MQ(e),void 0===t?e:A2?A2(e,t):function(){return e.apply(t,arguments)}}(l,c),y=J0(g),m=0,b=f||B2,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:F2(w,d)}else switch(e){case 4:return!1;case 7:F2(w,d)}return i?-1:r||o?o:w}},_2={forEach:T2(0),map:T2(1),filter:T2(2),find:T2(5)},P2=_2.map;y1({target:"Array",proto:!0,forced:!y2("map")},{map:function(e){return P2(this,e,arguments.length>1?arguments[1]:void 0)}});var j2=b1?{}.toString:function(){return"[object "+x1(this)+"]"};function N2(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function I2(e){return N2(e).every((function(e){return!!e.isHeader}))}b1||V0(Object.prototype,"toString",j2,{unsafe:!0});var L2=H0.PROPER,R2=RegExp.prototype,M2=R2.toString,z2=dQ(B1),$2=eQ((function(){return"/a/b"!=M2.call({source:"a",flags:"b"})})),H2=L2&&"toString"!=M2.name;($2||H2)&&V0(RegExp.prototype,"toString",(function(){var e=v0(this),t=S1(e.source),n=e.flags;return"/"+t+"/"+S1(void 0===n&&SQ(R2,e)&&!("flags"in R2)?z2(e):n)}),{unsafe:!0});var V2=o0("unscopables"),U2=Array.prototype;null==U2[V2]&&b0.f(U2,V2,{configurable:!0,value:V1(null)});var W2=_2.find,G2=!0;"find"in[]&&Array(1).find((function(){G2=!1})),y1({target:"Array",proto:!0,forced:G2},{find:function(e){return W2(this,e,arguments.length>1?arguments[1]:void 0)}}),U2[V2].find=!0;var q2=Function.prototype,K2=q2.apply,Y2=q2.bind,X2=q2.call,Z2="object"==typeof Reflect&&Reflect.apply||(Y2?X2.bind(K2):function(){return X2.apply(K2,arguments)}),J2=o0("species"),Q2=RegExp.prototype,e4=function(e,t,n,r){var o=o0(e),i=!eQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!eQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[J2]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=dQ(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=dQ(e),s=t.exec;return s===i2||s===Q2.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));V0(String.prototype,e,s[0]),V0(Q2,o,s[1])}r&&w0(Q2[o],"sham",!0)},t4=o0("match"),n4=QJ.TypeError,r4=o0("species"),o4=dQ("".charAt),i4=dQ("".charCodeAt),a4=dQ("".slice),u4=function(e){return function(t,n){var r,o,i=S1(wQ(t)),a=G0(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=i4(i,a))<55296||r>56319||a+1===u||(o=i4(i,a+1))<56320||o>57343?e?o4(i,a):r:e?a4(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),s4=function(e,t,n){return t+(n?u4(e,t).length:1)},l4=QJ.Array,c4=Math.max,f4=function(e,t,n){for(var r=J0(e),o=Y0(t,r),i=Y0(void 0===n?r:n,r),a=l4(c4(i-o,0)),u=0;o<i;o++,u++)g2(a,u,e[o]);return a.length=u,a},d4=QJ.TypeError,p4=function(e,t){var n=e.exec;if(DQ(n)){var r=rQ(n,e,t);return null!==r&&v0(r),r}if("RegExp"===gQ(e))return rQ(i2,e,t);throw d4("RegExp#exec called on incompatible receiver")},h4=_1.UNSUPPORTED_Y,g4=Math.min,v4=[].push,y4=dQ(/./.exec),m4=dQ(v4),b4=dQ("".slice);e4("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=S1(wQ(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!xQ(r=e)||!(void 0!==(o=r[t4])?o:"RegExp"==gQ(r)))return rQ(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=rQ(i2,p,i))&&!((s=p.lastIndex)>d&&(m4(c,b4(i,d,u.index)),u.length>1&&u.index<i.length&&Z2(v4,c,f4(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&y4(p,"")||m4(c,""):m4(c,b4(i,d)),c.length>a?f4(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:rQ(t,this,e,n)}:t,[function(t,n){var o=wQ(this),i=null==t?void 0:zQ(t,e);return i?rQ(i,t,o,n):rQ(r,S1(o),t,n)},function(e,o){var i=v0(this),a=S1(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s,l,c,f=(s=RegExp,void 0===(c=v0(i).constructor)||null==(l=v0(c)[r4])?s:function(e){if(h2(e))return e;throw n4(LQ(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(h4?"g":"y"),h=new f(h4?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===p4(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=h4?0:y;var b,w=p4(h,h4?b4(a,y):a);if(null===w||(b=g4(Z0(h.lastIndex+(h4?y:0)),a.length))===v)y=s4(a,y,d);else{if(m4(m,b4(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(m4(m,w[E]),m.length===g)return m;y=v=b}}return m4(m,b4(a,v)),m}]}),!!eQ((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]})),h4);var w4="\t\n\v\f\r    \u2028\u2029\ufeff",E4=dQ("".replace),D4="["+w4+"]",x4=RegExp("^"+D4+D4+"*"),C4=RegExp(D4+D4+"*$"),S4={trim:function(e){return function(t){var n=S1(wQ(t));return 1&e&&(n=E4(n,x4,"")),2&e&&(n=E4(n,C4,"")),n}}(3)},A4=H0.PROPER,O4=S4.trim;function k4(e){return e.length?e[0].tagName.toLowerCase():""}y1({target:"String",proto:!0,forced:function(e){return eQ((function(){return!!w4[e]()||"…"!=="…"[e]()||A4&&w4[e].name!==e}))}("trim")},{trim:function(){return O4(this)}}),y1({global:!0},{globalThis:QJ}),qp&&(Ap.fn.append=qp),jp&&(Ap.fn.on=jp),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Pp&&(Ap.fn.val=Pp),Up&&(Ap.fn.html=Up),_p&&(Ap.fn.dataset=_p),Op&&(Ap.fn.addClass=Op),kp&&(Ap.fn.removeClass=kp),Jp&&(Ap.fn.children=Jp),Hp&&(Ap.fn.each=Hp),Zp&&(Ap.fn.find=Zp);var B4=!1,F4=0,T4=0,_4=null,P4=null,j4=Ap("body");function N4(e){B4=!1,P4=null,_4=null,j4.off("mousemove",I4),j4.off("mouseup",N4)}j4.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),B4=!0;var n=e.clientX;F4=n;var r=t.getBoundingClientRect().width;T4=r,j4.on("mousemove",I4),j4.on("mouseup",N4)}}));var I4=Lh((function(e){if(B4&&null!=P4&&null!=_4){e.preventDefault();var t=e.clientX,n=T4+(t-F4);(n=Math.floor(100*n)/100)<30&&(n=30),dd.setNodes(P4,{width:n.toString()},{at:_4})}}),100),L4={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if($f.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=mO.findPath(e,t),a=Cf.start(e,i),u=Cf.end(e,i),s=Lf.compare(r,u)<=0&&Lf.compare(r,a)>=0,l=Lf.compare(o,u)<=0&&Lf.compare(o,a)>=0;return!!(s&&l&&Pf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return vg("div",{className:"table-container","data-selected":mO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=mO.findPath(n,e),o=Cf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},vg("table",{width:i,contentEditable:r},vg("colgroup",null,N2(e).map((function(e){var t=e.width;return vg("col",{width:void 0===t?"auto":t})}))),vg("tbody",null,t)))}},R4={type:"table-row",renderElem:function(e,t,n){return vg("tr",null,t)}},M4={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=mO.getParentNode(e,t);if(null==n)return!1;var r=mO.getParentNode(e,n);return null!=r&&N2(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader;return r?vg(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Lh((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;B4||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",P4=n,_4=mO.findPath(n,e)):B4||(r.style.cursor="auto",P4=null,_4=null))}}),100)}},t):vg("td",{colSpan:a,rowSpan:s},t)}},z4={selector:"table",preParseHtml:function(e){var t=Ap(e);if("table"!==k4(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},$4=_2.filter;y1({target:"Array",proto:!0,forced:!y2("filter")},{filter:function(e){return $4(this,e,arguments.length>1?arguments[1]:void 0)}});var H4=Math.floor,V4=dQ("".charAt),U4=dQ("".replace),W4=dQ("".slice),G4=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,q4=/\$([$&'`]|\d{1,2})/g,K4=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=q4;return void 0!==o&&(o=qQ(o),s=G4),U4(i,s,(function(i,s){var l;switch(V4(s,0)){case"$":return"$";case"&":return e;case"`":return W4(t,0,n);case"'":return W4(t,a);case"<":l=o[W4(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=H4(c/10);return 0===f?i:f<=u?void 0===r[f-1]?V4(s,1):r[f-1]+V4(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Y4=o0("replace"),X4=Math.max,Z4=Math.min,J4=dQ([].concat),Q4=dQ([].push),e6=dQ("".indexOf),t6=dQ("".slice),n6="$0"==="a".replace(/./,"$0"),r6=!!/./[Y4]&&""===/./[Y4]("a","$0");e4("replace",(function(e,t,n){var r=r6?"$":"$0";return[function(e,n){var r=wQ(this),o=null==e?void 0:zQ(e,Y4);return o?rQ(o,e,r,n):rQ(t,S1(r),e,n)},function(e,o){var i=v0(this),a=S1(e);if("string"==typeof o&&-1===e6(o,r)&&-1===e6(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=DQ(o);s||(o=S1(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=p4(i,a);if(null===d)break;if(Q4(f,d),!l)break;""===S1(d[0])&&(i.lastIndex=s4(a,Z0(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=S1((d=f[v])[0]),m=X4(Z4(G0(d.index),a.length),0),b=[],w=1;w<d.length;w++)Q4(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=J4([y],b,m,a);void 0!==E&&Q4(D,E);var x=S1(Z2(o,void 0,D))}else x=K4(y,a,m,b,E,o);m>=g&&(h+=t6(a,g,m)+x,g=m+y.length)}return h+t6(a,g)}]}),!!eQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!n6||r6);var o6={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===k4(r),colSpan:o,rowSpan:i,width:a,children:t}}},i6={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===mO.getNodeType(e)}))}}},a6={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e),o="auto";return"100%"===function(e){for(var t="",n=(e.attr("style")||"").split(";"),r=n.length,o=0;o<r;o++){var i=n[o];if(i){var a=i.split(":");"width"===a[0].trim()&&(t=a[1].trim())}}return t}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===mO.getNodeType(e)}))}}},u6=function(){function e(){this.title=X_("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!mO.getSelectedElems(e).some((function(t){var n=mO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Ap('<div class="w-e-panel-content-table"></div>'),r=Ap("<span>0 &times; 0</span>"),o=Ap("<table></table>"),i=0;i<10;i++){for(var a=Ap("<tr></tr>"),u=0;u<10;u++){var s=Ap("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Ap(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){Ap(e).children().each((function(e){var t=Ap(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Ap(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){mO.isSelectedEmptyParagraph(e)&&dd.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);dd.insertNodes(e,i,{mode:"highest"})}},e}(),s6=function(){function e(){this.title=X_("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==mO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||dd.removeNodes(e,{mode:"highest"})},e}(),l6=function(){function e(){this.title=X_("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==mO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x2(Cf.nodes(e,{match:function(e){return mO.checkNodeType(e,"table-cell")},universal:!0}),1),r=x2(n[0],2),o=r[0],i=r[1],a=mO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Pf.parent(i),f=Pf.next(c);dd.insertNodes(e,s,{at:f})}}},e}(),c6=function(){function e(){this.title=X_("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==mO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x2(Cf.nodes(e,{match:function(e){return mO.checkNodeType(e,"table-row")},universal:!0}),1),r=x2(n[0],2),o=r[0],i=r[1],a=mO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?dd.removeNodes(e,{mode:"highest"}):dd.removeNodes(e,{at:i})}},e}(),f6={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},d6=c0("span").classList,p6=d6&&d6.constructor&&d6.constructor.prototype,h6=p6===Object.prototype?void 0:p6,g6=_2.forEach,v6=function(){var e=[].forEach;return!!e&&eQ((function(){e.call(null,(function(){throw 1}),1)}))}(),y6=v6?[].forEach:function(e){return g6(this,e,arguments.length>1?arguments[1]:void 0)},m6=function(e){if(e&&e.forEach!==y6)try{w0(e,"forEach",y6)}catch(t){e.forEach=y6}};for(var b6 in f6)f6[b6]&&m6(QJ[b6]&&QJ[b6].prototype);m6(h6);var w6=function(){function e(){this.title=X_("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==mO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x2(Cf.nodes(e,{match:function(e){return mO.checkNodeType(e,"table-cell")},universal:!0}),1),r=x2(n[0],2),o=r[0],i=r[1],a=mO.getParentNode(e,o);if(null!=a){var u=mO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){mf.isElement(t)&&(t.children||[]).forEach((function(t){var r=mO.findPath(e,t);if(r.length===i.length&&qJ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&I2(u)&&(o.isHeader=!0),dd.insertNodes(e,o,{at:r})}}))}))}}},e}(),E6=function(){function e(){this.title=X_("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==mO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=x2(Cf.nodes(e,{match:function(e){return mO.checkNodeType(e,"table-cell")},universal:!0}),1),r=x2(n[0],2),o=r[0],i=r[1],a=mO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)dd.removeNodes(e,{mode:"highest"});else{var s=mO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){mf.isElement(t)&&(t.children||[]).forEach((function(t){var n=mO.findPath(e,t);n.length===i.length&&qJ(n.slice(-1),i.slice(-1))&&dd.removeNodes(e,{at:n})}))}))}}},e}(),D6=function(){function e(){this.title=X_("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=mO.getSelectedNodeByType(e,"table");return null!=t&&I2(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==mO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=mO.getSelectedNodeByType(e,"table");null!=r&&N2(r).forEach((function(t){return dd.setNodes(e,{isHeader:n},{at:mO.findPath(e,t)})}))}},e}(),x6=function(){function e(){this.title=X_("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=mO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==mO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};dd.setNodes(e,n,{mode:"highest"})}},e}(),C6={renderElems:[L4,R4,M4],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[z4],parseElemsHtml:[o6,i6,a6],menus:[{key:"insertTable",factory:function(){return new u6}},{key:"deleteTable",factory:function(){return new s6}},{key:"insertTableRow",factory:function(){return new l6}},{key:"deleteTableRow",factory:function(){return new c6}},{key:"insertTableCol",factory:function(){return new w6}},{key:"deleteTableCol",factory:function(){return new E6}},{key:"tableHeader",factory:function(){return new D6}},{key:"tableFullWidth",factory:function(){return new x6}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==mO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!C2(s)){var t=s.selection;if(t){var r=Cf.before(s,t);if(r){var o=S2(s,r),i=S2(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(mO.getSelectedNodeByType(s,"table")){var n=Cf.above(e);mO.checkNodeType(n[0],"table-cell")&&dd.select(e,n[1]);var r=Cf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Cf.above(e,{at:r[1]}))&&void 0!==t?t:r),dd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(mO.checkNodeType(o[i-1],"table")){var u=mO.genEmptyParagraph();dd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){C2(s)||r(e)},s.normalizeNode=function(e){var t=x2(e,2),n=t[0],r=t[1];if("table"!==mO.getNodeType(n))return o([n,r]);if(mO.isLastNode(s,n)){var i=mO.genEmptyParagraph();dd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=mO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Cf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=mO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Pf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Bf.string(t).length){var o=mO.findPath(s,t),i={anchor:Cf.start(s,o),focus:Cf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};Y_("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Y_("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var S6=function(){return S6=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},S6.apply(this,arguments)};function A6(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function O6(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function k6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var B6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function F6(e){var t={exports:{}};return e(t,t.exports),t.exports}var T6,_6,P6=function(e){return e&&e.Math==Math&&e},j6=P6("object"==typeof globalThis&&globalThis)||P6("object"==typeof window&&window)||P6("object"==typeof self&&self)||P6("object"==typeof B6&&B6)||function(){return this}()||Function("return this")(),N6=function(e){try{return!!e()}catch(t){return!0}},I6=!N6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),L6=Function.prototype.call,R6=L6.bind?L6.bind(L6):function(){return L6.apply(L6,arguments)},M6={}.propertyIsEnumerable,z6=Object.getOwnPropertyDescriptor,$6={f:z6&&!M6.call({1:2},1)?function(e){var t=z6(this,e);return!!t&&t.enumerable}:M6},H6=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},V6=Function.prototype,U6=V6.bind,W6=V6.call,G6=U6&&U6.bind(W6),q6=U6?function(e){return e&&G6(W6,e)}:function(e){return e&&function(){return W6.apply(e,arguments)}},K6=q6({}.toString),Y6=q6("".slice),X6=function(e){return Y6(K6(e),8,-1)},Z6=j6.Object,J6=q6("".split),Q6=N6((function(){return!Z6("z").propertyIsEnumerable(0)}))?function(e){return"String"==X6(e)?J6(e,""):Z6(e)}:Z6,e3=j6.TypeError,t3=function(e){if(null==e)throw e3("Can't call method on "+e);return e},n3=function(e){return Q6(t3(e))},r3=function(e){return"function"==typeof e},o3=function(e){return"object"==typeof e?null!==e:r3(e)},i3=function(e,t){return arguments.length<2?function(e){return r3(e)?e:void 0}(j6[e]):j6[e]&&j6[e][t]},a3=q6({}.isPrototypeOf),u3=i3("navigator","userAgent")||"",s3=j6.process,l3=j6.Deno,c3=s3&&s3.versions||l3&&l3.version,f3=c3&&c3.v8;f3&&(_6=(T6=f3.split("."))[0]>0&&T6[0]<4?1:+(T6[0]+T6[1])),!_6&&u3&&(!(T6=u3.match(/Edge\/(\d+)/))||T6[1]>=74)&&(T6=u3.match(/Chrome\/(\d+)/))&&(_6=+T6[1]);var d3=_6,p3=!!Object.getOwnPropertySymbols&&!N6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&d3&&d3<41})),h3=p3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,g3=j6.Object,v3=h3?function(e){return"symbol"==typeof e}:function(e){var t=i3("Symbol");return r3(t)&&a3(t.prototype,g3(e))},y3=j6.String,m3=function(e){try{return y3(e)}catch(t){return"Object"}},b3=j6.TypeError,w3=function(e){if(r3(e))return e;throw b3(m3(e)+" is not a function")},E3=function(e,t){var n=e[t];return null==n?void 0:w3(n)},D3=j6.TypeError,x3=Object.defineProperty,C3=function(e,t){try{x3(j6,e,{value:t,configurable:!0,writable:!0})}catch(J_){j6[e]=t}return t},S3=j6["__core-js_shared__"]||C3("__core-js_shared__",{}),A3=F6((function(e){(e.exports=function(e,t){return S3[e]||(S3[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),O3=j6.Object,k3=function(e){return O3(t3(e))},B3=q6({}.hasOwnProperty),F3=Object.hasOwn||function(e,t){return B3(k3(e),t)},T3=0,_3=Math.random(),P3=q6(1..toString),j3=function(e){return"Symbol("+(void 0===e?"":e)+")_"+P3(++T3+_3,36)},N3=A3("wks"),I3=j6.Symbol,L3=I3&&I3.for,R3=h3?I3:I3&&I3.withoutSetter||j3,M3=function(e){if(!F3(N3,e)||!p3&&"string"!=typeof N3[e]){var t="Symbol."+e;p3&&F3(I3,e)?N3[e]=I3[e]:N3[e]=h3&&L3?L3(t):R3(t)}return N3[e]},z3=j6.TypeError,$3=M3("toPrimitive"),H3=function(e){var t=function(e){if(!o3(e)||v3(e))return e;var t,n=E3(e,$3);if(n){if(t=R6(n,e,"string"),!o3(t)||v3(t))return t;throw z3("Can't convert object to primitive value")}return function(e){var t,n;if(r3(t=e.toString)&&!o3(n=R6(t,e)))return n;if(r3(t=e.valueOf)&&!o3(n=R6(t,e)))return n;throw D3("Can't convert object to primitive value")}(e)}(e);return v3(t)?t:t+""},V3=j6.document,U3=o3(V3)&&o3(V3.createElement),W3=function(e){return U3?V3.createElement(e):{}},G3=!I6&&!N6((function(){return 7!=Object.defineProperty(W3("div"),"a",{get:function(){return 7}}).a})),q3=Object.getOwnPropertyDescriptor,K3={f:I6?q3:function(e,t){if(e=n3(e),t=H3(t),G3)try{return q3(e,t)}catch(n){}if(F3(e,t))return H6(!R6($6.f,e,t),e[t])}},Y3=j6.String,X3=j6.TypeError,Z3=function(e){if(o3(e))return e;throw X3(Y3(e)+" is not an object")},J3=j6.TypeError,Q3=Object.defineProperty,e5={f:I6?Q3:function(e,t,n){if(Z3(e),t=H3(t),Z3(n),G3)try{return Q3(e,t,n)}catch(r){}if("get"in n||"set"in n)throw J3("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},t5=I6?function(e,t,n){return e5.f(e,t,H6(1,n))}:function(e,t,n){return e[t]=n,e},n5=q6(Function.toString);r3(S3.inspectSource)||(S3.inspectSource=function(e){return n5(e)});var r5,o5,i5,a5=S3.inspectSource,u5=j6.WeakMap,s5=r3(u5)&&/native code/.test(a5(u5)),l5=A3("keys"),c5=function(e){return l5[e]||(l5[e]=j3(e))},f5={},d5=j6.TypeError,p5=j6.WeakMap;if(s5||S3.state){var h5=S3.state||(S3.state=new p5),g5=q6(h5.get),v5=q6(h5.has),y5=q6(h5.set);r5=function(e,t){if(v5(h5,e))throw new d5("Object already initialized");return t.facade=e,y5(h5,e,t),t},o5=function(e){return g5(h5,e)||{}},i5=function(e){return v5(h5,e)}}else{var m5=c5("state");f5[m5]=!0,r5=function(e,t){if(F3(e,m5))throw new d5("Object already initialized");return t.facade=e,t5(e,m5,t),t},o5=function(e){return F3(e,m5)?e[m5]:{}},i5=function(e){return F3(e,m5)}}var b5={set:r5,get:o5,has:i5,enforce:function(e){return i5(e)?o5(e):r5(e,{})},getterFor:function(e){return function(t){var n;if(!o3(t)||(n=o5(t)).type!==e)throw d5("Incompatible receiver, "+e+" required");return n}}},w5=Function.prototype,E5=I6&&Object.getOwnPropertyDescriptor,D5=F3(w5,"name"),x5={EXISTS:D5,PROPER:D5&&"something"===function(){}.name,CONFIGURABLE:D5&&(!I6||I6&&E5(w5,"name").configurable)},C5=F6((function(e){var t=x5.CONFIGURABLE,n=b5.get,r=b5.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;r3(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!F3(i,"name")||t&&i.name!==f)&&t5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==j6?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:t5(e,n,i)):l?e[n]=i:C3(n,i)})(Function.prototype,"toString",(function(){return r3(this)&&n(this).source||a5(this)}))})),S5=Math.ceil,A5=Math.floor,O5=function(e){var t=+e;return t!=t||0===t?0:(t>0?A5:S5)(t)},k5=Math.max,B5=Math.min,F5=function(e,t){var n=O5(e);return n<0?k5(n+t,0):B5(n,t)},T5=Math.min,_5=function(e){return e>0?T5(O5(e),9007199254740991):0},P5=function(e){return _5(e.length)},j5=function(e){return function(t,n,r){var o,i=n3(t),a=P5(i),u=F5(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},N5={includes:j5(!0),indexOf:j5(!1)},I5=N5.indexOf,L5=q6([].push),R5=function(e,t){var n,r=n3(e),o=0,i=[];for(n in r)!F3(f5,n)&&F3(r,n)&&L5(i,n);for(;t.length>o;)F3(r,n=t[o++])&&(~I5(i,n)||L5(i,n));return i},M5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],z5=M5.concat("length","prototype"),$5={f:Object.getOwnPropertyNames||function(e){return R5(e,z5)}},H5={f:Object.getOwnPropertySymbols},V5=q6([].concat),U5=i3("Reflect","ownKeys")||function(e){var t=$5.f(Z3(e)),n=H5.f;return n?V5(t,n(e)):t},W5=function(e,t){for(var n=U5(t),r=e5.f,o=K3.f,i=0;i<n.length;i++){var a=n[i];F3(e,a)||r(e,a,o(t,a))}},G5=/#|\.prototype\./,q5=function(e,t){var n=Y5[K5(e)];return n==Z5||n!=X5&&(r3(t)?N6(t):!!t)},K5=q5.normalize=function(e){return String(e).replace(G5,".").toLowerCase()},Y5=q5.data={},X5=q5.NATIVE="N",Z5=q5.POLYFILL="P",J5=q5,Q5=K3.f,e8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?j6:l?j6[u]||C3(u,{}):(j6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Q5(n,r))&&a.value:n[r],!J5(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;W5(i,o)}(e.sham||o&&o.sham)&&t5(i,"sham",!0),C5(n,r,i,e)}},t8={};t8[M3("toStringTag")]="z";var n8="[object z]"===String(t8),r8=M3("toStringTag"),o8=j6.Object,i8="Arguments"==X6(function(){return arguments}()),a8=n8?X6:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=o8(e),r8))?n:i8?X6(t):"Object"==(r=X6(t))&&r3(t.callee)?"Arguments":r},u8=j6.String,s8=function(e){if("Symbol"===a8(e))throw TypeError("Cannot convert a Symbol value to a string");return u8(e)},l8="\t\n\v\f\r    \u2028\u2029\ufeff",c8=q6("".replace),f8="["+l8+"]",d8=RegExp("^"+f8+f8+"*"),p8=RegExp(f8+f8+"*$"),h8={trim:function(e){return function(t){var n=s8(t3(t));return 1&e&&(n=c8(n,d8,"")),2&e&&(n=c8(n,p8,"")),n}}(3)},g8=x5.PROPER,v8=h8.trim;function y8(e){return e.length?e[0].tagName.toLowerCase():""}function m8(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Ap(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}e8({target:"String",proto:!0,forced:N6((function(){return!!l8.trim()||"…"!=="…".trim()||g8&&"trim"!==l8.trim.name}))},{trim:function(){return v8(this)}}),e8({global:!0},{globalThis:j6}),qp&&(Ap.fn.append=qp),jp&&(Ap.fn.on=jp),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Pp&&(Ap.fn.val=Pp),Up&&(Ap.fn.html=Up),Yp&&(Ap.fn.parent=Yp),Bp&&(Ap.fn.hasClass=Bp),eh&&(Ap.fn.empty=eh);var b8,w8={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=mO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=vg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:m8(a,c,d)});else{var h=vg("video",{poster:s,controls:!0},vg("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==c&&(h.data.width=c),"auto"!==d&&(h.data.height=d),r=vg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Xh("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},E8={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f='<div data-w-e-type="video" data-w-e-is-void>\n';return 0===o.trim().indexOf("<iframe ")?f+=m8(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},D8=Object.keys||function(e){return R5(e,M5)},x8=I6?Object.defineProperties:function(e,t){Z3(e);for(var n,r=n3(t),o=D8(t),i=o.length,a=0;i>a;)e5.f(e,n=o[a++],r[n]);return e},C8=i3("document","documentElement"),S8=c5("IE_PROTO"),A8=function(){},O8=function(e){return"<script>"+e+"<\/script>"},k8=function(e){e.write(O8("")),e.close();var t=e.parentWindow.Object;return e=null,t},B8=function(){try{b8=new ActiveXObject("htmlfile")}catch(r){}var e,t;B8="undefined"!=typeof document?document.domain&&b8?k8(b8):((t=W3("iframe")).style.display="none",C8.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(O8("document.F=Object")),e.close(),e.F):k8(b8);for(var n=M5.length;n--;)delete B8.prototype[M5[n]];return B8()};f5[S8]=!0;var F8=Object.create||function(e,t){var n;return null!==e?(A8.prototype=Z3(e),n=new A8,A8.prototype=null,n[S8]=e):n=B8(),void 0===t?n:x8(n,t)},T8=M3("unscopables"),_8=Array.prototype;null==_8[T8]&&e5.f(_8,T8,{configurable:!0,value:F8(null)});var P8=function(e){_8[T8][e]=!0},j8=N5.includes;e8({target:"Array",proto:!0},{includes:function(e){return j8(this,e,arguments.length>1?arguments[1]:void 0)}}),P8("includes");var N8={selector:"iframe,video,p",preParseHtml:function(e){var t=Ap(e),n=t;if("p"===y8(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Ap(o))}}var a=y8(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Ap('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},I8=q6(q6.bind),L8=function(e,t){return w3(e),void 0===t?e:I8?I8(e,t):function(){return e.apply(t,arguments)}},R8=Array.isArray||function(e){return"Array"==X6(e)},M8=function(){},z8=[],$8=i3("Reflect","construct"),H8=/^\s*(?:class|function)\b/,V8=q6(H8.exec),U8=!H8.exec(M8),W8=function(e){if(!r3(e))return!1;try{return $8(M8,z8,e),!0}catch(t){return!1}},G8=!$8||N6((function(){var e;return W8(W8.call)||!W8(Object)||!W8((function(){e=!0}))||e}))?function(e){if(!r3(e))return!1;switch(a8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return U8||!!V8(H8,a5(e))}:W8,q8=M3("species"),K8=j6.Array,Y8=function(e,t){return new(R8(n=e)&&(r=n.constructor,(G8(r)&&(r===K8||R8(r.prototype))||o3(r)&&null===(r=r[q8]))&&(r=void 0)),void 0===r?K8:r)(0===t?0:t);var n,r},X8=q6([].push),Z8=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=k3(s),g=Q6(h),v=L8(l,c),y=P5(g),m=0,b=f||Y8,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:X8(w,d)}else switch(e){case 4:return!1;case 7:X8(w,d)}return i?-1:r||o?o:w}},J8={find:Z8(5),findIndex:Z8(6)},Q8=J8.find,e7=!0;"find"in[]&&Array(1).find((function(){e7=!1})),e8({target:"Array",proto:!0,forced:e7},{find:function(e){return Q8(this,e,arguments.length>1?arguments[1]:void 0)}}),P8("find");var t7=n8?{}.toString:function(){return"[object "+a8(this)+"]"};function n7(e,t,n,r){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}n8||C5(Object.prototype,"toString",t7,{unsafe:!0});var r7,o7,i7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Ap(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",n7(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",n7(o,i=l.attr("poster")||"",a,u)}},a7=function(){var e=Z3(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},u7=j6.RegExp,s7=N6((function(){var e=u7("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));s7||N6((function(){return!u7("a","y").sticky}));var l7={BROKEN_CARET:s7||N6((function(){var e=u7("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},c7=j6.RegExp,f7=N6((function(){var e=c7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),d7=j6.RegExp,p7=N6((function(){var e=d7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),h7=b5.get,g7=A3("native-string-replace",String.prototype.replace),v7=RegExp.prototype.exec,y7=v7,m7=q6("".charAt),b7=q6("".indexOf),w7=q6("".replace),E7=q6("".slice),D7=(o7=/b*/g,R6(v7,r7=/a/,"a"),R6(v7,o7,"a"),0!==r7.lastIndex||0!==o7.lastIndex),x7=l7.BROKEN_CARET,C7=void 0!==/()??/.exec("")[1];(D7||C7||x7||f7||p7)&&(y7=function(e){var t,n,r,o,i,a,u,s=this,l=h7(s),c=s8(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=R6(y7,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=x7&&s.sticky,h=R6(a7,s),g=s.source,v=0,y=c;if(p&&(h=w7(h,"y",""),-1===b7(h,"g")&&(h+="g"),y=E7(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==m7(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),C7&&(n=new RegExp("^"+g+"$(?!\\s)",h)),D7&&(r=s.lastIndex),o=R6(v7,p?n:s,y),p?o?(o.input=E7(o.input,v),o[0]=E7(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:D7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),C7&&o&&o.length>1&&R6(g7,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=F8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var S7=y7;e8({target:"RegExp",proto:!0,forced:/./.exec!==S7},{exec:S7});var A7=Function.prototype,O7=A7.apply,k7=A7.bind,B7=A7.call,F7="object"==typeof Reflect&&Reflect.apply||(k7?B7.bind(O7):function(){return B7.apply(O7,arguments)}),T7=(M3("species"),RegExp.prototype),_7=q6("".charAt),P7=q6("".charCodeAt),j7=q6("".slice),N7={charAt:function(e){return function(t,n){var r,o,i=s8(t3(t)),a=O5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=P7(i,a))<55296||r>56319||a+1===u||(o=P7(i,a+1))<56320||o>57343?e?_7(i,a):r:e?j7(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},I7=N7.charAt,L7=function(e,t,n){return t+(n?I7(e,t).length:1)},R7=Math.floor,M7=q6("".charAt),z7=q6("".replace),$7=q6("".slice),H7=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,V7=/\$([$&'`]|\d{1,2})/g,U7=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=V7;return void 0!==o&&(o=k3(o),s=H7),z7(i,s,(function(i,s){var l;switch(M7(s,0)){case"$":return"$";case"&":return e;case"`":return $7(t,0,n);case"'":return $7(t,a);case"<":l=o[$7(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=R7(c/10);return 0===f?i:f<=u?void 0===r[f-1]?M7(s,1):r[f-1]+M7(s,1):i}l=r[c-1]}return void 0===l?"":l}))},W7=j6.TypeError,G7=function(e,t){var n=e.exec;if(r3(n)){var r=R6(n,e,t);return null!==r&&Z3(r),r}if("RegExp"===X6(e))return R6(S7,e,t);throw W7("RegExp#exec called on incompatible receiver")},q7=M3("replace"),K7=Math.max,Y7=Math.min,X7=q6([].concat),Z7=q6([].push),J7=q6("".indexOf),Q7=q6("".slice),e9="$0"==="a".replace(/./,"$0"),t9=!!/./[q7]&&""===/./[q7]("a","$0");function n9(e){return e+"-"+Eh()}!function(e,t,n){var r=M3(e),o=!N6((function(){var t={};return t[r]=function(){return 7},7!=""[e](t)})),i=o&&!N6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[r](""),!e}));if(!o||!i||n){var a=q6(/./[r]),u=function(e,t){var n=t9?"$":"$0";return[function(e,n){var r=t3(this),o=null==e?void 0:E3(e,q7);return o?R6(o,e,r,n):R6(t,s8(r),e,n)},function(e,r){var i=Z3(this),u=s8(e);if("string"==typeof r&&-1===J7(r,n)&&-1===J7(r,"$<")){var s=function(e,t,n,r,i){var u=q6(e),s=t.exec;return s===S7||s===T7.exec?o&&!i?{done:!0,value:a(t,n,r)}:{done:!0,value:u(n,t,r)}:{done:!1}}(t,i,u,r);if(s.done)return s.value}var l=r3(r);l||(r=s8(r));var c=i.global;if(c){var f=i.unicode;i.lastIndex=0}for(var d=[];;){var p=G7(i,u);if(null===p)break;if(Z7(d,p),!c)break;""===s8(p[0])&&(i.lastIndex=L7(u,_5(i.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=s8((p=d[y])[0]),b=K7(Y7(O5(p.index),u.length),0),w=[],E=1;E<p.length;E++)Z7(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(l){var x=X7([m],w,b,u);void 0!==D&&Z7(x,D);var C=s8(F7(r,void 0,x))}else C=U7(m,u,b,w,D,r);b>=v&&(g+=Q7(u,v,b)+C,v=b+m.length)}return g+Q7(u,v)}]}(0,""[e]);C5(String.prototype,e,u[0]),C5(T7,r,u[1])}}("replace",0,!!N6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!e9||t9);var r9=j6.Promise,o9=function(e,t,n){for(var r in t)C5(e,r,t[r],n);return e},i9=j6.String,a9=j6.TypeError,u9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=q6(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Z3(n),function(e){if("object"==typeof e||r3(e))return e;throw a9("Can't set "+i9(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),s9=e5.f,l9=M3("toStringTag"),c9=function(e,t,n){e&&!F3(e=n?e:e.prototype,l9)&&s9(e,l9,{configurable:!0,value:t})},f9=M3("species"),d9=j6.TypeError,p9=function(e,t){if(a3(t,e))return e;throw d9("Incorrect invocation")},h9={},g9=M3("iterator"),v9=Array.prototype,y9=M3("iterator"),m9=function(e){if(null!=e)return E3(e,y9)||E3(e,"@@iterator")||h9[a8(e)]},b9=j6.TypeError,w9=function(e,t,n){var r,o;Z3(e);try{if(!(r=E3(e,"return"))){if("throw"===t)throw n;return n}r=R6(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Z3(r),n},E9=j6.TypeError,D9=function(e,t){this.stopped=e,this.result=t},x9=D9.prototype,C9=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=L8(t,f),v=function(e){return r&&w9(r,"normal",e),new D9(!0,e)},y=function(e){return d?(Z3(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=m9(e)))throw E9(m3(e)+" is not iterable");if(void 0!==(c=o)&&(h9.Array===c||v9[g9]===c)){for(i=0,a=P5(e);a>i;i++)if((u=y(e[i]))&&a3(x9,u))return u;return new D9(!1)}r=function(e,t){var n=arguments.length<2?m9(e):t;if(w3(n))return Z3(R6(n,e));throw b9(m3(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=R6(s,r)).done;){try{u=y(l.value)}catch(m){w9(r,"throw",m)}if("object"==typeof u&&u&&a3(x9,u))return u}return new D9(!1)},S9=M3("iterator"),A9=!1;try{var O9=0,k9={next:function(){return{done:!!O9++}},return:function(){A9=!0}};k9[S9]=function(){return this},Array.from(k9,(function(){throw 2}))}catch(Lge){}var B9,F9,T9,_9,P9=function(e,t){if(!A9)return!1;var n=!1;try{var r={};r[S9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},j9=j6.TypeError,N9=M3("species"),I9=q6([].slice),L9=/(?:ipad|iphone|ipod).*applewebkit/i.test(u3),R9="process"==X6(j6.process),M9=j6.setImmediate,z9=j6.clearImmediate,$9=j6.process,H9=j6.Dispatch,V9=j6.Function,U9=j6.MessageChannel,W9=j6.String,G9=0,q9={};try{B9=j6.location}catch(Lge){}var K9=function(e){if(F3(q9,e)){var t=q9[e];delete q9[e],t()}},Y9=function(e){return function(){K9(e)}},X9=function(e){K9(e.data)},Z9=function(e){j6.postMessage(W9(e),B9.protocol+"//"+B9.host)};M9&&z9||(M9=function(e){var t=I9(arguments,1);return q9[++G9]=function(){F7(r3(e)?e:V9(e),void 0,t)},F9(G9),G9},z9=function(e){delete q9[e]},R9?F9=function(e){$9.nextTick(Y9(e))}:H9&&H9.now?F9=function(e){H9.now(Y9(e))}:U9&&!L9?(_9=(T9=new U9).port2,T9.port1.onmessage=X9,F9=L8(_9.postMessage,_9)):j6.addEventListener&&r3(j6.postMessage)&&!j6.importScripts&&B9&&"file:"!==B9.protocol&&!N6(Z9)?(F9=Z9,j6.addEventListener("message",X9,!1)):F9="onreadystatechange"in W3("script")?function(e){C8.appendChild(W3("script")).onreadystatechange=function(){C8.removeChild(this),K9(e)}}:function(e){setTimeout(Y9(e),0)});var J9,Q9,eee,tee,nee,ree,oee,iee,aee={set:M9},uee=/ipad|iphone|ipod/i.test(u3)&&void 0!==j6.Pebble,see=/web0s(?!.*chrome)/i.test(u3),lee=K3.f,cee=aee.set,fee=j6.MutationObserver||j6.WebKitMutationObserver,dee=j6.document,pee=j6.process,hee=j6.Promise,gee=lee(j6,"queueMicrotask"),vee=gee&&gee.value;vee||(J9=function(){var e,t;for(R9&&(e=pee.domain)&&e.exit();Q9;){t=Q9.fn,Q9=Q9.next;try{t()}catch(n){throw Q9?tee():eee=void 0,n}}eee=void 0,e&&e.enter()},L9||R9||see||!fee||!dee?!uee&&hee&&hee.resolve?((oee=hee.resolve(void 0)).constructor=hee,iee=L8(oee.then,oee),tee=function(){iee(J9)}):R9?tee=function(){pee.nextTick(J9)}:(cee=L8(cee,j6),tee=function(){cee(J9)}):(nee=!0,ree=dee.createTextNode(""),new fee(J9).observe(ree,{characterData:!0}),tee=function(){ree.data=nee=!nee}));var yee,mee,bee,wee,Eee=vee||function(e){var t={fn:e,next:void 0};eee&&(eee.next=t),Q9||(Q9=t,tee()),eee=t},Dee=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=w3(t),this.reject=w3(n)},xee={f:function(e){return new Dee(e)}},Cee=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},See="object"==typeof window,Aee=aee.set,Oee=M3("species"),kee="Promise",Bee=b5.getterFor(kee),Fee=b5.set,Tee=b5.getterFor(kee),_ee=r9&&r9.prototype,Pee=r9,jee=_ee,Nee=j6.TypeError,Iee=j6.document,Lee=j6.process,Ree=xee.f,Mee=Ree,zee=!!(Iee&&Iee.createEvent&&j6.dispatchEvent),$ee=r3(j6.PromiseRejectionEvent),Hee=!1,Vee=J5(kee,(function(){var e=a5(Pee),t=e!==String(Pee);if(!t&&66===d3)return!0;if(d3>=51&&/native code/.test(e))return!1;var n=new Pee((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Oee]=r,!(Hee=n.then((function(){}))instanceof r)||!t&&See&&!$ee})),Uee=Vee||!P9((function(e){Pee.all(e).catch((function(){}))})),Wee=function(e){var t;return!(!o3(e)||!r3(t=e.then))&&t},Gee=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Eee((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Xee(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Nee("Promise-chain cycle")):(u=Wee(a))?R6(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Kee(e)}))}},qee=function(e,t,n){var r,o;zee?((r=Iee.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),j6.dispatchEvent(r)):r={promise:t,reason:n},!$ee&&(o=j6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=j6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Kee=function(e){R6(Aee,j6,(function(){var t,n=e.facade,r=e.value;if(Yee(e)&&(t=Cee((function(){R9?Lee.emit("unhandledRejection",r,n):qee("unhandledrejection",n,r)})),e.rejection=R9||Yee(e)?2:1,t.error))throw t.value}))},Yee=function(e){return 1!==e.rejection&&!e.parent},Xee=function(e){R6(Aee,j6,(function(){var t=e.facade;R9?Lee.emit("rejectionHandled",t):qee("rejectionhandled",t,e.value)}))},Zee=function(e,t,n){return function(r){e(t,r,n)}},Jee=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Gee(e,!0))},Qee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Nee("Promise can't be resolved itself");var r=Wee(t);r?Eee((function(){var n={done:!1};try{R6(r,t,Zee(Qee,n,e),Zee(Jee,n,e))}catch(o){Jee(n,o,e)}})):(e.value=t,e.state=1,Gee(e,!1))}catch(o){Jee({done:!1},o,e)}}};if(Vee&&(jee=(Pee=function(e){p9(this,jee),w3(e),R6(yee,this);var t=Bee(this);try{e(Zee(Qee,t),Zee(Jee,t))}catch(n){Jee(t,n)}}).prototype,(yee=function(e){Fee(this,{type:kee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=o9(jee,{then:function(e,t){var n,r,o,i=Tee(this),a=i.reactions,u=Ree((n=Pee,void 0===(o=Z3(this).constructor)||null==(r=Z3(o)[N9])?n:function(e){if(G8(e))return e;throw j9(m3(e)+" is not a constructor")}(r)));return u.ok=!r3(e)||e,u.fail=r3(t)&&t,u.domain=R9?Lee.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&Gee(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),mee=function(){var e=new yee,t=Bee(e);this.promise=e,this.resolve=Zee(Qee,t),this.reject=Zee(Jee,t)},xee.f=Ree=function(e){return e===Pee||e===bee?new mee(e):Mee(e)},r3(r9)&&_ee!==Object.prototype)){wee=_ee.then,Hee||(C5(_ee,"then",(function(e,t){var n=this;return new Pee((function(e,t){R6(wee,n,e,t)})).then(e,t)}),{unsafe:!0}),C5(_ee,"catch",jee.catch,{unsafe:!0}));try{delete _ee.constructor}catch(Lge){}u9&&u9(_ee,jee)}function ete(e,t,n){return void 0===n&&(n=""),A6(this,0,void 0,(function(){var r,o,i,a,u,s,l;return O6(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return"string"==typeof(u=c.sent())?(e.alert(u,"error"),[2]):null==u?[2]:[4,a(t)];case 2:return 0!==(s=c.sent()).trim().indexOf("<iframe ")&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){dd.insertNodes(e,l)})),o(l),[2]}}))}))}function tte(){return n9("w-e-insert-video")}e8({global:!0,wrap:!0,forced:Vee},{Promise:Pee}),c9(Pee,kee,!1),function(){var e=i3("Promise"),t=e5.f;I6&&e&&!e[f9]&&t(e,f9,{configurable:!0,get:function(){return this}})}(),bee=i3(kee),e8({target:kee,stat:!0,forced:Vee},{reject:function(e){var t=Ree(this);return R6(t.reject,void 0,e),t.promise}}),e8({target:kee,stat:!0,forced:Vee},{resolve:function(e){return function(e,t){if(Z3(e),o3(t)&&t.constructor===e)return t;var n=xee.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),e8({target:kee,stat:!0,forced:Uee},{all:function(e){var t=this,n=Ree(t),r=n.resolve,o=n.reject,i=Cee((function(){var n=w3(t.resolve),i=[],a=0,u=1;C9(e,(function(e){var s=a++,l=!1;u++,R6(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Ree(t),r=n.reject,o=Cee((function(){var o=w3(t.resolve);C9(e,(function(e){R6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var nte=function(){function e(){this.title=X_("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=tte(),this.posterInputId=tte(),this.buttonId=tte()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!mO.getSelectedElems(e).some((function(t){var n=mO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=k6(LT(X_("videoModule.videoSrc"),r,X_("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=k6(LT(X_("videoModule.videoPoster"),o,X_("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Ap(s),p=Ap(f),h=k6(RT(i,X_("videoModule.ok")),1)[0];if(null==this.$content){var g=Ap("<div></div>");g.on("click","#"+i,(function(n){return A6(t,0,void 0,(function(){var t,i;return O6(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,ete(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var v=this.$content;return v.empty(),v.append(u),v.append(c),v.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),v[0]},e}(),rte=q6([].join),ote=Q6!=Object,ite=function(){var e=[].join;return!!e&&N6((function(){e.call(null,",",1)}))}();e8({target:"Array",proto:!0,forced:ote||!ite},{join:function(e){return rte(n3(this),void 0===e?",":e)}});var ate,ute,ste,lte=!N6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cte=c5("IE_PROTO"),fte=j6.Object,dte=fte.prototype,pte=lte?fte.getPrototypeOf:function(e){var t=k3(e);if(F3(t,cte))return t[cte];var n=t.constructor;return r3(n)&&t instanceof n?n.prototype:t instanceof fte?dte:null},hte=M3("iterator"),gte=!1;[].keys&&("next"in(ste=[].keys())?(ute=pte(pte(ste)))!==Object.prototype&&(ate=ute):gte=!0);var vte=null==ate||N6((function(){var e={};return ate[hte].call(e)!==e}));vte&&(ate={}),r3(ate[hte])||C5(ate,hte,(function(){return this}));var yte={IteratorPrototype:ate,BUGGY_SAFARI_ITERATORS:gte},mte=yte.IteratorPrototype,bte=function(){return this},wte=x5.PROPER,Ete=x5.CONFIGURABLE,Dte=yte.IteratorPrototype,xte=yte.BUGGY_SAFARI_ITERATORS,Cte=M3("iterator"),Ste=function(){return this},Ate=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=F8(mte,{next:H6(1,s)}),c9(u,l,!1),h9[l]=bte;var c,f,d=function(e){if(e===o&&y)return y;if(!xte&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[Cte]||g["@@iterator"]||o&&g[o],y=!xte&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=pte(m.call(new e)))!==Object.prototype&&c.next&&(pte(c)!==Dte&&(u9?u9(c,Dte):r3(c[Cte])||C5(c,Cte,Ste)),c9(c,p,!0)),wte&&"values"==o&&v&&"values"!==v.name&&(Ete?t5(g,"name","values"):(h=!0,y=function(){return R6(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||e8({target:t,proto:!0,forced:xte||h},f)),g[Cte]!==y&&C5(g,Cte,y,{name:o}),h9[t]=y,f},Ote=b5.set,kte=b5.getterFor("Array Iterator"),Bte=Ate(Array,"Array",(function(e,t){Ote(this,{type:"Array Iterator",target:n3(e),index:0,kind:t})}),(function(){var e=kte(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");h9.Arguments=h9.Array,P8("keys"),P8("values"),P8("entries");var Fte=N7.charAt,Tte=b5.set,_te=b5.getterFor("String Iterator");Ate(String,"String",(function(e){Tte(this,{type:"String Iterator",string:s8(e),index:0})}),(function(){var e,t=_te(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Fte(n,r),t.index+=e.length,{value:e,done:!1})}));var Pte=function(e,t,n){var r=H3(t);r in e?e5.f(e,r,H6(0,n)):e[r]=n},jte=j6.Array,Nte=Math.max,Ite=$5.f,Lte="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rte={f:function(e){return Lte&&"Window"==X6(e)?function(e){try{return Ite(e)}catch(t){return function(e){for(var t=P5(e),n=F5(void 0,t),r=F5(t,t),o=jte(Nte(r-n,0)),i=0;n<r;n++,i++)Pte(o,i,e[n]);return o.length=i,o}(Lte)}}(e):Ite(n3(e))}},Mte=N6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),zte=Object.isExtensible,$te=N6((function(){zte(1)}))||Mte?function(e){return!!o3(e)&&(!Mte||"ArrayBuffer"!=X6(e))&&(!zte||zte(e))}:zte,Hte=!N6((function(){return Object.isExtensible(Object.preventExtensions({}))})),Vte=F6((function(e){var t=e5.f,n=!1,r=j3("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=$5.f,t=q6([].splice),o={};o[r]=1,e(o).length&&($5.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},e8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Rte.f}))},fastKey:function(e,t){if(!o3(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!F3(e,r)){if(!$te(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!F3(e,r)){if(!$te(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Hte&&n&&$te(e)&&!F3(e,r)&&i(e),e}};f5[r]=!0})),Ute=Vte.getWeakData,Wte=b5.set,Gte=b5.getterFor,qte=J8.find,Kte=J8.findIndex,Yte=q6([].splice),Xte=0,Zte=function(e){return e.frozen||(e.frozen=new Jte)},Jte=function(){this.entries=[]},Qte=function(e,t){return qte(e.entries,(function(e){return e[0]===t}))};Jte.prototype={get:function(e){var t=Qte(this,e);if(t)return t[1]},has:function(e){return!!Qte(this,e)},set:function(e,t){var n=Qte(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Kte(this.entries,(function(t){return t[0]===e}));return~t&&Yte(this.entries,t,1),!!~t}};var ene,tne={getConstructor:function(e,t,n,r){var o=e((function(e,o){p9(e,i),Wte(e,{type:t,id:Xte++,frozen:void 0}),null!=o&&C9(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Gte(t),u=function(e,t,n){var r=a(e),o=Ute(Z3(t),!0);return!0===o?Zte(r).set(t,n):o[r.id]=n,e};return o9(i,{delete:function(e){var t=a(this);if(!o3(e))return!1;var n=Ute(e);return!0===n?Zte(t).delete(e):n&&F3(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!o3(e))return!1;var n=Ute(e);return!0===n?Zte(t).has(e):n&&F3(n,t.id)}}),o9(i,n?{get:function(e){var t=a(this);if(o3(e)){var n=Ute(e);return!0===n?Zte(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},nne=b5.enforce,rne=!j6.ActiveXObject&&"ActiveXObject"in j6,one=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ine=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=j6[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=q6(u[e]);C5(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!o3(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!o3(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!o3(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(J5(e,!r3(a)||!(o||u.forEach&&!N6((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Vte.enable();else if(J5(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=N6((function(){f.has(1)})),h=P9((function(e){new a(e)})),g=!o&&N6((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){p9(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,u9&&r3(c=o.constructor)&&c!==l&&o3(f=c.prototype)&&f!==l.prototype&&u9(n,f),n);return null!=t&&C9(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,e8({global:!0,forced:s!=a},l),c9(s,e),o||n.setStrong(s,e,r),s}("WeakMap",one,tne);if(s5&&rne){ene=tne.getConstructor(one,"WeakMap",!0),Vte.enable();var ane=ine.prototype,une=q6(ane.delete),sne=q6(ane.has),lne=q6(ane.get),cne=q6(ane.set);o9(ane,{delete:function(e){if(o3(e)&&!$te(e)){var t=nne(this);return t.frozen||(t.frozen=new ene),une(this,e)||t.frozen.delete(e)}return une(this,e)},has:function(e){if(o3(e)&&!$te(e)){var t=nne(this);return t.frozen||(t.frozen=new ene),sne(this,e)||t.frozen.has(e)}return sne(this,e)},get:function(e){if(o3(e)&&!$te(e)){var t=nne(this);return t.frozen||(t.frozen=new ene),sne(this,e)?lne(this,e):t.frozen.get(e)}return lne(this,e)},set:function(e,t){if(o3(e)&&!$te(e)){var n=nne(this);n.frozen||(n.frozen=new ene),sne(this,e)?cne(this,e,t):n.frozen.set(e,t)}else cne(this,e,t);return this}})}var fne={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},dne=W3("span").classList,pne=dne&&dne.constructor&&dne.constructor.prototype,hne=pne===Object.prototype?void 0:pne,gne=M3("iterator"),vne=M3("toStringTag"),yne=Bte.values,mne=function(e,t){if(e){if(e[gne]!==yne)try{t5(e,gne,yne)}catch(r){e[gne]=yne}if(e[vne]||t5(e,vne,t),fne[t])for(var n in Bte)if(e[n]!==Bte[n])try{t5(e,n,Bte[n])}catch(r){e[n]=Bte[n]}}};for(var bne in fne)mne(j6[bne]&&j6[bne].prototype,bne);mne(hne,"DOMTokenList");var wne=x5.EXISTS,Ene=e5.f,Dne=Function.prototype,xne=q6(Dne.toString),Cne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Sne=q6(Cne.exec);I6&&!wne&&Ene(Dne,"name",{configurable:!0,get:function(){try{return Sne(Cne,xne(this))[1]}catch(se){return""}}});var Ane=M3("species"),One=d3>=51||!N6((function(){var e=[];return(e.constructor={})[Ane]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),kne=M3("species"),Bne=j6.Array,Fne=Math.max;function Tne(e){return e.getMenuConfig("uploadVideo")}e8({target:"Array",proto:!0,forced:!One},{slice:function(e,t){var n,r,o,i=n3(this),a=P5(i),u=F5(e,a),s=F5(void 0===t?a:t,a);if(R8(i)&&(n=i.constructor,(G8(n)&&(n===Bne||R8(n.prototype))||o3(n)&&null===(n=n[kne]))&&(n=void 0),n===Bne||void 0===n))return I9(i,u,s);for(r=new(void 0===n?Bne:n)(Fne(s-u,0)),o=0;u<s;u++,o++)u in i&&Pte(r,o,i[u]);return r.length=o,r}});var _ne=new WeakMap;function Pne(e,t){return A6(this,0,void 0,(function(){var n,r,o,i;return O6(this,(function(a){switch(a.label){case 0:return n=function(e){var t=_ne.get(e);if(null!=t)return t;var n=Tne(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=u_(S6(S6({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return ete(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;ete(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),_ne.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var jne=function(){function e(){this.title=X_("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return ete(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Ap("body"),s=Ap('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;A6(this,0,void 0,(function(){var o,i,a,u,s,l;return O6(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Tne(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return ete(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Pne(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!mO.getSelectedElems(e).some((function(t){var n=mO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Nne=x5.PROPER,Ine=RegExp.prototype,Lne=Ine.toString,Rne=q6(a7),Mne=N6((function(){return"/a/b"!=Lne.call({source:"a",flags:"b"})})),zne=Nne&&"toString"!=Lne.name;function $ne(){return n9("w-e-insert-video")}(Mne||zne)&&C5(RegExp.prototype,"toString",(function(){var e=Z3(this),t=s8(e.source),n=e.flags;return"/"+t+"/"+s8(void 0===n&&a3(Ine,e)&&!("flags"in Ine)?Rne(e):n)}),{unsafe:!0});var Hne=function(){function e(){this.title=X_("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=$ne(),this.heightInputId=$ne(),this.buttonId=$ne()}return e.prototype.getSelectedVideoNode=function(e){return mO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=k6(LT(X_("videoModule.width"),n,"auto"),2),a=i[0],u=Ap(i[1]),s=k6(LT(X_("videoModule.height"),r,"auto"),2),l=s[0],c=Ap(s[1]),f=k6(RT(o,X_("videoModule.ok")),1)[0];if(null==this.$content){var d=Ap("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),dd.setNodes(e,{width:s,height:l},{match:function(e){return mO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Vne={renderElems:[w8],elemsToHtml:[E8],preParseHtml:[N8],parseElemsHtml:[i7],menus:[{key:"insertVideo",factory:function(){return new nte},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new jne},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Hne}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=k6(e,2),o=t[0],i=t[1];return"video"===mO.getNodeType(o)&&mO.isLastNode(r,o)&&dd.insertNodes(r,mO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};Y_("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Y_("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Une="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wne(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gne,qne,Kne=function(e){return e&&e.Math==Math&&e},Yne=Kne("object"==typeof globalThis&&globalThis)||Kne("object"==typeof window&&window)||Kne("object"==typeof self&&self)||Kne("object"==typeof Une&&Une)||function(){return this}()||Function("return this")(),Xne=function(e){try{return!!e()}catch(t){return!0}},Zne=!Xne((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Jne=Function.prototype.call,Qne=Jne.bind?Jne.bind(Jne):function(){return Jne.apply(Jne,arguments)},ere={}.propertyIsEnumerable,tre=Object.getOwnPropertyDescriptor,nre={f:tre&&!ere.call({1:2},1)?function(e){var t=tre(this,e);return!!t&&t.enumerable}:ere},rre=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ore=Function.prototype,ire=ore.bind,are=ore.call,ure=ire&&ire.bind(are),sre=ire?function(e){return e&&ure(are,e)}:function(e){return e&&function(){return are.apply(e,arguments)}},lre=sre({}.toString),cre=sre("".slice),fre=function(e){return cre(lre(e),8,-1)},dre=Yne.Object,pre=sre("".split),hre=Xne((function(){return!dre("z").propertyIsEnumerable(0)}))?function(e){return"String"==fre(e)?pre(e,""):dre(e)}:dre,gre=Yne.TypeError,vre=function(e){if(null==e)throw gre("Can't call method on "+e);return e},yre=function(e){return hre(vre(e))},mre=function(e){return"function"==typeof e},bre=function(e){return"object"==typeof e?null!==e:mre(e)},wre=function(e,t){return arguments.length<2?function(e){return mre(e)?e:void 0}(Yne[e]):Yne[e]&&Yne[e][t]},Ere=sre({}.isPrototypeOf),Dre=wre("navigator","userAgent")||"",xre=Yne.process,Cre=Yne.Deno,Sre=xre&&xre.versions||Cre&&Cre.version,Are=Sre&&Sre.v8;Are&&(qne=(Gne=Are.split("."))[0]>0&&Gne[0]<4?1:+(Gne[0]+Gne[1])),!qne&&Dre&&(!(Gne=Dre.match(/Edge\/(\d+)/))||Gne[1]>=74)&&(Gne=Dre.match(/Chrome\/(\d+)/))&&(qne=+Gne[1]);var Ore=qne,kre=!!Object.getOwnPropertySymbols&&!Xne((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ore&&Ore<41})),Bre=kre&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fre=Yne.Object,Tre=Bre?function(e){return"symbol"==typeof e}:function(e){var t=wre("Symbol");return mre(t)&&Ere(t.prototype,Fre(e))},_re=Yne.String,Pre=function(e){try{return _re(e)}catch(t){return"Object"}},jre=Yne.TypeError,Nre=function(e){if(mre(e))return e;throw jre(Pre(e)+" is not a function")},Ire=function(e,t){var n=e[t];return null==n?void 0:Nre(n)},Lre=Yne.TypeError,Rre=Object.defineProperty,Mre=function(e,t){try{Rre(Yne,e,{value:t,configurable:!0,writable:!0})}catch(J_){Yne[e]=t}return t},zre=Yne["__core-js_shared__"]||Mre("__core-js_shared__",{}),$re=Wne((function(e){(e.exports=function(e,t){return zre[e]||(zre[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Hre=Yne.Object,Vre=function(e){return Hre(vre(e))},Ure=sre({}.hasOwnProperty),Wre=Object.hasOwn||function(e,t){return Ure(Vre(e),t)},Gre=0,qre=Math.random(),Kre=sre(1..toString),Yre=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Kre(++Gre+qre,36)},Xre=$re("wks"),Zre=Yne.Symbol,Jre=Zre&&Zre.for,Qre=Bre?Zre:Zre&&Zre.withoutSetter||Yre,eoe=function(e){if(!Wre(Xre,e)||!kre&&"string"!=typeof Xre[e]){var t="Symbol."+e;kre&&Wre(Zre,e)?Xre[e]=Zre[e]:Xre[e]=Bre&&Jre?Jre(t):Qre(t)}return Xre[e]},toe=Yne.TypeError,noe=eoe("toPrimitive"),roe=function(e){var t=function(e){if(!bre(e)||Tre(e))return e;var t,n=Ire(e,noe);if(n){if(t=Qne(n,e,"string"),!bre(t)||Tre(t))return t;throw toe("Can't convert object to primitive value")}return function(e){var t,n;if(mre(t=e.toString)&&!bre(n=Qne(t,e)))return n;if(mre(t=e.valueOf)&&!bre(n=Qne(t,e)))return n;throw Lre("Can't convert object to primitive value")}(e)}(e);return Tre(t)?t:t+""},ooe=Yne.document,ioe=bre(ooe)&&bre(ooe.createElement),aoe=function(e){return ioe?ooe.createElement(e):{}},uoe=!Zne&&!Xne((function(){return 7!=Object.defineProperty(aoe("div"),"a",{get:function(){return 7}}).a})),soe=Object.getOwnPropertyDescriptor,loe={f:Zne?soe:function(e,t){if(e=yre(e),t=roe(t),uoe)try{return soe(e,t)}catch(n){}if(Wre(e,t))return rre(!Qne(nre.f,e,t),e[t])}},coe=Yne.String,foe=Yne.TypeError,doe=function(e){if(bre(e))return e;throw foe(coe(e)+" is not an object")},poe=Yne.TypeError,hoe=Object.defineProperty,goe={f:Zne?hoe:function(e,t,n){if(doe(e),t=roe(t),doe(n),uoe)try{return hoe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw poe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},voe=Zne?function(e,t,n){return goe.f(e,t,rre(1,n))}:function(e,t,n){return e[t]=n,e},yoe=sre(Function.toString);mre(zre.inspectSource)||(zre.inspectSource=function(e){return yoe(e)});var moe,boe,woe,Eoe=zre.inspectSource,Doe=Yne.WeakMap,xoe=mre(Doe)&&/native code/.test(Eoe(Doe)),Coe=$re("keys"),Soe=function(e){return Coe[e]||(Coe[e]=Yre(e))},Aoe={},Ooe=Yne.TypeError,koe=Yne.WeakMap;if(xoe||zre.state){var Boe=zre.state||(zre.state=new koe),Foe=sre(Boe.get),Toe=sre(Boe.has),_oe=sre(Boe.set);moe=function(e,t){if(Toe(Boe,e))throw new Ooe("Object already initialized");return t.facade=e,_oe(Boe,e,t),t},boe=function(e){return Foe(Boe,e)||{}},woe=function(e){return Toe(Boe,e)}}else{var Poe=Soe("state");Aoe[Poe]=!0,moe=function(e,t){if(Wre(e,Poe))throw new Ooe("Object already initialized");return t.facade=e,voe(e,Poe,t),t},boe=function(e){return Wre(e,Poe)?e[Poe]:{}},woe=function(e){return Wre(e,Poe)}}var joe={set:moe,get:boe,has:woe,enforce:function(e){return woe(e)?boe(e):moe(e,{})},getterFor:function(e){return function(t){var n;if(!bre(t)||(n=boe(t)).type!==e)throw Ooe("Incompatible receiver, "+e+" required");return n}}},Noe=Function.prototype,Ioe=Zne&&Object.getOwnPropertyDescriptor,Loe=Wre(Noe,"name"),Roe={EXISTS:Loe,PROPER:Loe&&"something"===function(){}.name,CONFIGURABLE:Loe&&(!Zne||Zne&&Ioe(Noe,"name").configurable)},Moe=Wne((function(e){var t=Roe.CONFIGURABLE,n=joe.get,r=joe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;mre(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Wre(i,"name")||t&&i.name!==f)&&voe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Yne?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:voe(e,n,i)):l?e[n]=i:Mre(n,i)})(Function.prototype,"toString",(function(){return mre(this)&&n(this).source||Eoe(this)}))})),zoe=Math.ceil,$oe=Math.floor,Hoe=function(e){var t=+e;return t!=t||0===t?0:(t>0?$oe:zoe)(t)},Voe=Math.max,Uoe=Math.min,Woe=function(e,t){var n=Hoe(e);return n<0?Voe(n+t,0):Uoe(n,t)},Goe=Math.min,qoe=function(e){return e>0?Goe(Hoe(e),9007199254740991):0},Koe=function(e){return qoe(e.length)},Yoe=function(e){return function(t,n,r){var o,i=yre(t),a=Koe(i),u=Woe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),Xoe=sre([].push),Zoe=function(e,t){var n,r=yre(e),o=0,i=[];for(n in r)!Wre(Aoe,n)&&Wre(r,n)&&Xoe(i,n);for(;t.length>o;)Wre(r,n=t[o++])&&(~Yoe(i,n)||Xoe(i,n));return i},Joe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qoe=Joe.concat("length","prototype"),eie={f:Object.getOwnPropertyNames||function(e){return Zoe(e,Qoe)}},tie={f:Object.getOwnPropertySymbols},nie=sre([].concat),rie=wre("Reflect","ownKeys")||function(e){var t=eie.f(doe(e)),n=tie.f;return n?nie(t,n(e)):t},oie=function(e,t){for(var n=rie(t),r=goe.f,o=loe.f,i=0;i<n.length;i++){var a=n[i];Wre(e,a)||r(e,a,o(t,a))}},iie=/#|\.prototype\./,aie=function(e,t){var n=sie[uie(e)];return n==cie||n!=lie&&(mre(t)?Xne(t):!!t)},uie=aie.normalize=function(e){return String(e).replace(iie,".").toLowerCase()},sie=aie.data={},lie=aie.NATIVE="N",cie=aie.POLYFILL="P",fie=aie,die=loe.f,pie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Yne:l?Yne[u]||Mre(u,{}):(Yne[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=die(n,r))&&a.value:n[r],!fie(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;oie(i,o)}(e.sham||o&&o.sham)&&voe(i,"sham",!0),Moe(n,r,i,e)}},hie=Array.isArray||function(e){return"Array"==fre(e)},gie={};gie[eoe("toStringTag")]="z";var vie="[object z]"===String(gie),yie=eoe("toStringTag"),mie=Yne.Object,bie="Arguments"==fre(function(){return arguments}()),wie=vie?fre:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=mie(e),yie))?n:bie?fre(t):"Object"==(r=fre(t))&&mre(t.callee)?"Arguments":r},Eie=function(){},Die=[],xie=wre("Reflect","construct"),Cie=/^\s*(?:class|function)\b/,Sie=sre(Cie.exec),Aie=!Cie.exec(Eie),Oie=function(e){if(!mre(e))return!1;try{return xie(Eie,Die,e),!0}catch(t){return!1}},kie=!xie||Xne((function(){var e;return Oie(Oie.call)||!Oie(Object)||!Oie((function(){e=!0}))||e}))?function(e){if(!mre(e))return!1;switch(wie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Aie||!!Sie(Cie,Eoe(e))}:Oie,Bie=function(e,t,n){var r=roe(t);r in e?goe.f(e,r,rre(0,n)):e[r]=n},Fie=eoe("species"),Tie=sre([].slice),_ie=Ore>=51||!Xne((function(){var e=[];return(e.constructor={})[Fie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Pie=eoe("species"),jie=Yne.Array,Nie=Math.max;pie({target:"Array",proto:!0,forced:!_ie},{slice:function(e,t){var n,r,o,i=yre(this),a=Koe(i),u=Woe(e,a),s=Woe(void 0===t?a:t,a);if(hie(i)&&(n=i.constructor,(kie(n)&&(n===jie||hie(n.prototype))||bre(n)&&null===(n=n[Pie]))&&(n=void 0),n===jie||void 0===n))return Tie(i,u,s);for(r=new(void 0===n?jie:n)(Nie(s-u,0)),o=0;u<s;u++,o++)u in i&&Bie(r,o,i[u]);return r.length=o,r}});var Iie=vie?{}.toString:function(){return"[object "+wie(this)+"]"};vie||Moe(Object.prototype,"toString",Iie,{unsafe:!0});var Lie,Rie=Yne.String,Mie=function(e){if("Symbol"===wie(e))throw TypeError("Cannot convert a Symbol value to a string");return Rie(e)},zie=function(){var e=doe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},$ie=Yne.RegExp,Hie=Xne((function(){var e=$ie("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));Hie||Xne((function(){return!$ie("a","y").sticky}));var Vie={BROKEN_CARET:Hie||Xne((function(){var e=$ie("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:Hie},Uie=Object.keys||function(e){return Zoe(e,Joe)},Wie=Zne?Object.defineProperties:function(e,t){doe(e);for(var n,r=yre(t),o=Uie(t),i=o.length,a=0;i>a;)goe.f(e,n=o[a++],r[n]);return e},Gie=wre("document","documentElement"),qie=Soe("IE_PROTO"),Kie=function(){},Yie=function(e){return"<script>"+e+"<\/script>"},Xie=function(e){e.write(Yie("")),e.close();var t=e.parentWindow.Object;return e=null,t},Zie=function(){try{Lie=new ActiveXObject("htmlfile")}catch(r){}var e,t;Zie="undefined"!=typeof document?document.domain&&Lie?Xie(Lie):((t=aoe("iframe")).style.display="none",Gie.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Yie("document.F=Object")),e.close(),e.F):Xie(Lie);for(var n=Joe.length;n--;)delete Zie.prototype[Joe[n]];return Zie()};Aoe[qie]=!0;var Jie,Qie,eae=Object.create||function(e,t){var n;return null!==e?(Kie.prototype=doe(e),n=new Kie,Kie.prototype=null,n[qie]=e):n=Zie(),void 0===t?n:Wie(n,t)},tae=Yne.RegExp,nae=Xne((function(){var e=tae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),rae=Yne.RegExp,oae=Xne((function(){var e=rae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),iae=joe.get,aae=$re("native-string-replace",String.prototype.replace),uae=RegExp.prototype.exec,sae=uae,lae=sre("".charAt),cae=sre("".indexOf),fae=sre("".replace),dae=sre("".slice),pae=(Qie=/b*/g,Qne(uae,Jie=/a/,"a"),Qne(uae,Qie,"a"),0!==Jie.lastIndex||0!==Qie.lastIndex),hae=Vie.BROKEN_CARET,gae=void 0!==/()??/.exec("")[1];(pae||gae||hae||nae||oae)&&(sae=function(e){var t,n,r,o,i,a,u,s=this,l=iae(s),c=Mie(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Qne(sae,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=hae&&s.sticky,h=Qne(zie,s),g=s.source,v=0,y=c;if(p&&(h=fae(h,"y",""),-1===cae(h,"g")&&(h+="g"),y=dae(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==lae(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),gae&&(n=new RegExp("^"+g+"$(?!\\s)",h)),pae&&(r=s.lastIndex),o=Qne(uae,p?n:s,y),p?o?(o.input=dae(o.input,v),o[0]=dae(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:pae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),gae&&o&&o.length>1&&Qne(aae,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=eae(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var vae=sae;pie({target:"RegExp",proto:!0,forced:/./.exec!==vae},{exec:vae});var yae=Function.prototype,mae=yae.apply,bae=yae.bind,wae=yae.call,Eae="object"==typeof Reflect&&Reflect.apply||(bae?wae.bind(mae):function(){return wae.apply(mae,arguments)}),Dae=eoe("species"),xae=RegExp.prototype,Cae=eoe("match"),Sae=Yne.TypeError,Aae=eoe("species"),Oae=function(e,t){var n,r=doe(e).constructor;return void 0===r||null==(n=doe(r)[Aae])?t:function(e){if(kie(e))return e;throw Sae(Pre(e)+" is not a constructor")}(n)},kae=sre("".charAt),Bae=sre("".charCodeAt),Fae=sre("".slice),Tae={charAt:function(e){return function(t,n){var r,o,i=Mie(vre(t)),a=Hoe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Bae(i,a))<55296||r>56319||a+1===u||(o=Bae(i,a+1))<56320||o>57343?e?kae(i,a):r:e?Fae(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0)},_ae=Tae.charAt,Pae=function(e,t,n){return t+(n?_ae(e,t).length:1)},jae=Yne.Array,Nae=Math.max,Iae=function(e,t,n){for(var r=Koe(e),o=Woe(t,r),i=Woe(void 0===n?r:n,r),a=jae(Nae(i-o,0)),u=0;o<i;o++,u++)Bie(a,u,e[o]);return a.length=u,a},Lae=Yne.TypeError,Rae=function(e,t){var n=e.exec;if(mre(n)){var r=Qne(n,e,t);return null!==r&&doe(r),r}if("RegExp"===fre(e))return Qne(vae,e,t);throw Lae("RegExp#exec called on incompatible receiver")},Mae=Vie.UNSUPPORTED_Y,zae=Math.min,$ae=[].push,Hae=sre(/./.exec),Vae=sre($ae),Uae=sre("".slice);!function(e,t,n,r){var o,i,a,u=eoe(e),s=!Xne((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Xne((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Dae]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=sre(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=Mie(vre(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!bre(n=e)||!(void 0!==(r=n[Cae])?r:"RegExp"==fre(n)))return Qne(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Qne(vae,p,o))&&!((s=p.lastIndex)>d&&(Vae(c,Uae(o,d,u.index)),u.length>1&&u.index<o.length&&Eae($ae,c,Iae(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Hae(p,"")||Vae(c,""):Vae(c,Uae(o,d)),c.length>a?Iae(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Qne(i,this,e,t)}:i,[function(e,t){var n=vre(this),r=null==e?void 0:Ire(e,o);return r?Qne(r,e,n,t):Qne(a,Mie(n),e,t)},function(e,t){var n=doe(this),r=Mie(e),o=function(e,t,n,r,o){var i=sre(e),a=t.exec;return a===vae||a===xae.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u=Oae(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Mae?"g":"y"),d=new u(Mae?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===Rae(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=Mae?0:g;var y,m=Rae(d,Mae?Uae(r,g):r);if(null===m||(y=zae(qoe(d.lastIndex+(Mae?g:0)),r.length))===h)g=Pae(r,g,l);else{if(Vae(v,Uae(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(Vae(v,m[b]),v.length===p)return v;g=h=y}}return Vae(v,Uae(r,h)),v}]);Moe(String.prototype,e,f[0]),Moe(xae,u,f[1])}r&&voe(xae[u],"sham",!0)}("split",0,!!Xne((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]})),Mae);var Wae=function(){return Wae=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},Wae.apply(this,arguments)};function Gae(e,t,n,r){return new(n||(n=Promise))((function(t,o){function i(e){try{u(r.next(e))}catch(t){o(t)}}function a(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(e){e(r)}))).then(i,a)}u((r=r.apply(e,[])).next())}))}function qae(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}var Kae=eoe("unscopables"),Yae=Array.prototype;null==Yae[Kae]&&goe.f(Yae,Kae,{configurable:!0,value:eae(null)});var Xae,Zae,Jae,Qae=function(e){Yae[Kae][e]=!0},eue={},tue=!Xne((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nue=Soe("IE_PROTO"),rue=Yne.Object,oue=rue.prototype,iue=tue?rue.getPrototypeOf:function(e){var t=Vre(e);if(Wre(t,nue))return t[nue];var n=t.constructor;return mre(n)&&t instanceof n?n.prototype:t instanceof rue?oue:null},aue=eoe("iterator"),uue=!1;[].keys&&("next"in(Jae=[].keys())?(Zae=iue(iue(Jae)))!==Object.prototype&&(Xae=Zae):uue=!0);var sue=null==Xae||Xne((function(){var e={};return Xae[aue].call(e)!==e}));sue&&(Xae={}),mre(Xae[aue])||Moe(Xae,aue,(function(){return this}));var lue={IteratorPrototype:Xae,BUGGY_SAFARI_ITERATORS:uue},cue=goe.f,fue=eoe("toStringTag"),due=function(e,t,n){e&&!Wre(e=n?e:e.prototype,fue)&&cue(e,fue,{configurable:!0,value:t})},pue=lue.IteratorPrototype,hue=function(){return this},gue=Yne.String,vue=Yne.TypeError,yue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=sre(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return doe(n),function(e){if("object"==typeof e||mre(e))return e;throw vue("Can't set "+gue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),mue=Roe.PROPER,bue=Roe.CONFIGURABLE,wue=lue.IteratorPrototype,Eue=lue.BUGGY_SAFARI_ITERATORS,Due=eoe("iterator"),xue=function(){return this},Cue=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=eae(pue,{next:rre(1,s)}),due(u,l,!1),eue[l]=hue;var c,f,d=function(e){if(e===o&&y)return y;if(!Eue&&e in g)return g[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,g=e.prototype,v=g[Due]||g["@@iterator"]||o&&g[o],y=!Eue&&v||d(o),m="Array"==t&&g.entries||v;return m&&(c=iue(m.call(new e)))!==Object.prototype&&c.next&&(iue(c)!==wue&&(yue?yue(c,wue):mre(c[Due])||Moe(c,Due,xue)),due(c,p,!0)),mue&&"values"==o&&v&&"values"!==v.name&&(bue?voe(g,"name","values"):(h=!0,y=function(){return Qne(v,this)})),o&&(f={values:d("values"),keys:d("keys"),entries:d("entries")},a||pie({target:t,proto:!0,forced:Eue||h},f)),g[Due]!==y&&Moe(g,Due,y,{name:o}),eue[t]=y,f},Sue=joe.set,Aue=joe.getterFor("Array Iterator"),Oue=Cue(Array,"Array",(function(e,t){Sue(this,{type:"Array Iterator",target:yre(e),index:0,kind:t})}),(function(){var e=Aue(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");eue.Arguments=eue.Array,Qae("keys"),Qae("values"),Qae("entries");var kue=Tae.charAt,Bue=joe.set,Fue=joe.getterFor("String Iterator");Cue(String,"String",(function(e){Bue(this,{type:"String Iterator",string:Mie(e),index:0})}),(function(){var e,t=Fue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=kue(n,r),t.index+=e.length,{value:e,done:!1})}));var Tue=function(e,t,n){for(var r in t)Moe(e,r,t[r],n);return e},_ue=eie.f,Pue="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jue={f:function(e){return Pue&&"Window"==fre(e)?function(e){try{return _ue(e)}catch(t){return Iae(Pue)}}(e):_ue(yre(e))}},Nue=Xne((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Iue=Object.isExtensible,Lue=Xne((function(){Iue(1)}))||Nue?function(e){return!!bre(e)&&(!Nue||"ArrayBuffer"!=fre(e))&&(!Iue||Iue(e))}:Iue,Rue=!Xne((function(){return Object.isExtensible(Object.preventExtensions({}))})),Mue=Wne((function(e){var t=goe.f,n=!1,r=Yre("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=eie.f,t=sre([].splice),o={};o[r]=1,e(o).length&&(eie.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},pie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jue.f}))},fastKey:function(e,t){if(!bre(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Wre(e,r)){if(!Lue(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Wre(e,r)){if(!Lue(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Rue&&n&&Lue(e)&&!Wre(e,r)&&i(e),e}};Aoe[r]=!0})),zue=sre(sre.bind),$ue=function(e,t){return Nre(e),void 0===t?e:zue?zue(e,t):function(){return e.apply(t,arguments)}},Hue=eoe("iterator"),Vue=Array.prototype,Uue=eoe("iterator"),Wue=function(e){if(null!=e)return Ire(e,Uue)||Ire(e,"@@iterator")||eue[wie(e)]},Gue=Yne.TypeError,que=function(e,t,n){var r,o;doe(e);try{if(!(r=Ire(e,"return"))){if("throw"===t)throw n;return n}r=Qne(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return doe(r),n},Kue=Yne.TypeError,Yue=function(e,t){this.stopped=e,this.result=t},Xue=Yue.prototype,Zue=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=$ue(t,f),v=function(e){return r&&que(r,"normal",e),new Yue(!0,e)},y=function(e){return d?(doe(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Wue(e)))throw Kue(Pre(e)+" is not iterable");if(void 0!==(c=o)&&(eue.Array===c||Vue[Hue]===c)){for(i=0,a=Koe(e);a>i;i++)if((u=y(e[i]))&&Ere(Xue,u))return u;return new Yue(!1)}r=function(e,t){var n=arguments.length<2?Wue(e):t;if(Nre(n))return doe(Qne(n,e));throw Gue(Pre(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Qne(s,r)).done;){try{u=y(l.value)}catch(m){que(r,"throw",m)}if("object"==typeof u&&u&&Ere(Xue,u))return u}return new Yue(!1)},Jue=Yne.TypeError,Que=function(e,t){if(Ere(t,e))return e;throw Jue("Incorrect invocation")},ese=eoe("iterator"),tse=!1;try{var nse=0,rse={next:function(){return{done:!!nse++}},return:function(){tse=!0}};rse[ese]=function(){return this},Array.from(rse,(function(){throw 2}))}catch(Lge){}var ose=function(e,t){if(!tse)return!1;var n=!1;try{var r={};r[ese]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},ise=eoe("species"),ase=Yne.Array,use=function(e,t){return new(hie(n=e)&&(r=n.constructor,(kie(r)&&(r===ase||hie(r.prototype))||bre(r)&&null===(r=r[ise]))&&(r=void 0)),void 0===r?ase:r)(0===t?0:t);var n,r},sse=sre([].push),lse=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Vre(s),g=hre(h),v=$ue(l,c),y=Koe(g),m=0,b=f||use,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:sse(w,d)}else switch(e){case 4:return!1;case 7:sse(w,d)}return i?-1:r||o?o:w}},cse={forEach:lse(0),find:lse(5),findIndex:lse(6)},fse=Mue.getWeakData,dse=joe.set,pse=joe.getterFor,hse=cse.find,gse=cse.findIndex,vse=sre([].splice),yse=0,mse=function(e){return e.frozen||(e.frozen=new bse)},bse=function(){this.entries=[]},wse=function(e,t){return hse(e.entries,(function(e){return e[0]===t}))};bse.prototype={get:function(e){var t=wse(this,e);if(t)return t[1]},has:function(e){return!!wse(this,e)},set:function(e,t){var n=wse(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=gse(this.entries,(function(t){return t[0]===e}));return~t&&vse(this.entries,t,1),!!~t}};var Ese,Dse={getConstructor:function(e,t,n,r){var o=e((function(e,o){Que(e,i),dse(e,{type:t,id:yse++,frozen:void 0}),null!=o&&Zue(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=pse(t),u=function(e,t,n){var r=a(e),o=fse(doe(t),!0);return!0===o?mse(r).set(t,n):o[r.id]=n,e};return Tue(i,{delete:function(e){var t=a(this);if(!bre(e))return!1;var n=fse(e);return!0===n?mse(t).delete(e):n&&Wre(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!bre(e))return!1;var n=fse(e);return!0===n?mse(t).has(e):n&&Wre(n,t.id)}}),Tue(i,n?{get:function(e){var t=a(this);if(bre(e)){var n=fse(e);return!0===n?mse(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},xse=joe.enforce,Cse=!Yne.ActiveXObject&&"ActiveXObject"in Yne,Sse=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ase=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Yne[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=sre(u[e]);Moe(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!bre(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!bre(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!bre(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(fie(e,!mre(a)||!(o||u.forEach&&!Xne((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Mue.enable();else if(fie(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Xne((function(){f.has(1)})),h=ose((function(e){new a(e)})),g=!o&&Xne((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Que(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,yue&&mre(c=o.constructor)&&c!==l&&bre(f=c.prototype)&&f!==l.prototype&&yue(n,f),n);return null!=t&&Zue(t,d[i],{that:d,AS_ENTRIES:r}),d}))).prototype=u,u.constructor=s),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,pie({global:!0,forced:s!=a},l),due(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Sse,Dse);if(xoe&&Cse){Ese=Dse.getConstructor(Sse,"WeakMap",!0),Mue.enable();var Ose=Ase.prototype,kse=sre(Ose.delete),Bse=sre(Ose.has),Fse=sre(Ose.get),Tse=sre(Ose.set);Tue(Ose,{delete:function(e){if(bre(e)&&!Lue(e)){var t=xse(this);return t.frozen||(t.frozen=new Ese),kse(this,e)||t.frozen.delete(e)}return kse(this,e)},has:function(e){if(bre(e)&&!Lue(e)){var t=xse(this);return t.frozen||(t.frozen=new Ese),Bse(this,e)||t.frozen.has(e)}return Bse(this,e)},get:function(e){if(bre(e)&&!Lue(e)){var t=xse(this);return t.frozen||(t.frozen=new Ese),Bse(this,e)?Fse(this,e):t.frozen.get(e)}return Fse(this,e)},set:function(e,t){if(bre(e)&&!Lue(e)){var n=xse(this);n.frozen||(n.frozen=new Ese),Bse(this,e)?Tse(this,e,t):n.frozen.set(e,t)}else Tse(this,e,t);return this}})}var _se={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},Pse=aoe("span").classList,jse=Pse&&Pse.constructor&&Pse.constructor.prototype,Nse=jse===Object.prototype?void 0:jse,Ise=eoe("iterator"),Lse=eoe("toStringTag"),Rse=Oue.values,Mse=function(e,t){if(e){if(e[Ise]!==Rse)try{voe(e,Ise,Rse)}catch(r){e[Ise]=Rse}if(e[Lse]||voe(e,Lse,t),_se[t])for(var n in Oue)if(e[n]!==Oue[n])try{voe(e,n,Oue[n])}catch(r){e[n]=Oue[n]}}};for(var zse in _se)Mse(Yne[zse]&&Yne[zse].prototype,zse);Mse(Nse,"DOMTokenList");var $se=function(e,t){var n=[][e];return!!n&&Xne((function(){n.call(null,t||function(){throw 1},1)}))},Hse=cse.forEach,Vse=$se("forEach")?[].forEach:function(e){return Hse(this,e,arguments.length>1?arguments[1]:void 0)},Use=function(e){if(e&&e.forEach!==Vse)try{voe(e,"forEach",Vse)}catch(t){e.forEach=Vse}};for(var Wse in _se)_se[Wse]&&Use(Yne[Wse]&&Yne[Wse].prototype);Use(Nse);var Gse,qse,Kse,Yse,Xse=Yne.Promise,Zse=eoe("species"),Jse=/(?:ipad|iphone|ipod).*applewebkit/i.test(Dre),Qse="process"==fre(Yne.process),ele=Yne.setImmediate,tle=Yne.clearImmediate,nle=Yne.process,rle=Yne.Dispatch,ole=Yne.Function,ile=Yne.MessageChannel,ale=Yne.String,ule=0,sle={};try{Gse=Yne.location}catch(Lge){}var lle=function(e){if(Wre(sle,e)){var t=sle[e];delete sle[e],t()}},cle=function(e){return function(){lle(e)}},fle=function(e){lle(e.data)},dle=function(e){Yne.postMessage(ale(e),Gse.protocol+"//"+Gse.host)};ele&&tle||(ele=function(e){var t=Tie(arguments,1);return sle[++ule]=function(){Eae(mre(e)?e:ole(e),void 0,t)},qse(ule),ule},tle=function(e){delete sle[e]},Qse?qse=function(e){nle.nextTick(cle(e))}:rle&&rle.now?qse=function(e){rle.now(cle(e))}:ile&&!Jse?(Yse=(Kse=new ile).port2,Kse.port1.onmessage=fle,qse=$ue(Yse.postMessage,Yse)):Yne.addEventListener&&mre(Yne.postMessage)&&!Yne.importScripts&&Gse&&"file:"!==Gse.protocol&&!Xne(dle)?(qse=dle,Yne.addEventListener("message",fle,!1)):qse="onreadystatechange"in aoe("script")?function(e){Gie.appendChild(aoe("script")).onreadystatechange=function(){Gie.removeChild(this),lle(e)}}:function(e){setTimeout(cle(e),0)});var ple,hle,gle,vle,yle,mle,ble,wle,Ele={set:ele},Dle=/ipad|iphone|ipod/i.test(Dre)&&void 0!==Yne.Pebble,xle=/web0s(?!.*chrome)/i.test(Dre),Cle=loe.f,Sle=Ele.set,Ale=Yne.MutationObserver||Yne.WebKitMutationObserver,Ole=Yne.document,kle=Yne.process,Ble=Yne.Promise,Fle=Cle(Yne,"queueMicrotask"),Tle=Fle&&Fle.value;Tle||(ple=function(){var e,t;for(Qse&&(e=kle.domain)&&e.exit();hle;){t=hle.fn,hle=hle.next;try{t()}catch(n){throw hle?vle():gle=void 0,n}}gle=void 0,e&&e.enter()},Jse||Qse||xle||!Ale||!Ole?!Dle&&Ble&&Ble.resolve?((ble=Ble.resolve(void 0)).constructor=Ble,wle=$ue(ble.then,ble),vle=function(){wle(ple)}):Qse?vle=function(){kle.nextTick(ple)}:(Sle=$ue(Sle,Yne),vle=function(){Sle(ple)}):(yle=!0,mle=Ole.createTextNode(""),new Ale(ple).observe(mle,{characterData:!0}),vle=function(){mle.data=yle=!yle}));var _le,Ple,jle,Nle,Ile=Tle||function(e){var t={fn:e,next:void 0};gle&&(gle.next=t),hle||(hle=t,vle()),gle=t},Lle=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Nre(t),this.reject=Nre(n)},Rle={f:function(e){return new Lle(e)}},Mle=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},zle="object"==typeof window,$le=Ele.set,Hle=eoe("species"),Vle="Promise",Ule=joe.getterFor(Vle),Wle=joe.set,Gle=joe.getterFor(Vle),qle=Xse&&Xse.prototype,Kle=Xse,Yle=qle,Xle=Yne.TypeError,Zle=Yne.document,Jle=Yne.process,Qle=Rle.f,ece=Qle,tce=!!(Zle&&Zle.createEvent&&Yne.dispatchEvent),nce=mre(Yne.PromiseRejectionEvent),rce=!1,oce=fie(Vle,(function(){var e=Eoe(Kle),t=e!==String(Kle);if(!t&&66===Ore)return!0;if(Ore>=51&&/native code/.test(e))return!1;var n=new Kle((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Hle]=r,!(rce=n.then((function(){}))instanceof r)||!t&&zle&&!nce})),ice=oce||!ose((function(e){Kle.all(e).catch((function(){}))})),ace=function(e){var t;return!(!bre(e)||!mre(t=e.then))&&t},uce=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ile((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&fce(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Xle("Promise-chain cycle")):(u=ace(a))?Qne(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&lce(e)}))}},sce=function(e,t,n){var r,o;tce?((r=Zle.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Yne.dispatchEvent(r)):r={promise:t,reason:n},!nce&&(o=Yne["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Yne.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},lce=function(e){Qne($le,Yne,(function(){var t,n=e.facade,r=e.value;if(cce(e)&&(t=Mle((function(){Qse?Jle.emit("unhandledRejection",r,n):sce("unhandledrejection",n,r)})),e.rejection=Qse||cce(e)?2:1,t.error))throw t.value}))},cce=function(e){return 1!==e.rejection&&!e.parent},fce=function(e){Qne($le,Yne,(function(){var t=e.facade;Qse?Jle.emit("rejectionHandled",t):sce("rejectionhandled",t,e.value)}))},dce=function(e,t,n){return function(r){e(t,r,n)}},pce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,uce(e,!0))},hce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Xle("Promise can't be resolved itself");var r=ace(t);r?Ile((function(){var n={done:!1};try{Qne(r,t,dce(hce,n,e),dce(pce,n,e))}catch(o){pce(n,o,e)}})):(e.value=t,e.state=1,uce(e,!1))}catch(o){pce({done:!1},o,e)}}};if(oce&&(Yle=(Kle=function(e){Que(this,Yle),Nre(e),Qne(_le,this);var t=Ule(this);try{e(dce(hce,t),dce(pce,t))}catch(n){pce(t,n)}}).prototype,(_le=function(e){Wle(this,{type:Vle,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Tue(Yle,{then:function(e,t){var n=Gle(this),r=n.reactions,o=Qle(Oae(this,Kle));return o.ok=!mre(e)||e,o.fail=mre(t)&&t,o.domain=Qse?Jle.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&uce(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Ple=function(){var e=new _le,t=Ule(e);this.promise=e,this.resolve=dce(hce,t),this.reject=dce(pce,t)},Rle.f=Qle=function(e){return e===Kle||e===jle?new Ple(e):ece(e)},mre(Xse)&&qle!==Object.prototype)){Nle=qle.then,rce||(Moe(qle,"then",(function(e,t){var n=this;return new Kle((function(e,t){Qne(Nle,n,e,t)})).then(e,t)}),{unsafe:!0}),Moe(qle,"catch",Yle.catch,{unsafe:!0}));try{delete qle.constructor}catch(Lge){}yue&&yue(qle,Yle)}pie({global:!0,wrap:!0,forced:oce},{Promise:Kle}),due(Kle,Vle,!1),function(){var e=wre("Promise"),t=goe.f;Zne&&e&&!e[Zse]&&t(e,Zse,{configurable:!0,get:function(){return this}})}(),jle=wre(Vle),pie({target:Vle,stat:!0,forced:oce},{reject:function(e){var t=Qle(this);return Qne(t.reject,void 0,e),t.promise}}),pie({target:Vle,stat:!0,forced:oce},{resolve:function(e){return function(e,t){if(doe(e),bre(t)&&t.constructor===e)return t;var n=Rle.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),pie({target:Vle,stat:!0,forced:ice},{all:function(e){var t=this,n=Qle(t),r=n.resolve,o=n.reject,i=Mle((function(){var n=Nre(t.resolve),i=[],a=0,u=1;Zue(e,(function(e){var s=a++,l=!1;u++,Qne(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Qle(t),r=n.reject,o=Mle((function(){var o=Nre(t.resolve);Zue(e,(function(e){Qne(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var gce=Roe.PROPER,vce=RegExp.prototype,yce=vce.toString,mce=sre(zie),bce=Xne((function(){return"/a/b"!=yce.call({source:"a",flags:"b"})})),wce=gce&&"toString"!=yce.name;(bce||wce)&&Moe(RegExp.prototype,"toString",(function(){var e=doe(this),t=Mie(e.source),n=e.flags;return"/"+t+"/"+Mie(void 0===n&&Ere(vce,e)&&!("flags"in vce)?mce(e):n)}),{unsafe:!0});var Ece=Roe.EXISTS,Dce=goe.f,xce=Function.prototype,Cce=sre(xce.toString),Sce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ace=sre(Sce.exec);Zne&&!Ece&&Dce(xce,"name",{configurable:!0,get:function(){try{return Ace(Sce,Cce(this))[1]}catch(se){return""}}});var Oce=new WeakMap;function kce(e){return e.getMenuConfig("uploadImage")}function Bce(e,t){return Gae(this,0,void 0,(function(){return qae(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;Sz(e,i,t.name,a),n("ok")}}}))]}))}))}function Fce(e,t){return Gae(this,0,void 0,(function(){var n,r,o,i;return qae(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Oce.get(e);if(null!=t)return t;var n=kce(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=u_(Wae(Wae({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return Sz(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;Sz(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;Sz(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Oce.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Tce(e,t){var n,r;return Gae(this,0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return qae(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=kce(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){var i,a,u,s;i=r,a=o,u=(t=e[n](t)).done,s=t.value,Promise.resolve(s).then((function(e){i({value:e,done:u})}),a)}))}}}(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Bce(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return Sz(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Fce(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var _ce=sre([].join),Pce=hre!=Object,jce=$se("join",",");pie({target:"Array",proto:!0,forced:Pce||!jce},{join:function(e){return _ce(yre(this),void 0===e?",":e)}}),qp&&(Ap.fn.append=qp),jp&&(Ap.fn.on=jp),Qp&&(Ap.fn.remove=Qp),Pp&&(Ap.fn.val=Pp),rh&&(Ap.fn.click=rh),Mp&&(Ap.fn.hide=Mp);var Nce=function(){function e(){this.title=X_("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return Az(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return Sz(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Ap("body"),s=Ap('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Tce(e,t)}))}},e}(),Ice={menus:[{key:"uploadImage",factory:function(){return new Nce},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(Az(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Tce(e,o):t(r)}},n}};Y_("en",{highLightModule:{selectLang:"Language"}}),Y_("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Lce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Rce(e){var t={exports:{}};return e(t,t.exports),t.exports}var Mce,zce,$ce=function(e){return e&&e.Math==Math&&e},Hce=$ce("object"==typeof globalThis&&globalThis)||$ce("object"==typeof window&&window)||$ce("object"==typeof self&&self)||$ce("object"==typeof Lce&&Lce)||function(){return this}()||Function("return this")(),Vce=Object.defineProperty,Uce=function(e,t){try{Vce(Hce,e,{value:t,configurable:!0,writable:!0})}catch(J_){Hce[e]=t}return t},Wce=Hce["__core-js_shared__"]||Uce("__core-js_shared__",{}),Gce=Rce((function(e){(e.exports=function(e,t){return Wce[e]||(Wce[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),qce=Function.prototype,Kce=qce.bind,Yce=qce.call,Xce=Kce&&Kce.bind(Yce),Zce=Kce?function(e){return e&&Xce(Yce,e)}:function(e){return e&&function(){return Yce.apply(e,arguments)}},Jce=Hce.TypeError,Qce=function(e){if(null==e)throw Jce("Can't call method on "+e);return e},efe=Hce.Object,tfe=function(e){return efe(Qce(e))},nfe=Zce({}.hasOwnProperty),rfe=Object.hasOwn||function(e,t){return nfe(tfe(e),t)},ofe=0,ife=Math.random(),afe=Zce(1..toString),ufe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+afe(++ofe+ife,36)},sfe=function(e){return"function"==typeof e},lfe=function(e,t){return arguments.length<2?function(e){return sfe(e)?e:void 0}(Hce[e]):Hce[e]&&Hce[e][t]},cfe=lfe("navigator","userAgent")||"",ffe=Hce.process,dfe=Hce.Deno,pfe=ffe&&ffe.versions||dfe&&dfe.version,hfe=pfe&&pfe.v8;hfe&&(zce=(Mce=hfe.split("."))[0]>0&&Mce[0]<4?1:+(Mce[0]+Mce[1])),!zce&&cfe&&(!(Mce=cfe.match(/Edge\/(\d+)/))||Mce[1]>=74)&&(Mce=cfe.match(/Chrome\/(\d+)/))&&(zce=+Mce[1]);var gfe=zce,vfe=function(e){try{return!!e()}catch(t){return!0}},yfe=!!Object.getOwnPropertySymbols&&!vfe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gfe&&gfe<41})),mfe=yfe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bfe=Gce("wks"),wfe=Hce.Symbol,Efe=wfe&&wfe.for,Dfe=mfe?wfe:wfe&&wfe.withoutSetter||ufe,xfe=function(e){if(!rfe(bfe,e)||!yfe&&"string"!=typeof bfe[e]){var t="Symbol."+e;yfe&&rfe(wfe,e)?bfe[e]=wfe[e]:bfe[e]=mfe&&Efe?Efe(t):Dfe(t)}return bfe[e]},Cfe={};Cfe[xfe("toStringTag")]="z";var Sfe="[object z]"===String(Cfe),Afe=!vfe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ofe=function(e){return"object"==typeof e?null!==e:sfe(e)},kfe=Hce.document,Bfe=Ofe(kfe)&&Ofe(kfe.createElement),Ffe=function(e){return Bfe?kfe.createElement(e):{}},Tfe=!Afe&&!vfe((function(){return 7!=Object.defineProperty(Ffe("div"),"a",{get:function(){return 7}}).a})),_fe=Hce.String,Pfe=Hce.TypeError,jfe=function(e){if(Ofe(e))return e;throw Pfe(_fe(e)+" is not an object")},Nfe=Function.prototype.call,Ife=Nfe.bind?Nfe.bind(Nfe):function(){return Nfe.apply(Nfe,arguments)},Lfe=Zce({}.isPrototypeOf),Rfe=Hce.Object,Mfe=mfe?function(e){return"symbol"==typeof e}:function(e){var t=lfe("Symbol");return sfe(t)&&Lfe(t.prototype,Rfe(e))},zfe=Hce.String,$fe=function(e){try{return zfe(e)}catch(t){return"Object"}},Hfe=Hce.TypeError,Vfe=function(e){if(sfe(e))return e;throw Hfe($fe(e)+" is not a function")},Ufe=function(e,t){var n=e[t];return null==n?void 0:Vfe(n)},Wfe=Hce.TypeError,Gfe=Hce.TypeError,qfe=xfe("toPrimitive"),Kfe=function(e){var t=function(e){if(!Ofe(e)||Mfe(e))return e;var t,n=Ufe(e,qfe);if(n){if(t=Ife(n,e,"string"),!Ofe(t)||Mfe(t))return t;throw Gfe("Can't convert object to primitive value")}return function(e){var t,n;if(sfe(t=e.toString)&&!Ofe(n=Ife(t,e)))return n;if(sfe(t=e.valueOf)&&!Ofe(n=Ife(t,e)))return n;throw Wfe("Can't convert object to primitive value")}(e)}(e);return Mfe(t)?t:t+""},Yfe=Hce.TypeError,Xfe=Object.defineProperty,Zfe={f:Afe?Xfe:function(e,t,n){if(jfe(e),t=Kfe(t),jfe(n),Tfe)try{return Xfe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Yfe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Jfe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Qfe=Afe?function(e,t,n){return Zfe.f(e,t,Jfe(1,n))}:function(e,t,n){return e[t]=n,e},ede=Zce(Function.toString);sfe(Wce.inspectSource)||(Wce.inspectSource=function(e){return ede(e)});var tde,nde,rde,ode=Wce.inspectSource,ide=Hce.WeakMap,ade=sfe(ide)&&/native code/.test(ode(ide)),ude=Gce("keys"),sde=function(e){return ude[e]||(ude[e]=ufe(e))},lde={},cde=Hce.TypeError,fde=Hce.WeakMap;if(ade||Wce.state){var dde=Wce.state||(Wce.state=new fde),pde=Zce(dde.get),hde=Zce(dde.has),gde=Zce(dde.set);tde=function(e,t){if(hde(dde,e))throw new cde("Object already initialized");return t.facade=e,gde(dde,e,t),t},nde=function(e){return pde(dde,e)||{}},rde=function(e){return hde(dde,e)}}else{var vde=sde("state");lde[vde]=!0,tde=function(e,t){if(rfe(e,vde))throw new cde("Object already initialized");return t.facade=e,Qfe(e,vde,t),t},nde=function(e){return rfe(e,vde)?e[vde]:{}},rde=function(e){return rfe(e,vde)}}var yde={get:nde,enforce:function(e){return rde(e)?nde(e):tde(e,{})}},mde=Function.prototype,bde=Afe&&Object.getOwnPropertyDescriptor,wde=rfe(mde,"name"),Ede={PROPER:wde&&"something"===function(){}.name,CONFIGURABLE:wde&&(!Afe||Afe&&bde(mde,"name").configurable)},Dde=Rce((function(e){var t=Ede.CONFIGURABLE,n=yde.get,r=yde.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;sfe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!rfe(i,"name")||t&&i.name!==f)&&Qfe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Hce?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Qfe(e,n,i)):l?e[n]=i:Uce(n,i)})(Function.prototype,"toString",(function(){return sfe(this)&&n(this).source||ode(this)}))})),xde=Zce({}.toString),Cde=Zce("".slice),Sde=function(e){return Cde(xde(e),8,-1)},Ade=xfe("toStringTag"),Ode=Hce.Object,kde="Arguments"==Sde(function(){return arguments}()),Bde=Sfe?Sde:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Ode(e),Ade))?n:kde?Sde(t):"Object"==(r=Sde(t))&&sfe(t.callee)?"Arguments":r},Fde=Sfe?{}.toString:function(){return"[object "+Bde(this)+"]"};Sfe||Dde(Object.prototype,"toString",Fde,{unsafe:!0});var Tde,_de={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},Pde=Ffe("span").classList,jde=Pde&&Pde.constructor&&Pde.constructor.prototype,Nde=jde===Object.prototype?void 0:jde,Ide=Zce(Zce.bind),Lde=Hce.Object,Rde=Zce("".split),Mde=vfe((function(){return!Lde("z").propertyIsEnumerable(0)}))?function(e){return"String"==Sde(e)?Rde(e,""):Lde(e)}:Lde,zde=Math.ceil,$de=Math.floor,Hde=function(e){var t=+e;return t!=t||0===t?0:(t>0?$de:zde)(t)},Vde=Math.min,Ude=function(e){return e>0?Vde(Hde(e),9007199254740991):0},Wde=function(e){return Ude(e.length)},Gde=Array.isArray||function(e){return"Array"==Sde(e)},qde=function(){},Kde=[],Yde=lfe("Reflect","construct"),Xde=/^\s*(?:class|function)\b/,Zde=Zce(Xde.exec),Jde=!Xde.exec(qde),Qde=function(e){if(!sfe(e))return!1;try{return Yde(qde,Kde,e),!0}catch(t){return!1}},epe=!Yde||vfe((function(){var e;return Qde(Qde.call)||!Qde(Object)||!Qde((function(){e=!0}))||e}))?function(e){if(!sfe(e))return!1;switch(Bde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Jde||!!Zde(Xde,ode(e))}:Qde,tpe=xfe("species"),npe=Hce.Array,rpe=function(e,t){return new(Gde(n=e)&&(r=n.constructor,(epe(r)&&(r===npe||Gde(r.prototype))||Ofe(r)&&null===(r=r[tpe]))&&(r=void 0)),void 0===r?npe:r)(0===t?0:t);var n,r},ope=Zce([].push),ipe=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=tfe(s),g=Mde(h),v=function(e,t){return Vfe(e),void 0===t?e:Ide?Ide(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Wde(g),m=0,b=f||rpe,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:ope(w,d)}else switch(e){case 4:return!1;case 7:ope(w,d)}return i?-1:r||o?o:w}},ape=[ipe(0),ipe(1),ipe(2),ipe(3),ipe(4),ipe(5),ipe(6),ipe(7)][0],upe=(Tde=[].forEach)&&vfe((function(){Tde.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return ape(this,e,arguments.length>1?arguments[1]:void 0)},spe=function(e){if(e&&e.forEach!==upe)try{Qfe(e,"forEach",upe)}catch(t){e.forEach=upe}};for(var lpe in _de)_de[lpe]&&spe(Hce[lpe]&&Hce[lpe].prototype);spe(Nde);var cpe={}.propertyIsEnumerable,fpe=Object.getOwnPropertyDescriptor,dpe={f:fpe&&!cpe.call({1:2},1)?function(e){var t=fpe(this,e);return!!t&&t.enumerable}:cpe},ppe=function(e){return Mde(Qce(e))},hpe=Object.getOwnPropertyDescriptor,gpe={f:Afe?hpe:function(e,t){if(e=ppe(e),t=Kfe(t),Tfe)try{return hpe(e,t)}catch(n){}if(rfe(e,t))return Jfe(!Ife(dpe.f,e,t),e[t])}},vpe=Math.max,ype=Math.min,mpe=function(e,t){var n=Hde(e);return n<0?vpe(n+t,0):ype(n,t)},bpe=function(e){return function(t,n,r){var o,i=ppe(t),a=Wde(i),u=mpe(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}}(!1),wpe=Zce([].push),Epe=function(e,t){var n,r=ppe(e),o=0,i=[];for(n in r)!rfe(lde,n)&&rfe(r,n)&&wpe(i,n);for(;t.length>o;)rfe(r,n=t[o++])&&(~bpe(i,n)||wpe(i,n));return i},Dpe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xpe=Dpe.concat("length","prototype"),Cpe={f:Object.getOwnPropertyNames||function(e){return Epe(e,xpe)}},Spe={f:Object.getOwnPropertySymbols},Ape=Zce([].concat),Ope=lfe("Reflect","ownKeys")||function(e){var t=Cpe.f(jfe(e)),n=Spe.f;return n?Ape(t,n(e)):t},kpe=function(e,t){for(var n=Ope(t),r=Zfe.f,o=gpe.f,i=0;i<n.length;i++){var a=n[i];rfe(e,a)||r(e,a,o(t,a))}},Bpe=/#|\.prototype\./,Fpe=function(e,t){var n=_pe[Tpe(e)];return n==jpe||n!=Ppe&&(sfe(t)?vfe(t):!!t)},Tpe=Fpe.normalize=function(e){return String(e).replace(Bpe,".").toLowerCase()},_pe=Fpe.data={},Ppe=Fpe.NATIVE="N",jpe=Fpe.POLYFILL="P",Npe=Fpe,Ipe=gpe.f,Lpe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Hce:l?Hce[u]||Uce(u,{}):(Hce[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Ipe(n,r))&&a.value:n[r],!Npe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;kpe(i,o)}(e.sham||o&&o.sham)&&Qfe(i,"sham",!0),Dde(n,r,i,e)}},Rpe=Object.keys||function(e){return Epe(e,Dpe)},Mpe=Object.assign,zpe=Object.defineProperty,$pe=Zce([].concat),Hpe=!Mpe||vfe((function(){if(Afe&&1!==Mpe({b:1},Mpe(zpe({},"a",{enumerable:!0,get:function(){zpe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Mpe({},e)[n]||Rpe(Mpe({},t)).join("")!=r}))?function(e,t){for(var n=tfe(e),r=arguments.length,o=1,i=Spe.f,a=dpe.f;r>o;)for(var u,s=Mde(arguments[o++]),l=i?$pe(Rpe(s),i(s)):Rpe(s),c=l.length,f=0;c>f;)u=l[f++],Afe&&!Ife(a,s,u)||(n[u]=s[u]);return n}:Mpe;Lpe({target:"Object",stat:!0,forced:Object.assign!==Hpe},{assign:Hpe});var Vpe=Rce((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var E=g.pattern||g,D=r.next,x=s;D!==t.tail&&!(f&&x>=f.reach);x+=D.value.length,D=D.next){var C=D.value;if(t.length>e.length)return;if(!(C instanceof i)){var S,A=1;if(m){if(!(S=a(E,x,e,y)))break;var O=S.index,k=S.index+S[0].length,B=x;for(B+=D.value.length;O>=B;)B+=(D=D.next).value.length;if(x=B-=D.value.length,D.value instanceof i)continue;for(var F=D;F!==t.tail&&(B<k||"string"==typeof F.value);F=F.next)A++,B+=F.value.length;A--,C=e.slice(x,B),S.index-=x}else if(!(S=a(E,0,C,y)))continue;O=S.index;var T=S[0],_=C.slice(0,O),P=C.slice(O+T.length),j=x+C.length;f&&j>f.reach&&(f.reach=j);var N=D.prev;if(_&&(N=l(t,N,_),x+=_.length),c(t,N,A),D=l(t,N,new i(d,v?o.tokenize(T,v):T,b,T)),P&&l(t,D,P),A>1){var I={cause:d+","+h,reach:j};u(e,t,n,D.prev,x,I),f&&I.reach>f.reach&&(f.reach=I.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==Lce&&(Lce.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},C=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(C),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:x},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:x},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:x},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,g]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:x}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,D,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(D),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=S+"|"+C,k=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),B=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),F=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,T=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,B]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[F,T]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[F]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[B]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var _=/:[^}\r\n]+/.source,P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[k]),2),j=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[P,_]),N=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[N,_]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,_]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[j]),lookbehind:!0,greedy:!0,inside:L(j,P)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:L(I,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e})),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var Upe=["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 Wpe(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Wpe(t)}),0)}var Gpe,qpe=Hce.String,Kpe=function(e){if("Symbol"===Bde(e))throw TypeError("Cannot convert a Symbol value to a string");return qpe(e)},Ype=function(){var e=jfe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Xpe=Hce.RegExp,Zpe=vfe((function(){var e=Xpe("a","y");return e.lastIndex=2,null!=e.exec("abcd")}));Zpe||vfe((function(){return!Xpe("a","y").sticky}));var Jpe={BROKEN_CARET:Zpe||vfe((function(){var e=Xpe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),UNSUPPORTED_Y:Zpe},Qpe=Afe?Object.defineProperties:function(e,t){jfe(e);for(var n,r=ppe(t),o=Rpe(t),i=o.length,a=0;i>a;)Zfe.f(e,n=o[a++],r[n]);return e},ehe=lfe("document","documentElement"),the=sde("IE_PROTO"),nhe=function(){},rhe=function(e){return"<script>"+e+"<\/script>"},ohe=function(e){e.write(rhe("")),e.close();var t=e.parentWindow.Object;return e=null,t},ihe=function(){try{Gpe=new ActiveXObject("htmlfile")}catch(r){}var e,t;ihe="undefined"!=typeof document?document.domain&&Gpe?ohe(Gpe):((t=Ffe("iframe")).style.display="none",ehe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(rhe("document.F=Object")),e.close(),e.F):ohe(Gpe);for(var n=Dpe.length;n--;)delete ihe.prototype[Dpe[n]];return ihe()};lde[the]=!0;var ahe,uhe,she=Object.create||function(e,t){var n;return null!==e?(nhe.prototype=jfe(e),n=new nhe,nhe.prototype=null,n[the]=e):n=ihe(),void 0===t?n:Qpe(n,t)},lhe=Hce.RegExp,che=vfe((function(){var e=lhe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),fhe=Hce.RegExp,dhe=vfe((function(){var e=fhe("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),phe=yde.get,hhe=Gce("native-string-replace",String.prototype.replace),ghe=RegExp.prototype.exec,vhe=ghe,yhe=Zce("".charAt),mhe=Zce("".indexOf),bhe=Zce("".replace),whe=Zce("".slice),Ehe=(uhe=/b*/g,Ife(ghe,ahe=/a/,"a"),Ife(ghe,uhe,"a"),0!==ahe.lastIndex||0!==uhe.lastIndex),Dhe=Jpe.BROKEN_CARET,xhe=void 0!==/()??/.exec("")[1];(Ehe||xhe||Dhe||che||dhe)&&(vhe=function(e){var t,n,r,o,i,a,u,s=this,l=phe(s),c=Kpe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ife(vhe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Dhe&&s.sticky,h=Ife(Ype,s),g=s.source,v=0,y=c;if(p&&(h=bhe(h,"y",""),-1===mhe(h,"g")&&(h+="g"),y=whe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==yhe(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),xhe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ehe&&(r=s.lastIndex),o=Ife(ghe,p?n:s,y),p?o?(o.input=whe(o.input,v),o[0]=whe(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ehe&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xhe&&o&&o.length>1&&Ife(hhe,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=she(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Che=vhe;Lpe({target:"RegExp",proto:!0,forced:/./.exec!==Che},{exec:Che});var She=Function.prototype,Ahe=She.apply,Ohe=She.bind,khe=She.call,Bhe="object"==typeof Reflect&&Reflect.apply||(Ohe?khe.bind(Ahe):function(){return khe.apply(Ahe,arguments)}),Fhe=xfe("species"),The=RegExp.prototype,_he=xfe("match"),Phe=Hce.TypeError,jhe=xfe("species"),Nhe=Zce("".charAt),Ihe=Zce("".charCodeAt),Lhe=Zce("".slice),Rhe=function(e){return function(t,n){var r,o,i=Kpe(Qce(t)),a=Hde(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ihe(i,a))<55296||r>56319||a+1===u||(o=Ihe(i,a+1))<56320||o>57343?e?Nhe(i,a):r:e?Lhe(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Mhe=function(e,t,n){return t+(n?Rhe(e,t).length:1)},zhe=Hce.Array,$he=Math.max,Hhe=function(e,t,n){for(var r,o,i,a,u=Wde(e),s=mpe(t,u),l=mpe(void 0===n?u:n,u),c=zhe($he(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Kfe(o))in r?Zfe.f(r,a,Jfe(0,i)):r[a]=i;return c.length=f,c},Vhe=Hce.TypeError,Uhe=function(e,t){var n=e.exec;if(sfe(n)){var r=Ife(n,e,t);return null!==r&&jfe(r),r}if("RegExp"===Sde(e))return Ife(Che,e,t);throw Vhe("RegExp#exec called on incompatible receiver")},Whe=Jpe.UNSUPPORTED_Y,Ghe=Math.min,qhe=[].push,Khe=Zce(/./.exec),Yhe=Zce(qhe),Xhe=Zce("".slice);!function(e,t,n,r){var o,i,a,u=xfe(e),s=!vfe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!vfe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Fhe]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=Zce(/./[u]),f=(o=u,i=""[e],a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var n,r,o=Kpe(Qce(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Ofe(n=e)||!(void 0!==(r=n[_he])?r:"RegExp"==Sde(n)))return Ife(i,o,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Ife(Che,p,o))&&!((s=p.lastIndex)>d&&(Yhe(c,Xhe(o,d,u.index)),u.length>1&&u.index<o.length&&Bhe(qhe,c,Hhe(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&Khe(p,"")||Yhe(c,""):Yhe(c,Xhe(o,d)),c.length>a?Hhe(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Ife(i,this,e,t)}:i,[function(e,t){var n=Qce(this),r=null==e?void 0:Ufe(e,o);return r?Ife(r,e,n,t):Ife(a,Kpe(n),e,t)},function(e,t){var n=jfe(this),r=Kpe(e),o=function(e,t,n,r,o){var i=Zce(e),a=t.exec;return a===Che||a===The.exec?s&&!o?{done:!0,value:c(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(a,n,r,t,a!==i);if(o.done)return o.value;var u,l,f,d=(u=RegExp,void 0===(f=jfe(n).constructor)||null==(l=jfe(f)[jhe])?u:function(e){if(epe(e))return e;throw Phe($fe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Whe?"g":"y"),g=new d(Whe?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===Uhe(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=Whe?0:m;var w,E=Uhe(g,Whe?Xhe(r,m):r);if(null===E||(w=Ghe(Ude(g.lastIndex+(Whe?m:0)),r.length))===y)m=Mhe(r,m,p);else{if(Yhe(b,Xhe(r,y,m)),b.length===v)return b;for(var D=1;D<=E.length-1;D++)if(Yhe(b,E[D]),b.length===v)return b;m=y=w}}return Yhe(b,Xhe(r,y)),b}]);Dde(String.prototype,e,f[0]),Dde(The,u,f[1])}r&&Qfe(The[u],"sham",!0)}("split",0,!!vfe((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]})),Whe),Lpe({global:!0},{globalThis:Hce}),Fp&&(Ap.fn.attr=Fp);var Zhe=Ede.PROPER,Jhe=RegExp.prototype,Qhe=Jhe.toString,ege=Zce(Ype),tge=vfe((function(){return"/a/b"!=Qhe.call({source:"a",flags:"b"})})),nge=Zhe&&"toString"!=Qhe.name;(tge||nge)&&Dde(RegExp.prototype,"toString",(function(){var e=jfe(this),t=Kpe(e.source),n=e.flags;return"/"+t+"/"+Kpe(void 0===n&&Lfe(Jhe,e)&&!("flags"in Jhe)?ege(e):n)}),{unsafe:!0});var rge=function(){function e(){this.title=X_("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!mf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};dd.setNodes(e,n,{match:function(e){return mO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=mO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=mO.getParentNode(e,t);return mf.isElement(n)?"pre"!==n.type?null:t:null},e}(),oge={renderStyle:function(e,t){var n=e,r=t,o="";return Upe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;if("code"!==mO.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new rge},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},ige=/"/g,age=Zce("".replace);Lpe({target:"String",proto:!0,forced:vfe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=Kpe(Qce(this)),r="<a",(r+=' name="'+age(Kpe(t),ige,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var uge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!Kf.isText(e))return null;var t=mO.getParentNode(null,e);if(t&&"code"===mO.getNodeType(t)){var n=mO.getParentNode(null,t);if(n&&"pre"===mO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=Vpe.languages[t];return n?Vpe.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+Wpe(g);"string"!=typeof g&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(y){t={error:y}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},sge=function(){return sge=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},sge.apply(this,arguments)},lge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=sge(sge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=sge(sge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=sge(sge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=sge(sge({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n,r,o=e.key,i=e.factory,a=e.config,u=xS(xS({},a),t||{});if(null!=EO[o])throw new Error("Duplicated key '"+o+"' in menu items");EO[o]=i,n=o,null!=(r=u)&&(wO[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;eT[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,QF.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;PO[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,_O.push(t)},e.registerPreParseHtml=function(e){var t;t=e,EB.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;xB[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,DB.push(t)},e.registerModule=function(e){cge(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function cge(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return lge.registerMenu(e)})),n&&n.forEach((function(e){return lge.registerRenderElem(e)})),r&&lge.registerRenderStyle(r),o&&o.forEach((function(e){return lge.registerElemToHtml(e)})),i&&lge.registerStyleToHtml(i),a&&a.forEach((function(e){return lge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return lge.registerParseElemHtml(e)})),s&&lge.registerParseStyleHtml(s),l&&lge.registerPlugin(l)}TG.forEach((function(e){return cge(e)})),cge(GJ),cge(C6),cge(Vne),cge(Ice),cge(oge);var fge='<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>',dge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},pge={hoverbarKeys:sge(sge({},dge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};lge.setEditorConfig(sge(sge({},pge),{decorate:uge}));var hge={hoverbarKeys:dge};lge.setSimpleEditorConfig(sge(sge({},hge),{decorate:uge}));var gge={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:X_("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:X_("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:X_("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:X_("editor.image"),iconSvg:fge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:X_("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};lge.setToolbarConfig(gge);var vge={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:X_("editor.image"),iconSvg:fge,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};lge.setSimpleToolbarConfig(vge);var yge=Object.defineProperty,mge=Object.defineProperties,bge=Object.getOwnPropertyDescriptors,wge=Object.getOwnPropertySymbols,Ege=Object.prototype.hasOwnProperty,Dge=Object.prototype.propertyIsEnumerable,xge=(e,t,n)=>t in e?yge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cge=(e,t)=>{for(var n in t||(t={}))Ege.call(t,n)&&xge(e,n,t[n]);if(wge)for(var n of wge(t))Dge.call(t,n)&&xge(e,n,t[n]);return e},Sge=(e,t)=>mge(e,bge(t));function Age(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var Oge=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const kge=e({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=r(null),s=o(null),l=r(""),c=()=>{if(!n.value)return;const r=u(e.defaultContent);!function(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?lge.simpleEditorConfig:lge.editorConfig,c=sge(sge({},l.hoverbarKeys||{}),u.hoverbarKeys||{});YT({selector:n,config:sge(sge(sge({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:lge.plugins})}({selector:n.value,mode:e.mode,content:r||[],html:e.defaultHtml||e.modelValue||"",config:Sge(Cge({},e.defaultConfig),{onCreated(n){if(s.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=Age("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(l.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=Age("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=Age("onDestroyed");throw new Error(e)}},onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=Age("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=Age("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=Age("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=Age("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=Age("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,(e=>{o=e})),o}})})};return i((()=>{c()})),a((()=>e.modelValue),(e=>{e!==l.value&&function(e){const t=s.value;if(null==t)return;const n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);if(t.enable(),t.focus(),t.select([]),t.deleteFragment(),dd.setNodes(t,{type:"paragraph"},{mode:"highest"}),t.dangerouslyInsertHtml(e),!r)return t.deselect(),void t.blur();if(n)return t.deselect(),void t.disable();try{t.select(JSON.parse(o))}catch(i){t.select(Cf.start(t,[]))}}(e)})),{box:n}}}),Bge={ref:"box",style:{height:"100%"}};var Fge=Oge(kge,[["render",function(e,r,o,i,a,u){return n(),t("div",Bge,null,512)}]]);const Tge=e({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=r(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");mO.getToolbar(n)||function(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?lge.simpleToolbarConfig:lge.toolbarConfig;(function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(tF(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=xS({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new e_(n,i);AA.set(a,e),OA.set(e,a)})(n,{selector:t,config:sge(sge({},u),o)})}({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return s((()=>{const{editor:t}=e;null!=t&&n(t)})),{selector:t}}}),_ge={ref:"selector"};var Pge=Oge(Tge,[["render",function(e,r,o,i,a,u){return n(),t("div",_ge,null,512)}]]);const jge={class:"editor-wrapper"},Nge=g(e({__name:"index",props:{modelValue:{type:[String],default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:i}){const a=e,u=l(a,"modelValue",i),s=o(),g=r("default"),v=r({excludeKeys:["uploadVideo","insertVideo"]}),y=r({placeholder:"请输入内容...",MENU_CONF:{uploadImage:{async customUpload(e,t){c(e).then((e=>{const n=e.data.url;t(n)}))}}}}),m=e=>{s.value=e,a.disabled?e.disable():e.enable()};function b(e){u.value=e.getHtml()}return f((()=>{const e=s.value;null!=e&&e.destroy()})),(e,r)=>(n(),t("div",jge,[d(p(Pge),{id:"toolbar-container",editor:p(s),"default-config":p(v),mode:p(g)},null,8,["editor","default-config","mode"]),d(p(Fge),{id:"editor-container",modelValue:p(u),"onUpdate:modelValue":r[0]||(r[0]=e=>h(u)?u.value=e:null),"default-config":p(y),mode:p(g),onOnChange:b,onOnCreated:m},null,8,["modelValue","default-config","mode"])]))}}),[["__scopeId","data-v-1338f8e6"]]);export{Nge as _};