wangEditor.c4e29644.1730902649514.js 799 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import{aD as e,r as t,a4 as n,o as r,w as o,aE as i,aF as a,b as u,c as s,u as l,W as c,q as f,C as d,t as p,k as h,j as g,F as v}from"./index.34872ab0.1730902649514.js";var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m(e){var t={exports:{}};return e(t,t.exports),t.exports}var b,w,E=function(e){return e&&e.Math==Math&&e},D=E("object"==typeof globalThis&&globalThis)||E("object"==typeof window&&window)||E("object"==typeof self&&self)||E("object"==typeof y&&y)||function(){return this}()||Function("return this")(),C=Function.prototype,S=C.apply,x=C.bind,A=C.call,O="object"==typeof Reflect&&Reflect.apply||(x?A.bind(S):function(){return A.apply(S,arguments)}),k=Function.prototype,B=k.bind,F=k.call,T=B&&B.bind(F),_=B?function(e){return e&&T(F,e)}:function(e){return e&&function(){return F.apply(e,arguments)}},P=function(e){return"function"==typeof e},j=function(e){try{return!!e()}catch(t){return!0}},N=!j((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I=Function.prototype.call,L=I.bind?I.bind(I):function(){return I.apply(I,arguments)},R={}.propertyIsEnumerable,M=Object.getOwnPropertyDescriptor,z=M&&!R.call({1:2},1)?function(e){var t=M(this,e);return!!t&&t.enumerable}:R,$={f:z},H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},V=_({}.toString),U=_("".slice),W=function(e){return U(V(e),8,-1)},G=D.Object,q=_("".split),K=j((function(){return!G("z").propertyIsEnumerable(0)}))?function(e){return"String"==W(e)?q(e,""):G(e)}:G,Y=D.TypeError,X=function(e){if(null==e)throw Y("Can't call method on "+e);return e},Z=function(e){return K(X(e))},J=function(e){return"object"==typeof e?null!==e:P(e)},Q={},ee=function(e){return P(e)?e:void 0},te=function(e,t){return arguments.length<2?ee(Q[e])||ee(D[e]):Q[e]&&Q[e][t]||D[e]&&D[e][t]},ne=_({}.isPrototypeOf),re=te("navigator","userAgent")||"",oe=D.process,ie=D.Deno,ae=oe&&oe.versions||ie&&ie.version,ue=ae&&ae.v8;ue&&(w=(b=ue.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!w&&re&&(!(b=re.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=re.match(/Chrome\/(\d+)/))&&(w=+b[1]);var se,le=w,ce=!!Object.getOwnPropertySymbols&&!j((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=D.Object,pe=fe?function(e){return"symbol"==typeof e}:function(e){var t=te("Symbol");return P(t)&&ne(t.prototype,de(e))},he=D.String,ge=function(e){try{return he(e)}catch(t){return"Object"}},ve=D.TypeError,ye=function(e){if(P(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=D.TypeError,we=Object.defineProperty,Ee=D["__core-js_shared__"]||function(e,t){try{we(D,e,{value:t,configurable:!0,writable:!0})}catch(kP){D[e]=t}return t}("__core-js_shared__",{}),De=m((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)"})})),Ce=D.Object,Se=function(e){return Ce(X(e))},xe=_({}.hasOwnProperty),Ae=Object.hasOwn||function(e,t){return xe(Se(e),t)},Oe=0,ke=Math.random(),Be=_(1..toString),Fe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Be(++Oe+ke,36)},Te=De("wks"),_e=D.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=D.TypeError,Le=Ne("toPrimitive"),Re=function(e){var t=function(e,t){if(!J(e)||pe(e))return e;var n,r=me(e,Le);if(r){if(void 0===t&&(t="default"),n=L(r,e,t),!J(n)||pe(n))return n;throw Ie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&P(n=e.toString)&&!J(r=L(n,e)))return r;if(P(n=e.valueOf)&&!J(r=L(n,e)))return r;if("string"!==t&&P(n=e.toString)&&!J(r=L(n,e)))return r;throw be("Can't convert object to primitive value")}(e,t)}(e,"string");return pe(t)?t:t+""},Me=D.document,ze=J(Me)&&J(Me.createElement),$e=function(e){return ze?Me.createElement(e):{}},He=!N&&!j((function(){return 7!=Object.defineProperty($e("div"),"a",{get:function(){return 7}}).a})),Ve=Object.getOwnPropertyDescriptor,Ue=N?Ve:function(e,t){if(e=Z(e),t=Re(t),He)try{return Ve(e,t)}catch(n){}if(Ae(e,t))return H(!L($.f,e,t),e[t])},We={f:Ue},Ge=/#|\.prototype\./,qe=function(e,t){var n=Ye[Ke(e)];return n==Ze||n!=Xe&&(P(t)?j(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=_(_.bind),et=function(e,t){return ye(e),void 0===t?e:Qe?Qe(e,t):function(){return e.apply(t,arguments)}},tt=D.String,nt=D.TypeError,rt=function(e){if(J(e))return e;throw nt(tt(e)+" is not an object")},ot=D.TypeError,it=Object.defineProperty,at=N?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=N?function(e,t,n){return ut.f(e,t,H(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 O(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?D:d?D[c]:(D[c]||{}).prototype,g=f?Q:Q[c]||st(Q,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,D):e.wrap&&n?ct(i):p&&P(i)?_(i):i,(e.sham||i&&i.sham||a&&a.sham)&&st(s,"sham",!0),st(g,o,s),p&&(Ae(Q,r=c+"Prototype")||st(Q,r,{}),st(Q[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=!j((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gt=pt("IE_PROTO"),vt=D.Object,yt=vt.prototype,mt=ht?vt.getPrototypeOf:function(e){var t=Se(e);if(Ae(t,gt))return t[gt];var n=t.constructor;return P(n)&&t instanceof n?n.prototype:t instanceof vt?yt:null},bt=D.String,wt=D.TypeError,Et=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=_(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||P(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,Ct=Math.floor,St=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ct:Dt)(t)},xt=Math.max,At=Math.min,Ot=function(e,t){var n=St(e);return n<0?xt(n+t,0):At(n,t)},kt=Math.min,Bt=function(e){return(t=e.length)>0?kt(St(t),9007199254740991):0;var t},Ft=function(e){return function(t,n,r){var o,i=Z(t),a=Bt(i),u=Ot(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}},Tt={includes:Ft(!0),indexOf:Ft(!1)},_t={},Pt=Tt.indexOf,jt=_([].push),Nt=function(e,t){var n,r=Z(e),o=0,i=[];for(n in r)!Ae(_t,n)&&Ae(r,n)&&jt(i,n);for(;t.length>o;)Ae(r,n=t[o++])&&(~Pt(i,n)||jt(i,n));return i},It=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lt=It.concat("length","prototype"),Rt=Object.getOwnPropertyNames||function(e){return Nt(e,Lt)},Mt={f:Rt},zt={f:Object.getOwnPropertySymbols},$t=_([].concat),Ht=te("Reflect","ownKeys")||function(e){var t=Mt.f(rt(e)),n=zt.f;return n?$t(t,n(e)):t},Vt=Object.keys||function(e){return Nt(e,It)},Ut=N?Object.defineProperties:function(e,t){rt(e);for(var n,r=Z(t),o=Vt(t),i=o.length,a=0;i>a;)ut.f(e,n=o[a++],r[n]);return e},Wt=te("document","documentElement"),Gt=pt("IE_PROTO"),qt=function(){},Kt=function(e){return"<script>"+e+"<\/script>"},Yt=function(e){e.write(Kt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Xt=function(){try{se=new ActiveXObject("htmlfile")}catch(r){}var e,t;Xt="undefined"!=typeof document?document.domain&&se?Yt(se):((t=$e("iframe")).style.display="none",Wt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Kt("document.F=Object")),e.close(),e.F):Yt(se);for(var n=It.length;n--;)delete Xt.prototype[It[n]];return Xt()};_t[Gt]=!0;var Zt=Object.create||function(e,t){var n;return null!==e?(qt.prototype=rt(e),n=new qt,qt.prototype=null,n[Gt]=e):n=Xt(),void 0===t?n:Ut(n,t)},Jt=function(e,t,n){var r=Re(t);r in e?ut.f(e,r,H(0,n)):e[r]=n},Qt=D.Array,en=Math.max,tn=function(e,t,n){for(var r=Bt(e),o=Ot(t,r),i=Ot(void 0===n?r:n,r),a=Qt(en(i-o,0)),u=0;o<i;o++,u++)Jt(a,u,e[o]);return a.length=u,a},nn=_("".replace),rn=_("".split),on=_([].join),an=String(Error("zxcasd").stack),un=/\n\s*at [^:]*:[^\n]*/,sn=un.test(an),ln=/@[^\n]*\n/.test(an)&&!/zxcasd/.test(an),cn=function(e,t){if("string"!=typeof e)return e;if(sn)for(;t--;)e=nn(e,un,"");else if(ln)return on(tn(rn(e,"\n"),t),"\n");return e},fn=function(e,t){J(t)&&"cause"in t&&st(e,"cause",t.cause)},dn={},pn=Ne("iterator"),hn=Array.prototype,gn={};gn[Ne("toStringTag")]="z";var vn="[object z]"===String(gn),yn=Ne("toStringTag"),mn=D.Object,bn="Arguments"==W(function(){return arguments}()),wn=vn?W: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=mn(e),yn))?n:bn?W(t):"Object"==(r=W(t))&&P(t.callee)?"Arguments":r},En=Ne("iterator"),Dn=function(e){if(null!=e)return me(e,En)||me(e,"@@iterator")||dn[wn(e)]},Cn=D.TypeError,Sn=function(e,t,n){var r,o;rt(e);try{if(!(r=me(e,"return"))){if("throw"===t)throw n;return n}r=L(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return rt(r),n},xn=D.TypeError,An=function(e,t){this.stopped=e,this.result=t},On=An.prototype,kn=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&&Sn(r,"normal",e),new An(!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=Dn(e)))throw xn(ge(e)+" is not iterable");if(void 0!==(c=o)&&(dn.Array===c||hn[pn]===c)){for(i=0,a=Bt(e);a>i;i++)if((u=y(e[i]))&&ne(On,u))return u;return new An(!1)}r=function(e,t){var n=arguments.length<2?Dn(e):t;if(ye(n))return rt(L(n,e));throw Cn(ge(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=L(s,r)).done;){try{u=y(l.value)}catch(c){Sn(r,"throw",c)}if("object"==typeof u&&u&&ne(On,u))return u}return new An(!1)},Bn=D.String,Fn=function(e){if("Symbol"===wn(e))throw TypeError("Cannot convert a Symbol value to a string");return Bn(e)},Tn=function(e,t){return void 0===e?arguments.length<2?"":t:Fn(e)},_n=!j((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",H(1,7)),7!==e.stack)})),Pn=Ne("toStringTag"),jn=D.Error,Nn=[].push,In=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ne(Ln,this);Et?n=Et(new jn(void 0),o?mt(this):Ln):(n=o?this:Zt(Ln),st(n,Pn,"Error")),st(n,"message",Tn(t,"")),_n&&st(n,"stack",cn(n.stack,1)),fn(n,r);var i=[];return kn(e,Nn,{that:i}),st(n,"errors",i),n};Et?Et(In,jn):function(e,t){for(var n=Ht(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))}}(In,jn);var Ln=In.prototype=Zt(jn.prototype,{constructor:H(1,In),message:H(1,""),name:H(1,"AggregateError")});ft({global:!0},{AggregateError:In});var Rn=_(Function.toString);P(Ee.inspectSource)||(Ee.inspectSource=function(e){return Rn(e)});var Mn,zn,$n,Hn=Ee.inspectSource,Vn=D.WeakMap,Un=P(Vn)&&/native code/.test(Hn(Vn)),Wn=D.TypeError,Gn=D.WeakMap;if(Un||Ee.state){var qn=Ee.state||(Ee.state=new Gn),Kn=_(qn.get),Yn=_(qn.has),Xn=_(qn.set);Mn=function(e,t){if(Yn(qn,e))throw new Wn("Object already initialized");return t.facade=e,Xn(qn,e,t),t},zn=function(e){return Kn(qn,e)||{}},$n=function(e){return Yn(qn,e)}}else{var Zn=pt("state");_t[Zn]=!0,Mn=function(e,t){if(Ae(e,Zn))throw new Wn("Object already initialized");return t.facade=e,st(e,Zn,t),t},zn=function(e){return Ae(e,Zn)?e[Zn]:{}},$n=function(e){return Ae(e,Zn)}}var Jn,Qn,er,tr={set:Mn,get:zn,has:$n,enforce:function(e){return $n(e)?zn(e):Mn(e,{})},getterFor:function(e){return function(t){var n;if(!J(t)||(n=zn(t)).type!==e)throw Wn("Incompatible receiver, "+e+" required");return n}}},nr=Function.prototype,rr=N&&Object.getOwnPropertyDescriptor,or=Ae(nr,"name"),ir={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!N||N&&rr(nr,"name").configurable)},ar=function(e,t,n,r){r&&r.enumerable?e[t]=n:st(e,t,n)},ur=Ne("iterator"),sr=!1;[].keys&&("next"in(er=[].keys())?(Qn=mt(mt(er)))!==Object.prototype&&(Jn=Qn):sr=!0);var lr=null==Jn||j((function(){var e={};return Jn[ur].call(e)!==e}));Jn=lr?{}:Zt(Jn),P(Jn[ur])||ar(Jn,ur,(function(){return this}));var cr={IteratorPrototype:Jn,BUGGY_SAFARI_ITERATORS:sr},fr=vn?{}.toString:function(){return"[object "+wn(this)+"]"},dr=ut.f,pr=Ne("toStringTag"),hr=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ae(o,pr)||dr(o,pr,{configurable:!0,value:t}),r&&!vn&&st(o,"toString",fr)}},gr=cr.IteratorPrototype,vr=function(){return this},yr=ir.PROPER,mr=cr.BUGGY_SAFARI_ITERATORS,br=Ne("iterator"),wr=function(){return this},Er=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Zt(gr,{next:H(1,s)}),hr(u,l,!1,!0),dn[l]=vr;var c,f,d,p=function(e){if(e===o&&m)return m;if(!mr&&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[br]||v["@@iterator"]||o&&v[o],m=!mr&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=mt(b.call(new e)))!==Object.prototype&&c.next&&(hr(c,h,!0,!0),dn[h]=wr),yr&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return L(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(mr||g||!(d in v))&&ar(v,d,f[d]);else ft({target:t,proto:!0,forced:mr||g},f);return a&&v[br]!==m&&ar(v,br,m,{name:o}),dn[t]=m,f},Dr=tr.set,Cr=tr.getterFor("Array Iterator");Er(Array,"Array",(function(e,t){Dr(this,{type:"Array Iterator",target:Z(e),index:0,kind:t})}),(function(){var e=Cr(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"),dn.Arguments=dn.Array;var Sr=_("".charAt),xr=_("".charCodeAt),Ar=_("".slice),Or=function(e){return function(t,n){var r,o,i=Fn(X(t)),a=St(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=xr(i,a))<55296||r>56319||a+1===u||(o=xr(i,a+1))<56320||o>57343?e?Sr(i,a):r:e?Ar(i,a,a+2):o-56320+(r-55296<<10)+65536}},kr=(Or(!1),Or(!0)),Br=tr.set,Fr=tr.getterFor("String Iterator");Er(String,"String",(function(e){Br(this,{type:"String Iterator",string:Fn(e),index:0})}),(function(){var e,t=Fr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=kr(n,r),t.index+=e.length,{value:e,done:!1})}));var Tr=Q.AggregateError,_r=Ne("toStringTag");for(var Pr 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 jr=D[Pr],Nr=jr&&jr.prototype;Nr&&wn(Nr)!==_r&&st(Nr,_r,Pr),dn[Pr]=dn.Array}var Ir,Lr,Rr=Tr,Mr=function(e){return e&&e.Math==Math&&e},zr=Mr("object"==typeof globalThis&&globalThis)||Mr("object"==typeof window&&window)||Mr("object"==typeof self&&self)||Mr("object"==typeof y&&y)||function(){return this}()||Function("return this")(),$r=function(e){try{return!!e()}catch(t){return!0}},Hr=!$r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Vr=Function.prototype.call,Ur=Vr.bind?Vr.bind(Vr):function(){return Vr.apply(Vr,arguments)},Wr={}.propertyIsEnumerable,Gr=Object.getOwnPropertyDescriptor,qr=Gr&&!Wr.call({1:2},1)?function(e){var t=Gr(this,e);return!!t&&t.enumerable}:Wr,Kr={f:qr},Yr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xr=Function.prototype,Zr=Xr.bind,Jr=Xr.call,Qr=Zr&&Zr.bind(Jr),eo=Zr?function(e){return e&&Qr(Jr,e)}:function(e){return e&&function(){return Jr.apply(e,arguments)}},to=eo({}.toString),no=eo("".slice),ro=function(e){return no(to(e),8,-1)},oo=zr.Object,io=eo("".split),ao=$r((function(){return!oo("z").propertyIsEnumerable(0)}))?function(e){return"String"==ro(e)?io(e,""):oo(e)}:oo,uo=zr.TypeError,so=function(e){if(null==e)throw uo("Can't call method on "+e);return e},lo=function(e){return ao(so(e))},co=function(e){return"function"==typeof e},fo=function(e){return"object"==typeof e?null!==e:co(e)},po=function(e){return co(e)?e:void 0},ho=function(e,t){return arguments.length<2?po(zr[e]):zr[e]&&zr[e][t]},go=eo({}.isPrototypeOf),vo=ho("navigator","userAgent")||"",yo=zr.process,mo=zr.Deno,bo=yo&&yo.versions||mo&&mo.version,wo=bo&&bo.v8;wo&&(Lr=(Ir=wo.split("."))[0]>0&&Ir[0]<4?1:+(Ir[0]+Ir[1])),!Lr&&vo&&(!(Ir=vo.match(/Edge\/(\d+)/))||Ir[1]>=74)&&(Ir=vo.match(/Chrome\/(\d+)/))&&(Lr=+Ir[1]);var Eo=Lr,Do=!!Object.getOwnPropertySymbols&&!$r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Eo&&Eo<41})),Co=Do&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,So=zr.Object,xo=Co?function(e){return"symbol"==typeof e}:function(e){var t=ho("Symbol");return co(t)&&go(t.prototype,So(e))},Ao=zr.String,Oo=function(e){try{return Ao(e)}catch(t){return"Object"}},ko=zr.TypeError,Bo=function(e){if(co(e))return e;throw ko(Oo(e)+" is not a function")},Fo=function(e,t){var n=e[t];return null==n?void 0:Bo(n)},To=zr.TypeError,_o=Object.defineProperty,Po=function(e,t){try{_o(zr,e,{value:t,configurable:!0,writable:!0})}catch(kP){zr[e]=t}return t},jo=zr["__core-js_shared__"]||Po("__core-js_shared__",{}),No=m((function(e){(e.exports=function(e,t){return jo[e]||(jo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Io=zr.Object,Lo=function(e){return Io(so(e))},Ro=eo({}.hasOwnProperty),Mo=Object.hasOwn||function(e,t){return Ro(Lo(e),t)},zo=0,$o=Math.random(),Ho=eo(1..toString),Vo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ho(++zo+$o,36)},Uo=No("wks"),Wo=zr.Symbol,Go=Wo&&Wo.for,qo=Co?Wo:Wo&&Wo.withoutSetter||Vo,Ko=function(e){if(!Mo(Uo,e)||!Do&&"string"!=typeof Uo[e]){var t="Symbol."+e;Do&&Mo(Wo,e)?Uo[e]=Wo[e]:Uo[e]=Co&&Go?Go(t):qo(t)}return Uo[e]},Yo=zr.TypeError,Xo=Ko("toPrimitive"),Zo=function(e){var t=function(e,t){if(!fo(e)||xo(e))return e;var n,r=Fo(e,Xo);if(r){if(void 0===t&&(t="default"),n=Ur(r,e,t),!fo(n)||xo(n))return n;throw Yo("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&co(n=e.toString)&&!fo(r=Ur(n,e)))return r;if(co(n=e.valueOf)&&!fo(r=Ur(n,e)))return r;if("string"!==t&&co(n=e.toString)&&!fo(r=Ur(n,e)))return r;throw To("Can't convert object to primitive value")}(e,t)}(e,"string");return xo(t)?t:t+""},Jo=zr.document,Qo=fo(Jo)&&fo(Jo.createElement),ei=function(e){return Qo?Jo.createElement(e):{}},ti=!Hr&&!$r((function(){return 7!=Object.defineProperty(ei("div"),"a",{get:function(){return 7}}).a})),ni=Object.getOwnPropertyDescriptor,ri=Hr?ni:function(e,t){if(e=lo(e),t=Zo(t),ti)try{return ni(e,t)}catch(n){}if(Mo(e,t))return Yr(!Ur(Kr.f,e,t),e[t])},oi={f:ri},ii=zr.String,ai=zr.TypeError,ui=function(e){if(fo(e))return e;throw ai(ii(e)+" is not an object")},si=zr.TypeError,li=Object.defineProperty,ci=Hr?li:function(e,t,n){if(ui(e),t=Zo(t),ui(n),ti)try{return li(e,t,n)}catch(r){}if("get"in n||"set"in n)throw si("Accessors not supported");return"value"in n&&(e[t]=n.value),e},fi={f:ci},di=Hr?function(e,t,n){return fi.f(e,t,Yr(1,n))}:function(e,t,n){return e[t]=n,e},pi=eo(Function.toString);co(jo.inspectSource)||(jo.inspectSource=function(e){return pi(e)});var hi,gi,vi,yi=jo.inspectSource,mi=zr.WeakMap,bi=co(mi)&&/native code/.test(yi(mi)),wi=No("keys"),Ei=function(e){return wi[e]||(wi[e]=Vo(e))},Di={},Ci=zr.TypeError,Si=zr.WeakMap;if(bi||jo.state){var xi=jo.state||(jo.state=new Si),Ai=eo(xi.get),Oi=eo(xi.has),ki=eo(xi.set);hi=function(e,t){if(Oi(xi,e))throw new Ci("Object already initialized");return t.facade=e,ki(xi,e,t),t},gi=function(e){return Ai(xi,e)||{}},vi=function(e){return Oi(xi,e)}}else{var Bi=Ei("state");Di[Bi]=!0,hi=function(e,t){if(Mo(e,Bi))throw new Ci("Object already initialized");return t.facade=e,di(e,Bi,t),t},gi=function(e){return Mo(e,Bi)?e[Bi]:{}},vi=function(e){return Mo(e,Bi)}}var Fi={set:hi,get:gi,has:vi,enforce:function(e){return vi(e)?gi(e):hi(e,{})},getterFor:function(e){return function(t){var n;if(!fo(t)||(n=gi(t)).type!==e)throw Ci("Incompatible receiver, "+e+" required");return n}}},Ti=Function.prototype,_i=Hr&&Object.getOwnPropertyDescriptor,Pi=Mo(Ti,"name"),ji={EXISTS:Pi,PROPER:Pi&&"something"===function(){}.name,CONFIGURABLE:Pi&&(!Hr||Hr&&_i(Ti,"name").configurable)},Ni=m((function(e){var t=ji.CONFIGURABLE,n=Fi.get,r=Fi.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;co(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mo(i,"name")||t&&i.name!==f)&&di(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==zr?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:di(e,n,i)):l?e[n]=i:Po(n,i)})(Function.prototype,"toString",(function(){return co(this)&&n(this).source||yi(this)}))})),Ii=Math.ceil,Li=Math.floor,Ri=function(e){var t=+e;return t!=t||0===t?0:(t>0?Li:Ii)(t)},Mi=Math.max,zi=Math.min,$i=function(e,t){var n=Ri(e);return n<0?Mi(n+t,0):zi(n,t)},Hi=Math.min,Vi=function(e){return e>0?Hi(Ri(e),9007199254740991):0},Ui=function(e){return Vi(e.length)},Wi=function(e){return function(t,n,r){var o,i=lo(t),a=Ui(i),u=$i(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}},Gi=(Wi(!0),Wi(!1)),qi=eo([].push),Ki=function(e,t){var n,r=lo(e),o=0,i=[];for(n in r)!Mo(Di,n)&&Mo(r,n)&&qi(i,n);for(;t.length>o;)Mo(r,n=t[o++])&&(~Gi(i,n)||qi(i,n));return i},Yi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xi=Yi.concat("length","prototype"),Zi=Object.getOwnPropertyNames||function(e){return Ki(e,Xi)},Ji={f:Zi},Qi={f:Object.getOwnPropertySymbols},ea=eo([].concat),ta=ho("Reflect","ownKeys")||function(e){var t=Ji.f(ui(e)),n=Qi.f;return n?ea(t,n(e)):t},na=function(e,t){for(var n=ta(t),r=fi.f,o=oi.f,i=0;i<n.length;i++){var a=n[i];Mo(e,a)||r(e,a,o(t,a))}},ra=/#|\.prototype\./,oa=function(e,t){var n=aa[ia(e)];return n==sa||n!=ua&&(co(t)?$r(t):!!t)},ia=oa.normalize=function(e){return String(e).replace(ra,".").toLowerCase()},aa=oa.data={},ua=oa.NATIVE="N",sa=oa.POLYFILL="P",la=oa,ca=oi.f,fa=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?zr:l?zr[u]||Po(u,{}):(zr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ca(n,r))&&a.value:n[r],!la(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;na(i,o)}(e.sham||o&&o.sham)&&di(i,"sham",!0),Ni(n,r,i,e)}},da={};da[Ko("toStringTag")]="z";var pa,ha="[object z]"===String(da),ga=Ko("toStringTag"),va=zr.Object,ya="Arguments"==ro(function(){return arguments}()),ma=ha?ro: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=va(e),ga))?n:ya?ro(t):"Object"==(r=ro(t))&&co(t.callee)?"Arguments":r},ba=zr.String,wa=function(e){if("Symbol"===ma(e))throw TypeError("Cannot convert a Symbol value to a string");return ba(e)},Ea=function(){var e=ui(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},Da=zr.RegExp,Ca=$r((function(){var e=Da("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Sa=Ca||$r((function(){return!Da("a","y").sticky})),xa=Ca||$r((function(){var e=Da("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),Aa={BROKEN_CARET:xa,MISSED_STICKY:Sa,UNSUPPORTED_Y:Ca},Oa=Object.keys||function(e){return Ki(e,Yi)},ka=Hr?Object.defineProperties:function(e,t){ui(e);for(var n,r=lo(t),o=Oa(t),i=o.length,a=0;i>a;)fi.f(e,n=o[a++],r[n]);return e},Ba=ho("document","documentElement"),Fa=Ei("IE_PROTO"),Ta=function(){},_a=function(e){return"<script>"+e+"<\/script>"},Pa=function(e){e.write(_a("")),e.close();var t=e.parentWindow.Object;return e=null,t},ja=function(){try{pa=new ActiveXObject("htmlfile")}catch(r){}var e,t;ja="undefined"!=typeof document?document.domain&&pa?Pa(pa):((t=ei("iframe")).style.display="none",Ba.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_a("document.F=Object")),e.close(),e.F):Pa(pa);for(var n=Yi.length;n--;)delete ja.prototype[Yi[n]];return ja()};Di[Fa]=!0;var Na,Ia,La=Object.create||function(e,t){var n;return null!==e?(Ta.prototype=ui(e),n=new Ta,Ta.prototype=null,n[Fa]=e):n=ja(),void 0===t?n:ka(n,t)},Ra=zr.RegExp,Ma=$r((function(){var e=Ra(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),za=zr.RegExp,$a=$r((function(){var e=za("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ha=Fi.get,Va=No("native-string-replace",String.prototype.replace),Ua=RegExp.prototype.exec,Wa=Ua,Ga=eo("".charAt),qa=eo("".indexOf),Ka=eo("".replace),Ya=eo("".slice),Xa=(Ia=/b*/g,Ur(Ua,Na=/a/,"a"),Ur(Ua,Ia,"a"),0!==Na.lastIndex||0!==Ia.lastIndex),Za=Aa.BROKEN_CARET,Ja=void 0!==/()??/.exec("")[1];(Xa||Ja||Za||Ma||$a)&&(Wa=function(e){var t,n,r,o,i,a,u,s=this,l=Ha(s),c=wa(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ur(Wa,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Za&&s.sticky,h=Ur(Ea,s),g=s.source,v=0,y=c;if(p&&(h=Ka(h,"y",""),-1===qa(h,"g")&&(h+="g"),y=Ya(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ga(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ja&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Xa&&(r=s.lastIndex),o=Ur(Ua,p?n:s,y),p?o?(o.input=Ya(o.input,v),o[0]=Ya(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Xa&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ja&&o&&o.length>1&&Ur(Va,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=La(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Qa=Wa;fa({target:"RegExp",proto:!0,forced:/./.exec!==Qa},{exec:Qa});Ko("species");var eu=RegExp.prototype,tu=eo("".charAt),nu=eo("".charCodeAt),ru=eo("".slice),ou=function(e){return function(t,n){var r,o,i=wa(so(t)),a=Ri(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=nu(i,a))<55296||r>56319||a+1===u||(o=nu(i,a+1))<56320||o>57343?e?tu(i,a):r:e?ru(i,a,a+2):o-56320+(r-55296<<10)+65536}},iu={codeAt:ou(!1),charAt:ou(!0)},au=iu.charAt,uu=function(e,t,n){return t+(n?au(e,t).length:1)},su=zr.TypeError,lu=function(e,t){var n=e.exec;if(co(n)){var r=Ur(n,e,t);return null!==r&&ui(r),r}if("RegExp"===ro(e))return Ur(Qa,e,t);throw su("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Ko(e),i=!$r((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!$r((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=eo(/./[o]),s=function(e,t,n){return[function(t){var n=so(this),r=null==t?void 0:Fo(t,e);return r?Ur(r,t,n):new RegExp(t)[e](wa(n))},function(e){var r=ui(this),o=wa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return lu(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=lu(r,o));){var c=wa(u[0]);s[l]=c,""===c&&(r.lastIndex=uu(o,Vi(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=eo(e),s=t.exec;return s===Qa||s===eu.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Ni(String.prototype,e,s[0]),Ni(eu,o,s[1])}}("match"),fa({global:!0},{globalThis:zr});var cu=!$r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),fu=Ei("IE_PROTO"),du=zr.Object,pu=du.prototype,hu=cu?du.getPrototypeOf:function(e){var t=Lo(e);if(Mo(t,fu))return t[fu];var n=t.constructor;return co(n)&&t instanceof n?n.prototype:t instanceof du?pu:null},gu=zr.String,vu=zr.TypeError,yu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=eo(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return ui(n),function(e){if("object"==typeof e||co(e))return e;throw vu("Can't set "+gu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),mu=zr.Array,bu=Math.max,wu=eo("".replace),Eu=eo("".split),Du=eo([].join),Cu=String(Error("zxcasd").stack),Su=/\n\s*at [^:]*:[^\n]*/,xu=Su.test(Cu),Au=/@[^\n]*\n/.test(Cu)&&!/zxcasd/.test(Cu),Ou=function(e,t){if("string"!=typeof e)return e;if(xu)for(;t--;)e=wu(e,Su,"");else if(Au)return Du(function(e,t,n){for(var r,o,i,a,u=Ui(e),s=$i(t,u),l=$i(u,u),c=mu(bu(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=Zo(o))in r?fi.f(r,a,Yr(0,i)):r[a]=i;return c.length=f,c}(Eu(e,"\n"),t),"\n");return e},ku=function(e,t){fo(t)&&"cause"in t&&di(e,"cause",t.cause)},Bu=eo(eo.bind),Fu=function(e,t){return Bo(e),void 0===t?e:Bu?Bu(e,t):function(){return e.apply(t,arguments)}},Tu={},_u=Ko("iterator"),Pu=Array.prototype,ju=Ko("iterator"),Nu=function(e){if(null!=e)return Fo(e,ju)||Fo(e,"@@iterator")||Tu[ma(e)]},Iu=zr.TypeError,Lu=function(e,t,n){var r,o;ui(e);try{if(!(r=Fo(e,"return"))){if("throw"===t)throw n;return n}r=Ur(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return ui(r),n},Ru=zr.TypeError,Mu=function(e,t){this.stopped=e,this.result=t},zu=Mu.prototype,$u=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=Fu(t,f),v=function(e){return r&&Lu(r,"normal",e),new Mu(!0,e)},y=function(e){return d?(ui(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=Nu(e)))throw Ru(Oo(e)+" is not iterable");if(void 0!==(c=o)&&(Tu.Array===c||Pu[_u]===c)){for(i=0,a=Ui(e);a>i;i++)if((u=y(e[i]))&&go(zu,u))return u;return new Mu(!1)}r=function(e,t){var n=arguments.length<2?Nu(e):t;if(Bo(n))return ui(Ur(n,e));throw Iu(Oo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Ur(s,r)).done;){try{u=y(l.value)}catch(c){Lu(r,"throw",c)}if("object"==typeof u&&u&&go(zu,u))return u}return new Mu(!1)},Hu=function(e,t){return void 0===e?arguments.length<2?"":t:wa(e)},Vu=!$r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yr(1,7)),7!==e.stack)})),Uu=Ko("toStringTag"),Wu=zr.Error,Gu=[].push,qu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=go(Ku,this);yu?n=yu(new Wu(void 0),o?hu(this):Ku):(n=o?this:La(Ku),di(n,Uu,"Error")),di(n,"message",Hu(t,"")),Vu&&di(n,"stack",Ou(n.stack,1)),ku(n,r);var i=[];return $u(e,Gu,{that:i}),di(n,"errors",i),n};yu?yu(qu,Wu):na(qu,Wu);var Ku=qu.prototype=La(Wu.prototype,{constructor:Yr(1,qu),message:Yr(1,""),name:Yr(1,"AggregateError")});fa({global:!0},{AggregateError:qu});var Yu=Ko("unscopables"),Xu=Array.prototype;null==Xu[Yu]&&fi.f(Xu,Yu,{configurable:!0,value:La(null)});var Zu,Ju,Qu,es=function(e){Xu[Yu][e]=!0},ts=Ko("iterator"),ns=!1;[].keys&&("next"in(Qu=[].keys())?(Ju=hu(hu(Qu)))!==Object.prototype&&(Zu=Ju):ns=!0);var rs=null==Zu||$r((function(){var e={};return Zu[ts].call(e)!==e}));rs&&(Zu={}),co(Zu[ts])||Ni(Zu,ts,(function(){return this}));var os={IteratorPrototype:Zu,BUGGY_SAFARI_ITERATORS:ns},is=fi.f,as=Ko("toStringTag"),us=function(e,t,n){e&&!Mo(e=n?e:e.prototype,as)&&is(e,as,{configurable:!0,value:t})},ss=os.IteratorPrototype,ls=function(){return this},cs=ji.PROPER,fs=ji.CONFIGURABLE,ds=os.IteratorPrototype,ps=os.BUGGY_SAFARI_ITERATORS,hs=Ko("iterator"),gs=function(){return this},vs=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=La(ss,{next:Yr(1,s)}),us(u,l,!1),Tu[l]=ls;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ps&&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[hs]||v["@@iterator"]||o&&v[o],m=!ps&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=hu(b.call(new e)))!==Object.prototype&&c.next&&(hu(c)!==ds&&(yu?yu(c,ds):co(c[hs])||Ni(c,hs,gs)),us(c,h,!0)),cs&&"values"==o&&y&&"values"!==y.name&&(fs?di(v,"name","values"):(g=!0,m=function(){return Ur(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ps||g||!(d in v))&&Ni(v,d,f[d]);else fa({target:t,proto:!0,forced:ps||g},f);return v[hs]!==m&&Ni(v,hs,m,{name:o}),Tu[t]=m,f},ys=Fi.set,ms=Fi.getterFor("Array Iterator"),bs=vs(Array,"Array",(function(e,t){ys(this,{type:"Array Iterator",target:lo(e),index:0,kind:t})}),(function(){var e=ms(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");Tu.Arguments=Tu.Array,es("keys"),es("values"),es("entries");var ws=iu.charAt,Es=Fi.set,Ds=Fi.getterFor("String Iterator");vs(String,"String",(function(e){Es(this,{type:"String Iterator",string:wa(e),index:0})}),(function(){var e,t=Ds(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ws(n,r),t.index+=e.length,{value:e,done:!1})}));var Cs,Ss={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},xs=ei("span").classList,As=xs&&xs.constructor&&xs.constructor.prototype,Os=As===Object.prototype?void 0:As,ks=Ko("iterator"),Bs=Ko("toStringTag"),Fs=bs.values,Ts=function(e,t){if(e){if(e[ks]!==Fs)try{di(e,ks,Fs)}catch(r){e[ks]=Fs}if(e[Bs]||di(e,Bs,t),Ss[t])for(var n in bs)if(e[n]!==bs[n])try{di(e,n,bs[n])}catch(r){e[n]=bs[n]}}};for(var _s in Ss)Ts(zr[_s]&&zr[_s].prototype,_s);function Ps(){"undefined"==typeof globalThis&&(window.globalThis=window)}function js(){void 0===Rr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Ts(Os,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),Ps(),js()):global&&(null===(Cs=global.navigator)||void 0===Cs?void 0:Cs.userAgent.match("QQBrowser"))&&(Ps(),js());var Ns=Array.isArray||function(e){return"Array"==W(e)},Is=function(){},Ls=[],Rs=te("Reflect","construct"),Ms=/^\s*(?:class|function)\b/,zs=_(Ms.exec),$s=!Ms.exec(Is),Hs=function(e){if(!P(e))return!1;try{return Rs(Is,Ls,e),!0}catch(t){return!1}},Vs=!Rs||j((function(){var e;return Hs(Hs.call)||!Hs(Object)||!Hs((function(){e=!0}))||e}))?function(e){if(!P(e))return!1;switch(wn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $s||!!zs(Ms,Hn(e))}:Hs,Us=Ne("species"),Ws=D.Array,Gs=function(e,t){return new(Ns(n=e)&&(r=n.constructor,(Vs(r)&&(r===Ws||Ns(r.prototype))||J(r)&&null===(r=r[Us]))&&(r=void 0)),void 0===r?Ws:r)(0===t?0:t);var n,r},qs=Ne("species"),Ks=Ne("isConcatSpreadable"),Ys=D.TypeError,Xs=le>=51||!j((function(){var e=[];return e[Ks]=!1,e.concat()[0]!==e})),Zs=("concat",le>=51||!j((function(){var e=[];return(e.constructor={})[qs]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Js=function(e){if(!J(e))return!1;var t=e[Ks];return void 0!==t?!!t:Ns(e)};ft({target:"Array",proto:!0,forced:!Xs||!Zs},{concat:function(e){var t,n,r,o,i,a=Se(this),u=Gs(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Js(i=-1===t?a:arguments[t])){if(s+(o=Bt(i))>9007199254740991)throw Ys("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Jt(u,s,i[n])}else{if(s>=9007199254740991)throw Ys("Maximum allowed index exceeded");Jt(u,s++,i)}return u.length=s,u}});var Qs=Mt.f,el="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tl={f:function(e){return el&&"Window"==W(e)?function(e){try{return Qs(e)}catch(t){return tn(el)}}(e):Qs(Z(e))}},nl=_([].slice),rl={f:Ne},ol=ut.f,il=function(e){var t=Q.Symbol||(Q.Symbol={});Ae(t,e)||ol(t,e,{value:rl.f(e)})},al=_([].push),ul=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=Se(s),g=K(h),v=et(l,c),y=Bt(g),m=0,b=f||Gs,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:al(w,d)}else switch(e){case 4:return!1;case 7:al(w,d)}return i?-1:r||o?o:w}},sl=[ul(0),ul(1),ul(2),ul(3),ul(4),ul(5),ul(6),ul(7)][0],ll=pt("hidden"),cl=Ne("toPrimitive"),fl=tr.set,dl=tr.getterFor("Symbol"),pl=Object.prototype,hl=D.Symbol,gl=hl&&hl.prototype,vl=D.TypeError,yl=D.QObject,ml=te("JSON","stringify"),bl=We.f,wl=ut.f,El=tl.f,Dl=$.f,Cl=_([].push),Sl=De("symbols"),xl=De("op-symbols"),Al=De("string-to-symbol-registry"),Ol=De("symbol-to-string-registry"),kl=De("wks"),Bl=!yl||!yl.prototype||!yl.prototype.findChild,Fl=N&&j((function(){return 7!=Zt(wl({},"a",{get:function(){return wl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=bl(pl,t);r&&delete pl[t],wl(e,t,n),r&&e!==pl&&wl(pl,t,r)}:wl,Tl=function(e,t){var n=Sl[e]=Zt(gl);return fl(n,{type:"Symbol",tag:e,description:t}),N||(n.description=t),n},_l=function(e,t,n){e===pl&&_l(xl,t,n),rt(e);var r=Re(t);return rt(n),Ae(Sl,r)?(n.enumerable?(Ae(e,ll)&&e[ll][r]&&(e[ll][r]=!1),n=Zt(n,{enumerable:H(0,!1)})):(Ae(e,ll)||wl(e,ll,H(1,{})),e[ll][r]=!0),Fl(e,r,n)):wl(e,r,n)},Pl=function(e,t){rt(e);var n=Z(t),r=Vt(n).concat(Ll(n));return sl(r,(function(t){N&&!L(jl,n,t)||_l(e,t,n[t])})),e},jl=function(e){var t=Re(e),n=L(Dl,this,t);return!(this===pl&&Ae(Sl,t)&&!Ae(xl,t))&&(!(n||!Ae(this,t)||!Ae(Sl,t)||Ae(this,ll)&&this[ll][t])||n)},Nl=function(e,t){var n=Z(e),r=Re(t);if(n!==pl||!Ae(Sl,r)||Ae(xl,r)){var o=bl(n,r);return!o||!Ae(Sl,r)||Ae(n,ll)&&n[ll][r]||(o.enumerable=!0),o}},Il=function(e){var t=El(Z(e)),n=[];return sl(t,(function(e){Ae(Sl,e)||Ae(_t,e)||Cl(n,e)})),n},Ll=function(e){var t=e===pl,n=El(t?xl:Z(e)),r=[];return sl(n,(function(e){!Ae(Sl,e)||t&&!Ae(pl,e)||Cl(r,Sl[e])})),r};if(ce||(gl=(hl=function(){if(ne(gl,this))throw vl("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Fn(arguments[0]):void 0,t=Fe(e),n=function(e){this===pl&&L(n,xl,e),Ae(this,ll)&&Ae(this[ll],t)&&(this[ll][t]=!1),Fl(this,t,H(1,e))};return N&&Bl&&Fl(pl,t,{configurable:!0,set:n}),Tl(t,e)}).prototype,ar(gl,"toString",(function(){return dl(this).tag})),ar(hl,"withoutSetter",(function(e){return Tl(Fe(e),e)})),$.f=jl,ut.f=_l,We.f=Nl,Mt.f=tl.f=Il,zt.f=Ll,rl.f=function(e){return Tl(Ne(e),e)},N&&wl(gl,"description",{configurable:!0,get:function(){return dl(this).description}})),ft({global:!0,wrap:!0,forced:!ce,sham:!ce},{Symbol:hl}),sl(Vt(kl),(function(e){il(e)})),ft({target:"Symbol",stat:!0,forced:!ce},{for:function(e){var t=Fn(e);if(Ae(Al,t))return Al[t];var n=hl(t);return Al[t]=n,Ol[n]=t,n},keyFor:function(e){if(!pe(e))throw vl(e+" is not a symbol");if(Ae(Ol,e))return Ol[e]},useSetter:function(){Bl=!0},useSimple:function(){Bl=!1}}),ft({target:"Object",stat:!0,forced:!ce,sham:!N},{create:function(e,t){return void 0===t?Zt(e):Pl(Zt(e),t)},defineProperty:_l,defineProperties:Pl,getOwnPropertyDescriptor:Nl}),ft({target:"Object",stat:!0,forced:!ce},{getOwnPropertyNames:Il,getOwnPropertySymbols:Ll}),ft({target:"Object",stat:!0,forced:j((function(){zt.f(1)}))},{getOwnPropertySymbols:function(e){return zt.f(Se(e))}}),ml){var Rl=!ce||j((function(){var e=hl();return"[null]"!=ml([e])||"{}"!=ml({a:e})||"{}"!=ml(Object(e))}));ft({target:"JSON",stat:!0,forced:Rl},{stringify:function(e,t,n){var r=nl(arguments),o=t;if((J(t)||void 0!==e)&&!pe(e))return Ns(t)||(t=function(e,t){if(P(o)&&(t=L(o,this,e,t)),!pe(t))return t}),r[1]=t,O(ml,null,r)}})}if(!gl[cl]){var Ml=gl.valueOf;ar(gl,cl,(function(e){return L(Ml,this)}))}hr(hl,"Symbol"),_t[ll]=!0,il("asyncIterator"),il("hasInstance"),il("isConcatSpreadable"),il("iterator"),il("match"),il("matchAll"),il("replace"),il("search"),il("species"),il("split"),il("toPrimitive"),il("toStringTag"),il("unscopables"),hr(D.JSON,"JSON",!0);var zl=Q.Symbol;il("asyncDispose"),il("dispose"),il("matcher"),il("metadata"),il("observable"),il("patternMatch"),il("replaceAll");var $l,Hl=zl,Vl=rl.f("iterator"),Ul=m((function(e){function t(n){return"function"==typeof Hl&&"symbol"==typeof Vl?(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 Hl&&e.constructor===Hl&&e!==Hl.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})),Wl=($l=Ul)&&$l.__esModule&&Object.prototype.hasOwnProperty.call($l,"default")?$l.default:$l,Gl=oi.f,ql=$r((function(){Gl(1)}));if(fa({target:"Object",stat:!0,forced:!Hr||ql,sham:!Hr},{getOwnPropertyDescriptor:function(e,t){return Gl(lo(e),t)}}),"object"===("undefined"==typeof global?"undefined":Wl(global))){var Kl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Kl.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[]})}
  2. /*!
  3. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  4. *
  5. * Copyright (c) 2014-2017, Jon Schlinkert.
  6. * Released under the MIT License.
  7. */function Yl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Xl(e){var t,n;return!1!==Yl(e)&&(void 0===(t=e.constructor)||!1!==Yl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Zl(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 Jl(e){return!!e&&!!e[Ic]}function Ql(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)===Lc}(e)||Array.isArray(e)||!!e[Nc]||!!e.constructor[Nc]||oc(e)||ic(e))}function ec(e,t,n){void 0===n&&(n=!1),0===tc(e)?(n?Object.keys:Rc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function tc(e){var t=e[Ic];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:oc(e)?2:ic(e)?3:0}function nc(e,t){return 2===tc(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function rc(e,t,n){var r=tc(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function oc(e){return Tc&&e instanceof Map}function ic(e){return _c&&e instanceof Set}function ac(e){return e.o||e.t}function uc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Mc(e);delete t[Ic];for(var n=Rc(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 sc(e,t){return void 0===t&&(t=!1),cc(e)||Jl(e)||!Ql(e)||(tc(e)>1&&(e.set=e.add=e.clear=e.delete=lc),Object.freeze(e),t&&ec(e,(function(e,t){return sc(t,!0)}),!0)),e}function lc(){Zl(2)}function cc(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function fc(e){var t=zc[e];return t||Zl(18,e),t}function dc(){return Bc}function pc(e,t){t&&(fc("Patches"),e.u=[],e.s=[],e.v=t)}function hc(e){gc(e),e.p.forEach(yc),e.p=null}function gc(e){e===Bc&&(Bc=e.l)}function vc(e){return Bc={p:[],l:Bc,h:e,m:!0,_:0}}function yc(e){var t=e[Ic];0===t.i||1===t.i?t.j():t.O=!0}function mc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||fc("ES5").S(t,e,r),r?(n[Ic].P&&(hc(t),Zl(4)),Ql(e)&&(e=bc(t,e),t.l||Ec(t,e)),t.u&&fc("Patches").M(n[Ic],e,t.u,t.s)):e=bc(t,n,[]),hc(t),t.u&&t.v(t.u,t.s),e!==jc?e:void 0}function bc(e,t,n){if(cc(t))return t;var r=t[Ic];if(!r)return ec(t,(function(o,i){return wc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Ec(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=uc(r.k):r.o;ec(3===r.i?new Set(o):o,(function(t,i){return wc(e,r,o,t,i,n)})),Ec(e,o,!1),n&&e.u&&fc("Patches").R(r,n,e.u,e.s)}return r.o}function wc(e,t,n,r,o,i){if(Jl(o)){var a=bc(e,o,i&&t&&3!==t.i&&!nc(t.D,r)?i.concat(r):void 0);if(rc(n,r,a),!Jl(a))return;e.m=!1}if(Ql(o)&&!cc(o)){if(!e.h.F&&e._<1)return;bc(e,o),t&&t.A.l||Ec(e,o)}}function Ec(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&sc(t,n)}function Dc(e,t){var n=e[Ic];return(n?ac(n):e)[t]}function Cc(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 xc(e){e.o||(e.o=uc(e.t))}function Ac(e,t,n){var r=oc(t)?fc("MapSet").N(t,n):ic(t)?fc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:dc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=$c;n&&(o=[r],i=Hc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):fc("ES5").J(t,n);return(n?n.A:dc()).p.push(r),r}function Oc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return uc(e)}var kc,Bc,Fc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Tc="undefined"!=typeof Map,_c="undefined"!=typeof Set,Pc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,jc=Fc?Symbol.for("immer-nothing"):((kc={})["immer-nothing"]=!0,kc),Nc=Fc?Symbol.for("immer-draftable"):"__$immer_draftable",Ic=Fc?Symbol.for("immer-state"):"__$immer_state",Lc=""+Object.prototype.constructor,Rc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Mc=Object.getOwnPropertyDescriptors||function(e){var t={};return Rc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},zc={},$c={get:function(e,t){if(t===Ic)return e;var n=ac(e);if(!nc(n,t))return function(e,t,n){var r,o=Cc(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||!Ql(r)?r:r===Dc(e.t,t)?(xc(e),e.o[t]=Ac(e.A.h,r,e)):r},has:function(e,t){return t in ac(e)},ownKeys:function(e){return Reflect.ownKeys(ac(e))},set:function(e,t,n){var r,o,i=Cc(ac(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=Dc(ac(e),t),u=null==a?void 0:a[Ic];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||nc(e.t,t)))return!0;xc(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!==Dc(e.t,t)||t in e.t?(e.D[t]=!1,xc(e),Sc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ac(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(){Zl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Zl(12)}},Hc={};ec($c,(function(e,t){Hc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Hc.deleteProperty=function(e,t){return $c.deleteProperty.call(this,e[0],t)},Hc.set=function(e,t,n){return $c.set.call(this,e[0],t,n,e[0])};var Vc=function(){function e(e){var t=this;this.g=Pc,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&&Zl(6),void 0!==r&&"function"!=typeof r&&Zl(7),Ql(e)){var u=vc(t),s=Ac(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?hc(u):gc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return pc(u,r),mc(e,u)}),(function(e){throw hc(u),e})):(pc(u,r),mc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===jc)return;return void 0===a&&(a=e),t.F&&sc(a,!0),a}Zl(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){Ql(e)||Zl(8),Jl(e)&&(e=function(e){return Jl(e)||Zl(22,e),function e(t){if(!Ql(t))return t;var n,r=t[Ic],o=tc(t);if(r){if(!r.P&&(r.i<4||!fc("ES5").K(r)))return r.t;r.I=!0,n=Oc(t,o),r.I=!1}else n=Oc(t,o);return ec(n,(function(t,o){var i,a;r&&(a=t,(2===tc(i=r.t)?i.get(a):i[a])===o)||rc(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=vc(this),n=Ac(this,e,void 0);return n[Ic].C=!0,gc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Ic]).A;return pc(n,t),mc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Pc&&Zl(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=fc("Patches").$;return Jl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Uc=new Vc,Wc=Uc.produce;Uc.produceWithPatches.bind(Uc),Uc.setAutoFreeze.bind(Uc),Uc.setUseProxies.bind(Uc),Uc.applyPatches.bind(Uc);var Gc=Uc.createDraft.bind(Uc),qc=Uc.finishDraft.bind(Uc);function Kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yc=new WeakMap,Xc=new WeakMap,Zc=new WeakMap,Jc=new WeakMap,Qc=new WeakMap,ef=new WeakMap;function tf(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 nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){Kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rf=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Yf.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Yf.levels(r),...cd.isText(n)?[]:Array.from(Wf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Yf.ancestors(o),Yf.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Yf.equals(i,a))return[];var u=[],s=[];for(var l of Yf.ancestors(i)){var c=Yf.transform(l,e);u.push(c)}for(var f of Yf.ancestors(a)){var d=Yf.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[...Yf.ancestors(v)];case"split_node":var{path:y}=e;return[...Yf.levels(y),Yf.next(y)];default:return[]}};function of(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 af,uf=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?pf(e):e,o=af.None,i=af.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=xf(s,l);if([o,i]=n?[i,c]:[c,o],Af(o,af.ZWJ)&&Af(i,af.ExtPict)&&!Ff(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(Af(o,af.RI)&&Af(i,af.RI)&&!(u=null!==u?!u:!!n||_f(e.substring(0,e.length-a))))break;if(o!==af.None&&i!==af.None&&kf(o,i))break;a+=s.length}return a||1},sf=/\s/,lf=/[\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]/,cf=/['\u2018\u2019]/,ff=(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)]},df=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(sf.test(t))return!1;if(cf.test(t)){var o=uf(n,r),[i,a]=ff(n,o,r);if(e(i,a,r))return!0}return!lf.test(t)},pf=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(gf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(hf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},hf=e=>e>=55296&&e<=56319,gf=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"}(af||(af={}));var vf=/^(?:[\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])$/,yf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,mf=/^(?:[\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])$/,bf=/^[\u1100-\u115F\uA960-\uA97C]$/,wf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Ef=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Df=/^[\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]$/,Cf=/^[\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])$/,xf=(e,t)=>{var n=af.Any;return-1!==e.search(vf)&&(n|=af.Extend),8205===t&&(n|=af.ZWJ),t>=127462&&t<=127487&&(n|=af.RI),-1!==e.search(yf)&&(n|=af.Prepend),-1!==e.search(mf)&&(n|=af.SpacingMark),-1!==e.search(bf)&&(n|=af.L),-1!==e.search(wf)&&(n|=af.V),-1!==e.search(Ef)&&(n|=af.T),-1!==e.search(Df)&&(n|=af.LV),-1!==e.search(Cf)&&(n|=af.LVT),-1!==e.search(Sf)&&(n|=af.ExtPict),n};function Af(e,t){return 0!=(e&t)}var Of=[[af.L,af.L|af.V|af.LV|af.LVT],[af.LV|af.V,af.V|af.T],[af.LVT|af.T,af.T],[af.Any,af.Extend|af.ZWJ],[af.Any,af.SpacingMark],[af.Prepend,af.Any],[af.ZWJ,af.ExtPict],[af.RI,af.RI]];function kf(e,t){return-1===Of.findIndex((n=>Af(e,n[0])&&Af(t,n[1])))}var Bf=/(?:[\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$/,Ff=e=>-1!==e.search(Bf),Tf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,_f=e=>{var t=e.match(Tf);return null!==t&&t[0].length/2%2==1},Pf=e=>Xl(e)&&Wf.isNodeList(e.children)&&!zf.isEditor(e),jf={isAncestor:e=>Xl(e)&&Wf.isNodeList(e.children),isElement:Pf,isElementList:e=>Array.isArray(e)&&e.every((e=>jf.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 Pf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Nf=["text"],If=["text"];function Lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lf(Object(n),!0).forEach((function(t){Kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mf=new WeakMap,zf={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=zf.path(e,o),u="lowest"===r;for(var[s,l]of zf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!cd.isText(s)&&!Yf.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:zf.point(e,t,{edge:"end"}),focus:zf.end(e,[])},{distance:i=1}=r,a=0;for(var u of zf.positions(e,Rf(Rf({},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:zf.start(e,[]),focus:zf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of zf.positions(e,Rf(Rf({},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)=>[zf.start(e,t),zf.end(e,t)],end:(e,t)=>zf.point(e,t,{edge:"end"}),first(e,t){var n=zf.path(e,t,{edge:"start"});return zf.node(e,n)},fragment(e,t){var n=zf.range(e,t);return Wf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>zf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>cd.isText(t)||zf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>cd.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)=>jf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Xl(e))return!1;var t=Mf.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||Xl(e.marks))&&(null===e.selection||rd.isRange(e.selection))&&Wf.isNodeList(e.children)&&Kf.isOperationList(e.operations);return Mf.set(e,n),n},isEnd(e,t,n){var r=zf.end(e,n);return Qf.equals(t,r)},isEdge:(e,t,n)=>zf.isStart(e,t,n)||zf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&cd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>jf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Zc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=zf.start(e,n);return Qf.equals(t,r)},isVoid:(e,t)=>jf.isElement(t)&&e.isVoid(t),last(e,t){var n=zf.path(e,t,{edge:"end"});return zf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=zf.path(e,t,n);return[Wf.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=zf.path(e,n);for(var[s,l]of Wf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&zf.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(rd.isExpanded(n)){var[r]=zf.nodes(e,{match:cd.isText});if(r){var[o]=r;return of(o,Nf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=zf.leaf(e,a);if(0===i.offset){var s=zf.previous(e,{at:a,match:cd.isText}),l=zf.above(e,{match:t=>zf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Yf.isAncestor(d,f)&&(u=c)}}return of(u,If)},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=zf.after(e,i,{voids:r});if(a){var[,u]=zf.last(e,[]),s=[a.path,u];if(Yf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Yf.isPath(i)){var[l]=zf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=zf.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=zf.path(e,t,n);return[Wf.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($f.isSpan(n))s=n[0],l=n[1];else{var c=zf.path(e,n,{edge:"start"}),f=zf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Wf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&zf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Yf.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&&cd.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=>Yc.get(e)||[];if(zf.isNormalizing(e)){if(n){var o=Array.from(Wf.nodes(e),(e=>{var[,t]=e;return t}));Yc.set(e,o)}0!==r(e).length&&zf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Wf.has(e,t)){var n=zf.node(e,t),[o,i]=n;jf.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(Wf.has(e,s)){var l=zf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=zf.path(e,t,n),o=Yf.parent(r);return zf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Yf.isPath(t))if("start"===o){var[,i]=Wf.first(e,t);t=i}else if("end"===o){var[,a]=Wf.last(e,t);t=a}return rd.isRange(t)&&(t="start"===o?rd.start(t):"end"===o?rd.end(t):Yf.common(t.anchor.path,t.focus.path)),Qf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Wf.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 zf.pathRefs(e).delete(o),o.current=null,t}};return zf.pathRefs(e).add(o),o},pathRefs(e){var t=Jc.get(e);return t||(t=new Set,Jc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Yf.isPath(t)){var o;if("end"===r){var[,i]=Wf.last(e,t);o=i}else{var[,a]=Wf.first(e,t);o=a}var u=Wf.get(e,o);if(!cd.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(rd.isRange(t)){var[s,l]=rd.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 zf.pointRefs(e).delete(o),o.current=null,t}};return zf.pointRefs(e).add(o),o},pointRefs(e){var t=Qc.get(e);return t||(t=new Set,Qc.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=zf.range(e,i),[c,f]=rd.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of zf.nodes(e,{at:i,reverse:u,voids:s})){if(jf.isElement(m)){if(!s&&e.isVoid(m)){yield zf.start(e,b);continue}if(e.isInline(m))continue;if(zf.hasInlines(e,m)){var w=Yf.isAncestor(b,f.path)?f:zf.end(e,b),E=Yf.isAncestor(b,c.path)?c:zf.start(e,b);h=zf.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(cd.isText(m)){var D=Yf.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)?uf(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=uf(e,t),[i,a]=ff(e,o,t);if(df(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=ff(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=zf.before(e,i,{voids:r});if(a){var[,u]=zf.first(e,[]),s=[a.path,u];if(Yf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Yf.isPath(i)){var[l]=zf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=zf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>rd.isRange(t)&&!n?t:{anchor:zf.start(e,t),focus:zf.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 zf.rangeRefs(e).delete(o),o.current=null,t}};return zf.rangeRefs(e).add(o),o},rangeRefs(e){var t=ef.get(e);return t||(t=new Set,ef.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Zc.set(e,t)},start:(e,t)=>zf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=zf.range(e,t),[i,a]=rd.edges(o),u="";for(var[s,l]of zf.nodes(e,{at:o,match:cd.isText,voids:r})){var c=s.text;Yf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Yf.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]=rd.edges(t);if(0!==o.offset||0!==i.offset||rd.isCollapsed(t))return t;var a=zf.above(e,{at:i,match:t=>zf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:zf.start(e,[]),focus:i},l=!0;for(var[c,f]of zf.nodes(e,{at:s,match:cd.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Yf.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 zf.above(e,Rf(Rf({},t),{},{match:t=>zf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=zf.isNormalizing(e);zf.setNormalizing(e,!1);try{t()}finally{zf.setNormalizing(e,n)}zf.normalize(e)}},$f={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Yf.isPath)},Hf=["children"],Vf=["text"],Uf=new WeakMap,Wf={ancestor(e,t){var n=Wf.get(e,t);if(cd.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 Yf.ancestors(t,n)){var o=[Wf.ancestor(e,r),r];yield o}},child(e,t){if(cd.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=Wf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Wf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Yf.common(t,n);return[Wf.get(e,r),r]},descendant(e,t){var n=Wf.get(e,t);if(zf.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 Wf.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 Wf.nodes(e,t))jf.isElement(n)&&(yield[n,r])},extractProps:e=>jf.isAncestor(e)?of(e,Hf):of(e,Vf),first(e,t){for(var n=t.slice(),r=Wf.get(e,n);r&&!cd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(cd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Wc({children:e.children},(e=>{var[n,r]=rd.edges(t),o=Wf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!rd.includes(t,n)}});for(var[,i]of o){if(!rd.includes(t,i)){var a=Wf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Yf.equals(i,r.path)){var s=Wf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Yf.equals(i,n.path)){var l=Wf.leaf(e,i);l.text=l.text.slice(n.offset)}}zf.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(cd.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(cd.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>cd.isText(e)||jf.isElement(e)||zf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Uf.get(e);if(void 0!==t)return t;var n=e.every((e=>Wf.isNode(e)));return Uf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Wf.get(e,n);r&&!cd.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=Wf.get(e,t);if(!cd.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 Yf.levels(t,n)){var o=Wf.get(e,r);yield[o,r]}},matches:(e,t)=>jf.isElement(e)&&jf.isElementProps(t)&&jf.matches(e,t)||cd.isText(e)&&cd.isTextProps(t)&&cd.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?Yf.isBefore(u,i):Yf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||cd.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Yf.next(u);if(Wf.has(e,l)){u=l,s=Wf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Yf.previous(u),s=Wf.get(e,u)):(u=Yf.parent(u),s=Wf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Yf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Wf.get(e,u)}},parent(e,t){var n=Yf.parent(t),r=Wf.get(e,n);if(cd.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=>cd.isText(e)?e.text:e.children.map(Wf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Wf.nodes(e,t))cd.isText(n)&&(yield[n,r])}};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){Kc(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={isNodeOperation:e=>Kf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Xl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Yf.isPath(e.path)&&Wf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Yf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Yf.isPath(e.path)&&Xl(e.properties);case"move_node":return Yf.isPath(e.path)&&Yf.isPath(e.newPath);case"set_node":return Yf.isPath(e.path)&&Xl(e.properties)&&Xl(e.newProperties);case"set_selection":return null===e.properties&&rd.isRange(e.newProperties)||null===e.newProperties&&rd.isRange(e.properties)||Xl(e.properties)&&Xl(e.newProperties);case"split_node":return Yf.isPath(e.path)&&"number"==typeof e.position&&Xl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Kf.isOperation(e))),isSelectionOperation:e=>Kf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Kf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return qf(qf({},e),{},{type:"remove_node"});case"insert_text":return qf(qf({},e),{},{type:"remove_text"});case"merge_node":return qf(qf({},e),{},{type:"split_node",path:Yf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Yf.equals(t,n))return e;if(Yf.isSibling(n,t))return qf(qf({},e),{},{path:t,newPath:n});var r=Yf.transform(n,e),o=Yf.transform(Yf.next(n),e);return qf(qf({},e),{},{path:r,newPath:o});case"remove_node":return qf(qf({},e),{},{type:"insert_node"});case"remove_text":return qf(qf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return qf(qf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return qf(qf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return qf(qf({},e),{},{type:"merge_node",path:Yf.next(e.path)})}}},Yf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Yf.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 Yf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Yf.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 Yf.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===Yf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Yf.compare(e,t),isBefore:(e,t)=>-1===Yf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Yf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Yf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Yf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Yf.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]&&Yf.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(!Yf.isAncestor(t,e)&&!Yf.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 Wc(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;(Yf.equals(i,r)||Yf.endsBefore(i,r)||Yf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Yf.equals(a,r)||Yf.isAncestor(a,r))return null;Yf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Yf.equals(u,r)||Yf.endsBefore(u,r)?r[u.length-1]-=1:Yf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Yf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Yf.endsBefore(l,r)?r[l.length-1]+=1:Yf.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(Yf.equals(f,d))return;if(Yf.isAncestor(f,r)||Yf.equals(f,r)){var p=d.slice();return Yf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Yf.isSibling(f,d)&&(Yf.isAncestor(d,r)||Yf.equals(d,r))?Yf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Yf.endsBefore(d,r)||Yf.equals(d,r)||Yf.isAncestor(d,r)?(Yf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Yf.endsBefore(f,r)&&(Yf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},Xf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Yf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};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}function Jf(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){Kc(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}var Qf={compare(e,t){var n=Yf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Qf.compare(e,t),isBefore:(e,t)=>-1===Qf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Yf.equals(e.path,t.path),isPoint:e=>Xl(e)&&"number"==typeof e.offset&&Yf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Wc(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=Yf.transform(o,t,n);break;case"insert_text":Yf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Yf.equals(t.path,o)&&(e.offset+=t.position),e.path=Yf.transform(o,t,n);break;case"remove_text":Yf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Yf.equals(t.path,o)||Yf.isAncestor(t.path,o))return null;e.path=Yf.transform(o,t,n);break;case"split_node":if(Yf.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=Yf.transform(o,t,Jf(Jf({},n),{},{affinity:"forward"})))}else e.path=Yf.transform(o,t,n)}}))}},ed={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Qf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},td=["anchor","focus"];function nd(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 rd={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return rd.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=rd.edges(e);return t},equals:(e,t)=>Qf.equals(e.anchor,t.anchor)&&Qf.equals(e.focus,t.focus),includes(e,t){if(rd.isRange(t)){if(rd.includes(e,t.anchor)||rd.includes(e,t.focus))return!0;var[n,r]=rd.edges(e),[o,i]=rd.edges(t);return Qf.isBefore(n,o)&&Qf.isAfter(r,i)}var[a,u]=rd.edges(e),s=!1,l=!1;return Qf.isPoint(t)?(s=Qf.compare(t,a)>=0,l=Qf.compare(t,u)<=0):(s=Yf.compare(t,a.path)>=0,l=Yf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=of(e,td),[r,o]=rd.edges(e),[i,a]=rd.edges(t),u=Qf.isBefore(r,i)?i:r,s=Qf.isBefore(o,a)?o:a;return Qf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nd(Object(n),!0).forEach((function(t){Kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nd(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 Qf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Qf.equals(t,n)},isExpanded:e=>!rd.isCollapsed(e),isForward:e=>!rd.isBackward(e),isRange:e=>Xl(e)&&Qf.isPoint(e.anchor)&&Qf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=rd.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Wc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=rd.isCollapsed(e);rd.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?rd.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Qf.transform(e.anchor,t,{affinity:r}),s=Qf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},od={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=rd.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},id=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Xl(r)&&Xl(o)){if(!id(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},ad=["text"],ud=["anchor","focus"];function sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sd(Object(n),!0).forEach((function(t){Kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var cd={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return of(e,ad)}return id(r?o(e):e,r?o(t):t)},isText:e=>Xl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>cd.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=[ld({},e)];for(var r of t){var o=of(r,ud),[i,a]=rd.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=ld(ld({},d),{},{text:d.text.slice(g)}),d=ld(ld({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=ld(ld({},d),{},{text:d.text.slice(0,v)}),d=ld(ld({},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 fd(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 dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fd(Object(n),!0).forEach((function(t){Kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pd={transform(e,t){e.children=Gc(e.children);var n=e.selection&&Gc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Wf.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 rd.points(t))t[s]=Qf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Wf.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 rd.points(t))t[v]=Qf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Wf.get(e,y),b=Yf.previous(y),w=Wf.get(e,b),E=Wf.parent(e,y),D=y[y.length-1];if(cd.isText(m)&&cd.isText(w))w.text+=m.text;else{if(cd.isText(m)||cd.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[C,S]of rd.points(t))t[S]=Qf.transform(C,n);break;case"move_node":var{path:x,newPath:A}=n;if(Yf.isAncestor(x,A))throw new Error("Cannot move a path [".concat(x,"] to new path [").concat(A,"] because the destination is inside itself."));var O=Wf.get(e,x),k=Wf.parent(e,x),B=x[x.length-1];k.children.splice(B,1);var F=Yf.transform(x,n),T=Wf.get(e,Yf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of rd.points(t))t[j]=Qf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Wf.parent(e,N).children.splice(I,1),t)for(var[L,R]of rd.points(t)){var M=Qf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Wf.texts(e)){if(-1!==Yf.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Yf.equals($[1],N)?!Yf.hasPrevious($[1]):Yf.common(z[1],N).length<Yf.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=Wf.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 rd.points(t))t[J]=Qf.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=Wf.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(!rd.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=dd({},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=Wf.get(e,le),he=Wf.parent(e,le),ge=le[le.length-1];if(cd.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=dd(dd({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=dd(dd({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of rd.points(t))t[Ee]=Qf.transform(we,n)}return t})(e,n,t)}finally{e.children=qc(e.children),e.selection=n?Jl(n)?qc(n):n:null}}},hd=["text"],gd=["children"];function vd(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 yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){Kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var md={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Wf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?zf.end(e,[]):[0],s=!0),null==s&&(s=!1),rd.isRange(a))if(r||(a=zf.unhangRange(e,a)),rd.isCollapsed(a))a=a.anchor;else{var[,c]=rd.edges(a),f=zf.pointRef(e,c);kd.delete(e,{at:a}),a=f.unref()}if(Qf.isPoint(a)){null==u&&(u=cd.isText(l)?e=>cd.isText(e):e.isInline(l)?t=>cd.isText(t)||zf.isInline(e,t):t=>zf.isBlock(e,t));var[d]=zf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=zf.pathRef(e,p),g=zf.isEnd(e,a,p);kd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Yf.next(v):v}var y=Yf.parent(a),m=a[a.length-1];if(o||!zf.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=Yf.next(a)}if(a=Yf.previous(a),s){var E=zf.end(e,a);E&&kd.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Yf.isPath(n)?Ed(e,n):t=>zf.isBlock(e,t)),n){var a=zf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return zf.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=zf.node(e,Yf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Yf.next(d);kd.moveNodes(e,{at:l,to:g,voids:o}),kd.removeNodes(e,{at:d,voids:o})}else if(0===p)kd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Yf.next(d);kd.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Yf.next(l),m=Yf.next(d);kd.splitNodes(e,{at:y,voids:o}),kd.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zf.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(Yf.isPath(r)){var[u]=zf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>zf.isBlock(e,t);if(!o&&rd.isRange(r)&&(r=zf.unhangRange(e,r)),rd.isRange(r))if(rd.isCollapsed(r))r=r.anchor;else{var[,s]=rd.edges(r),l=zf.pointRef(e,s);kd.delete(e,{at:r}),r=l.unref(),null==t.at&&kd.select(e,r)}var[c]=zf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=zf.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=Yf.next(g),b=Yf.common(p,g),w=Yf.isSibling(p,g),E=Array.from(zf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=zf.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&bd(e,t)}),C=D&&zf.pathRef(e,D[1]);if(cd.isText(d)&&cd.isText(h)){var S=of(d,hd);y=h.text.length,v=S}else{if(!jf.isElement(d)||!jf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));S=of(d,gd),y=h.children.length,v=S}w||kd.moveNodes(e,{at:p,to:m,voids:i}),C&&kd.removeNodes(e,{at:C.current,voids:i}),jf.isElement(h)&&zf.isEmpty(e,h)||cd.isText(h)&&""===h.text&&0!==g[g.length-1]?kd.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}}))},moveNodes(e,t){zf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Yf.isPath(r)?Ed(e,r):t=>zf.isBlock(e,t));var u=zf.pathRef(e,n),s=zf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return zf.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&&Yf.isSibling(d,f)&&Yf.isAfter(d,f)&&(u.current=Yf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zf.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=Yf.isPath(i)?Ed(e,i):t=>zf.isBlock(e,t)),!n&&rd.isRange(i)&&(i=zf.unhangRange(e,i));var u=zf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return zf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=zf.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]:{};zf.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=Yf.isPath(o)?Ed(e,o):t=>zf.isBlock(e,t)),!i&&rd.isRange(o)&&(o=zf.unhangRange(e,o)),u&&rd.isRange(o)){if(rd.isCollapsed(o)&&zf.leaf(e,o.anchor)[0].text.length>0)return;var l=zf.rangeRef(e,o,{affinity:"inward"}),[c,f]=rd.edges(o),d="lowest"===a?"lowest":"highest",p=zf.isEnd(e,f,f.path);kd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=zf.isStart(e,c,c.path);kd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&kd.select(e,o)}for(var[g,v]of zf.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]:{};zf.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=>zf.isBlock(e,t)),rd.isRange(i)&&(i=wd(e,i)),Yf.isPath(i)){var s=i,l=zf.point(e,s),[c]=zf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=zf.pointRef(e,i,{affinity:"backward"}),[d]=zf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=zf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(jf.isElement(h)&&e.isInline(h)){var v=zf.after(e,g);if(!v){var y=Yf.next(g);kd.insertNodes(e,{text:""},{at:y,voids:r}),v=zf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=zf.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[C,S]of zf.levels(e,{at:E,reverse:!0,voids:r})){var x=!1;if(S.length<w.length||0===S.length||!r&&zf.isVoid(e,C))break;var A=f.current,O=zf.isEnd(e,A,S);if(u||!f||!zf.isEdge(e,A,S)){x=!0;var k=Wf.extractProps(C);e.apply({type:"split_node",path:S,position:D,properties:k})}D=S[S.length-1]+(x||O?1:0)}if(null==t.at){var B=m.current||zf.end(e,[]);kd.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;kd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zf.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=Yf.isPath(i)?Ed(e,i):t=>zf.isBlock(e,t)),Yf.isPath(i)&&(i=zf.range(e,i));var u=rd.isRange(i)?zf.rangeRef(e,i):null,s=zf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return zf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=zf.node(e,n),a=zf.range(e,n);r&&u&&(a=rd.intersection(u.current,a)),kd.liftNodes(e,{at:a,match:e=>jf.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]:{};zf.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=Yf.isPath(u)?Ed(e,u):e.isInline(t)?t=>zf.isInline(e,t)||cd.isText(t):t=>zf.isBlock(e,t)),o&&rd.isRange(u)){var[s,l]=rd.edges(u),c=zf.rangeRef(e,u,{affinity:"inward"});kd.splitNodes(e,{at:l,match:a,voids:i}),kd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&kd.select(e,u)}var f=Array.from(zf.nodes(e,{at:u,match:e.isInline(t)?t=>zf.isBlock(e,t):e=>zf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=rd.isRange(u)?rd.intersection(u,zf.range(e,d)):u;if(p){var h=Array.from(zf.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=Yf.equals(o,a)?Yf.parent(o):Yf.common(o,a),s=zf.range(e,o,a),l=zf.node(e,u),[c]=l,f=u.length+1,d=Yf.next(a.slice(0,f)),p=yd(yd({},t),{},{children:[]});kd.insertNodes(e,p,{at:d,voids:i}),kd.moveNodes(e,{at:s,match:e=>jf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},bd=(e,t)=>{if(jf.isElement(t)){var n=t;return!!zf.isVoid(e,t)||1===n.children.length&&bd(e,n.children[0])}return!zf.isEditor(t)},wd=(e,t)=>{if(rd.isCollapsed(t))return t.anchor;var[,n]=rd.edges(t),r=zf.pointRef(e,n);return kd.delete(e,{at:t}),r.unref()},Ed=(e,t)=>{var[n]=zf.node(e,t);return e=>e===n};function Dd(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 Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dd(Object(n),!0).forEach((function(t){Kc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dd(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)kd.select(e,r.anchor);else if("focus"===n)kd.select(e,r.focus);else if("start"===n){var[o]=rd.edges(r);kd.select(e,o)}else if("end"===n){var[,i]=rd.edges(r);kd.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=rd.isBackward(n)?"focus":"anchor"),"end"===a&&(a=rd.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?zf.before(e,u,l):zf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?zf.before(e,s,l):zf.after(e,s,l);d&&(c.focus=d)}kd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=zf.range(e,t),n)kd.setSelection(e,t);else{if(!rd.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=rd.isBackward(r)?"focus":"anchor"),"end"===o&&(o=rd.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;kd.setSelection(e,{["anchor"===o?"anchor":"focus"]:Cd(Cd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Qf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Qf.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})}}},xd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zf.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(rd.isRange(a)&&rd.isCollapsed(a)&&(a=a.anchor),Qf.isPoint(a)){var s=zf.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?zf.before(e,a,c)||zf.start(e,[]):zf.after(e,a,c)||zf.end(e,[])},u=!0}}if(Yf.isPath(a))kd.removeNodes(e,{at:a,voids:i});else if(!rd.isCollapsed(a)){if(!u){var[,f]=rd.edges(a),d=zf.end(e,[]);Qf.equals(f,d)||(a=zf.unhangRange(e,a,{voids:i}))}var[p,h]=rd.edges(a),g=zf.above(e,{match:t=>zf.isBlock(e,t),at:p,voids:i}),v=zf.above(e,{match:t=>zf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Yf.equals(g[1],v[1]),m=Yf.equals(p.path,h.path),b=i?null:zf.void(e,{at:p,mode:"highest"}),w=i?null:zf.void(e,{at:h,mode:"highest"});if(b){var E=zf.before(e,p);E&&g&&Yf.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=zf.after(e,h);D&&v&&Yf.isAncestor(v[1],D.path)&&(h=D)}var C,S=[];for(var x of zf.nodes(e,{at:a,voids:i})){var[A,O]=x;C&&0===Yf.compare(O,C)||(!i&&zf.isVoid(e,A)||!Yf.isCommon(O,p.path)&&!Yf.isCommon(O,h.path))&&(S.push(x),C=O)}var k=Array.from(S,(t=>{var[,n]=t;return zf.pathRef(e,n)})),B=zf.pointRef(e,p),F=zf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=zf.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();kd.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=zf.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&&kd.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&kd.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(rd.isRange(i))if(r||(i=zf.unhangRange(e,i)),rd.isCollapsed(i))i=i.anchor;else{var[,a]=rd.edges(i);if(!o&&zf.void(e,{at:a}))return;var u=zf.pointRef(e,a);kd.delete(e,{at:i}),i=u.unref()}else Yf.isPath(i)&&(i=zf.start(e,i));if(o||!zf.void(e,{at:i})){var s=zf.above(e,{at:i,match:t=>zf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;zf.isEnd(e,i,l)?i=zf.after(e,l):zf.isStart(e,i,l)&&(i=zf.before(e,l))}var c=zf.above(e,{match:t=>zf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=zf.isStart(e,i,f),p=zf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Wf.first({children:t},[]),[,m]=Wf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Yf.isAncestor(r,y)&&jf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Yf.isAncestor(r,m)&&jf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Wf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],C=[],S=[],x=!0,A=!1;for(var[O]of b)jf.isElement(O)&&!e.isInline(O)?(x=!1,A=!0,C.push(O)):x?D.push(O):S.push(O);var[k]=zf.nodes(e,{at:i,match:t=>cd.isText(t)||zf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=zf.isStart(e,i,B),T=zf.isEnd(e,i,B),_=zf.pathRef(e,p?Yf.next(f):f),P=zf.pathRef(e,T?Yf.next(B):B),j=zf.pathRef(e,f);kd.splitNodes(e,{at:i,match:t=>A?zf.isBlock(e,t):cd.isText(t)||zf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=zf.pathRef(e,!F||F&&T?Yf.next(B):B);if(kd.insertNodes(e,D,{at:N.current,match:t=>cd.isText(t)||zf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&kd.delete(e,{at:j.unref(),voids:o}),kd.insertNodes(e,C,{at:_.current,match:t=>zf.isBlock(e,t),mode:"lowest",voids:o}),kd.insertNodes(e,S,{at:P.current,match:t=>cd.isText(t)||zf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=S.length>0?Yf.previous(P.current):C.length>0?Yf.previous(_.current):Yf.previous(N.current);var L=zf.end(e,I);kd.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Yf.isPath(o)&&(o=zf.range(e,o)),rd.isRange(o))if(rd.isCollapsed(o))o=o.anchor;else{var i=rd.end(o);if(!r&&zf.void(e,{at:i}))return;var a=zf.pointRef(e,i);kd.delete(e,{at:o,voids:r}),o=a.unref(),kd.setSelection(e,{anchor:o,focus:o})}if(r||!zf.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 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 Od(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){Kc(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 kd=Od(Od(Od(Od({},pd),md),Sd),xd),Bd="[object Map]",Fd="[object Set]",Td=/^\[object .+?Constructor\]$/,_d=/^(?:0|[1-9]\d*)$/,Pd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",jd="\\ud83c[\\udffb-\\udfff]",Nd="[^\\ud800-\\udfff]",Id="(?:\\ud83c[\\udde6-\\uddff]){2}",Ld="[\\ud800-\\udbff][\\udc00-\\udfff]",Rd="(?:"+Pd+"|"+jd+")?",Md="[\\ufe0e\\ufe0f]?"+Rd+"(?:\\u200d(?:"+[Nd,Id,Ld].join("|")+")[\\ufe0e\\ufe0f]?"+Rd+")*",zd="(?:"+[Nd+Pd+"?",Pd,Id,Ld,"[\\ud800-\\udfff]"].join("|")+")",$d=RegExp(jd+"(?="+jd+")|"+zd+Md,"g"),Hd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Vd="object"==typeof y&&y&&y.Object===Object&&y,Ud="object"==typeof self&&self&&self.Object===Object&&self,Wd=Vd||Ud||Function("return this")();function Gd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Kd,Yd,Xd=Function.prototype,Zd=Object.prototype,Jd=Wd["__core-js_shared__"],Qd=function(){var e=/[^.]+$/.exec(Jd&&Jd.keys&&Jd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ep=Xd.toString,tp=Zd.hasOwnProperty,np=Zd.toString,rp=RegExp("^"+ep.call(tp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),op=Wd.Symbol,ip=op?op.iterator:void 0,ap=Zd.propertyIsEnumerable,up=(Kd=Object.keys,Yd=Object,function(e){return Kd(Yd(e))}),sp=mp(Wd,"DataView"),lp=mp(Wd,"Map"),cp=mp(Wd,"Promise"),fp=mp(Wd,"Set"),dp=mp(Wd,"WeakMap"),pp=Ep(sp),hp=Ep(lp),gp=Ep(cp),vp=Ep(fp),yp=Ep(dp);function mp(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!xp(e)||(t=e,Qd&&Qd 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)?rp:Td;return n.test(Ep(e))}(o)?o:void 0}var bp=function(e){return np.call(e)};function wp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||_d.test(e))&&e>-1&&e%1==0&&e<t}function Ep(e){if(null!=e){try{return ep.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(sp&&"[object DataView]"!=bp(new sp(new ArrayBuffer(1)))||lp&&bp(new lp)!=Bd||cp&&"[object Promise]"!=bp(cp.resolve())||fp&&bp(new fp)!=Fd||dp&&"[object WeakMap]"!=bp(new dp))&&(bp=function(e){var t=np.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ep(n):void 0;if(r)switch(r){case pp:return"[object DataView]";case hp:return Bd;case gp:return"[object Promise]";case vp:return Fd;case yp:return"[object WeakMap]"}return t});var Dp=Array.isArray;function Cp(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=xp(e)?np.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function xp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ap(e){return!!e&&"object"==typeof e}function Op(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,Cp(t=e)?function(e,t){var n,r,o=Dp(e)||Ap(r=n=e)&&Cp(r)&&tp.call(n,"callee")&&(!ap.call(n,"callee")||"[object Arguments]"==np.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=o.length,a=!!i;for(var u in e)!t&&!tp.call(e,u)||a&&("length"==u||wp(u,i))||o.push(u);return o}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Zd))return up(e);var t,n,r=[];for(var o in Object(e))tp.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var kp=function(e){if(!e)return[];if(Cp(e))return"string"==typeof(t=e)||!Dp(t)&&Ap(t)&&"[object String]"==np.call(t)?function(e){return t=e,Hd.test(t)?function(e){return e.match($d)||[]}(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(ip&&e[ip])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ip]());var n=bp(e);return(n==Bd?Gd:n==Fd?qd:Op)(e)};function Bp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Fp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Bp(t[n])&&Bp(e[n])&&Object.keys(t[n]).length>0&&Fp(e[n],t[n])}))}var Tp={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 _p(){var e="undefined"!=typeof document?document:{};return Fp(e,Tp),e}var Pp={document:Tp,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 jp(){var e="undefined"!=typeof window?window:{};return Fp(e,Pp),e}function Np(e){return(Np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ip(e,t){return(Ip=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lp(){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($l){return!1}}function Rp(e,t,n){return Rp=Lp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ip(o,n.prototype),o},Rp.apply(null,arguments)}function Mp(e){var t="function"==typeof Map?new Map:void 0;return Mp=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 Rp(e,arguments,Np(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ip(r,e)},Mp(e)}var zp=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}(Mp(Array));function $p(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,$p(e)):t.push(e)})),t}function Hp(e,t){return Array.prototype.filter.call(e,t)}function Vp(e,t){var n=jp(),r=_p(),o=[];if(!t&&e instanceof zp)return e;if(!e)return new zp(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 zp)return e;o=e}return new zp(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 Up(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=$p(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Wp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=$p(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Gp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=$p(t.map((function(e){return e.split(" ")})));return Hp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function qp(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 Kp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Yp(){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 Xp(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 Zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Vp(t).is(o))i.apply(t,n);else for(var r=Vp(t).parents(),a=0;a<r.length;a+=1)Vp(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 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"==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 Qp(){var e=jp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function eh(){var e=jp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function th(){if(this.length>0){var e=jp(),t=_p(),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 nh(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function rh(){for(var e=jp(),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 oh(e,t){var n,r=jp();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 ih(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function ah(e){return Vp(Hp(this,e))}function uh(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 sh(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 lh(e){var t,n,r=jp(),o=_p(),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=Vp(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 zp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function ch(){for(var e,t=_p(),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 zp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function fh(e){var t,n,r=_p();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 zp)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 dh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Vp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Vp(t)}function ph(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Vp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Vp(t)}function hh(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 Vp(t)}function gh(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&&!Vp(r[o]).is(e)||t.push(r[o]);return Vp(t)}function vh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function yh(){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}Vp.fn=zp.prototype;var mh="resize scroll".split(" ");function bh(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)mh.indexOf(e)<0&&(e in this[o]?this[o][e]():Vp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var wh=bh("click"),Eh=bh("focus"),Dh=/^(?:0|[1-9]\d*)$/;function Ch(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Sh=Object.prototype,xh=Sh.hasOwnProperty,Ah=Sh.toString,Oh=Sh.propertyIsEnumerable,kh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var Bh,Fh=(Bh=function(e,t){return e&&Th(e,t,Nh)},function(e,t){if(null==e)return e;if(!jh(e))return Bh(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Th=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 _h(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Dh.test(e))&&e>-1&&e%1==0&&e<t}var Ph=Array.isArray;function jh(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?"":Ah.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function Nh(e){return jh(e)?function(e,t){var n,r,o,i=Ph(e)||(o=r=n=e)&&"object"==typeof o&&jh(r)&&xh.call(n,"callee")&&(!Oh.call(n,"callee")||"[object Arguments]"==Ah.call(n))?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],a=i.length,u=!!a;for(var s in e)!t&&!xh.call(e,s)||u&&("length"==s||_h(s,a))||i.push(s);return i}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Sh))return kh(e);var t,n,r=[];for(var o in Object(e))xh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Ih(e){return e}var Lh=function(e,t){return(Ph(e)?Ch:Fh)(e,"function"==typeof t?t:Ih)};let Rh=(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 Mh=/^\s+|\s+$/g,zh=/^[-+]0x[0-9a-f]+$/i,$h=/^0b[01]+$/i,Hh=/^0o[0-7]+$/i,Vh=parseInt,Uh="object"==typeof y&&y&&y.Object===Object&&y,Wh="object"==typeof self&&self&&self.Object===Object&&self,Gh=Uh||Wh||Function("return this")(),qh=Object.prototype.toString,Kh=Math.max,Yh=Math.min,Xh=function(){return Gh.Date.now()};function Zh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Jh(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==qh.call(t))return NaN;var t,n;if(Zh(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=Zh(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mh,"");var o=$h.test(e);return o||Hh.test(e)?Vh(e.slice(2),o?2:8):zh.test(e)?NaN:+e}var Qh=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Zh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=Xh();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?Yh(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Xh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Jh(t)||0,Zh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Kh(Jh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Xh())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const eg={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 tg(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 ng=Array.isArray;function rg(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function og(e){return void 0===e}function ig(e){return void 0!==e}const ag=tg("",{},[],void 0,void 0);function ug(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 sg(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 lg=["create","update","remove","destroy","pre","post"];function cg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:eg;for(const c of lg)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;ig(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)og(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=ig(s)&&ig(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](ag,e);if(ng(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else rg(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;ig(v)&&(null===(a=v.create)||void 0===a||a.call(v,ag,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(ig(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;ig(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)}og(t.text)?ig(v)&&ig(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]:ug(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):ug(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):ug(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):ug(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=sg(t,p,g)),c=u[b.key],og(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):ig(y)?(ig(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):ig(v)?s(g,v,0,v.length-1):ig(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(ig(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 tg(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),ug(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 fg(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&&fg(e,t[r].children,t[r].sel)}}function dg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),ng(n)?r=n:rg(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(ng(t)?r=t:rg(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)rg(r[i])&&(r[i]=tg(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]||fg(a,r,e),tg(e,a,r,o,void 0)}function pg(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 hg={create:pg,update:pg};function gg(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 vg={create:gg,update:gg},yg=/[A-Z]/g;function mg(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(yg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(yg,"-$&").toLowerCase(),i[r]))}const bg={create:mg,update:mg};function wg(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++)wg(e[r],t,n)}function Eg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&wg(r[n],t,e)}function Dg(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Eg(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 Cg={create:Dg,update:Dg,destroy:Dg};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 xg={create:Sg,update:Sg},Ag="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Og=!1;function kg(e,t,n){var r;r=function(){e[t]=n},Ag((function(){Ag(r)}))}function Bg(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]||kg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Fg={pre:function(){Og=!1},create:Bg,update:Bg,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;Og||(e.elm.offsetLeft,Og=!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 Tg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Tg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(tg(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function _g(e,t,...n){const r=Tg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?dg(e,t,r[0].text):dg(e,t,r)}_g||(_g={});var Pg,jg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ng=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ig="\\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",Lg="["+Ig+"]",Rg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Mg="\\d+",zg="[a-z\\xdf-\\xf6\\xf8-\\xff]",$g="[^\\ud800-\\udfff"+Ig+Mg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Hg="\\ud83c[\\udffb-\\udfff]",Vg="[^\\ud800-\\udfff]",Ug="(?:\\ud83c[\\udde6-\\uddff]){2}",Wg="[\\ud800-\\udbff][\\udc00-\\udfff]",Gg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",qg="(?:"+zg+"|"+$g+")",Kg="(?:"+Gg+"|"+$g+")",Yg="(?:"+Rg+"|"+Hg+")?",Xg="[\\ufe0e\\ufe0f]?"+Yg+"(?:\\u200d(?:"+[Vg,Ug,Wg].join("|")+")[\\ufe0e\\ufe0f]?"+Yg+")*",Zg="(?:"+["[\\u2700-\\u27bf]",Ug,Wg].join("|")+")"+Xg,Jg="(?:"+[Vg+Rg+"?",Rg,Ug,Wg,"[\\ud800-\\udfff]"].join("|")+")",Qg=RegExp("['’]","g"),ev=RegExp(Rg,"g"),tv=RegExp(Hg+"(?="+Hg+")|"+Jg+Xg,"g"),nv=RegExp([Gg+"?"+zg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Lg,Gg,"$"].join("|")+")",Kg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Lg,Gg+qg,"$"].join("|")+")",Gg+"?"+qg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Gg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Mg,Zg].join("|"),"g"),rv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ov=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,iv="object"==typeof y&&y&&y.Object===Object&&y,av="object"==typeof self&&self&&self.Object===Object&&self,uv=iv||av||Function("return this")(),sv=(Pg={"À":"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==Pg?void 0:Pg[e]});function lv(e){return rv.test(e)}var cv=Object.prototype.toString,fv=uv.Symbol,dv=fv?fv.prototype:void 0,pv=dv?dv.toString:void 0;function hv(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==cv.call(t))return pv?pv.call(e):"";var t,n,r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}for(var gv,vv=(gv=function(e,t,n){return t=t.toLowerCase(),e+(n?yv(hv(t).toLowerCase()):t)},function(e){return function(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(e,t,n){return e=hv(e),void 0===t?(r=e,ov.test(r)?function(e){return e.match(nv)||[]}(e):function(e){return e.match(jg)||[]}(e)):e.match(t)||[];var r}((t=e,(t=hv(t))&&t.replace(Ng,sv).replace(ev,"")).replace(Qg,"")),gv,"");var t}),yv=("toUpperCase",function(e){var t=lv(e=hv(e))?function(e){return lv(e)?e.match(tv)||[]:(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 n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r}),mv=vv,bv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),wv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Ev={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:bv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Dv={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},Cv=1;Cv<20;Cv++)Dv["f"+Cv]=111+Cv;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 wv)r[wv[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=Av(d),g=wv[h];if(d.length>1&&!g&&!Ev[d]&&!Dv[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=xv(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 xv(e){return e=Av(e),Dv[e]||e.toUpperCase().charCodeAt(0)}function Av(e){return e=e.toLowerCase(),Ev[e]||e}var Ov=Sv,kv=function(e,t){return Sv(e,{byKey:!0},t)},Bv=/^\s+|\s+$/g,Fv=/^[-+]0x[0-9a-f]+$/i,Tv=/^0b[01]+$/i,_v=/^0o[0-7]+$/i,Pv=parseInt,jv="object"==typeof y&&y&&y.Object===Object&&y,Nv="object"==typeof self&&self&&self.Object===Object&&self,Iv=jv||Nv||Function("return this")(),Lv=Object.prototype.toString,Rv=Math.max,Mv=Math.min,zv=function(){return Iv.Date.now()};function $v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Hv(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Lv.call(t))return NaN;var t,n;if($v(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=$v(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Bv,"");var o=Tv.test(e);return o||_v.test(e)?Pv(e.slice(2),o?2:8):Fv.test(e)?NaN:+e}var Vv,Uv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=zv();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?Mv(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=zv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Hv(t)||0,$v(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Rv(Hv(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(zv())},m},Wv=m((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]",v="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",D="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",x="[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[C]=P[S]=P[x]=P[l]=P[c]=P[f]=P[p]=P[h]=P[g]=P[v]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[u]=P[m]=!1;var j="object"==typeof y&&y&&y.Object===Object&&y,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){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function 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),Ce=re?re.prototype:void 0,Se=Ce?Ce.valueOf:void 0;function xe(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,y,m){var T;if(r&&(T=y?r(e,d,y,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&&!y){if(V(e))return y?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 y?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 C:case S:case x: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 v:return function(e){return Se?Object(Se.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,i){for(var a=-1,u=o?o.length:0;++a<u&&!1!==(s=o[a],l=a,W&&(s=e[l=s]),void Be(T,l,Te(s,t,n,r,l,e,m))););var s,l}(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],u=r?r(n[a],e[a],a,n,e):void 0;Be(n,a,void 0===u?e[a]:u)}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}xe.prototype.clear=function(){this.__data__=ye?ye(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},xe.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},xe.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},xe.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 xe,map:new(pe||Ae),string:new xe}},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,t){var n,r,i,a=He(e)||(i=r=n=e)&&"object"==typeof i&&Ve(r)&&Q.call(n,"callee")&&(!ue.call(n,"callee")||ee.call(n)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(var l in e)!t&&!Q.call(e,l)||s&&("length"==l||Re(l,u))||a.push(l);return a}(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 Gv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qv=0;function Kv(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
  8. /**
  9. * Takes a string with placeholder variables like `%{smart_count} file selected`
  10. * and replaces it with values from options `{smart_count: 5}`
  11. *
  12. * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
  13. * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
  14. *
  15. * @param {string} phrase that needs interpolation, with placeholders
  16. * @param {object} options with values that will be used to replace placeholders
  17. * @returns {any[]} interpolated
  18. */}function Yv(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=Kv(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var Xv=(Vv=function(e){return"__private_"+qv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Vv,{value:Zv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Gv(this,Vv)[Vv],this):Gv(this,Vv)[Vv](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 Yv(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 Yv(o,t)}});function Zv(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 Jv=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};let{urlAlphabet:Qv}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},ey=e=>crypto.getRandomValues(new Uint8Array(e)),ty=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var ny={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>ty(e,t,ey),customRandom:ty,urlAlphabet:Qv,random:ey},ry=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 oy(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}oy.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 iy=/[\/\+\.]/,ay=0;var uy=function(e){return"__private_"+ay+++"_"+e}("publish");class sy{constructor(){Object.defineProperty(this,uy,{value:ly}),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,uy)[uy](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function ly(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}sy.VERSION="2.0.3";var cy=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},fy={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function dy(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var py=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 hy(e){return e<10?`0${e}`:e.toString()}var gy=function(){const e=new Date;return`${hy(e.getHours())}:${hy(e.getMinutes())}:${hy(e.getSeconds())}`},vy={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] [${gy()}]`,...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] [${gy()}]`,...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] [${gy()}]`,...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] [${gy()}]`,...t)}}},yy={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}"}}},my=ny;let by,wy;function Ey(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Dy=0;function Cy(e){return"__private_"+Dy+++"_"+e}const{nanoid:Sy}=my,{justErrorsLogger:xy,debugLogger:Ay}=vy;class Oy 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 ky extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var By=Cy("plugins"),Fy=Cy("storeUnsubscribe"),Ty=Cy("emitter"),_y=Cy("preProcessors"),Py=Cy("uploaders"),jy=Cy("postProcessors"),Ny=Cy("checkRestrictions"),Iy=Cy("checkMinNumberOfFiles"),Ly=Cy("checkRequiredMetaFieldsOnFile"),Ry=Cy("checkRequiredMetaFields"),My=Cy("showOrLogErrorAndThrow"),zy=Cy("assertNewUploadAllowed"),$y=Cy("checkAndCreateFileStateObject"),Hy=Cy("startIfAutoProceed"),Vy=Cy("addListeners"),Uy=Cy("updateOnlineStatus"),Wy=Cy("createUpload"),Gy=Cy("getUpload"),qy=Cy("removeUpload"),Ky=Cy("runUpload");by=Symbol.for("uppy test: getPlugins"),wy=Symbol.for("uppy test: createUpload");class Yy{constructor(e){Object.defineProperty(this,Ky,{value:sm}),Object.defineProperty(this,qy,{value:um}),Object.defineProperty(this,Gy,{value:am}),Object.defineProperty(this,Wy,{value:im}),Object.defineProperty(this,Vy,{value:om}),Object.defineProperty(this,Hy,{value:rm}),Object.defineProperty(this,$y,{value:nm}),Object.defineProperty(this,zy,{value:tm}),Object.defineProperty(this,My,{value:em}),Object.defineProperty(this,Ry,{value:Qy}),Object.defineProperty(this,Ly,{value:Jy}),Object.defineProperty(this,Iy,{value:Zy}),Object.defineProperty(this,Ny,{value:Xy}),Object.defineProperty(this,By,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Fy,{writable:!0,value:void 0}),Object.defineProperty(this,Ty,{writable:!0,value:Jv()}),Object.defineProperty(this,_y,{writable:!0,value:new Set}),Object.defineProperty(this,Py,{writable:!0,value:new Set}),Object.defineProperty(this,jy,{writable:!0,value:new Set}),Object.defineProperty(this,Uy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=yy;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 sy,logger:xy,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=Ay),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=Qh(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:py(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ey(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),Ey(this,Vy)[Vy]()}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];Ey(this,Ty)[Ty].emit(e,...n)}on(e,t){return Ey(this,Ty)[Ty].on(e,t),this}once(e,t){return Ey(this,Ty)[Ty].once(e,t),this}off(e,t){return Ey(this,Ty)[Ty].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new Xv([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){Ey(this,_y)[_y].add(e)}removePreProcessor(e){return Ey(this,_y)[_y].delete(e)}addPostProcessor(e){Ey(this,jy)[jy].add(e)}removePostProcessor(e){return Ey(this,jy)[jy].delete(e)}addUploader(e){Ey(this,Py)[Py].add(e)}removeUploader(e){return Ey(this,Py)[Py].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 Ey(this,Ny)[Ny](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){Ey(this,zy)[zy](e);const{files:t}=this.getState();let n=Ey(this,$y)[$y](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}`),Ey(this,Hy)[Hy](),n.id}addFiles(e){Ey(this,zy)[zy]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=Ey(this,$y)[$y](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&&Ey(this,Hy)[Hy](),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=Ey(this,Wy)[Wy](t,{forceAllowNewUpload:!0});return Ey(this,Ky)[Ky](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=Ey(this,Wy)[Wy]([e],{forceAllowNewUpload:!0});return Ey(this,Ky)[Ky](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 Ey(this,By)[By]?Ey(this,By)[By][n.type].push(n):Ey(this,By)[By][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Ey(this,By)[By])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[by](e){return Ey(this,By)[By][e]}iteratePlugins(e){Object.values(Ey(this,By)[By]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Ey(this,By)[By][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(),Ey(this,Fy)[Fy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Ey(this,Uy)[Uy]),window.removeEventListener("offline",Ey(this,Uy)[Uy]))}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]?Ey(this,Ky)[Ky](e):(Ey(this,qy)[qy](e),Promise.reject(new Error("Nonexistent upload")))}[wy](){return Ey(this,Wy)[Wy](...arguments)}addResultData(e,t){if(!Ey(this,Gy)[Gy](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=Ey(this,By)[By].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((()=>{Ey(this,Iy)[Iy](t),Ey(this,Ry)[Ry](t)})).catch((e=>{Ey(this,My)[My](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=Ey(this,Wy)[Wy](r);return Ey(this,Ky)[Ky](o)})).catch((e=>{Ey(this,My)[My](e,{showInformer:!1})})))}}function Xy(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 Oy(`${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,n){var r=new oy(e,iy);return void 0!==t?r.match(t):r}(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 Oy(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 Oy(this.i18n("exceedsSize",{size:ry(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Oy(this.i18n("exceedsSize",{size:ry(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Oy(this.i18n("inferiorSize",{size:ry(r)}))}function Zy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Oy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Jy(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 Oy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Ey(this,My)[My](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Qy(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Ey(this,Ly)[Ly](t)}));if(t.length)throw new ky(t,`${this.i18n("missingRequiredMetaField")}`)}function em(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 tm(e){const{allowNewUpload:t}=this.getState();!1===t&&Ey(this,My)[My](new Oy(this.i18n("noMoreFilesAllowed")),{file:e})}function nm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=cy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in fy?fy[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=cy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${dy(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${dy(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});var u,s;if(this.checkIfFileAlreadyExists(a)){const e=new Oy(this.i18n("noDuplicates",{fileName:r}));Ey(this,My)[My](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?Ey(this,My)[My](new Oy("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]));Ey(this,Ny)[Ny](f,t)}catch(u){Ey(this,My)[My](u,{file:f})}return f}function rm(){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 om(){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}),Ey(this,My)[My](e,{throwErr:!1})}else Ey(this,My)[My](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:Ey(this,jy)[jy].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&&Ey(this,Ly)[Ly](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Ey(this,Uy)[Uy]),window.addEventListener("offline",Ey(this,Uy)[Uy]),setTimeout(Ey(this,Uy)[Uy],3e3))}function im(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=Sy();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 am(e){const{currentUploads:t}=this.getState();return t[e]}function um(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function sm(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Ey(this,_y)[_y],...Ey(this,Py)[Py],...Ey(this,jy)[jy]];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),Ey(this,qy)[qy](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),Ey(this,qy)[qy](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Yy.VERSION="2.1.3";var lm=Yy,cm=m((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 C(e,t,n,r,o,i,a,u,s,l){var d,p,h,g,m,w,E,D=r&&r.__k||f,C=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<C;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=S(g,s,e):s=x(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=C;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 S(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?S(r,t,n):x(n,r,r,o,r.__e,t));return t}function x(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,S,x,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(x=t.props,A=(d=F.contextType)&&i[d.__c],k=d?A?A.props.value:d.__:i,o.__c?S=(g=t.__c=o.__c).__=g.__E:("prototype"in F&&F.prototype.render?t.__c=g=new F(x,k):(t.__c=g=new m(x,k),g.constructor=F,g.render=j),A&&A.sub(g),g.props=x,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(x,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&&x!==w&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(x,k),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(x,g.__s,k)||t.__v===o.__v){g.props=x,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(x,g.__s,k),null!=g.componentDidUpdate&&g.__h.push((function(){g.componentDidUpdate(w,E,D)}))}g.context=k,g.props=x,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,C(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),S&&(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,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==v,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in g&&void 0!==(y=g.value)&&(y!==p.value||y!==e.value||"progress"===v&&!y)&&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}})),fm=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 Xv([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 dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var pm=0;const{render:hm}=cm;var gm=function(e){return"__private_"+pm+++"_"+e}("updateUI");class vm extends fm{constructor(){super(...arguments),Object.defineProperty(this,gm,{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 dm(this,gm)[gm]=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)&&(hm(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),hm(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 vm)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=dm(this,gm))[gm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var ym=vm;const{debugLogger:mm}=vy;var bm=lm,wm=lm,Em=ym,Dm=fm,Cm=mm;bm.Uppy=wm,bm.UIPlugin=Em,bm.BasePlugin=Dm,bm.debugLogger=Cm;class Sm 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 xm=Sm,Am=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new xm(e)}))};class Om extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var km,Bm,Fm,Tm,_m,Pm=Om;function jm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nm=0;function Im(e){return"__private_"+Nm+++"_"+e}async function Lm(e){if(401===e.status)throw new Pm;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 Rm=(Bm=Im("getPostResponseFunc"),Fm=Im("getUrl"),Tm=Im("errorHandler"),_m=km=class e{constructor(e,t){Object.defineProperty(this,Tm,{value:zm}),Object.defineProperty(this,Fm,{value:Mm}),Object.defineProperty(this,Bm,{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(jm(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=>Am(jm(this,Fm)[Fm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(jm(this,Bm)[Bm](t)).then(Lm).catch(jm(this,Tm)[Tm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Am(jm(this,Fm)[Fm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(jm(this,Bm)[Bm](n)).then(Lm).catch(jm(this,Tm)[Tm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Am(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(jm(this,Bm)[Bm](n)).then(Lm).catch(jm(this,Tm)[Tm](r,e))}},km.VERSION="2.0.4",km.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${km.VERSION}`},_m);function Mm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function zm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${jm(this,Fm)[Fm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var $m,Hm,Vm,Um,Wm,Gm={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 qm,Km;function Ym(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Xm=0;function Zm(e){return"__private_"+Xm+++"_"+e}var Jm,Qm,eb=($m=Zm("queued"),Hm=Zm("emitter"),Vm=Zm("isOpen"),Um=Zm("socket"),Wm=Zm("handleMessage"),qm=Symbol.for("uppy test: getSocket"),Km=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,$m,{writable:!0,value:[]}),Object.defineProperty(this,Hm,{writable:!0,value:Jv()}),Object.defineProperty(this,Vm,{writable:!0,value:!1}),Object.defineProperty(this,Um,{writable:!0,value:void 0}),Object.defineProperty(this,Wm,{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 Ym(this,Vm)[Vm]}[qm](){return Ym(this,Um)[Um]}[Km](){return Ym(this,$m)[$m]}open(){Ym(this,Um)[Um]=new WebSocket(this.opts.target),Ym(this,Um)[Um].onopen=()=>{for(Ym(this,Vm)[Vm]=!0;Ym(this,$m)[$m].length>0&&Ym(this,Vm)[Vm];){const e=Ym(this,$m)[$m].shift();this.send(e.action,e.payload)}},Ym(this,Um)[Um].onclose=()=>{Ym(this,Vm)[Vm]=!1},Ym(this,Um)[Um].onmessage=Ym(this,Wm)[Wm]}close(){var e;null==(e=Ym(this,Um)[Um])||e.close()}send(e,t){Ym(this,Vm)[Vm]?Ym(this,Um)[Um].send(JSON.stringify({action:e,payload:t})):Ym(this,$m)[$m].push({action:e,payload:t})}on(e,t){Ym(this,Hm)[Hm].on(e,t)}emit(e,t){Ym(this,Hm)[Hm].emit(e,t)}once(e,t){Ym(this,Hm)[Hm].once(e,t)}}),tb={RequestClient:Rm,Provider:class extends Rm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>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||Gm}},SearchProvider:class extends Rm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>this.id.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:eb},nb=Qh((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 rb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ob=0;function ib(e){return"__private_"+ob+++"_"+e}var ab=(Jm=ib("emitter"),Qm=ib("events"),class{constructor(e){Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Object.defineProperty(this,Qm,{writable:!0,value:[]}),rb(this,Jm)[Jm]=e}on(e,t){return rb(this,Qm)[Qm].push([e,t]),rb(this,Jm)[Jm].on(e,t)}remove(){for(const[e,t]of rb(this,Qm)[Qm].splice(0))rb(this,Jm)[Jm].off(e,t)}});function ub(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sb=0;function lb(e){return"__private_"+sb+++"_"+e}var cb=lb("aliveTimer"),fb=lb("isDone"),db=lb("onTimedOut"),pb=lb("timeout"),hb=class{constructor(e,t){Object.defineProperty(this,cb,{writable:!0,value:void 0}),Object.defineProperty(this,fb,{writable:!0,value:!1}),Object.defineProperty(this,db,{writable:!0,value:void 0}),Object.defineProperty(this,pb,{writable:!0,value:void 0}),ub(this,pb)[pb]=e,ub(this,db)[db]=t}progress(){ub(this,fb)[fb]||ub(this,pb)[pb]>0&&(clearTimeout(ub(this,cb)[cb]),ub(this,cb)[cb]=setTimeout(ub(this,db)[db],ub(this,pb)[pb]))}done(){ub(this,fb)[fb]||(clearTimeout(ub(this,cb)[cb]),ub(this,cb)[cb]=null,ub(this,fb)[fb]=!0)}};function gb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var vb=0;function yb(e){return"__private_"+vb+++"_"+e}function mb(){return new Error("Cancelled")}var bb=yb("activeRequests"),wb=yb("queuedHandlers"),Eb=yb("call"),Db=yb("queueNext"),Cb=yb("next"),Sb=yb("queue"),xb=yb("dequeue");function Ab(e){gb(this,bb)[bb]+=1;let t,n=!1;try{t=e()}catch(r){throw gb(this,bb)[bb]-=1,r}return{abort:()=>{n||(n=!0,gb(this,bb)[bb]-=1,t(),gb(this,Db)[Db]())},done:()=>{n||(n=!0,gb(this,bb)[bb]-=1,gb(this,Db)[Db]())}}}function Ob(){queueMicrotask((()=>gb(this,Cb)[Cb]()))}function kb(){if(gb(this,bb)[bb]>=this.limit)return;if(0===gb(this,wb)[wb].length)return;const e=gb(this,wb)[wb].shift(),t=gb(this,Eb)[Eb](e.fn);e.abort=t.abort,e.done=t.done}function Bb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{gb(this,xb)[xb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=gb(this,wb)[wb].findIndex((e=>n.priority>e.priority));return-1===r?gb(this,wb)[wb].push(n):gb(this,wb)[wb].splice(r,0,n),n}function Fb(e){const t=gb(this,wb)[wb].indexOf(e);-1!==t&&gb(this,wb)[wb].splice(t,1)}var Tb,_b,Pb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,xb,{value:Fb}),Object.defineProperty(this,Sb,{value:Bb}),Object.defineProperty(this,Cb,{value:kb}),Object.defineProperty(this,Db,{value:Ob}),Object.defineProperty(this,Eb,{value:Ab}),Object.defineProperty(this,bb,{writable:!0,value:0}),Object.defineProperty(this,wb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return gb(this,bb)[bb]<this.limit?gb(this,Eb)[Eb](e):gb(this,Sb)[Sb](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=mb()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},jb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Nb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Ib}=my,{Provider:Lb,RequestClient:Rb,Socket:Mb}=tb,{RateLimitedQueue:zb,internalRateLimitedQueue:$b}=Pb;function Hb(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})),jb(e)?(n=new xm(n,e),n):(n.request=e,n)}function Vb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Ub=(_b=Tb=class extends fm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Nb;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 jb(t)&&(n=new xm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),$b in this.opts?this.requests=this.opts[$b]:this.requests=new zb(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=Vb(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=Vb(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 ab(this.uppy);const a=new hb(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=Ib();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=Hb(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=Hb(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?Lb:Rb)(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 Mb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new ab(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=>nb(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 hb(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[$b]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Tb.VERSION="2.0.6",_b),Wb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Gb(e){var t={exports:{}};return e(t,t.exports),t.exports}var qb,Kb,Yb=function(e){return e&&e.Math==Math&&e},Xb=Yb("object"==typeof globalThis&&globalThis)||Yb("object"==typeof window&&window)||Yb("object"==typeof self&&self)||Yb("object"==typeof Wb&&Wb)||function(){return this}()||Function("return this")(),Zb=Object.defineProperty,Jb=function(e,t){try{Zb(Xb,e,{value:t,configurable:!0,writable:!0})}catch(kP){Xb[e]=t}return t},Qb=Xb["__core-js_shared__"]||Jb("__core-js_shared__",{}),ew=Gb((function(e){(e.exports=function(e,t){return Qb[e]||(Qb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),tw=Function.prototype,nw=tw.bind,rw=tw.call,ow=nw&&nw.bind(rw),iw=nw?function(e){return e&&ow(rw,e)}:function(e){return e&&function(){return rw.apply(e,arguments)}},aw=Xb.TypeError,uw=function(e){if(null==e)throw aw("Can't call method on "+e);return e},sw=Xb.Object,lw=function(e){return sw(uw(e))},cw=iw({}.hasOwnProperty),fw=Object.hasOwn||function(e,t){return cw(lw(e),t)},dw=0,pw=Math.random(),hw=iw(1..toString),gw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+hw(++dw+pw,36)},vw=function(e){return"function"==typeof e},yw=function(e){return vw(e)?e:void 0},mw=function(e,t){return arguments.length<2?yw(Xb[e]):Xb[e]&&Xb[e][t]},bw=mw("navigator","userAgent")||"",ww=Xb.process,Ew=Xb.Deno,Dw=ww&&ww.versions||Ew&&Ew.version,Cw=Dw&&Dw.v8;Cw&&(Kb=(qb=Cw.split("."))[0]>0&&qb[0]<4?1:+(qb[0]+qb[1])),!Kb&&bw&&(!(qb=bw.match(/Edge\/(\d+)/))||qb[1]>=74)&&(qb=bw.match(/Chrome\/(\d+)/))&&(Kb=+qb[1]);var Sw=Kb,xw=function(e){try{return!!e()}catch(t){return!0}},Aw=!!Object.getOwnPropertySymbols&&!xw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sw&&Sw<41})),Ow=Aw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kw=ew("wks"),Bw=Xb.Symbol,Fw=Bw&&Bw.for,Tw=Ow?Bw:Bw&&Bw.withoutSetter||gw,_w=function(e){if(!fw(kw,e)||!Aw&&"string"!=typeof kw[e]){var t="Symbol."+e;Aw&&fw(Bw,e)?kw[e]=Bw[e]:kw[e]=Ow&&Fw?Fw(t):Tw(t)}return kw[e]},Pw={};Pw[_w("toStringTag")]="z";var jw="[object z]"===String(Pw),Nw=!xw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Iw=function(e){return"object"==typeof e?null!==e:vw(e)},Lw=Xb.document,Rw=Iw(Lw)&&Iw(Lw.createElement),Mw=function(e){return Rw?Lw.createElement(e):{}},zw=!Nw&&!xw((function(){return 7!=Object.defineProperty(Mw("div"),"a",{get:function(){return 7}}).a})),$w=Xb.String,Hw=Xb.TypeError,Vw=function(e){if(Iw(e))return e;throw Hw($w(e)+" is not an object")},Uw=Function.prototype.call,Ww=Uw.bind?Uw.bind(Uw):function(){return Uw.apply(Uw,arguments)},Gw=iw({}.isPrototypeOf),qw=Xb.Object,Kw=Ow?function(e){return"symbol"==typeof e}:function(e){var t=mw("Symbol");return vw(t)&&Gw(t.prototype,qw(e))},Yw=Xb.String,Xw=function(e){try{return Yw(e)}catch(t){return"Object"}},Zw=Xb.TypeError,Jw=function(e){if(vw(e))return e;throw Zw(Xw(e)+" is not a function")},Qw=function(e,t){var n=e[t];return null==n?void 0:Jw(n)},eE=Xb.TypeError,tE=Xb.TypeError,nE=_w("toPrimitive"),rE=function(e){var t=function(e,t){if(!Iw(e)||Kw(e))return e;var n,r=Qw(e,nE);if(r){if(void 0===t&&(t="default"),n=Ww(r,e,t),!Iw(n)||Kw(n))return n;throw tE("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&vw(n=e.toString)&&!Iw(r=Ww(n,e)))return r;if(vw(n=e.valueOf)&&!Iw(r=Ww(n,e)))return r;if("string"!==t&&vw(n=e.toString)&&!Iw(r=Ww(n,e)))return r;throw eE("Can't convert object to primitive value")}(e,t)}(e,"string");return Kw(t)?t:t+""},oE=Xb.TypeError,iE=Object.defineProperty,aE={f:Nw?iE:function(e,t,n){if(Vw(e),t=rE(t),Vw(n),zw)try{return iE(e,t,n)}catch(r){}if("get"in n||"set"in n)throw oE("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},uE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sE=Nw?function(e,t,n){return aE.f(e,t,uE(1,n))}:function(e,t,n){return e[t]=n,e},lE=iw(Function.toString);vw(Qb.inspectSource)||(Qb.inspectSource=function(e){return lE(e)});var cE,fE,dE,pE=Qb.inspectSource,hE=Xb.WeakMap,gE=vw(hE)&&/native code/.test(pE(hE)),vE=ew("keys"),yE=function(e){return vE[e]||(vE[e]=gw(e))},mE={},bE=Xb.TypeError,wE=Xb.WeakMap;if(gE||Qb.state){var EE=Qb.state||(Qb.state=new wE),DE=iw(EE.get),CE=iw(EE.has),SE=iw(EE.set);cE=function(e,t){if(CE(EE,e))throw new bE("Object already initialized");return t.facade=e,SE(EE,e,t),t},fE=function(e){return DE(EE,e)||{}},dE=function(e){return CE(EE,e)}}else{var xE=yE("state");mE[xE]=!0,cE=function(e,t){if(fw(e,xE))throw new bE("Object already initialized");return t.facade=e,sE(e,xE,t),t},fE=function(e){return fw(e,xE)?e[xE]:{}},dE=function(e){return fw(e,xE)}}var AE={set:cE,get:fE,has:dE,enforce:function(e){return dE(e)?fE(e):cE(e,{})},getterFor:function(e){return function(t){var n;if(!Iw(t)||(n=fE(t)).type!==e)throw bE("Incompatible receiver, "+e+" required");return n}}},OE=Function.prototype,kE=Nw&&Object.getOwnPropertyDescriptor,BE=fw(OE,"name"),FE={EXISTS:BE,PROPER:BE&&"something"===function(){}.name,CONFIGURABLE:BE&&(!Nw||Nw&&kE(OE,"name").configurable)},TE=Gb((function(e){var t=FE.CONFIGURABLE,n=AE.get,r=AE.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;vw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fw(i,"name")||t&&i.name!==f)&&sE(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Xb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:sE(e,n,i)):l?e[n]=i:Jb(n,i)})(Function.prototype,"toString",(function(){return vw(this)&&n(this).source||pE(this)}))})),_E=iw({}.toString),PE=iw("".slice),jE=function(e){return PE(_E(e),8,-1)},NE=_w("toStringTag"),IE=Xb.Object,LE="Arguments"==jE(function(){return arguments}()),RE=jw?jE: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=IE(e),NE))?n:LE?jE(t):"Object"==(r=jE(t))&&vw(t.callee)?"Arguments":r},ME=jw?{}.toString:function(){return"[object "+RE(this)+"]"};jw||TE(Object.prototype,"toString",ME,{unsafe:!0});var zE={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},$E=Mw("span").classList,HE=$E&&$E.constructor&&$E.constructor.prototype,VE=HE===Object.prototype?void 0:HE,UE=iw(iw.bind),WE=function(e,t){return Jw(e),void 0===t?e:UE?UE(e,t):function(){return e.apply(t,arguments)}},GE=Xb.Object,qE=iw("".split),KE=xw((function(){return!GE("z").propertyIsEnumerable(0)}))?function(e){return"String"==jE(e)?qE(e,""):GE(e)}:GE,YE=Math.ceil,XE=Math.floor,ZE=function(e){var t=+e;return t!=t||0===t?0:(t>0?XE:YE)(t)},JE=Math.min,QE=function(e){return e>0?JE(ZE(e),9007199254740991):0},eD=function(e){return QE(e.length)},tD=Array.isArray||function(e){return"Array"==jE(e)},nD=function(){},rD=[],oD=mw("Reflect","construct"),iD=/^\s*(?:class|function)\b/,aD=iw(iD.exec),uD=!iD.exec(nD),sD=function(e){if(!vw(e))return!1;try{return oD(nD,rD,e),!0}catch(t){return!1}},lD=!oD||xw((function(){var e;return sD(sD.call)||!sD(Object)||!sD((function(){e=!0}))||e}))?function(e){if(!vw(e))return!1;switch(RE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uD||!!aD(iD,pE(e))}:sD,cD=_w("species"),fD=Xb.Array,dD=function(e,t){return new(tD(n=e)&&(r=n.constructor,(lD(r)&&(r===fD||tD(r.prototype))||Iw(r)&&null===(r=r[cD]))&&(r=void 0)),void 0===r?fD:r)(0===t?0:t);var n,r},pD=iw([].push),hD=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=lw(s),g=KE(h),v=WE(l,c),y=eD(g),m=0,b=f||dD,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:pD(w,d)}else switch(e){case 4:return!1;case 7:pD(w,d)}return i?-1:r||o?o:w}},gD={forEach:hD(0),map:hD(1),filter:hD(2),some:hD(3),every:hD(4),find:hD(5),findIndex:hD(6),filterReject:hD(7)},vD=function(e,t){var n=[][e];return!!n&&xw((function(){n.call(null,t||function(){throw 1},1)}))},yD=gD.forEach,mD=vD("forEach")?[].forEach:function(e){return yD(this,e,arguments.length>1?arguments[1]:void 0)},bD=function(e){if(e&&e.forEach!==mD)try{sE(e,"forEach",mD)}catch(t){e.forEach=mD}};for(var wD in zE)zE[wD]&&bD(Xb[wD]&&Xb[wD].prototype);bD(VE);var ED={}.propertyIsEnumerable,DD=Object.getOwnPropertyDescriptor,CD=DD&&!ED.call({1:2},1)?function(e){var t=DD(this,e);return!!t&&t.enumerable}:ED,SD={f:CD},xD=function(e){return KE(uw(e))},AD=Object.getOwnPropertyDescriptor,OD={f:Nw?AD:function(e,t){if(e=xD(e),t=rE(t),zw)try{return AD(e,t)}catch(n){}if(fw(e,t))return uE(!Ww(SD.f,e,t),e[t])}},kD=Math.max,BD=Math.min,FD=function(e,t){var n=ZE(e);return n<0?kD(n+t,0):BD(n,t)},TD=function(e){return function(t,n,r){var o,i=xD(t),a=eD(i),u=FD(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}},_D={includes:TD(!0),indexOf:TD(!1)},PD=_D.indexOf,jD=iw([].push),ND=function(e,t){var n,r=xD(e),o=0,i=[];for(n in r)!fw(mE,n)&&fw(r,n)&&jD(i,n);for(;t.length>o;)fw(r,n=t[o++])&&(~PD(i,n)||jD(i,n));return i},ID=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],LD=ID.concat("length","prototype"),RD={f:Object.getOwnPropertyNames||function(e){return ND(e,LD)}},MD={f:Object.getOwnPropertySymbols},zD=iw([].concat),$D=mw("Reflect","ownKeys")||function(e){var t=RD.f(Vw(e)),n=MD.f;return n?zD(t,n(e)):t},HD=function(e,t){for(var n=$D(t),r=aE.f,o=OD.f,i=0;i<n.length;i++){var a=n[i];fw(e,a)||r(e,a,o(t,a))}},VD=/#|\.prototype\./,UD=function(e,t){var n=GD[WD(e)];return n==KD||n!=qD&&(vw(t)?xw(t):!!t)},WD=UD.normalize=function(e){return String(e).replace(VD,".").toLowerCase()},GD=UD.data={},qD=UD.NATIVE="N",KD=UD.POLYFILL="P",YD=UD,XD=OD.f,ZD=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Xb:l?Xb[u]||Jb(u,{}):(Xb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=XD(n,r))&&a.value:n[r],!YD(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;HD(i,o)}(e.sham||o&&o.sham)&&sE(i,"sham",!0),TE(n,r,i,e)}},JD=Object.keys||function(e){return ND(e,ID)},QD=xw((function(){JD(1)}));
  19. /*!
  20. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  21. *
  22. * Copyright (c) 2014-2017, Jon Schlinkert.
  23. * Released under the MIT License.
  24. */function eC(e){return"[object Object]"===Object.prototype.toString.call(e)}ZD({target:"Object",stat:!0,forced:QD},{keys:function(e){return JD(lw(e))}});var tC={isHistory(e){return!1!==eC(t=e)&&(void 0===(n=t.constructor)||!1!==eC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Kf.isOperationList(e.redos[0]))&&(0===e.undos.length||Kf.isOperationList(e.undos[0]));var t,n,r}},nC=new WeakMap,rC=new WeakMap,oC={isHistoryEditor:e=>tC.isHistory(e.history)&&zf.isEditor(e),isMerging:e=>rC.get(e),isSaving:e=>nC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=oC.isMerging(e);rC.set(e,!1),t(),rC.set(e,n)},withoutSaving(e,t){var n=oC.isSaving(e);nC.set(e,!1),t(),nC.set(e,n)}},iC=Xb.String,aC=function(e){if("Symbol"===RE(e))throw TypeError("Cannot convert a Symbol value to a string");return iC(e)},uC=function(){var e=Vw(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},sC=FE.PROPER,lC=RegExp.prototype,cC=lC.toString,fC=iw(uC),dC=xw((function(){return"/a/b"!=cC.call({source:"a",flags:"b"})})),pC=sC&&"toString"!=cC.name;(dC||pC)&&TE(RegExp.prototype,"toString",(function(){var e=Vw(this),t=aC(e.source),n=e.flags;return"/"+t+"/"+aC(void 0===n&&Gw(lC,e)&&!("flags"in lC)?fC(e):n)}),{unsafe:!0});var hC,gC=Nw?Object.defineProperties:function(e,t){Vw(e);for(var n,r=xD(t),o=JD(t),i=o.length,a=0;i>a;)aE.f(e,n=o[a++],r[n]);return e},vC=mw("document","documentElement"),yC=yE("IE_PROTO"),mC=function(){},bC=function(e){return"<script>"+e+"<\/script>"},wC=function(e){e.write(bC("")),e.close();var t=e.parentWindow.Object;return e=null,t},EC=function(){try{hC=new ActiveXObject("htmlfile")}catch(r){}var e,t;EC="undefined"!=typeof document?document.domain&&hC?wC(hC):((t=Mw("iframe")).style.display="none",vC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bC("document.F=Object")),e.close(),e.F):wC(hC);for(var n=ID.length;n--;)delete EC.prototype[ID[n]];return EC()};mE[yC]=!0;var DC=Object.create||function(e,t){var n;return null!==e?(mC.prototype=Vw(e),n=new mC,mC.prototype=null,n[yC]=e):n=EC(),void 0===t?n:gC(n,t)},CC=_w("unscopables"),SC=Array.prototype;null==SC[CC]&&aE.f(SC,CC,{configurable:!0,value:DC(null)});var xC=function(e){SC[CC][e]=!0},AC=_D.includes;ZD({target:"Array",proto:!0},{includes:function(e){return AC(this,e,arguments.length>1?arguments[1]:void 0)}}),xC("includes");var OC=_w("match"),kC=function(e){var t;return Iw(e)&&(void 0!==(t=e[OC])?!!t:"RegExp"==jE(e))},BC=Xb.TypeError,FC=function(e){if(kC(e))throw BC("The method doesn't accept regular expressions");return e},TC=_w("match"),_C=function(e){var t=/./;try{"/./"[e](t)}catch(kP){try{return t[TC]=!1,"/./"[e](t)}catch(n){}}return!1},PC=iw("".indexOf);ZD({target:"String",proto:!0,forced:!_C("includes")},{includes:function(e){return!!~PC(aC(uw(this)),aC(FC(e)),arguments.length>1?arguments[1]:void 0)}});var jC=/"/g,NC=iw("".replace);ZD({target:"String",proto:!0,forced:xw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=aC(uw(this)),r="<a",(r+=' name="'+NC(aC(t),jC,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var IC=function(e,t,n){var r,o;Vw(e);try{if(!(r=Qw(e,"return"))){if("throw"===t)throw n;return n}r=Ww(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Vw(r),n},LC=function(e,t,n,r){try{return r?t(Vw(n)[0],n[1]):t(n)}catch(o){IC(e,"throw",o)}},RC={},MC=_w("iterator"),zC=Array.prototype,$C=function(e){return void 0!==e&&(RC.Array===e||zC[MC]===e)},HC=function(e,t,n){var r=rE(t);r in e?aE.f(e,r,uE(0,n)):e[r]=n},VC=_w("iterator"),UC=function(e){if(null!=e)return Qw(e,VC)||Qw(e,"@@iterator")||RC[RE(e)]},WC=Xb.TypeError,GC=function(e,t){var n=arguments.length<2?UC(e):t;if(Jw(n))return Vw(Ww(n,e));throw WC(Xw(e)+" is not iterable")},qC=Xb.Array,KC=_w("iterator"),YC=!1;try{var XC=0,ZC={next:function(){return{done:!!XC++}},return:function(){YC=!0}};ZC[KC]=function(){return this},Array.from(ZC,(function(){throw 2}))}catch(Xve){}var JC=function(e,t){if(!t&&!YC)return!1;var n=!1;try{var r={};r[KC]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},QC=!JC((function(e){Array.from(e)}));ZD({target:"Array",stat:!0,forced:QC},{from:function(e){var t=lw(e),n=lD(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=WE(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=UC(t),p=0;if(!d||this==qC&&$C(d))for(a=eD(t),u=n?new this(a):qC(a);a>p;p++)f=i?o(t[p],p):t[p],HC(u,p,f);else for(c=(l=GC(t,d)).next,u=n?new this:[];!(s=Ww(c,l)).done;p++)f=i?LC(l,o,[s.value,p],!0):s.value,HC(u,p,f);return u.length=p,u}});var eS,tS,nS,rS=iw("".charAt),oS=iw("".charCodeAt),iS=iw("".slice),aS=function(e){return function(t,n){var r,o,i=aC(uw(t)),a=ZE(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=oS(i,a))<55296||r>56319||a+1===u||(o=oS(i,a+1))<56320||o>57343?e?rS(i,a):r:e?iS(i,a,a+2):o-56320+(r-55296<<10)+65536}},uS={codeAt:aS(!1),charAt:aS(!0)},sS=!xw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lS=yE("IE_PROTO"),cS=Xb.Object,fS=cS.prototype,dS=sS?cS.getPrototypeOf:function(e){var t=lw(e);if(fw(t,lS))return t[lS];var n=t.constructor;return vw(n)&&t instanceof n?n.prototype:t instanceof cS?fS:null},pS=_w("iterator"),hS=!1;[].keys&&("next"in(nS=[].keys())?(tS=dS(dS(nS)))!==Object.prototype&&(eS=tS):hS=!0);var gS=null==eS||xw((function(){var e={};return eS[pS].call(e)!==e}));gS&&(eS={}),vw(eS[pS])||TE(eS,pS,(function(){return this}));var vS={IteratorPrototype:eS,BUGGY_SAFARI_ITERATORS:hS},yS=aE.f,mS=_w("toStringTag"),bS=function(e,t,n){e&&!fw(e=n?e:e.prototype,mS)&&yS(e,mS,{configurable:!0,value:t})},wS=vS.IteratorPrototype,ES=function(){return this},DS=Xb.String,CS=Xb.TypeError,SS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=iw(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Vw(n),function(e){if("object"==typeof e||vw(e))return e;throw CS("Can't set "+DS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),xS=FE.PROPER,AS=FE.CONFIGURABLE,OS=vS.IteratorPrototype,kS=vS.BUGGY_SAFARI_ITERATORS,BS=_w("iterator"),FS=function(){return this},TS=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=DC(wS,{next:uE(1,s)}),bS(u,l,!1),RC[l]=ES;var c,f,d,p=function(e){if(e===o&&m)return m;if(!kS&&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[BS]||v["@@iterator"]||o&&v[o],m=!kS&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=dS(b.call(new e)))!==Object.prototype&&c.next&&(dS(c)!==OS&&(SS?SS(c,OS):vw(c[BS])||TE(c,BS,FS)),bS(c,h,!0)),xS&&"values"==o&&y&&"values"!==y.name&&(AS?sE(v,"name","values"):(g=!0,m=function(){return Ww(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(kS||g||!(d in v))&&TE(v,d,f[d]);else ZD({target:t,proto:!0,forced:kS||g},f);return v[BS]!==m&&TE(v,BS,m,{name:o}),RC[t]=m,f},_S=uS.charAt,PS=AE.set,jS=AE.getterFor("String Iterator");TS(String,"String",(function(e){PS(this,{type:"String Iterator",string:aC(e),index:0})}),(function(){var e,t=jS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=_S(n,r),t.index+=e.length,{value:e,done:!1})}));var NS,IS=OD.f,LS=iw("".endsWith),RS=iw("".slice),MS=Math.min,zS=_C("endsWith"),$S=!(zS||(NS=IS(String.prototype,"endsWith"),!NS||NS.writable));ZD({target:"String",proto:!0,forced:!$S&&!zS},{endsWith:function(e){var t=aC(uw(this));FC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:MS(QE(n),r),i=aC(e);return LS?LS(t,i,o):RS(t,o-i.length,o)===i}});var HS=iw([].join),VS=KE!=Object,US=vD("join",",");ZD({target:"Array",proto:!0,forced:VS||!US},{join:function(e){return HS(xD(this),void 0===e?",":e)}});var WS=_w("species"),GS=function(e){return Sw>=51||!xw((function(){var t=[];return(t.constructor={})[WS]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qS=gD.map,KS=GS("map");ZD({target:"Array",proto:!0,forced:!KS},{map:function(e){return qS(this,e,arguments.length>1?arguments[1]:void 0)}});var YS=Xb.RegExp,XS=xw((function(){var e=YS("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ZS=XS||xw((function(){return!YS("a","y").sticky})),JS={BROKEN_CARET:XS||xw((function(){var e=YS("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ZS,UNSUPPORTED_Y:XS},QS=Xb.RegExp,ex=xw((function(){var e=QS(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),tx=Xb.RegExp,nx=xw((function(){var e=tx("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),rx=AE.get,ox=ew("native-string-replace",String.prototype.replace),ix=RegExp.prototype.exec,ax=ix,ux=iw("".charAt),sx=iw("".indexOf),lx=iw("".replace),cx=iw("".slice),fx=function(){var e=/a/,t=/b*/g;return Ww(ix,e,"a"),Ww(ix,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),dx=JS.BROKEN_CARET,px=void 0!==/()??/.exec("")[1];(fx||px||dx||ex||nx)&&(ax=function(e){var t,n,r,o,i,a,u,s=this,l=rx(s),c=aC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ww(ax,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=dx&&s.sticky,h=Ww(uC,s),g=s.source,v=0,y=c;if(p&&(h=lx(h,"y",""),-1===sx(h,"g")&&(h+="g"),y=cx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ux(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),px&&(n=new RegExp("^"+g+"$(?!\\s)",h)),fx&&(r=s.lastIndex),o=Ww(ix,p?n:s,y),p?o?(o.input=cx(o.input,v),o[0]=cx(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:fx&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),px&&o&&o.length>1&&Ww(ox,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=DC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var hx=ax;ZD({target:"RegExp",proto:!0,forced:/./.exec!==hx},{exec:hx});var gx=Function.prototype,vx=gx.apply,yx=gx.bind,mx=gx.call,bx="object"==typeof Reflect&&Reflect.apply||(yx?mx.bind(vx):function(){return mx.apply(vx,arguments)}),wx=_w("species"),Ex=RegExp.prototype,Dx=function(e,t,n,r){var o=_w(e),i=!xw((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!xw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[wx]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=iw(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=iw(e),s=t.exec;return s===hx||s===Ex.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));TE(String.prototype,e,s[0]),TE(Ex,o,s[1])}r&&sE(Ex[o],"sham",!0)},Cx=uS.charAt,Sx=function(e,t,n){return t+(n?Cx(e,t).length:1)},xx=Math.floor,Ax=iw("".charAt),Ox=iw("".replace),kx=iw("".slice),Bx=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Fx=/\$([$&'`]|\d{1,2})/g,Tx=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Fx;return void 0!==o&&(o=lw(o),s=Bx),Ox(i,s,(function(i,s){var l;switch(Ax(s,0)){case"$":return"$";case"&":return e;case"`":return kx(t,0,n);case"'":return kx(t,a);case"<":l=o[kx(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=xx(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Ax(s,1):r[f-1]+Ax(s,1):i}l=r[c-1]}return void 0===l?"":l}))},_x=Xb.TypeError,Px=function(e,t){var n=e.exec;if(vw(n)){var r=Ww(n,e,t);return null!==r&&Vw(r),r}if("RegExp"===jE(e))return Ww(hx,e,t);throw _x("RegExp#exec called on incompatible receiver")},jx=_w("replace"),Nx=Math.max,Ix=Math.min,Lx=iw([].concat),Rx=iw([].push),Mx=iw("".indexOf),zx=iw("".slice),$x="$0"==="a".replace(/./,"$0"),Hx=!!/./[jx]&&""===/./[jx]("a","$0");Dx("replace",(function(e,t,n){var r=Hx?"$":"$0";return[function(e,n){var r=uw(this),o=null==e?void 0:Qw(e,jx);return o?Ww(o,e,r,n):Ww(t,aC(r),e,n)},function(e,o){var i=Vw(this),a=aC(e);if("string"==typeof o&&-1===Mx(o,r)&&-1===Mx(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=vw(o);s||(o=aC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Px(i,a);if(null===d)break;if(Rx(f,d),!l)break;""===aC(d[0])&&(i.lastIndex=Sx(a,QE(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=aC((d=f[v])[0]),m=Nx(Ix(ZE(d.index),a.length),0),b=[],w=1;w<d.length;w++)Rx(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=Lx([y],b,m,a);void 0!==E&&Rx(D,E);var C=aC(bx(o,void 0,D))}else C=Tx(y,a,m,b,E,o);m>=g&&(h+=zx(a,g,m)+C,g=m+y.length)}return h+zx(a,g)}]}),!!xw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!$x||Hx);
  25. /*! *****************************************************************************
  26. Copyright (c) Microsoft Corporation.
  27. Permission to use, copy, modify, and/or distribute this software for any
  28. purpose with or without fee is hereby granted.
  29. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  30. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  31. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  32. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  33. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  34. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  35. PERFORMANCE OF THIS SOFTWARE.
  36. ***************************************************************************** */
  37. var Vx=function(e,t){return(Vx=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 Ux(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}Vx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Wx=function(){return Wx=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},Wx.apply(this,arguments)};function Gx(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 qx(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 Kx(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var Yx=0,Xx=function(){this.id=""+Yx++},Zx=AE.set,Jx=AE.getterFor("Array Iterator"),Qx=TS(Array,"Array",(function(e,t){Zx(this,{type:"Array Iterator",target:xD(e),index:0,kind:t})}),(function(){var e=Jx(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");RC.Arguments=RC.Array,xC("keys"),xC("values"),xC("entries");var eA=function(e,t,n){for(var r in t)TE(e,r,t[r],n);return e},tA=Xb.Array,nA=Math.max,rA=function(e,t,n){for(var r=eD(e),o=FD(t,r),i=FD(void 0===n?r:n,r),a=tA(nA(i-o,0)),u=0;o<i;o++,u++)HC(a,u,e[o]);return a.length=u,a},oA=RD.f,iA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],aA={f:function(e){return iA&&"Window"==jE(e)?function(e){try{return oA(e)}catch(t){return rA(iA)}}(e):oA(xD(e))}},uA=xw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),sA=Object.isExtensible,lA=xw((function(){sA(1)}))||uA?function(e){return!!Iw(e)&&(!uA||"ArrayBuffer"!=jE(e))&&(!sA||sA(e))}:sA,cA=!xw((function(){return Object.isExtensible(Object.preventExtensions({}))})),fA=Gb((function(e){var t=aE.f,n=!1,r=gw("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=RD.f,t=iw([].splice),o={};o[r]=1,e(o).length&&(RD.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},ZD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:aA.f}))},fastKey:function(e,t){if(!Iw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!fw(e,r)){if(!lA(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!fw(e,r)){if(!lA(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return cA&&n&&lA(e)&&!fw(e,r)&&i(e),e}};mE[r]=!0})),dA=Xb.TypeError,pA=function(e,t){this.stopped=e,this.result=t},hA=pA.prototype,gA=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=WE(t,c),g=function(e){return r&&IC(r,"normal",e),new pA(!0,e)},v=function(e){return f?(Vw(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=UC(e)))throw dA(Xw(e)+" is not iterable");if($C(o)){for(i=0,a=eD(e);a>i;i++)if((u=v(e[i]))&&Gw(hA,u))return u;return new pA(!1)}r=GC(e,o)}for(s=r.next;!(l=Ww(s,r)).done;){try{u=v(l.value)}catch(y){IC(r,"throw",y)}if("object"==typeof u&&u&&Gw(hA,u))return u}return new pA(!1)},vA=Xb.TypeError,yA=function(e,t){if(Gw(t,e))return e;throw vA("Incorrect invocation")},mA=function(e,t,n){var r,o;return SS&&vw(r=t.constructor)&&r!==n&&Iw(o=r.prototype)&&o!==n.prototype&&SS(e,o),e},bA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Xb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=iw(u[e]);TE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Iw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Iw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Iw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(YD(e,!vw(a)||!(o||u.forEach&&!xw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),fA.enable();else if(YD(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=xw((function(){f.has(1)})),h=JC((function(e){new a(e)})),g=!o&&xw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){yA(e,u);var n=mA(new a,e,s);return null!=t&&gA(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,ZD({global:!0,forced:s!=a},l),bS(s,e),o||n.setStrong(s,e,r),s},wA=fA.getWeakData,EA=AE.set,DA=AE.getterFor,CA=gD.find,SA=gD.findIndex,xA=iw([].splice),AA=0,OA=function(e){return e.frozen||(e.frozen=new kA)},kA=function(){this.entries=[]},BA=function(e,t){return CA(e.entries,(function(e){return e[0]===t}))};kA.prototype={get:function(e){var t=BA(this,e);if(t)return t[1]},has:function(e){return!!BA(this,e)},set:function(e,t){var n=BA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=SA(this.entries,(function(t){return t[0]===e}));return~t&&xA(this.entries,t,1),!!~t}};var FA,TA={getConstructor:function(e,t,n,r){var o=e((function(e,o){yA(e,i),EA(e,{type:t,id:AA++,frozen:void 0}),null!=o&&gA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=DA(t),u=function(e,t,n){var r=a(e),o=wA(Vw(t),!0);return!0===o?OA(r).set(t,n):o[r.id]=n,e};return eA(i,{delete:function(e){var t=a(this);if(!Iw(e))return!1;var n=wA(e);return!0===n?OA(t).delete(e):n&&fw(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Iw(e))return!1;var n=wA(e);return!0===n?OA(t).has(e):n&&fw(n,t.id)}}),eA(i,n?{get:function(e){var t=a(this);if(Iw(e)){var n=wA(e);return!0===n?OA(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}},_A=AE.enforce,PA=!Xb.ActiveXObject&&"ActiveXObject"in Xb,jA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},NA=bA("WeakMap",jA,TA);if(gE&&PA){FA=TA.getConstructor(jA,"WeakMap",!0),fA.enable();var IA=NA.prototype,LA=iw(IA.delete),RA=iw(IA.has),MA=iw(IA.get),zA=iw(IA.set);eA(IA,{delete:function(e){if(Iw(e)&&!lA(e)){var t=_A(this);return t.frozen||(t.frozen=new FA),LA(this,e)||t.frozen.delete(e)}return LA(this,e)},has:function(e){if(Iw(e)&&!lA(e)){var t=_A(this);return t.frozen||(t.frozen=new FA),RA(this,e)||t.frozen.has(e)}return RA(this,e)},get:function(e){if(Iw(e)&&!lA(e)){var t=_A(this);return t.frozen||(t.frozen=new FA),RA(this,e)?MA(this,e):t.frozen.get(e)}return MA(this,e)},set:function(e,t){if(Iw(e)&&!lA(e)){var n=_A(this);n.frozen||(n.frozen=new FA),RA(this,e)?zA(this,e,t):n.frozen.set(e,t)}else zA(this,e,t);return this}})}var $A=_w("iterator"),HA=_w("toStringTag"),VA=Qx.values,UA=function(e,t){if(e){if(e[$A]!==VA)try{sE(e,$A,VA)}catch(r){e[$A]=VA}if(e[HA]||sE(e,HA,t),zE[t])for(var n in Qx)if(e[n]!==Qx[n])try{sE(e,n,Qx[n])}catch(r){e[n]=Qx[n]}}};for(var WA in zE)UA(Xb[WA]&&Xb[WA].prototype,WA);UA(VE,"DOMTokenList");var GA=new WeakMap,qA=new WeakMap,KA=new WeakMap,YA=new WeakMap,XA=new WeakMap,ZA=new WeakMap,JA=new WeakMap,QA=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,oO=new WeakMap,iO=new WeakMap,aO=new WeakMap,uO=new WeakMap,sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,gO=new WeakMap,vO=new WeakMap,yO=gD.find,mO=!0;"find"in[]&&Array(1).find((function(){mO=!1})),ZD({target:"Array",proto:!0,forced:mO},{find:function(e){return yO(this,e,arguments.length>1?arguments[1]:void 0)}}),xC("find"),ZD({global:!0},{globalThis:Xb});const bO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];oh&&(Vp.fn.css=oh),ch&&(Vp.fn.append=ch),Up&&(Vp.fn.addClass=Up),Wp&&(Vp.fn.removeClass=Wp),Gp&&(Vp.fn.hasClass=Gp),Zp&&(Vp.fn.on=Zp),Eh&&(Vp.fn.focus=Eh),qp&&(Vp.fn.attr=qp),Kp&&(Vp.fn.removeAttr=Kp),nh&&(Vp.fn.hide=nh),rh&&(Vp.fn.show=rh),th&&(Vp.fn.offset=th),Qp&&(Vp.fn.width=Qp),eh&&(Vp.fn.height=eh),dh&&(Vp.fn.parent=dh),ph&&(Vp.fn.parents=ph),lh&&(Vp.fn.is=lh),Yp&&(Vp.fn.dataset=Yp),Xp&&(Vp.fn.val=Xp),sh&&(Vp.fn.text=sh),uh&&(Vp.fn.html=uh),gh&&(Vp.fn.children=gh),vh&&(Vp.fn.remove=vh),hh&&(Vp.fn.find=hh),ih&&(Vp.fn.each=ih),yh&&(Vp.fn.empty=yh);var wO,EO,DO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},CO=function(e){return SO(e)&&1===e.nodeType},SO=function(e){var t=DO(e);return!!t&&e instanceof t.Node},xO=function(e){var t=e&&e.anchorNode&&DO(e.anchorNode);return!!t&&e instanceof t.Selection},AO=function(e){return SO(e)&&3===e.nodeType},OO=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},kO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(SO(r=i)&&8===r.nodeType||CO(i)&&0===i.childNodes.length||CO(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]},BO=function(e,t,n){return qx(kO(e,t,n),1)[0]},FO=function e(t){var n,r,o="";if(AO(t)&&t.nodeValue)return t.nodeValue;if(CO(t)){try{for(var i=Gx(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch($l){n={error:$l}}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 TO(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||TO(o,t)}}function _O(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==wO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(EO=wO||(wO={}))[EO.ELEMENT_NODE=1]="ELEMENT_NODE",EO[EO.TEXT_NODE=3]="TEXT_NODE",EO[EO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",EO[EO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",EO[EO.COMMENT_NODE=8]="COMMENT_NODE",EO[EO.DOCUMENT_NODE=9]="DOCUMENT_NODE",EO[EO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",EO[EO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var PO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),jO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var NO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),IO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),LO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),RO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var MO=!LO&&!IO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,zO={getWindow:function(e){var t=dO.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=fO.get(t);return n||(n=new Xx,fO.set(t,n)),n},setNewKey:function(e){var t=new Xx;fO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=aO.get(r);if(null==o){if(zf.isEditor(r))return n;break}var i=iO.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=zO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return aO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=zO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[zO.findPath(e,t)[0]];return Wf.get(e,n)},toDOMNode:function(e,t){var n;if(zf.isEditor(t))n=uO.get(e);else{var r=zO.findKey(e,t);n=lO.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=zO.toDOMNode(e,e);try{r=CO(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=rd.isBackward(t),i=zO.toDOMPoint(e,n),a=rd.isCollapsed(t)?i:zO.toDOMPoint(e,r),u=zO.getWindow(e).document.createRange(),s=qx(o?a:i,2),l=s[0],c=s[1],f=qx(o?i:a,2),d=f[0],p=f[1],h=!!(CO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(CO(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=qx(zf.node(e,t.path),1)[0],a=zO.toDOMNode(e,i);zf.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=Gx(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=CO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?sO.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=zO.toSlateNode(e,t.target),u=zO.findPath(e,a);if(zf.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=zf.point(e,u,{edge:l?"start":"end"}),f=l?zf.before(e,c):zf.after(e,c);if(f)return zf.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 zO.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((xO(t)?t.anchorNode:t.startContainer)&&(xO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=RO&&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=zO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:zO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return rd.isExpanded(d)&&rd.isForward(d)&&CO(i)&&zf.void(e,{at:d.focus,mode:"highest"})&&(d=zf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=qx(o?t:function(e){var t,n=qx(e,2),r=n[0],o=n[1];if(CO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=qx(kO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;CO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=BO(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=zO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();Kx(Kx([],qx(kp(v.querySelectorAll("[data-slate-zero-width]")))),qx(kp(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")||jO&&(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=zO.toSlateNode(e,c);return{path:zO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return zf.hasPath(e,n.path)&&zf.hasPath(e,r.path)},getNodeType:function(e){return jf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Wf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=zf.nodes(e,{universal:!0});try{for(var i=Gx(o),a=i.next();!a.done;a=i.next()){var u=qx(a.value,1)[0];jf.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=qx(zf.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=qx(zf.nodes(e,{match:function(e){return cd.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=qx(zf.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&qx(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(zf.isEnd(e,n.anchor,t)||zf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=GA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return YA.get(e)||null},getHoverbar:function(e){return ZA.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=zO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=Gx(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=zf.nodes(e,{match:function(t){return!(!jf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=Gx(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];TO(zO.toDOMNode(e,h),(function(e,t){var n=Vp(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=zf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Gx(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(rd.isExpanded(t))return!1;var n=zO.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=zf.node(e,t);if(null==n)return!1;var r=qx(n,1)[0].children;return 1===r.length&&""===r[0].text}},$O=1,HO={},VO={},UO=gD.filter,WO=GS("filter");ZD({target:"Array",proto:!0,forced:!WO},{filter:function(e){return UO(this,e,arguments.length>1?arguments[1]:void 0)}});var GO="\t\n\v\f\r                 \u2028\u2029\ufeff",qO=iw("".replace),KO="["+GO+"]",YO=RegExp("^"+KO+KO+"*"),XO=RegExp(KO+KO+"*$"),ZO=function(e){return function(t){var n=aC(uw(t));return 1&e&&(n=qO(n,YO,"")),2&e&&(n=qO(n,XO,"")),n}},JO={start:ZO(1),end:ZO(2),trim:ZO(3)},QO=FE.PROPER,ek=JO.trim;ZD({target:"String",proto:!0,forced:function(e){return xw((function(){return!!GO.trim()||"​…᠎"!=="​…᠎".trim()||QO&&GO.trim.name!==e}))}("trim")},{trim:function(){return ek(this)}});var tk=[],nk={};function rk(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var ok,ik,ak,uk,sk=Xb.Promise,lk=_w("species"),ck=function(e){var t=mw(e),n=aE.f;Nw&&t&&!t[lk]&&n(t,lk,{configurable:!0,get:function(){return this}})},fk=Xb.TypeError,dk=_w("species"),pk=function(e,t){var n,r=Vw(e).constructor;return void 0===r||null==(n=Vw(r)[dk])?t:function(e){if(lD(e))return e;throw fk(Xw(e)+" is not a constructor")}(n)},hk=iw([].slice),gk=/(?:ipad|iphone|ipod).*applewebkit/i.test(bw),vk="process"==jE(Xb.process),yk=Xb.setImmediate,mk=Xb.clearImmediate,bk=Xb.process,wk=Xb.Dispatch,Ek=Xb.Function,Dk=Xb.MessageChannel,Ck=Xb.String,Sk=0,xk={};try{ok=Xb.location}catch(Xve){}var Ak=function(e){if(fw(xk,e)){var t=xk[e];delete xk[e],t()}},Ok=function(e){return function(){Ak(e)}},kk=function(e){Ak(e.data)},Bk=function(e){Xb.postMessage(Ck(e),ok.protocol+"//"+ok.host)};yk&&mk||(yk=function(e){var t=hk(arguments,1);return xk[++Sk]=function(){bx(vw(e)?e:Ek(e),void 0,t)},ik(Sk),Sk},mk=function(e){delete xk[e]},vk?ik=function(e){bk.nextTick(Ok(e))}:wk&&wk.now?ik=function(e){wk.now(Ok(e))}:Dk&&!gk?(uk=(ak=new Dk).port2,ak.port1.onmessage=kk,ik=WE(uk.postMessage,uk)):Xb.addEventListener&&vw(Xb.postMessage)&&!Xb.importScripts&&ok&&"file:"!==ok.protocol&&!xw(Bk)?(ik=Bk,Xb.addEventListener("message",kk,!1)):ik="onreadystatechange"in Mw("script")?function(e){vC.appendChild(Mw("script")).onreadystatechange=function(){vC.removeChild(this),Ak(e)}}:function(e){setTimeout(Ok(e),0)});var Fk,Tk,_k,Pk,jk,Nk,Ik,Lk,Rk={set:yk,clear:mk},Mk=/ipad|iphone|ipod/i.test(bw)&&void 0!==Xb.Pebble,zk=/web0s(?!.*chrome)/i.test(bw),$k=OD.f,Hk=Rk.set,Vk=Xb.MutationObserver||Xb.WebKitMutationObserver,Uk=Xb.document,Wk=Xb.process,Gk=Xb.Promise,qk=$k(Xb,"queueMicrotask"),Kk=qk&&qk.value;Kk||(Fk=function(){var e,t;for(vk&&(e=Wk.domain)&&e.exit();Tk;){t=Tk.fn,Tk=Tk.next;try{t()}catch(n){throw Tk?Pk():_k=void 0,n}}_k=void 0,e&&e.enter()},gk||vk||zk||!Vk||!Uk?!Mk&&Gk&&Gk.resolve?((Ik=Gk.resolve(void 0)).constructor=Gk,Lk=WE(Ik.then,Ik),Pk=function(){Lk(Fk)}):vk?Pk=function(){Wk.nextTick(Fk)}:(Hk=WE(Hk,Xb),Pk=function(){Hk(Fk)}):(jk=!0,Nk=Uk.createTextNode(""),new Vk(Fk).observe(Nk,{characterData:!0}),Pk=function(){Nk.data=jk=!jk}));var Yk,Xk,Zk,Jk,Qk=Kk||function(e){var t={fn:e,next:void 0};_k&&(_k.next=t),Tk||(Tk=t,Pk()),_k=t},eB=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=Jw(t),this.reject=Jw(n)},tB={f:function(e){return new eB(e)}},nB=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},rB="object"==typeof window,oB=Rk.set,iB=_w("species"),aB="Promise",uB=AE.getterFor(aB),sB=AE.set,lB=AE.getterFor(aB),cB=sk&&sk.prototype,fB=sk,dB=cB,pB=Xb.TypeError,hB=Xb.document,gB=Xb.process,vB=tB.f,yB=vB,mB=!!(hB&&hB.createEvent&&Xb.dispatchEvent),bB=vw(Xb.PromiseRejectionEvent),wB=!1,EB=YD(aB,(function(){var e=pE(fB),t=e!==String(fB);if(!t&&66===Sw)return!0;if(Sw>=51&&/native code/.test(e))return!1;var n=new fB((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[iB]=r,!(wB=n.then((function(){}))instanceof r)||!t&&rB&&!bB})),DB=EB||!JC((function(e){fB.all(e).catch((function(){}))})),CB=function(e){var t;return!(!Iw(e)||!vw(t=e.then))&&t},SB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Qk((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&&kB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(pB("Promise-chain cycle")):(u=CB(a))?Ww(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&AB(e)}))}},xB=function(e,t,n){var r,o;mB?((r=hB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Xb.dispatchEvent(r)):r={promise:t,reason:n},!bB&&(o=Xb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Xb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},AB=function(e){Ww(oB,Xb,(function(){var t,n=e.facade,r=e.value;if(OB(e)&&(t=nB((function(){vk?gB.emit("unhandledRejection",r,n):xB("unhandledrejection",n,r)})),e.rejection=vk||OB(e)?2:1,t.error))throw t.value}))},OB=function(e){return 1!==e.rejection&&!e.parent},kB=function(e){Ww(oB,Xb,(function(){var t=e.facade;vk?gB.emit("rejectionHandled",t):xB("rejectionhandled",t,e.value)}))},BB=function(e,t,n){return function(r){e(t,r,n)}},FB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,SB(e,!0))},TB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw pB("Promise can't be resolved itself");var r=CB(t);r?Qk((function(){var n={done:!1};try{Ww(r,t,BB(TB,n,e),BB(FB,n,e))}catch(o){FB(n,o,e)}})):(e.value=t,e.state=1,SB(e,!1))}catch(o){FB({done:!1},o,e)}}};if(EB&&(dB=(fB=function(e){yA(this,dB),Jw(e),Ww(Yk,this);var t=uB(this);try{e(BB(TB,t),BB(FB,t))}catch(n){FB(t,n)}}).prototype,(Yk=function(e){sB(this,{type:aB,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=eA(dB,{then:function(e,t){var n=lB(this),r=n.reactions,o=vB(pk(this,fB));return o.ok=!vw(e)||e,o.fail=vw(t)&&t,o.domain=vk?gB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&SB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Xk=function(){var e=new Yk,t=uB(e);this.promise=e,this.resolve=BB(TB,t),this.reject=BB(FB,t)},tB.f=vB=function(e){return e===fB||e===Zk?new Xk(e):yB(e)},vw(sk)&&cB!==Object.prototype)){Jk=cB.then,wB||(TE(cB,"then",(function(e,t){var n=this;return new fB((function(e,t){Ww(Jk,n,e,t)})).then(e,t)}),{unsafe:!0}),TE(cB,"catch",dB.catch,{unsafe:!0}));try{delete cB.constructor}catch(Xve){}SS&&SS(cB,dB)}ZD({global:!0,wrap:!0,forced:EB},{Promise:fB}),bS(fB,aB,!1),ck(aB),Zk=mw(aB),ZD({target:aB,stat:!0,forced:EB},{reject:function(e){var t=vB(this);return Ww(t.reject,void 0,e),t.promise}}),ZD({target:aB,stat:!0,forced:EB},{resolve:function(e){return function(e,t){if(Vw(e),Iw(t)&&t.constructor===e)return t;var n=tB.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),ZD({target:aB,stat:!0,forced:DB},{all:function(e){var t=this,n=vB(t),r=n.resolve,o=n.reject,i=nB((function(){var n=Jw(t.resolve),i=[],a=0,u=1;gA(e,(function(e){var s=a++,l=!1;u++,Ww(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=vB(t),r=n.reject,o=nB((function(){var o=Jw(t.resolve);gA(e,(function(e){Ww(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var _B=JS.UNSUPPORTED_Y,PB=Math.min,jB=[].push,NB=iw(/./.exec),IB=iw(jB),LB=iw("".slice);function RB(e){Promise.resolve().then(e)}function MB(e,t){return jf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=zf.isVoid(t,e),u="";a||(u=i.map((function(e){return MB(e,t)})).join(""));var s=(nk[r]||rk)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||tk.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=zO.getParentsNodes(t,e).some((function(e){return"pre"===zO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/&nbsp;/g," ")),""===r){var i=zO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return tk.forEach((function(t){return r=t(e,r)})),r}(e,t)}function zB(e){return"w-e-element-"+e}Dx("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=aC(uw(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!kC(e))return Ww(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=Ww(hx,f,r))&&!((a=f.lastIndex)>c&&(IB(s,LB(r,c,i.index)),i.length>1&&i.index<r.length&&bx(jB,s,rA(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&NB(f,"")||IB(s,""):IB(s,LB(r,c)),s.length>o?rA(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Ww(t,this,e,n)}:t,[function(t,n){var o=uw(this),i=null==t?void 0:Qw(t,e);return i?Ww(i,t,o,n):Ww(r,aC(o),t,n)},function(e,o){var i=Vw(this),a=aC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=pk(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(_B?"g":"y"),f=new s(_B?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Px(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=_B?0:h;var v,y=Px(f,_B?LB(a,h):a);if(null===y||(v=PB(QE(f.lastIndex+(_B?h:0)),a.length))===p)h=Sx(a,h,l);else{if(IB(g,LB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(IB(g,y[m]),g.length===d)return g;h=p=v}}return IB(g,LB(a,p)),g}]}),!!xw((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]})),_B);var $B=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},HB=function(e,t,n){var r=zO.toDOMRange(e,t).getBoundingClientRect(),o=zO.toDOMRange(e,n).getBoundingClientRect();return $B(r,o)&&$B(o,r)},VB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],UB=[],WB=[],GB={},qB=aE.f,KB=RD.f,YB=AE.enforce,XB=_w("match"),ZB=Xb.RegExp,JB=ZB.prototype,QB=Xb.SyntaxError,eF=iw(uC),tF=iw(JB.exec),nF=iw("".charAt),rF=iw("".replace),oF=iw("".indexOf),iF=iw("".slice),aF=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,uF=/a/g,sF=/a/g,lF=new ZB(uF)!==uF,cF=JS.MISSED_STICKY,fF=JS.UNSUPPORTED_Y,dF=Nw&&(!lF||cF||ex||nx||xw((function(){return sF[XB]=!1,ZB(uF)!=uF||ZB(sF)==sF||"/a/i"!=ZB(uF,"i")})));if(YD("RegExp",dF)){for(var pF=function(e,t){var n,r,o,i,a,u,s=Gw(JB,this),l=kC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===pF)return e;if((l||Gw(JB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:eF(d))),e=void 0===e?"":aC(e),t=void 0===t?"":aC(t),d=e,ex&&"dotAll"in uF&&(r=!!t&&oF(t,"s")>-1)&&(t=rF(t,/s/g,"")),n=t,cF&&"sticky"in uF&&(o=!!t&&oF(t,"y")>-1)&&fF&&(t=rF(t,/y/g,"")),nx&&(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=nF(e,r)))t+=nF(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:tF(aF,iF(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||fw(a,c))throw new QB("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=mA(ZB(e,t),s?this:JB,pF),(r||o||f.length)&&(u=YB(a),r&&(u.dotAll=!0,u.raw=pF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=nF(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+nF(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{sE(a,"source",""===d?"(?:)":d)}catch(p){}return a},hF=function(e){e in pF||qB(pF,e,{configurable:!0,get:function(){return ZB[e]},set:function(t){ZB[e]=t}})},gF=KB(ZB),vF=0;gF.length>vF;)hF(gF[vF++]);JB.constructor=pF,pF.prototype=JB,TE(Xb,"RegExp",pF)}ck("RegExp");var yF=new RegExp(String.fromCharCode(160),"g");function mF(e){return e.replace(yF," ")}function bF(e,t){var n=e.length;if(n){var r=e[n-1];if(cd.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function wF(e,t,n){return{type:"paragraph",children:[{text:Vp(e).text().replace(/\s+/gm," ")}]}}function EF(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!==wO.ELEMENT_NODE)if(e.nodeType!==wO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=mF(r),bF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(bF(n,"\n")||n.push({text:"\n"}));var o=CF(Vp(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 GB)if(e[0].matches(t))return GB[t];return wF}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){zf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),WB.forEach((function(n){r=n(e[0],r,t)})))})),r}function DF(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=mF(n=n.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"'))};return WB.forEach((function(n){r=n(e[0],r,t)})),r}function CF(e,t){UB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Vp(r(e[0])))}));var n=_O(e);return"span"===n?e.attr("data-w-e-type")?EF(e,t):DF(e,t):"code"===n?"pre"===_O(e.parent())?EF(e,t):DF(e,t):VB.includes(n)?DF(e,t):EF(e,t)}function SF(e,t,n){var r=Vp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function xF(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=Vp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=CF(Vp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var AF=aE.f,OF=fA.fastKey,kF=AE.set,BF=AE.getterFor,FF={getConstructor:function(e,t,n,r){var o=e((function(e,o){yA(e,i),kF(e,{type:t,index:DC(null),first:void 0,last:void 0,size:0}),Nw||(e.size=0),null!=o&&gA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=BF(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),Nw?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 eA(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,Nw?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),Nw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=WE(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)}}),eA(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)}}),Nw&&AF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=BF(t),i=BF(r);TS(e,t,(function(e,t){kF(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),ck(t)}};bA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),FF);var TF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function _F(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):kd.insertNodes(e,t,{mode:"highest"})}var PF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=qx(rd.edges(n),2),o=r[0],i=r[1],a=zf.void(t,{at:o.path}),u=zf.void(t,{at:i.path});if(!rd.isCollapsed(n)||a){var s=zO.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=qx(u,1)[0],d=s.cloneRange(),p=zO.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":""})),AO(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",FO(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=Gx(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&kd.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},jF=function(e){return null!=e},NF={object:!0,function:!0,undefined:!0},IF=/^\s*class[\s{/}]/,LF=Function.prototype.toString,RF=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(!jF(t=e)||!hasOwnProperty.call(NF,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!IF.test(LF.call(e))},MF=function(e){return null!=e},zF=Object.keys,$F=function(){try{return Object.keys("primitive"),!0}catch($l){return!1}}()?Object.keys:function(e){return zF(MF(e)?Object(e):e)},HF=function(e){if(!MF(e))throw new TypeError("Cannot use null or undefined");return e},VF=Math.max,UF=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=VF(arguments.length,2);for(e=Object(HF(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)$F(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},WF=Array.prototype.forEach,GF=Object.create,qF=function(e,t){var n;for(n in e)t[n]=e[n]},KF=function(e){var t=GF(null);return WF.call(arguments,(function(e){MF(e)&&qF(Object(e),t)})),t},YF="razdwatrzy",XF=String.prototype.indexOf,ZF="function"==typeof YF.contains&&!0===YF.contains("dwa")&&!1===YF.contains("foo")?String.prototype.contains:function(e){return XF.call(this,e,arguments[1])>-1},JF=Gb((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],jF(e)?(n=ZF.call(e,"c"),r=ZF.call(e,"e"),o=ZF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?UF(KF(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],jF(t)?RF(t)?jF(n)?RF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,jF(e)?(r=ZF.call(e,"c"),o=ZF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?UF(KF(i),a):a}})),QF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},eT=Gb((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 QF(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 QF(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(QF(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:JF(n),once:JF(r),off:JF(o),emit:JF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function tT(e){var t=gO.get(e);return null==t&&(t=eT(),gO.set(e,t)),t}var nT=new WeakMap;function rT(e,t){var n=nT.get(e);null==n&&(n=new Set,nT.set(e,n)),n.add(t)}function oT(e){return nT.get(e)||new Set}function iT(e){nT.set(e,new Set)}function aT(e){var t=zO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function uT(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=aT(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=zO.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 sT(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=jf.isElement(t)&&e.isVoid(t),i=jf.isElement(t)&&e.isInline(t),a=cO.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(bO.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=aT(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 lT(e,t){RB((function(){var n=aT(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"),C=parseInt(D.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var cT=GS("slice"),fT=_w("species"),dT=Xb.Array,pT=Math.max;ZD({target:"Array",proto:!0,forced:!cT},{slice:function(e,t){var n,r,o,i=xD(this),a=eD(i),u=FD(e,a),s=FD(void 0===t?a:t,a);if(tD(i)&&(n=i.constructor,(lD(n)&&(n===dT||tD(n.prototype))||Iw(n)&&null===(n=n[fT]))&&(n=void 0),n===dT||void 0===n))return hk(i,u,s);for(r=new(void 0===n?dT:n)(pT(s-u,0)),o=0;u<s;u++,o++)u in i&&HC(r,o,i[u]);return r.length=o,r}});var hT=OD.f,gT=iw("".startsWith),vT=iw("".slice),yT=Math.min,mT=_C("startsWith"),bT=!mT&&!!function(){var e=hT(String.prototype,"startsWith");return e&&!e.writable}();ZD({target:"String",proto:!0,forced:!bT&&!mT},{startsWith:function(e){var t=aC(uw(this));FC(e);var n=QE(yT(arguments.length>1?arguments[1]:void 0,t.length)),r=aC(e);return gT?gT(t,r,n):vT(t,n,n+r.length)===r}});var wT=Object.assign,ET=Object.defineProperty,DT=iw([].concat),CT=!wT||xw((function(){if(Nw&&1!==wT({b:1},wT(ET({},"a",{enumerable:!0,get:function(){ET(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!=wT({},e)[n]||JD(wT({},t)).join("")!=r}))?function(e,t){for(var n=lw(e),r=arguments.length,o=1,i=MD.f,a=SD.f;r>o;)for(var u,s=KE(arguments[o++]),l=i?DT(JD(s),i(s)):JD(s),c=l.length,f=0;c>f;)u=l[f++],Nw&&!Ww(a,s,u)||(n[u]=s[u]);return n}:wT;ZD({target:"Object",stat:!0,forced:Object.assign!==CT},{assign:CT});var ST=["props","attrs","style","dataset","on","hook"];function xT(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(!ST.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=mv(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&&xT(e)}))}var AT=[],OT={};function kT(e,t,n){return _g(n.isInline(e)?"span":"div",null,t)}function BT(e,t){return void 0===t&&(t=!1),_g("span",{"data-slate-string":!0},t?e+"\n":e)}function FT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),_g("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?_g("br",null):null)}function TT(e,t,n,r){return iO.set(e,t),aO.set(e,n),jf.isElement(e)?function(e,t){var n,r=zO.findKey(t,e),o=t.isInline(e),i=zf.isVoid(t,e),a=zB(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=OT[s]||kT;n=i?null:c.map((function(n,r){return TT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=qx(Wf.texts(e),1),g=qx(h[0],1)[0],v=_g(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},TT(g,0,e,t));d=_g(p,{style:{position:"relative"}},d,v),iO.set(g,0),aO.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return AT.forEach((function(r){n=r(e,t)})),n}(e,d)),RB((function(){var t=OO(a);null!=t&&(lO.set(r,t),cO.set(e,t),sO.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=zO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=zO.findPath(n,e),a=o([e,i]),u=cd.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=zO.findPath(o,n),u=Yf.parent(a);if(zf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?FT(Wf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==zf.string(o,u)?""===i?FT():t&&"\n"===i.slice(-1)?BT(i,!0):BT(i):FT(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,AT.forEach((function(e){a=e(i,a)})),_g("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=_g("span",{"data-slate-node":"text",id:l,key:r.id},s);return RB((function(){var t=OO(l);null!=t&&(lO.set(r,t),cO.set(e,t),sO.set(t,e))})),c}(e,n,r)}function _T(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),dg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=TT(e,n,t,t);return xT(r),r}));var c=nO.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Vp('<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=cg([vg,xg,Fg,bg,Cg,hg]))(n,s),nO.set(e,!1),rO.set(e,p)}else{var d=oO.get(e),p=rO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=OO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=DO(n);h&&dO.set(t,h)}uO.set(t,n),cO.set(t,n),sO.set(n,t),oO.set(e,s)}}function PT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function jT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function NT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return jT(n.overflowY,t)||jT(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 IT(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 LT(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(!PT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;PT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&NT(f)&&!NT(document.documentElement)||null!=f&&NT(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,C="start"===o||"nearest"===o?b:"end"===o?E:b+y/2,S="center"===i?D+m/2:"end"===i?w:D,x=[],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 x;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?C:"end"===o?C-p:"nearest"===o?IT(g,g+p,p,L,M,g+C,g+C+y,y):C-p/2,$="start"===i?S:"center"===i?S-d/2:"end"===i?S-d:IT(h,h+d,d,I,R,h+S,h+S+m,m),z=Math.max(0,z+g),$=Math.max(0,$+h);else{z="start"===o?C-T-L:"end"===o?C-P+M+V:"nearest"===o?IT(T,P,B,L,M+V,C,C+y,y):C-(T+B/2)+V/2,$="start"===i?S-j-I:"center"===i?S-(j+F/2)+H/2:"end"===i?S-_+R+H:IT(j,_,F,I,R+H,S,S+m,m);var U=O.scrollLeft,W=O.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),S+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}x.push({el:O,top:z,left:$})}return x}function RT(e){return e===Object(e)&&0!==Object.keys(e).length}function MT(e,t){return SO(t)&&zO.hasDOMNode(e,t,{editable:!0})}function zT(e,t){if(e.getConfig().readOnly)return!1;var n=$T(e,t)&&zO.toSlateNode(e,t);return zf.isVoid(e,n)}function $T(e,t){return SO(t)&&zO.hasDOMNode(e,t)}function HT(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=zO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=uO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=zO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&rd.equals(l,r)){var c=!0;if(rd.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||zO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&zO.toDOMRange(t,r);if(g){rd.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(RT(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:LT(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:RT(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)}))}(LT(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&&jO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=zO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var VT=new WeakMap,UT=new WeakMap,WT={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"},GT={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"},qT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},KT=function(e){var t=WT[e],n=GT[e],r=qT[e],o=t&&kv(t),i=n&&kv(n),a=r&&kv(r);return function(e){return!(!o||!o(e))||!!(PO&&i&&i(e))||!(PO||!a||!a(e))}},YT={isBold:KT("bold"),isCompose:KT("compose"),isMoveBackward:KT("moveBackward"),isMoveForward:KT("moveForward"),isDeleteBackward:KT("deleteBackward"),isDeleteForward:KT("deleteForward"),isDeleteLineBackward:KT("deleteLineBackward"),isDeleteLineForward:KT("deleteLineForward"),isDeleteWordBackward:KT("deleteWordBackward"),isDeleteWordForward:KT("deleteWordForward"),isExtendBackward:KT("extendBackward"),isExtendForward:KT("extendForward"),isExtendLineBackward:KT("extendLineBackward"),isExtendLineForward:KT("extendLineForward"),isItalic:KT("italic"),isMoveLineBackward:KT("moveLineBackward"),isMoveLineForward:KT("moveLineForward"),isMoveWordBackward:KT("moveWordBackward"),isMoveWordForward:KT("moveWordForward"),isRedo:KT("redo"),isSplitBlock:KT("splitBlock"),isTransposeCharacter:KT("transposeCharacter"),isUndo:KT("undo"),isTab:KT("tab"),isSelectAll:KT("selectAll")};function XT(e){e.preventDefault()}var ZT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(MO&&!o&&MT(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=qx(r.getTargetRanges(),1)[0];if(s){var l=zO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&rd.equals(i,l)||kd.select(n,l)}}if(i&&rd.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";zf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":zf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":zf.deleteForward(n);break;case"deleteContentBackward":zf.deleteBackward(n);break;case"deleteEntireSoftLine":zf.deleteBackward(n,{unit:"line"}),zf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":zf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":zf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":zf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":zf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":zf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":zf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":zf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!vO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&zf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&MT(n,r.target)){var a=zO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===zO.toDOMNode(n,n)||CO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&SO(u)&&zO.hasDOMNode(n,u)){var s=zO.toSlateNode(n,u);if(jf.isElement(s)&&!n.isVoid(s))return}if(NO){var l=a.getSelection();null==l||l.removeAllRanges()}pO.delete(n)}}}},focus:function(e,t,n){var r=zO.toDOMNode(n,n),o=zO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,jO&&e.target!==r?r.focus():pO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&$T(n,e.target)&&SO(e.target)){var r=zO.toSlateNode(n,e.target),o=zO.findPath(n,r);if(zf.hasPath(n,o)&&Wf.get(n,o)===r){var i=zf.start(n,o),a=zf.end(n,o),u=zf.void(n,{at:i}),s=zf.void(n,{at:a});if(u&&s&&Yf.equals(u[1],s[1])){var l=zf.range(n,i);kd.select(n,l)}}}},compositionstart:function(e,t,n){if(MT(n,e.target)){var r=n.selection;if(r&&rd.isExpanded(r)&&(zf.deleteFragment(n),Promise.resolve().then((function(){HT(t,n,!0)}))),r&&rd.isCollapsed(r)){var o=zO.toDOMRange(n,r).startContainer,i=o.textContent||"";VT.set(n,i),UT.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(MT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(RO||jO)&&zO.cleanExposedTexNodeInSelectionBlock(n);for(var i=rd.isBackward(o)?o.focus:o.anchor,a=qx(zf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=qx(zf.node(n,i.path.slice(0,u+1)),1)[0];if(jf.isElement(s)&&((NO||jO)&&"link"===s.type||"code"===s.type)){zO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=zO.getLeftLengthOfMaxLength(n);c<l.length?(zO.toDOMRange(n,o).startContainer.textContent=VT.get(n)||"",c>0&&zf.insertText(n,l.slice(0,c)),t.changeViewState()):zf.insertText(n,l)}else zf.insertText(n,l);NO||setTimeout((function(){var e=n.selection;if(null!=e){var t=UT.get(n);null!=t&&zO.toDOMRange(n,e).startContainer!==t&&(t.textContent=VT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){MT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&MT(n,r.target)){if(function(e,t){var n=YA.get(e),r=n&&n.getMenus(),o=ZA.get(e),i=o&&o.getMenus(),a=Wx(Wx({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Ov(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),YT.isTab(r))return XT(r),void n.handleTab();if(YT.isRedo(r))return XT(r),void("function"==typeof n.redo&&n.redo());if(YT.isUndo(r))return XT(r),void("function"==typeof n.undo&&n.undo());if(YT.isMoveLineBackward(r))return XT(r),void kd.move(n,{unit:"line",reverse:!0});if(YT.isMoveLineForward(r))return XT(r),void kd.move(n,{unit:"line"});if(YT.isExtendLineBackward(r))return XT(r),void kd.move(n,{unit:"line",edge:"focus",reverse:!0});if(YT.isExtendLineForward(r))return XT(r),void kd.move(n,{unit:"line",edge:"focus"});if(YT.isMoveBackward(r))return XT(r),void(o&&rd.isCollapsed(o)?kd.move(n,{reverse:!0}):kd.collapse(n,{edge:"start"}));if(YT.isMoveForward(r))return XT(r),void(o&&rd.isCollapsed(o)?kd.move(n):kd.collapse(n,{edge:"end"}));if(YT.isMoveWordBackward(r))return XT(r),o&&rd.isExpanded(o)&&kd.collapse(n,{edge:"focus"}),void kd.move(n,{unit:"word",reverse:!0});if(YT.isMoveWordForward(r))return XT(r),o&&rd.isExpanded(o)&&kd.collapse(n,{edge:"focus"}),void kd.move(n,{unit:"word"});if(YT.isSelectAll(r))return XT(r),void n.selectAll();if(MO){if((RO||NO)&&o&&(YT.isDeleteBackward(r)||YT.isDeleteForward(r))&&rd.isCollapsed(o)){var i=Wf.parent(n,o.anchor.path);if(jf.isElement(i)&&zf.isVoid(n,i)&&zf.isInline(n,i))return r.preventDefault(),void kd.delete(n,{unit:"block"})}}else{if(YT.isBold(r)||YT.isItalic(r)||YT.isTransposeCharacter(r))return void XT(r);if(YT.isSplitBlock(r))return XT(r),void zf.insertBreak(n);if(YT.isDeleteBackward(r))return XT(r),void(o&&rd.isExpanded(o)?zf.deleteFragment(n,{direction:"backward"}):zf.deleteBackward(n));if(YT.isDeleteForward(r))return XT(r),void(o&&rd.isExpanded(o)?zf.deleteFragment(n,{direction:"forward"}):zf.deleteForward(n));if(YT.isDeleteLineBackward(r))return XT(r),void(o&&rd.isExpanded(o)?zf.deleteFragment(n,{direction:"backward"}):zf.deleteBackward(n,{unit:"line"}));if(YT.isDeleteLineForward(r))return XT(r),void(o&&rd.isExpanded(o)?zf.deleteFragment(n,{direction:"forward"}):zf.deleteForward(n,{unit:"line"}));if(YT.isDeleteWordBackward(r))return XT(r),void(o&&rd.isExpanded(o)?zf.deleteFragment(n,{direction:"backward"}):zf.deleteBackward(n,{unit:"word"}));if(YT.isDeleteWordForward(r))return XT(r),void(o&&rd.isExpanded(o)?zf.deleteFragment(n,{direction:"forward"}):zf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!MO&&!n.getConfig().readOnly&&MT(n,e.target)){e.preventDefault();var r=e.key;zf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(MT(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&&MT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(rd.isExpanded(o))zf.deleteFragment(n);else{var a=Wf.parent(n,o.anchor.path);zf.isVoid(n,a)&&kd.delete(n)}}},paste:function(e,t,n){vO.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&MT(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void vO.set(n,!1);if(!MO||(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($T(n,e.target)){var r=zO.toSlateNode(n,e.target);zf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if($T(n,r.target)&&!n.getConfig().readOnly){var o=zO.toSlateNode(n,r.target),i=zO.findPath(n,o);if(zf.isVoid(n,o)||zf.void(n,{at:i,voids:!0})){var a=zf.range(n,i);kd.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&&$T(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&$T(n,r.target)&&null!=o&&!(MO&&NO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=zO.findEventRange(n,r);kd.select(n,a),t.isDraggingInternally&&(i&&kd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},JT=1,QT=function(){function e(e){var t=this;this.id=JT++,this.$textArea=null,this.$progressBar=Vp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Vp('<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=Qh((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=zO.findDocumentOrShadowRoot(t),a=i.activeElement,u=zO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,pO.set(t,!0)):pO.delete(t),!s)return kd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=MT(t,l)||zT(t,l),d=MT(t,c)||zT(t,c);if(f&&d){var p=zO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});kd.select(t,p)}else kd.deselect(t)}}(t,e)}),100);var n=Vp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Vp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Vp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,RB((function(){var e=t.editorInstance,n=zO.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=qA.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&&(Lh(ZT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Qh((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-zO.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;_T(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=Vp('<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),RB((function(){HT(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function e_(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&&e_(t)}function t_(){return Vp('<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 n_(){return Vp('<div class="w-e-bar-divider"></div>')}function r_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=PO?"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")}}}Dx("match",(function(e,t,n){return[function(t){var n=uw(this),r=null==t?void 0:Qw(t,e);return r?Ww(r,t,n):new RegExp(t)[e](aC(n))},function(e){var r=Vw(this),o=aC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Px(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Px(r,o));){var c=aC(u[0]);s[l]=c,""===c&&(r.lastIndex=Sx(o,QE(r.lastIndex),a)),l++}return 0===l?null:s}]}));var o_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Vp('<div class="w-e-bar-item"></div>'),this.$button=Vp('<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=Vp(c);e_(d),f.append(d)}else f.text(a);r_(f,c,a,s,n),n&&c&&f.append(Vp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),RB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),y_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=y_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=y_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=y_(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}(),i_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return Ux(t,e),t.prototype.onButtonClick=function(){},t}(o_),a_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=QA.get(e);null==t&&(t=new Set,QA.set(e,t)),t.add(this),eO.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=eO.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=eO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),u_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Vp('<div class="w-e-drop-panel"></div>'),n}return Ux(t,e),t.prototype.genSelfElem=function(){return null},t}(a_),s_=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=t_();o.$button.append(i)}return o}return Ux(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=y_(this);if(null==this.dropPanel){var n=new u_(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}(o_),l_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Vp('<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 Ux(t,e),t.prototype.genSelfElem=function(){var e=this,t=Vp('<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=eO.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}(a_);function c_(e,t,n){var r=Vp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Vp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function f_(e,t){var n=Vp('<div class="button-container"></div>'),r=Vp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var d_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Vp("body"),o.modal=null,o.menu=n,o}return Ux(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=y_(this),t=this.menu.getModalPositionNode(e);return jf.isElement(t)?sT(e,t,"modal"):uT(e)},t.prototype.handleModal=function(){var e=y_(this),t=this.menu;if(null==this.modal){var n=new l_(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=y_(this),r=this.menu;if(null!=r.getModalContentElem){var o=zO.getTextarea(n),i=zO.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||lT(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(o_),p_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Vp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return Ux(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Vp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Vp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Vp('<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(Vp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(a_),h_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Vp('<div class="w-e-bar-item"></div>'),this.$button=Vp('<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),r_(f,s,i,c,n),this.$elem.append(f),this.menu=t,RB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),y_(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=y_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new p_(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=Vp(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=y_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=y_(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=t_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=y_(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}(),g_=function(){function e(e){this.$elem=Vp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Vp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Vp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Vp(n);e_(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=t_();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){Vp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),v_=new WeakMap;function y_(e){var t=JA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function m_(e,t,n){void 0===n&&(n=!1);var r=v_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new s_(e,t,n):a?new d_(e,t,n):new i_(e,t,n)}if("select"===o&&(r=new h_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return v_.set(t,r),r}function b_(e,t){var n=e.selection;return null!=n&&!rd.isCollapsed(n)&&!zO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!cd.isText(t)}var w_=function(){function e(){var e=this;this.$elem=Vp('<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=Uv((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&&jf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),RB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),zO.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;RB((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=n_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=VO[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=m_(e,r);this.hoverbarItems.push(i),JA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),jf.isElement(e)){var r=sT(t,e,"bar");return n.css(r),void lT(t,n)}if(cd.isText(e))return r=uT(t),n.css(r),void lT(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 zO.checkNodeType(t,o)},c=qx(zf.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=XA.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=b_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=zO.findPath(null,e),r=zO.findPath(null,t);return Yf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function E_(e,t,n,r){if(iO.set(e,t),aO.set(e,n),jf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return E_(t,n,e,r)})),zf.isVoid(r,e)){var i=qx(Wf.texts(e),1),a=qx(i[0],1)[0];iO.set(a,0),aO.set(a,e)}}}function D_(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];oC.withoutSaving(t,(()=>{zf.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];oC.withoutSaving(t,(()=>{zf.withoutNormalizing(t,(()=>{var e=r.map(Kf.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=oC.isSaving(t),d=oC.isMerging(t);if(null==f&&(f=((e,t)=>"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||!Yf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Yf.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=zO.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=zO.getLeftLengthOfMaxLength(t);n<=0||n<Wf.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(zO.getLeftLengthOfMaxLength(t)<Wf.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=zO.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===wO.TEXT_NODE?e+(t.textContent||""):n===wO.ELEMENT_NODE?TF.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=tT(t);if(r.on(e,n),"destroyed"===e&&rT(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),rT(t,o)}},t.once=function(e,n){tT(t).once(e,n)},t.off=function(e,n){tT(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=tT(t);o.emit.apply(o,Kx([e],qx(n))),"destroyed"===e&&(oT(t).forEach((function(e){return o.off("destroyed",e)})),iT(t))},t}(function(e){var t=e;return t.select=function(e){kd.select(t,e)},t.deselect=function(){var n=t.selection,r=zO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&kd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||kd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=hO.get(t);null!=e&&(t.focus(),kd.select(t,e))},t.getSelectionPosition=function(){return uT(t)},t.getNodePosition=function(e){return sT(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=qx(rd.edges(e),2),r=n[0],o=n[1],i=qx(zf.edges(t,[]),2),a=i[0],u=i[1];return!(!Qf.equals(r,a)||!Qf.equals(o,u))},t.selectAll=function(){var e=zf.start(t,[]),n=zf.end(t,[]);kd.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=Gx(zf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=qx(p.value,2),g=h[0],v=h[1],y=zO.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=Gx(zf.levels(t,{at:Yf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=qx(b.value,2);g=w[0],v=w[1],y=zO.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=Gx(zf.levels(t,{at:Yf.common(Yf.parent(e.path),Yf.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var C=qx(D.value,2);g=C[0],v=C[1],y=zO.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 S=Gx(f),x=S.next();!x.done;x=S.next()){var A=qx(x.value,2);v=A[0],y=A[1],g=qx(zf.node(t,v),1)[0],fO.set(g,y)}}catch(O){l={error:O}}finally{try{x&&!x.done&&(c=S.return)&&c.call(S)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&rd.isCollapsed(e.selection)){var r=zf.above(e,{match:function(t){return zf.isBlock(e,t)},at:e.selection});if(r){var o=qx(r,2)[1],a=zf.range(e,o,e.selection.anchor),u=function(e,t){var n=zf.range(e,rd.end(t)),r=Array.from(zf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(HB(e,zf.range(e,r[o]),n))return zf.range(e,r[o],n);if(r.length<2)return zf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)HB(e,zf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return zf.range(e,r[i],n)}(t,a);rd.isCollapsed(u)||kd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&hO.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 MB(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Wf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":zf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=zf.nodes(t,{at:[],universal:!0});try{for(var u=Gx(a),s=u.next();!s.done;s=u.next()){var l=qx(s.value,1)[0];if(jf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=zB(zO.findKey(t,l).id);i.push(Wx(Wx({},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(jf.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(cd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){kd.delete(t,{at:{anchor:zf.start(t,[]),focus:zf.end(t,[])}}),0===t.children.length&&kd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return zO.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===wO.TEXT_NODE||t===wO.ELEMENT_NODE&&!TF.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;zO.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!==wO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(VB.includes(r.toLowerCase()))s=!0;else for(var l in GB)if(a.matches(l)){s=!0;break}if(s){var c=CF(Vp(a),t);return Array.isArray(c)?(c.forEach((function(e){return _F(t,e)})),u++):(_F(t,c),u++),void(zO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;zO.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&&zO.isEmptyPath(t,a)&&kd.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=xF(t,e);if(kd.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(zf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in VO)e.push(t);return e},t.getConfig=function(){var e=tO.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=PF((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of zf.pathRefs(e))Xf.transform(n,t);for(var r of zf.pointRefs(e))ed.transform(r,t);for(var o of zf.rangeRefs(e))od.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=Yc.get(e)||[],l=rf(t);for(var c of s)u(Yf.transform(c,t));for(var f of l)u(f);Yc.set(e,a),kd.transform(e,t),e.operations.push(t),zf.normalize(e),"set_selection"===t.type&&(e.marks=null),Xc.get(e)||(Xc.set(e,!0),Promise.resolve().then((()=>{Xc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(rd.isExpanded(r))kd.setNodes(e,{[t]:n},{match:cd.isText,split:!0});else{var o=nf(nf({},zf.marks(e)||{}),{},{[t]:n});e.marks=o,Xc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&rd.isCollapsed(n)&&kd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&rd.isCollapsed(n)&&kd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&rd.isExpanded(n)&&kd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Wf.fragment(e,t):[]},insertBreak:()=>{kd.splitNodes(e,{always:!0})},insertFragment:t=>{kd.insertFragment(e,t)},insertNode:t=>{kd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=nf({text:t},r);kd.insertNodes(e,o)}else kd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!cd.isText(n))if(jf.isElement(n)&&0===n.children.length)kd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!zf.isEditor(n)&&jf.isElement(n)&&(e.isInline(n)||0===n.children.length||cd.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Wf.get(e,r);if(!cd.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(cd.isText(s)||jf.isElement(s)&&e.isInline(s))!==o?(kd.removeNodes(e,{at:r.concat(i),voids:!0}),i--):jf.isElement(s)?e.isInline(s)&&(null!=l&&cd.isText(l)?c&&(kd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(kd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&cd.isText(l)&&(cd.equals(s,l,{loose:!0})?(kd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(kd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(kd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(rd.isExpanded(n))kd.unsetNodes(e,t,{match:cd.isText,split:!0});else{var r=nf({},zf.marks(e)||{});delete r[t],e.marks=r,Xc.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+$O++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(zO.toDOMNode(t,t).focus({preventScroll:!0}),pO.set(t,!0),e){var n=zf.end(t,[]);kd.select(t,n)}else{var r=hO.get(t);r?kd.select(t,r):kd.select(t,zf.start(t,[]))}},t.isFocused=function(){return!!pO.get(t)},t.blur=function(){zO.toDOMNode(t,t).blur(),kd.deselect(t),pO.set(t,!1)},t.updateView=function(){zO.getTextarea(t).changeViewState();var e=zO.getToolbar(t);e&&e.changeToolbarState();var n=zO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=zO.getTextarea(t);e.destroy(),GA.delete(t),qA.delete(e);var n=zO.getToolbar(t);n&&(n.destroy(),YA.delete(t),KA.delete(n));var r=zO.getHoverbar(t);r&&(r.destroy(),ZA.delete(t),XA.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=Vp("#"+e);if(0!==r.length){var o=r[0];if(!zO.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=zO.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||zO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=QA.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 zO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=zO.getToolbar(t);n&&(e=n.$box);var r=zO.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=zO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return zO.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return SF(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=Wv(HO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Lh(t,(function(e,t){n[t]=Wx(Wx({},e),o[t]||{})})),delete e.MENU_CONF,Wx({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);tO.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=xF(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),zO.normalizeContent(c),r){var h=new QT(r);GA.set(c,h),qA.set(h,c),h.changeViewState(),RB((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 w_,XA.set(g,c),ZA.set(c,g)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return E_(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)})),RB((function(){return c.emit("created")})),c}var C_=GS("splice"),S_=Xb.TypeError,x_=Math.max,A_=Math.min;ZD({target:"Array",proto:!0,forced:!C_},{splice:function(e,t){var n,r,o,i,a,u,s=lw(this),l=eD(s),c=FD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=A_(x_(ZE(t),0),l-c)),l+n-r>9007199254740991)throw S_("Maximum allowed length exceeded");for(o=dD(s,r),i=0;i<r;i++)(a=c+i)in s&&HC(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 O_=function(){function e(e,t){var n=this;this.$toolbar=Vp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Uv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Vp(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),RB((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=Wv(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=n_();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 g_(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 g_,o=this.menus,i=o[e];if(null==i){var a=VO[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=m_(e,i,r);this.toolbarItems.push(u),JA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=KA.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}(),k_=FE.EXISTS,B_=aE.f,F_=Function.prototype,T_=iw(F_.toString),__=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,P_=iw(__.exec);function j_(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,C=e.onError,S=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,x=e.onProgress,A=void 0===x?function(e){}:x;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=qx(e.split("#"),2),r=n[0],o=n[1],i=[];Lh(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 bm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Ub,{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{S(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{S(e,t)}catch(n){console.error("wangEditor upload file - onError error",n)}k.removeFile(e.id)})),k}function N_(e){return(N_="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 I_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L_(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){I_(e,t,n[t])}))}return e}function R_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M_(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 z_(e,t,n){return t&&M_(e.prototype,t),n&&M_(e,n),e}function $_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H_(e,t){if(t&&("object"===N_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $_(e)}function V_(e){return(V_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U_(e,t){return(U_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W_(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&&U_(e,t)}Nw&&!k_&&B_(F_,"name",{configurable:!0,get:function(){try{return P_(__,T_(this))[1]}catch($l){return""}}});var G_={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)}},q_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R_(this,e),this.init(t,n)}return z_(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||G_,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,L_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),K_=function(){function e(){R_(this,e),this.observers={}}return z_(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function Y_(){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 Z_(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function J_(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 Q_(e,t,n){var r=J_(e,t,Object);r.obj[r.k]=n}function eP(e,t){var n=J_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function tP(e,t,n){var r=eP(e,n);return void 0!==r?r:eP(t,n)}function nP(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]):nP(e[r],t[r],n):e[r]=t[r]);return e}function rP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var oP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function iP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return oP[e]})):e}var aP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function uP(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?uP(s,l,n):void 0}o=o[r[i]]}return o}}var sP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return R_(this,t),n=H_(this,V_(t).call(this)),aP&&K_.call($_(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return W_(t,K_),z_(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=eP(this.data,a);return u||!i||"string"!=typeof n?u:uP(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),Q_(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=eP(this.data,a)||{};r?nP(u,n,o):u=L_({},u,n),Q_(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?L_({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),lP={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}},cP={},fP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R_(this,t),n=H_(this,V_(t).call(this)),aP&&K_.call($_(n)),Z_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,$_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=q_.create("translator"),n}return W_(t,K_),z_(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==N_(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,L_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var D="[object Array]"===y,C=D?[]:{},S=D?v:g;for(var x in h)if(Object.prototype.hasOwnProperty.call(h,x)){var A="".concat(S).concat(i).concat(x);C[x]=this.translate(A,L_({},n,{joinArrays:!1,ns:s})),C[x]===A&&(C[x]=h[x])}h=C}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&_!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?_:h),i){var I=this.resolve(u,L_({},n,{keySeparator:!1}));I&&I.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 L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(L_({},n,{interpolation:L_({},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=L_({},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=lP.handle(d,e,t,this.options&&this.options.postProcessPassResolved?L_({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,!cP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(cP["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function dP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var pP=function(){function e(t){R_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=q_.create("languageUtils")}return z_(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]=dP(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]=dP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=dP(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}(),hP=[{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}],gP={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function vP(){var e={};return hP.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:gP[t.fc]}}))})),e}var yP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};R_(this,e),this.languageUtils=t,this.options=n,this.logger=q_.create("pluralResolver"),this.rules=vP()}return z_(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}(),mP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};R_(this,e),this.logger=q_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return z_(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:iP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?rP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?rP(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?rP(t.nestingPrefix):t.nestingPrefixEscaped||rP("$t("),this.nestingSuffix=t.nestingSuffix?rP(t.nestingSuffix):t.nestingSuffixEscaped||rP(")"),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=tP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,L_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(tP(t,s,a),l,n,L_({},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=L_({},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=L_({},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,L_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),bP=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return R_(this,t),o=H_(this,V_(t).call(this)),aP&&K_.call($_(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=q_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return W_(t,K_),z_(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,l,c;r=n.loaded,u=i,s=J_(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,L_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function wP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===N_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===N_(e[2])||"object"===N_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function EP(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 DP(){}var CP=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(R_(this,t),e=H_(this,V_(t).call(this)),aP&&K_.call($_(e)),e.options=EP(n),e.services={},e.logger=q_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),H_(e,$_(e));setTimeout((function(){e.init(n,r)}),0)}return e}return W_(t,K_),z_(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=L_({},wP(),this.options,EP(t)),this.format=this.options.interpolation.format,n||(n=DP),!this.options.isClone){this.modules.logger?q_.init(r(this.modules.logger),this.options):q_.init(null,this.options);var o=new pP(this.options);this.store=new sP(this.options.resources,this.options);var i=this.services;i.logger=q_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new yP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new mP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new bP(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 fP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=Y_(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DP,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=Y_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=DP),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&&lP.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=Y_();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"!==N_(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=L_({},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=Y_();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=Y_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:DP,o=L_({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=L_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new fP(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),SP=new CP;function xP(e,t){SP.addResourceBundle(e,"translation",t,!0,!0)}SP.init({lng:"zh-CN",resources:{}});var AP=SP.t.bind(SP);xP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),xP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var OP=ha?{}.toString:function(){return"[object "+ma(this)+"]"};ha||Ni(Object.prototype,"toString",OP,{unsafe:!0});var kP,BP=Array.isArray||function(e){return"Array"==ro(e)},FP=function(){},TP=[],_P=ho("Reflect","construct"),PP=/^\s*(?:class|function)\b/,jP=eo(PP.exec),NP=!PP.exec(FP),IP=function(e){if(!co(e))return!1;try{return _P(FP,TP,e),!0}catch(t){return!1}},LP=!_P||$r((function(){var e;return IP(IP.call)||!IP(Object)||!IP((function(){e=!0}))||e}))?function(e){if(!co(e))return!1;switch(ma(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return NP||!!jP(PP,yi(e))}:IP,RP=Ko("species"),MP=zr.Array,zP=function(e,t){return new(BP(n=e)&&(r=n.constructor,(LP(r)&&(r===MP||BP(r.prototype))||fo(r)&&null===(r=r[RP]))&&(r=void 0)),void 0===r?MP:r)(0===t?0:t);var n,r},$P=eo([].push),HP=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=Lo(s),g=ao(h),v=Fu(l,c),y=Ui(g),m=0,b=f||zP,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:$P(w,d)}else switch(e){case 4:return!1;case 7:$P(w,d)}return i?-1:r||o?o:w}},VP=[HP(0),HP(1),HP(2),HP(3),HP(4),HP(5),HP(6),HP(7)][0],UP=!!(kP=[].forEach)&&$r((function(){kP.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return VP(this,e,arguments.length>1?arguments[1]:void 0)},WP=function(e){if(e&&e.forEach!==UP)try{di(e,"forEach",UP)}catch(t){e.forEach=UP}};for(var GP in Ss)Ss[GP]&&WP(zr[GP]&&zr[GP].prototype);WP(Os),xP("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"}}),xP("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 qP={type:"paragraph",renderElem:function(e,t,n){return _g("p",null,t)}},KP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function YP(e){var t={exports:{}};return e(t,t.exports),t.exports}var XP,ZP,JP=function(e){return e&&e.Math==Math&&e},QP=JP("object"==typeof globalThis&&globalThis)||JP("object"==typeof window&&window)||JP("object"==typeof self&&self)||JP("object"==typeof KP&&KP)||function(){return this}()||Function("return this")(),ej=function(e){try{return!!e()}catch(t){return!0}},tj=!ej((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nj=Function.prototype.call,rj=nj.bind?nj.bind(nj):function(){return nj.apply(nj,arguments)},oj={}.propertyIsEnumerable,ij=Object.getOwnPropertyDescriptor,aj=ij&&!oj.call({1:2},1)?function(e){var t=ij(this,e);return!!t&&t.enumerable}:oj,uj={f:aj},sj=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},lj=Function.prototype,cj=lj.bind,fj=lj.call,dj=cj&&cj.bind(fj),pj=cj?function(e){return e&&dj(fj,e)}:function(e){return e&&function(){return fj.apply(e,arguments)}},hj=pj({}.toString),gj=pj("".slice),vj=function(e){return gj(hj(e),8,-1)},yj=QP.Object,mj=pj("".split),bj=ej((function(){return!yj("z").propertyIsEnumerable(0)}))?function(e){return"String"==vj(e)?mj(e,""):yj(e)}:yj,wj=QP.TypeError,Ej=function(e){if(null==e)throw wj("Can't call method on "+e);return e},Dj=function(e){return bj(Ej(e))},Cj=function(e){return"function"==typeof e},Sj=function(e){return"object"==typeof e?null!==e:Cj(e)},xj=function(e){return Cj(e)?e:void 0},Aj=function(e,t){return arguments.length<2?xj(QP[e]):QP[e]&&QP[e][t]},Oj=pj({}.isPrototypeOf),kj=Aj("navigator","userAgent")||"",Bj=QP.process,Fj=QP.Deno,Tj=Bj&&Bj.versions||Fj&&Fj.version,_j=Tj&&Tj.v8;_j&&(ZP=(XP=_j.split("."))[0]>0&&XP[0]<4?1:+(XP[0]+XP[1])),!ZP&&kj&&(!(XP=kj.match(/Edge\/(\d+)/))||XP[1]>=74)&&(XP=kj.match(/Chrome\/(\d+)/))&&(ZP=+XP[1]);var Pj=ZP,jj=!!Object.getOwnPropertySymbols&&!ej((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Pj&&Pj<41})),Nj=jj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ij=QP.Object,Lj=Nj?function(e){return"symbol"==typeof e}:function(e){var t=Aj("Symbol");return Cj(t)&&Oj(t.prototype,Ij(e))},Rj=QP.String,Mj=function(e){try{return Rj(e)}catch(t){return"Object"}},zj=QP.TypeError,$j=function(e){if(Cj(e))return e;throw zj(Mj(e)+" is not a function")},Hj=function(e,t){var n=e[t];return null==n?void 0:$j(n)},Vj=QP.TypeError,Uj=Object.defineProperty,Wj=function(e,t){try{Uj(QP,e,{value:t,configurable:!0,writable:!0})}catch(kP){QP[e]=t}return t},Gj=QP["__core-js_shared__"]||Wj("__core-js_shared__",{}),qj=YP((function(e){(e.exports=function(e,t){return Gj[e]||(Gj[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Kj=QP.Object,Yj=function(e){return Kj(Ej(e))},Xj=pj({}.hasOwnProperty),Zj=Object.hasOwn||function(e,t){return Xj(Yj(e),t)},Jj=0,Qj=Math.random(),eN=pj(1..toString),tN=function(e){return"Symbol("+(void 0===e?"":e)+")_"+eN(++Jj+Qj,36)},nN=qj("wks"),rN=QP.Symbol,oN=rN&&rN.for,iN=Nj?rN:rN&&rN.withoutSetter||tN,aN=function(e){if(!Zj(nN,e)||!jj&&"string"!=typeof nN[e]){var t="Symbol."+e;jj&&Zj(rN,e)?nN[e]=rN[e]:nN[e]=Nj&&oN?oN(t):iN(t)}return nN[e]},uN=QP.TypeError,sN=aN("toPrimitive"),lN=function(e){var t=function(e,t){if(!Sj(e)||Lj(e))return e;var n,r=Hj(e,sN);if(r){if(void 0===t&&(t="default"),n=rj(r,e,t),!Sj(n)||Lj(n))return n;throw uN("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Cj(n=e.toString)&&!Sj(r=rj(n,e)))return r;if(Cj(n=e.valueOf)&&!Sj(r=rj(n,e)))return r;if("string"!==t&&Cj(n=e.toString)&&!Sj(r=rj(n,e)))return r;throw Vj("Can't convert object to primitive value")}(e,t)}(e,"string");return Lj(t)?t:t+""},cN=QP.document,fN=Sj(cN)&&Sj(cN.createElement),dN=function(e){return fN?cN.createElement(e):{}},pN=!tj&&!ej((function(){return 7!=Object.defineProperty(dN("div"),"a",{get:function(){return 7}}).a})),hN=Object.getOwnPropertyDescriptor,gN={f:tj?hN:function(e,t){if(e=Dj(e),t=lN(t),pN)try{return hN(e,t)}catch(n){}if(Zj(e,t))return sj(!rj(uj.f,e,t),e[t])}},vN=QP.String,yN=QP.TypeError,mN=function(e){if(Sj(e))return e;throw yN(vN(e)+" is not an object")},bN=QP.TypeError,wN=Object.defineProperty,EN={f:tj?wN:function(e,t,n){if(mN(e),t=lN(t),mN(n),pN)try{return wN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw bN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},DN=tj?function(e,t,n){return EN.f(e,t,sj(1,n))}:function(e,t,n){return e[t]=n,e},CN=pj(Function.toString);Cj(Gj.inspectSource)||(Gj.inspectSource=function(e){return CN(e)});var SN,xN,AN,ON=Gj.inspectSource,kN=QP.WeakMap,BN=Cj(kN)&&/native code/.test(ON(kN)),FN=qj("keys"),TN=function(e){return FN[e]||(FN[e]=tN(e))},_N={},PN=QP.TypeError,jN=QP.WeakMap;if(BN||Gj.state){var NN=Gj.state||(Gj.state=new jN),IN=pj(NN.get),LN=pj(NN.has),RN=pj(NN.set);SN=function(e,t){if(LN(NN,e))throw new PN("Object already initialized");return t.facade=e,RN(NN,e,t),t},xN=function(e){return IN(NN,e)||{}},AN=function(e){return LN(NN,e)}}else{var MN=TN("state");_N[MN]=!0,SN=function(e,t){if(Zj(e,MN))throw new PN("Object already initialized");return t.facade=e,DN(e,MN,t),t},xN=function(e){return Zj(e,MN)?e[MN]:{}},AN=function(e){return Zj(e,MN)}}var zN={set:SN,get:xN,has:AN,enforce:function(e){return AN(e)?xN(e):SN(e,{})},getterFor:function(e){return function(t){var n;if(!Sj(t)||(n=xN(t)).type!==e)throw PN("Incompatible receiver, "+e+" required");return n}}},$N=Function.prototype,HN=tj&&Object.getOwnPropertyDescriptor,VN=Zj($N,"name"),UN={EXISTS:VN,PROPER:VN&&"something"===function(){}.name,CONFIGURABLE:VN&&(!tj||tj&&HN($N,"name").configurable)},WN=YP((function(e){var t=UN.CONFIGURABLE,n=zN.get,r=zN.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;Cj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zj(i,"name")||t&&i.name!==f)&&DN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==QP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:DN(e,n,i)):l?e[n]=i:Wj(n,i)})(Function.prototype,"toString",(function(){return Cj(this)&&n(this).source||ON(this)}))})),GN=Math.ceil,qN=Math.floor,KN=function(e){var t=+e;return t!=t||0===t?0:(t>0?qN:GN)(t)},YN=Math.max,XN=Math.min,ZN=function(e,t){var n=KN(e);return n<0?YN(n+t,0):XN(n,t)},JN=Math.min,QN=function(e){return e>0?JN(KN(e),9007199254740991):0},eI=function(e){return QN(e.length)},tI=function(e){return function(t,n,r){var o,i=Dj(t),a=eI(i),u=ZN(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}},nI={includes:tI(!0),indexOf:tI(!1)},rI=nI.indexOf,oI=pj([].push),iI=function(e,t){var n,r=Dj(e),o=0,i=[];for(n in r)!Zj(_N,n)&&Zj(r,n)&&oI(i,n);for(;t.length>o;)Zj(r,n=t[o++])&&(~rI(i,n)||oI(i,n));return i},aI=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],uI=aI.concat("length","prototype"),sI={f:Object.getOwnPropertyNames||function(e){return iI(e,uI)}},lI={f:Object.getOwnPropertySymbols},cI=pj([].concat),fI=Aj("Reflect","ownKeys")||function(e){var t=sI.f(mN(e)),n=lI.f;return n?cI(t,n(e)):t},dI=function(e,t){for(var n=fI(t),r=EN.f,o=gN.f,i=0;i<n.length;i++){var a=n[i];Zj(e,a)||r(e,a,o(t,a))}},pI=/#|\.prototype\./,hI=function(e,t){var n=vI[gI(e)];return n==mI||n!=yI&&(Cj(t)?ej(t):!!t)},gI=hI.normalize=function(e){return String(e).replace(pI,".").toLowerCase()},vI=hI.data={},yI=hI.NATIVE="N",mI=hI.POLYFILL="P",bI=hI,wI=gN.f,EI=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?QP:l?QP[u]||Wj(u,{}):(QP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=wI(n,r))&&a.value:n[r],!bI(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;dI(i,o)}(e.sham||o&&o.sham)&&DN(i,"sham",!0),WN(n,r,i,e)}},DI=pj(pj.bind),CI=Array.isArray||function(e){return"Array"==vj(e)},SI={};SI[aN("toStringTag")]="z";var xI="[object z]"===String(SI),AI=aN("toStringTag"),OI=QP.Object,kI="Arguments"==vj(function(){return arguments}()),BI=xI?vj: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=OI(e),AI))?n:kI?vj(t):"Object"==(r=vj(t))&&Cj(t.callee)?"Arguments":r},FI=function(){},TI=[],_I=Aj("Reflect","construct"),PI=/^\s*(?:class|function)\b/,jI=pj(PI.exec),NI=!PI.exec(FI),II=function(e){if(!Cj(e))return!1;try{return _I(FI,TI,e),!0}catch(t){return!1}},LI=!_I||ej((function(){var e;return II(II.call)||!II(Object)||!II((function(){e=!0}))||e}))?function(e){if(!Cj(e))return!1;switch(BI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return NI||!!jI(PI,ON(e))}:II,RI=aN("species"),MI=QP.Array,zI=function(e,t){return new(CI(n=e)&&(r=n.constructor,(LI(r)&&(r===MI||CI(r.prototype))||Sj(r)&&null===(r=r[RI]))&&(r=void 0)),void 0===r?MI:r)(0===t?0:t);var n,r},$I=pj([].push),HI=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=bj(h),v=function(e,t){return $j(e),void 0===t?e:DI?DI(e,t):function(){return e.apply(t,arguments)}}(l,c),y=eI(g),m=0,b=f||zI,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:$I(w,d)}else switch(e){case 4:return!1;case 7:$I(w,d)}return i?-1:r||o?o:w}},VI={forEach:HI(0),map:HI(1),filter:HI(2),some:HI(3),every:HI(4),find:HI(5),findIndex:HI(6),filterReject:HI(7)},UI=aN("species"),WI=function(e){return Pj>=51||!ej((function(){var t=[];return(t.constructor={})[UI]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},GI=VI.filter;EI({target:"Array",proto:!0,forced:!WI("filter")},{filter:function(e){return GI(this,e,arguments.length>1?arguments[1]:void 0)}});var qI=xI?{}.toString:function(){return"[object "+BI(this)+"]"};xI||WN(Object.prototype,"toString",qI,{unsafe:!0});var KI,YI=QP.String,XI=function(e){if("Symbol"===BI(e))throw TypeError("Cannot convert a Symbol value to a string");return YI(e)},ZI=function(){var e=mN(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},JI=QP.RegExp,QI=ej((function(){var e=JI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),eL=QI||ej((function(){return!JI("a","y").sticky})),tL={BROKEN_CARET:QI||ej((function(){var e=JI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:eL,UNSUPPORTED_Y:QI},nL=Object.keys||function(e){return iI(e,aI)},rL=tj?Object.defineProperties:function(e,t){mN(e);for(var n,r=Dj(t),o=nL(t),i=o.length,a=0;i>a;)EN.f(e,n=o[a++],r[n]);return e},oL=Aj("document","documentElement"),iL=TN("IE_PROTO"),aL=function(){},uL=function(e){return"<script>"+e+"<\/script>"},sL=function(e){e.write(uL("")),e.close();var t=e.parentWindow.Object;return e=null,t},lL=function(){try{KI=new ActiveXObject("htmlfile")}catch(r){}var e,t;lL="undefined"!=typeof document?document.domain&&KI?sL(KI):((t=dN("iframe")).style.display="none",oL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(uL("document.F=Object")),e.close(),e.F):sL(KI);for(var n=aI.length;n--;)delete lL.prototype[aI[n]];return lL()};_N[iL]=!0;var cL,fL,dL=Object.create||function(e,t){var n;return null!==e?(aL.prototype=mN(e),n=new aL,aL.prototype=null,n[iL]=e):n=lL(),void 0===t?n:rL(n,t)},pL=QP.RegExp,hL=ej((function(){var e=pL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),gL=QP.RegExp,vL=ej((function(){var e=gL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),yL=zN.get,mL=qj("native-string-replace",String.prototype.replace),bL=RegExp.prototype.exec,wL=bL,EL=pj("".charAt),DL=pj("".indexOf),CL=pj("".replace),SL=pj("".slice),xL=(fL=/b*/g,rj(bL,cL=/a/,"a"),rj(bL,fL,"a"),0!==cL.lastIndex||0!==fL.lastIndex),AL=tL.BROKEN_CARET,OL=void 0!==/()??/.exec("")[1];(xL||OL||AL||hL||vL)&&(wL=function(e){var t,n,r,o,i,a,u,s=this,l=yL(s),c=XI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=rj(wL,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=AL&&s.sticky,h=rj(ZI,s),g=s.source,v=0,y=c;if(p&&(h=CL(h,"y",""),-1===DL(h,"g")&&(h+="g"),y=SL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==EL(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),OL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),xL&&(r=s.lastIndex),o=rj(bL,p?n:s,y),p?o?(o.input=SL(o.input,v),o[0]=SL(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),OL&&o&&o.length>1&&rj(mL,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=dL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var kL=wL;EI({target:"RegExp",proto:!0,forced:/./.exec!==kL},{exec:kL});var BL=Function.prototype,FL=BL.apply,TL=BL.bind,_L=BL.call,PL="object"==typeof Reflect&&Reflect.apply||(TL?_L.bind(FL):function(){return _L.apply(FL,arguments)}),jL=aN("species"),NL=RegExp.prototype,IL=function(e,t,n,r){var o=aN(e),i=!ej((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!ej((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[jL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=pj(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=pj(e),s=t.exec;return s===kL||s===NL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));WN(String.prototype,e,s[0]),WN(NL,o,s[1])}r&&DN(NL[o],"sham",!0)},LL=pj("".charAt),RL=pj("".charCodeAt),ML=pj("".slice),zL=function(e){return function(t,n){var r,o,i=XI(Ej(t)),a=KN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=RL(i,a))<55296||r>56319||a+1===u||(o=RL(i,a+1))<56320||o>57343?e?LL(i,a):r:e?ML(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),$L=function(e,t,n){return t+(n?zL(e,t).length:1)},HL=Math.floor,VL=pj("".charAt),UL=pj("".replace),WL=pj("".slice),GL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qL=/\$([$&'`]|\d{1,2})/g,KL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=qL;return void 0!==o&&(o=Yj(o),s=GL),UL(i,s,(function(i,s){var l;switch(VL(s,0)){case"$":return"$";case"&":return e;case"`":return WL(t,0,n);case"'":return WL(t,a);case"<":l=o[WL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=HL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?VL(s,1):r[f-1]+VL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},YL=QP.TypeError,XL=function(e,t){var n=e.exec;if(Cj(n)){var r=rj(n,e,t);return null!==r&&mN(r),r}if("RegExp"===vj(e))return rj(kL,e,t);throw YL("RegExp#exec called on incompatible receiver")},ZL=aN("replace"),JL=Math.max,QL=Math.min,eR=pj([].concat),tR=pj([].push),nR=pj("".indexOf),rR=pj("".slice),oR="$0"==="a".replace(/./,"$0"),iR=!!/./[ZL]&&""===/./[ZL]("a","$0");IL("replace",(function(e,t,n){var r=iR?"$":"$0";return[function(e,n){var r=Ej(this),o=null==e?void 0:Hj(e,ZL);return o?rj(o,e,r,n):rj(t,XI(r),e,n)},function(e,o){var i=mN(this),a=XI(e);if("string"==typeof o&&-1===nR(o,r)&&-1===nR(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Cj(o);s||(o=XI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=XL(i,a);if(null===d)break;if(tR(f,d),!l)break;""===XI(d[0])&&(i.lastIndex=$L(a,QN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=XI((d=f[v])[0]),m=JL(QL(KN(d.index),a.length),0),b=[],w=1;w<d.length;w++)tR(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=eR([y],b,m,a);void 0!==E&&tR(D,E);var C=XI(PL(o,void 0,D))}else C=KL(y,a,m,b,E,o);m>=g&&(h+=rR(a,g,m)+C,g=m+y.length)}return h+rR(a,g)}]}),!!ej((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!oR||iR);var aR=aN("unscopables"),uR=Array.prototype;null==uR[aR]&&EN.f(uR,aR,{configurable:!0,value:dL(null)});var sR=function(e){uR[aR][e]=!0},lR=VI.find,cR=!0;"find"in[]&&Array(1).find((function(){cR=!1})),EI({target:"Array",proto:!0,forced:cR},{find:function(e){return lR(this,e,arguments.length>1?arguments[1]:void 0)}}),sR("find");var fR=aN("match"),dR=function(e){var t;return Sj(e)&&(void 0!==(t=e[fR])?!!t:"RegExp"==vj(e))},pR=QP.TypeError,hR=aN("species"),gR=function(e,t,n){var r=lN(t);r in e?EN.f(e,r,sj(0,n)):e[r]=n},vR=QP.Array,yR=Math.max,mR=function(e,t,n){for(var r=eI(e),o=ZN(t,r),i=ZN(void 0===n?r:n,r),a=vR(yR(i-o,0)),u=0;o<i;o++,u++)gR(a,u,e[o]);return a.length=u,a},bR=tL.UNSUPPORTED_Y,wR=Math.min,ER=[].push,DR=pj(/./.exec),CR=pj(ER),SR=pj("".slice);IL("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=XI(Ej(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!dR(e))return rj(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=rj(kL,f,r))&&!((a=f.lastIndex)>c&&(CR(s,SR(r,c,i.index)),i.length>1&&i.index<r.length&&PL(ER,s,mR(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&DR(f,"")||CR(s,""):CR(s,SR(r,c)),s.length>o?mR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:rj(t,this,e,n)}:t,[function(t,n){var o=Ej(this),i=null==t?void 0:Hj(t,e);return i?rj(i,t,o,n):rj(r,XI(o),t,n)},function(e,o){var i=mN(this),a=XI(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=mN(i).constructor)||null==(l=mN(c)[hR])?s:function(e){if(LI(e))return e;throw pR(Mj(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(bR?"g":"y"),h=new f(bR?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===XL(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=bR?0:y;var b,w=XL(h,bR?SR(a,y):a);if(null===w||(b=wR(QN(h.lastIndex+(bR?y:0)),a.length))===v)y=$L(a,y,d);else{if(CR(m,SR(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(CR(m,w[E]),m.length===g)return m;y=v=b}}return CR(m,SR(a,v)),m}]}),!!ej((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]})),bR);var xR="\t\n\v\f\r                 \u2028\u2029\ufeff",AR=pj("".replace),OR="["+xR+"]",kR=RegExp("^"+OR+OR+"*"),BR=RegExp(OR+OR+"*$"),FR=function(e){return function(t){var n=XI(Ej(t));return 1&e&&(n=AR(n,kR,"")),2&e&&(n=AR(n,BR,"")),n}},TR={start:FR(1),end:FR(2),trim:FR(3)},_R=UN.PROPER,PR=TR.trim;function jR(e){return 0===Vp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function NR(e){return 0===e.length?"":e[0].outerHTML}function IR(e){return e.length?e[0].tagName.toLowerCase():""}function LR(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}EI({target:"String",proto:!0,forced:ej((function(){return!!xR.trim()||"​…᠎"!=="​…᠎".trim()||_R&&"trim"!==xR.trim.name}))},{trim:function(){return PR(this)}}),EI({global:!0},{globalThis:QP}),oh&&(Vp.fn.css=oh),ch&&(Vp.fn.append=ch),fh&&(Vp.fn.prepend=fh),Up&&(Vp.fn.addClass=Up),Wp&&(Vp.fn.removeClass=Wp),Gp&&(Vp.fn.hasClass=Gp),Zp&&(Vp.fn.on=Zp),Jp&&(Vp.fn.off=Jp),Eh&&(Vp.fn.focus=Eh),qp&&(Vp.fn.attr=qp),Kp&&(Vp.fn.removeAttr=Kp),nh&&(Vp.fn.hide=nh),rh&&(Vp.fn.show=rh),ph&&(Vp.fn.parents=ph),Yp&&(Vp.fn.dataset=Yp),Xp&&(Vp.fn.val=Xp),sh&&(Vp.fn.text=sh),uh&&(Vp.fn.html=uh),gh&&(Vp.fn.children=gh),vh&&(Vp.fn.remove=vh),hh&&(Vp.fn.find=hh),Qp&&(Vp.fn.width=Qp),eh&&(Vp.fn.height=eh),ah&&(Vp.fn.filter=ah),yh&&(Vp.fn.empty=yh);var RR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Vp(e);return 0===(t=t.filter((function(e){return!!cd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},MR=function(e,t){return MR=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])},MR(e,t);
  38. /*! *****************************************************************************
  39. Copyright (c) Microsoft Corporation.
  40. Permission to use, copy, modify, and/or distribute this software for any
  41. purpose with or without fee is hereby granted.
  42. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  43. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  44. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  45. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  46. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  47. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  48. PERFORMANCE OF THIS SOFTWARE.
  49. ***************************************************************************** */};function zR(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}MR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var $R=function(){return $R=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},$R.apply(this,arguments)};function HR(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function VR(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 UR(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 WR(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 GR(e){var t=WR(zf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!jf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Wf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!cd.isText(o[0])&&(kd.setNodes(e,{type:"paragraph"}),!0)}var qR={renderElems:[qP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[RR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){GR(r)||t(e)},r.deleteForward=function(e){GR(r)||n(e)},r}},KR=/"/g,YR=pj("".replace),XR=function(e,t,n,r){var o=XI(Ej(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+YR(XI(r),KR,"&quot;")+'"'),i+">"+o+"</"+t+">"},ZR=function(e){return ej((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function JR(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 QR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}EI({target:"String",proto:!0,forced:ZR("bold")},{bold:function(){return XR(this,"b","","")}}),EI({target:"String",proto:!0,forced:ZR("italics")},{italics:function(){return XR(this,"i","","")}}),EI({target:"String",proto:!0,forced:ZR("sub")},{sub:function(){return XR(this,"sub","","")}}),EI({target:"String",proto:!0,forced:ZR("sup")},{sup:function(){return XR(this,"sup","","")}});var eM={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},tM=dN("span").classList,nM=tM&&tM.constructor&&tM.constructor.prototype,rM=nM===Object.prototype?void 0:nM,oM=function(e,t){var n=[][e];return!!n&&ej((function(){n.call(null,t||function(){throw 1},1)}))},iM=VI.forEach,aM=oM("forEach")?[].forEach:function(e){return iM(this,e,arguments.length>1?arguments[1]:void 0)},uM=function(e){if(e&&e.forEach!==aM)try{DN(e,"forEach",aM)}catch(t){e.forEach=aM}};for(var sM in eM)eM[sM]&&uM(QP[sM]&&QP[sM].prototype);function lM(e,t){return null==e.selection||!!WR(zf.nodes(e,{match:function(t){return"pre"===zO.getNodeType(t)||!!zf.isVoid(e,t)},universal:!0}),1)[0]}function cM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&zf.removeMark(e,t)}))}uM(rM),EI({target:"Object",stat:!0,forced:ej((function(){nL(1)}))},{keys:function(e){return nL(Yj(e))}});var fM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=zf.marks(e);return n?n[t]:!!WR(zf.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 lM(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}(),dM='<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>',pM='<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>',hM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',gM='<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>',vM='<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>',yM='<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>',mM='<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>',bM='<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>',wM='<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>',EM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',DM='<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>',CM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',SM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',xM='<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>',AM='<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>',OM='<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>',kM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',BM='<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>',FM='<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>',TM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=AP("textStyle.bold"),t.iconSvg=dM,t.hotkey="mod+b",t}return zR(t,e),t}(fM),_M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=AP("textStyle.code"),t.iconSvg=vM,t.hotkey="mod+e",t}return zR(t,e),t}(fM),PM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=AP("textStyle.italic"),t.iconSvg=hM,t.hotkey="mod+i",t}return zR(t,e),t}(fM),jM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=AP("textStyle.through"),t.iconSvg=gM,t.hotkey="mod+shift+x",t}return zR(t,e),t}(fM),NM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=AP("textStyle.underline"),t.iconSvg=pM,t.hotkey="mod+u",t}return zR(t,e),t}(fM),IM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=AP("textStyle.sub"),t.iconSvg=FM,t.hotkey="",t}return zR(t,e),t}(fM),LM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=AP("textStyle.sup"),t.iconSvg=BM,t.hotkey="",t}return zR(t,e),t}(fM),RM=function(){function e(){this.title=AP("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 lM(e)},e.prototype.exec=function(e,t){var n,r,o=zf.nodes(e,{match:function(e){return cd.isText(e)},universal:!0});try{for(var i=UR(o),a=i.next();!a.done;a=i.next())cM(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}(),MM={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=_g("strong",null,c)),a&&(c=_g("code",null,c)),o&&(c=_g("em",null,c)),i&&(c=_g("u",null,c)),u&&(c=_g("s",null,c)),s&&(c=_g("sub",null,c)),l&&(c=_g("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new TM}},{key:"underline",factory:function(){return new NM}},{key:"italic",factory:function(){return new PM}},{key:"through",factory:function(){return new jM}},{key:"code",factory:function(){return new _M}},{key:"sub",factory:function(){return new IM}},{key:"sup",factory:function(){return new LM}},{key:"clearStyle",factory:function(){return new RM}}],styleToHtml:function(e,t){if(!cd.isText(e))return t;if(jR(t))return JR(e,t);var n=Vp(t);if("br"===IR(n))return JR(e,"<br>");var r=n.html();return r=JR(e,r),n.html(r),NR(n)},parseStyleHtml:function(e,t,n){var r=Vp(e);if(!cd.isText(t))return t;var o=t;return QR(r,"b,strong")&&(o.bold=!0),QR(r,"i,em")&&(o.italic=!0),QR(r,"u")&&(o.underline=!0),QR(r,"s,strike")&&(o.through=!0),QR(r,"sub")&&(o.sub=!0),QR(r,"sup")&&(o.sup=!0),QR(r,"code")&&(o.code=!0),o}};function zM(e){return function(t,n,r){return _g("h"+e,null,n)}}var $M={type:"header1",renderElem:zM(1)},HM={type:"header2",renderElem:zM(2)},VM={type:"header3",renderElem:zM(3)},UM={type:"header4",renderElem:zM(4)},WM={type:"header5",renderElem:zM(5)},GM=UN.PROPER,qM=RegExp.prototype,KM=qM.toString,YM=pj(ZI),XM=ej((function(){return"/a/b"!=KM.call({source:"a",flags:"b"})})),ZM=GM&&"toString"!=KM.name;(XM||ZM)&&WN(RegExp.prototype,"toString",(function(){var e=mN(this),t=XI(e.source),n=e.flags;return"/"+t+"/"+XI(void 0===n&&Oj(qM,e)&&!("flags"in qM)?YM(e):n)}),{unsafe:!0});var JM,QM=QP.TypeError,ez=function(e){if(dR(e))throw QM("The method doesn't accept regular expressions");return e},tz=aN("match"),nz=function(e){var t=/./;try{"/./"[e](t)}catch(kP){try{return t[tz]=!1,"/./"[e](t)}catch(n){}}return!1},rz=gN.f,oz=pj("".startsWith),iz=pj("".slice),az=Math.min,uz=nz("startsWith");function sz(e){var t=WR(zf.nodes(e,{match:function(e){return zO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=WR(t,1)[0];return zO.getNodeType(n)}function lz(e){return null==e.selection||!WR(zf.nodes(e,{match:function(e){var t=zO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function cz(e,t){t&&kd.setNodes(e,{type:t})}EI({target:"String",proto:!0,forced:!(!uz&&(JM=rz(String.prototype,"startsWith"),JM&&!JM.writable)||uz)},{startsWith:function(e){var t=XI(Ej(this));ez(e);var n=QN(az(arguments.length>1?arguments[1]:void 0,t.length)),r=XI(e);return oz?oz(t,r,n):iz(t,n,n+r.length)===r}});var fz=function(){function e(){this.title=AP("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:AP("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return sz(e)},e.prototype.isDisabled=function(e){return lz(e)},e.prototype.exec=function(e,t){cz(e,t.toString())},e}(),dz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return sz(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return lz(e)},e.prototype.exec=function(e,t){var n=this.type;cz(e,t===n?"paragraph":n)},e}(),pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return zR(t,e),t}(dz),hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return zR(t,e),t}(dz),gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return zR(t,e),t}(dz),vz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return zR(t,e),t}(dz),yz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return zR(t,e),t}(dz),mz={key:"headerSelect",factory:function(){return new fz}},bz={key:"header1",factory:function(){return new pz}},wz={key:"header2",factory:function(){return new hz}},Ez={key:"header3",factory:function(){return new gz}},Dz={key:"header4",factory:function(){return new vz}},Cz={key:"header5",factory:function(){return new yz}};function Sz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function xz(e){return function(t,n,r){var o=Vp(t);return 0===(n=n.filter((function(e){return!!cd.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Az={renderElems:[$M,HM,VM,UM,WM],elemsToHtml:[{type:"header1",elemToHtml:Sz(1)},{type:"header2",elemToHtml:Sz(2)},{type:"header3",elemToHtml:Sz(3)},{type:"header4",elemToHtml:Sz(4)},{type:"header5",elemToHtml:Sz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:xz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:xz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:xz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:xz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:xz(5)}],menus:[mz,bz,wz,Ez,Dz,Cz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=WR(zf.nodes(n,{match:function(e){return zO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&zO.isSelectionAtLineEnd(e,r[1])?kd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Oz=Object.assign,kz=Object.defineProperty,Bz=pj([].concat),Fz=!Oz||ej((function(){if(tj&&1!==Oz({b:1},Oz(kz({},"a",{enumerable:!0,get:function(){kz(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!=Oz({},e)[n]||nL(Oz({},t)).join("")!=r}))?function(e,t){for(var n=Yj(e),r=arguments.length,o=1,i=lI.f,a=uj.f;r>o;)for(var u,s=bj(arguments[o++]),l=i?Bz(nL(s),i(s)):nL(s),c=l.length,f=0;c>f;)u=l[f++],tj&&!rj(a,s,u)||(n[u]=s[u]);return n}:Oz;function Tz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}EI({target:"Object",stat:!0,forced:Object.assign!==Fz},{assign:Fz});var _z={selector:"font",preParseHtml:function(e){var t=Vp(e);if("font"!==IR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Pz=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=zf.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||!!WR(zf.nodes(e,{match:function(t){return"pre"===zO.getNodeType(t)||!!zf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Vp('<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=Vp(r).attr("data-value");"0"===o?zf.removeMark(e,t):zf.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=Vp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Vp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=AP("color.default")),"bgColor"===t&&(a=AP("color.clear"));var u=Vp('\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}(),jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("color.color"),t.iconSvg=bM,t.mark="color",t}return zR(t,e),t}(Pz),Nz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("color.bgColor"),t.iconSvg=wM,t.mark="bgColor",t}return zR(t,e),t}(Pz),Iz=["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)"],Lz={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Tz(i,{color:r}),o&&Tz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!cd.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((jR(t)||"span"!==IR(n=Vp(t)))&&(n=Vp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),NR(n)):t},preParseHtml:[_z],parseStyleHtml:function(e,t,n){var r=Vp(e);if(!cd.isText(t))return t;var o=t,i=LR(r,"color");i&&(o.color=i);var a=LR(r,"background-color");return a||(a=LR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new jz},config:{colors:Iz}},{key:"bgColor",factory:function(){return new Nz},config:{colors:Iz}}]},Rz=/^(?:\w+:)?\/\/(\S+)$/,Mz=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,zz=/^[^\s\.]+\.\S{2,}$/,$z=nI.includes;function Hz(e){return void 0===e&&(e="r"),e+"-"+Rh()}function Vz(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Uz(e,t,n,r){return HR(this,void 0,void 0,(function(){var o,i;return VR(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 Wz(e,t,n){return HR(this,void 0,void 0,(function(){var r;return VR(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 Gz(e){return null==e.selection||!!zO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function qz(e,t){return{type:"link",url:Vz(e),children:t?[{text:t}]:[]}}function Kz(e,t,n){return HR(this,void 0,void 0,(function(){var r,o,i;return VR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),Gz(e)?[2]:[4,Uz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Wz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(rd.isCollapsed(o)?(e.insertText(" "),i=qz(r,t),kd.insertNodes(e,i),e.insertFragment([{text:" "}])):zf.string(e,o)!==t?(e.deleteFragment(),i=qz(r,t),kd.insertNodes(e,i)):(i=qz(r),kd.wrapNodes(e,i,{split:!0}),kd.collapse(e,{edge:"end"}))),[2]}}))}))}EI({target:"Array",proto:!0},{includes:function(e){return $z(this,e,arguments.length>1?arguments[1]:void 0)}}),sR("includes");var Yz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return _g("a",{href:o,target:void 0===i?"_blank":i},t)}},Xz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Vp(e);return 0===(t=t.filter((function(e){return!!cd.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 Zz(){return Hz("w-e-insert-link")}var Jz=function(){function e(){this.title=AP("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=Zz(),this.urlInputId=Zz(),this.buttonId=Zz()}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 Gz(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=WR(c_(AP("link.text"),r),2),u=a[0],s=Vp(a[1]),l=WR(c_(AP("link.url"),o),2),c=l[0],f=Vp(l[1]),d=WR(f_(i,AP("common.ok")),1)[0];if(null==this.$content){var p=Vp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();Kz(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||rd.isCollapsed(t))s.val("");else{var g=zf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function Qz(){return Hz("w-e-update-link")}var e$=function(){function e(){this.title=AP("link.edit"),this.iconSvg=yM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Qz(),this.buttonId=Qz()}return e.prototype.getSelectedLinkElem=function(e){var t=zO.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 zO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=WR(c_(AP("link.url"),t),2),o=r[0],i=Vp(r[1]),a=WR(f_(n,AP("common.ok")),1)[0];if(null==this.$content){var u=Vp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=zO.getSelectedNodeByType(e,"link"),o=r?Wf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){HR(this,void 0,void 0,(function(){var r,o;return VR(this,(function(i){switch(i.label){case 0:return n?[4,Uz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,Wz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:Vz(r)},kd.setNodes(e,o,{match:function(e){return zO.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}(),t$=function(){function e(){this.title=AP("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==zO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||kd.unwrapNodes(e,{match:function(e){return zO.checkNodeType(e,"link")}})},e}(),n$=function(){function e(){this.title=AP("link.view"),this.iconSvg=mM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=zO.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}(),r$={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},o$={renderElems:[Yz],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:[Xz],menus:[{key:"insertLink",factory:function(){return new Jz},config:r$},{key:"editLink",factory:function(){return new e$},config:r$},{key:"unLink",factory:function(){return new t$}},{key:"viewLink",factory:function(){return new n$}}],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(Rz);if(!t)return!1;var n=t[1];return!(!n||!Mz.test(n)&&!zz.test(n))}(t)){if(!Gz(o)){var r=o.selection;if(null!=r){var i=zf.string(o,r);Kz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=WR(e,2),n=t[0],i=t[1];return"link"!==zO.getNodeType(n)?r([n,i]):""===Wf.string(n)?kd.removeNodes(o,{at:i}):r([n,i])},o}},i$=pj(1..valueOf),a$=QP.RangeError,u$=QP.RangeError,s$=QP.String,l$=Math.floor,c$=pj((function(e){var t=XI(Ej(this)),n="",r=KN(e);if(r<0||r==1/0)throw a$("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),f$=pj("".slice),d$=pj(1..toFixed),p$=function(e,t,n){return 0===t?n:t%2==1?p$(e,t-1,n*e):p$(e*e,t/2,n)},h$=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=l$(o/1e7)},g$=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=l$(r/t),r=r%t*1e7},v$=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=s$(e[t]);n=""===n?r:n+c$("0",7-r.length)+r}return n};function y$(e,t){return"w-e-image-container-"+zO.findKey(e,t).id}EI({target:"Number",proto:!0,forced:ej((function(){return"0.000"!==d$(8e-5,3)||"1"!==d$(.9,0)||"1.25"!==d$(1.255,2)||"1000000000000000128"!==d$(0xde0b6b3a7640080,0)}))||!ej((function(){d$({})}))},{toFixed:function(e){var t,n,r,o,i=i$(this),a=KN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw u$("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return s$(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*p$(2,69,1))-69)<0?i*p$(2,-t,1):i/p$(2,t,1),n*=4503599627370496,(t=52-t)>0){for(h$(u,0,n),r=a;r>=7;)h$(u,1e7,0),r-=7;for(h$(u,p$(10,r,1),0),r=t-1;r>=23;)g$(u,1<<23),r-=23;g$(u,1<<r),h$(u,1,1),g$(u,2),l=v$(u)}else h$(u,0,n),h$(u,1<<-t,0),l=v$(u)+c$("0",a);return a>0?s+((o=l.length)<=a?"0."+c$("0",a-o)+l:f$(l,0,o-a)+"."+f$(l,o-a)):s+l}});var m$={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=zO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,D,C,S=_g("img",{style:v,src:o,alt:a,"data-href":s}),x=n.isDisabled();return g&&!x?function(e,t,n,r){var o=Vp("body"),i=y$(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Qh((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:$R($R({},t.style),{width:r+"px",height:i+"px"})};kd.setNodes(e,a,{at:zO.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),_g("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=Vp(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=Vp("#"+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=zO.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,_g("div",{className:"w-e-image-dragger left-top"}),_g("div",{className:"w-e-image-dragger right-top"}),_g("div",{className:"w-e-image-dragger left-bottom"}),_g("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,S,{width:d,height:h}):(y=n,m=e,b=S,D=(w={width:d,height:h}).height,C={},(E=w.width)&&(C.width=E),D&&(C.height=D),_g("div",{id:y$(y,m),style:C,className:"w-e-image-container"},b))}},b$={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Vp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:LR(r,"width"),height:LR(r,"height")},children:[{text:""}]}}};function w$(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),HR(this,void 0,void 0,(function(){var i,a;return VR(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 E$(e,t,n){return HR(this,void 0,void 0,(function(){var r;return VR(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 D$(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),HR(this,void 0,void 0,(function(){var o,i,a;return VR(this,(function(u){switch(u.label){case 0:return[4,w$("insertImage",e,t,n,r)];case 1:return u.sent()?[4,E$("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Vz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),zO.getSelectedNodeByType(e,"image")&&e.move(1),C$(e)||(kd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function C$(e){var t=e.selection;return null==t||!rd.isCollapsed(t)||!!WR(zf.nodes(e,{match:function(t){var n=zO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!zf.isVoid(e,t)},universal:!0}),1)[0]}function S$(){return Hz("w-e-insert-image")}var x$=function(){function e(){this.title=AP("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=S$(),this.altInputId=S$(),this.hrefInputId=S$(),this.buttonId=S$()}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 C$(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=WR(c_(AP("image.src"),r),2),s=u[0],l=Vp(u[1]),c=WR(c_(AP("image.desc"),o),2),f=c[0],d=Vp(c[1]),p=WR(c_(AP("image.link"),i),2),h=p[0],g=Vp(p[1]),v=WR(f_(a,AP("common.ok")),1)[0];if(null==this.$content){var y=Vp("<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)||D$(e,t,n,r))},e}(),A$=function(){function e(){this.title=AP("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==zO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||kd.removeNodes(e,{match:function(e){return zO.checkNodeType(e,"image")}})},e}();function O$(){return Hz("w-e-edit-image")}var k$=function(){function e(){this.title=AP("image.edit"),this.iconSvg=yM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=O$(),this.altInputId=O$(),this.hrefInputId=O$(),this.buttonId=O$()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return zO.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||!rd.isCollapsed(t)||null==zO.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=WR(c_(AP("image.src"),r),2),l=s[0],c=Vp(s[1]),f=WR(c_(AP("image.desc"),o),2),d=f[0],p=Vp(f[1]),h=WR(c_(AP("image.link"),i),2),g=h[0],v=Vp(h[1]),y=WR(f_(a,AP("common.ok")),1)[0];if(null==this.$content){var m=Vp("<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,C=void 0===D?"":D,S=w.href,x=void 0===S?"":S;return c.val(E),p.val(C),v.val(x),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={}),HR(this,void 0,void 0,(function(){var i,a,u,s,l,c;return VR(this,(function(f){switch(f.label){case 0:return[4,w$("editImage",e,t,n,r)];case 1:return f.sent()?[4,E$("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=zO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:$R($R({},void 0===u?{}:u),o)},kd.setNodes(e,s,{match:function(e){return zO.checkNodeType(e,"image")}}),l=zO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),B$=function(){function e(){this.title=AP("image.viewLink"),this.iconSvg=mM,this.tag="button"}return e.prototype.getValue=function(e){var t=zO.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}(),F$=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 zO.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=zO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:$R($R({},void 0===o?{}:o),{width:this.value,height:""})};kd.setNodes(e,i,{match:function(e){return zO.checkNodeType(e,"image")}})}}},e}(),T$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return zR(t,e),t}(F$),_$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return zR(t,e),t}(F$),P$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return zR(t,e),t}(F$),j$={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},N$={renderElems:[m$],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:[b$],menus:[{key:"insertImage",factory:function(){return new x$},config:j$},{key:"deleteImage",factory:function(){return new A$}},{key:"editImage",factory:function(){return new k$},config:j$},{key:"viewImageLink",factory:function(){return new B$}},{key:"imageWidth30",factory:function(){return new T$}},{key:"imageWidth50",factory:function(){return new _$}},{key:"imageWidth100",factory:function(){return new P$}}],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}},I$={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),_g("div",{style:{margin:"5px 0"}},_g("span",{contentEditable:!1,style:{marginRight:"0.5em"}},_g("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=zO.findPath(n,e),o={checked:t.target.checked};kd.setNodes(n,o,{at:r})}}})),_g("span",null,t))}},L$=function(){function e(){this.title=AP("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!!zO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!zO.getSelectedElems(e).some((function(t){if(zf.isVoid(e,t)&&zf.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);kd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),R$={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Vp(e);0===(t=t.filter((function(e){return!!cd.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}}},M$={renderElems:[I$],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=Vp(e).find("li"),n=Vp('<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:[R$],menus:[{key:"todo",factory:function(){return new L$}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&rd.isCollapsed(r)){var o=zO.getSelectedNodeByType(e,"todo");if(o&&0===Wf.string(o).length)return void kd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},z$={type:"blockquote",renderElem:function(e,t,n){return _g("blockquote",null,t)}},$$={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Vp(e);return 0===(t=t.filter((function(e){return!!cd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},H$=function(){function e(){this.title=AP("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!!zO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!WR(zf.nodes(e,{match:function(e){var t=zO.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";kd.setNodes(e,{type:n},{mode:"highest"})}},e}(),V$={key:"blockquote",factory:function(){return new H$}},U$=pj([].slice),W$=WI("slice"),G$=aN("species"),q$=QP.Array,K$=Math.max;EI({target:"Array",proto:!0,forced:!W$},{slice:function(e,t){var n,r,o,i=Dj(this),a=eI(i),u=ZN(e,a),s=ZN(void 0===t?a:t,a);if(CI(i)&&(n=i.constructor,(LI(n)&&(n===q$||CI(n.prototype))||Sj(n)&&null===(n=n[G$]))&&(n=void 0),n===q$||void 0===n))return U$(i,u,s);for(r=new(void 0===n?q$:n)(K$(s-u,0)),o=0;u<s;u++,o++)u in i&&gR(r,o,i[u]);return r.length=o,r}});var Y$={renderElems:[z$],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[$$],menus:[V$],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=WR(zf.nodes(e,{match:function(e){return zO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=zO.findPath(e,a),s=zf.end(e,u);if(Qf.equals(s,o.focus)){var l=Wf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void kd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},X$=function(){function e(){this.title=AP("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||!!WR(zf.nodes(e,{match:function(t){return"pre"===zO.getNodeType(t)||!!zf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Vp('<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=Vp(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=Vp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),Z$={menus:[{key:"emotion",factory:function(){return new X$},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},J$={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Q$={selector:"font",preParseHtml:function(e){var t=Vp(e);if("font"!==IR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",J$[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},eH=pj("".indexOf);EI({target:"String",proto:!0,forced:!nz("includes")},{includes:function(e){return!!~eH(XI(Ej(this)),XI(ez(e)),arguments.length>1?arguments[1]:void 0)}});var tH,nH,rH=function(e){return e&&e.Math==Math&&e},oH=rH("object"==typeof globalThis&&globalThis)||rH("object"==typeof window&&window)||rH("object"==typeof self&&self)||rH("object"==typeof KP&&KP)||function(){return this}()||Function("return this")(),iH=Function.prototype,aH=iH.apply,uH=iH.bind,sH=iH.call,lH="object"==typeof Reflect&&Reflect.apply||(uH?sH.bind(aH):function(){return sH.apply(aH,arguments)}),cH=Function.prototype,fH=cH.bind,dH=cH.call,pH=fH&&fH.bind(dH),hH=fH?function(e){return e&&pH(dH,e)}:function(e){return e&&function(){return dH.apply(e,arguments)}},gH=function(e){return"function"==typeof e},vH=function(e){try{return!!e()}catch(t){return!0}},yH=!vH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mH=Function.prototype.call,bH=mH.bind?mH.bind(mH):function(){return mH.apply(mH,arguments)},wH={}.propertyIsEnumerable,EH=Object.getOwnPropertyDescriptor,DH=EH&&!wH.call({1:2},1)?function(e){var t=EH(this,e);return!!t&&t.enumerable}:wH,CH={f:DH},SH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xH=hH({}.toString),AH=hH("".slice),OH=function(e){return AH(xH(e),8,-1)},kH=oH.Object,BH=hH("".split),FH=vH((function(){return!kH("z").propertyIsEnumerable(0)}))?function(e){return"String"==OH(e)?BH(e,""):kH(e)}:kH,TH=oH.TypeError,_H=function(e){if(null==e)throw TH("Can't call method on "+e);return e},PH=function(e){return FH(_H(e))},jH=function(e){return"object"==typeof e?null!==e:gH(e)},NH={},IH=function(e){return gH(e)?e:void 0},LH=function(e,t){return arguments.length<2?IH(NH[e])||IH(oH[e]):NH[e]&&NH[e][t]||oH[e]&&oH[e][t]},RH=hH({}.isPrototypeOf),MH=LH("navigator","userAgent")||"",zH=oH.process,$H=oH.Deno,HH=zH&&zH.versions||$H&&$H.version,VH=HH&&HH.v8;VH&&(nH=(tH=VH.split("."))[0]>0&&tH[0]<4?1:+(tH[0]+tH[1])),!nH&&MH&&(!(tH=MH.match(/Edge\/(\d+)/))||tH[1]>=74)&&(tH=MH.match(/Chrome\/(\d+)/))&&(nH=+tH[1]);var UH=nH,WH=!!Object.getOwnPropertySymbols&&!vH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&UH&&UH<41})),GH=WH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qH=oH.Object,KH=GH?function(e){return"symbol"==typeof e}:function(e){var t=LH("Symbol");return gH(t)&&RH(t.prototype,qH(e))},YH=oH.String,XH=oH.TypeError,ZH=function(e){if(gH(e))return e;throw XH(function(e){try{return YH(e)}catch(t){return"Object"}}(e)+" is not a function")},JH=oH.TypeError,QH=Object.defineProperty,eV=oH["__core-js_shared__"]||function(e,t){try{QH(oH,e,{value:t,configurable:!0,writable:!0})}catch(kP){oH[e]=t}return t}("__core-js_shared__",{}),tV=YP((function(e){(e.exports=function(e,t){return eV[e]||(eV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nV=oH.Object,rV=function(e){return nV(_H(e))},oV=hH({}.hasOwnProperty),iV=Object.hasOwn||function(e,t){return oV(rV(e),t)},aV=0,uV=Math.random(),sV=hH(1..toString),lV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+sV(++aV+uV,36)},cV=tV("wks"),fV=oH.Symbol,dV=fV&&fV.for,pV=GH?fV:fV&&fV.withoutSetter||lV,hV=function(e){if(!iV(cV,e)||!WH&&"string"!=typeof cV[e]){var t="Symbol."+e;WH&&iV(fV,e)?cV[e]=fV[e]:cV[e]=GH&&dV?dV(t):pV(t)}return cV[e]},gV=oH.TypeError,vV=hV("toPrimitive"),yV=function(e){var t=function(e,t){if(!jH(e)||KH(e))return e;var n,r,o=null==(n=e[vV])?void 0:ZH(n);if(o){if(void 0===t&&(t="default"),r=bH(o,e,t),!jH(r)||KH(r))return r;throw gV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&gH(n=e.toString)&&!jH(r=bH(n,e)))return r;if(gH(n=e.valueOf)&&!jH(r=bH(n,e)))return r;if("string"!==t&&gH(n=e.toString)&&!jH(r=bH(n,e)))return r;throw JH("Can't convert object to primitive value")}(e,t)}(e,"string");return KH(t)?t:t+""},mV=oH.document,bV=jH(mV)&&jH(mV.createElement),wV=function(e){return bV?mV.createElement(e):{}},EV=!yH&&!vH((function(){return 7!=Object.defineProperty(wV("div"),"a",{get:function(){return 7}}).a})),DV=Object.getOwnPropertyDescriptor,CV={f:yH?DV:function(e,t){if(e=PH(e),t=yV(t),EV)try{return DV(e,t)}catch(n){}if(iV(e,t))return SH(!bH(CH.f,e,t),e[t])}},SV=/#|\.prototype\./,xV=function(e,t){var n=OV[AV(e)];return n==BV||n!=kV&&(gH(t)?vH(t):!!t)},AV=xV.normalize=function(e){return String(e).replace(SV,".").toLowerCase()},OV=xV.data={},kV=xV.NATIVE="N",BV=xV.POLYFILL="P",FV=xV,TV=hH(hH.bind),_V=function(e,t){return ZH(e),void 0===t?e:TV?TV(e,t):function(){return e.apply(t,arguments)}},PV=oH.String,jV=oH.TypeError,NV=function(e){if(jH(e))return e;throw jV(PV(e)+" is not an object")},IV=oH.TypeError,LV=Object.defineProperty,RV={f:yH?LV:function(e,t,n){if(NV(e),t=yV(t),NV(n),EV)try{return LV(e,t,n)}catch(r){}if("get"in n||"set"in n)throw IV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},MV=yH?function(e,t,n){return RV.f(e,t,SH(1,n))}:function(e,t,n){return e[t]=n,e},zV=CV.f,$V=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 lH(e,this,arguments)};return t.prototype=e.prototype,t},HV=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?oH:d?oH[c]:(oH[c]||{}).prototype,g=f?NH:NH[c]||MV(NH,c,{})[c],v=g.prototype;for(o in t)n=!FV(f?o:c+(d?".":"#")+o,e.forced)&&h&&iV(h,o),a=g[o],n&&(u=e.noTargetGet?(l=zV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?_V(i,oH):e.wrap&&n?$V(i):p&&gH(i)?hH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&MV(s,"sham",!0),MV(g,o,s),p&&(iV(NH,r=c+"Prototype")||MV(NH,r,{}),MV(NH[r],o,i),e.real&&v&&!v[o]&&MV(v,o,i)))},VV=Array.isArray||function(e){return"Array"==OH(e)},UV=Math.ceil,WV=Math.floor,GV=function(e){var t=+e;return t!=t||0===t?0:(t>0?WV:UV)(t)},qV=Math.min,KV=function(e){return(t=e.length)>0?qV(GV(t),9007199254740991):0;var t},YV=function(e,t,n){var r=yV(t);r in e?RV.f(e,r,SH(0,n)):e[r]=n},XV={};XV[hV("toStringTag")]="z";var ZV="[object z]"===String(XV),JV=hV("toStringTag"),QV=oH.Object,eU="Arguments"==OH(function(){return arguments}()),tU=ZV?OH: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=QV(e),JV))?n:eU?OH(t):"Object"==(r=OH(t))&&gH(t.callee)?"Arguments":r},nU=hH(Function.toString);gH(eV.inspectSource)||(eV.inspectSource=function(e){return nU(e)});var rU=eV.inspectSource,oU=function(){},iU=[],aU=LH("Reflect","construct"),uU=/^\s*(?:class|function)\b/,sU=hH(uU.exec),lU=!uU.exec(oU),cU=function(e){if(!gH(e))return!1;try{return aU(oU,iU,e),!0}catch(t){return!1}},fU=!aU||vH((function(){var e;return cU(cU.call)||!cU(Object)||!cU((function(){e=!0}))||e}))?function(e){if(!gH(e))return!1;switch(tU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return lU||!!sU(uU,rU(e))}:cU,dU=hV("species"),pU=oH.Array,hU=function(e,t){return new(VV(n=e)&&(r=n.constructor,(fU(r)&&(r===pU||VV(r.prototype))||jH(r)&&null===(r=r[dU]))&&(r=void 0)),void 0===r?pU:r)(0===t?0:t);var n,r},gU=hV("species"),vU=hV("isConcatSpreadable"),yU=oH.TypeError,mU=UH>=51||!vH((function(){var e=[];return e[vU]=!1,e.concat()[0]!==e})),bU=UH>=51||!vH((function(){var e=[];return(e.constructor={})[gU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),wU=function(e){if(!jH(e))return!1;var t=e[vU];return void 0!==t?!!t:VV(e)};HV({target:"Array",proto:!0,forced:!mU||!bU},{concat:function(e){var t,n,r,o,i,a=rV(this),u=hU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(wU(i=-1===t?a:arguments[t])){if(s+(o=KV(i))>9007199254740991)throw yU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&YV(u,s,i[n])}else{if(s>=9007199254740991)throw yU("Maximum allowed index exceeded");YV(u,s++,i)}return u.length=s,u}});var EU,DU=oH.String,CU=function(e){if("Symbol"===tU(e))throw TypeError("Cannot convert a Symbol value to a string");return DU(e)},SU=Math.max,xU=Math.min,AU=function(e,t){var n=GV(e);return n<0?SU(n+t,0):xU(n,t)},OU=function(e){return function(t,n,r){var o,i=PH(t),a=KV(i),u=AU(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}},kU={includes:OU(!0),indexOf:OU(!1)},BU={},FU=kU.indexOf,TU=hH([].push),_U=function(e,t){var n,r=PH(e),o=0,i=[];for(n in r)!iV(BU,n)&&iV(r,n)&&TU(i,n);for(;t.length>o;)iV(r,n=t[o++])&&(~FU(i,n)||TU(i,n));return i},PU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jU=Object.keys||function(e){return _U(e,PU)},NU=yH?Object.defineProperties:function(e,t){NV(e);for(var n,r=PH(t),o=jU(t),i=o.length,a=0;i>a;)RV.f(e,n=o[a++],r[n]);return e},IU=LH("document","documentElement"),LU=tV("keys"),RU=function(e){return LU[e]||(LU[e]=lV(e))},MU=RU("IE_PROTO"),zU=function(){},$U=function(e){return"<script>"+e+"<\/script>"},HU=function(e){e.write($U("")),e.close();var t=e.parentWindow.Object;return e=null,t},VU=function(){try{EU=new ActiveXObject("htmlfile")}catch(r){}var e,t;VU="undefined"!=typeof document?document.domain&&EU?HU(EU):((t=wV("iframe")).style.display="none",IU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($U("document.F=Object")),e.close(),e.F):HU(EU);for(var n=PU.length;n--;)delete VU.prototype[PU[n]];return VU()};BU[MU]=!0;var UU,WU,GU,qU=Object.create||function(e,t){var n;return null!==e?(zU.prototype=NV(e),n=new zU,zU.prototype=null,n[MU]=e):n=VU(),void 0===t?n:NU(n,t)},KU=PU.concat("length","prototype"),YU={f:Object.getOwnPropertyNames||function(e){return _U(e,KU)}},XU=oH.Array,ZU=Math.max,JU=YU.f,QU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],eW={f:function(e){return QU&&"Window"==OH(e)?function(e){try{return JU(e)}catch(t){return function(e,t,n){for(var r=KV(e),o=AU(void 0,r),i=AU(r,r),a=XU(ZU(i-o,0)),u=0;o<i;o++,u++)YV(a,u,e[o]);return a.length=u,a}(QU)}}(e):JU(PH(e))}},tW={f:Object.getOwnPropertySymbols},nW=hH([].slice),rW=function(e,t,n,r){r&&r.enumerable?e[t]=n:MV(e,t,n)},oW={f:hV},iW=RV.f,aW=function(e){var t=NH.Symbol||(NH.Symbol={});iV(t,e)||iW(t,e,{value:oW.f(e)})},uW=ZV?{}.toString:function(){return"[object "+tU(this)+"]"},sW=RV.f,lW=hV("toStringTag"),cW=function(e,t,n,r){if(e){var o=n?e:e.prototype;iV(o,lW)||sW(o,lW,{configurable:!0,value:t}),r&&!ZV&&MV(o,"toString",uW)}},fW=oH.WeakMap,dW=gH(fW)&&/native code/.test(rU(fW)),pW=oH.TypeError,hW=oH.WeakMap;if(dW||eV.state){var gW=eV.state||(eV.state=new hW),vW=hH(gW.get),yW=hH(gW.has),mW=hH(gW.set);UU=function(e,t){if(yW(gW,e))throw new pW("Object already initialized");return t.facade=e,mW(gW,e,t),t},WU=function(e){return vW(gW,e)||{}},GU=function(e){return yW(gW,e)}}else{var bW=RU("state");BU[bW]=!0,UU=function(e,t){if(iV(e,bW))throw new pW("Object already initialized");return t.facade=e,MV(e,bW,t),t},WU=function(e){return iV(e,bW)?e[bW]:{}},GU=function(e){return iV(e,bW)}}var wW={set:UU,get:WU,has:GU,enforce:function(e){return GU(e)?WU(e):UU(e,{})},getterFor:function(e){return function(t){var n;if(!jH(t)||(n=WU(t)).type!==e)throw pW("Incompatible receiver, "+e+" required");return n}}},EW=hH([].push),DW=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=rV(s),g=FH(h),v=_V(l,c),y=KV(g),m=0,b=f||hU,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:EW(w,d)}else switch(e){case 4:return!1;case 7:EW(w,d)}return i?-1:r||o?o:w}},CW=[DW(0),DW(1),DW(2),DW(3),DW(4),DW(5),DW(6),DW(7)][0],SW=RU("hidden"),xW=hV("toPrimitive"),AW=wW.set,OW=wW.getterFor("Symbol"),kW=Object.prototype,BW=oH.Symbol,FW=BW&&BW.prototype,TW=oH.TypeError,_W=oH.QObject,PW=LH("JSON","stringify"),jW=CV.f,NW=RV.f,IW=eW.f,LW=CH.f,RW=hH([].push),MW=tV("symbols"),zW=tV("op-symbols"),$W=tV("string-to-symbol-registry"),HW=tV("symbol-to-string-registry"),VW=tV("wks"),UW=!_W||!_W.prototype||!_W.prototype.findChild,WW=yH&&vH((function(){return 7!=qU(NW({},"a",{get:function(){return NW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=jW(kW,t);r&&delete kW[t],NW(e,t,n),r&&e!==kW&&NW(kW,t,r)}:NW,GW=function(e,t){var n=MW[e]=qU(FW);return AW(n,{type:"Symbol",tag:e,description:t}),yH||(n.description=t),n},qW=function(e,t,n){e===kW&&qW(zW,t,n),NV(e);var r=yV(t);return NV(n),iV(MW,r)?(n.enumerable?(iV(e,SW)&&e[SW][r]&&(e[SW][r]=!1),n=qU(n,{enumerable:SH(0,!1)})):(iV(e,SW)||NW(e,SW,SH(1,{})),e[SW][r]=!0),WW(e,r,n)):NW(e,r,n)},KW=function(e,t){NV(e);var n=PH(t),r=jU(n).concat(JW(n));return CW(r,(function(t){yH&&!bH(YW,n,t)||qW(e,t,n[t])})),e},YW=function(e){var t=yV(e),n=bH(LW,this,t);return!(this===kW&&iV(MW,t)&&!iV(zW,t))&&(!(n||!iV(this,t)||!iV(MW,t)||iV(this,SW)&&this[SW][t])||n)},XW=function(e,t){var n=PH(e),r=yV(t);if(n!==kW||!iV(MW,r)||iV(zW,r)){var o=jW(n,r);return!o||!iV(MW,r)||iV(n,SW)&&n[SW][r]||(o.enumerable=!0),o}},ZW=function(e){var t=IW(PH(e)),n=[];return CW(t,(function(e){iV(MW,e)||iV(BU,e)||RW(n,e)})),n},JW=function(e){var t=e===kW,n=IW(t?zW:PH(e)),r=[];return CW(n,(function(e){!iV(MW,e)||t&&!iV(kW,e)||RW(r,MW[e])})),r};if(WH||(FW=(BW=function(){if(RH(FW,this))throw TW("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?CU(arguments[0]):void 0,t=lV(e),n=function(e){this===kW&&bH(n,zW,e),iV(this,SW)&&iV(this[SW],t)&&(this[SW][t]=!1),WW(this,t,SH(1,e))};return yH&&UW&&WW(kW,t,{configurable:!0,set:n}),GW(t,e)}).prototype,rW(FW,"toString",(function(){return OW(this).tag})),rW(BW,"withoutSetter",(function(e){return GW(lV(e),e)})),CH.f=YW,RV.f=qW,CV.f=XW,YU.f=eW.f=ZW,tW.f=JW,oW.f=function(e){return GW(hV(e),e)},yH&&NW(FW,"description",{configurable:!0,get:function(){return OW(this).description}})),HV({global:!0,wrap:!0,forced:!WH,sham:!WH},{Symbol:BW}),CW(jU(VW),(function(e){aW(e)})),HV({target:"Symbol",stat:!0,forced:!WH},{for:function(e){var t=CU(e);if(iV($W,t))return $W[t];var n=BW(t);return $W[t]=n,HW[n]=t,n},keyFor:function(e){if(!KH(e))throw TW(e+" is not a symbol");if(iV(HW,e))return HW[e]},useSetter:function(){UW=!0},useSimple:function(){UW=!1}}),HV({target:"Object",stat:!0,forced:!WH,sham:!yH},{create:function(e,t){return void 0===t?qU(e):KW(qU(e),t)},defineProperty:qW,defineProperties:KW,getOwnPropertyDescriptor:XW}),HV({target:"Object",stat:!0,forced:!WH},{getOwnPropertyNames:ZW,getOwnPropertySymbols:JW}),HV({target:"Object",stat:!0,forced:vH((function(){tW.f(1)}))},{getOwnPropertySymbols:function(e){return tW.f(rV(e))}}),PW){var QW=!WH||vH((function(){var e=BW();return"[null]"!=PW([e])||"{}"!=PW({a:e})||"{}"!=PW(Object(e))}));HV({target:"JSON",stat:!0,forced:QW},{stringify:function(e,t,n){var r=nW(arguments),o=t;if((jH(t)||void 0!==e)&&!KH(e))return VV(t)||(t=function(e,t){if(gH(o)&&(t=bH(o,this,e,t)),!KH(t))return t}),r[1]=t,lH(PW,null,r)}})}if(!FW[xW]){var eG=FW.valueOf;rW(FW,xW,(function(e){return bH(eG,this)}))}cW(BW,"Symbol"),BU[SW]=!0,aW("asyncIterator"),aW("hasInstance"),aW("isConcatSpreadable"),aW("iterator"),aW("match"),aW("matchAll"),aW("replace"),aW("search"),aW("species"),aW("split"),aW("toPrimitive"),aW("toStringTag"),aW("unscopables"),cW(oH.JSON,"JSON",!0);var tG,nG,rG,oG=NH.Symbol,iG={},aG=Function.prototype,uG=yH&&Object.getOwnPropertyDescriptor,sG=iV(aG,"name"),lG={EXISTS:sG,PROPER:sG&&"something"===function(){}.name,CONFIGURABLE:sG&&(!yH||yH&&uG(aG,"name").configurable)},cG=!vH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),fG=RU("IE_PROTO"),dG=oH.Object,pG=dG.prototype,hG=cG?dG.getPrototypeOf:function(e){var t=rV(e);if(iV(t,fG))return t[fG];var n=t.constructor;return gH(n)&&t instanceof n?n.prototype:t instanceof dG?pG:null},gG=hV("iterator"),vG=!1;[].keys&&("next"in(rG=[].keys())?(nG=hG(hG(rG)))!==Object.prototype&&(tG=nG):vG=!0);var yG=null==tG||vH((function(){var e={};return tG[gG].call(e)!==e}));tG=yG?{}:qU(tG),gH(tG[gG])||rW(tG,gG,(function(){return this}));var mG={IteratorPrototype:tG,BUGGY_SAFARI_ITERATORS:vG},bG=mG.IteratorPrototype,wG=function(){return this};oH.String,oH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{hH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var EG=lG.PROPER,DG=mG.BUGGY_SAFARI_ITERATORS,CG=hV("iterator"),SG=function(){return this},xG=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=qU(bG,{next:SH(1,s)}),cW(u,l,!1,!0),iG[l]=wG;var c,f,d,p=function(e){if(e===o&&m)return m;if(!DG&&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[CG]||v["@@iterator"]||o&&v[o],m=!DG&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=hG(b.call(new e)))!==Object.prototype&&c.next&&(cW(c,h,!0,!0),iG[h]=SG),EG&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return bH(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(DG||g||!(d in v))&&rW(v,d,f[d]);else HV({target:t,proto:!0,forced:DG||g},f);return a&&v[CG]!==m&&rW(v,CG,m,{name:o}),iG[t]=m,f},AG=wW.set,OG=wW.getterFor("Array Iterator");xG(Array,"Array",(function(e,t){AG(this,{type:"Array Iterator",target:PH(e),index:0,kind:t})}),(function(){var e=OG(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"),iG.Arguments=iG.Array;var kG=hV("toStringTag");for(var BG 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 FG=oH[BG],TG=FG&&FG.prototype;TG&&tU(TG)!==kG&&MV(TG,kG,BG),iG[BG]=iG.Array}var _G=oG;aW("asyncDispose"),aW("dispose"),aW("matcher"),aW("metadata"),aW("observable"),aW("patternMatch"),aW("replaceAll");var PG=_G,jG=hH("".charAt),NG=hH("".charCodeAt),IG=hH("".slice),LG=function(e){return function(t,n){var r,o,i=CU(_H(t)),a=GV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=NG(i,a))<55296||r>56319||a+1===u||(o=NG(i,a+1))<56320||o>57343?e?jG(i,a):r:e?IG(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),RG=wW.set,MG=wW.getterFor("String Iterator");xG(String,"String",(function(e){RG(this,{type:"String Iterator",string:CU(e),index:0})}),(function(){var e,t=MG(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=LG(n,r),t.index+=e.length,{value:e,done:!1})}));var zG=oW.f("iterator"),$G=YP((function(e){function t(n){return"function"==typeof PG&&"symbol"==typeof zG?(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 PG&&e.constructor===PG&&e!==PG.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})),HG=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}($G),VG=UN.EXISTS,UG=EN.f,WG=Function.prototype,GG=pj(WG.toString),qG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,KG=pj(qG.exec);tj&&!VG&&UG(WG,"name",{configurable:!0,get:function(){try{return KG(qG,GG(this))[1]}catch($l){return""}}});var YG=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=zf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!WR(zf.nodes(e,{match:function(t){return"pre"===zO.getNodeType(t)||!!zf.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}(),XG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("fontSize.title"),t.iconSvg=EM,t.mark="fontSize",t}return zR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:AP("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===HG(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}(YG),ZG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("fontFamily.title"),t.iconSvg=DM,t.mark="fontFamily",t.selectPanelWidth=150,t}return zR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:AP("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===HG(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}(YG),JG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Tz(i,{fontSize:r}),o&&Tz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!cd.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((jR(t)||"span"!==IR(n=Vp(t)))&&(n=Vp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),NR(n)):t},preParseHtml:[Q$],parseStyleHtml:function(e,t,n){var r=Vp(e);if(!cd.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=LR(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=LR(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 XG},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 ZG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},QG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Vp(e),n=LR(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]}},eq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=WR(zf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":WR(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=WR(zf.nodes(e,{match:function(e){var t=zO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),tq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("indent.decrease"),t.iconSvg=CM,t}return zR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){kd.setNodes(e,{indent:null},{match:function(e){return jf.isElement(e)}})},t}(eq),nq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("indent.increase"),t.iconSvg=SM,t}return zR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){kd.setNodes(e,{indent:"2em"},{match:function(e){return jf.isElement(e)},mode:"highest"})},t}(eq),rq={renderStyle:function(e,t){if(!jf.isElement(e))return t;var n=e.indent,r=t;return n&&Tz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!jf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Vp(t);return r.css("text-indent",n),NR(r)},preParseHtml:[QG],parseStyleHtml:function(e,t,n){var r=Vp(e);if(!jf.isElement(t))return t;var o=t,i=LR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new nq}},{key:"delIndent",factory:function(){return new tq}}]},oq=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=WR(zf.nodes(e,{match:function(e){var t=zO.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||!!zO.getSelectedElems(e).some((function(t){if(zf.isVoid(e,t)&&zf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),iq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("justify.left"),t.iconSvg=xM,t}return zR(t,e),t.prototype.exec=function(e,t){kd.setNodes(e,{textAlign:"left"},{match:function(t){return jf.isElement(t)&&!e.isInline(t)}})},t}(oq),aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("justify.right"),t.iconSvg=AM,t}return zR(t,e),t.prototype.exec=function(e,t){kd.setNodes(e,{textAlign:"right"},{match:function(t){return jf.isElement(t)&&!e.isInline(t)}})},t}(oq),uq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("justify.center"),t.iconSvg=OM,t}return zR(t,e),t.prototype.exec=function(e,t){kd.setNodes(e,{textAlign:"center"},{match:function(t){return jf.isElement(t)&&!e.isInline(t)}})},t}(oq),sq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=AP("justify.justify"),t.iconSvg=kM,t}return zR(t,e),t.prototype.exec=function(e,t){kd.setNodes(e,{textAlign:"justify"},{match:function(t){return jf.isElement(t)&&!e.isInline(t)}})},t}(oq),lq={renderStyle:function(e,t){if(!jf.isElement(e))return t;var n=e.textAlign,r=t;return n&&Tz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!jf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Vp(t);return r.css("text-align",n),NR(r)},parseStyleHtml:function(e,t,n){var r=Vp(e);if(!jf.isElement(t))return t;var o=t,i=LR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new iq}},{key:"justifyRight",factory:function(){return new aq}},{key:"justifyCenter",factory:function(){return new uq}},{key:"justifyJustify",factory:function(){return new sq}}]},cq=function(){function e(){this.title=AP("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:AP("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=WR(zf.nodes(e,{match:function(e){var t=zO.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?"":jf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){kd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),fq={renderStyle:function(e,t){if(!jf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Tz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!jf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Vp(t);return r.css("line-height",n),NR(r)},parseStyleHtml:function(e,t,n){var r=Vp(e);if(!jf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=LR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new cq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},dq=function(){function e(){this.title=AP("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}(),pq=function(){function e(){this.title=AP("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}(),hq={menus:[{key:"redo",factory:function(){return new dq}},{key:"undo",factory:function(){return new pq}}]},gq={type:"divider",renderElem:function(e,t,n){return dg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:zO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[dg("hr")])}},vq=function(){function e(){this.title=AP("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||!!zO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=zO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){kd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),yq={renderElems:[gq],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 vq}}],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=WR(e,2),o=t[0],i=t[1];if("divider"!==zO.getNodeType(o))return n([o,i]);zO.isLastNode(r,o)&&kd.insertNodes(r,zO.genEmptyParagraph(),{at:[i[0]+1]})},r}},mq=VI.map;EI({target:"Array",proto:!0,forced:!WI("map")},{map:function(e){return mq(this,e,arguments.length>1?arguments[1]:void 0)}});var bq=pj([].join),wq=bj!=Object,Eq=oM("join",",");EI({target:"Array",proto:!0,forced:wq||!Eq},{join:function(e){return bq(Dj(this),void 0===e?",":e)}});var Dq=function(){function e(){this.title=AP("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=zO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=zO.getParentNode(e,t);return null==n||"pre"!==zO.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=zO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=zO.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=Wf.string(t);kd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));kd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=zf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=UR(i),u=a.next();!u.done;u=a.next()){var s=WR(u.value,1)[0];s&&o.push(Wf.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}kd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};kd.insertNodes(e,l,{mode:"highest"})},e}(),Cq={key:"codeBlock",factory:function(){return new Dq}};EI({target:"String",proto:!0,forced:ZR("anchor")},{anchor:function(e){return XR(this,"a","name",e)}}),IL("match",(function(e,t,n){return[function(t){var n=Ej(this),r=null==t?void 0:Hj(t,e);return r?rj(r,t,n):new RegExp(t)[e](XI(n))},function(e){var r=mN(this),o=XI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return XL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=XL(r,o));){var c=XI(u[0]);s[l]=c,""===c&&(r.lastIndex=$L(o,QN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var Sq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Vp(e);return 0===(t=t.filter((function(e){return"code"===zO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===zO.getNodeType(e)}))}}},xq={menus:[Cq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=zO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Wf.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=WR(e,2),r=t[0],i=t[1],a=zO.getNodeType(r);return"code"===a&&i.length<=1&&kd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(zO.isLastNode(o,r)&&kd.insertNodes(o,zO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==zO.getNodeType(r.children[0])&&(kd.unwrapNodes(o),kd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=zO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");zf.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return _g("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return _g("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=Vp(e);if("code"!==IR(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:Vp(e)[0].textContent||""}]}}},Sq]},Aq=function(){function e(){this.title=AP("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}(),Oq={menus:[{key:"fullScreen",factory:function(){return new Aq}}]},kq=function(){function e(){this.title=AP("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||!!rd.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];kd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(zf.start(e,r))}},e}(),Bq=[MM,Lz,JG,rq,lq,fq,N$,yq,Z$,o$,xq,Y$,Az,qR,M$,hq,Oq,{menus:[{key:"enter",factory:function(){return new kq}}]}];xP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),xP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Fq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Tq(e){var t={exports:{}};return e(t,t.exports),t.exports}var _q,Pq,jq=function(e){return e&&e.Math==Math&&e},Nq=jq("object"==typeof globalThis&&globalThis)||jq("object"==typeof window&&window)||jq("object"==typeof self&&self)||jq("object"==typeof Fq&&Fq)||function(){return this}()||Function("return this")(),Iq=Function.prototype,Lq=Iq.bind,Rq=Iq.call,Mq=Lq&&Lq.bind(Rq),zq=Lq?function(e){return e&&Mq(Rq,e)}:function(e){return e&&function(){return Rq.apply(e,arguments)}},$q=function(e){try{return!!e()}catch(t){return!0}},Hq=zq({}.toString),Vq=zq("".slice),Uq=function(e){return Vq(Hq(e),8,-1)},Wq=Nq.Object,Gq=zq("".split),qq=$q((function(){return!Wq("z").propertyIsEnumerable(0)}))?function(e){return"String"==Uq(e)?Gq(e,""):Wq(e)}:Wq,Kq=Nq.TypeError,Yq=function(e){if(null==e)throw Kq("Can't call method on "+e);return e},Xq=function(e){return qq(Yq(e))},Zq=Object.defineProperty,Jq=function(e,t){try{Zq(Nq,e,{value:t,configurable:!0,writable:!0})}catch(kP){Nq[e]=t}return t},Qq=Nq["__core-js_shared__"]||Jq("__core-js_shared__",{}),eK=Tq((function(e){(e.exports=function(e,t){return Qq[e]||(Qq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),tK=Nq.Object,nK=function(e){return tK(Yq(e))},rK=zq({}.hasOwnProperty),oK=Object.hasOwn||function(e,t){return rK(nK(e),t)},iK=0,aK=Math.random(),uK=zq(1..toString),sK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+uK(++iK+aK,36)},lK=function(e){return"function"==typeof e},cK=function(e){return lK(e)?e:void 0},fK=function(e,t){return arguments.length<2?cK(Nq[e]):Nq[e]&&Nq[e][t]},dK=fK("navigator","userAgent")||"",pK=Nq.process,hK=Nq.Deno,gK=pK&&pK.versions||hK&&hK.version,vK=gK&&gK.v8;vK&&(Pq=(_q=vK.split("."))[0]>0&&_q[0]<4?1:+(_q[0]+_q[1])),!Pq&&dK&&(!(_q=dK.match(/Edge\/(\d+)/))||_q[1]>=74)&&(_q=dK.match(/Chrome\/(\d+)/))&&(Pq=+_q[1]);var yK,mK=Pq,bK=!!Object.getOwnPropertySymbols&&!$q((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&mK&&mK<41})),wK=bK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,EK=eK("wks"),DK=Nq.Symbol,CK=DK&&DK.for,SK=wK?DK:DK&&DK.withoutSetter||sK,xK=function(e){if(!oK(EK,e)||!bK&&"string"!=typeof EK[e]){var t="Symbol."+e;bK&&oK(DK,e)?EK[e]=DK[e]:EK[e]=wK&&CK?CK(t):SK(t)}return EK[e]},AK=function(e){return"object"==typeof e?null!==e:lK(e)},OK=Nq.String,kK=Nq.TypeError,BK=function(e){if(AK(e))return e;throw kK(OK(e)+" is not an object")},FK=!$q((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),TK=Nq.document,_K=AK(TK)&&AK(TK.createElement),PK=function(e){return _K?TK.createElement(e):{}},jK=!FK&&!$q((function(){return 7!=Object.defineProperty(PK("div"),"a",{get:function(){return 7}}).a})),NK=Function.prototype.call,IK=NK.bind?NK.bind(NK):function(){return NK.apply(NK,arguments)},LK=zq({}.isPrototypeOf),RK=Nq.Object,MK=wK?function(e){return"symbol"==typeof e}:function(e){var t=fK("Symbol");return lK(t)&&LK(t.prototype,RK(e))},zK=Nq.String,$K=function(e){try{return zK(e)}catch(t){return"Object"}},HK=Nq.TypeError,VK=function(e){if(lK(e))return e;throw HK($K(e)+" is not a function")},UK=function(e,t){var n=e[t];return null==n?void 0:VK(n)},WK=Nq.TypeError,GK=Nq.TypeError,qK=xK("toPrimitive"),KK=function(e){var t=function(e,t){if(!AK(e)||MK(e))return e;var n,r=UK(e,qK);if(r){if(void 0===t&&(t="default"),n=IK(r,e,t),!AK(n)||MK(n))return n;throw GK("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&lK(n=e.toString)&&!AK(r=IK(n,e)))return r;if(lK(n=e.valueOf)&&!AK(r=IK(n,e)))return r;if("string"!==t&&lK(n=e.toString)&&!AK(r=IK(n,e)))return r;throw WK("Can't convert object to primitive value")}(e,t)}(e,"string");return MK(t)?t:t+""},YK=Nq.TypeError,XK=Object.defineProperty,ZK={f:FK?XK:function(e,t,n){if(BK(e),t=KK(t),BK(n),jK)try{return XK(e,t,n)}catch(r){}if("get"in n||"set"in n)throw YK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},JK=Math.ceil,QK=Math.floor,eY=function(e){var t=+e;return t!=t||0===t?0:(t>0?QK:JK)(t)},tY=Math.max,nY=Math.min,rY=function(e,t){var n=eY(e);return n<0?tY(n+t,0):nY(n,t)},oY=Math.min,iY=function(e){return e>0?oY(eY(e),9007199254740991):0},aY=function(e){return iY(e.length)},uY=function(e){return function(t,n,r){var o,i=Xq(t),a=aY(i),u=rY(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}},sY={includes:uY(!0),indexOf:uY(!1)},lY={},cY=sY.indexOf,fY=zq([].push),dY=function(e,t){var n,r=Xq(e),o=0,i=[];for(n in r)!oK(lY,n)&&oK(r,n)&&fY(i,n);for(;t.length>o;)oK(r,n=t[o++])&&(~cY(i,n)||fY(i,n));return i},pY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hY=Object.keys||function(e){return dY(e,pY)},gY=FK?Object.defineProperties:function(e,t){BK(e);for(var n,r=Xq(t),o=hY(t),i=o.length,a=0;i>a;)ZK.f(e,n=o[a++],r[n]);return e},vY=fK("document","documentElement"),yY=eK("keys"),mY=function(e){return yY[e]||(yY[e]=sK(e))},bY=mY("IE_PROTO"),wY=function(){},EY=function(e){return"<script>"+e+"<\/script>"},DY=function(e){e.write(EY("")),e.close();var t=e.parentWindow.Object;return e=null,t},CY=function(){try{yK=new ActiveXObject("htmlfile")}catch(r){}var e,t;CY="undefined"!=typeof document?document.domain&&yK?DY(yK):((t=PK("iframe")).style.display="none",vY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(EY("document.F=Object")),e.close(),e.F):DY(yK);for(var n=pY.length;n--;)delete CY.prototype[pY[n]];return CY()};lY[bY]=!0;var SY=Object.create||function(e,t){var n;return null!==e?(wY.prototype=BK(e),n=new wY,wY.prototype=null,n[bY]=e):n=CY(),void 0===t?n:gY(n,t)},xY=xK("unscopables"),AY=Array.prototype;null==AY[xY]&&ZK.f(AY,xY,{configurable:!0,value:SY(null)});var OY=function(e){AY[xY][e]=!0},kY={},BY=zq(Function.toString);lK(Qq.inspectSource)||(Qq.inspectSource=function(e){return BY(e)});var FY,TY,_Y,PY=Qq.inspectSource,jY=Nq.WeakMap,NY=lK(jY)&&/native code/.test(PY(jY)),IY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},LY=FK?function(e,t,n){return ZK.f(e,t,IY(1,n))}:function(e,t,n){return e[t]=n,e},RY=Nq.TypeError,MY=Nq.WeakMap;if(NY||Qq.state){var zY=Qq.state||(Qq.state=new MY),$Y=zq(zY.get),HY=zq(zY.has),VY=zq(zY.set);FY=function(e,t){if(HY(zY,e))throw new RY("Object already initialized");return t.facade=e,VY(zY,e,t),t},TY=function(e){return $Y(zY,e)||{}},_Y=function(e){return HY(zY,e)}}else{var UY=mY("state");lY[UY]=!0,FY=function(e,t){if(oK(e,UY))throw new RY("Object already initialized");return t.facade=e,LY(e,UY,t),t},TY=function(e){return oK(e,UY)?e[UY]:{}},_Y=function(e){return oK(e,UY)}}var WY,GY,qY,KY={set:FY,get:TY,has:_Y,enforce:function(e){return _Y(e)?TY(e):FY(e,{})},getterFor:function(e){return function(t){var n;if(!AK(t)||(n=TY(t)).type!==e)throw RY("Incompatible receiver, "+e+" required");return n}}},YY={}.propertyIsEnumerable,XY=Object.getOwnPropertyDescriptor,ZY={f:XY&&!YY.call({1:2},1)?function(e){var t=XY(this,e);return!!t&&t.enumerable}:YY},JY=Object.getOwnPropertyDescriptor,QY={f:FK?JY:function(e,t){if(e=Xq(e),t=KK(t),jK)try{return JY(e,t)}catch(n){}if(oK(e,t))return IY(!IK(ZY.f,e,t),e[t])}},eX=Function.prototype,tX=FK&&Object.getOwnPropertyDescriptor,nX=oK(eX,"name"),rX={EXISTS:nX,PROPER:nX&&"something"===function(){}.name,CONFIGURABLE:nX&&(!FK||FK&&tX(eX,"name").configurable)},oX=Tq((function(e){var t=rX.CONFIGURABLE,n=KY.get,r=KY.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;lK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!oK(i,"name")||t&&i.name!==f)&&LY(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Nq?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:LY(e,n,i)):l?e[n]=i:Jq(n,i)})(Function.prototype,"toString",(function(){return lK(this)&&n(this).source||PY(this)}))})),iX=pY.concat("length","prototype"),aX={f:Object.getOwnPropertyNames||function(e){return dY(e,iX)}},uX={f:Object.getOwnPropertySymbols},sX=zq([].concat),lX=fK("Reflect","ownKeys")||function(e){var t=aX.f(BK(e)),n=uX.f;return n?sX(t,n(e)):t},cX=function(e,t){for(var n=lX(t),r=ZK.f,o=QY.f,i=0;i<n.length;i++){var a=n[i];oK(e,a)||r(e,a,o(t,a))}},fX=/#|\.prototype\./,dX=function(e,t){var n=hX[pX(e)];return n==vX||n!=gX&&(lK(t)?$q(t):!!t)},pX=dX.normalize=function(e){return String(e).replace(fX,".").toLowerCase()},hX=dX.data={},gX=dX.NATIVE="N",vX=dX.POLYFILL="P",yX=dX,mX=QY.f,bX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Nq:l?Nq[u]||Jq(u,{}):(Nq[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=mX(n,r))&&a.value:n[r],!yX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;cX(i,o)}(e.sham||o&&o.sham)&&LY(i,"sham",!0),oX(n,r,i,e)}},wX=!$q((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),EX=mY("IE_PROTO"),DX=Nq.Object,CX=DX.prototype,SX=wX?DX.getPrototypeOf:function(e){var t=nK(e);if(oK(t,EX))return t[EX];var n=t.constructor;return lK(n)&&t instanceof n?n.prototype:t instanceof DX?CX:null},xX=xK("iterator"),AX=!1;[].keys&&("next"in(qY=[].keys())?(GY=SX(SX(qY)))!==Object.prototype&&(WY=GY):AX=!0);var OX=null==WY||$q((function(){var e={};return WY[xX].call(e)!==e}));OX&&(WY={}),lK(WY[xX])||oX(WY,xX,(function(){return this}));var kX={IteratorPrototype:WY,BUGGY_SAFARI_ITERATORS:AX},BX=ZK.f,FX=xK("toStringTag"),TX=function(e,t,n){e&&!oK(e=n?e:e.prototype,FX)&&BX(e,FX,{configurable:!0,value:t})},_X=kX.IteratorPrototype,PX=function(){return this},jX=Nq.String,NX=Nq.TypeError,IX=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=zq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return BK(n),function(e){if("object"==typeof e||lK(e))return e;throw NX("Can't set "+jX(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),LX=rX.PROPER,RX=rX.CONFIGURABLE,MX=kX.IteratorPrototype,zX=kX.BUGGY_SAFARI_ITERATORS,$X=xK("iterator"),HX=function(){return this},VX=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=SY(_X,{next:IY(1,s)}),TX(u,l,!1),kY[l]=PX;var c,f,d,p=function(e){if(e===o&&m)return m;if(!zX&&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[$X]||v["@@iterator"]||o&&v[o],m=!zX&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=SX(b.call(new e)))!==Object.prototype&&c.next&&(SX(c)!==MX&&(IX?IX(c,MX):lK(c[$X])||oX(c,$X,HX)),TX(c,h,!0)),LX&&"values"==o&&y&&"values"!==y.name&&(RX?LY(v,"name","values"):(g=!0,m=function(){return IK(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(zX||g||!(d in v))&&oX(v,d,f[d]);else bX({target:t,proto:!0,forced:zX||g},f);return v[$X]!==m&&oX(v,$X,m,{name:o}),kY[t]=m,f},UX=KY.set,WX=KY.getterFor("Array Iterator"),GX=VX(Array,"Array",(function(e,t){UX(this,{type:"Array Iterator",target:Xq(e),index:0,kind:t})}),(function(){var e=WX(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");kY.Arguments=kY.Array,OY("keys"),OY("values"),OY("entries");var qX={};qX[xK("toStringTag")]="z";var KX="[object z]"===String(qX),YX=xK("toStringTag"),XX=Nq.Object,ZX="Arguments"==Uq(function(){return arguments}()),JX=KX?Uq: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=XX(e),YX))?n:ZX?Uq(t):"Object"==(r=Uq(t))&&lK(t.callee)?"Arguments":r},QX=KX?{}.toString:function(){return"[object "+JX(this)+"]"};KX||oX(Object.prototype,"toString",QX,{unsafe:!0});var eZ=Nq.String,tZ=function(e){if("Symbol"===JX(e))throw TypeError("Cannot convert a Symbol value to a string");return eZ(e)},nZ=zq("".charAt),rZ=zq("".charCodeAt),oZ=zq("".slice),iZ=function(e){return function(t,n){var r,o,i=tZ(Yq(t)),a=eY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=rZ(i,a))<55296||r>56319||a+1===u||(o=rZ(i,a+1))<56320||o>57343?e?nZ(i,a):r:e?oZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},aZ={codeAt:iZ(!1),charAt:iZ(!0)},uZ=aZ.charAt,sZ=KY.set,lZ=KY.getterFor("String Iterator");VX(String,"String",(function(e){sZ(this,{type:"String Iterator",string:tZ(e),index:0})}),(function(){var e,t=lZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=uZ(n,r),t.index+=e.length,{value:e,done:!1})}));var cZ=function(e,t,n){for(var r in t)oX(e,r,t[r],n);return e},fZ=Nq.Array,dZ=Math.max,pZ=aX.f,hZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gZ={f:function(e){return hZ&&"Window"==Uq(e)?function(e){try{return pZ(e)}catch(t){return function(e,t,n){for(var r,o,i,a,u=aY(e),s=rY(void 0,u),l=rY(u,u),c=fZ(dZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=KK(o))in r?ZK.f(r,a,IY(0,i)):r[a]=i;return c.length=f,c}(hZ)}}(e):pZ(Xq(e))}},vZ=$q((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),yZ=Object.isExtensible,mZ=$q((function(){yZ(1)}))||vZ?function(e){return!!AK(e)&&(!vZ||"ArrayBuffer"!=Uq(e))&&(!yZ||yZ(e))}:yZ,bZ=!$q((function(){return Object.isExtensible(Object.preventExtensions({}))})),wZ=Tq((function(e){var t=ZK.f,n=!1,r=sK("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=aX.f,t=zq([].splice),o={};o[r]=1,e(o).length&&(aX.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},bX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gZ.f}))},fastKey:function(e,t){if(!AK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!oK(e,r)){if(!mZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!oK(e,r)){if(!mZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return bZ&&n&&mZ(e)&&!oK(e,r)&&i(e),e}};lY[r]=!0})),EZ=zq(zq.bind),DZ=function(e,t){return VK(e),void 0===t?e:EZ?EZ(e,t):function(){return e.apply(t,arguments)}},CZ=xK("iterator"),SZ=Array.prototype,xZ=xK("iterator"),AZ=function(e){if(null!=e)return UK(e,xZ)||UK(e,"@@iterator")||kY[JX(e)]},OZ=Nq.TypeError,kZ=function(e,t,n){var r,o;BK(e);try{if(!(r=UK(e,"return"))){if("throw"===t)throw n;return n}r=IK(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return BK(r),n},BZ=Nq.TypeError,FZ=function(e,t){this.stopped=e,this.result=t},TZ=FZ.prototype,_Z=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=DZ(t,f),v=function(e){return r&&kZ(r,"normal",e),new FZ(!0,e)},y=function(e){return d?(BK(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=AZ(e)))throw BZ($K(e)+" is not iterable");if(void 0!==(c=o)&&(kY.Array===c||SZ[CZ]===c)){for(i=0,a=aY(e);a>i;i++)if((u=y(e[i]))&&LK(TZ,u))return u;return new FZ(!1)}r=function(e,t){var n=arguments.length<2?AZ(e):t;if(VK(n))return BK(IK(n,e));throw OZ($K(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=IK(s,r)).done;){try{u=y(l.value)}catch(m){kZ(r,"throw",m)}if("object"==typeof u&&u&&LK(TZ,u))return u}return new FZ(!1)},PZ=Nq.TypeError,jZ=function(e,t){if(LK(t,e))return e;throw PZ("Incorrect invocation")},NZ=xK("iterator"),IZ=!1;try{var LZ=0,RZ={next:function(){return{done:!!LZ++}},return:function(){IZ=!0}};RZ[NZ]=function(){return this},Array.from(RZ,(function(){throw 2}))}catch(Zve){}var MZ=Array.isArray||function(e){return"Array"==Uq(e)},zZ=function(){},$Z=[],HZ=fK("Reflect","construct"),VZ=/^\s*(?:class|function)\b/,UZ=zq(VZ.exec),WZ=!VZ.exec(zZ),GZ=function(e){if(!lK(e))return!1;try{return HZ(zZ,$Z,e),!0}catch(t){return!1}},qZ=!HZ||$q((function(){var e;return GZ(GZ.call)||!GZ(Object)||!GZ((function(){e=!0}))||e}))?function(e){if(!lK(e))return!1;switch(JX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return WZ||!!UZ(VZ,PY(e))}:GZ,KZ=xK("species"),YZ=Nq.Array,XZ=function(e,t){return new(MZ(n=e)&&(r=n.constructor,(qZ(r)&&(r===YZ||MZ(r.prototype))||AK(r)&&null===(r=r[KZ]))&&(r=void 0)),void 0===r?YZ:r)(0===t?0:t);var n,r},ZZ=zq([].push),JZ=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=nK(s),g=qq(h),v=DZ(l,c),y=aY(g),m=0,b=f||XZ,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:ZZ(w,d)}else switch(e){case 4:return!1;case 7:ZZ(w,d)}return i?-1:r||o?o:w}},QZ={forEach:JZ(0),map:JZ(1),filter:JZ(2),some:JZ(3),every:JZ(4),find:JZ(5),findIndex:JZ(6),filterReject:JZ(7)},eJ=wZ.getWeakData,tJ=KY.set,nJ=KY.getterFor,rJ=QZ.find,oJ=QZ.findIndex,iJ=zq([].splice),aJ=0,uJ=function(e){return e.frozen||(e.frozen=new sJ)},sJ=function(){this.entries=[]},lJ=function(e,t){return rJ(e.entries,(function(e){return e[0]===t}))};sJ.prototype={get:function(e){var t=lJ(this,e);if(t)return t[1]},has:function(e){return!!lJ(this,e)},set:function(e,t){var n=lJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=oJ(this.entries,(function(t){return t[0]===e}));return~t&&iJ(this.entries,t,1),!!~t}};var cJ,fJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){jZ(e,i),tJ(e,{type:t,id:aJ++,frozen:void 0}),null!=o&&_Z(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=nJ(t),u=function(e,t,n){var r=a(e),o=eJ(BK(t),!0);return!0===o?uJ(r).set(t,n):o[r.id]=n,e};return cZ(i,{delete:function(e){var t=a(this);if(!AK(e))return!1;var n=eJ(e);return!0===n?uJ(t).delete(e):n&&oK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!AK(e))return!1;var n=eJ(e);return!0===n?uJ(t).has(e):n&&oK(n,t.id)}}),cZ(i,n?{get:function(e){var t=a(this);if(AK(e)){var n=eJ(e);return!0===n?uJ(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}},dJ=KY.enforce,pJ=!Nq.ActiveXObject&&"ActiveXObject"in Nq,hJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},gJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Nq[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=zq(u[e]);oX(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!AK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!AK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!AK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(yX(e,!lK(a)||!(o||u.forEach&&!$q((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),wZ.enable();else if(yX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=$q((function(){f.has(1)})),h=function(e,t){if(!IZ)return!1;var n=!1;try{var r={};r[NZ]=function(){return{next:function(){return{done:n=!0}}}},new a(r)}catch(o){}return n}(),g=!o&&$q((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){jZ(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,IX&&lK(c=o.constructor)&&c!==l&&AK(f=c.prototype)&&f!==l.prototype&&IX(n,f),n);return null!=t&&_Z(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,bX({global:!0,forced:s!=a},l),TX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",hJ,fJ);if(NY&&pJ){cJ=fJ.getConstructor(hJ,"WeakMap",!0),wZ.enable();var vJ=gJ.prototype,yJ=zq(vJ.delete),mJ=zq(vJ.has),bJ=zq(vJ.get),wJ=zq(vJ.set);cZ(vJ,{delete:function(e){if(AK(e)&&!mZ(e)){var t=dJ(this);return t.frozen||(t.frozen=new cJ),yJ(this,e)||t.frozen.delete(e)}return yJ(this,e)},has:function(e){if(AK(e)&&!mZ(e)){var t=dJ(this);return t.frozen||(t.frozen=new cJ),mJ(this,e)||t.frozen.has(e)}return mJ(this,e)},get:function(e){if(AK(e)&&!mZ(e)){var t=dJ(this);return t.frozen||(t.frozen=new cJ),mJ(this,e)?bJ(this,e):t.frozen.get(e)}return bJ(this,e)},set:function(e,t){if(AK(e)&&!mZ(e)){var n=dJ(this);n.frozen||(n.frozen=new cJ),mJ(this,e)?wJ(this,e,t):n.frozen.set(e,t)}else wJ(this,e,t);return this}})}var EJ={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},DJ=PK("span").classList,CJ=DJ&&DJ.constructor&&DJ.constructor.prototype,SJ=CJ===Object.prototype?void 0:CJ,xJ=xK("iterator"),AJ=xK("toStringTag"),OJ=GX.values,kJ=function(e,t){if(e){if(e[xJ]!==OJ)try{LY(e,xJ,OJ)}catch(r){e[xJ]=OJ}if(e[AJ]||LY(e,AJ,t),EJ[t])for(var n in GX)if(e[n]!==GX[n])try{LY(e,n,GX[n])}catch(r){e[n]=GX[n]}}};for(var BJ in EJ)kJ(Nq[BJ]&&Nq[BJ].prototype,BJ);kJ(SJ,"DOMTokenList");var FJ=new WeakMap,TJ={type:"list-item",renderElem:function(e,t,n){FJ.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=zO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Yf.previous(c),d=zf.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 _g("div",{style:u},_g("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];cd.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),_g("span",null,t))}},_J=function(e,t){return _J=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])},_J(e,t);
  50. /*! *****************************************************************************
  51. Copyright (c) Microsoft Corporation.
  52. Permission to use, copy, modify, and/or distribute this software for any
  53. purpose with or without fee is hereby granted.
  54. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  55. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  56. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  57. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  58. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  59. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  60. PERFORMANCE OF THIS SOFTWARE.
  61. ***************************************************************************** */};function PJ(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}_J(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function jJ(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 NJ(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 IJ(e){return zf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===zO.findPath(e,t).length}})}var LJ=sY.includes;bX({target:"Array",proto:!0},{includes:function(e){return LJ(this,e,arguments.length>1?arguments[1]:void 0)}}),OY("includes");var RJ,MJ,zJ=function(){var e=BK(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},$J=Nq.RegExp,HJ=$q((function(){var e=$J("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),VJ=HJ||$q((function(){return!$J("a","y").sticky})),UJ={BROKEN_CARET:HJ||$q((function(){var e=$J("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:VJ,UNSUPPORTED_Y:HJ},WJ=Nq.RegExp,GJ=$q((function(){var e=WJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),qJ=Nq.RegExp,KJ=$q((function(){var e=qJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),YJ=KY.get,XJ=eK("native-string-replace",String.prototype.replace),ZJ=RegExp.prototype.exec,JJ=ZJ,QJ=zq("".charAt),eQ=zq("".indexOf),tQ=zq("".replace),nQ=zq("".slice),rQ=(MJ=/b*/g,IK(ZJ,RJ=/a/,"a"),IK(ZJ,MJ,"a"),0!==RJ.lastIndex||0!==MJ.lastIndex),oQ=UJ.BROKEN_CARET,iQ=void 0!==/()??/.exec("")[1];(rQ||iQ||oQ||GJ||KJ)&&(JJ=function(e){var t,n,r,o,i,a,u,s=this,l=YJ(s),c=tZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=IK(JJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=oQ&&s.sticky,h=IK(zJ,s),g=s.source,v=0,y=c;if(p&&(h=tQ(h,"y",""),-1===eQ(h,"g")&&(h+="g"),y=nQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==QJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),iQ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),rQ&&(r=s.lastIndex),o=IK(ZJ,p?n:s,y),p?o?(o.input=nQ(o.input,v),o[0]=nQ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:rQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),iQ&&o&&o.length>1&&IK(XJ,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=SY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var aQ=JJ;bX({target:"RegExp",proto:!0,forced:/./.exec!==aQ},{exec:aQ});var uQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return zO.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||!!zO.getSelectedElems(e).some((function(t){if(zf.isVoid(e,t)&&zf.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)?kd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):kd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),sQ='<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>',lQ='<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>',cQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=AP("listModule.unOrderedList"),t.iconSvg=sQ,t}return PJ(t,e),t}(uQ),fQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=AP("listModule.orderedList"),t.iconSvg=lQ,t}return PJ(t,e),t}(uQ),dQ={key:"bulletedList",factory:function(){return new cQ}},pQ={key:"numberedList",factory:function(){return new fQ}},hQ=[],gQ={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=FJ.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=zO.findPath(t,e);if(0===s[0])return u+1;var l=Yf.previous(s),c=zf.node(t,l);if(!c)return 0;var f=NJ(c,1)[0];if(zO.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+">",hQ.push(i);var s=function(e){var t=FJ.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=zO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Yf.next(s),c=zf.node(t,l);if(!c)return 0;var f=NJ(c,1)[0];if(zO.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+="</"+hQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},vQ=xK("species"),yQ=QZ.filter,mQ=mK>=51||!$q((function(){var e=[];return(e.constructor={})[vQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));bX({target:"Array",proto:!0,forced:!mQ},{filter:function(e){return yQ(this,e,arguments.length>1?arguments[1]:void 0)}});var bQ=Function.prototype,wQ=bQ.apply,EQ=bQ.bind,DQ=bQ.call,CQ="object"==typeof Reflect&&Reflect.apply||(EQ?DQ.bind(wQ):function(){return DQ.apply(wQ,arguments)}),SQ=(xK("species"),RegExp.prototype),xQ=aZ.charAt,AQ=function(e,t,n){return t+(n?xQ(e,t).length:1)},OQ=Math.floor,kQ=zq("".charAt),BQ=zq("".replace),FQ=zq("".slice),TQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_Q=/\$([$&'`]|\d{1,2})/g,PQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=_Q;return void 0!==o&&(o=nK(o),s=TQ),BQ(i,s,(function(i,s){var l;switch(kQ(s,0)){case"$":return"$";case"&":return e;case"`":return FQ(t,0,n);case"'":return FQ(t,a);case"<":l=o[FQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=OQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?kQ(s,1):r[f-1]+kQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},jQ=Nq.TypeError,NQ=function(e,t){var n=e.exec;if(lK(n)){var r=IK(n,e,t);return null!==r&&BK(r),r}if("RegExp"===Uq(e))return IK(aQ,e,t);throw jQ("RegExp#exec called on incompatible receiver")},IQ=xK("replace"),LQ=Math.max,RQ=Math.min,MQ=zq([].concat),zQ=zq([].push),$Q=zq("".indexOf),HQ=zq("".slice),VQ="$0"==="a".replace(/./,"$0"),UQ=!!/./[IQ]&&""===/./[IQ]("a","$0");!function(e,t,n,r){var o,i,a=xK(e),u=!$q((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!$q((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=zq(/./[a]),c=(o=""[e],i=UQ?"$":"$0",[function(e,t){var n=Yq(this),r=null==e?void 0:UK(e,IQ);return r?IK(r,e,n,t):IK(o,tZ(n),e,t)},function(e,t){var n=BK(this),r=tZ(e);if("string"==typeof t&&-1===$Q(t,i)&&-1===$Q(t,"$<")){var a=function(e,t,n,r,o){var i=zq(e),a=t.exec;return a===aQ||a===SQ.exec?u&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(o,n,r,t);if(a.done)return a.value}var s=lK(t);s||(t=tZ(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=NQ(n,r);if(null===p)break;if(zQ(d,p),!c)break;""===tZ(p[0])&&(n.lastIndex=AQ(r,iY(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=tZ((p=d[y])[0]),b=LQ(RQ(eY(p.index),r.length),0),w=[],E=1;E<p.length;E++)zQ(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(s){var C=MQ([m],w,b,r);void 0!==D&&zQ(C,D);var S=tZ(CQ(t,void 0,C))}else S=PQ(m,r,b,w,D,t);b>=v&&(g+=HQ(r,v,b)+S,v=b+m.length)}return g+HQ(r,v)}]);oX(String.prototype,e,c[0]),oX(SQ,a,c[1])}}("replace",0,!!$q((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!VQ||UQ);var WQ=Nq.TypeError,GQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&DZ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&MZ(s))l=aY(s),c=GQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw WQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},qQ=GQ;function KQ(e){return e.length?e[0].tagName.toLowerCase():""}bX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=nK(this),n=aY(t),r=XZ(t,0);return r.length=qQ(r,t,t,n,0,void 0===e?1:eY(e)),r}}),OY("flat"),bX({global:!0},{globalThis:Nq}),ch&&(Vp.fn.append=ch),qp&&(Vp.fn.attr=qp),dh&&(Vp.fn.parent=dh);var YQ={renderElems:[TJ],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(rd.isExpanded(n))t(e);else{var r=zO.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?kd.setNodes(o,{level:a-1}):kd.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(rd.isCollapsed(a)){var u=zO.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 kd.setNodes(o,{level:l+1})}}if(rd.isExpanded(a)){var c=0,f=!1;try{for(var d=jJ(IJ(o)),p=d.next();!p.done;p=d.next()){var h=NJ(p.value,1)[0];"list-item"===zO.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=jJ(IJ(o)),v=g.next();!v.done;v=g.next()){var y=NJ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,kd.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=NJ(e,2),n=t[0],i=t[1],a=zO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||kd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[dQ,pQ],elemsToHtml:[gQ],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=Vp(e);0===(t=t.filter((function(e){return!!cd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===KQ(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=KQ(n);"ul"===r||"ol"===r;)r=KQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},XQ=m((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]",v="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[d]=C[h]=C[g]=C[v]=C[m]=!1;var S="object"==typeof y&&y&&y.Object===Object&&y,x="object"==typeof self&&self&&self.Object===Object&&self,A=S||x||Function("return this")(),O=t&&!t.nodeType&&t,k=O&&e&&!e.nodeType&&e,B=k&&k.exports===O,F=B&&S.process,T=function(){try{return F&&F.binding&&F.binding("util")}catch($l){}}(),_=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=xe(A,"DataView"),te=xe(A,"Map"),ne=xe(A,"Promise"),re=xe(A,"Set"),oe=xe(A,"WeakMap"),ie=xe(Object,"create"),ae=Be(ee),ue=Be(te),se=Be(ne),le=Be(re),ce=Be(oe),fe=G?G.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(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 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.__data__=new ge;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function be(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 we(e){return Le(e)&&be(e)==o}function Ee(e,t,n,r,l){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var y=_e(e),m=_e(t),E=y?i:Oe(e),D=m?i:Oe(t),C=(E=E==o?d:E)==d,S=(D=D==o?d:D)==d,x=E==D;if(x&&Pe(e)){if(!Pe(t))return!1;y=!0,C=!1}if(x&&!C)return p||(p=new ye),y||Re(e)?De(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 Fe(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case v: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 y=l.get(e);if(y)return y==t;r|=2,l.set(e,t);var m=De(d(e),d(t),r,o,i,l);return l.delete(e),m;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=C&&$.call(e,"__wrapped__"),O=S&&$.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new ye),l(k,B,n,r,p)}}return!!x&&(p||(p=new ye),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,Ee,l))}function De(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 ve: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=Ae,r=Me(t=e),_e(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 xe(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ie(e)||(t=e,H&&H in t))&&(je(e)?U:E).test(Be(e));var t}(o)?o:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.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},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:$.call(t,e)},pe.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},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Se(this,e).get(e)},ge.prototype.has=function(e){return Se(this,e).has(e)},ge.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},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=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[]},Oe=be;function ke(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||D.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=c||ne&&Oe(ne.resolve())!=p||re&&Oe(new re)!=g||oe&&Oe(new oe)!=m)&&(Oe=function(e){var t=be(e),n=t==d?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return c;case se:return p;case le:return g;case ce:return m}return t});var Te=we(function(){return arguments}())?we:function(e){return Le(e)&&$.call(e,"callee")&&!K.call(e,"callee")},_e=Array.isArray,Pe=J||function(){return!1};function je(e){if(!Ie(e))return!1;var t=be(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Re=_?function(e){return function(t){return e(t)}}(_):function(e){return Le(e)&&Ne(e.length)&&!!C[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!je(t)?function(e,t){var n=_e(e),r=!n&&Te(e),o=!n&&!r&&Pe(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!$.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ke(l,s))||u.push(l);return u}(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 Ee(e,t)}}));xP("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"}}),xP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var ZQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function JQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var QQ,e0,t0=function(e){return e&&e.Math==Math&&e},n0=t0("object"==typeof globalThis&&globalThis)||t0("object"==typeof window&&window)||t0("object"==typeof self&&self)||t0("object"==typeof ZQ&&ZQ)||function(){return this}()||Function("return this")(),r0=function(e){try{return!!e()}catch(t){return!0}},o0=!r0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),i0=Function.prototype.call,a0=i0.bind?i0.bind(i0):function(){return i0.apply(i0,arguments)},u0={}.propertyIsEnumerable,s0=Object.getOwnPropertyDescriptor,l0={f:s0&&!u0.call({1:2},1)?function(e){var t=s0(this,e);return!!t&&t.enumerable}:u0},c0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f0=Function.prototype,d0=f0.bind,p0=f0.call,h0=d0&&d0.bind(p0),g0=d0?function(e){return e&&h0(p0,e)}:function(e){return e&&function(){return p0.apply(e,arguments)}},v0=g0({}.toString),y0=g0("".slice),m0=function(e){return y0(v0(e),8,-1)},b0=n0.Object,w0=g0("".split),E0=r0((function(){return!b0("z").propertyIsEnumerable(0)}))?function(e){return"String"==m0(e)?w0(e,""):b0(e)}:b0,D0=n0.TypeError,C0=function(e){if(null==e)throw D0("Can't call method on "+e);return e},S0=function(e){return E0(C0(e))},x0=function(e){return"function"==typeof e},A0=function(e){return"object"==typeof e?null!==e:x0(e)},O0=function(e){return x0(e)?e:void 0},k0=function(e,t){return arguments.length<2?O0(n0[e]):n0[e]&&n0[e][t]},B0=g0({}.isPrototypeOf),F0=k0("navigator","userAgent")||"",T0=n0.process,_0=n0.Deno,P0=T0&&T0.versions||_0&&_0.version,j0=P0&&P0.v8;j0&&(e0=(QQ=j0.split("."))[0]>0&&QQ[0]<4?1:+(QQ[0]+QQ[1])),!e0&&F0&&(!(QQ=F0.match(/Edge\/(\d+)/))||QQ[1]>=74)&&(QQ=F0.match(/Chrome\/(\d+)/))&&(e0=+QQ[1]);var N0=e0,I0=!!Object.getOwnPropertySymbols&&!r0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&N0&&N0<41})),L0=I0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R0=n0.Object,M0=L0?function(e){return"symbol"==typeof e}:function(e){var t=k0("Symbol");return x0(t)&&B0(t.prototype,R0(e))},z0=n0.String,$0=function(e){try{return z0(e)}catch(t){return"Object"}},H0=n0.TypeError,V0=function(e){if(x0(e))return e;throw H0($0(e)+" is not a function")},U0=function(e,t){var n=e[t];return null==n?void 0:V0(n)},W0=n0.TypeError,G0=Object.defineProperty,q0=function(e,t){try{G0(n0,e,{value:t,configurable:!0,writable:!0})}catch(kP){n0[e]=t}return t},K0=n0["__core-js_shared__"]||q0("__core-js_shared__",{}),Y0=JQ((function(e){(e.exports=function(e,t){return K0[e]||(K0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X0=n0.Object,Z0=function(e){return X0(C0(e))},J0=g0({}.hasOwnProperty),Q0=Object.hasOwn||function(e,t){return J0(Z0(e),t)},e1=0,t1=Math.random(),n1=g0(1..toString),r1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n1(++e1+t1,36)},o1=Y0("wks"),i1=n0.Symbol,a1=i1&&i1.for,u1=L0?i1:i1&&i1.withoutSetter||r1,s1=function(e){if(!Q0(o1,e)||!I0&&"string"!=typeof o1[e]){var t="Symbol."+e;I0&&Q0(i1,e)?o1[e]=i1[e]:o1[e]=L0&&a1?a1(t):u1(t)}return o1[e]},l1=n0.TypeError,c1=s1("toPrimitive"),f1=function(e){var t=function(e,t){if(!A0(e)||M0(e))return e;var n,r=U0(e,c1);if(r){if(void 0===t&&(t="default"),n=a0(r,e,t),!A0(n)||M0(n))return n;throw l1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&x0(n=e.toString)&&!A0(r=a0(n,e)))return r;if(x0(n=e.valueOf)&&!A0(r=a0(n,e)))return r;if("string"!==t&&x0(n=e.toString)&&!A0(r=a0(n,e)))return r;throw W0("Can't convert object to primitive value")}(e,t)}(e,"string");return M0(t)?t:t+""},d1=n0.document,p1=A0(d1)&&A0(d1.createElement),h1=function(e){return p1?d1.createElement(e):{}},g1=!o0&&!r0((function(){return 7!=Object.defineProperty(h1("div"),"a",{get:function(){return 7}}).a})),v1=Object.getOwnPropertyDescriptor,y1={f:o0?v1:function(e,t){if(e=S0(e),t=f1(t),g1)try{return v1(e,t)}catch(n){}if(Q0(e,t))return c0(!a0(l0.f,e,t),e[t])}},m1=n0.String,b1=n0.TypeError,w1=function(e){if(A0(e))return e;throw b1(m1(e)+" is not an object")},E1=n0.TypeError,D1=Object.defineProperty,C1={f:o0?D1:function(e,t,n){if(w1(e),t=f1(t),w1(n),g1)try{return D1(e,t,n)}catch(r){}if("get"in n||"set"in n)throw E1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},S1=o0?function(e,t,n){return C1.f(e,t,c0(1,n))}:function(e,t,n){return e[t]=n,e},x1=g0(Function.toString);x0(K0.inspectSource)||(K0.inspectSource=function(e){return x1(e)});var A1,O1,k1,B1=K0.inspectSource,F1=n0.WeakMap,T1=x0(F1)&&/native code/.test(B1(F1)),_1=Y0("keys"),P1=function(e){return _1[e]||(_1[e]=r1(e))},j1={},N1=n0.TypeError,I1=n0.WeakMap;if(T1||K0.state){var L1=K0.state||(K0.state=new I1),R1=g0(L1.get),M1=g0(L1.has),z1=g0(L1.set);A1=function(e,t){if(M1(L1,e))throw new N1("Object already initialized");return t.facade=e,z1(L1,e,t),t},O1=function(e){return R1(L1,e)||{}},k1=function(e){return M1(L1,e)}}else{var $1=P1("state");j1[$1]=!0,A1=function(e,t){if(Q0(e,$1))throw new N1("Object already initialized");return t.facade=e,S1(e,$1,t),t},O1=function(e){return Q0(e,$1)?e[$1]:{}},k1=function(e){return Q0(e,$1)}}var H1={set:A1,get:O1,has:k1,enforce:function(e){return k1(e)?O1(e):A1(e,{})},getterFor:function(e){return function(t){var n;if(!A0(t)||(n=O1(t)).type!==e)throw N1("Incompatible receiver, "+e+" required");return n}}},V1=Function.prototype,U1=o0&&Object.getOwnPropertyDescriptor,W1=Q0(V1,"name"),G1={EXISTS:W1,PROPER:W1&&"something"===function(){}.name,CONFIGURABLE:W1&&(!o0||o0&&U1(V1,"name").configurable)},q1=JQ((function(e){var t=G1.CONFIGURABLE,n=H1.get,r=H1.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;x0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Q0(i,"name")||t&&i.name!==f)&&S1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==n0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:S1(e,n,i)):l?e[n]=i:q0(n,i)})(Function.prototype,"toString",(function(){return x0(this)&&n(this).source||B1(this)}))})),K1=Math.ceil,Y1=Math.floor,X1=function(e){var t=+e;return t!=t||0===t?0:(t>0?Y1:K1)(t)},Z1=Math.max,J1=Math.min,Q1=function(e,t){var n=X1(e);return n<0?Z1(n+t,0):J1(n,t)},e2=Math.min,t2=function(e){return e>0?e2(X1(e),9007199254740991):0},n2=function(e){return t2(e.length)},r2=function(e){return function(t,n,r){var o,i=S0(t),a=n2(i),u=Q1(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),o2=g0([].push),i2=function(e,t){var n,r=S0(e),o=0,i=[];for(n in r)!Q0(j1,n)&&Q0(r,n)&&o2(i,n);for(;t.length>o;)Q0(r,n=t[o++])&&(~r2(i,n)||o2(i,n));return i},a2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],u2=a2.concat("length","prototype"),s2={f:Object.getOwnPropertyNames||function(e){return i2(e,u2)}},l2={f:Object.getOwnPropertySymbols},c2=g0([].concat),f2=k0("Reflect","ownKeys")||function(e){var t=s2.f(w1(e)),n=l2.f;return n?c2(t,n(e)):t},d2=function(e,t){for(var n=f2(t),r=C1.f,o=y1.f,i=0;i<n.length;i++){var a=n[i];Q0(e,a)||r(e,a,o(t,a))}},p2=/#|\.prototype\./,h2=function(e,t){var n=v2[g2(e)];return n==m2||n!=y2&&(x0(t)?r0(t):!!t)},g2=h2.normalize=function(e){return String(e).replace(p2,".").toLowerCase()},v2=h2.data={},y2=h2.NATIVE="N",m2=h2.POLYFILL="P",b2=h2,w2=y1.f,E2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?n0:l?n0[u]||q0(u,{}):(n0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=w2(n,r))&&a.value:n[r],!b2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;d2(i,o)}(e.sham||o&&o.sham)&&S1(i,"sham",!0),q1(n,r,i,e)}},D2={};D2[s1("toStringTag")]="z";var C2="[object z]"===String(D2),S2=s1("toStringTag"),x2=n0.Object,A2="Arguments"==m0(function(){return arguments}()),O2=C2?m0: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=x2(e),S2))?n:A2?m0(t):"Object"==(r=m0(t))&&x0(t.callee)?"Arguments":r},k2=n0.String,B2=function(e){if("Symbol"===O2(e))throw TypeError("Cannot convert a Symbol value to a string");return k2(e)},F2=/"/g,T2=g0("".replace);E2({target:"String",proto:!0,forced:r0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=B2(C0(this)),r="<a",(r+=' name="'+T2(B2(t),F2,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var _2,P2=function(){var e=w1(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},j2=n0.RegExp,N2=r0((function(){var e=j2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),I2=N2||r0((function(){return!j2("a","y").sticky})),L2={BROKEN_CARET:N2||r0((function(){var e=j2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:I2,UNSUPPORTED_Y:N2},R2=Object.keys||function(e){return i2(e,a2)},M2=o0?Object.defineProperties:function(e,t){w1(e);for(var n,r=S0(t),o=R2(t),i=o.length,a=0;i>a;)C1.f(e,n=o[a++],r[n]);return e},z2=k0("document","documentElement"),$2=P1("IE_PROTO"),H2=function(){},V2=function(e){return"<script>"+e+"<\/script>"},U2=function(e){e.write(V2("")),e.close();var t=e.parentWindow.Object;return e=null,t},W2=function(){try{_2=new ActiveXObject("htmlfile")}catch(r){}var e,t;W2="undefined"!=typeof document?document.domain&&_2?U2(_2):((t=h1("iframe")).style.display="none",z2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(V2("document.F=Object")),e.close(),e.F):U2(_2);for(var n=a2.length;n--;)delete W2.prototype[a2[n]];return W2()};j1[$2]=!0;var G2,q2,K2=Object.create||function(e,t){var n;return null!==e?(H2.prototype=w1(e),n=new H2,H2.prototype=null,n[$2]=e):n=W2(),void 0===t?n:M2(n,t)},Y2=n0.RegExp,X2=r0((function(){var e=Y2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Z2=n0.RegExp,J2=r0((function(){var e=Z2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Q2=H1.get,e4=Y0("native-string-replace",String.prototype.replace),t4=RegExp.prototype.exec,n4=t4,r4=g0("".charAt),o4=g0("".indexOf),i4=g0("".replace),a4=g0("".slice),u4=(q2=/b*/g,a0(t4,G2=/a/,"a"),a0(t4,q2,"a"),0!==G2.lastIndex||0!==q2.lastIndex),s4=L2.BROKEN_CARET,l4=void 0!==/()??/.exec("")[1];(u4||l4||s4||X2||J2)&&(n4=function(e){var t,n,r,o,i,a,u,s=this,l=Q2(s),c=B2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=a0(n4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=s4&&s.sticky,h=a0(P2,s),g=s.source,v=0,y=c;if(p&&(h=i4(h,"y",""),-1===o4(h,"g")&&(h+="g"),y=a4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==r4(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),l4&&(n=new RegExp("^"+g+"$(?!\\s)",h)),u4&&(r=s.lastIndex),o=a0(t4,p?n:s,y),p?o?(o.input=a4(o.input,v),o[0]=a4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:u4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),l4&&o&&o.length>1&&a0(e4,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=K2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var c4=n4;E2({target:"RegExp",proto:!0,forced:/./.exec!==c4},{exec:c4});var f4=Array.isArray||function(e){return"Array"==m0(e)},d4=function(){},p4=[],h4=k0("Reflect","construct"),g4=/^\s*(?:class|function)\b/,v4=g0(g4.exec),y4=!g4.exec(d4),m4=function(e){if(!x0(e))return!1;try{return h4(d4,p4,e),!0}catch(t){return!1}},b4=!h4||r0((function(){var e;return m4(m4.call)||!m4(Object)||!m4((function(){e=!0}))||e}))?function(e){if(!x0(e))return!1;switch(O2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return y4||!!v4(g4,B1(e))}:m4,w4=function(e,t,n){var r=f1(t);r in e?C1.f(e,r,c0(0,n)):e[r]=n},E4=s1("species"),D4=function(e){return N0>=51||!r0((function(){var t=[];return(t.constructor={})[E4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},C4=g0([].slice),S4=D4("slice"),x4=s1("species"),A4=n0.Array,O4=Math.max;function k4(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function B4(e){var t=e.selection;if(null==t)return!1;var n=k4(zf.nodes(e,{match:function(e){return zO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=k4(n,2)[1],o=zf.start(e,r);if(Qf.equals(t.anchor,o))return!0}return!1}function F4(e,t){var n,r,o=zf.nodes(e,{at:t,match:function(e){return"table"===zO.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}E2({target:"Array",proto:!0,forced:!S4},{slice:function(e,t){var n,r,o,i=S0(this),a=n2(i),u=Q1(e,a),s=Q1(void 0===t?a:t,a);if(f4(i)&&(n=i.constructor,(b4(n)&&(n===A4||f4(n.prototype))||A0(n)&&null===(n=n[x4]))&&(n=void 0),n===A4||void 0===n))return C4(i,u,s);for(r=new(void 0===n?A4:n)(O4(s-u,0)),o=0;u<s;u++,o++)u in i&&w4(r,o,i[u]);return r.length=o,r}});var T4=g0(g0.bind),_4=s1("species"),P4=n0.Array,j4=function(e,t){return new(f4(n=e)&&(r=n.constructor,(b4(r)&&(r===P4||f4(r.prototype))||A0(r)&&null===(r=r[_4]))&&(r=void 0)),void 0===r?P4:r)(0===t?0:t);var n,r},N4=g0([].push),I4=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=Z0(s),g=E0(h),v=function(e,t){return V0(e),void 0===t?e:T4?T4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=n2(g),m=0,b=f||j4,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:N4(w,d)}else switch(e){case 4:return!1;case 7:N4(w,d)}return i?-1:r||o?o:w}},L4={forEach:I4(0),map:I4(1),filter:I4(2),some:I4(3),every:I4(4),find:I4(5),findIndex:I4(6),filterReject:I4(7)},R4=L4.map;E2({target:"Array",proto:!0,forced:!D4("map")},{map:function(e){return R4(this,e,arguments.length>1?arguments[1]:void 0)}});var M4=C2?{}.toString:function(){return"[object "+O2(this)+"]"};function z4(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function $4(e){return z4(e).every((function(e){return!!e.isHeader}))}C2||q1(Object.prototype,"toString",M4,{unsafe:!0});var H4=G1.PROPER,V4=RegExp.prototype,U4=V4.toString,W4=g0(P2),G4=r0((function(){return"/a/b"!=U4.call({source:"a",flags:"b"})})),q4=H4&&"toString"!=U4.name;(G4||q4)&&q1(RegExp.prototype,"toString",(function(){var e=w1(this),t=B2(e.source),n=e.flags;return"/"+t+"/"+B2(void 0===n&&B0(V4,e)&&!("flags"in V4)?W4(e):n)}),{unsafe:!0});var K4=s1("unscopables"),Y4=Array.prototype;null==Y4[K4]&&C1.f(Y4,K4,{configurable:!0,value:K2(null)});var X4=L4.find,Z4=!0;"find"in[]&&Array(1).find((function(){Z4=!1})),E2({target:"Array",proto:!0,forced:Z4},{find:function(e){return X4(this,e,arguments.length>1?arguments[1]:void 0)}}),Y4[K4].find=!0;var J4=Function.prototype,Q4=J4.apply,e6=J4.bind,t6=J4.call,n6="object"==typeof Reflect&&Reflect.apply||(e6?t6.bind(Q4):function(){return t6.apply(Q4,arguments)}),r6=s1("species"),o6=RegExp.prototype,i6=function(e,t,n,r){var o=s1(e),i=!r0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!r0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[r6]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=g0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=g0(e),s=t.exec;return s===c4||s===o6.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));q1(String.prototype,e,s[0]),q1(o6,o,s[1])}r&&S1(o6[o],"sham",!0)},a6=s1("match"),u6=n0.TypeError,s6=s1("species"),l6=g0("".charAt),c6=g0("".charCodeAt),f6=g0("".slice),d6=function(e){return function(t,n){var r,o,i=B2(C0(t)),a=X1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=c6(i,a))<55296||r>56319||a+1===u||(o=c6(i,a+1))<56320||o>57343?e?l6(i,a):r:e?f6(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),p6=function(e,t,n){return t+(n?d6(e,t).length:1)},h6=n0.Array,g6=Math.max,v6=function(e,t,n){for(var r=n2(e),o=Q1(t,r),i=Q1(void 0===n?r:n,r),a=h6(g6(i-o,0)),u=0;o<i;o++,u++)w4(a,u,e[o]);return a.length=u,a},y6=n0.TypeError,m6=function(e,t){var n=e.exec;if(x0(n)){var r=a0(n,e,t);return null!==r&&w1(r),r}if("RegExp"===m0(e))return a0(c4,e,t);throw y6("RegExp#exec called on incompatible receiver")},b6=L2.UNSUPPORTED_Y,w6=Math.min,E6=[].push,D6=g0(/./.exec),C6=g0(E6),S6=g0("".slice);i6("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=B2(C0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!A0(r=e)||!(void 0!==(o=r[a6])?o:"RegExp"==m0(r)))return a0(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=a0(c4,p,i))&&!((s=p.lastIndex)>d&&(C6(c,S6(i,d,u.index)),u.length>1&&u.index<i.length&&n6(E6,c,v6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&D6(p,"")||C6(c,""):C6(c,S6(i,d)),c.length>a?v6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:a0(t,this,e,n)}:t,[function(t,n){var o=C0(this),i=null==t?void 0:U0(t,e);return i?a0(i,t,o,n):a0(r,B2(o),t,n)},function(e,o){var i=w1(this),a=B2(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=w1(i).constructor)||null==(l=w1(c)[s6])?s:function(e){if(b4(e))return e;throw u6($0(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b6?"g":"y"),h=new f(b6?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===m6(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=b6?0:y;var b,w=m6(h,b6?S6(a,y):a);if(null===w||(b=w6(t2(h.lastIndex+(b6?y:0)),a.length))===v)y=p6(a,y,d);else{if(C6(m,S6(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(C6(m,w[E]),m.length===g)return m;y=v=b}}return C6(m,S6(a,v)),m}]}),!!r0((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]})),b6);var x6="\t\n\v\f\r                 \u2028\u2029\ufeff",A6=g0("".replace),O6="["+x6+"]",k6=RegExp("^"+O6+O6+"*"),B6=RegExp(O6+O6+"*$"),F6=function(e){return function(t){var n=B2(C0(t));return 1&e&&(n=A6(n,k6,"")),2&e&&(n=A6(n,B6,"")),n}},T6={start:F6(1),end:F6(2),trim:F6(3)},_6=G1.PROPER,P6=T6.trim;function j6(e){return e.length?e[0].tagName.toLowerCase():""}E2({target:"String",proto:!0,forced:function(e){return r0((function(){return!!x6.trim()||"​…᠎"!=="​…᠎".trim()||_6&&x6.trim.name!==e}))}("trim")},{trim:function(){return P6(this)}}),E2({global:!0},{globalThis:n0}),ch&&(Vp.fn.append=ch),Zp&&(Vp.fn.on=Zp),Eh&&(Vp.fn.focus=Eh),qp&&(Vp.fn.attr=qp),Xp&&(Vp.fn.val=Xp),uh&&(Vp.fn.html=uh),Yp&&(Vp.fn.dataset=Yp),Up&&(Vp.fn.addClass=Up),Wp&&(Vp.fn.removeClass=Wp),gh&&(Vp.fn.children=gh),ih&&(Vp.fn.each=ih),hh&&(Vp.fn.find=hh);var N6=!1,I6=0,L6=0,R6=null,M6=null,z6=Vp("body");function $6(e){N6=!1,M6=null,R6=null,z6.off("mousemove",H6),z6.off("mouseup",$6)}z6.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(),N6=!0;var n=e.clientX;I6=n;var r=t.getBoundingClientRect().width;L6=r,z6.on("mousemove",H6),z6.on("mouseup",$6)}}));var H6=Qh((function(e){if(N6&&null!=M6&&null!=R6){e.preventDefault();var t=e.clientX,n=L6+(t-I6);(n=Math.floor(100*n)/100)<30&&(n=30),kd.setNodes(M6,{width:n.toString()},{at:R6})}}),100),V6={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(rd.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=zO.findPath(e,t),a=zf.start(e,i),u=zf.end(e,i),s=Qf.compare(r,u)<=0&&Qf.compare(r,a)>=0,l=Qf.compare(o,u)<=0&&Qf.compare(o,a)>=0;return!!(s&&l&&Yf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return _g("div",{className:"table-container","data-selected":zO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=zO.findPath(n,e),o=zf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},_g("table",{width:i,contentEditable:r},_g("colgroup",null,z4(e).map((function(e){var t=e.width;return _g("col",{width:void 0===t?"auto":t})}))),_g("tbody",null,t)))}},U6={type:"table-row",renderElem:function(e,t,n){return _g("tr",null,t)}},W6={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=zO.getParentNode(e,t);if(null==n)return!1;var r=zO.getParentNode(e,n);return null!=r&&z4(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?_g(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Qh((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;N6||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",M6=n,R6=zO.findPath(n,e)):N6||(r.style.cursor="auto",M6=null,R6=null))}}),100)}},t):_g("td",{colSpan:a,rowSpan:s},t)}},G6={selector:"table",preParseHtml:function(e){var t=Vp(e);if("table"!==j6(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]}},q6=L4.filter;E2({target:"Array",proto:!0,forced:!D4("filter")},{filter:function(e){return q6(this,e,arguments.length>1?arguments[1]:void 0)}});var K6=Math.floor,Y6=g0("".charAt),X6=g0("".replace),Z6=g0("".slice),J6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Q6=/\$([$&'`]|\d{1,2})/g,e3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Q6;return void 0!==o&&(o=Z0(o),s=J6),X6(i,s,(function(i,s){var l;switch(Y6(s,0)){case"$":return"$";case"&":return e;case"`":return Z6(t,0,n);case"'":return Z6(t,a);case"<":l=o[Z6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=K6(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Y6(s,1):r[f-1]+Y6(s,1):i}l=r[c-1]}return void 0===l?"":l}))},t3=s1("replace"),n3=Math.max,r3=Math.min,o3=g0([].concat),i3=g0([].push),a3=g0("".indexOf),u3=g0("".slice),s3="$0"==="a".replace(/./,"$0"),l3=!!/./[t3]&&""===/./[t3]("a","$0");i6("replace",(function(e,t,n){var r=l3?"$":"$0";return[function(e,n){var r=C0(this),o=null==e?void 0:U0(e,t3);return o?a0(o,e,r,n):a0(t,B2(r),e,n)},function(e,o){var i=w1(this),a=B2(e);if("string"==typeof o&&-1===a3(o,r)&&-1===a3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=x0(o);s||(o=B2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=m6(i,a);if(null===d)break;if(i3(f,d),!l)break;""===B2(d[0])&&(i.lastIndex=p6(a,t2(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=B2((d=f[v])[0]),m=n3(r3(X1(d.index),a.length),0),b=[],w=1;w<d.length;w++)i3(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=o3([y],b,m,a);void 0!==E&&i3(D,E);var C=B2(n6(o,void 0,D))}else C=e3(y,a,m,b,E,o);m>=g&&(h+=u3(a,g,m)+C,g=m+y.length)}return h+u3(a,g)}]}),!!r0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!s3||l3);var c3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Vp(e);0===(t=t.filter((function(e){return!!cd.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"===j6(r),colSpan:o,rowSpan:i,width:a,children:t}}},f3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===zO.getNodeType(e)}))}}},d3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Vp(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===zO.getNodeType(e)}))}}},p3=function(){function e(){this.title=AP("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||!rd.isCollapsed(t)||!!zO.getSelectedElems(e).some((function(t){var n=zO.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=Vp('<div class="w-e-panel-content-table"></div>'),r=Vp("<span>0 &times; 0</span>"),o=Vp("<table></table>"),i=0;i<10;i++){for(var a=Vp("<tr></tr>"),u=0;u<10;u++){var s=Vp("<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=Vp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" &times; "+(a+1),o.children().each((function(e){Vp(e).children().each((function(e){var t=Vp(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=Vp(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)){zO.isSelectedEmptyParagraph(e)&&kd.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);kd.insertNodes(e,i,{mode:"highest"})}},e}(),h3=function(){function e(){this.title=AP("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==zO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||kd.removeNodes(e,{mode:"highest"})},e}(),g3=function(){function e(){this.title=AP("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||!rd.isCollapsed(t)||null==zO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=k4(zf.nodes(e,{match:function(e){return zO.checkNodeType(e,"table-cell")},universal:!0}),1),r=k4(n[0],2),o=r[0],i=r[1],a=zO.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=Yf.parent(i),f=Yf.next(c);kd.insertNodes(e,s,{at:f})}}},e}(),v3=function(){function e(){this.title=AP("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||!rd.isCollapsed(t)||null==zO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=k4(zf.nodes(e,{match:function(e){return zO.checkNodeType(e,"table-row")},universal:!0}),1),r=k4(n[0],2),o=r[0],i=r[1],a=zO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?kd.removeNodes(e,{mode:"highest"}):kd.removeNodes(e,{at:i})}},e}(),y3={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},m3=h1("span").classList,b3=m3&&m3.constructor&&m3.constructor.prototype,w3=b3===Object.prototype?void 0:b3,E3=L4.forEach,D3=function(e,t){var n=[].forEach;return!!n&&r0((function(){n.call(null,(function(){throw 1}),1)}))}(),C3=D3?[].forEach:function(e){return E3(this,e,arguments.length>1?arguments[1]:void 0)},S3=function(e){if(e&&e.forEach!==C3)try{S1(e,"forEach",C3)}catch(t){e.forEach=C3}};for(var x3 in y3)y3[x3]&&S3(n0[x3]&&n0[x3].prototype);S3(w3);var A3=function(){function e(){this.title=AP("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||!rd.isCollapsed(t)||null==zO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=k4(zf.nodes(e,{match:function(e){return zO.checkNodeType(e,"table-cell")},universal:!0}),1),r=k4(n[0],2),o=r[0],i=r[1],a=zO.getParentNode(e,o);if(null!=a){var u=zO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){jf.isElement(t)&&(t.children||[]).forEach((function(t){var r=zO.findPath(e,t);if(r.length===i.length&&XQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&$4(u)&&(o.isHeader=!0),kd.insertNodes(e,o,{at:r})}}))}))}}},e}(),O3=function(){function e(){this.title=AP("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||!rd.isCollapsed(t)||null==zO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=k4(zf.nodes(e,{match:function(e){return zO.checkNodeType(e,"table-cell")},universal:!0}),1),r=k4(n[0],2),o=r[0],i=r[1],a=zO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)kd.removeNodes(e,{mode:"highest"});else{var s=zO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){jf.isElement(t)&&(t.children||[]).forEach((function(t){var n=zO.findPath(e,t);n.length===i.length&&XQ(n.slice(-1),i.slice(-1))&&kd.removeNodes(e,{at:n})}))}))}}},e}(),k3=function(){function e(){this.title=AP("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=zO.getSelectedNodeByType(e,"table");return null!=t&&$4(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!rd.isCollapsed(t)||null==zO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=zO.getSelectedNodeByType(e,"table");null!=r&&z4(r).forEach((function(t){return kd.setNodes(e,{isHeader:n},{at:zO.findPath(e,t)})}))}},e}(),B3=function(){function e(){this.title=AP("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=zO.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||!rd.isCollapsed(t)||null==zO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};kd.setNodes(e,n,{mode:"highest"})}},e}(),F3={renderElems:[V6,U6,W6],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:[G6],parseElemsHtml:[c3,f3,d3],menus:[{key:"insertTable",factory:function(){return new p3}},{key:"deleteTable",factory:function(){return new h3}},{key:"insertTableRow",factory:function(){return new g3}},{key:"deleteTableRow",factory:function(){return new v3}},{key:"insertTableCol",factory:function(){return new A3}},{key:"deleteTableCol",factory:function(){return new O3}},{key:"tableHeader",factory:function(){return new k3}},{key:"tableFullWidth",factory:function(){return new B3}}],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==zO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!B4(s)){var t=s.selection;if(t){var r=zf.before(s,t);if(r){var o=F4(s,r),i=F4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(zO.getSelectedNodeByType(s,"table")){var n=zf.above(e);zO.checkNodeType(n[0],"table-cell")&&kd.select(e,n[1]);var r=zf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=zf.above(e,{at:r[1]}))&&void 0!==t?t:r),kd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(zO.checkNodeType(o[i-1],"table")){var u=zO.genEmptyParagraph();kd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){B4(s)||r(e)},s.normalizeNode=function(e){var t=k4(e,2),n=t[0],r=t[1];if("table"!==zO.getNodeType(n))return o([n,r]);if(zO.isLastNode(s,n)){var i=zO.genEmptyParagraph();kd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=zO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):zf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=zO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Yf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Wf.string(t).length){var o=zO.findPath(s,t),i={anchor:zf.start(s,o),focus:zf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};xP("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"}}),xP("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
  62. /*! *****************************************************************************
  63. Copyright (c) Microsoft Corporation.
  64. Permission to use, copy, modify, and/or distribute this software for any
  65. purpose with or without fee is hereby granted.
  66. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  67. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  68. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  69. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  70. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  71. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  72. PERFORMANCE OF THIS SOFTWARE.
  73. ***************************************************************************** */
  74. var T3=function(){return T3=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},T3.apply(this,arguments)};function _3(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function P3(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 j3(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 N3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function I3(e){var t={exports:{}};return e(t,t.exports),t.exports}var L3,R3,M3=function(e){return e&&e.Math==Math&&e},z3=M3("object"==typeof globalThis&&globalThis)||M3("object"==typeof window&&window)||M3("object"==typeof self&&self)||M3("object"==typeof N3&&N3)||function(){return this}()||Function("return this")(),$3=function(e){try{return!!e()}catch(t){return!0}},H3=!$3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),V3=Function.prototype.call,U3=V3.bind?V3.bind(V3):function(){return V3.apply(V3,arguments)},W3={}.propertyIsEnumerable,G3=Object.getOwnPropertyDescriptor,q3={f:G3&&!W3.call({1:2},1)?function(e){var t=G3(this,e);return!!t&&t.enumerable}:W3},K3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Y3=Function.prototype,X3=Y3.bind,Z3=Y3.call,J3=X3&&X3.bind(Z3),Q3=X3?function(e){return e&&J3(Z3,e)}:function(e){return e&&function(){return Z3.apply(e,arguments)}},e5=Q3({}.toString),t5=Q3("".slice),n5=function(e){return t5(e5(e),8,-1)},r5=z3.Object,o5=Q3("".split),i5=$3((function(){return!r5("z").propertyIsEnumerable(0)}))?function(e){return"String"==n5(e)?o5(e,""):r5(e)}:r5,a5=z3.TypeError,u5=function(e){if(null==e)throw a5("Can't call method on "+e);return e},s5=function(e){return i5(u5(e))},l5=function(e){return"function"==typeof e},c5=function(e){return"object"==typeof e?null!==e:l5(e)},f5=function(e){return l5(e)?e:void 0},d5=function(e,t){return arguments.length<2?f5(z3[e]):z3[e]&&z3[e][t]},p5=Q3({}.isPrototypeOf),h5=d5("navigator","userAgent")||"",g5=z3.process,v5=z3.Deno,y5=g5&&g5.versions||v5&&v5.version,m5=y5&&y5.v8;m5&&(R3=(L3=m5.split("."))[0]>0&&L3[0]<4?1:+(L3[0]+L3[1])),!R3&&h5&&(!(L3=h5.match(/Edge\/(\d+)/))||L3[1]>=74)&&(L3=h5.match(/Chrome\/(\d+)/))&&(R3=+L3[1]);var b5=R3,w5=!!Object.getOwnPropertySymbols&&!$3((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&b5&&b5<41})),E5=w5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,D5=z3.Object,C5=E5?function(e){return"symbol"==typeof e}:function(e){var t=d5("Symbol");return l5(t)&&p5(t.prototype,D5(e))},S5=z3.String,x5=function(e){try{return S5(e)}catch(t){return"Object"}},A5=z3.TypeError,O5=function(e){if(l5(e))return e;throw A5(x5(e)+" is not a function")},k5=function(e,t){var n=e[t];return null==n?void 0:O5(n)},B5=z3.TypeError,F5=Object.defineProperty,T5=function(e,t){try{F5(z3,e,{value:t,configurable:!0,writable:!0})}catch(kP){z3[e]=t}return t},_5=z3["__core-js_shared__"]||T5("__core-js_shared__",{}),P5=I3((function(e){(e.exports=function(e,t){return _5[e]||(_5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),j5=z3.Object,N5=function(e){return j5(u5(e))},I5=Q3({}.hasOwnProperty),L5=Object.hasOwn||function(e,t){return I5(N5(e),t)},R5=0,M5=Math.random(),z5=Q3(1..toString),$5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+z5(++R5+M5,36)},H5=P5("wks"),V5=z3.Symbol,U5=V5&&V5.for,W5=E5?V5:V5&&V5.withoutSetter||$5,G5=function(e){if(!L5(H5,e)||!w5&&"string"!=typeof H5[e]){var t="Symbol."+e;w5&&L5(V5,e)?H5[e]=V5[e]:H5[e]=E5&&U5?U5(t):W5(t)}return H5[e]},q5=z3.TypeError,K5=G5("toPrimitive"),Y5=function(e){var t=function(e,t){if(!c5(e)||C5(e))return e;var n,r=k5(e,K5);if(r){if(void 0===t&&(t="default"),n=U3(r,e,t),!c5(n)||C5(n))return n;throw q5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&l5(n=e.toString)&&!c5(r=U3(n,e)))return r;if(l5(n=e.valueOf)&&!c5(r=U3(n,e)))return r;if("string"!==t&&l5(n=e.toString)&&!c5(r=U3(n,e)))return r;throw B5("Can't convert object to primitive value")}(e,t)}(e,"string");return C5(t)?t:t+""},X5=z3.document,Z5=c5(X5)&&c5(X5.createElement),J5=function(e){return Z5?X5.createElement(e):{}},Q5=!H3&&!$3((function(){return 7!=Object.defineProperty(J5("div"),"a",{get:function(){return 7}}).a})),e8=Object.getOwnPropertyDescriptor,t8={f:H3?e8:function(e,t){if(e=s5(e),t=Y5(t),Q5)try{return e8(e,t)}catch(n){}if(L5(e,t))return K3(!U3(q3.f,e,t),e[t])}},n8=z3.String,r8=z3.TypeError,o8=function(e){if(c5(e))return e;throw r8(n8(e)+" is not an object")},i8=z3.TypeError,a8=Object.defineProperty,u8={f:H3?a8:function(e,t,n){if(o8(e),t=Y5(t),o8(n),Q5)try{return a8(e,t,n)}catch(r){}if("get"in n||"set"in n)throw i8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},s8=H3?function(e,t,n){return u8.f(e,t,K3(1,n))}:function(e,t,n){return e[t]=n,e},l8=Q3(Function.toString);l5(_5.inspectSource)||(_5.inspectSource=function(e){return l8(e)});var c8,f8,d8,p8=_5.inspectSource,h8=z3.WeakMap,g8=l5(h8)&&/native code/.test(p8(h8)),v8=P5("keys"),y8=function(e){return v8[e]||(v8[e]=$5(e))},m8={},b8=z3.TypeError,w8=z3.WeakMap;if(g8||_5.state){var E8=_5.state||(_5.state=new w8),D8=Q3(E8.get),C8=Q3(E8.has),S8=Q3(E8.set);c8=function(e,t){if(C8(E8,e))throw new b8("Object already initialized");return t.facade=e,S8(E8,e,t),t},f8=function(e){return D8(E8,e)||{}},d8=function(e){return C8(E8,e)}}else{var x8=y8("state");m8[x8]=!0,c8=function(e,t){if(L5(e,x8))throw new b8("Object already initialized");return t.facade=e,s8(e,x8,t),t},f8=function(e){return L5(e,x8)?e[x8]:{}},d8=function(e){return L5(e,x8)}}var A8={set:c8,get:f8,has:d8,enforce:function(e){return d8(e)?f8(e):c8(e,{})},getterFor:function(e){return function(t){var n;if(!c5(t)||(n=f8(t)).type!==e)throw b8("Incompatible receiver, "+e+" required");return n}}},O8=Function.prototype,k8=H3&&Object.getOwnPropertyDescriptor,B8=L5(O8,"name"),F8={EXISTS:B8,PROPER:B8&&"something"===function(){}.name,CONFIGURABLE:B8&&(!H3||H3&&k8(O8,"name").configurable)},T8=I3((function(e){var t=F8.CONFIGURABLE,n=A8.get,r=A8.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;l5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!L5(i,"name")||t&&i.name!==f)&&s8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==z3?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:s8(e,n,i)):l?e[n]=i:T5(n,i)})(Function.prototype,"toString",(function(){return l5(this)&&n(this).source||p8(this)}))})),_8=Math.ceil,P8=Math.floor,j8=function(e){var t=+e;return t!=t||0===t?0:(t>0?P8:_8)(t)},N8=Math.max,I8=Math.min,L8=function(e,t){var n=j8(e);return n<0?N8(n+t,0):I8(n,t)},R8=Math.min,M8=function(e){return e>0?R8(j8(e),9007199254740991):0},z8=function(e){return M8(e.length)},$8=function(e){return function(t,n,r){var o,i=s5(t),a=z8(i),u=L8(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}},H8={includes:$8(!0),indexOf:$8(!1)},V8=H8.indexOf,U8=Q3([].push),W8=function(e,t){var n,r=s5(e),o=0,i=[];for(n in r)!L5(m8,n)&&L5(r,n)&&U8(i,n);for(;t.length>o;)L5(r,n=t[o++])&&(~V8(i,n)||U8(i,n));return i},G8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],q8=G8.concat("length","prototype"),K8={f:Object.getOwnPropertyNames||function(e){return W8(e,q8)}},Y8={f:Object.getOwnPropertySymbols},X8=Q3([].concat),Z8=d5("Reflect","ownKeys")||function(e){var t=K8.f(o8(e)),n=Y8.f;return n?X8(t,n(e)):t},J8=function(e,t){for(var n=Z8(t),r=u8.f,o=t8.f,i=0;i<n.length;i++){var a=n[i];L5(e,a)||r(e,a,o(t,a))}},Q8=/#|\.prototype\./,e7=function(e,t){var n=n7[t7(e)];return n==o7||n!=r7&&(l5(t)?$3(t):!!t)},t7=e7.normalize=function(e){return String(e).replace(Q8,".").toLowerCase()},n7=e7.data={},r7=e7.NATIVE="N",o7=e7.POLYFILL="P",i7=e7,a7=t8.f,u7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?z3:l?z3[u]||T5(u,{}):(z3[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=a7(n,r))&&a.value:n[r],!i7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;J8(i,o)}(e.sham||o&&o.sham)&&s8(i,"sham",!0),T8(n,r,i,e)}},s7={};s7[G5("toStringTag")]="z";var l7="[object z]"===String(s7),c7=G5("toStringTag"),f7=z3.Object,d7="Arguments"==n5(function(){return arguments}()),p7=l7?n5: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=f7(e),c7))?n:d7?n5(t):"Object"==(r=n5(t))&&l5(t.callee)?"Arguments":r},h7=z3.String,g7=function(e){if("Symbol"===p7(e))throw TypeError("Cannot convert a Symbol value to a string");return h7(e)},v7="\t\n\v\f\r                 \u2028\u2029\ufeff",y7=Q3("".replace),m7="["+v7+"]",b7=RegExp("^"+m7+m7+"*"),w7=RegExp(m7+m7+"*$"),E7=function(e){return function(t){var n=g7(u5(t));return 1&e&&(n=y7(n,b7,"")),2&e&&(n=y7(n,w7,"")),n}},D7={start:E7(1),end:E7(2),trim:E7(3)},C7=F8.PROPER,S7=D7.trim;function x7(e){return e.length?e[0].tagName.toLowerCase():""}function A7(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Vp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}u7({target:"String",proto:!0,forced:$3((function(){return!!v7.trim()||"​…᠎"!=="​…᠎".trim()||C7&&"trim"!==v7.trim.name}))},{trim:function(){return S7(this)}}),u7({global:!0},{globalThis:z3}),ch&&(Vp.fn.append=ch),Zp&&(Vp.fn.on=Zp),Eh&&(Vp.fn.focus=Eh),qp&&(Vp.fn.attr=qp),Xp&&(Vp.fn.val=Xp),uh&&(Vp.fn.html=uh),dh&&(Vp.fn.parent=dh),Gp&&(Vp.fn.hasClass=Gp),yh&&(Vp.fn.empty=yh);var O7,k7={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=zO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=_g("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:A7(a,c,d)});else{var h=_g("video",{poster:s,controls:!0},_g("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=_g("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return dg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},B7={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+=A7(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},F7=Object.keys||function(e){return W8(e,G8)},T7=H3?Object.defineProperties:function(e,t){o8(e);for(var n,r=s5(t),o=F7(t),i=o.length,a=0;i>a;)u8.f(e,n=o[a++],r[n]);return e},_7=d5("document","documentElement"),P7=y8("IE_PROTO"),j7=function(){},N7=function(e){return"<script>"+e+"<\/script>"},I7=function(e){e.write(N7("")),e.close();var t=e.parentWindow.Object;return e=null,t},L7=function(){try{O7=new ActiveXObject("htmlfile")}catch(r){}var e,t;L7="undefined"!=typeof document?document.domain&&O7?I7(O7):((t=J5("iframe")).style.display="none",_7.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(N7("document.F=Object")),e.close(),e.F):I7(O7);for(var n=G8.length;n--;)delete L7.prototype[G8[n]];return L7()};m8[P7]=!0;var R7=Object.create||function(e,t){var n;return null!==e?(j7.prototype=o8(e),n=new j7,j7.prototype=null,n[P7]=e):n=L7(),void 0===t?n:T7(n,t)},M7=G5("unscopables"),z7=Array.prototype;null==z7[M7]&&u8.f(z7,M7,{configurable:!0,value:R7(null)});var $7=function(e){z7[M7][e]=!0},H7=H8.includes;u7({target:"Array",proto:!0},{includes:function(e){return H7(this,e,arguments.length>1?arguments[1]:void 0)}}),$7("includes");var V7={selector:"iframe,video,p",preParseHtml:function(e){var t=Vp(e),n=t;if("p"===x7(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Vp(o))}}var a=x7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Vp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},U7=Q3(Q3.bind),W7=function(e,t){return O5(e),void 0===t?e:U7?U7(e,t):function(){return e.apply(t,arguments)}},G7=Array.isArray||function(e){return"Array"==n5(e)},q7=function(){},K7=[],Y7=d5("Reflect","construct"),X7=/^\s*(?:class|function)\b/,Z7=Q3(X7.exec),J7=!X7.exec(q7),Q7=function(e){if(!l5(e))return!1;try{return Y7(q7,K7,e),!0}catch(t){return!1}},e9=!Y7||$3((function(){var e;return Q7(Q7.call)||!Q7(Object)||!Q7((function(){e=!0}))||e}))?function(e){if(!l5(e))return!1;switch(p7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return J7||!!Z7(X7,p8(e))}:Q7,t9=G5("species"),n9=z3.Array,r9=function(e,t){return new(G7(n=e)&&(r=n.constructor,(e9(r)&&(r===n9||G7(r.prototype))||c5(r)&&null===(r=r[t9]))&&(r=void 0)),void 0===r?n9:r)(0===t?0:t);var n,r},o9=Q3([].push),i9=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=N5(s),g=i5(h),v=W7(l,c),y=z8(g),m=0,b=f||r9,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:o9(w,d)}else switch(e){case 4:return!1;case 7:o9(w,d)}return i?-1:r||o?o:w}},a9={forEach:i9(0),map:i9(1),filter:i9(2),some:i9(3),every:i9(4),find:i9(5),findIndex:i9(6),filterReject:i9(7)},u9=a9.find,s9=!0;"find"in[]&&Array(1).find((function(){s9=!1})),u7({target:"Array",proto:!0,forced:s9},{find:function(e){return u9(this,e,arguments.length>1?arguments[1]:void 0)}}),$7("find");var l9=l7?{}.toString:function(){return"[object "+p7(this)+"]"};function c9(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:""}]}}l7||T8(Object.prototype,"toString",l9,{unsafe:!0});var f9,d9,p9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Vp(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",c9(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",c9(o,i=l.attr("poster")||"",a,u)}},h9=function(){var e=o8(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},g9=z3.RegExp,v9=$3((function(){var e=g9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),y9=v9||$3((function(){return!g9("a","y").sticky})),m9={BROKEN_CARET:v9||$3((function(){var e=g9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:y9,UNSUPPORTED_Y:v9},b9=z3.RegExp,w9=$3((function(){var e=b9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),E9=z3.RegExp,D9=$3((function(){var e=E9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),C9=A8.get,S9=P5("native-string-replace",String.prototype.replace),x9=RegExp.prototype.exec,A9=x9,O9=Q3("".charAt),k9=Q3("".indexOf),B9=Q3("".replace),F9=Q3("".slice),T9=(d9=/b*/g,U3(x9,f9=/a/,"a"),U3(x9,d9,"a"),0!==f9.lastIndex||0!==d9.lastIndex),_9=m9.BROKEN_CARET,P9=void 0!==/()??/.exec("")[1];(T9||P9||_9||w9||D9)&&(A9=function(e){var t,n,r,o,i,a,u,s=this,l=C9(s),c=g7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=U3(A9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=_9&&s.sticky,h=U3(h9,s),g=s.source,v=0,y=c;if(p&&(h=B9(h,"y",""),-1===k9(h,"g")&&(h+="g"),y=F9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==O9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),P9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),T9&&(r=s.lastIndex),o=U3(x9,p?n:s,y),p?o?(o.input=F9(o.input,v),o[0]=F9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:T9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),P9&&o&&o.length>1&&U3(S9,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=R7(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var j9=A9;u7({target:"RegExp",proto:!0,forced:/./.exec!==j9},{exec:j9});var N9=Function.prototype,I9=N9.apply,L9=N9.bind,R9=N9.call,M9="object"==typeof Reflect&&Reflect.apply||(L9?R9.bind(I9):function(){return R9.apply(I9,arguments)}),z9=(G5("species"),RegExp.prototype),$9=Q3("".charAt),H9=Q3("".charCodeAt),V9=Q3("".slice),U9=function(e){return function(t,n){var r,o,i=g7(u5(t)),a=j8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=H9(i,a))<55296||r>56319||a+1===u||(o=H9(i,a+1))<56320||o>57343?e?$9(i,a):r:e?V9(i,a,a+2):o-56320+(r-55296<<10)+65536}},W9={codeAt:U9(!1),charAt:U9(!0)},G9=W9.charAt,q9=function(e,t,n){return t+(n?G9(e,t).length:1)},K9=Math.floor,Y9=Q3("".charAt),X9=Q3("".replace),Z9=Q3("".slice),J9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Q9=/\$([$&'`]|\d{1,2})/g,eee=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Q9;return void 0!==o&&(o=N5(o),s=J9),X9(i,s,(function(i,s){var l;switch(Y9(s,0)){case"$":return"$";case"&":return e;case"`":return Z9(t,0,n);case"'":return Z9(t,a);case"<":l=o[Z9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=K9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Y9(s,1):r[f-1]+Y9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},tee=z3.TypeError,nee=function(e,t){var n=e.exec;if(l5(n)){var r=U3(n,e,t);return null!==r&&o8(r),r}if("RegExp"===n5(e))return U3(j9,e,t);throw tee("RegExp#exec called on incompatible receiver")},ree=G5("replace"),oee=Math.max,iee=Math.min,aee=Q3([].concat),uee=Q3([].push),see=Q3("".indexOf),lee=Q3("".slice),cee="$0"==="a".replace(/./,"$0"),fee=!!/./[ree]&&""===/./[ree]("a","$0");function dee(e){return void 0===e&&(e="r"),e+"-"+Rh()}!function(e,t,n,r){var o,i,a=G5(e),u=!$3((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!$3((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=Q3(/./[a]),c=(o=""[e],i=fee?"$":"$0",[function(e,t){var n=u5(this),r=null==e?void 0:k5(e,ree);return r?U3(r,e,n,t):U3(o,g7(n),e,t)},function(e,t){var n=o8(this),r=g7(e);if("string"==typeof t&&-1===see(t,i)&&-1===see(t,"$<")){var a=function(e,t,n,r,o){var i=Q3(e),a=t.exec;return a===j9||a===z9.exec?u&&!o?{done:!0,value:l(t,n,r)}:{done:!0,value:i(n,t,r)}:{done:!1}}(o,n,r,t);if(a.done)return a.value}var s=l5(t);s||(t=g7(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=nee(n,r);if(null===p)break;if(uee(d,p),!c)break;""===g7(p[0])&&(n.lastIndex=q9(r,M8(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=g7((p=d[y])[0]),b=oee(iee(j8(p.index),r.length),0),w=[],E=1;E<p.length;E++)uee(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(s){var C=aee([m],w,b,r);void 0!==D&&uee(C,D);var S=g7(M9(t,void 0,C))}else S=eee(m,r,b,w,D,t);b>=v&&(g+=lee(r,v,b)+S,v=b+m.length)}return g+lee(r,v)}]);T8(String.prototype,e,c[0]),T8(z9,a,c[1])}}("replace",0,!!$3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!cee||fee);var pee=z3.Promise,hee=function(e,t,n){for(var r in t)T8(e,r,t[r],n);return e},gee=z3.String,vee=z3.TypeError,yee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Q3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return o8(n),function(e){if("object"==typeof e||l5(e))return e;throw vee("Can't set "+gee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),mee=u8.f,bee=G5("toStringTag"),wee=function(e,t,n){e&&!L5(e=n?e:e.prototype,bee)&&mee(e,bee,{configurable:!0,value:t})},Eee=G5("species"),Dee=z3.TypeError,Cee=function(e,t){if(p5(t,e))return e;throw Dee("Incorrect invocation")},See={},xee=G5("iterator"),Aee=Array.prototype,Oee=G5("iterator"),kee=function(e){if(null!=e)return k5(e,Oee)||k5(e,"@@iterator")||See[p7(e)]},Bee=z3.TypeError,Fee=function(e,t,n){var r,o;o8(e);try{if(!(r=k5(e,"return"))){if("throw"===t)throw n;return n}r=U3(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return o8(r),n},Tee=z3.TypeError,_ee=function(e,t){this.stopped=e,this.result=t},Pee=_ee.prototype,jee=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=W7(t,f),v=function(e){return r&&Fee(r,"normal",e),new _ee(!0,e)},y=function(e){return d?(o8(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=kee(e)))throw Tee(x5(e)+" is not iterable");if(void 0!==(c=o)&&(See.Array===c||Aee[xee]===c)){for(i=0,a=z8(e);a>i;i++)if((u=y(e[i]))&&p5(Pee,u))return u;return new _ee(!1)}r=function(e,t){var n=arguments.length<2?kee(e):t;if(O5(n))return o8(U3(n,e));throw Bee(x5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=U3(s,r)).done;){try{u=y(l.value)}catch(m){Fee(r,"throw",m)}if("object"==typeof u&&u&&p5(Pee,u))return u}return new _ee(!1)},Nee=G5("iterator"),Iee=!1;try{var Lee=0,Ree={next:function(){return{done:!!Lee++}},return:function(){Iee=!0}};Ree[Nee]=function(){return this},Array.from(Ree,(function(){throw 2}))}catch(Zve){}var Mee,zee,$ee,Hee,Vee=function(e,t){if(!t&&!Iee)return!1;var n=!1;try{var r={};r[Nee]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Uee=z3.TypeError,Wee=G5("species"),Gee=Q3([].slice),qee=/(?:ipad|iphone|ipod).*applewebkit/i.test(h5),Kee="process"==n5(z3.process),Yee=z3.setImmediate,Xee=z3.clearImmediate,Zee=z3.process,Jee=z3.Dispatch,Qee=z3.Function,ete=z3.MessageChannel,tte=z3.String,nte=0,rte={};try{Mee=z3.location}catch(Zve){}var ote=function(e){if(L5(rte,e)){var t=rte[e];delete rte[e],t()}},ite=function(e){return function(){ote(e)}},ate=function(e){ote(e.data)},ute=function(e){z3.postMessage(tte(e),Mee.protocol+"//"+Mee.host)};Yee&&Xee||(Yee=function(e){var t=Gee(arguments,1);return rte[++nte]=function(){M9(l5(e)?e:Qee(e),void 0,t)},zee(nte),nte},Xee=function(e){delete rte[e]},Kee?zee=function(e){Zee.nextTick(ite(e))}:Jee&&Jee.now?zee=function(e){Jee.now(ite(e))}:ete&&!qee?(Hee=($ee=new ete).port2,$ee.port1.onmessage=ate,zee=W7(Hee.postMessage,Hee)):z3.addEventListener&&l5(z3.postMessage)&&!z3.importScripts&&Mee&&"file:"!==Mee.protocol&&!$3(ute)?(zee=ute,z3.addEventListener("message",ate,!1)):zee="onreadystatechange"in J5("script")?function(e){_7.appendChild(J5("script")).onreadystatechange=function(){_7.removeChild(this),ote(e)}}:function(e){setTimeout(ite(e),0)});var ste,lte,cte,fte,dte,pte,hte,gte,vte={set:Yee,clear:Xee},yte=/ipad|iphone|ipod/i.test(h5)&&void 0!==z3.Pebble,mte=/web0s(?!.*chrome)/i.test(h5),bte=t8.f,wte=vte.set,Ete=z3.MutationObserver||z3.WebKitMutationObserver,Dte=z3.document,Cte=z3.process,Ste=z3.Promise,xte=bte(z3,"queueMicrotask"),Ate=xte&&xte.value;Ate||(ste=function(){var e,t;for(Kee&&(e=Cte.domain)&&e.exit();lte;){t=lte.fn,lte=lte.next;try{t()}catch(n){throw lte?fte():cte=void 0,n}}cte=void 0,e&&e.enter()},qee||Kee||mte||!Ete||!Dte?!yte&&Ste&&Ste.resolve?((hte=Ste.resolve(void 0)).constructor=Ste,gte=W7(hte.then,hte),fte=function(){gte(ste)}):Kee?fte=function(){Cte.nextTick(ste)}:(wte=W7(wte,z3),fte=function(){wte(ste)}):(dte=!0,pte=Dte.createTextNode(""),new Ete(ste).observe(pte,{characterData:!0}),fte=function(){pte.data=dte=!dte}));var Ote,kte,Bte,Fte,Tte=Ate||function(e){var t={fn:e,next:void 0};cte&&(cte.next=t),lte||(lte=t,fte()),cte=t},_te=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=O5(t),this.reject=O5(n)},Pte={f:function(e){return new _te(e)}},jte=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Nte="object"==typeof window,Ite=vte.set,Lte=G5("species"),Rte="Promise",Mte=A8.getterFor(Rte),zte=A8.set,$te=A8.getterFor(Rte),Hte=pee&&pee.prototype,Vte=pee,Ute=Hte,Wte=z3.TypeError,Gte=z3.document,qte=z3.process,Kte=Pte.f,Yte=Kte,Xte=!!(Gte&&Gte.createEvent&&z3.dispatchEvent),Zte=l5(z3.PromiseRejectionEvent),Jte=!1,Qte=i7(Rte,(function(){var e=p8(Vte),t=e!==String(Vte);if(!t&&66===b5)return!0;if(b5>=51&&/native code/.test(e))return!1;var n=new Vte((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Lte]=r,!(Jte=n.then((function(){}))instanceof r)||!t&&Nte&&!Zte})),ene=Qte||!Vee((function(e){Vte.all(e).catch((function(){}))})),tne=function(e){var t;return!(!c5(e)||!l5(t=e.then))&&t},nne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Tte((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&&ane(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Wte("Promise-chain cycle")):(u=tne(a))?U3(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&one(e)}))}},rne=function(e,t,n){var r,o;Xte?((r=Gte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),z3.dispatchEvent(r)):r={promise:t,reason:n},!Zte&&(o=z3["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=z3.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},one=function(e){U3(Ite,z3,(function(){var t,n=e.facade,r=e.value;if(ine(e)&&(t=jte((function(){Kee?qte.emit("unhandledRejection",r,n):rne("unhandledrejection",n,r)})),e.rejection=Kee||ine(e)?2:1,t.error))throw t.value}))},ine=function(e){return 1!==e.rejection&&!e.parent},ane=function(e){U3(Ite,z3,(function(){var t=e.facade;Kee?qte.emit("rejectionHandled",t):rne("rejectionhandled",t,e.value)}))},une=function(e,t,n){return function(r){e(t,r,n)}},sne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,nne(e,!0))},lne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Wte("Promise can't be resolved itself");var r=tne(t);r?Tte((function(){var n={done:!1};try{U3(r,t,une(lne,n,e),une(sne,n,e))}catch(o){sne(n,o,e)}})):(e.value=t,e.state=1,nne(e,!1))}catch(o){sne({done:!1},o,e)}}};if(Qte&&(Ute=(Vte=function(e){Cee(this,Ute),O5(e),U3(Ote,this);var t=Mte(this);try{e(une(lne,t),une(sne,t))}catch(n){sne(t,n)}}).prototype,(Ote=function(e){zte(this,{type:Rte,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=hee(Ute,{then:function(e,t){var n,r,o,i=$te(this),a=i.reactions,u=Kte((n=Vte,void 0===(o=o8(this).constructor)||null==(r=o8(o)[Wee])?n:function(e){if(e9(e))return e;throw Uee(x5(e)+" is not a constructor")}(r)));return u.ok=!l5(e)||e,u.fail=l5(t)&&t,u.domain=Kee?qte.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&nne(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),kte=function(){var e=new Ote,t=Mte(e);this.promise=e,this.resolve=une(lne,t),this.reject=une(sne,t)},Pte.f=Kte=function(e){return e===Vte||e===Bte?new kte(e):Yte(e)},l5(pee)&&Hte!==Object.prototype)){Fte=Hte.then,Jte||(T8(Hte,"then",(function(e,t){var n=this;return new Vte((function(e,t){U3(Fte,n,e,t)})).then(e,t)}),{unsafe:!0}),T8(Hte,"catch",Ute.catch,{unsafe:!0}));try{delete Hte.constructor}catch(Zve){}yee&&yee(Hte,Ute)}function cne(e,t,n){return void 0===n&&(n=""),_3(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return P3(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(){kd.insertNodes(e,l)})),o(l),[2]}}))}))}function fne(){return dee("w-e-insert-video")}u7({global:!0,wrap:!0,forced:Qte},{Promise:Vte}),wee(Vte,Rte,!1),function(e){var t=d5("Promise"),n=u8.f;H3&&t&&!t[Eee]&&n(t,Eee,{configurable:!0,get:function(){return this}})}(),Bte=d5(Rte),u7({target:Rte,stat:!0,forced:Qte},{reject:function(e){var t=Kte(this);return U3(t.reject,void 0,e),t.promise}}),u7({target:Rte,stat:!0,forced:Qte},{resolve:function(e){return function(e,t){if(o8(e),c5(t)&&t.constructor===e)return t;var n=Pte.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),u7({target:Rte,stat:!0,forced:ene},{all:function(e){var t=this,n=Kte(t),r=n.resolve,o=n.reject,i=jte((function(){var n=O5(t.resolve),i=[],a=0,u=1;jee(e,(function(e){var s=a++,l=!1;u++,U3(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=Kte(t),r=n.reject,o=jte((function(){var o=O5(t.resolve);jee(e,(function(e){U3(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var dne=function(){function e(){this.title=AP("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=fne(),this.posterInputId=fne(),this.buttonId=fne()}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||!rd.isCollapsed(t)||!!zO.getSelectedElems(e).some((function(t){var n=zO.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=j3(c_(AP("videoModule.videoSrc"),r,AP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=j3(c_(AP("videoModule.videoPoster"),o,AP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Vp(s),p=Vp(f),h=j3(f_(i,AP("videoModule.ok")),1)[0];if(null==this.$content){var g=Vp("<div></div>");g.on("click","#"+i,(function(n){return _3(t,void 0,void 0,(function(){var t,i;return P3(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,cne(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}(),pne=Q3([].join),hne=i5!=Object,gne=function(e,t){var n=[].join;return!!n&&$3((function(){n.call(null,",",1)}))}();u7({target:"Array",proto:!0,forced:hne||!gne},{join:function(e){return pne(s5(this),void 0===e?",":e)}});var vne,yne,mne,bne=!$3((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),wne=y8("IE_PROTO"),Ene=z3.Object,Dne=Ene.prototype,Cne=bne?Ene.getPrototypeOf:function(e){var t=N5(e);if(L5(t,wne))return t[wne];var n=t.constructor;return l5(n)&&t instanceof n?n.prototype:t instanceof Ene?Dne:null},Sne=G5("iterator"),xne=!1;[].keys&&("next"in(mne=[].keys())?(yne=Cne(Cne(mne)))!==Object.prototype&&(vne=yne):xne=!0);var Ane=null==vne||$3((function(){var e={};return vne[Sne].call(e)!==e}));Ane&&(vne={}),l5(vne[Sne])||T8(vne,Sne,(function(){return this}));var One={IteratorPrototype:vne,BUGGY_SAFARI_ITERATORS:xne},kne=One.IteratorPrototype,Bne=function(){return this},Fne=F8.PROPER,Tne=F8.CONFIGURABLE,_ne=One.IteratorPrototype,Pne=One.BUGGY_SAFARI_ITERATORS,jne=G5("iterator"),Nne=function(){return this},Ine=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=R7(kne,{next:K3(1,s)}),wee(u,l,!1),See[l]=Bne;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Pne&&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[jne]||v["@@iterator"]||o&&v[o],m=!Pne&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Cne(b.call(new e)))!==Object.prototype&&c.next&&(Cne(c)!==_ne&&(yee?yee(c,_ne):l5(c[jne])||T8(c,jne,Nne)),wee(c,h,!0)),Fne&&"values"==o&&y&&"values"!==y.name&&(Tne?s8(v,"name","values"):(g=!0,m=function(){return U3(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Pne||g||!(d in v))&&T8(v,d,f[d]);else u7({target:t,proto:!0,forced:Pne||g},f);return v[jne]!==m&&T8(v,jne,m,{name:o}),See[t]=m,f},Lne=A8.set,Rne=A8.getterFor("Array Iterator"),Mne=Ine(Array,"Array",(function(e,t){Lne(this,{type:"Array Iterator",target:s5(e),index:0,kind:t})}),(function(){var e=Rne(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");See.Arguments=See.Array,$7("keys"),$7("values"),$7("entries");var zne=W9.charAt,$ne=A8.set,Hne=A8.getterFor("String Iterator");Ine(String,"String",(function(e){$ne(this,{type:"String Iterator",string:g7(e),index:0})}),(function(){var e,t=Hne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=zne(n,r),t.index+=e.length,{value:e,done:!1})}));var Vne=function(e,t,n){var r=Y5(t);r in e?u8.f(e,r,K3(0,n)):e[r]=n},Une=z3.Array,Wne=Math.max,Gne=K8.f,qne="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kne={f:function(e){return qne&&"Window"==n5(e)?function(e){try{return Gne(e)}catch(t){return function(e,t,n){for(var r=z8(e),o=L8(void 0,r),i=L8(r,r),a=Une(Wne(i-o,0)),u=0;o<i;o++,u++)Vne(a,u,e[o]);return a.length=u,a}(qne)}}(e):Gne(s5(e))}},Yne=$3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Xne=Object.isExtensible,Zne=$3((function(){Xne(1)}))||Yne?function(e){return!!c5(e)&&(!Yne||"ArrayBuffer"!=n5(e))&&(!Xne||Xne(e))}:Xne,Jne=!$3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Qne=I3((function(e){var t=u8.f,n=!1,r=$5("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=K8.f,t=Q3([].splice),o={};o[r]=1,e(o).length&&(K8.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},u7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kne.f}))},fastKey:function(e,t){if(!c5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!L5(e,r)){if(!Zne(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!L5(e,r)){if(!Zne(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Jne&&n&&Zne(e)&&!L5(e,r)&&i(e),e}};m8[r]=!0})),ere=Qne.getWeakData,tre=A8.set,nre=A8.getterFor,rre=a9.find,ore=a9.findIndex,ire=Q3([].splice),are=0,ure=function(e){return e.frozen||(e.frozen=new sre)},sre=function(){this.entries=[]},lre=function(e,t){return rre(e.entries,(function(e){return e[0]===t}))};sre.prototype={get:function(e){var t=lre(this,e);if(t)return t[1]},has:function(e){return!!lre(this,e)},set:function(e,t){var n=lre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=ore(this.entries,(function(t){return t[0]===e}));return~t&&ire(this.entries,t,1),!!~t}};var cre,fre={getConstructor:function(e,t,n,r){var o=e((function(e,o){Cee(e,i),tre(e,{type:t,id:are++,frozen:void 0}),null!=o&&jee(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=nre(t),u=function(e,t,n){var r=a(e),o=ere(o8(t),!0);return!0===o?ure(r).set(t,n):o[r.id]=n,e};return hee(i,{delete:function(e){var t=a(this);if(!c5(e))return!1;var n=ere(e);return!0===n?ure(t).delete(e):n&&L5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!c5(e))return!1;var n=ere(e);return!0===n?ure(t).has(e):n&&L5(n,t.id)}}),hee(i,n?{get:function(e){var t=a(this);if(c5(e)){var n=ere(e);return!0===n?ure(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}},dre=A8.enforce,pre=!z3.ActiveXObject&&"ActiveXObject"in z3,hre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},gre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=z3[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Q3(u[e]);T8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!c5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!c5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!c5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(i7(e,!l5(a)||!(o||u.forEach&&!$3((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Qne.enable();else if(i7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=$3((function(){f.has(1)})),h=Vee((function(e){new a(e)})),g=!o&&$3((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Cee(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,yee&&l5(c=o.constructor)&&c!==l&&c5(f=c.prototype)&&f!==l.prototype&&yee(n,f),n);return null!=t&&jee(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,u7({global:!0,forced:s!=a},l),wee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",hre,fre);if(g8&&pre){cre=fre.getConstructor(hre,"WeakMap",!0),Qne.enable();var vre=gre.prototype,yre=Q3(vre.delete),mre=Q3(vre.has),bre=Q3(vre.get),wre=Q3(vre.set);hee(vre,{delete:function(e){if(c5(e)&&!Zne(e)){var t=dre(this);return t.frozen||(t.frozen=new cre),yre(this,e)||t.frozen.delete(e)}return yre(this,e)},has:function(e){if(c5(e)&&!Zne(e)){var t=dre(this);return t.frozen||(t.frozen=new cre),mre(this,e)||t.frozen.has(e)}return mre(this,e)},get:function(e){if(c5(e)&&!Zne(e)){var t=dre(this);return t.frozen||(t.frozen=new cre),mre(this,e)?bre(this,e):t.frozen.get(e)}return bre(this,e)},set:function(e,t){if(c5(e)&&!Zne(e)){var n=dre(this);n.frozen||(n.frozen=new cre),mre(this,e)?wre(this,e,t):n.frozen.set(e,t)}else wre(this,e,t);return this}})}var Ere={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},Dre=J5("span").classList,Cre=Dre&&Dre.constructor&&Dre.constructor.prototype,Sre=Cre===Object.prototype?void 0:Cre,xre=G5("iterator"),Are=G5("toStringTag"),Ore=Mne.values,kre=function(e,t){if(e){if(e[xre]!==Ore)try{s8(e,xre,Ore)}catch(r){e[xre]=Ore}if(e[Are]||s8(e,Are,t),Ere[t])for(var n in Mne)if(e[n]!==Mne[n])try{s8(e,n,Mne[n])}catch(r){e[n]=Mne[n]}}};for(var Bre in Ere)kre(z3[Bre]&&z3[Bre].prototype,Bre);kre(Sre,"DOMTokenList");var Fre=F8.EXISTS,Tre=u8.f,_re=Function.prototype,Pre=Q3(_re.toString),jre=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Nre=Q3(jre.exec);H3&&!Fre&&Tre(_re,"name",{configurable:!0,get:function(){try{return Nre(jre,Pre(this))[1]}catch($l){return""}}});var Ire=G5("species"),Lre=b5>=51||!$3((function(){var e=[];return(e.constructor={})[Ire]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Rre=G5("species"),Mre=z3.Array,zre=Math.max;function $re(e){return e.getMenuConfig("uploadVideo")}u7({target:"Array",proto:!0,forced:!Lre},{slice:function(e,t){var n,r,o,i=s5(this),a=z8(i),u=L8(e,a),s=L8(void 0===t?a:t,a);if(G7(i)&&(n=i.constructor,(e9(n)&&(n===Mre||G7(n.prototype))||c5(n)&&null===(n=n[Rre]))&&(n=void 0),n===Mre||void 0===n))return Gee(i,u,s);for(r=new(void 0===n?Mre:n)(zre(s-u,0)),o=0;u<s;u++,o++)u in i&&Vne(r,o,i[u]);return r.length=o,r}});var Hre=new WeakMap;function Vre(e,t){return _3(this,void 0,void 0,(function(){var n,r,o,i;return P3(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Hre.get(e);if(null!=t)return t;var n=$re(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=j_(T3(T3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return cne(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;cne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Hre.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 Ure=function(){function e(){this.title=AP("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 cne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Vp("body"),s=Vp('<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;_3(this,void 0,void 0,(function(){var o,i,a,u,s,l;return P3(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=$re(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 cne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Vre(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||!rd.isCollapsed(t)||!!zO.getSelectedElems(e).some((function(t){var n=zO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Wre=F8.PROPER,Gre=RegExp.prototype,qre=Gre.toString,Kre=Q3(h9),Yre=$3((function(){return"/a/b"!=qre.call({source:"a",flags:"b"})})),Xre=Wre&&"toString"!=qre.name;function Zre(){return dee("w-e-insert-video")}(Yre||Xre)&&T8(RegExp.prototype,"toString",(function(){var e=o8(this),t=g7(e.source),n=e.flags;return"/"+t+"/"+g7(void 0===n&&p5(Gre,e)&&!("flags"in Gre)?Kre(e):n)}),{unsafe:!0});var Jre=function(){function e(){this.title=AP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Zre(),this.heightInputId=Zre(),this.buttonId=Zre()}return e.prototype.getSelectedVideoNode=function(e){return zO.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=j3(c_(AP("videoModule.width"),n,"auto"),2),a=i[0],u=Vp(i[1]),s=j3(c_(AP("videoModule.height"),r,"auto"),2),l=s[0],c=Vp(s[1]),f=j3(f_(o,AP("videoModule.ok")),1)[0];if(null==this.$content){var d=Vp("<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(),kd.setNodes(e,{width:s,height:l},{match:function(e){return zO.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}(),Qre={renderElems:[k7],elemsToHtml:[B7],preParseHtml:[V7],parseElemsHtml:[p9],menus:[{key:"insertVideo",factory:function(){return new dne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Ure},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 Jre}}],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=j3(e,2),o=t[0],i=t[1];return"video"===zO.getNodeType(o)&&zO.isLastNode(r,o)&&kd.insertNodes(r,zO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};xP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),xP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var eoe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function toe(e){var t={exports:{}};return e(t,t.exports),t.exports}var noe,roe,ooe=function(e){return e&&e.Math==Math&&e},ioe=ooe("object"==typeof globalThis&&globalThis)||ooe("object"==typeof window&&window)||ooe("object"==typeof self&&self)||ooe("object"==typeof eoe&&eoe)||function(){return this}()||Function("return this")(),aoe=function(e){try{return!!e()}catch(t){return!0}},uoe=!aoe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),soe=Function.prototype.call,loe=soe.bind?soe.bind(soe):function(){return soe.apply(soe,arguments)},coe={}.propertyIsEnumerable,foe=Object.getOwnPropertyDescriptor,doe={f:foe&&!coe.call({1:2},1)?function(e){var t=foe(this,e);return!!t&&t.enumerable}:coe},poe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hoe=Function.prototype,goe=hoe.bind,voe=hoe.call,yoe=goe&&goe.bind(voe),moe=goe?function(e){return e&&yoe(voe,e)}:function(e){return e&&function(){return voe.apply(e,arguments)}},boe=moe({}.toString),woe=moe("".slice),Eoe=function(e){return woe(boe(e),8,-1)},Doe=ioe.Object,Coe=moe("".split),Soe=aoe((function(){return!Doe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Eoe(e)?Coe(e,""):Doe(e)}:Doe,xoe=ioe.TypeError,Aoe=function(e){if(null==e)throw xoe("Can't call method on "+e);return e},Ooe=function(e){return Soe(Aoe(e))},koe=function(e){return"function"==typeof e},Boe=function(e){return"object"==typeof e?null!==e:koe(e)},Foe=function(e){return koe(e)?e:void 0},Toe=function(e,t){return arguments.length<2?Foe(ioe[e]):ioe[e]&&ioe[e][t]},_oe=moe({}.isPrototypeOf),Poe=Toe("navigator","userAgent")||"",joe=ioe.process,Noe=ioe.Deno,Ioe=joe&&joe.versions||Noe&&Noe.version,Loe=Ioe&&Ioe.v8;Loe&&(roe=(noe=Loe.split("."))[0]>0&&noe[0]<4?1:+(noe[0]+noe[1])),!roe&&Poe&&(!(noe=Poe.match(/Edge\/(\d+)/))||noe[1]>=74)&&(noe=Poe.match(/Chrome\/(\d+)/))&&(roe=+noe[1]);var Roe=roe,Moe=!!Object.getOwnPropertySymbols&&!aoe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Roe&&Roe<41})),zoe=Moe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$oe=ioe.Object,Hoe=zoe?function(e){return"symbol"==typeof e}:function(e){var t=Toe("Symbol");return koe(t)&&_oe(t.prototype,$oe(e))},Voe=ioe.String,Uoe=function(e){try{return Voe(e)}catch(t){return"Object"}},Woe=ioe.TypeError,Goe=function(e){if(koe(e))return e;throw Woe(Uoe(e)+" is not a function")},qoe=function(e,t){var n=e[t];return null==n?void 0:Goe(n)},Koe=ioe.TypeError,Yoe=Object.defineProperty,Xoe=function(e,t){try{Yoe(ioe,e,{value:t,configurable:!0,writable:!0})}catch(kP){ioe[e]=t}return t},Zoe=ioe["__core-js_shared__"]||Xoe("__core-js_shared__",{}),Joe=toe((function(e){(e.exports=function(e,t){return Zoe[e]||(Zoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Qoe=ioe.Object,eie=function(e){return Qoe(Aoe(e))},tie=moe({}.hasOwnProperty),nie=Object.hasOwn||function(e,t){return tie(eie(e),t)},rie=0,oie=Math.random(),iie=moe(1..toString),aie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+iie(++rie+oie,36)},uie=Joe("wks"),sie=ioe.Symbol,lie=sie&&sie.for,cie=zoe?sie:sie&&sie.withoutSetter||aie,fie=function(e){if(!nie(uie,e)||!Moe&&"string"!=typeof uie[e]){var t="Symbol."+e;Moe&&nie(sie,e)?uie[e]=sie[e]:uie[e]=zoe&&lie?lie(t):cie(t)}return uie[e]},die=ioe.TypeError,pie=fie("toPrimitive"),hie=function(e){var t=function(e,t){if(!Boe(e)||Hoe(e))return e;var n,r=qoe(e,pie);if(r){if(void 0===t&&(t="default"),n=loe(r,e,t),!Boe(n)||Hoe(n))return n;throw die("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&koe(n=e.toString)&&!Boe(r=loe(n,e)))return r;if(koe(n=e.valueOf)&&!Boe(r=loe(n,e)))return r;if("string"!==t&&koe(n=e.toString)&&!Boe(r=loe(n,e)))return r;throw Koe("Can't convert object to primitive value")}(e,t)}(e,"string");return Hoe(t)?t:t+""},gie=ioe.document,vie=Boe(gie)&&Boe(gie.createElement),yie=function(e){return vie?gie.createElement(e):{}},mie=!uoe&&!aoe((function(){return 7!=Object.defineProperty(yie("div"),"a",{get:function(){return 7}}).a})),bie=Object.getOwnPropertyDescriptor,wie={f:uoe?bie:function(e,t){if(e=Ooe(e),t=hie(t),mie)try{return bie(e,t)}catch(n){}if(nie(e,t))return poe(!loe(doe.f,e,t),e[t])}},Eie=ioe.String,Die=ioe.TypeError,Cie=function(e){if(Boe(e))return e;throw Die(Eie(e)+" is not an object")},Sie=ioe.TypeError,xie=Object.defineProperty,Aie={f:uoe?xie:function(e,t,n){if(Cie(e),t=hie(t),Cie(n),mie)try{return xie(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Sie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Oie=uoe?function(e,t,n){return Aie.f(e,t,poe(1,n))}:function(e,t,n){return e[t]=n,e},kie=moe(Function.toString);koe(Zoe.inspectSource)||(Zoe.inspectSource=function(e){return kie(e)});var Bie,Fie,Tie,_ie=Zoe.inspectSource,Pie=ioe.WeakMap,jie=koe(Pie)&&/native code/.test(_ie(Pie)),Nie=Joe("keys"),Iie=function(e){return Nie[e]||(Nie[e]=aie(e))},Lie={},Rie=ioe.TypeError,Mie=ioe.WeakMap;if(jie||Zoe.state){var zie=Zoe.state||(Zoe.state=new Mie),$ie=moe(zie.get),Hie=moe(zie.has),Vie=moe(zie.set);Bie=function(e,t){if(Hie(zie,e))throw new Rie("Object already initialized");return t.facade=e,Vie(zie,e,t),t},Fie=function(e){return $ie(zie,e)||{}},Tie=function(e){return Hie(zie,e)}}else{var Uie=Iie("state");Lie[Uie]=!0,Bie=function(e,t){if(nie(e,Uie))throw new Rie("Object already initialized");return t.facade=e,Oie(e,Uie,t),t},Fie=function(e){return nie(e,Uie)?e[Uie]:{}},Tie=function(e){return nie(e,Uie)}}var Wie={set:Bie,get:Fie,has:Tie,enforce:function(e){return Tie(e)?Fie(e):Bie(e,{})},getterFor:function(e){return function(t){var n;if(!Boe(t)||(n=Fie(t)).type!==e)throw Rie("Incompatible receiver, "+e+" required");return n}}},Gie=Function.prototype,qie=uoe&&Object.getOwnPropertyDescriptor,Kie=nie(Gie,"name"),Yie={EXISTS:Kie,PROPER:Kie&&"something"===function(){}.name,CONFIGURABLE:Kie&&(!uoe||uoe&&qie(Gie,"name").configurable)},Xie=toe((function(e){var t=Yie.CONFIGURABLE,n=Wie.get,r=Wie.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;koe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!nie(i,"name")||t&&i.name!==f)&&Oie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ioe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Oie(e,n,i)):l?e[n]=i:Xoe(n,i)})(Function.prototype,"toString",(function(){return koe(this)&&n(this).source||_ie(this)}))})),Zie=Math.ceil,Jie=Math.floor,Qie=function(e){var t=+e;return t!=t||0===t?0:(t>0?Jie:Zie)(t)},eae=Math.max,tae=Math.min,nae=function(e,t){var n=Qie(e);return n<0?eae(n+t,0):tae(n,t)},rae=Math.min,oae=function(e){return e>0?rae(Qie(e),9007199254740991):0},iae=function(e){return oae(e.length)},aae=function(e){return function(t,n,r){var o,i=Ooe(t),a=iae(i),u=nae(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),uae=moe([].push),sae=function(e,t){var n,r=Ooe(e),o=0,i=[];for(n in r)!nie(Lie,n)&&nie(r,n)&&uae(i,n);for(;t.length>o;)nie(r,n=t[o++])&&(~aae(i,n)||uae(i,n));return i},lae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cae=lae.concat("length","prototype"),fae={f:Object.getOwnPropertyNames||function(e){return sae(e,cae)}},dae={f:Object.getOwnPropertySymbols},pae=moe([].concat),hae=Toe("Reflect","ownKeys")||function(e){var t=fae.f(Cie(e)),n=dae.f;return n?pae(t,n(e)):t},gae=function(e,t){for(var n=hae(t),r=Aie.f,o=wie.f,i=0;i<n.length;i++){var a=n[i];nie(e,a)||r(e,a,o(t,a))}},vae=/#|\.prototype\./,yae=function(e,t){var n=bae[mae(e)];return n==Eae||n!=wae&&(koe(t)?aoe(t):!!t)},mae=yae.normalize=function(e){return String(e).replace(vae,".").toLowerCase()},bae=yae.data={},wae=yae.NATIVE="N",Eae=yae.POLYFILL="P",Dae=yae,Cae=wie.f,Sae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ioe:l?ioe[u]||Xoe(u,{}):(ioe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Cae(n,r))&&a.value:n[r],!Dae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;gae(i,o)}(e.sham||o&&o.sham)&&Oie(i,"sham",!0),Xie(n,r,i,e)}},xae=Array.isArray||function(e){return"Array"==Eoe(e)},Aae={};Aae[fie("toStringTag")]="z";var Oae="[object z]"===String(Aae),kae=fie("toStringTag"),Bae=ioe.Object,Fae="Arguments"==Eoe(function(){return arguments}()),Tae=Oae?Eoe: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=Bae(e),kae))?n:Fae?Eoe(t):"Object"==(r=Eoe(t))&&koe(t.callee)?"Arguments":r},_ae=function(){},Pae=[],jae=Toe("Reflect","construct"),Nae=/^\s*(?:class|function)\b/,Iae=moe(Nae.exec),Lae=!Nae.exec(_ae),Rae=function(e){if(!koe(e))return!1;try{return jae(_ae,Pae,e),!0}catch(t){return!1}},Mae=!jae||aoe((function(){var e;return Rae(Rae.call)||!Rae(Object)||!Rae((function(){e=!0}))||e}))?function(e){if(!koe(e))return!1;switch(Tae(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lae||!!Iae(Nae,_ie(e))}:Rae,zae=function(e,t,n){var r=hie(t);r in e?Aie.f(e,r,poe(0,n)):e[r]=n},$ae=fie("species"),Hae=moe([].slice),Vae=Roe>=51||!aoe((function(){var e=[];return(e.constructor={})[$ae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Uae=fie("species"),Wae=ioe.Array,Gae=Math.max;Sae({target:"Array",proto:!0,forced:!Vae},{slice:function(e,t){var n,r,o,i=Ooe(this),a=iae(i),u=nae(e,a),s=nae(void 0===t?a:t,a);if(xae(i)&&(n=i.constructor,(Mae(n)&&(n===Wae||xae(n.prototype))||Boe(n)&&null===(n=n[Uae]))&&(n=void 0),n===Wae||void 0===n))return Hae(i,u,s);for(r=new(void 0===n?Wae:n)(Gae(s-u,0)),o=0;u<s;u++,o++)u in i&&zae(r,o,i[u]);return r.length=o,r}});var qae=Oae?{}.toString:function(){return"[object "+Tae(this)+"]"};Oae||Xie(Object.prototype,"toString",qae,{unsafe:!0});var Kae,Yae=ioe.String,Xae=function(e){if("Symbol"===Tae(e))throw TypeError("Cannot convert a Symbol value to a string");return Yae(e)},Zae=function(){var e=Cie(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},Jae=ioe.RegExp,Qae=aoe((function(){var e=Jae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),eue=Qae||aoe((function(){return!Jae("a","y").sticky})),tue={BROKEN_CARET:Qae||aoe((function(){var e=Jae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:eue,UNSUPPORTED_Y:Qae},nue=Object.keys||function(e){return sae(e,lae)},rue=uoe?Object.defineProperties:function(e,t){Cie(e);for(var n,r=Ooe(t),o=nue(t),i=o.length,a=0;i>a;)Aie.f(e,n=o[a++],r[n]);return e},oue=Toe("document","documentElement"),iue=Iie("IE_PROTO"),aue=function(){},uue=function(e){return"<script>"+e+"<\/script>"},sue=function(e){e.write(uue("")),e.close();var t=e.parentWindow.Object;return e=null,t},lue=function(){try{Kae=new ActiveXObject("htmlfile")}catch(r){}var e,t;lue="undefined"!=typeof document?document.domain&&Kae?sue(Kae):((t=yie("iframe")).style.display="none",oue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(uue("document.F=Object")),e.close(),e.F):sue(Kae);for(var n=lae.length;n--;)delete lue.prototype[lae[n]];return lue()};Lie[iue]=!0;var cue,fue,due=Object.create||function(e,t){var n;return null!==e?(aue.prototype=Cie(e),n=new aue,aue.prototype=null,n[iue]=e):n=lue(),void 0===t?n:rue(n,t)},pue=ioe.RegExp,hue=aoe((function(){var e=pue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),gue=ioe.RegExp,vue=aoe((function(){var e=gue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),yue=Wie.get,mue=Joe("native-string-replace",String.prototype.replace),bue=RegExp.prototype.exec,wue=bue,Eue=moe("".charAt),Due=moe("".indexOf),Cue=moe("".replace),Sue=moe("".slice),xue=(fue=/b*/g,loe(bue,cue=/a/,"a"),loe(bue,fue,"a"),0!==cue.lastIndex||0!==fue.lastIndex),Aue=tue.BROKEN_CARET,Oue=void 0!==/()??/.exec("")[1];(xue||Oue||Aue||hue||vue)&&(wue=function(e){var t,n,r,o,i,a,u,s=this,l=yue(s),c=Xae(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=loe(wue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Aue&&s.sticky,h=loe(Zae,s),g=s.source,v=0,y=c;if(p&&(h=Cue(h,"y",""),-1===Due(h,"g")&&(h+="g"),y=Sue(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Eue(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Oue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),xue&&(r=s.lastIndex),o=loe(bue,p?n:s,y),p?o?(o.input=Sue(o.input,v),o[0]=Sue(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Oue&&o&&o.length>1&&loe(mue,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=due(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var kue=wue;Sae({target:"RegExp",proto:!0,forced:/./.exec!==kue},{exec:kue});var Bue=Function.prototype,Fue=Bue.apply,Tue=Bue.bind,_ue=Bue.call,Pue="object"==typeof Reflect&&Reflect.apply||(Tue?_ue.bind(Fue):function(){return _ue.apply(Fue,arguments)}),jue=fie("species"),Nue=RegExp.prototype,Iue=fie("match"),Lue=ioe.TypeError,Rue=fie("species"),Mue=function(e,t){var n,r=Cie(e).constructor;return void 0===r||null==(n=Cie(r)[Rue])?t:function(e){if(Mae(e))return e;throw Lue(Uoe(e)+" is not a constructor")}(n)},zue=moe("".charAt),$ue=moe("".charCodeAt),Hue=moe("".slice),Vue=function(e){return function(t,n){var r,o,i=Xae(Aoe(t)),a=Qie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$ue(i,a))<55296||r>56319||a+1===u||(o=$ue(i,a+1))<56320||o>57343?e?zue(i,a):r:e?Hue(i,a,a+2):o-56320+(r-55296<<10)+65536}},Uue={codeAt:Vue(!1),charAt:Vue(!0)},Wue=Uue.charAt,Gue=function(e,t,n){return t+(n?Wue(e,t).length:1)},que=ioe.Array,Kue=Math.max,Yue=function(e,t,n){for(var r=iae(e),o=nae(t,r),i=nae(void 0===n?r:n,r),a=que(Kue(i-o,0)),u=0;o<i;o++,u++)zae(a,u,e[o]);return a.length=u,a},Xue=ioe.TypeError,Zue=function(e,t){var n=e.exec;if(koe(n)){var r=loe(n,e,t);return null!==r&&Cie(r),r}if("RegExp"===Eoe(e))return loe(kue,e,t);throw Xue("RegExp#exec called on incompatible receiver")},Jue=tue.UNSUPPORTED_Y,Que=Math.min,ese=[].push,tse=moe(/./.exec),nse=moe(ese),rse=moe("".slice);!function(e,t,n,r){var o,i,a,u=fie(e),s=!aoe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!aoe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[jue]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=moe(/./[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=Xae(Aoe(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Boe(n=e)||!(void 0!==(r=n[Iue])?r:"RegExp"==Eoe(n)))return loe(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=loe(kue,p,o))&&!((s=p.lastIndex)>d&&(nse(c,rse(o,d,u.index)),u.length>1&&u.index<o.length&&Pue(ese,c,Yue(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&tse(p,"")||nse(c,""):nse(c,rse(o,d)),c.length>a?Yue(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:loe(i,this,e,t)}:i,[function(e,t){var n=Aoe(this),r=null==e?void 0:qoe(e,o);return r?loe(r,e,n,t):loe(a,Xae(n),e,t)},function(e,t){var n=Cie(this),r=Xae(e),o=function(e,t,n,r,o){var i=moe(e),a=t.exec;return a===kue||a===Nue.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=Mue(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Jue?"g":"y"),d=new u(Jue?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===Zue(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=Jue?0:g;var y,m=Zue(d,Jue?rse(r,g):r);if(null===m||(y=Que(oae(d.lastIndex+(Jue?g:0)),r.length))===h)g=Gue(r,g,l);else{if(nse(v,rse(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(nse(v,m[b]),v.length===p)return v;g=h=y}}return nse(v,rse(r,h)),v}]);Xie(String.prototype,e,f[0]),Xie(Nue,u,f[1])}r&&Oie(Nue[u],"sham",!0)}("split",0,!!aoe((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]})),Jue);
  75. /*! *****************************************************************************
  76. Copyright (c) Microsoft Corporation.
  77. Permission to use, copy, modify, and/or distribute this software for any
  78. purpose with or without fee is hereby granted.
  79. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  80. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  81. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  82. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  83. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  84. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  85. PERFORMANCE OF THIS SOFTWARE.
  86. ***************************************************************************** */
  87. var ose=function(){return ose=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ose.apply(this,arguments)};function ise(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function u(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function ase(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 use=fie("unscopables"),sse=Array.prototype;null==sse[use]&&Aie.f(sse,use,{configurable:!0,value:due(null)});var lse,cse,fse,dse=function(e){sse[use][e]=!0},pse={},hse=!aoe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),gse=Iie("IE_PROTO"),vse=ioe.Object,yse=vse.prototype,mse=hse?vse.getPrototypeOf:function(e){var t=eie(e);if(nie(t,gse))return t[gse];var n=t.constructor;return koe(n)&&t instanceof n?n.prototype:t instanceof vse?yse:null},bse=fie("iterator"),wse=!1;[].keys&&("next"in(fse=[].keys())?(cse=mse(mse(fse)))!==Object.prototype&&(lse=cse):wse=!0);var Ese=null==lse||aoe((function(){var e={};return lse[bse].call(e)!==e}));Ese&&(lse={}),koe(lse[bse])||Xie(lse,bse,(function(){return this}));var Dse={IteratorPrototype:lse,BUGGY_SAFARI_ITERATORS:wse},Cse=Aie.f,Sse=fie("toStringTag"),xse=function(e,t,n){e&&!nie(e=n?e:e.prototype,Sse)&&Cse(e,Sse,{configurable:!0,value:t})},Ase=Dse.IteratorPrototype,Ose=function(){return this},kse=ioe.String,Bse=ioe.TypeError,Fse=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=moe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Cie(n),function(e){if("object"==typeof e||koe(e))return e;throw Bse("Can't set "+kse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Tse=Yie.PROPER,_se=Yie.CONFIGURABLE,Pse=Dse.IteratorPrototype,jse=Dse.BUGGY_SAFARI_ITERATORS,Nse=fie("iterator"),Ise=function(){return this},Lse=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=due(Ase,{next:poe(1,s)}),xse(u,l,!1),pse[l]=Ose;var c,f,d,p=function(e){if(e===o&&m)return m;if(!jse&&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[Nse]||v["@@iterator"]||o&&v[o],m=!jse&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=mse(b.call(new e)))!==Object.prototype&&c.next&&(mse(c)!==Pse&&(Fse?Fse(c,Pse):koe(c[Nse])||Xie(c,Nse,Ise)),xse(c,h,!0)),Tse&&"values"==o&&y&&"values"!==y.name&&(_se?Oie(v,"name","values"):(g=!0,m=function(){return loe(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(jse||g||!(d in v))&&Xie(v,d,f[d]);else Sae({target:t,proto:!0,forced:jse||g},f);return v[Nse]!==m&&Xie(v,Nse,m,{name:o}),pse[t]=m,f},Rse=Wie.set,Mse=Wie.getterFor("Array Iterator"),zse=Lse(Array,"Array",(function(e,t){Rse(this,{type:"Array Iterator",target:Ooe(e),index:0,kind:t})}),(function(){var e=Mse(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");pse.Arguments=pse.Array,dse("keys"),dse("values"),dse("entries");var $se=Uue.charAt,Hse=Wie.set,Vse=Wie.getterFor("String Iterator");Lse(String,"String",(function(e){Hse(this,{type:"String Iterator",string:Xae(e),index:0})}),(function(){var e,t=Vse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$se(n,r),t.index+=e.length,{value:e,done:!1})}));var Use=function(e,t,n){for(var r in t)Xie(e,r,t[r],n);return e},Wse=fae.f,Gse="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qse={f:function(e){return Gse&&"Window"==Eoe(e)?function(e){try{return Wse(e)}catch(t){return Yue(Gse)}}(e):Wse(Ooe(e))}},Kse=aoe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Yse=Object.isExtensible,Xse=aoe((function(){Yse(1)}))||Kse?function(e){return!!Boe(e)&&(!Kse||"ArrayBuffer"!=Eoe(e))&&(!Yse||Yse(e))}:Yse,Zse=!aoe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Jse=toe((function(e){var t=Aie.f,n=!1,r=aie("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=fae.f,t=moe([].splice),o={};o[r]=1,e(o).length&&(fae.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},Sae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qse.f}))},fastKey:function(e,t){if(!Boe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!nie(e,r)){if(!Xse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!nie(e,r)){if(!Xse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Zse&&n&&Xse(e)&&!nie(e,r)&&i(e),e}};Lie[r]=!0})),Qse=moe(moe.bind),ele=function(e,t){return Goe(e),void 0===t?e:Qse?Qse(e,t):function(){return e.apply(t,arguments)}},tle=fie("iterator"),nle=Array.prototype,rle=fie("iterator"),ole=function(e){if(null!=e)return qoe(e,rle)||qoe(e,"@@iterator")||pse[Tae(e)]},ile=ioe.TypeError,ale=function(e,t,n){var r,o;Cie(e);try{if(!(r=qoe(e,"return"))){if("throw"===t)throw n;return n}r=loe(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Cie(r),n},ule=ioe.TypeError,sle=function(e,t){this.stopped=e,this.result=t},lle=sle.prototype,cle=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=ele(t,f),v=function(e){return r&&ale(r,"normal",e),new sle(!0,e)},y=function(e){return d?(Cie(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=ole(e)))throw ule(Uoe(e)+" is not iterable");if(void 0!==(c=o)&&(pse.Array===c||nle[tle]===c)){for(i=0,a=iae(e);a>i;i++)if((u=y(e[i]))&&_oe(lle,u))return u;return new sle(!1)}r=function(e,t){var n=arguments.length<2?ole(e):t;if(Goe(n))return Cie(loe(n,e));throw ile(Uoe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=loe(s,r)).done;){try{u=y(l.value)}catch(m){ale(r,"throw",m)}if("object"==typeof u&&u&&_oe(lle,u))return u}return new sle(!1)},fle=ioe.TypeError,dle=function(e,t){if(_oe(t,e))return e;throw fle("Incorrect invocation")},ple=fie("iterator"),hle=!1;try{var gle=0,vle={next:function(){return{done:!!gle++}},return:function(){hle=!0}};vle[ple]=function(){return this},Array.from(vle,(function(){throw 2}))}catch(Zve){}var yle=function(e,t){if(!t&&!hle)return!1;var n=!1;try{var r={};r[ple]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},mle=fie("species"),ble=ioe.Array,wle=function(e,t){return new(xae(n=e)&&(r=n.constructor,(Mae(r)&&(r===ble||xae(r.prototype))||Boe(r)&&null===(r=r[mle]))&&(r=void 0)),void 0===r?ble:r)(0===t?0:t);var n,r},Ele=moe([].push),Dle=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=eie(s),g=Soe(h),v=ele(l,c),y=iae(g),m=0,b=f||wle,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:Ele(w,d)}else switch(e){case 4:return!1;case 7:Ele(w,d)}return i?-1:r||o?o:w}},Cle={forEach:Dle(0),map:Dle(1),filter:Dle(2),some:Dle(3),every:Dle(4),find:Dle(5),findIndex:Dle(6),filterReject:Dle(7)},Sle=Jse.getWeakData,xle=Wie.set,Ale=Wie.getterFor,Ole=Cle.find,kle=Cle.findIndex,Ble=moe([].splice),Fle=0,Tle=function(e){return e.frozen||(e.frozen=new _le)},_le=function(){this.entries=[]},Ple=function(e,t){return Ole(e.entries,(function(e){return e[0]===t}))};_le.prototype={get:function(e){var t=Ple(this,e);if(t)return t[1]},has:function(e){return!!Ple(this,e)},set:function(e,t){var n=Ple(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=kle(this.entries,(function(t){return t[0]===e}));return~t&&Ble(this.entries,t,1),!!~t}};var jle,Nle={getConstructor:function(e,t,n,r){var o=e((function(e,o){dle(e,i),xle(e,{type:t,id:Fle++,frozen:void 0}),null!=o&&cle(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Ale(t),u=function(e,t,n){var r=a(e),o=Sle(Cie(t),!0);return!0===o?Tle(r).set(t,n):o[r.id]=n,e};return Use(i,{delete:function(e){var t=a(this);if(!Boe(e))return!1;var n=Sle(e);return!0===n?Tle(t).delete(e):n&&nie(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Boe(e))return!1;var n=Sle(e);return!0===n?Tle(t).has(e):n&&nie(n,t.id)}}),Use(i,n?{get:function(e){var t=a(this);if(Boe(e)){var n=Sle(e);return!0===n?Tle(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}},Ile=Wie.enforce,Lle=!ioe.ActiveXObject&&"ActiveXObject"in ioe,Rle=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Mle=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=ioe[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=moe(u[e]);Xie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Boe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Boe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Boe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Dae(e,!koe(a)||!(o||u.forEach&&!aoe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Jse.enable();else if(Dae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=aoe((function(){f.has(1)})),h=yle((function(e){new a(e)})),g=!o&&aoe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){dle(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Fse&&koe(c=o.constructor)&&c!==l&&Boe(f=c.prototype)&&f!==l.prototype&&Fse(n,f),n);return null!=t&&cle(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,Sae({global:!0,forced:s!=a},l),xse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Rle,Nle);if(jie&&Lle){jle=Nle.getConstructor(Rle,"WeakMap",!0),Jse.enable();var zle=Mle.prototype,$le=moe(zle.delete),Hle=moe(zle.has),Vle=moe(zle.get),Ule=moe(zle.set);Use(zle,{delete:function(e){if(Boe(e)&&!Xse(e)){var t=Ile(this);return t.frozen||(t.frozen=new jle),$le(this,e)||t.frozen.delete(e)}return $le(this,e)},has:function(e){if(Boe(e)&&!Xse(e)){var t=Ile(this);return t.frozen||(t.frozen=new jle),Hle(this,e)||t.frozen.has(e)}return Hle(this,e)},get:function(e){if(Boe(e)&&!Xse(e)){var t=Ile(this);return t.frozen||(t.frozen=new jle),Hle(this,e)?Vle(this,e):t.frozen.get(e)}return Vle(this,e)},set:function(e,t){if(Boe(e)&&!Xse(e)){var n=Ile(this);n.frozen||(n.frozen=new jle),Hle(this,e)?Ule(this,e,t):n.frozen.set(e,t)}else Ule(this,e,t);return this}})}var Wle={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},Gle=yie("span").classList,qle=Gle&&Gle.constructor&&Gle.constructor.prototype,Kle=qle===Object.prototype?void 0:qle,Yle=fie("iterator"),Xle=fie("toStringTag"),Zle=zse.values,Jle=function(e,t){if(e){if(e[Yle]!==Zle)try{Oie(e,Yle,Zle)}catch(r){e[Yle]=Zle}if(e[Xle]||Oie(e,Xle,t),Wle[t])for(var n in zse)if(e[n]!==zse[n])try{Oie(e,n,zse[n])}catch(r){e[n]=zse[n]}}};for(var Qle in Wle)Jle(ioe[Qle]&&ioe[Qle].prototype,Qle);Jle(Kle,"DOMTokenList");var ece=function(e,t){var n=[][e];return!!n&&aoe((function(){n.call(null,t||function(){throw 1},1)}))},tce=Cle.forEach,nce=ece("forEach")?[].forEach:function(e){return tce(this,e,arguments.length>1?arguments[1]:void 0)},rce=function(e){if(e&&e.forEach!==nce)try{Oie(e,"forEach",nce)}catch(t){e.forEach=nce}};for(var oce in Wle)Wle[oce]&&rce(ioe[oce]&&ioe[oce].prototype);rce(Kle);var ice,ace,uce,sce,lce=ioe.Promise,cce=fie("species"),fce=/(?:ipad|iphone|ipod).*applewebkit/i.test(Poe),dce="process"==Eoe(ioe.process),pce=ioe.setImmediate,hce=ioe.clearImmediate,gce=ioe.process,vce=ioe.Dispatch,yce=ioe.Function,mce=ioe.MessageChannel,bce=ioe.String,wce=0,Ece={};try{ice=ioe.location}catch(Zve){}var Dce=function(e){if(nie(Ece,e)){var t=Ece[e];delete Ece[e],t()}},Cce=function(e){return function(){Dce(e)}},Sce=function(e){Dce(e.data)},xce=function(e){ioe.postMessage(bce(e),ice.protocol+"//"+ice.host)};pce&&hce||(pce=function(e){var t=Hae(arguments,1);return Ece[++wce]=function(){Pue(koe(e)?e:yce(e),void 0,t)},ace(wce),wce},hce=function(e){delete Ece[e]},dce?ace=function(e){gce.nextTick(Cce(e))}:vce&&vce.now?ace=function(e){vce.now(Cce(e))}:mce&&!fce?(sce=(uce=new mce).port2,uce.port1.onmessage=Sce,ace=ele(sce.postMessage,sce)):ioe.addEventListener&&koe(ioe.postMessage)&&!ioe.importScripts&&ice&&"file:"!==ice.protocol&&!aoe(xce)?(ace=xce,ioe.addEventListener("message",Sce,!1)):ace="onreadystatechange"in yie("script")?function(e){oue.appendChild(yie("script")).onreadystatechange=function(){oue.removeChild(this),Dce(e)}}:function(e){setTimeout(Cce(e),0)});var Ace,Oce,kce,Bce,Fce,Tce,_ce,Pce,jce={set:pce,clear:hce},Nce=/ipad|iphone|ipod/i.test(Poe)&&void 0!==ioe.Pebble,Ice=/web0s(?!.*chrome)/i.test(Poe),Lce=wie.f,Rce=jce.set,Mce=ioe.MutationObserver||ioe.WebKitMutationObserver,zce=ioe.document,$ce=ioe.process,Hce=ioe.Promise,Vce=Lce(ioe,"queueMicrotask"),Uce=Vce&&Vce.value;Uce||(Ace=function(){var e,t;for(dce&&(e=$ce.domain)&&e.exit();Oce;){t=Oce.fn,Oce=Oce.next;try{t()}catch(n){throw Oce?Bce():kce=void 0,n}}kce=void 0,e&&e.enter()},fce||dce||Ice||!Mce||!zce?!Nce&&Hce&&Hce.resolve?((_ce=Hce.resolve(void 0)).constructor=Hce,Pce=ele(_ce.then,_ce),Bce=function(){Pce(Ace)}):dce?Bce=function(){$ce.nextTick(Ace)}:(Rce=ele(Rce,ioe),Bce=function(){Rce(Ace)}):(Fce=!0,Tce=zce.createTextNode(""),new Mce(Ace).observe(Tce,{characterData:!0}),Bce=function(){Tce.data=Fce=!Fce}));var Wce,Gce,qce,Kce,Yce=Uce||function(e){var t={fn:e,next:void 0};kce&&(kce.next=t),Oce||(Oce=t,Bce()),kce=t},Xce=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=Goe(t),this.reject=Goe(n)},Zce={f:function(e){return new Xce(e)}},Jce=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Qce="object"==typeof window,efe=jce.set,tfe=fie("species"),nfe="Promise",rfe=Wie.getterFor(nfe),ofe=Wie.set,ife=Wie.getterFor(nfe),afe=lce&&lce.prototype,ufe=lce,sfe=afe,lfe=ioe.TypeError,cfe=ioe.document,ffe=ioe.process,dfe=Zce.f,pfe=dfe,hfe=!!(cfe&&cfe.createEvent&&ioe.dispatchEvent),gfe=koe(ioe.PromiseRejectionEvent),vfe=!1,yfe=Dae(nfe,(function(){var e=_ie(ufe),t=e!==String(ufe);if(!t&&66===Roe)return!0;if(Roe>=51&&/native code/.test(e))return!1;var n=new ufe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[tfe]=r,!(vfe=n.then((function(){}))instanceof r)||!t&&Qce&&!gfe})),mfe=yfe||!yle((function(e){ufe.all(e).catch((function(){}))})),bfe=function(e){var t;return!(!Boe(e)||!koe(t=e.then))&&t},wfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Yce((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&&Sfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(lfe("Promise-chain cycle")):(u=bfe(a))?loe(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Dfe(e)}))}},Efe=function(e,t,n){var r,o;hfe?((r=cfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ioe.dispatchEvent(r)):r={promise:t,reason:n},!gfe&&(o=ioe["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=ioe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Dfe=function(e){loe(efe,ioe,(function(){var t,n=e.facade,r=e.value;if(Cfe(e)&&(t=Jce((function(){dce?ffe.emit("unhandledRejection",r,n):Efe("unhandledrejection",n,r)})),e.rejection=dce||Cfe(e)?2:1,t.error))throw t.value}))},Cfe=function(e){return 1!==e.rejection&&!e.parent},Sfe=function(e){loe(efe,ioe,(function(){var t=e.facade;dce?ffe.emit("rejectionHandled",t):Efe("rejectionhandled",t,e.value)}))},xfe=function(e,t,n){return function(r){e(t,r,n)}},Afe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,wfe(e,!0))},Ofe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw lfe("Promise can't be resolved itself");var r=bfe(t);r?Yce((function(){var n={done:!1};try{loe(r,t,xfe(Ofe,n,e),xfe(Afe,n,e))}catch(o){Afe(n,o,e)}})):(e.value=t,e.state=1,wfe(e,!1))}catch(o){Afe({done:!1},o,e)}}};if(yfe&&(sfe=(ufe=function(e){dle(this,sfe),Goe(e),loe(Wce,this);var t=rfe(this);try{e(xfe(Ofe,t),xfe(Afe,t))}catch(n){Afe(t,n)}}).prototype,(Wce=function(e){ofe(this,{type:nfe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Use(sfe,{then:function(e,t){var n=ife(this),r=n.reactions,o=dfe(Mue(this,ufe));return o.ok=!koe(e)||e,o.fail=koe(t)&&t,o.domain=dce?ffe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&wfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Gce=function(){var e=new Wce,t=rfe(e);this.promise=e,this.resolve=xfe(Ofe,t),this.reject=xfe(Afe,t)},Zce.f=dfe=function(e){return e===ufe||e===qce?new Gce(e):pfe(e)},koe(lce)&&afe!==Object.prototype)){Kce=afe.then,vfe||(Xie(afe,"then",(function(e,t){var n=this;return new ufe((function(e,t){loe(Kce,n,e,t)})).then(e,t)}),{unsafe:!0}),Xie(afe,"catch",sfe.catch,{unsafe:!0}));try{delete afe.constructor}catch(Zve){}Fse&&Fse(afe,sfe)}Sae({global:!0,wrap:!0,forced:yfe},{Promise:ufe}),xse(ufe,nfe,!1),function(e){var t=Toe("Promise"),n=Aie.f;uoe&&t&&!t[cce]&&n(t,cce,{configurable:!0,get:function(){return this}})}(),qce=Toe(nfe),Sae({target:nfe,stat:!0,forced:yfe},{reject:function(e){var t=dfe(this);return loe(t.reject,void 0,e),t.promise}}),Sae({target:nfe,stat:!0,forced:yfe},{resolve:function(e){return function(e,t){if(Cie(e),Boe(t)&&t.constructor===e)return t;var n=Zce.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Sae({target:nfe,stat:!0,forced:mfe},{all:function(e){var t=this,n=dfe(t),r=n.resolve,o=n.reject,i=Jce((function(){var n=Goe(t.resolve),i=[],a=0,u=1;cle(e,(function(e){var s=a++,l=!1;u++,loe(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=dfe(t),r=n.reject,o=Jce((function(){var o=Goe(t.resolve);cle(e,(function(e){loe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var kfe=Yie.PROPER,Bfe=RegExp.prototype,Ffe=Bfe.toString,Tfe=moe(Zae),_fe=aoe((function(){return"/a/b"!=Ffe.call({source:"a",flags:"b"})})),Pfe=kfe&&"toString"!=Ffe.name;(_fe||Pfe)&&Xie(RegExp.prototype,"toString",(function(){var e=Cie(this),t=Xae(e.source),n=e.flags;return"/"+t+"/"+Xae(void 0===n&&_oe(Bfe,e)&&!("flags"in Bfe)?Tfe(e):n)}),{unsafe:!0});var jfe=Yie.EXISTS,Nfe=Aie.f,Ife=Function.prototype,Lfe=moe(Ife.toString),Rfe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Mfe=moe(Rfe.exec);uoe&&!jfe&&Nfe(Ife,"name",{configurable:!0,get:function(){try{return Mfe(Rfe,Lfe(this))[1]}catch($l){return""}}});var zfe=new WeakMap;function $fe(e){return e.getMenuConfig("uploadImage")}function Hfe(e,t){return ise(this,void 0,void 0,(function(){return ase(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;D$(e,i,t.name,a),n("ok")}}}))]}))}))}function Vfe(e,t){return ise(this,void 0,void 0,(function(){var n,r,o,i;return ase(this,(function(a){switch(a.label){case 0:return n=function(e){var t=zfe.get(e);if(null!=t)return t;var n=$fe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=j_(ose(ose({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return D$(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;D$(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;D$(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),zfe.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 Ufe(e,t){var n,r;return ise(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return ase(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=$fe(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,Hfe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return D$(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Vfe(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 Wfe=moe([].join),Gfe=Soe!=Object,qfe=ece("join",",");Sae({target:"Array",proto:!0,forced:Gfe||!qfe},{join:function(e){return Wfe(Ooe(this),void 0===e?",":e)}}),ch&&(Vp.fn.append=ch),Zp&&(Vp.fn.on=Zp),vh&&(Vp.fn.remove=vh),Xp&&(Vp.fn.val=Xp),wh&&(Vp.fn.click=wh),nh&&(Vp.fn.hide=nh);var Kfe=function(){function e(){this.title=AP("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 C$(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 D$(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Vp("body"),s=Vp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Ufe(e,t)}))}},e}(),Yfe={menus:[{key:"uploadImage",factory:function(){return new Kfe},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(C$(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]}))?Ufe(e,o):t(r)}},n}};xP("en",{highLightModule:{selectLang:"Language"}}),xP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Xfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Zfe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Jfe,Qfe,ede=function(e){return e&&e.Math==Math&&e},tde=ede("object"==typeof globalThis&&globalThis)||ede("object"==typeof window&&window)||ede("object"==typeof self&&self)||ede("object"==typeof Xfe&&Xfe)||function(){return this}()||Function("return this")(),nde=Object.defineProperty,rde=function(e,t){try{nde(tde,e,{value:t,configurable:!0,writable:!0})}catch(kP){tde[e]=t}return t},ode=tde["__core-js_shared__"]||rde("__core-js_shared__",{}),ide=Zfe((function(e){(e.exports=function(e,t){return ode[e]||(ode[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ade=Function.prototype,ude=ade.bind,sde=ade.call,lde=ude&&ude.bind(sde),cde=ude?function(e){return e&&lde(sde,e)}:function(e){return e&&function(){return sde.apply(e,arguments)}},fde=tde.TypeError,dde=function(e){if(null==e)throw fde("Can't call method on "+e);return e},pde=tde.Object,hde=function(e){return pde(dde(e))},gde=cde({}.hasOwnProperty),vde=Object.hasOwn||function(e,t){return gde(hde(e),t)},yde=0,mde=Math.random(),bde=cde(1..toString),wde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bde(++yde+mde,36)},Ede=function(e){return"function"==typeof e},Dde=function(e){return Ede(e)?e:void 0},Cde=function(e,t){return arguments.length<2?Dde(tde[e]):tde[e]&&tde[e][t]},Sde=Cde("navigator","userAgent")||"",xde=tde.process,Ade=tde.Deno,Ode=xde&&xde.versions||Ade&&Ade.version,kde=Ode&&Ode.v8;kde&&(Qfe=(Jfe=kde.split("."))[0]>0&&Jfe[0]<4?1:+(Jfe[0]+Jfe[1])),!Qfe&&Sde&&(!(Jfe=Sde.match(/Edge\/(\d+)/))||Jfe[1]>=74)&&(Jfe=Sde.match(/Chrome\/(\d+)/))&&(Qfe=+Jfe[1]);var Bde=Qfe,Fde=function(e){try{return!!e()}catch(t){return!0}},Tde=!!Object.getOwnPropertySymbols&&!Fde((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Bde&&Bde<41})),_de=Tde&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pde=ide("wks"),jde=tde.Symbol,Nde=jde&&jde.for,Ide=_de?jde:jde&&jde.withoutSetter||wde,Lde=function(e){if(!vde(Pde,e)||!Tde&&"string"!=typeof Pde[e]){var t="Symbol."+e;Tde&&vde(jde,e)?Pde[e]=jde[e]:Pde[e]=_de&&Nde?Nde(t):Ide(t)}return Pde[e]},Rde={};Rde[Lde("toStringTag")]="z";var Mde="[object z]"===String(Rde),zde=!Fde((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),$de=function(e){return"object"==typeof e?null!==e:Ede(e)},Hde=tde.document,Vde=$de(Hde)&&$de(Hde.createElement),Ude=function(e){return Vde?Hde.createElement(e):{}},Wde=!zde&&!Fde((function(){return 7!=Object.defineProperty(Ude("div"),"a",{get:function(){return 7}}).a})),Gde=tde.String,qde=tde.TypeError,Kde=function(e){if($de(e))return e;throw qde(Gde(e)+" is not an object")},Yde=Function.prototype.call,Xde=Yde.bind?Yde.bind(Yde):function(){return Yde.apply(Yde,arguments)},Zde=cde({}.isPrototypeOf),Jde=tde.Object,Qde=_de?function(e){return"symbol"==typeof e}:function(e){var t=Cde("Symbol");return Ede(t)&&Zde(t.prototype,Jde(e))},epe=tde.String,tpe=function(e){try{return epe(e)}catch(t){return"Object"}},npe=tde.TypeError,rpe=function(e){if(Ede(e))return e;throw npe(tpe(e)+" is not a function")},ope=function(e,t){var n=e[t];return null==n?void 0:rpe(n)},ipe=tde.TypeError,ape=tde.TypeError,upe=Lde("toPrimitive"),spe=function(e){var t=function(e,t){if(!$de(e)||Qde(e))return e;var n,r=ope(e,upe);if(r){if(void 0===t&&(t="default"),n=Xde(r,e,t),!$de(n)||Qde(n))return n;throw ape("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ede(n=e.toString)&&!$de(r=Xde(n,e)))return r;if(Ede(n=e.valueOf)&&!$de(r=Xde(n,e)))return r;if("string"!==t&&Ede(n=e.toString)&&!$de(r=Xde(n,e)))return r;throw ipe("Can't convert object to primitive value")}(e,t)}(e,"string");return Qde(t)?t:t+""},lpe=tde.TypeError,cpe=Object.defineProperty,fpe={f:zde?cpe:function(e,t,n){if(Kde(e),t=spe(t),Kde(n),Wde)try{return cpe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw lpe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},dpe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ppe=zde?function(e,t,n){return fpe.f(e,t,dpe(1,n))}:function(e,t,n){return e[t]=n,e},hpe=cde(Function.toString);Ede(ode.inspectSource)||(ode.inspectSource=function(e){return hpe(e)});var gpe,vpe,ype,mpe=ode.inspectSource,bpe=tde.WeakMap,wpe=Ede(bpe)&&/native code/.test(mpe(bpe)),Epe=ide("keys"),Dpe=function(e){return Epe[e]||(Epe[e]=wde(e))},Cpe={},Spe=tde.TypeError,xpe=tde.WeakMap;if(wpe||ode.state){var Ape=ode.state||(ode.state=new xpe),Ope=cde(Ape.get),kpe=cde(Ape.has),Bpe=cde(Ape.set);gpe=function(e,t){if(kpe(Ape,e))throw new Spe("Object already initialized");return t.facade=e,Bpe(Ape,e,t),t},vpe=function(e){return Ope(Ape,e)||{}},ype=function(e){return kpe(Ape,e)}}else{var Fpe=Dpe("state");Cpe[Fpe]=!0,gpe=function(e,t){if(vde(e,Fpe))throw new Spe("Object already initialized");return t.facade=e,ppe(e,Fpe,t),t},vpe=function(e){return vde(e,Fpe)?e[Fpe]:{}},ype=function(e){return vde(e,Fpe)}}var Tpe={set:gpe,get:vpe,has:ype,enforce:function(e){return ype(e)?vpe(e):gpe(e,{})},getterFor:function(e){return function(t){var n;if(!$de(t)||(n=vpe(t)).type!==e)throw Spe("Incompatible receiver, "+e+" required");return n}}},_pe=Function.prototype,Ppe=zde&&Object.getOwnPropertyDescriptor,jpe=vde(_pe,"name"),Npe={EXISTS:jpe,PROPER:jpe&&"something"===function(){}.name,CONFIGURABLE:jpe&&(!zde||zde&&Ppe(_pe,"name").configurable)},Ipe=Zfe((function(e){var t=Npe.CONFIGURABLE,n=Tpe.get,r=Tpe.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;Ede(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vde(i,"name")||t&&i.name!==f)&&ppe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==tde?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ppe(e,n,i)):l?e[n]=i:rde(n,i)})(Function.prototype,"toString",(function(){return Ede(this)&&n(this).source||mpe(this)}))})),Lpe=cde({}.toString),Rpe=cde("".slice),Mpe=function(e){return Rpe(Lpe(e),8,-1)},zpe=Lde("toStringTag"),$pe=tde.Object,Hpe="Arguments"==Mpe(function(){return arguments}()),Vpe=Mde?Mpe: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=$pe(e),zpe))?n:Hpe?Mpe(t):"Object"==(r=Mpe(t))&&Ede(t.callee)?"Arguments":r},Upe=Mde?{}.toString:function(){return"[object "+Vpe(this)+"]"};Mde||Ipe(Object.prototype,"toString",Upe,{unsafe:!0});var Wpe,Gpe={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},qpe=Ude("span").classList,Kpe=qpe&&qpe.constructor&&qpe.constructor.prototype,Ype=Kpe===Object.prototype?void 0:Kpe,Xpe=cde(cde.bind),Zpe=tde.Object,Jpe=cde("".split),Qpe=Fde((function(){return!Zpe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Mpe(e)?Jpe(e,""):Zpe(e)}:Zpe,ehe=Math.ceil,the=Math.floor,nhe=function(e){var t=+e;return t!=t||0===t?0:(t>0?the:ehe)(t)},rhe=Math.min,ohe=function(e){return e>0?rhe(nhe(e),9007199254740991):0},ihe=function(e){return ohe(e.length)},ahe=Array.isArray||function(e){return"Array"==Mpe(e)},uhe=function(){},she=[],lhe=Cde("Reflect","construct"),che=/^\s*(?:class|function)\b/,fhe=cde(che.exec),dhe=!che.exec(uhe),phe=function(e){if(!Ede(e))return!1;try{return lhe(uhe,she,e),!0}catch(t){return!1}},hhe=!lhe||Fde((function(){var e;return phe(phe.call)||!phe(Object)||!phe((function(){e=!0}))||e}))?function(e){if(!Ede(e))return!1;switch(Vpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dhe||!!fhe(che,mpe(e))}:phe,ghe=Lde("species"),vhe=tde.Array,yhe=function(e,t){return new(ahe(n=e)&&(r=n.constructor,(hhe(r)&&(r===vhe||ahe(r.prototype))||$de(r)&&null===(r=r[ghe]))&&(r=void 0)),void 0===r?vhe:r)(0===t?0:t);var n,r},mhe=cde([].push),bhe=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=hde(s),g=Qpe(h),v=function(e,t){return rpe(e),void 0===t?e:Xpe?Xpe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=ihe(g),m=0,b=f||yhe,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:mhe(w,d)}else switch(e){case 4:return!1;case 7:mhe(w,d)}return i?-1:r||o?o:w}},whe=[bhe(0),bhe(1),bhe(2),bhe(3),bhe(4),bhe(5),bhe(6),bhe(7)][0],Ehe=(Wpe=[].forEach)&&Fde((function(){Wpe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return whe(this,e,arguments.length>1?arguments[1]:void 0)},Dhe=function(e){if(e&&e.forEach!==Ehe)try{ppe(e,"forEach",Ehe)}catch(t){e.forEach=Ehe}};for(var Che in Gpe)Gpe[Che]&&Dhe(tde[Che]&&tde[Che].prototype);Dhe(Ype);var She={}.propertyIsEnumerable,xhe=Object.getOwnPropertyDescriptor,Ahe={f:xhe&&!She.call({1:2},1)?function(e){var t=xhe(this,e);return!!t&&t.enumerable}:She},Ohe=function(e){return Qpe(dde(e))},khe=Object.getOwnPropertyDescriptor,Bhe={f:zde?khe:function(e,t){if(e=Ohe(e),t=spe(t),Wde)try{return khe(e,t)}catch(n){}if(vde(e,t))return dpe(!Xde(Ahe.f,e,t),e[t])}},Fhe=Math.max,The=Math.min,_he=function(e,t){var n=nhe(e);return n<0?Fhe(n+t,0):The(n,t)},Phe=function(e){return function(t,n,r){var o,i=Ohe(t),a=ihe(i),u=_he(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),jhe=cde([].push),Nhe=function(e,t){var n,r=Ohe(e),o=0,i=[];for(n in r)!vde(Cpe,n)&&vde(r,n)&&jhe(i,n);for(;t.length>o;)vde(r,n=t[o++])&&(~Phe(i,n)||jhe(i,n));return i},Ihe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Lhe=Ihe.concat("length","prototype"),Rhe={f:Object.getOwnPropertyNames||function(e){return Nhe(e,Lhe)}},Mhe={f:Object.getOwnPropertySymbols},zhe=cde([].concat),$he=Cde("Reflect","ownKeys")||function(e){var t=Rhe.f(Kde(e)),n=Mhe.f;return n?zhe(t,n(e)):t},Hhe=function(e,t){for(var n=$he(t),r=fpe.f,o=Bhe.f,i=0;i<n.length;i++){var a=n[i];vde(e,a)||r(e,a,o(t,a))}},Vhe=/#|\.prototype\./,Uhe=function(e,t){var n=Ghe[Whe(e)];return n==Khe||n!=qhe&&(Ede(t)?Fde(t):!!t)},Whe=Uhe.normalize=function(e){return String(e).replace(Vhe,".").toLowerCase()},Ghe=Uhe.data={},qhe=Uhe.NATIVE="N",Khe=Uhe.POLYFILL="P",Yhe=Uhe,Xhe=Bhe.f,Zhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?tde:l?tde[u]||rde(u,{}):(tde[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xhe(n,r))&&a.value:n[r],!Yhe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Hhe(i,o)}(e.sham||o&&o.sham)&&ppe(i,"sham",!0),Ipe(n,r,i,e)}},Jhe=Object.keys||function(e){return Nhe(e,Ihe)},Qhe=Object.assign,ege=Object.defineProperty,tge=cde([].concat),nge=!Qhe||Fde((function(){if(zde&&1!==Qhe({b:1},Qhe(ege({},"a",{enumerable:!0,get:function(){ege(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!=Qhe({},e)[n]||Jhe(Qhe({},t)).join("")!=r}))?function(e,t){for(var n=hde(e),r=arguments.length,o=1,i=Mhe.f,a=Ahe.f;r>o;)for(var u,s=Qpe(arguments[o++]),l=i?tge(Jhe(s),i(s)):Jhe(s),c=l.length,f=0;c>f;)u=l[f++],zde&&!Xde(a,s,u)||(n[u]=s[u]);return n}:Qhe;Zhe({target:"Object",stat:!0,forced:Object.assign!==nge},{assign:nge});var rge=Zfe((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,C=s;D!==t.tail&&!(f&&C>=f.reach);C+=D.value.length,D=D.next){var S=D.value;if(t.length>e.length)return;if(!(S instanceof i)){var x,A=1;if(m){if(!(x=a(E,C,e,y)))break;var O=x.index,k=x.index+x[0].length,B=C;for(B+=D.value.length;O>=B;)B+=(D=D.next).value.length;if(C=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--,S=e.slice(C,B),x.index-=C}else if(!(x=a(E,0,S,y)))continue;O=x.index;var T=x[0],_=S.slice(0,O),P=S.slice(O+T.length),j=C+S.length;f&&j>f.reach&&(f.reach=j);var N=D.prev;if(_&&(N=l(t,N,_),C+=_.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,C,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:{});
  88. /**
  89. * Prism: Lightweight, robust, elegant syntax highlighting
  90. *
  91. * @license MIT <https://opensource.org/licenses/MIT>
  92. * @author Lea Verou <https://lea.verou.me>
  93. * @namespace
  94. * @public
  95. */e.exports&&(e.exports=t),void 0!==Xfe&&(Xfe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),D=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\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,[x]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,D]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[D,d,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[D,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[D]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,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:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=x+"|"+S,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 oge=["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 ige(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+ige(t)}),0)}var age,uge=tde.String,sge=function(e){if("Symbol"===Vpe(e))throw TypeError("Cannot convert a Symbol value to a string");return uge(e)},lge=function(){var e=Kde(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},cge=tde.RegExp,fge=Fde((function(){var e=cge("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dge=fge||Fde((function(){return!cge("a","y").sticky})),pge={BROKEN_CARET:fge||Fde((function(){var e=cge("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dge,UNSUPPORTED_Y:fge},hge=zde?Object.defineProperties:function(e,t){Kde(e);for(var n,r=Ohe(t),o=Jhe(t),i=o.length,a=0;i>a;)fpe.f(e,n=o[a++],r[n]);return e},gge=Cde("document","documentElement"),vge=Dpe("IE_PROTO"),yge=function(){},mge=function(e){return"<script>"+e+"<\/script>"},bge=function(e){e.write(mge("")),e.close();var t=e.parentWindow.Object;return e=null,t},wge=function(){try{age=new ActiveXObject("htmlfile")}catch(r){}var e,t;wge="undefined"!=typeof document?document.domain&&age?bge(age):((t=Ude("iframe")).style.display="none",gge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(mge("document.F=Object")),e.close(),e.F):bge(age);for(var n=Ihe.length;n--;)delete wge.prototype[Ihe[n]];return wge()};Cpe[vge]=!0;var Ege,Dge,Cge=Object.create||function(e,t){var n;return null!==e?(yge.prototype=Kde(e),n=new yge,yge.prototype=null,n[vge]=e):n=wge(),void 0===t?n:hge(n,t)},Sge=tde.RegExp,xge=Fde((function(){var e=Sge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Age=tde.RegExp,Oge=Fde((function(){var e=Age("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),kge=Tpe.get,Bge=ide("native-string-replace",String.prototype.replace),Fge=RegExp.prototype.exec,Tge=Fge,_ge=cde("".charAt),Pge=cde("".indexOf),jge=cde("".replace),Nge=cde("".slice),Ige=(Dge=/b*/g,Xde(Fge,Ege=/a/,"a"),Xde(Fge,Dge,"a"),0!==Ege.lastIndex||0!==Dge.lastIndex),Lge=pge.BROKEN_CARET,Rge=void 0!==/()??/.exec("")[1];(Ige||Rge||Lge||xge||Oge)&&(Tge=function(e){var t,n,r,o,i,a,u,s=this,l=kge(s),c=sge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Xde(Tge,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Lge&&s.sticky,h=Xde(lge,s),g=s.source,v=0,y=c;if(p&&(h=jge(h,"y",""),-1===Pge(h,"g")&&(h+="g"),y=Nge(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==_ge(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Rge&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ige&&(r=s.lastIndex),o=Xde(Fge,p?n:s,y),p?o?(o.input=Nge(o.input,v),o[0]=Nge(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ige&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Rge&&o&&o.length>1&&Xde(Bge,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=Cge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Mge=Tge;Zhe({target:"RegExp",proto:!0,forced:/./.exec!==Mge},{exec:Mge});var zge=Function.prototype,$ge=zge.apply,Hge=zge.bind,Vge=zge.call,Uge="object"==typeof Reflect&&Reflect.apply||(Hge?Vge.bind($ge):function(){return Vge.apply($ge,arguments)}),Wge=Lde("species"),Gge=RegExp.prototype,qge=Lde("match"),Kge=tde.TypeError,Yge=Lde("species"),Xge=cde("".charAt),Zge=cde("".charCodeAt),Jge=cde("".slice),Qge=function(e){return function(t,n){var r,o,i=sge(dde(t)),a=nhe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Zge(i,a))<55296||r>56319||a+1===u||(o=Zge(i,a+1))<56320||o>57343?e?Xge(i,a):r:e?Jge(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),eve=function(e,t,n){return t+(n?Qge(e,t).length:1)},tve=tde.Array,nve=Math.max,rve=function(e,t,n){for(var r,o,i,a,u=ihe(e),s=_he(t,u),l=_he(void 0===n?u:n,u),c=tve(nve(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=spe(o))in r?fpe.f(r,a,dpe(0,i)):r[a]=i;return c.length=f,c},ove=tde.TypeError,ive=function(e,t){var n=e.exec;if(Ede(n)){var r=Xde(n,e,t);return null!==r&&Kde(r),r}if("RegExp"===Mpe(e))return Xde(Mge,e,t);throw ove("RegExp#exec called on incompatible receiver")},ave=pge.UNSUPPORTED_Y,uve=Math.min,sve=[].push,lve=cde(/./.exec),cve=cde(sve),fve=cde("".slice);!function(e,t,n,r){var o,i,a,u=Lde(e),s=!Fde((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Fde((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Wge]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=cde(/./[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=sge(dde(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!$de(n=e)||!(void 0!==(r=n[qge])?r:"RegExp"==Mpe(n)))return Xde(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=Xde(Mge,p,o))&&!((s=p.lastIndex)>d&&(cve(c,fve(o,d,u.index)),u.length>1&&u.index<o.length&&Uge(sve,c,rve(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&lve(p,"")||cve(c,""):cve(c,fve(o,d)),c.length>a?rve(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Xde(i,this,e,t)}:i,[function(e,t){var n=dde(this),r=null==e?void 0:ope(e,o);return r?Xde(r,e,n,t):Xde(a,sge(n),e,t)},function(e,t){var n=Kde(this),r=sge(e),o=function(e,t,n,r,o){var i=cde(e),a=t.exec;return a===Mge||a===Gge.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=Kde(n).constructor)||null==(l=Kde(f)[Yge])?u:function(e){if(hhe(e))return e;throw Kge(tpe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(ave?"g":"y"),g=new d(ave?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===ive(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=ave?0:m;var w,E=ive(g,ave?fve(r,m):r);if(null===E||(w=uve(ohe(g.lastIndex+(ave?m:0)),r.length))===y)m=eve(r,m,p);else{if(cve(b,fve(r,y,m)),b.length===v)return b;for(var D=1;D<=E.length-1;D++)if(cve(b,E[D]),b.length===v)return b;m=y=w}}return cve(b,fve(r,y)),b}]);Ipe(String.prototype,e,f[0]),Ipe(Gge,u,f[1])}r&&ppe(Gge[u],"sham",!0)}("split",0,!!Fde((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]})),ave),Zhe({global:!0},{globalThis:tde}),qp&&(Vp.fn.attr=qp);var dve=Npe.PROPER,pve=RegExp.prototype,hve=pve.toString,gve=cde(lge),vve=Fde((function(){return"/a/b"!=hve.call({source:"a",flags:"b"})})),yve=dve&&"toString"!=hve.name;(vve||yve)&&Ipe(RegExp.prototype,"toString",(function(){var e=Kde(this),t=sge(e.source),n=e.flags;return"/"+t+"/"+sge(void 0===n&&Zde(pve,e)&&!("flags"in pve)?gve(e):n)}),{unsafe:!0});var mve=function(){function e(){this.title=AP("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(!jf.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()};kd.setNodes(e,n,{match:function(e){return zO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=zO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=zO.getParentNode(e,t);return jf.isElement(n)?"pre"!==n.type?null:t:null},e}(),bve={renderStyle:function(e,t){var n=e,r=t,o="";return oge.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=Vp(e);if(!jf.isElement(t))return t;if("code"!==zO.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 mve},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>"}}]},wve=/"/g,Eve=cde("".replace);Zhe({target:"String",proto:!0,forced:Fde((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=sge(dde(this)),r="<a",(r+=' name="'+Eve(sge(t),wve,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var Dve=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(!cd.isText(e))return null;var t=zO.getParentNode(null,e);if(t&&"code"===zO.getNodeType(t)){var n=zO.getParentNode(null,t);if(n&&"pre"===zO.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=rge.languages[t];return n?rge.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+ige(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},Cve=function(){return Cve=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},Cve.apply(this,arguments)},Sve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Cve(Cve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Cve(Cve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Cve(Cve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Cve(Cve({},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=Wx(Wx({},a),t||{});if(null!=VO[o])throw new Error("Duplicated key '"+o+"' in menu items");VO[o]=i,n=o,null!=(r=u)&&(HO[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;OT[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,AT.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;nk[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,tk.push(t)},e.registerPreParseHtml=function(e){var t;t=e,UB.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;GB[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,WB.push(t)},e.registerModule=function(e){xve(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
  96. /*! *****************************************************************************
  97. Copyright (c) Microsoft Corporation.
  98. Permission to use, copy, modify, and/or distribute this software for any
  99. purpose with or without fee is hereby granted.
  100. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  101. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  102. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  103. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  104. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  105. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  106. PERFORMANCE OF THIS SOFTWARE.
  107. ***************************************************************************** */function xve(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Sve.registerMenu(e)})),n&&n.forEach((function(e){return Sve.registerRenderElem(e)})),r&&Sve.registerRenderStyle(r),o&&o.forEach((function(e){return Sve.registerElemToHtml(e)})),i&&Sve.registerStyleToHtml(i),a&&a.forEach((function(e){return Sve.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Sve.registerParseElemHtml(e)})),s&&Sve.registerParseStyleHtml(s),l&&Sve.registerPlugin(l)}Bq.forEach((function(e){return xve(e)})),xve(YQ),xve(F3),xve(Qre),xve(Yfe),xve(bve);var Ave='<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>',Ove={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"]}},kve={hoverbarKeys:Cve(Cve({},Ove),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Sve.setEditorConfig(Cve(Cve({},kve),{decorate:Dve}));var Bve={hoverbarKeys:Ove};Sve.setSimpleEditorConfig(Cve(Cve({},Bve),{decorate:Dve}));var Fve={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:AP("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:AP("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:AP("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:AP("editor.image"),iconSvg:Ave,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:AP("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"]};Sve.setToolbarConfig(Fve);var Tve={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:AP("editor.image"),iconSvg:Ave,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Sve.setSimpleToolbarConfig(Tve);var _ve=Object.defineProperty,Pve=Object.defineProperties,jve=Object.getOwnPropertyDescriptors,Nve=Object.getOwnPropertySymbols,Ive=Object.prototype.hasOwnProperty,Lve=Object.prototype.propertyIsEnumerable,Rve=(e,t,n)=>t in e?_ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mve=(e,t)=>{for(var n in t||(t={}))Ive.call(t,n)&&Rve(e,n,t[n]);if(Nve)for(var n of Nve(t))Lve.call(t,n)&&Rve(e,n,t[n]);return e},zve=(e,t)=>Pve(e,jve(t));function $ve(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var Hve=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Vve=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,i){const u=t(null),s=n(null),l=t(""),c=()=>{if(!u.value)return;const t=a(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)?Sve.simpleEditorConfig:Sve.editorConfig,c=Cve(Cve({},l.hoverbarKeys||{}),u.hoverbarKeys||{});D_({selector:n,config:Cve(Cve(Cve({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Sve.plugins})}({selector:u.value,mode:e.mode,content:t||[],html:e.defaultHtml||e.modelValue||"",config:zve(Mve({},e.defaultConfig),{onCreated(t){if(s.value=t,i.emit("onCreated",t),e.defaultConfig.onCreated){const e=$ve("onCreated");throw new Error(e)}},onChange(t){const n=t.getHtml();if(l.value=n,i.emit("update:modelValue",n),i.emit("onChange",t),e.defaultConfig.onChange){const e=$ve("onChange");throw new Error(e)}},onDestroyed(t){if(i.emit("onDestroyed",t),e.defaultConfig.onDestroyed){const e=$ve("onDestroyed");throw new Error(e)}},onMaxLength(t){if(i.emit("onMaxLength",t),e.defaultConfig.onMaxLength){const e=$ve("onMaxLength");throw new Error(e)}},onFocus(t){if(i.emit("onFocus",t),e.defaultConfig.onFocus){const e=$ve("onFocus");throw new Error(e)}},onBlur(t){if(i.emit("onBlur",t),e.defaultConfig.onBlur){const e=$ve("onBlur");throw new Error(e)}},customAlert(t,n){if(i.emit("customAlert",t,n),e.defaultConfig.customAlert){const e=$ve("customAlert");throw new Error(e)}},customPaste:(t,n)=>{if(e.defaultConfig.customPaste){const e=$ve("customPaste");throw new Error(e)}let r;return i.emit("customPaste",t,n,(e=>{r=e})),r}})})};return r((()=>{c()})),o((()=>e.modelValue),(e=>{e!==l.value&&function(e){const t=s.value;null!=t&&t.setHtml(e)}(e)})),{box:u}}}),Uve={ref:"box",style:{height:"100%"}};var Wve=Hve(Vve,[["render",function(e,t,n,r,o,i){return u(),s("div",Uve,null,512)}]]);const Gve=e({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const n=t(null),r=t=>{if(n.value){if(null==t)throw new Error("Not found instance of Editor when create <Toolbar/> component");zO.getToolbar(t)||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?Sve.simpleToolbarConfig:Sve.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(SF(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=Wx({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new O_(n,i);KA.set(a,e),YA.set(e,a)})(n,{selector:t,config:Cve(Cve({},u),o)})}({editor:t,selector:n.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return i((()=>{const{editor:t}=e;null!=t&&r(t)})),{selector:n}}}),qve={ref:"selector"};var Kve=Hve(Gve,[["render",function(e,t,n,r,o,i){return u(),s("div",qve,null,512)}]]);const Yve={__name:"wangEditor",props:["modelValue"],setup(e,{emit:r}){const i=l(),a=r,y=e,m=n(),b=window.innerWidth>500?"default":"simple",w=t(y.modelValue),E={excludeKeys:["headerSelect","group-video","emotion","fontFamily","insertImage","undo","redo","todo","fullScreen"]};window.innerWidth<500&&E.excludeKeys.push("header1","header2","header3","headerSelect","insertVideo","bulletedList","insertTable","clearStyle","through","italic","underline","strikeThrough","sup","sub","justifyLeft","justifyRight","justifyCenter","justifyJustify","justifyDistributed");const D={MENU_CONF:{uploadImage:{fieldName:"file",maxNumberOfFiles:10,allowedFileTypes:["image/*"],server:c+i.state.site.upload,customInsert(e,t){t(f(e.data.url))}}},placeholder:"请输入内容..."};window.innerWidth<500&&(D.autoFocus=!1);const C=e=>{m.value=e};return o((()=>y.modelValue),(e=>{w.value=e})),o(w,(e=>{a("update:modelValue",e)})),d((()=>{try{const e=m.value;if(null==e)return;e.destroy()}catch($l){}})),p((()=>{try{const e=m.value;if(null==e)return;e.destroy()}catch($l){}})),(e,t)=>(u(),s(v,null,[h(g(Kve),{editor:m.value,defaultConfig:E,mode:g(b)},null,8,["editor","mode"]),h(g(Wve),{class:"editorDiv",modelValue:w.value,"onUpdate:modelValue":t[0]||(t[0]=e=>w.value=e),defaultConfig:D,mode:g(b),onOnCreated:C},null,8,["modelValue","mode"])],64))}};export{Yve as _};