123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- import{$ as e,r as t,a0 as n,a as r,w as o,a1 as i,a2 as a,c as u,d as s,u as l,a3 as c,o as f,S as d,k as p,j as h,F as g}from"./index.1711290598880.js";var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){var t={exports:{}};return e(t,t.exports),t.exports}var m,b,w=function(e){return e&&e.Math==Math&&e},E=w("object"==typeof globalThis&&globalThis)||w("object"==typeof window&&window)||w("object"==typeof self&&self)||w("object"==typeof v&&v)||function(){return this}()||Function("return this")(),D=Function.prototype,C=D.apply,S=D.bind,x=D.call,A="object"==typeof Reflect&&Reflect.apply||(S?x.bind(C):function(){return x.apply(C,arguments)}),O=Function.prototype,k=O.bind,B=O.call,F=k&&k.bind(B),T=k?function(e){return e&&F(B,e)}:function(e){return e&&function(){return B.apply(e,arguments)}},_=function(e){return"function"==typeof e},P=function(e){try{return!!e()}catch(t){return!0}},j=!P((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),N=Function.prototype.call,I=N.bind?N.bind(N):function(){return N.apply(N,arguments)},L={}.propertyIsEnumerable,R=Object.getOwnPropertyDescriptor,M=R&&!L.call({1:2},1)?function(e){var t=R(this,e);return!!t&&t.enumerable}:L,z={f:M},$=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},H=T({}.toString),V=T("".slice),U=function(e){return V(H(e),8,-1)},W=E.Object,G=T("".split),q=P((function(){return!W("z").propertyIsEnumerable(0)}))?function(e){return"String"==U(e)?G(e,""):W(e)}:W,K=E.TypeError,Y=function(e){if(null==e)throw K("Can't call method on "+e);return e},X=function(e){return q(Y(e))},Z=function(e){return"object"==typeof e?null!==e:_(e)},J={},Q=function(e){return _(e)?e:void 0},ee=function(e,t){return arguments.length<2?Q(J[e])||Q(E[e]):J[e]&&J[e][t]||E[e]&&E[e][t]},te=T({}.isPrototypeOf),ne=ee("navigator","userAgent")||"",re=E.process,oe=E.Deno,ie=re&&re.versions||oe&&oe.version,ae=ie&&ie.v8;ae&&(b=(m=ae.split("."))[0]>0&&m[0]<4?1:+(m[0]+m[1])),!b&&ne&&(!(m=ne.match(/Edge\/(\d+)/))||m[1]>=74)&&(m=ne.match(/Chrome\/(\d+)/))&&(b=+m[1]);var ue,se=b,le=!!Object.getOwnPropertySymbols&&!P((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&se&&se<41})),ce=le&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,fe=E.Object,de=ce?function(e){return"symbol"==typeof e}:function(e){var t=ee("Symbol");return _(t)&&te(t.prototype,fe(e))},pe=E.String,he=function(e){try{return pe(e)}catch(t){return"Object"}},ge=E.TypeError,ve=function(e){if(_(e))return e;throw ge(he(e)+" is not a function")},ye=function(e,t){var n=e[t];return null==n?void 0:ve(n)},me=E.TypeError,be=Object.defineProperty,we=E["__core-js_shared__"]||function(e,t){try{be(E,e,{value:t,configurable:!0,writable:!0})}catch(OP){E[e]=t}return t}("__core-js_shared__",{}),Ee=y((function(e){(e.exports=function(e,t){return we[e]||(we[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),De=E.Object,Ce=function(e){return De(Y(e))},Se=T({}.hasOwnProperty),xe=Object.hasOwn||function(e,t){return Se(Ce(e),t)},Ae=0,Oe=Math.random(),ke=T(1..toString),Be=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ke(++Ae+Oe,36)},Fe=Ee("wks"),Te=E.Symbol,_e=Te&&Te.for,Pe=ce?Te:Te&&Te.withoutSetter||Be,je=function(e){if(!xe(Fe,e)||!le&&"string"!=typeof Fe[e]){var t="Symbol."+e;le&&xe(Te,e)?Fe[e]=Te[e]:Fe[e]=ce&&_e?_e(t):Pe(t)}return Fe[e]},Ne=E.TypeError,Ie=je("toPrimitive"),Le=function(e){var t=function(e,t){if(!Z(e)||de(e))return e;var n,r=ye(e,Ie);if(r){if(void 0===t&&(t="default"),n=I(r,e,t),!Z(n)||de(n))return n;throw Ne("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_(n=e.toString)&&!Z(r=I(n,e)))return r;if(_(n=e.valueOf)&&!Z(r=I(n,e)))return r;if("string"!==t&&_(n=e.toString)&&!Z(r=I(n,e)))return r;throw me("Can't convert object to primitive value")}(e,t)}(e,"string");return de(t)?t:t+""},Re=E.document,Me=Z(Re)&&Z(Re.createElement),ze=function(e){return Me?Re.createElement(e):{}},$e=!j&&!P((function(){return 7!=Object.defineProperty(ze("div"),"a",{get:function(){return 7}}).a})),He=Object.getOwnPropertyDescriptor,Ve=j?He:function(e,t){if(e=X(e),t=Le(t),$e)try{return He(e,t)}catch(n){}if(xe(e,t))return $(!I(z.f,e,t),e[t])},Ue={f:Ve},We=/#|\.prototype\./,Ge=function(e,t){var n=Ke[qe(e)];return n==Xe||n!=Ye&&(_(t)?P(t):!!t)},qe=Ge.normalize=function(e){return String(e).replace(We,".").toLowerCase()},Ke=Ge.data={},Ye=Ge.NATIVE="N",Xe=Ge.POLYFILL="P",Ze=Ge,Je=T(T.bind),Qe=function(e,t){return ve(e),void 0===t?e:Je?Je(e,t):function(){return e.apply(t,arguments)}},et=E.String,tt=E.TypeError,nt=function(e){if(Z(e))return e;throw tt(et(e)+" is not an object")},rt=E.TypeError,ot=Object.defineProperty,it=j?ot:function(e,t,n){if(nt(e),t=Le(t),nt(n),$e)try{return ot(e,t,n)}catch(r){}if("get"in n||"set"in n)throw rt("Accessors not supported");return"value"in n&&(e[t]=n.value),e},at={f:it},ut=j?function(e,t,n){return at.f(e,t,$(1,n))}:function(e,t,n){return e[t]=n,e},st=Ue.f,lt=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return A(e,this,arguments)};return t.prototype=e.prototype,t},ct=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?E:d?E[c]:(E[c]||{}).prototype,g=f?J:J[c]||ut(J,c,{})[c],v=g.prototype;for(o in t)n=!Ze(f?o:c+(d?".":"#")+o,e.forced)&&h&&xe(h,o),a=g[o],n&&(u=e.noTargetGet?(l=st(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?Qe(i,E):e.wrap&&n?lt(i):p&&_(i)?T(i):i,(e.sham||i&&i.sham||a&&a.sham)&&ut(s,"sham",!0),ut(g,o,s),p&&(xe(J,r=c+"Prototype")||ut(J,r,{}),ut(J[r],o,i),e.real&&v&&!v[o]&&ut(v,o,i)))},ft=Ee("keys"),dt=function(e){return ft[e]||(ft[e]=Be(e))},pt=!P((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ht=dt("IE_PROTO"),gt=E.Object,vt=gt.prototype,yt=pt?gt.getPrototypeOf:function(e){var t=Ce(e);if(xe(t,ht))return t[ht];var n=t.constructor;return _(n)&&t instanceof n?n.prototype:t instanceof gt?vt:null},mt=E.String,bt=E.TypeError,wt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=T(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return nt(n),function(e){if("object"==typeof e||_(e))return e;throw bt("Can't set "+mt(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Et=Math.ceil,Dt=Math.floor,Ct=function(e){var t=+e;return t!=t||0===t?0:(t>0?Dt:Et)(t)},St=Math.max,xt=Math.min,At=function(e,t){var n=Ct(e);return n<0?St(n+t,0):xt(n,t)},Ot=Math.min,kt=function(e){return(t=e.length)>0?Ot(Ct(t),9007199254740991):0;var t},Bt=function(e){return function(t,n,r){var o,i=X(t),a=kt(i),u=At(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}},Ft={includes:Bt(!0),indexOf:Bt(!1)},Tt={},_t=Ft.indexOf,Pt=T([].push),jt=function(e,t){var n,r=X(e),o=0,i=[];for(n in r)!xe(Tt,n)&&xe(r,n)&&Pt(i,n);for(;t.length>o;)xe(r,n=t[o++])&&(~_t(i,n)||Pt(i,n));return i},Nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],It=Nt.concat("length","prototype"),Lt=Object.getOwnPropertyNames||function(e){return jt(e,It)},Rt={f:Lt},Mt={f:Object.getOwnPropertySymbols},zt=T([].concat),$t=ee("Reflect","ownKeys")||function(e){var t=Rt.f(nt(e)),n=Mt.f;return n?zt(t,n(e)):t},Ht=Object.keys||function(e){return jt(e,Nt)},Vt=j?Object.defineProperties:function(e,t){nt(e);for(var n,r=X(t),o=Ht(t),i=o.length,a=0;i>a;)at.f(e,n=o[a++],r[n]);return e},Ut=ee("document","documentElement"),Wt=dt("IE_PROTO"),Gt=function(){},qt=function(e){return"<script>"+e+"<\/script>"},Kt=function(e){e.write(qt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Yt=function(){try{ue=new ActiveXObject("htmlfile")}catch(r){}var e,t;Yt="undefined"!=typeof document?document.domain&&ue?Kt(ue):((t=ze("iframe")).style.display="none",Ut.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(qt("document.F=Object")),e.close(),e.F):Kt(ue);for(var n=Nt.length;n--;)delete Yt.prototype[Nt[n]];return Yt()};Tt[Wt]=!0;var Xt=Object.create||function(e,t){var n;return null!==e?(Gt.prototype=nt(e),n=new Gt,Gt.prototype=null,n[Wt]=e):n=Yt(),void 0===t?n:Vt(n,t)},Zt=function(e,t,n){var r=Le(t);r in e?at.f(e,r,$(0,n)):e[r]=n},Jt=E.Array,Qt=Math.max,en=function(e,t,n){for(var r=kt(e),o=At(t,r),i=At(void 0===n?r:n,r),a=Jt(Qt(i-o,0)),u=0;o<i;o++,u++)Zt(a,u,e[o]);return a.length=u,a},tn=T("".replace),nn=T("".split),rn=T([].join),on=String(Error("zxcasd").stack),an=/\n\s*at [^:]*:[^\n]*/,un=an.test(on),sn=/@[^\n]*\n/.test(on)&&!/zxcasd/.test(on),ln=function(e,t){if("string"!=typeof e)return e;if(un)for(;t--;)e=tn(e,an,"");else if(sn)return rn(en(nn(e,"\n"),t),"\n");return e},cn=function(e,t){Z(t)&&"cause"in t&&ut(e,"cause",t.cause)},fn={},dn=je("iterator"),pn=Array.prototype,hn={};hn[je("toStringTag")]="z";var gn="[object z]"===String(hn),vn=je("toStringTag"),yn=E.Object,mn="Arguments"==U(function(){return arguments}()),bn=gn?U:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=yn(e),vn))?n:mn?U(t):"Object"==(r=U(t))&&_(t.callee)?"Arguments":r},wn=je("iterator"),En=function(e){if(null!=e)return ye(e,wn)||ye(e,"@@iterator")||fn[bn(e)]},Dn=E.TypeError,Cn=function(e,t,n){var r,o;nt(e);try{if(!(r=ye(e,"return"))){if("throw"===t)throw n;return n}r=I(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return nt(r),n},Sn=E.TypeError,xn=function(e,t){this.stopped=e,this.result=t},An=xn.prototype,On=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=Qe(t,f),v=function(e){return r&&Cn(r,"normal",e),new xn(!0,e)},y=function(e){return d?(nt(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=En(e)))throw Sn(he(e)+" is not iterable");if(void 0!==(c=o)&&(fn.Array===c||pn[dn]===c)){for(i=0,a=kt(e);a>i;i++)if((u=y(e[i]))&&te(An,u))return u;return new xn(!1)}r=function(e,t){var n=arguments.length<2?En(e):t;if(ve(n))return nt(I(n,e));throw Dn(he(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=I(s,r)).done;){try{u=y(l.value)}catch(c){Cn(r,"throw",c)}if("object"==typeof u&&u&&te(An,u))return u}return new xn(!1)},kn=E.String,Bn=function(e){if("Symbol"===bn(e))throw TypeError("Cannot convert a Symbol value to a string");return kn(e)},Fn=function(e,t){return void 0===e?arguments.length<2?"":t:Bn(e)},Tn=!P((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",$(1,7)),7!==e.stack)})),_n=je("toStringTag"),Pn=E.Error,jn=[].push,Nn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=te(In,this);wt?n=wt(new Pn(void 0),o?yt(this):In):(n=o?this:Xt(In),ut(n,_n,"Error")),ut(n,"message",Fn(t,"")),Tn&&ut(n,"stack",ln(n.stack,1)),cn(n,r);var i=[];return On(e,jn,{that:i}),ut(n,"errors",i),n};wt?wt(Nn,Pn):function(e,t){for(var n=$t(t),r=at.f,o=Ue.f,i=0;i<n.length;i++){var a=n[i];xe(e,a)||r(e,a,o(t,a))}}(Nn,Pn);var In=Nn.prototype=Xt(Pn.prototype,{constructor:$(1,Nn),message:$(1,""),name:$(1,"AggregateError")});ct({global:!0},{AggregateError:Nn});var Ln=T(Function.toString);_(we.inspectSource)||(we.inspectSource=function(e){return Ln(e)});var Rn,Mn,zn,$n=we.inspectSource,Hn=E.WeakMap,Vn=_(Hn)&&/native code/.test($n(Hn)),Un=E.TypeError,Wn=E.WeakMap;if(Vn||we.state){var Gn=we.state||(we.state=new Wn),qn=T(Gn.get),Kn=T(Gn.has),Yn=T(Gn.set);Rn=function(e,t){if(Kn(Gn,e))throw new Un("Object already initialized");return t.facade=e,Yn(Gn,e,t),t},Mn=function(e){return qn(Gn,e)||{}},zn=function(e){return Kn(Gn,e)}}else{var Xn=dt("state");Tt[Xn]=!0,Rn=function(e,t){if(xe(e,Xn))throw new Un("Object already initialized");return t.facade=e,ut(e,Xn,t),t},Mn=function(e){return xe(e,Xn)?e[Xn]:{}},zn=function(e){return xe(e,Xn)}}var Zn,Jn,Qn,er={set:Rn,get:Mn,has:zn,enforce:function(e){return zn(e)?Mn(e):Rn(e,{})},getterFor:function(e){return function(t){var n;if(!Z(t)||(n=Mn(t)).type!==e)throw Un("Incompatible receiver, "+e+" required");return n}}},tr=Function.prototype,nr=j&&Object.getOwnPropertyDescriptor,rr=xe(tr,"name"),or={EXISTS:rr,PROPER:rr&&"something"===function(){}.name,CONFIGURABLE:rr&&(!j||j&&nr(tr,"name").configurable)},ir=function(e,t,n,r){r&&r.enumerable?e[t]=n:ut(e,t,n)},ar=je("iterator"),ur=!1;[].keys&&("next"in(Qn=[].keys())?(Jn=yt(yt(Qn)))!==Object.prototype&&(Zn=Jn):ur=!0);var sr=null==Zn||P((function(){var e={};return Zn[ar].call(e)!==e}));Zn=sr?{}:Xt(Zn),_(Zn[ar])||ir(Zn,ar,(function(){return this}));var lr={IteratorPrototype:Zn,BUGGY_SAFARI_ITERATORS:ur},cr=gn?{}.toString:function(){return"[object "+bn(this)+"]"},fr=at.f,dr=je("toStringTag"),pr=function(e,t,n,r){if(e){var o=n?e:e.prototype;xe(o,dr)||fr(o,dr,{configurable:!0,value:t}),r&&!gn&&ut(o,"toString",cr)}},hr=lr.IteratorPrototype,gr=function(){return this},vr=or.PROPER,yr=lr.BUGGY_SAFARI_ITERATORS,mr=je("iterator"),br=function(){return this},wr=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Xt(hr,{next:$(1,s)}),pr(u,l,!1,!0),fn[l]=gr;var c,f,d,p=function(e){if(e===o&&m)return m;if(!yr&&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[mr]||v["@@iterator"]||o&&v[o],m=!yr&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=yt(b.call(new e)))!==Object.prototype&&c.next&&(pr(c,h,!0,!0),fn[h]=br),vr&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return I(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(yr||g||!(d in v))&&ir(v,d,f[d]);else ct({target:t,proto:!0,forced:yr||g},f);return a&&v[mr]!==m&&ir(v,mr,m,{name:o}),fn[t]=m,f},Er=er.set,Dr=er.getterFor("Array Iterator");wr(Array,"Array",(function(e,t){Er(this,{type:"Array Iterator",target:X(e),index:0,kind:t})}),(function(){var e=Dr(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"),fn.Arguments=fn.Array;var Cr=T("".charAt),Sr=T("".charCodeAt),xr=T("".slice),Ar=function(e){return function(t,n){var r,o,i=Bn(Y(t)),a=Ct(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Sr(i,a))<55296||r>56319||a+1===u||(o=Sr(i,a+1))<56320||o>57343?e?Cr(i,a):r:e?xr(i,a,a+2):o-56320+(r-55296<<10)+65536}},Or=(Ar(!1),Ar(!0)),kr=er.set,Br=er.getterFor("String Iterator");wr(String,"String",(function(e){kr(this,{type:"String Iterator",string:Bn(e),index:0})}),(function(){var e,t=Br(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Or(n,r),t.index+=e.length,{value:e,done:!1})}));var Fr=J.AggregateError,Tr=je("toStringTag");for(var _r 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 Pr=E[_r],jr=Pr&&Pr.prototype;jr&&bn(jr)!==Tr&&ut(jr,Tr,_r),fn[_r]=fn.Array}var Nr,Ir,Lr=Fr,Rr=function(e){return e&&e.Math==Math&&e},Mr=Rr("object"==typeof globalThis&&globalThis)||Rr("object"==typeof window&&window)||Rr("object"==typeof self&&self)||Rr("object"==typeof v&&v)||function(){return this}()||Function("return this")(),zr=function(e){try{return!!e()}catch(t){return!0}},$r=!zr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Hr=Function.prototype.call,Vr=Hr.bind?Hr.bind(Hr):function(){return Hr.apply(Hr,arguments)},Ur={}.propertyIsEnumerable,Wr=Object.getOwnPropertyDescriptor,Gr=Wr&&!Ur.call({1:2},1)?function(e){var t=Wr(this,e);return!!t&&t.enumerable}:Ur,qr={f:Gr},Kr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Yr=Function.prototype,Xr=Yr.bind,Zr=Yr.call,Jr=Xr&&Xr.bind(Zr),Qr=Xr?function(e){return e&&Jr(Zr,e)}:function(e){return e&&function(){return Zr.apply(e,arguments)}},eo=Qr({}.toString),to=Qr("".slice),no=function(e){return to(eo(e),8,-1)},ro=Mr.Object,oo=Qr("".split),io=zr((function(){return!ro("z").propertyIsEnumerable(0)}))?function(e){return"String"==no(e)?oo(e,""):ro(e)}:ro,ao=Mr.TypeError,uo=function(e){if(null==e)throw ao("Can't call method on "+e);return e},so=function(e){return io(uo(e))},lo=function(e){return"function"==typeof e},co=function(e){return"object"==typeof e?null!==e:lo(e)},fo=function(e){return lo(e)?e:void 0},po=function(e,t){return arguments.length<2?fo(Mr[e]):Mr[e]&&Mr[e][t]},ho=Qr({}.isPrototypeOf),go=po("navigator","userAgent")||"",vo=Mr.process,yo=Mr.Deno,mo=vo&&vo.versions||yo&&yo.version,bo=mo&&mo.v8;bo&&(Ir=(Nr=bo.split("."))[0]>0&&Nr[0]<4?1:+(Nr[0]+Nr[1])),!Ir&&go&&(!(Nr=go.match(/Edge\/(\d+)/))||Nr[1]>=74)&&(Nr=go.match(/Chrome\/(\d+)/))&&(Ir=+Nr[1]);var wo=Ir,Eo=!!Object.getOwnPropertySymbols&&!zr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&wo&&wo<41})),Do=Eo&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Co=Mr.Object,So=Do?function(e){return"symbol"==typeof e}:function(e){var t=po("Symbol");return lo(t)&&ho(t.prototype,Co(e))},xo=Mr.String,Ao=function(e){try{return xo(e)}catch(t){return"Object"}},Oo=Mr.TypeError,ko=function(e){if(lo(e))return e;throw Oo(Ao(e)+" is not a function")},Bo=function(e,t){var n=e[t];return null==n?void 0:ko(n)},Fo=Mr.TypeError,To=Object.defineProperty,_o=function(e,t){try{To(Mr,e,{value:t,configurable:!0,writable:!0})}catch(OP){Mr[e]=t}return t},Po=Mr["__core-js_shared__"]||_o("__core-js_shared__",{}),jo=y((function(e){(e.exports=function(e,t){return Po[e]||(Po[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),No=Mr.Object,Io=function(e){return No(uo(e))},Lo=Qr({}.hasOwnProperty),Ro=Object.hasOwn||function(e,t){return Lo(Io(e),t)},Mo=0,zo=Math.random(),$o=Qr(1..toString),Ho=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$o(++Mo+zo,36)},Vo=jo("wks"),Uo=Mr.Symbol,Wo=Uo&&Uo.for,Go=Do?Uo:Uo&&Uo.withoutSetter||Ho,qo=function(e){if(!Ro(Vo,e)||!Eo&&"string"!=typeof Vo[e]){var t="Symbol."+e;Eo&&Ro(Uo,e)?Vo[e]=Uo[e]:Vo[e]=Do&&Wo?Wo(t):Go(t)}return Vo[e]},Ko=Mr.TypeError,Yo=qo("toPrimitive"),Xo=function(e){var t=function(e,t){if(!co(e)||So(e))return e;var n,r=Bo(e,Yo);if(r){if(void 0===t&&(t="default"),n=Vr(r,e,t),!co(n)||So(n))return n;throw Ko("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&lo(n=e.toString)&&!co(r=Vr(n,e)))return r;if(lo(n=e.valueOf)&&!co(r=Vr(n,e)))return r;if("string"!==t&&lo(n=e.toString)&&!co(r=Vr(n,e)))return r;throw Fo("Can't convert object to primitive value")}(e,t)}(e,"string");return So(t)?t:t+""},Zo=Mr.document,Jo=co(Zo)&&co(Zo.createElement),Qo=function(e){return Jo?Zo.createElement(e):{}},ei=!$r&&!zr((function(){return 7!=Object.defineProperty(Qo("div"),"a",{get:function(){return 7}}).a})),ti=Object.getOwnPropertyDescriptor,ni=$r?ti:function(e,t){if(e=so(e),t=Xo(t),ei)try{return ti(e,t)}catch(n){}if(Ro(e,t))return Kr(!Vr(qr.f,e,t),e[t])},ri={f:ni},oi=Mr.String,ii=Mr.TypeError,ai=function(e){if(co(e))return e;throw ii(oi(e)+" is not an object")},ui=Mr.TypeError,si=Object.defineProperty,li=$r?si:function(e,t,n){if(ai(e),t=Xo(t),ai(n),ei)try{return si(e,t,n)}catch(r){}if("get"in n||"set"in n)throw ui("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ci={f:li},fi=$r?function(e,t,n){return ci.f(e,t,Kr(1,n))}:function(e,t,n){return e[t]=n,e},di=Qr(Function.toString);lo(Po.inspectSource)||(Po.inspectSource=function(e){return di(e)});var pi,hi,gi,vi=Po.inspectSource,yi=Mr.WeakMap,mi=lo(yi)&&/native code/.test(vi(yi)),bi=jo("keys"),wi=function(e){return bi[e]||(bi[e]=Ho(e))},Ei={},Di=Mr.TypeError,Ci=Mr.WeakMap;if(mi||Po.state){var Si=Po.state||(Po.state=new Ci),xi=Qr(Si.get),Ai=Qr(Si.has),Oi=Qr(Si.set);pi=function(e,t){if(Ai(Si,e))throw new Di("Object already initialized");return t.facade=e,Oi(Si,e,t),t},hi=function(e){return xi(Si,e)||{}},gi=function(e){return Ai(Si,e)}}else{var ki=wi("state");Ei[ki]=!0,pi=function(e,t){if(Ro(e,ki))throw new Di("Object already initialized");return t.facade=e,fi(e,ki,t),t},hi=function(e){return Ro(e,ki)?e[ki]:{}},gi=function(e){return Ro(e,ki)}}var Bi={set:pi,get:hi,has:gi,enforce:function(e){return gi(e)?hi(e):pi(e,{})},getterFor:function(e){return function(t){var n;if(!co(t)||(n=hi(t)).type!==e)throw Di("Incompatible receiver, "+e+" required");return n}}},Fi=Function.prototype,Ti=$r&&Object.getOwnPropertyDescriptor,_i=Ro(Fi,"name"),Pi={EXISTS:_i,PROPER:_i&&"something"===function(){}.name,CONFIGURABLE:_i&&(!$r||$r&&Ti(Fi,"name").configurable)},ji=y((function(e){var t=Pi.CONFIGURABLE,n=Bi.get,r=Bi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;lo(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ro(i,"name")||t&&i.name!==f)&&fi(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Mr?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:fi(e,n,i)):l?e[n]=i:_o(n,i)})(Function.prototype,"toString",(function(){return lo(this)&&n(this).source||vi(this)}))})),Ni=Math.ceil,Ii=Math.floor,Li=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ii:Ni)(t)},Ri=Math.max,Mi=Math.min,zi=function(e,t){var n=Li(e);return n<0?Ri(n+t,0):Mi(n,t)},$i=Math.min,Hi=function(e){return e>0?$i(Li(e),9007199254740991):0},Vi=function(e){return Hi(e.length)},Ui=function(e){return function(t,n,r){var o,i=so(t),a=Vi(i),u=zi(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}},Wi=(Ui(!0),Ui(!1)),Gi=Qr([].push),qi=function(e,t){var n,r=so(e),o=0,i=[];for(n in r)!Ro(Ei,n)&&Ro(r,n)&&Gi(i,n);for(;t.length>o;)Ro(r,n=t[o++])&&(~Wi(i,n)||Gi(i,n));return i},Ki=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yi=Ki.concat("length","prototype"),Xi=Object.getOwnPropertyNames||function(e){return qi(e,Yi)},Zi={f:Xi},Ji={f:Object.getOwnPropertySymbols},Qi=Qr([].concat),ea=po("Reflect","ownKeys")||function(e){var t=Zi.f(ai(e)),n=Ji.f;return n?Qi(t,n(e)):t},ta=function(e,t){for(var n=ea(t),r=ci.f,o=ri.f,i=0;i<n.length;i++){var a=n[i];Ro(e,a)||r(e,a,o(t,a))}},na=/#|\.prototype\./,ra=function(e,t){var n=ia[oa(e)];return n==ua||n!=aa&&(lo(t)?zr(t):!!t)},oa=ra.normalize=function(e){return String(e).replace(na,".").toLowerCase()},ia=ra.data={},aa=ra.NATIVE="N",ua=ra.POLYFILL="P",sa=ra,la=ri.f,ca=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Mr:l?Mr[u]||_o(u,{}):(Mr[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=la(n,r))&&a.value:n[r],!sa(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;ta(i,o)}(e.sham||o&&o.sham)&&fi(i,"sham",!0),ji(n,r,i,e)}},fa={};fa[qo("toStringTag")]="z";var da,pa="[object z]"===String(fa),ha=qo("toStringTag"),ga=Mr.Object,va="Arguments"==no(function(){return arguments}()),ya=pa?no: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=ga(e),ha))?n:va?no(t):"Object"==(r=no(t))&&lo(t.callee)?"Arguments":r},ma=Mr.String,ba=function(e){if("Symbol"===ya(e))throw TypeError("Cannot convert a Symbol value to a string");return ma(e)},wa=function(){var e=ai(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},Ea=Mr.RegExp,Da=zr((function(){var e=Ea("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Ca=Da||zr((function(){return!Ea("a","y").sticky})),Sa=Da||zr((function(){var e=Ea("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),xa={BROKEN_CARET:Sa,MISSED_STICKY:Ca,UNSUPPORTED_Y:Da},Aa=Object.keys||function(e){return qi(e,Ki)},Oa=$r?Object.defineProperties:function(e,t){ai(e);for(var n,r=so(t),o=Aa(t),i=o.length,a=0;i>a;)ci.f(e,n=o[a++],r[n]);return e},ka=po("document","documentElement"),Ba=wi("IE_PROTO"),Fa=function(){},Ta=function(e){return"<script>"+e+"<\/script>"},_a=function(e){e.write(Ta("")),e.close();var t=e.parentWindow.Object;return e=null,t},Pa=function(){try{da=new ActiveXObject("htmlfile")}catch(r){}var e,t;Pa="undefined"!=typeof document?document.domain&&da?_a(da):((t=Qo("iframe")).style.display="none",ka.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ta("document.F=Object")),e.close(),e.F):_a(da);for(var n=Ki.length;n--;)delete Pa.prototype[Ki[n]];return Pa()};Ei[Ba]=!0;var ja,Na,Ia=Object.create||function(e,t){var n;return null!==e?(Fa.prototype=ai(e),n=new Fa,Fa.prototype=null,n[Ba]=e):n=Pa(),void 0===t?n:Oa(n,t)},La=Mr.RegExp,Ra=zr((function(){var e=La(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Ma=Mr.RegExp,za=zr((function(){var e=Ma("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$a=Bi.get,Ha=jo("native-string-replace",String.prototype.replace),Va=RegExp.prototype.exec,Ua=Va,Wa=Qr("".charAt),Ga=Qr("".indexOf),qa=Qr("".replace),Ka=Qr("".slice),Ya=(Na=/b*/g,Vr(Va,ja=/a/,"a"),Vr(Va,Na,"a"),0!==ja.lastIndex||0!==Na.lastIndex),Xa=xa.BROKEN_CARET,Za=void 0!==/()??/.exec("")[1];(Ya||Za||Xa||Ra||za)&&(Ua=function(e){var t,n,r,o,i,a,u,s=this,l=$a(s),c=ba(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Vr(Ua,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Xa&&s.sticky,h=Vr(wa,s),g=s.source,v=0,y=c;if(p&&(h=qa(h,"y",""),-1===Ga(h,"g")&&(h+="g"),y=Ka(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Wa(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Za&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Ya&&(r=s.lastIndex),o=Vr(Va,p?n:s,y),p?o?(o.input=Ka(o.input,v),o[0]=Ka(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ya&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Za&&o&&o.length>1&&Vr(Ha,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=Ia(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ja=Ua;ca({target:"RegExp",proto:!0,forced:/./.exec!==Ja},{exec:Ja});qo("species");var Qa=RegExp.prototype,eu=Qr("".charAt),tu=Qr("".charCodeAt),nu=Qr("".slice),ru=function(e){return function(t,n){var r,o,i=ba(uo(t)),a=Li(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=tu(i,a))<55296||r>56319||a+1===u||(o=tu(i,a+1))<56320||o>57343?e?eu(i,a):r:e?nu(i,a,a+2):o-56320+(r-55296<<10)+65536}},ou={codeAt:ru(!1),charAt:ru(!0)},iu=ou.charAt,au=function(e,t,n){return t+(n?iu(e,t).length:1)},uu=Mr.TypeError,su=function(e,t){var n=e.exec;if(lo(n)){var r=Vr(n,e,t);return null!==r&&ai(r),r}if("RegExp"===no(e))return Vr(Ja,e,t);throw uu("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=qo(e),i=!zr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!zr((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a){var u=Qr(/./[o]),s=function(e,t,n){return[function(t){var n=uo(this),r=null==t?void 0:Bo(t,e);return r?Vr(r,t,n):new RegExp(t)[e](ba(n))},function(e){var r=ai(this),o=ba(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return su(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=su(r,o));){var c=ba(u[0]);s[l]=c,""===c&&(r.lastIndex=au(o,Hi(r.lastIndex),a)),l++}return 0===l?null:s}]}(o,""[e],(function(e,t,n,r,o){var a=Qr(e),s=t.exec;return s===Ja||s===Qa.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ji(String.prototype,e,s[0]),ji(Qa,o,s[1])}}("match"),ca({global:!0},{globalThis:Mr});var lu=!zr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cu=wi("IE_PROTO"),fu=Mr.Object,du=fu.prototype,pu=lu?fu.getPrototypeOf:function(e){var t=Io(e);if(Ro(t,cu))return t[cu];var n=t.constructor;return lo(n)&&t instanceof n?n.prototype:t instanceof fu?du:null},hu=Mr.String,gu=Mr.TypeError,vu=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Qr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return ai(n),function(e){if("object"==typeof e||lo(e))return e;throw gu("Can't set "+hu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),yu=Mr.Array,mu=Math.max,bu=Qr("".replace),wu=Qr("".split),Eu=Qr([].join),Du=String(Error("zxcasd").stack),Cu=/\n\s*at [^:]*:[^\n]*/,Su=Cu.test(Du),xu=/@[^\n]*\n/.test(Du)&&!/zxcasd/.test(Du),Au=function(e,t){if("string"!=typeof e)return e;if(Su)for(;t--;)e=bu(e,Cu,"");else if(xu)return Eu(function(e,t,n){for(var r,o,i,a,u=Vi(e),s=zi(t,u),l=zi(u,u),c=yu(mu(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=Xo(o))in r?ci.f(r,a,Kr(0,i)):r[a]=i;return c.length=f,c}(wu(e,"\n"),t),"\n");return e},Ou=function(e,t){co(t)&&"cause"in t&&fi(e,"cause",t.cause)},ku=Qr(Qr.bind),Bu=function(e,t){return ko(e),void 0===t?e:ku?ku(e,t):function(){return e.apply(t,arguments)}},Fu={},Tu=qo("iterator"),_u=Array.prototype,Pu=qo("iterator"),ju=function(e){if(null!=e)return Bo(e,Pu)||Bo(e,"@@iterator")||Fu[ya(e)]},Nu=Mr.TypeError,Iu=function(e,t,n){var r,o;ai(e);try{if(!(r=Bo(e,"return"))){if("throw"===t)throw n;return n}r=Vr(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return ai(r),n},Lu=Mr.TypeError,Ru=function(e,t){this.stopped=e,this.result=t},Mu=Ru.prototype,zu=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=Bu(t,f),v=function(e){return r&&Iu(r,"normal",e),new Ru(!0,e)},y=function(e){return d?(ai(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=ju(e)))throw Lu(Ao(e)+" is not iterable");if(void 0!==(c=o)&&(Fu.Array===c||_u[Tu]===c)){for(i=0,a=Vi(e);a>i;i++)if((u=y(e[i]))&&ho(Mu,u))return u;return new Ru(!1)}r=function(e,t){var n=arguments.length<2?ju(e):t;if(ko(n))return ai(Vr(n,e));throw Nu(Ao(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Vr(s,r)).done;){try{u=y(l.value)}catch(c){Iu(r,"throw",c)}if("object"==typeof u&&u&&ho(Mu,u))return u}return new Ru(!1)},$u=function(e,t){return void 0===e?arguments.length<2?"":t:ba(e)},Hu=!zr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Kr(1,7)),7!==e.stack)})),Vu=qo("toStringTag"),Uu=Mr.Error,Wu=[].push,Gu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ho(qu,this);vu?n=vu(new Uu(void 0),o?pu(this):qu):(n=o?this:Ia(qu),fi(n,Vu,"Error")),fi(n,"message",$u(t,"")),Hu&&fi(n,"stack",Au(n.stack,1)),Ou(n,r);var i=[];return zu(e,Wu,{that:i}),fi(n,"errors",i),n};vu?vu(Gu,Uu):ta(Gu,Uu);var qu=Gu.prototype=Ia(Uu.prototype,{constructor:Kr(1,Gu),message:Kr(1,""),name:Kr(1,"AggregateError")});ca({global:!0},{AggregateError:Gu});var Ku=qo("unscopables"),Yu=Array.prototype;null==Yu[Ku]&&ci.f(Yu,Ku,{configurable:!0,value:Ia(null)});var Xu,Zu,Ju,Qu=function(e){Yu[Ku][e]=!0},es=qo("iterator"),ts=!1;[].keys&&("next"in(Ju=[].keys())?(Zu=pu(pu(Ju)))!==Object.prototype&&(Xu=Zu):ts=!0);var ns=null==Xu||zr((function(){var e={};return Xu[es].call(e)!==e}));ns&&(Xu={}),lo(Xu[es])||ji(Xu,es,(function(){return this}));var rs={IteratorPrototype:Xu,BUGGY_SAFARI_ITERATORS:ts},os=ci.f,is=qo("toStringTag"),as=function(e,t,n){e&&!Ro(e=n?e:e.prototype,is)&&os(e,is,{configurable:!0,value:t})},us=rs.IteratorPrototype,ss=function(){return this},ls=Pi.PROPER,cs=Pi.CONFIGURABLE,fs=rs.IteratorPrototype,ds=rs.BUGGY_SAFARI_ITERATORS,ps=qo("iterator"),hs=function(){return this},gs=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=Ia(us,{next:Kr(1,s)}),as(u,l,!1),Fu[l]=ss;var c,f,d,p=function(e){if(e===o&&m)return m;if(!ds&&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[ps]||v["@@iterator"]||o&&v[o],m=!ds&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=pu(b.call(new e)))!==Object.prototype&&c.next&&(pu(c)!==fs&&(vu?vu(c,fs):lo(c[ps])||ji(c,ps,hs)),as(c,h,!0)),ls&&"values"==o&&y&&"values"!==y.name&&(cs?fi(v,"name","values"):(g=!0,m=function(){return Vr(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(ds||g||!(d in v))&&ji(v,d,f[d]);else ca({target:t,proto:!0,forced:ds||g},f);return v[ps]!==m&&ji(v,ps,m,{name:o}),Fu[t]=m,f},vs=Bi.set,ys=Bi.getterFor("Array Iterator"),ms=gs(Array,"Array",(function(e,t){vs(this,{type:"Array Iterator",target:so(e),index:0,kind:t})}),(function(){var e=ys(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");Fu.Arguments=Fu.Array,Qu("keys"),Qu("values"),Qu("entries");var bs=ou.charAt,ws=Bi.set,Es=Bi.getterFor("String Iterator");gs(String,"String",(function(e){ws(this,{type:"String Iterator",string:ba(e),index:0})}),(function(){var e,t=Es(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=bs(n,r),t.index+=e.length,{value:e,done:!1})}));var Ds,Cs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ss=Qo("span").classList,xs=Ss&&Ss.constructor&&Ss.constructor.prototype,As=xs===Object.prototype?void 0:xs,Os=qo("iterator"),ks=qo("toStringTag"),Bs=ms.values,Fs=function(e,t){if(e){if(e[Os]!==Bs)try{fi(e,Os,Bs)}catch(r){e[Os]=Bs}if(e[ks]||fi(e,ks,t),Cs[t])for(var n in ms)if(e[n]!==ms[n])try{fi(e,n,ms[n])}catch(r){e[n]=ms[n]}}};for(var Ts in Cs)Fs(Mr[Ts]&&Mr[Ts].prototype,Ts);function _s(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Ps(){void 0===Lr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Fs(As,"DOMTokenList"),"undefined"==typeof global?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),_s(),Ps()):global&&(null===(Ds=global.navigator)||void 0===Ds?void 0:Ds.userAgent.match("QQBrowser"))&&(_s(),Ps());var js=Array.isArray||function(e){return"Array"==U(e)},Ns=function(){},Is=[],Ls=ee("Reflect","construct"),Rs=/^\s*(?:class|function)\b/,Ms=T(Rs.exec),zs=!Rs.exec(Ns),$s=function(e){if(!_(e))return!1;try{return Ls(Ns,Is,e),!0}catch(t){return!1}},Hs=!Ls||P((function(){var e;return $s($s.call)||!$s(Object)||!$s((function(){e=!0}))||e}))?function(e){if(!_(e))return!1;switch(bn(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zs||!!Ms(Rs,$n(e))}:$s,Vs=je("species"),Us=E.Array,Ws=function(e,t){return new(js(n=e)&&(r=n.constructor,(Hs(r)&&(r===Us||js(r.prototype))||Z(r)&&null===(r=r[Vs]))&&(r=void 0)),void 0===r?Us:r)(0===t?0:t);var n,r},Gs=je("species"),qs=je("isConcatSpreadable"),Ks=E.TypeError,Ys=se>=51||!P((function(){var e=[];return e[qs]=!1,e.concat()[0]!==e})),Xs=("concat",se>=51||!P((function(){var e=[];return(e.constructor={})[Gs]=function(){return{foo:1}},1!==e.concat(Boolean).foo}))),Zs=function(e){if(!Z(e))return!1;var t=e[qs];return void 0!==t?!!t:js(e)};ct({target:"Array",proto:!0,forced:!Ys||!Xs},{concat:function(e){var t,n,r,o,i,a=Ce(this),u=Ws(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Zs(i=-1===t?a:arguments[t])){if(s+(o=kt(i))>9007199254740991)throw Ks("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Zt(u,s,i[n])}else{if(s>=9007199254740991)throw Ks("Maximum allowed index exceeded");Zt(u,s++,i)}return u.length=s,u}});var Js=Rt.f,Qs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],el={f:function(e){return Qs&&"Window"==U(e)?function(e){try{return Js(e)}catch(t){return en(Qs)}}(e):Js(X(e))}},tl=T([].slice),nl={f:je},rl=at.f,ol=function(e){var t=J.Symbol||(J.Symbol={});xe(t,e)||rl(t,e,{value:nl.f(e)})},il=T([].push),al=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Ce(s),g=q(h),v=Qe(l,c),y=kt(g),m=0,b=f||Ws,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:il(w,d)}else switch(e){case 4:return!1;case 7:il(w,d)}return i?-1:r||o?o:w}},ul=[al(0),al(1),al(2),al(3),al(4),al(5),al(6),al(7)][0],sl=dt("hidden"),ll=je("toPrimitive"),cl=er.set,fl=er.getterFor("Symbol"),dl=Object.prototype,pl=E.Symbol,hl=pl&&pl.prototype,gl=E.TypeError,vl=E.QObject,yl=ee("JSON","stringify"),ml=Ue.f,bl=at.f,wl=el.f,El=z.f,Dl=T([].push),Cl=Ee("symbols"),Sl=Ee("op-symbols"),xl=Ee("string-to-symbol-registry"),Al=Ee("symbol-to-string-registry"),Ol=Ee("wks"),kl=!vl||!vl.prototype||!vl.prototype.findChild,Bl=j&&P((function(){return 7!=Xt(bl({},"a",{get:function(){return bl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ml(dl,t);r&&delete dl[t],bl(e,t,n),r&&e!==dl&&bl(dl,t,r)}:bl,Fl=function(e,t){var n=Cl[e]=Xt(hl);return cl(n,{type:"Symbol",tag:e,description:t}),j||(n.description=t),n},Tl=function(e,t,n){e===dl&&Tl(Sl,t,n),nt(e);var r=Le(t);return nt(n),xe(Cl,r)?(n.enumerable?(xe(e,sl)&&e[sl][r]&&(e[sl][r]=!1),n=Xt(n,{enumerable:$(0,!1)})):(xe(e,sl)||bl(e,sl,$(1,{})),e[sl][r]=!0),Bl(e,r,n)):bl(e,r,n)},_l=function(e,t){nt(e);var n=X(t),r=Ht(n).concat(Il(n));return ul(r,(function(t){j&&!I(Pl,n,t)||Tl(e,t,n[t])})),e},Pl=function(e){var t=Le(e),n=I(El,this,t);return!(this===dl&&xe(Cl,t)&&!xe(Sl,t))&&(!(n||!xe(this,t)||!xe(Cl,t)||xe(this,sl)&&this[sl][t])||n)},jl=function(e,t){var n=X(e),r=Le(t);if(n!==dl||!xe(Cl,r)||xe(Sl,r)){var o=ml(n,r);return!o||!xe(Cl,r)||xe(n,sl)&&n[sl][r]||(o.enumerable=!0),o}},Nl=function(e){var t=wl(X(e)),n=[];return ul(t,(function(e){xe(Cl,e)||xe(Tt,e)||Dl(n,e)})),n},Il=function(e){var t=e===dl,n=wl(t?Sl:X(e)),r=[];return ul(n,(function(e){!xe(Cl,e)||t&&!xe(dl,e)||Dl(r,Cl[e])})),r};if(le||(hl=(pl=function(){if(te(hl,this))throw gl("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Bn(arguments[0]):void 0,t=Be(e),n=function(e){this===dl&&I(n,Sl,e),xe(this,sl)&&xe(this[sl],t)&&(this[sl][t]=!1),Bl(this,t,$(1,e))};return j&&kl&&Bl(dl,t,{configurable:!0,set:n}),Fl(t,e)}).prototype,ir(hl,"toString",(function(){return fl(this).tag})),ir(pl,"withoutSetter",(function(e){return Fl(Be(e),e)})),z.f=Pl,at.f=Tl,Ue.f=jl,Rt.f=el.f=Nl,Mt.f=Il,nl.f=function(e){return Fl(je(e),e)},j&&bl(hl,"description",{configurable:!0,get:function(){return fl(this).description}})),ct({global:!0,wrap:!0,forced:!le,sham:!le},{Symbol:pl}),ul(Ht(Ol),(function(e){ol(e)})),ct({target:"Symbol",stat:!0,forced:!le},{for:function(e){var t=Bn(e);if(xe(xl,t))return xl[t];var n=pl(t);return xl[t]=n,Al[n]=t,n},keyFor:function(e){if(!de(e))throw gl(e+" is not a symbol");if(xe(Al,e))return Al[e]},useSetter:function(){kl=!0},useSimple:function(){kl=!1}}),ct({target:"Object",stat:!0,forced:!le,sham:!j},{create:function(e,t){return void 0===t?Xt(e):_l(Xt(e),t)},defineProperty:Tl,defineProperties:_l,getOwnPropertyDescriptor:jl}),ct({target:"Object",stat:!0,forced:!le},{getOwnPropertyNames:Nl,getOwnPropertySymbols:Il}),ct({target:"Object",stat:!0,forced:P((function(){Mt.f(1)}))},{getOwnPropertySymbols:function(e){return Mt.f(Ce(e))}}),yl){var Ll=!le||P((function(){var e=pl();return"[null]"!=yl([e])||"{}"!=yl({a:e})||"{}"!=yl(Object(e))}));ct({target:"JSON",stat:!0,forced:Ll},{stringify:function(e,t,n){var r=tl(arguments),o=t;if((Z(t)||void 0!==e)&&!de(e))return js(t)||(t=function(e,t){if(_(o)&&(t=I(o,this,e,t)),!de(t))return t}),r[1]=t,A(yl,null,r)}})}if(!hl[ll]){var Rl=hl.valueOf;ir(hl,ll,(function(e){return I(Rl,this)}))}pr(pl,"Symbol"),Tt[sl]=!0,ol("asyncIterator"),ol("hasInstance"),ol("isConcatSpreadable"),ol("iterator"),ol("match"),ol("matchAll"),ol("replace"),ol("search"),ol("species"),ol("split"),ol("toPrimitive"),ol("toStringTag"),ol("unscopables"),pr(E.JSON,"JSON",!0);var Ml=J.Symbol;ol("asyncDispose"),ol("dispose"),ol("matcher"),ol("metadata"),ol("observable"),ol("patternMatch"),ol("replaceAll");var zl,$l=Ml,Hl=nl.f("iterator"),Vl=y((function(e){function t(n){return"function"==typeof $l&&"symbol"==typeof Hl?(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 $l&&e.constructor===$l&&e!==$l.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})),Ul=(zl=Vl)&&zl.__esModule&&Object.prototype.hasOwnProperty.call(zl,"default")?zl.default:zl,Wl=ri.f,Gl=zr((function(){Wl(1)}));if(ca({target:"Object",stat:!0,forced:!$r||Gl,sham:!$r},{getOwnPropertyDescriptor:function(e,t){return Wl(so(e),t)}}),"object"===("undefined"==typeof global?"undefined":Ul(global))){var ql=Object.getOwnPropertyDescriptor(global,"window");global.window&&!ql.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 Kl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Yl(e){var t,n;return!1!==Kl(e)&&(void 0===(t=e.constructor)||!1!==Kl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Xl(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 Zl(e){return!!e&&!!e[Nc]}function Jl(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)===Ic}(e)||Array.isArray(e)||!!e[jc]||!!e.constructor[jc]||rc(e)||oc(e))}function Ql(e,t,n){void 0===n&&(n=!1),0===ec(e)?(n?Object.keys:Lc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function ec(e){var t=e[Nc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rc(e)?2:oc(e)?3:0}function tc(e,t){return 2===ec(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function nc(e,t,n){var r=ec(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function rc(e){return Fc&&e instanceof Map}function oc(e){return Tc&&e instanceof Set}function ic(e){return e.o||e.t}function ac(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Rc(e);delete t[Nc];for(var n=Lc(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 uc(e,t){return void 0===t&&(t=!1),lc(e)||Zl(e)||!Jl(e)||(ec(e)>1&&(e.set=e.add=e.clear=e.delete=sc),Object.freeze(e),t&&Ql(e,(function(e,t){return uc(t,!0)}),!0)),e}function sc(){Xl(2)}function lc(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function cc(e){var t=Mc[e];return t||Xl(18,e),t}function fc(){return kc}function dc(e,t){t&&(cc("Patches"),e.u=[],e.s=[],e.v=t)}function pc(e){hc(e),e.p.forEach(vc),e.p=null}function hc(e){e===kc&&(kc=e.l)}function gc(e){return kc={p:[],l:kc,h:e,m:!0,_:0}}function vc(e){var t=e[Nc];0===t.i||1===t.i?t.j():t.O=!0}function yc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||cc("ES5").S(t,e,r),r?(n[Nc].P&&(pc(t),Xl(4)),Jl(e)&&(e=mc(t,e),t.l||wc(t,e)),t.u&&cc("Patches").M(n[Nc],e,t.u,t.s)):e=mc(t,n,[]),pc(t),t.u&&t.v(t.u,t.s),e!==Pc?e:void 0}function mc(e,t,n){if(lc(t))return t;var r=t[Nc];if(!r)return Ql(t,(function(o,i){return bc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return wc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=ac(r.k):r.o;Ql(3===r.i?new Set(o):o,(function(t,i){return bc(e,r,o,t,i,n)})),wc(e,o,!1),n&&e.u&&cc("Patches").R(r,n,e.u,e.s)}return r.o}function bc(e,t,n,r,o,i){if(Zl(o)){var a=mc(e,o,i&&t&&3!==t.i&&!tc(t.D,r)?i.concat(r):void 0);if(nc(n,r,a),!Zl(a))return;e.m=!1}if(Jl(o)&&!lc(o)){if(!e.h.F&&e._<1)return;mc(e,o),t&&t.A.l||wc(e,o)}}function wc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&uc(t,n)}function Ec(e,t){var n=e[Nc];return(n?ic(n):e)[t]}function Dc(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 Cc(e){e.P||(e.P=!0,e.l&&Cc(e.l))}function Sc(e){e.o||(e.o=ac(e.t))}function xc(e,t,n){var r=rc(t)?cc("MapSet").N(t,n):oc(t)?cc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:fc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=zc;n&&(o=[r],i=$c);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):cc("ES5").J(t,n);return(n?n.A:fc()).p.push(r),r}function Ac(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ac(e)}var Oc,kc,Bc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Fc="undefined"!=typeof Map,Tc="undefined"!=typeof Set,_c="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Pc=Bc?Symbol.for("immer-nothing"):((Oc={})["immer-nothing"]=!0,Oc),jc=Bc?Symbol.for("immer-draftable"):"__$immer_draftable",Nc=Bc?Symbol.for("immer-state"):"__$immer_state",Ic=""+Object.prototype.constructor,Lc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Rc=Object.getOwnPropertyDescriptors||function(e){var t={};return Lc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Mc={},zc={get:function(e,t){if(t===Nc)return e;var n=ic(e);if(!tc(n,t))return function(e,t,n){var r,o=Dc(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||!Jl(r)?r:r===Ec(e.t,t)?(Sc(e),e.o[t]=xc(e.A.h,r,e)):r},has:function(e,t){return t in ic(e)},ownKeys:function(e){return Reflect.ownKeys(ic(e))},set:function(e,t,n){var r,o,i=Dc(ic(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=Ec(ic(e),t),u=null==a?void 0:a[Nc];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||tc(e.t,t)))return!0;Sc(e),Cc(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!==Ec(e.t,t)||t in e.t?(e.D[t]=!1,Sc(e),Cc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ic(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(){Xl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Xl(12)}},$c={};Ql(zc,(function(e,t){$c[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),$c.deleteProperty=function(e,t){return zc.deleteProperty.call(this,e[0],t)},$c.set=function(e,t,n){return zc.set.call(this,e[0],t,n,e[0])};var Hc=function(){function e(e){var t=this;this.g=_c,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&&Xl(6),void 0!==r&&"function"!=typeof r&&Xl(7),Jl(e)){var u=gc(t),s=xc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?pc(u):hc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return dc(u,r),yc(e,u)}),(function(e){throw pc(u),e})):(dc(u,r),yc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Pc)return;return void 0===a&&(a=e),t.F&&uc(a,!0),a}Xl(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){Jl(e)||Xl(8),Zl(e)&&(e=function(e){return Zl(e)||Xl(22,e),function e(t){if(!Jl(t))return t;var n,r=t[Nc],o=ec(t);if(r){if(!r.P&&(r.i<4||!cc("ES5").K(r)))return r.t;r.I=!0,n=Ac(t,o),r.I=!1}else n=Ac(t,o);return Ql(n,(function(t,o){var i,a;r&&(a=t,(2===ec(i=r.t)?i.get(a):i[a])===o)||nc(n,t,e(o))})),3===o?new Set(n):n}(e)}(e));var t=gc(this),n=xc(this,e,void 0);return n[Nc].C=!0,hc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Nc]).A;return dc(n,t),yc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!_c&&Xl(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=cc("Patches").$;return Zl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Vc=new Hc,Uc=Vc.produce;Vc.produceWithPatches.bind(Vc),Vc.setAutoFreeze.bind(Vc),Vc.setUseProxies.bind(Vc),Vc.applyPatches.bind(Vc);var Wc=Vc.createDraft.bind(Vc),Gc=Vc.finishDraft.bind(Vc);function qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kc=new WeakMap,Yc=new WeakMap,Xc=new WeakMap,Zc=new WeakMap,Jc=new WeakMap,Qc=new WeakMap;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 tf(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){qc(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 nf=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Kf.levels(t);case"insert_node":var{node:n,path:r}=e;return[...Kf.levels(r),...ld.isText(n)?[]:Array.from(Uf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...Kf.ancestors(o),Kf.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(Kf.equals(i,a))return[];var u=[],s=[];for(var l of Kf.ancestors(i)){var c=Kf.transform(l,e);u.push(c)}for(var f of Kf.ancestors(a)){var d=Kf.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[...Kf.ancestors(v)];case"split_node":var{path:y}=e;return[...Kf.levels(y),Kf.next(y)];default:return[]}};function rf(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 of,af=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?df(e):e,o=of.None,i=of.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=Sf(s,l);if([o,i]=n?[i,c]:[c,o],xf(o,of.ZWJ)&&xf(i,of.ExtPict)&&!Bf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(xf(o,of.RI)&&xf(i,of.RI)&&!(u=null!==u?!u:!!n||Tf(e.substring(0,e.length-a))))break;if(o!==of.None&&i!==of.None&&Of(o,i))break;a+=s.length}return a||1},uf=/\s/,sf=/[\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]/,lf=/['\u2018\u2019]/,cf=(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)]},ff=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(uf.test(t))return!1;if(lf.test(t)){var o=af(n,r),[i,a]=cf(n,o,r);if(e(i,a,r))return!0}return!sf.test(t)},df=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(hf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(pf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},pf=e=>e>=55296&&e<=56319,hf=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"}(of||(of={}));var gf=/^(?:[\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])$/,vf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,yf=/^(?:[\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])$/,mf=/^[\u1100-\u115F\uA960-\uA97C]$/,bf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,wf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Ef=/^[\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]$/,Df=/^[\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]$/,Cf=/^(?:[\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])$/,Sf=(e,t)=>{var n=of.Any;return-1!==e.search(gf)&&(n|=of.Extend),8205===t&&(n|=of.ZWJ),t>=127462&&t<=127487&&(n|=of.RI),-1!==e.search(vf)&&(n|=of.Prepend),-1!==e.search(yf)&&(n|=of.SpacingMark),-1!==e.search(mf)&&(n|=of.L),-1!==e.search(bf)&&(n|=of.V),-1!==e.search(wf)&&(n|=of.T),-1!==e.search(Ef)&&(n|=of.LV),-1!==e.search(Df)&&(n|=of.LVT),-1!==e.search(Cf)&&(n|=of.ExtPict),n};function xf(e,t){return 0!=(e&t)}var Af=[[of.L,of.L|of.V|of.LV|of.LVT],[of.LV|of.V,of.V|of.T],[of.LVT|of.T,of.T],[of.Any,of.Extend|of.ZWJ],[of.Any,of.SpacingMark],[of.Prepend,of.Any],[of.ZWJ,of.ExtPict],[of.RI,of.RI]];function Of(e,t){return-1===Af.findIndex((n=>xf(e,n[0])&&xf(t,n[1])))}var kf=/(?:[\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$/,Bf=e=>-1!==e.search(kf),Ff=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Tf=e=>{var t=e.match(Ff);return null!==t&&t[0].length/2%2==1},_f=e=>Yl(e)&&Uf.isNodeList(e.children)&&!Mf.isEditor(e),Pf={isAncestor:e=>Yl(e)&&Uf.isNodeList(e.children),isElement:_f,isElementList:e=>Array.isArray(e)&&e.every((e=>Pf.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 _f(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},jf=["text"],Nf=["text"];function If(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 Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?If(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):If(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rf=new WeakMap,Mf={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=Mf.path(e,o),u="lowest"===r;for(var[s,l]of Mf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!ld.isText(s)&&!Kf.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:Mf.point(e,t,{edge:"end"}),focus:Mf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Mf.positions(e,Lf(Lf({},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:Mf.start(e,[]),focus:Mf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Mf.positions(e,Lf(Lf({},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)=>[Mf.start(e,t),Mf.end(e,t)],end:(e,t)=>Mf.point(e,t,{edge:"end"}),first(e,t){var n=Mf.path(e,t,{edge:"start"});return Mf.node(e,n)},fragment(e,t){var n=Mf.range(e,t);return Uf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Mf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>ld.isText(t)||Mf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>ld.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)=>Pf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Yl(e))return!1;var t=Rf.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||Yl(e.marks))&&(null===e.selection||nd.isRange(e.selection))&&Uf.isNodeList(e.children)&&qf.isOperationList(e.operations);return Rf.set(e,n),n},isEnd(e,t,n){var r=Mf.end(e,n);return Jf.equals(t,r)},isEdge:(e,t,n)=>Mf.isStart(e,t,n)||Mf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&ld.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Pf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Xc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Mf.start(e,n);return Jf.equals(t,r)},isVoid:(e,t)=>Pf.isElement(t)&&e.isVoid(t),last(e,t){var n=Mf.path(e,t,{edge:"end"});return Mf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mf.path(e,t,n);return[Uf.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=Mf.path(e,n);for(var[s,l]of Uf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Mf.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(nd.isExpanded(n)){var[r]=Mf.nodes(e,{match:ld.isText});if(r){var[o]=r;return rf(o,jf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Mf.leaf(e,a);if(0===i.offset){var s=Mf.previous(e,{at:a,match:ld.isText}),l=Mf.above(e,{match:t=>Mf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Kf.isAncestor(d,f)&&(u=c)}}return rf(u,Nf)},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=Mf.after(e,i,{voids:r});if(a){var[,u]=Mf.last(e,[]),s=[a.path,u];if(Kf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Kf.isPath(i)){var[l]=Mf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Mf.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=Mf.path(e,t,n);return[Uf.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(zf.isSpan(n))s=n[0],l=n[1];else{var c=Mf.path(e,n,{edge:"start"}),f=Mf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Uf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Mf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Kf.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&&ld.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=>Kc.get(e)||[];if(Mf.isNormalizing(e)){if(n){var o=Array.from(Uf.nodes(e),(e=>{var[,t]=e;return t}));Kc.set(e,o)}0!==r(e).length&&Mf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Uf.has(e,t)){var n=Mf.node(e,t),[o,i]=n;Pf.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(Uf.has(e,s)){var l=Mf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mf.path(e,t,n),o=Kf.parent(r);return Mf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Kf.isPath(t))if("start"===o){var[,i]=Uf.first(e,t);t=i}else if("end"===o){var[,a]=Uf.last(e,t);t=a}return nd.isRange(t)&&(t="start"===o?nd.start(t):"end"===o?nd.end(t):Kf.common(t.anchor.path,t.focus.path)),Jf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Uf.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 Mf.pathRefs(e).delete(o),o.current=null,t}};return Mf.pathRefs(e).add(o),o},pathRefs(e){var t=Zc.get(e);return t||(t=new Set,Zc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Kf.isPath(t)){var o;if("end"===r){var[,i]=Uf.last(e,t);o=i}else{var[,a]=Uf.first(e,t);o=a}var u=Uf.get(e,o);if(!ld.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(nd.isRange(t)){var[s,l]=nd.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 Mf.pointRefs(e).delete(o),o.current=null,t}};return Mf.pointRefs(e).add(o),o},pointRefs(e){var t=Jc.get(e);return t||(t=new Set,Jc.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=Mf.range(e,i),[c,f]=nd.edges(l),d=u?f:c,p=!1,h="",g=0,v=0,y=0;for(var[m,b]of Mf.nodes(e,{at:i,reverse:u,voids:s})){if(Pf.isElement(m)){if(!s&&e.isVoid(m)){yield Mf.start(e,b);continue}if(e.isInline(m))continue;if(Mf.hasInlines(e,m)){var w=Kf.isAncestor(b,f.path)?f:Mf.end(e,b),E=Kf.isAncestor(b,c.path)?c:Mf.start(e,b);h=Mf.string(e,{anchor:E,focus:w},{voids:s}),p=!0}}if(ld.isText(m)){var D=Kf.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)?af(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=af(e,t),[i,a]=cf(e,o,t);if(ff(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=cf(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=Mf.before(e,i,{voids:r});if(a){var[,u]=Mf.first(e,[]),s=[a.path,u];if(Kf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Kf.isPath(i)){var[l]=Mf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Mf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>nd.isRange(t)&&!n?t:{anchor:Mf.start(e,t),focus:Mf.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 Mf.rangeRefs(e).delete(o),o.current=null,t}};return Mf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Qc.get(e);return t||(t=new Set,Qc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Xc.set(e,t)},start:(e,t)=>Mf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Mf.range(e,t),[i,a]=nd.edges(o),u="";for(var[s,l]of Mf.nodes(e,{at:o,match:ld.isText,voids:r})){var c=s.text;Kf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Kf.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]=nd.edges(t);if(0!==o.offset||0!==i.offset||nd.isCollapsed(t))return t;var a=Mf.above(e,{at:i,match:t=>Mf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Mf.start(e,[]),focus:i},l=!0;for(var[c,f]of Mf.nodes(e,{at:s,match:ld.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Kf.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 Mf.above(e,Lf(Lf({},t),{},{match:t=>Mf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Mf.isNormalizing(e);Mf.setNormalizing(e,!1);try{t()}finally{Mf.setNormalizing(e,n)}Mf.normalize(e)}},zf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Kf.isPath)},$f=["children"],Hf=["text"],Vf=new WeakMap,Uf={ancestor(e,t){var n=Uf.get(e,t);if(ld.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 Kf.ancestors(t,n)){var o=[Uf.ancestor(e,r),r];yield o}},child(e,t){if(ld.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=Uf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Uf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Kf.common(t,n);return[Uf.get(e,r),r]},descendant(e,t){var n=Uf.get(e,t);if(Mf.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 Uf.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 Uf.nodes(e,t))Pf.isElement(n)&&(yield[n,r])},extractProps:e=>Pf.isAncestor(e)?rf(e,$f):rf(e,Hf),first(e,t){for(var n=t.slice(),r=Uf.get(e,n);r&&!ld.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(ld.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Uc({children:e.children},(e=>{var[n,r]=nd.edges(t),o=Uf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!nd.includes(t,n)}});for(var[,i]of o){if(!nd.includes(t,i)){var a=Uf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Kf.equals(i,r.path)){var s=Uf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Kf.equals(i,n.path)){var l=Uf.leaf(e,i);l.text=l.text.slice(n.offset)}}Mf.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(ld.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(ld.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>ld.isText(e)||Pf.isElement(e)||Mf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Vf.get(e);if(void 0!==t)return t;var n=e.every((e=>Uf.isNode(e)));return Vf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Uf.get(e,n);r&&!ld.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=Uf.get(e,t);if(!ld.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 Kf.levels(t,n)){var o=Uf.get(e,r);yield[o,r]}},matches:(e,t)=>Pf.isElement(e)&&Pf.isElementProps(t)&&Pf.matches(e,t)||ld.isText(e)&&ld.isTextProps(t)&&ld.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?Kf.isBefore(u,i):Kf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ld.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Kf.next(u);if(Uf.has(e,l)){u=l,s=Uf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Kf.previous(u),s=Uf.get(e,u)):(u=Kf.parent(u),s=Uf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Kf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Uf.get(e,u)}},parent(e,t){var n=Kf.parent(t),r=Uf.get(e,n);if(ld.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=>ld.isText(e)?e.text:e.children.map(Uf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Uf.nodes(e,t))ld.isText(n)&&(yield[n,r])}};function Wf(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 Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qf={isNodeOperation:e=>qf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Yl(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Kf.isPath(e.path)&&Uf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Kf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Kf.isPath(e.path)&&Yl(e.properties);case"move_node":return Kf.isPath(e.path)&&Kf.isPath(e.newPath);case"set_node":return Kf.isPath(e.path)&&Yl(e.properties)&&Yl(e.newProperties);case"set_selection":return null===e.properties&&nd.isRange(e.newProperties)||null===e.newProperties&&nd.isRange(e.properties)||Yl(e.properties)&&Yl(e.newProperties);case"split_node":return Kf.isPath(e.path)&&"number"==typeof e.position&&Yl(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>qf.isOperation(e))),isSelectionOperation:e=>qf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>qf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Gf(Gf({},e),{},{type:"remove_node"});case"insert_text":return Gf(Gf({},e),{},{type:"remove_text"});case"merge_node":return Gf(Gf({},e),{},{type:"split_node",path:Kf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Kf.equals(t,n))return e;if(Kf.isSibling(n,t))return Gf(Gf({},e),{},{path:t,newPath:n});var r=Kf.transform(n,e),o=Kf.transform(Kf.next(n),e);return Gf(Gf({},e),{},{path:r,newPath:o});case"remove_node":return Gf(Gf({},e),{},{type:"insert_node"});case"remove_text":return Gf(Gf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Gf(Gf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Gf(Gf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Gf(Gf({},e),{},{type:"merge_node",path:Kf.next(e.path)})}}},Kf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Kf.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 Kf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Kf.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 Kf.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===Kf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Kf.compare(e,t),isBefore:(e,t)=>-1===Kf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Kf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Kf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Kf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Kf.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]&&Kf.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(!Kf.isAncestor(t,e)&&!Kf.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 Uc(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;(Kf.equals(i,r)||Kf.endsBefore(i,r)||Kf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Kf.equals(a,r)||Kf.isAncestor(a,r))return null;Kf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Kf.equals(u,r)||Kf.endsBefore(u,r)?r[u.length-1]-=1:Kf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Kf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Kf.endsBefore(l,r)?r[l.length-1]+=1:Kf.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(Kf.equals(f,d))return;if(Kf.isAncestor(f,r)||Kf.equals(f,r)){var p=d.slice();return Kf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Kf.isSibling(f,d)&&(Kf.isAncestor(d,r)||Kf.equals(d,r))?Kf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Kf.endsBefore(d,r)||Kf.equals(d,r)||Kf.isAncestor(d,r)?(Kf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Kf.endsBefore(f,r)&&(Kf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},Yf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Kf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Xf(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 Zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jf={compare(e,t){var n=Kf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Jf.compare(e,t),isBefore:(e,t)=>-1===Jf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Kf.equals(e.path,t.path),isPoint:e=>Yl(e)&&"number"==typeof e.offset&&Kf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Uc(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=Kf.transform(o,t,n);break;case"insert_text":Kf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Kf.equals(t.path,o)&&(e.offset+=t.position),e.path=Kf.transform(o,t,n);break;case"remove_text":Kf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Kf.equals(t.path,o)||Kf.isAncestor(t.path,o))return null;e.path=Kf.transform(o,t,n);break;case"split_node":if(Kf.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=Kf.transform(o,t,Zf(Zf({},n),{},{affinity:"forward"})))}else e.path=Kf.transform(o,t,n)}}))}},Qf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Jf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},ed=["anchor","focus"];function td(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 nd={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return nd.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=nd.edges(e);return t},equals:(e,t)=>Jf.equals(e.anchor,t.anchor)&&Jf.equals(e.focus,t.focus),includes(e,t){if(nd.isRange(t)){if(nd.includes(e,t.anchor)||nd.includes(e,t.focus))return!0;var[n,r]=nd.edges(e),[o,i]=nd.edges(t);return Jf.isBefore(n,o)&&Jf.isAfter(r,i)}var[a,u]=nd.edges(e),s=!1,l=!1;return Jf.isPoint(t)?(s=Jf.compare(t,a)>=0,l=Jf.compare(t,u)<=0):(s=Kf.compare(t,a.path)>=0,l=Kf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=rf(e,ed),[r,o]=nd.edges(e),[i,a]=nd.edges(t),u=Jf.isBefore(r,i)?i:r,s=Jf.isBefore(o,a)?o:a;return Jf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(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 Jf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Jf.equals(t,n)},isExpanded:e=>!nd.isCollapsed(e),isForward:e=>!nd.isBackward(e),isRange:e=>Yl(e)&&Jf.isPoint(e.anchor)&&Jf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=nd.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Uc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=nd.isCollapsed(e);nd.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?nd.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Jf.transform(e.anchor,t,{affinity:r}),s=Jf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},rd={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=nd.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},od=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Yl(r)&&Yl(o)){if(!od(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},id=["text"],ad=["anchor","focus"];function ud(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 sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ud(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ud(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ld={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return rf(e,id)}return od(r?o(e):e,r?o(t):t)},isText:e=>Yl(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>ld.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=[sd({},e)];for(var r of t){var o=rf(r,ad),[i,a]=nd.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=sd(sd({},d),{},{text:d.text.slice(g)}),d=sd(sd({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=sd(sd({},d),{},{text:d.text.slice(0,v)}),d=sd(sd({},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 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){qc(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={transform(e,t){e.children=Wc(e.children);var n=e.selection&&Wc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Uf.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 nd.points(t))t[s]=Jf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Uf.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 nd.points(t))t[v]=Jf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Uf.get(e,y),b=Kf.previous(y),w=Uf.get(e,b),E=Uf.parent(e,y),D=y[y.length-1];if(ld.isText(m)&&ld.isText(w))w.text+=m.text;else{if(ld.isText(m)||ld.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 nd.points(t))t[S]=Jf.transform(C,n);break;case"move_node":var{path:x,newPath:A}=n;if(Kf.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=Uf.get(e,x),k=Uf.parent(e,x),B=x[x.length-1];k.children.splice(B,1);var F=Kf.transform(x,n),T=Uf.get(e,Kf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of nd.points(t))t[j]=Jf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Uf.parent(e,N).children.splice(I,1),t)for(var[L,R]of nd.points(t)){var M=Jf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Uf.texts(e)){if(-1!==Kf.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Kf.equals($[1],N)?!Kf.hasPrevious($[1]):Kf.common(z[1],N).length<Kf.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=Uf.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 nd.points(t))t[J]=Jf.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=Uf.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(!nd.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=fd({},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=Uf.get(e,le),he=Uf.parent(e,le),ge=le[le.length-1];if(ld.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=fd(fd({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=fd(fd({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of nd.points(t))t[Ee]=Jf.transform(we,n)}return t})(e,n,t)}finally{e.children=Gc(e.children),e.selection=n?Zl(n)?Gc(n):n:null}}},pd=["text"],hd=["children"];function gd(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 vd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Mf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Uf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Mf.end(e,[]):[0],s=!0),null==s&&(s=!1),nd.isRange(a))if(r||(a=Mf.unhangRange(e,a)),nd.isCollapsed(a))a=a.anchor;else{var[,c]=nd.edges(a),f=Mf.pointRef(e,c);Od.delete(e,{at:a}),a=f.unref()}if(Jf.isPoint(a)){null==u&&(u=ld.isText(l)?e=>ld.isText(e):e.isInline(l)?t=>ld.isText(t)||Mf.isInline(e,t):t=>Mf.isBlock(e,t));var[d]=Mf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Mf.pathRef(e,p),g=Mf.isEnd(e,a,p);Od.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Kf.next(v):v}var y=Kf.parent(a),m=a[a.length-1];if(o||!Mf.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=Kf.next(a)}if(a=Kf.previous(a),s){var E=Mf.end(e,a);E&&Od.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Kf.isPath(n)?wd(e,n):t=>Mf.isBlock(e,t)),n){var a=Mf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Mf.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=Mf.node(e,Kf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Kf.next(d);Od.moveNodes(e,{at:l,to:g,voids:o}),Od.removeNodes(e,{at:d,voids:o})}else if(0===p)Od.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Kf.next(d);Od.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Kf.next(l),m=Kf.next(d);Od.splitNodes(e,{at:y,voids:o}),Od.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mf.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(Kf.isPath(r)){var[u]=Mf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Mf.isBlock(e,t);if(!o&&nd.isRange(r)&&(r=Mf.unhangRange(e,r)),nd.isRange(r))if(nd.isCollapsed(r))r=r.anchor;else{var[,s]=nd.edges(r),l=Mf.pointRef(e,s);Od.delete(e,{at:r}),r=l.unref(),null==t.at&&Od.select(e,r)}var[c]=Mf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Mf.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=Kf.next(g),b=Kf.common(p,g),w=Kf.isSibling(p,g),E=Array.from(Mf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=Mf.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&md(e,t)}),C=D&&Mf.pathRef(e,D[1]);if(ld.isText(d)&&ld.isText(h)){var S=rf(d,pd);y=h.text.length,v=S}else{if(!Pf.isElement(d)||!Pf.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=rf(d,hd),y=h.children.length,v=S}w||Od.moveNodes(e,{at:p,to:m,voids:i}),C&&Od.removeNodes(e,{at:C.current,voids:i}),Pf.isElement(h)&&Mf.isEmpty(e,h)||ld.isText(h)&&""===h.text&&0!==g[g.length-1]?Od.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}}))},moveNodes(e,t){Mf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Kf.isPath(r)?wd(e,r):t=>Mf.isBlock(e,t));var u=Mf.pathRef(e,n),s=Mf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Mf.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&&Kf.isSibling(d,f)&&Kf.isAfter(d,f)&&(u.current=Kf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mf.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=Kf.isPath(i)?wd(e,i):t=>Mf.isBlock(e,t)),!n&&nd.isRange(i)&&(i=Mf.unhangRange(e,i));var u=Mf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Mf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Mf.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]:{};Mf.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=Kf.isPath(o)?wd(e,o):t=>Mf.isBlock(e,t)),!i&&nd.isRange(o)&&(o=Mf.unhangRange(e,o)),u&&nd.isRange(o)){if(nd.isCollapsed(o)&&Mf.leaf(e,o.anchor)[0].text.length>0)return;var l=Mf.rangeRef(e,o,{affinity:"inward"}),[c,f]=nd.edges(o),d="lowest"===a?"lowest":"highest",p=Mf.isEnd(e,f,f.path);Od.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Mf.isStart(e,c,c.path);Od.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Od.select(e,o)}for(var[g,v]of Mf.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]:{};Mf.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=>Mf.isBlock(e,t)),nd.isRange(i)&&(i=bd(e,i)),Kf.isPath(i)){var s=i,l=Mf.point(e,s),[c]=Mf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Mf.pointRef(e,i,{affinity:"backward"}),[d]=Mf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Mf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(Pf.isElement(h)&&e.isInline(h)){var v=Mf.after(e,g);if(!v){var y=Kf.next(g);Od.insertNodes(e,{text:""},{at:y,voids:r}),v=Mf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=Mf.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 Mf.levels(e,{at:E,reverse:!0,voids:r})){var x=!1;if(S.length<w.length||0===S.length||!r&&Mf.isVoid(e,C))break;var A=f.current,O=Mf.isEnd(e,A,S);if(u||!f||!Mf.isEdge(e,A,S)){x=!0;var k=Uf.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||Mf.end(e,[]);Od.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;Od.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mf.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=Kf.isPath(i)?wd(e,i):t=>Mf.isBlock(e,t)),Kf.isPath(i)&&(i=Mf.range(e,i));var u=nd.isRange(i)?Mf.rangeRef(e,i):null,s=Mf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Mf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Mf.node(e,n),a=Mf.range(e,n);r&&u&&(a=nd.intersection(u.current,a)),Od.liftNodes(e,{at:a,match:e=>Pf.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]:{};Mf.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=Kf.isPath(u)?wd(e,u):e.isInline(t)?t=>Mf.isInline(e,t)||ld.isText(t):t=>Mf.isBlock(e,t)),o&&nd.isRange(u)){var[s,l]=nd.edges(u),c=Mf.rangeRef(e,u,{affinity:"inward"});Od.splitNodes(e,{at:l,match:a,voids:i}),Od.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Od.select(e,u)}var f=Array.from(Mf.nodes(e,{at:u,match:e.isInline(t)?t=>Mf.isBlock(e,t):e=>Mf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=nd.isRange(u)?nd.intersection(u,Mf.range(e,d)):u;if(p){var h=Array.from(Mf.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=Kf.equals(o,a)?Kf.parent(o):Kf.common(o,a),s=Mf.range(e,o,a),l=Mf.node(e,u),[c]=l,f=u.length+1,d=Kf.next(a.slice(0,f)),p=vd(vd({},t),{},{children:[]});Od.insertNodes(e,p,{at:d,voids:i}),Od.moveNodes(e,{at:s,match:e=>Pf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}())continue}}}}))}},md=(e,t)=>{if(Pf.isElement(t)){var n=t;return!!Mf.isVoid(e,t)||1===n.children.length&&md(e,n.children[0])}return!Mf.isEditor(t)},bd=(e,t)=>{if(nd.isCollapsed(t))return t.anchor;var[,n]=nd.edges(t),r=Mf.pointRef(e,n);return Od.delete(e,{at:t}),r.unref()},wd=(e,t)=>{var[n]=Mf.node(e,t);return e=>e===n};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 Dd(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){qc(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 Cd={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)Od.select(e,r.anchor);else if("focus"===n)Od.select(e,r.focus);else if("start"===n){var[o]=nd.edges(r);Od.select(e,o)}else if("end"===n){var[,i]=nd.edges(r);Od.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=nd.isBackward(n)?"focus":"anchor"),"end"===a&&(a=nd.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Mf.before(e,u,l):Mf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Mf.before(e,s,l):Mf.after(e,s,l);d&&(c.focus=d)}Od.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Mf.range(e,t),n)Od.setSelection(e,t);else{if(!nd.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=nd.isBackward(r)?"focus":"anchor"),"end"===o&&(o=nd.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Od.setSelection(e,{["anchor"===o?"anchor":"focus"]:Dd(Dd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Jf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Jf.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})}}},Sd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mf.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(nd.isRange(a)&&nd.isCollapsed(a)&&(a=a.anchor),Jf.isPoint(a)){var s=Mf.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?Mf.before(e,a,c)||Mf.start(e,[]):Mf.after(e,a,c)||Mf.end(e,[])},u=!0}}if(Kf.isPath(a))Od.removeNodes(e,{at:a,voids:i});else if(!nd.isCollapsed(a)){if(!u){var[,f]=nd.edges(a),d=Mf.end(e,[]);Jf.equals(f,d)||(a=Mf.unhangRange(e,a,{voids:i}))}var[p,h]=nd.edges(a),g=Mf.above(e,{match:t=>Mf.isBlock(e,t),at:p,voids:i}),v=Mf.above(e,{match:t=>Mf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Kf.equals(g[1],v[1]),m=Kf.equals(p.path,h.path),b=i?null:Mf.void(e,{at:p,mode:"highest"}),w=i?null:Mf.void(e,{at:h,mode:"highest"});if(b){var E=Mf.before(e,p);E&&g&&Kf.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=Mf.after(e,h);D&&v&&Kf.isAncestor(v[1],D.path)&&(h=D)}var C,S=[];for(var x of Mf.nodes(e,{at:a,voids:i})){var[A,O]=x;C&&0===Kf.compare(O,C)||(!i&&Mf.isVoid(e,A)||!Kf.isCommon(O,p.path)&&!Kf.isCommon(O,h.path))&&(S.push(x),C=O)}var k=Array.from(S,(t=>{var[,n]=t;return Mf.pathRef(e,n)})),B=Mf.pointRef(e,p),F=Mf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=Mf.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();Od.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=Mf.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&&Od.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&Od.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Mf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(nd.isRange(i))if(r||(i=Mf.unhangRange(e,i)),nd.isCollapsed(i))i=i.anchor;else{var[,a]=nd.edges(i);if(!o&&Mf.void(e,{at:a}))return;var u=Mf.pointRef(e,a);Od.delete(e,{at:i}),i=u.unref()}else Kf.isPath(i)&&(i=Mf.start(e,i));if(o||!Mf.void(e,{at:i})){var s=Mf.above(e,{at:i,match:t=>Mf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Mf.isEnd(e,i,l)?i=Mf.after(e,l):Mf.isStart(e,i,l)&&(i=Mf.before(e,l))}var c=Mf.above(e,{match:t=>Mf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Mf.isStart(e,i,f),p=Mf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Uf.first({children:t},[]),[,m]=Uf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length||!h&&(g&&Kf.isAncestor(r,y)&&Pf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)||v&&Kf.isAncestor(r,m)&&Pf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Uf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],C=[],S=[],x=!0,A=!1;for(var[O]of b)Pf.isElement(O)&&!e.isInline(O)?(x=!1,A=!0,C.push(O)):x?D.push(O):S.push(O);var[k]=Mf.nodes(e,{at:i,match:t=>ld.isText(t)||Mf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=Mf.isStart(e,i,B),T=Mf.isEnd(e,i,B),_=Mf.pathRef(e,p?Kf.next(f):f),P=Mf.pathRef(e,T?Kf.next(B):B),j=Mf.pathRef(e,f);Od.splitNodes(e,{at:i,match:t=>A?Mf.isBlock(e,t):ld.isText(t)||Mf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=Mf.pathRef(e,!F||F&&T?Kf.next(B):B);if(Od.insertNodes(e,D,{at:N.current,match:t=>ld.isText(t)||Mf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&Od.delete(e,{at:j.unref(),voids:o}),Od.insertNodes(e,C,{at:_.current,match:t=>Mf.isBlock(e,t),mode:"lowest",voids:o}),Od.insertNodes(e,S,{at:P.current,match:t=>ld.isText(t)||Mf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=S.length>0?Kf.previous(P.current):C.length>0?Kf.previous(_.current):Kf.previous(N.current);var L=Mf.end(e,I);Od.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Mf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Kf.isPath(o)&&(o=Mf.range(e,o)),nd.isRange(o))if(nd.isCollapsed(o))o=o.anchor;else{var i=nd.end(o);if(!r&&Mf.void(e,{at:i}))return;var a=Mf.pointRef(e,i);Od.delete(e,{at:o,voids:r}),o=a.unref(),Od.setSelection(e,{anchor:o,focus:o})}if(r||!Mf.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 xd(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 Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xd(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Od=Ad(Ad(Ad(Ad({},dd),yd),Cd),Sd),kd="[object Map]",Bd="[object Set]",Fd=/^\[object .+?Constructor\]$/,Td=/^(?:0|[1-9]\d*)$/,_d="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Pd="\\ud83c[\\udffb-\\udfff]",jd="[^\\ud800-\\udfff]",Nd="(?:\\ud83c[\\udde6-\\uddff]){2}",Id="[\\ud800-\\udbff][\\udc00-\\udfff]",Ld="(?:"+_d+"|"+Pd+")?",Rd="[\\ufe0e\\ufe0f]?"+Ld+"(?:\\u200d(?:"+[jd,Nd,Id].join("|")+")[\\ufe0e\\ufe0f]?"+Ld+")*",Md="(?:"+[jd+_d+"?",_d,Nd,Id,"[\\ud800-\\udfff]"].join("|")+")",zd=RegExp(Pd+"(?="+Pd+")|"+Md+Rd,"g"),$d=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Hd="object"==typeof v&&v&&v.Object===Object&&v,Vd="object"==typeof self&&self&&self.Object===Object&&self,Ud=Hd||Vd||Function("return this")();function Wd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Gd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var qd,Kd,Yd=Function.prototype,Xd=Object.prototype,Zd=Ud["__core-js_shared__"],Jd=function(){var e=/[^.]+$/.exec(Zd&&Zd.keys&&Zd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Qd=Yd.toString,ep=Xd.hasOwnProperty,tp=Xd.toString,np=RegExp("^"+Qd.call(ep).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rp=Ud.Symbol,op=rp?rp.iterator:void 0,ip=Xd.propertyIsEnumerable,ap=(qd=Object.keys,Kd=Object,function(e){return qd(Kd(e))}),up=yp(Ud,"DataView"),sp=yp(Ud,"Map"),lp=yp(Ud,"Promise"),cp=yp(Ud,"Set"),fp=yp(Ud,"WeakMap"),dp=wp(up),pp=wp(sp),hp=wp(lp),gp=wp(cp),vp=wp(fp);function yp(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){if(!Sp(e)||(t=e,Jd&&Jd in t))return!1;var t,n=Cp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?np:Fd;return n.test(wp(e))}(o)?o:void 0}var mp=function(e){return tp.call(e)};function bp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Td.test(e))&&e>-1&&e%1==0&&e<t}function wp(e){if(null!=e){try{return Qd.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(up&&"[object DataView]"!=mp(new up(new ArrayBuffer(1)))||sp&&mp(new sp)!=kd||lp&&"[object Promise]"!=mp(lp.resolve())||cp&&mp(new cp)!=Bd||fp&&"[object WeakMap]"!=mp(new fp))&&(mp=function(e){var t=tp.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?wp(n):void 0;if(r)switch(r){case dp:return"[object DataView]";case pp:return kd;case hp:return"[object Promise]";case gp:return Bd;case vp:return"[object WeakMap]"}return t});var Ep=Array.isArray;function Dp(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=9007199254740991)&&!Cp(e);var t}function Cp(e){var t=Sp(e)?tp.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Sp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function xp(e){return!!e&&"object"==typeof e}function Ap(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,Dp(t=e)?function(e,t){var n,r,o=Ep(e)||xp(r=n=e)&&Dp(r)&&ep.call(n,"callee")&&(!ip.call(n,"callee")||"[object Arguments]"==tp.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&&!ep.call(e,u)||a&&("length"==u||bp(u,i))||o.push(u);return o}(t):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Xd))return ap(e);var t,n,r=[];for(var o in Object(e))ep.call(e,o)&&"constructor"!=o&&r.push(o);return r}(t)):[];var t}var Op=function(e){if(!e)return[];if(Dp(e))return"string"==typeof(t=e)||!Ep(t)&&xp(t)&&"[object String]"==tp.call(t)?function(e){return t=e,$d.test(t)?function(e){return e.match(zd)||[]}(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(op&&e[op])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[op]());var n=mp(e);return(n==kd?Wd:n==Bd?Gd:Ap)(e)};function kp(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Bp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:kp(t[n])&&kp(e[n])&&Object.keys(t[n]).length>0&&Bp(e[n],t[n])}))}var Fp={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 Tp(){var e="undefined"!=typeof document?document:{};return Bp(e,Fp),e}var _p={document:Fp,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 Pp(){var e="undefined"!=typeof window?window:{};return Bp(e,_p),e}function jp(e){return(jp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Np(e,t){return(Np=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ip(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(zl){return!1}}function Lp(e,t,n){return Lp=Ip()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Np(o,n.prototype),o},Lp.apply(null,arguments)}function Rp(e){var t="function"==typeof Map?new Map:void 0;return Rp=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 Lp(e,arguments,jp(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Np(r,e)},Rp(e)}var Mp=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}(Rp(Array));function zp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,zp(e)):t.push(e)})),t}function $p(e,t){return Array.prototype.filter.call(e,t)}function Hp(e,t){var n=Pp(),r=Tp(),o=[];if(!t&&e instanceof Mp)return e;if(!e)return new Mp(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 Mp)return e;o=e}return new Mp(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 Vp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=zp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Up(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=zp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Wp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=zp(t.map((function(e){return e.split(" ")})));return $p(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Gp(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 qp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Kp(){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 Yp(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 Xp(){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),Hp(t).is(o))i.apply(t,n);else for(var r=Hp(t).parents(),a=0;a<r.length;a+=1)Hp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Jp(){var e=Pp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Qp(){var e=Pp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function eh(){if(this.length>0){var e=Pp(),t=Tp(),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 th(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function nh(){for(var e=Pp(),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 rh(e,t){var n,r=Pp();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 oh(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function ih(e){return Hp($p(this,e))}function ah(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 uh(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 sh(e){var t,n,r=Pp(),o=Tp(),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=Hp(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 Mp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function lh(){for(var e,t=Tp(),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 Mp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function ch(e){var t,n,r=Tp();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 Mp)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 fh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Hp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Hp(t)}function dh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Hp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Hp(t)}function ph(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 Hp(t)}function hh(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&&!Hp(r[o]).is(e)||t.push(r[o]);return Hp(t)}function gh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function vh(){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}Hp.fn=Mp.prototype;var yh="resize scroll".split(" ");function mh(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)yh.indexOf(e)<0&&(e in this[o]?this[o][e]():Hp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var bh=mh("click"),wh=mh("focus"),Eh=/^(?:0|[1-9]\d*)$/;function Dh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Ch=Object.prototype,Sh=Ch.hasOwnProperty,xh=Ch.toString,Ah=Ch.propertyIsEnumerable,Oh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);var kh,Bh=(kh=function(e,t){return e&&Fh(e,t,jh)},function(e,t){if(null==e)return e;if(!Ph(e))return kh(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&!1!==t(o[r],r,o););return e}),Fh=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 Th(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Eh.test(e))&&e>-1&&e%1==0&&e<t}var _h=Array.isArray;function Ph(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?"":xh.call(e));return"[object Function]"==r||"[object GeneratorFunction]"==r}(e);var t}function jh(e){return Ph(e)?function(e,t){var n,r,o,i=_h(e)||(o=r=n=e)&&"object"==typeof o&&Ph(r)&&Sh.call(n,"callee")&&(!Ah.call(n,"callee")||"[object Arguments]"==xh.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&&!Sh.call(e,s)||u&&("length"==s||Th(s,a))||i.push(s);return i}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Ch))return Oh(e);var t,n,r=[];for(var o in Object(e))Sh.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e)}function Nh(e){return e}var Ih=function(e,t){return(_h(e)?Dh:Bh)(e,"function"==typeof t?t:Nh)};let Lh=(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 Rh=/^\s+|\s+$/g,Mh=/^[-+]0x[0-9a-f]+$/i,zh=/^0b[01]+$/i,$h=/^0o[0-7]+$/i,Hh=parseInt,Vh="object"==typeof v&&v&&v.Object===Object&&v,Uh="object"==typeof self&&self&&self.Object===Object&&self,Wh=Vh||Uh||Function("return this")(),Gh=Object.prototype.toString,qh=Math.max,Kh=Math.min,Yh=function(){return Wh.Date.now()};function Xh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Zh(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Gh.call(t))return NaN;var t,n;if(Xh(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=Xh(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Rh,"");var o=zh.test(e);return o||$h.test(e)?Hh(e.slice(2),o?2:8):Mh.test(e)?NaN:+e}var Jh=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Xh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=Yh();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?Kh(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Yh(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=Zh(t)||0,Xh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?qh(Zh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Yh())},m}(e,t,{leading:r,maxWait:t,trailing:o})};const Qh={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 eg(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 tg=Array.isArray;function ng(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function rg(e){return void 0===e}function og(e){return void 0!==e}const ig=eg("",{},[],void 0,void 0);function ag(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 ug(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 sg=["create","update","remove","destroy","pre","post"];function lg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:Qh;for(const c of sg)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;og(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)rg(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=og(s)&&og(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](ig,e);if(tg(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,i(e,t))}else ng(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;og(v)&&(null===(a=v.create)||void 0===a||a.call(v,ig,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(og(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;og(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)}rg(t.text)?og(v)&&og(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]:ag(v,b)?(l(v,b,o),v=t[++p],b=n[++h]):ag(y,w)?(l(y,w,o),y=t[--g],w=n[--m]):ag(v,w)?(l(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):ag(y,b)?(l(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===u&&(u=ug(t,p,g)),c=u[b.key],rg(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):og(y)?(og(e.text)&&r.setTextContent(g,""),a(g,null,y,0,y.length-1,o)):og(v)?s(g,v,0,v.length-1):og(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(og(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 eg(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}(e)),ag(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 cg(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&&cg(e,t[r].children,t[r].sel)}}function fg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),tg(n)?r=n:ng(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(tg(t)?r=t:ng(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ng(r[i])&&(r[i]=eg(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]||cg(a,r,e),eg(e,a,r,o,void 0)}function dg(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 pg={create:dg,update:dg};function hg(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 gg={create:hg,update:hg},vg=/[A-Z]/g;function yg(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(vg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(vg,"-$&").toLowerCase(),i[r]))}const mg={create:yg,update:yg};function bg(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++)bg(e[r],t,n)}function wg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&bg(r[n],t,e)}function Eg(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){wg(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 Dg={create:Eg,update:Eg,destroy:Eg};function Cg(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 Sg={create:Cg,update:Cg},xg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Ag=!1;function Og(e,t,n){var r;r=function(){e[t]=n},xg((function(){xg(r)}))}function kg(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]||Og(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Bg={pre:function(){Ag=!1},create:kg,update:kg,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;Ag||(e.elm.offsetLeft,Ag=!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 Fg(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Fg(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(eg(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Tg(e,t,...n){const r=Fg(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?fg(e,t,r[0].text):fg(e,t,r)}Tg||(Tg={});var _g,Pg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ng="\\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",Ig="["+Ng+"]",Lg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Rg="\\d+",Mg="[a-z\\xdf-\\xf6\\xf8-\\xff]",zg="[^\\ud800-\\udfff"+Ng+Rg+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",$g="\\ud83c[\\udffb-\\udfff]",Hg="[^\\ud800-\\udfff]",Vg="(?:\\ud83c[\\udde6-\\uddff]){2}",Ug="[\\ud800-\\udbff][\\udc00-\\udfff]",Wg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Gg="(?:"+Mg+"|"+zg+")",qg="(?:"+Wg+"|"+zg+")",Kg="(?:"+Lg+"|"+$g+")?",Yg="[\\ufe0e\\ufe0f]?"+Kg+"(?:\\u200d(?:"+[Hg,Vg,Ug].join("|")+")[\\ufe0e\\ufe0f]?"+Kg+")*",Xg="(?:"+["[\\u2700-\\u27bf]",Vg,Ug].join("|")+")"+Yg,Zg="(?:"+[Hg+Lg+"?",Lg,Vg,Ug,"[\\ud800-\\udfff]"].join("|")+")",Jg=RegExp("['’]","g"),Qg=RegExp(Lg,"g"),ev=RegExp($g+"(?="+$g+")|"+Zg+Yg,"g"),tv=RegExp([Wg+"?"+Mg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Ig,Wg,"$"].join("|")+")",qg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Ig,Wg+Gg,"$"].join("|")+")",Wg+"?"+Gg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Wg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Rg,Xg].join("|"),"g"),nv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),rv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ov="object"==typeof v&&v&&v.Object===Object&&v,iv="object"==typeof self&&self&&self.Object===Object&&self,av=ov||iv||Function("return this")(),uv=(_g={"À":"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==_g?void 0:_g[e]});function sv(e){return nv.test(e)}var lv=Object.prototype.toString,cv=av.Symbol,fv=cv?cv.prototype:void 0,dv=fv?fv.toString:void 0;function pv(e){return null==e?"":function(e){if("string"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==lv.call(t))return dv?dv.call(e):"";var t,n,r=e+"";return"0"==r&&1/e==-1/0?"-0":r}(e)}for(var hv,gv=(hv=function(e,t,n){return t=t.toLowerCase(),e+(n?vv(pv(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=pv(e),void 0===t?(r=e,rv.test(r)?function(e){return e.match(tv)||[]}(e):function(e){return e.match(Pg)||[]}(e)):e.match(t)||[];var r}((t=e,(t=pv(t))&&t.replace(jg,uv).replace(Qg,"")).replace(Jg,"")),hv,"");var t}),vv=("toUpperCase",function(e){var t=sv(e=pv(e))?function(e){return sv(e)?e.match(ev)||[]:(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}),yv=gv,mv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),bv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},wv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:mv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Ev={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},Dv=1;Dv<20;Dv++)Ev["f"+Dv]=111+Dv;function Cv(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 bv)r[bv[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=xv(d),g=bv[h];if(d.length>1&&!g&&!wv[d]&&!Ev[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Sv(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 Sv(e){return e=xv(e),Ev[e]||e.toUpperCase().charCodeAt(0)}function xv(e){return e=e.toLowerCase(),wv[e]||e}var Av=Cv,Ov=function(e,t){return Cv(e,{byKey:!0},t)},kv=/^\s+|\s+$/g,Bv=/^[-+]0x[0-9a-f]+$/i,Fv=/^0b[01]+$/i,Tv=/^0o[0-7]+$/i,_v=parseInt,Pv="object"==typeof v&&v&&v.Object===Object&&v,jv="object"==typeof self&&self&&self.Object===Object&&self,Nv=Pv||jv||Function("return this")(),Iv=Object.prototype.toString,Lv=Math.max,Rv=Math.min,Mv=function(){return Nv.Date.now()};function zv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||(n=t)&&"object"==typeof n&&"[object Symbol]"==Iv.call(t))return NaN;var t,n;if(zv(e)){var r="function"==typeof e.valueOf?e.valueOf():e;e=zv(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(kv,"");var o=Fv.test(e);return o||Tv.test(e)?_v(e.slice(2),o?2:8):Bv.test(e)?NaN:+e}var Hv,Vv=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(v,t),c?p(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function v(){var e,n,r=Mv();if(g(r))return y(r);u=setTimeout(v,(n=t-((e=r)-s),f?Rv(n,i-(e-l)):n))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Mv(),n=g(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(v,t),p(s)}return void 0===u&&(u=setTimeout(v,t)),a}return t=$v(t)||0,zv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Lv($v(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Mv())},m},Uv=y((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",h="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",D="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[o]=P["[object Array]"]=P[b]=P[w]=P[i]=P[a]=P[E]=P[D]=P[C]=P[S]=P[x]=P[l]=P[c]=P[f]=P[p]=P[h]=P[g]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[u]=P[m]=!1;var j="object"==typeof v&&v&&v.Object===Object&&v,N="object"==typeof self&&self&&self.Object===Object&&self,I=j||N||Function("return this")(),L=t&&!t.nodeType&&t,R=L&&e&&!e.nodeType&&e,M=R&&R.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function $(e,t){return e.add(t),e}function H(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function U(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=I["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?I.Buffer:void 0,re=I.Symbol,oe=I.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Ne(I,"DataView"),pe=Ne(I,"Map"),he=Ne(I,"Promise"),ge=Ne(I,"Set"),ve=Ne(I,"WeakMap"),ye=Ne(Object,"create"),me=ze(de),be=ze(pe),we=ze(he),Ee=ze(ge),De=ze(ve),Ce=re?re.prototype:void 0,Se=Ce?Ce.valueOf:void 0;function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Ae(e)}function Be(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Fe(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Te(e,t,n,r,d,v,m){var T;if(r&&(T=v?r(e,d,v,m):r(e)),void 0!==T)return T;if(!Ge(e))return e;var _,j,N,I=He(e);if(I){if(j=(_=e).length,N=_.constructor(j),j&&"string"==typeof _[0]&&Q.call(_,"index")&&(N.index=_.index,N.input=_.input),T=N,!t)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,T)}else{var L=Le(e),R=L==u||L==s;if(Ue(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==f||L==o||R&&!v){if(V(e))return v?e:{};if(T=function(e){return"function"!=typeof e.constructor||Me(e)?{}:Ge(t=ie(e))?ae(t):{};var t}(R?{}:e),!t)return function(e,t){return Pe(e,Ie(e),t)}(e,function(e,t){return e&&Pe(t,qe(t),e)}(T,e))}else{if(!P[L])return v?e:{};T=function(e,t,n,r){var o,u,s=e.constructor;switch(t){case b:return _e(e);case i:case a:return new s(+e);case w:return o=e,u=r?_e(o.buffer):o.buffer,new o.constructor(u,o.byteOffset,o.byteLength);case E:case D:case C:case S:case x:case A:case O:case k:case B:return function(e,t){var n=t?_e(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return H(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case c:case g:return new s(e);case p:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return H(t?n(G(e),!0):G(e),$,new e.constructor)}(e,r,n);case 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)!=l||he&&Le(he.resolve())!=d||ge&&Le(new ge)!=h||ve&&Le(new ve)!=m)&&(Le=function(e){var t=ee.call(e),n=t==f?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case me:return w;case be:return l;case we:return d;case Ee:return h;case De:return m}return t});var He=Array.isArray;function Ve(e){return null!=e&&("number"==typeof(t=e.length)&&t>-1&&t%1==0&&t<=r)&&!We(e);var t}var Ue=ce||function(){return!1};function We(e){var t=Ge(e)?ee.call(e):"";return t==u||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return Ve(e)?function(e,t){var n,r,i,a=He(e)||(i=r=n=e)&&"object"==typeof i&&Ve(r)&&Q.call(n,"callee")&&(!ue.call(n,"callee")||ee.call(n)==o)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length,s=!!u;for(var l in e)!t&&!Q.call(e,l)||s&&("length"==l||Re(l,u))||a.push(l);return a}(e):function(e){if(!Me(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Te(e,!0,!0)}}));function Wv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Gv=0;function qv(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 Kv(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=qv(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var Yv=(Hv=function(e){return"__private_"+Gv+++"_"+e}("apply"),class{constructor(e){Object.defineProperty(this,Hv,{value:Xv}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Wv(this,Hv)[Hv],this):Wv(this,Hv)[Hv](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 Kv(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 Kv(o,t)}});function Xv(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 Zv=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:Jv}={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},Qv=e=>crypto.getRandomValues(new Uint8Array(e)),ey=(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 ty={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)=>ey(e,t,Qv),customRandom:ey,urlAlphabet:Jv,random:Qv},ny=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 ry(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}ry.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 oy=/[\/\+\.]/,iy=0;var ay=function(e){return"__private_"+iy+++"_"+e}("publish");class uy{constructor(){Object.defineProperty(this,ay,{value:sy}),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,ay)[ay](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function sy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}uy.VERSION="2.0.3";var ly=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)}},cy={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 fy(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>{return t+=`-${n=e,n.charCodeAt(0).toString(32)}`,"/";var n}))+t}var dy=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 py(e){return e<10?`0${e}`:e.toString()}var hy=function(){const e=new Date;return`${py(e.getHours())}:${py(e.getMinutes())}:${py(e.getSeconds())}`},gy={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] [${hy()}]`,...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] [${hy()}]`,...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] [${hy()}]`,...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] [${hy()}]`,...t)}}},vy={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}"}}},yy=ty;let my,by;function wy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ey=0;function Dy(e){return"__private_"+Ey+++"_"+e}const{nanoid:Cy}=yy,{justErrorsLogger:Sy,debugLogger:xy}=gy;class Ay 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 Oy extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var ky=Dy("plugins"),By=Dy("storeUnsubscribe"),Fy=Dy("emitter"),Ty=Dy("preProcessors"),_y=Dy("uploaders"),Py=Dy("postProcessors"),jy=Dy("checkRestrictions"),Ny=Dy("checkMinNumberOfFiles"),Iy=Dy("checkRequiredMetaFieldsOnFile"),Ly=Dy("checkRequiredMetaFields"),Ry=Dy("showOrLogErrorAndThrow"),My=Dy("assertNewUploadAllowed"),zy=Dy("checkAndCreateFileStateObject"),$y=Dy("startIfAutoProceed"),Hy=Dy("addListeners"),Vy=Dy("updateOnlineStatus"),Uy=Dy("createUpload"),Wy=Dy("getUpload"),Gy=Dy("removeUpload"),qy=Dy("runUpload");my=Symbol.for("uppy test: getPlugins"),by=Symbol.for("uppy test: createUpload");class Ky{constructor(e){Object.defineProperty(this,qy,{value:um}),Object.defineProperty(this,Gy,{value:am}),Object.defineProperty(this,Wy,{value:im}),Object.defineProperty(this,Uy,{value:om}),Object.defineProperty(this,Hy,{value:rm}),Object.defineProperty(this,$y,{value:nm}),Object.defineProperty(this,zy,{value:tm}),Object.defineProperty(this,My,{value:em}),Object.defineProperty(this,Ry,{value:Qy}),Object.defineProperty(this,Ly,{value:Jy}),Object.defineProperty(this,Iy,{value:Zy}),Object.defineProperty(this,Ny,{value:Xy}),Object.defineProperty(this,jy,{value:Yy}),Object.defineProperty(this,ky,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,By,{writable:!0,value:void 0}),Object.defineProperty(this,Fy,{writable:!0,value:Zv()}),Object.defineProperty(this,Ty,{writable:!0,value:new Set}),Object.defineProperty(this,_y,{writable:!0,value:new Set}),Object.defineProperty(this,Py,{writable:!0,value:new Set}),Object.defineProperty(this,Vy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=vy;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 uy,logger:Sy,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=xy),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=Jh(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:dy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),wy(this,By)[By]=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),wy(this,Hy)[Hy]()}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];wy(this,Fy)[Fy].emit(e,...n)}on(e,t){return wy(this,Fy)[Fy].on(e,t),this}once(e,t){return wy(this,Fy)[Fy].once(e,t),this}off(e,t){return wy(this,Fy)[Fy].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 Yv([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){wy(this,Ty)[Ty].add(e)}removePreProcessor(e){return wy(this,Ty)[Ty].delete(e)}addPostProcessor(e){wy(this,Py)[Py].add(e)}removePostProcessor(e){return wy(this,Py)[Py].delete(e)}addUploader(e){wy(this,_y)[_y].add(e)}removeUploader(e){return wy(this,_y)[_y].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 wy(this,jy)[jy](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){wy(this,My)[My](e);const{files:t}=this.getState();let n=wy(this,zy)[zy](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}`),wy(this,$y)[$y](),n.id}addFiles(e){wy(this,My)[My]();const t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=wy(this,zy)[zy](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&&wy(this,$y)[$y](),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=wy(this,Uy)[Uy](t,{forceAllowNewUpload:!0});return wy(this,qy)[qy](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=wy(this,Uy)[Uy]([e],{forceAllowNewUpload:!0});return wy(this,qy)[qy](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 wy(this,ky)[ky]?wy(this,ky)[ky][n.type].push(n):wy(this,ky)[ky][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(wy(this,ky)[ky])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[my](e){return wy(this,ky)[ky][e]}iteratePlugins(e){Object.values(wy(this,ky)[ky]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=wy(this,ky)[ky][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(),wy(this,By)[By](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",wy(this,Vy)[Vy]),window.removeEventListener("offline",wy(this,Vy)[Vy]))}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]?wy(this,qy)[qy](e):(wy(this,Gy)[Gy](e),Promise.reject(new Error("Nonexistent upload")))}[by](){return wy(this,Uy)[Uy](...arguments)}addResultData(e,t){if(!wy(this,Wy)[Wy](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=wy(this,ky)[ky].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((()=>{wy(this,Ny)[Ny](t),wy(this,Ly)[Ly](t)})).catch((e=>{wy(this,Ry)[Ry](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=wy(this,Uy)[Uy](r);return wy(this,qy)[qy](o)})).catch((e=>{wy(this,Ry)[Ry](e,{showInformer:!1})})))}}function Yy(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 Ay(`${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 ry(e,oy);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 Ay(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 Ay(this.i18n("exceedsSize",{size:ny(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new Ay(this.i18n("exceedsSize",{size:ny(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new Ay(this.i18n("inferiorSize",{size:ny(r)}))}function Xy(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Ay(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function Zy(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 Ay(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),wy(this,Ry)[Ry](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function Jy(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return wy(this,Iy)[Iy](t)}));if(t.length)throw new Oy(t,`${this.i18n("missingRequiredMetaField")}`)}function Qy(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 em(e){const{allowNewUpload:t}=this.getState();!1===t&&wy(this,Ry)[Ry](new Ay(this.i18n("noMoreFilesAllowed")),{file:e})}function tm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=ly(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in cy?cy[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=ly(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${fy(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${fy(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 Ay(this.i18n("noDuplicates",{fileName:r}));wy(this,Ry)[Ry](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?wy(this,Ry)[Ry](new Ay("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]));wy(this,jy)[jy](f,t)}catch(u){wy(this,Ry)[Ry](u,{file:f})}return f}function nm(){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 rm(){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}),wy(this,Ry)[Ry](e,{throwErr:!1})}else wy(this,Ry)[Ry](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:wy(this,Py)[Py].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&&wy(this,Iy)[Iy](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",wy(this,Vy)[Vy]),window.addEventListener("offline",wy(this,Vy)[Vy]),setTimeout(wy(this,Vy)[Vy],3e3))}function om(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=Cy();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 im(e){const{currentUploads:t}=this.getState();return t[e]}function am(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function um(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...wy(this,Ty)[Ty],...wy(this,_y)[_y],...wy(this,Py)[Py]];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),wy(this,Gy)[Gy](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),wy(this,Gy)[Gy](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}Ky.VERSION="2.1.3";var sm=Ky,lm=y((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return v(e,u,o,i,null)}function v(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function E(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!D.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(D)}function D(){for(var e;D.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,F(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),T(n,o),o.__e!=i&&w(o)))}))}function 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}})),cm=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 Yv([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 fm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var dm=0;const{render:pm}=lm;var hm=function(e){return"__private_"+dm+++"_"+e}("updateUI");class gm extends cm{constructor(){super(...arguments),Object.defineProperty(this,hm,{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 fm(this,hm)[hm]=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)&&(pm(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),pm(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 gm)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=fm(this,hm))[hm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var vm=gm;const{debugLogger:ym}=gy;var mm=sm,bm=sm,wm=vm,Em=cm,Dm=ym;mm.Uppy=bm,mm.UIPlugin=wm,mm.BasePlugin=Em,mm.debugLogger=Dm;class Cm 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 Sm=Cm,xm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new Sm(e)}))};class Am extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Om,km,Bm,Fm,Tm,_m=Am;function Pm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var jm=0;function Nm(e){return"__private_"+jm+++"_"+e}async function Im(e){if(401===e.status)throw new _m;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 Lm=(km=Nm("getPostResponseFunc"),Bm=Nm("getUrl"),Fm=Nm("errorHandler"),Tm=Om=class e{constructor(e,t){Object.defineProperty(this,Fm,{value:Mm}),Object.defineProperty(this,Bm,{value:Rm}),Object.defineProperty(this,km,{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(Pm(this,Bm)[Bm](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=>xm(Pm(this,Bm)[Bm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Pm(this,km)[km](t)).then(Im).catch(Pm(this,Fm)[Fm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>xm(Pm(this,Bm)[Bm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Pm(this,km)[km](n)).then(Im).catch(Pm(this,Fm)[Fm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>xm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Pm(this,km)[km](n)).then(Im).catch(Pm(this,Fm)[Fm](r,e))}},Om.VERSION="2.0.4",Om.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Om.VERSION}`},Tm);function Rm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Mm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Pm(this,Bm)[Bm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var zm,$m,Hm,Vm,Um,Wm={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 Gm,qm;function Km(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Ym=0;function Xm(e){return"__private_"+Ym+++"_"+e}var Zm,Jm,Qm=(zm=Xm("queued"),$m=Xm("emitter"),Hm=Xm("isOpen"),Vm=Xm("socket"),Um=Xm("handleMessage"),Gm=Symbol.for("uppy test: getSocket"),qm=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,zm,{writable:!0,value:[]}),Object.defineProperty(this,$m,{writable:!0,value:Zv()}),Object.defineProperty(this,Hm,{writable:!0,value:!1}),Object.defineProperty(this,Vm,{writable:!0,value:void 0}),Object.defineProperty(this,Um,{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 Km(this,Hm)[Hm]}[Gm](){return Km(this,Vm)[Vm]}[qm](){return Km(this,zm)[zm]}open(){Km(this,Vm)[Vm]=new WebSocket(this.opts.target),Km(this,Vm)[Vm].onopen=()=>{for(Km(this,Hm)[Hm]=!0;Km(this,zm)[zm].length>0&&Km(this,Hm)[Hm];){const e=Km(this,zm)[zm].shift();this.send(e.action,e.payload)}},Km(this,Vm)[Vm].onclose=()=>{Km(this,Hm)[Hm]=!1},Km(this,Vm)[Vm].onmessage=Km(this,Um)[Um]}close(){var e;null==(e=Km(this,Vm)[Vm])||e.close()}send(e,t){Km(this,Hm)[Hm]?Km(this,Vm)[Vm].send(JSON.stringify({action:e,payload:t})):Km(this,zm)[zm].push({action:e,payload:t})}on(e,t){Km(this,$m)[$m].on(e,t)}emit(e,t){Km(this,$m)[$m].emit(e,t)}once(e,t){Km(this,$m)[$m].once(e,t)}}),eb={RequestClient:Lm,Provider:class extends Lm{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||Wm}},SearchProvider:class extends Lm{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:Qm},tb=Jh((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 nb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var rb=0;function ob(e){return"__private_"+rb+++"_"+e}var ib=(Zm=ob("emitter"),Jm=ob("events"),class{constructor(e){Object.defineProperty(this,Zm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:[]}),nb(this,Zm)[Zm]=e}on(e,t){return nb(this,Jm)[Jm].push([e,t]),nb(this,Zm)[Zm].on(e,t)}remove(){for(const[e,t]of nb(this,Jm)[Jm].splice(0))nb(this,Zm)[Zm].off(e,t)}});function ab(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ub=0;function sb(e){return"__private_"+ub+++"_"+e}var lb=sb("aliveTimer"),cb=sb("isDone"),fb=sb("onTimedOut"),db=sb("timeout"),pb=class{constructor(e,t){Object.defineProperty(this,lb,{writable:!0,value:void 0}),Object.defineProperty(this,cb,{writable:!0,value:!1}),Object.defineProperty(this,fb,{writable:!0,value:void 0}),Object.defineProperty(this,db,{writable:!0,value:void 0}),ab(this,db)[db]=e,ab(this,fb)[fb]=t}progress(){ab(this,cb)[cb]||ab(this,db)[db]>0&&(clearTimeout(ab(this,lb)[lb]),ab(this,lb)[lb]=setTimeout(ab(this,fb)[fb],ab(this,db)[db]))}done(){ab(this,cb)[cb]||(clearTimeout(ab(this,lb)[lb]),ab(this,lb)[lb]=null,ab(this,cb)[cb]=!0)}};function hb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var gb=0;function vb(e){return"__private_"+gb+++"_"+e}function yb(){return new Error("Cancelled")}var mb=vb("activeRequests"),bb=vb("queuedHandlers"),wb=vb("call"),Eb=vb("queueNext"),Db=vb("next"),Cb=vb("queue"),Sb=vb("dequeue");function xb(e){hb(this,mb)[mb]+=1;let t,n=!1;try{t=e()}catch(r){throw hb(this,mb)[mb]-=1,r}return{abort:()=>{n||(n=!0,hb(this,mb)[mb]-=1,t(),hb(this,Eb)[Eb]())},done:()=>{n||(n=!0,hb(this,mb)[mb]-=1,hb(this,Eb)[Eb]())}}}function Ab(){queueMicrotask((()=>hb(this,Db)[Db]()))}function Ob(){if(hb(this,mb)[mb]>=this.limit)return;if(0===hb(this,bb)[bb].length)return;const e=hb(this,bb)[bb].shift(),t=hb(this,wb)[wb](e.fn);e.abort=t.abort,e.done=t.done}function kb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{hb(this,Sb)[Sb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=hb(this,bb)[bb].findIndex((e=>n.priority>e.priority));return-1===r?hb(this,bb)[bb].push(n):hb(this,bb)[bb].splice(r,0,n),n}function Bb(e){const t=hb(this,bb)[bb].indexOf(e);-1!==t&&hb(this,bb)[bb].splice(t,1)}var Fb,Tb,_b={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Sb,{value:Bb}),Object.defineProperty(this,Cb,{value:kb}),Object.defineProperty(this,Db,{value:Ob}),Object.defineProperty(this,Eb,{value:Ab}),Object.defineProperty(this,wb,{value:xb}),Object.defineProperty(this,mb,{writable:!0,value:0}),Object.defineProperty(this,bb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return hb(this,mb)[mb]<this.limit?hb(this,wb)[wb](e):hb(this,Cb)[Cb](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=yb()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Pb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},jb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Nb}=yy,{Provider:Ib,RequestClient:Lb,Socket:Rb}=eb,{RateLimitedQueue:Mb,internalRateLimitedQueue:zb}=_b;function $b(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})),Pb(e)?(n=new Sm(n,e),n):(n.request=e,n)}function Hb(e){return e.data.slice(0,e.data.size,e.meta.type)}var Vb=(Tb=Fb=class extends cm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=jb;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 Pb(t)&&(n=new Sm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),zb in this.opts?this.requests=this.opts[zb]:this.requests=new Mb(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=Hb(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=Hb(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 ib(this.uppy);const a=new pb(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=Nb();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=$b(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=$b(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?Ib:Lb)(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 Rb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new ib(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=>tb(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 pb(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[zb]||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)}},Fb.VERSION="2.0.6",Tb),Ub="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Gb,qb,Kb=function(e){return e&&e.Math==Math&&e},Yb=Kb("object"==typeof globalThis&&globalThis)||Kb("object"==typeof window&&window)||Kb("object"==typeof self&&self)||Kb("object"==typeof Ub&&Ub)||function(){return this}()||Function("return this")(),Xb=Object.defineProperty,Zb=function(e,t){try{Xb(Yb,e,{value:t,configurable:!0,writable:!0})}catch(OP){Yb[e]=t}return t},Jb=Yb["__core-js_shared__"]||Zb("__core-js_shared__",{}),Qb=Wb((function(e){(e.exports=function(e,t){return Jb[e]||(Jb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ew=Function.prototype,tw=ew.bind,nw=ew.call,rw=tw&&tw.bind(nw),ow=tw?function(e){return e&&rw(nw,e)}:function(e){return e&&function(){return nw.apply(e,arguments)}},iw=Yb.TypeError,aw=function(e){if(null==e)throw iw("Can't call method on "+e);return e},uw=Yb.Object,sw=function(e){return uw(aw(e))},lw=ow({}.hasOwnProperty),cw=Object.hasOwn||function(e,t){return lw(sw(e),t)},fw=0,dw=Math.random(),pw=ow(1..toString),hw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pw(++fw+dw,36)},gw=function(e){return"function"==typeof e},vw=function(e){return gw(e)?e:void 0},yw=function(e,t){return arguments.length<2?vw(Yb[e]):Yb[e]&&Yb[e][t]},mw=yw("navigator","userAgent")||"",bw=Yb.process,ww=Yb.Deno,Ew=bw&&bw.versions||ww&&ww.version,Dw=Ew&&Ew.v8;Dw&&(qb=(Gb=Dw.split("."))[0]>0&&Gb[0]<4?1:+(Gb[0]+Gb[1])),!qb&&mw&&(!(Gb=mw.match(/Edge\/(\d+)/))||Gb[1]>=74)&&(Gb=mw.match(/Chrome\/(\d+)/))&&(qb=+Gb[1]);var Cw=qb,Sw=function(e){try{return!!e()}catch(t){return!0}},xw=!!Object.getOwnPropertySymbols&&!Sw((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Cw&&Cw<41})),Aw=xw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ow=Qb("wks"),kw=Yb.Symbol,Bw=kw&&kw.for,Fw=Aw?kw:kw&&kw.withoutSetter||hw,Tw=function(e){if(!cw(Ow,e)||!xw&&"string"!=typeof Ow[e]){var t="Symbol."+e;xw&&cw(kw,e)?Ow[e]=kw[e]:Ow[e]=Aw&&Bw?Bw(t):Fw(t)}return Ow[e]},_w={};_w[Tw("toStringTag")]="z";var Pw="[object z]"===String(_w),jw=!Sw((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Nw=function(e){return"object"==typeof e?null!==e:gw(e)},Iw=Yb.document,Lw=Nw(Iw)&&Nw(Iw.createElement),Rw=function(e){return Lw?Iw.createElement(e):{}},Mw=!jw&&!Sw((function(){return 7!=Object.defineProperty(Rw("div"),"a",{get:function(){return 7}}).a})),zw=Yb.String,$w=Yb.TypeError,Hw=function(e){if(Nw(e))return e;throw $w(zw(e)+" is not an object")},Vw=Function.prototype.call,Uw=Vw.bind?Vw.bind(Vw):function(){return Vw.apply(Vw,arguments)},Ww=ow({}.isPrototypeOf),Gw=Yb.Object,qw=Aw?function(e){return"symbol"==typeof e}:function(e){var t=yw("Symbol");return gw(t)&&Ww(t.prototype,Gw(e))},Kw=Yb.String,Yw=function(e){try{return Kw(e)}catch(t){return"Object"}},Xw=Yb.TypeError,Zw=function(e){if(gw(e))return e;throw Xw(Yw(e)+" is not a function")},Jw=function(e,t){var n=e[t];return null==n?void 0:Zw(n)},Qw=Yb.TypeError,eE=Yb.TypeError,tE=Tw("toPrimitive"),nE=function(e){var t=function(e,t){if(!Nw(e)||qw(e))return e;var n,r=Jw(e,tE);if(r){if(void 0===t&&(t="default"),n=Uw(r,e,t),!Nw(n)||qw(n))return n;throw eE("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&gw(n=e.toString)&&!Nw(r=Uw(n,e)))return r;if(gw(n=e.valueOf)&&!Nw(r=Uw(n,e)))return r;if("string"!==t&&gw(n=e.toString)&&!Nw(r=Uw(n,e)))return r;throw Qw("Can't convert object to primitive value")}(e,t)}(e,"string");return qw(t)?t:t+""},rE=Yb.TypeError,oE=Object.defineProperty,iE={f:jw?oE:function(e,t,n){if(Hw(e),t=nE(t),Hw(n),Mw)try{return oE(e,t,n)}catch(r){}if("get"in n||"set"in n)throw rE("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},aE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},uE=jw?function(e,t,n){return iE.f(e,t,aE(1,n))}:function(e,t,n){return e[t]=n,e},sE=ow(Function.toString);gw(Jb.inspectSource)||(Jb.inspectSource=function(e){return sE(e)});var lE,cE,fE,dE=Jb.inspectSource,pE=Yb.WeakMap,hE=gw(pE)&&/native code/.test(dE(pE)),gE=Qb("keys"),vE=function(e){return gE[e]||(gE[e]=hw(e))},yE={},mE=Yb.TypeError,bE=Yb.WeakMap;if(hE||Jb.state){var wE=Jb.state||(Jb.state=new bE),EE=ow(wE.get),DE=ow(wE.has),CE=ow(wE.set);lE=function(e,t){if(DE(wE,e))throw new mE("Object already initialized");return t.facade=e,CE(wE,e,t),t},cE=function(e){return EE(wE,e)||{}},fE=function(e){return DE(wE,e)}}else{var SE=vE("state");yE[SE]=!0,lE=function(e,t){if(cw(e,SE))throw new mE("Object already initialized");return t.facade=e,uE(e,SE,t),t},cE=function(e){return cw(e,SE)?e[SE]:{}},fE=function(e){return cw(e,SE)}}var xE={set:lE,get:cE,has:fE,enforce:function(e){return fE(e)?cE(e):lE(e,{})},getterFor:function(e){return function(t){var n;if(!Nw(t)||(n=cE(t)).type!==e)throw mE("Incompatible receiver, "+e+" required");return n}}},AE=Function.prototype,OE=jw&&Object.getOwnPropertyDescriptor,kE=cw(AE,"name"),BE={EXISTS:kE,PROPER:kE&&"something"===function(){}.name,CONFIGURABLE:kE&&(!jw||jw&&OE(AE,"name").configurable)},FE=Wb((function(e){var t=BE.CONFIGURABLE,n=xE.get,r=xE.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;gw(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cw(i,"name")||t&&i.name!==f)&&uE(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Yb?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:uE(e,n,i)):l?e[n]=i:Zb(n,i)})(Function.prototype,"toString",(function(){return gw(this)&&n(this).source||dE(this)}))})),TE=ow({}.toString),_E=ow("".slice),PE=function(e){return _E(TE(e),8,-1)},jE=Tw("toStringTag"),NE=Yb.Object,IE="Arguments"==PE(function(){return arguments}()),LE=Pw?PE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=NE(e),jE))?n:IE?PE(t):"Object"==(r=PE(t))&&gw(t.callee)?"Arguments":r},RE=Pw?{}.toString:function(){return"[object "+LE(this)+"]"};Pw||FE(Object.prototype,"toString",RE,{unsafe:!0});var ME={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},zE=Rw("span").classList,$E=zE&&zE.constructor&&zE.constructor.prototype,HE=$E===Object.prototype?void 0:$E,VE=ow(ow.bind),UE=function(e,t){return Zw(e),void 0===t?e:VE?VE(e,t):function(){return e.apply(t,arguments)}},WE=Yb.Object,GE=ow("".split),qE=Sw((function(){return!WE("z").propertyIsEnumerable(0)}))?function(e){return"String"==PE(e)?GE(e,""):WE(e)}:WE,KE=Math.ceil,YE=Math.floor,XE=function(e){var t=+e;return t!=t||0===t?0:(t>0?YE:KE)(t)},ZE=Math.min,JE=function(e){return e>0?ZE(XE(e),9007199254740991):0},QE=function(e){return JE(e.length)},eD=Array.isArray||function(e){return"Array"==PE(e)},tD=function(){},nD=[],rD=yw("Reflect","construct"),oD=/^\s*(?:class|function)\b/,iD=ow(oD.exec),aD=!oD.exec(tD),uD=function(e){if(!gw(e))return!1;try{return rD(tD,nD,e),!0}catch(t){return!1}},sD=!rD||Sw((function(){var e;return uD(uD.call)||!uD(Object)||!uD((function(){e=!0}))||e}))?function(e){if(!gw(e))return!1;switch(LE(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aD||!!iD(oD,dE(e))}:uD,lD=Tw("species"),cD=Yb.Array,fD=function(e,t){return new(eD(n=e)&&(r=n.constructor,(sD(r)&&(r===cD||eD(r.prototype))||Nw(r)&&null===(r=r[lD]))&&(r=void 0)),void 0===r?cD:r)(0===t?0:t);var n,r},dD=ow([].push),pD=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=sw(s),g=qE(h),v=UE(l,c),y=QE(g),m=0,b=f||fD,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:dD(w,d)}else switch(e){case 4:return!1;case 7:dD(w,d)}return i?-1:r||o?o:w}},hD={forEach:pD(0),map:pD(1),filter:pD(2),some:pD(3),every:pD(4),find:pD(5),findIndex:pD(6),filterReject:pD(7)},gD=function(e,t){var n=[][e];return!!n&&Sw((function(){n.call(null,t||function(){throw 1},1)}))},vD=hD.forEach,yD=gD("forEach")?[].forEach:function(e){return vD(this,e,arguments.length>1?arguments[1]:void 0)},mD=function(e){if(e&&e.forEach!==yD)try{uE(e,"forEach",yD)}catch(t){e.forEach=yD}};for(var bD in ME)ME[bD]&&mD(Yb[bD]&&Yb[bD].prototype);mD(HE);var wD={}.propertyIsEnumerable,ED=Object.getOwnPropertyDescriptor,DD=ED&&!wD.call({1:2},1)?function(e){var t=ED(this,e);return!!t&&t.enumerable}:wD,CD={f:DD},SD=function(e){return qE(aw(e))},xD=Object.getOwnPropertyDescriptor,AD={f:jw?xD:function(e,t){if(e=SD(e),t=nE(t),Mw)try{return xD(e,t)}catch(n){}if(cw(e,t))return aE(!Uw(CD.f,e,t),e[t])}},OD=Math.max,kD=Math.min,BD=function(e,t){var n=XE(e);return n<0?OD(n+t,0):kD(n,t)},FD=function(e){return function(t,n,r){var o,i=SD(t),a=QE(i),u=BD(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}},TD={includes:FD(!0),indexOf:FD(!1)},_D=TD.indexOf,PD=ow([].push),jD=function(e,t){var n,r=SD(e),o=0,i=[];for(n in r)!cw(yE,n)&&cw(r,n)&&PD(i,n);for(;t.length>o;)cw(r,n=t[o++])&&(~_D(i,n)||PD(i,n));return i},ND=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ID=ND.concat("length","prototype"),LD={f:Object.getOwnPropertyNames||function(e){return jD(e,ID)}},RD={f:Object.getOwnPropertySymbols},MD=ow([].concat),zD=yw("Reflect","ownKeys")||function(e){var t=LD.f(Hw(e)),n=RD.f;return n?MD(t,n(e)):t},$D=function(e,t){for(var n=zD(t),r=iE.f,o=AD.f,i=0;i<n.length;i++){var a=n[i];cw(e,a)||r(e,a,o(t,a))}},HD=/#|\.prototype\./,VD=function(e,t){var n=WD[UD(e)];return n==qD||n!=GD&&(gw(t)?Sw(t):!!t)},UD=VD.normalize=function(e){return String(e).replace(HD,".").toLowerCase()},WD=VD.data={},GD=VD.NATIVE="N",qD=VD.POLYFILL="P",KD=VD,YD=AD.f,XD=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Yb:l?Yb[u]||Zb(u,{}):(Yb[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=YD(n,r))&&a.value:n[r],!KD(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$D(i,o)}(e.sham||o&&o.sham)&&uE(i,"sham",!0),FE(n,r,i,e)}},ZD=Object.keys||function(e){return jD(e,ND)},JD=Sw((function(){ZD(1)}));
- /*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function QD(e){return"[object Object]"===Object.prototype.toString.call(e)}XD({target:"Object",stat:!0,forced:JD},{keys:function(e){return ZD(sw(e))}});var eC={isHistory(e){return!1!==QD(t=e)&&(void 0===(n=t.constructor)||!1!==QD(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||qf.isOperationList(e.redos[0]))&&(0===e.undos.length||qf.isOperationList(e.undos[0]));var t,n,r}},tC=new WeakMap,nC=new WeakMap,rC={isHistoryEditor:e=>eC.isHistory(e.history)&&Mf.isEditor(e),isMerging:e=>nC.get(e),isSaving:e=>tC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=rC.isMerging(e);nC.set(e,!1),t(),nC.set(e,n)},withoutSaving(e,t){var n=rC.isSaving(e);tC.set(e,!1),t(),tC.set(e,n)}},oC=Yb.String,iC=function(e){if("Symbol"===LE(e))throw TypeError("Cannot convert a Symbol value to a string");return oC(e)},aC=function(){var e=Hw(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},uC=BE.PROPER,sC=RegExp.prototype,lC=sC.toString,cC=ow(aC),fC=Sw((function(){return"/a/b"!=lC.call({source:"a",flags:"b"})})),dC=uC&&"toString"!=lC.name;(fC||dC)&&FE(RegExp.prototype,"toString",(function(){var e=Hw(this),t=iC(e.source),n=e.flags;return"/"+t+"/"+iC(void 0===n&&Ww(sC,e)&&!("flags"in sC)?cC(e):n)}),{unsafe:!0});var pC,hC=jw?Object.defineProperties:function(e,t){Hw(e);for(var n,r=SD(t),o=ZD(t),i=o.length,a=0;i>a;)iE.f(e,n=o[a++],r[n]);return e},gC=yw("document","documentElement"),vC=vE("IE_PROTO"),yC=function(){},mC=function(e){return"<script>"+e+"<\/script>"},bC=function(e){e.write(mC("")),e.close();var t=e.parentWindow.Object;return e=null,t},wC=function(){try{pC=new ActiveXObject("htmlfile")}catch(r){}var e,t;wC="undefined"!=typeof document?document.domain&&pC?bC(pC):((t=Rw("iframe")).style.display="none",gC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(mC("document.F=Object")),e.close(),e.F):bC(pC);for(var n=ND.length;n--;)delete wC.prototype[ND[n]];return wC()};yE[vC]=!0;var EC=Object.create||function(e,t){var n;return null!==e?(yC.prototype=Hw(e),n=new yC,yC.prototype=null,n[vC]=e):n=wC(),void 0===t?n:hC(n,t)},DC=Tw("unscopables"),CC=Array.prototype;null==CC[DC]&&iE.f(CC,DC,{configurable:!0,value:EC(null)});var SC=function(e){CC[DC][e]=!0},xC=TD.includes;XD({target:"Array",proto:!0},{includes:function(e){return xC(this,e,arguments.length>1?arguments[1]:void 0)}}),SC("includes");var AC=Tw("match"),OC=function(e){var t;return Nw(e)&&(void 0!==(t=e[AC])?!!t:"RegExp"==PE(e))},kC=Yb.TypeError,BC=function(e){if(OC(e))throw kC("The method doesn't accept regular expressions");return e},FC=Tw("match"),TC=function(e){var t=/./;try{"/./"[e](t)}catch(OP){try{return t[FC]=!1,"/./"[e](t)}catch(n){}}return!1},_C=ow("".indexOf);XD({target:"String",proto:!0,forced:!TC("includes")},{includes:function(e){return!!~_C(iC(aw(this)),iC(BC(e)),arguments.length>1?arguments[1]:void 0)}});var PC=/"/g,jC=ow("".replace);XD({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=iC(aw(this)),r="<a",(r+=' name="'+jC(iC(t),PC,""")+'"')+">"+n+"</a>";var t,n,r}});var NC=function(e,t,n){var r,o;Hw(e);try{if(!(r=Jw(e,"return"))){if("throw"===t)throw n;return n}r=Uw(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Hw(r),n},IC=function(e,t,n,r){try{return r?t(Hw(n)[0],n[1]):t(n)}catch(o){NC(e,"throw",o)}},LC={},RC=Tw("iterator"),MC=Array.prototype,zC=function(e){return void 0!==e&&(LC.Array===e||MC[RC]===e)},$C=function(e,t,n){var r=nE(t);r in e?iE.f(e,r,aE(0,n)):e[r]=n},HC=Tw("iterator"),VC=function(e){if(null!=e)return Jw(e,HC)||Jw(e,"@@iterator")||LC[LE(e)]},UC=Yb.TypeError,WC=function(e,t){var n=arguments.length<2?VC(e):t;if(Zw(n))return Hw(Uw(n,e));throw UC(Yw(e)+" is not iterable")},GC=Yb.Array,qC=Tw("iterator"),KC=!1;try{var YC=0,XC={next:function(){return{done:!!YC++}},return:function(){KC=!0}};XC[qC]=function(){return this},Array.from(XC,(function(){throw 2}))}catch(Yve){}var ZC=function(e,t){if(!t&&!KC)return!1;var n=!1;try{var r={};r[qC]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},JC=!ZC((function(e){Array.from(e)}));XD({target:"Array",stat:!0,forced:JC},{from:function(e){var t=sw(e),n=sD(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=UE(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=VC(t),p=0;if(!d||this==GC&&zC(d))for(a=QE(t),u=n?new this(a):GC(a);a>p;p++)f=i?o(t[p],p):t[p],$C(u,p,f);else for(c=(l=WC(t,d)).next,u=n?new this:[];!(s=Uw(c,l)).done;p++)f=i?IC(l,o,[s.value,p],!0):s.value,$C(u,p,f);return u.length=p,u}});var QC,eS,tS,nS=ow("".charAt),rS=ow("".charCodeAt),oS=ow("".slice),iS=function(e){return function(t,n){var r,o,i=iC(aw(t)),a=XE(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=rS(i,a))<55296||r>56319||a+1===u||(o=rS(i,a+1))<56320||o>57343?e?nS(i,a):r:e?oS(i,a,a+2):o-56320+(r-55296<<10)+65536}},aS={codeAt:iS(!1),charAt:iS(!0)},uS=!Sw((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),sS=vE("IE_PROTO"),lS=Yb.Object,cS=lS.prototype,fS=uS?lS.getPrototypeOf:function(e){var t=sw(e);if(cw(t,sS))return t[sS];var n=t.constructor;return gw(n)&&t instanceof n?n.prototype:t instanceof lS?cS:null},dS=Tw("iterator"),pS=!1;[].keys&&("next"in(tS=[].keys())?(eS=fS(fS(tS)))!==Object.prototype&&(QC=eS):pS=!0);var hS=null==QC||Sw((function(){var e={};return QC[dS].call(e)!==e}));hS&&(QC={}),gw(QC[dS])||FE(QC,dS,(function(){return this}));var gS={IteratorPrototype:QC,BUGGY_SAFARI_ITERATORS:pS},vS=iE.f,yS=Tw("toStringTag"),mS=function(e,t,n){e&&!cw(e=n?e:e.prototype,yS)&&vS(e,yS,{configurable:!0,value:t})},bS=gS.IteratorPrototype,wS=function(){return this},ES=Yb.String,DS=Yb.TypeError,CS=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=ow(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Hw(n),function(e){if("object"==typeof e||gw(e))return e;throw DS("Can't set "+ES(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),SS=BE.PROPER,xS=BE.CONFIGURABLE,AS=gS.IteratorPrototype,OS=gS.BUGGY_SAFARI_ITERATORS,kS=Tw("iterator"),BS=function(){return this},FS=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=EC(bS,{next:aE(1,s)}),mS(u,l,!1),LC[l]=wS;var c,f,d,p=function(e){if(e===o&&m)return m;if(!OS&&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[kS]||v["@@iterator"]||o&&v[o],m=!OS&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=fS(b.call(new e)))!==Object.prototype&&c.next&&(fS(c)!==AS&&(CS?CS(c,AS):gw(c[kS])||FE(c,kS,BS)),mS(c,h,!0)),SS&&"values"==o&&y&&"values"!==y.name&&(xS?uE(v,"name","values"):(g=!0,m=function(){return Uw(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(OS||g||!(d in v))&&FE(v,d,f[d]);else XD({target:t,proto:!0,forced:OS||g},f);return v[kS]!==m&&FE(v,kS,m,{name:o}),LC[t]=m,f},TS=aS.charAt,_S=xE.set,PS=xE.getterFor("String Iterator");FS(String,"String",(function(e){_S(this,{type:"String Iterator",string:iC(e),index:0})}),(function(){var e,t=PS(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=TS(n,r),t.index+=e.length,{value:e,done:!1})}));var jS,NS=AD.f,IS=ow("".endsWith),LS=ow("".slice),RS=Math.min,MS=TC("endsWith"),zS=!(MS||(jS=NS(String.prototype,"endsWith"),!jS||jS.writable));XD({target:"String",proto:!0,forced:!zS&&!MS},{endsWith:function(e){var t=iC(aw(this));BC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:RS(JE(n),r),i=iC(e);return IS?IS(t,i,o):LS(t,o-i.length,o)===i}});var $S=ow([].join),HS=qE!=Object,VS=gD("join",",");XD({target:"Array",proto:!0,forced:HS||!VS},{join:function(e){return $S(SD(this),void 0===e?",":e)}});var US=Tw("species"),WS=function(e){return Cw>=51||!Sw((function(){var t=[];return(t.constructor={})[US]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},GS=hD.map,qS=WS("map");XD({target:"Array",proto:!0,forced:!qS},{map:function(e){return GS(this,e,arguments.length>1?arguments[1]:void 0)}});var KS=Yb.RegExp,YS=Sw((function(){var e=KS("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),XS=YS||Sw((function(){return!KS("a","y").sticky})),ZS={BROKEN_CARET:YS||Sw((function(){var e=KS("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:XS,UNSUPPORTED_Y:YS},JS=Yb.RegExp,QS=Sw((function(){var e=JS(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ex=Yb.RegExp,tx=Sw((function(){var e=ex("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),nx=xE.get,rx=Qb("native-string-replace",String.prototype.replace),ox=RegExp.prototype.exec,ix=ox,ax=ow("".charAt),ux=ow("".indexOf),sx=ow("".replace),lx=ow("".slice),cx=function(){var e=/a/,t=/b*/g;return Uw(ox,e,"a"),Uw(ox,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),fx=ZS.BROKEN_CARET,dx=void 0!==/()??/.exec("")[1];(cx||dx||fx||QS||tx)&&(ix=function(e){var t,n,r,o,i,a,u,s=this,l=nx(s),c=iC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Uw(ix,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=fx&&s.sticky,h=Uw(aC,s),g=s.source,v=0,y=c;if(p&&(h=sx(h,"y",""),-1===ux(h,"g")&&(h+="g"),y=lx(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ax(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),dx&&(n=new RegExp("^"+g+"$(?!\\s)",h)),cx&&(r=s.lastIndex),o=Uw(ox,p?n:s,y),p?o?(o.input=lx(o.input,v),o[0]=lx(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:cx&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),dx&&o&&o.length>1&&Uw(rx,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=EC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var px=ix;XD({target:"RegExp",proto:!0,forced:/./.exec!==px},{exec:px});var hx=Function.prototype,gx=hx.apply,vx=hx.bind,yx=hx.call,mx="object"==typeof Reflect&&Reflect.apply||(vx?yx.bind(gx):function(){return yx.apply(gx,arguments)}),bx=Tw("species"),wx=RegExp.prototype,Ex=function(e,t,n,r){var o=Tw(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[bx]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=ow(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=ow(e),s=t.exec;return s===px||s===wx.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));FE(String.prototype,e,s[0]),FE(wx,o,s[1])}r&&uE(wx[o],"sham",!0)},Dx=aS.charAt,Cx=function(e,t,n){return t+(n?Dx(e,t).length:1)},Sx=Math.floor,xx=ow("".charAt),Ax=ow("".replace),Ox=ow("".slice),kx=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Bx=/\$([$&'`]|\d{1,2})/g,Fx=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Bx;return void 0!==o&&(o=sw(o),s=kx),Ax(i,s,(function(i,s){var l;switch(xx(s,0)){case"$":return"$";case"&":return e;case"`":return Ox(t,0,n);case"'":return Ox(t,a);case"<":l=o[Ox(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]?xx(s,1):r[f-1]+xx(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Tx=Yb.TypeError,_x=function(e,t){var n=e.exec;if(gw(n)){var r=Uw(n,e,t);return null!==r&&Hw(r),r}if("RegExp"===PE(e))return Uw(px,e,t);throw Tx("RegExp#exec called on incompatible receiver")},Px=Tw("replace"),jx=Math.max,Nx=Math.min,Ix=ow([].concat),Lx=ow([].push),Rx=ow("".indexOf),Mx=ow("".slice),zx="$0"==="a".replace(/./,"$0"),$x=!!/./[Px]&&""===/./[Px]("a","$0");Ex("replace",(function(e,t,n){var r=$x?"$":"$0";return[function(e,n){var r=aw(this),o=null==e?void 0:Jw(e,Px);return o?Uw(o,e,r,n):Uw(t,iC(r),e,n)},function(e,o){var i=Hw(this),a=iC(e);if("string"==typeof o&&-1===Rx(o,r)&&-1===Rx(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=gw(o);s||(o=iC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=_x(i,a);if(null===d)break;if(Lx(f,d),!l)break;""===iC(d[0])&&(i.lastIndex=Cx(a,JE(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=iC((d=f[v])[0]),m=jx(Nx(XE(d.index),a.length),0),b=[],w=1;w<d.length;w++)Lx(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=Ix([y],b,m,a);void 0!==E&&Lx(D,E);var C=iC(mx(o,void 0,D))}else C=Fx(y,a,m,b,E,o);m>=g&&(h+=Mx(a,g,m)+C,g=m+y.length)}return h+Mx(a,g)}]}),!!Sw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!zx||$x);
- /*! *****************************************************************************
- 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 Hx=function(e,t){return(Hx=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 Vx(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}Hx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ux=function(){return Ux=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},Ux.apply(this,arguments)};function Wx(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 Gx(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 qx(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var Kx=0,Yx=function(){this.id=""+Kx++},Xx=xE.set,Zx=xE.getterFor("Array Iterator"),Jx=FS(Array,"Array",(function(e,t){Xx(this,{type:"Array Iterator",target:SD(e),index:0,kind:t})}),(function(){var e=Zx(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");LC.Arguments=LC.Array,SC("keys"),SC("values"),SC("entries");var Qx=function(e,t,n){for(var r in t)FE(e,r,t[r],n);return e},eA=Yb.Array,tA=Math.max,nA=function(e,t,n){for(var r=QE(e),o=BD(t,r),i=BD(void 0===n?r:n,r),a=eA(tA(i-o,0)),u=0;o<i;o++,u++)$C(a,u,e[o]);return a.length=u,a},rA=LD.f,oA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],iA={f:function(e){return oA&&"Window"==PE(e)?function(e){try{return rA(e)}catch(t){return nA(oA)}}(e):rA(SD(e))}},aA=Sw((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),uA=Object.isExtensible,sA=Sw((function(){uA(1)}))||aA?function(e){return!!Nw(e)&&(!aA||"ArrayBuffer"!=PE(e))&&(!uA||uA(e))}:uA,lA=!Sw((function(){return Object.isExtensible(Object.preventExtensions({}))})),cA=Wb((function(e){var t=iE.f,n=!1,r=hw("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=LD.f,t=ow([].splice),o={};o[r]=1,e(o).length&&(LD.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},XD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:iA.f}))},fastKey:function(e,t){if(!Nw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!cw(e,r)){if(!sA(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!cw(e,r)){if(!sA(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return lA&&n&&sA(e)&&!cw(e,r)&&i(e),e}};yE[r]=!0})),fA=Yb.TypeError,dA=function(e,t){this.stopped=e,this.result=t},pA=dA.prototype,hA=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=UE(t,c),g=function(e){return r&&NC(r,"normal",e),new dA(!0,e)},v=function(e){return f?(Hw(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=VC(e)))throw fA(Yw(e)+" is not iterable");if(zC(o)){for(i=0,a=QE(e);a>i;i++)if((u=v(e[i]))&&Ww(pA,u))return u;return new dA(!1)}r=WC(e,o)}for(s=r.next;!(l=Uw(s,r)).done;){try{u=v(l.value)}catch(y){NC(r,"throw",y)}if("object"==typeof u&&u&&Ww(pA,u))return u}return new dA(!1)},gA=Yb.TypeError,vA=function(e,t){if(Ww(t,e))return e;throw gA("Incorrect invocation")},yA=function(e,t,n){var r,o;return CS&&gw(r=t.constructor)&&r!==n&&Nw(o=r.prototype)&&o!==n.prototype&&CS(e,o),e},mA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Yb[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=ow(u[e]);FE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Nw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Nw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Nw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(KD(e,!gw(a)||!(o||u.forEach&&!Sw((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),cA.enable();else if(KD(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Sw((function(){f.has(1)})),h=ZC((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){vA(e,u);var n=yA(new a,e,s);return null!=t&&hA(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,XD({global:!0,forced:s!=a},l),mS(s,e),o||n.setStrong(s,e,r),s},bA=cA.getWeakData,wA=xE.set,EA=xE.getterFor,DA=hD.find,CA=hD.findIndex,SA=ow([].splice),xA=0,AA=function(e){return e.frozen||(e.frozen=new OA)},OA=function(){this.entries=[]},kA=function(e,t){return DA(e.entries,(function(e){return e[0]===t}))};OA.prototype={get:function(e){var t=kA(this,e);if(t)return t[1]},has:function(e){return!!kA(this,e)},set:function(e,t){var n=kA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=CA(this.entries,(function(t){return t[0]===e}));return~t&&SA(this.entries,t,1),!!~t}};var BA,FA={getConstructor:function(e,t,n,r){var o=e((function(e,o){vA(e,i),wA(e,{type:t,id:xA++,frozen:void 0}),null!=o&&hA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=EA(t),u=function(e,t,n){var r=a(e),o=bA(Hw(t),!0);return!0===o?AA(r).set(t,n):o[r.id]=n,e};return Qx(i,{delete:function(e){var t=a(this);if(!Nw(e))return!1;var n=bA(e);return!0===n?AA(t).delete(e):n&&cw(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Nw(e))return!1;var n=bA(e);return!0===n?AA(t).has(e):n&&cw(n,t.id)}}),Qx(i,n?{get:function(e){var t=a(this);if(Nw(e)){var n=bA(e);return!0===n?AA(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}},TA=xE.enforce,_A=!Yb.ActiveXObject&&"ActiveXObject"in Yb,PA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},jA=mA("WeakMap",PA,FA);if(hE&&_A){BA=FA.getConstructor(PA,"WeakMap",!0),cA.enable();var NA=jA.prototype,IA=ow(NA.delete),LA=ow(NA.has),RA=ow(NA.get),MA=ow(NA.set);Qx(NA,{delete:function(e){if(Nw(e)&&!sA(e)){var t=TA(this);return t.frozen||(t.frozen=new BA),IA(this,e)||t.frozen.delete(e)}return IA(this,e)},has:function(e){if(Nw(e)&&!sA(e)){var t=TA(this);return t.frozen||(t.frozen=new BA),LA(this,e)||t.frozen.has(e)}return LA(this,e)},get:function(e){if(Nw(e)&&!sA(e)){var t=TA(this);return t.frozen||(t.frozen=new BA),LA(this,e)?RA(this,e):t.frozen.get(e)}return RA(this,e)},set:function(e,t){if(Nw(e)&&!sA(e)){var n=TA(this);n.frozen||(n.frozen=new BA),LA(this,e)?MA(this,e,t):n.frozen.set(e,t)}else MA(this,e,t);return this}})}var zA=Tw("iterator"),$A=Tw("toStringTag"),HA=Jx.values,VA=function(e,t){if(e){if(e[zA]!==HA)try{uE(e,zA,HA)}catch(r){e[zA]=HA}if(e[$A]||uE(e,$A,t),ME[t])for(var n in Jx)if(e[n]!==Jx[n])try{uE(e,n,Jx[n])}catch(r){e[n]=Jx[n]}}};for(var UA in ME)VA(Yb[UA]&&Yb[UA].prototype,UA);VA(HE,"DOMTokenList");var 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=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,oO=new WeakMap,iO=new WeakMap,aO=new WeakMap,uO=new WeakMap,sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,gO=new WeakMap,vO=hD.find,yO=!0;"find"in[]&&Array(1).find((function(){yO=!1})),XD({target:"Array",proto:!0,forced:yO},{find:function(e){return vO(this,e,arguments.length>1?arguments[1]:void 0)}}),SC("find"),XD({global:!0},{globalThis:Yb});const mO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];rh&&(Hp.fn.css=rh),lh&&(Hp.fn.append=lh),Vp&&(Hp.fn.addClass=Vp),Up&&(Hp.fn.removeClass=Up),Wp&&(Hp.fn.hasClass=Wp),Xp&&(Hp.fn.on=Xp),wh&&(Hp.fn.focus=wh),Gp&&(Hp.fn.attr=Gp),qp&&(Hp.fn.removeAttr=qp),th&&(Hp.fn.hide=th),nh&&(Hp.fn.show=nh),eh&&(Hp.fn.offset=eh),Jp&&(Hp.fn.width=Jp),Qp&&(Hp.fn.height=Qp),fh&&(Hp.fn.parent=fh),dh&&(Hp.fn.parents=dh),sh&&(Hp.fn.is=sh),Kp&&(Hp.fn.dataset=Kp),Yp&&(Hp.fn.val=Yp),uh&&(Hp.fn.text=uh),ah&&(Hp.fn.html=ah),hh&&(Hp.fn.children=hh),gh&&(Hp.fn.remove=gh),ph&&(Hp.fn.find=ph),oh&&(Hp.fn.each=oh),vh&&(Hp.fn.empty=vh);var bO,wO,EO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},DO=function(e){return CO(e)&&1===e.nodeType},CO=function(e){var t=EO(e);return!!t&&e instanceof t.Node},SO=function(e){var t=e&&e.anchorNode&&EO(e.anchorNode);return!!t&&e instanceof t.Selection},xO=function(e){return CO(e)&&3===e.nodeType},AO=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},OO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(CO(r=i)&&8===r.nodeType||DO(i)&&0===i.childNodes.length||DO(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]},kO=function(e,t,n){return Gx(OO(e,t,n),1)[0]},BO=function e(t){var n,r,o="";if(xO(t)&&t.nodeValue)return t.nodeValue;if(DO(t)){try{for(var i=Wx(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(zl){n={error:zl}}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 FO(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||FO(o,t)}}function TO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==bO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(wO=bO||(bO={}))[wO.ELEMENT_NODE=1]="ELEMENT_NODE",wO[wO.TEXT_NODE=3]="TEXT_NODE",wO[wO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",wO[wO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",wO[wO.COMMENT_NODE=8]="COMMENT_NODE",wO[wO.DOCUMENT_NODE=9]="DOCUMENT_NODE",wO[wO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",wO[wO.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 _O="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),PO="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 jO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),NO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),IO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),LO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var RO=!IO&&!NO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,MO={getWindow:function(e){var t=fO.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=cO.get(t);return n||(n=new Yx,cO.set(t,n)),n},setNewKey:function(e){var t=new Yx;cO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=iO.get(r);if(null==o){if(Mf.isEditor(r))return n;break}var i=oO.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=MO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return iO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=MO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[MO.findPath(e,t)[0]];return Uf.get(e,n)},toDOMNode:function(e,t){var n;if(Mf.isEditor(t))n=aO.get(e);else{var r=MO.findKey(e,t);n=sO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=MO.toDOMNode(e,e);try{r=DO(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=nd.isBackward(t),i=MO.toDOMPoint(e,n),a=nd.isCollapsed(t)?i:MO.toDOMPoint(e,r),u=MO.getWindow(e).document.createRange(),s=Gx(o?a:i,2),l=s[0],c=s[1],f=Gx(o?i:a,2),d=f[0],p=f[1],h=!!(DO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(DO(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=Gx(Mf.node(e,t.path),1)[0],a=MO.toDOMNode(e,i);Mf.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=Wx(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=DO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?uO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=MO.toSlateNode(e,t.target),u=MO.findPath(e,a);if(Mf.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=Mf.point(e,u,{edge:l?"start":"end"}),f=l?Mf.before(e,c):Mf.after(e,c);if(f)return Mf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return MO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((SO(t)?t.anchorNode:t.startContainer)&&(SO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=LO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=MO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:MO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return nd.isExpanded(d)&&nd.isForward(d)&&DO(i)&&Mf.void(e,{at:d.focus,mode:"highest"})&&(d=Mf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Gx(o?t:function(e){var t,n=Gx(e,2),r=n[0],o=n[1];if(DO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=Gx(OO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;DO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=kO(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var g=MO.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();qx(qx([],Gx(Op(v.querySelectorAll("[data-slate-zero-width]")))),Gx(Op(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")||PO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=MO.toSlateNode(e,c);return{path:MO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Mf.hasPath(e,n.path)&&Mf.hasPath(e,r.path)},getNodeType:function(e){return Pf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Uf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Mf.nodes(e,{universal:!0});try{for(var i=Wx(o),a=i.next();!a.done;a=i.next()){var u=Gx(a.value,1)[0];Pf.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=Gx(Mf.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=Gx(Mf.nodes(e,{match:function(e){return ld.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=Gx(Mf.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&Gx(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Mf.isEnd(e,n.anchor,t)||Mf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=WA.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return KA.get(e)||null},getHoverbar:function(e){return XA.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=MO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=Wx(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=Mf.nodes(e,{match:function(t){return!(!Pf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=Wx(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];FO(MO.toDOMNode(e,h),(function(e,t){var n=Hp(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=Mf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=Wx(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(nd.isExpanded(t))return!1;var n=MO.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Mf.node(e,t);if(null==n)return!1;var r=Gx(n,1)[0].children;return 1===r.length&&""===r[0].text}},zO=1,$O={},HO={},VO=hD.filter,UO=WS("filter");XD({target:"Array",proto:!0,forced:!UO},{filter:function(e){return VO(this,e,arguments.length>1?arguments[1]:void 0)}});var WO="\t\n\v\f\r \u2028\u2029\ufeff",GO=ow("".replace),qO="["+WO+"]",KO=RegExp("^"+qO+qO+"*"),YO=RegExp(qO+qO+"*$"),XO=function(e){return function(t){var n=iC(aw(t));return 1&e&&(n=GO(n,KO,"")),2&e&&(n=GO(n,YO,"")),n}},ZO={start:XO(1),end:XO(2),trim:XO(3)},JO=BE.PROPER,QO=ZO.trim;XD({target:"String",proto:!0,forced:function(e){return Sw((function(){return!!WO.trim()||"
"!=="
".trim()||JO&&WO.trim.name!==e}))}("trim")},{trim:function(){return QO(this)}});var ek=[],tk={};function nk(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var rk,ok,ik,ak,uk=Yb.Promise,sk=Tw("species"),lk=function(e){var t=yw(e),n=iE.f;jw&&t&&!t[sk]&&n(t,sk,{configurable:!0,get:function(){return this}})},ck=Yb.TypeError,fk=Tw("species"),dk=function(e,t){var n,r=Hw(e).constructor;return void 0===r||null==(n=Hw(r)[fk])?t:function(e){if(sD(e))return e;throw ck(Yw(e)+" is not a constructor")}(n)},pk=ow([].slice),hk=/(?:ipad|iphone|ipod).*applewebkit/i.test(mw),gk="process"==PE(Yb.process),vk=Yb.setImmediate,yk=Yb.clearImmediate,mk=Yb.process,bk=Yb.Dispatch,wk=Yb.Function,Ek=Yb.MessageChannel,Dk=Yb.String,Ck=0,Sk={};try{rk=Yb.location}catch(Yve){}var xk=function(e){if(cw(Sk,e)){var t=Sk[e];delete Sk[e],t()}},Ak=function(e){return function(){xk(e)}},Ok=function(e){xk(e.data)},kk=function(e){Yb.postMessage(Dk(e),rk.protocol+"//"+rk.host)};vk&&yk||(vk=function(e){var t=pk(arguments,1);return Sk[++Ck]=function(){mx(gw(e)?e:wk(e),void 0,t)},ok(Ck),Ck},yk=function(e){delete Sk[e]},gk?ok=function(e){mk.nextTick(Ak(e))}:bk&&bk.now?ok=function(e){bk.now(Ak(e))}:Ek&&!hk?(ak=(ik=new Ek).port2,ik.port1.onmessage=Ok,ok=UE(ak.postMessage,ak)):Yb.addEventListener&&gw(Yb.postMessage)&&!Yb.importScripts&&rk&&"file:"!==rk.protocol&&!Sw(kk)?(ok=kk,Yb.addEventListener("message",Ok,!1)):ok="onreadystatechange"in Rw("script")?function(e){gC.appendChild(Rw("script")).onreadystatechange=function(){gC.removeChild(this),xk(e)}}:function(e){setTimeout(Ak(e),0)});var Bk,Fk,Tk,_k,Pk,jk,Nk,Ik,Lk={set:vk,clear:yk},Rk=/ipad|iphone|ipod/i.test(mw)&&void 0!==Yb.Pebble,Mk=/web0s(?!.*chrome)/i.test(mw),zk=AD.f,$k=Lk.set,Hk=Yb.MutationObserver||Yb.WebKitMutationObserver,Vk=Yb.document,Uk=Yb.process,Wk=Yb.Promise,Gk=zk(Yb,"queueMicrotask"),qk=Gk&&Gk.value;qk||(Bk=function(){var e,t;for(gk&&(e=Uk.domain)&&e.exit();Fk;){t=Fk.fn,Fk=Fk.next;try{t()}catch(n){throw Fk?_k():Tk=void 0,n}}Tk=void 0,e&&e.enter()},hk||gk||Mk||!Hk||!Vk?!Rk&&Wk&&Wk.resolve?((Nk=Wk.resolve(void 0)).constructor=Wk,Ik=UE(Nk.then,Nk),_k=function(){Ik(Bk)}):gk?_k=function(){Uk.nextTick(Bk)}:($k=UE($k,Yb),_k=function(){$k(Bk)}):(Pk=!0,jk=Vk.createTextNode(""),new Hk(Bk).observe(jk,{characterData:!0}),_k=function(){jk.data=Pk=!Pk}));var Kk,Yk,Xk,Zk,Jk=qk||function(e){var t={fn:e,next:void 0};Tk&&(Tk.next=t),Fk||(Fk=t,_k()),Tk=t},Qk=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=Zw(t),this.reject=Zw(n)},eB={f:function(e){return new Qk(e)}},tB=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},nB="object"==typeof window,rB=Lk.set,oB=Tw("species"),iB="Promise",aB=xE.getterFor(iB),uB=xE.set,sB=xE.getterFor(iB),lB=uk&&uk.prototype,cB=uk,fB=lB,dB=Yb.TypeError,pB=Yb.document,hB=Yb.process,gB=eB.f,vB=gB,yB=!!(pB&&pB.createEvent&&Yb.dispatchEvent),mB=gw(Yb.PromiseRejectionEvent),bB=!1,wB=KD(iB,(function(){var e=dE(cB),t=e!==String(cB);if(!t&&66===Cw)return!0;if(Cw>=51&&/native code/.test(e))return!1;var n=new cB((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[oB]=r,!(bB=n.then((function(){}))instanceof r)||!t&&nB&&!mB})),EB=wB||!ZC((function(e){cB.all(e).catch((function(){}))})),DB=function(e){var t;return!(!Nw(e)||!gw(t=e.then))&&t},CB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Jk((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&&OB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(dB("Promise-chain cycle")):(u=DB(a))?Uw(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&xB(e)}))}},SB=function(e,t,n){var r,o;yB?((r=pB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Yb.dispatchEvent(r)):r={promise:t,reason:n},!mB&&(o=Yb["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Yb.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},xB=function(e){Uw(rB,Yb,(function(){var t,n=e.facade,r=e.value;if(AB(e)&&(t=tB((function(){gk?hB.emit("unhandledRejection",r,n):SB("unhandledrejection",n,r)})),e.rejection=gk||AB(e)?2:1,t.error))throw t.value}))},AB=function(e){return 1!==e.rejection&&!e.parent},OB=function(e){Uw(rB,Yb,(function(){var t=e.facade;gk?hB.emit("rejectionHandled",t):SB("rejectionhandled",t,e.value)}))},kB=function(e,t,n){return function(r){e(t,r,n)}},BB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,CB(e,!0))},FB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw dB("Promise can't be resolved itself");var r=DB(t);r?Jk((function(){var n={done:!1};try{Uw(r,t,kB(FB,n,e),kB(BB,n,e))}catch(o){BB(n,o,e)}})):(e.value=t,e.state=1,CB(e,!1))}catch(o){BB({done:!1},o,e)}}};if(wB&&(fB=(cB=function(e){vA(this,fB),Zw(e),Uw(Kk,this);var t=aB(this);try{e(kB(FB,t),kB(BB,t))}catch(n){BB(t,n)}}).prototype,(Kk=function(e){uB(this,{type:iB,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Qx(fB,{then:function(e,t){var n=sB(this),r=n.reactions,o=gB(dk(this,cB));return o.ok=!gw(e)||e,o.fail=gw(t)&&t,o.domain=gk?hB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&CB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Yk=function(){var e=new Kk,t=aB(e);this.promise=e,this.resolve=kB(FB,t),this.reject=kB(BB,t)},eB.f=gB=function(e){return e===cB||e===Xk?new Yk(e):vB(e)},gw(uk)&&lB!==Object.prototype)){Zk=lB.then,bB||(FE(lB,"then",(function(e,t){var n=this;return new cB((function(e,t){Uw(Zk,n,e,t)})).then(e,t)}),{unsafe:!0}),FE(lB,"catch",fB.catch,{unsafe:!0}));try{delete lB.constructor}catch(Yve){}CS&&CS(lB,fB)}XD({global:!0,wrap:!0,forced:wB},{Promise:cB}),mS(cB,iB,!1),lk(iB),Xk=yw(iB),XD({target:iB,stat:!0,forced:wB},{reject:function(e){var t=gB(this);return Uw(t.reject,void 0,e),t.promise}}),XD({target:iB,stat:!0,forced:wB},{resolve:function(e){return function(e,t){if(Hw(e),Nw(t)&&t.constructor===e)return t;var n=eB.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),XD({target:iB,stat:!0,forced:EB},{all:function(e){var t=this,n=gB(t),r=n.resolve,o=n.reject,i=tB((function(){var n=Zw(t.resolve),i=[],a=0,u=1;hA(e,(function(e){var s=a++,l=!1;u++,Uw(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=gB(t),r=n.reject,o=tB((function(){var o=Zw(t.resolve);hA(e,(function(e){Uw(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var TB=ZS.UNSUPPORTED_Y,_B=Math.min,PB=[].push,jB=ow(/./.exec),NB=ow(PB),IB=ow("".slice);function LB(e){Promise.resolve().then(e)}function RB(e,t){return Pf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Mf.isVoid(t,e),u="";a||(u=i.map((function(e){return RB(e,t)})).join(""));var s=(tk[r]||nk)(e,u,t),l="";if(l="string"==typeof s?s:s.html||"",a||ek.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=MO.getParentsNodes(t,e).some((function(e){return"pre"===MO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=MO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return ek.forEach((function(t){return r=t(e,r)})),r}(e,t)}function MB(e){return"w-e-element-"+e}Ex("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=iC(aw(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!OC(e))return Uw(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=Uw(px,f,r))&&!((a=f.lastIndex)>c&&(NB(s,IB(r,c,i.index)),i.length>1&&i.index<r.length&&mx(PB,s,nA(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&jB(f,"")||NB(s,""):NB(s,IB(r,c)),s.length>o?nA(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Uw(t,this,e,n)}:t,[function(t,n){var o=aw(this),i=null==t?void 0:Jw(t,e);return i?Uw(i,t,o,n):Uw(r,iC(o),t,n)},function(e,o){var i=Hw(this),a=iC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=dk(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(TB?"g":"y"),f=new s(TB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===_x(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=TB?0:h;var v,y=_x(f,TB?IB(a,h):a);if(null===y||(v=_B(JE(f.lastIndex+(TB?h:0)),a.length))===p)h=Cx(a,h,l);else{if(NB(g,IB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(NB(g,y[m]),g.length===d)return g;h=p=v}}return NB(g,IB(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]})),TB);var zB=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},$B=function(e,t,n){var r=MO.toDOMRange(e,t).getBoundingClientRect(),o=MO.toDOMRange(e,n).getBoundingClientRect();return zB(r,o)&&zB(o,r)},HB=["span","b","strong","i","em","s","strike","u","font","sub","sup"],VB=[],UB=[],WB={},GB=iE.f,qB=LD.f,KB=xE.enforce,YB=Tw("match"),XB=Yb.RegExp,ZB=XB.prototype,JB=Yb.SyntaxError,QB=ow(aC),eF=ow(ZB.exec),tF=ow("".charAt),nF=ow("".replace),rF=ow("".indexOf),oF=ow("".slice),iF=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,aF=/a/g,uF=/a/g,sF=new XB(aF)!==aF,lF=ZS.MISSED_STICKY,cF=ZS.UNSUPPORTED_Y,fF=jw&&(!sF||lF||QS||tx||Sw((function(){return uF[YB]=!1,XB(aF)!=aF||XB(uF)==uF||"/a/i"!=XB(aF,"i")})));if(KD("RegExp",fF)){for(var dF=function(e,t){var n,r,o,i,a,u,s=Ww(ZB,this),l=OC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===dF)return e;if((l||Ww(ZB,e))&&(e=e.source,c&&(t="flags"in d?d.flags:QB(d))),e=void 0===e?"":iC(e),t=void 0===t?"":iC(t),d=e,QS&&"dotAll"in aF&&(r=!!t&&rF(t,"s")>-1)&&(t=nF(t,/s/g,"")),n=t,lF&&"sticky"in aF&&(o=!!t&&rF(t,"y")>-1)&&cF&&(t=nF(t,/y/g,"")),tx&&(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=tF(e,r)))t+=tF(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:eF(iF,oF(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||cw(a,c))throw new JB("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=yA(XB(e,t),s?this:ZB,dF),(r||o||f.length)&&(u=KB(a),r&&(u.dotAll=!0,u.raw=dF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=tF(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+tF(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{uE(a,"source",""===d?"(?:)":d)}catch(p){}return a},pF=function(e){e in dF||GB(dF,e,{configurable:!0,get:function(){return XB[e]},set:function(t){XB[e]=t}})},hF=qB(XB),gF=0;hF.length>gF;)pF(hF[gF++]);ZB.constructor=dF,dF.prototype=ZB,FE(Yb,"RegExp",dF)}lk("RegExp");var vF=new RegExp(String.fromCharCode(160),"g");function yF(e){return e.replace(vF," ")}function mF(e,t){var n=e.length;if(n){var r=e[n-1];if(ld.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function bF(e,t,n){return{type:"paragraph",children:[{text:Hp(e).text().replace(/\s+/gm," ")}]}}function wF(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!==bO.ELEMENT_NODE)if(e.nodeType!==bO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=yF(r),mF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(mF(n,"\n")||n.push({text:"\n"}));var o=DF(Hp(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 WB)if(e[0].matches(t))return WB[t];return bF}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){Mf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),UB.forEach((function(n){r=n(e[0],r,t)})))})),r}function EF(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=yF(n=n.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"'))};return UB.forEach((function(n){r=n(e[0],r,t)})),r}function DF(e,t){VB.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Hp(r(e[0])))}));var n=TO(e);return"span"===n?e.attr("data-w-e-type")?wF(e,t):EF(e,t):"code"===n?"pre"===TO(e.parent())?wF(e,t):EF(e,t):HB.includes(n)?EF(e,t):wF(e,t)}function CF(e,t,n){var r=Hp(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=Hp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=DF(Hp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var xF=iE.f,AF=cA.fastKey,OF=xE.set,kF=xE.getterFor,BF={getConstructor:function(e,t,n,r){var o=e((function(e,o){vA(e,i),OF(e,{type:t,index:EC(null),first:void 0,last:void 0,size:0}),jw||(e.size=0),null!=o&&hA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=kF(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=AF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),jw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=AF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Qx(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,jw?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),jw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=UE(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)}}),Qx(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)}}),jw&&xF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=kF(t),i=kF(r);FS(e,t,(function(e,t){OF(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),lk(t)}};mA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),BF);var FF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function TF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Od.insertNodes(e,t,{mode:"highest"})}var _F=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=Gx(nd.edges(n),2),o=r[0],i=r[1],a=Mf.void(t,{at:o.path}),u=Mf.void(t,{at:i.path});if(!nd.isCollapsed(n)||a){var s=MO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=Gx(u,1)[0],d=s.cloneRange(),p=MO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),xO(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",BO(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=Wx(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Od.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},PF=function(e){return null!=e},jF={object:!0,function:!0,undefined:!0},NF=/^\s*class[\s{/}]/,IF=Function.prototype.toString,LF=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(!PF(t=e)||!hasOwnProperty.call(jF,typeof t))return!1;var t;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}(e)}(e)&&!NF.test(IF.call(e))},RF=function(e){return null!=e},MF=Object.keys,zF=function(){try{return Object.keys("primitive"),!0}catch(zl){return!1}}()?Object.keys:function(e){return MF(RF(e)?Object(e):e)},$F=function(e){if(!RF(e))throw new TypeError("Cannot use null or undefined");return e},HF=Math.max,VF=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=HF(arguments.length,2);for(e=Object($F(e)),o=function(r){try{e[r]=t[r]}catch(o){n||(n=o)}},r=1;r<i;++r)zF(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},UF=Array.prototype.forEach,WF=Object.create,GF=function(e,t){var n;for(n in e)t[n]=e[n]},qF=function(e){var t=WF(null);return UF.call(arguments,(function(e){RF(e)&&GF(Object(e),t)})),t},KF="razdwatrzy",YF=String.prototype.indexOf,XF="function"==typeof KF.contains&&!0===KF.contains("dwa")&&!1===KF.contains("foo")?String.prototype.contains:function(e){return YF.call(this,e,arguments[1])>-1},ZF=Wb((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],PF(e)?(n=XF.call(e,"c"),r=XF.call(e,"e"),o=XF.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?VF(qF(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],PF(t)?LF(t)?PF(n)?LF(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,PF(e)?(r=XF.call(e,"c"),o=XF.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?VF(qF(i),a):a}})),JF=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},QF=Wb((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:ZF(n),once:ZF(r),off:ZF(o),emit:ZF(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function eT(e){var t=hO.get(e);return null==t&&(t=QF(),hO.set(e,t)),t}var tT=new WeakMap;function nT(e,t){var n=tT.get(e);null==n&&(n=new Set,tT.set(e,n)),n.add(t)}function rT(e){return tT.get(e)||new Set}function oT(e){tT.set(e,new Set)}function iT(e){var t=MO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function aT(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=iT(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=MO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function uT(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Pf.isElement(t)&&e.isVoid(t),i=Pf.isElement(t)&&e.isInline(t),a=lO.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(mO.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=iT(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 sT(e,t){LB((function(){var n=iT(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 lT=WS("slice"),cT=Tw("species"),fT=Yb.Array,dT=Math.max;XD({target:"Array",proto:!0,forced:!lT},{slice:function(e,t){var n,r,o,i=SD(this),a=QE(i),u=BD(e,a),s=BD(void 0===t?a:t,a);if(eD(i)&&(n=i.constructor,(sD(n)&&(n===fT||eD(n.prototype))||Nw(n)&&null===(n=n[cT]))&&(n=void 0),n===fT||void 0===n))return pk(i,u,s);for(r=new(void 0===n?fT:n)(dT(s-u,0)),o=0;u<s;u++,o++)u in i&&$C(r,o,i[u]);return r.length=o,r}});var pT=AD.f,hT=ow("".startsWith),gT=ow("".slice),vT=Math.min,yT=TC("startsWith"),mT=!yT&&!!function(){var e=pT(String.prototype,"startsWith");return e&&!e.writable}();XD({target:"String",proto:!0,forced:!mT&&!yT},{startsWith:function(e){var t=iC(aw(this));BC(e);var n=JE(vT(arguments.length>1?arguments[1]:void 0,t.length)),r=iC(e);return hT?hT(t,r,n):gT(t,n,n+r.length)===r}});var bT=Object.assign,wT=Object.defineProperty,ET=ow([].concat),DT=!bT||Sw((function(){if(jw&&1!==bT({b:1},bT(wT({},"a",{enumerable:!0,get:function(){wT(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!=bT({},e)[n]||ZD(bT({},t)).join("")!=r}))?function(e,t){for(var n=sw(e),r=arguments.length,o=1,i=RD.f,a=CD.f;r>o;)for(var u,s=qE(arguments[o++]),l=i?ET(ZD(s),i(s)):ZD(s),c=l.length,f=0;c>f;)u=l[f++],jw&&!Uw(a,s,u)||(n[u]=s[u]);return n}:bT;XD({target:"Object",stat:!0,forced:Object.assign!==DT},{assign:DT});var CT=["props","attrs","style","dataset","on","hook"];function ST(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(!CT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=yv(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&&ST(e)}))}var xT=[],AT={};function OT(e,t,n){return Tg(n.isInline(e)?"span":"div",null,t)}function kT(e,t){return void 0===t&&(t=!1),Tg("span",{"data-slate-string":!0},t?e+"\n":e)}function BT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Tg("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Tg("br",null):null)}function FT(e,t,n,r){return oO.set(e,t),iO.set(e,n),Pf.isElement(e)?function(e,t){var n,r=MO.findKey(t,e),o=t.isInline(e),i=Mf.isVoid(t,e),a=MB(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]||OT;n=i?null:c.map((function(n,r){return FT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=Gx(Uf.texts(e),1),g=Gx(h[0],1)[0],v=Tg(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},FT(g,0,e,t));d=Tg(p,{style:{position:"relative"}},d,v),oO.set(g,0),iO.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return xT.forEach((function(r){n=r(e,t)})),n}(e,d)),LB((function(){var t=AO(a);null!=t&&(sO.set(r,t),lO.set(e,t),uO.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=MO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=MO.findPath(n,e),a=o([e,i]),u=ld.decorations(e,a),s=u.map((function(r,o){var i,a,s=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=MO.findPath(o,n),u=Kf.parent(a);if(Mf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?BT(Uf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Mf.string(o,u)?""===i?BT():t&&"\n"===i.slice(-1)?kT(i,!0):kT(i):BT(0,!0)}(r,o===u.length-1,e,t,n);return i=r,a=s,xT.forEach((function(e){a=e(i,a)})),Tg("span",{"data-slate-leaf":!0},s=a)})),l="w-e-text-"+r.id,c=Tg("span",{"data-slate-node":"text",id:l,key:r.id},s);return LB((function(){var t=AO(l);null!=t&&(sO.set(r,t),lO.set(e,t),uO.set(t,e))})),c}(e,n,r)}function TT(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),fg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=FT(e,n,t,t);return ST(r),r}));var c=tO.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Hp('<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=lg([gg,Sg,Bg,mg,Dg,pg]))(n,s),tO.set(e,!1),nO.set(e,p)}else{var d=rO.get(e),p=nO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=AO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=EO(n);h&&fO.set(t,h)}aO.set(t,n),lO.set(t,n),uO.set(n,t),rO.set(e,s)}}function _T(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function PT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function jT(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 NT(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 IT(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(!_T(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;_T(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&jT(f)&&!jT(document.documentElement)||null!=f&&jT(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?NT(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:NT(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?NT(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:NT(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 LT(e){return e===Object(e)&&0!==Object.keys(e).length}function RT(e,t){return CO(t)&&MO.hasDOMNode(e,t,{editable:!0})}function MT(e,t){if(e.getConfig().readOnly)return!1;var n=zT(e,t)&&MO.toSlateNode(e,t);return Mf.isVoid(e,n)}function zT(e,t){return CO(t)&&MO.hasDOMNode(e,t)}function $T(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=MO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=aO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=MO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&nd.equals(l,r)){var c=!0;if(nd.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||MO.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&MO.toDOMRange(t,r);if(g){nd.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(LT(t)&&"function"==typeof t.behavior)return t.behavior(r?[]:IT(e,t));if(!r){var o=!1===(n=t)?{block:"end",inline:"nearest"}:LT(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)}))}(IT(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&&PO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=MO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var HT=new WeakMap,VT=new WeakMap,UT={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"},WT={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"},GT={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},qT=function(e){var t=UT[e],n=WT[e],r=GT[e],o=t&&Ov(t),i=n&&Ov(n),a=r&&Ov(r);return function(e){return!(!o||!o(e))||!!(_O&&i&&i(e))||!(_O||!a||!a(e))}},KT={isBold:qT("bold"),isCompose:qT("compose"),isMoveBackward:qT("moveBackward"),isMoveForward:qT("moveForward"),isDeleteBackward:qT("deleteBackward"),isDeleteForward:qT("deleteForward"),isDeleteLineBackward:qT("deleteLineBackward"),isDeleteLineForward:qT("deleteLineForward"),isDeleteWordBackward:qT("deleteWordBackward"),isDeleteWordForward:qT("deleteWordForward"),isExtendBackward:qT("extendBackward"),isExtendForward:qT("extendForward"),isExtendLineBackward:qT("extendLineBackward"),isExtendLineForward:qT("extendLineForward"),isItalic:qT("italic"),isMoveLineBackward:qT("moveLineBackward"),isMoveLineForward:qT("moveLineForward"),isMoveWordBackward:qT("moveWordBackward"),isMoveWordForward:qT("moveWordForward"),isRedo:qT("redo"),isSplitBlock:qT("splitBlock"),isTransposeCharacter:qT("transposeCharacter"),isUndo:qT("undo"),isTab:qT("tab"),isSelectAll:qT("selectAll")};function YT(e){e.preventDefault()}var XT={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(RO&&!o&&RT(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=Gx(r.getTargetRanges(),1)[0];if(s){var l=MO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&nd.equals(i,l)||Od.select(n,l)}}if(i&&nd.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Mf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Mf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Mf.deleteForward(n);break;case"deleteContentBackward":Mf.deleteBackward(n);break;case"deleteEntireSoftLine":Mf.deleteBackward(n,{unit:"line"}),Mf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Mf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Mf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Mf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Mf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Mf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Mf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Mf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!gO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Mf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&RT(n,r.target)){var a=MO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===MO.toDOMNode(n,n)||DO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&CO(u)&&MO.hasDOMNode(n,u)){var s=MO.toSlateNode(n,u);if(Pf.isElement(s)&&!n.isVoid(s))return}if(jO){var l=a.getSelection();null==l||l.removeAllRanges()}dO.delete(n)}}}},focus:function(e,t,n){var r=MO.toDOMNode(n,n),o=MO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,PO&&e.target!==r?r.focus():dO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&zT(n,e.target)&&CO(e.target)){var r=MO.toSlateNode(n,e.target),o=MO.findPath(n,r);if(Mf.hasPath(n,o)&&Uf.get(n,o)===r){var i=Mf.start(n,o),a=Mf.end(n,o),u=Mf.void(n,{at:i}),s=Mf.void(n,{at:a});if(u&&s&&Kf.equals(u[1],s[1])){var l=Mf.range(n,i);Od.select(n,l)}}}},compositionstart:function(e,t,n){if(RT(n,e.target)){var r=n.selection;if(r&&nd.isExpanded(r)&&(Mf.deleteFragment(n),Promise.resolve().then((function(){$T(t,n,!0)}))),r&&nd.isCollapsed(r)){var o=MO.toDOMRange(n,r).startContainer,i=o.textContent||"";HT.set(n,i),VT.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(RT(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(LO||PO)&&MO.cleanExposedTexNodeInSelectionBlock(n);for(var i=nd.isBackward(o)?o.focus:o.anchor,a=Gx(Mf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Gx(Mf.node(n,i.path.slice(0,u+1)),1)[0];if(Pf.isElement(s)&&((jO||PO)&&"link"===s.type||"code"===s.type)){MO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=MO.getLeftLengthOfMaxLength(n);c<l.length?(MO.toDOMRange(n,o).startContainer.textContent=HT.get(n)||"",c>0&&Mf.insertText(n,l.slice(0,c)),t.changeViewState()):Mf.insertText(n,l)}else Mf.insertText(n,l);jO||setTimeout((function(){var e=n.selection;if(null!=e){var t=VT.get(n);null!=t&&MO.toDOMRange(n,e).startContainer!==t&&(t.textContent=HT.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){RT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&RT(n,r.target)){if(function(e,t){var n=KA.get(e),r=n&&n.getMenus(),o=XA.get(e),i=o&&o.getMenus(),a=Ux(Ux({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Av(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),KT.isTab(r))return YT(r),void n.handleTab();if(KT.isRedo(r))return YT(r),void("function"==typeof n.redo&&n.redo());if(KT.isUndo(r))return YT(r),void("function"==typeof n.undo&&n.undo());if(KT.isMoveLineBackward(r))return YT(r),void Od.move(n,{unit:"line",reverse:!0});if(KT.isMoveLineForward(r))return YT(r),void Od.move(n,{unit:"line"});if(KT.isExtendLineBackward(r))return YT(r),void Od.move(n,{unit:"line",edge:"focus",reverse:!0});if(KT.isExtendLineForward(r))return YT(r),void Od.move(n,{unit:"line",edge:"focus"});if(KT.isMoveBackward(r))return YT(r),void(o&&nd.isCollapsed(o)?Od.move(n,{reverse:!0}):Od.collapse(n,{edge:"start"}));if(KT.isMoveForward(r))return YT(r),void(o&&nd.isCollapsed(o)?Od.move(n):Od.collapse(n,{edge:"end"}));if(KT.isMoveWordBackward(r))return YT(r),o&&nd.isExpanded(o)&&Od.collapse(n,{edge:"focus"}),void Od.move(n,{unit:"word",reverse:!0});if(KT.isMoveWordForward(r))return YT(r),o&&nd.isExpanded(o)&&Od.collapse(n,{edge:"focus"}),void Od.move(n,{unit:"word"});if(KT.isSelectAll(r))return YT(r),void n.selectAll();if(RO){if((LO||jO)&&o&&(KT.isDeleteBackward(r)||KT.isDeleteForward(r))&&nd.isCollapsed(o)){var i=Uf.parent(n,o.anchor.path);if(Pf.isElement(i)&&Mf.isVoid(n,i)&&Mf.isInline(n,i))return r.preventDefault(),void Od.delete(n,{unit:"block"})}}else{if(KT.isBold(r)||KT.isItalic(r)||KT.isTransposeCharacter(r))return void YT(r);if(KT.isSplitBlock(r))return YT(r),void Mf.insertBreak(n);if(KT.isDeleteBackward(r))return YT(r),void(o&&nd.isExpanded(o)?Mf.deleteFragment(n,{direction:"backward"}):Mf.deleteBackward(n));if(KT.isDeleteForward(r))return YT(r),void(o&&nd.isExpanded(o)?Mf.deleteFragment(n,{direction:"forward"}):Mf.deleteForward(n));if(KT.isDeleteLineBackward(r))return YT(r),void(o&&nd.isExpanded(o)?Mf.deleteFragment(n,{direction:"backward"}):Mf.deleteBackward(n,{unit:"line"}));if(KT.isDeleteLineForward(r))return YT(r),void(o&&nd.isExpanded(o)?Mf.deleteFragment(n,{direction:"forward"}):Mf.deleteForward(n,{unit:"line"}));if(KT.isDeleteWordBackward(r))return YT(r),void(o&&nd.isExpanded(o)?Mf.deleteFragment(n,{direction:"backward"}):Mf.deleteBackward(n,{unit:"word"}));if(KT.isDeleteWordForward(r))return YT(r),void(o&&nd.isExpanded(o)?Mf.deleteFragment(n,{direction:"forward"}):Mf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!RO&&!n.getConfig().readOnly&&RT(n,e.target)){e.preventDefault();var r=e.key;Mf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(RT(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&&RT(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(nd.isExpanded(o))Mf.deleteFragment(n);else{var a=Uf.parent(n,o.anchor.path);Mf.isVoid(n,a)&&Od.delete(n)}}},paste:function(e,t,n){gO.set(n,!0);var r,o=e;if(!n.getConfig().readOnly&&RT(n,o.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,o))return void gO.set(n,!1);if(!RO||(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(zT(n,e.target)){var r=MO.toSlateNode(n,e.target);Mf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(zT(n,r.target)&&!n.getConfig().readOnly){var o=MO.toSlateNode(n,r.target),i=MO.findPath(n,o);if(Mf.isVoid(n,o)||Mf.void(n,{at:i,voids:!0})){var a=Mf.range(n,i);Od.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&&zT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&zT(n,r.target)&&null!=o&&!(RO&&jO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=MO.findEventRange(n,r);Od.select(n,a),t.isDraggingInternally&&(i&&Od.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},ZT=1,JT=function(){function e(e){var t=this;this.id=ZT++,this.$textArea=null,this.$progressBar=Hp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Hp('<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=Jh((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=MO.findDocumentOrShadowRoot(t),a=i.activeElement,u=MO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,dO.set(t,!0)):dO.delete(t),!s)return Od.deselect(t);var l=s.anchorNode,c=s.focusNode,f=RT(t,l)||MT(t,l),d=RT(t,c)||MT(t,c);if(f&&d){var p=MO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Od.select(t,p)}else Od.deselect(t)}}(t,e)}),100);var n=Hp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Hp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Hp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,LB((function(){var e=t.editorInstance,n=MO.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=GA.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&&(Ih(XT,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Jh((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-MO.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;TT(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=Hp('<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),LB((function(){$T(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function QT(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&&QT(t)}function e_(){return Hp('<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 t_(){return Hp('<div class="w-e-bar-divider"></div>')}function n_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=_O?"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")}}}Ex("match",(function(e,t,n){return[function(t){var n=aw(this),r=null==t?void 0:Jw(t,e);return r?Uw(r,t,n):new RegExp(t)[e](iC(n))},function(e){var r=Hw(this),o=iC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return _x(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=_x(r,o));){var c=iC(u[0]);s[l]=c,""===c&&(r.lastIndex=Cx(o,JE(r.lastIndex),a)),l++}return 0===l?null:s}]}));var r_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Hp('<div class="w-e-bar-item"></div>'),this.$button=Hp('<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=Hp(c);QT(d),f.append(d)}else f.text(a);n_(f,c,a,s,n),n&&c&&f.append(Hp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),LB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),v_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=v_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=v_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=v_(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}(),o_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return Vx(t,e),t.prototype.onButtonClick=function(){},t}(r_),i_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=JA.get(e);null==t&&(t=new Set,JA.set(e,t)),t.add(this),QA.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=QA.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=QA.get(this);e&&e.emit("modalOrPanelHide")}},e}(),a_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Hp('<div class="w-e-drop-panel"></div>'),n}return Vx(t,e),t.prototype.genSelfElem=function(){return null},t}(i_),u_=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=e_();o.$button.append(i)}return o}return Vx(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=v_(this);if(null==this.dropPanel){var n=new a_(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}(r_),s_=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Hp('<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 Vx(t,e),t.prototype.genSelfElem=function(){var e=this,t=Hp('<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=QA.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}(i_);function l_(e,t,n){var r=Hp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Hp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function c_(e,t){var n=Hp('<div class="button-container"></div>'),r=Hp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var f_=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Hp("body"),o.modal=null,o.menu=n,o}return Vx(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=v_(this),t=this.menu.getModalPositionNode(e);return Pf.isElement(t)?uT(e,t,"modal"):aT(e)},t.prototype.handleModal=function(){var e=v_(this),t=this.menu;if(null==this.modal){var n=new s_(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=v_(this),r=this.menu;if(null!=r.getModalContentElem){var o=MO.getTextarea(n),i=MO.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||sT(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(r_),d_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Hp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return Vx(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Hp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Hp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Hp('<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(Hp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(i_),p_=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Hp('<div class="w-e-bar-item"></div>'),this.$button=Hp('<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),n_(f,s,i,c,n),this.$elem.append(f),this.menu=t,LB((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),v_(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=v_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new d_(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=Hp(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=v_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=v_(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=e_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=v_(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}(),h_=function(){function e(e){this.$elem=Hp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Hp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Hp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Hp(n);QT(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=e_();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){Hp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),g_=new WeakMap;function v_(e){var t=ZA.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function y_(e,t,n){void 0===n&&(n=!1);var r=g_.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new u_(e,t,n):a?new f_(e,t,n):new o_(e,t,n)}if("select"===o&&(r=new p_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return g_.set(t,r),r}function m_(e,t){var n=e.selection;return null!=n&&!nd.isCollapsed(n)&&!MO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!ld.isText(t)}var b_=function(){function e(){var e=this;this.$elem=Hp('<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=Vv((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&&Pf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),LB((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),MO.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;LB((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=t_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=HO[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=y_(e,r);this.hoverbarItems.push(i),ZA.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Pf.isElement(e)){var r=uT(t,e,"bar");return n.css(r),void sT(t,n)}if(ld.isText(e))return r=aT(t),n.css(r),void sT(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return MO.checkNodeType(t,o)},c=Gx(Mf.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=YA.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=m_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=MO.findPath(null,e),r=MO.findPath(null,t);return Kf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function w_(e,t,n,r){if(oO.set(e,t),iO.set(e,n),Pf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return w_(t,n,e,r)})),Mf.isVoid(r,e)){var i=Gx(Uf.texts(e),1),a=Gx(i[0],1)[0];oO.set(a,0),iO.set(a,e)}}}function E_(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];rC.withoutSaving(t,(()=>{Mf.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];rC.withoutSaving(t,(()=>{Mf.withoutNormalizing(t,(()=>{var e=r.map(qf.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=rC.isSaving(t),d=rC.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||!Kf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Kf.equals(e.path,t.path)))(e,l)||c)),s&&d)c&&s.pop(),s.push(e);else{var p=[e];u.push(p)}for(;u.length>100;)u.shift();(e=>"set_selection"!==e.type)(e)&&(a.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=MO.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=MO.getLeftLengthOfMaxLength(t);n<=0||n<Uf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(1!==e.length)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(MO.getLeftLengthOfMaxLength(t)<Uf.string(n).length)return;o(e)}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=MO.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e,r<Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===bO.TEXT_NODE?e+(t.textContent||""):n===bO.ELEMENT_NODE?FF.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=eT(t);if(r.on(e,n),"destroyed"===e&&nT(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),nT(t,o)}},t.once=function(e,n){eT(t).once(e,n)},t.off=function(e,n){eT(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=eT(t);o.emit.apply(o,qx([e],Gx(n))),"destroyed"===e&&(rT(t).forEach((function(e){return o.off("destroyed",e)})),oT(t))},t}(function(e){var t=e;return t.select=function(e){Od.select(t,e)},t.deselect=function(){var n=t.selection,r=MO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Od.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Od.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=pO.get(t);null!=e&&(t.focus(),Od.select(t,e))},t.getSelectionPosition=function(){return aT(t)},t.getNodePosition=function(e){return uT(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=Gx(nd.edges(e),2),r=n[0],o=n[1],i=Gx(Mf.edges(t,[]),2),a=i[0],u=i[1];return!(!Jf.equals(r,a)||!Jf.equals(o,u))},t.selectAll=function(){var e=Mf.start(t,[]),n=Mf.end(t,[]);Od.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=Wx(Mf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=Gx(p.value,2),g=h[0],v=h[1],y=MO.findKey(t,g);f.push([v,y])}}catch(O){n={error:O}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=Wx(Mf.levels(t,{at:Kf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=Gx(b.value,2);g=w[0],v=w[1],y=MO.findKey(t,g),f.push([v,y])}}catch(O){i={error:O}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var E=Wx(Mf.levels(t,{at:Kf.common(Kf.parent(e.path),Kf.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var C=Gx(D.value,2);g=C[0],v=C[1],y=MO.findKey(t,g),f.push([v,y])}}catch(O){u={error:O}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var S=Wx(f),x=S.next();!x.done;x=S.next()){var A=Gx(x.value,2);v=A[0],y=A[1],g=Gx(Mf.node(t,v),1)[0],cO.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&&nd.isCollapsed(e.selection)){var r=Mf.above(e,{match:function(t){return Mf.isBlock(e,t)},at:e.selection});if(r){var o=Gx(r,2)[1],a=Mf.range(e,o,e.selection.anchor),u=function(e,t){var n=Mf.range(e,nd.end(t)),r=Array.from(Mf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if($B(e,Mf.range(e,r[o]),n))return Mf.range(e,r[o],n);if(r.length<2)return Mf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)$B(e,Mf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Mf.range(e,r[i],n)}(t,a);nd.isCollapsed(u)||Od.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&pO.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 RB(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Uf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Mf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Mf.nodes(t,{at:[],universal:!0});try{for(var u=Wx(a),s=u.next();!s.done;s=u.next()){var l=Gx(s.value,1)[0];if(Pf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=MB(MO.findKey(t,l).id);i.push(Ux(Ux({},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(Pf.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(ld.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Od.delete(t,{at:{anchor:Mf.start(t,[]),focus:Mf.end(t,[])}}),0===t.children.length&&Od.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return MO.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(0!==(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===bO.TEXT_NODE||t===bO.ELEMENT_NODE&&!FF.has(n.toLowerCase())}))).length){var i=t.selection;if(null!=i){var a=null;MO.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==bO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(HB.includes(r.toLowerCase()))s=!0;else for(var l in WB)if(a.matches(l)){s=!0;break}if(s){var c=DF(Hp(a),t);return Array.isArray(c)?(c.forEach((function(e){return TF(t,e)})),u++):(TF(t,c),u++),void(MO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;MO.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&MO.isEmptyPath(t,a)&&Od.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(Od.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(Mf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in HO)e.push(t);return e},t.getConfig=function(){var e=eO.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=_F((()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Mf.pathRefs(e))Yf.transform(n,t);for(var r of Mf.pointRefs(e))Qf.transform(r,t);for(var o of Mf.rangeRefs(e))rd.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=Kc.get(e)||[],l=nf(t);for(var c of s)u(Kf.transform(c,t));for(var f of l)u(f);Kc.set(e,a),Od.transform(e,t),e.operations.push(t),Mf.normalize(e),"set_selection"===t.type&&(e.marks=null),Yc.get(e)||(Yc.set(e,!0),Promise.resolve().then((()=>{Yc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(nd.isExpanded(r))Od.setNodes(e,{[t]:n},{match:ld.isText,split:!0});else{var o=tf(tf({},Mf.marks(e)||{}),{},{[t]:n});e.marks=o,Yc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&nd.isCollapsed(n)&&Od.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&nd.isCollapsed(n)&&Od.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&nd.isExpanded(n)&&Od.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Uf.fragment(e,t):[]},insertBreak:()=>{Od.splitNodes(e,{always:!0})},insertFragment:t=>{Od.insertFragment(e,t)},insertNode:t=>{Od.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=tf({text:t},r);Od.insertNodes(e,o)}else Od.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!ld.isText(n))if(Pf.isElement(n)&&0===n.children.length)Od.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Mf.isEditor(n)&&Pf.isElement(n)&&(e.isInline(n)||0===n.children.length||ld.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Uf.get(e,r);if(!ld.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(ld.isText(s)||Pf.isElement(s)&&e.isInline(s))!==o?(Od.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Pf.isElement(s)?e.isInline(s)&&(null!=l&&ld.isText(l)?c&&(Od.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Od.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&ld.isText(l)&&(ld.equals(s,l,{loose:!0})?(Od.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Od.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Od.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(nd.isExpanded(n))Od.unsetNodes(e,t,{match:ld.isText,split:!0});else{var r=tf({},Mf.marks(e)||{});delete r[t],e.marks=r,Yc.get(e)||e.onChange()}}};return e})()),t.id="wangEditor-"+zO++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(MO.toDOMNode(t,t).focus({preventScroll:!0}),dO.set(t,!0),e){var n=Mf.end(t,[]);Od.select(t,n)}else{var r=pO.get(t);r?Od.select(t,r):Od.select(t,Mf.start(t,[]))}},t.isFocused=function(){return!!dO.get(t)},t.blur=function(){MO.toDOMNode(t,t).blur(),Od.deselect(t),dO.set(t,!1)},t.updateView=function(){MO.getTextarea(t).changeViewState();var e=MO.getToolbar(t);e&&e.changeToolbarState();var n=MO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=MO.getTextarea(t);e.destroy(),WA.delete(t),GA.delete(e);var n=MO.getToolbar(t);n&&(n.destroy(),KA.delete(t),qA.delete(n));var r=MO.getHoverbar(t);r&&(r.destroy(),XA.delete(t),YA.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=Hp("#"+e);if(0!==r.length){var o=r[0];if(!MO.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=MO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||MO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=JA.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return MO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=MO.getToolbar(t);n&&(e=n.$box);var r=MO.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=MO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return MO.getTextarea(t).$textAreaContainer[0]},t)))))));if(r&&function(e,t){return CF(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=Uv($O),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Ih(t,(function(e,t){n[t]=Ux(Ux({},e),o[t]||{})})),delete e.MENU_CONF,Ux({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);eO.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:""}]}]),MO.normalizeContent(c),r){var h=new JT(r);WA.set(c,h),GA.set(h,c),h.changeViewState(),LB((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 b_,YA.set(g,c),XA.set(c,g)),c.on("change",(function(){c.hidePanelOrModal()})),c.on("scroll",(function(){c.hidePanelOrModal()}))}else c.children.forEach((function(e,t){return w_(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)})),LB((function(){return c.emit("created")})),c}var D_=WS("splice"),C_=Yb.TypeError,S_=Math.max,x_=Math.min;XD({target:"Array",proto:!0,forced:!D_},{splice:function(e,t){var n,r,o,i,a,u,s=sw(this),l=QE(s),c=BD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=x_(S_(XE(t),0),l-c)),l+n-r>9007199254740991)throw C_("Maximum allowed length exceeded");for(o=fD(s,r),i=0;i<r;i++)(a=c+i)in s&&$C(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=Hp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Vv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Hp(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),LB((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=Uv(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=t_();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 h_(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 h_,o=this.menus,i=o[e];if(null==i){var a=HO[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=y_(e,i,r);this.toolbarItems.push(u),ZA.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=qA.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}(),O_=BE.EXISTS,k_=iE.f,B_=Function.prototype,F_=ow(B_.toString),T_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,__=ow(T_.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=Gx(e.split("#"),2),r=n[0],o=n[1],i=[];Ih(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 mm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(Vb,{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 j_(e){return(j_="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 N_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I_(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){N_(e,t,n[t])}))}return e}function L_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R_(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 M_(e,t,n){return t&&R_(e.prototype,t),n&&R_(e,n),e}function z_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $_(e,t){if(t&&("object"===j_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return z_(e)}function H_(e){return(H_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V_(e,t){return(V_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U_(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&&V_(e,t)}jw&&!O_&&k_(B_,"name",{configurable:!0,get:function(){try{return __(T_,F_(this))[1]}catch(zl){return""}}});var W_={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)}},G_=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L_(this,e),this.init(t,n)}return M_(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||W_,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,I_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),q_=function(){function e(){L_(this,e),this.observers={}}return M_(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function K_(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Y_(e){return null==e?"":""+e}function X_(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function Z_(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 J_(e,t,n){var r=Z_(e,t,Object);r.obj[r.k]=n}function Q_(e,t){var n=Z_(e,t),r=n.obj,o=n.k;if(r)return r[o]}function eP(e,t,n){var r=Q_(e,n);return void 0!==r?r:Q_(t,n)}function tP(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]):tP(e[r],t[r],n):e[r]=t[r]);return e}function nP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function oP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return rP[e]})):e}var iP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function aP(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?aP(s,l,n):void 0}o=o[r[i]]}return o}}var uP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return L_(this,t),n=$_(this,H_(t).call(this)),iP&&q_.call(z_(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 U_(t,q_),M_(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=Q_(this.data,a);return u||!i||"string"!=typeof n?u:aP(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),J_(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=Q_(this.data,a)||{};r?tP(u,n,o):u=I_({},u,n),J_(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?I_({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),sP={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},lP={},cP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L_(this,t),n=$_(this,H_(t).call(this)),iP&&q_.call(z_(n)),X_(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,z_(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=G_.create("translator"),n}return U_(t,q_),M_(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"!==j_(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||u,v=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&E&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,I_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var D="[object Array]"===y,C=D?[]:{},S=D?v:g;for(var x in h)if(Object.prototype.hasOwnProperty.call(h,x)){var A="".concat(S).concat(i).concat(x);C[x]=this.translate(A,I_({},n,{joinArrays:!1,ns:s})),C[x]===A&&(C[x]=h[x])}h=C}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,k=!1,B=void 0!==n.count&&"string"!=typeof n.count,F=t.hasDefaultValue(n),T=B?this.pluralResolver.getSuffix(c,n.count):"",_=n["defaultValue".concat(T)]||n.defaultValue;!this.isValidLookup(h)&&F&&(O=!0,h=_),this.isValidLookup(h)||(k=!0,h=u);var P=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,j=P&&k?void 0:h,N=F&&_!==h&&this.options.updateMissing;if(k||O||N){if(this.logger.log(N?"updateKey":"missingKey",c,l,u,N?_:h),i){var I=this.resolve(u,I_({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&R&&R[0])for(var M=0;M<R.length;M++)L.push(R[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,N?r:j,N,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,N?r:j,N,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&B?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||_)}))})):z(L,u,_))}h=this.extendTranslation(h,e,n,p,r),k&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(k||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(I_({},n,{interpolation:I_({},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=I_({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=sP.handle(d,e,t,this.options&&this.options.postProcessPassResolved?I_({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,!lP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(lP["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function fP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var dP=function(){function e(t){L_(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=G_.create("languageUtils")}return M_(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]=fP(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]=fP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=fP(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}(),pP=[{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}],hP={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function gP(){var e={};return pP.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:hP[t.fc]}}))})),e}var vP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};L_(this,e),this.languageUtils=t,this.options=n,this.logger=G_.create("pluralResolver"),this.rules=gP()}return M_(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}(),yP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};L_(this,e),this.logger=G_.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return M_(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:oP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?nP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?nP(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?nP(t.nestingPrefix):t.nestingPrefixEscaped||nP("$t("),this.nestingSuffix=t.nestingSuffix?nP(t.nestingSuffix):t.nestingSuffixEscaped||nP(")"),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=eP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,I_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(eP(t,s,a),l,n,I_({},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=Y_(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=I_({},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=I_({},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=Y_(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,I_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),mP=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return L_(this,t),o=$_(this,H_(t).call(this)),iP&&q_.call(z_(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=G_.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return U_(t,q_),M_(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=Z_(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,I_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function bP(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===j_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===j_(e[2])||"object"===j_(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function wP(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 EP(){}var DP=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(L_(this,t),e=$_(this,H_(t).call(this)),iP&&q_.call(z_(e)),e.options=wP(n),e.services={},e.logger=G_,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),$_(e,z_(e));setTimeout((function(){e.init(n,r)}),0)}return e}return U_(t,q_),M_(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=I_({},bP(),this.options,wP(t)),this.format=this.options.interpolation.format,n||(n=EP),!this.options.isClone){this.modules.logger?G_.init(r(this.modules.logger),this.options):G_.init(null,this.options);var o=new dP(this.options);this.store=new uP(this.options.resources,this.options);var i=this.services;i.logger=G_,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new vP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new yP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new mP(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 cP(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=K_(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EP,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=K_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=EP),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&sP.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=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"!==j_(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=I_({},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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:EP,o=I_({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=I_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new cP(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}(),CP=new DP;function SP(e,t){CP.addResourceBundle(e,"translation",t,!0,!0)}CP.init({lng:"zh-CN",resources:{}});var xP=CP.t.bind(CP);SP("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),SP("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var AP=pa?{}.toString:function(){return"[object "+ya(this)+"]"};pa||ji(Object.prototype,"toString",AP,{unsafe:!0});var OP,kP=Array.isArray||function(e){return"Array"==no(e)},BP=function(){},FP=[],TP=po("Reflect","construct"),_P=/^\s*(?:class|function)\b/,PP=Qr(_P.exec),jP=!_P.exec(BP),NP=function(e){if(!lo(e))return!1;try{return TP(BP,FP,e),!0}catch(t){return!1}},IP=!TP||zr((function(){var e;return NP(NP.call)||!NP(Object)||!NP((function(){e=!0}))||e}))?function(e){if(!lo(e))return!1;switch(ya(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jP||!!PP(_P,vi(e))}:NP,LP=qo("species"),RP=Mr.Array,MP=function(e,t){return new(kP(n=e)&&(r=n.constructor,(IP(r)&&(r===RP||kP(r.prototype))||co(r)&&null===(r=r[LP]))&&(r=void 0)),void 0===r?RP:r)(0===t?0:t);var n,r},zP=Qr([].push),$P=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=Io(s),g=io(h),v=Bu(l,c),y=Vi(g),m=0,b=f||MP,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:zP(w,d)}else switch(e){case 4:return!1;case 7:zP(w,d)}return i?-1:r||o?o:w}},HP=[$P(0),$P(1),$P(2),$P(3),$P(4),$P(5),$P(6),$P(7)][0],VP=!!(OP=[].forEach)&&zr((function(){OP.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return HP(this,e,arguments.length>1?arguments[1]:void 0)},UP=function(e){if(e&&e.forEach!==VP)try{fi(e,"forEach",VP)}catch(t){e.forEach=VP}};for(var WP in Cs)Cs[WP]&&UP(Mr[WP]&&Mr[WP].prototype);UP(As),SP("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"}}),SP("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 GP={type:"paragraph",renderElem:function(e,t,n){return Tg("p",null,t)}},qP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function KP(e){var t={exports:{}};return e(t,t.exports),t.exports}var YP,XP,ZP=function(e){return e&&e.Math==Math&&e},JP=ZP("object"==typeof globalThis&&globalThis)||ZP("object"==typeof window&&window)||ZP("object"==typeof self&&self)||ZP("object"==typeof qP&&qP)||function(){return this}()||Function("return this")(),QP=function(e){try{return!!e()}catch(t){return!0}},ej=!QP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),tj=Function.prototype.call,nj=tj.bind?tj.bind(tj):function(){return tj.apply(tj,arguments)},rj={}.propertyIsEnumerable,oj=Object.getOwnPropertyDescriptor,ij=oj&&!rj.call({1:2},1)?function(e){var t=oj(this,e);return!!t&&t.enumerable}:rj,aj={f:ij},uj=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sj=Function.prototype,lj=sj.bind,cj=sj.call,fj=lj&&lj.bind(cj),dj=lj?function(e){return e&&fj(cj,e)}:function(e){return e&&function(){return cj.apply(e,arguments)}},pj=dj({}.toString),hj=dj("".slice),gj=function(e){return hj(pj(e),8,-1)},vj=JP.Object,yj=dj("".split),mj=QP((function(){return!vj("z").propertyIsEnumerable(0)}))?function(e){return"String"==gj(e)?yj(e,""):vj(e)}:vj,bj=JP.TypeError,wj=function(e){if(null==e)throw bj("Can't call method on "+e);return e},Ej=function(e){return mj(wj(e))},Dj=function(e){return"function"==typeof e},Cj=function(e){return"object"==typeof e?null!==e:Dj(e)},Sj=function(e){return Dj(e)?e:void 0},xj=function(e,t){return arguments.length<2?Sj(JP[e]):JP[e]&&JP[e][t]},Aj=dj({}.isPrototypeOf),Oj=xj("navigator","userAgent")||"",kj=JP.process,Bj=JP.Deno,Fj=kj&&kj.versions||Bj&&Bj.version,Tj=Fj&&Fj.v8;Tj&&(XP=(YP=Tj.split("."))[0]>0&&YP[0]<4?1:+(YP[0]+YP[1])),!XP&&Oj&&(!(YP=Oj.match(/Edge\/(\d+)/))||YP[1]>=74)&&(YP=Oj.match(/Chrome\/(\d+)/))&&(XP=+YP[1]);var _j=XP,Pj=!!Object.getOwnPropertySymbols&&!QP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_j&&_j<41})),jj=Pj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nj=JP.Object,Ij=jj?function(e){return"symbol"==typeof e}:function(e){var t=xj("Symbol");return Dj(t)&&Aj(t.prototype,Nj(e))},Lj=JP.String,Rj=function(e){try{return Lj(e)}catch(t){return"Object"}},Mj=JP.TypeError,zj=function(e){if(Dj(e))return e;throw Mj(Rj(e)+" is not a function")},$j=function(e,t){var n=e[t];return null==n?void 0:zj(n)},Hj=JP.TypeError,Vj=Object.defineProperty,Uj=function(e,t){try{Vj(JP,e,{value:t,configurable:!0,writable:!0})}catch(OP){JP[e]=t}return t},Wj=JP["__core-js_shared__"]||Uj("__core-js_shared__",{}),Gj=KP((function(e){(e.exports=function(e,t){return Wj[e]||(Wj[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),qj=JP.Object,Kj=function(e){return qj(wj(e))},Yj=dj({}.hasOwnProperty),Xj=Object.hasOwn||function(e,t){return Yj(Kj(e),t)},Zj=0,Jj=Math.random(),Qj=dj(1..toString),eN=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qj(++Zj+Jj,36)},tN=Gj("wks"),nN=JP.Symbol,rN=nN&&nN.for,oN=jj?nN:nN&&nN.withoutSetter||eN,iN=function(e){if(!Xj(tN,e)||!Pj&&"string"!=typeof tN[e]){var t="Symbol."+e;Pj&&Xj(nN,e)?tN[e]=nN[e]:tN[e]=jj&&rN?rN(t):oN(t)}return tN[e]},aN=JP.TypeError,uN=iN("toPrimitive"),sN=function(e){var t=function(e,t){if(!Cj(e)||Ij(e))return e;var n,r=$j(e,uN);if(r){if(void 0===t&&(t="default"),n=nj(r,e,t),!Cj(n)||Ij(n))return n;throw aN("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Dj(n=e.toString)&&!Cj(r=nj(n,e)))return r;if(Dj(n=e.valueOf)&&!Cj(r=nj(n,e)))return r;if("string"!==t&&Dj(n=e.toString)&&!Cj(r=nj(n,e)))return r;throw Hj("Can't convert object to primitive value")}(e,t)}(e,"string");return Ij(t)?t:t+""},lN=JP.document,cN=Cj(lN)&&Cj(lN.createElement),fN=function(e){return cN?lN.createElement(e):{}},dN=!ej&&!QP((function(){return 7!=Object.defineProperty(fN("div"),"a",{get:function(){return 7}}).a})),pN=Object.getOwnPropertyDescriptor,hN={f:ej?pN:function(e,t){if(e=Ej(e),t=sN(t),dN)try{return pN(e,t)}catch(n){}if(Xj(e,t))return uj(!nj(aj.f,e,t),e[t])}},gN=JP.String,vN=JP.TypeError,yN=function(e){if(Cj(e))return e;throw vN(gN(e)+" is not an object")},mN=JP.TypeError,bN=Object.defineProperty,wN={f:ej?bN:function(e,t,n){if(yN(e),t=sN(t),yN(n),dN)try{return bN(e,t,n)}catch(r){}if("get"in n||"set"in n)throw mN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},EN=ej?function(e,t,n){return wN.f(e,t,uj(1,n))}:function(e,t,n){return e[t]=n,e},DN=dj(Function.toString);Dj(Wj.inspectSource)||(Wj.inspectSource=function(e){return DN(e)});var CN,SN,xN,AN=Wj.inspectSource,ON=JP.WeakMap,kN=Dj(ON)&&/native code/.test(AN(ON)),BN=Gj("keys"),FN=function(e){return BN[e]||(BN[e]=eN(e))},TN={},_N=JP.TypeError,PN=JP.WeakMap;if(kN||Wj.state){var jN=Wj.state||(Wj.state=new PN),NN=dj(jN.get),IN=dj(jN.has),LN=dj(jN.set);CN=function(e,t){if(IN(jN,e))throw new _N("Object already initialized");return t.facade=e,LN(jN,e,t),t},SN=function(e){return NN(jN,e)||{}},xN=function(e){return IN(jN,e)}}else{var RN=FN("state");TN[RN]=!0,CN=function(e,t){if(Xj(e,RN))throw new _N("Object already initialized");return t.facade=e,EN(e,RN,t),t},SN=function(e){return Xj(e,RN)?e[RN]:{}},xN=function(e){return Xj(e,RN)}}var MN={set:CN,get:SN,has:xN,enforce:function(e){return xN(e)?SN(e):CN(e,{})},getterFor:function(e){return function(t){var n;if(!Cj(t)||(n=SN(t)).type!==e)throw _N("Incompatible receiver, "+e+" required");return n}}},zN=Function.prototype,$N=ej&&Object.getOwnPropertyDescriptor,HN=Xj(zN,"name"),VN={EXISTS:HN,PROPER:HN&&"something"===function(){}.name,CONFIGURABLE:HN&&(!ej||ej&&$N(zN,"name").configurable)},UN=KP((function(e){var t=VN.CONFIGURABLE,n=MN.get,r=MN.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;Dj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xj(i,"name")||t&&i.name!==f)&&EN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==JP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:EN(e,n,i)):l?e[n]=i:Uj(n,i)})(Function.prototype,"toString",(function(){return Dj(this)&&n(this).source||AN(this)}))})),WN=Math.ceil,GN=Math.floor,qN=function(e){var t=+e;return t!=t||0===t?0:(t>0?GN:WN)(t)},KN=Math.max,YN=Math.min,XN=function(e,t){var n=qN(e);return n<0?KN(n+t,0):YN(n,t)},ZN=Math.min,JN=function(e){return e>0?ZN(qN(e),9007199254740991):0},QN=function(e){return JN(e.length)},eI=function(e){return function(t,n,r){var o,i=Ej(t),a=QN(i),u=XN(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}},tI={includes:eI(!0),indexOf:eI(!1)},nI=tI.indexOf,rI=dj([].push),oI=function(e,t){var n,r=Ej(e),o=0,i=[];for(n in r)!Xj(TN,n)&&Xj(r,n)&&rI(i,n);for(;t.length>o;)Xj(r,n=t[o++])&&(~nI(i,n)||rI(i,n));return i},iI=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],aI=iI.concat("length","prototype"),uI={f:Object.getOwnPropertyNames||function(e){return oI(e,aI)}},sI={f:Object.getOwnPropertySymbols},lI=dj([].concat),cI=xj("Reflect","ownKeys")||function(e){var t=uI.f(yN(e)),n=sI.f;return n?lI(t,n(e)):t},fI=function(e,t){for(var n=cI(t),r=wN.f,o=hN.f,i=0;i<n.length;i++){var a=n[i];Xj(e,a)||r(e,a,o(t,a))}},dI=/#|\.prototype\./,pI=function(e,t){var n=gI[hI(e)];return n==yI||n!=vI&&(Dj(t)?QP(t):!!t)},hI=pI.normalize=function(e){return String(e).replace(dI,".").toLowerCase()},gI=pI.data={},vI=pI.NATIVE="N",yI=pI.POLYFILL="P",mI=pI,bI=hN.f,wI=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?JP:l?JP[u]||Uj(u,{}):(JP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=bI(n,r))&&a.value:n[r],!mI(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;fI(i,o)}(e.sham||o&&o.sham)&&EN(i,"sham",!0),UN(n,r,i,e)}},EI=dj(dj.bind),DI=Array.isArray||function(e){return"Array"==gj(e)},CI={};CI[iN("toStringTag")]="z";var SI="[object z]"===String(CI),xI=iN("toStringTag"),AI=JP.Object,OI="Arguments"==gj(function(){return arguments}()),kI=SI?gj: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=AI(e),xI))?n:OI?gj(t):"Object"==(r=gj(t))&&Dj(t.callee)?"Arguments":r},BI=function(){},FI=[],TI=xj("Reflect","construct"),_I=/^\s*(?:class|function)\b/,PI=dj(_I.exec),jI=!_I.exec(BI),NI=function(e){if(!Dj(e))return!1;try{return TI(BI,FI,e),!0}catch(t){return!1}},II=!TI||QP((function(){var e;return NI(NI.call)||!NI(Object)||!NI((function(){e=!0}))||e}))?function(e){if(!Dj(e))return!1;switch(kI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jI||!!PI(_I,AN(e))}:NI,LI=iN("species"),RI=JP.Array,MI=function(e,t){return new(DI(n=e)&&(r=n.constructor,(II(r)&&(r===RI||DI(r.prototype))||Cj(r)&&null===(r=r[LI]))&&(r=void 0)),void 0===r?RI:r)(0===t?0:t);var n,r},zI=dj([].push),$I=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=Kj(s),g=mj(h),v=function(e,t){return zj(e),void 0===t?e:EI?EI(e,t):function(){return e.apply(t,arguments)}}(l,c),y=QN(g),m=0,b=f||MI,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:zI(w,d)}else switch(e){case 4:return!1;case 7:zI(w,d)}return i?-1:r||o?o:w}},HI={forEach:$I(0),map:$I(1),filter:$I(2),some:$I(3),every:$I(4),find:$I(5),findIndex:$I(6),filterReject:$I(7)},VI=iN("species"),UI=function(e){return _j>=51||!QP((function(){var t=[];return(t.constructor={})[VI]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},WI=HI.filter;wI({target:"Array",proto:!0,forced:!UI("filter")},{filter:function(e){return WI(this,e,arguments.length>1?arguments[1]:void 0)}});var GI=SI?{}.toString:function(){return"[object "+kI(this)+"]"};SI||UN(Object.prototype,"toString",GI,{unsafe:!0});var qI,KI=JP.String,YI=function(e){if("Symbol"===kI(e))throw TypeError("Cannot convert a Symbol value to a string");return KI(e)},XI=function(){var e=yN(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},ZI=JP.RegExp,JI=QP((function(){var e=ZI("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),QI=JI||QP((function(){return!ZI("a","y").sticky})),eL={BROKEN_CARET:JI||QP((function(){var e=ZI("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:QI,UNSUPPORTED_Y:JI},tL=Object.keys||function(e){return oI(e,iI)},nL=ej?Object.defineProperties:function(e,t){yN(e);for(var n,r=Ej(t),o=tL(t),i=o.length,a=0;i>a;)wN.f(e,n=o[a++],r[n]);return e},rL=xj("document","documentElement"),oL=FN("IE_PROTO"),iL=function(){},aL=function(e){return"<script>"+e+"<\/script>"},uL=function(e){e.write(aL("")),e.close();var t=e.parentWindow.Object;return e=null,t},sL=function(){try{qI=new ActiveXObject("htmlfile")}catch(r){}var e,t;sL="undefined"!=typeof document?document.domain&&qI?uL(qI):((t=fN("iframe")).style.display="none",rL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(aL("document.F=Object")),e.close(),e.F):uL(qI);for(var n=iI.length;n--;)delete sL.prototype[iI[n]];return sL()};TN[oL]=!0;var lL,cL,fL=Object.create||function(e,t){var n;return null!==e?(iL.prototype=yN(e),n=new iL,iL.prototype=null,n[oL]=e):n=sL(),void 0===t?n:nL(n,t)},dL=JP.RegExp,pL=QP((function(){var e=dL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),hL=JP.RegExp,gL=QP((function(){var e=hL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),vL=MN.get,yL=Gj("native-string-replace",String.prototype.replace),mL=RegExp.prototype.exec,bL=mL,wL=dj("".charAt),EL=dj("".indexOf),DL=dj("".replace),CL=dj("".slice),SL=(cL=/b*/g,nj(mL,lL=/a/,"a"),nj(mL,cL,"a"),0!==lL.lastIndex||0!==cL.lastIndex),xL=eL.BROKEN_CARET,AL=void 0!==/()??/.exec("")[1];(SL||AL||xL||pL||gL)&&(bL=function(e){var t,n,r,o,i,a,u,s=this,l=vL(s),c=YI(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=nj(bL,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xL&&s.sticky,h=nj(XI,s),g=s.source,v=0,y=c;if(p&&(h=DL(h,"y",""),-1===EL(h,"g")&&(h+="g"),y=CL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==wL(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),AL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),SL&&(r=s.lastIndex),o=nj(mL,p?n:s,y),p?o?(o.input=CL(o.input,v),o[0]=CL(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:SL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),AL&&o&&o.length>1&&nj(yL,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=fL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var OL=bL;wI({target:"RegExp",proto:!0,forced:/./.exec!==OL},{exec:OL});var kL=Function.prototype,BL=kL.apply,FL=kL.bind,TL=kL.call,_L="object"==typeof Reflect&&Reflect.apply||(FL?TL.bind(BL):function(){return TL.apply(BL,arguments)}),PL=iN("species"),jL=RegExp.prototype,NL=function(e,t,n,r){var o=iN(e),i=!QP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!QP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[PL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=dj(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=dj(e),s=t.exec;return s===OL||s===jL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));UN(String.prototype,e,s[0]),UN(jL,o,s[1])}r&&EN(jL[o],"sham",!0)},IL=dj("".charAt),LL=dj("".charCodeAt),RL=dj("".slice),ML=function(e){return function(t,n){var r,o,i=YI(wj(t)),a=qN(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=LL(i,a))<55296||r>56319||a+1===u||(o=LL(i,a+1))<56320||o>57343?e?IL(i,a):r:e?RL(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),zL=function(e,t,n){return t+(n?ML(e,t).length:1)},$L=Math.floor,HL=dj("".charAt),VL=dj("".replace),UL=dj("".slice),WL=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,GL=/\$([$&'`]|\d{1,2})/g,qL=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=GL;return void 0!==o&&(o=Kj(o),s=WL),VL(i,s,(function(i,s){var l;switch(HL(s,0)){case"$":return"$";case"&":return e;case"`":return UL(t,0,n);case"'":return UL(t,a);case"<":l=o[UL(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=$L(c/10);return 0===f?i:f<=u?void 0===r[f-1]?HL(s,1):r[f-1]+HL(s,1):i}l=r[c-1]}return void 0===l?"":l}))},KL=JP.TypeError,YL=function(e,t){var n=e.exec;if(Dj(n)){var r=nj(n,e,t);return null!==r&&yN(r),r}if("RegExp"===gj(e))return nj(OL,e,t);throw KL("RegExp#exec called on incompatible receiver")},XL=iN("replace"),ZL=Math.max,JL=Math.min,QL=dj([].concat),eR=dj([].push),tR=dj("".indexOf),nR=dj("".slice),rR="$0"==="a".replace(/./,"$0"),oR=!!/./[XL]&&""===/./[XL]("a","$0");NL("replace",(function(e,t,n){var r=oR?"$":"$0";return[function(e,n){var r=wj(this),o=null==e?void 0:$j(e,XL);return o?nj(o,e,r,n):nj(t,YI(r),e,n)},function(e,o){var i=yN(this),a=YI(e);if("string"==typeof o&&-1===tR(o,r)&&-1===tR(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Dj(o);s||(o=YI(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=YL(i,a);if(null===d)break;if(eR(f,d),!l)break;""===YI(d[0])&&(i.lastIndex=zL(a,JN(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=YI((d=f[v])[0]),m=ZL(JL(qN(d.index),a.length),0),b=[],w=1;w<d.length;w++)eR(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=QL([y],b,m,a);void 0!==E&&eR(D,E);var C=YI(_L(o,void 0,D))}else C=qL(y,a,m,b,E,o);m>=g&&(h+=nR(a,g,m)+C,g=m+y.length)}return h+nR(a,g)}]}),!!QP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!rR||oR);var iR=iN("unscopables"),aR=Array.prototype;null==aR[iR]&&wN.f(aR,iR,{configurable:!0,value:fL(null)});var uR=function(e){aR[iR][e]=!0},sR=HI.find,lR=!0;"find"in[]&&Array(1).find((function(){lR=!1})),wI({target:"Array",proto:!0,forced:lR},{find:function(e){return sR(this,e,arguments.length>1?arguments[1]:void 0)}}),uR("find");var cR=iN("match"),fR=function(e){var t;return Cj(e)&&(void 0!==(t=e[cR])?!!t:"RegExp"==gj(e))},dR=JP.TypeError,pR=iN("species"),hR=function(e,t,n){var r=sN(t);r in e?wN.f(e,r,uj(0,n)):e[r]=n},gR=JP.Array,vR=Math.max,yR=function(e,t,n){for(var r=QN(e),o=XN(t,r),i=XN(void 0===n?r:n,r),a=gR(vR(i-o,0)),u=0;o<i;o++,u++)hR(a,u,e[o]);return a.length=u,a},mR=eL.UNSUPPORTED_Y,bR=Math.min,wR=[].push,ER=dj(/./.exec),DR=dj(wR),CR=dj("".slice);NL("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=YI(wj(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!fR(e))return nj(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=nj(OL,f,r))&&!((a=f.lastIndex)>c&&(DR(s,CR(r,c,i.index)),i.length>1&&i.index<r.length&&_L(wR,s,yR(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&ER(f,"")||DR(s,""):DR(s,CR(r,c)),s.length>o?yR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:nj(t,this,e,n)}:t,[function(t,n){var o=wj(this),i=null==t?void 0:$j(t,e);return i?nj(i,t,o,n):nj(r,YI(o),t,n)},function(e,o){var i=yN(this),a=YI(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=yN(i).constructor)||null==(l=yN(c)[pR])?s:function(e){if(II(e))return e;throw dR(Rj(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(mR?"g":"y"),h=new f(mR?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===YL(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=mR?0:y;var b,w=YL(h,mR?CR(a,y):a);if(null===w||(b=bR(JN(h.lastIndex+(mR?y:0)),a.length))===v)y=zL(a,y,d);else{if(DR(m,CR(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(DR(m,w[E]),m.length===g)return m;y=v=b}}return DR(m,CR(a,v)),m}]}),!!QP((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]})),mR);var SR="\t\n\v\f\r \u2028\u2029\ufeff",xR=dj("".replace),AR="["+SR+"]",OR=RegExp("^"+AR+AR+"*"),kR=RegExp(AR+AR+"*$"),BR=function(e){return function(t){var n=YI(wj(t));return 1&e&&(n=xR(n,OR,"")),2&e&&(n=xR(n,kR,"")),n}},FR={start:BR(1),end:BR(2),trim:BR(3)},TR=VN.PROPER,_R=FR.trim;function PR(e){return 0===Hp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function jR(e){return 0===e.length?"":e[0].outerHTML}function NR(e){return e.length?e[0].tagName.toLowerCase():""}function IR(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}wI({target:"String",proto:!0,forced:QP((function(){return!!SR.trim()||"
"!=="
".trim()||TR&&"trim"!==SR.trim.name}))},{trim:function(){return _R(this)}}),wI({global:!0},{globalThis:JP}),rh&&(Hp.fn.css=rh),lh&&(Hp.fn.append=lh),ch&&(Hp.fn.prepend=ch),Vp&&(Hp.fn.addClass=Vp),Up&&(Hp.fn.removeClass=Up),Wp&&(Hp.fn.hasClass=Wp),Xp&&(Hp.fn.on=Xp),Zp&&(Hp.fn.off=Zp),wh&&(Hp.fn.focus=wh),Gp&&(Hp.fn.attr=Gp),qp&&(Hp.fn.removeAttr=qp),th&&(Hp.fn.hide=th),nh&&(Hp.fn.show=nh),dh&&(Hp.fn.parents=dh),Kp&&(Hp.fn.dataset=Kp),Yp&&(Hp.fn.val=Yp),uh&&(Hp.fn.text=uh),ah&&(Hp.fn.html=ah),hh&&(Hp.fn.children=hh),gh&&(Hp.fn.remove=gh),ph&&(Hp.fn.find=ph),Jp&&(Hp.fn.width=Jp),Qp&&(Hp.fn.height=Qp),ih&&(Hp.fn.filter=ih),vh&&(Hp.fn.empty=vh);var LR={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);return 0===(t=t.filter((function(e){return!!ld.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},RR=function(e,t){return RR=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])},RR(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 MR(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}RR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var zR=function(){return zR=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},zR.apply(this,arguments)};function $R(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 HR(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 VR(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 UR(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 WR(e){var t=UR(Mf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Pf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Uf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!ld.isText(o[0])&&(Od.setNodes(e,{type:"paragraph"}),!0)}var GR={renderElems:[GP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[LR],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){WR(r)||t(e)},r.deleteForward=function(e){WR(r)||n(e)},r}},qR=/"/g,KR=dj("".replace),YR=function(e,t,n,r){var o=YI(wj(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+KR(YI(r),qR,""")+'"'),i+">"+o+"</"+t+">"},XR=function(e){return QP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function ZR(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 JR(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}wI({target:"String",proto:!0,forced:XR("bold")},{bold:function(){return YR(this,"b","","")}}),wI({target:"String",proto:!0,forced:XR("italics")},{italics:function(){return YR(this,"i","","")}}),wI({target:"String",proto:!0,forced:XR("sub")},{sub:function(){return YR(this,"sub","","")}}),wI({target:"String",proto:!0,forced:XR("sup")},{sup:function(){return YR(this,"sup","","")}});var QR={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},eM=fN("span").classList,tM=eM&&eM.constructor&&eM.constructor.prototype,nM=tM===Object.prototype?void 0:tM,rM=function(e,t){var n=[][e];return!!n&&QP((function(){n.call(null,t||function(){throw 1},1)}))},oM=HI.forEach,iM=rM("forEach")?[].forEach:function(e){return oM(this,e,arguments.length>1?arguments[1]:void 0)},aM=function(e){if(e&&e.forEach!==iM)try{EN(e,"forEach",iM)}catch(t){e.forEach=iM}};for(var uM in QR)QR[uM]&&aM(JP[uM]&&JP[uM].prototype);function sM(e,t){return null==e.selection||!!UR(Mf.nodes(e,{match:function(t){return"pre"===MO.getNodeType(t)||!!Mf.isVoid(e,t)},universal:!0}),1)[0]}function lM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Mf.removeMark(e,t)}))}aM(nM),wI({target:"Object",stat:!0,forced:QP((function(){tL(1)}))},{keys:function(e){return tL(Kj(e))}});var cM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Mf.marks(e);return n?n[t]:!!UR(Mf.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 sM(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}(),fM='<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>',dM='<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>',pM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',hM='<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>',gM='<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>',vM='<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>',yM='<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>',mM='<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>',bM='<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>',wM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',EM='<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>',DM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',CM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',SM='<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>',xM='<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>',AM='<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>',OM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',kM='<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>',BM='<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>',FM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=xP("textStyle.bold"),t.iconSvg=fM,t.hotkey="mod+b",t}return MR(t,e),t}(cM),TM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=xP("textStyle.code"),t.iconSvg=gM,t.hotkey="mod+e",t}return MR(t,e),t}(cM),_M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=xP("textStyle.italic"),t.iconSvg=pM,t.hotkey="mod+i",t}return MR(t,e),t}(cM),PM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=xP("textStyle.through"),t.iconSvg=hM,t.hotkey="mod+shift+x",t}return MR(t,e),t}(cM),jM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=xP("textStyle.underline"),t.iconSvg=dM,t.hotkey="mod+u",t}return MR(t,e),t}(cM),NM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=xP("textStyle.sub"),t.iconSvg=BM,t.hotkey="",t}return MR(t,e),t}(cM),IM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=xP("textStyle.sup"),t.iconSvg=kM,t.hotkey="",t}return MR(t,e),t}(cM),LM=function(){function e(){this.title=xP("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 sM(e)},e.prototype.exec=function(e,t){var n,r,o=Mf.nodes(e,{match:function(e){return ld.isText(e)},universal:!0});try{for(var i=VR(o),a=i.next();!a.done;a=i.next())lM(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}(),RM={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=Tg("strong",null,c)),a&&(c=Tg("code",null,c)),o&&(c=Tg("em",null,c)),i&&(c=Tg("u",null,c)),u&&(c=Tg("s",null,c)),s&&(c=Tg("sub",null,c)),l&&(c=Tg("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new FM}},{key:"underline",factory:function(){return new jM}},{key:"italic",factory:function(){return new _M}},{key:"through",factory:function(){return new PM}},{key:"code",factory:function(){return new TM}},{key:"sub",factory:function(){return new NM}},{key:"sup",factory:function(){return new IM}},{key:"clearStyle",factory:function(){return new LM}}],styleToHtml:function(e,t){if(!ld.isText(e))return t;if(PR(t))return ZR(e,t);var n=Hp(t);if("br"===NR(n))return ZR(e,"<br>");var r=n.html();return r=ZR(e,r),n.html(r),jR(n)},parseStyleHtml:function(e,t,n){var r=Hp(e);if(!ld.isText(t))return t;var o=t;return JR(r,"b,strong")&&(o.bold=!0),JR(r,"i,em")&&(o.italic=!0),JR(r,"u")&&(o.underline=!0),JR(r,"s,strike")&&(o.through=!0),JR(r,"sub")&&(o.sub=!0),JR(r,"sup")&&(o.sup=!0),JR(r,"code")&&(o.code=!0),o}};function MM(e){return function(t,n,r){return Tg("h"+e,null,n)}}var zM={type:"header1",renderElem:MM(1)},$M={type:"header2",renderElem:MM(2)},HM={type:"header3",renderElem:MM(3)},VM={type:"header4",renderElem:MM(4)},UM={type:"header5",renderElem:MM(5)},WM=VN.PROPER,GM=RegExp.prototype,qM=GM.toString,KM=dj(XI),YM=QP((function(){return"/a/b"!=qM.call({source:"a",flags:"b"})})),XM=WM&&"toString"!=qM.name;(YM||XM)&&UN(RegExp.prototype,"toString",(function(){var e=yN(this),t=YI(e.source),n=e.flags;return"/"+t+"/"+YI(void 0===n&&Aj(GM,e)&&!("flags"in GM)?KM(e):n)}),{unsafe:!0});var ZM,JM=JP.TypeError,QM=function(e){if(fR(e))throw JM("The method doesn't accept regular expressions");return e},ez=iN("match"),tz=function(e){var t=/./;try{"/./"[e](t)}catch(OP){try{return t[ez]=!1,"/./"[e](t)}catch(n){}}return!1},nz=hN.f,rz=dj("".startsWith),oz=dj("".slice),iz=Math.min,az=tz("startsWith");function uz(e){var t=UR(Mf.nodes(e,{match:function(e){return MO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=UR(t,1)[0];return MO.getNodeType(n)}function sz(e){return null==e.selection||!UR(Mf.nodes(e,{match:function(e){var t=MO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function lz(e,t){t&&Od.setNodes(e,{type:t})}wI({target:"String",proto:!0,forced:!(!az&&(ZM=nz(String.prototype,"startsWith"),ZM&&!ZM.writable)||az)},{startsWith:function(e){var t=YI(wj(this));QM(e);var n=JN(iz(arguments.length>1?arguments[1]:void 0,t.length)),r=YI(e);return rz?rz(t,r,n):oz(t,n,n+r.length)===r}});var cz=function(){function e(){this.title=xP("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:xP("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 uz(e)},e.prototype.isDisabled=function(e){return sz(e)},e.prototype.exec=function(e,t){lz(e,t.toString())},e}(),fz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return uz(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return sz(e)},e.prototype.exec=function(e,t){var n=this.type;lz(e,t===n?"paragraph":n)},e}(),dz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return MR(t,e),t}(fz),pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return MR(t,e),t}(fz),hz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return MR(t,e),t}(fz),gz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return MR(t,e),t}(fz),vz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return MR(t,e),t}(fz),yz={key:"headerSelect",factory:function(){return new cz}},mz={key:"header1",factory:function(){return new dz}},bz={key:"header2",factory:function(){return new pz}},wz={key:"header3",factory:function(){return new hz}},Ez={key:"header4",factory:function(){return new gz}},Dz={key:"header5",factory:function(){return new vz}};function Cz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Sz(e){return function(t,n,r){var o=Hp(t);return 0===(n=n.filter((function(e){return!!ld.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var xz={renderElems:[zM,$M,HM,VM,UM],elemsToHtml:[{type:"header1",elemToHtml:Cz(1)},{type:"header2",elemToHtml:Cz(2)},{type:"header3",elemToHtml:Cz(3)},{type:"header4",elemToHtml:Cz(4)},{type:"header5",elemToHtml:Cz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Sz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Sz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Sz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Sz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Sz(5)}],menus:[yz,mz,bz,wz,Ez,Dz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=UR(Mf.nodes(n,{match:function(e){return MO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&MO.isSelectionAtLineEnd(e,r[1])?Od.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Az=Object.assign,Oz=Object.defineProperty,kz=dj([].concat),Bz=!Az||QP((function(){if(ej&&1!==Az({b:1},Az(Oz({},"a",{enumerable:!0,get:function(){Oz(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!=Az({},e)[n]||tL(Az({},t)).join("")!=r}))?function(e,t){for(var n=Kj(e),r=arguments.length,o=1,i=sI.f,a=aj.f;r>o;)for(var u,s=mj(arguments[o++]),l=i?kz(tL(s),i(s)):tL(s),c=l.length,f=0;c>f;)u=l[f++],ej&&!nj(a,s,u)||(n[u]=s[u]);return n}:Az;function Fz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}wI({target:"Object",stat:!0,forced:Object.assign!==Bz},{assign:Bz});var Tz={selector:"font",preParseHtml:function(e){var t=Hp(e);if("font"!==NR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},_z=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=Mf.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||!!UR(Mf.nodes(e,{match:function(t){return"pre"===MO.getNodeType(t)||!!Mf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Hp('<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=Hp(r).attr("data-value");"0"===o?Mf.removeMark(e,t):Mf.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=Hp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Hp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=xP("color.default")),"bgColor"===t&&(a=xP("color.clear"));var u=Hp('\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}(),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("color.color"),t.iconSvg=mM,t.mark="color",t}return MR(t,e),t}(_z),jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("color.bgColor"),t.iconSvg=bM,t.mark="bgColor",t}return MR(t,e),t}(_z),Nz=["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)"],Iz={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Fz(i,{color:r}),o&&Fz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!ld.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((PR(t)||"span"!==NR(n=Hp(t)))&&(n=Hp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),jR(n)):t},preParseHtml:[Tz],parseStyleHtml:function(e,t,n){var r=Hp(e);if(!ld.isText(t))return t;var o=t,i=IR(r,"color");i&&(o.color=i);var a=IR(r,"background-color");return a||(a=IR(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Pz},config:{colors:Nz}},{key:"bgColor",factory:function(){return new jz},config:{colors:Nz}}]},Lz=/^(?:\w+:)?\/\/(\S+)$/,Rz=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Mz=/^[^\s\.]+\.\S{2,}$/,zz=tI.includes;function $z(e){return void 0===e&&(e="r"),e+"-"+Lh()}function Hz(e){return e.replace(/</g,"<").replace(/>/g,">")}function Vz(e,t,n,r){return $R(this,void 0,void 0,(function(){var o,i;return HR(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 Uz(e,t,n){return $R(this,void 0,void 0,(function(){var r;return HR(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 Wz(e){return null==e.selection||!!MO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function Gz(e,t){return{type:"link",url:Hz(e),children:t?[{text:t}]:[]}}function qz(e,t,n){return $R(this,void 0,void 0,(function(){var r,o,i;return HR(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),Wz(e)?[2]:[4,Vz("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,Uz("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(nd.isCollapsed(o)?(e.insertText(" "),i=Gz(r,t),Od.insertNodes(e,i),e.insertFragment([{text:" "}])):Mf.string(e,o)!==t?(e.deleteFragment(),i=Gz(r,t),Od.insertNodes(e,i)):(i=Gz(r),Od.wrapNodes(e,i,{split:!0}),Od.collapse(e,{edge:"end"}))),[2]}}))}))}wI({target:"Array",proto:!0},{includes:function(e){return zz(this,e,arguments.length>1?arguments[1]:void 0)}}),uR("includes");var Kz={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Tg("a",{href:o,target:void 0===i?"_blank":i},t)}},Yz={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);return 0===(t=t.filter((function(e){return!!ld.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 Xz(){return $z("w-e-insert-link")}var Zz=function(){function e(){this.title=xP("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=Xz(),this.urlInputId=Xz(),this.buttonId=Xz()}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 Wz(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=UR(l_(xP("link.text"),r),2),u=a[0],s=Hp(a[1]),l=UR(l_(xP("link.url"),o),2),c=l[0],f=Hp(l[1]),d=UR(c_(i,xP("common.ok")),1)[0];if(null==this.$content){var p=Hp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();qz(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||nd.isCollapsed(t))s.val("");else{var g=Mf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function Jz(){return $z("w-e-update-link")}var Qz=function(){function e(){this.title=xP("link.edit"),this.iconSvg=vM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=Jz(),this.buttonId=Jz()}return e.prototype.getSelectedLinkElem=function(e){var t=MO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return MO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=UR(l_(xP("link.url"),t),2),o=r[0],i=Hp(r[1]),a=UR(c_(n,xP("common.ok")),1)[0];if(null==this.$content){var u=Hp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=MO.getSelectedNodeByType(e,"link"),o=r?Uf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){$R(this,void 0,void 0,(function(){var r,o;return HR(this,(function(i){switch(i.label){case 0:return n?[4,Vz("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,Uz("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:Hz(r)},Od.setNodes(e,o,{match:function(e){return MO.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),e$=function(){function e(){this.title=xP("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==MO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Od.unwrapNodes(e,{match:function(e){return MO.checkNodeType(e,"link")}})},e}(),t$=function(){function e(){this.title=xP("link.view"),this.iconSvg=yM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=MO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),n$={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},r$={renderElems:[Kz],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:[Yz],menus:[{key:"insertLink",factory:function(){return new Zz},config:n$},{key:"editLink",factory:function(){return new Qz},config:n$},{key:"unLink",factory:function(){return new e$}},{key:"viewLink",factory:function(){return new t$}}],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(Lz);if(!t)return!1;var n=t[1];return!(!n||!Rz.test(n)&&!Mz.test(n))}(t)){if(!Wz(o)){var r=o.selection;if(null!=r){var i=Mf.string(o,r);qz(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=UR(e,2),n=t[0],i=t[1];return"link"!==MO.getNodeType(n)?r([n,i]):""===Uf.string(n)?Od.removeNodes(o,{at:i}):r([n,i])},o}},o$=dj(1..valueOf),i$=JP.RangeError,a$=JP.RangeError,u$=JP.String,s$=Math.floor,l$=dj((function(e){var t=YI(wj(this)),n="",r=qN(e);if(r<0||r==1/0)throw i$("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),c$=dj("".slice),f$=dj(1..toFixed),d$=function(e,t,n){return 0===t?n:t%2==1?d$(e,t-1,n*e):d$(e*e,t/2,n)},p$=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=s$(o/1e7)},h$=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=s$(r/t),r=r%t*1e7},g$=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=u$(e[t]);n=""===n?r:n+l$("0",7-r.length)+r}return n};function v$(e,t){return"w-e-image-container-"+MO.findKey(e,t).id}wI({target:"Number",proto:!0,forced:QP((function(){return"0.000"!==f$(8e-5,3)||"1"!==f$(.9,0)||"1.25"!==f$(1.255,2)||"1000000000000000128"!==f$(0xde0b6b3a7640080,0)}))||!QP((function(){f$({})}))},{toFixed:function(e){var t,n,r,o,i=o$(this),a=qN(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw a$("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return u$(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*d$(2,69,1))-69)<0?i*d$(2,-t,1):i/d$(2,t,1),n*=4503599627370496,(t=52-t)>0){for(p$(u,0,n),r=a;r>=7;)p$(u,1e7,0),r-=7;for(p$(u,d$(10,r,1),0),r=t-1;r>=23;)h$(u,1<<23),r-=23;h$(u,1<<r),p$(u,1,1),h$(u,2),l=g$(u)}else p$(u,0,n),p$(u,1<<-t,0),l=g$(u)+l$("0",a);return a>0?s+((o=l.length)<=a?"0."+l$("0",a-o)+l:c$(l,0,o-a)+"."+c$(l,o-a)):s+l}});var y$={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=MO.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y,m,b,w,E,D,C,S=Tg("img",{style:v,src:o,alt:a,"data-href":s}),x=n.isDisabled();return g&&!x?function(e,t,n,r){var o=Hp("body"),i=v$(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;var p=Jh((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:zR(zR({},t.style),{width:r+"px",height:i+"px"})};Od.setNodes(e,a,{at:MO.findPath(e,t)}),o.off("mouseup",h)}}var g={};return a&&(g.width=a),u&&(g.height=u),Tg("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var n=Hp(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=Hp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",p),o.on("mouseup",h);var r=MO.getHoverbar(e);r&&r.hideAndClean()}(t.clientX))}}},n,Tg("div",{className:"w-e-image-dragger left-top"}),Tg("div",{className:"w-e-image-dragger right-top"}),Tg("div",{className:"w-e-image-dragger left-bottom"}),Tg("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),Tg("div",{id:v$(y,m),style:C,className:"w-e-image-container"},b))}},m$={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:IR(r,"width"),height:IR(r,"height")},children:[{text:""}]}}};function b$(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),$R(this,void 0,void 0,(function(){var i,a;return HR(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 w$(e,t,n){return $R(this,void 0,void 0,(function(){var r;return HR(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 E$(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),$R(this,void 0,void 0,(function(){var o,i,a;return HR(this,(function(u){switch(u.label){case 0:return[4,b$("insertImage",e,t,n,r)];case 1:return u.sent()?[4,w$("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Hz(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),MO.getSelectedNodeByType(e,"image")&&e.move(1),D$(e)||(Od.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function D$(e){var t=e.selection;return null==t||!nd.isCollapsed(t)||!!UR(Mf.nodes(e,{match:function(t){var n=MO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Mf.isVoid(e,t)},universal:!0}),1)[0]}function C$(){return $z("w-e-insert-image")}var S$=function(){function e(){this.title=xP("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=C$(),this.altInputId=C$(),this.hrefInputId=C$(),this.buttonId=C$()}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 D$(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=UR(l_(xP("image.src"),r),2),s=u[0],l=Hp(u[1]),c=UR(l_(xP("image.desc"),o),2),f=c[0],d=Hp(c[1]),p=UR(l_(xP("image.link"),i),2),h=p[0],g=Hp(p[1]),v=UR(c_(a,xP("common.ok")),1)[0];if(null==this.$content){var y=Hp("<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)||E$(e,t,n,r))},e}(),x$=function(){function e(){this.title=xP("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==MO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Od.removeNodes(e,{match:function(e){return MO.checkNodeType(e,"image")}})},e}();function A$(){return $z("w-e-edit-image")}var O$=function(){function e(){this.title=xP("image.edit"),this.iconSvg=vM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=A$(),this.altInputId=A$(),this.hrefInputId=A$(),this.buttonId=A$()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return MO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!nd.isCollapsed(t)||null==MO.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=UR(l_(xP("image.src"),r),2),l=s[0],c=Hp(s[1]),f=UR(l_(xP("image.desc"),o),2),d=f[0],p=Hp(f[1]),h=UR(l_(xP("image.link"),i),2),g=h[0],v=Hp(h[1]),y=UR(c_(a,xP("common.ok")),1)[0];if(null==this.$content){var m=Hp("<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={}),$R(this,void 0,void 0,(function(){var i,a,u,s,l,c;return HR(this,(function(f){switch(f.label){case 0:return[4,b$("editImage",e,t,n,r)];case 1:return f.sent()?[4,w$("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=MO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:zR(zR({},void 0===u?{}:u),o)},Od.setNodes(e,s,{match:function(e){return MO.checkNodeType(e,"image")}}),l=MO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),k$=function(){function e(){this.title=xP("image.viewLink"),this.iconSvg=yM,this.tag="button"}return e.prototype.getValue=function(e){var t=MO.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),B$=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return MO.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=MO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:zR(zR({},void 0===o?{}:o),{width:this.value,height:""})};Od.setNodes(e,i,{match:function(e){return MO.checkNodeType(e,"image")}})}}},e}(),F$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return MR(t,e),t}(B$),T$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return MR(t,e),t}(B$),_$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return MR(t,e),t}(B$),P$={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},j$={renderElems:[y$],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:[m$],menus:[{key:"insertImage",factory:function(){return new S$},config:P$},{key:"deleteImage",factory:function(){return new x$}},{key:"editImage",factory:function(){return new O$},config:P$},{key:"viewImageLink",factory:function(){return new k$}},{key:"imageWidth30",factory:function(){return new F$}},{key:"imageWidth50",factory:function(){return new T$}},{key:"imageWidth100",factory:function(){return new _$}}],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}},N$={type:"todo",renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),Tg("div",{style:{margin:"5px 0"}},Tg("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Tg("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=MO.findPath(n,e),o={checked:t.target.checked};Od.setNodes(n,o,{at:r})}}})),Tg("span",null,t))}},I$=function(){function e(){this.title=xP("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!MO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!MO.getSelectedElems(e).some((function(t){if(Mf.isVoid(e,t)&&Mf.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);Od.setNodes(e,{type:n?"paragraph":"todo"})},e}(),L$={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Hp(e);0===(t=t.filter((function(e){return!!ld.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}}},R$={renderElems:[N$],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=Hp(e).find("li"),n=Hp('<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:[L$],menus:[{key:"todo",factory:function(){return new I$}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&nd.isCollapsed(r)){var o=MO.getSelectedNodeByType(e,"todo");if(o&&0===Uf.string(o).length)return void Od.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},M$={type:"blockquote",renderElem:function(e,t,n){return Tg("blockquote",null,t)}},z$={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);return 0===(t=t.filter((function(e){return!!ld.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},$$=function(){function e(){this.title=xP("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!MO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!UR(Mf.nodes(e,{match:function(e){var t=MO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";Od.setNodes(e,{type:n},{mode:"highest"})}},e}(),H$={key:"blockquote",factory:function(){return new $$}},V$=dj([].slice),U$=UI("slice"),W$=iN("species"),G$=JP.Array,q$=Math.max;wI({target:"Array",proto:!0,forced:!U$},{slice:function(e,t){var n,r,o,i=Ej(this),a=QN(i),u=XN(e,a),s=XN(void 0===t?a:t,a);if(DI(i)&&(n=i.constructor,(II(n)&&(n===G$||DI(n.prototype))||Cj(n)&&null===(n=n[W$]))&&(n=void 0),n===G$||void 0===n))return V$(i,u,s);for(r=new(void 0===n?G$:n)(q$(s-u,0)),o=0;u<s;u++,o++)u in i&&hR(r,o,i[u]);return r.length=o,r}});var K$={renderElems:[M$],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[z$],menus:[H$],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=UR(Mf.nodes(e,{match:function(e){return MO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=MO.findPath(e,a),s=Mf.end(e,u);if(Jf.equals(s,o.focus)){var l=Uf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Od.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},Y$=function(){function e(){this.title=xP("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||!!UR(Mf.nodes(e,{match:function(t){return"pre"===MO.getNodeType(t)||!!Mf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Hp('<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=Hp(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=Hp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),X$={menus:[{key:"emotion",factory:function(){return new Y$},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Z$={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},J$={selector:"font",preParseHtml:function(e){var t=Hp(e);if("font"!==NR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",Z$[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Q$=dj("".indexOf);wI({target:"String",proto:!0,forced:!tz("includes")},{includes:function(e){return!!~Q$(YI(wj(this)),YI(QM(e)),arguments.length>1?arguments[1]:void 0)}});var eH,tH,nH=function(e){return e&&e.Math==Math&&e},rH=nH("object"==typeof globalThis&&globalThis)||nH("object"==typeof window&&window)||nH("object"==typeof self&&self)||nH("object"==typeof qP&&qP)||function(){return this}()||Function("return this")(),oH=Function.prototype,iH=oH.apply,aH=oH.bind,uH=oH.call,sH="object"==typeof Reflect&&Reflect.apply||(aH?uH.bind(iH):function(){return uH.apply(iH,arguments)}),lH=Function.prototype,cH=lH.bind,fH=lH.call,dH=cH&&cH.bind(fH),pH=cH?function(e){return e&&dH(fH,e)}:function(e){return e&&function(){return fH.apply(e,arguments)}},hH=function(e){return"function"==typeof e},gH=function(e){try{return!!e()}catch(t){return!0}},vH=!gH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),yH=Function.prototype.call,mH=yH.bind?yH.bind(yH):function(){return yH.apply(yH,arguments)},bH={}.propertyIsEnumerable,wH=Object.getOwnPropertyDescriptor,EH=wH&&!bH.call({1:2},1)?function(e){var t=wH(this,e);return!!t&&t.enumerable}:bH,DH={f:EH},CH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},SH=pH({}.toString),xH=pH("".slice),AH=function(e){return xH(SH(e),8,-1)},OH=rH.Object,kH=pH("".split),BH=gH((function(){return!OH("z").propertyIsEnumerable(0)}))?function(e){return"String"==AH(e)?kH(e,""):OH(e)}:OH,FH=rH.TypeError,TH=function(e){if(null==e)throw FH("Can't call method on "+e);return e},_H=function(e){return BH(TH(e))},PH=function(e){return"object"==typeof e?null!==e:hH(e)},jH={},NH=function(e){return hH(e)?e:void 0},IH=function(e,t){return arguments.length<2?NH(jH[e])||NH(rH[e]):jH[e]&&jH[e][t]||rH[e]&&rH[e][t]},LH=pH({}.isPrototypeOf),RH=IH("navigator","userAgent")||"",MH=rH.process,zH=rH.Deno,$H=MH&&MH.versions||zH&&zH.version,HH=$H&&$H.v8;HH&&(tH=(eH=HH.split("."))[0]>0&&eH[0]<4?1:+(eH[0]+eH[1])),!tH&&RH&&(!(eH=RH.match(/Edge\/(\d+)/))||eH[1]>=74)&&(eH=RH.match(/Chrome\/(\d+)/))&&(tH=+eH[1]);var VH=tH,UH=!!Object.getOwnPropertySymbols&&!gH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&VH&&VH<41})),WH=UH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,GH=rH.Object,qH=WH?function(e){return"symbol"==typeof e}:function(e){var t=IH("Symbol");return hH(t)&&LH(t.prototype,GH(e))},KH=rH.String,YH=rH.TypeError,XH=function(e){if(hH(e))return e;throw YH(function(e){try{return KH(e)}catch(t){return"Object"}}(e)+" is not a function")},ZH=rH.TypeError,JH=Object.defineProperty,QH=rH["__core-js_shared__"]||function(e,t){try{JH(rH,e,{value:t,configurable:!0,writable:!0})}catch(OP){rH[e]=t}return t}("__core-js_shared__",{}),eV=KP((function(e){(e.exports=function(e,t){return QH[e]||(QH[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),tV=rH.Object,nV=function(e){return tV(TH(e))},rV=pH({}.hasOwnProperty),oV=Object.hasOwn||function(e,t){return rV(nV(e),t)},iV=0,aV=Math.random(),uV=pH(1..toString),sV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+uV(++iV+aV,36)},lV=eV("wks"),cV=rH.Symbol,fV=cV&&cV.for,dV=WH?cV:cV&&cV.withoutSetter||sV,pV=function(e){if(!oV(lV,e)||!UH&&"string"!=typeof lV[e]){var t="Symbol."+e;UH&&oV(cV,e)?lV[e]=cV[e]:lV[e]=WH&&fV?fV(t):dV(t)}return lV[e]},hV=rH.TypeError,gV=pV("toPrimitive"),vV=function(e){var t=function(e,t){if(!PH(e)||qH(e))return e;var n,r,o=null==(n=e[gV])?void 0:XH(n);if(o){if(void 0===t&&(t="default"),r=mH(o,e,t),!PH(r)||qH(r))return r;throw hV("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&hH(n=e.toString)&&!PH(r=mH(n,e)))return r;if(hH(n=e.valueOf)&&!PH(r=mH(n,e)))return r;if("string"!==t&&hH(n=e.toString)&&!PH(r=mH(n,e)))return r;throw ZH("Can't convert object to primitive value")}(e,t)}(e,"string");return qH(t)?t:t+""},yV=rH.document,mV=PH(yV)&&PH(yV.createElement),bV=function(e){return mV?yV.createElement(e):{}},wV=!vH&&!gH((function(){return 7!=Object.defineProperty(bV("div"),"a",{get:function(){return 7}}).a})),EV=Object.getOwnPropertyDescriptor,DV={f:vH?EV:function(e,t){if(e=_H(e),t=vV(t),wV)try{return EV(e,t)}catch(n){}if(oV(e,t))return CH(!mH(DH.f,e,t),e[t])}},CV=/#|\.prototype\./,SV=function(e,t){var n=AV[xV(e)];return n==kV||n!=OV&&(hH(t)?gH(t):!!t)},xV=SV.normalize=function(e){return String(e).replace(CV,".").toLowerCase()},AV=SV.data={},OV=SV.NATIVE="N",kV=SV.POLYFILL="P",BV=SV,FV=pH(pH.bind),TV=function(e,t){return XH(e),void 0===t?e:FV?FV(e,t):function(){return e.apply(t,arguments)}},_V=rH.String,PV=rH.TypeError,jV=function(e){if(PH(e))return e;throw PV(_V(e)+" is not an object")},NV=rH.TypeError,IV=Object.defineProperty,LV={f:vH?IV:function(e,t,n){if(jV(e),t=vV(t),jV(n),wV)try{return IV(e,t,n)}catch(r){}if("get"in n||"set"in n)throw NV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},RV=vH?function(e,t,n){return LV.f(e,t,CH(1,n))}:function(e,t,n){return e[t]=n,e},MV=DV.f,zV=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 sH(e,this,arguments)};return t.prototype=e.prototype,t},$V=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?rH:d?rH[c]:(rH[c]||{}).prototype,g=f?jH:jH[c]||RV(jH,c,{})[c],v=g.prototype;for(o in t)n=!BV(f?o:c+(d?".":"#")+o,e.forced)&&h&&oV(h,o),a=g[o],n&&(u=e.noTargetGet?(l=MV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?TV(i,rH):e.wrap&&n?zV(i):p&&hH(i)?pH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&RV(s,"sham",!0),RV(g,o,s),p&&(oV(jH,r=c+"Prototype")||RV(jH,r,{}),RV(jH[r],o,i),e.real&&v&&!v[o]&&RV(v,o,i)))},HV=Array.isArray||function(e){return"Array"==AH(e)},VV=Math.ceil,UV=Math.floor,WV=function(e){var t=+e;return t!=t||0===t?0:(t>0?UV:VV)(t)},GV=Math.min,qV=function(e){return(t=e.length)>0?GV(WV(t),9007199254740991):0;var t},KV=function(e,t,n){var r=vV(t);r in e?LV.f(e,r,CH(0,n)):e[r]=n},YV={};YV[pV("toStringTag")]="z";var XV="[object z]"===String(YV),ZV=pV("toStringTag"),JV=rH.Object,QV="Arguments"==AH(function(){return arguments}()),eU=XV?AH: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=JV(e),ZV))?n:QV?AH(t):"Object"==(r=AH(t))&&hH(t.callee)?"Arguments":r},tU=pH(Function.toString);hH(QH.inspectSource)||(QH.inspectSource=function(e){return tU(e)});var nU=QH.inspectSource,rU=function(){},oU=[],iU=IH("Reflect","construct"),aU=/^\s*(?:class|function)\b/,uU=pH(aU.exec),sU=!aU.exec(rU),lU=function(e){if(!hH(e))return!1;try{return iU(rU,oU,e),!0}catch(t){return!1}},cU=!iU||gH((function(){var e;return lU(lU.call)||!lU(Object)||!lU((function(){e=!0}))||e}))?function(e){if(!hH(e))return!1;switch(eU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sU||!!uU(aU,nU(e))}:lU,fU=pV("species"),dU=rH.Array,pU=function(e,t){return new(HV(n=e)&&(r=n.constructor,(cU(r)&&(r===dU||HV(r.prototype))||PH(r)&&null===(r=r[fU]))&&(r=void 0)),void 0===r?dU:r)(0===t?0:t);var n,r},hU=pV("species"),gU=pV("isConcatSpreadable"),vU=rH.TypeError,yU=VH>=51||!gH((function(){var e=[];return e[gU]=!1,e.concat()[0]!==e})),mU=VH>=51||!gH((function(){var e=[];return(e.constructor={})[hU]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),bU=function(e){if(!PH(e))return!1;var t=e[gU];return void 0!==t?!!t:HV(e)};$V({target:"Array",proto:!0,forced:!yU||!mU},{concat:function(e){var t,n,r,o,i,a=nV(this),u=pU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(bU(i=-1===t?a:arguments[t])){if(s+(o=qV(i))>9007199254740991)throw vU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&KV(u,s,i[n])}else{if(s>=9007199254740991)throw vU("Maximum allowed index exceeded");KV(u,s++,i)}return u.length=s,u}});var wU,EU=rH.String,DU=function(e){if("Symbol"===eU(e))throw TypeError("Cannot convert a Symbol value to a string");return EU(e)},CU=Math.max,SU=Math.min,xU=function(e,t){var n=WV(e);return n<0?CU(n+t,0):SU(n,t)},AU=function(e){return function(t,n,r){var o,i=_H(t),a=qV(i),u=xU(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}},OU={includes:AU(!0),indexOf:AU(!1)},kU={},BU=OU.indexOf,FU=pH([].push),TU=function(e,t){var n,r=_H(e),o=0,i=[];for(n in r)!oV(kU,n)&&oV(r,n)&&FU(i,n);for(;t.length>o;)oV(r,n=t[o++])&&(~BU(i,n)||FU(i,n));return i},_U=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],PU=Object.keys||function(e){return TU(e,_U)},jU=vH?Object.defineProperties:function(e,t){jV(e);for(var n,r=_H(t),o=PU(t),i=o.length,a=0;i>a;)LV.f(e,n=o[a++],r[n]);return e},NU=IH("document","documentElement"),IU=eV("keys"),LU=function(e){return IU[e]||(IU[e]=sV(e))},RU=LU("IE_PROTO"),MU=function(){},zU=function(e){return"<script>"+e+"<\/script>"},$U=function(e){e.write(zU("")),e.close();var t=e.parentWindow.Object;return e=null,t},HU=function(){try{wU=new ActiveXObject("htmlfile")}catch(r){}var e,t;HU="undefined"!=typeof document?document.domain&&wU?$U(wU):((t=bV("iframe")).style.display="none",NU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zU("document.F=Object")),e.close(),e.F):$U(wU);for(var n=_U.length;n--;)delete HU.prototype[_U[n]];return HU()};kU[RU]=!0;var VU,UU,WU,GU=Object.create||function(e,t){var n;return null!==e?(MU.prototype=jV(e),n=new MU,MU.prototype=null,n[RU]=e):n=HU(),void 0===t?n:jU(n,t)},qU=_U.concat("length","prototype"),KU={f:Object.getOwnPropertyNames||function(e){return TU(e,qU)}},YU=rH.Array,XU=Math.max,ZU=KU.f,JU="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],QU={f:function(e){return JU&&"Window"==AH(e)?function(e){try{return ZU(e)}catch(t){return function(e,t,n){for(var r=qV(e),o=xU(void 0,r),i=xU(r,r),a=YU(XU(i-o,0)),u=0;o<i;o++,u++)KV(a,u,e[o]);return a.length=u,a}(JU)}}(e):ZU(_H(e))}},eW={f:Object.getOwnPropertySymbols},tW=pH([].slice),nW=function(e,t,n,r){r&&r.enumerable?e[t]=n:RV(e,t,n)},rW={f:pV},oW=LV.f,iW=function(e){var t=jH.Symbol||(jH.Symbol={});oV(t,e)||oW(t,e,{value:rW.f(e)})},aW=XV?{}.toString:function(){return"[object "+eU(this)+"]"},uW=LV.f,sW=pV("toStringTag"),lW=function(e,t,n,r){if(e){var o=n?e:e.prototype;oV(o,sW)||uW(o,sW,{configurable:!0,value:t}),r&&!XV&&RV(o,"toString",aW)}},cW=rH.WeakMap,fW=hH(cW)&&/native code/.test(nU(cW)),dW=rH.TypeError,pW=rH.WeakMap;if(fW||QH.state){var hW=QH.state||(QH.state=new pW),gW=pH(hW.get),vW=pH(hW.has),yW=pH(hW.set);VU=function(e,t){if(vW(hW,e))throw new dW("Object already initialized");return t.facade=e,yW(hW,e,t),t},UU=function(e){return gW(hW,e)||{}},WU=function(e){return vW(hW,e)}}else{var mW=LU("state");kU[mW]=!0,VU=function(e,t){if(oV(e,mW))throw new dW("Object already initialized");return t.facade=e,RV(e,mW,t),t},UU=function(e){return oV(e,mW)?e[mW]:{}},WU=function(e){return oV(e,mW)}}var bW={set:VU,get:UU,has:WU,enforce:function(e){return WU(e)?UU(e):VU(e,{})},getterFor:function(e){return function(t){var n;if(!PH(t)||(n=UU(t)).type!==e)throw dW("Incompatible receiver, "+e+" required");return n}}},wW=pH([].push),EW=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=nV(s),g=BH(h),v=TV(l,c),y=qV(g),m=0,b=f||pU,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:wW(w,d)}else switch(e){case 4:return!1;case 7:wW(w,d)}return i?-1:r||o?o:w}},DW=[EW(0),EW(1),EW(2),EW(3),EW(4),EW(5),EW(6),EW(7)][0],CW=LU("hidden"),SW=pV("toPrimitive"),xW=bW.set,AW=bW.getterFor("Symbol"),OW=Object.prototype,kW=rH.Symbol,BW=kW&&kW.prototype,FW=rH.TypeError,TW=rH.QObject,_W=IH("JSON","stringify"),PW=DV.f,jW=LV.f,NW=QU.f,IW=DH.f,LW=pH([].push),RW=eV("symbols"),MW=eV("op-symbols"),zW=eV("string-to-symbol-registry"),$W=eV("symbol-to-string-registry"),HW=eV("wks"),VW=!TW||!TW.prototype||!TW.prototype.findChild,UW=vH&&gH((function(){return 7!=GU(jW({},"a",{get:function(){return jW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=PW(OW,t);r&&delete OW[t],jW(e,t,n),r&&e!==OW&&jW(OW,t,r)}:jW,WW=function(e,t){var n=RW[e]=GU(BW);return xW(n,{type:"Symbol",tag:e,description:t}),vH||(n.description=t),n},GW=function(e,t,n){e===OW&&GW(MW,t,n),jV(e);var r=vV(t);return jV(n),oV(RW,r)?(n.enumerable?(oV(e,CW)&&e[CW][r]&&(e[CW][r]=!1),n=GU(n,{enumerable:CH(0,!1)})):(oV(e,CW)||jW(e,CW,CH(1,{})),e[CW][r]=!0),UW(e,r,n)):jW(e,r,n)},qW=function(e,t){jV(e);var n=_H(t),r=PU(n).concat(ZW(n));return DW(r,(function(t){vH&&!mH(KW,n,t)||GW(e,t,n[t])})),e},KW=function(e){var t=vV(e),n=mH(IW,this,t);return!(this===OW&&oV(RW,t)&&!oV(MW,t))&&(!(n||!oV(this,t)||!oV(RW,t)||oV(this,CW)&&this[CW][t])||n)},YW=function(e,t){var n=_H(e),r=vV(t);if(n!==OW||!oV(RW,r)||oV(MW,r)){var o=PW(n,r);return!o||!oV(RW,r)||oV(n,CW)&&n[CW][r]||(o.enumerable=!0),o}},XW=function(e){var t=NW(_H(e)),n=[];return DW(t,(function(e){oV(RW,e)||oV(kU,e)||LW(n,e)})),n},ZW=function(e){var t=e===OW,n=NW(t?MW:_H(e)),r=[];return DW(n,(function(e){!oV(RW,e)||t&&!oV(OW,e)||LW(r,RW[e])})),r};if(UH||(BW=(kW=function(){if(LH(BW,this))throw FW("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?DU(arguments[0]):void 0,t=sV(e),n=function(e){this===OW&&mH(n,MW,e),oV(this,CW)&&oV(this[CW],t)&&(this[CW][t]=!1),UW(this,t,CH(1,e))};return vH&&VW&&UW(OW,t,{configurable:!0,set:n}),WW(t,e)}).prototype,nW(BW,"toString",(function(){return AW(this).tag})),nW(kW,"withoutSetter",(function(e){return WW(sV(e),e)})),DH.f=KW,LV.f=GW,DV.f=YW,KU.f=QU.f=XW,eW.f=ZW,rW.f=function(e){return WW(pV(e),e)},vH&&jW(BW,"description",{configurable:!0,get:function(){return AW(this).description}})),$V({global:!0,wrap:!0,forced:!UH,sham:!UH},{Symbol:kW}),DW(PU(HW),(function(e){iW(e)})),$V({target:"Symbol",stat:!0,forced:!UH},{for:function(e){var t=DU(e);if(oV(zW,t))return zW[t];var n=kW(t);return zW[t]=n,$W[n]=t,n},keyFor:function(e){if(!qH(e))throw FW(e+" is not a symbol");if(oV($W,e))return $W[e]},useSetter:function(){VW=!0},useSimple:function(){VW=!1}}),$V({target:"Object",stat:!0,forced:!UH,sham:!vH},{create:function(e,t){return void 0===t?GU(e):qW(GU(e),t)},defineProperty:GW,defineProperties:qW,getOwnPropertyDescriptor:YW}),$V({target:"Object",stat:!0,forced:!UH},{getOwnPropertyNames:XW,getOwnPropertySymbols:ZW}),$V({target:"Object",stat:!0,forced:gH((function(){eW.f(1)}))},{getOwnPropertySymbols:function(e){return eW.f(nV(e))}}),_W){var JW=!UH||gH((function(){var e=kW();return"[null]"!=_W([e])||"{}"!=_W({a:e})||"{}"!=_W(Object(e))}));$V({target:"JSON",stat:!0,forced:JW},{stringify:function(e,t,n){var r=tW(arguments),o=t;if((PH(t)||void 0!==e)&&!qH(e))return HV(t)||(t=function(e,t){if(hH(o)&&(t=mH(o,this,e,t)),!qH(t))return t}),r[1]=t,sH(_W,null,r)}})}if(!BW[SW]){var QW=BW.valueOf;nW(BW,SW,(function(e){return mH(QW,this)}))}lW(kW,"Symbol"),kU[CW]=!0,iW("asyncIterator"),iW("hasInstance"),iW("isConcatSpreadable"),iW("iterator"),iW("match"),iW("matchAll"),iW("replace"),iW("search"),iW("species"),iW("split"),iW("toPrimitive"),iW("toStringTag"),iW("unscopables"),lW(rH.JSON,"JSON",!0);var eG,tG,nG,rG=jH.Symbol,oG={},iG=Function.prototype,aG=vH&&Object.getOwnPropertyDescriptor,uG=oV(iG,"name"),sG={EXISTS:uG,PROPER:uG&&"something"===function(){}.name,CONFIGURABLE:uG&&(!vH||vH&&aG(iG,"name").configurable)},lG=!gH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cG=LU("IE_PROTO"),fG=rH.Object,dG=fG.prototype,pG=lG?fG.getPrototypeOf:function(e){var t=nV(e);if(oV(t,cG))return t[cG];var n=t.constructor;return hH(n)&&t instanceof n?n.prototype:t instanceof fG?dG:null},hG=pV("iterator"),gG=!1;[].keys&&("next"in(nG=[].keys())?(tG=pG(pG(nG)))!==Object.prototype&&(eG=tG):gG=!0);var vG=null==eG||gH((function(){var e={};return eG[hG].call(e)!==e}));eG=vG?{}:GU(eG),hH(eG[hG])||nW(eG,hG,(function(){return this}));var yG={IteratorPrototype:eG,BUGGY_SAFARI_ITERATORS:gG},mG=yG.IteratorPrototype,bG=function(){return this};rH.String,rH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{pH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(t){}}();var wG=sG.PROPER,EG=yG.BUGGY_SAFARI_ITERATORS,DG=pV("iterator"),CG=function(){return this},SG=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=GU(mG,{next:CH(1,s)}),lW(u,l,!1,!0),oG[l]=bG;var c,f,d,p=function(e){if(e===o&&m)return m;if(!EG&&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[DG]||v["@@iterator"]||o&&v[o],m=!EG&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=pG(b.call(new e)))!==Object.prototype&&c.next&&(lW(c,h,!0,!0),oG[h]=CG),wG&&"values"==o&&y&&"values"!==y.name&&(g=!0,m=function(){return mH(y,this)}),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(EG||g||!(d in v))&&nW(v,d,f[d]);else $V({target:t,proto:!0,forced:EG||g},f);return a&&v[DG]!==m&&nW(v,DG,m,{name:o}),oG[t]=m,f},xG=bW.set,AG=bW.getterFor("Array Iterator");SG(Array,"Array",(function(e,t){xG(this,{type:"Array Iterator",target:_H(e),index:0,kind:t})}),(function(){var e=AG(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"),oG.Arguments=oG.Array;var OG=pV("toStringTag");for(var kG 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 BG=rH[kG],FG=BG&&BG.prototype;FG&&eU(FG)!==OG&&RV(FG,OG,kG),oG[kG]=oG.Array}var TG=rG;iW("asyncDispose"),iW("dispose"),iW("matcher"),iW("metadata"),iW("observable"),iW("patternMatch"),iW("replaceAll");var _G=TG,PG=pH("".charAt),jG=pH("".charCodeAt),NG=pH("".slice),IG=function(e){return function(t,n){var r,o,i=DU(TH(t)),a=WV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=jG(i,a))<55296||r>56319||a+1===u||(o=jG(i,a+1))<56320||o>57343?e?PG(i,a):r:e?NG(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),LG=bW.set,RG=bW.getterFor("String Iterator");SG(String,"String",(function(e){LG(this,{type:"String Iterator",string:DU(e),index:0})}),(function(){var e,t=RG(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=IG(n,r),t.index+=e.length,{value:e,done:!1})}));var MG=rW.f("iterator"),zG=KP((function(e){function t(n){return"function"==typeof _G&&"symbol"==typeof MG?(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 _G&&e.constructor===_G&&e!==_G.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})),$G=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(zG),HG=VN.EXISTS,VG=wN.f,UG=Function.prototype,WG=dj(UG.toString),GG=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,qG=dj(GG.exec);ej&&!HG&&VG(UG,"name",{configurable:!0,get:function(){try{return qG(GG,WG(this))[1]}catch(zl){return""}}});var KG=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=Mf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!UR(Mf.nodes(e,{match:function(t){return"pre"===MO.getNodeType(t)||!!Mf.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}(),YG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("fontSize.title"),t.iconSvg=wM,t.mark="fontSize",t}return MR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:xP("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===$G(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}(KG),XG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("fontFamily.title"),t.iconSvg=EM,t.mark="fontFamily",t.selectPanelWidth=150,t}return MR(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:xP("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===$G(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}(KG),ZG={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Fz(i,{fontSize:r}),o&&Fz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!ld.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((PR(t)||"span"!==NR(n=Hp(t)))&&(n=Hp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),jR(n)):t},preParseHtml:[J$],parseStyleHtml:function(e,t,n){var r=Hp(e);if(!ld.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=IR(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=IR(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 YG},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 XG},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},JG={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Hp(e),n=IR(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]}},QG=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=UR(Mf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":UR(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=UR(Mf.nodes(e,{match:function(e){var t=MO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),eq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("indent.decrease"),t.iconSvg=DM,t}return MR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Od.setNodes(e,{indent:null},{match:function(e){return Pf.isElement(e)}})},t}(QG),tq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("indent.increase"),t.iconSvg=CM,t}return MR(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Od.setNodes(e,{indent:"2em"},{match:function(e){return Pf.isElement(e)},mode:"highest"})},t}(QG),nq={renderStyle:function(e,t){if(!Pf.isElement(e))return t;var n=e.indent,r=t;return n&&Fz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Pf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Hp(t);return r.css("text-indent",n),jR(r)},preParseHtml:[JG],parseStyleHtml:function(e,t,n){var r=Hp(e);if(!Pf.isElement(t))return t;var o=t,i=IR(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new tq}},{key:"delIndent",factory:function(){return new eq}}]},rq=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=UR(Mf.nodes(e,{match:function(e){var t=MO.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!MO.getSelectedElems(e).some((function(t){if(Mf.isVoid(e,t)&&Mf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),oq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("justify.left"),t.iconSvg=SM,t}return MR(t,e),t.prototype.exec=function(e,t){Od.setNodes(e,{textAlign:"left"},{match:function(t){return Pf.isElement(t)&&!e.isInline(t)}})},t}(rq),iq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("justify.right"),t.iconSvg=xM,t}return MR(t,e),t.prototype.exec=function(e,t){Od.setNodes(e,{textAlign:"right"},{match:function(t){return Pf.isElement(t)&&!e.isInline(t)}})},t}(rq),aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("justify.center"),t.iconSvg=AM,t}return MR(t,e),t.prototype.exec=function(e,t){Od.setNodes(e,{textAlign:"center"},{match:function(t){return Pf.isElement(t)&&!e.isInline(t)}})},t}(rq),uq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=xP("justify.justify"),t.iconSvg=OM,t}return MR(t,e),t.prototype.exec=function(e,t){Od.setNodes(e,{textAlign:"justify"},{match:function(t){return Pf.isElement(t)&&!e.isInline(t)}})},t}(rq),sq={renderStyle:function(e,t){if(!Pf.isElement(e))return t;var n=e.textAlign,r=t;return n&&Fz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Pf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Hp(t);return r.css("text-align",n),jR(r)},parseStyleHtml:function(e,t,n){var r=Hp(e);if(!Pf.isElement(t))return t;var o=t,i=IR(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new oq}},{key:"justifyRight",factory:function(){return new iq}},{key:"justifyCenter",factory:function(){return new aq}},{key:"justifyJustify",factory:function(){return new uq}}]},lq=function(){function e(){this.title=xP("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:xP("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=UR(Mf.nodes(e,{match:function(e){var t=MO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Pf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Od.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),cq={renderStyle:function(e,t){if(!Pf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Fz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Pf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Hp(t);return r.css("line-height",n),jR(r)},parseStyleHtml:function(e,t,n){var r=Hp(e);if(!Pf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=IR(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new lq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},fq=function(){function e(){this.title=xP("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}(),dq=function(){function e(){this.title=xP("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}(),pq={menus:[{key:"redo",factory:function(){return new fq}},{key:"undo",factory:function(){return new dq}}]},hq={type:"divider",renderElem:function(e,t,n){return fg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:MO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[fg("hr")])}},gq=function(){function e(){this.title=xP("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!MO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=MO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Od.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),vq={renderElems:[hq],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 gq}}],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=UR(e,2),o=t[0],i=t[1];if("divider"!==MO.getNodeType(o))return n([o,i]);MO.isLastNode(r,o)&&Od.insertNodes(r,MO.genEmptyParagraph(),{at:[i[0]+1]})},r}},yq=HI.map;wI({target:"Array",proto:!0,forced:!UI("map")},{map:function(e){return yq(this,e,arguments.length>1?arguments[1]:void 0)}});var mq=dj([].join),bq=mj!=Object,wq=rM("join",",");wI({target:"Array",proto:!0,forced:bq||!wq},{join:function(e){return mq(Ej(this),void 0===e?",":e)}});var Eq=function(){function e(){this.title=xP("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=MO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=MO.getParentNode(e,t);return null==n||"pre"!==MO.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=MO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=MO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Uf.string(t);Od.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Od.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Mf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=VR(i),u=a.next();!u.done;u=a.next()){var s=UR(u.value,1)[0];s&&o.push(Uf.string(s))}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Od.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Od.insertNodes(e,l,{mode:"highest"})},e}(),Dq={key:"codeBlock",factory:function(){return new Eq}};wI({target:"String",proto:!0,forced:XR("anchor")},{anchor:function(e){return YR(this,"a","name",e)}}),NL("match",(function(e,t,n){return[function(t){var n=wj(this),r=null==t?void 0:$j(t,e);return r?nj(r,t,n):new RegExp(t)[e](YI(n))},function(e){var r=yN(this),o=YI(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return YL(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=YL(r,o));){var c=YI(u[0]);s[l]=c,""===c&&(r.lastIndex=zL(o,JN(r.lastIndex),a)),l++}return 0===l?null:s}]}));var Cq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);return 0===(t=t.filter((function(e){return"code"===MO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===MO.getNodeType(e)}))}}},Sq={menus:[Dq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=MO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Uf.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=UR(e,2),r=t[0],i=t[1],a=MO.getNodeType(r);return"code"===a&&i.length<=1&&Od.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(MO.isLastNode(o,r)&&Od.insertNodes(o,MO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==MO.getNodeType(r.children[0])&&(Od.unwrapNodes(o),Od.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=MO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Mf.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return Tg("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return Tg("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=Hp(e);if("code"!==NR(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Hp(e)[0].textContent||""}]}}},Cq]},xq=function(){function e(){this.title=xP("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}(),Aq={menus:[{key:"fullScreen",factory:function(){return new xq}}]},Oq=function(){function e(){this.title=xP("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||!!nd.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Od.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Mf.start(e,r))}},e}(),kq=[RM,Iz,ZG,nq,sq,cq,j$,vq,X$,r$,Sq,K$,xz,GR,R$,pq,Aq,{menus:[{key:"enter",factory:function(){return new Oq}}]}];SP("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),SP("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Bq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Tq,_q,Pq=function(e){return e&&e.Math==Math&&e},jq=Pq("object"==typeof globalThis&&globalThis)||Pq("object"==typeof window&&window)||Pq("object"==typeof self&&self)||Pq("object"==typeof Bq&&Bq)||function(){return this}()||Function("return this")(),Nq=Function.prototype,Iq=Nq.bind,Lq=Nq.call,Rq=Iq&&Iq.bind(Lq),Mq=Iq?function(e){return e&&Rq(Lq,e)}:function(e){return e&&function(){return Lq.apply(e,arguments)}},zq=function(e){try{return!!e()}catch(t){return!0}},$q=Mq({}.toString),Hq=Mq("".slice),Vq=function(e){return Hq($q(e),8,-1)},Uq=jq.Object,Wq=Mq("".split),Gq=zq((function(){return!Uq("z").propertyIsEnumerable(0)}))?function(e){return"String"==Vq(e)?Wq(e,""):Uq(e)}:Uq,qq=jq.TypeError,Kq=function(e){if(null==e)throw qq("Can't call method on "+e);return e},Yq=function(e){return Gq(Kq(e))},Xq=Object.defineProperty,Zq=function(e,t){try{Xq(jq,e,{value:t,configurable:!0,writable:!0})}catch(OP){jq[e]=t}return t},Jq=jq["__core-js_shared__"]||Zq("__core-js_shared__",{}),Qq=Fq((function(e){(e.exports=function(e,t){return Jq[e]||(Jq[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),eK=jq.Object,tK=function(e){return eK(Kq(e))},nK=Mq({}.hasOwnProperty),rK=Object.hasOwn||function(e,t){return nK(tK(e),t)},oK=0,iK=Math.random(),aK=Mq(1..toString),uK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+aK(++oK+iK,36)},sK=function(e){return"function"==typeof e},lK=function(e){return sK(e)?e:void 0},cK=function(e,t){return arguments.length<2?lK(jq[e]):jq[e]&&jq[e][t]},fK=cK("navigator","userAgent")||"",dK=jq.process,pK=jq.Deno,hK=dK&&dK.versions||pK&&pK.version,gK=hK&&hK.v8;gK&&(_q=(Tq=gK.split("."))[0]>0&&Tq[0]<4?1:+(Tq[0]+Tq[1])),!_q&&fK&&(!(Tq=fK.match(/Edge\/(\d+)/))||Tq[1]>=74)&&(Tq=fK.match(/Chrome\/(\d+)/))&&(_q=+Tq[1]);var vK,yK=_q,mK=!!Object.getOwnPropertySymbols&&!zq((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yK&&yK<41})),bK=mK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wK=Qq("wks"),EK=jq.Symbol,DK=EK&&EK.for,CK=bK?EK:EK&&EK.withoutSetter||uK,SK=function(e){if(!rK(wK,e)||!mK&&"string"!=typeof wK[e]){var t="Symbol."+e;mK&&rK(EK,e)?wK[e]=EK[e]:wK[e]=bK&&DK?DK(t):CK(t)}return wK[e]},xK=function(e){return"object"==typeof e?null!==e:sK(e)},AK=jq.String,OK=jq.TypeError,kK=function(e){if(xK(e))return e;throw OK(AK(e)+" is not an object")},BK=!zq((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),FK=jq.document,TK=xK(FK)&&xK(FK.createElement),_K=function(e){return TK?FK.createElement(e):{}},PK=!BK&&!zq((function(){return 7!=Object.defineProperty(_K("div"),"a",{get:function(){return 7}}).a})),jK=Function.prototype.call,NK=jK.bind?jK.bind(jK):function(){return jK.apply(jK,arguments)},IK=Mq({}.isPrototypeOf),LK=jq.Object,RK=bK?function(e){return"symbol"==typeof e}:function(e){var t=cK("Symbol");return sK(t)&&IK(t.prototype,LK(e))},MK=jq.String,zK=function(e){try{return MK(e)}catch(t){return"Object"}},$K=jq.TypeError,HK=function(e){if(sK(e))return e;throw $K(zK(e)+" is not a function")},VK=function(e,t){var n=e[t];return null==n?void 0:HK(n)},UK=jq.TypeError,WK=jq.TypeError,GK=SK("toPrimitive"),qK=function(e){var t=function(e,t){if(!xK(e)||RK(e))return e;var n,r=VK(e,GK);if(r){if(void 0===t&&(t="default"),n=NK(r,e,t),!xK(n)||RK(n))return n;throw WK("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&sK(n=e.toString)&&!xK(r=NK(n,e)))return r;if(sK(n=e.valueOf)&&!xK(r=NK(n,e)))return r;if("string"!==t&&sK(n=e.toString)&&!xK(r=NK(n,e)))return r;throw UK("Can't convert object to primitive value")}(e,t)}(e,"string");return RK(t)?t:t+""},KK=jq.TypeError,YK=Object.defineProperty,XK={f:BK?YK:function(e,t,n){if(kK(e),t=qK(t),kK(n),PK)try{return YK(e,t,n)}catch(r){}if("get"in n||"set"in n)throw KK("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ZK=Math.ceil,JK=Math.floor,QK=function(e){var t=+e;return t!=t||0===t?0:(t>0?JK:ZK)(t)},eY=Math.max,tY=Math.min,nY=function(e,t){var n=QK(e);return n<0?eY(n+t,0):tY(n,t)},rY=Math.min,oY=function(e){return e>0?rY(QK(e),9007199254740991):0},iY=function(e){return oY(e.length)},aY=function(e){return function(t,n,r){var o,i=Yq(t),a=iY(i),u=nY(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}},uY={includes:aY(!0),indexOf:aY(!1)},sY={},lY=uY.indexOf,cY=Mq([].push),fY=function(e,t){var n,r=Yq(e),o=0,i=[];for(n in r)!rK(sY,n)&&rK(r,n)&&cY(i,n);for(;t.length>o;)rK(r,n=t[o++])&&(~lY(i,n)||cY(i,n));return i},dY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pY=Object.keys||function(e){return fY(e,dY)},hY=BK?Object.defineProperties:function(e,t){kK(e);for(var n,r=Yq(t),o=pY(t),i=o.length,a=0;i>a;)XK.f(e,n=o[a++],r[n]);return e},gY=cK("document","documentElement"),vY=Qq("keys"),yY=function(e){return vY[e]||(vY[e]=uK(e))},mY=yY("IE_PROTO"),bY=function(){},wY=function(e){return"<script>"+e+"<\/script>"},EY=function(e){e.write(wY("")),e.close();var t=e.parentWindow.Object;return e=null,t},DY=function(){try{vK=new ActiveXObject("htmlfile")}catch(r){}var e,t;DY="undefined"!=typeof document?document.domain&&vK?EY(vK):((t=_K("iframe")).style.display="none",gY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(wY("document.F=Object")),e.close(),e.F):EY(vK);for(var n=dY.length;n--;)delete DY.prototype[dY[n]];return DY()};sY[mY]=!0;var CY=Object.create||function(e,t){var n;return null!==e?(bY.prototype=kK(e),n=new bY,bY.prototype=null,n[mY]=e):n=DY(),void 0===t?n:hY(n,t)},SY=SK("unscopables"),xY=Array.prototype;null==xY[SY]&&XK.f(xY,SY,{configurable:!0,value:CY(null)});var AY=function(e){xY[SY][e]=!0},OY={},kY=Mq(Function.toString);sK(Jq.inspectSource)||(Jq.inspectSource=function(e){return kY(e)});var BY,FY,TY,_Y=Jq.inspectSource,PY=jq.WeakMap,jY=sK(PY)&&/native code/.test(_Y(PY)),NY=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},IY=BK?function(e,t,n){return XK.f(e,t,NY(1,n))}:function(e,t,n){return e[t]=n,e},LY=jq.TypeError,RY=jq.WeakMap;if(jY||Jq.state){var MY=Jq.state||(Jq.state=new RY),zY=Mq(MY.get),$Y=Mq(MY.has),HY=Mq(MY.set);BY=function(e,t){if($Y(MY,e))throw new LY("Object already initialized");return t.facade=e,HY(MY,e,t),t},FY=function(e){return zY(MY,e)||{}},TY=function(e){return $Y(MY,e)}}else{var VY=yY("state");sY[VY]=!0,BY=function(e,t){if(rK(e,VY))throw new LY("Object already initialized");return t.facade=e,IY(e,VY,t),t},FY=function(e){return rK(e,VY)?e[VY]:{}},TY=function(e){return rK(e,VY)}}var UY,WY,GY,qY={set:BY,get:FY,has:TY,enforce:function(e){return TY(e)?FY(e):BY(e,{})},getterFor:function(e){return function(t){var n;if(!xK(t)||(n=FY(t)).type!==e)throw LY("Incompatible receiver, "+e+" required");return n}}},KY={}.propertyIsEnumerable,YY=Object.getOwnPropertyDescriptor,XY={f:YY&&!KY.call({1:2},1)?function(e){var t=YY(this,e);return!!t&&t.enumerable}:KY},ZY=Object.getOwnPropertyDescriptor,JY={f:BK?ZY:function(e,t){if(e=Yq(e),t=qK(t),PK)try{return ZY(e,t)}catch(n){}if(rK(e,t))return NY(!NK(XY.f,e,t),e[t])}},QY=Function.prototype,eX=BK&&Object.getOwnPropertyDescriptor,tX=rK(QY,"name"),nX={EXISTS:tX,PROPER:tX&&"something"===function(){}.name,CONFIGURABLE:tX&&(!BK||BK&&eX(QY,"name").configurable)},rX=Fq((function(e){var t=nX.CONFIGURABLE,n=qY.get,r=qY.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;sK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!rK(i,"name")||t&&i.name!==f)&&IY(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==jq?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:IY(e,n,i)):l?e[n]=i:Zq(n,i)})(Function.prototype,"toString",(function(){return sK(this)&&n(this).source||_Y(this)}))})),oX=dY.concat("length","prototype"),iX={f:Object.getOwnPropertyNames||function(e){return fY(e,oX)}},aX={f:Object.getOwnPropertySymbols},uX=Mq([].concat),sX=cK("Reflect","ownKeys")||function(e){var t=iX.f(kK(e)),n=aX.f;return n?uX(t,n(e)):t},lX=function(e,t){for(var n=sX(t),r=XK.f,o=JY.f,i=0;i<n.length;i++){var a=n[i];rK(e,a)||r(e,a,o(t,a))}},cX=/#|\.prototype\./,fX=function(e,t){var n=pX[dX(e)];return n==gX||n!=hX&&(sK(t)?zq(t):!!t)},dX=fX.normalize=function(e){return String(e).replace(cX,".").toLowerCase()},pX=fX.data={},hX=fX.NATIVE="N",gX=fX.POLYFILL="P",vX=fX,yX=JY.f,mX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?jq:l?jq[u]||Zq(u,{}):(jq[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=yX(n,r))&&a.value:n[r],!vX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;lX(i,o)}(e.sham||o&&o.sham)&&IY(i,"sham",!0),rX(n,r,i,e)}},bX=!zq((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),wX=yY("IE_PROTO"),EX=jq.Object,DX=EX.prototype,CX=bX?EX.getPrototypeOf:function(e){var t=tK(e);if(rK(t,wX))return t[wX];var n=t.constructor;return sK(n)&&t instanceof n?n.prototype:t instanceof EX?DX:null},SX=SK("iterator"),xX=!1;[].keys&&("next"in(GY=[].keys())?(WY=CX(CX(GY)))!==Object.prototype&&(UY=WY):xX=!0);var AX=null==UY||zq((function(){var e={};return UY[SX].call(e)!==e}));AX&&(UY={}),sK(UY[SX])||rX(UY,SX,(function(){return this}));var OX={IteratorPrototype:UY,BUGGY_SAFARI_ITERATORS:xX},kX=XK.f,BX=SK("toStringTag"),FX=function(e,t,n){e&&!rK(e=n?e:e.prototype,BX)&&kX(e,BX,{configurable:!0,value:t})},TX=OX.IteratorPrototype,_X=function(){return this},PX=jq.String,jX=jq.TypeError,NX=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Mq(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return kK(n),function(e){if("object"==typeof e||sK(e))return e;throw jX("Can't set "+PX(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),IX=nX.PROPER,LX=nX.CONFIGURABLE,RX=OX.IteratorPrototype,MX=OX.BUGGY_SAFARI_ITERATORS,zX=SK("iterator"),$X=function(){return this},HX=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=CY(TX,{next:NY(1,s)}),FX(u,l,!1),OY[l]=_X;var c,f,d,p=function(e){if(e===o&&m)return m;if(!MX&&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[zX]||v["@@iterator"]||o&&v[o],m=!MX&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=CX(b.call(new e)))!==Object.prototype&&c.next&&(CX(c)!==RX&&(NX?NX(c,RX):sK(c[zX])||rX(c,zX,$X)),FX(c,h,!0)),IX&&"values"==o&&y&&"values"!==y.name&&(LX?IY(v,"name","values"):(g=!0,m=function(){return NK(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(MX||g||!(d in v))&&rX(v,d,f[d]);else mX({target:t,proto:!0,forced:MX||g},f);return v[zX]!==m&&rX(v,zX,m,{name:o}),OY[t]=m,f},VX=qY.set,UX=qY.getterFor("Array Iterator"),WX=HX(Array,"Array",(function(e,t){VX(this,{type:"Array Iterator",target:Yq(e),index:0,kind:t})}),(function(){var e=UX(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");OY.Arguments=OY.Array,AY("keys"),AY("values"),AY("entries");var GX={};GX[SK("toStringTag")]="z";var qX="[object z]"===String(GX),KX=SK("toStringTag"),YX=jq.Object,XX="Arguments"==Vq(function(){return arguments}()),ZX=qX?Vq: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=YX(e),KX))?n:XX?Vq(t):"Object"==(r=Vq(t))&&sK(t.callee)?"Arguments":r},JX=qX?{}.toString:function(){return"[object "+ZX(this)+"]"};qX||rX(Object.prototype,"toString",JX,{unsafe:!0});var QX=jq.String,eZ=function(e){if("Symbol"===ZX(e))throw TypeError("Cannot convert a Symbol value to a string");return QX(e)},tZ=Mq("".charAt),nZ=Mq("".charCodeAt),rZ=Mq("".slice),oZ=function(e){return function(t,n){var r,o,i=eZ(Kq(t)),a=QK(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=nZ(i,a))<55296||r>56319||a+1===u||(o=nZ(i,a+1))<56320||o>57343?e?tZ(i,a):r:e?rZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},iZ={codeAt:oZ(!1),charAt:oZ(!0)},aZ=iZ.charAt,uZ=qY.set,sZ=qY.getterFor("String Iterator");HX(String,"String",(function(e){uZ(this,{type:"String Iterator",string:eZ(e),index:0})}),(function(){var e,t=sZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=aZ(n,r),t.index+=e.length,{value:e,done:!1})}));var lZ=function(e,t,n){for(var r in t)rX(e,r,t[r],n);return e},cZ=jq.Array,fZ=Math.max,dZ=iX.f,pZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hZ={f:function(e){return pZ&&"Window"==Vq(e)?function(e){try{return dZ(e)}catch(t){return function(e,t,n){for(var r,o,i,a,u=iY(e),s=nY(void 0,u),l=nY(u,u),c=cZ(fZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=qK(o))in r?XK.f(r,a,NY(0,i)):r[a]=i;return c.length=f,c}(pZ)}}(e):dZ(Yq(e))}},gZ=zq((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),vZ=Object.isExtensible,yZ=zq((function(){vZ(1)}))||gZ?function(e){return!!xK(e)&&(!gZ||"ArrayBuffer"!=Vq(e))&&(!vZ||vZ(e))}:vZ,mZ=!zq((function(){return Object.isExtensible(Object.preventExtensions({}))})),bZ=Fq((function(e){var t=XK.f,n=!1,r=uK("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=iX.f,t=Mq([].splice),o={};o[r]=1,e(o).length&&(iX.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},mX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:hZ.f}))},fastKey:function(e,t){if(!xK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!rK(e,r)){if(!yZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!rK(e,r)){if(!yZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return mZ&&n&&yZ(e)&&!rK(e,r)&&i(e),e}};sY[r]=!0})),wZ=Mq(Mq.bind),EZ=function(e,t){return HK(e),void 0===t?e:wZ?wZ(e,t):function(){return e.apply(t,arguments)}},DZ=SK("iterator"),CZ=Array.prototype,SZ=SK("iterator"),xZ=function(e){if(null!=e)return VK(e,SZ)||VK(e,"@@iterator")||OY[ZX(e)]},AZ=jq.TypeError,OZ=function(e,t,n){var r,o;kK(e);try{if(!(r=VK(e,"return"))){if("throw"===t)throw n;return n}r=NK(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return kK(r),n},kZ=jq.TypeError,BZ=function(e,t){this.stopped=e,this.result=t},FZ=BZ.prototype,TZ=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=EZ(t,f),v=function(e){return r&&OZ(r,"normal",e),new BZ(!0,e)},y=function(e){return d?(kK(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=xZ(e)))throw kZ(zK(e)+" is not iterable");if(void 0!==(c=o)&&(OY.Array===c||CZ[DZ]===c)){for(i=0,a=iY(e);a>i;i++)if((u=y(e[i]))&&IK(FZ,u))return u;return new BZ(!1)}r=function(e,t){var n=arguments.length<2?xZ(e):t;if(HK(n))return kK(NK(n,e));throw AZ(zK(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=NK(s,r)).done;){try{u=y(l.value)}catch(m){OZ(r,"throw",m)}if("object"==typeof u&&u&&IK(FZ,u))return u}return new BZ(!1)},_Z=jq.TypeError,PZ=function(e,t){if(IK(t,e))return e;throw _Z("Incorrect invocation")},jZ=SK("iterator"),NZ=!1;try{var IZ=0,LZ={next:function(){return{done:!!IZ++}},return:function(){NZ=!0}};LZ[jZ]=function(){return this},Array.from(LZ,(function(){throw 2}))}catch(Xve){}var RZ=Array.isArray||function(e){return"Array"==Vq(e)},MZ=function(){},zZ=[],$Z=cK("Reflect","construct"),HZ=/^\s*(?:class|function)\b/,VZ=Mq(HZ.exec),UZ=!HZ.exec(MZ),WZ=function(e){if(!sK(e))return!1;try{return $Z(MZ,zZ,e),!0}catch(t){return!1}},GZ=!$Z||zq((function(){var e;return WZ(WZ.call)||!WZ(Object)||!WZ((function(){e=!0}))||e}))?function(e){if(!sK(e))return!1;switch(ZX(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return UZ||!!VZ(HZ,_Y(e))}:WZ,qZ=SK("species"),KZ=jq.Array,YZ=function(e,t){return new(RZ(n=e)&&(r=n.constructor,(GZ(r)&&(r===KZ||RZ(r.prototype))||xK(r)&&null===(r=r[qZ]))&&(r=void 0)),void 0===r?KZ:r)(0===t?0:t);var n,r},XZ=Mq([].push),ZZ=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=tK(s),g=Gq(h),v=EZ(l,c),y=iY(g),m=0,b=f||YZ,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:XZ(w,d)}else switch(e){case 4:return!1;case 7:XZ(w,d)}return i?-1:r||o?o:w}},JZ={forEach:ZZ(0),map:ZZ(1),filter:ZZ(2),some:ZZ(3),every:ZZ(4),find:ZZ(5),findIndex:ZZ(6),filterReject:ZZ(7)},QZ=bZ.getWeakData,eJ=qY.set,tJ=qY.getterFor,nJ=JZ.find,rJ=JZ.findIndex,oJ=Mq([].splice),iJ=0,aJ=function(e){return e.frozen||(e.frozen=new uJ)},uJ=function(){this.entries=[]},sJ=function(e,t){return nJ(e.entries,(function(e){return e[0]===t}))};uJ.prototype={get:function(e){var t=sJ(this,e);if(t)return t[1]},has:function(e){return!!sJ(this,e)},set:function(e,t){var n=sJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=rJ(this.entries,(function(t){return t[0]===e}));return~t&&oJ(this.entries,t,1),!!~t}};var lJ,cJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){PZ(e,i),eJ(e,{type:t,id:iJ++,frozen:void 0}),null!=o&&TZ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=tJ(t),u=function(e,t,n){var r=a(e),o=QZ(kK(t),!0);return!0===o?aJ(r).set(t,n):o[r.id]=n,e};return lZ(i,{delete:function(e){var t=a(this);if(!xK(e))return!1;var n=QZ(e);return!0===n?aJ(t).delete(e):n&&rK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!xK(e))return!1;var n=QZ(e);return!0===n?aJ(t).has(e):n&&rK(n,t.id)}}),lZ(i,n?{get:function(e){var t=a(this);if(xK(e)){var n=QZ(e);return!0===n?aJ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},fJ=qY.enforce,dJ=!jq.ActiveXObject&&"ActiveXObject"in jq,pJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=jq[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Mq(u[e]);rX(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!xK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!xK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!xK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(vX(e,!sK(a)||!(o||u.forEach&&!zq((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),bZ.enable();else if(vX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=zq((function(){f.has(1)})),h=function(e,t){if(!NZ)return!1;var n=!1;try{var r={};r[jZ]=function(){return{next:function(){return{done:n=!0}}}},new a(r)}catch(o){}return n}(),g=!o&&zq((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){PZ(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,NX&&sK(c=o.constructor)&&c!==l&&xK(f=c.prototype)&&f!==l.prototype&&NX(n,f),n);return null!=t&&TZ(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,mX({global:!0,forced:s!=a},l),FX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",pJ,cJ);if(jY&&dJ){lJ=cJ.getConstructor(pJ,"WeakMap",!0),bZ.enable();var gJ=hJ.prototype,vJ=Mq(gJ.delete),yJ=Mq(gJ.has),mJ=Mq(gJ.get),bJ=Mq(gJ.set);lZ(gJ,{delete:function(e){if(xK(e)&&!yZ(e)){var t=fJ(this);return t.frozen||(t.frozen=new lJ),vJ(this,e)||t.frozen.delete(e)}return vJ(this,e)},has:function(e){if(xK(e)&&!yZ(e)){var t=fJ(this);return t.frozen||(t.frozen=new lJ),yJ(this,e)||t.frozen.has(e)}return yJ(this,e)},get:function(e){if(xK(e)&&!yZ(e)){var t=fJ(this);return t.frozen||(t.frozen=new lJ),yJ(this,e)?mJ(this,e):t.frozen.get(e)}return mJ(this,e)},set:function(e,t){if(xK(e)&&!yZ(e)){var n=fJ(this);n.frozen||(n.frozen=new lJ),yJ(this,e)?bJ(this,e,t):n.frozen.set(e,t)}else bJ(this,e,t);return this}})}var wJ={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},EJ=_K("span").classList,DJ=EJ&&EJ.constructor&&EJ.constructor.prototype,CJ=DJ===Object.prototype?void 0:DJ,SJ=SK("iterator"),xJ=SK("toStringTag"),AJ=WX.values,OJ=function(e,t){if(e){if(e[SJ]!==AJ)try{IY(e,SJ,AJ)}catch(r){e[SJ]=AJ}if(e[xJ]||IY(e,xJ,t),wJ[t])for(var n in WX)if(e[n]!==WX[n])try{IY(e,n,WX[n])}catch(r){e[n]=WX[n]}}};for(var kJ in wJ)OJ(jq[kJ]&&jq[kJ].prototype,kJ);OJ(CJ,"DOMTokenList");var BJ=new WeakMap,FJ={type:"list-item",renderElem:function(e,t,n){BJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";void 0!==a&&a?s=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=MO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Kf.previous(c),d=Mf.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 Tg("div",{style:u},Tg("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];ld.isText(i)&&(t=i)}return null==t?"":t.color||""}(e)},"data-w-e-reserve":!0},s),Tg("span",null,t))}},TJ=function(e,t){return TJ=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])},TJ(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 _J(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}TJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function PJ(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 jJ(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 NJ(e){return Mf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===MO.findPath(e,t).length}})}var IJ=uY.includes;mX({target:"Array",proto:!0},{includes:function(e){return IJ(this,e,arguments.length>1?arguments[1]:void 0)}}),AY("includes");var LJ,RJ,MJ=function(){var e=kK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},zJ=jq.RegExp,$J=zq((function(){var e=zJ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),HJ=$J||zq((function(){return!zJ("a","y").sticky})),VJ={BROKEN_CARET:$J||zq((function(){var e=zJ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:HJ,UNSUPPORTED_Y:$J},UJ=jq.RegExp,WJ=zq((function(){var e=UJ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),GJ=jq.RegExp,qJ=zq((function(){var e=GJ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),KJ=qY.get,YJ=Qq("native-string-replace",String.prototype.replace),XJ=RegExp.prototype.exec,ZJ=XJ,JJ=Mq("".charAt),QJ=Mq("".indexOf),eQ=Mq("".replace),tQ=Mq("".slice),nQ=(RJ=/b*/g,NK(XJ,LJ=/a/,"a"),NK(XJ,RJ,"a"),0!==LJ.lastIndex||0!==RJ.lastIndex),rQ=VJ.BROKEN_CARET,oQ=void 0!==/()??/.exec("")[1];(nQ||oQ||rQ||WJ||qJ)&&(ZJ=function(e){var t,n,r,o,i,a,u,s=this,l=KJ(s),c=eZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=NK(ZJ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=rQ&&s.sticky,h=NK(MJ,s),g=s.source,v=0,y=c;if(p&&(h=eQ(h,"y",""),-1===QJ(h,"g")&&(h+="g"),y=tQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==JJ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),oQ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),nQ&&(r=s.lastIndex),o=NK(XJ,p?n:s,y),p?o?(o.input=tQ(o.input,v),o[0]=tQ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:nQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),oQ&&o&&o.length>1&&NK(YJ,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=CY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var iQ=ZJ;mX({target:"RegExp",proto:!0,forced:/./.exec!==iQ},{exec:iQ});var aQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return MO.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!MO.getSelectedElems(e).some((function(t){if(Mf.isVoid(e,t)&&Mf.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)?Od.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Od.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),uQ='<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>',sQ='<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>',lQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=xP("listModule.unOrderedList"),t.iconSvg=uQ,t}return _J(t,e),t}(aQ),cQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=xP("listModule.orderedList"),t.iconSvg=sQ,t}return _J(t,e),t}(aQ),fQ={key:"bulletedList",factory:function(){return new lQ}},dQ={key:"numberedList",factory:function(){return new cQ}},pQ=[],hQ={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=BJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=MO.findPath(t,e);if(0===s[0])return u+1;var l=Kf.previous(s),c=Mf.node(t,l);if(!c)return 0;var f=jJ(c,1)[0];if(MO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",pQ.push(i);var s=function(e){var t=BJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=MO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Kf.next(s),c=Mf.node(t,l);if(!c)return 0;var f=jJ(c,1)[0];if(MO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,g=d.level,v=void 0===g?0:g;return v<u?u-v:v>u?0:v===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+pQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},gQ=SK("species"),vQ=JZ.filter,yQ=yK>=51||!zq((function(){var e=[];return(e.constructor={})[gQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));mX({target:"Array",proto:!0,forced:!yQ},{filter:function(e){return vQ(this,e,arguments.length>1?arguments[1]:void 0)}});var mQ=Function.prototype,bQ=mQ.apply,wQ=mQ.bind,EQ=mQ.call,DQ="object"==typeof Reflect&&Reflect.apply||(wQ?EQ.bind(bQ):function(){return EQ.apply(bQ,arguments)}),CQ=(SK("species"),RegExp.prototype),SQ=iZ.charAt,xQ=function(e,t,n){return t+(n?SQ(e,t).length:1)},AQ=Math.floor,OQ=Mq("".charAt),kQ=Mq("".replace),BQ=Mq("".slice),FQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,TQ=/\$([$&'`]|\d{1,2})/g,_Q=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=TQ;return void 0!==o&&(o=tK(o),s=FQ),kQ(i,s,(function(i,s){var l;switch(OQ(s,0)){case"$":return"$";case"&":return e;case"`":return BQ(t,0,n);case"'":return BQ(t,a);case"<":l=o[BQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=AQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?OQ(s,1):r[f-1]+OQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},PQ=jq.TypeError,jQ=function(e,t){var n=e.exec;if(sK(n)){var r=NK(n,e,t);return null!==r&&kK(r),r}if("RegExp"===Vq(e))return NK(iQ,e,t);throw PQ("RegExp#exec called on incompatible receiver")},NQ=SK("replace"),IQ=Math.max,LQ=Math.min,RQ=Mq([].concat),MQ=Mq([].push),zQ=Mq("".indexOf),$Q=Mq("".slice),HQ="$0"==="a".replace(/./,"$0"),VQ=!!/./[NQ]&&""===/./[NQ]("a","$0");!function(e,t,n,r){var o,i,a=SK(e),u=!zq((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!zq((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=Mq(/./[a]),c=(o=""[e],i=VQ?"$":"$0",[function(e,t){var n=Kq(this),r=null==e?void 0:VK(e,NQ);return r?NK(r,e,n,t):NK(o,eZ(n),e,t)},function(e,t){var n=kK(this),r=eZ(e);if("string"==typeof t&&-1===zQ(t,i)&&-1===zQ(t,"$<")){var a=function(e,t,n,r,o){var i=Mq(e),a=t.exec;return a===iQ||a===CQ.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=sK(t);s||(t=eZ(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=jQ(n,r);if(null===p)break;if(MQ(d,p),!c)break;""===eZ(p[0])&&(n.lastIndex=xQ(r,oY(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=eZ((p=d[y])[0]),b=IQ(LQ(QK(p.index),r.length),0),w=[],E=1;E<p.length;E++)MQ(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(s){var C=RQ([m],w,b,r);void 0!==D&&MQ(C,D);var S=eZ(DQ(t,void 0,C))}else S=_Q(m,r,b,w,D,t);b>=v&&(g+=$Q(r,v,b)+S,v=b+m.length)}return g+$Q(r,v)}]);rX(String.prototype,e,c[0]),rX(CQ,a,c[1])}}("replace",0,!!zq((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!HQ||VQ);var UQ=jq.TypeError,WQ=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&EZ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&RZ(s))l=iY(s),c=WQ(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw UQ("Exceed the acceptable array length");e[c]=s}c++}f++}return c},GQ=WQ;function qQ(e){return e.length?e[0].tagName.toLowerCase():""}mX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=tK(this),n=iY(t),r=YZ(t,0);return r.length=GQ(r,t,t,n,0,void 0===e?1:QK(e)),r}}),AY("flat"),mX({global:!0},{globalThis:jq}),lh&&(Hp.fn.append=lh),Gp&&(Hp.fn.attr=Gp),fh&&(Hp.fn.parent=fh);var KQ={renderElems:[FJ],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(nd.isExpanded(n))t(e);else{var r=MO.getSelectedNodeByType(o,"list-item");if(null!=r)if(0!==n.focus.offset)t(e);else{var i=r.level,a=void 0===i?0:i;a>0?Od.setNodes(o,{level:a-1}):Od.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(nd.isCollapsed(a)){var u=MO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void Od.setNodes(o,{level:l+1})}}if(nd.isExpanded(a)){var c=0,f=!1;try{for(var d=PJ(NJ(o)),p=d.next();!p.done;p=d.next()){var h=jJ(p.value,1)[0];"list-item"===MO.getNodeType(h)?c++:f=!0}}catch(w){e={error:w}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var g=PJ(NJ(o)),v=g.next();!v.done;v=g.next()){var y=jJ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Od.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=jJ(e,2),n=t[0],i=t[1],a=MO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Od.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[fQ,dQ],elemsToHtml:[hQ],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=Hp(e);0===(t=t.filter((function(e){return!!ld.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o="ol"===qQ(r.parent()),i=function(e){for(var t=0,n=e.parent(),r=qQ(n);"ul"===r||"ol"===r;)r=qQ(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},YQ=y((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",y="[object String]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,D=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[d]=C[h]=C[g]=C[y]=C[m]=!1;var S="object"==typeof v&&v&&v.Object===Object&&v,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(zl){}}(),_=T&&T.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function j(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var I=Array.prototype,L=Function.prototype,R=Object.prototype,M=A["__core-js_shared__"],z=L.toString,$=R.hasOwnProperty,H=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=R.toString,U=RegExp("^"+z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=B?A.Buffer:void 0,G=A.Symbol,q=A.Uint8Array,K=R.propertyIsEnumerable,Y=I.splice,X=G?G.toStringTag:void 0,Z=Object.getOwnPropertySymbols,J=W?W.isBuffer:void 0,Q=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=xe(A,"DataView"),te=xe(A,"Map"),ne=xe(A,"Promise"),re=xe(A,"Set"),oe=xe(A,"WeakMap"),ie=xe(Object,"create"),ae=Be(ee),ue=Be(te),se=Be(ne),le=Be(re),ce=Be(oe),fe=G?G.prototype:void 0,de=fe?fe.valueOf:void 0;function pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function ye(e){var t=this.__data__=new he(e);this.size=t.size}function me(e,t){for(var n=e.length;n--;)if(Fe(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=$.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(i){}var o=V.call(e);return r&&(t?e[X]=n:delete e[X]),o}(e):(t=e,V.call(t));var t}function we(e){return Le(e)&&be(e)==o}function Ee(e,t,n,r,l){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var v=_e(e),m=_e(t),E=v?i:Oe(e),D=m?i:Oe(t),C=(E=E==o?d:E)==d,S=(D=D==o?d:D)==d,x=E==D;if(x&&Pe(e)){if(!Pe(t))return!1;v=!0,C=!1}if(x&&!C)return p||(p=new ye),v||Re(e)?De(e,t,n,r,l,p):function(e,t,n,r,o,i,l){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!i(new q(e),new q(t)));case a:case u:case f:return Fe(+e,+t);case s:return e.name==t.name&&e.message==t.message;case h:case y:return e==t+"";case c:var d=j;case g:var p=1&r;if(d||(d=N),e.size!=t.size&&!p)return!1;var v=l.get(e);if(v)return v==t;r|=2,l.set(e,t);var m=De(d(e),d(t),r,o,i,l);return l.delete(e),m;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,E,n,r,l,p);if(!(1&n)){var A=C&&$.call(e,"__wrapped__"),O=S&&$.call(t,"__wrapped__");if(A||O){var k=A?e.value():e,B=O?t.value():t;return p||(p=new ye),l(k,B,n,r,p)}}return!!x&&(p||(p=new ye),function(e,t,n,r,o,i){var a=1&n,u=Ce(e),s=u.length;if(s!=Ce(t).length&&!a)return!1;for(var l=s;l--;){var c=u[l];if(!(a?c in t:$.call(t,c)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var d=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<s;){var h=e[c=u[l]],g=t[c];if(r)var v=a?r(g,h,c,t,e,i):r(h,g,c,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){d=!1;break}p||(p="constructor"==c)}if(d&&!p){var y=e.constructor,m=t.constructor;y==m||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof m&&m instanceof m||(d=!1)}return i.delete(e),i.delete(t),d}(e,t,n,r,l,p))}(e,t,n,r,Ee,l))}function De(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ve:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Ce(e){return n=Ae,r=Me(t=e),_e(t)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(t));var t,n,r}function Se(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function xe(e,t){var n,r,o=(r=t,null==(n=e)?void 0:n[r]);return function(e){return!(!Ie(e)||(t=e,H&&H in t))&&(je(e)?U:E).test(Be(e));var t}(o)?o:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(ie){var r=t[e];return r===n?void 0:r}return $.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:$.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ie&&void 0===t?n:t,this},he.prototype.clear=function(){this.__data__=[],this.size=0},he.prototype.delete=function(e){var t=this.__data__,n=me(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},he.prototype.get=function(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return me(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||he),string:new pe}},ge.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Se(this,e).get(e)},ge.prototype.has=function(e){return Se(this,e).has(e)},ge.prototype.set=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.clear=function(){this.__data__=new he,this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ye.prototype.get=function(e){return this.__data__.get(e)},ye.prototype.has=function(e){return this.__data__.has(e)},ye.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ae=Z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a)&&(i[o++]=a)}return i}(Z(e),(function(t){return K.call(e,t)})))}:function(){return[]},Oe=be;function ke(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||D.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return z.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Fe(e,t){return e===t||e!=e&&t!=t}(ee&&Oe(new ee(new ArrayBuffer(1)))!=w||te&&Oe(new te)!=c||ne&&Oe(ne.resolve())!=p||re&&Oe(new re)!=g||oe&&Oe(new oe)!=m)&&(Oe=function(e){var t=be(e),n=t==d?e.constructor:void 0,r=n?Be(n):"";if(r)switch(r){case ae:return w;case ue:return c;case se:return p;case le:return g;case ce:return m}return t});var Te=we(function(){return arguments}())?we:function(e){return Le(e)&&$.call(e,"callee")&&!K.call(e,"callee")},_e=Array.isArray,Pe=J||function(){return!1};function je(e){if(!Ie(e))return!1;var t=be(e);return t==l||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ne(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ie(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Re=_?function(e){return function(t){return e(t)}}(_):function(e){return Le(e)&&Ne(e.length)&&!!C[be(e)]};function Me(e){return null!=(t=e)&&Ne(t.length)&&!je(t)?function(e,t){var n=_e(e),r=!n&&Te(e),o=!n&&!r&&Pe(e),i=!n&&!r&&!o&&Re(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!$.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ke(l,s))||u.push(l);return u}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||R))return Q(e);var t,n,r=[];for(var o in Object(e))$.call(e,o)&&"constructor"!=o&&r.push(o);return r}(e);var t}e.exports=function(e,t){return Ee(e,t)}}));SP("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"}}),SP("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var XQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ZQ(e){var t={exports:{}};return e(t,t.exports),t.exports}var JQ,QQ,e0=function(e){return e&&e.Math==Math&&e},t0=e0("object"==typeof globalThis&&globalThis)||e0("object"==typeof window&&window)||e0("object"==typeof self&&self)||e0("object"==typeof XQ&&XQ)||function(){return this}()||Function("return this")(),n0=function(e){try{return!!e()}catch(t){return!0}},r0=!n0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o0=Function.prototype.call,i0=o0.bind?o0.bind(o0):function(){return o0.apply(o0,arguments)},a0={}.propertyIsEnumerable,u0=Object.getOwnPropertyDescriptor,s0={f:u0&&!a0.call({1:2},1)?function(e){var t=u0(this,e);return!!t&&t.enumerable}:a0},l0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c0=Function.prototype,f0=c0.bind,d0=c0.call,p0=f0&&f0.bind(d0),h0=f0?function(e){return e&&p0(d0,e)}:function(e){return e&&function(){return d0.apply(e,arguments)}},g0=h0({}.toString),v0=h0("".slice),y0=function(e){return v0(g0(e),8,-1)},m0=t0.Object,b0=h0("".split),w0=n0((function(){return!m0("z").propertyIsEnumerable(0)}))?function(e){return"String"==y0(e)?b0(e,""):m0(e)}:m0,E0=t0.TypeError,D0=function(e){if(null==e)throw E0("Can't call method on "+e);return e},C0=function(e){return w0(D0(e))},S0=function(e){return"function"==typeof e},x0=function(e){return"object"==typeof e?null!==e:S0(e)},A0=function(e){return S0(e)?e:void 0},O0=function(e,t){return arguments.length<2?A0(t0[e]):t0[e]&&t0[e][t]},k0=h0({}.isPrototypeOf),B0=O0("navigator","userAgent")||"",F0=t0.process,T0=t0.Deno,_0=F0&&F0.versions||T0&&T0.version,P0=_0&&_0.v8;P0&&(QQ=(JQ=P0.split("."))[0]>0&&JQ[0]<4?1:+(JQ[0]+JQ[1])),!QQ&&B0&&(!(JQ=B0.match(/Edge\/(\d+)/))||JQ[1]>=74)&&(JQ=B0.match(/Chrome\/(\d+)/))&&(QQ=+JQ[1]);var j0=QQ,N0=!!Object.getOwnPropertySymbols&&!n0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j0&&j0<41})),I0=N0&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,L0=t0.Object,R0=I0?function(e){return"symbol"==typeof e}:function(e){var t=O0("Symbol");return S0(t)&&k0(t.prototype,L0(e))},M0=t0.String,z0=function(e){try{return M0(e)}catch(t){return"Object"}},$0=t0.TypeError,H0=function(e){if(S0(e))return e;throw $0(z0(e)+" is not a function")},V0=function(e,t){var n=e[t];return null==n?void 0:H0(n)},U0=t0.TypeError,W0=Object.defineProperty,G0=function(e,t){try{W0(t0,e,{value:t,configurable:!0,writable:!0})}catch(OP){t0[e]=t}return t},q0=t0["__core-js_shared__"]||G0("__core-js_shared__",{}),K0=ZQ((function(e){(e.exports=function(e,t){return q0[e]||(q0[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Y0=t0.Object,X0=function(e){return Y0(D0(e))},Z0=h0({}.hasOwnProperty),J0=Object.hasOwn||function(e,t){return Z0(X0(e),t)},Q0=0,e1=Math.random(),t1=h0(1..toString),n1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+t1(++Q0+e1,36)},r1=K0("wks"),o1=t0.Symbol,i1=o1&&o1.for,a1=I0?o1:o1&&o1.withoutSetter||n1,u1=function(e){if(!J0(r1,e)||!N0&&"string"!=typeof r1[e]){var t="Symbol."+e;N0&&J0(o1,e)?r1[e]=o1[e]:r1[e]=I0&&i1?i1(t):a1(t)}return r1[e]},s1=t0.TypeError,l1=u1("toPrimitive"),c1=function(e){var t=function(e,t){if(!x0(e)||R0(e))return e;var n,r=V0(e,l1);if(r){if(void 0===t&&(t="default"),n=i0(r,e,t),!x0(n)||R0(n))return n;throw s1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&S0(n=e.toString)&&!x0(r=i0(n,e)))return r;if(S0(n=e.valueOf)&&!x0(r=i0(n,e)))return r;if("string"!==t&&S0(n=e.toString)&&!x0(r=i0(n,e)))return r;throw U0("Can't convert object to primitive value")}(e,t)}(e,"string");return R0(t)?t:t+""},f1=t0.document,d1=x0(f1)&&x0(f1.createElement),p1=function(e){return d1?f1.createElement(e):{}},h1=!r0&&!n0((function(){return 7!=Object.defineProperty(p1("div"),"a",{get:function(){return 7}}).a})),g1=Object.getOwnPropertyDescriptor,v1={f:r0?g1:function(e,t){if(e=C0(e),t=c1(t),h1)try{return g1(e,t)}catch(n){}if(J0(e,t))return l0(!i0(s0.f,e,t),e[t])}},y1=t0.String,m1=t0.TypeError,b1=function(e){if(x0(e))return e;throw m1(y1(e)+" is not an object")},w1=t0.TypeError,E1=Object.defineProperty,D1={f:r0?E1:function(e,t,n){if(b1(e),t=c1(t),b1(n),h1)try{return E1(e,t,n)}catch(r){}if("get"in n||"set"in n)throw w1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},C1=r0?function(e,t,n){return D1.f(e,t,l0(1,n))}:function(e,t,n){return e[t]=n,e},S1=h0(Function.toString);S0(q0.inspectSource)||(q0.inspectSource=function(e){return S1(e)});var x1,A1,O1,k1=q0.inspectSource,B1=t0.WeakMap,F1=S0(B1)&&/native code/.test(k1(B1)),T1=K0("keys"),_1=function(e){return T1[e]||(T1[e]=n1(e))},P1={},j1=t0.TypeError,N1=t0.WeakMap;if(F1||q0.state){var I1=q0.state||(q0.state=new N1),L1=h0(I1.get),R1=h0(I1.has),M1=h0(I1.set);x1=function(e,t){if(R1(I1,e))throw new j1("Object already initialized");return t.facade=e,M1(I1,e,t),t},A1=function(e){return L1(I1,e)||{}},O1=function(e){return R1(I1,e)}}else{var z1=_1("state");P1[z1]=!0,x1=function(e,t){if(J0(e,z1))throw new j1("Object already initialized");return t.facade=e,C1(e,z1,t),t},A1=function(e){return J0(e,z1)?e[z1]:{}},O1=function(e){return J0(e,z1)}}var $1={set:x1,get:A1,has:O1,enforce:function(e){return O1(e)?A1(e):x1(e,{})},getterFor:function(e){return function(t){var n;if(!x0(t)||(n=A1(t)).type!==e)throw j1("Incompatible receiver, "+e+" required");return n}}},H1=Function.prototype,V1=r0&&Object.getOwnPropertyDescriptor,U1=J0(H1,"name"),W1={EXISTS:U1,PROPER:U1&&"something"===function(){}.name,CONFIGURABLE:U1&&(!r0||r0&&V1(H1,"name").configurable)},G1=ZQ((function(e){var t=W1.CONFIGURABLE,n=$1.get,r=$1.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;S0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!J0(i,"name")||t&&i.name!==f)&&C1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==t0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:C1(e,n,i)):l?e[n]=i:G0(n,i)})(Function.prototype,"toString",(function(){return S0(this)&&n(this).source||k1(this)}))})),q1=Math.ceil,K1=Math.floor,Y1=function(e){var t=+e;return t!=t||0===t?0:(t>0?K1:q1)(t)},X1=Math.max,Z1=Math.min,J1=function(e,t){var n=Y1(e);return n<0?X1(n+t,0):Z1(n,t)},Q1=Math.min,e2=function(e){return e>0?Q1(Y1(e),9007199254740991):0},t2=function(e){return e2(e.length)},n2=function(e){return function(t,n,r){var o,i=C0(t),a=t2(i),u=J1(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),r2=h0([].push),o2=function(e,t){var n,r=C0(e),o=0,i=[];for(n in r)!J0(P1,n)&&J0(r,n)&&r2(i,n);for(;t.length>o;)J0(r,n=t[o++])&&(~n2(i,n)||r2(i,n));return i},i2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],a2=i2.concat("length","prototype"),u2={f:Object.getOwnPropertyNames||function(e){return o2(e,a2)}},s2={f:Object.getOwnPropertySymbols},l2=h0([].concat),c2=O0("Reflect","ownKeys")||function(e){var t=u2.f(b1(e)),n=s2.f;return n?l2(t,n(e)):t},f2=function(e,t){for(var n=c2(t),r=D1.f,o=v1.f,i=0;i<n.length;i++){var a=n[i];J0(e,a)||r(e,a,o(t,a))}},d2=/#|\.prototype\./,p2=function(e,t){var n=g2[h2(e)];return n==y2||n!=v2&&(S0(t)?n0(t):!!t)},h2=p2.normalize=function(e){return String(e).replace(d2,".").toLowerCase()},g2=p2.data={},v2=p2.NATIVE="N",y2=p2.POLYFILL="P",m2=p2,b2=v1.f,w2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?t0:l?t0[u]||G0(u,{}):(t0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=b2(n,r))&&a.value:n[r],!m2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;f2(i,o)}(e.sham||o&&o.sham)&&C1(i,"sham",!0),G1(n,r,i,e)}},E2={};E2[u1("toStringTag")]="z";var D2="[object z]"===String(E2),C2=u1("toStringTag"),S2=t0.Object,x2="Arguments"==y0(function(){return arguments}()),A2=D2?y0: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=S2(e),C2))?n:x2?y0(t):"Object"==(r=y0(t))&&S0(t.callee)?"Arguments":r},O2=t0.String,k2=function(e){if("Symbol"===A2(e))throw TypeError("Cannot convert a Symbol value to a string");return O2(e)},B2=/"/g,F2=h0("".replace);w2({target:"String",proto:!0,forced:n0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=k2(D0(this)),r="<a",(r+=' name="'+F2(k2(t),B2,""")+'"')+">"+n+"</a>";var t,n,r}});var T2,_2=function(){var e=b1(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},P2=t0.RegExp,j2=n0((function(){var e=P2("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),N2=j2||n0((function(){return!P2("a","y").sticky})),I2={BROKEN_CARET:j2||n0((function(){var e=P2("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:N2,UNSUPPORTED_Y:j2},L2=Object.keys||function(e){return o2(e,i2)},R2=r0?Object.defineProperties:function(e,t){b1(e);for(var n,r=C0(t),o=L2(t),i=o.length,a=0;i>a;)D1.f(e,n=o[a++],r[n]);return e},M2=O0("document","documentElement"),z2=_1("IE_PROTO"),$2=function(){},H2=function(e){return"<script>"+e+"<\/script>"},V2=function(e){e.write(H2("")),e.close();var t=e.parentWindow.Object;return e=null,t},U2=function(){try{T2=new ActiveXObject("htmlfile")}catch(r){}var e,t;U2="undefined"!=typeof document?document.domain&&T2?V2(T2):((t=p1("iframe")).style.display="none",M2.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(H2("document.F=Object")),e.close(),e.F):V2(T2);for(var n=i2.length;n--;)delete U2.prototype[i2[n]];return U2()};P1[z2]=!0;var W2,G2,q2=Object.create||function(e,t){var n;return null!==e?($2.prototype=b1(e),n=new $2,$2.prototype=null,n[z2]=e):n=U2(),void 0===t?n:R2(n,t)},K2=t0.RegExp,Y2=n0((function(){var e=K2(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),X2=t0.RegExp,Z2=n0((function(){var e=X2("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),J2=$1.get,Q2=K0("native-string-replace",String.prototype.replace),e4=RegExp.prototype.exec,t4=e4,n4=h0("".charAt),r4=h0("".indexOf),o4=h0("".replace),i4=h0("".slice),a4=(G2=/b*/g,i0(e4,W2=/a/,"a"),i0(e4,G2,"a"),0!==W2.lastIndex||0!==G2.lastIndex),u4=I2.BROKEN_CARET,s4=void 0!==/()??/.exec("")[1];(a4||s4||u4||Y2||Z2)&&(t4=function(e){var t,n,r,o,i,a,u,s=this,l=J2(s),c=k2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=i0(t4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=u4&&s.sticky,h=i0(_2,s),g=s.source,v=0,y=c;if(p&&(h=o4(h,"y",""),-1===r4(h,"g")&&(h+="g"),y=i4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==n4(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),s4&&(n=new RegExp("^"+g+"$(?!\\s)",h)),a4&&(r=s.lastIndex),o=i0(e4,p?n:s,y),p?o?(o.input=i4(o.input,v),o[0]=i4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:a4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),s4&&o&&o.length>1&&i0(Q2,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=q2(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var l4=t4;w2({target:"RegExp",proto:!0,forced:/./.exec!==l4},{exec:l4});var c4=Array.isArray||function(e){return"Array"==y0(e)},f4=function(){},d4=[],p4=O0("Reflect","construct"),h4=/^\s*(?:class|function)\b/,g4=h0(h4.exec),v4=!h4.exec(f4),y4=function(e){if(!S0(e))return!1;try{return p4(f4,d4,e),!0}catch(t){return!1}},m4=!p4||n0((function(){var e;return y4(y4.call)||!y4(Object)||!y4((function(){e=!0}))||e}))?function(e){if(!S0(e))return!1;switch(A2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return v4||!!g4(h4,k1(e))}:y4,b4=function(e,t,n){var r=c1(t);r in e?D1.f(e,r,l0(0,n)):e[r]=n},w4=u1("species"),E4=function(e){return j0>=51||!n0((function(){var t=[];return(t.constructor={})[w4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},D4=h0([].slice),C4=E4("slice"),S4=u1("species"),x4=t0.Array,A4=Math.max;function O4(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 k4(e){var t=e.selection;if(null==t)return!1;var n=O4(Mf.nodes(e,{match:function(e){return MO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=O4(n,2)[1],o=Mf.start(e,r);if(Jf.equals(t.anchor,o))return!0}return!1}function B4(e,t){var n,r,o=Mf.nodes(e,{at:t,match:function(e){return"table"===MO.getNodeType(e)}}),i=!1;try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}w2({target:"Array",proto:!0,forced:!C4},{slice:function(e,t){var n,r,o,i=C0(this),a=t2(i),u=J1(e,a),s=J1(void 0===t?a:t,a);if(c4(i)&&(n=i.constructor,(m4(n)&&(n===x4||c4(n.prototype))||x0(n)&&null===(n=n[S4]))&&(n=void 0),n===x4||void 0===n))return D4(i,u,s);for(r=new(void 0===n?x4:n)(A4(s-u,0)),o=0;u<s;u++,o++)u in i&&b4(r,o,i[u]);return r.length=o,r}});var F4=h0(h0.bind),T4=u1("species"),_4=t0.Array,P4=function(e,t){return new(c4(n=e)&&(r=n.constructor,(m4(r)&&(r===_4||c4(r.prototype))||x0(r)&&null===(r=r[T4]))&&(r=void 0)),void 0===r?_4:r)(0===t?0:t);var n,r},j4=h0([].push),N4=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=X0(s),g=w0(h),v=function(e,t){return H0(e),void 0===t?e:F4?F4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=t2(g),m=0,b=f||P4,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:j4(w,d)}else switch(e){case 4:return!1;case 7:j4(w,d)}return i?-1:r||o?o:w}},I4={forEach:N4(0),map:N4(1),filter:N4(2),some:N4(3),every:N4(4),find:N4(5),findIndex:N4(6),filterReject:N4(7)},L4=I4.map;w2({target:"Array",proto:!0,forced:!E4("map")},{map:function(e){return L4(this,e,arguments.length>1?arguments[1]:void 0)}});var R4=D2?{}.toString:function(){return"[object "+A2(this)+"]"};function M4(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function z4(e){return M4(e).every((function(e){return!!e.isHeader}))}D2||G1(Object.prototype,"toString",R4,{unsafe:!0});var $4=W1.PROPER,H4=RegExp.prototype,V4=H4.toString,U4=h0(_2),W4=n0((function(){return"/a/b"!=V4.call({source:"a",flags:"b"})})),G4=$4&&"toString"!=V4.name;(W4||G4)&&G1(RegExp.prototype,"toString",(function(){var e=b1(this),t=k2(e.source),n=e.flags;return"/"+t+"/"+k2(void 0===n&&k0(H4,e)&&!("flags"in H4)?U4(e):n)}),{unsafe:!0});var q4=u1("unscopables"),K4=Array.prototype;null==K4[q4]&&D1.f(K4,q4,{configurable:!0,value:q2(null)});var Y4=I4.find,X4=!0;"find"in[]&&Array(1).find((function(){X4=!1})),w2({target:"Array",proto:!0,forced:X4},{find:function(e){return Y4(this,e,arguments.length>1?arguments[1]:void 0)}}),K4[q4].find=!0;var Z4=Function.prototype,J4=Z4.apply,Q4=Z4.bind,e6=Z4.call,t6="object"==typeof Reflect&&Reflect.apply||(Q4?e6.bind(J4):function(){return e6.apply(J4,arguments)}),n6=u1("species"),r6=RegExp.prototype,o6=function(e,t,n,r){var o=u1(e),i=!n0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!n0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[n6]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=h0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=h0(e),s=t.exec;return s===l4||s===r6.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));G1(String.prototype,e,s[0]),G1(r6,o,s[1])}r&&C1(r6[o],"sham",!0)},i6=u1("match"),a6=t0.TypeError,u6=u1("species"),s6=h0("".charAt),l6=h0("".charCodeAt),c6=h0("".slice),f6=function(e){return function(t,n){var r,o,i=k2(D0(t)),a=Y1(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=l6(i,a))<55296||r>56319||a+1===u||(o=l6(i,a+1))<56320||o>57343?e?s6(i,a):r:e?c6(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),d6=function(e,t,n){return t+(n?f6(e,t).length:1)},p6=t0.Array,h6=Math.max,g6=function(e,t,n){for(var r=t2(e),o=J1(t,r),i=J1(void 0===n?r:n,r),a=p6(h6(i-o,0)),u=0;o<i;o++,u++)b4(a,u,e[o]);return a.length=u,a},v6=t0.TypeError,y6=function(e,t){var n=e.exec;if(S0(n)){var r=i0(n,e,t);return null!==r&&b1(r),r}if("RegExp"===y0(e))return i0(l4,e,t);throw v6("RegExp#exec called on incompatible receiver")},m6=I2.UNSUPPORTED_Y,b6=Math.min,w6=[].push,E6=h0(/./.exec),D6=h0(w6),C6=h0("".slice);o6("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=k2(D0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!x0(r=e)||!(void 0!==(o=r[i6])?o:"RegExp"==y0(r)))return i0(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=i0(l4,p,i))&&!((s=p.lastIndex)>d&&(D6(c,C6(i,d,u.index)),u.length>1&&u.index<i.length&&t6(w6,c,g6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&E6(p,"")||D6(c,""):D6(c,C6(i,d)),c.length>a?g6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i0(t,this,e,n)}:t,[function(t,n){var o=D0(this),i=null==t?void 0:V0(t,e);return i?i0(i,t,o,n):i0(r,k2(o),t,n)},function(e,o){var i=b1(this),a=k2(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=b1(i).constructor)||null==(l=b1(c)[u6])?s:function(e){if(m4(e))return e;throw a6(z0(e)+" is not a constructor")}(l)),d=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(m6?"g":"y"),h=new f(m6?"^(?:"+i.source+")":i,p),g=void 0===o?4294967295:o>>>0;if(0===g)return[];if(0===a.length)return null===y6(h,a)?[a]:[];for(var v=0,y=0,m=[];y<a.length;){h.lastIndex=m6?0:y;var b,w=y6(h,m6?C6(a,y):a);if(null===w||(b=b6(e2(h.lastIndex+(m6?y:0)),a.length))===v)y=d6(a,y,d);else{if(D6(m,C6(a,v,y)),m.length===g)return m;for(var E=1;E<=w.length-1;E++)if(D6(m,w[E]),m.length===g)return m;y=v=b}}return D6(m,C6(a,v)),m}]}),!!n0((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]})),m6);var S6="\t\n\v\f\r \u2028\u2029\ufeff",x6=h0("".replace),A6="["+S6+"]",O6=RegExp("^"+A6+A6+"*"),k6=RegExp(A6+A6+"*$"),B6=function(e){return function(t){var n=k2(D0(t));return 1&e&&(n=x6(n,O6,"")),2&e&&(n=x6(n,k6,"")),n}},F6={start:B6(1),end:B6(2),trim:B6(3)},T6=W1.PROPER,_6=F6.trim;function P6(e){return e.length?e[0].tagName.toLowerCase():""}w2({target:"String",proto:!0,forced:function(e){return n0((function(){return!!S6.trim()||"
"!=="
".trim()||T6&&S6.trim.name!==e}))}("trim")},{trim:function(){return _6(this)}}),w2({global:!0},{globalThis:t0}),lh&&(Hp.fn.append=lh),Xp&&(Hp.fn.on=Xp),wh&&(Hp.fn.focus=wh),Gp&&(Hp.fn.attr=Gp),Yp&&(Hp.fn.val=Yp),ah&&(Hp.fn.html=ah),Kp&&(Hp.fn.dataset=Kp),Vp&&(Hp.fn.addClass=Vp),Up&&(Hp.fn.removeClass=Up),hh&&(Hp.fn.children=hh),oh&&(Hp.fn.each=oh),ph&&(Hp.fn.find=ph);var j6=!1,N6=0,I6=0,L6=null,R6=null,M6=Hp("body");function z6(e){j6=!1,R6=null,L6=null,M6.off("mousemove",$6),M6.off("mouseup",z6)}M6.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(),j6=!0;var n=e.clientX;N6=n;var r=t.getBoundingClientRect().width;I6=r,M6.on("mousemove",$6),M6.on("mouseup",z6)}}));var $6=Jh((function(e){if(j6&&null!=R6&&null!=L6){e.preventDefault();var t=e.clientX,n=I6+(t-N6);(n=Math.floor(100*n)/100)<30&&(n=30),Od.setNodes(R6,{width:n.toString()},{at:L6})}}),100),H6={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(nd.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=MO.findPath(e,t),a=Mf.start(e,i),u=Mf.end(e,i),s=Jf.compare(r,u)<=0&&Jf.compare(r,a)>=0,l=Jf.compare(o,u)<=0&&Jf.compare(o,a)>=0;return!!(s&&l&&Kf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o;return Tg("div",{className:"table-container","data-selected":MO.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=MO.findPath(n,e),o=Mf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Tg("table",{width:i,contentEditable:r},Tg("colgroup",null,M4(e).map((function(e){var t=e.width;return Tg("col",{width:void 0===t?"auto":t})}))),Tg("tbody",null,t)))}},V6={type:"table-row",renderElem:function(e,t,n){return Tg("tr",null,t)}},U6={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=MO.getParentNode(e,t);if(null==n)return!1;var r=MO.getParentNode(e,n);return null!=r&&M4(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?Tg(void 0!==l&&l?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Jh((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;j6||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",R6=n,L6=MO.findPath(n,e)):j6||(r.style.cursor="auto",R6=null,L6=null))}}),100)}},t):Tg("td",{colSpan:a,rowSpan:s},t)}},W6={selector:"table",preParseHtml:function(e){var t=Hp(e);if("table"!==P6(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]}},G6=I4.filter;w2({target:"Array",proto:!0,forced:!E4("filter")},{filter:function(e){return G6(this,e,arguments.length>1?arguments[1]:void 0)}});var q6=Math.floor,K6=h0("".charAt),Y6=h0("".replace),X6=h0("".slice),Z6=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,J6=/\$([$&'`]|\d{1,2})/g,Q6=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=J6;return void 0!==o&&(o=X0(o),s=Z6),Y6(i,s,(function(i,s){var l;switch(K6(s,0)){case"$":return"$";case"&":return e;case"`":return X6(t,0,n);case"'":return X6(t,a);case"<":l=o[X6(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=q6(c/10);return 0===f?i:f<=u?void 0===r[f-1]?K6(s,1):r[f-1]+K6(s,1):i}l=r[c-1]}return void 0===l?"":l}))},e3=u1("replace"),t3=Math.max,n3=Math.min,r3=h0([].concat),o3=h0([].push),i3=h0("".indexOf),a3=h0("".slice),u3="$0"==="a".replace(/./,"$0"),s3=!!/./[e3]&&""===/./[e3]("a","$0");o6("replace",(function(e,t,n){var r=s3?"$":"$0";return[function(e,n){var r=D0(this),o=null==e?void 0:V0(e,e3);return o?i0(o,e,r,n):i0(t,k2(r),e,n)},function(e,o){var i=b1(this),a=k2(e);if("string"==typeof o&&-1===i3(o,r)&&-1===i3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=S0(o);s||(o=k2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=y6(i,a);if(null===d)break;if(o3(f,d),!l)break;""===k2(d[0])&&(i.lastIndex=d6(a,e2(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=k2((d=f[v])[0]),m=t3(n3(Y1(d.index),a.length),0),b=[],w=1;w<d.length;w++)o3(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=r3([y],b,m,a);void 0!==E&&o3(D,E);var C=k2(t6(o,void 0,D))}else C=Q6(y,a,m,b,E,o);m>=g&&(h+=a3(a,g,m)+C,g=m+y.length)}return h+a3(a,g)}]}),!!n0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!u3||s3);var l3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);0===(t=t.filter((function(e){return!!ld.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"===P6(r),colSpan:o,rowSpan:i,width:a,children:t}}},c3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===MO.getNodeType(e)}))}}},f3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(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"===MO.getNodeType(e)}))}}},d3=function(){function e(){this.title=xP("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||!nd.isCollapsed(t)||!!MO.getSelectedElems(e).some((function(t){var n=MO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Hp('<div class="w-e-panel-content-table"></div>'),r=Hp("<span>0 × 0</span>"),o=Hp("<table></table>"),i=0;i<10;i++){for(var a=Hp("<tr></tr>"),u=0;u<10;u++){var s=Hp("<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=Hp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Hp(e).children().each((function(e){var t=Hp(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=Hp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){MO.isSelectedEmptyParagraph(e)&&Od.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);Od.insertNodes(e,i,{mode:"highest"})}},e}(),p3=function(){function e(){this.title=xP("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==MO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Od.removeNodes(e,{mode:"highest"})},e}(),h3=function(){function e(){this.title=xP("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||!nd.isCollapsed(t)||null==MO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=O4(Mf.nodes(e,{match:function(e){return MO.checkNodeType(e,"table-cell")},universal:!0}),1),r=O4(n[0],2),o=r[0],i=r[1],a=MO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Kf.parent(i),f=Kf.next(c);Od.insertNodes(e,s,{at:f})}}},e}(),g3=function(){function e(){this.title=xP("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||!nd.isCollapsed(t)||null==MO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=O4(Mf.nodes(e,{match:function(e){return MO.checkNodeType(e,"table-row")},universal:!0}),1),r=O4(n[0],2),o=r[0],i=r[1],a=MO.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Od.removeNodes(e,{mode:"highest"}):Od.removeNodes(e,{at:i})}},e}(),v3={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},y3=p1("span").classList,m3=y3&&y3.constructor&&y3.constructor.prototype,b3=m3===Object.prototype?void 0:m3,w3=I4.forEach,E3=function(e,t){var n=[].forEach;return!!n&&n0((function(){n.call(null,(function(){throw 1}),1)}))}(),D3=E3?[].forEach:function(e){return w3(this,e,arguments.length>1?arguments[1]:void 0)},C3=function(e){if(e&&e.forEach!==D3)try{C1(e,"forEach",D3)}catch(t){e.forEach=D3}};for(var S3 in v3)v3[S3]&&C3(t0[S3]&&t0[S3].prototype);C3(b3);var x3=function(){function e(){this.title=xP("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||!nd.isCollapsed(t)||null==MO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=O4(Mf.nodes(e,{match:function(e){return MO.checkNodeType(e,"table-cell")},universal:!0}),1),r=O4(n[0],2),o=r[0],i=r[1],a=MO.getParentNode(e,o);if(null!=a){var u=MO.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){Pf.isElement(t)&&(t.children||[]).forEach((function(t){var r=MO.findPath(e,t);if(r.length===i.length&&YQ(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&z4(u)&&(o.isHeader=!0),Od.insertNodes(e,o,{at:r})}}))}))}}},e}(),A3=function(){function e(){this.title=xP("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||!nd.isCollapsed(t)||null==MO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=O4(Mf.nodes(e,{match:function(e){return MO.checkNodeType(e,"table-cell")},universal:!0}),1),r=O4(n[0],2),o=r[0],i=r[1],a=MO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Od.removeNodes(e,{mode:"highest"});else{var s=MO.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){Pf.isElement(t)&&(t.children||[]).forEach((function(t){var n=MO.findPath(e,t);n.length===i.length&&YQ(n.slice(-1),i.slice(-1))&&Od.removeNodes(e,{at:n})}))}))}}},e}(),O3=function(){function e(){this.title=xP("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=MO.getSelectedNodeByType(e,"table");return null!=t&&z4(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!nd.isCollapsed(t)||null==MO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=MO.getSelectedNodeByType(e,"table");null!=r&&M4(r).forEach((function(t){return Od.setNodes(e,{isHeader:n},{at:MO.findPath(e,t)})}))}},e}(),k3=function(){function e(){this.title=xP("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=MO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!nd.isCollapsed(t)||null==MO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Od.setNodes(e,n,{mode:"highest"})}},e}(),B3={renderElems:[H6,V6,U6],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:[W6],parseElemsHtml:[l3,c3,f3],menus:[{key:"insertTable",factory:function(){return new d3}},{key:"deleteTable",factory:function(){return new p3}},{key:"insertTableRow",factory:function(){return new h3}},{key:"deleteTableRow",factory:function(){return new g3}},{key:"insertTableCol",factory:function(){return new x3}},{key:"deleteTableCol",factory:function(){return new A3}},{key:"tableHeader",factory:function(){return new O3}},{key:"tableFullWidth",factory:function(){return new k3}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==MO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!k4(s)){var t=s.selection;if(t){var r=Mf.before(s,t);if(r){var o=B4(s,r),i=B4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(MO.getSelectedNodeByType(s,"table")){var n=Mf.above(e);MO.checkNodeType(n[0],"table-cell")&&Od.select(e,n[1]);var r=Mf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Mf.above(e,{at:r[1]}))&&void 0!==t?t:r),Od.select(e,r[1]);else{var o=s.children||[],i=o.length;if(MO.checkNodeType(o[i-1],"table")){var u=MO.genEmptyParagraph();Od.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){k4(s)||r(e)},s.normalizeNode=function(e){var t=O4(e,2),n=t[0],r=t[1];if("table"!==MO.getNodeType(n))return o([n,r]);if(MO.isLastNode(s,n)){var i=MO.genEmptyParagraph();Od.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=MO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Mf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=MO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Kf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Uf.string(t).length){var o=MO.findPath(s,t),i={anchor:Mf.start(s,o),focus:Mf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};SP("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"}}),SP("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 F3=function(){return F3=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},F3.apply(this,arguments)};function T3(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 _3(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 P3(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 j3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N3(e){var t={exports:{}};return e(t,t.exports),t.exports}var I3,L3,R3=function(e){return e&&e.Math==Math&&e},M3=R3("object"==typeof globalThis&&globalThis)||R3("object"==typeof window&&window)||R3("object"==typeof self&&self)||R3("object"==typeof j3&&j3)||function(){return this}()||Function("return this")(),z3=function(e){try{return!!e()}catch(t){return!0}},$3=!z3((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),H3=Function.prototype.call,V3=H3.bind?H3.bind(H3):function(){return H3.apply(H3,arguments)},U3={}.propertyIsEnumerable,W3=Object.getOwnPropertyDescriptor,G3={f:W3&&!U3.call({1:2},1)?function(e){var t=W3(this,e);return!!t&&t.enumerable}:U3},q3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},K3=Function.prototype,Y3=K3.bind,X3=K3.call,Z3=Y3&&Y3.bind(X3),J3=Y3?function(e){return e&&Z3(X3,e)}:function(e){return e&&function(){return X3.apply(e,arguments)}},Q3=J3({}.toString),e5=J3("".slice),t5=function(e){return e5(Q3(e),8,-1)},n5=M3.Object,r5=J3("".split),o5=z3((function(){return!n5("z").propertyIsEnumerable(0)}))?function(e){return"String"==t5(e)?r5(e,""):n5(e)}:n5,i5=M3.TypeError,a5=function(e){if(null==e)throw i5("Can't call method on "+e);return e},u5=function(e){return o5(a5(e))},s5=function(e){return"function"==typeof e},l5=function(e){return"object"==typeof e?null!==e:s5(e)},c5=function(e){return s5(e)?e:void 0},f5=function(e,t){return arguments.length<2?c5(M3[e]):M3[e]&&M3[e][t]},d5=J3({}.isPrototypeOf),p5=f5("navigator","userAgent")||"",h5=M3.process,g5=M3.Deno,v5=h5&&h5.versions||g5&&g5.version,y5=v5&&v5.v8;y5&&(L3=(I3=y5.split("."))[0]>0&&I3[0]<4?1:+(I3[0]+I3[1])),!L3&&p5&&(!(I3=p5.match(/Edge\/(\d+)/))||I3[1]>=74)&&(I3=p5.match(/Chrome\/(\d+)/))&&(L3=+I3[1]);var m5=L3,b5=!!Object.getOwnPropertySymbols&&!z3((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&m5&&m5<41})),w5=b5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,E5=M3.Object,D5=w5?function(e){return"symbol"==typeof e}:function(e){var t=f5("Symbol");return s5(t)&&d5(t.prototype,E5(e))},C5=M3.String,S5=function(e){try{return C5(e)}catch(t){return"Object"}},x5=M3.TypeError,A5=function(e){if(s5(e))return e;throw x5(S5(e)+" is not a function")},O5=function(e,t){var n=e[t];return null==n?void 0:A5(n)},k5=M3.TypeError,B5=Object.defineProperty,F5=function(e,t){try{B5(M3,e,{value:t,configurable:!0,writable:!0})}catch(OP){M3[e]=t}return t},T5=M3["__core-js_shared__"]||F5("__core-js_shared__",{}),_5=N3((function(e){(e.exports=function(e,t){return T5[e]||(T5[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),P5=M3.Object,j5=function(e){return P5(a5(e))},N5=J3({}.hasOwnProperty),I5=Object.hasOwn||function(e,t){return N5(j5(e),t)},L5=0,R5=Math.random(),M5=J3(1..toString),z5=function(e){return"Symbol("+(void 0===e?"":e)+")_"+M5(++L5+R5,36)},$5=_5("wks"),H5=M3.Symbol,V5=H5&&H5.for,U5=w5?H5:H5&&H5.withoutSetter||z5,W5=function(e){if(!I5($5,e)||!b5&&"string"!=typeof $5[e]){var t="Symbol."+e;b5&&I5(H5,e)?$5[e]=H5[e]:$5[e]=w5&&V5?V5(t):U5(t)}return $5[e]},G5=M3.TypeError,q5=W5("toPrimitive"),K5=function(e){var t=function(e,t){if(!l5(e)||D5(e))return e;var n,r=O5(e,q5);if(r){if(void 0===t&&(t="default"),n=V3(r,e,t),!l5(n)||D5(n))return n;throw G5("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&s5(n=e.toString)&&!l5(r=V3(n,e)))return r;if(s5(n=e.valueOf)&&!l5(r=V3(n,e)))return r;if("string"!==t&&s5(n=e.toString)&&!l5(r=V3(n,e)))return r;throw k5("Can't convert object to primitive value")}(e,t)}(e,"string");return D5(t)?t:t+""},Y5=M3.document,X5=l5(Y5)&&l5(Y5.createElement),Z5=function(e){return X5?Y5.createElement(e):{}},J5=!$3&&!z3((function(){return 7!=Object.defineProperty(Z5("div"),"a",{get:function(){return 7}}).a})),Q5=Object.getOwnPropertyDescriptor,e8={f:$3?Q5:function(e,t){if(e=u5(e),t=K5(t),J5)try{return Q5(e,t)}catch(n){}if(I5(e,t))return q3(!V3(G3.f,e,t),e[t])}},t8=M3.String,n8=M3.TypeError,r8=function(e){if(l5(e))return e;throw n8(t8(e)+" is not an object")},o8=M3.TypeError,i8=Object.defineProperty,a8={f:$3?i8:function(e,t,n){if(r8(e),t=K5(t),r8(n),J5)try{return i8(e,t,n)}catch(r){}if("get"in n||"set"in n)throw o8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},u8=$3?function(e,t,n){return a8.f(e,t,q3(1,n))}:function(e,t,n){return e[t]=n,e},s8=J3(Function.toString);s5(T5.inspectSource)||(T5.inspectSource=function(e){return s8(e)});var l8,c8,f8,d8=T5.inspectSource,p8=M3.WeakMap,h8=s5(p8)&&/native code/.test(d8(p8)),g8=_5("keys"),v8=function(e){return g8[e]||(g8[e]=z5(e))},y8={},m8=M3.TypeError,b8=M3.WeakMap;if(h8||T5.state){var w8=T5.state||(T5.state=new b8),E8=J3(w8.get),D8=J3(w8.has),C8=J3(w8.set);l8=function(e,t){if(D8(w8,e))throw new m8("Object already initialized");return t.facade=e,C8(w8,e,t),t},c8=function(e){return E8(w8,e)||{}},f8=function(e){return D8(w8,e)}}else{var S8=v8("state");y8[S8]=!0,l8=function(e,t){if(I5(e,S8))throw new m8("Object already initialized");return t.facade=e,u8(e,S8,t),t},c8=function(e){return I5(e,S8)?e[S8]:{}},f8=function(e){return I5(e,S8)}}var x8={set:l8,get:c8,has:f8,enforce:function(e){return f8(e)?c8(e):l8(e,{})},getterFor:function(e){return function(t){var n;if(!l5(t)||(n=c8(t)).type!==e)throw m8("Incompatible receiver, "+e+" required");return n}}},A8=Function.prototype,O8=$3&&Object.getOwnPropertyDescriptor,k8=I5(A8,"name"),B8={EXISTS:k8,PROPER:k8&&"something"===function(){}.name,CONFIGURABLE:k8&&(!$3||$3&&O8(A8,"name").configurable)},F8=N3((function(e){var t=B8.CONFIGURABLE,n=x8.get,r=x8.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;s5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!I5(i,"name")||t&&i.name!==f)&&u8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==M3?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:u8(e,n,i)):l?e[n]=i:F5(n,i)})(Function.prototype,"toString",(function(){return s5(this)&&n(this).source||d8(this)}))})),T8=Math.ceil,_8=Math.floor,P8=function(e){var t=+e;return t!=t||0===t?0:(t>0?_8:T8)(t)},j8=Math.max,N8=Math.min,I8=function(e,t){var n=P8(e);return n<0?j8(n+t,0):N8(n,t)},L8=Math.min,R8=function(e){return e>0?L8(P8(e),9007199254740991):0},M8=function(e){return R8(e.length)},z8=function(e){return function(t,n,r){var o,i=u5(t),a=M8(i),u=I8(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}},$8={includes:z8(!0),indexOf:z8(!1)},H8=$8.indexOf,V8=J3([].push),U8=function(e,t){var n,r=u5(e),o=0,i=[];for(n in r)!I5(y8,n)&&I5(r,n)&&V8(i,n);for(;t.length>o;)I5(r,n=t[o++])&&(~H8(i,n)||V8(i,n));return i},W8=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],G8=W8.concat("length","prototype"),q8={f:Object.getOwnPropertyNames||function(e){return U8(e,G8)}},K8={f:Object.getOwnPropertySymbols},Y8=J3([].concat),X8=f5("Reflect","ownKeys")||function(e){var t=q8.f(r8(e)),n=K8.f;return n?Y8(t,n(e)):t},Z8=function(e,t){for(var n=X8(t),r=a8.f,o=e8.f,i=0;i<n.length;i++){var a=n[i];I5(e,a)||r(e,a,o(t,a))}},J8=/#|\.prototype\./,Q8=function(e,t){var n=t7[e7(e)];return n==r7||n!=n7&&(s5(t)?z3(t):!!t)},e7=Q8.normalize=function(e){return String(e).replace(J8,".").toLowerCase()},t7=Q8.data={},n7=Q8.NATIVE="N",r7=Q8.POLYFILL="P",o7=Q8,i7=e8.f,a7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?M3:l?M3[u]||F5(u,{}):(M3[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=i7(n,r))&&a.value:n[r],!o7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Z8(i,o)}(e.sham||o&&o.sham)&&u8(i,"sham",!0),F8(n,r,i,e)}},u7={};u7[W5("toStringTag")]="z";var s7="[object z]"===String(u7),l7=W5("toStringTag"),c7=M3.Object,f7="Arguments"==t5(function(){return arguments}()),d7=s7?t5: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=c7(e),l7))?n:f7?t5(t):"Object"==(r=t5(t))&&s5(t.callee)?"Arguments":r},p7=M3.String,h7=function(e){if("Symbol"===d7(e))throw TypeError("Cannot convert a Symbol value to a string");return p7(e)},g7="\t\n\v\f\r \u2028\u2029\ufeff",v7=J3("".replace),y7="["+g7+"]",m7=RegExp("^"+y7+y7+"*"),b7=RegExp(y7+y7+"*$"),w7=function(e){return function(t){var n=h7(a5(t));return 1&e&&(n=v7(n,m7,"")),2&e&&(n=v7(n,b7,"")),n}},E7={start:w7(1),end:w7(2),trim:w7(3)},D7=B8.PROPER,C7=E7.trim;function S7(e){return e.length?e[0].tagName.toLowerCase():""}function x7(e,t,n){void 0===t&&(t="auto"),void 0===n&&(n="auto");var r=Hp(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}a7({target:"String",proto:!0,forced:z3((function(){return!!g7.trim()||"
"!=="
".trim()||D7&&"trim"!==g7.trim.name}))},{trim:function(){return C7(this)}}),a7({global:!0},{globalThis:M3}),lh&&(Hp.fn.append=lh),Xp&&(Hp.fn.on=Xp),wh&&(Hp.fn.focus=wh),Gp&&(Hp.fn.attr=Gp),Yp&&(Hp.fn.val=Yp),ah&&(Hp.fn.html=ah),fh&&(Hp.fn.parent=fh),Wp&&(Hp.fn.hasClass=Wp),vh&&(Hp.fn.empty=vh);var A7,O7={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.width,c=void 0===l?"auto":l,f=o.height,d=void 0===f?"auto":f,p=MO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Tg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:x7(a,c,d)});else{var h=Tg("video",{poster:s,controls:!0},Tg("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=Tg("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return fg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},k7={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+=x7(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},B7=Object.keys||function(e){return U8(e,W8)},F7=$3?Object.defineProperties:function(e,t){r8(e);for(var n,r=u5(t),o=B7(t),i=o.length,a=0;i>a;)a8.f(e,n=o[a++],r[n]);return e},T7=f5("document","documentElement"),_7=v8("IE_PROTO"),P7=function(){},j7=function(e){return"<script>"+e+"<\/script>"},N7=function(e){e.write(j7("")),e.close();var t=e.parentWindow.Object;return e=null,t},I7=function(){try{A7=new ActiveXObject("htmlfile")}catch(r){}var e,t;I7="undefined"!=typeof document?document.domain&&A7?N7(A7):((t=Z5("iframe")).style.display="none",T7.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(j7("document.F=Object")),e.close(),e.F):N7(A7);for(var n=W8.length;n--;)delete I7.prototype[W8[n]];return I7()};y8[_7]=!0;var L7=Object.create||function(e,t){var n;return null!==e?(P7.prototype=r8(e),n=new P7,P7.prototype=null,n[_7]=e):n=I7(),void 0===t?n:F7(n,t)},R7=W5("unscopables"),M7=Array.prototype;null==M7[R7]&&a8.f(M7,R7,{configurable:!0,value:L7(null)});var z7=function(e){M7[R7][e]=!0},$7=$8.includes;a7({target:"Array",proto:!0},{includes:function(e){return $7(this,e,arguments.length>1?arguments[1]:void 0)}}),z7("includes");var H7={selector:"iframe,video,p",preParseHtml:function(e){var t=Hp(e),n=t;if("p"===S7(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Hp(o))}}var a=S7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Hp('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},V7=J3(J3.bind),U7=function(e,t){return A5(e),void 0===t?e:V7?V7(e,t):function(){return e.apply(t,arguments)}},W7=Array.isArray||function(e){return"Array"==t5(e)},G7=function(){},q7=[],K7=f5("Reflect","construct"),Y7=/^\s*(?:class|function)\b/,X7=J3(Y7.exec),Z7=!Y7.exec(G7),J7=function(e){if(!s5(e))return!1;try{return K7(G7,q7,e),!0}catch(t){return!1}},Q7=!K7||z3((function(){var e;return J7(J7.call)||!J7(Object)||!J7((function(){e=!0}))||e}))?function(e){if(!s5(e))return!1;switch(d7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Z7||!!X7(Y7,d8(e))}:J7,e9=W5("species"),t9=M3.Array,n9=function(e,t){return new(W7(n=e)&&(r=n.constructor,(Q7(r)&&(r===t9||W7(r.prototype))||l5(r)&&null===(r=r[e9]))&&(r=void 0)),void 0===r?t9:r)(0===t?0:t);var n,r},r9=J3([].push),o9=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=j5(s),g=o5(h),v=U7(l,c),y=M8(g),m=0,b=f||n9,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:r9(w,d)}else switch(e){case 4:return!1;case 7:r9(w,d)}return i?-1:r||o?o:w}},i9={forEach:o9(0),map:o9(1),filter:o9(2),some:o9(3),every:o9(4),find:o9(5),findIndex:o9(6),filterReject:o9(7)},a9=i9.find,u9=!0;"find"in[]&&Array(1).find((function(){u9=!1})),a7({target:"Array",proto:!0,forced:u9},{find:function(e){return a9(this,e,arguments.length>1?arguments[1]:void 0)}}),z7("find");var s9=s7?{}.toString:function(){return"[object "+d7(this)+"]"};function l9(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:""}]}}s7||F8(Object.prototype,"toString",s9,{unsafe:!0});var c9,f9,d9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Hp(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",l9(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",l9(o,i=l.attr("poster")||"",a,u)}},p9=function(){var e=r8(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},h9=M3.RegExp,g9=z3((function(){var e=h9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),v9=g9||z3((function(){return!h9("a","y").sticky})),y9={BROKEN_CARET:g9||z3((function(){var e=h9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:v9,UNSUPPORTED_Y:g9},m9=M3.RegExp,b9=z3((function(){var e=m9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),w9=M3.RegExp,E9=z3((function(){var e=w9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),D9=x8.get,C9=_5("native-string-replace",String.prototype.replace),S9=RegExp.prototype.exec,x9=S9,A9=J3("".charAt),O9=J3("".indexOf),k9=J3("".replace),B9=J3("".slice),F9=(f9=/b*/g,V3(S9,c9=/a/,"a"),V3(S9,f9,"a"),0!==c9.lastIndex||0!==f9.lastIndex),T9=y9.BROKEN_CARET,_9=void 0!==/()??/.exec("")[1];(F9||_9||T9||b9||E9)&&(x9=function(e){var t,n,r,o,i,a,u,s=this,l=D9(s),c=h7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=V3(x9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=T9&&s.sticky,h=V3(p9,s),g=s.source,v=0,y=c;if(p&&(h=k9(h,"y",""),-1===O9(h,"g")&&(h+="g"),y=B9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==A9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),_9&&(n=new RegExp("^"+g+"$(?!\\s)",h)),F9&&(r=s.lastIndex),o=V3(S9,p?n:s,y),p?o?(o.input=B9(o.input,v),o[0]=B9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:F9&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_9&&o&&o.length>1&&V3(C9,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=L7(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var P9=x9;a7({target:"RegExp",proto:!0,forced:/./.exec!==P9},{exec:P9});var j9=Function.prototype,N9=j9.apply,I9=j9.bind,L9=j9.call,R9="object"==typeof Reflect&&Reflect.apply||(I9?L9.bind(N9):function(){return L9.apply(N9,arguments)}),M9=(W5("species"),RegExp.prototype),z9=J3("".charAt),$9=J3("".charCodeAt),H9=J3("".slice),V9=function(e){return function(t,n){var r,o,i=h7(a5(t)),a=P8(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$9(i,a))<55296||r>56319||a+1===u||(o=$9(i,a+1))<56320||o>57343?e?z9(i,a):r:e?H9(i,a,a+2):o-56320+(r-55296<<10)+65536}},U9={codeAt:V9(!1),charAt:V9(!0)},W9=U9.charAt,G9=function(e,t,n){return t+(n?W9(e,t).length:1)},q9=Math.floor,K9=J3("".charAt),Y9=J3("".replace),X9=J3("".slice),Z9=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,J9=/\$([$&'`]|\d{1,2})/g,Q9=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=J9;return void 0!==o&&(o=j5(o),s=Z9),Y9(i,s,(function(i,s){var l;switch(K9(s,0)){case"$":return"$";case"&":return e;case"`":return X9(t,0,n);case"'":return X9(t,a);case"<":l=o[X9(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=q9(c/10);return 0===f?i:f<=u?void 0===r[f-1]?K9(s,1):r[f-1]+K9(s,1):i}l=r[c-1]}return void 0===l?"":l}))},eee=M3.TypeError,tee=function(e,t){var n=e.exec;if(s5(n)){var r=V3(n,e,t);return null!==r&&r8(r),r}if("RegExp"===t5(e))return V3(P9,e,t);throw eee("RegExp#exec called on incompatible receiver")},nee=W5("replace"),ree=Math.max,oee=Math.min,iee=J3([].concat),aee=J3([].push),uee=J3("".indexOf),see=J3("".slice),lee="$0"==="a".replace(/./,"$0"),cee=!!/./[nee]&&""===/./[nee]("a","$0");function fee(e){return void 0===e&&(e="r"),e+"-"+Lh()}!function(e,t,n,r){var o,i,a=W5(e),u=!z3((function(){var t={};return t[a]=function(){return 7},7!=""[e](t)})),s=u&&!z3((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[a](""),!e}));if(!u||!s||n){var l=J3(/./[a]),c=(o=""[e],i=cee?"$":"$0",[function(e,t){var n=a5(this),r=null==e?void 0:O5(e,nee);return r?V3(r,e,n,t):V3(o,h7(n),e,t)},function(e,t){var n=r8(this),r=h7(e);if("string"==typeof t&&-1===uee(t,i)&&-1===uee(t,"$<")){var a=function(e,t,n,r,o){var i=J3(e),a=t.exec;return a===P9||a===M9.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=s5(t);s||(t=h7(t));var c=n.global;if(c){var f=n.unicode;n.lastIndex=0}for(var d=[];;){var p=tee(n,r);if(null===p)break;if(aee(d,p),!c)break;""===h7(p[0])&&(n.lastIndex=G9(r,R8(n.lastIndex),f))}for(var h,g="",v=0,y=0;y<d.length;y++){for(var m=h7((p=d[y])[0]),b=ree(oee(P8(p.index),r.length),0),w=[],E=1;E<p.length;E++)aee(w,void 0===(h=p[E])?h:String(h));var D=p.groups;if(s){var C=iee([m],w,b,r);void 0!==D&&aee(C,D);var S=h7(R9(t,void 0,C))}else S=Q9(m,r,b,w,D,t);b>=v&&(g+=see(r,v,b)+S,v=b+m.length)}return g+see(r,v)}]);F8(String.prototype,e,c[0]),F8(M9,a,c[1])}}("replace",0,!!z3((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!lee||cee);var dee=M3.Promise,pee=function(e,t,n){for(var r in t)F8(e,r,t[r],n);return e},hee=M3.String,gee=M3.TypeError,vee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=J3(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return r8(n),function(e){if("object"==typeof e||s5(e))return e;throw gee("Can't set "+hee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),yee=a8.f,mee=W5("toStringTag"),bee=function(e,t,n){e&&!I5(e=n?e:e.prototype,mee)&&yee(e,mee,{configurable:!0,value:t})},wee=W5("species"),Eee=M3.TypeError,Dee=function(e,t){if(d5(t,e))return e;throw Eee("Incorrect invocation")},Cee={},See=W5("iterator"),xee=Array.prototype,Aee=W5("iterator"),Oee=function(e){if(null!=e)return O5(e,Aee)||O5(e,"@@iterator")||Cee[d7(e)]},kee=M3.TypeError,Bee=function(e,t,n){var r,o;r8(e);try{if(!(r=O5(e,"return"))){if("throw"===t)throw n;return n}r=V3(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return r8(r),n},Fee=M3.TypeError,Tee=function(e,t){this.stopped=e,this.result=t},_ee=Tee.prototype,Pee=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=U7(t,f),v=function(e){return r&&Bee(r,"normal",e),new Tee(!0,e)},y=function(e){return d?(r8(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=Oee(e)))throw Fee(S5(e)+" is not iterable");if(void 0!==(c=o)&&(Cee.Array===c||xee[See]===c)){for(i=0,a=M8(e);a>i;i++)if((u=y(e[i]))&&d5(_ee,u))return u;return new Tee(!1)}r=function(e,t){var n=arguments.length<2?Oee(e):t;if(A5(n))return r8(V3(n,e));throw kee(S5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=V3(s,r)).done;){try{u=y(l.value)}catch(m){Bee(r,"throw",m)}if("object"==typeof u&&u&&d5(_ee,u))return u}return new Tee(!1)},jee=W5("iterator"),Nee=!1;try{var Iee=0,Lee={next:function(){return{done:!!Iee++}},return:function(){Nee=!0}};Lee[jee]=function(){return this},Array.from(Lee,(function(){throw 2}))}catch(Xve){}var Ree,Mee,zee,$ee,Hee=function(e,t){if(!t&&!Nee)return!1;var n=!1;try{var r={};r[jee]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},Vee=M3.TypeError,Uee=W5("species"),Wee=J3([].slice),Gee=/(?:ipad|iphone|ipod).*applewebkit/i.test(p5),qee="process"==t5(M3.process),Kee=M3.setImmediate,Yee=M3.clearImmediate,Xee=M3.process,Zee=M3.Dispatch,Jee=M3.Function,Qee=M3.MessageChannel,ete=M3.String,tte=0,nte={};try{Ree=M3.location}catch(Xve){}var rte=function(e){if(I5(nte,e)){var t=nte[e];delete nte[e],t()}},ote=function(e){return function(){rte(e)}},ite=function(e){rte(e.data)},ate=function(e){M3.postMessage(ete(e),Ree.protocol+"//"+Ree.host)};Kee&&Yee||(Kee=function(e){var t=Wee(arguments,1);return nte[++tte]=function(){R9(s5(e)?e:Jee(e),void 0,t)},Mee(tte),tte},Yee=function(e){delete nte[e]},qee?Mee=function(e){Xee.nextTick(ote(e))}:Zee&&Zee.now?Mee=function(e){Zee.now(ote(e))}:Qee&&!Gee?($ee=(zee=new Qee).port2,zee.port1.onmessage=ite,Mee=U7($ee.postMessage,$ee)):M3.addEventListener&&s5(M3.postMessage)&&!M3.importScripts&&Ree&&"file:"!==Ree.protocol&&!z3(ate)?(Mee=ate,M3.addEventListener("message",ite,!1)):Mee="onreadystatechange"in Z5("script")?function(e){T7.appendChild(Z5("script")).onreadystatechange=function(){T7.removeChild(this),rte(e)}}:function(e){setTimeout(ote(e),0)});var ute,ste,lte,cte,fte,dte,pte,hte,gte={set:Kee,clear:Yee},vte=/ipad|iphone|ipod/i.test(p5)&&void 0!==M3.Pebble,yte=/web0s(?!.*chrome)/i.test(p5),mte=e8.f,bte=gte.set,wte=M3.MutationObserver||M3.WebKitMutationObserver,Ete=M3.document,Dte=M3.process,Cte=M3.Promise,Ste=mte(M3,"queueMicrotask"),xte=Ste&&Ste.value;xte||(ute=function(){var e,t;for(qee&&(e=Dte.domain)&&e.exit();ste;){t=ste.fn,ste=ste.next;try{t()}catch(n){throw ste?cte():lte=void 0,n}}lte=void 0,e&&e.enter()},Gee||qee||yte||!wte||!Ete?!vte&&Cte&&Cte.resolve?((pte=Cte.resolve(void 0)).constructor=Cte,hte=U7(pte.then,pte),cte=function(){hte(ute)}):qee?cte=function(){Dte.nextTick(ute)}:(bte=U7(bte,M3),cte=function(){bte(ute)}):(fte=!0,dte=Ete.createTextNode(""),new wte(ute).observe(dte,{characterData:!0}),cte=function(){dte.data=fte=!fte}));var Ate,Ote,kte,Bte,Fte=xte||function(e){var t={fn:e,next:void 0};lte&&(lte.next=t),ste||(ste=t,cte()),lte=t},Tte=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=A5(t),this.reject=A5(n)},_te={f:function(e){return new Tte(e)}},Pte=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},jte="object"==typeof window,Nte=gte.set,Ite=W5("species"),Lte="Promise",Rte=x8.getterFor(Lte),Mte=x8.set,zte=x8.getterFor(Lte),$te=dee&&dee.prototype,Hte=dee,Vte=$te,Ute=M3.TypeError,Wte=M3.document,Gte=M3.process,qte=_te.f,Kte=qte,Yte=!!(Wte&&Wte.createEvent&&M3.dispatchEvent),Xte=s5(M3.PromiseRejectionEvent),Zte=!1,Jte=o7(Lte,(function(){var e=d8(Hte),t=e!==String(Hte);if(!t&&66===m5)return!0;if(m5>=51&&/native code/.test(e))return!1;var n=new Hte((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Ite]=r,!(Zte=n.then((function(){}))instanceof r)||!t&&jte&&!Xte})),Qte=Jte||!Hee((function(e){Hte.all(e).catch((function(){}))})),ene=function(e){var t;return!(!l5(e)||!s5(t=e.then))&&t},tne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Fte((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&&ine(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Ute("Promise-chain cycle")):(u=ene(a))?V3(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&rne(e)}))}},nne=function(e,t,n){var r,o;Yte?((r=Wte.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),M3.dispatchEvent(r)):r={promise:t,reason:n},!Xte&&(o=M3["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=M3.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},rne=function(e){V3(Nte,M3,(function(){var t,n=e.facade,r=e.value;if(one(e)&&(t=Pte((function(){qee?Gte.emit("unhandledRejection",r,n):nne("unhandledrejection",n,r)})),e.rejection=qee||one(e)?2:1,t.error))throw t.value}))},one=function(e){return 1!==e.rejection&&!e.parent},ine=function(e){V3(Nte,M3,(function(){var t=e.facade;qee?Gte.emit("rejectionHandled",t):nne("rejectionhandled",t,e.value)}))},ane=function(e,t,n){return function(r){e(t,r,n)}},une=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,tne(e,!0))},sne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ute("Promise can't be resolved itself");var r=ene(t);r?Fte((function(){var n={done:!1};try{V3(r,t,ane(sne,n,e),ane(une,n,e))}catch(o){une(n,o,e)}})):(e.value=t,e.state=1,tne(e,!1))}catch(o){une({done:!1},o,e)}}};if(Jte&&(Vte=(Hte=function(e){Dee(this,Vte),A5(e),V3(Ate,this);var t=Rte(this);try{e(ane(sne,t),ane(une,t))}catch(n){une(t,n)}}).prototype,(Ate=function(e){Mte(this,{type:Lte,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=pee(Vte,{then:function(e,t){var n,r,o,i=zte(this),a=i.reactions,u=qte((n=Hte,void 0===(o=r8(this).constructor)||null==(r=r8(o)[Uee])?n:function(e){if(Q7(e))return e;throw Vee(S5(e)+" is not a constructor")}(r)));return u.ok=!s5(e)||e,u.fail=s5(t)&&t,u.domain=qee?Gte.domain:void 0,i.parent=!0,a[a.length]=u,0!=i.state&&tne(i,!1),u.promise},catch:function(e){return this.then(void 0,e)}}),Ote=function(){var e=new Ate,t=Rte(e);this.promise=e,this.resolve=ane(sne,t),this.reject=ane(une,t)},_te.f=qte=function(e){return e===Hte||e===kte?new Ote(e):Kte(e)},s5(dee)&&$te!==Object.prototype)){Bte=$te.then,Zte||(F8($te,"then",(function(e,t){var n=this;return new Hte((function(e,t){V3(Bte,n,e,t)})).then(e,t)}),{unsafe:!0}),F8($te,"catch",Vte.catch,{unsafe:!0}));try{delete $te.constructor}catch(Xve){}vee&&vee($te,Vte)}function lne(e,t,n){return void 0===n&&(n=""),T3(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return _3(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(){Od.insertNodes(e,l)})),o(l),[2]}}))}))}function cne(){return fee("w-e-insert-video")}a7({global:!0,wrap:!0,forced:Jte},{Promise:Hte}),bee(Hte,Lte,!1),function(e){var t=f5("Promise"),n=a8.f;$3&&t&&!t[wee]&&n(t,wee,{configurable:!0,get:function(){return this}})}(),kte=f5(Lte),a7({target:Lte,stat:!0,forced:Jte},{reject:function(e){var t=qte(this);return V3(t.reject,void 0,e),t.promise}}),a7({target:Lte,stat:!0,forced:Jte},{resolve:function(e){return function(e,t){if(r8(e),l5(t)&&t.constructor===e)return t;var n=_te.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),a7({target:Lte,stat:!0,forced:Qte},{all:function(e){var t=this,n=qte(t),r=n.resolve,o=n.reject,i=Pte((function(){var n=A5(t.resolve),i=[],a=0,u=1;Pee(e,(function(e){var s=a++,l=!1;u++,V3(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=qte(t),r=n.reject,o=Pte((function(){var o=A5(t.resolve);Pee(e,(function(e){V3(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var fne=function(){function e(){this.title=xP("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=cne(),this.posterInputId=cne(),this.buttonId=cne()}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||!nd.isCollapsed(t)||!!MO.getSelectedElems(e).some((function(t){var n=MO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=P3(l_(xP("videoModule.videoSrc"),r,xP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=P3(l_(xP("videoModule.videoPoster"),o,xP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Hp(s),p=Hp(f),h=P3(c_(i,xP("videoModule.ok")),1)[0];if(null==this.$content){var g=Hp("<div></div>");g.on("click","#"+i,(function(n){return T3(t,void 0,void 0,(function(){var t,i;return _3(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,lne(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}(),dne=J3([].join),pne=o5!=Object,hne=function(e,t){var n=[].join;return!!n&&z3((function(){n.call(null,",",1)}))}();a7({target:"Array",proto:!0,forced:pne||!hne},{join:function(e){return dne(u5(this),void 0===e?",":e)}});var gne,vne,yne,mne=!z3((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bne=v8("IE_PROTO"),wne=M3.Object,Ene=wne.prototype,Dne=mne?wne.getPrototypeOf:function(e){var t=j5(e);if(I5(t,bne))return t[bne];var n=t.constructor;return s5(n)&&t instanceof n?n.prototype:t instanceof wne?Ene:null},Cne=W5("iterator"),Sne=!1;[].keys&&("next"in(yne=[].keys())?(vne=Dne(Dne(yne)))!==Object.prototype&&(gne=vne):Sne=!0);var xne=null==gne||z3((function(){var e={};return gne[Cne].call(e)!==e}));xne&&(gne={}),s5(gne[Cne])||F8(gne,Cne,(function(){return this}));var Ane={IteratorPrototype:gne,BUGGY_SAFARI_ITERATORS:Sne},One=Ane.IteratorPrototype,kne=function(){return this},Bne=B8.PROPER,Fne=B8.CONFIGURABLE,Tne=Ane.IteratorPrototype,_ne=Ane.BUGGY_SAFARI_ITERATORS,Pne=W5("iterator"),jne=function(){return this},Nne=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=L7(One,{next:q3(1,s)}),bee(u,l,!1),Cee[l]=kne;var c,f,d,p=function(e){if(e===o&&m)return m;if(!_ne&&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[Pne]||v["@@iterator"]||o&&v[o],m=!_ne&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=Dne(b.call(new e)))!==Object.prototype&&c.next&&(Dne(c)!==Tne&&(vee?vee(c,Tne):s5(c[Pne])||F8(c,Pne,jne)),bee(c,h,!0)),Bne&&"values"==o&&y&&"values"!==y.name&&(Fne?u8(v,"name","values"):(g=!0,m=function(){return V3(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(_ne||g||!(d in v))&&F8(v,d,f[d]);else a7({target:t,proto:!0,forced:_ne||g},f);return v[Pne]!==m&&F8(v,Pne,m,{name:o}),Cee[t]=m,f},Ine=x8.set,Lne=x8.getterFor("Array Iterator"),Rne=Nne(Array,"Array",(function(e,t){Ine(this,{type:"Array Iterator",target:u5(e),index:0,kind:t})}),(function(){var e=Lne(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");Cee.Arguments=Cee.Array,z7("keys"),z7("values"),z7("entries");var Mne=U9.charAt,zne=x8.set,$ne=x8.getterFor("String Iterator");Nne(String,"String",(function(e){zne(this,{type:"String Iterator",string:h7(e),index:0})}),(function(){var e,t=$ne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Mne(n,r),t.index+=e.length,{value:e,done:!1})}));var Hne=function(e,t,n){var r=K5(t);r in e?a8.f(e,r,q3(0,n)):e[r]=n},Vne=M3.Array,Une=Math.max,Wne=q8.f,Gne="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qne={f:function(e){return Gne&&"Window"==t5(e)?function(e){try{return Wne(e)}catch(t){return function(e,t,n){for(var r=M8(e),o=I8(void 0,r),i=I8(r,r),a=Vne(Une(i-o,0)),u=0;o<i;o++,u++)Hne(a,u,e[o]);return a.length=u,a}(Gne)}}(e):Wne(u5(e))}},Kne=z3((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Yne=Object.isExtensible,Xne=z3((function(){Yne(1)}))||Kne?function(e){return!!l5(e)&&(!Kne||"ArrayBuffer"!=t5(e))&&(!Yne||Yne(e))}:Yne,Zne=!z3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Jne=N3((function(e){var t=a8.f,n=!1,r=z5("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=q8.f,t=J3([].splice),o={};o[r]=1,e(o).length&&(q8.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},a7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:qne.f}))},fastKey:function(e,t){if(!l5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!I5(e,r)){if(!Xne(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!I5(e,r)){if(!Xne(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Zne&&n&&Xne(e)&&!I5(e,r)&&i(e),e}};y8[r]=!0})),Qne=Jne.getWeakData,ere=x8.set,tre=x8.getterFor,nre=i9.find,rre=i9.findIndex,ore=J3([].splice),ire=0,are=function(e){return e.frozen||(e.frozen=new ure)},ure=function(){this.entries=[]},sre=function(e,t){return nre(e.entries,(function(e){return e[0]===t}))};ure.prototype={get:function(e){var t=sre(this,e);if(t)return t[1]},has:function(e){return!!sre(this,e)},set:function(e,t){var n=sre(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=rre(this.entries,(function(t){return t[0]===e}));return~t&&ore(this.entries,t,1),!!~t}};var lre,cre={getConstructor:function(e,t,n,r){var o=e((function(e,o){Dee(e,i),ere(e,{type:t,id:ire++,frozen:void 0}),null!=o&&Pee(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=tre(t),u=function(e,t,n){var r=a(e),o=Qne(r8(t),!0);return!0===o?are(r).set(t,n):o[r.id]=n,e};return pee(i,{delete:function(e){var t=a(this);if(!l5(e))return!1;var n=Qne(e);return!0===n?are(t).delete(e):n&&I5(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!l5(e))return!1;var n=Qne(e);return!0===n?are(t).has(e):n&&I5(n,t.id)}}),pee(i,n?{get:function(e){var t=a(this);if(l5(e)){var n=Qne(e);return!0===n?are(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}},fre=x8.enforce,dre=!M3.ActiveXObject&&"ActiveXObject"in M3,pre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=M3[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=J3(u[e]);F8(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!l5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!l5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!l5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(o7(e,!s5(a)||!(o||u.forEach&&!z3((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Jne.enable();else if(o7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=z3((function(){f.has(1)})),h=Hee((function(e){new a(e)})),g=!o&&z3((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Dee(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,vee&&s5(c=o.constructor)&&c!==l&&l5(f=c.prototype)&&f!==l.prototype&&vee(n,f),n);return null!=t&&Pee(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,a7({global:!0,forced:s!=a},l),bee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",pre,cre);if(h8&&dre){lre=cre.getConstructor(pre,"WeakMap",!0),Jne.enable();var gre=hre.prototype,vre=J3(gre.delete),yre=J3(gre.has),mre=J3(gre.get),bre=J3(gre.set);pee(gre,{delete:function(e){if(l5(e)&&!Xne(e)){var t=fre(this);return t.frozen||(t.frozen=new lre),vre(this,e)||t.frozen.delete(e)}return vre(this,e)},has:function(e){if(l5(e)&&!Xne(e)){var t=fre(this);return t.frozen||(t.frozen=new lre),yre(this,e)||t.frozen.has(e)}return yre(this,e)},get:function(e){if(l5(e)&&!Xne(e)){var t=fre(this);return t.frozen||(t.frozen=new lre),yre(this,e)?mre(this,e):t.frozen.get(e)}return mre(this,e)},set:function(e,t){if(l5(e)&&!Xne(e)){var n=fre(this);n.frozen||(n.frozen=new lre),yre(this,e)?bre(this,e,t):n.frozen.set(e,t)}else bre(this,e,t);return this}})}var wre={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},Ere=Z5("span").classList,Dre=Ere&&Ere.constructor&&Ere.constructor.prototype,Cre=Dre===Object.prototype?void 0:Dre,Sre=W5("iterator"),xre=W5("toStringTag"),Are=Rne.values,Ore=function(e,t){if(e){if(e[Sre]!==Are)try{u8(e,Sre,Are)}catch(r){e[Sre]=Are}if(e[xre]||u8(e,xre,t),wre[t])for(var n in Rne)if(e[n]!==Rne[n])try{u8(e,n,Rne[n])}catch(r){e[n]=Rne[n]}}};for(var kre in wre)Ore(M3[kre]&&M3[kre].prototype,kre);Ore(Cre,"DOMTokenList");var Bre=B8.EXISTS,Fre=a8.f,Tre=Function.prototype,_re=J3(Tre.toString),Pre=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,jre=J3(Pre.exec);$3&&!Bre&&Fre(Tre,"name",{configurable:!0,get:function(){try{return jre(Pre,_re(this))[1]}catch(zl){return""}}});var Nre=W5("species"),Ire=m5>=51||!z3((function(){var e=[];return(e.constructor={})[Nre]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Lre=W5("species"),Rre=M3.Array,Mre=Math.max;function zre(e){return e.getMenuConfig("uploadVideo")}a7({target:"Array",proto:!0,forced:!Ire},{slice:function(e,t){var n,r,o,i=u5(this),a=M8(i),u=I8(e,a),s=I8(void 0===t?a:t,a);if(W7(i)&&(n=i.constructor,(Q7(n)&&(n===Rre||W7(n.prototype))||l5(n)&&null===(n=n[Lre]))&&(n=void 0),n===Rre||void 0===n))return Wee(i,u,s);for(r=new(void 0===n?Rre:n)(Mre(s-u,0)),o=0;u<s;u++,o++)u in i&&Hne(r,o,i[u]);return r.length=o,r}});var $re=new WeakMap;function Hre(e,t){return T3(this,void 0,void 0,(function(){var n,r,o,i;return _3(this,(function(a){switch(a.label){case 0:return n=function(e){var t=$re.get(e);if(null!=t)return t;var n=zre(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=P_(F3(F3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return lne(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;lne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),$re.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 Vre=function(){function e(){this.title=xP("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 lne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Hp("body"),s=Hp('<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;T3(this,void 0,void 0,(function(){var o,i,a,u,s,l;return _3(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=zre(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 lne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Hre(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||!nd.isCollapsed(t)||!!MO.getSelectedElems(e).some((function(t){var n=MO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),Ure=B8.PROPER,Wre=RegExp.prototype,Gre=Wre.toString,qre=J3(p9),Kre=z3((function(){return"/a/b"!=Gre.call({source:"a",flags:"b"})})),Yre=Ure&&"toString"!=Gre.name;function Xre(){return fee("w-e-insert-video")}(Kre||Yre)&&F8(RegExp.prototype,"toString",(function(){var e=r8(this),t=h7(e.source),n=e.flags;return"/"+t+"/"+h7(void 0===n&&d5(Wre,e)&&!("flags"in Wre)?qre(e):n)}),{unsafe:!0});var Zre=function(){function e(){this.title=xP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Xre(),this.heightInputId=Xre(),this.buttonId=Xre()}return e.prototype.getSelectedVideoNode=function(e){return MO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=P3(l_(xP("videoModule.width"),n,"auto"),2),a=i[0],u=Hp(i[1]),s=P3(l_(xP("videoModule.height"),r,"auto"),2),l=s[0],c=Hp(s[1]),f=P3(c_(o,xP("videoModule.ok")),1)[0];if(null==this.$content){var d=Hp("<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(),Od.setNodes(e,{width:s,height:l},{match:function(e){return MO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var g=h.width,v=void 0===g?"auto":g,y=h.height,m=void 0===y?"auto":y;return u.val(v),c.val(m),setTimeout((function(){u.focus()})),p[0]},e}(),Jre={renderElems:[O7],elemsToHtml:[k7],preParseHtml:[H7],parseElemsHtml:[d9],menus:[{key:"insertVideo",factory:function(){return new fne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Vre},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 Zre}}],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=P3(e,2),o=t[0],i=t[1];return"video"===MO.getNodeType(o)&&MO.isLastNode(r,o)&&Od.insertNodes(r,MO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};SP("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),SP("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Qre="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function eoe(e){var t={exports:{}};return e(t,t.exports),t.exports}var toe,noe,roe=function(e){return e&&e.Math==Math&&e},ooe=roe("object"==typeof globalThis&&globalThis)||roe("object"==typeof window&&window)||roe("object"==typeof self&&self)||roe("object"==typeof Qre&&Qre)||function(){return this}()||Function("return this")(),ioe=function(e){try{return!!e()}catch(t){return!0}},aoe=!ioe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),uoe=Function.prototype.call,soe=uoe.bind?uoe.bind(uoe):function(){return uoe.apply(uoe,arguments)},loe={}.propertyIsEnumerable,coe=Object.getOwnPropertyDescriptor,foe={f:coe&&!loe.call({1:2},1)?function(e){var t=coe(this,e);return!!t&&t.enumerable}:loe},doe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},poe=Function.prototype,hoe=poe.bind,goe=poe.call,voe=hoe&&hoe.bind(goe),yoe=hoe?function(e){return e&&voe(goe,e)}:function(e){return e&&function(){return goe.apply(e,arguments)}},moe=yoe({}.toString),boe=yoe("".slice),woe=function(e){return boe(moe(e),8,-1)},Eoe=ooe.Object,Doe=yoe("".split),Coe=ioe((function(){return!Eoe("z").propertyIsEnumerable(0)}))?function(e){return"String"==woe(e)?Doe(e,""):Eoe(e)}:Eoe,Soe=ooe.TypeError,xoe=function(e){if(null==e)throw Soe("Can't call method on "+e);return e},Aoe=function(e){return Coe(xoe(e))},Ooe=function(e){return"function"==typeof e},koe=function(e){return"object"==typeof e?null!==e:Ooe(e)},Boe=function(e){return Ooe(e)?e:void 0},Foe=function(e,t){return arguments.length<2?Boe(ooe[e]):ooe[e]&&ooe[e][t]},Toe=yoe({}.isPrototypeOf),_oe=Foe("navigator","userAgent")||"",Poe=ooe.process,joe=ooe.Deno,Noe=Poe&&Poe.versions||joe&&joe.version,Ioe=Noe&&Noe.v8;Ioe&&(noe=(toe=Ioe.split("."))[0]>0&&toe[0]<4?1:+(toe[0]+toe[1])),!noe&&_oe&&(!(toe=_oe.match(/Edge\/(\d+)/))||toe[1]>=74)&&(toe=_oe.match(/Chrome\/(\d+)/))&&(noe=+toe[1]);var Loe=noe,Roe=!!Object.getOwnPropertySymbols&&!ioe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Loe&&Loe<41})),Moe=Roe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zoe=ooe.Object,$oe=Moe?function(e){return"symbol"==typeof e}:function(e){var t=Foe("Symbol");return Ooe(t)&&Toe(t.prototype,zoe(e))},Hoe=ooe.String,Voe=function(e){try{return Hoe(e)}catch(t){return"Object"}},Uoe=ooe.TypeError,Woe=function(e){if(Ooe(e))return e;throw Uoe(Voe(e)+" is not a function")},Goe=function(e,t){var n=e[t];return null==n?void 0:Woe(n)},qoe=ooe.TypeError,Koe=Object.defineProperty,Yoe=function(e,t){try{Koe(ooe,e,{value:t,configurable:!0,writable:!0})}catch(OP){ooe[e]=t}return t},Xoe=ooe["__core-js_shared__"]||Yoe("__core-js_shared__",{}),Zoe=eoe((function(e){(e.exports=function(e,t){return Xoe[e]||(Xoe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Joe=ooe.Object,Qoe=function(e){return Joe(xoe(e))},eie=yoe({}.hasOwnProperty),tie=Object.hasOwn||function(e,t){return eie(Qoe(e),t)},nie=0,rie=Math.random(),oie=yoe(1..toString),iie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+oie(++nie+rie,36)},aie=Zoe("wks"),uie=ooe.Symbol,sie=uie&&uie.for,lie=Moe?uie:uie&&uie.withoutSetter||iie,cie=function(e){if(!tie(aie,e)||!Roe&&"string"!=typeof aie[e]){var t="Symbol."+e;Roe&&tie(uie,e)?aie[e]=uie[e]:aie[e]=Moe&&sie?sie(t):lie(t)}return aie[e]},fie=ooe.TypeError,die=cie("toPrimitive"),pie=function(e){var t=function(e,t){if(!koe(e)||$oe(e))return e;var n,r=Goe(e,die);if(r){if(void 0===t&&(t="default"),n=soe(r,e,t),!koe(n)||$oe(n))return n;throw fie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ooe(n=e.toString)&&!koe(r=soe(n,e)))return r;if(Ooe(n=e.valueOf)&&!koe(r=soe(n,e)))return r;if("string"!==t&&Ooe(n=e.toString)&&!koe(r=soe(n,e)))return r;throw qoe("Can't convert object to primitive value")}(e,t)}(e,"string");return $oe(t)?t:t+""},hie=ooe.document,gie=koe(hie)&&koe(hie.createElement),vie=function(e){return gie?hie.createElement(e):{}},yie=!aoe&&!ioe((function(){return 7!=Object.defineProperty(vie("div"),"a",{get:function(){return 7}}).a})),mie=Object.getOwnPropertyDescriptor,bie={f:aoe?mie:function(e,t){if(e=Aoe(e),t=pie(t),yie)try{return mie(e,t)}catch(n){}if(tie(e,t))return doe(!soe(foe.f,e,t),e[t])}},wie=ooe.String,Eie=ooe.TypeError,Die=function(e){if(koe(e))return e;throw Eie(wie(e)+" is not an object")},Cie=ooe.TypeError,Sie=Object.defineProperty,xie={f:aoe?Sie:function(e,t,n){if(Die(e),t=pie(t),Die(n),yie)try{return Sie(e,t,n)}catch(r){}if("get"in n||"set"in n)throw Cie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Aie=aoe?function(e,t,n){return xie.f(e,t,doe(1,n))}:function(e,t,n){return e[t]=n,e},Oie=yoe(Function.toString);Ooe(Xoe.inspectSource)||(Xoe.inspectSource=function(e){return Oie(e)});var kie,Bie,Fie,Tie=Xoe.inspectSource,_ie=ooe.WeakMap,Pie=Ooe(_ie)&&/native code/.test(Tie(_ie)),jie=Zoe("keys"),Nie=function(e){return jie[e]||(jie[e]=iie(e))},Iie={},Lie=ooe.TypeError,Rie=ooe.WeakMap;if(Pie||Xoe.state){var Mie=Xoe.state||(Xoe.state=new Rie),zie=yoe(Mie.get),$ie=yoe(Mie.has),Hie=yoe(Mie.set);kie=function(e,t){if($ie(Mie,e))throw new Lie("Object already initialized");return t.facade=e,Hie(Mie,e,t),t},Bie=function(e){return zie(Mie,e)||{}},Fie=function(e){return $ie(Mie,e)}}else{var Vie=Nie("state");Iie[Vie]=!0,kie=function(e,t){if(tie(e,Vie))throw new Lie("Object already initialized");return t.facade=e,Aie(e,Vie,t),t},Bie=function(e){return tie(e,Vie)?e[Vie]:{}},Fie=function(e){return tie(e,Vie)}}var Uie={set:kie,get:Bie,has:Fie,enforce:function(e){return Fie(e)?Bie(e):kie(e,{})},getterFor:function(e){return function(t){var n;if(!koe(t)||(n=Bie(t)).type!==e)throw Lie("Incompatible receiver, "+e+" required");return n}}},Wie=Function.prototype,Gie=aoe&&Object.getOwnPropertyDescriptor,qie=tie(Wie,"name"),Kie={EXISTS:qie,PROPER:qie&&"something"===function(){}.name,CONFIGURABLE:qie&&(!aoe||aoe&&Gie(Wie,"name").configurable)},Yie=eoe((function(e){var t=Kie.CONFIGURABLE,n=Uie.get,r=Uie.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;Ooe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!tie(i,"name")||t&&i.name!==f)&&Aie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ooe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Aie(e,n,i)):l?e[n]=i:Yoe(n,i)})(Function.prototype,"toString",(function(){return Ooe(this)&&n(this).source||Tie(this)}))})),Xie=Math.ceil,Zie=Math.floor,Jie=function(e){var t=+e;return t!=t||0===t?0:(t>0?Zie:Xie)(t)},Qie=Math.max,eae=Math.min,tae=function(e,t){var n=Jie(e);return n<0?Qie(n+t,0):eae(n,t)},nae=Math.min,rae=function(e){return e>0?nae(Jie(e),9007199254740991):0},oae=function(e){return rae(e.length)},iae=function(e){return function(t,n,r){var o,i=Aoe(t),a=oae(i),u=tae(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),aae=yoe([].push),uae=function(e,t){var n,r=Aoe(e),o=0,i=[];for(n in r)!tie(Iie,n)&&tie(r,n)&&aae(i,n);for(;t.length>o;)tie(r,n=t[o++])&&(~iae(i,n)||aae(i,n));return i},sae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lae=sae.concat("length","prototype"),cae={f:Object.getOwnPropertyNames||function(e){return uae(e,lae)}},fae={f:Object.getOwnPropertySymbols},dae=yoe([].concat),pae=Foe("Reflect","ownKeys")||function(e){var t=cae.f(Die(e)),n=fae.f;return n?dae(t,n(e)):t},hae=function(e,t){for(var n=pae(t),r=xie.f,o=bie.f,i=0;i<n.length;i++){var a=n[i];tie(e,a)||r(e,a,o(t,a))}},gae=/#|\.prototype\./,vae=function(e,t){var n=mae[yae(e)];return n==wae||n!=bae&&(Ooe(t)?ioe(t):!!t)},yae=vae.normalize=function(e){return String(e).replace(gae,".").toLowerCase()},mae=vae.data={},bae=vae.NATIVE="N",wae=vae.POLYFILL="P",Eae=vae,Dae=bie.f,Cae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ooe:l?ooe[u]||Yoe(u,{}):(ooe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Dae(n,r))&&a.value:n[r],!Eae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;hae(i,o)}(e.sham||o&&o.sham)&&Aie(i,"sham",!0),Yie(n,r,i,e)}},Sae=Array.isArray||function(e){return"Array"==woe(e)},xae={};xae[cie("toStringTag")]="z";var Aae="[object z]"===String(xae),Oae=cie("toStringTag"),kae=ooe.Object,Bae="Arguments"==woe(function(){return arguments}()),Fae=Aae?woe: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=kae(e),Oae))?n:Bae?woe(t):"Object"==(r=woe(t))&&Ooe(t.callee)?"Arguments":r},Tae=function(){},_ae=[],Pae=Foe("Reflect","construct"),jae=/^\s*(?:class|function)\b/,Nae=yoe(jae.exec),Iae=!jae.exec(Tae),Lae=function(e){if(!Ooe(e))return!1;try{return Pae(Tae,_ae,e),!0}catch(t){return!1}},Rae=!Pae||ioe((function(){var e;return Lae(Lae.call)||!Lae(Object)||!Lae((function(){e=!0}))||e}))?function(e){if(!Ooe(e))return!1;switch(Fae(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Iae||!!Nae(jae,Tie(e))}:Lae,Mae=function(e,t,n){var r=pie(t);r in e?xie.f(e,r,doe(0,n)):e[r]=n},zae=cie("species"),$ae=yoe([].slice),Hae=Loe>=51||!ioe((function(){var e=[];return(e.constructor={})[zae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Vae=cie("species"),Uae=ooe.Array,Wae=Math.max;Cae({target:"Array",proto:!0,forced:!Hae},{slice:function(e,t){var n,r,o,i=Aoe(this),a=oae(i),u=tae(e,a),s=tae(void 0===t?a:t,a);if(Sae(i)&&(n=i.constructor,(Rae(n)&&(n===Uae||Sae(n.prototype))||koe(n)&&null===(n=n[Vae]))&&(n=void 0),n===Uae||void 0===n))return $ae(i,u,s);for(r=new(void 0===n?Uae:n)(Wae(s-u,0)),o=0;u<s;u++,o++)u in i&&Mae(r,o,i[u]);return r.length=o,r}});var Gae=Aae?{}.toString:function(){return"[object "+Fae(this)+"]"};Aae||Yie(Object.prototype,"toString",Gae,{unsafe:!0});var qae,Kae=ooe.String,Yae=function(e){if("Symbol"===Fae(e))throw TypeError("Cannot convert a Symbol value to a string");return Kae(e)},Xae=function(){var e=Die(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},Zae=ooe.RegExp,Jae=ioe((function(){var e=Zae("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Qae=Jae||ioe((function(){return!Zae("a","y").sticky})),eue={BROKEN_CARET:Jae||ioe((function(){var e=Zae("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Qae,UNSUPPORTED_Y:Jae},tue=Object.keys||function(e){return uae(e,sae)},nue=aoe?Object.defineProperties:function(e,t){Die(e);for(var n,r=Aoe(t),o=tue(t),i=o.length,a=0;i>a;)xie.f(e,n=o[a++],r[n]);return e},rue=Foe("document","documentElement"),oue=Nie("IE_PROTO"),iue=function(){},aue=function(e){return"<script>"+e+"<\/script>"},uue=function(e){e.write(aue("")),e.close();var t=e.parentWindow.Object;return e=null,t},sue=function(){try{qae=new ActiveXObject("htmlfile")}catch(r){}var e,t;sue="undefined"!=typeof document?document.domain&&qae?uue(qae):((t=vie("iframe")).style.display="none",rue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(aue("document.F=Object")),e.close(),e.F):uue(qae);for(var n=sae.length;n--;)delete sue.prototype[sae[n]];return sue()};Iie[oue]=!0;var lue,cue,fue=Object.create||function(e,t){var n;return null!==e?(iue.prototype=Die(e),n=new iue,iue.prototype=null,n[oue]=e):n=sue(),void 0===t?n:nue(n,t)},due=ooe.RegExp,pue=ioe((function(){var e=due(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),hue=ooe.RegExp,gue=ioe((function(){var e=hue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),vue=Uie.get,yue=Zoe("native-string-replace",String.prototype.replace),mue=RegExp.prototype.exec,bue=mue,wue=yoe("".charAt),Eue=yoe("".indexOf),Due=yoe("".replace),Cue=yoe("".slice),Sue=(cue=/b*/g,soe(mue,lue=/a/,"a"),soe(mue,cue,"a"),0!==lue.lastIndex||0!==cue.lastIndex),xue=eue.BROKEN_CARET,Aue=void 0!==/()??/.exec("")[1];(Sue||Aue||xue||pue||gue)&&(bue=function(e){var t,n,r,o,i,a,u,s=this,l=vue(s),c=Yae(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=soe(bue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xue&&s.sticky,h=soe(Xae,s),g=s.source,v=0,y=c;if(p&&(h=Due(h,"y",""),-1===Eue(h,"g")&&(h+="g"),y=Cue(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==wue(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Aue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Sue&&(r=s.lastIndex),o=soe(mue,p?n:s,y),p?o?(o.input=Cue(o.input,v),o[0]=Cue(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Sue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Aue&&o&&o.length>1&&soe(yue,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=fue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Oue=bue;Cae({target:"RegExp",proto:!0,forced:/./.exec!==Oue},{exec:Oue});var kue=Function.prototype,Bue=kue.apply,Fue=kue.bind,Tue=kue.call,_ue="object"==typeof Reflect&&Reflect.apply||(Fue?Tue.bind(Bue):function(){return Tue.apply(Bue,arguments)}),Pue=cie("species"),jue=RegExp.prototype,Nue=cie("match"),Iue=ooe.TypeError,Lue=cie("species"),Rue=function(e,t){var n,r=Die(e).constructor;return void 0===r||null==(n=Die(r)[Lue])?t:function(e){if(Rae(e))return e;throw Iue(Voe(e)+" is not a constructor")}(n)},Mue=yoe("".charAt),zue=yoe("".charCodeAt),$ue=yoe("".slice),Hue=function(e){return function(t,n){var r,o,i=Yae(xoe(t)),a=Jie(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=zue(i,a))<55296||r>56319||a+1===u||(o=zue(i,a+1))<56320||o>57343?e?Mue(i,a):r:e?$ue(i,a,a+2):o-56320+(r-55296<<10)+65536}},Vue={codeAt:Hue(!1),charAt:Hue(!0)},Uue=Vue.charAt,Wue=function(e,t,n){return t+(n?Uue(e,t).length:1)},Gue=ooe.Array,que=Math.max,Kue=function(e,t,n){for(var r=oae(e),o=tae(t,r),i=tae(void 0===n?r:n,r),a=Gue(que(i-o,0)),u=0;o<i;o++,u++)Mae(a,u,e[o]);return a.length=u,a},Yue=ooe.TypeError,Xue=function(e,t){var n=e.exec;if(Ooe(n)){var r=soe(n,e,t);return null!==r&&Die(r),r}if("RegExp"===woe(e))return soe(Oue,e,t);throw Yue("RegExp#exec called on incompatible receiver")},Zue=eue.UNSUPPORTED_Y,Jue=Math.min,Que=[].push,ese=yoe(/./.exec),tse=yoe(Que),nse=yoe("".slice);!function(e,t,n,r){var o,i,a,u=cie(e),s=!ioe((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!ioe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Pue]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=yoe(/./[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=Yae(xoe(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!koe(n=e)||!(void 0!==(r=n[Nue])?r:"RegExp"==woe(n)))return soe(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=soe(Oue,p,o))&&!((s=p.lastIndex)>d&&(tse(c,nse(o,d,u.index)),u.length>1&&u.index<o.length&&_ue(Que,c,Kue(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&ese(p,"")||tse(c,""):tse(c,nse(o,d)),c.length>a?Kue(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:soe(i,this,e,t)}:i,[function(e,t){var n=xoe(this),r=null==e?void 0:Goe(e,o);return r?soe(r,e,n,t):soe(a,Yae(n),e,t)},function(e,t){var n=Die(this),r=Yae(e),o=function(e,t,n,r,o){var i=yoe(e),a=t.exec;return a===Oue||a===jue.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=Rue(n,RegExp),l=n.unicode,f=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(Zue?"g":"y"),d=new u(Zue?"^(?:"+n.source+")":n,f),p=void 0===t?4294967295:t>>>0;if(0===p)return[];if(0===r.length)return null===Xue(d,r)?[r]:[];for(var h=0,g=0,v=[];g<r.length;){d.lastIndex=Zue?0:g;var y,m=Xue(d,Zue?nse(r,g):r);if(null===m||(y=Jue(rae(d.lastIndex+(Zue?g:0)),r.length))===h)g=Wue(r,g,l);else{if(tse(v,nse(r,h,g)),v.length===p)return v;for(var b=1;b<=m.length-1;b++)if(tse(v,m[b]),v.length===p)return v;g=h=y}}return tse(v,nse(r,h)),v}]);Yie(String.prototype,e,f[0]),Yie(jue,u,f[1])}r&&Aie(jue[u],"sham",!0)}("split",0,!!ioe((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]})),Zue);
- /*! *****************************************************************************
- 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 rse=function(){return rse=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},rse.apply(this,arguments)};function ose(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(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 ise(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 ase=cie("unscopables"),use=Array.prototype;null==use[ase]&&xie.f(use,ase,{configurable:!0,value:fue(null)});var sse,lse,cse,fse=function(e){use[ase][e]=!0},dse={},pse=!ioe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hse=Nie("IE_PROTO"),gse=ooe.Object,vse=gse.prototype,yse=pse?gse.getPrototypeOf:function(e){var t=Qoe(e);if(tie(t,hse))return t[hse];var n=t.constructor;return Ooe(n)&&t instanceof n?n.prototype:t instanceof gse?vse:null},mse=cie("iterator"),bse=!1;[].keys&&("next"in(cse=[].keys())?(lse=yse(yse(cse)))!==Object.prototype&&(sse=lse):bse=!0);var wse=null==sse||ioe((function(){var e={};return sse[mse].call(e)!==e}));wse&&(sse={}),Ooe(sse[mse])||Yie(sse,mse,(function(){return this}));var Ese={IteratorPrototype:sse,BUGGY_SAFARI_ITERATORS:bse},Dse=xie.f,Cse=cie("toStringTag"),Sse=function(e,t,n){e&&!tie(e=n?e:e.prototype,Cse)&&Dse(e,Cse,{configurable:!0,value:t})},xse=Ese.IteratorPrototype,Ase=function(){return this},Ose=ooe.String,kse=ooe.TypeError,Bse=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=yoe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(r){}return function(n,r){return Die(n),function(e){if("object"==typeof e||Ooe(e))return e;throw kse("Can't set "+Ose(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Fse=Kie.PROPER,Tse=Kie.CONFIGURABLE,_se=Ese.IteratorPrototype,Pse=Ese.BUGGY_SAFARI_ITERATORS,jse=cie("iterator"),Nse=function(){return this},Ise=function(e,t,n,r,o,i,a){var u,s,l;s=r,l=t+" Iterator",(u=n).prototype=fue(xse,{next:doe(1,s)}),Sse(u,l,!1),dse[l]=Ase;var c,f,d,p=function(e){if(e===o&&m)return m;if(!Pse&&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[jse]||v["@@iterator"]||o&&v[o],m=!Pse&&y||p(o),b="Array"==t&&v.entries||y;if(b&&(c=yse(b.call(new e)))!==Object.prototype&&c.next&&(yse(c)!==_se&&(Bse?Bse(c,_se):Ooe(c[jse])||Yie(c,jse,Nse)),Sse(c,h,!0)),Fse&&"values"==o&&y&&"values"!==y.name&&(Tse?Aie(v,"name","values"):(g=!0,m=function(){return soe(y,this)})),o)if(f={values:p("values"),keys:i?m:p("keys"),entries:p("entries")},a)for(d in f)(Pse||g||!(d in v))&&Yie(v,d,f[d]);else Cae({target:t,proto:!0,forced:Pse||g},f);return v[jse]!==m&&Yie(v,jse,m,{name:o}),dse[t]=m,f},Lse=Uie.set,Rse=Uie.getterFor("Array Iterator"),Mse=Ise(Array,"Array",(function(e,t){Lse(this,{type:"Array Iterator",target:Aoe(e),index:0,kind:t})}),(function(){var e=Rse(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");dse.Arguments=dse.Array,fse("keys"),fse("values"),fse("entries");var zse=Vue.charAt,$se=Uie.set,Hse=Uie.getterFor("String Iterator");Ise(String,"String",(function(e){$se(this,{type:"String Iterator",string:Yae(e),index:0})}),(function(){var e,t=Hse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=zse(n,r),t.index+=e.length,{value:e,done:!1})}));var Vse=function(e,t,n){for(var r in t)Yie(e,r,t[r],n);return e},Use=cae.f,Wse="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gse={f:function(e){return Wse&&"Window"==woe(e)?function(e){try{return Use(e)}catch(t){return Kue(Wse)}}(e):Use(Aoe(e))}},qse=ioe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Kse=Object.isExtensible,Yse=ioe((function(){Kse(1)}))||qse?function(e){return!!koe(e)&&(!qse||"ArrayBuffer"!=woe(e))&&(!Kse||Kse(e))}:Kse,Xse=!ioe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Zse=eoe((function(e){var t=xie.f,n=!1,r=iie("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=cae.f,t=yoe([].splice),o={};o[r]=1,e(o).length&&(cae.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},Cae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Gse.f}))},fastKey:function(e,t){if(!koe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!tie(e,r)){if(!Yse(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!tie(e,r)){if(!Yse(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Xse&&n&&Yse(e)&&!tie(e,r)&&i(e),e}};Iie[r]=!0})),Jse=yoe(yoe.bind),Qse=function(e,t){return Woe(e),void 0===t?e:Jse?Jse(e,t):function(){return e.apply(t,arguments)}},ele=cie("iterator"),tle=Array.prototype,nle=cie("iterator"),rle=function(e){if(null!=e)return Goe(e,nle)||Goe(e,"@@iterator")||dse[Fae(e)]},ole=ooe.TypeError,ile=function(e,t,n){var r,o;Die(e);try{if(!(r=Goe(e,"return"))){if("throw"===t)throw n;return n}r=soe(r,e)}catch(i){o=!0,r=i}if("throw"===t)throw n;if(o)throw r;return Die(r),n},ale=ooe.TypeError,ule=function(e,t){this.stopped=e,this.result=t},sle=ule.prototype,lle=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=Qse(t,f),v=function(e){return r&&ile(r,"normal",e),new ule(!0,e)},y=function(e){return d?(Die(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=rle(e)))throw ale(Voe(e)+" is not iterable");if(void 0!==(c=o)&&(dse.Array===c||tle[ele]===c)){for(i=0,a=oae(e);a>i;i++)if((u=y(e[i]))&&Toe(sle,u))return u;return new ule(!1)}r=function(e,t){var n=arguments.length<2?rle(e):t;if(Woe(n))return Die(soe(n,e));throw ole(Voe(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=soe(s,r)).done;){try{u=y(l.value)}catch(m){ile(r,"throw",m)}if("object"==typeof u&&u&&Toe(sle,u))return u}return new ule(!1)},cle=ooe.TypeError,fle=function(e,t){if(Toe(t,e))return e;throw cle("Incorrect invocation")},dle=cie("iterator"),ple=!1;try{var hle=0,gle={next:function(){return{done:!!hle++}},return:function(){ple=!0}};gle[dle]=function(){return this},Array.from(gle,(function(){throw 2}))}catch(Xve){}var vle=function(e,t){if(!t&&!ple)return!1;var n=!1;try{var r={};r[dle]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(o){}return n},yle=cie("species"),mle=ooe.Array,ble=function(e,t){return new(Sae(n=e)&&(r=n.constructor,(Rae(r)&&(r===mle||Sae(r.prototype))||koe(r)&&null===(r=r[yle]))&&(r=void 0)),void 0===r?mle:r)(0===t?0:t);var n,r},wle=yoe([].push),Ele=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=Qoe(s),g=Coe(h),v=Qse(l,c),y=oae(g),m=0,b=f||ble,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:wle(w,d)}else switch(e){case 4:return!1;case 7:wle(w,d)}return i?-1:r||o?o:w}},Dle={forEach:Ele(0),map:Ele(1),filter:Ele(2),some:Ele(3),every:Ele(4),find:Ele(5),findIndex:Ele(6),filterReject:Ele(7)},Cle=Zse.getWeakData,Sle=Uie.set,xle=Uie.getterFor,Ale=Dle.find,Ole=Dle.findIndex,kle=yoe([].splice),Ble=0,Fle=function(e){return e.frozen||(e.frozen=new Tle)},Tle=function(){this.entries=[]},_le=function(e,t){return Ale(e.entries,(function(e){return e[0]===t}))};Tle.prototype={get:function(e){var t=_le(this,e);if(t)return t[1]},has:function(e){return!!_le(this,e)},set:function(e,t){var n=_le(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ole(this.entries,(function(t){return t[0]===e}));return~t&&kle(this.entries,t,1),!!~t}};var Ple,jle={getConstructor:function(e,t,n,r){var o=e((function(e,o){fle(e,i),Sle(e,{type:t,id:Ble++,frozen:void 0}),null!=o&&lle(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=xle(t),u=function(e,t,n){var r=a(e),o=Cle(Die(t),!0);return!0===o?Fle(r).set(t,n):o[r.id]=n,e};return Vse(i,{delete:function(e){var t=a(this);if(!koe(e))return!1;var n=Cle(e);return!0===n?Fle(t).delete(e):n&&tie(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!koe(e))return!1;var n=Cle(e);return!0===n?Fle(t).has(e):n&&tie(n,t.id)}}),Vse(i,n?{get:function(e){var t=a(this);if(koe(e)){var n=Cle(e);return!0===n?Fle(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}},Nle=Uie.enforce,Ile=!ooe.ActiveXObject&&"ActiveXObject"in ooe,Lle=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Rle=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=ooe[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=yoe(u[e]);Yie(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!koe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!koe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!koe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Eae(e,!Ooe(a)||!(o||u.forEach&&!ioe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Zse.enable();else if(Eae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ioe((function(){f.has(1)})),h=vle((function(e){new a(e)})),g=!o&&ioe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){fle(e,u);var n,o,l,c,f,d=(n=new a,o=e,l=s,Bse&&Ooe(c=o.constructor)&&c!==l&&koe(f=c.prototype)&&f!==l.prototype&&Bse(n,f),n);return null!=t&&lle(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,Cae({global:!0,forced:s!=a},l),Sse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Lle,jle);if(Pie&&Ile){Ple=jle.getConstructor(Lle,"WeakMap",!0),Zse.enable();var Mle=Rle.prototype,zle=yoe(Mle.delete),$le=yoe(Mle.has),Hle=yoe(Mle.get),Vle=yoe(Mle.set);Vse(Mle,{delete:function(e){if(koe(e)&&!Yse(e)){var t=Nle(this);return t.frozen||(t.frozen=new Ple),zle(this,e)||t.frozen.delete(e)}return zle(this,e)},has:function(e){if(koe(e)&&!Yse(e)){var t=Nle(this);return t.frozen||(t.frozen=new Ple),$le(this,e)||t.frozen.has(e)}return $le(this,e)},get:function(e){if(koe(e)&&!Yse(e)){var t=Nle(this);return t.frozen||(t.frozen=new Ple),$le(this,e)?Hle(this,e):t.frozen.get(e)}return Hle(this,e)},set:function(e,t){if(koe(e)&&!Yse(e)){var n=Nle(this);n.frozen||(n.frozen=new Ple),$le(this,e)?Vle(this,e,t):n.frozen.set(e,t)}else Vle(this,e,t);return this}})}var Ule={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},Wle=vie("span").classList,Gle=Wle&&Wle.constructor&&Wle.constructor.prototype,qle=Gle===Object.prototype?void 0:Gle,Kle=cie("iterator"),Yle=cie("toStringTag"),Xle=Mse.values,Zle=function(e,t){if(e){if(e[Kle]!==Xle)try{Aie(e,Kle,Xle)}catch(r){e[Kle]=Xle}if(e[Yle]||Aie(e,Yle,t),Ule[t])for(var n in Mse)if(e[n]!==Mse[n])try{Aie(e,n,Mse[n])}catch(r){e[n]=Mse[n]}}};for(var Jle in Ule)Zle(ooe[Jle]&&ooe[Jle].prototype,Jle);Zle(qle,"DOMTokenList");var Qle=function(e,t){var n=[][e];return!!n&&ioe((function(){n.call(null,t||function(){throw 1},1)}))},ece=Dle.forEach,tce=Qle("forEach")?[].forEach:function(e){return ece(this,e,arguments.length>1?arguments[1]:void 0)},nce=function(e){if(e&&e.forEach!==tce)try{Aie(e,"forEach",tce)}catch(t){e.forEach=tce}};for(var rce in Ule)Ule[rce]&&nce(ooe[rce]&&ooe[rce].prototype);nce(qle);var oce,ice,ace,uce,sce=ooe.Promise,lce=cie("species"),cce=/(?:ipad|iphone|ipod).*applewebkit/i.test(_oe),fce="process"==woe(ooe.process),dce=ooe.setImmediate,pce=ooe.clearImmediate,hce=ooe.process,gce=ooe.Dispatch,vce=ooe.Function,yce=ooe.MessageChannel,mce=ooe.String,bce=0,wce={};try{oce=ooe.location}catch(Xve){}var Ece=function(e){if(tie(wce,e)){var t=wce[e];delete wce[e],t()}},Dce=function(e){return function(){Ece(e)}},Cce=function(e){Ece(e.data)},Sce=function(e){ooe.postMessage(mce(e),oce.protocol+"//"+oce.host)};dce&&pce||(dce=function(e){var t=$ae(arguments,1);return wce[++bce]=function(){_ue(Ooe(e)?e:vce(e),void 0,t)},ice(bce),bce},pce=function(e){delete wce[e]},fce?ice=function(e){hce.nextTick(Dce(e))}:gce&&gce.now?ice=function(e){gce.now(Dce(e))}:yce&&!cce?(uce=(ace=new yce).port2,ace.port1.onmessage=Cce,ice=Qse(uce.postMessage,uce)):ooe.addEventListener&&Ooe(ooe.postMessage)&&!ooe.importScripts&&oce&&"file:"!==oce.protocol&&!ioe(Sce)?(ice=Sce,ooe.addEventListener("message",Cce,!1)):ice="onreadystatechange"in vie("script")?function(e){rue.appendChild(vie("script")).onreadystatechange=function(){rue.removeChild(this),Ece(e)}}:function(e){setTimeout(Dce(e),0)});var xce,Ace,Oce,kce,Bce,Fce,Tce,_ce,Pce={set:dce,clear:pce},jce=/ipad|iphone|ipod/i.test(_oe)&&void 0!==ooe.Pebble,Nce=/web0s(?!.*chrome)/i.test(_oe),Ice=bie.f,Lce=Pce.set,Rce=ooe.MutationObserver||ooe.WebKitMutationObserver,Mce=ooe.document,zce=ooe.process,$ce=ooe.Promise,Hce=Ice(ooe,"queueMicrotask"),Vce=Hce&&Hce.value;Vce||(xce=function(){var e,t;for(fce&&(e=zce.domain)&&e.exit();Ace;){t=Ace.fn,Ace=Ace.next;try{t()}catch(n){throw Ace?kce():Oce=void 0,n}}Oce=void 0,e&&e.enter()},cce||fce||Nce||!Rce||!Mce?!jce&&$ce&&$ce.resolve?((Tce=$ce.resolve(void 0)).constructor=$ce,_ce=Qse(Tce.then,Tce),kce=function(){_ce(xce)}):fce?kce=function(){zce.nextTick(xce)}:(Lce=Qse(Lce,ooe),kce=function(){Lce(xce)}):(Bce=!0,Fce=Mce.createTextNode(""),new Rce(xce).observe(Fce,{characterData:!0}),kce=function(){Fce.data=Bce=!Bce}));var Uce,Wce,Gce,qce,Kce=Vce||function(e){var t={fn:e,next:void 0};Oce&&(Oce.next=t),Ace||(Ace=t,kce()),Oce=t},Yce=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=Woe(t),this.reject=Woe(n)},Xce={f:function(e){return new Yce(e)}},Zce=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Jce="object"==typeof window,Qce=Pce.set,efe=cie("species"),tfe="Promise",nfe=Uie.getterFor(tfe),rfe=Uie.set,ofe=Uie.getterFor(tfe),ife=sce&&sce.prototype,afe=sce,ufe=ife,sfe=ooe.TypeError,lfe=ooe.document,cfe=ooe.process,ffe=Xce.f,dfe=ffe,pfe=!!(lfe&&lfe.createEvent&&ooe.dispatchEvent),hfe=Ooe(ooe.PromiseRejectionEvent),gfe=!1,vfe=Eae(tfe,(function(){var e=Tie(afe),t=e!==String(afe);if(!t&&66===Loe)return!0;if(Loe>=51&&/native code/.test(e))return!1;var n=new afe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[efe]=r,!(gfe=n.then((function(){}))instanceof r)||!t&&Jce&&!hfe})),yfe=vfe||!vle((function(e){afe.all(e).catch((function(){}))})),mfe=function(e){var t;return!(!koe(e)||!Ooe(t=e.then))&&t},bfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Kce((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&&Cfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(sfe("Promise-chain cycle")):(u=mfe(a))?soe(u,a,f,d):f(a)):d(r)}catch(h){p&&!s&&p.exit(),d(h)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Efe(e)}))}},wfe=function(e,t,n){var r,o;pfe?((r=lfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ooe.dispatchEvent(r)):r={promise:t,reason:n},!hfe&&(o=ooe["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=ooe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Efe=function(e){soe(Qce,ooe,(function(){var t,n=e.facade,r=e.value;if(Dfe(e)&&(t=Zce((function(){fce?cfe.emit("unhandledRejection",r,n):wfe("unhandledrejection",n,r)})),e.rejection=fce||Dfe(e)?2:1,t.error))throw t.value}))},Dfe=function(e){return 1!==e.rejection&&!e.parent},Cfe=function(e){soe(Qce,ooe,(function(){var t=e.facade;fce?cfe.emit("rejectionHandled",t):wfe("rejectionhandled",t,e.value)}))},Sfe=function(e,t,n){return function(r){e(t,r,n)}},xfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,bfe(e,!0))},Afe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw sfe("Promise can't be resolved itself");var r=mfe(t);r?Kce((function(){var n={done:!1};try{soe(r,t,Sfe(Afe,n,e),Sfe(xfe,n,e))}catch(o){xfe(n,o,e)}})):(e.value=t,e.state=1,bfe(e,!1))}catch(o){xfe({done:!1},o,e)}}};if(vfe&&(ufe=(afe=function(e){fle(this,ufe),Woe(e),soe(Uce,this);var t=nfe(this);try{e(Sfe(Afe,t),Sfe(xfe,t))}catch(n){xfe(t,n)}}).prototype,(Uce=function(e){rfe(this,{type:tfe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Vse(ufe,{then:function(e,t){var n=ofe(this),r=n.reactions,o=ffe(Rue(this,afe));return o.ok=!Ooe(e)||e,o.fail=Ooe(t)&&t,o.domain=fce?cfe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&bfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Wce=function(){var e=new Uce,t=nfe(e);this.promise=e,this.resolve=Sfe(Afe,t),this.reject=Sfe(xfe,t)},Xce.f=ffe=function(e){return e===afe||e===Gce?new Wce(e):dfe(e)},Ooe(sce)&&ife!==Object.prototype)){qce=ife.then,gfe||(Yie(ife,"then",(function(e,t){var n=this;return new afe((function(e,t){soe(qce,n,e,t)})).then(e,t)}),{unsafe:!0}),Yie(ife,"catch",ufe.catch,{unsafe:!0}));try{delete ife.constructor}catch(Xve){}Bse&&Bse(ife,ufe)}Cae({global:!0,wrap:!0,forced:vfe},{Promise:afe}),Sse(afe,tfe,!1),function(e){var t=Foe("Promise"),n=xie.f;aoe&&t&&!t[lce]&&n(t,lce,{configurable:!0,get:function(){return this}})}(),Gce=Foe(tfe),Cae({target:tfe,stat:!0,forced:vfe},{reject:function(e){var t=ffe(this);return soe(t.reject,void 0,e),t.promise}}),Cae({target:tfe,stat:!0,forced:vfe},{resolve:function(e){return function(e,t){if(Die(e),koe(t)&&t.constructor===e)return t;var n=Xce.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Cae({target:tfe,stat:!0,forced:yfe},{all:function(e){var t=this,n=ffe(t),r=n.resolve,o=n.reject,i=Zce((function(){var n=Woe(t.resolve),i=[],a=0,u=1;lle(e,(function(e){var s=a++,l=!1;u++,soe(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=ffe(t),r=n.reject,o=Zce((function(){var o=Woe(t.resolve);lle(e,(function(e){soe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Ofe=Kie.PROPER,kfe=RegExp.prototype,Bfe=kfe.toString,Ffe=yoe(Xae),Tfe=ioe((function(){return"/a/b"!=Bfe.call({source:"a",flags:"b"})})),_fe=Ofe&&"toString"!=Bfe.name;(Tfe||_fe)&&Yie(RegExp.prototype,"toString",(function(){var e=Die(this),t=Yae(e.source),n=e.flags;return"/"+t+"/"+Yae(void 0===n&&Toe(kfe,e)&&!("flags"in kfe)?Ffe(e):n)}),{unsafe:!0});var Pfe=Kie.EXISTS,jfe=xie.f,Nfe=Function.prototype,Ife=yoe(Nfe.toString),Lfe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rfe=yoe(Lfe.exec);aoe&&!Pfe&&jfe(Nfe,"name",{configurable:!0,get:function(){try{return Rfe(Lfe,Ife(this))[1]}catch(zl){return""}}});var Mfe=new WeakMap;function zfe(e){return e.getMenuConfig("uploadImage")}function $fe(e,t){return ose(this,void 0,void 0,(function(){return ise(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;E$(e,i,t.name,a),n("ok")}}}))]}))}))}function Hfe(e,t){return ose(this,void 0,void 0,(function(){var n,r,o,i;return ise(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Mfe.get(e);if(null!=t)return t;var n=zfe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=P_(rse(rse({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return E$(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;E$(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;E$(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Mfe.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 Vfe(e,t){var n,r;return ose(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return ise(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=zfe(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,$fe(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return E$(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Hfe(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 Ufe=yoe([].join),Wfe=Coe!=Object,Gfe=Qle("join",",");Cae({target:"Array",proto:!0,forced:Wfe||!Gfe},{join:function(e){return Ufe(Aoe(this),void 0===e?",":e)}}),lh&&(Hp.fn.append=lh),Xp&&(Hp.fn.on=Xp),gh&&(Hp.fn.remove=gh),Yp&&(Hp.fn.val=Yp),bh&&(Hp.fn.click=bh),th&&(Hp.fn.hide=th);var qfe=function(){function e(){this.title=xP("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 D$(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 E$(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Hp("body"),s=Hp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Vfe(e,t)}))}},e}(),Kfe={menus:[{key:"uploadImage",factory:function(){return new qfe},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(D$(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]}))?Vfe(e,o):t(r)}},n}};SP("en",{highLightModule:{selectLang:"Language"}}),SP("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Yfe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Xfe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Zfe,Jfe,Qfe=function(e){return e&&e.Math==Math&&e},ede=Qfe("object"==typeof globalThis&&globalThis)||Qfe("object"==typeof window&&window)||Qfe("object"==typeof self&&self)||Qfe("object"==typeof Yfe&&Yfe)||function(){return this}()||Function("return this")(),tde=Object.defineProperty,nde=function(e,t){try{tde(ede,e,{value:t,configurable:!0,writable:!0})}catch(OP){ede[e]=t}return t},rde=ede["__core-js_shared__"]||nde("__core-js_shared__",{}),ode=Xfe((function(e){(e.exports=function(e,t){return rde[e]||(rde[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ide=Function.prototype,ade=ide.bind,ude=ide.call,sde=ade&&ade.bind(ude),lde=ade?function(e){return e&&sde(ude,e)}:function(e){return e&&function(){return ude.apply(e,arguments)}},cde=ede.TypeError,fde=function(e){if(null==e)throw cde("Can't call method on "+e);return e},dde=ede.Object,pde=function(e){return dde(fde(e))},hde=lde({}.hasOwnProperty),gde=Object.hasOwn||function(e,t){return hde(pde(e),t)},vde=0,yde=Math.random(),mde=lde(1..toString),bde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+mde(++vde+yde,36)},wde=function(e){return"function"==typeof e},Ede=function(e){return wde(e)?e:void 0},Dde=function(e,t){return arguments.length<2?Ede(ede[e]):ede[e]&&ede[e][t]},Cde=Dde("navigator","userAgent")||"",Sde=ede.process,xde=ede.Deno,Ade=Sde&&Sde.versions||xde&&xde.version,Ode=Ade&&Ade.v8;Ode&&(Jfe=(Zfe=Ode.split("."))[0]>0&&Zfe[0]<4?1:+(Zfe[0]+Zfe[1])),!Jfe&&Cde&&(!(Zfe=Cde.match(/Edge\/(\d+)/))||Zfe[1]>=74)&&(Zfe=Cde.match(/Chrome\/(\d+)/))&&(Jfe=+Zfe[1]);var kde=Jfe,Bde=function(e){try{return!!e()}catch(t){return!0}},Fde=!!Object.getOwnPropertySymbols&&!Bde((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&kde&&kde<41})),Tde=Fde&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_de=ode("wks"),Pde=ede.Symbol,jde=Pde&&Pde.for,Nde=Tde?Pde:Pde&&Pde.withoutSetter||bde,Ide=function(e){if(!gde(_de,e)||!Fde&&"string"!=typeof _de[e]){var t="Symbol."+e;Fde&&gde(Pde,e)?_de[e]=Pde[e]:_de[e]=Tde&&jde?jde(t):Nde(t)}return _de[e]},Lde={};Lde[Ide("toStringTag")]="z";var Rde="[object z]"===String(Lde),Mde=!Bde((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zde=function(e){return"object"==typeof e?null!==e:wde(e)},$de=ede.document,Hde=zde($de)&&zde($de.createElement),Vde=function(e){return Hde?$de.createElement(e):{}},Ude=!Mde&&!Bde((function(){return 7!=Object.defineProperty(Vde("div"),"a",{get:function(){return 7}}).a})),Wde=ede.String,Gde=ede.TypeError,qde=function(e){if(zde(e))return e;throw Gde(Wde(e)+" is not an object")},Kde=Function.prototype.call,Yde=Kde.bind?Kde.bind(Kde):function(){return Kde.apply(Kde,arguments)},Xde=lde({}.isPrototypeOf),Zde=ede.Object,Jde=Tde?function(e){return"symbol"==typeof e}:function(e){var t=Dde("Symbol");return wde(t)&&Xde(t.prototype,Zde(e))},Qde=ede.String,epe=function(e){try{return Qde(e)}catch(t){return"Object"}},tpe=ede.TypeError,npe=function(e){if(wde(e))return e;throw tpe(epe(e)+" is not a function")},rpe=function(e,t){var n=e[t];return null==n?void 0:npe(n)},ope=ede.TypeError,ipe=ede.TypeError,ape=Ide("toPrimitive"),upe=function(e){var t=function(e,t){if(!zde(e)||Jde(e))return e;var n,r=rpe(e,ape);if(r){if(void 0===t&&(t="default"),n=Yde(r,e,t),!zde(n)||Jde(n))return n;throw ipe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&wde(n=e.toString)&&!zde(r=Yde(n,e)))return r;if(wde(n=e.valueOf)&&!zde(r=Yde(n,e)))return r;if("string"!==t&&wde(n=e.toString)&&!zde(r=Yde(n,e)))return r;throw ope("Can't convert object to primitive value")}(e,t)}(e,"string");return Jde(t)?t:t+""},spe=ede.TypeError,lpe=Object.defineProperty,cpe={f:Mde?lpe:function(e,t,n){if(qde(e),t=upe(t),qde(n),Ude)try{return lpe(e,t,n)}catch(r){}if("get"in n||"set"in n)throw spe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fpe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dpe=Mde?function(e,t,n){return cpe.f(e,t,fpe(1,n))}:function(e,t,n){return e[t]=n,e},ppe=lde(Function.toString);wde(rde.inspectSource)||(rde.inspectSource=function(e){return ppe(e)});var hpe,gpe,vpe,ype=rde.inspectSource,mpe=ede.WeakMap,bpe=wde(mpe)&&/native code/.test(ype(mpe)),wpe=ode("keys"),Epe=function(e){return wpe[e]||(wpe[e]=bde(e))},Dpe={},Cpe=ede.TypeError,Spe=ede.WeakMap;if(bpe||rde.state){var xpe=rde.state||(rde.state=new Spe),Ape=lde(xpe.get),Ope=lde(xpe.has),kpe=lde(xpe.set);hpe=function(e,t){if(Ope(xpe,e))throw new Cpe("Object already initialized");return t.facade=e,kpe(xpe,e,t),t},gpe=function(e){return Ape(xpe,e)||{}},vpe=function(e){return Ope(xpe,e)}}else{var Bpe=Epe("state");Dpe[Bpe]=!0,hpe=function(e,t){if(gde(e,Bpe))throw new Cpe("Object already initialized");return t.facade=e,dpe(e,Bpe,t),t},gpe=function(e){return gde(e,Bpe)?e[Bpe]:{}},vpe=function(e){return gde(e,Bpe)}}var Fpe={set:hpe,get:gpe,has:vpe,enforce:function(e){return vpe(e)?gpe(e):hpe(e,{})},getterFor:function(e){return function(t){var n;if(!zde(t)||(n=gpe(t)).type!==e)throw Cpe("Incompatible receiver, "+e+" required");return n}}},Tpe=Function.prototype,_pe=Mde&&Object.getOwnPropertyDescriptor,Ppe=gde(Tpe,"name"),jpe={EXISTS:Ppe,PROPER:Ppe&&"something"===function(){}.name,CONFIGURABLE:Ppe&&(!Mde||Mde&&_pe(Tpe,"name").configurable)},Npe=Xfe((function(e){var t=jpe.CONFIGURABLE,n=Fpe.get,r=Fpe.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;wde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!gde(i,"name")||t&&i.name!==f)&&dpe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==ede?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:dpe(e,n,i)):l?e[n]=i:nde(n,i)})(Function.prototype,"toString",(function(){return wde(this)&&n(this).source||ype(this)}))})),Ipe=lde({}.toString),Lpe=lde("".slice),Rpe=function(e){return Lpe(Ipe(e),8,-1)},Mpe=Ide("toStringTag"),zpe=ede.Object,$pe="Arguments"==Rpe(function(){return arguments}()),Hpe=Rde?Rpe: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=zpe(e),Mpe))?n:$pe?Rpe(t):"Object"==(r=Rpe(t))&&wde(t.callee)?"Arguments":r},Vpe=Rde?{}.toString:function(){return"[object "+Hpe(this)+"]"};Rde||Npe(Object.prototype,"toString",Vpe,{unsafe:!0});var Upe,Wpe={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},Gpe=Vde("span").classList,qpe=Gpe&&Gpe.constructor&&Gpe.constructor.prototype,Kpe=qpe===Object.prototype?void 0:qpe,Ype=lde(lde.bind),Xpe=ede.Object,Zpe=lde("".split),Jpe=Bde((function(){return!Xpe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Rpe(e)?Zpe(e,""):Xpe(e)}:Xpe,Qpe=Math.ceil,ehe=Math.floor,the=function(e){var t=+e;return t!=t||0===t?0:(t>0?ehe:Qpe)(t)},nhe=Math.min,rhe=function(e){return e>0?nhe(the(e),9007199254740991):0},ohe=function(e){return rhe(e.length)},ihe=Array.isArray||function(e){return"Array"==Rpe(e)},ahe=function(){},uhe=[],she=Dde("Reflect","construct"),lhe=/^\s*(?:class|function)\b/,che=lde(lhe.exec),fhe=!lhe.exec(ahe),dhe=function(e){if(!wde(e))return!1;try{return she(ahe,uhe,e),!0}catch(t){return!1}},phe=!she||Bde((function(){var e;return dhe(dhe.call)||!dhe(Object)||!dhe((function(){e=!0}))||e}))?function(e){if(!wde(e))return!1;switch(Hpe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fhe||!!che(lhe,ype(e))}:dhe,hhe=Ide("species"),ghe=ede.Array,vhe=function(e,t){return new(ihe(n=e)&&(r=n.constructor,(phe(r)&&(r===ghe||ihe(r.prototype))||zde(r)&&null===(r=r[hhe]))&&(r=void 0)),void 0===r?ghe:r)(0===t?0:t);var n,r},yhe=lde([].push),mhe=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=pde(s),g=Jpe(h),v=function(e,t){return npe(e),void 0===t?e:Ype?Ype(e,t):function(){return e.apply(t,arguments)}}(l,c),y=ohe(g),m=0,b=f||vhe,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:yhe(w,d)}else switch(e){case 4:return!1;case 7:yhe(w,d)}return i?-1:r||o?o:w}},bhe=[mhe(0),mhe(1),mhe(2),mhe(3),mhe(4),mhe(5),mhe(6),mhe(7)][0],whe=(Upe=[].forEach)&&Bde((function(){Upe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return bhe(this,e,arguments.length>1?arguments[1]:void 0)},Ehe=function(e){if(e&&e.forEach!==whe)try{dpe(e,"forEach",whe)}catch(t){e.forEach=whe}};for(var Dhe in Wpe)Wpe[Dhe]&&Ehe(ede[Dhe]&&ede[Dhe].prototype);Ehe(Kpe);var Che={}.propertyIsEnumerable,She=Object.getOwnPropertyDescriptor,xhe={f:She&&!Che.call({1:2},1)?function(e){var t=She(this,e);return!!t&&t.enumerable}:Che},Ahe=function(e){return Jpe(fde(e))},Ohe=Object.getOwnPropertyDescriptor,khe={f:Mde?Ohe:function(e,t){if(e=Ahe(e),t=upe(t),Ude)try{return Ohe(e,t)}catch(n){}if(gde(e,t))return fpe(!Yde(xhe.f,e,t),e[t])}},Bhe=Math.max,Fhe=Math.min,The=function(e,t){var n=the(e);return n<0?Bhe(n+t,0):Fhe(n,t)},_he=function(e){return function(t,n,r){var o,i=Ahe(t),a=ohe(i),u=The(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),Phe=lde([].push),jhe=function(e,t){var n,r=Ahe(e),o=0,i=[];for(n in r)!gde(Dpe,n)&&gde(r,n)&&Phe(i,n);for(;t.length>o;)gde(r,n=t[o++])&&(~_he(i,n)||Phe(i,n));return i},Nhe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ihe=Nhe.concat("length","prototype"),Lhe={f:Object.getOwnPropertyNames||function(e){return jhe(e,Ihe)}},Rhe={f:Object.getOwnPropertySymbols},Mhe=lde([].concat),zhe=Dde("Reflect","ownKeys")||function(e){var t=Lhe.f(qde(e)),n=Rhe.f;return n?Mhe(t,n(e)):t},$he=function(e,t){for(var n=zhe(t),r=cpe.f,o=khe.f,i=0;i<n.length;i++){var a=n[i];gde(e,a)||r(e,a,o(t,a))}},Hhe=/#|\.prototype\./,Vhe=function(e,t){var n=Whe[Uhe(e)];return n==qhe||n!=Ghe&&(wde(t)?Bde(t):!!t)},Uhe=Vhe.normalize=function(e){return String(e).replace(Hhe,".").toLowerCase()},Whe=Vhe.data={},Ghe=Vhe.NATIVE="N",qhe=Vhe.POLYFILL="P",Khe=Vhe,Yhe=khe.f,Xhe=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ede:l?ede[u]||nde(u,{}):(ede[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Yhe(n,r))&&a.value:n[r],!Khe(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;$he(i,o)}(e.sham||o&&o.sham)&&dpe(i,"sham",!0),Npe(n,r,i,e)}},Zhe=Object.keys||function(e){return jhe(e,Nhe)},Jhe=Object.assign,Qhe=Object.defineProperty,ege=lde([].concat),tge=!Jhe||Bde((function(){if(Mde&&1!==Jhe({b:1},Jhe(Qhe({},"a",{enumerable:!0,get:function(){Qhe(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!=Jhe({},e)[n]||Zhe(Jhe({},t)).join("")!=r}))?function(e,t){for(var n=pde(e),r=arguments.length,o=1,i=Rhe.f,a=xhe.f;r>o;)for(var u,s=Jpe(arguments[o++]),l=i?ege(Zhe(s),i(s)):Zhe(s),c=l.length,f=0;c>f;)u=l[f++],Mde&&!Yde(a,s,u)||(n[u]=s[u]);return n}:Jhe;Xhe({target:"Object",stat:!0,forced:Object.assign!==tge},{assign:tge});var nge=Xfe((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!==Yfe&&(Yfe.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://,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 rge=["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 oge(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+oge(t)}),0)}var ige,age=ede.String,uge=function(e){if("Symbol"===Hpe(e))throw TypeError("Cannot convert a Symbol value to a string");return age(e)},sge=function(){var e=qde(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},lge=ede.RegExp,cge=Bde((function(){var e=lge("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),fge=cge||Bde((function(){return!lge("a","y").sticky})),dge={BROKEN_CARET:cge||Bde((function(){var e=lge("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:fge,UNSUPPORTED_Y:cge},pge=Mde?Object.defineProperties:function(e,t){qde(e);for(var n,r=Ahe(t),o=Zhe(t),i=o.length,a=0;i>a;)cpe.f(e,n=o[a++],r[n]);return e},hge=Dde("document","documentElement"),gge=Epe("IE_PROTO"),vge=function(){},yge=function(e){return"<script>"+e+"<\/script>"},mge=function(e){e.write(yge("")),e.close();var t=e.parentWindow.Object;return e=null,t},bge=function(){try{ige=new ActiveXObject("htmlfile")}catch(r){}var e,t;bge="undefined"!=typeof document?document.domain&&ige?mge(ige):((t=Vde("iframe")).style.display="none",hge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(yge("document.F=Object")),e.close(),e.F):mge(ige);for(var n=Nhe.length;n--;)delete bge.prototype[Nhe[n]];return bge()};Dpe[gge]=!0;var wge,Ege,Dge=Object.create||function(e,t){var n;return null!==e?(vge.prototype=qde(e),n=new vge,vge.prototype=null,n[gge]=e):n=bge(),void 0===t?n:pge(n,t)},Cge=ede.RegExp,Sge=Bde((function(){var e=Cge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),xge=ede.RegExp,Age=Bde((function(){var e=xge("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Oge=Fpe.get,kge=ode("native-string-replace",String.prototype.replace),Bge=RegExp.prototype.exec,Fge=Bge,Tge=lde("".charAt),_ge=lde("".indexOf),Pge=lde("".replace),jge=lde("".slice),Nge=(Ege=/b*/g,Yde(Bge,wge=/a/,"a"),Yde(Bge,Ege,"a"),0!==wge.lastIndex||0!==Ege.lastIndex),Ige=dge.BROKEN_CARET,Lge=void 0!==/()??/.exec("")[1];(Nge||Lge||Ige||Sge||Age)&&(Fge=function(e){var t,n,r,o,i,a,u,s=this,l=Oge(s),c=uge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Yde(Fge,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ige&&s.sticky,h=Yde(sge,s),g=s.source,v=0,y=c;if(p&&(h=Pge(h,"y",""),-1===_ge(h,"g")&&(h+="g"),y=jge(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Tge(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Lge&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Nge&&(r=s.lastIndex),o=Yde(Bge,p?n:s,y),p?o?(o.input=jge(o.input,v),o[0]=jge(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Nge&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lge&&o&&o.length>1&&Yde(kge,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=Dge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Rge=Fge;Xhe({target:"RegExp",proto:!0,forced:/./.exec!==Rge},{exec:Rge});var Mge=Function.prototype,zge=Mge.apply,$ge=Mge.bind,Hge=Mge.call,Vge="object"==typeof Reflect&&Reflect.apply||($ge?Hge.bind(zge):function(){return Hge.apply(zge,arguments)}),Uge=Ide("species"),Wge=RegExp.prototype,Gge=Ide("match"),qge=ede.TypeError,Kge=Ide("species"),Yge=lde("".charAt),Xge=lde("".charCodeAt),Zge=lde("".slice),Jge=function(e){return function(t,n){var r,o,i=uge(fde(t)),a=the(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Xge(i,a))<55296||r>56319||a+1===u||(o=Xge(i,a+1))<56320||o>57343?e?Yge(i,a):r:e?Zge(i,a,a+2):o-56320+(r-55296<<10)+65536}}(!0),Qge=function(e,t,n){return t+(n?Jge(e,t).length:1)},eve=ede.Array,tve=Math.max,nve=function(e,t,n){for(var r,o,i,a,u=ohe(e),s=The(t,u),l=The(void 0===n?u:n,u),c=eve(tve(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=upe(o))in r?cpe.f(r,a,fpe(0,i)):r[a]=i;return c.length=f,c},rve=ede.TypeError,ove=function(e,t){var n=e.exec;if(wde(n)){var r=Yde(n,e,t);return null!==r&&qde(r),r}if("RegExp"===Rpe(e))return Yde(Rge,e,t);throw rve("RegExp#exec called on incompatible receiver")},ive=dge.UNSUPPORTED_Y,ave=Math.min,uve=[].push,sve=lde(/./.exec),lve=lde(uve),cve=lde("".slice);!function(e,t,n,r){var o,i,a,u=Ide(e),s=!Bde((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),l=s&&!Bde((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Uge]=function(){return t},t.flags="",t[u]=/./[u],t.exec=function(){return e=!0,null},t[u](""),!e}));if(!s||!l||n){var c=lde(/./[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=uge(fde(this)),a=void 0===t?4294967295:t>>>0;if(0===a)return[];if(void 0===e)return[o];if(!zde(n=e)||!(void 0!==(r=n[Gge])?r:"RegExp"==Rpe(n)))return Yde(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=Yde(Rge,p,o))&&!((s=p.lastIndex)>d&&(lve(c,cve(o,d,u.index)),u.length>1&&u.index<o.length&&Vge(uve,c,nve(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===o.length?!l&&sve(p,"")||lve(c,""):lve(c,cve(o,d)),c.length>a?nve(c,0,a):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:Yde(i,this,e,t)}:i,[function(e,t){var n=fde(this),r=null==e?void 0:rpe(e,o);return r?Yde(r,e,n,t):Yde(a,uge(n),e,t)},function(e,t){var n=qde(this),r=uge(e),o=function(e,t,n,r,o){var i=lde(e),a=t.exec;return a===Rge||a===Wge.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=qde(n).constructor)||null==(l=qde(f)[Kge])?u:function(e){if(phe(e))return e;throw qge(epe(e)+" is not a constructor")}(l)),p=n.unicode,h=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(ive?"g":"y"),g=new d(ive?"^(?:"+n.source+")":n,h),v=void 0===t?4294967295:t>>>0;if(0===v)return[];if(0===r.length)return null===ove(g,r)?[r]:[];for(var y=0,m=0,b=[];m<r.length;){g.lastIndex=ive?0:m;var w,E=ove(g,ive?cve(r,m):r);if(null===E||(w=ave(rhe(g.lastIndex+(ive?m:0)),r.length))===y)m=Qge(r,m,p);else{if(lve(b,cve(r,y,m)),b.length===v)return b;for(var D=1;D<=E.length-1;D++)if(lve(b,E[D]),b.length===v)return b;m=y=w}}return lve(b,cve(r,y)),b}]);Npe(String.prototype,e,f[0]),Npe(Wge,u,f[1])}r&&dpe(Wge[u],"sham",!0)}("split",0,!!Bde((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]})),ive),Xhe({global:!0},{globalThis:ede}),Gp&&(Hp.fn.attr=Gp);var fve=jpe.PROPER,dve=RegExp.prototype,pve=dve.toString,hve=lde(sge),gve=Bde((function(){return"/a/b"!=pve.call({source:"a",flags:"b"})})),vve=fve&&"toString"!=pve.name;(gve||vve)&&Npe(RegExp.prototype,"toString",(function(){var e=qde(this),t=uge(e.source),n=e.flags;return"/"+t+"/"+uge(void 0===n&&Xde(dve,e)&&!("flags"in dve)?hve(e):n)}),{unsafe:!0});var yve=function(){function e(){this.title=xP("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(!Pf.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()};Od.setNodes(e,n,{match:function(e){return MO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=MO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=MO.getParentNode(e,t);return Pf.isElement(n)?"pre"!==n.type?null:t:null},e}(),mve={renderStyle:function(e,t){var n=e,r=t,o="";return rge.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=Hp(e);if(!Pf.isElement(t))return t;if("code"!==MO.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new yve},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>"}}]},bve=/"/g,wve=lde("".replace);Xhe({target:"String",proto:!0,forced:Bde((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=uge(fde(this)),r="<a",(r+=' name="'+wve(uge(t),bve,""")+'"')+">"+n+"</a>";var t,n,r}});var Eve=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(!ld.isText(e))return null;var t=MO.getParentNode(null,e);if(t&&"code"===MO.getNodeType(t)){var n=MO.getParentNode(null,t);if(n&&"pre"===MO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=nge.languages[t];return n?nge.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+oge(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},Dve=function(){return Dve=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},Dve.apply(this,arguments)},Cve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Dve(Dve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Dve(Dve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Dve(Dve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Dve(Dve({},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=Ux(Ux({},a),t||{});if(null!=HO[o])throw new Error("Duplicated key '"+o+"' in menu items");HO[o]=i,n=o,null!=(r=u)&&($O[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,xT.push(t)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;tk[t||""]=n}(e)},e.registerStyleToHtml=function(e){var t;t=e,ek.push(t)},e.registerPreParseHtml=function(e){var t;t=e,VB.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;WB[t]=n}(e)},e.registerParseStyleHtml=function(e){var t;t=e,UB.push(t)},e.registerModule=function(e){Sve(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 Sve(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 Cve.registerMenu(e)})),n&&n.forEach((function(e){return Cve.registerRenderElem(e)})),r&&Cve.registerRenderStyle(r),o&&o.forEach((function(e){return Cve.registerElemToHtml(e)})),i&&Cve.registerStyleToHtml(i),a&&a.forEach((function(e){return Cve.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Cve.registerParseElemHtml(e)})),s&&Cve.registerParseStyleHtml(s),l&&Cve.registerPlugin(l)}kq.forEach((function(e){return Sve(e)})),Sve(KQ),Sve(B3),Sve(Jre),Sve(Kfe),Sve(mve);var xve='<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>',Ave={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"]}},Ove={hoverbarKeys:Dve(Dve({},Ave),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Cve.setEditorConfig(Dve(Dve({},Ove),{decorate:Eve}));var kve={hoverbarKeys:Ave};Cve.setSimpleEditorConfig(Dve(Dve({},kve),{decorate:Eve}));var Bve={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:xP("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:xP("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:xP("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:xP("editor.image"),iconSvg:xve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:xP("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"]};Cve.setToolbarConfig(Bve);var Fve={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:xP("editor.image"),iconSvg:xve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};Cve.setSimpleToolbarConfig(Fve);var Tve=Object.defineProperty,_ve=Object.defineProperties,Pve=Object.getOwnPropertyDescriptors,jve=Object.getOwnPropertySymbols,Nve=Object.prototype.hasOwnProperty,Ive=Object.prototype.propertyIsEnumerable,Lve=(e,t,n)=>t in e?Tve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rve=(e,t)=>{for(var n in t||(t={}))Nve.call(t,n)&&Lve(e,n,t[n]);if(jve)for(var n of jve(t))Ive.call(t,n)&&Lve(e,n,t[n]);return e},Mve=(e,t)=>_ve(e,Pve(t));function zve(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var $ve=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const Hve=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)?Cve.simpleEditorConfig:Cve.editorConfig,c=Dve(Dve({},l.hoverbarKeys||{}),u.hoverbarKeys||{});E_({selector:n,config:Dve(Dve(Dve({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Cve.plugins})}({selector:u.value,mode:e.mode,content:t||[],html:e.defaultHtml||e.modelValue||"",config:Mve(Rve({},e.defaultConfig),{onCreated(t){if(s.value=t,i.emit("onCreated",t),e.defaultConfig.onCreated){const e=zve("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=zve("onChange");throw new Error(e)}},onDestroyed(t){if(i.emit("onDestroyed",t),e.defaultConfig.onDestroyed){const e=zve("onDestroyed");throw new Error(e)}},onMaxLength(t){if(i.emit("onMaxLength",t),e.defaultConfig.onMaxLength){const e=zve("onMaxLength");throw new Error(e)}},onFocus(t){if(i.emit("onFocus",t),e.defaultConfig.onFocus){const e=zve("onFocus");throw new Error(e)}},onBlur(t){if(i.emit("onBlur",t),e.defaultConfig.onBlur){const e=zve("onBlur");throw new Error(e)}},customAlert(t,n){if(i.emit("customAlert",t,n),e.defaultConfig.customAlert){const e=zve("customAlert");throw new Error(e)}},customPaste:(t,n)=>{if(e.defaultConfig.customPaste){const e=zve("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}}}),Vve={ref:"box",style:{height:"100%"}};var Uve=$ve(Hve,[["render",function(e,t,n,r,o,i){return u(),s("div",Vve,null,512)}]]);const Wve=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");MO.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?Cve.simpleToolbarConfig:Cve.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(CF(e,"data-w-e-toolbar",n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=Ux({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new A_(n,i);qA.set(a,e),KA.set(e,a)})(n,{selector:t,config:Dve(Dve({},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}}}),Gve={ref:"selector"};var qve=$ve(Wve,[["render",function(e,t,n,r,o,i){return u(),s("div",Gve,null,512)}]]);const Kve={__name:"wangEditor",props:["modelValue"],setup(e,{emit:r}){const i=e,a=l(),v=n(),y="default",m=t(i.modelValue),b={excludeKeys:["headerSelect","group-video","emotion","fontFamily","insertImage","undo","redo","todo","fullScreen"]},w={MENU_CONF:{uploadImage:{fieldName:"file",maxNumberOfFiles:10,allowedFileTypes:["image/*"],server:c+a.state.site.upload,customInsert(e,t){t(e.data.url)}}},placeholder:"请输入内容..."},E=e=>{v.value=e};return o((()=>i.modelValue),(e=>{m.value=e})),o(m,(e=>{r("update:modelValue",e)})),f((()=>{try{const e=v.value;if(null==e)return;e.destroy()}catch(zl){}})),d((()=>{try{const e=v.value;if(null==e)return;e.destroy()}catch(zl){}})),(e,t)=>(u(),s(g,null,[p(h(qve),{editor:h(v),defaultConfig:b,mode:y},null,8,["editor"]),p(h(Uve),{class:"editorDiv",modelValue:m.value,"onUpdate:modelValue":t[0]||(t[0]=e=>m.value=e),defaultConfig:w,mode:y,onOnCreated:E},null,8,["modelValue"])],64))}};export{Kve as _};
|