123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- import{d as e,r as t,s as n,i as r,w as o,f as i,t as a,o as u,c as s}from"../@vue/@vue.2e72eb65.js";var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function c(e){var t={exports:{}};return e(t,t.exports),t.exports}var f,d,p=function(e){return e&&e.Math==Math&&e},h=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),g=Function.prototype,v=g.apply,y=g.bind,m=g.call,b="object"==typeof Reflect&&Reflect.apply||(y?m.bind(v):function(){return m.apply(v,arguments)}),w=Function.prototype,E=w.bind,D=w.call,C=E&&E.bind(D),S=E?function(e){return e&&C(D,e)}:function(e){return e&&function(){return D.apply(e,arguments)}},x=function(e){return"function"==typeof e},A=function(e){try{return!!e()}catch(t){return!0}},O=!A((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),k=Function.prototype.call,B=k.bind?k.bind(k):function(){return k.apply(k,arguments)},F={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,_=T&&!F.call({1:2},1)?function(e){var t=T(this,e);return!!t&&t.enumerable}:F,P={f:_},j=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},N=S({}.toString),I=S("".slice),L=function(e){return I(N(e),8,-1)},R=h.Object,M=S("".split),z=A((function(){return!R("z").propertyIsEnumerable(0)}))?function(e){return"String"==L(e)?M(e,""):R(e)}:R,$=h.TypeError,H=function(e){if(null==e)throw $("Can't call method on "+e);return e},V=function(e){return z(H(e))},U=function(e){return"object"==typeof e?null!==e:x(e)},W={},G=function(e){return x(e)?e:void 0},q=function(e,t){return arguments.length<2?G(W[e])||G(h[e]):W[e]&&W[e][t]||h[e]&&h[e][t]},K=S({}.isPrototypeOf),Y=q("navigator","userAgent")||"",X=h.process,Z=h.Deno,J=X&&X.versions||Z&&Z.version,Q=J&&J.v8;Q&&(d=(f=Q.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!d&&Y&&(!(f=Y.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=Y.match(/Chrome\/(\d+)/))&&(d=+f[1]);var ee,te=d,ne=!!Object.getOwnPropertySymbols&&!A((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&te&&te<41})),re=ne&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,oe=h.Object,ie=re?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return x(t)&&K(t.prototype,oe(e))},ae=h.String,ue=function(e){try{return ae(e)}catch(t){return"Object"}},se=h.TypeError,le=function(e){if(x(e))return e;throw se(ue(e)+" is not a function")},ce=function(e,t){var n=e[t];return null==n?void 0:le(n)},fe=h.TypeError,de=Object.defineProperty,pe=h["__core-js_shared__"]||function(e,t){try{de(h,e,{value:t,configurable:!0,writable:!0})}catch(oP){h[e]=t}return t}("__core-js_shared__",{}),he=c((function(e){(e.exports=function(e,t){return pe[e]||(pe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ge=h.Object,ve=function(e){return ge(H(e))},ye=S({}.hasOwnProperty),me=Object.hasOwn||function(e,t){return ye(ve(e),t)},be=0,we=Math.random(),Ee=S(1..toString),De=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ee(++be+we,36)},Ce=he("wks"),Se=h.Symbol,xe=Se&&Se.for,Ae=re?Se:Se&&Se.withoutSetter||De,Oe=function(e){if(!me(Ce,e)||!ne&&"string"!=typeof Ce[e]){var t="Symbol."+e;ne&&me(Se,e)?Ce[e]=Se[e]:Ce[e]=re&&xe?xe(t):Ae(t)}return Ce[e]},ke=h.TypeError,Be=Oe("toPrimitive"),Fe=function(e){var t=function(e,t){if(!U(e)||ie(e))return e;var n,r=ce(e,Be);if(r){if(void 0===t&&(t="default"),n=B(r,e,t),!U(n)||ie(n))return n;throw ke("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&x(n=e.toString)&&!U(r=B(n,e)))return r;if(x(n=e.valueOf)&&!U(r=B(n,e)))return r;if("string"!==t&&x(n=e.toString)&&!U(r=B(n,e)))return r;throw fe("Can't convert object to primitive value")}(e,t)}(e,"string");return ie(t)?t:t+""},Te=h.document,_e=U(Te)&&U(Te.createElement),Pe=function(e){return _e?Te.createElement(e):{}},je=!O&&!A((function(){return 7!=Object.defineProperty(Pe("div"),"a",{get:function(){return 7}}).a})),Ne=Object.getOwnPropertyDescriptor,Ie=O?Ne:function(e,t){if(e=V(e),t=Fe(t),je)try{return Ne(e,t)}catch(n){}if(me(e,t))return j(!B(P.f,e,t),e[t])},Le={f:Ie},Re=/#|\.prototype\./,Me=function(e,t){var n=$e[ze(e)];return n==Ve||n!=He&&(x(t)?A(t):!!t)},ze=Me.normalize=function(e){return String(e).replace(Re,".").toLowerCase()},$e=Me.data={},He=Me.NATIVE="N",Ve=Me.POLYFILL="P",Ue=Me,We=S(S.bind),Ge=function(e,t){return le(e),void 0===t?e:We?We(e,t):function(){return e.apply(t,arguments)}},qe=h.String,Ke=h.TypeError,Ye=function(e){if(U(e))return e;throw Ke(qe(e)+" is not an object")},Xe=h.TypeError,Ze=Object.defineProperty,Je=O?Ze:function(e,t,n){if(Ye(e),t=Fe(t),Ye(n),je)try{return Ze(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Xe("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Qe={f:Je},et=O?function(e,t,n){return Qe.f(e,t,j(1,n))}:function(e,t,n){return e[t]=n,e},tt=Le.f,nt=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 b(e,this,arguments)};return t.prototype=e.prototype,t},rt=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,g=f?h:d?h[c]:(h[c]||{}).prototype,v=f?W:W[c]||et(W,c,{})[c],y=v.prototype;for(o in t)n=!Ue(f?o:c+(d?".":"#")+o,e.forced)&&g&&me(g,o),a=v[o],n&&(u=e.noTargetGet?(l=tt(g,o))&&l.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?Ge(i,h):e.wrap&&n?nt(i):p&&x(i)?S(i):i,(e.sham||i&&i.sham||a&&a.sham)&&et(s,"sham",!0),et(v,o,s),p&&(me(W,r=c+"Prototype")||et(W,r,{}),et(W[r],o,i),e.real&&y&&!y[o]&&et(y,o,i)))},ot=he("keys"),it=function(e){return ot[e]||(ot[e]=De(e))},at=!A((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ut=it("IE_PROTO"),st=h.Object,lt=st.prototype,ct=at?st.getPrototypeOf:function(e){var t=ve(e);if(me(t,ut))return t[ut];var n=t.constructor;return x(n)&&t instanceof n?n.prototype:t instanceof st?lt:null},ft=h.String,dt=h.TypeError,pt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=S(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Ye(n),function(e){if("object"==typeof e||x(e))return e;throw dt("Can't set "+ft(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ht=Math.ceil,gt=Math.floor,vt=function(e){var t=+e;return t!=t||0===t?0:(t>0?gt:ht)(t)},yt=Math.max,mt=Math.min,bt=function(e,t){var n=vt(e);return n<0?yt(n+t,0):mt(n,t)},wt=Math.min,Et=function(e){return(t=e.length)>0?wt(vt(t),9007199254740991):0;var t},Dt=function(e){return function(t,n,r){var o,i=V(t),a=Et(i),u=bt(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}},Ct={includes:Dt(!0),indexOf:Dt(!1)},St={},xt=Ct.indexOf,At=S([].push),Ot=function(e,t){var n,r=V(e),o=0,i=[];for(n in r)!me(St,n)&&me(r,n)&&At(i,n);for(;t.length>o;)me(r,n=t[o++])&&(~xt(i,n)||At(i,n));return i},kt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Bt=kt.concat("length","prototype"),Ft=Object.getOwnPropertyNames||function(e){return Ot(e,Bt)},Tt={f:Ft},_t={f:Object.getOwnPropertySymbols},Pt=S([].concat),jt=q("Reflect","ownKeys")||function(e){var t=Tt.f(Ye(e)),n=_t.f;return n?Pt(t,n(e)):t},Nt=Object.keys||function(e){return Ot(e,kt)},It=O?Object.defineProperties:function(e,t){Ye(e);for(var n,r=V(t),o=Nt(t),i=o.length,a=0;i>a;)Qe.f(e,n=o[a++],r[n]);return e},Lt=q("document","documentElement"),Rt=it("IE_PROTO"),Mt=function(){},zt=function(e){return"<script>"+e+"<\/script>"},$t=function(e){e.write(zt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ht=function(){try{ee=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ht="undefined"!=typeof document?document.domain&&ee?$t(ee):((t=Pe("iframe")).style.display="none",Lt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zt("document.F=Object")),e.close(),e.F):$t(ee);for(var n=kt.length;n--;)delete Ht.prototype[kt[n]];return Ht()};St[Rt]=!0;var Vt=Object.create||function(e,t){var n;return null!==e?(Mt.prototype=Ye(e),n=new Mt,Mt.prototype=null,n[Rt]=e):n=Ht(),void 0===t?n:It(n,t)},Ut=function(e,t,n){var r=Fe(t);r in e?Qe.f(e,r,j(0,n)):e[r]=n},Wt=h.Array,Gt=Math.max,qt=function(e,t,n){for(var r=Et(e),o=bt(t,r),i=bt(void 0===n?r:n,r),a=Wt(Gt(i-o,0)),u=0;o<i;o++,u++)Ut(a,u,e[o]);return a.length=u,a},Kt=S("".replace),Yt=S("".split),Xt=S([].join),Zt=String(Error("zxcasd").stack),Jt=/\n\s*at [^:]*:[^\n]*/,Qt=Jt.test(Zt),en=/@[^\n]*\n/.test(Zt)&&!/zxcasd/.test(Zt),tn={},nn=Oe("iterator"),rn=Array.prototype,on={};on[Oe("toStringTag")]="z";var an="[object z]"===String(on),un=Oe("toStringTag"),sn=h.Object,ln="Arguments"==L(function(){return arguments}()),cn=an?L: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=sn(e),un))?n:ln?L(t):"Object"==(r=L(t))&&x(t.callee)?"Arguments":r},fn=Oe("iterator"),dn=function(e){if(null!=e)return ce(e,fn)||ce(e,"@@iterator")||tn[cn(e)]},pn=h.TypeError,hn=function(e,t,n){var r,o;Ye(e);try{if(!(r=ce(e,"return"))){if("throw"===t)throw n;return n}r=B(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Ye(r),n},gn=h.TypeError,vn=function(e,t){this.stopped=e,this.result=t},yn=vn.prototype,mn=h.String,bn=function(e){if("Symbol"===cn(e))throw TypeError("Cannot convert a Symbol value to a string");return mn(e)},wn=!A((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",j(1,7)),7!==e.stack)})),En=Oe("toStringTag"),Dn=h.Error,Cn=[].push,Sn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=K(xn,this);pt?n=pt(new Dn(void 0),o?ct(this):xn):(n=o?this:Vt(xn),et(n,En,"Error")),et(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:bn(e)}(t,"")),wn&&et(n,"stack",function(e,t){if("string"!=typeof e)return e;if(Qt)for(;t--;)e=Kt(e,Jt,"");else if(en)return Xt(qt(Yt(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){U(t)&&"cause"in t&&et(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Ge(t,f),v=function(e){return r&&hn(r,"normal",e),new vn(!0,e)},y=function(e){return d?(Ye(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 gn(ue(e)+" is not iterable");if(void 0!==(c=o)&&(tn.Array===c||rn[nn]===c)){for(i=0,a=Et(e);a>i;i++)if((u=y(e[i]))&&K(yn,u))return u;return new vn(!1)}r=function(e,t){var n=arguments.length<2?dn(e):t;if(le(n))return Ye(B(n,e));throw pn(ue(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=B(s,r)).done;){try{u=y(l.value)}catch(c){hn(r,"throw",c)}if("object"==typeof u&&u&&K(yn,u))return u}new vn(!1)}(e,Cn,{that:i}),et(n,"errors",i),n};pt?pt(Sn,Dn):function(e,t){for(var n=jt(t),r=Qe.f,o=Le.f,i=0;i<n.length;i++){var a=n[i];me(e,a)||r(e,a,o(t,a))}}(Sn,Dn);var xn=Sn.prototype=Vt(Dn.prototype,{constructor:j(1,Sn),message:j(1,""),name:j(1,"AggregateError")});rt({global:!0},{AggregateError:Sn});var An=S(Function.toString);x(pe.inspectSource)||(pe.inspectSource=function(e){return An(e)});var On,kn,Bn,Fn=pe.inspectSource,Tn=h.WeakMap,_n=x(Tn)&&/native code/.test(Fn(Tn)),Pn=h.TypeError,jn=h.WeakMap;if(_n||pe.state){var Nn=pe.state||(pe.state=new jn),In=S(Nn.get),Ln=S(Nn.has),Rn=S(Nn.set);On=function(e,t){if(Ln(Nn,e))throw new Pn("Object already initialized");return t.facade=e,Rn(Nn,e,t),t},kn=function(e){return In(Nn,e)||{}},Bn=function(e){return Ln(Nn,e)}}else{var Mn=it("state");St[Mn]=!0,On=function(e,t){if(me(e,Mn))throw new Pn("Object already initialized");return t.facade=e,et(e,Mn,t),t},kn=function(e){return me(e,Mn)?e[Mn]:{}},Bn=function(e){return me(e,Mn)}}var zn,$n,Hn,Vn={set:On,get:kn,has:Bn,enforce:function(e){return Bn(e)?kn(e):On(e,{})},getterFor:function(e){return function(t){var n;if(!U(t)||(n=kn(t)).type!==e)throw Pn("Incompatible receiver, "+e+" required");return n}}},Un=Function.prototype,Wn=O&&Object.getOwnPropertyDescriptor,Gn=me(Un,"name"),qn={EXISTS:Gn,PROPER:Gn&&"something"===function(){}.name,CONFIGURABLE:Gn&&(!O||O&&Wn(Un,"name").configurable)},Kn=function(e,t,n,r){r&&r.enumerable?e[t]=n:et(e,t,n)},Yn=Oe("iterator"),Xn=!1;[].keys&&("next"in(Hn=[].keys())?($n=ct(ct(Hn)))!==Object.prototype&&(zn=$n):Xn=!0);var Zn=null==zn||A((function(){var e={};return zn[Yn].call(e)!==e}));zn=Zn?{}:Vt(zn),x(zn[Yn])||Kn(zn,Yn,(function(){return this}));var Jn={IteratorPrototype:zn,BUGGY_SAFARI_ITERATORS:Xn},Qn=an?{}.toString:function(){return"[object "+cn(this)+"]"},er=Qe.f,tr=Oe("toStringTag"),nr=function(e,t,n,r){if(e){var o=n?e:e.prototype;me(o,tr)||er(o,tr,{configurable:!0,value:t}),r&&!an&&et(o,"toString",Qn)}},rr=Jn.IteratorPrototype,or=function(){return this},ir=qn.PROPER,ar=Jn.BUGGY_SAFARI_ITERATORS,ur=Oe("iterator"),sr=function(){return this},lr=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Vt(rr,{next:j(1,s)}),nr(u,l,!1,!0),tn[l]=or;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ar&&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[ur]||v["@@iterator"]||o&&v[o],m=!ar&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=ct(b.call(new e)))!==Object.prototype&&c.next&&(nr(c,h,!0,!0),tn[h]=sr),ir&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return B(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ar||g||!(d in v))&&Kn(v,d,f[d]);else rt({target:t,proto:!0,forced:ar||g},f);return a&&v[ur]!==m&&Kn(v,ur,m,{name:o}),tn[t]=m,f},cr=Vn.set,fr=Vn.getterFor("Array Iterator");lr(Array,"Array",(function(e,t){cr(this,{type:"Array Iterator",target:V(e),index:0,kind:t})}),(function(){var e=fr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),tn.Arguments=tn.Array;var dr=S("".charAt),pr=S("".charCodeAt),hr=S("".slice),gr=function(e){return function(t,n){var r,o,i=bn(H(t)),a=vt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=pr(i,a))<55296||r>56319||a+1===u||(o=pr(i,a+1))<56320||o>57343?e?dr(i,a):r:e?hr(i,a,a+2):o-56320+(r-55296<<10)+65536}},vr=(gr(!1),gr(!0)),yr=Vn.set,mr=Vn.getterFor("String Iterator");lr(String,"String",(function(e){yr(this,{type:"String Iterator",string:bn(e),index:0})}),(function(){var e,t=mr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vr(n,r),t.index+=e.length,{value:e,done:!1})}));var br=W.AggregateError,wr=Oe("toStringTag");for(var Er in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Dr=h[Er],Cr=Dr&&Dr.prototype;Cr&&cn(Cr)!==wr&&et(Cr,wr,Er),tn[Er]=tn.Array}var Sr,xr,Ar=br,Or=function(e){return e&&e.Math==Math&&e},kr=Or("object"==typeof globalThis&&globalThis)||Or("object"==typeof window&&window)||Or("object"==typeof self&&self)||Or("object"==typeof l&&l)||function(){return this}()||Function("return this")(),Br=function(e){try{return!!e()}catch(t){return!0}},Fr=!Br((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Tr=Function.prototype.call,_r=Tr.bind?Tr.bind(Tr):function(){return Tr.apply(Tr,arguments)},Pr={}.propertyIsEnumerable,jr=Object.getOwnPropertyDescriptor,Nr=jr&&!Pr.call({1:2},1)?function(e){var t=jr(this,e);return!!t&&t.enumerable}:Pr,Ir={f:Nr},Lr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Function.prototype,Mr=Rr.bind,zr=Rr.call,$r=Mr&&Mr.bind(zr),Hr=Mr?function(e){return e&&$r(zr,e)}:function(e){return e&&function(){return zr.apply(e,arguments)}},Vr=Hr({}.toString),Ur=Hr("".slice),Wr=function(e){return Ur(Vr(e),8,-1)},Gr=kr.Object,qr=Hr("".split),Kr=Br((function(){return!Gr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Wr(e)?qr(e,""):Gr(e)}:Gr,Yr=kr.TypeError,Xr=function(e){if(null==e)throw Yr("Can't call method on "+e);return e},Zr=function(e){return Kr(Xr(e))},Jr=function(e){return"function"==typeof e},Qr=function(e){return"object"==typeof e?null!==e:Jr(e)},eo=function(e,t){return arguments.length<2?function(e){return Jr(e)?e:void 0}(kr[e]):kr[e]&&kr[e][t]},to=Hr({}.isPrototypeOf),no=eo("navigator","userAgent")||"",ro=kr.process,oo=kr.Deno,io=ro&&ro.versions||oo&&oo.version,ao=io&&io.v8;ao&&(xr=(Sr=ao.split("."))[0]>0&&Sr[0]<4?1:+(Sr[0]+Sr[1])),!xr&&no&&(!(Sr=no.match(/Edge\/(\d+)/))||Sr[1]>=74)&&(Sr=no.match(/Chrome\/(\d+)/))&&(xr=+Sr[1]);var uo=xr,so=!!Object.getOwnPropertySymbols&&!Br((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uo&&uo<41})),lo=so&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,co=kr.Object,fo=lo?function(e){return"symbol"==typeof e}:function(e){var t=eo("Symbol");return Jr(t)&&to(t.prototype,co(e))},po=kr.String,ho=function(e){try{return po(e)}catch(t){return"Object"}},go=kr.TypeError,vo=function(e){if(Jr(e))return e;throw go(ho(e)+" is not a function")},yo=function(e,t){var n=e[t];return null==n?void 0:vo(n)},mo=kr.TypeError,bo=Object.defineProperty,wo=function(e,t){try{bo(kr,e,{value:t,configurable:!0,writable:!0})}catch(oP){kr[e]=t}return t},Eo=kr["__core-js_shared__"]||wo("__core-js_shared__",{}),Do=c((function(e){(e.exports=function(e,t){return Eo[e]||(Eo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Co=kr.Object,So=function(e){return Co(Xr(e))},xo=Hr({}.hasOwnProperty),Ao=Object.hasOwn||function(e,t){return xo(So(e),t)},Oo=0,ko=Math.random(),Bo=Hr(1..toString),Fo=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bo(++Oo+ko,36)},To=Do("wks"),_o=kr.Symbol,Po=_o&&_o.for,jo=lo?_o:_o&&_o.withoutSetter||Fo,No=function(e){if(!Ao(To,e)||!so&&"string"!=typeof To[e]){var t="Symbol."+e;so&&Ao(_o,e)?To[e]=_o[e]:To[e]=lo&&Po?Po(t):jo(t)}return To[e]},Io=kr.TypeError,Lo=No("toPrimitive"),Ro=function(e){var t=function(e,t){if(!Qr(e)||fo(e))return e;var n,r=yo(e,Lo);if(r){if(void 0===t&&(t="default"),n=_r(r,e,t),!Qr(n)||fo(n))return n;throw Io("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Jr(n=e.toString)&&!Qr(r=_r(n,e)))return r;if(Jr(n=e.valueOf)&&!Qr(r=_r(n,e)))return r;if("string"!==t&&Jr(n=e.toString)&&!Qr(r=_r(n,e)))return r;throw mo("Can't convert object to primitive value")}(e,t)}(e,"string");return fo(t)?t:t+""},Mo=kr.document,zo=Qr(Mo)&&Qr(Mo.createElement),$o=function(e){return zo?Mo.createElement(e):{}},Ho=!Fr&&!Br((function(){return 7!=Object.defineProperty($o("div"),"a",{get:function(){return 7}}).a})),Vo=Object.getOwnPropertyDescriptor,Uo=Fr?Vo:function(e,t){if(e=Zr(e),t=Ro(t),Ho)try{return Vo(e,t)}catch(n){}if(Ao(e,t))return Lr(!_r(Ir.f,e,t),e[t])},Wo={f:Uo},Go=kr.String,qo=kr.TypeError,Ko=function(e){if(Qr(e))return e;throw qo(Go(e)+" is not an object")},Yo=kr.TypeError,Xo=Object.defineProperty,Zo=Fr?Xo:function(e,t,n){if(Ko(e),t=Ro(t),Ko(n),Ho)try{return Xo(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Yo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Jo={f:Zo},Qo=Fr?function(e,t,n){return Jo.f(e,t,Lr(1,n))}:function(e,t,n){return e[t]=n,e},ei=Hr(Function.toString);Jr(Eo.inspectSource)||(Eo.inspectSource=function(e){return ei(e)});var ti,ni,ri,oi=Eo.inspectSource,ii=kr.WeakMap,ai=Jr(ii)&&/native code/.test(oi(ii)),ui=Do("keys"),si=function(e){return ui[e]||(ui[e]=Fo(e))},li={},ci=kr.TypeError,fi=kr.WeakMap;if(ai||Eo.state){var di=Eo.state||(Eo.state=new fi),pi=Hr(di.get),hi=Hr(di.has),gi=Hr(di.set);ti=function(e,t){if(hi(di,e))throw new ci("Object already initialized");return t.facade=e,gi(di,e,t),t},ni=function(e){return pi(di,e)||{}},ri=function(e){return hi(di,e)}}else{var vi=si("state");li[vi]=!0,ti=function(e,t){if(Ao(e,vi))throw new ci("Object already initialized");return t.facade=e,Qo(e,vi,t),t},ni=function(e){return Ao(e,vi)?e[vi]:{}},ri=function(e){return Ao(e,vi)}}var yi={set:ti,get:ni,has:ri,enforce:function(e){return ri(e)?ni(e):ti(e,{})},getterFor:function(e){return function(t){var n;if(!Qr(t)||(n=ni(t)).type!==e)throw ci("Incompatible receiver, "+e+" required");return n}}},mi=Function.prototype,bi=Fr&&Object.getOwnPropertyDescriptor,wi=Ao(mi,"name"),Ei={EXISTS:wi,PROPER:wi&&"something"===function(){}.name,CONFIGURABLE:wi&&(!Fr||Fr&&bi(mi,"name").configurable)},Di=c((function(e){var t=Ei.CONFIGURABLE,n=yi.get,r=yi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Jr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ao(i,"name")||t&&i.name!==f)&&Qo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==kr?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Qo(e,n,i)):l?e[n]=i:wo(n,i)})(Function.prototype,"toString",(function(){return Jr(this)&&n(this).source||oi(this)}))})),Ci=Math.ceil,Si=Math.floor,xi=function(e){var t=+e;return t!=t||0===t?0:(t>0?Si:Ci)(t)},Ai=Math.max,Oi=Math.min,ki=function(e,t){var n=xi(e);return n<0?Ai(n+t,0):Oi(n,t)},Bi=Math.min,Fi=function(e){return e>0?Bi(xi(e),9007199254740991):0},Ti=function(e){return Fi(e.length)},_i=function(e){return function(t,n,r){var o,i=Zr(t),a=Ti(i),u=ki(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}},Pi=(_i(!0),_i(!1)),ji=Hr([].push),Ni=function(e,t){var n,r=Zr(e),o=0,i=[];for(n in r)!Ao(li,n)&&Ao(r,n)&&ji(i,n);for(;t.length>o;)Ao(r,n=t[o++])&&(~Pi(i,n)||ji(i,n));return i},Ii=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Li=Ii.concat("length","prototype"),Ri=Object.getOwnPropertyNames||function(e){return Ni(e,Li)},Mi={f:Ri},zi={f:Object.getOwnPropertySymbols},$i=Hr([].concat),Hi=eo("Reflect","ownKeys")||function(e){var t=Mi.f(Ko(e)),n=zi.f;return n?$i(t,n(e)):t},Vi=function(e,t){for(var n=Hi(t),r=Jo.f,o=Wo.f,i=0;i<n.length;i++){var a=n[i];Ao(e,a)||r(e,a,o(t,a))}},Ui=/#|\.prototype\./,Wi=function(e,t){var n=qi[Gi(e)];return n==Yi||n!=Ki&&(Jr(t)?Br(t):!!t)},Gi=Wi.normalize=function(e){return String(e).replace(Ui,".").toLowerCase()},qi=Wi.data={},Ki=Wi.NATIVE="N",Yi=Wi.POLYFILL="P",Xi=Wi,Zi=Wo.f,Ji=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?kr:l?kr[u]||wo(u,{}):(kr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Zi(n,r))&&a.value:n[r],!Xi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Vi(i,o)}(e.sham||o&&o.sham)&&Qo(i,"sham",!0),Di(n,r,i,e)}},Qi={};Qi[No("toStringTag")]="z";var ea,ta="[object z]"===String(Qi),na=No("toStringTag"),ra=kr.Object,oa="Arguments"==Wr(function(){return arguments}()),ia=ta?Wr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=ra(e),na))?n:oa?Wr(t):"Object"==(r=Wr(t))&&Jr(t.callee)?"Arguments":r},aa=kr.String,ua=function(e){if("Symbol"===ia(e))throw TypeError("Cannot convert a Symbol value to a string");return aa(e)},sa=function(){var e=Ko(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},la=kr.RegExp,ca=Br((function(){var e=la("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),fa=ca||Br((function(){return!la("a","y").sticky})),da=ca||Br((function(){var e=la("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),pa={BROKEN_CARET:da,MISSED_STICKY:fa,UNSUPPORTED_Y:ca},ha=Object.keys||function(e){return Ni(e,Ii)},ga=Fr?Object.defineProperties:function(e,t){Ko(e);for(var n,r=Zr(t),o=ha(t),i=o.length,a=0;i>a;)Jo.f(e,n=o[a++],r[n]);return e},va=eo("document","documentElement"),ya=si("IE_PROTO"),ma=function(){},ba=function(e){return"<script>"+e+"<\/script>"},wa=function(e){e.write(ba("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{ea=new ActiveXObject("htmlfile")}catch(r){}var e,t;Ea="undefined"!=typeof document?document.domain&&ea?wa(ea):((t=$o("iframe")).style.display="none",va.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ba("document.F=Object")),e.close(),e.F):wa(ea);for(var n=Ii.length;n--;)delete Ea.prototype[Ii[n]];return Ea()};li[ya]=!0;var Da,Ca,Sa=Object.create||function(e,t){var n;return null!==e?(ma.prototype=Ko(e),n=new ma,ma.prototype=null,n[ya]=e):n=Ea(),void 0===t?n:ga(n,t)},xa=kr.RegExp,Aa=Br((function(){var e=xa(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Oa=kr.RegExp,ka=Br((function(){var e=Oa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ba=yi.get,Fa=Do("native-string-replace",String.prototype.replace),Ta=RegExp.prototype.exec,_a=Ta,Pa=Hr("".charAt),ja=Hr("".indexOf),Na=Hr("".replace),Ia=Hr("".slice),La=(Ca=/b*/g,_r(Ta,Da=/a/,"a"),_r(Ta,Ca,"a"),0!==Da.lastIndex||0!==Ca.lastIndex),Ra=pa.BROKEN_CARET,Ma=void 0!==/()??/.exec("")[1];(La||Ma||Ra||Aa||ka)&&(_a=function(e){var t,n,r,o,i,a,u,s=this,l=Ba(s),c=ua(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=_r(_a,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ra&&s.sticky,h=_r(sa,s),g=s.source,v=0,y=c;if(p&&(h=Na(h,"y",""),-1===ja(h,"g")&&(h+="g"),y=Ia(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Pa(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ma&&(n=new RegExp("^"+g+"$(?!\\s)",h)),La&&(r=s.lastIndex),o=_r(Ta,p?n:s,y),p?o?(o.input=Ia(o.input,v),o[0]=Ia(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:La&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ma&&o&&o.length>1&&_r(Fa,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Sa(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var za=_a;Ji({target:"RegExp",proto:!0,forced:/./.exec!==za},{exec:za});No("species");var $a=RegExp.prototype,Ha=Hr("".charAt),Va=Hr("".charCodeAt),Ua=Hr("".slice),Wa=function(e){return function(t,n){var r,o,i=ua(Xr(t)),a=xi(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Va(i,a))<55296||r>56319||a+1===u||(o=Va(i,a+1))<56320||o>57343?e?Ha(i,a):r:e?Ua(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ga={codeAt:Wa(!1),charAt:Wa(!0)},qa=Ga.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=kr.TypeError,Xa=function(e,t){var n=e.exec;if(Jr(n)){var r=_r(n,e,t);return null!==r&&Ko(r),r}if("RegExp"===Wr(e))return _r(za,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=No(e),i=!Br((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Br((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Hr(/./[o]),s=function(e,t,n){return[function(t){var n=Xr(this),r=null==t?void 0:yo(t,e);return r?_r(r,t,n):new RegExp(t)[e](ua(n))},function(e){var r=Ko(this),o=ua(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Xa(r,o));){var c=ua(u[0]);s[l]=c,""===c&&(r.lastIndex=Ka(o,Fi(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Hr(e),s=t.exec;return s===za||s===$a.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Di(String.prototype,e,s[0]),Di($a,o,s[1])}}("match"),Ji({global:!0},{globalThis:kr});var Za=!Br((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ja=si("IE_PROTO"),Qa=kr.Object,eu=Qa.prototype,tu=Za?Qa.getPrototypeOf:function(e){var t=So(e);if(Ao(t,Ja))return t[Ja];var n=t.constructor;return Jr(n)&&t instanceof n?n.prototype:t instanceof Qa?eu:null},nu=kr.String,ru=kr.TypeError,ou=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Hr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Ko(n),function(e){if("object"==typeof e||Jr(e))return e;throw ru("Can't set "+nu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),iu=kr.Array,au=Math.max,uu=Hr("".replace),su=Hr("".split),lu=Hr([].join),cu=String(Error("zxcasd").stack),fu=/\n\s*at [^:]*:[^\n]*/,du=fu.test(cu),pu=/@[^\n]*\n/.test(cu)&&!/zxcasd/.test(cu),hu=Hr(Hr.bind),gu=function(e,t){return vo(e),void 0===t?e:hu?hu(e,t):function(){return e.apply(t,arguments)}},vu={},yu=No("iterator"),mu=Array.prototype,bu=No("iterator"),wu=function(e){if(null!=e)return yo(e,bu)||yo(e,"@@iterator")||vu[ia(e)]},Eu=kr.TypeError,Du=function(e,t,n){var r,o;Ko(e);try{if(!(r=yo(e,"return"))){if("throw"===t)throw n;return n}r=_r(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Ko(r),n},Cu=kr.TypeError,Su=function(e,t){this.stopped=e,this.result=t},xu=Su.prototype,Au=!Br((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Lr(1,7)),7!==e.stack)})),Ou=No("toStringTag"),ku=kr.Error,Bu=[].push,Fu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=to(Tu,this);ou?n=ou(new ku(void 0),o?tu(this):Tu):(n=o?this:Sa(Tu),Qo(n,Ou,"Error")),Qo(n,"message",function(e,t){return void 0===e?arguments.length<2?"":t:ua(e)}(t,"")),Au&&Qo(n,"stack",function(e,t){if("string"!=typeof e)return e;if(du)for(;t--;)e=uu(e,fu,"");else if(pu)return lu(function(e,t,n){for(var r,o,i,a,u=Ti(e),s=ki(t,u),l=ki(u,u),c=iu(au(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Ro(o))in r?Jo.f(r,a,Lr(0,i)):r[a]=i;return c.length=f,c}(su(e,"\n"),t),"\n");return e}(n.stack,1)),function(e,t){Qr(t)&&"cause"in t&&Qo(e,"cause",t.cause)}(n,r);var i=[];return function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=gu(t,f),v=function(e){return r&&Du(r,"normal",e),new Su(!0,e)},y=function(e){return d?(Ko(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=wu(e)))throw Cu(ho(e)+" is not iterable");if(void 0!==(c=o)&&(vu.Array===c||mu[yu]===c)){for(i=0,a=Ti(e);a>i;i++)if((u=y(e[i]))&&to(xu,u))return u;return new Su(!1)}r=function(e,t){var n=arguments.length<2?wu(e):t;if(vo(n))return Ko(_r(n,e));throw Eu(ho(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=_r(s,r)).done;){try{u=y(l.value)}catch(c){Du(r,"throw",c)}if("object"==typeof u&&u&&to(xu,u))return u}new Su(!1)}(e,Bu,{that:i}),Qo(n,"errors",i),n};ou?ou(Fu,ku):Vi(Fu,ku);var Tu=Fu.prototype=Sa(ku.prototype,{constructor:Lr(1,Fu),message:Lr(1,""),name:Lr(1,"AggregateError")});Ji({global:!0},{AggregateError:Fu});var _u=No("unscopables"),Pu=Array.prototype;null==Pu[_u]&&Jo.f(Pu,_u,{configurable:!0,value:Sa(null)});var ju,Nu,Iu,Lu=function(e){Pu[_u][e]=!0},Ru=No("iterator"),Mu=!1;[].keys&&("next"in(Iu=[].keys())?(Nu=tu(tu(Iu)))!==Object.prototype&&(ju=Nu):Mu=!0);var zu=null==ju||Br((function(){var e={};return ju[Ru].call(e)!==e}));zu&&(ju={}),Jr(ju[Ru])||Di(ju,Ru,(function(){return this}));var $u={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:Mu},Hu=Jo.f,Vu=No("toStringTag"),Uu=function(e,t,n){e&&!Ao(e=n?e:e.prototype,Vu)&&Hu(e,Vu,{configurable:!0,value:t})},Wu=$u.IteratorPrototype,Gu=function(){return this},qu=Ei.PROPER,Ku=Ei.CONFIGURABLE,Yu=$u.IteratorPrototype,Xu=$u.BUGGY_SAFARI_ITERATORS,Zu=No("iterator"),Ju=function(){return this},Qu=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Sa(Wu,{next:Lr(1,s)}),Uu(u,l,!1),vu[l]=Gu;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Xu&&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[Zu]||v["@@iterator"]||o&&v[o],m=!Xu&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=tu(b.call(new e)))!==Object.prototype&&c.next&&(tu(c)!==Yu&&(ou?ou(c,Yu):Jr(c[Zu])||Di(c,Zu,Ju)),Uu(c,h,!0)),qu&&"values"==o&&y&&"values"!==y.name&&(Ku?Qo(v,"name","values"):(g=!0,m=function(){return _r(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Xu||g||!(d in v))&&Di(v,d,f[d]);else Ji({target:t,proto:!0,forced:Xu||g},f);return v[Zu]!==m&&Di(v,Zu,m,{name:o}),vu[t]=m,f},es=yi.set,ts=yi.getterFor("Array Iterator"),ns=Qu(Array,"Array",(function(e,t){es(this,{type:"Array Iterator",target:Zr(e),index:0,kind:t})}),(function(){var e=ts(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");vu.Arguments=vu.Array,Lu("keys"),Lu("values"),Lu("entries");var rs=Ga.charAt,os=yi.set,is=yi.getterFor("String Iterator");Qu(String,"String",(function(e){os(this,{type:"String Iterator",string:ua(e),index:0})}),(function(){var e,t=is(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=rs(n,r),t.index+=e.length,{value:e,done:!1})}));var as,us={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},ss=$o("span").classList,ls=ss&&ss.constructor&&ss.constructor.prototype,cs=ls===Object.prototype?void 0:ls,fs=No("iterator"),ds=No("toStringTag"),ps=ns.values,hs=function(e,t){if(e){if(e[fs]!==ps)try{Qo(e,fs,ps)}catch(r){e[fs]=ps}if(e[ds]||Qo(e,ds,t),us[t])for(var n in ns)if(e[n]!==ns[n])try{Qo(e,n,ns[n])}catch(r){e[n]=ns[n]}}};for(var gs in us)hs(kr[gs]&&kr[gs].prototype,gs);function vs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function ys(){void 0===Ar&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}hs(cs,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),vs(),ys()):global&&(null===(as=global.navigator)||void 0===as?void 0:as.userAgent.match("QQBrowser"))&&(vs(),ys());var ms=Array.isArray||function(e){return"Array"==L(e)},bs=function(){},ws=[],Es=q("Reflect","construct"),Ds=/^\s*(?:class|function)\b/,Cs=S(Ds.exec),Ss=!Ds.exec(bs),xs=function(e){if(!x(e))return!1;try{return Es(bs,ws,e),!0}catch(t){return!1}},As=!Es||A((function(){var e;return xs(xs.call)||!xs(Object)||!xs((function(){e=!0}))||e}))?function(e){if(!x(e))return!1;switch(cn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ss||!!Cs(Ds,Fn(e))}:xs,Os=Oe("species"),ks=h.Array,Bs=function(e,t){return new(ms(n=e)&&(r=n.constructor,(As(r)&&(r===ks||ms(r.prototype))||U(r)&&null===(r=r[Os]))&&(r=void 0)),void 0===r?ks:r)(0===t?0:t);var n,r},Fs=Oe("species"),Ts=Oe("isConcatSpreadable"),_s=h.TypeError,Ps=te>=51||!A((function(){var e=[];return e[Ts]=!1,e.concat()[0]!==e})),js=("concat",te>=51||!A((function(){var e=[];return(e.constructor={})[Fs]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Ns=function(e){if(!U(e))return!1;var t=e[Ts];return void 0!==t?!!t:ms(e)};rt({target:"Array",proto:!0,forced:!Ps||!js},{concat:function(e){var t,n,r,o,i,a=ve(this),u=Bs(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Ns(i=-1===t?a:arguments[t])){if(s+(o=Et(i))>9007199254740991)throw _s("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Ut(u,s,i[n])}else{if(s>=9007199254740991)throw _s("Maximum allowed index exceeded");Ut(u,s++,i)}return u.length=s,u}});var Is=Tt.f,Ls="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rs={f:function(e){return Ls&&"Window"==L(e)?function(e){try{return Is(e)}catch(t){return qt(Ls)}}(e):Is(V(e))}},Ms=S([].slice),zs={f:Oe},$s=Qe.f,Hs=function(e){var t=W.Symbol||(W.Symbol={});me(t,e)||$s(t,e,{value:zs.f(e)})},Vs=S([].push),Us=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=ve(s),g=z(h),v=Ge(l,c),y=Et(g),m=0,b=f||Bs,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:Vs(w,d)}else switch(e){case 4:return!1;case 7:Vs(w,d)}return i?-1:r||o?o:w}},Ws=[Us(0),Us(1),Us(2),Us(3),Us(4),Us(5),Us(6),Us(7)][0],Gs=it("hidden"),qs=Oe("toPrimitive"),Ks=Vn.set,Ys=Vn.getterFor("Symbol"),Xs=Object.prototype,Zs=h.Symbol,Js=Zs&&Zs.prototype,Qs=h.TypeError,el=h.QObject,tl=q("JSON","stringify"),nl=Le.f,rl=Qe.f,ol=Rs.f,il=P.f,al=S([].push),ul=he("symbols"),sl=he("op-symbols"),ll=he("string-to-symbol-registry"),cl=he("symbol-to-string-registry"),fl=he("wks"),dl=!el||!el.prototype||!el.prototype.findChild,pl=O&&A((function(){return 7!=Vt(rl({},"a",{get:function(){return rl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=nl(Xs,t);r&&delete Xs[t],rl(e,t,n),r&&e!==Xs&&rl(Xs,t,r)}:rl,hl=function(e,t){var n=ul[e]=Vt(Js);return Ks(n,{type:"Symbol",tag:e,description:t}),O||(n.description=t),n},gl=function(e,t,n){e===Xs&&gl(sl,t,n),Ye(e);var r=Fe(t);return Ye(n),me(ul,r)?(n.enumerable?(me(e,Gs)&&e[Gs][r]&&(e[Gs][r]=!1),n=Vt(n,{enumerable:j(0,!1)})):(me(e,Gs)||rl(e,Gs,j(1,{})),e[Gs][r]=!0),pl(e,r,n)):rl(e,r,n)},vl=function(e,t){Ye(e);var n=V(t),r=Nt(n).concat(wl(n));return Ws(r,(function(t){O&&!B(yl,n,t)||gl(e,t,n[t])})),e},yl=function(e){var t=Fe(e),n=B(il,this,t);return!(this===Xs&&me(ul,t)&&!me(sl,t))&&(!(n||!me(this,t)||!me(ul,t)||me(this,Gs)&&this[Gs][t])||n)},ml=function(e,t){var n=V(e),r=Fe(t);if(n!==Xs||!me(ul,r)||me(sl,r)){var o=nl(n,r);return!o||!me(ul,r)||me(n,Gs)&&n[Gs][r]||(o.enumerable=!0),o}},bl=function(e){var t=ol(V(e)),n=[];return Ws(t,(function(e){me(ul,e)||me(St,e)||al(n,e)})),n},wl=function(e){var t=e===Xs,n=ol(t?sl:V(e)),r=[];return Ws(n,(function(e){!me(ul,e)||t&&!me(Xs,e)||al(r,ul[e])})),r};if(ne||(Js=(Zs=function(){if(K(Js,this))throw Qs("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?bn(arguments[0]):void 0,t=De(e),n=function(e){this===Xs&&B(n,sl,e),me(this,Gs)&&me(this[Gs],t)&&(this[Gs][t]=!1),pl(this,t,j(1,e))};return O&&dl&&pl(Xs,t,{configurable:!0,set:n}),hl(t,e)}).prototype,Kn(Js,"toString",(function(){return Ys(this).tag})),Kn(Zs,"withoutSetter",(function(e){return hl(De(e),e)})),P.f=yl,Qe.f=gl,Le.f=ml,Tt.f=Rs.f=bl,_t.f=wl,zs.f=function(e){return hl(Oe(e),e)},O&&rl(Js,"description",{configurable:!0,get:function(){return Ys(this).description}})),rt({global:!0,wrap:!0,forced:!ne,sham:!ne},{Symbol:Zs}),Ws(Nt(fl),(function(e){Hs(e)})),rt({target:"Symbol",stat:!0,forced:!ne},{for:function(e){var t=bn(e);if(me(ll,t))return ll[t];var n=Zs(t);return ll[t]=n,cl[n]=t,n},keyFor:function(e){if(!ie(e))throw Qs(e+" is not a symbol");if(me(cl,e))return cl[e]},useSetter:function(){dl=!0},useSimple:function(){dl=!1}}),rt({target:"Object",stat:!0,forced:!ne,sham:!O},{create:function(e,t){return void 0===t?Vt(e):vl(Vt(e),t)},defineProperty:gl,defineProperties:vl,getOwnPropertyDescriptor:ml}),rt({target:"Object",stat:!0,forced:!ne},{getOwnPropertyNames:bl,getOwnPropertySymbols:wl}),rt({target:"Object",stat:!0,forced:A((function(){_t.f(1)}))},{getOwnPropertySymbols:function(e){return _t.f(ve(e))}}),tl){var El=!ne||A((function(){var e=Zs();return"[null]"!=tl([e])||"{}"!=tl({a:e})||"{}"!=tl(Object(e))}));rt({target:"JSON",stat:!0,forced:El},{stringify:function(e,t,n){var r=Ms(arguments),o=t;if((U(t)||void 0!==e)&&!ie(e))return ms(t)||(t=function(e,t){if(x(o)&&(t=B(o,this,e,t)),!ie(t))return t}),r[1]=t,b(tl,null,r)}})}if(!Js[qs]){var Dl=Js.valueOf;Kn(Js,qs,(function(e){return B(Dl,this)}))}nr(Zs,"Symbol"),St[Gs]=!0,Hs("asyncIterator"),Hs("hasInstance"),Hs("isConcatSpreadable"),Hs("iterator"),Hs("match"),Hs("matchAll"),Hs("replace"),Hs("search"),Hs("species"),Hs("split"),Hs("toPrimitive"),Hs("toStringTag"),Hs("unscopables"),nr(h.JSON,"JSON",!0);var Cl=W.Symbol;Hs("asyncDispose"),Hs("dispose"),Hs("matcher"),Hs("metadata"),Hs("observable"),Hs("patternMatch"),Hs("replaceAll");var Sl,xl=Cl,Al=zs.f("iterator"),Ol=c((function(e){function t(n){return"function"==typeof xl&&"symbol"==typeof Al?(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 xl&&e.constructor===xl&&e!==xl.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})),kl=(Sl=Ol)&&Sl.__esModule&&Object.prototype.hasOwnProperty.call(Sl,"default")?Sl.default:Sl,Bl=Wo.f,Fl=Br((function(){Bl(1)}));if(Ji({target:"Object",stat:!0,forced:!Fr||Fl,sham:!Fr},{getOwnPropertyDescriptor:function(e,t){return Bl(Zr(e),t)}}),"object"===("undefined"==typeof global?"undefined":kl(global))){var Tl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Tl.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[]})}
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function _l(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pl(e){var t,n;return!1!==_l(e)&&(void 0===(t=e.constructor)||!1!==_l(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function jl(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 Nl(e){return!!e&&!!e[bc]}function Il(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)===wc}(e)||Array.isArray(e)||!!e[mc]||!!e.constructor[mc]||$l(e)||Hl(e))}function Ll(e,t,n){void 0===n&&(n=!1),0===Rl(e)?(n?Object.keys:Ec)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Rl(e){var t=e[bc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:$l(e)?2:Hl(e)?3:0}function Ml(e,t){return 2===Rl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zl(e,t,n){var r=Rl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function $l(e){return hc&&e instanceof Map}function Hl(e){return gc&&e instanceof Set}function Vl(e){return e.o||e.t}function Ul(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Dc(e);delete t[bc];for(var n=Ec(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 Wl(e,t){return void 0===t&&(t=!1),ql(e)||Nl(e)||!Il(e)||(Rl(e)>1&&(e.set=e.add=e.clear=e.delete=Gl),Object.freeze(e),t&&Ll(e,(function(e,t){return Wl(t,!0)}),!0)),e}function Gl(){jl(2)}function ql(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Kl(e){var t=Cc[e];return t||jl(18,e),t}function Yl(){return dc}function Xl(e,t){t&&(Kl("Patches"),e.u=[],e.s=[],e.v=t)}function Zl(e){Jl(e),e.p.forEach(ec),e.p=null}function Jl(e){e===dc&&(dc=e.l)}function Ql(e){return dc={p:[],l:dc,h:e,m:!0,_:0}}function ec(e){var t=e[bc];0===t.i||1===t.i?t.j():t.O=!0}function tc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Kl("ES5").S(t,e,r),r?(n[bc].P&&(Zl(t),jl(4)),Il(e)&&(e=nc(t,e),t.l||oc(t,e)),t.u&&Kl("Patches").M(n[bc],e,t.u,t.s)):e=nc(t,n,[]),Zl(t),t.u&&t.v(t.u,t.s),e!==yc?e:void 0}function nc(e,t,n){if(ql(t))return t;var r=t[bc];if(!r)return Ll(t,(function(o,i){return rc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return oc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Ul(r.k):r.o;Ll(3===r.i?new Set(o):o,(function(t,i){return rc(e,r,o,t,i,n)})),oc(e,o,!1),n&&e.u&&Kl("Patches").R(r,n,e.u,e.s)}return r.o}function rc(e,t,n,r,o,i){if(Nl(o)){var a=nc(e,o,i&&t&&3!==t.i&&!Ml(t.D,r)?i.concat(r):void 0);if(zl(n,r,a),!Nl(a))return;e.m=!1}if(Il(o)&&!ql(o)){if(!e.h.F&&e._<1)return;nc(e,o),t&&t.A.l||oc(e,o)}}function oc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Wl(t,n)}function ic(e,t){var n=e[bc];return(n?Vl(n):e)[t]}function ac(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 uc(e){e.P||(e.P=!0,e.l&&uc(e.l))}function sc(e){e.o||(e.o=Ul(e.t))}function lc(e,t,n){var r=$l(t)?Kl("MapSet").N(t,n):Hl(t)?Kl("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Yl(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Sc;n&&(o=[r],i=xc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Kl("ES5").J(t,n);return(n?n.A:Yl()).p.push(r),r}function cc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ul(e)}var fc,dc,pc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),hc="undefined"!=typeof Map,gc="undefined"!=typeof Set,vc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,yc=pc?Symbol.for("immer-nothing"):((fc={})["immer-nothing"]=!0,fc),mc=pc?Symbol.for("immer-draftable"):"__$immer_draftable",bc=pc?Symbol.for("immer-state"):"__$immer_state",wc=""+Object.prototype.constructor,Ec="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Dc=Object.getOwnPropertyDescriptors||function(e){var t={};return Ec(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Cc={},Sc={get:function(e,t){if(t===bc)return e;var n=Vl(e);if(!Ml(n,t))return function(e,t,n){var r,o=ac(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||!Il(r)?r:r===ic(e.t,t)?(sc(e),e.o[t]=lc(e.A.h,r,e)):r},has:function(e,t){return t in Vl(e)},ownKeys:function(e){return Reflect.ownKeys(Vl(e))},set:function(e,t,n){var r,o,i=ac(Vl(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=ic(Vl(e),t),u=null==a?void 0:a[bc];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||Ml(e.t,t)))return!0;sc(e),uc(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!==ic(e.t,t)||t in e.t?(e.D[t]=!1,sc(e),uc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Vl(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(){jl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){jl(12)}},xc={};Ll(Sc,(function(e,t){xc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),xc.deleteProperty=function(e,t){return Sc.deleteProperty.call(this,e[0],t)},xc.set=function(e,t,n){return Sc.set.call(this,e[0],t,n,e[0])};var Ac=function(){function e(e){var t=this;this.g=vc,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&&jl(6),void 0!==r&&"function"!=typeof r&&jl(7),Il(e)){var u=Ql(t),s=lc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?Zl(u):Jl(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Xl(u,r),tc(e,u)}),(function(e){throw Zl(u),e})):(Xl(u,r),tc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===yc)return;return void 0===a&&(a=e),t.F&&Wl(a,!0),a}jl(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){Il(e)||jl(8),Nl(e)&&(e=function(e){return Nl(e)||jl(22,e),function e(t){if(!Il(t))return t;var n,r=t[bc],o=Rl(t);if(r){if(!r.P&&(r.i<4||!Kl("ES5").K(r)))return r.t;r.I=!0,n=cc(t,o),r.I=!1}else n=cc(t,o);return Ll(n,(function(t,o){var i,a;r&&(a=t,(2===Rl(i=r.t)?i.get(a):i[a])===o)||zl(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=Ql(this),n=lc(this,e,void 0);return n[bc].C=!0,Jl(t),n},t.finishDraft=function(e,t){var n=(e&&e[bc]).A;return Xl(n,t),tc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!vc&&jl(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=Kl("Patches").$;return Nl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Oc=new Ac,kc=Oc.produce;Oc.produceWithPatches.bind(Oc),Oc.setAutoFreeze.bind(Oc),Oc.setUseProxies.bind(Oc),Oc.applyPatches.bind(Oc);var Bc=Oc.createDraft.bind(Oc),Fc=Oc.finishDraft.bind(Oc);function Tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _c=new WeakMap,Pc=new WeakMap,jc=new WeakMap,Nc=new WeakMap,Ic=new WeakMap,Lc=new WeakMap;function Rc(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 Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rc(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Sf.pathRefs(e))jf.transform(n,t);for(var r of Sf.pointRefs(e))Rf.transform(r,t);for(var o of Sf.rangeRefs(e))Hf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=_c.get(e)||[],l=$c(t);for(var c of s)u(Pf.transform(c,t));for(var f of l)u(f);_c.set(e,a),dd.transform(e,t),e.operations.push(t),Sf.normalize(e),"set_selection"===t.type&&(e.marks=null),Pc.get(e)||(Pc.set(e,!0),Promise.resolve().then((()=>{Pc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if($f.isExpanded(r))dd.setNodes(e,{[t]:n},{match:Kf.isText,split:!0});else{var o=Mc(Mc({},Sf.marks(e)||{}),{},{[t]:n});e.marks=o,Pc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&$f.isCollapsed(n)&&dd.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&$f.isCollapsed(n)&&dd.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&$f.isExpanded(n)&&dd.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Bf.fragment(e,t):[]},insertBreak:()=>{dd.splitNodes(e,{always:!0})},insertFragment:t=>{dd.insertFragment(e,t)},insertNode:t=>{dd.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Mc({text:t},r);dd.insertNodes(e,o)}else dd.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Kf.isText(n))if(mf.isElement(n)&&0===n.children.length)dd.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Sf.isEditor(n)&&mf.isElement(n)&&(e.isInline(n)||0===n.children.length||Kf.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Bf.get(e,r);if(!Kf.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(Kf.isText(s)||mf.isElement(s)&&e.isInline(s))!==o?(dd.removeNodes(e,{at:r.concat(i),voids:!0}),i--):mf.isElement(s)?e.isInline(s)&&(null!=l&&Kf.isText(l)?c&&(dd.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(dd.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&Kf.isText(l)&&(Kf.equals(s,l,{loose:!0})?(dd.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(dd.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(dd.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if($f.isExpanded(n))dd.unsetNodes(e,t,{match:Kf.isText,split:!0});else{var r=Mc({},Sf.marks(e)||{});delete r[t],e.marks=r,Pc.get(e)||e.onChange()}}};return e},$c=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Pf.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Pf.levels(r),...Kf.isText(n)?[]:Array.from(Bf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Pf.ancestors(o),Pf.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Pf.equals(i,a))return[];var u=[],s=[];for(var l of Pf.ancestors(i)){var c=Pf.transform(l,e);u.push(c)}for(var f of Pf.ancestors(a)){var d=Pf.transform(f,e);s.push(d)}var p=s[s.length-1],h=a[a.length-1],g=p.concat(h);return[...u,...s,g];case"remove_node":var{path:v}=e;return[...Pf.ancestors(v)];case"split_node":var{path:y}=e;return[...Pf.levels(y),Pf.next(y)];default:return[]}};function Hc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Vc,Uc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?Xc(e):e,o=Vc.None,i=Vc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=lf(s,l);if([o,i]=n?[i,c]:[c,o],cf(o,Vc.ZWJ)&&cf(i,Vc.ExtPict)&&!hf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(cf(o,Vc.RI)&&cf(i,Vc.RI)&&!(u=null!==u?!u:!!n||vf(e.substring(0,e.length-a))))break;if(o!==Vc.None&&i!==Vc.None&&df(o,i))break;a+=s.length}return a||1},Wc=/\s/,Gc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,qc=/['\u2018\u2019]/,Kc=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Yc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Wc.test(t))return!1;if(qc.test(t)){var o=Uc(n,r),[i,a]=Kc(n,o,r);if(e(i,a,r))return!0}return!Gc.test(t)},Xc=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Jc(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(Zc(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},Zc=e=>e>=55296&&e<=56319,Jc=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Vc||(Vc={}));var Qc=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,ef=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,tf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,nf=/^[\u1100-\u115F\uA960-\uA97C]$/,rf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,of=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,af=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,uf=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,sf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,lf=(e,t)=>{var n=Vc.Any;return-1!==e.search(Qc)&&(n|=Vc.Extend),8205===t&&(n|=Vc.ZWJ),t>=127462&&t<=127487&&(n|=Vc.RI),-1!==e.search(ef)&&(n|=Vc.Prepend),-1!==e.search(tf)&&(n|=Vc.SpacingMark),-1!==e.search(nf)&&(n|=Vc.L),-1!==e.search(rf)&&(n|=Vc.V),-1!==e.search(of)&&(n|=Vc.T),-1!==e.search(af)&&(n|=Vc.LV),-1!==e.search(uf)&&(n|=Vc.LVT),-1!==e.search(sf)&&(n|=Vc.ExtPict),n};function cf(e,t){return!!(e&t)}var ff=[[Vc.L,Vc.L|Vc.V|Vc.LV|Vc.LVT],[Vc.LV|Vc.V,Vc.V|Vc.T],[Vc.LVT|Vc.T,Vc.T],[Vc.Any,Vc.Extend|Vc.ZWJ],[Vc.Any,Vc.SpacingMark],[Vc.Prepend,Vc.Any],[Vc.ZWJ,Vc.ExtPict],[Vc.RI,Vc.RI]];function df(e,t){return-1===ff.findIndex((n=>cf(e,n[0])&&cf(t,n[1])))}var pf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,hf=e=>-1!==e.search(pf),gf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,vf=e=>{var t=e.match(gf);return null!==t&&t[0].length/2%2==1},yf=e=>Pl(e)&&Bf.isNodeList(e.children)&&!Sf.isEditor(e),mf={isAncestor:e=>Pl(e)&&Bf.isNodeList(e.children),isElement:yf,isElementList:e=>Array.isArray(e)&&e.every((e=>mf.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return yf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},bf=["text"],wf=["text"];function Ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ef(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cf=new WeakMap,Sf={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=Sf.path(e,o),u="lowest"===r;for(var[s,l]of Sf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!Kf.isText(s)&&!Pf.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Sf.point(e,t,{edge:"end"}),focus:Sf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Sf.positions(e,Df(Df({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Sf.start(e,[]),focus:Sf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Sf.positions(e,Df(Df({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Sf.start(e,t),Sf.end(e,t)],end:(e,t)=>Sf.point(e,t,{edge:"end"}),first(e,t){var n=Sf.path(e,t,{edge:"start"});return Sf.node(e,n)},fragment(e,t){var n=Sf.range(e,t);return Bf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Sf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Kf.isText(t)||Sf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Kf.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>mf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Pl(e))return!1;var t=Cf.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||Pl(e.marks))&&(null===e.selection||$f.isRange(e.selection))&&Bf.isNodeList(e.children)&&_f.isOperationList(e.operations);return Cf.set(e,n),n},isEnd(e,t,n){var r=Sf.end(e,n);return Lf.equals(t,r)},isEdge:(e,t,n)=>Sf.isStart(e,t,n)||Sf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Kf.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>mf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=jc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Sf.start(e,n);return Lf.equals(t,r)},isVoid:(e,t)=>mf.isElement(t)&&e.isVoid(t),last(e,t){var n=Sf.path(e,t,{edge:"end"});return Sf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Sf.path(e,t,n);return[Bf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Sf.path(e,n);for(var[s,l]of Bf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Sf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if($f.isExpanded(n)){var[r]=Sf.nodes(e,{match:Kf.isText});if(r){var[o]=r;return Hc(o,bf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Sf.leaf(e,a);if(0===i.offset){var s=Sf.previous(e,{at:a,match:Kf.isText}),l=Sf.above(e,{match:t=>Sf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Pf.isAncestor(d,f)&&(u=c)}}return Hc(u,wf)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Sf.after(e,i,{voids:r});if(a){var[,u]=Sf.last(e,[]),s=[a.path,u];if(Pf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Pf.isPath(i)){var[l]=Sf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Sf.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=Sf.path(e,t,n);return[Bf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(xf.isSpan(n))s=n[0],l=n[1];else{var c=Sf.path(e,n,{edge:"start"}),f=Sf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Bf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Sf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Pf.compare(v,d[1]);if("highest"!==r||!y)if(u(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Kf.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>_c.get(e)||[];if(Sf.isNormalizing(e)){if(n){var o=Array.from(Bf.nodes(e),(e=>{var[,t]=e;return t}));_c.set(e,o)}0!==r(e).length&&Sf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Bf.has(e,t)){var n=Sf.node(e,t),[o,i]=n;mf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Bf.has(e,s)){var l=Sf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Sf.path(e,t,n),o=Pf.parent(r);return Sf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Pf.isPath(t))if("start"===o){var[,i]=Bf.first(e,t);t=i}else if("end"===o){var[,a]=Bf.last(e,t);t=a}return $f.isRange(t)&&(t="start"===o?$f.start(t):"end"===o?$f.end(t):Pf.common(t.anchor.path,t.focus.path)),Lf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Bf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Sf.pathRefs(e).delete(o),o.current=null,t}};return Sf.pathRefs(e).add(o),o},pathRefs(e){var t=Nc.get(e);return t||(t=new Set,Nc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Pf.isPath(t)){var o;if("end"===r){var[,i]=Bf.last(e,t);o=i}else{var[,a]=Bf.first(e,t);o=a}var u=Bf.get(e,o);if(!Kf.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if($f.isRange(t)){var[s,l]=$f.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Sf.pointRefs(e).delete(o),o.current=null,t}};return Sf.pointRefs(e).add(o),o},pointRefs(e){var t=Ic.get(e);return t||(t=new Set,Ic.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=Sf.range(e,i),[c,f]=$f.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of Sf.nodes(e,{at:i,reverse:u,voids:s})){if(mf.isElement(m)){if(!s&&e.isVoid(m)){yield Sf.start(e,b);continue}if(e.isInline(m))continue;if(Sf.hasInlines(e,m)){var w=Pf.isAncestor(b,f.path)?f:Sf.end(e,b),E=Pf.isAncestor(b,c.path)?c:Sf.start(e,b);h=Sf.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(Kf.isText(m)){var D=Pf.equals(b,d.path);for(D?(v=u?d.offset:m.text.length-d.offset,y=d.offset):(v=m.text.length,y=u?v:0),(D||p||"offset"===a)&&(yield{path:b,offset:y},p=!1);;){if(0===g){if(""===h)break;t=h,r=u,g="character"===(n=a)?Uc(t,r):"word"===n?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Uc(e,t),[i,a]=Kc(e,o,t);if(Yc(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(t,r):"line"===n||"block"===n?t.length:1,h=Kc(h,g,u)[1]}if(y=u?y-g:y+g,(v-=g)<0){g=-v;break}g=0,yield{path:b,offset:y}}}}}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Sf.before(e,i,{voids:r});if(a){var[,u]=Sf.first(e,[]),s=[a.path,u];if(Pf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Pf.isPath(i)){var[l]=Sf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Sf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>$f.isRange(t)&&!n?t:{anchor:Sf.start(e,t),focus:Sf.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 Sf.rangeRefs(e).delete(o),o.current=null,t}};return Sf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Lc.get(e);return t||(t=new Set,Lc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){jc.set(e,t)},start:(e,t)=>Sf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Sf.range(e,t),[i,a]=$f.edges(o),u="";for(var[s,l]of Sf.nodes(e,{at:o,match:Kf.isText,voids:r})){var c=s.text;Pf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Pf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=$f.edges(t);if(0!==o.offset||0!==i.offset||$f.isCollapsed(t))return t;var a=Sf.above(e,{at:i,match:t=>Sf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Sf.start(e,[]),focus:i},l=!0;for(var[c,f]of Sf.nodes(e,{at:s,match:Kf.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Pf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Sf.above(e,Df(Df({},t),{},{match:t=>Sf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Sf.isNormalizing(e);Sf.setNormalizing(e,!1);try{t()}finally{Sf.setNormalizing(e,n)}Sf.normalize(e)}},xf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Pf.isPath)},Af=["children"],Of=["text"],kf=new WeakMap,Bf={ancestor(e,t){var n=Bf.get(e,t);if(Kf.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Pf.ancestors(t,n)){var o=[Bf.ancestor(e,r),r];yield o}},child(e,t){if(Kf.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Bf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Bf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Pf.common(t,n);return[Bf.get(e,r),r]},descendant(e,t){var n=Bf.get(e,t);if(Sf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))mf.isElement(n)&&(yield[n,r])},extractProps:e=>mf.isAncestor(e)?Hc(e,Af):Hc(e,Of),first(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!Kf.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Kf.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=kc({children:e.children},(e=>{var[n,r]=$f.edges(t),o=Bf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!$f.includes(t,n)}});for(var[,i]of o){if(!$f.includes(t,i)){var a=Bf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Pf.equals(i,r.path)){var s=Bf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Pf.equals(i,n.path)){var l=Bf.leaf(e,i);l.text=l.text.slice(n.offset)}}Sf.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Kf.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Kf.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Kf.isText(e)||mf.isElement(e)||Sf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=kf.get(e);if(void 0!==t)return t;var n=e.every((e=>Bf.isNode(e)));return kf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Bf.get(e,n);r&&!Kf.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Bf.get(e,t);if(!Kf.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Pf.levels(t,n)){var o=Bf.get(e,r);yield[o,r]}},matches:(e,t)=>mf.isElement(e)&&mf.isElementProps(t)&&mf.matches(e,t)||Kf.isText(e)&&Kf.isTextProps(t)&&Kf.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Pf.isBefore(u,i):Pf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||Kf.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Pf.next(u);if(Bf.has(e,l)){u=l,s=Bf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Pf.previous(u),s=Bf.get(e,u)):(u=Pf.parent(u),s=Bf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Pf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Bf.get(e,u)}},parent(e,t){var n=Pf.parent(t),r=Bf.get(e,n);if(Kf.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Kf.isText(e)?e.text:e.children.map(Bf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Bf.nodes(e,t))Kf.isText(n)&&(yield[n,r])}};function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _f={isNodeOperation:e=>_f.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Pl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Pf.isPath(e.path)&&Bf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Pf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Pf.isPath(e.path)&&Pl(e.properties);case"move_node":return Pf.isPath(e.path)&&Pf.isPath(e.newPath);case"set_node":return Pf.isPath(e.path)&&Pl(e.properties)&&Pl(e.newProperties);case"set_selection":return null===e.properties&&$f.isRange(e.newProperties)||null===e.newProperties&&$f.isRange(e.properties)||Pl(e.properties)&&Pl(e.newProperties);case"split_node":return Pf.isPath(e.path)&&"number"==typeof e.position&&Pl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>_f.isOperation(e))),isSelectionOperation:e=>_f.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>_f.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Tf(Tf({},e),{},{type:"remove_node"});case"insert_text":return Tf(Tf({},e),{},{type:"remove_text"});case"merge_node":return Tf(Tf({},e),{},{type:"split_node",path:Pf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Pf.equals(t,n))return e;if(Pf.isSibling(n,t))return Tf(Tf({},e),{},{path:t,newPath:n});var r=Pf.transform(n,e),o=Pf.transform(Pf.next(n),e);return Tf(Tf({},e),{},{path:r,newPath:o});case"remove_node":return Tf(Tf({},e),{},{type:"insert_node"});case"remove_text":return Tf(Tf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Tf(Tf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Tf(Tf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Tf(Tf({},e),{},{type:"merge_node",path:Pf.next(e.path)})}}},Pf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Pf.levels(e,t);return n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Pf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Pf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Pf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Pf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Pf.compare(e,t),isBefore:(e,t)=>-1===Pf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Pf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Pf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Pf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Pf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Pf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Pf.isAncestor(t,e)&&!Pf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return kc(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Pf.equals(i,r)||Pf.endsBefore(i,r)||Pf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Pf.equals(a,r)||Pf.isAncestor(a,r))return null;Pf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Pf.equals(u,r)||Pf.endsBefore(u,r)?r[u.length-1]-=1:Pf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Pf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Pf.endsBefore(l,r)?r[l.length-1]+=1:Pf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Pf.equals(f,d))return;if(Pf.isAncestor(f,r)||Pf.equals(f,r)){var p=d.slice();return Pf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Pf.isSibling(f,d)&&(Pf.isAncestor(d,r)||Pf.equals(d,r))?Pf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Pf.endsBefore(d,r)||Pf.equals(d,r)||Pf.isAncestor(d,r)?(Pf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Pf.endsBefore(f,r)&&(Pf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},jf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Pf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Nf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function If(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nf(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Lf={compare(e,t){var n=Pf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Lf.compare(e,t),isBefore:(e,t)=>-1===Lf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Pf.equals(e.path,t.path),isPoint:e=>Pl(e)&&"number"==typeof e.offset&&Pf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return kc(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Pf.transform(o,t,n);break;case"insert_text":Pf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Pf.equals(t.path,o)&&(e.offset+=t.position),e.path=Pf.transform(o,t,n);break;case"remove_text":Pf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Pf.equals(t.path,o)||Pf.isAncestor(t.path,o))return null;e.path=Pf.transform(o,t,n);break;case"split_node":if(Pf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Pf.transform(o,t,If(If({},n),{},{affinity:"forward"})))}else e.path=Pf.transform(o,t,n)}}))}},Rf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Lf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Mf=["anchor","focus"];function zf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var $f={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return $f.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=$f.edges(e);return t},equals:(e,t)=>Lf.equals(e.anchor,t.anchor)&&Lf.equals(e.focus,t.focus),includes(e,t){if($f.isRange(t)){if($f.includes(e,t.anchor)||$f.includes(e,t.focus))return!0;var[n,r]=$f.edges(e),[o,i]=$f.edges(t);return Lf.isBefore(n,o)&&Lf.isAfter(r,i)}var[a,u]=$f.edges(e),s=!1,l=!1;return Lf.isPoint(t)?(s=Lf.compare(t,a)>=0,l=Lf.compare(t,u)<=0):(s=Pf.compare(t,a.path)>=0,l=Pf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Hc(e,Mf),[r,o]=$f.edges(e),[i,a]=$f.edges(t),u=Lf.isBefore(r,i)?i:r,s=Lf.isBefore(o,a)?o:a;return Lf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zf(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Lf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Lf.equals(t,n)},isExpanded:e=>!$f.isCollapsed(e),isForward:e=>!$f.isBackward(e),isRange:e=>Pl(e)&&Lf.isPoint(e.anchor)&&Lf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=$f.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return kc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=$f.isCollapsed(e);$f.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?$f.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Lf.transform(e.anchor,t,{affinity:r}),s=Lf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Hf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=$f.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Vf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Pl(r)&&Pl(o)){if(!Vf(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Uf=["text"],Wf=["anchor","focus"];function Gf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gf(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kf={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Hc(e,Uf)}return Vf(r?o(e):e,r?o(t):t)},isText:e=>Pl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Kf.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[qf({},e)];for(var r of t){var o=Hc(r,Wf),[i,a]=$f.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var g=a.offset-f;h=qf(qf({},d),{},{text:d.text.slice(g)}),d=qf(qf({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=qf(qf({},d),{},{text:d.text.slice(0,v)}),d=qf(qf({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zf={transform(e,t){e.children=Bc(e.children);var n=e.selection&&Bc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Bf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of $f.points(t))t[s]=Lf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Bf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of $f.points(t))t[v]=Lf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Bf.get(e,y),b=Pf.previous(y),w=Bf.get(e,b),E=Bf.parent(e,y),D=y[y.length-1];if(Kf.isText(m)&&Kf.isText(w))w.text+=m.text;else{if(Kf.isText(m)||Kf.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(E.children.splice(D,1),t)for(var[C,S]of $f.points(t))t[S]=Lf.transform(C,n);break;case"move_node":var{path:x,newPath:A}=n;if(Pf.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=Bf.get(e,x),k=Bf.parent(e,x),B=x[x.length-1];k.children.splice(B,1);var F=Pf.transform(x,n),T=Bf.get(e,Pf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of $f.points(t))t[j]=Lf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Bf.parent(e,N).children.splice(I,1),t)for(var[L,R]of $f.points(t)){var M=Lf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Bf.texts(e)){if(-1!==Pf.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Pf.equals($[1],N)?!Pf.hasPrevious($[1]):Pf.common(z[1],N).length<Pf.common($[1],N).length),z&&!U?(L.path=z[1],L.offset=z[0].text.length):$?(L.path=$[1],L.offset=0):t=null}}break;case"remove_text":var{path:W,offset:G,text:q}=n;if(0===q.length)break;var K=Bf.leaf(e,W),Y=K.text.slice(0,G),X=K.text.slice(G+q.length);if(K.text=Y+X,t)for(var[Z,J]of $f.points(t))t[J]=Lf.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Bf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!$f.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=Xf({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Bf.get(e,le),he=Bf.parent(e,le),ge=le[le.length-1];if(Kf.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=Xf(Xf({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=Xf(Xf({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of $f.points(t))t[Ee]=Lf.transform(we,n)}return t})(e,n,t)}finally{e.children=Fc(e.children),e.selection=n?Nl(n)?Fc(n):n:null}}},Jf=["text"],Qf=["children"];function ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Sf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Bf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Sf.end(e,[]):[0],s=!0),null==s&&(s=!1),$f.isRange(a))if(r||(a=Sf.unhangRange(e,a)),$f.isCollapsed(a))a=a.anchor;else{var[,c]=$f.edges(a),f=Sf.pointRef(e,c);dd.delete(e,{at:a}),a=f.unref()}if(Lf.isPoint(a)){null==u&&(u=Kf.isText(l)?e=>Kf.isText(e):e.isInline(l)?t=>Kf.isText(t)||Sf.isInline(e,t):t=>Sf.isBlock(e,t));var[d]=Sf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Sf.pathRef(e,p),g=Sf.isEnd(e,a,p);dd.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Pf.next(v):v}var y=Pf.parent(a),m=a[a.length-1];if(o||!Sf.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b}),a=Pf.next(a)}if(a=Pf.previous(a),s){var E=Sf.end(e,a);E&&dd.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Pf.isPath(n)?id(e,n):t=>Sf.isBlock(e,t)),n){var a=Sf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Sf.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=Sf.node(e,Pf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Pf.next(d);dd.moveNodes(e,{at:l,to:g,voids:o}),dd.removeNodes(e,{at:d,voids:o})}else if(0===p)dd.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Pf.next(d);dd.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Pf.next(l),m=Pf.next(d);dd.splitNodes(e,{at:y,voids:o}),dd.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sf.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Pf.isPath(r)){var[u]=Sf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Sf.isBlock(e,t);if(!o&&$f.isRange(r)&&(r=Sf.unhangRange(e,r)),$f.isRange(r))if($f.isCollapsed(r))r=r.anchor;else{var[,s]=$f.edges(r),l=Sf.pointRef(e,s);dd.delete(e,{at:r}),r=l.unref(),null==t.at&&dd.select(e,r)}var[c]=Sf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Sf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=Pf.next(g),b=Pf.common(p,g),w=Pf.isSibling(p,g),E=Array.from(Sf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=Sf.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&rd(e,t)}),C=D&&Sf.pathRef(e,D[1]);if(Kf.isText(d)&&Kf.isText(h)){var S=Hc(d,Jf);y=h.text.length,v=S}else{if(!mf.isElement(d)||!mf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));S=Hc(d,Qf),y=h.children.length,v=S}w||dd.moveNodes(e,{at:p,to:m,voids:i}),C&&dd.removeNodes(e,{at:C.current,voids:i}),mf.isElement(h)&&Sf.isEmpty(e,h)||Kf.isText(h)&&""===h.text&&0!==g[g.length-1]?dd.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}}))},moveNodes(e,t){Sf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Pf.isPath(r)?id(e,r):t=>Sf.isBlock(e,t));var u=Sf.pathRef(e,n),s=Sf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Sf.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Pf.isSibling(d,f)&&Pf.isAfter(d,f)&&(u.current=Pf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sf.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Pf.isPath(i)?id(e,i):t=>Sf.isBlock(e,t)),!n&&$f.isRange(i)&&(i=Sf.unhangRange(e,i));var u=Sf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Sf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Sf.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]:{};Sf.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Pf.isPath(o)?id(e,o):t=>Sf.isBlock(e,t)),!i&&$f.isRange(o)&&(o=Sf.unhangRange(e,o)),u&&$f.isRange(o)){if($f.isCollapsed(o)&&Sf.leaf(e,o.anchor)[0].text.length>0)return;var l=Sf.rangeRef(e,o,{affinity:"inward"}),[c,f]=$f.edges(o),d="lowest"===a?"lowest":"highest",p=Sf.isEnd(e,f,f.path);dd.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Sf.isStart(e,c,c.path);dd.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&dd.select(e,o)}for(var[g,v]of Sf.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]:{};Sf.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=>Sf.isBlock(e,t)),$f.isRange(i)&&(i=od(e,i)),Pf.isPath(i)){var s=i,l=Sf.point(e,s),[c]=Sf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Sf.pointRef(e,i,{affinity:"backward"}),[d]=Sf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Sf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(mf.isElement(h)&&e.isInline(h)){var v=Sf.after(e,g);if(!v){var y=Pf.next(g);dd.insertNodes(e,{text:""},{at:y,voids:r}),v=Sf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=Sf.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 Sf.levels(e,{at:E,reverse:!0,voids:r})){var x=!1;if(S.length<w.length||0===S.length||!r&&Sf.isVoid(e,C))break;var A=f.current,O=Sf.isEnd(e,A,S);if(u||!f||!Sf.isEdge(e,A,S)){x=!0;var k=Bf.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||Sf.end(e,[]);dd.select(e,B)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;dd.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sf.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Pf.isPath(i)?id(e,i):t=>Sf.isBlock(e,t)),Pf.isPath(i)&&(i=Sf.range(e,i));var u=$f.isRange(i)?Sf.rangeRef(e,i):null,s=Sf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Sf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Sf.node(e,n),a=Sf.range(e,n);r&&u&&(a=$f.intersection(u.current,a)),dd.liftNodes(e,{at:a,match:e=>mf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Sf.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Pf.isPath(u)?id(e,u):e.isInline(t)?t=>Sf.isInline(e,t)||Kf.isText(t):t=>Sf.isBlock(e,t)),o&&$f.isRange(u)){var[s,l]=$f.edges(u),c=Sf.rangeRef(e,u,{affinity:"inward"});dd.splitNodes(e,{at:l,match:a,voids:i}),dd.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&dd.select(e,u)}var f=Array.from(Sf.nodes(e,{at:u,match:e.isInline(t)?t=>Sf.isBlock(e,t):e=>Sf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=$f.isRange(u)?$f.intersection(u,Sf.range(e,d)):u;if(p){var h=Array.from(Sf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0)if("continue"===function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Pf.equals(o,a)?Pf.parent(o):Pf.common(o,a),s=Sf.range(e,o,a),l=Sf.node(e,u),[c]=l,f=u.length+1,d=Pf.next(a.slice(0,f)),p=td(td({},t),{},{children:[]});dd.insertNodes(e,p,{at:d,voids:i}),dd.moveNodes(e,{at:s,match:e=>mf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},rd=(e,t)=>{if(mf.isElement(t)){var n=t;return!!Sf.isVoid(e,t)||1===n.children.length&&rd(e,n.children[0])}return!Sf.isEditor(t)},od=(e,t)=>{if($f.isCollapsed(t))return t.anchor;var[,n]=$f.edges(t),r=Sf.pointRef(e,n);return dd.delete(e,{at:t}),r.unref()},id=(e,t)=>{var[n]=Sf.node(e,t);return e=>e===n};function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)dd.select(e,r.anchor);else if("focus"===n)dd.select(e,r.focus);else if("start"===n){var[o]=$f.edges(r);dd.select(e,o)}else if("end"===n){var[,i]=$f.edges(r);dd.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=$f.isBackward(n)?"focus":"anchor"),"end"===a&&(a=$f.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Sf.before(e,u,l):Sf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Sf.before(e,s,l):Sf.after(e,s,l);d&&(c.focus=d)}dd.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Sf.range(e,t),n)dd.setSelection(e,t);else{if(!$f.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=$f.isBackward(r)?"focus":"anchor"),"end"===o&&(o=$f.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;dd.setSelection(e,{["anchor"===o?"anchor":"focus"]:ud(ud({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Lf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Lf.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},ld={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Sf.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if($f.isRange(a)&&$f.isCollapsed(a)&&(a=a.anchor),Lf.isPoint(a)){var s=Sf.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?Sf.before(e,a,c)||Sf.start(e,[]):Sf.after(e,a,c)||Sf.end(e,[])},u=!0}}if(Pf.isPath(a))dd.removeNodes(e,{at:a,voids:i});else if(!$f.isCollapsed(a)){if(!u){var[,f]=$f.edges(a),d=Sf.end(e,[]);Lf.equals(f,d)||(a=Sf.unhangRange(e,a,{voids:i}))}var[p,h]=$f.edges(a),g=Sf.above(e,{match:t=>Sf.isBlock(e,t),at:p,voids:i}),v=Sf.above(e,{match:t=>Sf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Pf.equals(g[1],v[1]),m=Pf.equals(p.path,h.path),b=i?null:Sf.void(e,{at:p,mode:"highest"}),w=i?null:Sf.void(e,{at:h,mode:"highest"});if(b){var E=Sf.before(e,p);E&&g&&Pf.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=Sf.after(e,h);D&&v&&Pf.isAncestor(v[1],D.path)&&(h=D)}var C,S=[];for(var x of Sf.nodes(e,{at:a,voids:i})){var[A,O]=x;C&&0===Pf.compare(O,C)||(!i&&Sf.isVoid(e,A)||!Pf.isCommon(O,p.path)&&!Pf.isCommon(O,h.path))&&(S.push(x),C=O)}var k=Array.from(S,(t=>{var[,n]=t;return Sf.pathRef(e,n)})),B=Sf.pointRef(e,p),F=Sf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=Sf.leaf(e,T),{path:P}=T,{offset:j}=p,N=_.text.slice(j);N.length>0&&e.apply({type:"remove_text",path:P,offset:j,text:N})}for(var I of k){var L=I.unref();dd.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=Sf.leaf(e,R),{path:z}=R,$=m?p.offset:0,H=M.text.slice($,h.offset);H.length>0&&e.apply({type:"remove_text",path:z,offset:$,text:H})}!m&&y&&F.current&&B.current&&dd.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&dd.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Sf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if($f.isRange(i))if(r||(i=Sf.unhangRange(e,i)),$f.isCollapsed(i))i=i.anchor;else{var[,a]=$f.edges(i);if(!o&&Sf.void(e,{at:a}))return;var u=Sf.pointRef(e,a);dd.delete(e,{at:i}),i=u.unref()}else Pf.isPath(i)&&(i=Sf.start(e,i));if(o||!Sf.void(e,{at:i})){var s=Sf.above(e,{at:i,match:t=>Sf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Sf.isEnd(e,i,l)?i=Sf.after(e,l):Sf.isStart(e,i,l)&&(i=Sf.before(e,l))}var c=Sf.above(e,{match:t=>Sf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Sf.isStart(e,i,f),p=Sf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Bf.first({children:t},[]),[,m]=Bf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Pf.isAncestor(r,y)&&mf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Pf.isAncestor(r,m)&&mf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Bf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],C=[],S=[],x=!0,A=!1;for(var[O]of b)mf.isElement(O)&&!e.isInline(O)?(x=!1,A=!0,C.push(O)):x?D.push(O):S.push(O);var[k]=Sf.nodes(e,{at:i,match:t=>Kf.isText(t)||Sf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=Sf.isStart(e,i,B),T=Sf.isEnd(e,i,B),_=Sf.pathRef(e,p?Pf.next(f):f),P=Sf.pathRef(e,T?Pf.next(B):B),j=Sf.pathRef(e,f);dd.splitNodes(e,{at:i,match:t=>A?Sf.isBlock(e,t):Kf.isText(t)||Sf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=Sf.pathRef(e,!F||F&&T?Pf.next(B):B);if(dd.insertNodes(e,D,{at:N.current,match:t=>Kf.isText(t)||Sf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&dd.delete(e,{at:j.unref(),voids:o}),dd.insertNodes(e,C,{at:_.current,match:t=>Sf.isBlock(e,t),mode:"lowest",voids:o}),dd.insertNodes(e,S,{at:P.current,match:t=>Kf.isText(t)||Sf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=S.length>0?Pf.previous(P.current):C.length>0?Pf.previous(_.current):Pf.previous(N.current);var L=Sf.end(e,I);dd.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Sf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Pf.isPath(o)&&(o=Sf.range(e,o)),$f.isRange(o))if($f.isCollapsed(o))o=o.anchor;else{var i=$f.end(o);if(!r&&Sf.void(e,{at:i}))return;var a=Sf.pointRef(e,i);dd.delete(e,{at:o,voids:r}),o=a.unref(),dd.setSelection(e,{anchor:o,focus:o})}if(r||!Sf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach((function(t){Tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dd=fd(fd(fd(fd({},Zf),nd),sd),ld),pd="[object Map]",hd="[object Set]",gd=/^\[object .+?Constructor\]$/,vd=/^(?:0|[1-9]\d*)$/,yd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",md="\\ud83c[\\udffb-\\udfff]",bd="[^\\ud800-\\udfff]",wd="(?:\\ud83c[\\udde6-\\uddff]){2}",Ed="[\\ud800-\\udbff][\\udc00-\\udfff]",Dd="(?:"+yd+"|"+md+")?",Cd="[\\ufe0e\\ufe0f]?"+Dd+"(?:\\u200d(?:"+[bd,wd,Ed].join("|")+")[\\ufe0e\\ufe0f]?"+Dd+")*",Sd="(?:"+[bd+yd+"?",yd,wd,Ed,"[\\ud800-\\udfff]"].join("|")+")",xd=RegExp(md+"(?="+md+")|"+Sd+Cd,"g"),Ad=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Od="object"==typeof l&&l&&l.Object===Object&&l,kd="object"==typeof self&&self&&self.Object===Object&&self,Bd=Od||kd||Function("return this")();function Fd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Td(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var _d,Pd,jd=Function.prototype,Nd=Object.prototype,Id=Bd["__core-js_shared__"],Ld=function(){var e=/[^.]+$/.exec(Id&&Id.keys&&Id.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rd=jd.toString,Md=Nd.hasOwnProperty,zd=Nd.toString,$d=RegExp("^"+Rd.call(Md).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hd=Bd.Symbol,Vd=Hd?Hd.iterator:void 0,Ud=Nd.propertyIsEnumerable,Wd=(_d=Object.keys,Pd=Object,function(e){return _d(Pd(e))}),Gd=np(Bd,"DataView"),qd=np(Bd,"Map"),Kd=np(Bd,"Promise"),Yd=np(Bd,"Set"),Xd=np(Bd,"WeakMap"),Zd=ip(Gd),Jd=ip(qd),Qd=ip(Kd),ep=ip(Yd),tp=ip(Xd);function np(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!lp(e)||(t=e,Ld&&Ld in t))return!1;var t,n=sp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?$d:gd;return n.test(ip(e))}(o)?o:void 0}var rp=function(e){return zd.call(e)};function op(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||vd.test(e))&&e>-1&&e%1==0&&e<t}function ip(e){if(null!=e){try{return Rd.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(Gd&&"[object DataView]"!=rp(new Gd(new ArrayBuffer(1)))||qd&&rp(new qd)!=pd||Kd&&"[object Promise]"!=rp(Kd.resolve())||Yd&&rp(new Yd)!=hd||Xd&&"[object WeakMap]"!=rp(new Xd))&&(rp=function(e){var t=zd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?ip(n):void 0;if(r)switch(r){case Zd:return"[object DataView]";case Jd:return pd;case Qd:return"[object Promise]";case ep:return hd;case tp:return"[object WeakMap]"}return t});var ap=Array.isArray;function up(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!sp(e);var t}function sp(e){var t=lp(e)?zd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function lp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function cp(e){return!!e&&"object"==typeof e}function fp(e){return e?function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n]);return o}(t,(function(t){return e[t]}))}(e,up(t=e)?function(e,t){var n,r,o=ap(e)||cp(r=n=e)&&up(r)&&Md.call(n,"callee")&&(!Ud.call(n,"callee")||"[object Arguments]"==zd.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&&!Md.call(e,u)||a&&("length"==u||op(u,i))||o.push(u);return o}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Nd))return Wd(e);var t,n,r=[];for(var o in Object(e))Md.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var dp=function(e){if(!e)return[];if(up(e))return"string"==typeof(t=e)||!ap(t)&&cp(t)&&"[object String]"==zd.call(t)?function(e){return t=e,Ad.test(t)?function(e){return e.match(xd)||[]}(e):function(e){return e.split("")}(e);var t}(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);var t;if(Vd&&e[Vd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Vd]());var n=rp(e);return(n==pd?Fd:n==hd?Td:fp)(e)};function pp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function hp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:pp(t[n])&&pp(e[n])&&Object.keys(t[n]).length>0&&hp(e[n],t[n])}))}var gp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function vp(){var e="undefined"!=typeof document?document:{};return hp(e,gp),e}var yp={document:gp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function mp(){var e="undefined"!=typeof window?window:{};return hp(e,yp),e}function bp(e){return(bp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wp(e,t){return(wp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ep(e,t,n){return Ep=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&wp(o,n.prototype),o},Ep.apply(null,arguments)}function Dp(e){var t="function"==typeof Map?new Map:void 0;return Dp=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ep(e,arguments,bp(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),wp(r,e)},Dp(e)}var Cp=function(e){var t,n;function r(t){var n,r,o;return r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n=e.call.apply(e,[this].concat(t))||this),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Dp(Array));function Sp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Sp(e)):t.push(e)})),t}function xp(e,t){return Array.prototype.filter.call(e,t)}function Ap(e,t){var n=mp(),r=vp(),o=[];if(!t&&e instanceof Cp)return e;if(!e)return new Cp(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 Cp)return e;o=e}return new Cp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function Op(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Bp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Sp(t.map((function(e){return e.split(" ")})));return xp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Fp(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Tp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function _p(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Pp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function jp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Ap(t).is(o))i.apply(t,n);else for(var r=Ap(t).parents(),a=0;a<r.length;a+=1)Ap(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Np(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Ip(){var e=mp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Lp(){var e=mp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Rp(){if(this.length>0){var e=mp(),t=vp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Mp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function zp(){for(var e=mp(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function $p(e,t){var n,r=mp();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Hp(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Vp(e){return Ap(xp(this,e))}function Up(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Wp(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Gp(e){var t,n,r=mp(),o=vp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Ap(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Cp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function qp(){for(var e,t=vp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Cp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Kp(e){var t,n,r=vp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Cp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Yp(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Ap(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Ap(t)}function Xp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Ap(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Ap(t)}function Zp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Ap(t)}function Jp(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Ap(r[o]).is(e)||t.push(r[o]);return Ap(t)}function Qp(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function eh(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Ap.fn=Cp.prototype;var th="resize scroll".split(" ");function nh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)th.indexOf(e)<0&&(e in this[o]?this[o][e]():Ap(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var rh=nh("click"),oh=nh("focus"),ih="[object GeneratorFunction]",ah=/^(?:0|[1-9]\d*)$/;function uh(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,lh=sh.hasOwnProperty,ch=sh.toString,fh=sh.propertyIsEnumerable,dh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var ph,hh=(ph=function(e,t){return e&&gh(e,t,bh)},function(e,t){if(null==e)return e;if(!mh(e))return ph(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),gh=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 vh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||ah.test(e))&&e>-1&&e%1==0&&e<t}var yh=Array.isArray;function mh(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?"":ch.call(e));return"[object Function]"==r||r==ih}(e);var t}function bh(e){return mh(e)?function(e,t){var n,r,o,i=yh(e)||(o=r=n=e)&&"object"==typeof o&&mh(r)&&lh.call(n,"callee")&&(!fh.call(n,"callee")||"[object Arguments]"==ch.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&&!lh.call(e,s)||u&&("length"==s||vh(s,a))||i.push(s);return i}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||sh))return dh(e);var t,n,r=[];for(var o in Object(e))lh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function wh(e){return e}var Eh=function(e,t){return(yh(e)?uh:hh)(e,"function"==typeof t?t:wh)};let Dh=(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 Ch=/^\s+|\s+$/g,Sh=/^[-+]0x[0-9a-f]+$/i,xh=/^0b[01]+$/i,Ah=/^0o[0-7]+$/i,Oh=parseInt,kh="object"==typeof l&&l&&l.Object===Object&&l,Bh="object"==typeof self&&self&&self.Object===Object&&self,Fh=kh||Bh||Function("return this")(),Th=Object.prototype.toString,_h=Math.max,Ph=Math.min,jh=function(){return Fh.Date.now()};function Nh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=jh();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?Ph(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=jh(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Lh(t)||0,Ih(n)&&(c=!!n.leading,i=(f="maxWait"in n)?_h(Lh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(jh())},y}function Ih(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Lh(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Th.call(t))return NaN;var t,n;if(Ih(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=Ih(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ch,"");var o=xh.test(e);return o||Ah.test(e)?Oh(e.slice(2),o?2:8):Sh.test(e)?NaN:+e}var Rh=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Ih(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Nh(e,t,{leading:r,maxWait:t,trailing:o})};const Mh={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 zh(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 $h=Array.isArray;function Hh(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function Vh(e){return void 0===e}function Uh(e){return void 0!==e}const Wh=zh("",{},[],void 0,void 0);function Gh(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 qh(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 Kh=["create","update","remove","destroy","pre","post"];function Yh(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Mh;for(const c of Kh)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;Uh(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Vh(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=Uh(s)&&Uh(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](Wh,e);if($h(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else Hh(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;Uh(v)&&(null===(a=v.create)||void 0===a||a.call(v,Wh,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(Uh(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;Uh(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)}Vh(t.text)?Uh(v)&&Uh(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]:Gh(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):Gh(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):Gh(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):Gh(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=qh(t,p,g)),c=u[b.key],Vh(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):Uh(y)?(Uh(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):Uh(v)?s(g,v,0,v.length-1):Uh(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(Uh(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 zh(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),Gh(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 Xh(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&&Xh(e,t[r].children,t[r].sel)}}function Zh(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),$h(n)?r=n:Hh(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&($h(t)?r=t:Hh(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)Hh(r[i])&&(r[i]=zh(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]||Xh(a,r,e),zh(e,a,r,o,void 0)}function Jh(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 Qh={create:Jh,update:Jh};function eg(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 tg={create:eg,update:eg},ng=/[A-Z]/g;function rg(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(ng,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(ng,"-$&").toLowerCase(),i[r]))}const og={create:rg,update:rg};function ig(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++)ig(e[r],t,n)}function ag(e,t){const n=e.type,r=t.data.on;r&&r[n]&&ig(r[n],t,e)}function ug(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){ag(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 sg={create:ug,update:ug,destroy:ug};function lg(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 cg={create:lg,update:lg},fg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let dg=!1;function pg(e,t,n){var r;r=function(){e[t]=n},fg((function(){fg(r)}))}function hg(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]||pg(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const gg={pre:function(){dg=!1},create:hg,update:hg,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;dg||(e.elm.offsetLeft,dg=!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 vg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?vg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(zh(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function yg(e,t,...n){const r=vg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Zh(e,t,r[0].text):Zh(e,t,r)}yg||(yg={});var mg,bg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Eg="\\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",Dg="["+Eg+"]",Cg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Sg="\\d+",xg="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ag="[^\\ud800-\\udfff"+Eg+Sg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Og="\\ud83c[\\udffb-\\udfff]",kg="[^\\ud800-\\udfff]",Bg="(?:\\ud83c[\\udde6-\\uddff]){2}",Fg="[\\ud800-\\udbff][\\udc00-\\udfff]",Tg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",_g="(?:"+xg+"|"+Ag+")",Pg="(?:"+Tg+"|"+Ag+")",jg="(?:"+Cg+"|"+Og+")?",Ng="[\\ufe0e\\ufe0f]?"+jg+"(?:\\u200d(?:"+[kg,Bg,Fg].join("|")+")[\\ufe0e\\ufe0f]?"+jg+")*",Ig="(?:"+["[\\u2700-\\u27bf]",Bg,Fg].join("|")+")"+Ng,Lg="(?:"+[kg+Cg+"?",Cg,Bg,Fg,"[\\ud800-\\udfff]"].join("|")+")",Rg=RegExp("['’]","g"),Mg=RegExp(Cg,"g"),zg=RegExp(Og+"(?="+Og+")|"+Lg+Ng,"g"),$g=RegExp([Tg+"?"+xg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Dg,Tg,"$"].join("|")+")",Pg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Dg,Tg+_g,"$"].join("|")+")",Tg+"?"+_g+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Tg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Sg,Ig].join("|"),"g"),Hg=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Vg=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ug="object"==typeof l&&l&&l.Object===Object&&l,Wg="object"==typeof self&&self&&self.Object===Object&&self,Gg=Ug||Wg||Function("return this")(),qg=(mg={"À":"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==mg?void 0:mg[e]});function Kg(e){return Hg.test(e)}var Yg=Object.prototype.toString,Xg=Gg.Symbol,Zg=Xg?Xg.prototype:void 0,Jg=Zg?Zg.toString:void 0;function Qg(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Yg.call(t))return Jg?Jg.call(e):"";var t,n,r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}for(var ev,tv=(ev=function(e,t,n){return t=t.toLowerCase(),e+(n?nv(Qg(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=Qg(e),void 0===t?(r=e,Vg.test(r)?function(e){return e.match($g)||[]}(e):function(e){return e.match(bg)||[]}(e)):e.match(t)||[];var r}((t=e,(t=Qg(t))&&t.replace(wg,qg).replace(Mg,"")).replace(Rg,"")),ev,"");var t}),nv=("toUpperCase",function(e){var t=Kg(e=Qg(e))?function(e){return Kg(e)?e.match(zg)||[]:(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}),rv=tv,ov="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),iv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},av={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ov?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},uv={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},sv=1;sv<20;sv++)uv["f"+sv]=111+sv;function lv(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 iv)r[iv[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=fv(d),g=iv[h];if(d.length>1&&!g&&!av[d]&&!uv[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=cv(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 cv(e){return e=fv(e),uv[e]||e.toUpperCase().charCodeAt(0)}function fv(e){return e=e.toLowerCase(),av[e]||e}var dv=lv,pv=function(e,t){return lv(e,{byKey:!0},t)},hv=/^\s+|\s+$/g,gv=/^[-+]0x[0-9a-f]+$/i,vv=/^0b[01]+$/i,yv=/^0o[0-7]+$/i,mv=parseInt,bv="object"==typeof l&&l&&l.Object===Object&&l,wv="object"==typeof self&&self&&self.Object===Object&&self,Ev=bv||wv||Function("return this")(),Dv=Object.prototype.toString,Cv=Math.max,Sv=Math.min,xv=function(){return Ev.Date.now()};function Av(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ov(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Dv.call(t))return NaN;var t,n;if(Av(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=Av(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(hv,"");var o=vv.test(e);return o||yv.test(e)?mv(e.slice(2),o?2:8):gv.test(e)?NaN:+e}var kv,Bv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e,n,r=xv();if(h(r))return v(r);u=setTimeout(g,(n=t-((e=r)-s),f?Sv(n,i-(e-l)):n))}function v(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=xv(),n=h(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(g,t),c?p(e):a}(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Ov(t)||0,Av(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Cv(Ov(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},y.flush=function(){return void 0===u?a:v(xv())},y},Fv=c((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]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",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[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[u]=P[m]=!1;var j="object"==typeof l&&l&&l.Object===Object&&l,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,l,p,m){var T;if(r&&(T=p?r(e,l,p,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==d||L==o||R&&!p){if(V(e))return p?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 p?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 c:return function(e,t,n){return H(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case v:return new s(e);case h:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(G(e),!0):G(e),$,new e.constructor)}(e,r,n);case y: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)!=c||he&&Le(he.resolve())!=p||ge&&Le(new ge)!=g||ve&&Le(new ve)!=m)&&(Le=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case Ee:return g;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 Tv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _v=0;function Pv(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r
- /**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */}function jv(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=Pv(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var Nv=(kv=function(e){return"__private_"+_v+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,kv,{value:Iv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Tv(this,kv)[kv],this):Tv(this,kv)[kv](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 jv(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 jv(o,t)}});function Iv(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 Lv=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:Rv}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Mv=e=>crypto.getRandomValues(new Uint8Array(e)),zv=(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 $v={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)=>zv(e,t,Mv),customRandom:zv,urlAlphabet:Rv,random:Mv},Hv=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 Vv(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}Vv.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 Uv=/[\/\+\.]/,Wv=0;var Gv=function(e){return"__private_"+Wv+++"_"+e}("publish");class qv{constructor(){Object.defineProperty(this,Gv,{value:Kv}),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,Gv)[Gv](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Kv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}qv.VERSION="2.0.3";var Yv=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)}},Xv={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 Zv(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var Jv=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 Qv(e){return e<10?`0${e}`:e.toString()}var ey=function(){const e=new Date;return`${Qv(e.getHours())}:${Qv(e.getMinutes())}:${Qv(e.getSeconds())}`},ty={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] [${ey()}]`,...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] [${ey()}]`,...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] [${ey()}]`,...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] [${ey()}]`,...t)}}},ny={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}"}}},ry=$v;let oy,iy;function ay(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uy=0;function sy(e){return"__private_"+uy+++"_"+e}const{nanoid:ly}=ry,{justErrorsLogger:cy,debugLogger:fy}=ty;class dy 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 py extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var hy=sy("plugins"),gy=sy("storeUnsubscribe"),vy=sy("emitter"),yy=sy("preProcessors"),my=sy("uploaders"),by=sy("postProcessors"),wy=sy("checkRestrictions"),Ey=sy("checkMinNumberOfFiles"),Dy=sy("checkRequiredMetaFieldsOnFile"),Cy=sy("checkRequiredMetaFields"),Sy=sy("showOrLogErrorAndThrow"),xy=sy("assertNewUploadAllowed"),Ay=sy("checkAndCreateFileStateObject"),Oy=sy("startIfAutoProceed"),ky=sy("addListeners"),By=sy("updateOnlineStatus"),Fy=sy("createUpload"),Ty=sy("getUpload"),_y=sy("removeUpload"),Py=sy("runUpload");oy=Symbol.for("uppy test: getPlugins"),iy=Symbol.for("uppy test: createUpload");class jy{constructor(e){Object.defineProperty(this,Py,{value:qy}),Object.defineProperty(this,_y,{value:Gy}),Object.defineProperty(this,Ty,{value:Wy}),Object.defineProperty(this,Fy,{value:Uy}),Object.defineProperty(this,ky,{value:Vy}),Object.defineProperty(this,Oy,{value:Hy}),Object.defineProperty(this,Ay,{value:$y}),Object.defineProperty(this,xy,{value:zy}),Object.defineProperty(this,Sy,{value:My}),Object.defineProperty(this,Cy,{value:Ry}),Object.defineProperty(this,Dy,{value:Ly}),Object.defineProperty(this,Ey,{value:Iy}),Object.defineProperty(this,wy,{value:Ny}),Object.defineProperty(this,hy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,gy,{writable:!0,value:void 0}),Object.defineProperty(this,vy,{writable:!0,value:Lv()}),Object.defineProperty(this,yy,{writable:!0,value:new Set}),Object.defineProperty(this,my,{writable:!0,value:new Set}),Object.defineProperty(this,by,{writable:!0,value:new Set}),Object.defineProperty(this,By,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=ny;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 qv,logger:cy,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=fy),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=Rh(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Jv(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ay(this,gy)[gy]=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),ay(this,ky)[ky]()}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];ay(this,vy)[vy].emit(e,...n)}on(e,t){return ay(this,vy)[vy].on(e,t),this}once(e,t){return ay(this,vy)[vy].once(e,t),this}off(e,t){return ay(this,vy)[vy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new Nv([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){ay(this,yy)[yy].add(e)}removePreProcessor(e){return ay(this,yy)[yy].delete(e)}addPostProcessor(e){ay(this,by)[by].add(e)}removePostProcessor(e){return ay(this,by)[by].delete(e)}addUploader(e){ay(this,my)[my].add(e)}removeUploader(e){return ay(this,my)[my].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 ay(this,wy)[wy](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){ay(this,xy)[xy](e);const{files:t}=this.getState();let n=ay(this,Ay)[Ay](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}`),ay(this,Oy)[Oy](),n.id}addFiles(e){ay(this,xy)[xy]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=ay(this,Ay)[Ay](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&&ay(this,Oy)[Oy](),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=ay(this,Fy)[Fy](t,{forceAllowNewUpload:!0});return ay(this,Py)[Py](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=ay(this,Fy)[Fy]([e],{forceAllowNewUpload:!0});return ay(this,Py)[Py](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 ay(this,hy)[hy]?ay(this,hy)[hy][n.type].push(n):ay(this,hy)[hy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(ay(this,hy)[hy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[oy](e){return ay(this,hy)[hy][e]}iteratePlugins(e){Object.values(ay(this,hy)[hy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=ay(this,hy)[hy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ay(this,gy)[gy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",ay(this,By)[By]),window.removeEventListener("offline",ay(this,By)[By]))}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]?ay(this,Py)[Py](e):(ay(this,_y)[_y](e),Promise.reject(new Error("Nonexistent upload")))}[iy](){return ay(this,Fy)[Fy](...arguments)}addResultData(e,t){if(!ay(this,Ty)[Ty](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=ay(this,hy)[hy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{ay(this,Ey)[Ey](t),ay(this,Cy)[Cy](t)})).catch((e=>{ay(this,Sy)[Sy](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=ay(this,Fy)[Fy](r);return ay(this,Py)[Py](o)})).catch((e=>{ay(this,Sy)[Sy](e,{showInformer:!1})})))}}function Ny(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 dy(`${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 Vv(e,Uv||/[\/\.]/);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 dy(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 dy(this.i18n("exceedsSize",{size:Hv(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new dy(this.i18n("exceedsSize",{size:Hv(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new dy(this.i18n("inferiorSize",{size:Hv(r)}))}function Iy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new dy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Ly(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 dy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),ay(this,Sy)[Sy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Ry(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return ay(this,Dy)[Dy](t)}));if(t.length)throw new py(t,`${this.i18n("missingRequiredMetaField")}`)}function My(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 zy(e){const{allowNewUpload:t}=this.getState();!1===t&&ay(this,Sy)[Sy](new dy(this.i18n("noMoreFilesAllowed")),{file:e})}function $y(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=Yv(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Xv?Xv[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=Yv(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Zv(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Zv(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 dy(this.i18n("noDuplicates",{fileName:r}));ay(this,Sy)[Sy](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?ay(this,Sy)[Sy](new dy("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]));ay(this,wy)[wy](f,t)}catch(u){ay(this,Sy)[Sy](u,{file:f})}return f}function Hy(){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 Vy(){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}),ay(this,Sy)[Sy](e,{throwErr:!1})}else ay(this,Sy)[Sy](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:ay(this,by)[by].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&&ay(this,Dy)[Dy](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",ay(this,By)[By]),window.addEventListener("offline",ay(this,By)[By]),setTimeout(ay(this,By)[By],3e3))}function Uy(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=ly();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 Wy(e){const{currentUploads:t}=this.getState();return t[e]}function Gy(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function qy(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...ay(this,yy)[yy],...ay(this,my)[my],...ay(this,by)[by]];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),ay(this,_y)[_y](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),ay(this,_y)[_y](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}jy.VERSION="2.1.3";var Ky=jy,Yy=c((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}})),Xy=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 Nv([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 Zy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Jy=0;const{render:Qy}=Yy;var em=function(e){return"__private_"+Jy+++"_"+e}("updateUI");class tm extends Xy{constructor(){super(...arguments),Object.defineProperty(this,em,{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 Zy(this,em)[em]=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)&&(Qy(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Qy(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof tm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Zy(this,em))[em])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var nm=tm;const{debugLogger:rm}=ty;var om=Ky,im=Ky,am=nm,um=Xy,sm=rm;om.Uppy=im,om.UIPlugin=am,om.BasePlugin=um,om.debugLogger=sm;class lm 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 cm=lm,fm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new cm(e)}))};class dm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var pm,hm,gm,vm,ym,mm=dm;function bm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var wm=0;function Em(e){return"__private_"+wm+++"_"+e}async function Dm(e){if(401===e.status)throw new mm;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 Cm=(hm=Em("getPostResponseFunc"),gm=Em("getUrl"),vm=Em("errorHandler"),ym=pm=class e{constructor(e,t){Object.defineProperty(this,vm,{value:xm}),Object.defineProperty(this,gm,{value:Sm}),Object.defineProperty(this,hm,{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(bm(this,gm)[gm](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=>fm(bm(this,gm)[gm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(bm(this,hm)[hm](t)).then(Dm).catch(bm(this,vm)[vm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>fm(bm(this,gm)[gm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(bm(this,hm)[hm](n)).then(Dm).catch(bm(this,vm)[vm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>fm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(bm(this,hm)[hm](n)).then(Dm).catch(bm(this,vm)[vm](r,e))}},pm.VERSION="2.0.4",pm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${pm.VERSION}`},ym);function Sm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function xm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${bm(this,gm)[gm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Am,Om,km,Bm,Fm,Tm={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 _m,Pm;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}var Lm,Rm,Mm=(Am=Im("queued"),Om=Im("emitter"),km=Im("isOpen"),Bm=Im("socket"),Fm=Im("handleMessage"),_m=Symbol.for("uppy test: getSocket"),Pm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,Am,{writable:!0,value:[]}),Object.defineProperty(this,Om,{writable:!0,value:Lv()}),Object.defineProperty(this,km,{writable:!0,value:!1}),Object.defineProperty(this,Bm,{writable:!0,value:void 0}),Object.defineProperty(this,Fm,{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 jm(this,km)[km]}[_m](){return jm(this,Bm)[Bm]}[Pm](){return jm(this,Am)[Am]}open(){jm(this,Bm)[Bm]=new WebSocket(this.opts.target),jm(this,Bm)[Bm].onopen=()=>{for(jm(this,km)[km]=!0;jm(this,Am)[Am].length>0&&jm(this,km)[km];){const e=jm(this,Am)[Am].shift();this.send(e.action,e.payload)}},jm(this,Bm)[Bm].onclose=()=>{jm(this,km)[km]=!1},jm(this,Bm)[Bm].onmessage=jm(this,Fm)[Fm]}close(){var e;null==(e=jm(this,Bm)[Bm])||e.close()}send(e,t){jm(this,km)[km]?jm(this,Bm)[Bm].send(JSON.stringify({action:e,payload:t})):jm(this,Am)[Am].push({action:e,payload:t})}on(e,t){jm(this,Om)[Om].on(e,t)}emit(e,t){jm(this,Om)[Om].emit(e,t)}once(e,t){jm(this,Om)[Om].once(e,t)}}),zm={RequestClient:Cm,Provider:class extends Cm{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||Tm}},SearchProvider:class extends Cm{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:Mm},$m=Rh((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 Hm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Vm=0;function Um(e){return"__private_"+Vm+++"_"+e}var Wm=(Lm=Um("emitter"),Rm=Um("events"),class{constructor(e){Object.defineProperty(this,Lm,{writable:!0,value:void 0}),Object.defineProperty(this,Rm,{writable:!0,value:[]}),Hm(this,Lm)[Lm]=e}on(e,t){return Hm(this,Rm)[Rm].push([e,t]),Hm(this,Lm)[Lm].on(e,t)}remove(){for(const[e,t]of Hm(this,Rm)[Rm].splice(0))Hm(this,Lm)[Lm].off(e,t)}});function Gm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var qm=0;function Km(e){return"__private_"+qm+++"_"+e}var Ym=Km("aliveTimer"),Xm=Km("isDone"),Zm=Km("onTimedOut"),Jm=Km("timeout"),Qm=class{constructor(e,t){Object.defineProperty(this,Ym,{writable:!0,value:void 0}),Object.defineProperty(this,Xm,{writable:!0,value:!1}),Object.defineProperty(this,Zm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:void 0}),Gm(this,Jm)[Jm]=e,Gm(this,Zm)[Zm]=t}progress(){Gm(this,Xm)[Xm]||Gm(this,Jm)[Jm]>0&&(clearTimeout(Gm(this,Ym)[Ym]),Gm(this,Ym)[Ym]=setTimeout(Gm(this,Zm)[Zm],Gm(this,Jm)[Jm]))}done(){Gm(this,Xm)[Xm]||(clearTimeout(Gm(this,Ym)[Ym]),Gm(this,Ym)[Ym]=null,Gm(this,Xm)[Xm]=!0)}};function eb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var tb=0;function nb(e){return"__private_"+tb+++"_"+e}var rb=nb("activeRequests"),ob=nb("queuedHandlers"),ib=nb("call"),ab=nb("queueNext"),ub=nb("next"),sb=nb("queue"),lb=nb("dequeue");function cb(e){eb(this,rb)[rb]+=1;let t,n=!1;try{t=e()}catch(r){throw eb(this,rb)[rb]-=1,r}return{abort:()=>{n||(n=!0,eb(this,rb)[rb]-=1,t(),eb(this,ab)[ab]())},done:()=>{n||(n=!0,eb(this,rb)[rb]-=1,eb(this,ab)[ab]())}}}function fb(){queueMicrotask((()=>eb(this,ub)[ub]()))}function db(){if(eb(this,rb)[rb]>=this.limit)return;if(0===eb(this,ob)[ob].length)return;const e=eb(this,ob)[ob].shift(),t=eb(this,ib)[ib](e.fn);e.abort=t.abort,e.done=t.done}function pb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{eb(this,lb)[lb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=eb(this,ob)[ob].findIndex((e=>n.priority>e.priority));return-1===r?eb(this,ob)[ob].push(n):eb(this,ob)[ob].splice(r,0,n),n}function hb(e){const t=eb(this,ob)[ob].indexOf(e);-1!==t&&eb(this,ob)[ob].splice(t,1)}var gb,vb,yb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,lb,{value:hb}),Object.defineProperty(this,sb,{value:pb}),Object.defineProperty(this,ub,{value:db}),Object.defineProperty(this,ab,{value:fb}),Object.defineProperty(this,ib,{value:cb}),Object.defineProperty(this,rb,{writable:!0,value:0}),Object.defineProperty(this,ob,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return eb(this,rb)[rb]<this.limit?eb(this,ib)[ib](e):eb(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=new Error("Cancelled")}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},mb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},bb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:wb}=ry,{Provider:Eb,RequestClient:Db,Socket:Cb}=zm,{RateLimitedQueue:Sb,internalRateLimitedQueue:xb}=yb;function Ab(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})),mb(e)?(n=new cm(n,e),n):(n.request=e,n)}function Ob(e){return e.data.slice(0,e.data.size,e.meta.type)}var kb=(vb=gb=class extends Xy{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=bb;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 mb(t)&&(n=new cm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),xb in this.opts?this.requests=this.opts[xb]:this.requests=new Sb(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=Ob(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=Ob(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 Wm(this.uppy);const a=new Qm(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=wb();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=Ab(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=Ab(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?Eb:Db)(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 Cb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Wm(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=>$m(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 Qm(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[xb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},gb.VERSION="2.0.6",vb),Bb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Tb,_b,Pb=function(e){return e&&e.Math==Math&&e},jb=Pb("object"==typeof globalThis&&globalThis)||Pb("object"==typeof window&&window)||Pb("object"==typeof self&&self)||Pb("object"==typeof Bb&&Bb)||function(){return this}()||Function("return this")(),Nb=Object.defineProperty,Ib=function(e,t){try{Nb(jb,e,{value:t,configurable:!0,writable:!0})}catch(oP){jb[e]=t}return t},Lb=jb["__core-js_shared__"]||Ib("__core-js_shared__",{}),Rb=Fb((function(e){(e.exports=function(e,t){return Lb[e]||(Lb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Mb=Function.prototype,zb=Mb.bind,$b=Mb.call,Hb=zb&&zb.bind($b),Vb=zb?function(e){return e&&Hb($b,e)}:function(e){return e&&function(){return $b.apply(e,arguments)}},Ub=jb.TypeError,Wb=function(e){if(null==e)throw Ub("Can't call method on "+e);return e},Gb=jb.Object,qb=function(e){return Gb(Wb(e))},Kb=Vb({}.hasOwnProperty),Yb=Object.hasOwn||function(e,t){return Kb(qb(e),t)},Xb=0,Zb=Math.random(),Jb=Vb(1..toString),Qb=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Jb(++Xb+Zb,36)},ew=function(e){return"function"==typeof e},tw=function(e,t){return arguments.length<2?function(e){return ew(e)?e:void 0}(jb[e]):jb[e]&&jb[e][t]},nw=tw("navigator","userAgent")||"",rw=jb.process,ow=jb.Deno,iw=rw&&rw.versions||ow&&ow.version,aw=iw&&iw.v8;aw&&(_b=(Tb=aw.split("."))[0]>0&&Tb[0]<4?1:+(Tb[0]+Tb[1])),!_b&&nw&&(!(Tb=nw.match(/Edge\/(\d+)/))||Tb[1]>=74)&&(Tb=nw.match(/Chrome\/(\d+)/))&&(_b=+Tb[1]);var uw=_b,sw=function(e){try{return!!e()}catch(t){return!0}},lw=!!Object.getOwnPropertySymbols&&!sw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uw&&uw<41})),cw=lw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fw=Rb("wks"),dw=jb.Symbol,pw=dw&&dw.for,hw=cw?dw:dw&&dw.withoutSetter||Qb,gw=function(e){if(!Yb(fw,e)||!lw&&"string"!=typeof fw[e]){var t="Symbol."+e;lw&&Yb(dw,e)?fw[e]=dw[e]:fw[e]=cw&&pw?pw(t):hw(t)}return fw[e]},vw={};vw[gw("toStringTag")]="z";var yw="[object z]"===String(vw),mw=!sw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),bw=function(e){return"object"==typeof e?null!==e:ew(e)},ww=jb.document,Ew=bw(ww)&&bw(ww.createElement),Dw=function(e){return Ew?ww.createElement(e):{}},Cw=!mw&&!sw((function(){return 7!=Object.defineProperty(Dw("div"),"a",{get:function(){return 7}}).a})),Sw=jb.String,xw=jb.TypeError,Aw=function(e){if(bw(e))return e;throw xw(Sw(e)+" is not an object")},Ow=Function.prototype.call,kw=Ow.bind?Ow.bind(Ow):function(){return Ow.apply(Ow,arguments)},Bw=Vb({}.isPrototypeOf),Fw=jb.Object,Tw=cw?function(e){return"symbol"==typeof e}:function(e){var t=tw("Symbol");return ew(t)&&Bw(t.prototype,Fw(e))},_w=jb.String,Pw=function(e){try{return _w(e)}catch(t){return"Object"}},jw=jb.TypeError,Nw=function(e){if(ew(e))return e;throw jw(Pw(e)+" is not a function")},Iw=function(e,t){var n=e[t];return null==n?void 0:Nw(n)},Lw=jb.TypeError,Rw=jb.TypeError,Mw=gw("toPrimitive"),zw=function(e){var t=function(e,t){if(!bw(e)||Tw(e))return e;var n,r=Iw(e,Mw);if(r){if(void 0===t&&(t="default"),n=kw(r,e,t),!bw(n)||Tw(n))return n;throw Rw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&ew(n=e.toString)&&!bw(r=kw(n,e)))return r;if(ew(n=e.valueOf)&&!bw(r=kw(n,e)))return r;if("string"!==t&&ew(n=e.toString)&&!bw(r=kw(n,e)))return r;throw Lw("Can't convert object to primitive value")}(e,t)}(e,"string");return Tw(t)?t:t+""},$w=jb.TypeError,Hw=Object.defineProperty,Vw={f:mw?Hw:function(e,t,n){if(Aw(e),t=zw(t),Aw(n),Cw)try{return Hw(e,t,n)}catch(r){}if("get"in n||"set"in n)throw $w("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Uw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ww=mw?function(e,t,n){return Vw.f(e,t,Uw(1,n))}:function(e,t,n){return e[t]=n,e},Gw=Vb(Function.toString);ew(Lb.inspectSource)||(Lb.inspectSource=function(e){return Gw(e)});var qw,Kw,Yw,Xw=Lb.inspectSource,Zw=jb.WeakMap,Jw=ew(Zw)&&/native code/.test(Xw(Zw)),Qw=Rb("keys"),eE=function(e){return Qw[e]||(Qw[e]=Qb(e))},tE={},nE=jb.TypeError,rE=jb.WeakMap;if(Jw||Lb.state){var oE=Lb.state||(Lb.state=new rE),iE=Vb(oE.get),aE=Vb(oE.has),uE=Vb(oE.set);qw=function(e,t){if(aE(oE,e))throw new nE("Object already initialized");return t.facade=e,uE(oE,e,t),t},Kw=function(e){return iE(oE,e)||{}},Yw=function(e){return aE(oE,e)}}else{var sE=eE("state");tE[sE]=!0,qw=function(e,t){if(Yb(e,sE))throw new nE("Object already initialized");return t.facade=e,Ww(e,sE,t),t},Kw=function(e){return Yb(e,sE)?e[sE]:{}},Yw=function(e){return Yb(e,sE)}}var lE={set:qw,get:Kw,has:Yw,enforce:function(e){return Yw(e)?Kw(e):qw(e,{})},getterFor:function(e){return function(t){var n;if(!bw(t)||(n=Kw(t)).type!==e)throw nE("Incompatible receiver, "+e+" required");return n}}},cE=Function.prototype,fE=mw&&Object.getOwnPropertyDescriptor,dE=Yb(cE,"name"),pE={EXISTS:dE,PROPER:dE&&"something"===function(){}.name,CONFIGURABLE:dE&&(!mw||mw&&fE(cE,"name").configurable)},hE=Fb((function(e){var t=pE.CONFIGURABLE,n=lE.get,r=lE.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;ew(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Yb(i,"name")||t&&i.name!==f)&&Ww(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==jb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Ww(e,n,i)):l?e[n]=i:Ib(n,i)})(Function.prototype,"toString",(function(){return ew(this)&&n(this).source||Xw(this)}))})),gE=Vb({}.toString),vE=Vb("".slice),yE=function(e){return vE(gE(e),8,-1)},mE=gw("toStringTag"),bE=jb.Object,wE="Arguments"==yE(function(){return arguments}()),EE=yw?yE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=bE(e),mE))?n:wE?yE(t):"Object"==(r=yE(t))&&ew(t.callee)?"Arguments":r},DE=yw?{}.toString:function(){return"[object "+EE(this)+"]"};yw||hE(Object.prototype,"toString",DE,{unsafe:!0});var CE={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},SE=Dw("span").classList,xE=SE&&SE.constructor&&SE.constructor.prototype,AE=xE===Object.prototype?void 0:xE,OE=Vb(Vb.bind),kE=function(e,t){return Nw(e),void 0===t?e:OE?OE(e,t):function(){return e.apply(t,arguments)}},BE=jb.Object,FE=Vb("".split),TE=sw((function(){return!BE("z").propertyIsEnumerable(0)}))?function(e){return"String"==yE(e)?FE(e,""):BE(e)}:BE,_E=Math.ceil,PE=Math.floor,jE=function(e){var t=+e;return t!=t||0===t?0:(t>0?PE:_E)(t)},NE=Math.min,IE=function(e){return e>0?NE(jE(e),9007199254740991):0},LE=function(e){return IE(e.length)},RE=Array.isArray||function(e){return"Array"==yE(e)},ME=function(){},zE=[],$E=tw("Reflect","construct"),HE=/^\s*(?:class|function)\b/,VE=Vb(HE.exec),UE=!HE.exec(ME),WE=function(e){if(!ew(e))return!1;try{return $E(ME,zE,e),!0}catch(t){return!1}},GE=!$E||sw((function(){var e;return WE(WE.call)||!WE(Object)||!WE((function(){e=!0}))||e}))?function(e){if(!ew(e))return!1;switch(EE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return UE||!!VE(HE,Xw(e))}:WE,qE=gw("species"),KE=jb.Array,YE=function(e,t){return new(RE(n=e)&&(r=n.constructor,(GE(r)&&(r===KE||RE(r.prototype))||bw(r)&&null===(r=r[qE]))&&(r=void 0)),void 0===r?KE:r)(0===t?0:t);var n,r},XE=Vb([].push),ZE=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=qb(s),g=TE(h),v=kE(l,c),y=LE(g),m=0,b=f||YE,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:XE(w,d)}else switch(e){case 4:return!1;case 7:XE(w,d)}return i?-1:r||o?o:w}},JE={forEach:ZE(0),map:ZE(1),filter:ZE(2),some:ZE(3),every:ZE(4),find:ZE(5),findIndex:ZE(6),filterReject:ZE(7)},QE=function(e,t){var n=[][e];return!!n&&sw((function(){n.call(null,t||function(){throw 1},1)}))},eD=JE.forEach,tD=QE("forEach")?[].forEach:function(e){return eD(this,e,arguments.length>1?arguments[1]:void 0)},nD=function(e){if(e&&e.forEach!==tD)try{Ww(e,"forEach",tD)}catch(t){e.forEach=tD}};for(var rD in CE)CE[rD]&&nD(jb[rD]&&jb[rD].prototype);nD(AE);var oD={}.propertyIsEnumerable,iD=Object.getOwnPropertyDescriptor,aD=iD&&!oD.call({1:2},1)?function(e){var t=iD(this,e);return!!t&&t.enumerable}:oD,uD={f:aD},sD=function(e){return TE(Wb(e))},lD=Object.getOwnPropertyDescriptor,cD={f:mw?lD:function(e,t){if(e=sD(e),t=zw(t),Cw)try{return lD(e,t)}catch(n){}if(Yb(e,t))return Uw(!kw(uD.f,e,t),e[t])}},fD=Math.max,dD=Math.min,pD=function(e,t){var n=jE(e);return n<0?fD(n+t,0):dD(n,t)},hD=function(e){return function(t,n,r){var o,i=sD(t),a=LE(i),u=pD(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}},gD={includes:hD(!0),indexOf:hD(!1)},vD=gD.indexOf,yD=Vb([].push),mD=function(e,t){var n,r=sD(e),o=0,i=[];for(n in r)!Yb(tE,n)&&Yb(r,n)&&yD(i,n);for(;t.length>o;)Yb(r,n=t[o++])&&(~vD(i,n)||yD(i,n));return i},bD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wD=bD.concat("length","prototype"),ED={f:Object.getOwnPropertyNames||function(e){return mD(e,wD)}},DD={f:Object.getOwnPropertySymbols},CD=Vb([].concat),SD=tw("Reflect","ownKeys")||function(e){var t=ED.f(Aw(e)),n=DD.f;return n?CD(t,n(e)):t},xD=function(e,t){for(var n=SD(t),r=Vw.f,o=cD.f,i=0;i<n.length;i++){var a=n[i];Yb(e,a)||r(e,a,o(t,a))}},AD=/#|\.prototype\./,OD=function(e,t){var n=BD[kD(e)];return n==TD||n!=FD&&(ew(t)?sw(t):!!t)},kD=OD.normalize=function(e){return String(e).replace(AD,".").toLowerCase()},BD=OD.data={},FD=OD.NATIVE="N",TD=OD.POLYFILL="P",_D=OD,PD=cD.f,jD=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?jb:l?jb[u]||Ib(u,{}):(jb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=PD(n,r))&&a.value:n[r],!_D(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;xD(i,o)}(e.sham||o&&o.sham)&&Ww(i,"sham",!0),hE(n,r,i,e)}},ND=Object.keys||function(e){return mD(e,bD)},ID=sw((function(){ND(1)}));
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function LD(e){return"[object Object]"===Object.prototype.toString.call(e)}jD({target:"Object",stat:!0,forced:ID},{keys:function(e){return ND(qb(e))}});var RD={isHistory(e){return!1!==LD(t=e)&&(void 0===(n=t.constructor)||!1!==LD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||_f.isOperationList(e.redos[0]))&&(0===e.undos.length||_f.isOperationList(e.undos[0]));var t,n,r}},MD=new WeakMap,zD=new WeakMap,$D={isHistoryEditor:e=>RD.isHistory(e.history)&&Sf.isEditor(e),isMerging:e=>zD.get(e),isSaving:e=>MD.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=$D.isMerging(e);zD.set(e,!1),t(),zD.set(e,n)},withoutSaving(e,t){var n=$D.isSaving(e);MD.set(e,!1),t(),MD.set(e,n)}},HD=jb.String,VD=function(e){if("Symbol"===EE(e))throw TypeError("Cannot convert a Symbol value to a string");return HD(e)},UD=function(){var e=Aw(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},WD=pE.PROPER,GD=RegExp.prototype,qD=GD.toString,KD=Vb(UD),YD=sw((function(){return"/a/b"!=qD.call({source:"a",flags:"b"})})),XD=WD&&"toString"!=qD.name;(YD||XD)&&hE(RegExp.prototype,"toString",(function(){var e=Aw(this),t=VD(e.source),n=e.flags;return"/"+t+"/"+VD(void 0===n&&Bw(GD,e)&&!("flags"in GD)?KD(e):n)}),{unsafe:!0});var ZD,JD=mw?Object.defineProperties:function(e,t){Aw(e);for(var n,r=sD(t),o=ND(t),i=o.length,a=0;i>a;)Vw.f(e,n=o[a++],r[n]);return e},QD=tw("document","documentElement"),eC=eE("IE_PROTO"),tC=function(){},nC=function(e){return"<script>"+e+"<\/script>"},rC=function(e){e.write(nC("")),e.close();var t=e.parentWindow.Object;return e=null,t},oC=function(){try{ZD=new ActiveXObject("htmlfile")}catch(r){}var e,t;oC="undefined"!=typeof document?document.domain&&ZD?rC(ZD):((t=Dw("iframe")).style.display="none",QD.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(nC("document.F=Object")),e.close(),e.F):rC(ZD);for(var n=bD.length;n--;)delete oC.prototype[bD[n]];return oC()};tE[eC]=!0;var iC=Object.create||function(e,t){var n;return null!==e?(tC.prototype=Aw(e),n=new tC,tC.prototype=null,n[eC]=e):n=oC(),void 0===t?n:JD(n,t)},aC=gw("unscopables"),uC=Array.prototype;null==uC[aC]&&Vw.f(uC,aC,{configurable:!0,value:iC(null)});var sC=function(e){uC[aC][e]=!0},lC=gD.includes;jD({target:"Array",proto:!0},{includes:function(e){return lC(this,e,arguments.length>1?arguments[1]:void 0)}}),sC("includes");var cC=gw("match"),fC=function(e){var t;return bw(e)&&(void 0!==(t=e[cC])?!!t:"RegExp"==yE(e))},dC=jb.TypeError,pC=function(e){if(fC(e))throw dC("The method doesn't accept regular expressions");return e},hC=gw("match"),gC=function(e){var t=/./;try{"/./"[e](t)}catch(oP){try{return t[hC]=!1,"/./"[e](t)}catch(n){}}return!1},vC=Vb("".indexOf);jD({target:"String",proto:!0,forced:!gC("includes")},{includes:function(e){return!!~vC(VD(Wb(this)),VD(pC(e)),arguments.length>1?arguments[1]:void 0)}});var yC=/"/g,mC=Vb("".replace);jD({target:"String",proto:!0,forced:sw((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=VD(Wb(this)),r="<a",(r+=' name="'+mC(VD(t),yC,""")+'"')+">"+n+"</a>";var t,n,r}});var bC=function(e,t,n){var r,o;Aw(e);try{if(!(r=Iw(e,"return"))){if("throw"===t)throw n;return n}r=kw(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Aw(r),n},wC=function(e,t,n,r){try{return r?t(Aw(n)[0],n[1]):t(n)}catch(o){bC(e,"throw",o)}},EC={},DC=gw("iterator"),CC=Array.prototype,SC=function(e){return void 0!==e&&(EC.Array===e||CC[DC]===e)},xC=function(e,t,n){var r=zw(t);r in e?Vw.f(e,r,Uw(0,n)):e[r]=n},AC=gw("iterator"),OC=function(e){if(null!=e)return Iw(e,AC)||Iw(e,"@@iterator")||EC[EE(e)]},kC=jb.TypeError,BC=function(e,t){var n=arguments.length<2?OC(e):t;if(Nw(n))return Aw(kw(n,e));throw kC(Pw(e)+" is not iterable")},FC=jb.Array,TC=gw("iterator"),_C=!1;try{var PC=0,jC={next:function(){return{done:!!PC++}},return:function(){_C=!0}};jC[TC]=function(){return this},Array.from(jC,(function(){throw 2}))}catch(eve){}var NC=function(e,t){if(!t&&!_C)return!1;var n=!1;try{var r={};r[TC]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},IC=!NC((function(e){Array.from(e)}));jD({target:"Array",stat:!0,forced:IC},{from:function(e){var t=qb(e),n=GE(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=kE(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=OC(t),p=0;if(!d||this==FC&&SC(d))for(a=LE(t),u=n?new this(a):FC(a);a>p;p++)f=i?o(t[p],p):t[p],xC(u,p,f);else for(c=(l=BC(t,d)).next,u=n?new this:[];!(s=kw(c,l)).done;p++)f=i?wC(l,o,[s.value,p],!0):s.value,xC(u,p,f);return u.length=p,u}});var LC,RC,MC,zC=Vb("".charAt),$C=Vb("".charCodeAt),HC=Vb("".slice),VC=function(e){return function(t,n){var r,o,i=VD(Wb(t)),a=jE(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$C(i,a))<55296||r>56319||a+1===u||(o=$C(i,a+1))<56320||o>57343?e?zC(i,a):r:e?HC(i,a,a+2):o-56320+(r-55296<<10)+65536}},UC={codeAt:VC(!1),charAt:VC(!0)},WC=!sw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),GC=eE("IE_PROTO"),qC=jb.Object,KC=qC.prototype,YC=WC?qC.getPrototypeOf:function(e){var t=qb(e);if(Yb(t,GC))return t[GC];var n=t.constructor;return ew(n)&&t instanceof n?n.prototype:t instanceof qC?KC:null},XC=gw("iterator"),ZC=!1;[].keys&&("next"in(MC=[].keys())?(RC=YC(YC(MC)))!==Object.prototype&&(LC=RC):ZC=!0);var JC=null==LC||sw((function(){var e={};return LC[XC].call(e)!==e}));JC&&(LC={}),ew(LC[XC])||hE(LC,XC,(function(){return this}));var QC={IteratorPrototype:LC,BUGGY_SAFARI_ITERATORS:ZC},eS=Vw.f,tS=gw("toStringTag"),nS=function(e,t,n){e&&!Yb(e=n?e:e.prototype,tS)&&eS(e,tS,{configurable:!0,value:t})},rS=QC.IteratorPrototype,oS=function(){return this},iS=jb.String,aS=jb.TypeError,uS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Vb(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Aw(n),function(e){if("object"==typeof e||ew(e))return e;throw aS("Can't set "+iS(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),sS=pE.PROPER,lS=pE.CONFIGURABLE,cS=QC.IteratorPrototype,fS=QC.BUGGY_SAFARI_ITERATORS,dS=gw("iterator"),pS=function(){return this},hS=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=iC(rS,{next:Uw(1,s)}),nS(u,l,!1),EC[l]=oS;var c,f,d,p=function(e){if(e===o&&m)return m;if(!fS&&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[dS]||v["@@iterator"]||o&&v[o],m=!fS&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=YC(b.call(new e)))!==Object.prototype&&c.next&&(YC(c)!==cS&&(uS?uS(c,cS):ew(c[dS])||hE(c,dS,pS)),nS(c,h,!0)),sS&&"values"==o&&y&&"values"!==y.name&&(lS?Ww(v,"name","values"):(g=!0,m=function(){return kw(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(fS||g||!(d in v))&&hE(v,d,f[d]);else jD({target:t,proto:!0,forced:fS||g},f);return v[dS]!==m&&hE(v,dS,m,{name:o}),EC[t]=m,f},gS=UC.charAt,vS=lE.set,yS=lE.getterFor("String Iterator");hS(String,"String",(function(e){vS(this,{type:"String Iterator",string:VD(e),index:0})}),(function(){var e,t=yS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gS(n,r),t.index+=e.length,{value:e,done:!1})}));var mS,bS=cD.f,wS=Vb("".endsWith),ES=Vb("".slice),DS=Math.min,CS=gC("endsWith"),SS=!(CS||(mS=bS(String.prototype,"endsWith"),!mS||mS.writable));jD({target:"String",proto:!0,forced:!SS&&!CS},{endsWith:function(e){var t=VD(Wb(this));pC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:DS(IE(n),r),i=VD(e);return wS?wS(t,i,o):ES(t,o-i.length,o)===i}});var xS=Vb([].join),AS=TE!=Object,OS=QE("join",",");jD({target:"Array",proto:!0,forced:AS||!OS},{join:function(e){return xS(sD(this),void 0===e?",":e)}});var kS=gw("species"),BS=function(e){return uw>=51||!sw((function(){var t=[];return(t.constructor={})[kS]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},FS=JE.map,TS=BS("map");jD({target:"Array",proto:!0,forced:!TS},{map:function(e){return FS(this,e,arguments.length>1?arguments[1]:void 0)}});var _S=jb.RegExp,PS=sw((function(){var e=_S("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),jS=PS||sw((function(){return!_S("a","y").sticky})),NS={BROKEN_CARET:PS||sw((function(){var e=_S("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:jS,UNSUPPORTED_Y:PS},IS=jb.RegExp,LS=sw((function(){var e=IS(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),RS=jb.RegExp,MS=sw((function(){var e=RS("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zS=lE.get,$S=Rb("native-string-replace",String.prototype.replace),HS=RegExp.prototype.exec,VS=HS,US=Vb("".charAt),WS=Vb("".indexOf),GS=Vb("".replace),qS=Vb("".slice),KS=function(){var e=/a/,t=/b*/g;return kw(HS,e,"a"),kw(HS,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),YS=NS.BROKEN_CARET,XS=void 0!==/()??/.exec("")[1];(KS||XS||YS||LS||MS)&&(VS=function(e){var t,n,r,o,i,a,u,s=this,l=zS(s),c=VD(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=kw(VS,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=YS&&s.sticky,h=kw(UD,s),g=s.source,v=0,y=c;if(p&&(h=GS(h,"y",""),-1===WS(h,"g")&&(h+="g"),y=qS(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==US(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),XS&&(n=new RegExp("^"+g+"$(?!\\s)",h)),KS&&(r=s.lastIndex),o=kw(HS,p?n:s,y),p?o?(o.input=qS(o.input,v),o[0]=qS(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:KS&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),XS&&o&&o.length>1&&kw($S,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=iC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ZS=VS;jD({target:"RegExp",proto:!0,forced:/./.exec!==ZS},{exec:ZS});var JS=Function.prototype,QS=JS.apply,ex=JS.bind,tx=JS.call,nx="object"==typeof Reflect&&Reflect.apply||(ex?tx.bind(QS):function(){return tx.apply(QS,arguments)}),rx=gw("species"),ox=RegExp.prototype,ix=function(e,t,n,r){var o=gw(e),i=!sw((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!sw((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[rx]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Vb(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Vb(e),s=t.exec;return s===ZS||s===ox.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));hE(String.prototype,e,s[0]),hE(ox,o,s[1])}r&&Ww(ox[o],"sham",!0)},ax=UC.charAt,ux=function(e,t,n){return t+(n?ax(e,t).length:1)},sx=Math.floor,lx=Vb("".charAt),cx=Vb("".replace),fx=Vb("".slice),dx=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,px=/\$([$&'`]|\d{1,2})/g,hx=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=px;return void 0!==o&&(o=qb(o),s=dx),cx(i,s,(function(i,s){var l;switch(lx(s,0)){case"$":return"$";case"&":return e;case"`":return fx(t,0,n);case"'":return fx(t,a);case"<":l=o[fx(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=sx(c/10);return 0===f?i:f<=u?void 0===r[f-1]?lx(s,1):r[f-1]+lx(s,1):i}l=r[c-1]}return void 0===l?"":l}))},gx=jb.TypeError,vx=function(e,t){var n=e.exec;if(ew(n)){var r=kw(n,e,t);return null!==r&&Aw(r),r}if("RegExp"===yE(e))return kw(ZS,e,t);throw gx("RegExp#exec called on incompatible receiver")},yx=gw("replace"),mx=Math.max,bx=Math.min,wx=Vb([].concat),Ex=Vb([].push),Dx=Vb("".indexOf),Cx=Vb("".slice),Sx="$0"==="a".replace(/./,"$0"),xx=!!/./[yx]&&""===/./[yx]("a","$0");ix("replace",(function(e,t,n){var r=xx?"$":"$0";return[function(e,n){var r=Wb(this),o=null==e?void 0:Iw(e,yx);return o?kw(o,e,r,n):kw(t,VD(r),e,n)},function(e,o){var i=Aw(this),a=VD(e);if("string"==typeof o&&-1===Dx(o,r)&&-1===Dx(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=ew(o);s||(o=VD(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=vx(i,a);if(null===d)break;if(Ex(f,d),!l)break;""===VD(d[0])&&(i.lastIndex=ux(a,IE(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=VD((d=f[v])[0]),m=mx(bx(jE(d.index),a.length),0),b=[],w=1;w<d.length;w++)Ex(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=wx([y],b,m,a);void 0!==E&&Ex(D,E);var C=VD(nx(o,void 0,D))}else C=hx(y,a,m,b,E,o);m>=g&&(h+=Cx(a,g,m)+C,g=m+y.length)}return h+Cx(a,g)}]}),!!sw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Sx||xx);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var Ax=function(e,t){return(Ax=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 Ox(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}Ax(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var kx=function(){return kx=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},kx.apply(this,arguments)};function Bx(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 Fx(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 Tx(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var _x=0,Px=function(){this.id=""+_x++},jx=lE.set,Nx=lE.getterFor("Array Iterator"),Ix=hS(Array,"Array",(function(e,t){jx(this,{type:"Array Iterator",target:sD(e),index:0,kind:t})}),(function(){var e=Nx(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");EC.Arguments=EC.Array,sC("keys"),sC("values"),sC("entries");var Lx=function(e,t,n){for(var r in t)hE(e,r,t[r],n);return e},Rx=jb.Array,Mx=Math.max,zx=function(e,t,n){for(var r=LE(e),o=pD(t,r),i=pD(void 0===n?r:n,r),a=Rx(Mx(i-o,0)),u=0;o<i;o++,u++)xC(a,u,e[o]);return a.length=u,a},$x=ED.f,Hx="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Vx={f:function(e){return Hx&&"Window"==yE(e)?function(e){try{return $x(e)}catch(t){return zx(Hx)}}(e):$x(sD(e))}},Ux=sw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Wx=Object.isExtensible,Gx=sw((function(){Wx(1)}))||Ux?function(e){return!!bw(e)&&(!Ux||"ArrayBuffer"!=yE(e))&&(!Wx||Wx(e))}:Wx,qx=!sw((function(){return Object.isExtensible(Object.preventExtensions({}))})),Kx=Fb((function(e){var t=Vw.f,n=!1,r=Qb("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=ED.f,t=Vb([].splice),o={};o[r]=1,e(o).length&&(ED.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},jD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Vx.f}))},fastKey:function(e,t){if(!bw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Yb(e,r)){if(!Gx(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Yb(e,r)){if(!Gx(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return qx&&n&&Gx(e)&&!Yb(e,r)&&i(e),e}};tE[r]=!0})),Yx=jb.TypeError,Xx=function(e,t){this.stopped=e,this.result=t},Zx=Xx.prototype,Jx=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=kE(t,c),g=function(e){return r&&bC(r,"normal",e),new Xx(!0,e)},v=function(e){return f?(Aw(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=OC(e)))throw Yx(Pw(e)+" is not iterable");if(SC(o)){for(i=0,a=LE(e);a>i;i++)if((u=v(e[i]))&&Bw(Zx,u))return u;return new Xx(!1)}r=BC(e,o)}for(s=r.next;!(l=kw(s,r)).done;){try{u=v(l.value)}catch(y){bC(r,"throw",y)}if("object"==typeof u&&u&&Bw(Zx,u))return u}return new Xx(!1)},Qx=jb.TypeError,eA=function(e,t){if(Bw(t,e))return e;throw Qx("Incorrect invocation")},tA=function(e,t,n){var r,o;return uS&&ew(r=t.constructor)&&r!==n&&bw(o=r.prototype)&&o!==n.prototype&&uS(e,o),e},nA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=jb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Vb(u[e]);hE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!bw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!bw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!bw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(_D(e,!ew(a)||!(o||u.forEach&&!sw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Kx.enable();else if(_D(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=sw((function(){f.has(1)})),h=NC((function(e){new a(e)})),g=!o&&sw((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){eA(e,u);var n=tA(new a,e,s);return null!=t&&Jx(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,jD({global:!0,forced:s!=a},l),nS(s,e),o||n.setStrong(s,e,r),s},rA=Kx.getWeakData,oA=lE.set,iA=lE.getterFor,aA=JE.find,uA=JE.findIndex,sA=Vb([].splice),lA=0,cA=function(e){return e.frozen||(e.frozen=new fA)},fA=function(){this.entries=[]},dA=function(e,t){return aA(e.entries,(function(e){return e[0]===t}))};fA.prototype={get:function(e){var t=dA(this,e);if(t)return t[1]},has:function(e){return!!dA(this,e)},set:function(e,t){var n=dA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=uA(this.entries,(function(t){return t[0]===e}));return~t&&sA(this.entries,t,1),!!~t}};var pA,hA={getConstructor:function(e,t,n,r){var o=e((function(e,o){eA(e,i),oA(e,{type:t,id:lA++,frozen:void 0}),null!=o&&Jx(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=iA(t),u=function(e,t,n){var r=a(e),o=rA(Aw(t),!0);return!0===o?cA(r).set(t,n):o[r.id]=n,e};return Lx(i,{delete:function(e){var t=a(this);if(!bw(e))return!1;var n=rA(e);return!0===n?cA(t).delete(e):n&&Yb(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!bw(e))return!1;var n=rA(e);return!0===n?cA(t).has(e):n&&Yb(n,t.id)}}),Lx(i,n?{get:function(e){var t=a(this);if(bw(e)){var n=rA(e);return!0===n?cA(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}},gA=lE.enforce,vA=!jb.ActiveXObject&&"ActiveXObject"in jb,yA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mA=nA("WeakMap",yA,hA);if(Jw&&vA){pA=hA.getConstructor(yA,"WeakMap",!0),Kx.enable();var bA=mA.prototype,wA=Vb(bA.delete),EA=Vb(bA.has),DA=Vb(bA.get),CA=Vb(bA.set);Lx(bA,{delete:function(e){if(bw(e)&&!Gx(e)){var t=gA(this);return t.frozen||(t.frozen=new pA),wA(this,e)||t.frozen.delete(e)}return wA(this,e)},has:function(e){if(bw(e)&&!Gx(e)){var t=gA(this);return t.frozen||(t.frozen=new pA),EA(this,e)||t.frozen.has(e)}return EA(this,e)},get:function(e){if(bw(e)&&!Gx(e)){var t=gA(this);return t.frozen||(t.frozen=new pA),EA(this,e)?DA(this,e):t.frozen.get(e)}return DA(this,e)},set:function(e,t){if(bw(e)&&!Gx(e)){var n=gA(this);n.frozen||(n.frozen=new pA),EA(this,e)?CA(this,e,t):n.frozen.set(e,t)}else CA(this,e,t);return this}})}var SA=gw("iterator"),xA=gw("toStringTag"),AA=Ix.values,OA=function(e,t){if(e){if(e[SA]!==AA)try{Ww(e,SA,AA)}catch(r){e[SA]=AA}if(e[xA]||Ww(e,xA,t),CE[t])for(var n in Ix)if(e[n]!==Ix[n])try{Ww(e,n,Ix[n])}catch(r){e[n]=Ix[n]}}};for(var kA in CE)OA(jb[kA]&&jb[kA].prototype,kA);OA(AE,"DOMTokenList");var BA=new WeakMap,FA=new WeakMap,TA=new WeakMap,_A=new WeakMap,PA=new WeakMap,jA=new WeakMap,NA=new WeakMap,IA=new WeakMap,LA=new WeakMap,RA=new WeakMap,MA=new WeakMap,zA=new WeakMap,$A=new WeakMap,HA=new WeakMap,VA=new WeakMap,UA=new WeakMap,WA=new WeakMap,GA=new WeakMap,qA=new WeakMap,KA=new WeakMap,YA=new WeakMap,XA=new WeakMap,ZA=new WeakMap,JA=new WeakMap,QA=new WeakMap,eO=JE.find,tO=!0;"find"in[]&&Array(1).find((function(){tO=!1})),jD({target:"Array",proto:!0,forced:tO},{find:function(e){return eO(this,e,arguments.length>1?arguments[1]:void 0)}}),sC("find"),jD({global:!0},{globalThis:jb});const nO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];$p&&(Ap.fn.css=$p),qp&&(Ap.fn.append=qp),Op&&(Ap.fn.addClass=Op),kp&&(Ap.fn.removeClass=kp),Bp&&(Ap.fn.hasClass=Bp),jp&&(Ap.fn.on=jp),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Tp&&(Ap.fn.removeAttr=Tp),Mp&&(Ap.fn.hide=Mp),zp&&(Ap.fn.show=zp),Rp&&(Ap.fn.offset=Rp),Ip&&(Ap.fn.width=Ip),Lp&&(Ap.fn.height=Lp),Yp&&(Ap.fn.parent=Yp),Xp&&(Ap.fn.parents=Xp),Gp&&(Ap.fn.is=Gp),_p&&(Ap.fn.dataset=_p),Pp&&(Ap.fn.val=Pp),Wp&&(Ap.fn.text=Wp),Up&&(Ap.fn.html=Up),Jp&&(Ap.fn.children=Jp),Qp&&(Ap.fn.remove=Qp),Zp&&(Ap.fn.find=Zp),Hp&&(Ap.fn.each=Hp),eh&&(Ap.fn.empty=eh);var rO,oO,iO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},aO=function(e){return uO(e)&&1===e.nodeType},uO=function(e){var t=iO(e);return!!t&&e instanceof t.Node},sO=function(e){var t=e&&e.anchorNode&&iO(e.anchorNode);return!!t&&e instanceof t.Selection},lO=function(e){return uO(e)&&3===e.nodeType},cO=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},fO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(uO(r=i)&&8===r.nodeType||aO(i)&&0===i.childNodes.length||aO(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]},dO=function(e,t,n){return Fx(fO(e,t,n),1)[0]},pO=function e(t){var n,r,o="";if(lO(t)&&t.nodeValue)return t.nodeValue;if(aO(t)){try{for(var i=Bx(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(Sl){n={error:Sl}}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 hO(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||hO(o,t)}}function gO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==rO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(oO=rO||(rO={}))[oO.ELEMENT_NODE=1]="ELEMENT_NODE",oO[oO.TEXT_NODE=3]="TEXT_NODE",oO[oO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",oO[oO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",oO[oO.COMMENT_NODE=8]="COMMENT_NODE",oO[oO.DOCUMENT_NODE=9]="DOCUMENT_NODE",oO[oO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",oO[oO.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 vO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),yO="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 mO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),bO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),wO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),EO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var DO=!wO&&!bO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,CO={getWindow:function(e){var t=YA.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=KA.get(t);return n||(n=new Px,KA.set(t,n)),n},setNewKey:function(e){var t=new Px;KA.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=VA.get(r);if(null==o){if(Sf.isEditor(r))return n;break}var i=HA.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=CO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return VA.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=CO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[CO.findPath(e,t)[0]];return Bf.get(e,n)},toDOMNode:function(e,t){var n;if(Sf.isEditor(t))n=UA.get(e);else{var r=CO.findKey(e,t);n=GA.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=CO.toDOMNode(e,e);try{r=aO(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=$f.isBackward(t),i=CO.toDOMPoint(e,n),a=$f.isCollapsed(t)?i:CO.toDOMPoint(e,r),u=CO.getWindow(e).document.createRange(),s=Fx(o?a:i,2),l=s[0],c=s[1],f=Fx(o?i:a,2),d=f[0],p=f[1],h=!!(aO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(aO(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=Fx(Sf.node(e,t.path),1)[0],a=CO.toDOMNode(e,i);Sf.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=Bx(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=aO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?WA.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=CO.toSlateNode(e,t.target),u=CO.findPath(e,a);if(Sf.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=Sf.point(e,u,{edge:l?"start":"end"}),f=l?Sf.before(e,c):Sf.after(e,c);if(f)return Sf.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 CO.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((sO(t)?t.anchorNode:t.startContainer)&&(sO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=EO&&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=CO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:CO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return $f.isExpanded(d)&&$f.isForward(d)&&aO(i)&&Sf.void(e,{at:d.focus,mode:"highest"})&&(d=Sf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Fx(o?t:function(e){var t,n=Fx(e,2),r=n[0],o=n[1];if(aO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=Fx(fO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;aO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=dO(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=CO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();Tx(Tx([],Fx(dp(v.querySelectorAll("[data-slate-zero-width]")))),Fx(dp(v.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=v.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||yO&&(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=CO.toSlateNode(e,c);return{path:CO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Sf.hasPath(e,n.path)&&Sf.hasPath(e,r.path)},getNodeType:function(e){return mf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Bf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Sf.nodes(e,{universal:!0});try{for(var i=Bx(o),a=i.next();!a.done;a=i.next()){var u=Fx(a.value,1)[0];mf.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=Fx(Sf.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=Fx(Sf.nodes(e,{match:function(e){return Kf.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=Fx(Sf.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&Fx(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Sf.isEnd(e,n.anchor,t)||Sf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=BA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return _A.get(e)||null},getHoverbar:function(e){return jA.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=CO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=Bx(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=Sf.nodes(e,{match:function(t){return!(!mf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=Bx(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];hO(CO.toDOMNode(e,h),(function(e,t){var n=Ap(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(g){r={error:g}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Sf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Bx(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if($f.isExpanded(t))return!1;var n=CO.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=Sf.node(e,t);if(null==n)return!1;var r=Fx(n,1)[0].children;return 1===r.length&&""===r[0].text}},SO=1,xO={},AO={},OO=JE.filter,kO=BS("filter");jD({target:"Array",proto:!0,forced:!kO},{filter:function(e){return OO(this,e,arguments.length>1?arguments[1]:void 0)}});var BO="\t\n\v\f\r \u2028\u2029\ufeff",FO=Vb("".replace),TO="["+BO+"]",_O=RegExp("^"+TO+TO+"*"),PO=RegExp(TO+TO+"*$"),jO=function(e){return function(t){var n=VD(Wb(t));return 1&e&&(n=FO(n,_O,"")),2&e&&(n=FO(n,PO,"")),n}},NO={start:jO(1),end:jO(2),trim:jO(3)},IO=pE.PROPER,LO=NO.trim;jD({target:"String",proto:!0,forced:function(e){return sw((function(){return!!BO[e]()||"
"!=="
"[e]()||IO&&BO[e].name!==e}))}("trim")},{trim:function(){return LO(this)}});var RO=[],MO={};function zO(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var $O,HO,VO,UO,WO=jb.Promise,GO=gw("species"),qO=function(e){var t=tw(e),n=Vw.f;mw&&t&&!t[GO]&&n(t,GO,{configurable:!0,get:function(){return this}})},KO=jb.TypeError,YO=gw("species"),XO=function(e,t){var n,r=Aw(e).constructor;return void 0===r||null==(n=Aw(r)[YO])?t:function(e){if(GE(e))return e;throw KO(Pw(e)+" is not a constructor")}(n)},ZO=Vb([].slice),JO=/(?:ipad|iphone|ipod).*applewebkit/i.test(nw),QO="process"==yE(jb.process),ek=jb.setImmediate,tk=jb.clearImmediate,nk=jb.process,rk=jb.Dispatch,ok=jb.Function,ik=jb.MessageChannel,ak=jb.String,uk=0,sk={};try{$O=jb.location}catch(eve){}var lk=function(e){if(Yb(sk,e)){var t=sk[e];delete sk[e],t()}},ck=function(e){return function(){lk(e)}},fk=function(e){lk(e.data)},dk=function(e){jb.postMessage(ak(e),$O.protocol+"//"+$O.host)};ek&&tk||(ek=function(e){var t=ZO(arguments,1);return sk[++uk]=function(){nx(ew(e)?e:ok(e),void 0,t)},HO(uk),uk},tk=function(e){delete sk[e]},QO?HO=function(e){nk.nextTick(ck(e))}:rk&&rk.now?HO=function(e){rk.now(ck(e))}:ik&&!JO?(UO=(VO=new ik).port2,VO.port1.onmessage=fk,HO=kE(UO.postMessage,UO)):jb.addEventListener&&ew(jb.postMessage)&&!jb.importScripts&&$O&&"file:"!==$O.protocol&&!sw(dk)?(HO=dk,jb.addEventListener("message",fk,!1)):HO="onreadystatechange"in Dw("script")?function(e){QD.appendChild(Dw("script")).onreadystatechange=function(){QD.removeChild(this),lk(e)}}:function(e){setTimeout(ck(e),0)});var pk,hk,gk,vk,yk,mk,bk,wk,Ek={set:ek,clear:tk},Dk=/ipad|iphone|ipod/i.test(nw)&&void 0!==jb.Pebble,Ck=/web0s(?!.*chrome)/i.test(nw),Sk=cD.f,xk=Ek.set,Ak=jb.MutationObserver||jb.WebKitMutationObserver,Ok=jb.document,kk=jb.process,Bk=jb.Promise,Fk=Sk(jb,"queueMicrotask"),Tk=Fk&&Fk.value;Tk||(pk=function(){var e,t;for(QO&&(e=kk.domain)&&e.exit();hk;){t=hk.fn,hk=hk.next;try{t()}catch(n){throw hk?vk():gk=void 0,n}}gk=void 0,e&&e.enter()},JO||QO||Ck||!Ak||!Ok?!Dk&&Bk&&Bk.resolve?((bk=Bk.resolve(void 0)).constructor=Bk,wk=kE(bk.then,bk),vk=function(){wk(pk)}):QO?vk=function(){kk.nextTick(pk)}:(xk=kE(xk,jb),vk=function(){xk(pk)}):(yk=!0,mk=Ok.createTextNode(""),new Ak(pk).observe(mk,{characterData:!0}),vk=function(){mk.data=yk=!yk}));var _k,Pk,jk,Nk,Ik=Tk||function(e){var t={fn:e,next:void 0};gk&&(gk.next=t),hk||(hk=t,vk()),gk=t},Lk=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=Nw(t),this.reject=Nw(n)},Rk={f:function(e){return new Lk(e)}},Mk=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},zk="object"==typeof window,$k=Ek.set,Hk=gw("species"),Vk="Promise",Uk=lE.getterFor(Vk),Wk=lE.set,Gk=lE.getterFor(Vk),qk=WO&&WO.prototype,Kk=WO,Yk=qk,Xk=jb.TypeError,Zk=jb.document,Jk=jb.process,Qk=Rk.f,eB=Qk,tB=!!(Zk&&Zk.createEvent&&jb.dispatchEvent),nB=ew(jb.PromiseRejectionEvent),rB=!1,oB=_D(Vk,(function(){var e=Xw(Kk),t=e!==String(Kk);if(!t&&66===uw)return!0;if(uw>=51&&/native code/.test(e))return!1;var n=new Kk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Hk]=r,!(rB=n.then((function(){}))instanceof r)||!t&&zk&&!nB})),iB=oB||!NC((function(e){Kk.all(e).catch((function(){}))})),aB=function(e){var t;return!(!bw(e)||!ew(t=e.then))&&t},uB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ik((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&&fB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Xk("Promise-chain cycle")):(u=aB(a))?kw(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&lB(e)}))}},sB=function(e,t,n){var r,o;tB?((r=Zk.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),jb.dispatchEvent(r)):r={promise:t,reason:n},!nB&&(o=jb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=jb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},lB=function(e){kw($k,jb,(function(){var t,n=e.facade,r=e.value;if(cB(e)&&(t=Mk((function(){QO?Jk.emit("unhandledRejection",r,n):sB("unhandledrejection",n,r)})),e.rejection=QO||cB(e)?2:1,t.error))throw t.value}))},cB=function(e){return 1!==e.rejection&&!e.parent},fB=function(e){kw($k,jb,(function(){var t=e.facade;QO?Jk.emit("rejectionHandled",t):sB("rejectionhandled",t,e.value)}))},dB=function(e,t,n){return function(r){e(t,r,n)}},pB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,uB(e,!0))},hB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Xk("Promise can't be resolved itself");var r=aB(t);r?Ik((function(){var n={done:!1};try{kw(r,t,dB(hB,n,e),dB(pB,n,e))}catch(o){pB(n,o,e)}})):(e.value=t,e.state=1,uB(e,!1))}catch(o){pB({done:!1},o,e)}}};if(oB&&(Yk=(Kk=function(e){eA(this,Yk),Nw(e),kw(_k,this);var t=Uk(this);try{e(dB(hB,t),dB(pB,t))}catch(n){pB(t,n)}}).prototype,(_k=function(e){Wk(this,{type:Vk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Lx(Yk,{then:function(e,t){var n=Gk(this),r=n.reactions,o=Qk(XO(this,Kk));return o.ok=!ew(e)||e,o.fail=ew(t)&&t,o.domain=QO?Jk.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&uB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Pk=function(){var e=new _k,t=Uk(e);this.promise=e,this.resolve=dB(hB,t),this.reject=dB(pB,t)},Rk.f=Qk=function(e){return e===Kk||e===jk?new Pk(e):eB(e)},ew(WO)&&qk!==Object.prototype)){Nk=qk.then,rB||(hE(qk,"then",(function(e,t){var n=this;return new Kk((function(e,t){kw(Nk,n,e,t)})).then(e,t)}),{unsafe:!0}),hE(qk,"catch",Yk.catch,{unsafe:!0}));try{delete qk.constructor}catch(eve){}uS&&uS(qk,Yk)}jD({global:!0,wrap:!0,forced:oB},{Promise:Kk}),nS(Kk,Vk,!1),qO(Vk),jk=tw(Vk),jD({target:Vk,stat:!0,forced:oB},{reject:function(e){var t=Qk(this);return kw(t.reject,void 0,e),t.promise}}),jD({target:Vk,stat:!0,forced:oB},{resolve:function(e){return function(e,t){if(Aw(e),bw(t)&&t.constructor===e)return t;var n=Rk.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),jD({target:Vk,stat:!0,forced:iB},{all:function(e){var t=this,n=Qk(t),r=n.resolve,o=n.reject,i=Mk((function(){var n=Nw(t.resolve),i=[],a=0,u=1;Jx(e,(function(e){var s=a++,l=!1;u++,kw(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Qk(t),r=n.reject,o=Mk((function(){var o=Nw(t.resolve);Jx(e,(function(e){kw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var gB=NS.UNSUPPORTED_Y,vB=Math.min,yB=[].push,mB=Vb(/./.exec),bB=Vb(yB),wB=Vb("".slice);function EB(e){Promise.resolve().then(e)}function DB(e,t){return mf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Sf.isVoid(t,e),u="";a||(u=i.map((function(e){return DB(e,t)})).join(""));var s=(MO[r]||zO)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||RO.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," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™");var o=CO.getParentsNodes(t,e).some((function(e){return"pre"===CO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=CO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return RO.forEach((function(t){return r=t(e,r)})),r}(e,t)}function CB(e){return"w-e-element-"+e}ix("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=VD(Wb(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!fC(e))return kw(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=kw(ZS,f,r))&&!((a=f.lastIndex)>c&&(bB(s,wB(r,c,i.index)),i.length>1&&i.index<r.length&&nx(yB,s,zx(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&mB(f,"")||bB(s,""):bB(s,wB(r,c)),s.length>o?zx(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:kw(t,this,e,n)}:t,[function(t,n){var o=Wb(this),i=null==t?void 0:Iw(t,e);return i?kw(i,t,o,n):kw(r,VD(o),t,n)},function(e,o){var i=Aw(this),a=VD(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=XO(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(gB?"g":"y"),f=new s(gB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===vx(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=gB?0:h;var v,y=vx(f,gB?wB(a,h):a);if(null===y||(v=vB(IE(f.lastIndex+(gB?h:0)),a.length))===p)h=ux(a,h,l);else{if(bB(g,wB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(bB(g,y[m]),g.length===d)return g;h=p=v}}return bB(g,wB(a,p)),g}]}),!!sw((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]})),gB);var SB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},xB=function(e,t,n){var r=CO.toDOMRange(e,t).getBoundingClientRect(),o=CO.toDOMRange(e,n).getBoundingClientRect();return SB(r,o)&&SB(o,r)},AB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],OB=[],kB=[],BB={},FB=Vw.f,TB=ED.f,_B=lE.enforce,PB=gw("match"),jB=jb.RegExp,NB=jB.prototype,IB=jb.SyntaxError,LB=Vb(UD),RB=Vb(NB.exec),MB=Vb("".charAt),zB=Vb("".replace),$B=Vb("".indexOf),HB=Vb("".slice),VB=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,UB=/a/g,WB=/a/g,GB=new jB(UB)!==UB,qB=NS.MISSED_STICKY,KB=NS.UNSUPPORTED_Y,YB=mw&&(!GB||qB||LS||MS||sw((function(){return WB[PB]=!1,jB(UB)!=UB||jB(WB)==WB||"/a/i"!=jB(UB,"i")})));if(_D("RegExp",YB)){for(var XB=function(e,t){var n,r,o,i,a,u,s=Bw(NB,this),l=fC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===XB)return e;if((l||Bw(NB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:LB(d))),e=void 0===e?"":VD(e),t=void 0===t?"":VD(t),d=e,LS&&"dotAll"in UB&&(r=!!t&&$B(t,"s")>-1)&&(t=zB(t,/s/g,"")),n=t,qB&&"sticky"in UB&&(o=!!t&&$B(t,"y")>-1)&&KB&&(t=zB(t,/y/g,"")),MS&&(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=MB(e,r)))t+=MB(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:RB(VB,HB(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Yb(a,c))throw new IB("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=tA(jB(e,t),s?this:NB,XB),(r||o||f.length)&&(u=_B(a),r&&(u.dotAll=!0,u.raw=XB(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=MB(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+MB(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Ww(a,"source",""===d?"(?:)":d)}catch(p){}return a},ZB=function(e){e in XB||FB(XB,e,{configurable:!0,get:function(){return jB[e]},set:function(t){jB[e]=t}})},JB=TB(jB),QB=0;JB.length>QB;)ZB(JB[QB++]);NB.constructor=XB,XB.prototype=NB,hE(jb,"RegExp",XB)}qO("RegExp");var eF=new RegExp(String.fromCharCode(160),"g");function tF(e){return e.replace(eF," ")}function nF(e,t){var n=e.length;if(n){var r=e[n-1];if(Kf.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function rF(e,t,n){return{type:"paragraph",children:[{text:Ap(e).text().replace(/\s+/gm," ")}]}}function oF(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!==rO.ELEMENT_NODE)if(e.nodeType!==rO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=tF(r),nF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(nF(n,"\n")||n.push({text:"\n"}));var o=aF(Ap(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in BB)if(e[0].matches(t))return BB[t];return rF}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){Sf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),kB.forEach((function(n){r=n(e[0],r,t)})))})),r}function iF(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=tF(n=n.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"'))};return kB.forEach((function(n){r=n(e[0],r,t)})),r}function aF(e,t){OB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Ap(r(e[0])))}));var n=gO(e);return"span"===n?e.attr("data-w-e-type")?oF(e,t):iF(e,t):"code"===n?"pre"===gO(e.parent())?oF(e,t):iF(e,t):AB.includes(n)?iF(e,t):oF(e,t)}function uF(e,t,n){var r=Ap(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function sF(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Ap("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=aF(Ap(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var lF=Vw.f,cF=Kx.fastKey,fF=lE.set,dF=lE.getterFor,pF={getConstructor:function(e,t,n,r){var o=e((function(e,o){eA(e,i),fF(e,{type:t,index:iC(null),first:void 0,last:void 0,size:0}),mw||(e.size=0),null!=o&&Jx(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=dF(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=cF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),mw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=cF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Lx(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,mw?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),mw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=kE(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)}}),Lx(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)}}),mw&&lF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=dF(t),i=dF(r);hS(e,t,(function(e,t){fF(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),qO(t)}};nA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),pF);var hF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function gF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):dd.insertNodes(e,t,{mode:"highest"})}var vF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=Fx($f.edges(n),2),o=r[0],i=r[1],a=Sf.void(t,{at:o.path}),u=Sf.void(t,{at:i.path});if(!$f.isCollapsed(n)||a){var s=CO.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=Fx(u,1)[0],d=s.cloneRange(),p=CO.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":""})),lO(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",pO(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=Bx(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&dd.splitNodes(t,{always:!0}),n(h),f=!0}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},yF=function(e){return null!=e},mF={object:!0,function:!0,undefined:!0},bF=/^\s*class[\s{/}]/,wF=Function.prototype.toString,EF=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(!yF(t=e)||!hasOwnProperty.call(mF,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!bF.test(wF.call(e))},DF=function(e){return null!=e},CF=Object.keys,SF=function(){try{return Object.keys("primitive"),!0}catch(Sl){return!1}}()?Object.keys:function(e){return CF(DF(e)?Object(e):e)},xF=Math.max,AF=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=xF(arguments.length,2);for(e=Object(function(e){if(!DF(e))throw new TypeError("Cannot use null or undefined");return e}(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)SF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},OF=Array.prototype.forEach,kF=Object.create,BF=function(e){var t=kF(null);return OF.call(arguments,(function(e){DF(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t},FF="razdwatrzy",TF=String.prototype.indexOf,_F="function"==typeof FF.contains&&!0===FF.contains("dwa")&&!1===FF.contains("foo")?String.prototype.contains:function(e){return TF.call(this,e,arguments[1])>-1},PF=Fb((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],yF(e)?(n=_F.call(e,"c"),r=_F.call(e,"e"),o=_F.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?AF(BF(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],yF(t)?EF(t)?yF(n)?EF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,yF(e)?(r=_F.call(e,"c"),o=_F.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?AF(BF(i),a):a}})),jF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},NF=Fb((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 jF(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 jF(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(jF(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:PF(n),once:PF(r),off:PF(o),emit:PF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function IF(e){var t=JA.get(e);return null==t&&(t=NF(),JA.set(e,t)),t}var LF=new WeakMap;function RF(e,t){var n=LF.get(e);null==n&&(n=new Set,LF.set(e,n)),n.add(t)}function MF(e){var t=CO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function zF(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=MF(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=CO.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 $F(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=mf.isElement(t)&&e.isVoid(t),i=mf.isElement(t)&&e.isInline(t),a=qA.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(nO.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=MF(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 HF(e,t){EB((function(){var n=MF(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 VF=BS("slice"),UF=gw("species"),WF=jb.Array,GF=Math.max;jD({target:"Array",proto:!0,forced:!VF},{slice:function(e,t){var n,r,o,i=sD(this),a=LE(i),u=pD(e,a),s=pD(void 0===t?a:t,a);if(RE(i)&&(n=i.constructor,(GE(n)&&(n===WF||RE(n.prototype))||bw(n)&&null===(n=n[UF]))&&(n=void 0),n===WF||void 0===n))return ZO(i,u,s);for(r=new(void 0===n?WF:n)(GF(s-u,0)),o=0;u<s;u++,o++)u in i&&xC(r,o,i[u]);return r.length=o,r}});var qF=cD.f,KF=Vb("".startsWith),YF=Vb("".slice),XF=Math.min,ZF=gC("startsWith"),JF=!ZF&&!!function(){var e=qF(String.prototype,"startsWith");return e&&!e.writable}();jD({target:"String",proto:!0,forced:!JF&&!ZF},{startsWith:function(e){var t=VD(Wb(this));pC(e);var n=IE(XF(arguments.length>1?arguments[1]:void 0,t.length)),r=VD(e);return KF?KF(t,r,n):YF(t,n,n+r.length)===r}});var QF=Object.assign,eT=Object.defineProperty,tT=Vb([].concat),nT=!QF||sw((function(){if(mw&&1!==QF({b:1},QF(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!=QF({},e)[n]||ND(QF({},t)).join("")!=r}))?function(e,t){for(var n=qb(e),r=arguments.length,o=1,i=DD.f,a=uD.f;r>o;)for(var u,s=TE(arguments[o++]),l=i?tT(ND(s),i(s)):ND(s),c=l.length,f=0;c>f;)u=l[f++],mw&&!kw(a,s,u)||(n[u]=s[u]);return n}:QF;jD({target:"Object",stat:!0,forced:Object.assign!==nT},{assign:nT});var rT=["props","attrs","style","dataset","on","hook"];function oT(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(!rT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=rv(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&&oT(e)}))}var iT=[],aT={};function uT(e,t,n){return yg(n.isInline(e)?"span":"div",null,t)}function sT(e,t){return void 0===t&&(t=!1),yg("span",{"data-slate-string":!0},t?e+"\n":e)}function lT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),yg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?yg("br",null):null)}function cT(e,t,n,r){return HA.set(e,t),VA.set(e,n),mf.isElement(e)?function(e,t){var n,r=CO.findKey(t,e),o=t.isInline(e),i=Sf.isVoid(t,e),a=CB(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=aT[s]||uT;n=i?null:c.map((function(n,r){return cT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=Fx(Bf.texts(e),1),g=Fx(h[0],1)[0],v=yg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},cT(g,0,e,t));d=yg(p,{style:{position:"relative"}},d,v),HA.set(g,0),VA.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return iT.forEach((function(r){n=r(e,t)})),n}(e,d)),EB((function(){var t=cO(a);null!=t&&(GA.set(r,t),qA.set(e,t),WA.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=CO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=CO.findPath(n,e),a=o([e,i]),u=Kf.decorations(e,a),s=u.map((function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=CO.findPath(o,n),u=Pf.parent(a);if(Sf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?lT(Bf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Sf.string(o,u)?""===i?lT():t&&"\n"===i.slice(-1)?sT(i,!0):sT(i):lT(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,iT.forEach((function(e){a=e(i,a)})),yg("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=yg("span",{"data-slate-node":"text",id:l,key:r.id},s);return EB((function(){var t=cO(l);null!=t&&(GA.set(r,t),qA.set(e,t),WA.set(t,e))})),c}(e,n,r)}function fT(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),Zh("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=cT(e,n,t,t);return oT(r),r}));var c=MA.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Ap('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Yh([tg,cg,gg,og,sg,Qh]))(n,s),MA.set(e,!1),zA.set(e,p)}else{var d=$A.get(e),p=zA.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=cO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=iO(n);h&&YA.set(t,h)}UA.set(t,n),qA.set(t,n),WA.set(n,t),$A.set(e,s)}}function dT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function pT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function hT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return pT(n.overflowY,t)||pT(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 gT(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 vT(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(!dT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;dT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&hT(f)&&!hT(document.documentElement)||null!=f&&hT(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?gT(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:gT(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?gT(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:gT(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 yT(e){return e===Object(e)&&0!==Object.keys(e).length}function mT(e,t){return uO(t)&&CO.hasDOMNode(e,t,{editable:!0})}function bT(e,t){if(e.getConfig().readOnly)return!1;var n=wT(e,t)&&CO.toSlateNode(e,t);return Sf.isVoid(e,n)}function wT(e,t){return uO(t)&&CO.hasDOMNode(e,t)}function ET(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=CO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=UA.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=CO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&$f.equals(l,r)){var c=!0;if($f.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||CO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&CO.toDOMRange(t,r);if(g){$f.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var v=g.startContainer.parentElement;if(!v.closest("[data-slate-spacer]")){v.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(e,t){var n,r=!e.ownerDocument.documentElement.contains(e);if(yT(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:vT(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:yT(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)}))}(vT(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&&yO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=CO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var DT=new WeakMap,CT=new WeakMap,ST={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"},xT={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"},AT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},OT=function(e){var t=ST[e],n=xT[e],r=AT[e],o=t&&pv(t),i=n&&pv(n),a=r&&pv(r);return function(e){return!(!o||!o(e))||!!(vO&&i&&i(e))||!(vO||!a||!a(e))}},kT={isBold:OT("bold"),isCompose:OT("compose"),isMoveBackward:OT("moveBackward"),isMoveForward:OT("moveForward"),isDeleteBackward:OT("deleteBackward"),isDeleteForward:OT("deleteForward"),isDeleteLineBackward:OT("deleteLineBackward"),isDeleteLineForward:OT("deleteLineForward"),isDeleteWordBackward:OT("deleteWordBackward"),isDeleteWordForward:OT("deleteWordForward"),isExtendBackward:OT("extendBackward"),isExtendForward:OT("extendForward"),isExtendLineBackward:OT("extendLineBackward"),isExtendLineForward:OT("extendLineForward"),isItalic:OT("italic"),isMoveLineBackward:OT("moveLineBackward"),isMoveLineForward:OT("moveLineForward"),isMoveWordBackward:OT("moveWordBackward"),isMoveWordForward:OT("moveWordForward"),isRedo:OT("redo"),isSplitBlock:OT("splitBlock"),isTransposeCharacter:OT("transposeCharacter"),isUndo:OT("undo"),isTab:OT("tab"),isSelectAll:OT("selectAll")};function BT(e){e.preventDefault()}var FT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(DO&&!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=Fx(r.getTargetRanges(),1)[0];if(s){var l=CO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&$f.equals(i,l)||dd.select(n,l)}}if(i&&$f.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Sf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Sf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Sf.deleteForward(n);break;case"deleteContentBackward":Sf.deleteBackward(n);break;case"deleteEntireSoftLine":Sf.deleteBackward(n,{unit:"line"}),Sf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Sf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Sf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Sf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Sf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Sf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Sf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Sf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!QA.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Sf.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=CO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===CO.toDOMNode(n,n)||aO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&uO(u)&&CO.hasDOMNode(n,u)){var s=CO.toSlateNode(n,u);if(mf.isElement(s)&&!n.isVoid(s))return}if(mO){var l=a.getSelection();null==l||l.removeAllRanges()}XA.delete(n)}}}},focus:function(e,t,n){var r=CO.toDOMNode(n,n),o=CO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,yO&&e.target!==r?r.focus():XA.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&wT(n,e.target)&&uO(e.target)){var r=CO.toSlateNode(n,e.target),o=CO.findPath(n,r);if(Sf.hasPath(n,o)&&Bf.get(n,o)===r){var i=Sf.start(n,o),a=Sf.end(n,o),u=Sf.void(n,{at:i}),s=Sf.void(n,{at:a});if(u&&s&&Pf.equals(u[1],s[1])){var l=Sf.range(n,i);dd.select(n,l)}}}},compositionstart:function(e,t,n){if(mT(n,e.target)){var r=n.selection;if(r&&$f.isExpanded(r)&&(Sf.deleteFragment(n),Promise.resolve().then((function(){ET(t,n,!0)}))),r&&$f.isCollapsed(r)){var o=CO.toDOMRange(n,r).startContainer,i=o.textContent||"";DT.set(n,i),CT.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){(EO||yO)&&CO.cleanExposedTexNodeInSelectionBlock(n);for(var i=$f.isBackward(o)?o.focus:o.anchor,a=Fx(Sf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Fx(Sf.node(n,i.path.slice(0,u+1)),1)[0];if(mf.isElement(s)&&((mO||yO)&&"link"===s.type||"code"===s.type)){CO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=CO.getLeftLengthOfMaxLength(n);c<l.length?(CO.toDOMRange(n,o).startContainer.textContent=DT.get(n)||"",c>0&&Sf.insertText(n,l.slice(0,c)),t.changeViewState()):Sf.insertText(n,l)}else Sf.insertText(n,l);mO||setTimeout((function(){var e=n.selection;if(null!=e){var t=CT.get(n);null!=t&&CO.toDOMRange(n,e).startContainer!==t&&(t.textContent=DT.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=_A.get(e),r=n&&n.getMenus(),o=jA.get(e),i=o&&o.getMenus(),a=kx(kx({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&dv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),kT.isTab(r))return BT(r),void n.handleTab();if(kT.isRedo(r))return BT(r),void("function"==typeof n.redo&&n.redo());if(kT.isUndo(r))return BT(r),void("function"==typeof n.undo&&n.undo());if(kT.isMoveLineBackward(r))return BT(r),void dd.move(n,{unit:"line",reverse:!0});if(kT.isMoveLineForward(r))return BT(r),void dd.move(n,{unit:"line"});if(kT.isExtendLineBackward(r))return BT(r),void dd.move(n,{unit:"line",edge:"focus",reverse:!0});if(kT.isExtendLineForward(r))return BT(r),void dd.move(n,{unit:"line",edge:"focus"});if(kT.isMoveBackward(r))return BT(r),void(o&&$f.isCollapsed(o)?dd.move(n,{reverse:!0}):dd.collapse(n,{edge:"start"}));if(kT.isMoveForward(r))return BT(r),void(o&&$f.isCollapsed(o)?dd.move(n):dd.collapse(n,{edge:"end"}));if(kT.isMoveWordBackward(r))return BT(r),o&&$f.isExpanded(o)&&dd.collapse(n,{edge:"focus"}),void dd.move(n,{unit:"word",reverse:!0});if(kT.isMoveWordForward(r))return BT(r),o&&$f.isExpanded(o)&&dd.collapse(n,{edge:"focus"}),void dd.move(n,{unit:"word"});if(kT.isSelectAll(r))return BT(r),void n.selectAll();if(DO){if((EO||mO)&&o&&(kT.isDeleteBackward(r)||kT.isDeleteForward(r))&&$f.isCollapsed(o)){var i=Bf.parent(n,o.anchor.path);if(mf.isElement(i)&&Sf.isVoid(n,i)&&Sf.isInline(n,i))return r.preventDefault(),void dd.delete(n,{unit:"block"})}}else{if(kT.isBold(r)||kT.isItalic(r)||kT.isTransposeCharacter(r))return void BT(r);if(kT.isSplitBlock(r))return BT(r),void Sf.insertBreak(n);if(kT.isDeleteBackward(r))return BT(r),void(o&&$f.isExpanded(o)?Sf.deleteFragment(n,{direction:"backward"}):Sf.deleteBackward(n));if(kT.isDeleteForward(r))return BT(r),void(o&&$f.isExpanded(o)?Sf.deleteFragment(n,{direction:"forward"}):Sf.deleteForward(n));if(kT.isDeleteLineBackward(r))return BT(r),void(o&&$f.isExpanded(o)?Sf.deleteFragment(n,{direction:"backward"}):Sf.deleteBackward(n,{unit:"line"}));if(kT.isDeleteLineForward(r))return BT(r),void(o&&$f.isExpanded(o)?Sf.deleteFragment(n,{direction:"forward"}):Sf.deleteForward(n,{unit:"line"}));if(kT.isDeleteWordBackward(r))return BT(r),void(o&&$f.isExpanded(o)?Sf.deleteFragment(n,{direction:"backward"}):Sf.deleteBackward(n,{unit:"word"}));if(kT.isDeleteWordForward(r))return BT(r),void(o&&$f.isExpanded(o)?Sf.deleteFragment(n,{direction:"forward"}):Sf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!DO&&!n.getConfig().readOnly&&mT(n,e.target)){e.preventDefault();var r=e.key;Sf.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($f.isExpanded(o))Sf.deleteFragment(n);else{var a=Bf.parent(n,o.anchor.path);Sf.isVoid(n,a)&&dd.delete(n)}}},paste:function(e,t,n){QA.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 QA.set(n,!1);if(!DO||(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(wT(n,e.target)){var r=CO.toSlateNode(n,e.target);Sf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(wT(n,r.target)&&!n.getConfig().readOnly){var o=CO.toSlateNode(n,r.target),i=CO.findPath(n,o);if(Sf.isVoid(n,o)||Sf.void(n,{at:i,voids:!0})){var a=Sf.range(n,i);dd.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&wT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&wT(n,r.target)&&null!=o&&!(DO&&mO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=CO.findEventRange(n,r);dd.select(n,a),t.isDraggingInternally&&(i&&dd.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},TT=1,_T=function(){function e(e){var t=this;this.id=TT++,this.$textArea=null,this.$progressBar=Ap('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Ap('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Rh((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=CO.findDocumentOrShadowRoot(t),a=i.activeElement,u=CO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,XA.set(t,!0)):XA.delete(t),!s)return dd.deselect(t);var l=s.anchorNode,c=s.focusNode,f=mT(t,l)||bT(t,l),d=mT(t,c)||bT(t,c);if(f&&d){var p=CO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});dd.select(t,p)}else dd.deselect(t)}}(t,e)}),100);var n=Ap(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Ap('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Ap('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,EB((function(){var e=t.editorInstance,n=CO.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=FA.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&&(Eh(FT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Rh((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-CO.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;fT(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Ap('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),EB((function(){ET(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function PT(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&&PT(t)}function jT(){return Ap('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function NT(){return Ap('<div class="w-e-bar-divider"></div>')}function IT(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=vO?"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")}}}ix("match",(function(e,t,n){return[function(t){var n=Wb(this),r=null==t?void 0:Iw(t,e);return r?kw(r,t,n):new RegExp(t)[e](VD(n))},function(e){var r=Aw(this),o=VD(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return vx(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=vx(r,o));){var c=VD(u[0]);s[l]=c,""===c&&(r.lastIndex=ux(o,IE(r.lastIndex),a)),l++}return 0===l?null:s}]}));var LT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Ap('<div class="w-e-bar-item"></div>'),this.$button=Ap('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Ap(c);PT(d),f.append(d)}else f.text(a);IT(f,c,a,s,n),n&&c&&f.append(Ap('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),EB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),XT(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=XT(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=XT(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=XT(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}(),RT=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return Ox(t,e),t.prototype.onButtonClick=function(){},t}(LT),MT=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=IA.get(e);null==t&&(t=new Set,IA.set(e,t)),t.add(this),LA.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=LA.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=LA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),zT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Ap('<div class="w-e-drop-panel"></div>'),n}return Ox(t,e),t.prototype.genSelfElem=function(){return null},t}(MT),$T=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=jT();o.$button.append(i)}return o}return Ox(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=XT(this);if(null==this.dropPanel){var n=new zT(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}(LT),HT=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Ap('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return Ox(t,e),t.prototype.genSelfElem=function(){var e=this,t=Ap('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=LA.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}(MT);function VT(e,t,n){var r=Ap('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Ap('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function UT(e,t){var n=Ap('<div class="button-container"></div>'),r=Ap('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var WT=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Ap("body"),o.modal=null,o.menu=n,o}return Ox(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=XT(this),t=this.menu.getModalPositionNode(e);return mf.isElement(t)?$F(e,t,"modal"):zF(e)},t.prototype.handleModal=function(){var e=XT(this),t=this.menu;if(null==this.modal){var n=new HT(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=XT(this),r=this.menu;if(null!=r.getModalContentElem){var o=CO.getTextarea(n),i=CO.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||HF(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(LT),GT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Ap('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return Ox(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Ap("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Ap('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Ap('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(Ap('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(MT),qT=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Ap('<div class="w-e-bar-item"></div>'),this.$button=Ap('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),IT(f,s,i,c,n),this.$elem.append(f),this.menu=t,EB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),XT(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=XT(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new GT(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Ap(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=XT(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=XT(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=jT();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=XT(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}(),KT=function(){function e(e){this.$elem=Ap('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Ap('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Ap('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Ap(n);PT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=jT();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Ap(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),YT=new WeakMap;function XT(e){var t=NA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function ZT(e,t,n){void 0===n&&(n=!1);var r=YT.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new $T(e,t,n):a?new WT(e,t,n):new RT(e,t,n)}if("select"===o&&(r=new qT(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return YT.set(t,r),r}function JT(e,t){var n=e.selection;return null!=n&&!$f.isCollapsed(n)&&!CO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!Kf.isText(t)}var QT=function(){function e(){var e=this;this.$elem=Ap('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Bv((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&mf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),EB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),CO.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;EB((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=NT();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=AO[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=ZT(e,r);this.hoverbarItems.push(i),NA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),mf.isElement(e)){var r=$F(t,e,"bar");return n.css(r),void HF(t,n)}if(Kf.isText(e))return r=zF(t),n.css(r),void HF(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 CO.checkNodeType(t,o)},c=Fx(Sf.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=PA.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=JT),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=CO.findPath(null,e),r=CO.findPath(null,t);return Pf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function e_(e,t,n,r){if(HA.set(e,t),VA.set(e,n),mf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return e_(t,n,e,r)})),Sf.isVoid(r,e)){var i=Fx(Bf.texts(e),1),a=Fx(i[0],1)[0];HA.set(a,0),VA.set(a,e)}}}function t_(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];$D.withoutSaving(t,(()=>{Sf.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];$D.withoutSaving(t,(()=>{Sf.withoutNormalizing(t,(()=>{var e=r.map(_f.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var r,o,{operations:i,history:a}=t,{undos:u}=a,s=u[u.length-1],l=s&&s[s.length-1],c=(r=e,!(!(o=l)||"set_selection"!==r.type||"set_selection"!==o.type)),f=$D.isSaving(t),d=$D.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||!Pf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Pf.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=CO.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=CO.getLeftLengthOfMaxLength(t);n<=0||n<Bf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(CO.getLeftLengthOfMaxLength(t)<Bf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=CO.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===rO.TEXT_NODE?e+(t.textContent||""):n===rO.ELEMENT_NODE?hF.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=IF(t);if(r.on(e,n),"destroyed"===e&&RF(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),RF(t,o)}},t.once=function(e,n){IF(t).once(e,n)},t.off=function(e,n){IF(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=IF(t);o.emit.apply(o,Tx([e],Fx(n))),"destroyed"===e&&(function(e){return LF.get(e)||new Set}(t).forEach((function(e){return o.off("destroyed",e)})),function(e){LF.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){dd.select(t,e)},t.deselect=function(){var n=t.selection,r=CO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&dd.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||dd.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=ZA.get(t);null!=e&&(t.focus(),dd.select(t,e))},t.getSelectionPosition=function(){return zF(t)},t.getNodePosition=function(e){return $F(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=Fx($f.edges(e),2),r=n[0],o=n[1],i=Fx(Sf.edges(t,[]),2),a=i[0],u=i[1];return!(!Lf.equals(r,a)||!Lf.equals(o,u))},t.selectAll=function(){var e=Sf.start(t,[]),n=Sf.end(t,[]);dd.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=Bx(Sf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=Fx(p.value,2),g=h[0],v=h[1],y=CO.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=Bx(Sf.levels(t,{at:Pf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=Fx(b.value,2);g=w[0],v=w[1],y=CO.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=Bx(Sf.levels(t,{at:Pf.common(Pf.parent(e.path),Pf.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var C=Fx(D.value,2);g=C[0],v=C[1],y=CO.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=Bx(f),x=S.next();!x.done;x=S.next()){var A=Fx(x.value,2);v=A[0],y=A[1],g=Fx(Sf.node(t,v),1)[0],KA.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&&$f.isCollapsed(e.selection)){var r=Sf.above(e,{match:function(t){return Sf.isBlock(e,t)},at:e.selection});if(r){var o=Fx(r,2)[1],a=Sf.range(e,o,e.selection.anchor),u=function(e,t){var n=Sf.range(e,$f.end(t)),r=Array.from(Sf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(xB(e,Sf.range(e,r[o]),n))return Sf.range(e,r[o],n);if(r.length<2)return Sf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)xB(e,Sf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Sf.range(e,r[i],n)}(t,a);$f.isCollapsed(u)||dd.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&ZA.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 DB(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Bf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Sf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Sf.nodes(t,{at:[],universal:!0});try{for(var u=Bx(a),s=u.next();!s.done;s=u.next()){var l=Fx(s.value,1)[0];if(mf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=CB(CO.findKey(t,l).id);i.push(kx(kx({},l),{id:c}))}}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(mf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Kf.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){dd.delete(t,{at:{anchor:Sf.start(t,[]),focus:Sf.end(t,[])}}),0===t.children.length&&dd.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return CO.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===rO.TEXT_NODE||t===rO.ELEMENT_NODE&&!hF.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;CO.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!==rO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(AB.includes(r.toLowerCase()))s=!0;else for(var l in BB)if(a.matches(l)){s=!0;break}if(s){var c=aF(Ap(a),t);return Array.isArray(c)?(c.forEach((function(e){return gF(t,e)})),u++):(gF(t,c),u++),void(CO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;CO.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&&CO.isEmptyPath(t,a)&&dd.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=sF(t,e);if(dd.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(a){t.select(Sf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in AO)e.push(t);return e},t.getConfig=function(){var e=RA.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=vF(zc())).id="wangEditor-"+SO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(CO.toDOMNode(t,t).focus({preventScroll:!0}),XA.set(t,!0),e){var n=Sf.end(t,[]);dd.select(t,n)}else{var r=ZA.get(t);r?dd.select(t,r):dd.select(t,Sf.start(t,[]))}},t.isFocused=function(){return!!XA.get(t)},t.blur=function(){CO.toDOMNode(t,t).blur(),dd.deselect(t),XA.set(t,!1)},t.updateView=function(){CO.getTextarea(t).changeViewState();var e=CO.getToolbar(t);e&&e.changeToolbarState();var n=CO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=CO.getTextarea(t);e.destroy(),BA.delete(t),FA.delete(e);var n=CO.getToolbar(t);n&&(n.destroy(),_A.delete(t),TA.delete(n));var r=CO.getHoverbar(t);r&&(r.destroy(),jA.delete(t),PA.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Ap("#"+e);if(0!==r.length){var o=r[0];if(!CO.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=CO.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||CO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=IA.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 CO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=CO.getToolbar(t);n&&(e=n.$box);var r=CO.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=CO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return CO.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return uF(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=Fv(xO),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Eh(t,(function(e,t){n[t]=kx(kx({},e),o[t]||{})})),delete e.MENU_CONF,kx({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);RA.set(c,f);var d=f.hoverbarKeys,p=void 0===d?{}:d;if(l.forEach((function(e){c=e(c)})),null!=u&&(c.children=sF(c,u)),a&&a.length&&(c.children=a),0===c.children.length&&(c.children=[{type:"paragraph",children:[{text:""}]}]),CO.normalizeContent(c),r){var h=new _T(r);BA.set(c,h),FA.set(h,c),h.changeViewState(),EB((function(){var e=h.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var g=void 0;Object.keys(p).length>0&&(g=new QT,PA.set(g,c),jA.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)})),EB((function(){return c.emit("created")})),c}var n_=BS("splice"),r_=jb.TypeError,o_=Math.max,i_=Math.min;jD({target:"Array",proto:!0,forced:!n_},{splice:function(e,t){var n,r,o,i,a,u,s=qb(this),l=LE(s),c=pD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=i_(o_(jE(t),0),l-c)),l+n-r>9007199254740991)throw r_("Maximum allowed length exceeded");for(o=YE(s,r),i=0;i<r;i++)(a=c+i)in s&&xC(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 a_=function(){function e(e,t){var n=this;this.$toolbar=Ap('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Bv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Ap(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),EB((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=Fv(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=NT();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 KT(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 KT,o=this.menus,i=o[e];if(null==i){var a=AO[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=ZT(e,i,r);this.toolbarItems.push(u),NA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=TA.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}(),u_=pE.EXISTS,s_=Vw.f,l_=Function.prototype,c_=Vb(l_.toString),f_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,d_=Vb(f_.exec);function p_(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=Fx(e.split("#"),2),r=n[0],o=n[1],i=[];Eh(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 om({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(kb,{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 h_(e){return(h_="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 g_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v_(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){g_(e,t,n[t])}))}return e}function y_(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 b_(e,t,n){return t&&m_(e.prototype,t),n&&m_(e,n),e}function w_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E_(e,t){if(t&&("object"===h_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w_(e)}function D_(e){return(D_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C_(e,t){return(C_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S_(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&&C_(e,t)}mw&&!u_&&s_(l_,"name",{configurable:!0,get:function(){try{return d_(f_,c_(this))[1]}catch(Sl){return""}}});var x_={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)}},A_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y_(this,e),this.init(t,n)}return b_(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||x_,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,v_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),O_=function(){function e(){y_(this,e),this.observers={}}return b_(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function k_(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function B_(e){return null==e?"":""+e}function F_(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 T_(e,t,n){var r=F_(e,t,Object);r.obj[r.k]=n}function __(e,t){var n=F_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function P_(e,t,n){var r=__(e,n);return void 0!==r?r:__(t,n)}function j_(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]):j_(e[r],t[r],n):e[r]=t[r]);return e}function N_(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var I_={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function L_(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return I_[e]})):e}var R_="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function M_(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?M_(s,l,n):void 0}o=o[r[i]]}return o}}var z_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return y_(this,t),n=E_(this,D_(t).call(this)),R_&&O_.call(w_(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 S_(t,O_),b_(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=__(this.data,a);return u||!i||"string"!=typeof n?u:M_(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),T_(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=__(this.data,a)||{};r?j_(u,n,o):u=v_({},u,n),T_(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?v_({},{},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}(),$_={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}},H_={},V_=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return y_(this,t),n=E_(this,D_(t).call(this)),R_&&O_.call(w_(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,w_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=A_.create("translator"),n}return S_(t,O_),b_(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"!==h_(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=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof m||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,v_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var w="[object Array]"===y,E=w?[]:{},D=w?v:g;for(var C in h)if(Object.prototype.hasOwnProperty.call(h,C)){var S="".concat(D).concat(i).concat(C);E[C]=this.translate(S,v_({},n,{joinArrays:!1,ns:s})),E[C]===S&&(E[C]=h[C])}h=E}}else if(b&&"string"==typeof m&&"[object Array]"===y)(h=h.join(m))&&(h=this.extendTranslation(h,e,n,r));else{var x=!1,A=!1,O=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),B=O?this.pluralResolver.getSuffix(c,n.count):"",F=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(x=!0,h=F),this.isValidLookup(h)||(A=!0,h=u);var T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&A?void 0:h,_=k&&F!==h&&this.options.updateMissing;if(A||x||_){if(this.logger.log(_?"updateKey":"missingKey",c,l,u,_?F:h),i){var P=this.resolve(u,v_({},n,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var I=0;I<N.length;I++)j.push(N[I]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var L=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,_?r:T,_,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,_?r:T,_,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?j.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){L([e],u+t,n["defaultValue".concat(t)]||F)}))})):L(j,u,F))}h=this.extendTranslation(h,e,n,p,r),A&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(A||x)&&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(v_({},n,{interpolation:v_({},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=v_({},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=$_.handle(d,e,t,this.options&&this.options.postProcessPassResolved?v_({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,!H_["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(H_["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),t}();function U_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var W_=function(){function e(t){y_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=A_.create("languageUtils")}return b_(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]=U_(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]=U_(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=U_(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}(),G_=[{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}],q_={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var K_=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y_(this,e),this.languageUtils=t,this.options=n,this.logger=A_.create("pluralResolver"),this.rules=function(){var e={};return G_.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:q_[t.fc]}}))})),e}()}return b_(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}(),Y_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};y_(this,e),this.logger=A_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return b_(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:L_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?N_(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?N_(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?N_(t.nestingPrefix):t.nestingPrefixEscaped||N_("$t("),this.nestingSuffix=t.nestingSuffix?N_(t.nestingSuffix):t.nestingSuffixEscaped||N_(")"),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=P_(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,v_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(P_(t,s,a),l,n,v_({},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=B_(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=v_({},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=v_({},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=B_(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,v_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),X_=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return y_(this,t),o=E_(this,D_(t).call(this)),R_&&O_.call(w_(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=A_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return S_(t,O_),b_(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=F_(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,v_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Z_(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 J_(){}var Q_=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(y_(this,t),e=E_(this,D_(t).call(this)),R_&&O_.call(w_(e)),e.options=Z_(n),e.services={},e.logger=A_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),E_(e,w_(e));setTimeout((function(){e.init(n,r)}),0)}return e}return S_(t,O_),b_(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=v_({},{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"===h_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===h_(e[2])||"object"===h_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,Z_(t)),this.format=this.options.interpolation.format,n||(n=J_),!this.options.isClone){this.modules.logger?A_.init(r(this.modules.logger),this.options):A_.init(null,this.options);var o=new W_(this.options);this.store=new z_(this.options.resources,this.options);var i=this.services;i.logger=A_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new K_(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Y_(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new X_(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 V_(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=k_(),s=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J_,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=k_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=J_),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&&$_.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=k_();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"!==h_(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=v_({},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=k_();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=k_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J_,o=v_({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=v_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new V_(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}(),eP=new Q_;function tP(e,t){eP.addResourceBundle(e,"translation",t,!0,!0)}eP.init({lng:"zh-CN",resources:{}});var nP=eP.t.bind(eP);tP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),tP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var rP=ta?{}.toString:function(){return"[object "+ia(this)+"]"};ta||Di(Object.prototype,"toString",rP,{unsafe:!0});var oP,iP=Array.isArray||function(e){return"Array"==Wr(e)},aP=function(){},uP=[],sP=eo("Reflect","construct"),lP=/^\s*(?:class|function)\b/,cP=Hr(lP.exec),fP=!lP.exec(aP),dP=function(e){if(!Jr(e))return!1;try{return sP(aP,uP,e),!0}catch(t){return!1}},pP=!sP||Br((function(){var e;return dP(dP.call)||!dP(Object)||!dP((function(){e=!0}))||e}))?function(e){if(!Jr(e))return!1;switch(ia(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fP||!!cP(lP,oi(e))}:dP,hP=No("species"),gP=kr.Array,vP=function(e,t){return new(iP(n=e)&&(r=n.constructor,(pP(r)&&(r===gP||iP(r.prototype))||Qr(r)&&null===(r=r[hP]))&&(r=void 0)),void 0===r?gP:r)(0===t?0:t);var n,r},yP=Hr([].push),mP=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=So(s),g=Kr(h),v=gu(l,c),y=Ti(g),m=0,b=f||vP,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:yP(w,d)}else switch(e){case 4:return!1;case 7:yP(w,d)}return i?-1:r||o?o:w}},bP=[mP(0),mP(1),mP(2),mP(3),mP(4),mP(5),mP(6),mP(7)][0],wP=!!(oP=[].forEach)&&Br((function(){oP.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return bP(this,e,arguments.length>1?arguments[1]:void 0)},EP=function(e){if(e&&e.forEach!==wP)try{Qo(e,"forEach",wP)}catch(t){e.forEach=wP}};for(var DP in us)us[DP]&&EP(kr[DP]&&kr[DP].prototype);EP(cs),tP("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"}}),tP("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 CP={type:"paragraph",renderElem:function(e,t,n){return yg("p",null,t)}},SP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xP(e){var t={exports:{}};return e(t,t.exports),t.exports}var AP,OP,kP=function(e){return e&&e.Math==Math&&e},BP=kP("object"==typeof globalThis&&globalThis)||kP("object"==typeof window&&window)||kP("object"==typeof self&&self)||kP("object"==typeof SP&&SP)||function(){return this}()||Function("return this")(),FP=function(e){try{return!!e()}catch(t){return!0}},TP=!FP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_P=Function.prototype.call,PP=_P.bind?_P.bind(_P):function(){return _P.apply(_P,arguments)},jP={}.propertyIsEnumerable,NP=Object.getOwnPropertyDescriptor,IP=NP&&!jP.call({1:2},1)?function(e){var t=NP(this,e);return!!t&&t.enumerable}:jP,LP={f:IP},RP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},MP=Function.prototype,zP=MP.bind,$P=MP.call,HP=zP&&zP.bind($P),VP=zP?function(e){return e&&HP($P,e)}:function(e){return e&&function(){return $P.apply(e,arguments)}},UP=VP({}.toString),WP=VP("".slice),GP=function(e){return WP(UP(e),8,-1)},qP=BP.Object,KP=VP("".split),YP=FP((function(){return!qP("z").propertyIsEnumerable(0)}))?function(e){return"String"==GP(e)?KP(e,""):qP(e)}:qP,XP=BP.TypeError,ZP=function(e){if(null==e)throw XP("Can't call method on "+e);return e},JP=function(e){return YP(ZP(e))},QP=function(e){return"function"==typeof e},ej=function(e){return"object"==typeof e?null!==e:QP(e)},tj=function(e,t){return arguments.length<2?function(e){return QP(e)?e:void 0}(BP[e]):BP[e]&&BP[e][t]},nj=VP({}.isPrototypeOf),rj=tj("navigator","userAgent")||"",oj=BP.process,ij=BP.Deno,aj=oj&&oj.versions||ij&&ij.version,uj=aj&&aj.v8;uj&&(OP=(AP=uj.split("."))[0]>0&&AP[0]<4?1:+(AP[0]+AP[1])),!OP&&rj&&(!(AP=rj.match(/Edge\/(\d+)/))||AP[1]>=74)&&(AP=rj.match(/Chrome\/(\d+)/))&&(OP=+AP[1]);var sj=OP,lj=!!Object.getOwnPropertySymbols&&!FP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sj&&sj<41})),cj=lj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fj=BP.Object,dj=cj?function(e){return"symbol"==typeof e}:function(e){var t=tj("Symbol");return QP(t)&&nj(t.prototype,fj(e))},pj=BP.String,hj=function(e){try{return pj(e)}catch(t){return"Object"}},gj=BP.TypeError,vj=function(e){if(QP(e))return e;throw gj(hj(e)+" is not a function")},yj=function(e,t){var n=e[t];return null==n?void 0:vj(n)},mj=BP.TypeError,bj=Object.defineProperty,wj=function(e,t){try{bj(BP,e,{value:t,configurable:!0,writable:!0})}catch(oP){BP[e]=t}return t},Ej=BP["__core-js_shared__"]||wj("__core-js_shared__",{}),Dj=xP((function(e){(e.exports=function(e,t){return Ej[e]||(Ej[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Cj=BP.Object,Sj=function(e){return Cj(ZP(e))},xj=VP({}.hasOwnProperty),Aj=Object.hasOwn||function(e,t){return xj(Sj(e),t)},Oj=0,kj=Math.random(),Bj=VP(1..toString),Fj=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Bj(++Oj+kj,36)},Tj=Dj("wks"),_j=BP.Symbol,Pj=_j&&_j.for,jj=cj?_j:_j&&_j.withoutSetter||Fj,Nj=function(e){if(!Aj(Tj,e)||!lj&&"string"!=typeof Tj[e]){var t="Symbol."+e;lj&&Aj(_j,e)?Tj[e]=_j[e]:Tj[e]=cj&&Pj?Pj(t):jj(t)}return Tj[e]},Ij=BP.TypeError,Lj=Nj("toPrimitive"),Rj=function(e){var t=function(e,t){if(!ej(e)||dj(e))return e;var n,r=yj(e,Lj);if(r){if(void 0===t&&(t="default"),n=PP(r,e,t),!ej(n)||dj(n))return n;throw Ij("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&QP(n=e.toString)&&!ej(r=PP(n,e)))return r;if(QP(n=e.valueOf)&&!ej(r=PP(n,e)))return r;if("string"!==t&&QP(n=e.toString)&&!ej(r=PP(n,e)))return r;throw mj("Can't convert object to primitive value")}(e,t)}(e,"string");return dj(t)?t:t+""},Mj=BP.document,zj=ej(Mj)&&ej(Mj.createElement),$j=function(e){return zj?Mj.createElement(e):{}},Hj=!TP&&!FP((function(){return 7!=Object.defineProperty($j("div"),"a",{get:function(){return 7}}).a})),Vj=Object.getOwnPropertyDescriptor,Uj={f:TP?Vj:function(e,t){if(e=JP(e),t=Rj(t),Hj)try{return Vj(e,t)}catch(n){}if(Aj(e,t))return RP(!PP(LP.f,e,t),e[t])}},Wj=BP.String,Gj=BP.TypeError,qj=function(e){if(ej(e))return e;throw Gj(Wj(e)+" is not an object")},Kj=BP.TypeError,Yj=Object.defineProperty,Xj={f:TP?Yj:function(e,t,n){if(qj(e),t=Rj(t),qj(n),Hj)try{return Yj(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Kj("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Zj=TP?function(e,t,n){return Xj.f(e,t,RP(1,n))}:function(e,t,n){return e[t]=n,e},Jj=VP(Function.toString);QP(Ej.inspectSource)||(Ej.inspectSource=function(e){return Jj(e)});var Qj,eN,tN,nN=Ej.inspectSource,rN=BP.WeakMap,oN=QP(rN)&&/native code/.test(nN(rN)),iN=Dj("keys"),aN=function(e){return iN[e]||(iN[e]=Fj(e))},uN={},sN=BP.TypeError,lN=BP.WeakMap;if(oN||Ej.state){var cN=Ej.state||(Ej.state=new lN),fN=VP(cN.get),dN=VP(cN.has),pN=VP(cN.set);Qj=function(e,t){if(dN(cN,e))throw new sN("Object already initialized");return t.facade=e,pN(cN,e,t),t},eN=function(e){return fN(cN,e)||{}},tN=function(e){return dN(cN,e)}}else{var hN=aN("state");uN[hN]=!0,Qj=function(e,t){if(Aj(e,hN))throw new sN("Object already initialized");return t.facade=e,Zj(e,hN,t),t},eN=function(e){return Aj(e,hN)?e[hN]:{}},tN=function(e){return Aj(e,hN)}}var gN={set:Qj,get:eN,has:tN,enforce:function(e){return tN(e)?eN(e):Qj(e,{})},getterFor:function(e){return function(t){var n;if(!ej(t)||(n=eN(t)).type!==e)throw sN("Incompatible receiver, "+e+" required");return n}}},vN=Function.prototype,yN=TP&&Object.getOwnPropertyDescriptor,mN=Aj(vN,"name"),bN={EXISTS:mN,PROPER:mN&&"something"===function(){}.name,CONFIGURABLE:mN&&(!TP||TP&&yN(vN,"name").configurable)},wN=xP((function(e){var t=bN.CONFIGURABLE,n=gN.get,r=gN.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;QP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Aj(i,"name")||t&&i.name!==f)&&Zj(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==BP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Zj(e,n,i)):l?e[n]=i:wj(n,i)})(Function.prototype,"toString",(function(){return QP(this)&&n(this).source||nN(this)}))})),EN=Math.ceil,DN=Math.floor,CN=function(e){var t=+e;return t!=t||0===t?0:(t>0?DN:EN)(t)},SN=Math.max,xN=Math.min,AN=function(e,t){var n=CN(e);return n<0?SN(n+t,0):xN(n,t)},ON=Math.min,kN=function(e){return e>0?ON(CN(e),9007199254740991):0},BN=function(e){return kN(e.length)},FN=function(e){return function(t,n,r){var o,i=JP(t),a=BN(i),u=AN(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}},TN={includes:FN(!0),indexOf:FN(!1)},_N=TN.indexOf,PN=VP([].push),jN=function(e,t){var n,r=JP(e),o=0,i=[];for(n in r)!Aj(uN,n)&&Aj(r,n)&&PN(i,n);for(;t.length>o;)Aj(r,n=t[o++])&&(~_N(i,n)||PN(i,n));return i},NN=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],IN=NN.concat("length","prototype"),LN={f:Object.getOwnPropertyNames||function(e){return jN(e,IN)}},RN={f:Object.getOwnPropertySymbols},MN=VP([].concat),zN=tj("Reflect","ownKeys")||function(e){var t=LN.f(qj(e)),n=RN.f;return n?MN(t,n(e)):t},$N=function(e,t){for(var n=zN(t),r=Xj.f,o=Uj.f,i=0;i<n.length;i++){var a=n[i];Aj(e,a)||r(e,a,o(t,a))}},HN=/#|\.prototype\./,VN=function(e,t){var n=WN[UN(e)];return n==qN||n!=GN&&(QP(t)?FP(t):!!t)},UN=VN.normalize=function(e){return String(e).replace(HN,".").toLowerCase()},WN=VN.data={},GN=VN.NATIVE="N",qN=VN.POLYFILL="P",KN=VN,YN=Uj.f,XN=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?BP:l?BP[u]||wj(u,{}):(BP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=YN(n,r))&&a.value:n[r],!KN(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$N(i,o)}(e.sham||o&&o.sham)&&Zj(i,"sham",!0),wN(n,r,i,e)}},ZN=VP(VP.bind),JN=Array.isArray||function(e){return"Array"==GP(e)},QN={};QN[Nj("toStringTag")]="z";var eI="[object z]"===String(QN),tI=Nj("toStringTag"),nI=BP.Object,rI="Arguments"==GP(function(){return arguments}()),oI=eI?GP: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=nI(e),tI))?n:rI?GP(t):"Object"==(r=GP(t))&&QP(t.callee)?"Arguments":r},iI=function(){},aI=[],uI=tj("Reflect","construct"),sI=/^\s*(?:class|function)\b/,lI=VP(sI.exec),cI=!sI.exec(iI),fI=function(e){if(!QP(e))return!1;try{return uI(iI,aI,e),!0}catch(t){return!1}},dI=!uI||FP((function(){var e;return fI(fI.call)||!fI(Object)||!fI((function(){e=!0}))||e}))?function(e){if(!QP(e))return!1;switch(oI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return cI||!!lI(sI,nN(e))}:fI,pI=Nj("species"),hI=BP.Array,gI=function(e,t){return new(JN(n=e)&&(r=n.constructor,(dI(r)&&(r===hI||JN(r.prototype))||ej(r)&&null===(r=r[pI]))&&(r=void 0)),void 0===r?hI:r)(0===t?0:t);var n,r},vI=VP([].push),yI=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=Sj(s),g=YP(h),v=function(e,t){return vj(e),void 0===t?e:ZN?ZN(e,t):function(){return e.apply(t,arguments)}}(l,c),y=BN(g),m=0,b=f||gI,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:vI(w,d)}else switch(e){case 4:return!1;case 7:vI(w,d)}return i?-1:r||o?o:w}},mI={forEach:yI(0),map:yI(1),filter:yI(2),some:yI(3),every:yI(4),find:yI(5),findIndex:yI(6),filterReject:yI(7)},bI=Nj("species"),wI=function(e){return sj>=51||!FP((function(){var t=[];return(t.constructor={})[bI]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},EI=mI.filter;XN({target:"Array",proto:!0,forced:!wI("filter")},{filter:function(e){return EI(this,e,arguments.length>1?arguments[1]:void 0)}});var DI=eI?{}.toString:function(){return"[object "+oI(this)+"]"};eI||wN(Object.prototype,"toString",DI,{unsafe:!0});var CI,SI=BP.String,xI=function(e){if("Symbol"===oI(e))throw TypeError("Cannot convert a Symbol value to a string");return SI(e)},AI=function(){var e=qj(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},OI=BP.RegExp,kI=FP((function(){var e=OI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BI=kI||FP((function(){return!OI("a","y").sticky})),FI={BROKEN_CARET:kI||FP((function(){var e=OI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:BI,UNSUPPORTED_Y:kI},TI=Object.keys||function(e){return jN(e,NN)},_I=TP?Object.defineProperties:function(e,t){qj(e);for(var n,r=JP(t),o=TI(t),i=o.length,a=0;i>a;)Xj.f(e,n=o[a++],r[n]);return e},PI=tj("document","documentElement"),jI=aN("IE_PROTO"),NI=function(){},II=function(e){return"<script>"+e+"<\/script>"},LI=function(e){e.write(II("")),e.close();var t=e.parentWindow.Object;return e=null,t},RI=function(){try{CI=new ActiveXObject("htmlfile")}catch(r){}var e,t;RI="undefined"!=typeof document?document.domain&&CI?LI(CI):((t=$j("iframe")).style.display="none",PI.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(II("document.F=Object")),e.close(),e.F):LI(CI);for(var n=NN.length;n--;)delete RI.prototype[NN[n]];return RI()};uN[jI]=!0;var MI,zI,$I=Object.create||function(e,t){var n;return null!==e?(NI.prototype=qj(e),n=new NI,NI.prototype=null,n[jI]=e):n=RI(),void 0===t?n:_I(n,t)},HI=BP.RegExp,VI=FP((function(){var e=HI(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),UI=BP.RegExp,WI=FP((function(){var e=UI("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),GI=gN.get,qI=Dj("native-string-replace",String.prototype.replace),KI=RegExp.prototype.exec,YI=KI,XI=VP("".charAt),ZI=VP("".indexOf),JI=VP("".replace),QI=VP("".slice),eL=(zI=/b*/g,PP(KI,MI=/a/,"a"),PP(KI,zI,"a"),0!==MI.lastIndex||0!==zI.lastIndex),tL=FI.BROKEN_CARET,nL=void 0!==/()??/.exec("")[1];(eL||nL||tL||VI||WI)&&(YI=function(e){var t,n,r,o,i,a,u,s=this,l=GI(s),c=xI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=PP(YI,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=tL&&s.sticky,h=PP(AI,s),g=s.source,v=0,y=c;if(p&&(h=JI(h,"y",""),-1===ZI(h,"g")&&(h+="g"),y=QI(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==XI(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),nL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),eL&&(r=s.lastIndex),o=PP(KI,p?n:s,y),p?o?(o.input=QI(o.input,v),o[0]=QI(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:eL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),nL&&o&&o.length>1&&PP(qI,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=$I(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var rL=YI;XN({target:"RegExp",proto:!0,forced:/./.exec!==rL},{exec:rL});var oL=Function.prototype,iL=oL.apply,aL=oL.bind,uL=oL.call,sL="object"==typeof Reflect&&Reflect.apply||(aL?uL.bind(iL):function(){return uL.apply(iL,arguments)}),lL=Nj("species"),cL=RegExp.prototype,fL=function(e,t,n,r){var o=Nj(e),i=!FP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!FP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[lL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=VP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=VP(e),s=t.exec;return s===rL||s===cL.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(cL,o,s[1])}r&&Zj(cL[o],"sham",!0)},dL=VP("".charAt),pL=VP("".charCodeAt),hL=VP("".slice),gL=function(e){return function(t,n){var r,o,i=xI(ZP(t)),a=CN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=pL(i,a))<55296||r>56319||a+1===u||(o=pL(i,a+1))<56320||o>57343?e?dL(i,a):r:e?hL(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),vL=function(e,t,n){return t+(n?gL(e,t).length:1)},yL=Math.floor,mL=VP("".charAt),bL=VP("".replace),wL=VP("".slice),EL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,DL=/\$([$&'`]|\d{1,2})/g,CL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=DL;return void 0!==o&&(o=Sj(o),s=EL),bL(i,s,(function(i,s){var l;switch(mL(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=yL(c/10);return 0===f?i:f<=u?void 0===r[f-1]?mL(s,1):r[f-1]+mL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},SL=BP.TypeError,xL=function(e,t){var n=e.exec;if(QP(n)){var r=PP(n,e,t);return null!==r&&qj(r),r}if("RegExp"===GP(e))return PP(rL,e,t);throw SL("RegExp#exec called on incompatible receiver")},AL=Nj("replace"),OL=Math.max,kL=Math.min,BL=VP([].concat),FL=VP([].push),TL=VP("".indexOf),_L=VP("".slice),PL="$0"==="a".replace(/./,"$0"),jL=!!/./[AL]&&""===/./[AL]("a","$0");fL("replace",(function(e,t,n){var r=jL?"$":"$0";return[function(e,n){var r=ZP(this),o=null==e?void 0:yj(e,AL);return o?PP(o,e,r,n):PP(t,xI(r),e,n)},function(e,o){var i=qj(this),a=xI(e);if("string"==typeof o&&-1===TL(o,r)&&-1===TL(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=QP(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(FL(f,d),!l)break;""===xI(d[0])&&(i.lastIndex=vL(a,kN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=xI((d=f[v])[0]),m=OL(kL(CN(d.index),a.length),0),b=[],w=1;w<d.length;w++)FL(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=BL([y],b,m,a);void 0!==E&&FL(D,E);var C=xI(sL(o,void 0,D))}else C=CL(y,a,m,b,E,o);m>=g&&(h+=_L(a,g,m)+C,g=m+y.length)}return h+_L(a,g)}]}),!!FP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!PL||jL);var NL=Nj("unscopables"),IL=Array.prototype;null==IL[NL]&&Xj.f(IL,NL,{configurable:!0,value:$I(null)});var LL=function(e){IL[NL][e]=!0},RL=mI.find,ML=!0;"find"in[]&&Array(1).find((function(){ML=!1})),XN({target:"Array",proto:!0,forced:ML},{find:function(e){return RL(this,e,arguments.length>1?arguments[1]:void 0)}}),LL("find");var zL=Nj("match"),$L=function(e){var t;return ej(e)&&(void 0!==(t=e[zL])?!!t:"RegExp"==GP(e))},HL=BP.TypeError,VL=Nj("species"),UL=function(e,t,n){var r=Rj(t);r in e?Xj.f(e,r,RP(0,n)):e[r]=n},WL=BP.Array,GL=Math.max,qL=function(e,t,n){for(var r=BN(e),o=AN(t,r),i=AN(void 0===n?r:n,r),a=WL(GL(i-o,0)),u=0;o<i;o++,u++)UL(a,u,e[o]);return a.length=u,a},KL=FI.UNSUPPORTED_Y,YL=Math.min,XL=[].push,ZL=VP(/./.exec),JL=VP(XL),QL=VP("".slice);fL("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(ZP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!$L(e))return PP(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=PP(rL,f,r))&&!((a=f.lastIndex)>c&&(JL(s,QL(r,c,i.index)),i.length>1&&i.index<r.length&&sL(XL,s,qL(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&ZL(f,"")||JL(s,""):JL(s,QL(r,c)),s.length>o?qL(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:PP(t,this,e,n)}:t,[function(t,n){var o=ZP(this),i=null==t?void 0:yj(t,e);return i?PP(i,t,o,n):PP(r,xI(o),t,n)},function(e,o){var i=qj(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=qj(i).constructor)||null==(l=qj(c)[VL])?s:function(e){if(dI(e))return e;throw HL(hj(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(KL?"g":"y"),h=new f(KL?"^(?:"+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=KL?0:y;var b,w=xL(h,KL?QL(a,y):a);if(null===w||(b=YL(kN(h.lastIndex+(KL?y:0)),a.length))===v)y=vL(a,y,d);else{if(JL(m,QL(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(JL(m,w[E]),m.length===g)return m;y=v=b}}return JL(m,QL(a,v)),m}]}),!!FP((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]})),KL);var eR="\t\n\v\f\r \u2028\u2029\ufeff",tR=VP("".replace),nR="["+eR+"]",rR=RegExp("^"+nR+nR+"*"),oR=RegExp(nR+nR+"*$"),iR=function(e){return function(t){var n=xI(ZP(t));return 1&e&&(n=tR(n,rR,"")),2&e&&(n=tR(n,oR,"")),n}},aR={start:iR(1),end:iR(2),trim:iR(3)},uR=bN.PROPER,sR=aR.trim;function lR(e){return 0===Ap("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function cR(e){return 0===e.length?"":e[0].outerHTML}function fR(e){return e.length?e[0].tagName.toLowerCase():""}function dR(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}XN({target:"String",proto:!0,forced:FP((function(){return!!eR.trim()||"
"!=="
".trim()||uR&&"trim"!==eR.trim.name}))},{trim:function(){return sR(this)}}),XN({global:!0},{globalThis:BP}),$p&&(Ap.fn.css=$p),qp&&(Ap.fn.append=qp),Kp&&(Ap.fn.prepend=Kp),Op&&(Ap.fn.addClass=Op),kp&&(Ap.fn.removeClass=kp),Bp&&(Ap.fn.hasClass=Bp),jp&&(Ap.fn.on=jp),Np&&(Ap.fn.off=Np),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Tp&&(Ap.fn.removeAttr=Tp),Mp&&(Ap.fn.hide=Mp),zp&&(Ap.fn.show=zp),Xp&&(Ap.fn.parents=Xp),_p&&(Ap.fn.dataset=_p),Pp&&(Ap.fn.val=Pp),Wp&&(Ap.fn.text=Wp),Up&&(Ap.fn.html=Up),Jp&&(Ap.fn.children=Jp),Qp&&(Ap.fn.remove=Qp),Zp&&(Ap.fn.find=Zp),Ip&&(Ap.fn.width=Ip),Lp&&(Ap.fn.height=Lp),Vp&&(Ap.fn.filter=Vp),eh&&(Ap.fn.empty=eh);var pR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},hR=function(e,t){return hR=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])},hR(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function gR(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}hR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var vR=function(){return vR=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},vR.apply(this,arguments)};function yR(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 mR(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 bR(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 ER(e){var t=wR(Sf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!mf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Bf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Kf.isText(o[0])&&(dd.setNodes(e,{type:"paragraph"}),!0)}var DR={renderElems:[CP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[pR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){ER(r)||t(e)},r.deleteForward=function(e){ER(r)||n(e)},r}},CR=/"/g,SR=VP("".replace),xR=function(e,t,n,r){var o=xI(ZP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+SR(xI(r),CR,""")+'"'),i+">"+o+"</"+t+">"},AR=function(e){return FP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function OR(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 kR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}XN({target:"String",proto:!0,forced:AR("bold")},{bold:function(){return xR(this,"b","","")}}),XN({target:"String",proto:!0,forced:AR("italics")},{italics:function(){return xR(this,"i","","")}}),XN({target:"String",proto:!0,forced:AR("sub")},{sub:function(){return xR(this,"sub","","")}}),XN({target:"String",proto:!0,forced:AR("sup")},{sup:function(){return xR(this,"sup","","")}});var BR={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},FR=$j("span").classList,TR=FR&&FR.constructor&&FR.constructor.prototype,_R=TR===Object.prototype?void 0:TR,PR=function(e,t){var n=[][e];return!!n&&FP((function(){n.call(null,t||function(){throw 1},1)}))},jR=mI.forEach,NR=PR("forEach")?[].forEach:function(e){return jR(this,e,arguments.length>1?arguments[1]:void 0)},IR=function(e){if(e&&e.forEach!==NR)try{Zj(e,"forEach",NR)}catch(t){e.forEach=NR}};for(var LR in BR)BR[LR]&&IR(BP[LR]&&BP[LR].prototype);function RR(e,t){return null==e.selection||!!wR(Sf.nodes(e,{match:function(t){return"pre"===CO.getNodeType(t)||!!Sf.isVoid(e,t)},universal:!0}),1)[0]}function MR(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Sf.removeMark(e,t)}))}IR(_R),XN({target:"Object",stat:!0,forced:FP((function(){TI(1)}))},{keys:function(e){return TI(Sj(e))}});var zR=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Sf.marks(e);return n?n[t]:!!wR(Sf.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 RR(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),$R='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',HR='<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>',VR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=nP("textStyle.bold"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',t.hotkey="mod+b",t}return gR(t,e),t}(zR),UR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=nP("textStyle.code"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',t.hotkey="mod+e",t}return gR(t,e),t}(zR),WR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=nP("textStyle.italic"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',t.hotkey="mod+i",t}return gR(t,e),t}(zR),GR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=nP("textStyle.through"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',t.hotkey="mod+shift+x",t}return gR(t,e),t}(zR),qR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=nP("textStyle.underline"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',t.hotkey="mod+u",t}return gR(t,e),t}(zR),KR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=nP("textStyle.sub"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return gR(t,e),t}(zR),YR=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=nP("textStyle.sup"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',t.hotkey="",t}return gR(t,e),t}(zR),XR=function(){function e(){this.title=nP("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 RR(e)},e.prototype.exec=function(e,t){var n,r,o=Sf.nodes(e,{match:function(e){return Kf.isText(e)},universal:!0});try{for(var i=bR(o),a=i.next();!a.done;a=i.next())MR(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}(),ZR={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=yg("strong",null,c)),a&&(c=yg("code",null,c)),o&&(c=yg("em",null,c)),i&&(c=yg("u",null,c)),u&&(c=yg("s",null,c)),s&&(c=yg("sub",null,c)),l&&(c=yg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new VR}},{key:"underline",factory:function(){return new qR}},{key:"italic",factory:function(){return new WR}},{key:"through",factory:function(){return new GR}},{key:"code",factory:function(){return new UR}},{key:"sub",factory:function(){return new KR}},{key:"sup",factory:function(){return new YR}},{key:"clearStyle",factory:function(){return new XR}}],styleToHtml:function(e,t){if(!Kf.isText(e))return t;if(lR(t))return OR(e,t);var n=Ap(t);if("br"===fR(n))return OR(e,"<br>");var r=n.html();return r=OR(e,r),n.html(r),cR(n)},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!Kf.isText(t))return t;var o=t;return kR(r,"b,strong")&&(o.bold=!0),kR(r,"i,em")&&(o.italic=!0),kR(r,"u")&&(o.underline=!0),kR(r,"s,strike")&&(o.through=!0),kR(r,"sub")&&(o.sub=!0),kR(r,"sup")&&(o.sup=!0),kR(r,"code")&&(o.code=!0),o}};function JR(e){return function(t,n,r){return yg("h"+e,null,n)}}var QR={type:"header1",renderElem:JR(1)},eM={type:"header2",renderElem:JR(2)},tM={type:"header3",renderElem:JR(3)},nM={type:"header4",renderElem:JR(4)},rM={type:"header5",renderElem:JR(5)},oM=bN.PROPER,iM=RegExp.prototype,aM=iM.toString,uM=VP(AI),sM=FP((function(){return"/a/b"!=aM.call({source:"a",flags:"b"})})),lM=oM&&"toString"!=aM.name;(sM||lM)&&wN(RegExp.prototype,"toString",(function(){var e=qj(this),t=xI(e.source),n=e.flags;return"/"+t+"/"+xI(void 0===n&&nj(iM,e)&&!("flags"in iM)?uM(e):n)}),{unsafe:!0});var cM,fM=BP.TypeError,dM=function(e){if($L(e))throw fM("The method doesn't accept regular expressions");return e},pM=Nj("match"),hM=function(e){var t=/./;try{"/./"[e](t)}catch(oP){try{return t[pM]=!1,"/./"[e](t)}catch(n){}}return!1},gM=Uj.f,vM=VP("".startsWith),yM=VP("".slice),mM=Math.min,bM=hM("startsWith");function wM(e){var t=wR(Sf.nodes(e,{match:function(e){return CO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=wR(t,1)[0];return CO.getNodeType(n)}function EM(e){return null==e.selection||!wR(Sf.nodes(e,{match:function(e){var t=CO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function DM(e,t){t&&dd.setNodes(e,{type:t})}XN({target:"String",proto:!0,forced:!(!bM&&(cM=gM(String.prototype,"startsWith"),cM&&!cM.writable)||bM)},{startsWith:function(e){var t=xI(ZP(this));dM(e);var n=kN(mM(arguments.length>1?arguments[1]:void 0,t.length)),r=xI(e);return vM?vM(t,r,n):yM(t,n,n+r.length)===r}});var CM=function(){function e(){this.title=nP("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:nP("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 wM(e)},e.prototype.isDisabled=function(e){return EM(e)},e.prototype.exec=function(e,t){DM(e,t.toString())},e}(),SM=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return wM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return EM(e)},e.prototype.exec=function(e,t){var n=this.type;DM(e,t===n?"paragraph":n)},e}(),xM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return gR(t,e),t}(SM),AM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return gR(t,e),t}(SM),OM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return gR(t,e),t}(SM),kM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return gR(t,e),t}(SM),BM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return gR(t,e),t}(SM),FM={key:"headerSelect",factory:function(){return new CM}},TM={key:"header1",factory:function(){return new xM}},_M={key:"header2",factory:function(){return new AM}},PM={key:"header3",factory:function(){return new OM}},jM={key:"header4",factory:function(){return new kM}},NM={key:"header5",factory:function(){return new BM}};function IM(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function LM(e){return function(t,n,r){var o=Ap(t);return 0===(n=n.filter((function(e){return!!Kf.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var RM={renderElems:[QR,eM,tM,nM,rM],elemsToHtml:[{type:"header1",elemToHtml:IM(1)},{type:"header2",elemToHtml:IM(2)},{type:"header3",elemToHtml:IM(3)},{type:"header4",elemToHtml:IM(4)},{type:"header5",elemToHtml:IM(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:LM(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:LM(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:LM(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:LM(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:LM(5)}],menus:[FM,TM,_M,PM,jM,NM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=wR(Sf.nodes(n,{match:function(e){return CO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&CO.isSelectionAtLineEnd(e,r[1])?dd.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},MM=Object.assign,zM=Object.defineProperty,$M=VP([].concat),HM=!MM||FP((function(){if(TP&&1!==MM({b:1},MM(zM({},"a",{enumerable:!0,get:function(){zM(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!=MM({},e)[n]||TI(MM({},t)).join("")!=r}))?function(e,t){for(var n=Sj(e),r=arguments.length,o=1,i=RN.f,a=LP.f;r>o;)for(var u,s=YP(arguments[o++]),l=i?$M(TI(s),i(s)):TI(s),c=l.length,f=0;c>f;)u=l[f++],TP&&!PP(a,s,u)||(n[u]=s[u]);return n}:MM;function VM(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}XN({target:"Object",stat:!0,forced:Object.assign!==HM},{assign:HM});var UM={selector:"font",preParseHtml:function(e){var t=Ap(e);if("font"!==fR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},WM=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=Sf.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(Sf.nodes(e,{match:function(t){return"pre"===CO.getNodeType(t)||!!Sf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Ap('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Ap(r).attr("data-value");"0"===o?Sf.removeMark(e,t):Sf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Ap('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Ap('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=nP("color.default")),"bgColor"===t&&(a=nP("color.clear"));var u=Ap('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),GM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("color.color"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',t.mark="color",t}return gR(t,e),t}(WM),qM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("color.bgColor"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',t.mark="bgColor",t}return gR(t,e),t}(WM),KM=["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)"],YM={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&VM(i,{color:r}),o&&VM(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!Kf.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((lR(t)||"span"!==fR(n=Ap(t)))&&(n=Ap("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),cR(n)):t},preParseHtml:[UM],parseStyleHtml:function(e,t,n){var r=Ap(e);if(!Kf.isText(t))return t;var o=t,i=dR(r,"color");i&&(o.color=i);var a=dR(r,"background-color");return a||(a=dR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new GM},config:{colors:KM}},{key:"bgColor",factory:function(){return new qM},config:{colors:KM}}]},XM=/^(?:\w+:)?\/\/(\S+)$/,ZM=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,JM=/^[^\s\.]+\.\S{2,}$/,QM=TN.includes;function ez(e){return void 0===e&&(e="r"),e+"-"+Dh()}function tz(e){return e.replace(/</g,"<").replace(/>/g,">")}function nz(e,t,n,r){return yR(this,void 0,void 0,(function(){var o,i;return mR(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 rz(e,t,n){return yR(this,void 0,void 0,(function(){var r;return mR(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 oz(e){return null==e.selection||!!CO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function iz(e,t){return{type:"link",url:tz(e),children:t?[{text:t}]:[]}}function az(e,t,n){return yR(this,void 0,void 0,(function(){var r,o,i;return mR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),oz(e)?[2]:[4,nz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,rz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||($f.isCollapsed(o)?(e.insertText(" "),i=iz(r,t),dd.insertNodes(e,i),e.insertFragment([{text:" "}])):Sf.string(e,o)!==t?(e.deleteFragment(),i=iz(r,t),dd.insertNodes(e,i)):(i=iz(r),dd.wrapNodes(e,i,{split:!0}),dd.collapse(e,{edge:"end"}))),[2]}}))}))}XN({target:"Array",proto:!0},{includes:function(e){return QM(this,e,arguments.length>1?arguments[1]:void 0)}}),LL("includes");var uz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return yg("a",{href:o,target:void 0===i?"_blank":i},t)}},sz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function lz(){return ez("w-e-insert-link")}var cz=function(){function e(){this.title=nP("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=lz(),this.urlInputId=lz(),this.buttonId=lz()}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 oz(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(VT(nP("link.text"),r),2),u=a[0],s=Ap(a[1]),l=wR(VT(nP("link.url"),o),2),c=l[0],f=Ap(l[1]),d=wR(UT(i,nP("common.ok")),1)[0];if(null==this.$content){var p=Ap("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();az(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||$f.isCollapsed(t))s.val("");else{var g=Sf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function fz(){return ez("w-e-update-link")}var dz=function(){function e(){this.title=nP("link.edit"),this.iconSvg=$R,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=fz(),this.buttonId=fz()}return e.prototype.getSelectedLinkElem=function(e){var t=CO.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 CO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=wR(VT(nP("link.url"),t),2),o=r[0],i=Ap(r[1]),a=wR(UT(n,nP("common.ok")),1)[0];if(null==this.$content){var u=Ap("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=CO.getSelectedNodeByType(e,"link"),o=r?Bf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){yR(this,void 0,void 0,(function(){var r,o;return mR(this,(function(i){switch(i.label){case 0:return n?[4,nz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,rz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:tz(r)},dd.setNodes(e,o,{match:function(e){return CO.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}(),pz=function(){function e(){this.title=nP("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==CO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||dd.unwrapNodes(e,{match:function(e){return CO.checkNodeType(e,"link")}})},e}(),hz=function(){function e(){this.title=nP("link.view"),this.iconSvg=HR,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=CO.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}(),gz={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},vz={renderElems:[uz],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:[sz],menus:[{key:"insertLink",factory:function(){return new cz},config:gz},{key:"editLink",factory:function(){return new dz},config:gz},{key:"unLink",factory:function(){return new pz}},{key:"viewLink",factory:function(){return new hz}}],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(XM);if(!t)return!1;var n=t[1];return!(!n||!ZM.test(n)&&!JM.test(n))}(t)){if(!oz(o)){var r=o.selection;if(null!=r){var i=Sf.string(o,r);az(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=wR(e,2),n=t[0],i=t[1];return"link"!==CO.getNodeType(n)?r([n,i]):""===Bf.string(n)?dd.removeNodes(o,{at:i}):r([n,i])},o}},yz=VP(1..valueOf),mz=BP.RangeError,bz=BP.RangeError,wz=BP.String,Ez=Math.floor,Dz=VP((function(e){var t=xI(ZP(this)),n="",r=CN(e);if(r<0||r==1/0)throw mz("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),Cz=VP("".slice),Sz=VP(1..toFixed),xz=function(e,t,n){return 0===t?n:t%2==1?xz(e,t-1,n*e):xz(e*e,t/2,n)},Az=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=Ez(o/1e7)},Oz=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=Ez(r/t),r=r%t*1e7},kz=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=wz(e[t]);n=""===n?r:n+Dz("0",7-r.length)+r}return n};function Bz(e,t){return"w-e-image-container-"+CO.findKey(e,t).id}XN({target:"Number",proto:!0,forced:FP((function(){return"0.000"!==Sz(8e-5,3)||"1"!==Sz(.9,0)||"1.25"!==Sz(1.255,2)||"1000000000000000128"!==Sz(0xde0b6b3a7640080,0)}))||!FP((function(){Sz({})}))},{toFixed:function(e){var t,n,r,o,i=yz(this),a=CN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw bz("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return wz(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*xz(2,69,1))-69)<0?i*xz(2,-t,1):i/xz(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Az(u,0,n),r=a;r>=7;)Az(u,1e7,0),r-=7;for(Az(u,xz(10,r,1),0),r=t-1;r>=23;)Oz(u,1<<23),r-=23;Oz(u,1<<r),Az(u,1,1),Oz(u,2),l=kz(u)}else Az(u,0,n),Az(u,1<<-t,0),l=kz(u)+Dz("0",a);return a>0?s+((o=l.length)<=a?"0."+Dz("0",a-o)+l:Cz(l,0,o-a)+"."+Cz(l,o-a)):s+l}});var Fz={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=CO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,D,C,S=yg("img",{style:v,src:o,alt:a,"data-href":s}),x=n.isDisabled();return g&&!x?function(e,t,n,r){var o=Ap("body"),i=Bz(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Rh((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:vR(vR({},t.style),{width:r+"px",height:i+"px"})};dd.setNodes(e,a,{at:CO.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),yg("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=Ap(t.target);n.hasClass("w-e-image-dragger")&&(t.preventDefault(),(n.hasClass("left-top")||n.hasClass("left-bottom"))&&(f=!0),function(t){d=function(){var e=Ap("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",p),o.on("mouseup",h);var r=CO.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,yg("div",{className:"w-e-image-dragger left-top"}),yg("div",{className:"w-e-image-dragger right-top"}),yg("div",{className:"w-e-image-dragger left-bottom"}),yg("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),yg("div",{id:Bz(y,m),style:C,className:"w-e-image-container"},b))}},Tz={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:dR(r,"width"),height:dR(r,"height")},children:[{text:""}]}}};function _z(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),yR(this,void 0,void 0,(function(){var i,a;return mR(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 Pz(e,t,n){return yR(this,void 0,void 0,(function(){var r;return mR(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 jz(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),yR(this,void 0,void 0,(function(){var o,i,a;return mR(this,(function(u){switch(u.label){case 0:return[4,_z("insertImage",e,t,n,r)];case 1:return u.sent()?[4,Pz("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:tz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),CO.getSelectedNodeByType(e,"image")&&e.move(1),Nz(e)||(dd.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function Nz(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!wR(Sf.nodes(e,{match:function(t){var n=CO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Sf.isVoid(e,t)},universal:!0}),1)[0]}function Iz(){return ez("w-e-insert-image")}var Lz=function(){function e(){this.title=nP("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=Iz(),this.altInputId=Iz(),this.hrefInputId=Iz(),this.buttonId=Iz()}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 Nz(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(VT(nP("image.src"),r),2),s=u[0],l=Ap(u[1]),c=wR(VT(nP("image.desc"),o),2),f=c[0],d=Ap(c[1]),p=wR(VT(nP("image.link"),i),2),h=p[0],g=Ap(p[1]),v=wR(UT(a,nP("common.ok")),1)[0];if(null==this.$content){var y=Ap("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||jz(e,t,n,r))},e}(),Rz=function(){function e(){this.title=nP("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==CO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||dd.removeNodes(e,{match:function(e){return CO.checkNodeType(e,"image")}})},e}();function Mz(){return ez("w-e-edit-image")}var zz=function(){function e(){this.title=nP("image.edit"),this.iconSvg=$R,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Mz(),this.altInputId=Mz(),this.hrefInputId=Mz(),this.buttonId=Mz()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return CO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==CO.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(VT(nP("image.src"),r),2),l=s[0],c=Ap(s[1]),f=wR(VT(nP("image.desc"),o),2),d=f[0],p=Ap(f[1]),h=wR(VT(nP("image.link"),i),2),g=h[0],v=Ap(h[1]),y=wR(UT(a,nP("common.ok")),1)[0];if(null==this.$content){var m=Ap("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(g),b.append(y);var w=u,E=w.src,D=w.alt,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={}),yR(this,void 0,void 0,(function(){var i,a,u,s,l,c;return mR(this,(function(f){switch(f.label){case 0:return[4,_z("editImage",e,t,n,r)];case 1:return f.sent()?[4,Pz("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=CO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:vR(vR({},void 0===u?{}:u),o)},dd.setNodes(e,s,{match:function(e){return CO.checkNodeType(e,"image")}}),l=CO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),$z=function(){function e(){this.title=nP("image.viewLink"),this.iconSvg=HR,this.tag="button"}return e.prototype.getValue=function(e){var t=CO.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}(),Hz=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 CO.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=CO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:vR(vR({},void 0===o?{}:o),{width:this.value,height:""})};dd.setNodes(e,i,{match:function(e){return CO.checkNodeType(e,"image")}})}}},e}(),Vz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return gR(t,e),t}(Hz),Uz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return gR(t,e),t}(Hz),Wz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return gR(t,e),t}(Hz),Gz={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},qz={renderElems:[Fz],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:[Tz],menus:[{key:"insertImage",factory:function(){return new Lz},config:Gz},{key:"deleteImage",factory:function(){return new Rz}},{key:"editImage",factory:function(){return new zz},config:Gz},{key:"viewImageLink",factory:function(){return new $z}},{key:"imageWidth30",factory:function(){return new Vz}},{key:"imageWidth50",factory:function(){return new Uz}},{key:"imageWidth100",factory:function(){return new Wz}}],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}},Kz={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),yg("div",{style:{margin:"5px 0"}},yg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},yg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=CO.findPath(n,e),o={checked:t.target.checked};dd.setNodes(n,o,{at:r})}}})),yg("span",null,t))}},Yz=function(){function e(){this.title=nP("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!!CO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!CO.getSelectedElems(e).some((function(t){if(Sf.isVoid(e,t)&&Sf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);dd.setNodes(e,{type:n?"paragraph":"todo"})},e}(),Xz={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Ap(e);0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},Zz={renderElems:[Kz],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Ap(e).find("li"),n=Ap('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[Xz],menus:[{key:"todo",factory:function(){return new Yz}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&$f.isCollapsed(r)){var o=CO.getSelectedNodeByType(e,"todo");if(o&&0===Bf.string(o).length)return void dd.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},Jz={type:"blockquote",renderElem:function(e,t,n){return yg("blockquote",null,t)}},Qz={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},e$=function(){function e(){this.title=nP("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!!CO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!wR(Sf.nodes(e,{match:function(e){var t=CO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";dd.setNodes(e,{type:n},{mode:"highest"})}},e}(),t$={key:"blockquote",factory:function(){return new e$}},n$=VP([].slice),r$=wI("slice"),o$=Nj("species"),i$=BP.Array,a$=Math.max;XN({target:"Array",proto:!0,forced:!r$},{slice:function(e,t){var n,r,o,i=JP(this),a=BN(i),u=AN(e,a),s=AN(void 0===t?a:t,a);if(JN(i)&&(n=i.constructor,(dI(n)&&(n===i$||JN(n.prototype))||ej(n)&&null===(n=n[o$]))&&(n=void 0),n===i$||void 0===n))return n$(i,u,s);for(r=new(void 0===n?i$:n)(a$(s-u,0)),o=0;u<s;u++,o++)u in i&&UL(r,o,i[u]);return r.length=o,r}});var u$={renderElems:[Jz],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[Qz],menus:[t$],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(Sf.nodes(e,{match:function(e){return CO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=CO.findPath(e,a),s=Sf.end(e,u);if(Lf.equals(s,o.focus)){var l=Bf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void dd.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},s$=function(){function e(){this.title=nP("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(Sf.nodes(e,{match:function(t){return"pre"===CO.getNodeType(t)||!!Sf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Ap('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Ap(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Ap("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),l$={menus:[{key:"emotion",factory:function(){return new s$},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},c$={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},f$={selector:"font",preParseHtml:function(e){var t=Ap(e);if("font"!==fR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",c$[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},d$=VP("".indexOf);XN({target:"String",proto:!0,forced:!hM("includes")},{includes:function(e){return!!~d$(xI(ZP(this)),xI(dM(e)),arguments.length>1?arguments[1]:void 0)}});var p$,h$,g$=function(e){return e&&e.Math==Math&&e},v$=g$("object"==typeof globalThis&&globalThis)||g$("object"==typeof window&&window)||g$("object"==typeof self&&self)||g$("object"==typeof SP&&SP)||function(){return this}()||Function("return this")(),y$=Function.prototype,m$=y$.apply,b$=y$.bind,w$=y$.call,E$="object"==typeof Reflect&&Reflect.apply||(b$?w$.bind(m$):function(){return w$.apply(m$,arguments)}),D$=Function.prototype,C$=D$.bind,S$=D$.call,x$=C$&&C$.bind(S$),A$=C$?function(e){return e&&x$(S$,e)}:function(e){return e&&function(){return S$.apply(e,arguments)}},O$=function(e){return"function"==typeof e},k$=function(e){try{return!!e()}catch(t){return!0}},B$=!k$((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),F$=Function.prototype.call,T$=F$.bind?F$.bind(F$):function(){return F$.apply(F$,arguments)},_$={}.propertyIsEnumerable,P$=Object.getOwnPropertyDescriptor,j$=P$&&!_$.call({1:2},1)?function(e){var t=P$(this,e);return!!t&&t.enumerable}:_$,N$={f:j$},I$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L$=A$({}.toString),R$=A$("".slice),M$=function(e){return R$(L$(e),8,-1)},z$=v$.Object,$$=A$("".split),H$=k$((function(){return!z$("z").propertyIsEnumerable(0)}))?function(e){return"String"==M$(e)?$$(e,""):z$(e)}:z$,V$=v$.TypeError,U$=function(e){if(null==e)throw V$("Can't call method on "+e);return e},W$=function(e){return H$(U$(e))},G$=function(e){return"object"==typeof e?null!==e:O$(e)},q$={},K$=function(e){return O$(e)?e:void 0},Y$=function(e,t){return arguments.length<2?K$(q$[e])||K$(v$[e]):q$[e]&&q$[e][t]||v$[e]&&v$[e][t]},X$=A$({}.isPrototypeOf),Z$=Y$("navigator","userAgent")||"",J$=v$.process,Q$=v$.Deno,eH=J$&&J$.versions||Q$&&Q$.version,tH=eH&&eH.v8;tH&&(h$=(p$=tH.split("."))[0]>0&&p$[0]<4?1:+(p$[0]+p$[1])),!h$&&Z$&&(!(p$=Z$.match(/Edge\/(\d+)/))||p$[1]>=74)&&(p$=Z$.match(/Chrome\/(\d+)/))&&(h$=+p$[1]);var nH=h$,rH=!!Object.getOwnPropertySymbols&&!k$((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nH&&nH<41})),oH=rH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,iH=v$.Object,aH=oH?function(e){return"symbol"==typeof e}:function(e){var t=Y$("Symbol");return O$(t)&&X$(t.prototype,iH(e))},uH=v$.String,sH=v$.TypeError,lH=function(e){if(O$(e))return e;throw sH(function(e){try{return uH(e)}catch(t){return"Object"}}(e)+" is not a function")},cH=v$.TypeError,fH=Object.defineProperty,dH=v$["__core-js_shared__"]||function(e,t){try{fH(v$,e,{value:t,configurable:!0,writable:!0})}catch(oP){v$[e]=t}return t}("__core-js_shared__",{}),pH=xP((function(e){(e.exports=function(e,t){return dH[e]||(dH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),hH=v$.Object,gH=function(e){return hH(U$(e))},vH=A$({}.hasOwnProperty),yH=Object.hasOwn||function(e,t){return vH(gH(e),t)},mH=0,bH=Math.random(),wH=A$(1..toString),EH=function(e){return"Symbol("+(void 0===e?"":e)+")_"+wH(++mH+bH,36)},DH=pH("wks"),CH=v$.Symbol,SH=CH&&CH.for,xH=oH?CH:CH&&CH.withoutSetter||EH,AH=function(e){if(!yH(DH,e)||!rH&&"string"!=typeof DH[e]){var t="Symbol."+e;rH&&yH(CH,e)?DH[e]=CH[e]:DH[e]=oH&&SH?SH(t):xH(t)}return DH[e]},OH=v$.TypeError,kH=AH("toPrimitive"),BH=function(e){var t=function(e,t){if(!G$(e)||aH(e))return e;var n,r,o=null==(n=e[kH])?void 0:lH(n);if(o){if(void 0===t&&(t="default"),r=T$(o,e,t),!G$(r)||aH(r))return r;throw OH("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&O$(n=e.toString)&&!G$(r=T$(n,e)))return r;if(O$(n=e.valueOf)&&!G$(r=T$(n,e)))return r;if("string"!==t&&O$(n=e.toString)&&!G$(r=T$(n,e)))return r;throw cH("Can't convert object to primitive value")}(e,t)}(e,"string");return aH(t)?t:t+""},FH=v$.document,TH=G$(FH)&&G$(FH.createElement),_H=function(e){return TH?FH.createElement(e):{}},PH=!B$&&!k$((function(){return 7!=Object.defineProperty(_H("div"),"a",{get:function(){return 7}}).a})),jH=Object.getOwnPropertyDescriptor,NH={f:B$?jH:function(e,t){if(e=W$(e),t=BH(t),PH)try{return jH(e,t)}catch(n){}if(yH(e,t))return I$(!T$(N$.f,e,t),e[t])}},IH=/#|\.prototype\./,LH=function(e,t){var n=MH[RH(e)];return n==$H||n!=zH&&(O$(t)?k$(t):!!t)},RH=LH.normalize=function(e){return String(e).replace(IH,".").toLowerCase()},MH=LH.data={},zH=LH.NATIVE="N",$H=LH.POLYFILL="P",HH=LH,VH=A$(A$.bind),UH=function(e,t){return lH(e),void 0===t?e:VH?VH(e,t):function(){return e.apply(t,arguments)}},WH=v$.String,GH=v$.TypeError,qH=function(e){if(G$(e))return e;throw GH(WH(e)+" is not an object")},KH=v$.TypeError,YH=Object.defineProperty,XH={f:B$?YH:function(e,t,n){if(qH(e),t=BH(t),qH(n),PH)try{return YH(e,t,n)}catch(r){}if("get"in n||"set"in n)throw KH("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ZH=B$?function(e,t,n){return XH.f(e,t,I$(1,n))}:function(e,t,n){return e[t]=n,e},JH=NH.f,QH=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 E$(e,this,arguments)};return t.prototype=e.prototype,t},eV=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?v$:d?v$[c]:(v$[c]||{}).prototype,g=f?q$:q$[c]||ZH(q$,c,{})[c],v=g.prototype;for(o in t)n=!HH(f?o:c+(d?".":"#")+o,e.forced)&&h&&yH(h,o),a=g[o],n&&(u=e.noTargetGet?(l=JH(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?UH(i,v$):e.wrap&&n?QH(i):p&&O$(i)?A$(i):i,(e.sham||i&&i.sham||a&&a.sham)&&ZH(s,"sham",!0),ZH(g,o,s),p&&(yH(q$,r=c+"Prototype")||ZH(q$,r,{}),ZH(q$[r],o,i),e.real&&v&&!v[o]&&ZH(v,o,i)))},tV=Array.isArray||function(e){return"Array"==M$(e)},nV=Math.ceil,rV=Math.floor,oV=function(e){var t=+e;return t!=t||0===t?0:(t>0?rV:nV)(t)},iV=Math.min,aV=function(e){return(t=e.length)>0?iV(oV(t),9007199254740991):0;var t},uV=function(e,t,n){var r=BH(t);r in e?XH.f(e,r,I$(0,n)):e[r]=n},sV={};sV[AH("toStringTag")]="z";var lV="[object z]"===String(sV),cV=AH("toStringTag"),fV=v$.Object,dV="Arguments"==M$(function(){return arguments}()),pV=lV?M$: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=fV(e),cV))?n:dV?M$(t):"Object"==(r=M$(t))&&O$(t.callee)?"Arguments":r},hV=A$(Function.toString);O$(dH.inspectSource)||(dH.inspectSource=function(e){return hV(e)});var gV=dH.inspectSource,vV=function(){},yV=[],mV=Y$("Reflect","construct"),bV=/^\s*(?:class|function)\b/,wV=A$(bV.exec),EV=!bV.exec(vV),DV=function(e){if(!O$(e))return!1;try{return mV(vV,yV,e),!0}catch(t){return!1}},CV=!mV||k$((function(){var e;return DV(DV.call)||!DV(Object)||!DV((function(){e=!0}))||e}))?function(e){if(!O$(e))return!1;switch(pV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return EV||!!wV(bV,gV(e))}:DV,SV=AH("species"),xV=v$.Array,AV=function(e,t){return new(tV(n=e)&&(r=n.constructor,(CV(r)&&(r===xV||tV(r.prototype))||G$(r)&&null===(r=r[SV]))&&(r=void 0)),void 0===r?xV:r)(0===t?0:t);var n,r},OV=AH("species"),kV=AH("isConcatSpreadable"),BV=v$.TypeError,FV=nH>=51||!k$((function(){var e=[];return e[kV]=!1,e.concat()[0]!==e})),TV=nH>=51||!k$((function(){var e=[];return(e.constructor={})[OV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),_V=function(e){if(!G$(e))return!1;var t=e[kV];return void 0!==t?!!t:tV(e)};eV({target:"Array",proto:!0,forced:!FV||!TV},{concat:function(e){var t,n,r,o,i,a=gH(this),u=AV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(_V(i=-1===t?a:arguments[t])){if(s+(o=aV(i))>9007199254740991)throw BV("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&uV(u,s,i[n])}else{if(s>=9007199254740991)throw BV("Maximum allowed index exceeded");uV(u,s++,i)}return u.length=s,u}});var PV,jV=v$.String,NV=function(e){if("Symbol"===pV(e))throw TypeError("Cannot convert a Symbol value to a string");return jV(e)},IV=Math.max,LV=Math.min,RV=function(e,t){var n=oV(e);return n<0?IV(n+t,0):LV(n,t)},MV=function(e){return function(t,n,r){var o,i=W$(t),a=aV(i),u=RV(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}},zV={includes:MV(!0),indexOf:MV(!1)},$V={},HV=zV.indexOf,VV=A$([].push),UV=function(e,t){var n,r=W$(e),o=0,i=[];for(n in r)!yH($V,n)&&yH(r,n)&&VV(i,n);for(;t.length>o;)yH(r,n=t[o++])&&(~HV(i,n)||VV(i,n));return i},WV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],GV=Object.keys||function(e){return UV(e,WV)},qV=B$?Object.defineProperties:function(e,t){qH(e);for(var n,r=W$(t),o=GV(t),i=o.length,a=0;i>a;)XH.f(e,n=o[a++],r[n]);return e},KV=Y$("document","documentElement"),YV=pH("keys"),XV=function(e){return YV[e]||(YV[e]=EH(e))},ZV=XV("IE_PROTO"),JV=function(){},QV=function(e){return"<script>"+e+"<\/script>"},eU=function(e){e.write(QV("")),e.close();var t=e.parentWindow.Object;return e=null,t},tU=function(){try{PV=new ActiveXObject("htmlfile")}catch(r){}var e,t;tU="undefined"!=typeof document?document.domain&&PV?eU(PV):((t=_H("iframe")).style.display="none",KV.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(QV("document.F=Object")),e.close(),e.F):eU(PV);for(var n=WV.length;n--;)delete tU.prototype[WV[n]];return tU()};$V[ZV]=!0;var nU,rU,oU,iU=Object.create||function(e,t){var n;return null!==e?(JV.prototype=qH(e),n=new JV,JV.prototype=null,n[ZV]=e):n=tU(),void 0===t?n:qV(n,t)},aU=WV.concat("length","prototype"),uU={f:Object.getOwnPropertyNames||function(e){return UV(e,aU)}},sU=v$.Array,lU=Math.max,cU=uU.f,fU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dU={f:function(e){return fU&&"Window"==M$(e)?function(e){try{return cU(e)}catch(t){return function(e,t,n){for(var r=aV(e),o=RV(void 0,r),i=RV(r,r),a=sU(lU(i-o,0)),u=0;o<i;o++,u++)uV(a,u,e[o]);return a.length=u,a}(fU)}}(e):cU(W$(e))}},pU={f:Object.getOwnPropertySymbols},hU=A$([].slice),gU=function(e,t,n,r){r&&r.enumerable?e[t]=n:ZH(e,t,n)},vU={f:AH},yU=XH.f,mU=function(e){var t=q$.Symbol||(q$.Symbol={});yH(t,e)||yU(t,e,{value:vU.f(e)})},bU=lV?{}.toString:function(){return"[object "+pV(this)+"]"},wU=XH.f,EU=AH("toStringTag"),DU=function(e,t,n,r){if(e){var o=n?e:e.prototype;yH(o,EU)||wU(o,EU,{configurable:!0,value:t}),r&&!lV&&ZH(o,"toString",bU)}},CU=v$.WeakMap,SU=O$(CU)&&/native code/.test(gV(CU)),xU=v$.TypeError,AU=v$.WeakMap;if(SU||dH.state){var OU=dH.state||(dH.state=new AU),kU=A$(OU.get),BU=A$(OU.has),FU=A$(OU.set);nU=function(e,t){if(BU(OU,e))throw new xU("Object already initialized");return t.facade=e,FU(OU,e,t),t},rU=function(e){return kU(OU,e)||{}},oU=function(e){return BU(OU,e)}}else{var TU=XV("state");$V[TU]=!0,nU=function(e,t){if(yH(e,TU))throw new xU("Object already initialized");return t.facade=e,ZH(e,TU,t),t},rU=function(e){return yH(e,TU)?e[TU]:{}},oU=function(e){return yH(e,TU)}}var _U={set:nU,get:rU,has:oU,enforce:function(e){return oU(e)?rU(e):nU(e,{})},getterFor:function(e){return function(t){var n;if(!G$(t)||(n=rU(t)).type!==e)throw xU("Incompatible receiver, "+e+" required");return n}}},PU=A$([].push),jU=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=gH(s),g=H$(h),v=UH(l,c),y=aV(g),m=0,b=f||AV,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:PU(w,d)}else switch(e){case 4:return!1;case 7:PU(w,d)}return i?-1:r||o?o:w}},NU=[jU(0),jU(1),jU(2),jU(3),jU(4),jU(5),jU(6),jU(7)][0],IU=XV("hidden"),LU=AH("toPrimitive"),RU=_U.set,MU=_U.getterFor("Symbol"),zU=Object.prototype,$U=v$.Symbol,HU=$U&&$U.prototype,VU=v$.TypeError,UU=v$.QObject,WU=Y$("JSON","stringify"),GU=NH.f,qU=XH.f,KU=dU.f,YU=N$.f,XU=A$([].push),ZU=pH("symbols"),JU=pH("op-symbols"),QU=pH("string-to-symbol-registry"),eW=pH("symbol-to-string-registry"),tW=pH("wks"),nW=!UU||!UU.prototype||!UU.prototype.findChild,rW=B$&&k$((function(){return 7!=iU(qU({},"a",{get:function(){return qU(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=GU(zU,t);r&&delete zU[t],qU(e,t,n),r&&e!==zU&&qU(zU,t,r)}:qU,oW=function(e,t){var n=ZU[e]=iU(HU);return RU(n,{type:"Symbol",tag:e,description:t}),B$||(n.description=t),n},iW=function(e,t,n){e===zU&&iW(JU,t,n),qH(e);var r=BH(t);return qH(n),yH(ZU,r)?(n.enumerable?(yH(e,IU)&&e[IU][r]&&(e[IU][r]=!1),n=iU(n,{enumerable:I$(0,!1)})):(yH(e,IU)||qU(e,IU,I$(1,{})),e[IU][r]=!0),rW(e,r,n)):qU(e,r,n)},aW=function(e,t){qH(e);var n=W$(t),r=GV(n).concat(cW(n));return NU(r,(function(t){B$&&!T$(uW,n,t)||iW(e,t,n[t])})),e},uW=function(e){var t=BH(e),n=T$(YU,this,t);return!(this===zU&&yH(ZU,t)&&!yH(JU,t))&&(!(n||!yH(this,t)||!yH(ZU,t)||yH(this,IU)&&this[IU][t])||n)},sW=function(e,t){var n=W$(e),r=BH(t);if(n!==zU||!yH(ZU,r)||yH(JU,r)){var o=GU(n,r);return!o||!yH(ZU,r)||yH(n,IU)&&n[IU][r]||(o.enumerable=!0),o}},lW=function(e){var t=KU(W$(e)),n=[];return NU(t,(function(e){yH(ZU,e)||yH($V,e)||XU(n,e)})),n},cW=function(e){var t=e===zU,n=KU(t?JU:W$(e)),r=[];return NU(n,(function(e){!yH(ZU,e)||t&&!yH(zU,e)||XU(r,ZU[e])})),r};if(rH||(HU=($U=function(){if(X$(HU,this))throw VU("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?NV(arguments[0]):void 0,t=EH(e),n=function(e){this===zU&&T$(n,JU,e),yH(this,IU)&&yH(this[IU],t)&&(this[IU][t]=!1),rW(this,t,I$(1,e))};return B$&&nW&&rW(zU,t,{configurable:!0,set:n}),oW(t,e)}).prototype,gU(HU,"toString",(function(){return MU(this).tag})),gU($U,"withoutSetter",(function(e){return oW(EH(e),e)})),N$.f=uW,XH.f=iW,NH.f=sW,uU.f=dU.f=lW,pU.f=cW,vU.f=function(e){return oW(AH(e),e)},B$&&qU(HU,"description",{configurable:!0,get:function(){return MU(this).description}})),eV({global:!0,wrap:!0,forced:!rH,sham:!rH},{Symbol:$U}),NU(GV(tW),(function(e){mU(e)})),eV({target:"Symbol",stat:!0,forced:!rH},{for:function(e){var t=NV(e);if(yH(QU,t))return QU[t];var n=$U(t);return QU[t]=n,eW[n]=t,n},keyFor:function(e){if(!aH(e))throw VU(e+" is not a symbol");if(yH(eW,e))return eW[e]},useSetter:function(){nW=!0},useSimple:function(){nW=!1}}),eV({target:"Object",stat:!0,forced:!rH,sham:!B$},{create:function(e,t){return void 0===t?iU(e):aW(iU(e),t)},defineProperty:iW,defineProperties:aW,getOwnPropertyDescriptor:sW}),eV({target:"Object",stat:!0,forced:!rH},{getOwnPropertyNames:lW,getOwnPropertySymbols:cW}),eV({target:"Object",stat:!0,forced:k$((function(){pU.f(1)}))},{getOwnPropertySymbols:function(e){return pU.f(gH(e))}}),WU){var fW=!rH||k$((function(){var e=$U();return"[null]"!=WU([e])||"{}"!=WU({a:e})||"{}"!=WU(Object(e))}));eV({target:"JSON",stat:!0,forced:fW},{stringify:function(e,t,n){var r=hU(arguments),o=t;if((G$(t)||void 0!==e)&&!aH(e))return tV(t)||(t=function(e,t){if(O$(o)&&(t=T$(o,this,e,t)),!aH(t))return t}),r[1]=t,E$(WU,null,r)}})}if(!HU[LU]){var dW=HU.valueOf;gU(HU,LU,(function(e){return T$(dW,this)}))}DU($U,"Symbol"),$V[IU]=!0,mU("asyncIterator"),mU("hasInstance"),mU("isConcatSpreadable"),mU("iterator"),mU("match"),mU("matchAll"),mU("replace"),mU("search"),mU("species"),mU("split"),mU("toPrimitive"),mU("toStringTag"),mU("unscopables"),DU(v$.JSON,"JSON",!0);var pW,hW,gW,vW=q$.Symbol,yW={},mW=Function.prototype,bW=B$&&Object.getOwnPropertyDescriptor,wW=yH(mW,"name"),EW={EXISTS:wW,PROPER:wW&&"something"===function(){}.name,CONFIGURABLE:wW&&(!B$||B$&&bW(mW,"name").configurable)},DW=!k$((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),CW=XV("IE_PROTO"),SW=v$.Object,xW=SW.prototype,AW=DW?SW.getPrototypeOf:function(e){var t=gH(e);if(yH(t,CW))return t[CW];var n=t.constructor;return O$(n)&&t instanceof n?n.prototype:t instanceof SW?xW:null},OW=AH("iterator"),kW=!1;[].keys&&("next"in(gW=[].keys())?(hW=AW(AW(gW)))!==Object.prototype&&(pW=hW):kW=!0);var BW=null==pW||k$((function(){var e={};return pW[OW].call(e)!==e}));pW=BW?{}:iU(pW),O$(pW[OW])||gU(pW,OW,(function(){return this}));var FW={IteratorPrototype:pW,BUGGY_SAFARI_ITERATORS:kW},TW=FW.IteratorPrototype,_W=function(){return this};v$.String,v$.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{A$(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var PW=EW.PROPER,jW=FW.BUGGY_SAFARI_ITERATORS,NW=AH("iterator"),IW=function(){return this},LW=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=iU(TW,{next:I$(1,s)}),DU(u,l,!1,!0),yW[l]=_W;var c,f,d,p=function(e){if(e===o&&m)return m;if(!jW&&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[NW]||v["@@iterator"]||o&&v[o],m=!jW&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=AW(b.call(new e)))!==Object.prototype&&c.next&&(DU(c,h,!0,!0),yW[h]=IW),PW&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return T$(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(jW||g||!(d in v))&&gU(v,d,f[d]);else eV({target:t,proto:!0,forced:jW||g},f);return a&&v[NW]!==m&&gU(v,NW,m,{name:o}),yW[t]=m,f},RW=_U.set,MW=_U.getterFor("Array Iterator");LW(Array,"Array",(function(e,t){RW(this,{type:"Array Iterator",target:W$(e),index:0,kind:t})}),(function(){var e=MW(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"),yW.Arguments=yW.Array;var zW=AH("toStringTag");for(var $W 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 HW=v$[$W],VW=HW&&HW.prototype;VW&&pV(VW)!==zW&&ZH(VW,zW,$W),yW[$W]=yW.Array}var UW=vW;mU("asyncDispose"),mU("dispose"),mU("matcher"),mU("metadata"),mU("observable"),mU("patternMatch"),mU("replaceAll");var WW=UW,GW=A$("".charAt),qW=A$("".charCodeAt),KW=A$("".slice),YW=function(e){return function(t,n){var r,o,i=NV(U$(t)),a=oV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qW(i,a))<55296||r>56319||a+1===u||(o=qW(i,a+1))<56320||o>57343?e?GW(i,a):r:e?KW(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),XW=_U.set,ZW=_U.getterFor("String Iterator");LW(String,"String",(function(e){XW(this,{type:"String Iterator",string:NV(e),index:0})}),(function(){var e,t=ZW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=YW(n,r),t.index+=e.length,{value:e,done:!1})}));var JW=vU.f("iterator"),QW=xP((function(e){function t(n){return"function"==typeof WW&&"symbol"==typeof JW?(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 WW&&e.constructor===WW&&e!==WW.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})),eG=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(QW),tG=bN.EXISTS,nG=Xj.f,rG=Function.prototype,oG=VP(rG.toString),iG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,aG=VP(iG.exec);TP&&!tG&&nG(rG,"name",{configurable:!0,get:function(){try{return aG(iG,oG(this))[1]}catch(Sl){return""}}});var uG=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=Sf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!wR(Sf.nodes(e,{match:function(t){return"pre"===CO.getNodeType(t)||!!Sf.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}(),sG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("fontSize.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',t.mark="fontSize",t}return gR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:nP("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===eG(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}(uG),lG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("fontFamily.title"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',t.mark="fontFamily",t.selectPanelWidth=150,t}return gR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:nP("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===eG(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}(uG),cG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&VM(i,{fontSize:r}),o&&VM(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!Kf.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((lR(t)||"span"!==fR(n=Ap(t)))&&(n=Ap("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),cR(n)):t},preParseHtml:[f$],parseStyleHtml:function(e,t,n){var r=Ap(e);if(!Kf.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=dR(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=dR(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 sG},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 lG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},fG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Ap(e),n=dR(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]}},dG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=wR(Sf.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(Sf.nodes(e,{match:function(e){var t=CO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),pG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("indent.decrease"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',t}return gR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){dd.setNodes(e,{indent:null},{match:function(e){return mf.isElement(e)}})},t}(dG),hG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("indent.increase"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',t}return gR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){dd.setNodes(e,{indent:"2em"},{match:function(e){return mf.isElement(e)},mode:"highest"})},t}(dG),gG={renderStyle:function(e,t){if(!mf.isElement(e))return t;var n=e.indent,r=t;return n&&VM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!mf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Ap(t);return r.css("text-indent",n),cR(r)},preParseHtml:[fG],parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;var o=t,i=dR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new hG}},{key:"delIndent",factory:function(){return new pG}}]},vG=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(Sf.nodes(e,{match:function(e){var t=CO.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||!!CO.getSelectedElems(e).some((function(t){if(Sf.isVoid(e,t)&&Sf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),yG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("justify.left"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return gR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"left"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(vG),mG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("justify.right"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return gR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"right"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(vG),bG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("justify.center"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',t}return gR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"center"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(vG),wG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=nP("justify.justify"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',t}return gR(t,e),t.prototype.exec=function(e,t){dd.setNodes(e,{textAlign:"justify"},{match:function(t){return mf.isElement(t)&&!e.isInline(t)}})},t}(vG),EG={renderStyle:function(e,t){if(!mf.isElement(e))return t;var n=e.textAlign,r=t;return n&&VM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!mf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Ap(t);return r.css("text-align",n),cR(r)},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;var o=t,i=dR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new yG}},{key:"justifyRight",factory:function(){return new mG}},{key:"justifyCenter",factory:function(){return new bG}},{key:"justifyJustify",factory:function(){return new wG}}]},DG=function(){function e(){this.title=nP("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:nP("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(Sf.nodes(e,{match:function(e){var t=CO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":mf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){dd.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),CG={renderStyle:function(e,t){if(!mf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&VM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!mf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Ap(t);return r.css("line-height",n),cR(r)},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=dR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new DG},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},SG=function(){function e(){this.title=nP("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}(),xG=function(){function e(){this.title=nP("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}(),AG={menus:[{key:"redo",factory:function(){return new SG}},{key:"undo",factory:function(){return new xG}}]},OG={type:"divider",renderElem:function(e,t,n){return Zh("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:CO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[Zh("hr")])}},kG=function(){function e(){this.title=nP("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||!!CO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=CO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){dd.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),BG={renderElems:[OG],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 kG}}],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"!==CO.getNodeType(o))return n([o,i]);CO.isLastNode(r,o)&&dd.insertNodes(r,CO.genEmptyParagraph(),{at:[i[0]+1]})},r}},FG=mI.map;XN({target:"Array",proto:!0,forced:!wI("map")},{map:function(e){return FG(this,e,arguments.length>1?arguments[1]:void 0)}});var TG=VP([].join),_G=YP!=Object,PG=PR("join",",");XN({target:"Array",proto:!0,forced:_G||!PG},{join:function(e){return TG(JP(this),void 0===e?",":e)}});var jG=function(){function e(){this.title=nP("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=CO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=CO.getParentNode(e,t);return null==n||"pre"!==CO.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=CO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=CO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Bf.string(t);dd.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));dd.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Sf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=bR(i),u=a.next();!u.done;u=a.next()){var s=wR(u.value,1)[0];s&&o.push(Bf.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}dd.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};dd.insertNodes(e,l,{mode:"highest"})},e}(),NG={key:"codeBlock",factory:function(){return new jG}};XN({target:"String",proto:!0,forced:AR("anchor")},{anchor:function(e){return xR(this,"a","name",e)}}),fL("match",(function(e,t,n){return[function(t){var n=ZP(this),r=null==t?void 0:yj(t,e);return r?PP(r,t,n):new RegExp(t)[e](xI(n))},function(e){var r=qj(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=vL(o,kN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var IG={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);return 0===(t=t.filter((function(e){return"code"===CO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===CO.getNodeType(e)}))}}},LG={menus:[NG],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=CO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Bf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=wR(e,2),r=t[0],i=t[1],a=CO.getNodeType(r);return"code"===a&&i.length<=1&&dd.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(CO.isLastNode(o,r)&&dd.insertNodes(o,CO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==CO.getNodeType(r.children[0])&&(dd.unwrapNodes(o),dd.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=CO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Sf.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return yg("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return yg("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Ap(e);if("code"!==fR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Ap(e)[0].textContent||""}]}}},IG]},RG=function(){function e(){this.title=nP("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}(),MG={menus:[{key:"fullScreen",factory:function(){return new RG}}]},zG=function(){function e(){this.title=nP("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!$f.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];dd.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Sf.start(e,r))}},e}(),$G=[ZR,YM,cG,gG,EG,CG,qz,BG,l$,vz,LG,u$,RM,DR,Zz,AG,MG,{menus:[{key:"enter",factory:function(){return new zG}}]}];tP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),tP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var HG="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function VG(e){var t={exports:{}};return e(t,t.exports),t.exports}var UG,WG,GG=function(e){return e&&e.Math==Math&&e},qG=GG("object"==typeof globalThis&&globalThis)||GG("object"==typeof window&&window)||GG("object"==typeof self&&self)||GG("object"==typeof HG&&HG)||function(){return this}()||Function("return this")(),KG=Function.prototype,YG=KG.bind,XG=KG.call,ZG=YG&&YG.bind(XG),JG=YG?function(e){return e&&ZG(XG,e)}:function(e){return e&&function(){return XG.apply(e,arguments)}},QG=function(e){try{return!!e()}catch(t){return!0}},eq=JG({}.toString),tq=JG("".slice),nq=function(e){return tq(eq(e),8,-1)},rq=qG.Object,oq=JG("".split),iq=QG((function(){return!rq("z").propertyIsEnumerable(0)}))?function(e){return"String"==nq(e)?oq(e,""):rq(e)}:rq,aq=qG.TypeError,uq=function(e){if(null==e)throw aq("Can't call method on "+e);return e},sq=function(e){return iq(uq(e))},lq=Object.defineProperty,cq=function(e,t){try{lq(qG,e,{value:t,configurable:!0,writable:!0})}catch(oP){qG[e]=t}return t},fq=qG["__core-js_shared__"]||cq("__core-js_shared__",{}),dq=VG((function(e){(e.exports=function(e,t){return fq[e]||(fq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),pq=qG.Object,hq=function(e){return pq(uq(e))},gq=JG({}.hasOwnProperty),vq=Object.hasOwn||function(e,t){return gq(hq(e),t)},yq=0,mq=Math.random(),bq=JG(1..toString),wq=function(e){return"Symbol("+(void 0===e?"":e)+")_"+bq(++yq+mq,36)},Eq=function(e){return"function"==typeof e},Dq=function(e,t){return arguments.length<2?function(e){return Eq(e)?e:void 0}(qG[e]):qG[e]&&qG[e][t]},Cq=Dq("navigator","userAgent")||"",Sq=qG.process,xq=qG.Deno,Aq=Sq&&Sq.versions||xq&&xq.version,Oq=Aq&&Aq.v8;Oq&&(WG=(UG=Oq.split("."))[0]>0&&UG[0]<4?1:+(UG[0]+UG[1])),!WG&&Cq&&(!(UG=Cq.match(/Edge\/(\d+)/))||UG[1]>=74)&&(UG=Cq.match(/Chrome\/(\d+)/))&&(WG=+UG[1]);var kq,Bq=WG,Fq=!!Object.getOwnPropertySymbols&&!QG((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Bq&&Bq<41})),Tq=Fq&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_q=dq("wks"),Pq=qG.Symbol,jq=Pq&&Pq.for,Nq=Tq?Pq:Pq&&Pq.withoutSetter||wq,Iq=function(e){if(!vq(_q,e)||!Fq&&"string"!=typeof _q[e]){var t="Symbol."+e;Fq&&vq(Pq,e)?_q[e]=Pq[e]:_q[e]=Tq&&jq?jq(t):Nq(t)}return _q[e]},Lq=function(e){return"object"==typeof e?null!==e:Eq(e)},Rq=qG.String,Mq=qG.TypeError,zq=function(e){if(Lq(e))return e;throw Mq(Rq(e)+" is not an object")},$q=!QG((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Hq=qG.document,Vq=Lq(Hq)&&Lq(Hq.createElement),Uq=function(e){return Vq?Hq.createElement(e):{}},Wq=!$q&&!QG((function(){return 7!=Object.defineProperty(Uq("div"),"a",{get:function(){return 7}}).a})),Gq=Function.prototype.call,qq=Gq.bind?Gq.bind(Gq):function(){return Gq.apply(Gq,arguments)},Kq=JG({}.isPrototypeOf),Yq=qG.Object,Xq=Tq?function(e){return"symbol"==typeof e}:function(e){var t=Dq("Symbol");return Eq(t)&&Kq(t.prototype,Yq(e))},Zq=qG.String,Jq=function(e){try{return Zq(e)}catch(t){return"Object"}},Qq=qG.TypeError,eK=function(e){if(Eq(e))return e;throw Qq(Jq(e)+" is not a function")},tK=function(e,t){var n=e[t];return null==n?void 0:eK(n)},nK=qG.TypeError,rK=qG.TypeError,oK=Iq("toPrimitive"),iK=function(e){var t=function(e,t){if(!Lq(e)||Xq(e))return e;var n,r=tK(e,oK);if(r){if(void 0===t&&(t="default"),n=qq(r,e,t),!Lq(n)||Xq(n))return n;throw rK("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Eq(n=e.toString)&&!Lq(r=qq(n,e)))return r;if(Eq(n=e.valueOf)&&!Lq(r=qq(n,e)))return r;if("string"!==t&&Eq(n=e.toString)&&!Lq(r=qq(n,e)))return r;throw nK("Can't convert object to primitive value")}(e,t)}(e,"string");return Xq(t)?t:t+""},aK=qG.TypeError,uK=Object.defineProperty,sK={f:$q?uK:function(e,t,n){if(zq(e),t=iK(t),zq(n),Wq)try{return uK(e,t,n)}catch(r){}if("get"in n||"set"in n)throw aK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},lK=Math.ceil,cK=Math.floor,fK=function(e){var t=+e;return t!=t||0===t?0:(t>0?cK:lK)(t)},dK=Math.max,pK=Math.min,hK=function(e,t){var n=fK(e);return n<0?dK(n+t,0):pK(n,t)},gK=Math.min,vK=function(e){return e>0?gK(fK(e),9007199254740991):0},yK=function(e){return vK(e.length)},mK=function(e){return function(t,n,r){var o,i=sq(t),a=yK(i),u=hK(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}},bK={includes:mK(!0),indexOf:mK(!1)},wK={},EK=bK.indexOf,DK=JG([].push),CK=function(e,t){var n,r=sq(e),o=0,i=[];for(n in r)!vq(wK,n)&&vq(r,n)&&DK(i,n);for(;t.length>o;)vq(r,n=t[o++])&&(~EK(i,n)||DK(i,n));return i},SK=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xK=Object.keys||function(e){return CK(e,SK)},AK=$q?Object.defineProperties:function(e,t){zq(e);for(var n,r=sq(t),o=xK(t),i=o.length,a=0;i>a;)sK.f(e,n=o[a++],r[n]);return e},OK=Dq("document","documentElement"),kK=dq("keys"),BK=function(e){return kK[e]||(kK[e]=wq(e))},FK=BK("IE_PROTO"),TK=function(){},_K=function(e){return"<script>"+e+"<\/script>"},PK=function(e){e.write(_K("")),e.close();var t=e.parentWindow.Object;return e=null,t},jK=function(){try{kq=new ActiveXObject("htmlfile")}catch(r){}var e,t;jK="undefined"!=typeof document?document.domain&&kq?PK(kq):((t=Uq("iframe")).style.display="none",OK.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(_K("document.F=Object")),e.close(),e.F):PK(kq);for(var n=SK.length;n--;)delete jK.prototype[SK[n]];return jK()};wK[FK]=!0;var NK=Object.create||function(e,t){var n;return null!==e?(TK.prototype=zq(e),n=new TK,TK.prototype=null,n[FK]=e):n=jK(),void 0===t?n:AK(n,t)},IK=Iq("unscopables"),LK=Array.prototype;null==LK[IK]&&sK.f(LK,IK,{configurable:!0,value:NK(null)});var RK=function(e){LK[IK][e]=!0},MK={},zK=JG(Function.toString);Eq(fq.inspectSource)||(fq.inspectSource=function(e){return zK(e)});var $K,HK,VK,UK=fq.inspectSource,WK=qG.WeakMap,GK=Eq(WK)&&/native code/.test(UK(WK)),qK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},KK=$q?function(e,t,n){return sK.f(e,t,qK(1,n))}:function(e,t,n){return e[t]=n,e},YK=qG.TypeError,XK=qG.WeakMap;if(GK||fq.state){var ZK=fq.state||(fq.state=new XK),JK=JG(ZK.get),QK=JG(ZK.has),eY=JG(ZK.set);$K=function(e,t){if(QK(ZK,e))throw new YK("Object already initialized");return t.facade=e,eY(ZK,e,t),t},HK=function(e){return JK(ZK,e)||{}},VK=function(e){return QK(ZK,e)}}else{var tY=BK("state");wK[tY]=!0,$K=function(e,t){if(vq(e,tY))throw new YK("Object already initialized");return t.facade=e,KK(e,tY,t),t},HK=function(e){return vq(e,tY)?e[tY]:{}},VK=function(e){return vq(e,tY)}}var nY,rY,oY,iY={set:$K,get:HK,has:VK,enforce:function(e){return VK(e)?HK(e):$K(e,{})},getterFor:function(e){return function(t){var n;if(!Lq(t)||(n=HK(t)).type!==e)throw YK("Incompatible receiver, "+e+" required");return n}}},aY={}.propertyIsEnumerable,uY=Object.getOwnPropertyDescriptor,sY={f:uY&&!aY.call({1:2},1)?function(e){var t=uY(this,e);return!!t&&t.enumerable}:aY},lY=Object.getOwnPropertyDescriptor,cY={f:$q?lY:function(e,t){if(e=sq(e),t=iK(t),Wq)try{return lY(e,t)}catch(n){}if(vq(e,t))return qK(!qq(sY.f,e,t),e[t])}},fY=Function.prototype,dY=$q&&Object.getOwnPropertyDescriptor,pY=vq(fY,"name"),hY={EXISTS:pY,PROPER:pY&&"something"===function(){}.name,CONFIGURABLE:pY&&(!$q||$q&&dY(fY,"name").configurable)},gY=VG((function(e){var t=hY.CONFIGURABLE,n=iY.get,r=iY.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;Eq(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vq(i,"name")||t&&i.name!==f)&&KK(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==qG?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:KK(e,n,i)):l?e[n]=i:cq(n,i)})(Function.prototype,"toString",(function(){return Eq(this)&&n(this).source||UK(this)}))})),vY=SK.concat("length","prototype"),yY={f:Object.getOwnPropertyNames||function(e){return CK(e,vY)}},mY={f:Object.getOwnPropertySymbols},bY=JG([].concat),wY=Dq("Reflect","ownKeys")||function(e){var t=yY.f(zq(e)),n=mY.f;return n?bY(t,n(e)):t},EY=function(e,t){for(var n=wY(t),r=sK.f,o=cY.f,i=0;i<n.length;i++){var a=n[i];vq(e,a)||r(e,a,o(t,a))}},DY=/#|\.prototype\./,CY=function(e,t){var n=xY[SY(e)];return n==OY||n!=AY&&(Eq(t)?QG(t):!!t)},SY=CY.normalize=function(e){return String(e).replace(DY,".").toLowerCase()},xY=CY.data={},AY=CY.NATIVE="N",OY=CY.POLYFILL="P",kY=CY,BY=cY.f,FY=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?qG:l?qG[u]||cq(u,{}):(qG[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=BY(n,r))&&a.value:n[r],!kY(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;EY(i,o)}(e.sham||o&&o.sham)&&KK(i,"sham",!0),gY(n,r,i,e)}},TY=!QG((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),_Y=BK("IE_PROTO"),PY=qG.Object,jY=PY.prototype,NY=TY?PY.getPrototypeOf:function(e){var t=hq(e);if(vq(t,_Y))return t[_Y];var n=t.constructor;return Eq(n)&&t instanceof n?n.prototype:t instanceof PY?jY:null},IY=Iq("iterator"),LY=!1;[].keys&&("next"in(oY=[].keys())?(rY=NY(NY(oY)))!==Object.prototype&&(nY=rY):LY=!0);var RY=null==nY||QG((function(){var e={};return nY[IY].call(e)!==e}));RY&&(nY={}),Eq(nY[IY])||gY(nY,IY,(function(){return this}));var MY={IteratorPrototype:nY,BUGGY_SAFARI_ITERATORS:LY},zY=sK.f,$Y=Iq("toStringTag"),HY=function(e,t,n){e&&!vq(e=n?e:e.prototype,$Y)&&zY(e,$Y,{configurable:!0,value:t})},VY=MY.IteratorPrototype,UY=function(){return this},WY=qG.String,GY=qG.TypeError,qY=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=JG(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return zq(n),function(e){if("object"==typeof e||Eq(e))return e;throw GY("Can't set "+WY(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),KY=hY.PROPER,YY=hY.CONFIGURABLE,XY=MY.IteratorPrototype,ZY=MY.BUGGY_SAFARI_ITERATORS,JY=Iq("iterator"),QY=function(){return this},eX=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=NK(VY,{next:qK(1,s)}),HY(u,l,!1),MK[l]=UY;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ZY&&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[JY]||v["@@iterator"]||o&&v[o],m=!ZY&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=NY(b.call(new e)))!==Object.prototype&&c.next&&(NY(c)!==XY&&(qY?qY(c,XY):Eq(c[JY])||gY(c,JY,QY)),HY(c,h,!0)),KY&&"values"==o&&y&&"values"!==y.name&&(YY?KK(v,"name","values"):(g=!0,m=function(){return qq(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ZY||g||!(d in v))&&gY(v,d,f[d]);else FY({target:t,proto:!0,forced:ZY||g},f);return v[JY]!==m&&gY(v,JY,m,{name:o}),MK[t]=m,f},tX=iY.set,nX=iY.getterFor("Array Iterator"),rX=eX(Array,"Array",(function(e,t){tX(this,{type:"Array Iterator",target:sq(e),index:0,kind:t})}),(function(){var e=nX(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");MK.Arguments=MK.Array,RK("keys"),RK("values"),RK("entries");var oX={};oX[Iq("toStringTag")]="z";var iX="[object z]"===String(oX),aX=Iq("toStringTag"),uX=qG.Object,sX="Arguments"==nq(function(){return arguments}()),lX=iX?nq: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=uX(e),aX))?n:sX?nq(t):"Object"==(r=nq(t))&&Eq(t.callee)?"Arguments":r},cX=iX?{}.toString:function(){return"[object "+lX(this)+"]"};iX||gY(Object.prototype,"toString",cX,{unsafe:!0});var fX=qG.String,dX=function(e){if("Symbol"===lX(e))throw TypeError("Cannot convert a Symbol value to a string");return fX(e)},pX=JG("".charAt),hX=JG("".charCodeAt),gX=JG("".slice),vX=function(e){return function(t,n){var r,o,i=dX(uq(t)),a=fK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=hX(i,a))<55296||r>56319||a+1===u||(o=hX(i,a+1))<56320||o>57343?e?pX(i,a):r:e?gX(i,a,a+2):o-56320+(r-55296<<10)+65536}},yX={codeAt:vX(!1),charAt:vX(!0)},mX=yX.charAt,bX=iY.set,wX=iY.getterFor("String Iterator");eX(String,"String",(function(e){bX(this,{type:"String Iterator",string:dX(e),index:0})}),(function(){var e,t=wX(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=mX(n,r),t.index+=e.length,{value:e,done:!1})}));var EX=function(e,t,n){for(var r in t)gY(e,r,t[r],n);return e},DX=qG.Array,CX=Math.max,SX=yY.f,xX="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],AX={f:function(e){return xX&&"Window"==nq(e)?function(e){try{return SX(e)}catch(t){return function(e,t,n){for(var r,o,i,a,u=yK(e),s=hK(void 0,u),l=hK(u,u),c=DX(CX(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=iK(o))in r?sK.f(r,a,qK(0,i)):r[a]=i;return c.length=f,c}(xX)}}(e):SX(sq(e))}},OX=QG((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),kX=Object.isExtensible,BX=QG((function(){kX(1)}))||OX?function(e){return!!Lq(e)&&(!OX||"ArrayBuffer"!=nq(e))&&(!kX||kX(e))}:kX,FX=!QG((function(){return Object.isExtensible(Object.preventExtensions({}))})),TX=VG((function(e){var t=sK.f,n=!1,r=wq("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=yY.f,t=JG([].splice),o={};o[r]=1,e(o).length&&(yY.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},FY({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:AX.f}))},fastKey:function(e,t){if(!Lq(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vq(e,r)){if(!BX(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!vq(e,r)){if(!BX(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return FX&&n&&BX(e)&&!vq(e,r)&&i(e),e}};wK[r]=!0})),_X=JG(JG.bind),PX=function(e,t){return eK(e),void 0===t?e:_X?_X(e,t):function(){return e.apply(t,arguments)}},jX=Iq("iterator"),NX=Array.prototype,IX=Iq("iterator"),LX=function(e){if(null!=e)return tK(e,IX)||tK(e,"@@iterator")||MK[lX(e)]},RX=qG.TypeError,MX=function(e,t,n){var r,o;zq(e);try{if(!(r=tK(e,"return"))){if("throw"===t)throw n;return n}r=qq(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return zq(r),n},zX=qG.TypeError,$X=function(e,t){this.stopped=e,this.result=t},HX=$X.prototype,VX=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=PX(t,f),v=function(e){return r&&MX(r,"normal",e),new $X(!0,e)},y=function(e){return d?(zq(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=LX(e)))throw zX(Jq(e)+" is not iterable");if(void 0!==(c=o)&&(MK.Array===c||NX[jX]===c)){for(i=0,a=yK(e);a>i;i++)if((u=y(e[i]))&&Kq(HX,u))return u;return new $X(!1)}r=function(e,t){var n=arguments.length<2?LX(e):t;if(eK(n))return zq(qq(n,e));throw RX(Jq(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=qq(s,r)).done;){try{u=y(l.value)}catch(m){MX(r,"throw",m)}if("object"==typeof u&&u&&Kq(HX,u))return u}return new $X(!1)},UX=qG.TypeError,WX=function(e,t){if(Kq(t,e))return e;throw UX("Incorrect invocation")},GX=Iq("iterator"),qX=!1;try{var KX=0,YX={next:function(){return{done:!!KX++}},return:function(){qX=!0}};YX[GX]=function(){return this},Array.from(YX,(function(){throw 2}))}catch(tve){}var XX=Array.isArray||function(e){return"Array"==nq(e)},ZX=function(){},JX=[],QX=Dq("Reflect","construct"),eZ=/^\s*(?:class|function)\b/,tZ=JG(eZ.exec),nZ=!eZ.exec(ZX),rZ=function(e){if(!Eq(e))return!1;try{return QX(ZX,JX,e),!0}catch(t){return!1}},oZ=!QX||QG((function(){var e;return rZ(rZ.call)||!rZ(Object)||!rZ((function(){e=!0}))||e}))?function(e){if(!Eq(e))return!1;switch(lX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nZ||!!tZ(eZ,UK(e))}:rZ,iZ=Iq("species"),aZ=qG.Array,uZ=function(e,t){return new(XX(n=e)&&(r=n.constructor,(oZ(r)&&(r===aZ||XX(r.prototype))||Lq(r)&&null===(r=r[iZ]))&&(r=void 0)),void 0===r?aZ:r)(0===t?0:t);var n,r},sZ=JG([].push),lZ=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=hq(s),g=iq(h),v=PX(l,c),y=yK(g),m=0,b=f||uZ,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:sZ(w,d)}else switch(e){case 4:return!1;case 7:sZ(w,d)}return i?-1:r||o?o:w}},cZ={forEach:lZ(0),map:lZ(1),filter:lZ(2),some:lZ(3),every:lZ(4),find:lZ(5),findIndex:lZ(6),filterReject:lZ(7)},fZ=TX.getWeakData,dZ=iY.set,pZ=iY.getterFor,hZ=cZ.find,gZ=cZ.findIndex,vZ=JG([].splice),yZ=0,mZ=function(e){return e.frozen||(e.frozen=new bZ)},bZ=function(){this.entries=[]},wZ=function(e,t){return hZ(e.entries,(function(e){return e[0]===t}))};bZ.prototype={get:function(e){var t=wZ(this,e);if(t)return t[1]},has:function(e){return!!wZ(this,e)},set:function(e,t){var n=wZ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=gZ(this.entries,(function(t){return t[0]===e}));return~t&&vZ(this.entries,t,1),!!~t}};var EZ,DZ={getConstructor:function(e,t,n,r){var o=e((function(e,o){WX(e,i),dZ(e,{type:t,id:yZ++,frozen:void 0}),null!=o&&VX(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=pZ(t),u=function(e,t,n){var r=a(e),o=fZ(zq(t),!0);return!0===o?mZ(r).set(t,n):o[r.id]=n,e};return EX(i,{delete:function(e){var t=a(this);if(!Lq(e))return!1;var n=fZ(e);return!0===n?mZ(t).delete(e):n&&vq(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Lq(e))return!1;var n=fZ(e);return!0===n?mZ(t).has(e):n&&vq(n,t.id)}}),EX(i,n?{get:function(e){var t=a(this);if(Lq(e)){var n=fZ(e);return!0===n?mZ(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}},CZ=iY.enforce,SZ=!qG.ActiveXObject&&"ActiveXObject"in qG,xZ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},AZ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=qG[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=JG(u[e]);gY(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Lq(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Lq(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Lq(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(kY(e,!Eq(a)||!(o||u.forEach&&!QG((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),TX.enable();else if(kY(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=QG((function(){f.has(1)})),h=function(e,t){if(!qX)return!1;var n=!1;try{var r={};r[GX]=function(){return{next:function(){return{done:n=!0}}}},new a(r)}catch(o){}return n}(),g=!o&&QG((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){WX(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,qY&&Eq(c=o.constructor)&&c!==l&&Lq(f=c.prototype)&&f!==l.prototype&&qY(n,f),n);return null!=t&&VX(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,FY({global:!0,forced:s!=a},l),HY(s,e),o||n.setStrong(s,e,r),s}("WeakMap",xZ,DZ);if(GK&&SZ){EZ=DZ.getConstructor(xZ,"WeakMap",!0),TX.enable();var OZ=AZ.prototype,kZ=JG(OZ.delete),BZ=JG(OZ.has),FZ=JG(OZ.get),TZ=JG(OZ.set);EX(OZ,{delete:function(e){if(Lq(e)&&!BX(e)){var t=CZ(this);return t.frozen||(t.frozen=new EZ),kZ(this,e)||t.frozen.delete(e)}return kZ(this,e)},has:function(e){if(Lq(e)&&!BX(e)){var t=CZ(this);return t.frozen||(t.frozen=new EZ),BZ(this,e)||t.frozen.has(e)}return BZ(this,e)},get:function(e){if(Lq(e)&&!BX(e)){var t=CZ(this);return t.frozen||(t.frozen=new EZ),BZ(this,e)?FZ(this,e):t.frozen.get(e)}return FZ(this,e)},set:function(e,t){if(Lq(e)&&!BX(e)){var n=CZ(this);n.frozen||(n.frozen=new EZ),BZ(this,e)?TZ(this,e,t):n.frozen.set(e,t)}else TZ(this,e,t);return this}})}var _Z={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},PZ=Uq("span").classList,jZ=PZ&&PZ.constructor&&PZ.constructor.prototype,NZ=jZ===Object.prototype?void 0:jZ,IZ=Iq("iterator"),LZ=Iq("toStringTag"),RZ=rX.values,MZ=function(e,t){if(e){if(e[IZ]!==RZ)try{KK(e,IZ,RZ)}catch(r){e[IZ]=RZ}if(e[LZ]||KK(e,LZ,t),_Z[t])for(var n in rX)if(e[n]!==rX[n])try{KK(e,n,rX[n])}catch(r){e[n]=rX[n]}}};for(var zZ in _Z)MZ(qG[zZ]&&qG[zZ].prototype,zZ);MZ(NZ,"DOMTokenList");var $Z=new WeakMap,HZ={type:"list-item",renderElem:function(e,t,n){$Z.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=CO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Pf.previous(c),d=Sf.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 yg("div",{style:u},yg("span",{contentEditable:!1,style:{marginRight:"0.5em",color:function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];Kf.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),yg("span",null,t))}},VZ=function(e,t){return VZ=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])},VZ(e,t);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function UZ(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}VZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function WZ(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 GZ(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 qZ(e){return Sf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===CO.findPath(e,t).length}})}var KZ=bK.includes;FY({target:"Array",proto:!0},{includes:function(e){return KZ(this,e,arguments.length>1?arguments[1]:void 0)}}),RK("includes");var YZ,XZ,ZZ=function(){var e=zq(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},JZ=qG.RegExp,QZ=QG((function(){var e=JZ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),eJ=QZ||QG((function(){return!JZ("a","y").sticky})),tJ={BROKEN_CARET:QZ||QG((function(){var e=JZ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:eJ,UNSUPPORTED_Y:QZ},nJ=qG.RegExp,rJ=QG((function(){var e=nJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),oJ=qG.RegExp,iJ=QG((function(){var e=oJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),aJ=iY.get,uJ=dq("native-string-replace",String.prototype.replace),sJ=RegExp.prototype.exec,lJ=sJ,cJ=JG("".charAt),fJ=JG("".indexOf),dJ=JG("".replace),pJ=JG("".slice),hJ=(XZ=/b*/g,qq(sJ,YZ=/a/,"a"),qq(sJ,XZ,"a"),0!==YZ.lastIndex||0!==XZ.lastIndex),gJ=tJ.BROKEN_CARET,vJ=void 0!==/()??/.exec("")[1];(hJ||vJ||gJ||rJ||iJ)&&(lJ=function(e){var t,n,r,o,i,a,u,s=this,l=aJ(s),c=dX(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=qq(lJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=gJ&&s.sticky,h=qq(ZZ,s),g=s.source,v=0,y=c;if(p&&(h=dJ(h,"y",""),-1===fJ(h,"g")&&(h+="g"),y=pJ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==cJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),vJ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),hJ&&(r=s.lastIndex),o=qq(sJ,p?n:s,y),p?o?(o.input=pJ(o.input,v),o[0]=pJ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:hJ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),vJ&&o&&o.length>1&&qq(uJ,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=NK(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var yJ=lJ;FY({target:"RegExp",proto:!0,forced:/./.exec!==yJ},{exec:yJ});var mJ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return CO.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||!!CO.getSelectedElems(e).some((function(t){if(Sf.isVoid(e,t)&&Sf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?dd.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):dd.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),bJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=nP("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return UZ(t,e),t}(mJ),wJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=nP("listModule.orderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',t}return UZ(t,e),t}(mJ),EJ={key:"bulletedList",factory:function(){return new bJ}},DJ={key:"numberedList",factory:function(){return new wJ}},CJ=[],SJ={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=$Z.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=CO.findPath(t,e);if(0===s[0])return u+1;var l=Pf.previous(s),c=Sf.node(t,l);if(!c)return 0;var f=GZ(c,1)[0];if(CO.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+">",CJ.push(i);var s=function(e){var t=$Z.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=CO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Pf.next(s),c=Sf.node(t,l);if(!c)return 0;var f=GZ(c,1)[0];if(CO.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+="</"+CJ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},xJ=Iq("species"),AJ=cZ.filter,OJ=Bq>=51||!QG((function(){var e=[];return(e.constructor={})[xJ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));FY({target:"Array",proto:!0,forced:!OJ},{filter:function(e){return AJ(this,e,arguments.length>1?arguments[1]:void 0)}});var kJ=Function.prototype,BJ=kJ.apply,FJ=kJ.bind,TJ=kJ.call,_J="object"==typeof Reflect&&Reflect.apply||(FJ?TJ.bind(BJ):function(){return TJ.apply(BJ,arguments)}),PJ=(Iq("species"),RegExp.prototype),jJ=yX.charAt,NJ=function(e,t,n){return t+(n?jJ(e,t).length:1)},IJ=Math.floor,LJ=JG("".charAt),RJ=JG("".replace),MJ=JG("".slice),zJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$J=/\$([$&'`]|\d{1,2})/g,HJ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=$J;return void 0!==o&&(o=hq(o),s=zJ),RJ(i,s,(function(i,s){var l;switch(LJ(s,0)){case"$":return"$";case"&":return e;case"`":return MJ(t,0,n);case"'":return MJ(t,a);case"<":l=o[MJ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=IJ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?LJ(s,1):r[f-1]+LJ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},VJ=qG.TypeError,UJ=function(e,t){var n=e.exec;if(Eq(n)){var r=qq(n,e,t);return null!==r&&zq(r),r}if("RegExp"===nq(e))return qq(yJ,e,t);throw VJ("RegExp#exec called on incompatible receiver")},WJ=Iq("replace"),GJ=Math.max,qJ=Math.min,KJ=JG([].concat),YJ=JG([].push),XJ=JG("".indexOf),ZJ=JG("".slice),JJ="$0"==="a".replace(/./,"$0"),QJ=!!/./[WJ]&&""===/./[WJ]("a","$0");!function(e,t,n,r){var o,i,a=Iq(e),u=!QG((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!QG((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=JG(/./[a]),c=(o=""[e],i=QJ?"$":"$0",[function(e,t){var n=uq(this),r=null==e?void 0:tK(e,WJ);return r?qq(r,e,n,t):qq(o,dX(n),e,t)},function(e,t){var n=zq(this),r=dX(e);if("string"==typeof t&&-1===XJ(t,i)&&-1===XJ(t,"$<")){var a=function(e,t,n,r,o){var i=JG(e),a=t.exec;return a===yJ||a===PJ.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=Eq(t);s||(t=dX(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=UJ(n,r);if(null===p)break;if(YJ(d,p),!c)break;""===dX(p[0])&&(n.lastIndex=NJ(r,vK(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=dX((p=d[y])[0]),b=GJ(qJ(fK(p.index),r.length),0),w=[],E=1;E<p.length;E++)YJ(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(s){var C=KJ([m],w,b,r);void 0!==D&&YJ(C,D);var S=dX(_J(t,void 0,C))}else S=HJ(m,r,b,w,D,t);b>=v&&(g+=ZJ(r,v,b)+S,v=b+m.length)}return g+ZJ(r,v)}]);gY(String.prototype,e,c[0]),gY(PJ,a,c[1])}}("replace",0,!!QG((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!JJ||QJ);var eQ=qG.TypeError,tQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&PX(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&XX(s))l=yK(s),c=tQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw eQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},nQ=tQ;function rQ(e){return e.length?e[0].tagName.toLowerCase():""}FY({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=hq(this),n=yK(t),r=uZ(t,0);return r.length=nQ(r,t,t,n,0,void 0===e?1:fK(e)),r}}),RK("flat"),FY({global:!0},{globalThis:qG}),qp&&(Ap.fn.append=qp),Fp&&(Ap.fn.attr=Fp),Yp&&(Ap.fn.parent=Yp);var oQ={renderElems:[HZ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(e){var n=o.selection;if(null!=n)if($f.isExpanded(n))t(e);else{var r=CO.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?dd.setNodes(o,{level:a-1}):dd.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(e)}else t(e)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if($f.isCollapsed(a)){var u=CO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void dd.setNodes(o,{level:l+1})}}if($f.isExpanded(a)){var c=0,f=!1;try{for(var d=WZ(qZ(o)),p=d.next();!p.done;p=d.next()){var h=GZ(p.value,1)[0];"list-item"===CO.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=WZ(qZ(o)),v=g.next();!v.done;v=g.next()){var y=GZ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,dd.setNodes(o,{level:l+1},{at:m})}}catch(E){r={error:E}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=GZ(e,2),n=t[0],i=t[1],a=CO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||dd.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[EJ,DJ],elemsToHtml:[SJ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===rQ(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=rQ(n);"ul"===r||"ol"===r;)r=rQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},iQ=c((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]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object 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[c]=C[f]=C[d]=C[p]=C[g]=C[v]=C[y]=C[m]=!1;var S="object"==typeof l&&l&&l.Object===Object&&l,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(Sl){}}(),_=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,c){var h=_e(e),m=_e(t),E=h?i:Oe(e),D=m?i:Oe(t),C=(E=E==o?p:E)==p,S=(D=D==o?p:D)==p,x=E==D;if(x&&Pe(e)){if(!Pe(t))return!1;h=!0,C=!1}if(x&&!C)return c||(c=new ye),h||Re(e)?De(e,t,n,r,l,c):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 d:return Fe(+e,+t);case s:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=j;case v:var p=1&r;if(c||(c=N),e.size!=t.size&&!p)return!1;var h=l.get(e);if(h)return h==t;r|=2,l.set(e,t);var m=De(c(e),c(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,c);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 c||(c=new ye),l(k,B,n,r,c)}}return!!x&&(c||(c=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,c))}(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)!=f||ne&&Oe(ne.resolve())!=h||re&&Oe(new re)!=v||oe&&Oe(new oe)!=m)&&(Oe=function(e){var t=be(e),n=t==p?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return f;case se:return h;case le:return v;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==c||"[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)}}));tP("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"}}),tP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var aQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function uQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var sQ,lQ,cQ=function(e){return e&&e.Math==Math&&e},fQ=cQ("object"==typeof globalThis&&globalThis)||cQ("object"==typeof window&&window)||cQ("object"==typeof self&&self)||cQ("object"==typeof aQ&&aQ)||function(){return this}()||Function("return this")(),dQ=function(e){try{return!!e()}catch(t){return!0}},pQ=!dQ((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),hQ=Function.prototype.call,gQ=hQ.bind?hQ.bind(hQ):function(){return hQ.apply(hQ,arguments)},vQ={}.propertyIsEnumerable,yQ=Object.getOwnPropertyDescriptor,mQ={f:yQ&&!vQ.call({1:2},1)?function(e){var t=yQ(this,e);return!!t&&t.enumerable}:vQ},bQ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wQ=Function.prototype,EQ=wQ.bind,DQ=wQ.call,CQ=EQ&&EQ.bind(DQ),SQ=EQ?function(e){return e&&CQ(DQ,e)}:function(e){return e&&function(){return DQ.apply(e,arguments)}},xQ=SQ({}.toString),AQ=SQ("".slice),OQ=function(e){return AQ(xQ(e),8,-1)},kQ=fQ.Object,BQ=SQ("".split),FQ=dQ((function(){return!kQ("z").propertyIsEnumerable(0)}))?function(e){return"String"==OQ(e)?BQ(e,""):kQ(e)}:kQ,TQ=fQ.TypeError,_Q=function(e){if(null==e)throw TQ("Can't call method on "+e);return e},PQ=function(e){return FQ(_Q(e))},jQ=function(e){return"function"==typeof e},NQ=function(e){return"object"==typeof e?null!==e:jQ(e)},IQ=function(e,t){return arguments.length<2?function(e){return jQ(e)?e:void 0}(fQ[e]):fQ[e]&&fQ[e][t]},LQ=SQ({}.isPrototypeOf),RQ=IQ("navigator","userAgent")||"",MQ=fQ.process,zQ=fQ.Deno,$Q=MQ&&MQ.versions||zQ&&zQ.version,HQ=$Q&&$Q.v8;HQ&&(lQ=(sQ=HQ.split("."))[0]>0&&sQ[0]<4?1:+(sQ[0]+sQ[1])),!lQ&&RQ&&(!(sQ=RQ.match(/Edge\/(\d+)/))||sQ[1]>=74)&&(sQ=RQ.match(/Chrome\/(\d+)/))&&(lQ=+sQ[1]);var VQ=lQ,UQ=!!Object.getOwnPropertySymbols&&!dQ((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&VQ&&VQ<41})),WQ=UQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,GQ=fQ.Object,qQ=WQ?function(e){return"symbol"==typeof e}:function(e){var t=IQ("Symbol");return jQ(t)&&LQ(t.prototype,GQ(e))},KQ=fQ.String,YQ=function(e){try{return KQ(e)}catch(t){return"Object"}},XQ=fQ.TypeError,ZQ=function(e){if(jQ(e))return e;throw XQ(YQ(e)+" is not a function")},JQ=function(e,t){var n=e[t];return null==n?void 0:ZQ(n)},QQ=fQ.TypeError,e0=Object.defineProperty,t0=function(e,t){try{e0(fQ,e,{value:t,configurable:!0,writable:!0})}catch(oP){fQ[e]=t}return t},n0=fQ["__core-js_shared__"]||t0("__core-js_shared__",{}),r0=uQ((function(e){(e.exports=function(e,t){return n0[e]||(n0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),o0=fQ.Object,i0=function(e){return o0(_Q(e))},a0=SQ({}.hasOwnProperty),u0=Object.hasOwn||function(e,t){return a0(i0(e),t)},s0=0,l0=Math.random(),c0=SQ(1..toString),f0=function(e){return"Symbol("+(void 0===e?"":e)+")_"+c0(++s0+l0,36)},d0=r0("wks"),p0=fQ.Symbol,h0=p0&&p0.for,g0=WQ?p0:p0&&p0.withoutSetter||f0,v0=function(e){if(!u0(d0,e)||!UQ&&"string"!=typeof d0[e]){var t="Symbol."+e;UQ&&u0(p0,e)?d0[e]=p0[e]:d0[e]=WQ&&h0?h0(t):g0(t)}return d0[e]},y0=fQ.TypeError,m0=v0("toPrimitive"),b0=function(e){var t=function(e,t){if(!NQ(e)||qQ(e))return e;var n,r=JQ(e,m0);if(r){if(void 0===t&&(t="default"),n=gQ(r,e,t),!NQ(n)||qQ(n))return n;throw y0("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&jQ(n=e.toString)&&!NQ(r=gQ(n,e)))return r;if(jQ(n=e.valueOf)&&!NQ(r=gQ(n,e)))return r;if("string"!==t&&jQ(n=e.toString)&&!NQ(r=gQ(n,e)))return r;throw QQ("Can't convert object to primitive value")}(e,t)}(e,"string");return qQ(t)?t:t+""},w0=fQ.document,E0=NQ(w0)&&NQ(w0.createElement),D0=function(e){return E0?w0.createElement(e):{}},C0=!pQ&&!dQ((function(){return 7!=Object.defineProperty(D0("div"),"a",{get:function(){return 7}}).a})),S0=Object.getOwnPropertyDescriptor,x0={f:pQ?S0:function(e,t){if(e=PQ(e),t=b0(t),C0)try{return S0(e,t)}catch(n){}if(u0(e,t))return bQ(!gQ(mQ.f,e,t),e[t])}},A0=fQ.String,O0=fQ.TypeError,k0=function(e){if(NQ(e))return e;throw O0(A0(e)+" is not an object")},B0=fQ.TypeError,F0=Object.defineProperty,T0={f:pQ?F0:function(e,t,n){if(k0(e),t=b0(t),k0(n),C0)try{return F0(e,t,n)}catch(r){}if("get"in n||"set"in n)throw B0("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_0=pQ?function(e,t,n){return T0.f(e,t,bQ(1,n))}:function(e,t,n){return e[t]=n,e},P0=SQ(Function.toString);jQ(n0.inspectSource)||(n0.inspectSource=function(e){return P0(e)});var j0,N0,I0,L0=n0.inspectSource,R0=fQ.WeakMap,M0=jQ(R0)&&/native code/.test(L0(R0)),z0=r0("keys"),$0=function(e){return z0[e]||(z0[e]=f0(e))},H0={},V0=fQ.TypeError,U0=fQ.WeakMap;if(M0||n0.state){var W0=n0.state||(n0.state=new U0),G0=SQ(W0.get),q0=SQ(W0.has),K0=SQ(W0.set);j0=function(e,t){if(q0(W0,e))throw new V0("Object already initialized");return t.facade=e,K0(W0,e,t),t},N0=function(e){return G0(W0,e)||{}},I0=function(e){return q0(W0,e)}}else{var Y0=$0("state");H0[Y0]=!0,j0=function(e,t){if(u0(e,Y0))throw new V0("Object already initialized");return t.facade=e,_0(e,Y0,t),t},N0=function(e){return u0(e,Y0)?e[Y0]:{}},I0=function(e){return u0(e,Y0)}}var X0={set:j0,get:N0,has:I0,enforce:function(e){return I0(e)?N0(e):j0(e,{})},getterFor:function(e){return function(t){var n;if(!NQ(t)||(n=N0(t)).type!==e)throw V0("Incompatible receiver, "+e+" required");return n}}},Z0=Function.prototype,J0=pQ&&Object.getOwnPropertyDescriptor,Q0=u0(Z0,"name"),e1={EXISTS:Q0,PROPER:Q0&&"something"===function(){}.name,CONFIGURABLE:Q0&&(!pQ||pQ&&J0(Z0,"name").configurable)},t1=uQ((function(e){var t=e1.CONFIGURABLE,n=X0.get,r=X0.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;jQ(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!u0(i,"name")||t&&i.name!==f)&&_0(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==fQ?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:_0(e,n,i)):l?e[n]=i:t0(n,i)})(Function.prototype,"toString",(function(){return jQ(this)&&n(this).source||L0(this)}))})),n1=Math.ceil,r1=Math.floor,o1=function(e){var t=+e;return t!=t||0===t?0:(t>0?r1:n1)(t)},i1=Math.max,a1=Math.min,u1=function(e,t){var n=o1(e);return n<0?i1(n+t,0):a1(n,t)},s1=Math.min,l1=function(e){return e>0?s1(o1(e),9007199254740991):0},c1=function(e){return l1(e.length)},f1=function(e){return function(t,n,r){var o,i=PQ(t),a=c1(i),u=u1(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),d1=SQ([].push),p1=function(e,t){var n,r=PQ(e),o=0,i=[];for(n in r)!u0(H0,n)&&u0(r,n)&&d1(i,n);for(;t.length>o;)u0(r,n=t[o++])&&(~f1(i,n)||d1(i,n));return i},h1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],g1=h1.concat("length","prototype"),v1={f:Object.getOwnPropertyNames||function(e){return p1(e,g1)}},y1={f:Object.getOwnPropertySymbols},m1=SQ([].concat),b1=IQ("Reflect","ownKeys")||function(e){var t=v1.f(k0(e)),n=y1.f;return n?m1(t,n(e)):t},w1=function(e,t){for(var n=b1(t),r=T0.f,o=x0.f,i=0;i<n.length;i++){var a=n[i];u0(e,a)||r(e,a,o(t,a))}},E1=/#|\.prototype\./,D1=function(e,t){var n=S1[C1(e)];return n==A1||n!=x1&&(jQ(t)?dQ(t):!!t)},C1=D1.normalize=function(e){return String(e).replace(E1,".").toLowerCase()},S1=D1.data={},x1=D1.NATIVE="N",A1=D1.POLYFILL="P",O1=D1,k1=x0.f,B1=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?fQ:l?fQ[u]||t0(u,{}):(fQ[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=k1(n,r))&&a.value:n[r],!O1(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;w1(i,o)}(e.sham||o&&o.sham)&&_0(i,"sham",!0),t1(n,r,i,e)}},F1={};F1[v0("toStringTag")]="z";var T1="[object z]"===String(F1),_1=v0("toStringTag"),P1=fQ.Object,j1="Arguments"==OQ(function(){return arguments}()),N1=T1?OQ: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=P1(e),_1))?n:j1?OQ(t):"Object"==(r=OQ(t))&&jQ(t.callee)?"Arguments":r},I1=fQ.String,L1=function(e){if("Symbol"===N1(e))throw TypeError("Cannot convert a Symbol value to a string");return I1(e)},R1=/"/g,M1=SQ("".replace);B1({target:"String",proto:!0,forced:dQ((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=L1(_Q(this)),r="<a",(r+=' name="'+M1(L1(t),R1,""")+'"')+">"+n+"</a>";var t,n,r}});var z1,$1=function(){var e=k0(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},H1=fQ.RegExp,V1=dQ((function(){var e=H1("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),U1=V1||dQ((function(){return!H1("a","y").sticky})),W1={BROKEN_CARET:V1||dQ((function(){var e=H1("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:U1,UNSUPPORTED_Y:V1},G1=Object.keys||function(e){return p1(e,h1)},q1=pQ?Object.defineProperties:function(e,t){k0(e);for(var n,r=PQ(t),o=G1(t),i=o.length,a=0;i>a;)T0.f(e,n=o[a++],r[n]);return e},K1=IQ("document","documentElement"),Y1=$0("IE_PROTO"),X1=function(){},Z1=function(e){return"<script>"+e+"<\/script>"},J1=function(e){e.write(Z1("")),e.close();var t=e.parentWindow.Object;return e=null,t},Q1=function(){try{z1=new ActiveXObject("htmlfile")}catch(r){}var e,t;Q1="undefined"!=typeof document?document.domain&&z1?J1(z1):((t=D0("iframe")).style.display="none",K1.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Z1("document.F=Object")),e.close(),e.F):J1(z1);for(var n=h1.length;n--;)delete Q1.prototype[h1[n]];return Q1()};H0[Y1]=!0;var e2,t2,n2=Object.create||function(e,t){var n;return null!==e?(X1.prototype=k0(e),n=new X1,X1.prototype=null,n[Y1]=e):n=Q1(),void 0===t?n:q1(n,t)},r2=fQ.RegExp,o2=dQ((function(){var e=r2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),i2=fQ.RegExp,a2=dQ((function(){var e=i2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),u2=X0.get,s2=r0("native-string-replace",String.prototype.replace),l2=RegExp.prototype.exec,c2=l2,f2=SQ("".charAt),d2=SQ("".indexOf),p2=SQ("".replace),h2=SQ("".slice),g2=(t2=/b*/g,gQ(l2,e2=/a/,"a"),gQ(l2,t2,"a"),0!==e2.lastIndex||0!==t2.lastIndex),v2=W1.BROKEN_CARET,y2=void 0!==/()??/.exec("")[1];(g2||y2||v2||o2||a2)&&(c2=function(e){var t,n,r,o,i,a,u,s=this,l=u2(s),c=L1(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=gQ(c2,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=v2&&s.sticky,h=gQ($1,s),g=s.source,v=0,y=c;if(p&&(h=p2(h,"y",""),-1===d2(h,"g")&&(h+="g"),y=h2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==f2(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),y2&&(n=new RegExp("^"+g+"$(?!\\s)",h)),g2&&(r=s.lastIndex),o=gQ(l2,p?n:s,y),p?o?(o.input=h2(o.input,v),o[0]=h2(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:g2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),y2&&o&&o.length>1&&gQ(s2,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=n2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var m2=c2;B1({target:"RegExp",proto:!0,forced:/./.exec!==m2},{exec:m2});var b2=Array.isArray||function(e){return"Array"==OQ(e)},w2=function(){},E2=[],D2=IQ("Reflect","construct"),C2=/^\s*(?:class|function)\b/,S2=SQ(C2.exec),x2=!C2.exec(w2),A2=function(e){if(!jQ(e))return!1;try{return D2(w2,E2,e),!0}catch(t){return!1}},O2=!D2||dQ((function(){var e;return A2(A2.call)||!A2(Object)||!A2((function(){e=!0}))||e}))?function(e){if(!jQ(e))return!1;switch(N1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return x2||!!S2(C2,L0(e))}:A2,k2=function(e,t,n){var r=b0(t);r in e?T0.f(e,r,bQ(0,n)):e[r]=n},B2=v0("species"),F2=function(e){return VQ>=51||!dQ((function(){var t=[];return(t.constructor={})[B2]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},T2=SQ([].slice),_2=F2("slice"),P2=v0("species"),j2=fQ.Array,N2=Math.max;function I2(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 L2(e){var t=e.selection;if(null==t)return!1;var n=I2(Sf.nodes(e,{match:function(e){return CO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=I2(n,2)[1],o=Sf.start(e,r);if(Lf.equals(t.anchor,o))return!0}return!1}function R2(e,t){var n,r,o=Sf.nodes(e,{at:t,match:function(e){return"table"===CO.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}B1({target:"Array",proto:!0,forced:!_2},{slice:function(e,t){var n,r,o,i=PQ(this),a=c1(i),u=u1(e,a),s=u1(void 0===t?a:t,a);if(b2(i)&&(n=i.constructor,(O2(n)&&(n===j2||b2(n.prototype))||NQ(n)&&null===(n=n[P2]))&&(n=void 0),n===j2||void 0===n))return T2(i,u,s);for(r=new(void 0===n?j2:n)(N2(s-u,0)),o=0;u<s;u++,o++)u in i&&k2(r,o,i[u]);return r.length=o,r}});var M2=SQ(SQ.bind),z2=v0("species"),$2=fQ.Array,H2=function(e,t){return new(b2(n=e)&&(r=n.constructor,(O2(r)&&(r===$2||b2(r.prototype))||NQ(r)&&null===(r=r[z2]))&&(r=void 0)),void 0===r?$2:r)(0===t?0:t);var n,r},V2=SQ([].push),U2=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=i0(s),g=FQ(h),v=function(e,t){return ZQ(e),void 0===t?e:M2?M2(e,t):function(){return e.apply(t,arguments)}}(l,c),y=c1(g),m=0,b=f||H2,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:V2(w,d)}else switch(e){case 4:return!1;case 7:V2(w,d)}return i?-1:r||o?o:w}},W2={forEach:U2(0),map:U2(1),filter:U2(2),some:U2(3),every:U2(4),find:U2(5),findIndex:U2(6),filterReject:U2(7)},G2=W2.map;B1({target:"Array",proto:!0,forced:!F2("map")},{map:function(e){return G2(this,e,arguments.length>1?arguments[1]:void 0)}});var q2=T1?{}.toString:function(){return"[object "+N1(this)+"]"};function K2(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function Y2(e){return K2(e).every((function(e){return!!e.isHeader}))}T1||t1(Object.prototype,"toString",q2,{unsafe:!0});var X2=e1.PROPER,Z2=RegExp.prototype,J2=Z2.toString,Q2=SQ($1),e4=dQ((function(){return"/a/b"!=J2.call({source:"a",flags:"b"})})),t4=X2&&"toString"!=J2.name;(e4||t4)&&t1(RegExp.prototype,"toString",(function(){var e=k0(this),t=L1(e.source),n=e.flags;return"/"+t+"/"+L1(void 0===n&&LQ(Z2,e)&&!("flags"in Z2)?Q2(e):n)}),{unsafe:!0});var n4=v0("unscopables"),r4=Array.prototype;null==r4[n4]&&T0.f(r4,n4,{configurable:!0,value:n2(null)});var o4=W2.find,i4=!0;"find"in[]&&Array(1).find((function(){i4=!1})),B1({target:"Array",proto:!0,forced:i4},{find:function(e){return o4(this,e,arguments.length>1?arguments[1]:void 0)}}),r4[n4].find=!0;var a4=Function.prototype,u4=a4.apply,s4=a4.bind,l4=a4.call,c4="object"==typeof Reflect&&Reflect.apply||(s4?l4.bind(u4):function(){return l4.apply(u4,arguments)}),f4=v0("species"),d4=RegExp.prototype,p4=function(e,t,n,r){var o=v0(e),i=!dQ((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!dQ((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[f4]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=SQ(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=SQ(e),s=t.exec;return s===m2||s===d4.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));t1(String.prototype,e,s[0]),t1(d4,o,s[1])}r&&_0(d4[o],"sham",!0)},h4=v0("match"),g4=fQ.TypeError,v4=v0("species"),y4=SQ("".charAt),m4=SQ("".charCodeAt),b4=SQ("".slice),w4=function(e){return function(t,n){var r,o,i=L1(_Q(t)),a=o1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=m4(i,a))<55296||r>56319||a+1===u||(o=m4(i,a+1))<56320||o>57343?e?y4(i,a):r:e?b4(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),E4=function(e,t,n){return t+(n?w4(e,t).length:1)},D4=fQ.Array,C4=Math.max,S4=function(e,t,n){for(var r=c1(e),o=u1(t,r),i=u1(void 0===n?r:n,r),a=D4(C4(i-o,0)),u=0;o<i;o++,u++)k2(a,u,e[o]);return a.length=u,a},x4=fQ.TypeError,A4=function(e,t){var n=e.exec;if(jQ(n)){var r=gQ(n,e,t);return null!==r&&k0(r),r}if("RegExp"===OQ(e))return gQ(m2,e,t);throw x4("RegExp#exec called on incompatible receiver")},O4=W1.UNSUPPORTED_Y,k4=Math.min,B4=[].push,F4=SQ(/./.exec),T4=SQ(B4),_4=SQ("".slice);p4("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=L1(_Q(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!NQ(r=e)||!(void 0!==(o=r[h4])?o:"RegExp"==OQ(r)))return gQ(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=gQ(m2,p,i))&&!((s=p.lastIndex)>d&&(T4(c,_4(i,d,u.index)),u.length>1&&u.index<i.length&&c4(B4,c,S4(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&F4(p,"")||T4(c,""):T4(c,_4(i,d)),c.length>a?S4(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:gQ(t,this,e,n)}:t,[function(t,n){var o=_Q(this),i=null==t?void 0:JQ(t,e);return i?gQ(i,t,o,n):gQ(r,L1(o),t,n)},function(e,o){var i=k0(this),a=L1(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=k0(i).constructor)||null==(l=k0(c)[v4])?s:function(e){if(O2(e))return e;throw g4(YQ(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(O4?"g":"y"),h=new f(O4?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===A4(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=O4?0:y;var b,w=A4(h,O4?_4(a,y):a);if(null===w||(b=k4(l1(h.lastIndex+(O4?y:0)),a.length))===v)y=E4(a,y,d);else{if(T4(m,_4(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(T4(m,w[E]),m.length===g)return m;y=v=b}}return T4(m,_4(a,v)),m}]}),!!dQ((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]})),O4);var P4="\t\n\v\f\r \u2028\u2029\ufeff",j4=SQ("".replace),N4="["+P4+"]",I4=RegExp("^"+N4+N4+"*"),L4=RegExp(N4+N4+"*$"),R4=function(e){return function(t){var n=L1(_Q(t));return 1&e&&(n=j4(n,I4,"")),2&e&&(n=j4(n,L4,"")),n}},M4={start:R4(1),end:R4(2),trim:R4(3)},z4=e1.PROPER,$4=M4.trim;function H4(e){return e.length?e[0].tagName.toLowerCase():""}B1({target:"String",proto:!0,forced:function(e){return dQ((function(){return!!P4[e]()||"
"!=="
"[e]()||z4&&P4[e].name!==e}))}("trim")},{trim:function(){return $4(this)}}),B1({global:!0},{globalThis:fQ}),qp&&(Ap.fn.append=qp),jp&&(Ap.fn.on=jp),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Pp&&(Ap.fn.val=Pp),Up&&(Ap.fn.html=Up),_p&&(Ap.fn.dataset=_p),Op&&(Ap.fn.addClass=Op),kp&&(Ap.fn.removeClass=kp),Jp&&(Ap.fn.children=Jp),Hp&&(Ap.fn.each=Hp),Zp&&(Ap.fn.find=Zp);var V4=!1,U4=0,W4=0,G4=null,q4=null,K4=Ap("body");function Y4(e){V4=!1,q4=null,G4=null,K4.off("mousemove",X4),K4.off("mouseup",Y4)}K4.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(),V4=!0;var n=e.clientX;U4=n;var r=t.getBoundingClientRect().width;W4=r,K4.on("mousemove",X4),K4.on("mouseup",Y4)}}));var X4=Rh((function(e){if(V4&&null!=q4&&null!=G4){e.preventDefault();var t=e.clientX,n=W4+(t-U4);(n=Math.floor(100*n)/100)<30&&(n=30),dd.setNodes(q4,{width:n.toString()},{at:G4})}}),100),Z4={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if($f.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=CO.findPath(e,t),a=Sf.start(e,i),u=Sf.end(e,i),s=Lf.compare(r,u)<=0&&Lf.compare(r,a)>=0,l=Lf.compare(o,u)<=0&&Lf.compare(o,a)>=0;return!!(s&&l&&Pf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return yg("div",{className:"table-container","data-selected":CO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=CO.findPath(n,e),o=Sf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},yg("table",{width:i,contentEditable:r},yg("colgroup",null,K2(e).map((function(e){var t=e.width;return yg("col",{width:void 0===t?"auto":t})}))),yg("tbody",null,t)))}},J4={type:"table-row",renderElem:function(e,t,n){return yg("tr",null,t)}},Q4={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=CO.getParentNode(e,t);if(null==n)return!1;var r=CO.getParentNode(e,n);return null!=r&&K2(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?yg(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Rh((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;V4||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",q4=n,G4=CO.findPath(n,e)):V4||(r.style.cursor="auto",q4=null,G4=null))}}),100)}},t):yg("td",{colSpan:a,rowSpan:s},t)}},e6={selector:"table",preParseHtml:function(e){var t=Ap(e);if("table"!==H4(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]}},t6=W2.filter;B1({target:"Array",proto:!0,forced:!F2("filter")},{filter:function(e){return t6(this,e,arguments.length>1?arguments[1]:void 0)}});var n6=Math.floor,r6=SQ("".charAt),o6=SQ("".replace),i6=SQ("".slice),a6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u6=/\$([$&'`]|\d{1,2})/g,s6=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=u6;return void 0!==o&&(o=i0(o),s=a6),o6(i,s,(function(i,s){var l;switch(r6(s,0)){case"$":return"$";case"&":return e;case"`":return i6(t,0,n);case"'":return i6(t,a);case"<":l=o[i6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=n6(c/10);return 0===f?i:f<=u?void 0===r[f-1]?r6(s,1):r[f-1]+r6(s,1):i}l=r[c-1]}return void 0===l?"":l}))},l6=v0("replace"),c6=Math.max,f6=Math.min,d6=SQ([].concat),p6=SQ([].push),h6=SQ("".indexOf),g6=SQ("".slice),v6="$0"==="a".replace(/./,"$0"),y6=!!/./[l6]&&""===/./[l6]("a","$0");p4("replace",(function(e,t,n){var r=y6?"$":"$0";return[function(e,n){var r=_Q(this),o=null==e?void 0:JQ(e,l6);return o?gQ(o,e,r,n):gQ(t,L1(r),e,n)},function(e,o){var i=k0(this),a=L1(e);if("string"==typeof o&&-1===h6(o,r)&&-1===h6(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=jQ(o);s||(o=L1(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=A4(i,a);if(null===d)break;if(p6(f,d),!l)break;""===L1(d[0])&&(i.lastIndex=E4(a,l1(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=L1((d=f[v])[0]),m=c6(f6(o1(d.index),a.length),0),b=[],w=1;w<d.length;w++)p6(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=d6([y],b,m,a);void 0!==E&&p6(D,E);var C=L1(c4(o,void 0,D))}else C=s6(y,a,m,b,E,o);m>=g&&(h+=g6(a,g,m)+C,g=m+y.length)}return h+g6(a,g)}]}),!!dQ((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!v6||y6);var m6={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(e);0===(t=t.filter((function(e){return!!Kf.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===H4(r),colSpan:o,rowSpan:i,width:a,children:t}}},b6={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===CO.getNodeType(e)}))}}},w6={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Ap(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"===CO.getNodeType(e)}))}}},E6=function(){function e(){this.title=nP("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!CO.getSelectedElems(e).some((function(t){var n=CO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Ap('<div class="w-e-panel-content-table"></div>'),r=Ap("<span>0 × 0</span>"),o=Ap("<table></table>"),i=0;i<10;i++){for(var a=Ap("<tr></tr>"),u=0;u<10;u++){var s=Ap("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Ap(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Ap(e).children().each((function(e){var t=Ap(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Ap(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){CO.isSelectedEmptyParagraph(e)&&dd.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);dd.insertNodes(e,i,{mode:"highest"})}},e}(),D6=function(){function e(){this.title=nP("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==CO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||dd.removeNodes(e,{mode:"highest"})},e}(),C6=function(){function e(){this.title=nP("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==CO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=I2(Sf.nodes(e,{match:function(e){return CO.checkNodeType(e,"table-cell")},universal:!0}),1),r=I2(n[0],2),o=r[0],i=r[1],a=CO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Pf.parent(i),f=Pf.next(c);dd.insertNodes(e,s,{at:f})}}},e}(),S6=function(){function e(){this.title=nP("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==CO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=I2(Sf.nodes(e,{match:function(e){return CO.checkNodeType(e,"table-row")},universal:!0}),1),r=I2(n[0],2),o=r[0],i=r[1],a=CO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?dd.removeNodes(e,{mode:"highest"}):dd.removeNodes(e,{at:i})}},e}(),x6={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},A6=D0("span").classList,O6=A6&&A6.constructor&&A6.constructor.prototype,k6=O6===Object.prototype?void 0:O6,B6=W2.forEach,F6=function(e,t){var n=[].forEach;return!!n&&dQ((function(){n.call(null,(function(){throw 1}),1)}))}(),T6=F6?[].forEach:function(e){return B6(this,e,arguments.length>1?arguments[1]:void 0)},_6=function(e){if(e&&e.forEach!==T6)try{_0(e,"forEach",T6)}catch(t){e.forEach=T6}};for(var P6 in x6)x6[P6]&&_6(fQ[P6]&&fQ[P6].prototype);_6(k6);var j6=function(){function e(){this.title=nP("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==CO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=I2(Sf.nodes(e,{match:function(e){return CO.checkNodeType(e,"table-cell")},universal:!0}),1),r=I2(n[0],2),o=r[0],i=r[1],a=CO.getParentNode(e,o);if(null!=a){var u=CO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){mf.isElement(t)&&(t.children||[]).forEach((function(t){var r=CO.findPath(e,t);if(r.length===i.length&&iQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&Y2(u)&&(o.isHeader=!0),dd.insertNodes(e,o,{at:r})}}))}))}}},e}(),N6=function(){function e(){this.title=nP("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==CO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=I2(Sf.nodes(e,{match:function(e){return CO.checkNodeType(e,"table-cell")},universal:!0}),1),r=I2(n[0],2),o=r[0],i=r[1],a=CO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)dd.removeNodes(e,{mode:"highest"});else{var s=CO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){mf.isElement(t)&&(t.children||[]).forEach((function(t){var n=CO.findPath(e,t);n.length===i.length&&iQ(n.slice(-1),i.slice(-1))&&dd.removeNodes(e,{at:n})}))}))}}},e}(),I6=function(){function e(){this.title=nP("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=CO.getSelectedNodeByType(e,"table");return null!=t&&Y2(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==CO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=CO.getSelectedNodeByType(e,"table");null!=r&&K2(r).forEach((function(t){return dd.setNodes(e,{isHeader:n},{at:CO.findPath(e,t)})}))}},e}(),L6=function(){function e(){this.title=nP("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=CO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||null==CO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};dd.setNodes(e,n,{mode:"highest"})}},e}(),R6={renderElems:[Z4,J4,Q4],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:[e6],parseElemsHtml:[m6,b6,w6],menus:[{key:"insertTable",factory:function(){return new E6}},{key:"deleteTable",factory:function(){return new D6}},{key:"insertTableRow",factory:function(){return new C6}},{key:"deleteTableRow",factory:function(){return new S6}},{key:"insertTableCol",factory:function(){return new j6}},{key:"deleteTableCol",factory:function(){return new N6}},{key:"tableHeader",factory:function(){return new I6}},{key:"tableFullWidth",factory:function(){return new L6}}],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==CO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!L2(s)){var t=s.selection;if(t){var r=Sf.before(s,t);if(r){var o=R2(s,r),i=R2(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(CO.getSelectedNodeByType(s,"table")){var n=Sf.above(e);CO.checkNodeType(n[0],"table-cell")&&dd.select(e,n[1]);var r=Sf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Sf.above(e,{at:r[1]}))&&void 0!==t?t:r),dd.select(e,r[1]);else{var o=s.children||[],i=o.length;if(CO.checkNodeType(o[i-1],"table")){var u=CO.genEmptyParagraph();dd.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){L2(s)||r(e)},s.normalizeNode=function(e){var t=I2(e,2),n=t[0],r=t[1];if("table"!==CO.getNodeType(n))return o([n,r]);if(CO.isLastNode(s,n)){var i=CO.genEmptyParagraph();dd.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=CO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Sf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=CO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Pf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Bf.string(t).length){var o=CO.findPath(s,t),i={anchor:Sf.start(s,o),focus:Sf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};tP("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"}}),tP("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var M6=function(){return M6=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},M6.apply(this,arguments)};function z6(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 $6(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 H6(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 V6="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U6(e){var t={exports:{}};return e(t,t.exports),t.exports}var W6,G6,q6=function(e){return e&&e.Math==Math&&e},K6=q6("object"==typeof globalThis&&globalThis)||q6("object"==typeof window&&window)||q6("object"==typeof self&&self)||q6("object"==typeof V6&&V6)||function(){return this}()||Function("return this")(),Y6=function(e){try{return!!e()}catch(t){return!0}},X6=!Y6((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Z6=Function.prototype.call,J6=Z6.bind?Z6.bind(Z6):function(){return Z6.apply(Z6,arguments)},Q6={}.propertyIsEnumerable,e3=Object.getOwnPropertyDescriptor,t3={f:e3&&!Q6.call({1:2},1)?function(e){var t=e3(this,e);return!!t&&t.enumerable}:Q6},n3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},r3=Function.prototype,o3=r3.bind,i3=r3.call,a3=o3&&o3.bind(i3),u3=o3?function(e){return e&&a3(i3,e)}:function(e){return e&&function(){return i3.apply(e,arguments)}},s3=u3({}.toString),l3=u3("".slice),c3=function(e){return l3(s3(e),8,-1)},f3=K6.Object,d3=u3("".split),p3=Y6((function(){return!f3("z").propertyIsEnumerable(0)}))?function(e){return"String"==c3(e)?d3(e,""):f3(e)}:f3,h3=K6.TypeError,g3=function(e){if(null==e)throw h3("Can't call method on "+e);return e},v3=function(e){return p3(g3(e))},y3=function(e){return"function"==typeof e},m3=function(e){return"object"==typeof e?null!==e:y3(e)},b3=function(e,t){return arguments.length<2?function(e){return y3(e)?e:void 0}(K6[e]):K6[e]&&K6[e][t]},w3=u3({}.isPrototypeOf),E3=b3("navigator","userAgent")||"",D3=K6.process,C3=K6.Deno,S3=D3&&D3.versions||C3&&C3.version,x3=S3&&S3.v8;x3&&(G6=(W6=x3.split("."))[0]>0&&W6[0]<4?1:+(W6[0]+W6[1])),!G6&&E3&&(!(W6=E3.match(/Edge\/(\d+)/))||W6[1]>=74)&&(W6=E3.match(/Chrome\/(\d+)/))&&(G6=+W6[1]);var A3=G6,O3=!!Object.getOwnPropertySymbols&&!Y6((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A3&&A3<41})),k3=O3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,B3=K6.Object,F3=k3?function(e){return"symbol"==typeof e}:function(e){var t=b3("Symbol");return y3(t)&&w3(t.prototype,B3(e))},T3=K6.String,_3=function(e){try{return T3(e)}catch(t){return"Object"}},P3=K6.TypeError,j3=function(e){if(y3(e))return e;throw P3(_3(e)+" is not a function")},N3=function(e,t){var n=e[t];return null==n?void 0:j3(n)},I3=K6.TypeError,L3=Object.defineProperty,R3=function(e,t){try{L3(K6,e,{value:t,configurable:!0,writable:!0})}catch(oP){K6[e]=t}return t},M3=K6["__core-js_shared__"]||R3("__core-js_shared__",{}),z3=U6((function(e){(e.exports=function(e,t){return M3[e]||(M3[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),$3=K6.Object,H3=function(e){return $3(g3(e))},V3=u3({}.hasOwnProperty),U3=Object.hasOwn||function(e,t){return V3(H3(e),t)},W3=0,G3=Math.random(),q3=u3(1..toString),K3=function(e){return"Symbol("+(void 0===e?"":e)+")_"+q3(++W3+G3,36)},Y3=z3("wks"),X3=K6.Symbol,Z3=X3&&X3.for,J3=k3?X3:X3&&X3.withoutSetter||K3,Q3=function(e){if(!U3(Y3,e)||!O3&&"string"!=typeof Y3[e]){var t="Symbol."+e;O3&&U3(X3,e)?Y3[e]=X3[e]:Y3[e]=k3&&Z3?Z3(t):J3(t)}return Y3[e]},e5=K6.TypeError,t5=Q3("toPrimitive"),n5=function(e){var t=function(e,t){if(!m3(e)||F3(e))return e;var n,r=N3(e,t5);if(r){if(void 0===t&&(t="default"),n=J6(r,e,t),!m3(n)||F3(n))return n;throw e5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y3(n=e.toString)&&!m3(r=J6(n,e)))return r;if(y3(n=e.valueOf)&&!m3(r=J6(n,e)))return r;if("string"!==t&&y3(n=e.toString)&&!m3(r=J6(n,e)))return r;throw I3("Can't convert object to primitive value")}(e,t)}(e,"string");return F3(t)?t:t+""},r5=K6.document,o5=m3(r5)&&m3(r5.createElement),i5=function(e){return o5?r5.createElement(e):{}},a5=!X6&&!Y6((function(){return 7!=Object.defineProperty(i5("div"),"a",{get:function(){return 7}}).a})),u5=Object.getOwnPropertyDescriptor,s5={f:X6?u5:function(e,t){if(e=v3(e),t=n5(t),a5)try{return u5(e,t)}catch(n){}if(U3(e,t))return n3(!J6(t3.f,e,t),e[t])}},l5=K6.String,c5=K6.TypeError,f5=function(e){if(m3(e))return e;throw c5(l5(e)+" is not an object")},d5=K6.TypeError,p5=Object.defineProperty,h5={f:X6?p5:function(e,t,n){if(f5(e),t=n5(t),f5(n),a5)try{return p5(e,t,n)}catch(r){}if("get"in n||"set"in n)throw d5("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},g5=X6?function(e,t,n){return h5.f(e,t,n3(1,n))}:function(e,t,n){return e[t]=n,e},v5=u3(Function.toString);y3(M3.inspectSource)||(M3.inspectSource=function(e){return v5(e)});var y5,m5,b5,w5=M3.inspectSource,E5=K6.WeakMap,D5=y3(E5)&&/native code/.test(w5(E5)),C5=z3("keys"),S5=function(e){return C5[e]||(C5[e]=K3(e))},x5={},A5=K6.TypeError,O5=K6.WeakMap;if(D5||M3.state){var k5=M3.state||(M3.state=new O5),B5=u3(k5.get),F5=u3(k5.has),T5=u3(k5.set);y5=function(e,t){if(F5(k5,e))throw new A5("Object already initialized");return t.facade=e,T5(k5,e,t),t},m5=function(e){return B5(k5,e)||{}},b5=function(e){return F5(k5,e)}}else{var _5=S5("state");x5[_5]=!0,y5=function(e,t){if(U3(e,_5))throw new A5("Object already initialized");return t.facade=e,g5(e,_5,t),t},m5=function(e){return U3(e,_5)?e[_5]:{}},b5=function(e){return U3(e,_5)}}var P5={set:y5,get:m5,has:b5,enforce:function(e){return b5(e)?m5(e):y5(e,{})},getterFor:function(e){return function(t){var n;if(!m3(t)||(n=m5(t)).type!==e)throw A5("Incompatible receiver, "+e+" required");return n}}},j5=Function.prototype,N5=X6&&Object.getOwnPropertyDescriptor,I5=U3(j5,"name"),L5={EXISTS:I5,PROPER:I5&&"something"===function(){}.name,CONFIGURABLE:I5&&(!X6||X6&&N5(j5,"name").configurable)},R5=U6((function(e){var t=L5.CONFIGURABLE,n=P5.get,r=P5.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;y3(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!U3(i,"name")||t&&i.name!==f)&&g5(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==K6?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:g5(e,n,i)):l?e[n]=i:R3(n,i)})(Function.prototype,"toString",(function(){return y3(this)&&n(this).source||w5(this)}))})),M5=Math.ceil,z5=Math.floor,$5=function(e){var t=+e;return t!=t||0===t?0:(t>0?z5:M5)(t)},H5=Math.max,V5=Math.min,U5=function(e,t){var n=$5(e);return n<0?H5(n+t,0):V5(n,t)},W5=Math.min,G5=function(e){return e>0?W5($5(e),9007199254740991):0},q5=function(e){return G5(e.length)},K5=function(e){return function(t,n,r){var o,i=v3(t),a=q5(i),u=U5(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}},Y5={includes:K5(!0),indexOf:K5(!1)},X5=Y5.indexOf,Z5=u3([].push),J5=function(e,t){var n,r=v3(e),o=0,i=[];for(n in r)!U3(x5,n)&&U3(r,n)&&Z5(i,n);for(;t.length>o;)U3(r,n=t[o++])&&(~X5(i,n)||Z5(i,n));return i},Q5=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],e8=Q5.concat("length","prototype"),t8={f:Object.getOwnPropertyNames||function(e){return J5(e,e8)}},n8={f:Object.getOwnPropertySymbols},r8=u3([].concat),o8=b3("Reflect","ownKeys")||function(e){var t=t8.f(f5(e)),n=n8.f;return n?r8(t,n(e)):t},i8=function(e,t){for(var n=o8(t),r=h5.f,o=s5.f,i=0;i<n.length;i++){var a=n[i];U3(e,a)||r(e,a,o(t,a))}},a8=/#|\.prototype\./,u8=function(e,t){var n=l8[s8(e)];return n==f8||n!=c8&&(y3(t)?Y6(t):!!t)},s8=u8.normalize=function(e){return String(e).replace(a8,".").toLowerCase()},l8=u8.data={},c8=u8.NATIVE="N",f8=u8.POLYFILL="P",d8=u8,p8=s5.f,h8=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?K6:l?K6[u]||R3(u,{}):(K6[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=p8(n,r))&&a.value:n[r],!d8(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;i8(i,o)}(e.sham||o&&o.sham)&&g5(i,"sham",!0),R5(n,r,i,e)}},g8={};g8[Q3("toStringTag")]="z";var v8="[object z]"===String(g8),y8=Q3("toStringTag"),m8=K6.Object,b8="Arguments"==c3(function(){return arguments}()),w8=v8?c3: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=m8(e),y8))?n:b8?c3(t):"Object"==(r=c3(t))&&y3(t.callee)?"Arguments":r},E8=K6.String,D8=function(e){if("Symbol"===w8(e))throw TypeError("Cannot convert a Symbol value to a string");return E8(e)},C8="\t\n\v\f\r \u2028\u2029\ufeff",S8=u3("".replace),x8="["+C8+"]",A8=RegExp("^"+x8+x8+"*"),O8=RegExp(x8+x8+"*$"),k8=function(e){return function(t){var n=D8(g3(t));return 1&e&&(n=S8(n,A8,"")),2&e&&(n=S8(n,O8,"")),n}},B8={start:k8(1),end:k8(2),trim:k8(3)},F8=L5.PROPER,T8=B8.trim;function _8(e){return e.length?e[0].tagName.toLowerCase():""}function P8(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Ap(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}h8({target:"String",proto:!0,forced:Y6((function(){return!!C8.trim()||"
"!=="
".trim()||F8&&"trim"!==C8.trim.name}))},{trim:function(){return T8(this)}}),h8({global:!0},{globalThis:K6}),qp&&(Ap.fn.append=qp),jp&&(Ap.fn.on=jp),oh&&(Ap.fn.focus=oh),Fp&&(Ap.fn.attr=Fp),Pp&&(Ap.fn.val=Pp),Up&&(Ap.fn.html=Up),Yp&&(Ap.fn.parent=Yp),Bp&&(Ap.fn.hasClass=Bp),eh&&(Ap.fn.empty=eh);var j8,N8={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=CO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=yg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:P8(a,c,d)});else{var h=yg("video",{poster:s,controls:!0},yg("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=yg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return Zh("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},I8={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+=P8(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},L8=Object.keys||function(e){return J5(e,Q5)},R8=X6?Object.defineProperties:function(e,t){f5(e);for(var n,r=v3(t),o=L8(t),i=o.length,a=0;i>a;)h5.f(e,n=o[a++],r[n]);return e},M8=b3("document","documentElement"),z8=S5("IE_PROTO"),$8=function(){},H8=function(e){return"<script>"+e+"<\/script>"},V8=function(e){e.write(H8("")),e.close();var t=e.parentWindow.Object;return e=null,t},U8=function(){try{j8=new ActiveXObject("htmlfile")}catch(r){}var e,t;U8="undefined"!=typeof document?document.domain&&j8?V8(j8):((t=i5("iframe")).style.display="none",M8.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(H8("document.F=Object")),e.close(),e.F):V8(j8);for(var n=Q5.length;n--;)delete U8.prototype[Q5[n]];return U8()};x5[z8]=!0;var W8=Object.create||function(e,t){var n;return null!==e?($8.prototype=f5(e),n=new $8,$8.prototype=null,n[z8]=e):n=U8(),void 0===t?n:R8(n,t)},G8=Q3("unscopables"),q8=Array.prototype;null==q8[G8]&&h5.f(q8,G8,{configurable:!0,value:W8(null)});var K8=function(e){q8[G8][e]=!0},Y8=Y5.includes;h8({target:"Array",proto:!0},{includes:function(e){return Y8(this,e,arguments.length>1?arguments[1]:void 0)}}),K8("includes");var X8={selector:"iframe,video,p",preParseHtml:function(e){var t=Ap(e),n=t;if("p"===_8(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Ap(o))}}var a=_8(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Ap('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},Z8=u3(u3.bind),J8=function(e,t){return j3(e),void 0===t?e:Z8?Z8(e,t):function(){return e.apply(t,arguments)}},Q8=Array.isArray||function(e){return"Array"==c3(e)},e7=function(){},t7=[],n7=b3("Reflect","construct"),r7=/^\s*(?:class|function)\b/,o7=u3(r7.exec),i7=!r7.exec(e7),a7=function(e){if(!y3(e))return!1;try{return n7(e7,t7,e),!0}catch(t){return!1}},u7=!n7||Y6((function(){var e;return a7(a7.call)||!a7(Object)||!a7((function(){e=!0}))||e}))?function(e){if(!y3(e))return!1;switch(w8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return i7||!!o7(r7,w5(e))}:a7,s7=Q3("species"),l7=K6.Array,c7=function(e,t){return new(Q8(n=e)&&(r=n.constructor,(u7(r)&&(r===l7||Q8(r.prototype))||m3(r)&&null===(r=r[s7]))&&(r=void 0)),void 0===r?l7:r)(0===t?0:t);var n,r},f7=u3([].push),d7=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=H3(s),g=p3(h),v=J8(l,c),y=q5(g),m=0,b=f||c7,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:f7(w,d)}else switch(e){case 4:return!1;case 7:f7(w,d)}return i?-1:r||o?o:w}},p7={forEach:d7(0),map:d7(1),filter:d7(2),some:d7(3),every:d7(4),find:d7(5),findIndex:d7(6),filterReject:d7(7)},h7=p7.find,g7=!0;"find"in[]&&Array(1).find((function(){g7=!1})),h8({target:"Array",proto:!0,forced:g7},{find:function(e){return h7(this,e,arguments.length>1?arguments[1]:void 0)}}),K8("find");var v7=v8?{}.toString:function(){return"[object "+w8(this)+"]"};function y7(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:""}]}}v8||R5(Object.prototype,"toString",v7,{unsafe:!0});var m7,b7,w7={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Ap(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",y7(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",y7(o,i=l.attr("poster")||"",a,u)}},E7=function(){var e=f5(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},D7=K6.RegExp,C7=Y6((function(){var e=D7("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),S7=C7||Y6((function(){return!D7("a","y").sticky})),x7={BROKEN_CARET:C7||Y6((function(){var e=D7("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:S7,UNSUPPORTED_Y:C7},A7=K6.RegExp,O7=Y6((function(){var e=A7(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),k7=K6.RegExp,B7=Y6((function(){var e=k7("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),F7=P5.get,T7=z3("native-string-replace",String.prototype.replace),_7=RegExp.prototype.exec,P7=_7,j7=u3("".charAt),N7=u3("".indexOf),I7=u3("".replace),L7=u3("".slice),R7=(b7=/b*/g,J6(_7,m7=/a/,"a"),J6(_7,b7,"a"),0!==m7.lastIndex||0!==b7.lastIndex),M7=x7.BROKEN_CARET,z7=void 0!==/()??/.exec("")[1];(R7||z7||M7||O7||B7)&&(P7=function(e){var t,n,r,o,i,a,u,s=this,l=F7(s),c=D8(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=J6(P7,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=M7&&s.sticky,h=J6(E7,s),g=s.source,v=0,y=c;if(p&&(h=I7(h,"y",""),-1===N7(h,"g")&&(h+="g"),y=L7(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==j7(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),z7&&(n=new RegExp("^"+g+"$(?!\\s)",h)),R7&&(r=s.lastIndex),o=J6(_7,p?n:s,y),p?o?(o.input=L7(o.input,v),o[0]=L7(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:R7&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),z7&&o&&o.length>1&&J6(T7,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=W8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var $7=P7;h8({target:"RegExp",proto:!0,forced:/./.exec!==$7},{exec:$7});var H7=Function.prototype,V7=H7.apply,U7=H7.bind,W7=H7.call,G7="object"==typeof Reflect&&Reflect.apply||(U7?W7.bind(V7):function(){return W7.apply(V7,arguments)}),q7=(Q3("species"),RegExp.prototype),K7=u3("".charAt),Y7=u3("".charCodeAt),X7=u3("".slice),Z7=function(e){return function(t,n){var r,o,i=D8(g3(t)),a=$5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Y7(i,a))<55296||r>56319||a+1===u||(o=Y7(i,a+1))<56320||o>57343?e?K7(i,a):r:e?X7(i,a,a+2):o-56320+(r-55296<<10)+65536}},J7={codeAt:Z7(!1),charAt:Z7(!0)},Q7=J7.charAt,e9=function(e,t,n){return t+(n?Q7(e,t).length:1)},t9=Math.floor,n9=u3("".charAt),r9=u3("".replace),o9=u3("".slice),i9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a9=/\$([$&'`]|\d{1,2})/g,u9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=a9;return void 0!==o&&(o=H3(o),s=i9),r9(i,s,(function(i,s){var l;switch(n9(s,0)){case"$":return"$";case"&":return e;case"`":return o9(t,0,n);case"'":return o9(t,a);case"<":l=o[o9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=t9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?n9(s,1):r[f-1]+n9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},s9=K6.TypeError,l9=function(e,t){var n=e.exec;if(y3(n)){var r=J6(n,e,t);return null!==r&&f5(r),r}if("RegExp"===c3(e))return J6($7,e,t);throw s9("RegExp#exec called on incompatible receiver")},c9=Q3("replace"),f9=Math.max,d9=Math.min,p9=u3([].concat),h9=u3([].push),g9=u3("".indexOf),v9=u3("".slice),y9="$0"==="a".replace(/./,"$0"),m9=!!/./[c9]&&""===/./[c9]("a","$0");function b9(e){return void 0===e&&(e="r"),e+"-"+Dh()}!function(e,t,n,r){var o,i,a=Q3(e),u=!Y6((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!Y6((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=u3(/./[a]),c=(o=""[e],i=m9?"$":"$0",[function(e,t){var n=g3(this),r=null==e?void 0:N3(e,c9);return r?J6(r,e,n,t):J6(o,D8(n),e,t)},function(e,t){var n=f5(this),r=D8(e);if("string"==typeof t&&-1===g9(t,i)&&-1===g9(t,"$<")){var a=function(e,t,n,r,o){var i=u3(e),a=t.exec;return a===$7||a===q7.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=y3(t);s||(t=D8(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=l9(n,r);if(null===p)break;if(h9(d,p),!c)break;""===D8(p[0])&&(n.lastIndex=e9(r,G5(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=D8((p=d[y])[0]),b=f9(d9($5(p.index),r.length),0),w=[],E=1;E<p.length;E++)h9(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(s){var C=p9([m],w,b,r);void 0!==D&&h9(C,D);var S=D8(G7(t,void 0,C))}else S=u9(m,r,b,w,D,t);b>=v&&(g+=v9(r,v,b)+S,v=b+m.length)}return g+v9(r,v)}]);R5(String.prototype,e,c[0]),R5(q7,a,c[1])}}("replace",0,!!Y6((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!y9||m9);var w9=K6.Promise,E9=function(e,t,n){for(var r in t)R5(e,r,t[r],n);return e},D9=K6.String,C9=K6.TypeError,S9=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=u3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return f5(n),function(e){if("object"==typeof e||y3(e))return e;throw C9("Can't set "+D9(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),x9=h5.f,A9=Q3("toStringTag"),O9=function(e,t,n){e&&!U3(e=n?e:e.prototype,A9)&&x9(e,A9,{configurable:!0,value:t})},k9=Q3("species"),B9=K6.TypeError,F9=function(e,t){if(w3(t,e))return e;throw B9("Incorrect invocation")},T9={},_9=Q3("iterator"),P9=Array.prototype,j9=Q3("iterator"),N9=function(e){if(null!=e)return N3(e,j9)||N3(e,"@@iterator")||T9[w8(e)]},I9=K6.TypeError,L9=function(e,t,n){var r,o;f5(e);try{if(!(r=N3(e,"return"))){if("throw"===t)throw n;return n}r=J6(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return f5(r),n},R9=K6.TypeError,M9=function(e,t){this.stopped=e,this.result=t},z9=M9.prototype,$9=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=J8(t,f),v=function(e){return r&&L9(r,"normal",e),new M9(!0,e)},y=function(e){return d?(f5(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=N9(e)))throw R9(_3(e)+" is not iterable");if(void 0!==(c=o)&&(T9.Array===c||P9[_9]===c)){for(i=0,a=q5(e);a>i;i++)if((u=y(e[i]))&&w3(z9,u))return u;return new M9(!1)}r=function(e,t){var n=arguments.length<2?N9(e):t;if(j3(n))return f5(J6(n,e));throw I9(_3(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=J6(s,r)).done;){try{u=y(l.value)}catch(m){L9(r,"throw",m)}if("object"==typeof u&&u&&w3(z9,u))return u}return new M9(!1)},H9=Q3("iterator"),V9=!1;try{var U9=0,W9={next:function(){return{done:!!U9++}},return:function(){V9=!0}};W9[H9]=function(){return this},Array.from(W9,(function(){throw 2}))}catch(tve){}var G9,q9,K9,Y9,X9=function(e,t){if(!t&&!V9)return!1;var n=!1;try{var r={};r[H9]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Z9=K6.TypeError,J9=Q3("species"),Q9=u3([].slice),eee=/(?:ipad|iphone|ipod).*applewebkit/i.test(E3),tee="process"==c3(K6.process),nee=K6.setImmediate,ree=K6.clearImmediate,oee=K6.process,iee=K6.Dispatch,aee=K6.Function,uee=K6.MessageChannel,see=K6.String,lee=0,cee={};try{G9=K6.location}catch(tve){}var fee=function(e){if(U3(cee,e)){var t=cee[e];delete cee[e],t()}},dee=function(e){return function(){fee(e)}},pee=function(e){fee(e.data)},hee=function(e){K6.postMessage(see(e),G9.protocol+"//"+G9.host)};nee&&ree||(nee=function(e){var t=Q9(arguments,1);return cee[++lee]=function(){G7(y3(e)?e:aee(e),void 0,t)},q9(lee),lee},ree=function(e){delete cee[e]},tee?q9=function(e){oee.nextTick(dee(e))}:iee&&iee.now?q9=function(e){iee.now(dee(e))}:uee&&!eee?(Y9=(K9=new uee).port2,K9.port1.onmessage=pee,q9=J8(Y9.postMessage,Y9)):K6.addEventListener&&y3(K6.postMessage)&&!K6.importScripts&&G9&&"file:"!==G9.protocol&&!Y6(hee)?(q9=hee,K6.addEventListener("message",pee,!1)):q9="onreadystatechange"in i5("script")?function(e){M8.appendChild(i5("script")).onreadystatechange=function(){M8.removeChild(this),fee(e)}}:function(e){setTimeout(dee(e),0)});var gee,vee,yee,mee,bee,wee,Eee,Dee,Cee={set:nee,clear:ree},See=/ipad|iphone|ipod/i.test(E3)&&void 0!==K6.Pebble,xee=/web0s(?!.*chrome)/i.test(E3),Aee=s5.f,Oee=Cee.set,kee=K6.MutationObserver||K6.WebKitMutationObserver,Bee=K6.document,Fee=K6.process,Tee=K6.Promise,_ee=Aee(K6,"queueMicrotask"),Pee=_ee&&_ee.value;Pee||(gee=function(){var e,t;for(tee&&(e=Fee.domain)&&e.exit();vee;){t=vee.fn,vee=vee.next;try{t()}catch(n){throw vee?mee():yee=void 0,n}}yee=void 0,e&&e.enter()},eee||tee||xee||!kee||!Bee?!See&&Tee&&Tee.resolve?((Eee=Tee.resolve(void 0)).constructor=Tee,Dee=J8(Eee.then,Eee),mee=function(){Dee(gee)}):tee?mee=function(){Fee.nextTick(gee)}:(Oee=J8(Oee,K6),mee=function(){Oee(gee)}):(bee=!0,wee=Bee.createTextNode(""),new kee(gee).observe(wee,{characterData:!0}),mee=function(){wee.data=bee=!bee}));var jee,Nee,Iee,Lee,Ree=Pee||function(e){var t={fn:e,next:void 0};yee&&(yee.next=t),vee||(vee=t,mee()),yee=t},Mee=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=j3(t),this.reject=j3(n)},zee={f:function(e){return new Mee(e)}},$ee=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Hee="object"==typeof window,Vee=Cee.set,Uee=Q3("species"),Wee="Promise",Gee=P5.getterFor(Wee),qee=P5.set,Kee=P5.getterFor(Wee),Yee=w9&&w9.prototype,Xee=w9,Zee=Yee,Jee=K6.TypeError,Qee=K6.document,ete=K6.process,tte=zee.f,nte=tte,rte=!!(Qee&&Qee.createEvent&&K6.dispatchEvent),ote=y3(K6.PromiseRejectionEvent),ite=!1,ate=d8(Wee,(function(){var e=w5(Xee),t=e!==String(Xee);if(!t&&66===A3)return!0;if(A3>=51&&/native code/.test(e))return!1;var n=new Xee((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Uee]=r,!(ite=n.then((function(){}))instanceof r)||!t&&Hee&&!ote})),ute=ate||!X9((function(e){Xee.all(e).catch((function(){}))})),ste=function(e){var t;return!(!m3(e)||!y3(t=e.then))&&t},lte=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Ree((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&&pte(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Jee("Promise-chain cycle")):(u=ste(a))?J6(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&fte(e)}))}},cte=function(e,t,n){var r,o;rte?((r=Qee.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),K6.dispatchEvent(r)):r={promise:t,reason:n},!ote&&(o=K6["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=K6.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},fte=function(e){J6(Vee,K6,(function(){var t,n=e.facade,r=e.value;if(dte(e)&&(t=$ee((function(){tee?ete.emit("unhandledRejection",r,n):cte("unhandledrejection",n,r)})),e.rejection=tee||dte(e)?2:1,t.error))throw t.value}))},dte=function(e){return 1!==e.rejection&&!e.parent},pte=function(e){J6(Vee,K6,(function(){var t=e.facade;tee?ete.emit("rejectionHandled",t):cte("rejectionhandled",t,e.value)}))},hte=function(e,t,n){return function(r){e(t,r,n)}},gte=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,lte(e,!0))},vte=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Jee("Promise can't be resolved itself");var r=ste(t);r?Ree((function(){var n={done:!1};try{J6(r,t,hte(vte,n,e),hte(gte,n,e))}catch(o){gte(n,o,e)}})):(e.value=t,e.state=1,lte(e,!1))}catch(o){gte({done:!1},o,e)}}};if(ate&&(Zee=(Xee=function(e){F9(this,Zee),j3(e),J6(jee,this);var t=Gee(this);try{e(hte(vte,t),hte(gte,t))}catch(n){gte(t,n)}}).prototype,(jee=function(e){qee(this,{type:Wee,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=E9(Zee,{then:function(e,t){var n,r,o,i=Kee(this),a=i.reactions,u=tte((n=Xee,void 0===(o=f5(this).constructor)||null==(r=f5(o)[J9])?n:function(e){if(u7(e))return e;throw Z9(_3(e)+" is not a constructor")}(r)));return u.ok=!y3(e)||e,u.fail=y3(t)&&t,u.domain=tee?ete.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&<e(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),Nee=function(){var e=new jee,t=Gee(e);this.promise=e,this.resolve=hte(vte,t),this.reject=hte(gte,t)},zee.f=tte=function(e){return e===Xee||e===Iee?new Nee(e):nte(e)},y3(w9)&&Yee!==Object.prototype)){Lee=Yee.then,ite||(R5(Yee,"then",(function(e,t){var n=this;return new Xee((function(e,t){J6(Lee,n,e,t)})).then(e,t)}),{unsafe:!0}),R5(Yee,"catch",Zee.catch,{unsafe:!0}));try{delete Yee.constructor}catch(tve){}S9&&S9(Yee,Zee)}function yte(e,t,n){return void 0===n&&(n=""),z6(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return $6(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,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then((function(){dd.insertNodes(e,l)})),o(l),[2]}}))}))}function mte(){return b9("w-e-insert-video")}h8({global:!0,wrap:!0,forced:ate},{Promise:Xee}),O9(Xee,Wee,!1),function(e){var t=b3("Promise"),n=h5.f;X6&&t&&!t[k9]&&n(t,k9,{configurable:!0,get:function(){return this}})}(),Iee=b3(Wee),h8({target:Wee,stat:!0,forced:ate},{reject:function(e){var t=tte(this);return J6(t.reject,void 0,e),t.promise}}),h8({target:Wee,stat:!0,forced:ate},{resolve:function(e){return function(e,t){if(f5(e),m3(t)&&t.constructor===e)return t;var n=zee.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),h8({target:Wee,stat:!0,forced:ute},{all:function(e){var t=this,n=tte(t),r=n.resolve,o=n.reject,i=$ee((function(){var n=j3(t.resolve),i=[],a=0,u=1;$9(e,(function(e){var s=a++,l=!1;u++,J6(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=tte(t),r=n.reject,o=$ee((function(){var o=j3(t.resolve);$9(e,(function(e){J6(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var bte=function(){function e(){this.title=nP("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=mte(),this.posterInputId=mte(),this.buttonId=mte()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!CO.getSelectedElems(e).some((function(t){var n=CO.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=H6(VT(nP("videoModule.videoSrc"),r,nP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=H6(VT(nP("videoModule.videoPoster"),o,nP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Ap(s),p=Ap(f),h=H6(UT(i,nP("videoModule.ok")),1)[0];if(null==this.$content){var g=Ap("<div></div>");g.on("click","#"+i,(function(n){return z6(t,void 0,void 0,(function(){var t,i;return $6(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,yte(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}(),wte=u3([].join),Ete=p3!=Object,Dte=function(e,t){var n=[].join;return!!n&&Y6((function(){n.call(null,",",1)}))}();h8({target:"Array",proto:!0,forced:Ete||!Dte},{join:function(e){return wte(v3(this),void 0===e?",":e)}});var Cte,Ste,xte,Ate=!Y6((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ote=S5("IE_PROTO"),kte=K6.Object,Bte=kte.prototype,Fte=Ate?kte.getPrototypeOf:function(e){var t=H3(e);if(U3(t,Ote))return t[Ote];var n=t.constructor;return y3(n)&&t instanceof n?n.prototype:t instanceof kte?Bte:null},Tte=Q3("iterator"),_te=!1;[].keys&&("next"in(xte=[].keys())?(Ste=Fte(Fte(xte)))!==Object.prototype&&(Cte=Ste):_te=!0);var Pte=null==Cte||Y6((function(){var e={};return Cte[Tte].call(e)!==e}));Pte&&(Cte={}),y3(Cte[Tte])||R5(Cte,Tte,(function(){return this}));var jte={IteratorPrototype:Cte,BUGGY_SAFARI_ITERATORS:_te},Nte=jte.IteratorPrototype,Ite=function(){return this},Lte=L5.PROPER,Rte=L5.CONFIGURABLE,Mte=jte.IteratorPrototype,zte=jte.BUGGY_SAFARI_ITERATORS,$te=Q3("iterator"),Hte=function(){return this},Vte=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=W8(Nte,{next:n3(1,s)}),O9(u,l,!1),T9[l]=Ite;var c,f,d,p=function(e){if(e===o&&m)return m;if(!zte&&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[$te]||v["@@iterator"]||o&&v[o],m=!zte&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Fte(b.call(new e)))!==Object.prototype&&c.next&&(Fte(c)!==Mte&&(S9?S9(c,Mte):y3(c[$te])||R5(c,$te,Hte)),O9(c,h,!0)),Lte&&"values"==o&&y&&"values"!==y.name&&(Rte?g5(v,"name","values"):(g=!0,m=function(){return J6(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(zte||g||!(d in v))&&R5(v,d,f[d]);else h8({target:t,proto:!0,forced:zte||g},f);return v[$te]!==m&&R5(v,$te,m,{name:o}),T9[t]=m,f},Ute=P5.set,Wte=P5.getterFor("Array Iterator"),Gte=Vte(Array,"Array",(function(e,t){Ute(this,{type:"Array Iterator",target:v3(e),index:0,kind:t})}),(function(){var e=Wte(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");T9.Arguments=T9.Array,K8("keys"),K8("values"),K8("entries");var qte=J7.charAt,Kte=P5.set,Yte=P5.getterFor("String Iterator");Vte(String,"String",(function(e){Kte(this,{type:"String Iterator",string:D8(e),index:0})}),(function(){var e,t=Yte(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qte(n,r),t.index+=e.length,{value:e,done:!1})}));var Xte=function(e,t,n){var r=n5(t);r in e?h5.f(e,r,n3(0,n)):e[r]=n},Zte=K6.Array,Jte=Math.max,Qte=t8.f,ene="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tne={f:function(e){return ene&&"Window"==c3(e)?function(e){try{return Qte(e)}catch(t){return function(e,t,n){for(var r=q5(e),o=U5(void 0,r),i=U5(r,r),a=Zte(Jte(i-o,0)),u=0;o<i;o++,u++)Xte(a,u,e[o]);return a.length=u,a}(ene)}}(e):Qte(v3(e))}},nne=Y6((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),rne=Object.isExtensible,one=Y6((function(){rne(1)}))||nne?function(e){return!!m3(e)&&(!nne||"ArrayBuffer"!=c3(e))&&(!rne||rne(e))}:rne,ine=!Y6((function(){return Object.isExtensible(Object.preventExtensions({}))})),ane=U6((function(e){var t=h5.f,n=!1,r=K3("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=t8.f,t=u3([].splice),o={};o[r]=1,e(o).length&&(t8.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},h8({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:tne.f}))},fastKey:function(e,t){if(!m3(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!U3(e,r)){if(!one(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!U3(e,r)){if(!one(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return ine&&n&&one(e)&&!U3(e,r)&&i(e),e}};x5[r]=!0})),une=ane.getWeakData,sne=P5.set,lne=P5.getterFor,cne=p7.find,fne=p7.findIndex,dne=u3([].splice),pne=0,hne=function(e){return e.frozen||(e.frozen=new gne)},gne=function(){this.entries=[]},vne=function(e,t){return cne(e.entries,(function(e){return e[0]===t}))};gne.prototype={get:function(e){var t=vne(this,e);if(t)return t[1]},has:function(e){return!!vne(this,e)},set:function(e,t){var n=vne(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=fne(this.entries,(function(t){return t[0]===e}));return~t&&dne(this.entries,t,1),!!~t}};var yne,mne={getConstructor:function(e,t,n,r){var o=e((function(e,o){F9(e,i),sne(e,{type:t,id:pne++,frozen:void 0}),null!=o&&$9(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=lne(t),u=function(e,t,n){var r=a(e),o=une(f5(t),!0);return!0===o?hne(r).set(t,n):o[r.id]=n,e};return E9(i,{delete:function(e){var t=a(this);if(!m3(e))return!1;var n=une(e);return!0===n?hne(t).delete(e):n&&U3(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!m3(e))return!1;var n=une(e);return!0===n?hne(t).has(e):n&&U3(n,t.id)}}),E9(i,n?{get:function(e){var t=a(this);if(m3(e)){var n=une(e);return!0===n?hne(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}},bne=P5.enforce,wne=!K6.ActiveXObject&&"ActiveXObject"in K6,Ene=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Dne=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=K6[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=u3(u[e]);R5(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!m3(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!m3(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!m3(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(d8(e,!y3(a)||!(o||u.forEach&&!Y6((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ane.enable();else if(d8(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Y6((function(){f.has(1)})),h=X9((function(e){new a(e)})),g=!o&&Y6((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){F9(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,S9&&y3(c=o.constructor)&&c!==l&&m3(f=c.prototype)&&f!==l.prototype&&S9(n,f),n);return null!=t&&$9(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,h8({global:!0,forced:s!=a},l),O9(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Ene,mne);if(D5&&wne){yne=mne.getConstructor(Ene,"WeakMap",!0),ane.enable();var Cne=Dne.prototype,Sne=u3(Cne.delete),xne=u3(Cne.has),Ane=u3(Cne.get),One=u3(Cne.set);E9(Cne,{delete:function(e){if(m3(e)&&!one(e)){var t=bne(this);return t.frozen||(t.frozen=new yne),Sne(this,e)||t.frozen.delete(e)}return Sne(this,e)},has:function(e){if(m3(e)&&!one(e)){var t=bne(this);return t.frozen||(t.frozen=new yne),xne(this,e)||t.frozen.has(e)}return xne(this,e)},get:function(e){if(m3(e)&&!one(e)){var t=bne(this);return t.frozen||(t.frozen=new yne),xne(this,e)?Ane(this,e):t.frozen.get(e)}return Ane(this,e)},set:function(e,t){if(m3(e)&&!one(e)){var n=bne(this);n.frozen||(n.frozen=new yne),xne(this,e)?One(this,e,t):n.frozen.set(e,t)}else One(this,e,t);return this}})}var kne={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},Bne=i5("span").classList,Fne=Bne&&Bne.constructor&&Bne.constructor.prototype,Tne=Fne===Object.prototype?void 0:Fne,_ne=Q3("iterator"),Pne=Q3("toStringTag"),jne=Gte.values,Nne=function(e,t){if(e){if(e[_ne]!==jne)try{g5(e,_ne,jne)}catch(r){e[_ne]=jne}if(e[Pne]||g5(e,Pne,t),kne[t])for(var n in Gte)if(e[n]!==Gte[n])try{g5(e,n,Gte[n])}catch(r){e[n]=Gte[n]}}};for(var Ine in kne)Nne(K6[Ine]&&K6[Ine].prototype,Ine);Nne(Tne,"DOMTokenList");var Lne=L5.EXISTS,Rne=h5.f,Mne=Function.prototype,zne=u3(Mne.toString),$ne=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Hne=u3($ne.exec);X6&&!Lne&&Rne(Mne,"name",{configurable:!0,get:function(){try{return Hne($ne,zne(this))[1]}catch(Sl){return""}}});var Vne=Q3("species"),Une=A3>=51||!Y6((function(){var e=[];return(e.constructor={})[Vne]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Wne=Q3("species"),Gne=K6.Array,qne=Math.max;function Kne(e){return e.getMenuConfig("uploadVideo")}h8({target:"Array",proto:!0,forced:!Une},{slice:function(e,t){var n,r,o,i=v3(this),a=q5(i),u=U5(e,a),s=U5(void 0===t?a:t,a);if(Q8(i)&&(n=i.constructor,(u7(n)&&(n===Gne||Q8(n.prototype))||m3(n)&&null===(n=n[Wne]))&&(n=void 0),n===Gne||void 0===n))return Q9(i,u,s);for(r=new(void 0===n?Gne:n)(qne(s-u,0)),o=0;u<s;u++,o++)u in i&&Xte(r,o,i[u]);return r.length=o,r}});var Yne=new WeakMap;function Xne(e,t){return z6(this,void 0,void 0,(function(){var n,r,o,i;return $6(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Yne.get(e);if(null!=t)return t;var n=Kne(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=p_(M6(M6({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return yte(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;yte(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Yne.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 Zne=function(){function e(){this.title=nP("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 yte(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Ap("body"),s=Ap('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;z6(this,void 0,void 0,(function(){var o,i,a,u,s,l;return $6(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Kne(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 yte(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Xne(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!$f.isCollapsed(t)||!!CO.getSelectedElems(e).some((function(t){var n=CO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Jne=L5.PROPER,Qne=RegExp.prototype,ere=Qne.toString,tre=u3(E7),nre=Y6((function(){return"/a/b"!=ere.call({source:"a",flags:"b"})})),rre=Jne&&"toString"!=ere.name;function ore(){return b9("w-e-insert-video")}(nre||rre)&&R5(RegExp.prototype,"toString",(function(){var e=f5(this),t=D8(e.source),n=e.flags;return"/"+t+"/"+D8(void 0===n&&w3(Qne,e)&&!("flags"in Qne)?tre(e):n)}),{unsafe:!0});var ire=function(){function e(){this.title=nP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=ore(),this.heightInputId=ore(),this.buttonId=ore()}return e.prototype.getSelectedVideoNode=function(e){return CO.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=H6(VT(nP("videoModule.width"),n,"auto"),2),a=i[0],u=Ap(i[1]),s=H6(VT(nP("videoModule.height"),r,"auto"),2),l=s[0],c=Ap(s[1]),f=H6(UT(o,nP("videoModule.ok")),1)[0];if(null==this.$content){var d=Ap("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=parseInt(o),u=parseInt(i),s=a?a.toString():"auto",l=u?u.toString():"auto";e.restoreSelection(),dd.setNodes(e,{width:s,height:l},{match:function(e){return CO.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}(),are={renderElems:[N8],elemsToHtml:[I8],preParseHtml:[X8],parseElemsHtml:[w7],menus:[{key:"insertVideo",factory:function(){return new bte},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Zne},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 ire}}],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=H6(e,2),o=t[0],i=t[1];return"video"===CO.getNodeType(o)&&CO.isLastNode(r,o)&&dd.insertNodes(r,CO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};tP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),tP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var ure="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function sre(e){var t={exports:{}};return e(t,t.exports),t.exports}var lre,cre,fre=function(e){return e&&e.Math==Math&&e},dre=fre("object"==typeof globalThis&&globalThis)||fre("object"==typeof window&&window)||fre("object"==typeof self&&self)||fre("object"==typeof ure&&ure)||function(){return this}()||Function("return this")(),pre=function(e){try{return!!e()}catch(t){return!0}},hre=!pre((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),gre=Function.prototype.call,vre=gre.bind?gre.bind(gre):function(){return gre.apply(gre,arguments)},yre={}.propertyIsEnumerable,mre=Object.getOwnPropertyDescriptor,bre={f:mre&&!yre.call({1:2},1)?function(e){var t=mre(this,e);return!!t&&t.enumerable}:yre},wre=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ere=Function.prototype,Dre=Ere.bind,Cre=Ere.call,Sre=Dre&&Dre.bind(Cre),xre=Dre?function(e){return e&&Sre(Cre,e)}:function(e){return e&&function(){return Cre.apply(e,arguments)}},Are=xre({}.toString),Ore=xre("".slice),kre=function(e){return Ore(Are(e),8,-1)},Bre=dre.Object,Fre=xre("".split),Tre=pre((function(){return!Bre("z").propertyIsEnumerable(0)}))?function(e){return"String"==kre(e)?Fre(e,""):Bre(e)}:Bre,_re=dre.TypeError,Pre=function(e){if(null==e)throw _re("Can't call method on "+e);return e},jre=function(e){return Tre(Pre(e))},Nre=function(e){return"function"==typeof e},Ire=function(e){return"object"==typeof e?null!==e:Nre(e)},Lre=function(e,t){return arguments.length<2?function(e){return Nre(e)?e:void 0}(dre[e]):dre[e]&&dre[e][t]},Rre=xre({}.isPrototypeOf),Mre=Lre("navigator","userAgent")||"",zre=dre.process,$re=dre.Deno,Hre=zre&&zre.versions||$re&&$re.version,Vre=Hre&&Hre.v8;Vre&&(cre=(lre=Vre.split("."))[0]>0&&lre[0]<4?1:+(lre[0]+lre[1])),!cre&&Mre&&(!(lre=Mre.match(/Edge\/(\d+)/))||lre[1]>=74)&&(lre=Mre.match(/Chrome\/(\d+)/))&&(cre=+lre[1]);var Ure=cre,Wre=!!Object.getOwnPropertySymbols&&!pre((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ure&&Ure<41})),Gre=Wre&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qre=dre.Object,Kre=Gre?function(e){return"symbol"==typeof e}:function(e){var t=Lre("Symbol");return Nre(t)&&Rre(t.prototype,qre(e))},Yre=dre.String,Xre=function(e){try{return Yre(e)}catch(t){return"Object"}},Zre=dre.TypeError,Jre=function(e){if(Nre(e))return e;throw Zre(Xre(e)+" is not a function")},Qre=function(e,t){var n=e[t];return null==n?void 0:Jre(n)},eoe=dre.TypeError,toe=Object.defineProperty,noe=function(e,t){try{toe(dre,e,{value:t,configurable:!0,writable:!0})}catch(oP){dre[e]=t}return t},roe=dre["__core-js_shared__"]||noe("__core-js_shared__",{}),ooe=sre((function(e){(e.exports=function(e,t){return roe[e]||(roe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ioe=dre.Object,aoe=function(e){return ioe(Pre(e))},uoe=xre({}.hasOwnProperty),soe=Object.hasOwn||function(e,t){return uoe(aoe(e),t)},loe=0,coe=Math.random(),foe=xre(1..toString),doe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+foe(++loe+coe,36)},poe=ooe("wks"),hoe=dre.Symbol,goe=hoe&&hoe.for,voe=Gre?hoe:hoe&&hoe.withoutSetter||doe,yoe=function(e){if(!soe(poe,e)||!Wre&&"string"!=typeof poe[e]){var t="Symbol."+e;Wre&&soe(hoe,e)?poe[e]=hoe[e]:poe[e]=Gre&&goe?goe(t):voe(t)}return poe[e]},moe=dre.TypeError,boe=yoe("toPrimitive"),woe=function(e){var t=function(e,t){if(!Ire(e)||Kre(e))return e;var n,r=Qre(e,boe);if(r){if(void 0===t&&(t="default"),n=vre(r,e,t),!Ire(n)||Kre(n))return n;throw moe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Nre(n=e.toString)&&!Ire(r=vre(n,e)))return r;if(Nre(n=e.valueOf)&&!Ire(r=vre(n,e)))return r;if("string"!==t&&Nre(n=e.toString)&&!Ire(r=vre(n,e)))return r;throw eoe("Can't convert object to primitive value")}(e,t)}(e,"string");return Kre(t)?t:t+""},Eoe=dre.document,Doe=Ire(Eoe)&&Ire(Eoe.createElement),Coe=function(e){return Doe?Eoe.createElement(e):{}},Soe=!hre&&!pre((function(){return 7!=Object.defineProperty(Coe("div"),"a",{get:function(){return 7}}).a})),xoe=Object.getOwnPropertyDescriptor,Aoe={f:hre?xoe:function(e,t){if(e=jre(e),t=woe(t),Soe)try{return xoe(e,t)}catch(n){}if(soe(e,t))return wre(!vre(bre.f,e,t),e[t])}},Ooe=dre.String,koe=dre.TypeError,Boe=function(e){if(Ire(e))return e;throw koe(Ooe(e)+" is not an object")},Foe=dre.TypeError,Toe=Object.defineProperty,_oe={f:hre?Toe:function(e,t,n){if(Boe(e),t=woe(t),Boe(n),Soe)try{return Toe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Foe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Poe=hre?function(e,t,n){return _oe.f(e,t,wre(1,n))}:function(e,t,n){return e[t]=n,e},joe=xre(Function.toString);Nre(roe.inspectSource)||(roe.inspectSource=function(e){return joe(e)});var Noe,Ioe,Loe,Roe=roe.inspectSource,Moe=dre.WeakMap,zoe=Nre(Moe)&&/native code/.test(Roe(Moe)),$oe=ooe("keys"),Hoe=function(e){return $oe[e]||($oe[e]=doe(e))},Voe={},Uoe=dre.TypeError,Woe=dre.WeakMap;if(zoe||roe.state){var Goe=roe.state||(roe.state=new Woe),qoe=xre(Goe.get),Koe=xre(Goe.has),Yoe=xre(Goe.set);Noe=function(e,t){if(Koe(Goe,e))throw new Uoe("Object already initialized");return t.facade=e,Yoe(Goe,e,t),t},Ioe=function(e){return qoe(Goe,e)||{}},Loe=function(e){return Koe(Goe,e)}}else{var Xoe=Hoe("state");Voe[Xoe]=!0,Noe=function(e,t){if(soe(e,Xoe))throw new Uoe("Object already initialized");return t.facade=e,Poe(e,Xoe,t),t},Ioe=function(e){return soe(e,Xoe)?e[Xoe]:{}},Loe=function(e){return soe(e,Xoe)}}var Zoe={set:Noe,get:Ioe,has:Loe,enforce:function(e){return Loe(e)?Ioe(e):Noe(e,{})},getterFor:function(e){return function(t){var n;if(!Ire(t)||(n=Ioe(t)).type!==e)throw Uoe("Incompatible receiver, "+e+" required");return n}}},Joe=Function.prototype,Qoe=hre&&Object.getOwnPropertyDescriptor,eie=soe(Joe,"name"),tie={EXISTS:eie,PROPER:eie&&"something"===function(){}.name,CONFIGURABLE:eie&&(!hre||hre&&Qoe(Joe,"name").configurable)},nie=sre((function(e){var t=tie.CONFIGURABLE,n=Zoe.get,r=Zoe.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;Nre(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!soe(i,"name")||t&&i.name!==f)&&Poe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==dre?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Poe(e,n,i)):l?e[n]=i:noe(n,i)})(Function.prototype,"toString",(function(){return Nre(this)&&n(this).source||Roe(this)}))})),rie=Math.ceil,oie=Math.floor,iie=function(e){var t=+e;return t!=t||0===t?0:(t>0?oie:rie)(t)},aie=Math.max,uie=Math.min,sie=function(e,t){var n=iie(e);return n<0?aie(n+t,0):uie(n,t)},lie=Math.min,cie=function(e){return e>0?lie(iie(e),9007199254740991):0},fie=function(e){return cie(e.length)},die=function(e){return function(t,n,r){var o,i=jre(t),a=fie(i),u=sie(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),pie=xre([].push),hie=function(e,t){var n,r=jre(e),o=0,i=[];for(n in r)!soe(Voe,n)&&soe(r,n)&&pie(i,n);for(;t.length>o;)soe(r,n=t[o++])&&(~die(i,n)||pie(i,n));return i},gie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vie=gie.concat("length","prototype"),yie={f:Object.getOwnPropertyNames||function(e){return hie(e,vie)}},mie={f:Object.getOwnPropertySymbols},bie=xre([].concat),wie=Lre("Reflect","ownKeys")||function(e){var t=yie.f(Boe(e)),n=mie.f;return n?bie(t,n(e)):t},Eie=function(e,t){for(var n=wie(t),r=_oe.f,o=Aoe.f,i=0;i<n.length;i++){var a=n[i];soe(e,a)||r(e,a,o(t,a))}},Die=/#|\.prototype\./,Cie=function(e,t){var n=xie[Sie(e)];return n==Oie||n!=Aie&&(Nre(t)?pre(t):!!t)},Sie=Cie.normalize=function(e){return String(e).replace(Die,".").toLowerCase()},xie=Cie.data={},Aie=Cie.NATIVE="N",Oie=Cie.POLYFILL="P",kie=Cie,Bie=Aoe.f,Fie=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?dre:l?dre[u]||noe(u,{}):(dre[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Bie(n,r))&&a.value:n[r],!kie(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Eie(i,o)}(e.sham||o&&o.sham)&&Poe(i,"sham",!0),nie(n,r,i,e)}},Tie=Array.isArray||function(e){return"Array"==kre(e)},_ie={};_ie[yoe("toStringTag")]="z";var Pie="[object z]"===String(_ie),jie=yoe("toStringTag"),Nie=dre.Object,Iie="Arguments"==kre(function(){return arguments}()),Lie=Pie?kre: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=Nie(e),jie))?n:Iie?kre(t):"Object"==(r=kre(t))&&Nre(t.callee)?"Arguments":r},Rie=function(){},Mie=[],zie=Lre("Reflect","construct"),$ie=/^\s*(?:class|function)\b/,Hie=xre($ie.exec),Vie=!$ie.exec(Rie),Uie=function(e){if(!Nre(e))return!1;try{return zie(Rie,Mie,e),!0}catch(t){return!1}},Wie=!zie||pre((function(){var e;return Uie(Uie.call)||!Uie(Object)||!Uie((function(){e=!0}))||e}))?function(e){if(!Nre(e))return!1;switch(Lie(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Vie||!!Hie($ie,Roe(e))}:Uie,Gie=function(e,t,n){var r=woe(t);r in e?_oe.f(e,r,wre(0,n)):e[r]=n},qie=yoe("species"),Kie=xre([].slice),Yie=Ure>=51||!pre((function(){var e=[];return(e.constructor={})[qie]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Xie=yoe("species"),Zie=dre.Array,Jie=Math.max;Fie({target:"Array",proto:!0,forced:!Yie},{slice:function(e,t){var n,r,o,i=jre(this),a=fie(i),u=sie(e,a),s=sie(void 0===t?a:t,a);if(Tie(i)&&(n=i.constructor,(Wie(n)&&(n===Zie||Tie(n.prototype))||Ire(n)&&null===(n=n[Xie]))&&(n=void 0),n===Zie||void 0===n))return Kie(i,u,s);for(r=new(void 0===n?Zie:n)(Jie(s-u,0)),o=0;u<s;u++,o++)u in i&&Gie(r,o,i[u]);return r.length=o,r}});var Qie=Pie?{}.toString:function(){return"[object "+Lie(this)+"]"};Pie||nie(Object.prototype,"toString",Qie,{unsafe:!0});var eae,tae=dre.String,nae=function(e){if("Symbol"===Lie(e))throw TypeError("Cannot convert a Symbol value to a string");return tae(e)},rae=function(){var e=Boe(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},oae=dre.RegExp,iae=pre((function(){var e=oae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),aae=iae||pre((function(){return!oae("a","y").sticky})),uae={BROKEN_CARET:iae||pre((function(){var e=oae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:aae,UNSUPPORTED_Y:iae},sae=Object.keys||function(e){return hie(e,gie)},lae=hre?Object.defineProperties:function(e,t){Boe(e);for(var n,r=jre(t),o=sae(t),i=o.length,a=0;i>a;)_oe.f(e,n=o[a++],r[n]);return e},cae=Lre("document","documentElement"),fae=Hoe("IE_PROTO"),dae=function(){},pae=function(e){return"<script>"+e+"<\/script>"},hae=function(e){e.write(pae("")),e.close();var t=e.parentWindow.Object;return e=null,t},gae=function(){try{eae=new ActiveXObject("htmlfile")}catch(r){}var e,t;gae="undefined"!=typeof document?document.domain&&eae?hae(eae):((t=Coe("iframe")).style.display="none",cae.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pae("document.F=Object")),e.close(),e.F):hae(eae);for(var n=gie.length;n--;)delete gae.prototype[gie[n]];return gae()};Voe[fae]=!0;var vae,yae,mae=Object.create||function(e,t){var n;return null!==e?(dae.prototype=Boe(e),n=new dae,dae.prototype=null,n[fae]=e):n=gae(),void 0===t?n:lae(n,t)},bae=dre.RegExp,wae=pre((function(){var e=bae(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Eae=dre.RegExp,Dae=pre((function(){var e=Eae("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Cae=Zoe.get,Sae=ooe("native-string-replace",String.prototype.replace),xae=RegExp.prototype.exec,Aae=xae,Oae=xre("".charAt),kae=xre("".indexOf),Bae=xre("".replace),Fae=xre("".slice),Tae=(yae=/b*/g,vre(xae,vae=/a/,"a"),vre(xae,yae,"a"),0!==vae.lastIndex||0!==yae.lastIndex),_ae=uae.BROKEN_CARET,Pae=void 0!==/()??/.exec("")[1];(Tae||Pae||_ae||wae||Dae)&&(Aae=function(e){var t,n,r,o,i,a,u,s=this,l=Cae(s),c=nae(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=vre(Aae,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=_ae&&s.sticky,h=vre(rae,s),g=s.source,v=0,y=c;if(p&&(h=Bae(h,"y",""),-1===kae(h,"g")&&(h+="g"),y=Fae(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Oae(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Pae&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Tae&&(r=s.lastIndex),o=vre(xae,p?n:s,y),p?o?(o.input=Fae(o.input,v),o[0]=Fae(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Tae&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Pae&&o&&o.length>1&&vre(Sae,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=mae(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var jae=Aae;Fie({target:"RegExp",proto:!0,forced:/./.exec!==jae},{exec:jae});var Nae=Function.prototype,Iae=Nae.apply,Lae=Nae.bind,Rae=Nae.call,Mae="object"==typeof Reflect&&Reflect.apply||(Lae?Rae.bind(Iae):function(){return Rae.apply(Iae,arguments)}),zae=yoe("species"),$ae=RegExp.prototype,Hae=yoe("match"),Vae=dre.TypeError,Uae=yoe("species"),Wae=function(e,t){var n,r=Boe(e).constructor;return void 0===r||null==(n=Boe(r)[Uae])?t:function(e){if(Wie(e))return e;throw Vae(Xre(e)+" is not a constructor")}(n)},Gae=xre("".charAt),qae=xre("".charCodeAt),Kae=xre("".slice),Yae=function(e){return function(t,n){var r,o,i=nae(Pre(t)),a=iie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qae(i,a))<55296||r>56319||a+1===u||(o=qae(i,a+1))<56320||o>57343?e?Gae(i,a):r:e?Kae(i,a,a+2):o-56320+(r-55296<<10)+65536}},Xae={codeAt:Yae(!1),charAt:Yae(!0)},Zae=Xae.charAt,Jae=function(e,t,n){return t+(n?Zae(e,t).length:1)},Qae=dre.Array,eue=Math.max,tue=function(e,t,n){for(var r=fie(e),o=sie(t,r),i=sie(void 0===n?r:n,r),a=Qae(eue(i-o,0)),u=0;o<i;o++,u++)Gie(a,u,e[o]);return a.length=u,a},nue=dre.TypeError,rue=function(e,t){var n=e.exec;if(Nre(n)){var r=vre(n,e,t);return null!==r&&Boe(r),r}if("RegExp"===kre(e))return vre(jae,e,t);throw nue("RegExp#exec called on incompatible receiver")},oue=uae.UNSUPPORTED_Y,iue=Math.min,aue=[].push,uue=xre(/./.exec),sue=xre(aue),lue=xre("".slice);!function(e,t,n,r){var o,i,a,u=yoe(e),s=!pre((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!pre((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[zae]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=xre(/./[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=nae(Pre(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Ire(n=e)||!(void 0!==(r=n[Hae])?r:"RegExp"==kre(n)))return vre(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=vre(jae,p,o))&&!((s=p.lastIndex)>d&&(sue(c,lue(o,d,u.index)),u.length>1&&u.index<o.length&&Mae(aue,c,tue(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&uue(p,"")||sue(c,""):sue(c,lue(o,d)),c.length>a?tue(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:vre(i,this,e,t)}:i,[function(e,t){var n=Pre(this),r=null==e?void 0:Qre(e,o);return r?vre(r,e,n,t):vre(a,nae(n),e,t)},function(e,t){var n=Boe(this),r=nae(e),o=function(e,t,n,r,o){var i=xre(e),a=t.exec;return a===jae||a===$ae.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=Wae(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(oue?"g":"y"),d=new u(oue?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===rue(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=oue?0:g;var y,m=rue(d,oue?lue(r,g):r);if(null===m||(y=iue(cie(d.lastIndex+(oue?g:0)),r.length))===h)g=Jae(r,g,l);else{if(sue(v,lue(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(sue(v,m[b]),v.length===p)return v;g=h=y}}return sue(v,lue(r,h)),v}]);nie(String.prototype,e,f[0]),nie($ae,u,f[1])}r&&Poe($ae[u],"sham",!0)}("split",0,!!pre((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]})),oue);
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */
- var cue=function(){return cue=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},cue.apply(this,arguments)};function fue(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 due(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 pue=yoe("unscopables"),hue=Array.prototype;null==hue[pue]&&_oe.f(hue,pue,{configurable:!0,value:mae(null)});var gue,vue,yue,mue=function(e){hue[pue][e]=!0},bue={},wue=!pre((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Eue=Hoe("IE_PROTO"),Due=dre.Object,Cue=Due.prototype,Sue=wue?Due.getPrototypeOf:function(e){var t=aoe(e);if(soe(t,Eue))return t[Eue];var n=t.constructor;return Nre(n)&&t instanceof n?n.prototype:t instanceof Due?Cue:null},xue=yoe("iterator"),Aue=!1;[].keys&&("next"in(yue=[].keys())?(vue=Sue(Sue(yue)))!==Object.prototype&&(gue=vue):Aue=!0);var Oue=null==gue||pre((function(){var e={};return gue[xue].call(e)!==e}));Oue&&(gue={}),Nre(gue[xue])||nie(gue,xue,(function(){return this}));var kue={IteratorPrototype:gue,BUGGY_SAFARI_ITERATORS:Aue},Bue=_oe.f,Fue=yoe("toStringTag"),Tue=function(e,t,n){e&&!soe(e=n?e:e.prototype,Fue)&&Bue(e,Fue,{configurable:!0,value:t})},_ue=kue.IteratorPrototype,Pue=function(){return this},jue=dre.String,Nue=dre.TypeError,Iue=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=xre(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Boe(n),function(e){if("object"==typeof e||Nre(e))return e;throw Nue("Can't set "+jue(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Lue=tie.PROPER,Rue=tie.CONFIGURABLE,Mue=kue.IteratorPrototype,zue=kue.BUGGY_SAFARI_ITERATORS,$ue=yoe("iterator"),Hue=function(){return this},Vue=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=mae(_ue,{next:wre(1,s)}),Tue(u,l,!1),bue[l]=Pue;var c,f,d,p=function(e){if(e===o&&m)return m;if(!zue&&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[$ue]||v["@@iterator"]||o&&v[o],m=!zue&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Sue(b.call(new e)))!==Object.prototype&&c.next&&(Sue(c)!==Mue&&(Iue?Iue(c,Mue):Nre(c[$ue])||nie(c,$ue,Hue)),Tue(c,h,!0)),Lue&&"values"==o&&y&&"values"!==y.name&&(Rue?Poe(v,"name","values"):(g=!0,m=function(){return vre(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(zue||g||!(d in v))&&nie(v,d,f[d]);else Fie({target:t,proto:!0,forced:zue||g},f);return v[$ue]!==m&&nie(v,$ue,m,{name:o}),bue[t]=m,f},Uue=Zoe.set,Wue=Zoe.getterFor("Array Iterator"),Gue=Vue(Array,"Array",(function(e,t){Uue(this,{type:"Array Iterator",target:jre(e),index:0,kind:t})}),(function(){var e=Wue(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");bue.Arguments=bue.Array,mue("keys"),mue("values"),mue("entries");var que=Xae.charAt,Kue=Zoe.set,Yue=Zoe.getterFor("String Iterator");Vue(String,"String",(function(e){Kue(this,{type:"String Iterator",string:nae(e),index:0})}),(function(){var e,t=Yue(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=que(n,r),t.index+=e.length,{value:e,done:!1})}));var Xue=function(e,t,n){for(var r in t)nie(e,r,t[r],n);return e},Zue=yie.f,Jue="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Que={f:function(e){return Jue&&"Window"==kre(e)?function(e){try{return Zue(e)}catch(t){return tue(Jue)}}(e):Zue(jre(e))}},ese=pre((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),tse=Object.isExtensible,nse=pre((function(){tse(1)}))||ese?function(e){return!!Ire(e)&&(!ese||"ArrayBuffer"!=kre(e))&&(!tse||tse(e))}:tse,rse=!pre((function(){return Object.isExtensible(Object.preventExtensions({}))})),ose=sre((function(e){var t=_oe.f,n=!1,r=doe("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=yie.f,t=xre([].splice),o={};o[r]=1,e(o).length&&(yie.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},Fie({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Que.f}))},fastKey:function(e,t){if(!Ire(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!soe(e,r)){if(!nse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!soe(e,r)){if(!nse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return rse&&n&&nse(e)&&!soe(e,r)&&i(e),e}};Voe[r]=!0})),ise=xre(xre.bind),ase=function(e,t){return Jre(e),void 0===t?e:ise?ise(e,t):function(){return e.apply(t,arguments)}},use=yoe("iterator"),sse=Array.prototype,lse=yoe("iterator"),cse=function(e){if(null!=e)return Qre(e,lse)||Qre(e,"@@iterator")||bue[Lie(e)]},fse=dre.TypeError,dse=function(e,t,n){var r,o;Boe(e);try{if(!(r=Qre(e,"return"))){if("throw"===t)throw n;return n}r=vre(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Boe(r),n},pse=dre.TypeError,hse=function(e,t){this.stopped=e,this.result=t},gse=hse.prototype,vse=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=ase(t,f),v=function(e){return r&&dse(r,"normal",e),new hse(!0,e)},y=function(e){return d?(Boe(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=cse(e)))throw pse(Xre(e)+" is not iterable");if(void 0!==(c=o)&&(bue.Array===c||sse[use]===c)){for(i=0,a=fie(e);a>i;i++)if((u=y(e[i]))&&Rre(gse,u))return u;return new hse(!1)}r=function(e,t){var n=arguments.length<2?cse(e):t;if(Jre(n))return Boe(vre(n,e));throw fse(Xre(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=vre(s,r)).done;){try{u=y(l.value)}catch(m){dse(r,"throw",m)}if("object"==typeof u&&u&&Rre(gse,u))return u}return new hse(!1)},yse=dre.TypeError,mse=function(e,t){if(Rre(t,e))return e;throw yse("Incorrect invocation")},bse=yoe("iterator"),wse=!1;try{var Ese=0,Dse={next:function(){return{done:!!Ese++}},return:function(){wse=!0}};Dse[bse]=function(){return this},Array.from(Dse,(function(){throw 2}))}catch(tve){}var Cse=function(e,t){if(!t&&!wse)return!1;var n=!1;try{var r={};r[bse]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Sse=yoe("species"),xse=dre.Array,Ase=function(e,t){return new(Tie(n=e)&&(r=n.constructor,(Wie(r)&&(r===xse||Tie(r.prototype))||Ire(r)&&null===(r=r[Sse]))&&(r=void 0)),void 0===r?xse:r)(0===t?0:t);var n,r},Ose=xre([].push),kse=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=aoe(s),g=Tre(h),v=ase(l,c),y=fie(g),m=0,b=f||Ase,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:Ose(w,d)}else switch(e){case 4:return!1;case 7:Ose(w,d)}return i?-1:r||o?o:w}},Bse={forEach:kse(0),map:kse(1),filter:kse(2),some:kse(3),every:kse(4),find:kse(5),findIndex:kse(6),filterReject:kse(7)},Fse=ose.getWeakData,Tse=Zoe.set,_se=Zoe.getterFor,Pse=Bse.find,jse=Bse.findIndex,Nse=xre([].splice),Ise=0,Lse=function(e){return e.frozen||(e.frozen=new Rse)},Rse=function(){this.entries=[]},Mse=function(e,t){return Pse(e.entries,(function(e){return e[0]===t}))};Rse.prototype={get:function(e){var t=Mse(this,e);if(t)return t[1]},has:function(e){return!!Mse(this,e)},set:function(e,t){var n=Mse(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=jse(this.entries,(function(t){return t[0]===e}));return~t&&Nse(this.entries,t,1),!!~t}};var zse,$se={getConstructor:function(e,t,n,r){var o=e((function(e,o){mse(e,i),Tse(e,{type:t,id:Ise++,frozen:void 0}),null!=o&&vse(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=_se(t),u=function(e,t,n){var r=a(e),o=Fse(Boe(t),!0);return!0===o?Lse(r).set(t,n):o[r.id]=n,e};return Xue(i,{delete:function(e){var t=a(this);if(!Ire(e))return!1;var n=Fse(e);return!0===n?Lse(t).delete(e):n&&soe(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Ire(e))return!1;var n=Fse(e);return!0===n?Lse(t).has(e):n&&soe(n,t.id)}}),Xue(i,n?{get:function(e){var t=a(this);if(Ire(e)){var n=Fse(e);return!0===n?Lse(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}},Hse=Zoe.enforce,Vse=!dre.ActiveXObject&&"ActiveXObject"in dre,Use=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Wse=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=dre[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=xre(u[e]);nie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Ire(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Ire(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Ire(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(kie(e,!Nre(a)||!(o||u.forEach&&!pre((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),ose.enable();else if(kie(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=pre((function(){f.has(1)})),h=Cse((function(e){new a(e)})),g=!o&&pre((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){mse(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Iue&&Nre(c=o.constructor)&&c!==l&&Ire(f=c.prototype)&&f!==l.prototype&&Iue(n,f),n);return null!=t&&vse(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,Fie({global:!0,forced:s!=a},l),Tue(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Use,$se);if(zoe&&Vse){zse=$se.getConstructor(Use,"WeakMap",!0),ose.enable();var Gse=Wse.prototype,qse=xre(Gse.delete),Kse=xre(Gse.has),Yse=xre(Gse.get),Xse=xre(Gse.set);Xue(Gse,{delete:function(e){if(Ire(e)&&!nse(e)){var t=Hse(this);return t.frozen||(t.frozen=new zse),qse(this,e)||t.frozen.delete(e)}return qse(this,e)},has:function(e){if(Ire(e)&&!nse(e)){var t=Hse(this);return t.frozen||(t.frozen=new zse),Kse(this,e)||t.frozen.has(e)}return Kse(this,e)},get:function(e){if(Ire(e)&&!nse(e)){var t=Hse(this);return t.frozen||(t.frozen=new zse),Kse(this,e)?Yse(this,e):t.frozen.get(e)}return Yse(this,e)},set:function(e,t){if(Ire(e)&&!nse(e)){var n=Hse(this);n.frozen||(n.frozen=new zse),Kse(this,e)?Xse(this,e,t):n.frozen.set(e,t)}else Xse(this,e,t);return this}})}var Zse={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},Jse=Coe("span").classList,Qse=Jse&&Jse.constructor&&Jse.constructor.prototype,ele=Qse===Object.prototype?void 0:Qse,tle=yoe("iterator"),nle=yoe("toStringTag"),rle=Gue.values,ole=function(e,t){if(e){if(e[tle]!==rle)try{Poe(e,tle,rle)}catch(r){e[tle]=rle}if(e[nle]||Poe(e,nle,t),Zse[t])for(var n in Gue)if(e[n]!==Gue[n])try{Poe(e,n,Gue[n])}catch(r){e[n]=Gue[n]}}};for(var ile in Zse)ole(dre[ile]&&dre[ile].prototype,ile);ole(ele,"DOMTokenList");var ale=function(e,t){var n=[][e];return!!n&&pre((function(){n.call(null,t||function(){throw 1},1)}))},ule=Bse.forEach,sle=ale("forEach")?[].forEach:function(e){return ule(this,e,arguments.length>1?arguments[1]:void 0)},lle=function(e){if(e&&e.forEach!==sle)try{Poe(e,"forEach",sle)}catch(t){e.forEach=sle}};for(var cle in Zse)Zse[cle]&&lle(dre[cle]&&dre[cle].prototype);lle(ele);var fle,dle,ple,hle,gle=dre.Promise,vle=yoe("species"),yle=/(?:ipad|iphone|ipod).*applewebkit/i.test(Mre),mle="process"==kre(dre.process),ble=dre.setImmediate,wle=dre.clearImmediate,Ele=dre.process,Dle=dre.Dispatch,Cle=dre.Function,Sle=dre.MessageChannel,xle=dre.String,Ale=0,Ole={};try{fle=dre.location}catch(tve){}var kle=function(e){if(soe(Ole,e)){var t=Ole[e];delete Ole[e],t()}},Ble=function(e){return function(){kle(e)}},Fle=function(e){kle(e.data)},Tle=function(e){dre.postMessage(xle(e),fle.protocol+"//"+fle.host)};ble&&wle||(ble=function(e){var t=Kie(arguments,1);return Ole[++Ale]=function(){Mae(Nre(e)?e:Cle(e),void 0,t)},dle(Ale),Ale},wle=function(e){delete Ole[e]},mle?dle=function(e){Ele.nextTick(Ble(e))}:Dle&&Dle.now?dle=function(e){Dle.now(Ble(e))}:Sle&&!yle?(hle=(ple=new Sle).port2,ple.port1.onmessage=Fle,dle=ase(hle.postMessage,hle)):dre.addEventListener&&Nre(dre.postMessage)&&!dre.importScripts&&fle&&"file:"!==fle.protocol&&!pre(Tle)?(dle=Tle,dre.addEventListener("message",Fle,!1)):dle="onreadystatechange"in Coe("script")?function(e){cae.appendChild(Coe("script")).onreadystatechange=function(){cae.removeChild(this),kle(e)}}:function(e){setTimeout(Ble(e),0)});var _le,Ple,jle,Nle,Ile,Lle,Rle,Mle,zle={set:ble,clear:wle},$le=/ipad|iphone|ipod/i.test(Mre)&&void 0!==dre.Pebble,Hle=/web0s(?!.*chrome)/i.test(Mre),Vle=Aoe.f,Ule=zle.set,Wle=dre.MutationObserver||dre.WebKitMutationObserver,Gle=dre.document,qle=dre.process,Kle=dre.Promise,Yle=Vle(dre,"queueMicrotask"),Xle=Yle&&Yle.value;Xle||(_le=function(){var e,t;for(mle&&(e=qle.domain)&&e.exit();Ple;){t=Ple.fn,Ple=Ple.next;try{t()}catch(n){throw Ple?Nle():jle=void 0,n}}jle=void 0,e&&e.enter()},yle||mle||Hle||!Wle||!Gle?!$le&&Kle&&Kle.resolve?((Rle=Kle.resolve(void 0)).constructor=Kle,Mle=ase(Rle.then,Rle),Nle=function(){Mle(_le)}):mle?Nle=function(){qle.nextTick(_le)}:(Ule=ase(Ule,dre),Nle=function(){Ule(_le)}):(Ile=!0,Lle=Gle.createTextNode(""),new Wle(_le).observe(Lle,{characterData:!0}),Nle=function(){Lle.data=Ile=!Ile}));var Zle,Jle,Qle,ece,tce=Xle||function(e){var t={fn:e,next:void 0};jle&&(jle.next=t),Ple||(Ple=t,Nle()),jle=t},nce=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=Jre(t),this.reject=Jre(n)},rce={f:function(e){return new nce(e)}},oce=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ice="object"==typeof window,ace=zle.set,uce=yoe("species"),sce="Promise",lce=Zoe.getterFor(sce),cce=Zoe.set,fce=Zoe.getterFor(sce),dce=gle&&gle.prototype,pce=gle,hce=dce,gce=dre.TypeError,vce=dre.document,yce=dre.process,mce=rce.f,bce=mce,wce=!!(vce&&vce.createEvent&&dre.dispatchEvent),Ece=Nre(dre.PromiseRejectionEvent),Dce=!1,Cce=kie(sce,(function(){var e=Roe(pce),t=e!==String(pce);if(!t&&66===Ure)return!0;if(Ure>=51&&/native code/.test(e))return!1;var n=new pce((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[uce]=r,!(Dce=n.then((function(){}))instanceof r)||!t&&ice&&!Ece})),Sce=Cce||!Cse((function(e){pce.all(e).catch((function(){}))})),xce=function(e){var t;return!(!Ire(e)||!Nre(t=e.then))&&t},Ace=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;tce((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Fce(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(gce("Promise-chain cycle")):(u=xce(a))?vre(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&kce(e)}))}},Oce=function(e,t,n){var r,o;wce?((r=vce.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),dre.dispatchEvent(r)):r={promise:t,reason:n},!Ece&&(o=dre["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=dre.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},kce=function(e){vre(ace,dre,(function(){var t,n=e.facade,r=e.value;if(Bce(e)&&(t=oce((function(){mle?yce.emit("unhandledRejection",r,n):Oce("unhandledrejection",n,r)})),e.rejection=mle||Bce(e)?2:1,t.error))throw t.value}))},Bce=function(e){return 1!==e.rejection&&!e.parent},Fce=function(e){vre(ace,dre,(function(){var t=e.facade;mle?yce.emit("rejectionHandled",t):Oce("rejectionhandled",t,e.value)}))},Tce=function(e,t,n){return function(r){e(t,r,n)}},_ce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Ace(e,!0))},Pce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw gce("Promise can't be resolved itself");var r=xce(t);r?tce((function(){var n={done:!1};try{vre(r,t,Tce(Pce,n,e),Tce(_ce,n,e))}catch(o){_ce(n,o,e)}})):(e.value=t,e.state=1,Ace(e,!1))}catch(o){_ce({done:!1},o,e)}}};if(Cce&&(hce=(pce=function(e){mse(this,hce),Jre(e),vre(Zle,this);var t=lce(this);try{e(Tce(Pce,t),Tce(_ce,t))}catch(n){_ce(t,n)}}).prototype,(Zle=function(e){cce(this,{type:sce,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Xue(hce,{then:function(e,t){var n=fce(this),r=n.reactions,o=mce(Wae(this,pce));return o.ok=!Nre(e)||e,o.fail=Nre(t)&&t,o.domain=mle?yce.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Ace(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Jle=function(){var e=new Zle,t=lce(e);this.promise=e,this.resolve=Tce(Pce,t),this.reject=Tce(_ce,t)},rce.f=mce=function(e){return e===pce||e===Qle?new Jle(e):bce(e)},Nre(gle)&&dce!==Object.prototype)){ece=dce.then,Dce||(nie(dce,"then",(function(e,t){var n=this;return new pce((function(e,t){vre(ece,n,e,t)})).then(e,t)}),{unsafe:!0}),nie(dce,"catch",hce.catch,{unsafe:!0}));try{delete dce.constructor}catch(tve){}Iue&&Iue(dce,hce)}Fie({global:!0,wrap:!0,forced:Cce},{Promise:pce}),Tue(pce,sce,!1),function(e){var t=Lre("Promise"),n=_oe.f;hre&&t&&!t[vle]&&n(t,vle,{configurable:!0,get:function(){return this}})}(),Qle=Lre(sce),Fie({target:sce,stat:!0,forced:Cce},{reject:function(e){var t=mce(this);return vre(t.reject,void 0,e),t.promise}}),Fie({target:sce,stat:!0,forced:Cce},{resolve:function(e){return function(e,t){if(Boe(e),Ire(t)&&t.constructor===e)return t;var n=rce.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Fie({target:sce,stat:!0,forced:Sce},{all:function(e){var t=this,n=mce(t),r=n.resolve,o=n.reject,i=oce((function(){var n=Jre(t.resolve),i=[],a=0,u=1;vse(e,(function(e){var s=a++,l=!1;u++,vre(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=mce(t),r=n.reject,o=oce((function(){var o=Jre(t.resolve);vse(e,(function(e){vre(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var jce=tie.PROPER,Nce=RegExp.prototype,Ice=Nce.toString,Lce=xre(rae),Rce=pre((function(){return"/a/b"!=Ice.call({source:"a",flags:"b"})})),Mce=jce&&"toString"!=Ice.name;(Rce||Mce)&&nie(RegExp.prototype,"toString",(function(){var e=Boe(this),t=nae(e.source),n=e.flags;return"/"+t+"/"+nae(void 0===n&&Rre(Nce,e)&&!("flags"in Nce)?Lce(e):n)}),{unsafe:!0});var zce=tie.EXISTS,$ce=_oe.f,Hce=Function.prototype,Vce=xre(Hce.toString),Uce=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Wce=xre(Uce.exec);hre&&!zce&&$ce(Hce,"name",{configurable:!0,get:function(){try{return Wce(Uce,Vce(this))[1]}catch(Sl){return""}}});var Gce=new WeakMap;function qce(e){return e.getMenuConfig("uploadImage")}function Kce(e,t){return fue(this,void 0,void 0,(function(){return due(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;jz(e,i,t.name,a),n("ok")}}}))]}))}))}function Yce(e,t){return fue(this,void 0,void 0,(function(){var n,r,o,i;return due(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Gce.get(e);if(null!=t)return t;var n=qce(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=p_(cue(cue({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return jz(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;jz(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;jz(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Gce.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 Xce(e,t){var n,r;return fue(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return due(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=qce(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,Kce(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return jz(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Yce(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 Zce=xre([].join),Jce=Tre!=Object,Qce=ale("join",",");Fie({target:"Array",proto:!0,forced:Jce||!Qce},{join:function(e){return Zce(jre(this),void 0===e?",":e)}}),qp&&(Ap.fn.append=qp),jp&&(Ap.fn.on=jp),Qp&&(Ap.fn.remove=Qp),Pp&&(Ap.fn.val=Pp),rh&&(Ap.fn.click=rh),Mp&&(Ap.fn.hide=Mp);var efe=function(){function e(){this.title=nP("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 Nz(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 jz(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Ap("body"),s=Ap('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Xce(e,t)}))}},e}(),tfe={menus:[{key:"uploadImage",factory:function(){return new efe},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(Nz(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]}))?Xce(e,o):t(r)}},n}};tP("en",{highLightModule:{selectLang:"Language"}}),tP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var nfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function rfe(e){var t={exports:{}};return e(t,t.exports),t.exports}var ofe,ife,afe=function(e){return e&&e.Math==Math&&e},ufe=afe("object"==typeof globalThis&&globalThis)||afe("object"==typeof window&&window)||afe("object"==typeof self&&self)||afe("object"==typeof nfe&&nfe)||function(){return this}()||Function("return this")(),sfe=Object.defineProperty,lfe=function(e,t){try{sfe(ufe,e,{value:t,configurable:!0,writable:!0})}catch(oP){ufe[e]=t}return t},cfe=ufe["__core-js_shared__"]||lfe("__core-js_shared__",{}),ffe=rfe((function(e){(e.exports=function(e,t){return cfe[e]||(cfe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),dfe=Function.prototype,pfe=dfe.bind,hfe=dfe.call,gfe=pfe&&pfe.bind(hfe),vfe=pfe?function(e){return e&&gfe(hfe,e)}:function(e){return e&&function(){return hfe.apply(e,arguments)}},yfe=ufe.TypeError,mfe=function(e){if(null==e)throw yfe("Can't call method on "+e);return e},bfe=ufe.Object,wfe=function(e){return bfe(mfe(e))},Efe=vfe({}.hasOwnProperty),Dfe=Object.hasOwn||function(e,t){return Efe(wfe(e),t)},Cfe=0,Sfe=Math.random(),xfe=vfe(1..toString),Afe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xfe(++Cfe+Sfe,36)},Ofe=function(e){return"function"==typeof e},kfe=function(e,t){return arguments.length<2?function(e){return Ofe(e)?e:void 0}(ufe[e]):ufe[e]&&ufe[e][t]},Bfe=kfe("navigator","userAgent")||"",Ffe=ufe.process,Tfe=ufe.Deno,_fe=Ffe&&Ffe.versions||Tfe&&Tfe.version,Pfe=_fe&&_fe.v8;Pfe&&(ife=(ofe=Pfe.split("."))[0]>0&&ofe[0]<4?1:+(ofe[0]+ofe[1])),!ife&&Bfe&&(!(ofe=Bfe.match(/Edge\/(\d+)/))||ofe[1]>=74)&&(ofe=Bfe.match(/Chrome\/(\d+)/))&&(ife=+ofe[1]);var jfe=ife,Nfe=function(e){try{return!!e()}catch(t){return!0}},Ife=!!Object.getOwnPropertySymbols&&!Nfe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jfe&&jfe<41})),Lfe=Ife&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rfe=ffe("wks"),Mfe=ufe.Symbol,zfe=Mfe&&Mfe.for,$fe=Lfe?Mfe:Mfe&&Mfe.withoutSetter||Afe,Hfe=function(e){if(!Dfe(Rfe,e)||!Ife&&"string"!=typeof Rfe[e]){var t="Symbol."+e;Ife&&Dfe(Mfe,e)?Rfe[e]=Mfe[e]:Rfe[e]=Lfe&&zfe?zfe(t):$fe(t)}return Rfe[e]},Vfe={};Vfe[Hfe("toStringTag")]="z";var Ufe="[object z]"===String(Vfe),Wfe=!Nfe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gfe=function(e){return"object"==typeof e?null!==e:Ofe(e)},qfe=ufe.document,Kfe=Gfe(qfe)&&Gfe(qfe.createElement),Yfe=function(e){return Kfe?qfe.createElement(e):{}},Xfe=!Wfe&&!Nfe((function(){return 7!=Object.defineProperty(Yfe("div"),"a",{get:function(){return 7}}).a})),Zfe=ufe.String,Jfe=ufe.TypeError,Qfe=function(e){if(Gfe(e))return e;throw Jfe(Zfe(e)+" is not an object")},ede=Function.prototype.call,tde=ede.bind?ede.bind(ede):function(){return ede.apply(ede,arguments)},nde=vfe({}.isPrototypeOf),rde=ufe.Object,ode=Lfe?function(e){return"symbol"==typeof e}:function(e){var t=kfe("Symbol");return Ofe(t)&&nde(t.prototype,rde(e))},ide=ufe.String,ade=function(e){try{return ide(e)}catch(t){return"Object"}},ude=ufe.TypeError,sde=function(e){if(Ofe(e))return e;throw ude(ade(e)+" is not a function")},lde=function(e,t){var n=e[t];return null==n?void 0:sde(n)},cde=ufe.TypeError,fde=ufe.TypeError,dde=Hfe("toPrimitive"),pde=function(e){var t=function(e,t){if(!Gfe(e)||ode(e))return e;var n,r=lde(e,dde);if(r){if(void 0===t&&(t="default"),n=tde(r,e,t),!Gfe(n)||ode(n))return n;throw fde("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ofe(n=e.toString)&&!Gfe(r=tde(n,e)))return r;if(Ofe(n=e.valueOf)&&!Gfe(r=tde(n,e)))return r;if("string"!==t&&Ofe(n=e.toString)&&!Gfe(r=tde(n,e)))return r;throw cde("Can't convert object to primitive value")}(e,t)}(e,"string");return ode(t)?t:t+""},hde=ufe.TypeError,gde=Object.defineProperty,vde={f:Wfe?gde:function(e,t,n){if(Qfe(e),t=pde(t),Qfe(n),Xfe)try{return gde(e,t,n)}catch(r){}if("get"in n||"set"in n)throw hde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},yde=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mde=Wfe?function(e,t,n){return vde.f(e,t,yde(1,n))}:function(e,t,n){return e[t]=n,e},bde=vfe(Function.toString);Ofe(cfe.inspectSource)||(cfe.inspectSource=function(e){return bde(e)});var wde,Ede,Dde,Cde=cfe.inspectSource,Sde=ufe.WeakMap,xde=Ofe(Sde)&&/native code/.test(Cde(Sde)),Ade=ffe("keys"),Ode=function(e){return Ade[e]||(Ade[e]=Afe(e))},kde={},Bde=ufe.TypeError,Fde=ufe.WeakMap;if(xde||cfe.state){var Tde=cfe.state||(cfe.state=new Fde),_de=vfe(Tde.get),Pde=vfe(Tde.has),jde=vfe(Tde.set);wde=function(e,t){if(Pde(Tde,e))throw new Bde("Object already initialized");return t.facade=e,jde(Tde,e,t),t},Ede=function(e){return _de(Tde,e)||{}},Dde=function(e){return Pde(Tde,e)}}else{var Nde=Ode("state");kde[Nde]=!0,wde=function(e,t){if(Dfe(e,Nde))throw new Bde("Object already initialized");return t.facade=e,mde(e,Nde,t),t},Ede=function(e){return Dfe(e,Nde)?e[Nde]:{}},Dde=function(e){return Dfe(e,Nde)}}var Ide={set:wde,get:Ede,has:Dde,enforce:function(e){return Dde(e)?Ede(e):wde(e,{})},getterFor:function(e){return function(t){var n;if(!Gfe(t)||(n=Ede(t)).type!==e)throw Bde("Incompatible receiver, "+e+" required");return n}}},Lde=Function.prototype,Rde=Wfe&&Object.getOwnPropertyDescriptor,Mde=Dfe(Lde,"name"),zde={EXISTS:Mde,PROPER:Mde&&"something"===function(){}.name,CONFIGURABLE:Mde&&(!Wfe||Wfe&&Rde(Lde,"name").configurable)},$de=rfe((function(e){var t=zde.CONFIGURABLE,n=Ide.get,r=Ide.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;Ofe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dfe(i,"name")||t&&i.name!==f)&&mde(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ufe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:mde(e,n,i)):l?e[n]=i:lfe(n,i)})(Function.prototype,"toString",(function(){return Ofe(this)&&n(this).source||Cde(this)}))})),Hde=vfe({}.toString),Vde=vfe("".slice),Ude=function(e){return Vde(Hde(e),8,-1)},Wde=Hfe("toStringTag"),Gde=ufe.Object,qde="Arguments"==Ude(function(){return arguments}()),Kde=Ufe?Ude: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=Gde(e),Wde))?n:qde?Ude(t):"Object"==(r=Ude(t))&&Ofe(t.callee)?"Arguments":r},Yde=Ufe?{}.toString:function(){return"[object "+Kde(this)+"]"};Ufe||$de(Object.prototype,"toString",Yde,{unsafe:!0});var Xde,Zde={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},Jde=Yfe("span").classList,Qde=Jde&&Jde.constructor&&Jde.constructor.prototype,epe=Qde===Object.prototype?void 0:Qde,tpe=vfe(vfe.bind),npe=ufe.Object,rpe=vfe("".split),ope=Nfe((function(){return!npe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ude(e)?rpe(e,""):npe(e)}:npe,ipe=Math.ceil,ape=Math.floor,upe=function(e){var t=+e;return t!=t||0===t?0:(t>0?ape:ipe)(t)},spe=Math.min,lpe=function(e){return e>0?spe(upe(e),9007199254740991):0},cpe=function(e){return lpe(e.length)},fpe=Array.isArray||function(e){return"Array"==Ude(e)},dpe=function(){},ppe=[],hpe=kfe("Reflect","construct"),gpe=/^\s*(?:class|function)\b/,vpe=vfe(gpe.exec),ype=!gpe.exec(dpe),mpe=function(e){if(!Ofe(e))return!1;try{return hpe(dpe,ppe,e),!0}catch(t){return!1}},bpe=!hpe||Nfe((function(){var e;return mpe(mpe.call)||!mpe(Object)||!mpe((function(){e=!0}))||e}))?function(e){if(!Ofe(e))return!1;switch(Kde(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ype||!!vpe(gpe,Cde(e))}:mpe,wpe=Hfe("species"),Epe=ufe.Array,Dpe=function(e,t){return new(fpe(n=e)&&(r=n.constructor,(bpe(r)&&(r===Epe||fpe(r.prototype))||Gfe(r)&&null===(r=r[wpe]))&&(r=void 0)),void 0===r?Epe:r)(0===t?0:t);var n,r},Cpe=vfe([].push),Spe=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=wfe(s),g=ope(h),v=function(e,t){return sde(e),void 0===t?e:tpe?tpe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=cpe(g),m=0,b=f||Dpe,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:Cpe(w,d)}else switch(e){case 4:return!1;case 7:Cpe(w,d)}return i?-1:r||o?o:w}},xpe=[Spe(0),Spe(1),Spe(2),Spe(3),Spe(4),Spe(5),Spe(6),Spe(7)][0],Ape=(Xde=[].forEach)&&Nfe((function(){Xde.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return xpe(this,e,arguments.length>1?arguments[1]:void 0)},Ope=function(e){if(e&&e.forEach!==Ape)try{mde(e,"forEach",Ape)}catch(t){e.forEach=Ape}};for(var kpe in Zde)Zde[kpe]&&Ope(ufe[kpe]&&ufe[kpe].prototype);Ope(epe);var Bpe={}.propertyIsEnumerable,Fpe=Object.getOwnPropertyDescriptor,Tpe={f:Fpe&&!Bpe.call({1:2},1)?function(e){var t=Fpe(this,e);return!!t&&t.enumerable}:Bpe},_pe=function(e){return ope(mfe(e))},Ppe=Object.getOwnPropertyDescriptor,jpe={f:Wfe?Ppe:function(e,t){if(e=_pe(e),t=pde(t),Xfe)try{return Ppe(e,t)}catch(n){}if(Dfe(e,t))return yde(!tde(Tpe.f,e,t),e[t])}},Npe=Math.max,Ipe=Math.min,Lpe=function(e,t){var n=upe(e);return n<0?Npe(n+t,0):Ipe(n,t)},Rpe=function(e){return function(t,n,r){var o,i=_pe(t),a=cpe(i),u=Lpe(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),Mpe=vfe([].push),zpe=function(e,t){var n,r=_pe(e),o=0,i=[];for(n in r)!Dfe(kde,n)&&Dfe(r,n)&&Mpe(i,n);for(;t.length>o;)Dfe(r,n=t[o++])&&(~Rpe(i,n)||Mpe(i,n));return i},$pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hpe=$pe.concat("length","prototype"),Vpe={f:Object.getOwnPropertyNames||function(e){return zpe(e,Hpe)}},Upe={f:Object.getOwnPropertySymbols},Wpe=vfe([].concat),Gpe=kfe("Reflect","ownKeys")||function(e){var t=Vpe.f(Qfe(e)),n=Upe.f;return n?Wpe(t,n(e)):t},qpe=function(e,t){for(var n=Gpe(t),r=vde.f,o=jpe.f,i=0;i<n.length;i++){var a=n[i];Dfe(e,a)||r(e,a,o(t,a))}},Kpe=/#|\.prototype\./,Ype=function(e,t){var n=Zpe[Xpe(e)];return n==Qpe||n!=Jpe&&(Ofe(t)?Nfe(t):!!t)},Xpe=Ype.normalize=function(e){return String(e).replace(Kpe,".").toLowerCase()},Zpe=Ype.data={},Jpe=Ype.NATIVE="N",Qpe=Ype.POLYFILL="P",ehe=Ype,the=jpe.f,nhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ufe:l?ufe[u]||lfe(u,{}):(ufe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=the(n,r))&&a.value:n[r],!ehe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;qpe(i,o)}(e.sham||o&&o.sham)&&mde(i,"sham",!0),$de(n,r,i,e)}},rhe=Object.keys||function(e){return zpe(e,$pe)},ohe=Object.assign,ihe=Object.defineProperty,ahe=vfe([].concat),uhe=!ohe||Nfe((function(){if(Wfe&&1!==ohe({b:1},ohe(ihe({},"a",{enumerable:!0,get:function(){ihe(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!=ohe({},e)[n]||rhe(ohe({},t)).join("")!=r}))?function(e,t){for(var n=wfe(e),r=arguments.length,o=1,i=Upe.f,a=Tpe.f;r>o;)for(var u,s=ope(arguments[o++]),l=i?ahe(rhe(s),i(s)):rhe(s),c=l.length,f=0;c>f;)u=l[f++],Wfe&&!tde(a,s,u)||(n[u]=s[u]);return n}:ohe;nhe({target:"Object",stat:!0,forced:Object.assign!==uhe},{assign:uhe});var she=rfe((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,"&").replace(/</g,"<").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,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
- /**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),void 0!==nfe&&(nfe.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(/&/,"&"))})),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(/&/,"&"))})),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(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}}));var lhe=["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 che(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+che(t)}),0)}var fhe,dhe=ufe.String,phe=function(e){if("Symbol"===Kde(e))throw TypeError("Cannot convert a Symbol value to a string");return dhe(e)},hhe=function(){var e=Qfe(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},ghe=ufe.RegExp,vhe=Nfe((function(){var e=ghe("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),yhe=vhe||Nfe((function(){return!ghe("a","y").sticky})),mhe={BROKEN_CARET:vhe||Nfe((function(){var e=ghe("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:yhe,UNSUPPORTED_Y:vhe},bhe=Wfe?Object.defineProperties:function(e,t){Qfe(e);for(var n,r=_pe(t),o=rhe(t),i=o.length,a=0;i>a;)vde.f(e,n=o[a++],r[n]);return e},whe=kfe("document","documentElement"),Ehe=Ode("IE_PROTO"),Dhe=function(){},Che=function(e){return"<script>"+e+"<\/script>"},She=function(e){e.write(Che("")),e.close();var t=e.parentWindow.Object;return e=null,t},xhe=function(){try{fhe=new ActiveXObject("htmlfile")}catch(r){}var e,t;xhe="undefined"!=typeof document?document.domain&&fhe?She(fhe):((t=Yfe("iframe")).style.display="none",whe.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Che("document.F=Object")),e.close(),e.F):She(fhe);for(var n=$pe.length;n--;)delete xhe.prototype[$pe[n]];return xhe()};kde[Ehe]=!0;var Ahe,Ohe,khe=Object.create||function(e,t){var n;return null!==e?(Dhe.prototype=Qfe(e),n=new Dhe,Dhe.prototype=null,n[Ehe]=e):n=xhe(),void 0===t?n:bhe(n,t)},Bhe=ufe.RegExp,Fhe=Nfe((function(){var e=Bhe(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),The=ufe.RegExp,_he=Nfe((function(){var e=The("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Phe=Ide.get,jhe=ffe("native-string-replace",String.prototype.replace),Nhe=RegExp.prototype.exec,Ihe=Nhe,Lhe=vfe("".charAt),Rhe=vfe("".indexOf),Mhe=vfe("".replace),zhe=vfe("".slice),$he=(Ohe=/b*/g,tde(Nhe,Ahe=/a/,"a"),tde(Nhe,Ohe,"a"),0!==Ahe.lastIndex||0!==Ohe.lastIndex),Hhe=mhe.BROKEN_CARET,Vhe=void 0!==/()??/.exec("")[1];($he||Vhe||Hhe||Fhe||_he)&&(Ihe=function(e){var t,n,r,o,i,a,u,s=this,l=Phe(s),c=phe(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tde(Ihe,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Hhe&&s.sticky,h=tde(hhe,s),g=s.source,v=0,y=c;if(p&&(h=Mhe(h,"y",""),-1===Rhe(h,"g")&&(h+="g"),y=zhe(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Lhe(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Vhe&&(n=new RegExp("^"+g+"$(?!\\s)",h)),$he&&(r=s.lastIndex),o=tde(Nhe,p?n:s,y),p?o?(o.input=zhe(o.input,v),o[0]=zhe(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$he&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Vhe&&o&&o.length>1&&tde(jhe,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=khe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Uhe=Ihe;nhe({target:"RegExp",proto:!0,forced:/./.exec!==Uhe},{exec:Uhe});var Whe=Function.prototype,Ghe=Whe.apply,qhe=Whe.bind,Khe=Whe.call,Yhe="object"==typeof Reflect&&Reflect.apply||(qhe?Khe.bind(Ghe):function(){return Khe.apply(Ghe,arguments)}),Xhe=Hfe("species"),Zhe=RegExp.prototype,Jhe=Hfe("match"),Qhe=ufe.TypeError,ege=Hfe("species"),tge=vfe("".charAt),nge=vfe("".charCodeAt),rge=vfe("".slice),oge=function(e){return function(t,n){var r,o,i=phe(mfe(t)),a=upe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=nge(i,a))<55296||r>56319||a+1===u||(o=nge(i,a+1))<56320||o>57343?e?tge(i,a):r:e?rge(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),ige=function(e,t,n){return t+(n?oge(e,t).length:1)},age=ufe.Array,uge=Math.max,sge=function(e,t,n){for(var r,o,i,a,u=cpe(e),s=Lpe(t,u),l=Lpe(void 0===n?u:n,u),c=age(uge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=pde(o))in r?vde.f(r,a,yde(0,i)):r[a]=i;return c.length=f,c},lge=ufe.TypeError,cge=function(e,t){var n=e.exec;if(Ofe(n)){var r=tde(n,e,t);return null!==r&&Qfe(r),r}if("RegExp"===Ude(e))return tde(Uhe,e,t);throw lge("RegExp#exec called on incompatible receiver")},fge=mhe.UNSUPPORTED_Y,dge=Math.min,pge=[].push,hge=vfe(/./.exec),gge=vfe(pge),vge=vfe("".slice);!function(e,t,n,r){var o,i,a,u=Hfe(e),s=!Nfe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Nfe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Xhe]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=vfe(/./[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=phe(mfe(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!Gfe(n=e)||!(void 0!==(r=n[Jhe])?r:"RegExp"==Ude(n)))return tde(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=tde(Uhe,p,o))&&!((s=p.lastIndex)>d&&(gge(c,vge(o,d,u.index)),u.length>1&&u.index<o.length&&Yhe(pge,c,sge(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&hge(p,"")||gge(c,""):gge(c,vge(o,d)),c.length>a?sge(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:tde(i,this,e,t)}:i,[function(e,t){var n=mfe(this),r=null==e?void 0:lde(e,o);return r?tde(r,e,n,t):tde(a,phe(n),e,t)},function(e,t){var n=Qfe(this),r=phe(e),o=function(e,t,n,r,o){var i=vfe(e),a=t.exec;return a===Uhe||a===Zhe.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=Qfe(n).constructor)||null==(l=Qfe(f)[ege])?u:function(e){if(bpe(e))return e;throw Qhe(ade(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(fge?"g":"y"),g=new d(fge?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===cge(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=fge?0:m;var w,E=cge(g,fge?vge(r,m):r);if(null===E||(w=dge(lpe(g.lastIndex+(fge?m:0)),r.length))===y)m=ige(r,m,p);else{if(gge(b,vge(r,y,m)),b.length===v)return b;for(var D=1;D<=E.length-1;D++)if(gge(b,E[D]),b.length===v)return b;m=y=w}}return gge(b,vge(r,y)),b}]);$de(String.prototype,e,f[0]),$de(Zhe,u,f[1])}r&&mde(Zhe[u],"sham",!0)}("split",0,!!Nfe((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]})),fge),nhe({global:!0},{globalThis:ufe}),Fp&&(Ap.fn.attr=Fp);var yge=zde.PROPER,mge=RegExp.prototype,bge=mge.toString,wge=vfe(hhe),Ege=Nfe((function(){return"/a/b"!=bge.call({source:"a",flags:"b"})})),Dge=yge&&"toString"!=bge.name;(Ege||Dge)&&$de(RegExp.prototype,"toString",(function(){var e=Qfe(this),t=phe(e.source),n=e.flags;return"/"+t+"/"+phe(void 0===n&&nde(mge,e)&&!("flags"in mge)?wge(e):n)}),{unsafe:!0});var Cge=function(){function e(){this.title=nP("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!mf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};dd.setNodes(e,n,{match:function(e){return CO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=CO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=CO.getParentNode(e,t);return mf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Sge={renderStyle:function(e,t){var n=e,r=t,o="";return lhe.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Ap(e);if(!mf.isElement(t))return t;if("code"!==CO.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 Cge},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>"}}]},xge=/"/g,Age=vfe("".replace);nhe({target:"String",proto:!0,forced:Nfe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=phe(mfe(this)),r="<a",(r+=' name="'+Age(phe(t),xge,""")+'"')+">"+n+"</a>";var t,n,r}});var Oge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!Kf.isText(e))return null;var t=CO.getParentNode(null,e);if(t&&"code"===CO.getNodeType(t)){var n=CO.getParentNode(null,t);if(n&&"pre"===CO.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=she.languages[t];return n?she.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+che(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},kge=function(){return kge=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},kge.apply(this,arguments)},Bge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=kge(kge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=kge(kge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=kge(kge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=kge(kge({},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=kx(kx({},a),t||{});if(null!=AO[o])throw new Error("Duplicated key '"+o+"' in menu items");AO[o]=i,n=o,null!=(r=u)&&(xO[n]=r)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;aT[t||""]=n}(e)},e.registerRenderStyle=function(e){var t;t=e,iT.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;MO[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,RO.push(t)},e.registerPreParseHtml=function(e){var t;t=e,OB.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;BB[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,kB.push(t)},e.registerModule=function(e){Fge(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function Fge(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 Bge.registerMenu(e)})),n&&n.forEach((function(e){return Bge.registerRenderElem(e)})),r&&Bge.registerRenderStyle(r),o&&o.forEach((function(e){return Bge.registerElemToHtml(e)})),i&&Bge.registerStyleToHtml(i),a&&a.forEach((function(e){return Bge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Bge.registerParseElemHtml(e)})),s&&Bge.registerParseStyleHtml(s),l&&Bge.registerPlugin(l)}$G.forEach((function(e){return Fge(e)})),Fge(oQ),Fge(R6),Fge(are),Fge(tfe),Fge(Sge);var Tge='<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>',_ge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},Pge={hoverbarKeys:kge(kge({},_ge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Bge.setEditorConfig(kge(kge({},Pge),{decorate:Oge}));var jge={hoverbarKeys:_ge};Bge.setSimpleEditorConfig(kge(kge({},jge),{decorate:Oge}));var Nge={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:nP("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:nP("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:nP("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:nP("editor.image"),iconSvg:Tge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:nP("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"]};Bge.setToolbarConfig(Nge);var Ige={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:nP("editor.image"),iconSvg:Tge,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Bge.setSimpleToolbarConfig(Ige);var Lge=Object.defineProperty,Rge=Object.defineProperties,Mge=Object.getOwnPropertyDescriptors,zge=Object.getOwnPropertySymbols,$ge=Object.prototype.hasOwnProperty,Hge=Object.prototype.propertyIsEnumerable,Vge=(e,t,n)=>t in e?Lge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uge=(e,t)=>{for(var n in t||(t={}))$ge.call(t,n)&&Vge(e,n,t[n]);if(zge)for(var n of zge(t))Hge.call(t,n)&&Vge(e,n,t[n]);return e},Wge=(e,t)=>Rge(e,Mge(t));function Gge(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var qge=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Kge=e({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,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)?Bge.simpleEditorConfig:Bge.editorConfig,c=kge(kge({},l.hoverbarKeys||{}),u.hoverbarKeys||{});t_({selector:n,config:kge(kge(kge({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Bge.plugins})}({selector:u.value,mode:e.mode,content:t||[],html:e.defaultHtml||e.modelValue||"",config:Wge(Uge({},e.defaultConfig),{onCreated(t){if(s.value=t,i.emit("onCreated",t),e.defaultConfig.onCreated){const e=Gge("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=Gge("onChange");throw new Error(e)}},onDestroyed(t){if(i.emit("onDestroyed",t),e.defaultConfig.onDestroyed){const e=Gge("onDestroyed");throw new Error(e)}},onMaxLength(t){if(i.emit("onMaxLength",t),e.defaultConfig.onMaxLength){const e=Gge("onMaxLength");throw new Error(e)}},onFocus(t){if(i.emit("onFocus",t),e.defaultConfig.onFocus){const e=Gge("onFocus");throw new Error(e)}},onBlur(t){if(i.emit("onBlur",t),e.defaultConfig.onBlur){const e=Gge("onBlur");throw new Error(e)}},customAlert(t,n){if(i.emit("customAlert",t,n),e.defaultConfig.customAlert){const e=Gge("customAlert");throw new Error(e)}},customPaste:(t,n)=>{if(e.defaultConfig.customPaste){const e=Gge("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}}}),Yge={ref:"box",style:{height:"100%"}};var Xge=qge(Kge,[["render",function(e,t,n,r,o,i){return u(),s("div",Yge,null,512)}]]);const Zge=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");CO.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?Bge.simpleToolbarConfig:Bge.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(uF(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=kx({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new a_(n,i);TA.set(a,e),_A.set(e,a)})(n,{selector:t,config:kge(kge({},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}}}),Jge={ref:"selector"};var Qge=qge(Zge,[["render",function(e,t,n,r,o,i){return u(),s("div",Jge,null,512)}]]);export{Xge as E,Qge as T,Bge as Z};
|