jtui3.0 1.2.10 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/css/editor.6af1be2f.css +27 -0
- package/lib/css/editor.ca1bf708.css +1 -0
- package/lib/jtui3.0.common.12.js +474 -0
- package/lib/jtui3.0.common.js +915 -119578
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.271.js +474 -0
- package/lib/jtui3.0.umd.js +951 -119612
- package/lib/jtui3.0.umd.min.575.js +149 -0
- package/lib/jtui3.0.umd.min.js +13 -176
- package/package.json +6 -5
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackChunkjtui3_0"]=("undefined"!==typeof self?self:this)["webpackChunkjtui3_0"]||[]).push([[575],{2120:function(e,t,n){var r=n(2109),o=n(5005),i=n(2104),a=n(7293),u=n(9191),s="AggregateError",l=o(s),c=!a((function(){return 1!==l([1]).errors[0]}))&&a((function(){return 7!==l([1],s,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:u(s,(function(e){return function(t,n){return i(e,this,arguments)}}),c,!0)})},8444:function(e,t,n){"use strict";n.r(t)},5360:function(e,t,n){"use strict";n.r(t),n.d(t,{Editor:function(){return Eye},Toolbar:function(){return Sye}});n(1703);var r=n(7203),o=(n(6314),n(2087),n(2120),n(2801),n(2262),n(4506),n(6699),n(8675),n(3462),n(7380),n(1118),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{});function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function a(e){var t={exports:{}};return e(t,t.exports),t.exports}var u,s,l=function(e){return e&&e.Math==Math&&e},c=l("object"==typeof globalThis&&globalThis)||l("object"==typeof window&&window)||l("object"==typeof self&&self)||l("object"==typeof o&&o)||function(){return this}()||Function("return this")(),f=Function.prototype,d=f.apply,p=f.bind,h=f.call,g="object"==typeof Reflect&&Reflect.apply||(p?h.bind(d):function(){return h.apply(d,arguments)}),v=Function.prototype,y=v.bind,m=v.call,b=y&&y.bind(m),w=y?function(e){return e&&b(m,e)}:function(e){return e&&function(){return m.apply(e,arguments)}},E=function(e){return"function"==typeof e},D=function(e){try{return!!e()}catch(e){return!0}},C=!D((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=Function.prototype.call,S=x.bind?x.bind(x):function(){return x.apply(x,arguments)},A={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,k=O&&!A.call({1:2},1)?function(e){var t=O(this,e);return!!t&&t.enumerable}:A,B={f:k},F=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T=w({}.toString),_=w("".slice),P=function(e){return _(T(e),8,-1)},j=c.Object,N=w("".split),I=D((function(){return!j("z").propertyIsEnumerable(0)}))?function(e){return"String"==P(e)?N(e,""):j(e)}:j,L=c.TypeError,R=function(e){if(null==e)throw L("Can't call method on "+e);return e},M=function(e){return I(R(e))},z=function(e){return"object"==typeof e?null!==e:E(e)},$={},H=function(e){return E(e)?e:void 0},V=function(e,t){return arguments.length<2?H($[e])||H(c[e]):$[e]&&$[e][t]||c[e]&&c[e][t]},U=w({}.isPrototypeOf),W=V("navigator","userAgent")||"",G=c.process,q=c.Deno,K=G&&G.versions||q&&q.version,Y=K&&K.v8;Y&&(s=(u=Y.split("."))[0]>0&&u[0]<4?1:+(u[0]+u[1])),!s&&W&&(!(u=W.match(/Edge\/(\d+)/))||u[1]>=74)&&(u=W.match(/Chrome\/(\d+)/))&&(s=+u[1]);var X,Z=s,J=!!Object.getOwnPropertySymbols&&!D((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),Q=J&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=c.Object,te=Q?function(e){return"symbol"==typeof e}:function(e){var t=V("Symbol");return E(t)&&U(t.prototype,ee(e))},ne=c.String,re=function(e){try{return ne(e)}catch(e){return"Object"}},oe=c.TypeError,ie=function(e){if(E(e))return e;throw oe(re(e)+" is not a function")},ae=function(e,t){var n=e[t];return null==n?void 0:ie(n)},ue=c.TypeError,se=Object.defineProperty,le=c["__core-js_shared__"]||function(e,t){try{se(c,e,{value:t,configurable:!0,writable:!0})}catch(a){c[e]=t}return t}("__core-js_shared__",{}),ce=a((function(e){(e.exports=function(e,t){return le[e]||(le[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),fe=c.Object,de=function(e){return fe(R(e))},pe=w({}.hasOwnProperty),he=Object.hasOwn||function(e,t){return pe(de(e),t)},ge=0,ve=Math.random(),ye=w(1..toString),me=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ye(++ge+ve,36)},be=ce("wks"),we=c.Symbol,Ee=we&&we.for,De=Q?we:we&&we.withoutSetter||me,Ce=function(e){if(!he(be,e)||!J&&"string"!=typeof be[e]){var t="Symbol."+e;J&&he(we,e)?be[e]=we[e]:be[e]=Q&&Ee?Ee(t):De(t)}return be[e]},xe=c.TypeError,Se=Ce("toPrimitive"),Ae=function(e,t){if(!z(e)||te(e))return e;var n,r=ae(e,Se);if(r){if(void 0===t&&(t="default"),n=S(r,e,t),!z(n)||te(n))return n;throw xe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&E(n=e.toString)&&!z(r=S(n,e)))return r;if(E(n=e.valueOf)&&!z(r=S(n,e)))return r;if("string"!==t&&E(n=e.toString)&&!z(r=S(n,e)))return r;throw ue("Can't convert object to primitive value")}(e,t)},Oe=function(e){var t=Ae(e,"string");return te(t)?t:t+""},ke=c.document,Be=z(ke)&&z(ke.createElement),Fe=function(e){return Be?ke.createElement(e):{}},Te=!C&&!D((function(){return 7!=Object.defineProperty(Fe("div"),"a",{get:function(){return 7}}).a})),_e=Object.getOwnPropertyDescriptor,Pe=C?_e:function(e,t){if(e=M(e),t=Oe(t),Te)try{return _e(e,t)}catch(e){}if(he(e,t))return F(!S(B.f,e,t),e[t])},je={f:Pe},Ne=/#|\.prototype\./,Ie=function(e,t){var n=Re[Le(e)];return n==ze||n!=Me&&(E(t)?D(t):!!t)},Le=Ie.normalize=function(e){return String(e).replace(Ne,".").toLowerCase()},Re=Ie.data={},Me=Ie.NATIVE="N",ze=Ie.POLYFILL="P",$e=Ie,He=w(w.bind),Ve=function(e,t){return ie(e),void 0===t?e:He?He(e,t):function(){return e.apply(t,arguments)}},Ue=c.String,We=c.TypeError,Ge=function(e){if(z(e))return e;throw We(Ue(e)+" is not an object")},qe=c.TypeError,Ke=Object.defineProperty,Ye=C?Ke:function(e,t,n){if(Ge(e),t=Oe(t),Ge(n),Te)try{return Ke(e,t,n)}catch(e){}if("get"in n||"set"in n)throw qe("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Xe={f:Ye},Ze=C?function(e,t,n){return Xe.f(e,t,F(1,n))}:function(e,t,n){return e[t]=n,e},Je=je.f,Qe=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 g(e,this,arguments)};return t.prototype=e.prototype,t},et=function(e,t){var n,r,o,i,a,u,s,l,f=e.target,d=e.global,p=e.stat,h=e.proto,g=d?c:p?c[f]:(c[f]||{}).prototype,v=d?$:$[f]||Ze($,f,{})[f],y=v.prototype;for(o in t)n=!$e(d?o:f+(p?".":"#")+o,e.forced)&&g&&he(g,o),a=v[o],n&&(u=e.noTargetGet?(l=Je(g,o))&&l.value:g[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?Ve(i,c):e.wrap&&n?Qe(i):h&&E(i)?w(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ze(s,"sham",!0),Ze(v,o,s),h&&(he($,r=f+"Prototype")||Ze($,r,{}),Ze($[r],o,i),e.real&&y&&!y[o]&&Ze(y,o,i)))},tt=ce("keys"),nt=function(e){return tt[e]||(tt[e]=me(e))},rt=!D((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ot=nt("IE_PROTO"),it=c.Object,at=it.prototype,ut=rt?it.getPrototypeOf:function(e){var t=de(e);if(he(t,ot))return t[ot];var n=t.constructor;return E(n)&&t instanceof n?n.prototype:t instanceof it?at:null},st=c.String,lt=c.TypeError,ct=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ge(n),function(e){if("object"==typeof e||E(e))return e;throw lt("Can't set "+st(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ft=Math.ceil,dt=Math.floor,pt=function(e){var t=+e;return t!=t||0===t?0:(t>0?dt:ft)(t)},ht=Math.max,gt=Math.min,vt=function(e,t){var n=pt(e);return n<0?ht(n+t,0):gt(n,t)},yt=Math.min,mt=function(e){return(t=e.length)>0?yt(pt(t),9007199254740991):0;var t},bt=function(e){return function(t,n,r){var o,i=M(t),a=mt(i),u=vt(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}},wt={includes:bt(!0),indexOf:bt(!1)},Et={},Dt=wt.indexOf,Ct=w([].push),xt=function(e,t){var n,r=M(e),o=0,i=[];for(n in r)!he(Et,n)&&he(r,n)&&Ct(i,n);for(;t.length>o;)he(r,n=t[o++])&&(~Dt(i,n)||Ct(i,n));return i},St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],At=St.concat("length","prototype"),Ot=Object.getOwnPropertyNames||function(e){return xt(e,At)},kt={f:Ot},Bt={f:Object.getOwnPropertySymbols},Ft=w([].concat),Tt=V("Reflect","ownKeys")||function(e){var t=kt.f(Ge(e)),n=Bt.f;return n?Ft(t,n(e)):t},_t=Object.keys||function(e){return xt(e,St)},Pt=C?Object.defineProperties:function(e,t){Ge(e);for(var n,r=M(t),o=_t(t),i=o.length,a=0;i>a;)Xe.f(e,n=o[a++],r[n]);return e},jt=V("document","documentElement"),Nt=nt("IE_PROTO"),It=function(){},Lt=function(e){return"<script>"+e+"<\/script>"},Rt=function(e){e.write(Lt("")),e.close();var t=e.parentWindow.Object;return e=null,t},Mt=function(){try{X=new ActiveXObject("htmlfile")}catch(e){}var e,t;Mt="undefined"!=typeof document?document.domain&&X?Rt(X):((t=Fe("iframe")).style.display="none",jt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Lt("document.F=Object")),e.close(),e.F):Rt(X);for(var n=St.length;n--;)delete Mt.prototype[St[n]];return Mt()};Et[Nt]=!0;var zt=Object.create||function(e,t){var n;return null!==e?(It.prototype=Ge(e),n=new It,It.prototype=null,n[Nt]=e):n=Mt(),void 0===t?n:Pt(n,t)},$t=function(e,t,n){var r=Oe(t);r in e?Xe.f(e,r,F(0,n)):e[r]=n},Ht=c.Array,Vt=Math.max,Ut=function(e,t,n){for(var r=mt(e),o=vt(t,r),i=vt(void 0===n?r:n,r),a=Ht(Vt(i-o,0)),u=0;o<i;o++,u++)$t(a,u,e[o]);return a.length=u,a},Wt=w("".replace),Gt=w("".split),qt=w([].join),Kt=String(Error("zxcasd").stack),Yt=/\n\s*at [^:]*:[^\n]*/,Xt=Yt.test(Kt),Zt=/@[^\n]*\n/.test(Kt)&&!/zxcasd/.test(Kt),Jt=function(e,t){if("string"!=typeof e)return e;if(Xt)for(;t--;)e=Wt(e,Yt,"");else if(Zt)return qt(Ut(Gt(e,"\n"),t),"\n");return e},Qt=function(e,t){z(t)&&"cause"in t&&Ze(e,"cause",t.cause)},en={},tn=Ce("iterator"),nn=Array.prototype,rn={};rn[Ce("toStringTag")]="z";var on="[object z]"===String(rn),an=Ce("toStringTag"),un=c.Object,sn="Arguments"==P(function(){return arguments}()),ln=on?P:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=un(e),an))?n:sn?P(t):"Object"==(r=P(t))&&E(t.callee)?"Arguments":r},cn=Ce("iterator"),fn=function(e){if(null!=e)return ae(e,cn)||ae(e,"@@iterator")||en[ln(e)]},dn=c.TypeError,pn=function(e,t,n){var r,o;Ge(e);try{if(!(r=ae(e,"return"))){if("throw"===t)throw n;return n}r=S(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ge(r),n},hn=c.TypeError,gn=function(e,t){this.stopped=e,this.result=t},vn=gn.prototype,yn=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=Ve(t,c),g=function(e){return r&&pn(r,"normal",e),new gn(!0,e)},v=function(e){return f?(Ge(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=fn(e)))throw hn(re(e)+" is not iterable");if(function(e){return void 0!==e&&(en.Array===e||nn[tn]===e)}(o)){for(i=0,a=mt(e);a>i;i++)if((u=v(e[i]))&&U(vn,u))return u;return new gn(!1)}r=function(e,t){var n=arguments.length<2?fn(e):t;if(ie(n))return Ge(S(n,e));throw dn(re(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=S(s,r)).done;){try{u=v(l.value)}catch(e){pn(r,"throw",e)}if("object"==typeof u&&u&&U(vn,u))return u}return new gn(!1)},mn=c.String,bn=function(e){if("Symbol"===ln(e))throw TypeError("Cannot convert a Symbol value to a string");return mn(e)},wn=function(e,t){return void 0===e?arguments.length<2?"":t:bn(e)},En=!D((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",F(1,7)),7!==e.stack)})),Dn=Ce("toStringTag"),Cn=c.Error,xn=[].push,Sn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=U(An,this);ct?n=ct(new Cn(void 0),o?ut(this):An):(n=o?this:zt(An),Ze(n,Dn,"Error")),Ze(n,"message",wn(t,"")),En&&Ze(n,"stack",Jt(n.stack,1)),Qt(n,r);var i=[];return yn(e,xn,{that:i}),Ze(n,"errors",i),n};ct?ct(Sn,Cn):function(e,t){for(var n=Tt(t),r=Xe.f,o=je.f,i=0;i<n.length;i++){var a=n[i];he(e,a)||r(e,a,o(t,a))}}(Sn,Cn);var An=Sn.prototype=zt(Cn.prototype,{constructor:F(1,Sn),message:F(1,""),name:F(1,"AggregateError")});et({global:!0},{AggregateError:Sn});var On=w(Function.toString);E(le.inspectSource)||(le.inspectSource=function(e){return On(e)});var kn,Bn,Fn,Tn=le.inspectSource,_n=c.WeakMap,Pn=E(_n)&&/native code/.test(Tn(_n)),jn=c.TypeError,Nn=c.WeakMap;if(Pn||le.state){var In=le.state||(le.state=new Nn),Ln=w(In.get),Rn=w(In.has),Mn=w(In.set);kn=function(e,t){if(Rn(In,e))throw new jn("Object already initialized");return t.facade=e,Mn(In,e,t),t},Bn=function(e){return Ln(In,e)||{}},Fn=function(e){return Rn(In,e)}}else{var zn=nt("state");Et[zn]=!0,kn=function(e,t){if(he(e,zn))throw new jn("Object already initialized");return t.facade=e,Ze(e,zn,t),t},Bn=function(e){return he(e,zn)?e[zn]:{}},Fn=function(e){return he(e,zn)}}var $n,Hn,Vn,Un={set:kn,get:Bn,has:Fn,enforce:function(e){return Fn(e)?Bn(e):kn(e,{})},getterFor:function(e){return function(t){var n;if(!z(t)||(n=Bn(t)).type!==e)throw jn("Incompatible receiver, "+e+" required");return n}}},Wn=Function.prototype,Gn=C&&Object.getOwnPropertyDescriptor,qn=he(Wn,"name"),Kn={EXISTS:qn,PROPER:qn&&"something"===function(){}.name,CONFIGURABLE:qn&&(!C||C&&Gn(Wn,"name").configurable)},Yn=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ze(e,t,n)},Xn=Ce("iterator"),Zn=!1;[].keys&&("next"in(Vn=[].keys())?(Hn=ut(ut(Vn)))!==Object.prototype&&($n=Hn):Zn=!0);var Jn=null==$n||D((function(){var e={};return $n[Xn].call(e)!==e}));$n=Jn?{}:zt($n),E($n[Xn])||Yn($n,Xn,(function(){return this}));var Qn={IteratorPrototype:$n,BUGGY_SAFARI_ITERATORS:Zn},er=on?{}.toString:function(){return"[object "+ln(this)+"]"},tr=Xe.f,nr=Ce("toStringTag"),rr=function(e,t,n,r){if(e){var o=n?e:e.prototype;he(o,nr)||tr(o,nr,{configurable:!0,value:t}),r&&!on&&Ze(o,"toString",er)}},or=Qn.IteratorPrototype,ir=function(){return this},ar=Kn.PROPER,ur=Qn.BUGGY_SAFARI_ITERATORS,sr=Ce("iterator"),lr=function(){return this},cr=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=zt(or,{next:F(+!r,n)}),rr(e,o,!1,!0),en[o]=ir}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ur&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[sr]||p["@@iterator"]||o&&p[o],g=!ur&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=ut(v.call(new e)))!==Object.prototype&&u.next&&(rr(u,f,!0,!0),en[f]=lr),ar&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return S(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ur||d||!(l in p))&&Yn(p,l,s[l]);else et({target:t,proto:!0,forced:ur||d},s);return a&&p[sr]!==g&&Yn(p,sr,g,{name:o}),en[t]=g,s},fr=Un.set,dr=Un.getterFor("Array Iterator");cr(Array,"Array",(function(e,t){fr(this,{type:"Array Iterator",target:M(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"),en.Arguments=en.Array;var pr=w("".charAt),hr=w("".charCodeAt),gr=w("".slice),vr=function(e){return function(t,n){var r,o,i=bn(R(t)),a=pt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=hr(i,a))<55296||r>56319||a+1===u||(o=hr(i,a+1))<56320||o>57343?e?pr(i,a):r:e?gr(i,a,a+2):o-56320+(r-55296<<10)+65536}},yr={codeAt:vr(!1),charAt:vr(!0)}.charAt,mr=Un.set,br=Un.getterFor("String Iterator");cr(String,"String",(function(e){mr(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=yr(n,r),t.index+=e.length,{value:e,done:!1})}));var wr=$.AggregateError,Er=Ce("toStringTag");for(var Dr 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 Cr=c[Dr],xr=Cr&&Cr.prototype;xr&&ln(xr)!==Er&&Ze(xr,Er,Dr),en[Dr]=en.Array}var Sr,Ar,Or=wr,kr=function(e){return e&&e.Math==Math&&e},Br=kr("object"==typeof globalThis&&globalThis)||kr("object"==typeof window&&window)||kr("object"==typeof self&&self)||kr("object"==typeof o&&o)||function(){return this}()||Function("return this")(),Fr=function(e){try{return!!e()}catch(e){return!0}},Tr=!Fr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_r=Function.prototype.call,Pr=_r.bind?_r.bind(_r):function(){return _r.apply(_r,arguments)},jr={}.propertyIsEnumerable,Nr=Object.getOwnPropertyDescriptor,Ir=Nr&&!jr.call({1:2},1)?function(e){var t=Nr(this,e);return!!t&&t.enumerable}:jr,Lr={f:Ir},Rr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Mr=Function.prototype,zr=Mr.bind,$r=Mr.call,Hr=zr&&zr.bind($r),Vr=zr?function(e){return e&&Hr($r,e)}:function(e){return e&&function(){return $r.apply(e,arguments)}},Ur=Vr({}.toString),Wr=Vr("".slice),Gr=function(e){return Wr(Ur(e),8,-1)},qr=Br.Object,Kr=Vr("".split),Yr=Fr((function(){return!qr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Gr(e)?Kr(e,""):qr(e)}:qr,Xr=Br.TypeError,Zr=function(e){if(null==e)throw Xr("Can't call method on "+e);return e},Jr=function(e){return Yr(Zr(e))},Qr=function(e){return"function"==typeof e},eo=function(e){return"object"==typeof e?null!==e:Qr(e)},to=function(e){return Qr(e)?e:void 0},no=function(e,t){return arguments.length<2?to(Br[e]):Br[e]&&Br[e][t]},ro=Vr({}.isPrototypeOf),oo=no("navigator","userAgent")||"",io=Br.process,ao=Br.Deno,uo=io&&io.versions||ao&&ao.version,so=uo&&uo.v8;so&&(Ar=(Sr=so.split("."))[0]>0&&Sr[0]<4?1:+(Sr[0]+Sr[1])),!Ar&&oo&&(!(Sr=oo.match(/Edge\/(\d+)/))||Sr[1]>=74)&&(Sr=oo.match(/Chrome\/(\d+)/))&&(Ar=+Sr[1]);var lo=Ar,co=!!Object.getOwnPropertySymbols&&!Fr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lo&&lo<41})),fo=co&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,po=Br.Object,ho=fo?function(e){return"symbol"==typeof e}:function(e){var t=no("Symbol");return Qr(t)&&ro(t.prototype,po(e))},go=Br.String,vo=function(e){try{return go(e)}catch(e){return"Object"}},yo=Br.TypeError,mo=function(e){if(Qr(e))return e;throw yo(vo(e)+" is not a function")},bo=function(e,t){var n=e[t];return null==n?void 0:mo(n)},wo=Br.TypeError,Eo=Object.defineProperty,Do=function(e,t){try{Eo(Br,e,{value:t,configurable:!0,writable:!0})}catch(a){Br[e]=t}return t},Co=Br["__core-js_shared__"]||Do("__core-js_shared__",{}),xo=a((function(e){(e.exports=function(e,t){return Co[e]||(Co[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),So=Br.Object,Ao=function(e){return So(Zr(e))},Oo=Vr({}.hasOwnProperty),ko=Object.hasOwn||function(e,t){return Oo(Ao(e),t)},Bo=0,Fo=Math.random(),To=Vr(1..toString),_o=function(e){return"Symbol("+(void 0===e?"":e)+")_"+To(++Bo+Fo,36)},Po=xo("wks"),jo=Br.Symbol,No=jo&&jo.for,Io=fo?jo:jo&&jo.withoutSetter||_o,Lo=function(e){if(!ko(Po,e)||!co&&"string"!=typeof Po[e]){var t="Symbol."+e;co&&ko(jo,e)?Po[e]=jo[e]:Po[e]=fo&&No?No(t):Io(t)}return Po[e]},Ro=Br.TypeError,Mo=Lo("toPrimitive"),zo=function(e,t){if(!eo(e)||ho(e))return e;var n,r=bo(e,Mo);if(r){if(void 0===t&&(t="default"),n=Pr(r,e,t),!eo(n)||ho(n))return n;throw Ro("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Qr(n=e.toString)&&!eo(r=Pr(n,e)))return r;if(Qr(n=e.valueOf)&&!eo(r=Pr(n,e)))return r;if("string"!==t&&Qr(n=e.toString)&&!eo(r=Pr(n,e)))return r;throw wo("Can't convert object to primitive value")}(e,t)},$o=function(e){var t=zo(e,"string");return ho(t)?t:t+""},Ho=Br.document,Vo=eo(Ho)&&eo(Ho.createElement),Uo=function(e){return Vo?Ho.createElement(e):{}},Wo=!Tr&&!Fr((function(){return 7!=Object.defineProperty(Uo("div"),"a",{get:function(){return 7}}).a})),Go=Object.getOwnPropertyDescriptor,qo=Tr?Go:function(e,t){if(e=Jr(e),t=$o(t),Wo)try{return Go(e,t)}catch(e){}if(ko(e,t))return Rr(!Pr(Lr.f,e,t),e[t])},Ko={f:qo},Yo=Br.String,Xo=Br.TypeError,Zo=function(e){if(eo(e))return e;throw Xo(Yo(e)+" is not an object")},Jo=Br.TypeError,Qo=Object.defineProperty,ei=Tr?Qo:function(e,t,n){if(Zo(e),t=$o(t),Zo(n),Wo)try{return Qo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Jo("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ti={f:ei},ni=Tr?function(e,t,n){return ti.f(e,t,Rr(1,n))}:function(e,t,n){return e[t]=n,e},ri=Vr(Function.toString);Qr(Co.inspectSource)||(Co.inspectSource=function(e){return ri(e)});var oi,ii,ai,ui=Co.inspectSource,si=Br.WeakMap,li=Qr(si)&&/native code/.test(ui(si)),ci=xo("keys"),fi=function(e){return ci[e]||(ci[e]=_o(e))},di={},pi=Br.TypeError,hi=Br.WeakMap;if(li||Co.state){var gi=Co.state||(Co.state=new hi),vi=Vr(gi.get),yi=Vr(gi.has),mi=Vr(gi.set);oi=function(e,t){if(yi(gi,e))throw new pi("Object already initialized");return t.facade=e,mi(gi,e,t),t},ii=function(e){return vi(gi,e)||{}},ai=function(e){return yi(gi,e)}}else{var bi=fi("state");di[bi]=!0,oi=function(e,t){if(ko(e,bi))throw new pi("Object already initialized");return t.facade=e,ni(e,bi,t),t},ii=function(e){return ko(e,bi)?e[bi]:{}},ai=function(e){return ko(e,bi)}}var wi={set:oi,get:ii,has:ai,enforce:function(e){return ai(e)?ii(e):oi(e,{})},getterFor:function(e){return function(t){var n;if(!eo(t)||(n=ii(t)).type!==e)throw pi("Incompatible receiver, "+e+" required");return n}}},Ei=Function.prototype,Di=Tr&&Object.getOwnPropertyDescriptor,Ci=ko(Ei,"name"),xi={EXISTS:Ci,PROPER:Ci&&"something"===function(){}.name,CONFIGURABLE:Ci&&(!Tr||Tr&&Di(Ei,"name").configurable)},Si=a((function(e){var t=xi.CONFIGURABLE,n=wi.get,r=wi.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;Qr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ko(i,"name")||t&&i.name!==f)&&ni(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Br?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ni(e,n,i)):l?e[n]=i:Do(n,i)})(Function.prototype,"toString",(function(){return Qr(this)&&n(this).source||ui(this)}))})),Ai=Math.ceil,Oi=Math.floor,ki=function(e){var t=+e;return t!=t||0===t?0:(t>0?Oi:Ai)(t)},Bi=Math.max,Fi=Math.min,Ti=function(e,t){var n=ki(e);return n<0?Bi(n+t,0):Fi(n,t)},_i=Math.min,Pi=function(e){return e>0?_i(ki(e),9007199254740991):0},ji=function(e){return Pi(e.length)},Ni=function(e){return function(t,n,r){var o,i=Jr(t),a=ji(i),u=Ti(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}},Ii={includes:Ni(!0),indexOf:Ni(!1)}.indexOf,Li=Vr([].push),Ri=function(e,t){var n,r=Jr(e),o=0,i=[];for(n in r)!ko(di,n)&&ko(r,n)&&Li(i,n);for(;t.length>o;)ko(r,n=t[o++])&&(~Ii(i,n)||Li(i,n));return i},Mi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zi=Mi.concat("length","prototype"),$i=Object.getOwnPropertyNames||function(e){return Ri(e,zi)},Hi={f:$i},Vi={f:Object.getOwnPropertySymbols},Ui=Vr([].concat),Wi=no("Reflect","ownKeys")||function(e){var t=Hi.f(Zo(e)),n=Vi.f;return n?Ui(t,n(e)):t},Gi=function(e,t){for(var n=Wi(t),r=ti.f,o=Ko.f,i=0;i<n.length;i++){var a=n[i];ko(e,a)||r(e,a,o(t,a))}},qi=/#|\.prototype\./,Ki=function(e,t){var n=Xi[Yi(e)];return n==Ji||n!=Zi&&(Qr(t)?Fr(t):!!t)},Yi=Ki.normalize=function(e){return String(e).replace(qi,".").toLowerCase()},Xi=Ki.data={},Zi=Ki.NATIVE="N",Ji=Ki.POLYFILL="P",Qi=Ki,ea=Ko.f,ta=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Br:l?Br[u]||Do(u,{}):(Br[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ea(n,r))&&a.value:n[r],!Qi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Gi(i,o)}(e.sham||o&&o.sham)&&ni(i,"sham",!0),Si(n,r,i,e)}},na={};na[Lo("toStringTag")]="z";var ra,oa="[object z]"===String(na),ia=Lo("toStringTag"),aa=Br.Object,ua="Arguments"==Gr(function(){return arguments}()),sa=oa?Gr:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=aa(e),ia))?n:ua?Gr(t):"Object"==(r=Gr(t))&&Qr(t.callee)?"Arguments":r},la=Br.String,ca=function(e){if("Symbol"===sa(e))throw TypeError("Cannot convert a Symbol value to a string");return la(e)},fa=function(){var e=Zo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},da=Br.RegExp,pa=Fr((function(){var e=da("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ha=pa||Fr((function(){return!da("a","y").sticky})),ga=pa||Fr((function(){var e=da("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),va={BROKEN_CARET:ga,MISSED_STICKY:ha,UNSUPPORTED_Y:pa},ya=Object.keys||function(e){return Ri(e,Mi)},ma=Tr?Object.defineProperties:function(e,t){Zo(e);for(var n,r=Jr(t),o=ya(t),i=o.length,a=0;i>a;)ti.f(e,n=o[a++],r[n]);return e},ba=no("document","documentElement"),wa=fi("IE_PROTO"),Ea=function(){},Da=function(e){return"<script>"+e+"<\/script>"},Ca=function(e){e.write(Da("")),e.close();var t=e.parentWindow.Object;return e=null,t},xa=function(){try{ra=new ActiveXObject("htmlfile")}catch(e){}var e,t;xa="undefined"!=typeof document?document.domain&&ra?Ca(ra):((t=Uo("iframe")).style.display="none",ba.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Da("document.F=Object")),e.close(),e.F):Ca(ra);for(var n=Mi.length;n--;)delete xa.prototype[Mi[n]];return xa()};di[wa]=!0;var Sa,Aa,Oa=Object.create||function(e,t){var n;return null!==e?(Ea.prototype=Zo(e),n=new Ea,Ea.prototype=null,n[wa]=e):n=xa(),void 0===t?n:ma(n,t)},ka=Br.RegExp,Ba=Fr((function(){var e=ka(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Fa=Br.RegExp,Ta=Fr((function(){var e=Fa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),_a=wi.get,Pa=xo("native-string-replace",String.prototype.replace),ja=RegExp.prototype.exec,Na=ja,Ia=Vr("".charAt),La=Vr("".indexOf),Ra=Vr("".replace),Ma=Vr("".slice),za=(Aa=/b*/g,Pr(ja,Sa=/a/,"a"),Pr(ja,Aa,"a"),0!==Sa.lastIndex||0!==Aa.lastIndex),$a=va.BROKEN_CARET,Ha=void 0!==/()??/.exec("")[1];(za||Ha||$a||Ba||Ta)&&(Na=function(e){var t,n,r,o,i,a,u,s=this,l=_a(s),c=ca(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Pr(Na,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=$a&&s.sticky,h=Pr(fa,s),g=s.source,v=0,y=c;if(p&&(h=Ra(h,"y",""),-1===La(h,"g")&&(h+="g"),y=Ma(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ia(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),Ha&&(n=new RegExp("^"+g+"$(?!\\s)",h)),za&&(r=s.lastIndex),o=Pr(ja,p?n:s,y),p?o?(o.input=Ma(o.input,v),o[0]=Ma(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:za&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Ha&&o&&o.length>1&&Pr(Pa,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=Oa(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Va=Na;ta({target:"RegExp",proto:!0,forced:/./.exec!==Va},{exec:Va});var Ua=Lo("species"),Wa=RegExp.prototype,Ga=Vr("".charAt),qa=Vr("".charCodeAt),Ka=Vr("".slice),Ya=function(e){return function(t,n){var r,o,i=ca(Zr(t)),a=ki(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=qa(i,a))<55296||r>56319||a+1===u||(o=qa(i,a+1))<56320||o>57343?e?Ga(i,a):r:e?Ka(i,a,a+2):o-56320+(r-55296<<10)+65536}},Xa={codeAt:Ya(!1),charAt:Ya(!0)},Za=Xa.charAt,Ja=function(e,t,n){return t+(n?Za(e,t).length:1)},Qa=Br.TypeError,eu=function(e,t){var n=e.exec;if(Qr(n)){var r=Pr(n,e,t);return null!==r&&Zo(r),r}if("RegExp"===Gr(e))return Pr(Va,e,t);throw Qa("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Lo(e),i=!Fr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Fr((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Ua]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Vr(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Vr(e),s=t.exec;return s===Va||s===Wa.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Si(String.prototype,e,s[0]),Si(Wa,o,s[1])}r&&ni(Wa[o],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=Zr(this),r=null==t?void 0:bo(t,e);return r?Pr(r,t,n):new RegExp(t)[e](ca(n))},function(e){var r=Zo(this),o=ca(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return eu(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=eu(r,o));){var c=ca(u[0]);s[l]=c,""===c&&(r.lastIndex=Ja(o,Pi(r.lastIndex),a)),l++}return 0===l?null:s}]})),ta({global:!0},{globalThis:Br});var tu=!Fr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nu=fi("IE_PROTO"),ru=Br.Object,ou=ru.prototype,iu=tu?ru.getPrototypeOf:function(e){var t=Ao(e);if(ko(t,nu))return t[nu];var n=t.constructor;return Qr(n)&&t instanceof n?n.prototype:t instanceof ru?ou:null},au=Br.String,uu=Br.TypeError,su=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Vr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Zo(n),function(e){if("object"==typeof e||Qr(e))return e;throw uu("Can't set "+au(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),lu=Br.Array,cu=Math.max,fu=Vr("".replace),du=Vr("".split),pu=Vr([].join),hu=String(Error("zxcasd").stack),gu=/\n\s*at [^:]*:[^\n]*/,vu=gu.test(hu),yu=/@[^\n]*\n/.test(hu)&&!/zxcasd/.test(hu),mu=function(e,t){if("string"!=typeof e)return e;if(vu)for(;t--;)e=fu(e,gu,"");else if(yu)return pu(function(e,t,n){for(var r,o,i,a,u=ji(e),s=Ti(t,u),l=Ti(void 0===n?u:n,u),c=lu(cu(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=$o(o))in r?ti.f(r,a,Rr(0,i)):r[a]=i;return c.length=f,c}(du(e,"\n"),t),"\n");return e},bu=function(e,t){eo(t)&&"cause"in t&&ni(e,"cause",t.cause)},wu=Vr(Vr.bind),Eu=function(e,t){return mo(e),void 0===t?e:wu?wu(e,t):function(){return e.apply(t,arguments)}},Du={},Cu=Lo("iterator"),xu=Array.prototype,Su=Lo("iterator"),Au=function(e){if(null!=e)return bo(e,Su)||bo(e,"@@iterator")||Du[sa(e)]},Ou=Br.TypeError,ku=function(e,t,n){var r,o;Zo(e);try{if(!(r=bo(e,"return"))){if("throw"===t)throw n;return n}r=Pr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Zo(r),n},Bu=Br.TypeError,Fu=function(e,t){this.stopped=e,this.result=t},Tu=Fu.prototype,_u=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=Eu(t,c),g=function(e){return r&&ku(r,"normal",e),new Fu(!0,e)},v=function(e){return f?(Zo(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=Au(e)))throw Bu(vo(e)+" is not iterable");if(function(e){return void 0!==e&&(Du.Array===e||xu[Cu]===e)}(o)){for(i=0,a=ji(e);a>i;i++)if((u=v(e[i]))&&ro(Tu,u))return u;return new Fu(!1)}r=function(e,t){var n=arguments.length<2?Au(e):t;if(mo(n))return Zo(Pr(n,e));throw Ou(vo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Pr(s,r)).done;){try{u=v(l.value)}catch(e){ku(r,"throw",e)}if("object"==typeof u&&u&&ro(Tu,u))return u}return new Fu(!1)},Pu=function(e,t){return void 0===e?arguments.length<2?"":t:ca(e)},ju=!Fr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Rr(1,7)),7!==e.stack)})),Nu=Lo("toStringTag"),Iu=Br.Error,Lu=[].push,Ru=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=ro(Mu,this);su?n=su(new Iu(void 0),o?iu(this):Mu):(n=o?this:Oa(Mu),ni(n,Nu,"Error")),ni(n,"message",Pu(t,"")),ju&&ni(n,"stack",mu(n.stack,1)),bu(n,r);var i=[];return _u(e,Lu,{that:i}),ni(n,"errors",i),n};su?su(Ru,Iu):Gi(Ru,Iu);var Mu=Ru.prototype=Oa(Iu.prototype,{constructor:Rr(1,Ru),message:Rr(1,""),name:Rr(1,"AggregateError")});ta({global:!0},{AggregateError:Ru});var zu=Lo("unscopables"),$u=Array.prototype;null==$u[zu]&&ti.f($u,zu,{configurable:!0,value:Oa(null)});var Hu,Vu,Uu,Wu=function(e){$u[zu][e]=!0},Gu=Lo("iterator"),qu=!1;[].keys&&("next"in(Uu=[].keys())?(Vu=iu(iu(Uu)))!==Object.prototype&&(Hu=Vu):qu=!0);var Ku=null==Hu||Fr((function(){var e={};return Hu[Gu].call(e)!==e}));Ku&&(Hu={}),Qr(Hu[Gu])||Si(Hu,Gu,(function(){return this}));var Yu={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:qu},Xu=ti.f,Zu=Lo("toStringTag"),Ju=function(e,t,n){e&&!ko(e=n?e:e.prototype,Zu)&&Xu(e,Zu,{configurable:!0,value:t})},Qu=Yu.IteratorPrototype,es=function(){return this},ts=xi.PROPER,ns=xi.CONFIGURABLE,rs=Yu.IteratorPrototype,os=Yu.BUGGY_SAFARI_ITERATORS,is=Lo("iterator"),as=function(){return this},us=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Oa(Qu,{next:Rr(+!r,n)}),Ju(e,o,!1),Du[o]=es}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!os&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[is]||p["@@iterator"]||o&&p[o],g=!os&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=iu(v.call(new e)))!==Object.prototype&&u.next&&(iu(u)!==rs&&(su?su(u,rs):Qr(u[is])||Si(u,is,as)),Ju(u,f,!0)),ts&&"values"==o&&h&&"values"!==h.name&&(ns?ni(p,"name","values"):(d=!0,g=function(){return Pr(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(os||d||!(l in p))&&Si(p,l,s[l]);else ta({target:t,proto:!0,forced:os||d},s);return p[is]!==g&&Si(p,is,g,{name:o}),Du[t]=g,s},ss=wi.set,ls=wi.getterFor("Array Iterator"),cs=us(Array,"Array",(function(e,t){ss(this,{type:"Array Iterator",target:Jr(e),index:0,kind:t})}),(function(){var e=ls(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");Du.Arguments=Du.Array,Wu("keys"),Wu("values"),Wu("entries");var fs=Xa.charAt,ds=wi.set,ps=wi.getterFor("String Iterator");us(String,"String",(function(e){ds(this,{type:"String Iterator",string:ca(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=fs(n,r),t.index+=e.length,{value:e,done:!1})}));var hs,gs={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},vs=Uo("span").classList,ys=vs&&vs.constructor&&vs.constructor.prototype,ms=ys===Object.prototype?void 0:ys,bs=Lo("iterator"),ws=Lo("toStringTag"),Es=cs.values,Ds=function(e,t){if(e){if(e[bs]!==Es)try{ni(e,bs,Es)}catch(t){e[bs]=Es}if(e[ws]||ni(e,ws,t),gs[t])for(var n in cs)if(e[n]!==cs[n])try{ni(e,n,cs[n])}catch(t){e[n]=cs[n]}}};for(var Cs in gs)Ds(Br[Cs]&&Br[Cs].prototype,Cs);function xs(){"undefined"==typeof globalThis&&(window.globalThis=window)}function Ss(){void 0===Or&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}Ds(ms,"DOMTokenList"),"undefined"==typeof n.g?("ActiveXObject"in window&&console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser."),xs(),Ss()):n.g&&(null===(hs=n.g.navigator)||void 0===hs?void 0:hs.userAgent.match("QQBrowser"))&&(xs(),Ss());var As,Os=Array.isArray||function(e){return"Array"==P(e)},ks=function(){},Bs=[],Fs=V("Reflect","construct"),Ts=/^\s*(?:class|function)\b/,_s=w(Ts.exec),Ps=!Ts.exec(ks),js=function(e){if(!E(e))return!1;try{return Fs(ks,Bs,e),!0}catch(e){return!1}},Ns=!Fs||D((function(){var e;return js(js.call)||!js(Object)||!js((function(){e=!0}))||e}))?function(e){if(!E(e))return!1;switch(ln(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ps||!!_s(Ts,Tn(e))}:js,Is=Ce("species"),Ls=c.Array,Rs=function(e,t){return new(function(e){var t;return Os(e)&&(t=e.constructor,(Ns(t)&&(t===Ls||Os(t.prototype))||z(t)&&null===(t=t[Is]))&&(t=void 0)),void 0===t?Ls:t}(e))(0===t?0:t)},Ms=Ce("species"),zs=Ce("isConcatSpreadable"),$s=c.TypeError,Hs=Z>=51||!D((function(){var e=[];return e[zs]=!1,e.concat()[0]!==e})),Vs=(As="concat",Z>=51||!D((function(){var e=[];return(e.constructor={})[Ms]=function(){return{foo:1}},1!==e[As](Boolean).foo}))),Us=function(e){if(!z(e))return!1;var t=e[zs];return void 0!==t?!!t:Os(e)};et({target:"Array",proto:!0,forced:!Hs||!Vs},{concat:function(e){var t,n,r,o,i,a=de(this),u=Rs(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(Us(i=-1===t?a:arguments[t])){if(s+(o=mt(i))>9007199254740991)throw $s("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&$t(u,s,i[n])}else{if(s>=9007199254740991)throw $s("Maximum allowed index exceeded");$t(u,s++,i)}return u.length=s,u}});var Ws=kt.f,Gs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qs={f:function(e){return Gs&&"Window"==P(e)?function(e){try{return Ws(e)}catch(e){return Ut(Gs)}}(e):Ws(M(e))}},Ks=w([].slice),Ys={f:Ce},Xs=Xe.f,Zs=function(e){var t=$.Symbol||($.Symbol={});he(t,e)||Xs(t,e,{value:Ys.f(e)})},Js=w([].push),Qs=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=de(s),g=I(h),v=Ve(l,c),y=mt(g),m=0,b=f||Rs,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:Js(w,d)}else switch(e){case 4:return!1;case 7:Js(w,d)}return i?-1:r||o?o:w}},el={forEach:Qs(0),map:Qs(1),filter:Qs(2),some:Qs(3),every:Qs(4),find:Qs(5),findIndex:Qs(6),filterReject:Qs(7)}.forEach,tl=nt("hidden"),nl=Ce("toPrimitive"),rl=Un.set,ol=Un.getterFor("Symbol"),il=Object.prototype,al=c.Symbol,ul=al&&al.prototype,sl=c.TypeError,ll=c.QObject,cl=V("JSON","stringify"),fl=je.f,dl=Xe.f,pl=qs.f,hl=B.f,gl=w([].push),vl=ce("symbols"),yl=ce("op-symbols"),ml=ce("string-to-symbol-registry"),bl=ce("symbol-to-string-registry"),wl=ce("wks"),El=!ll||!ll.prototype||!ll.prototype.findChild,Dl=C&&D((function(){return 7!=zt(dl({},"a",{get:function(){return dl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=fl(il,t);r&&delete il[t],dl(e,t,n),r&&e!==il&&dl(il,t,r)}:dl,Cl=function(e,t){var n=vl[e]=zt(ul);return rl(n,{type:"Symbol",tag:e,description:t}),C||(n.description=t),n},xl=function(e,t,n){e===il&&xl(yl,t,n),Ge(e);var r=Oe(t);return Ge(n),he(vl,r)?(n.enumerable?(he(e,tl)&&e[tl][r]&&(e[tl][r]=!1),n=zt(n,{enumerable:F(0,!1)})):(he(e,tl)||dl(e,tl,F(1,{})),e[tl][r]=!0),Dl(e,r,n)):dl(e,r,n)},Sl=function(e,t){Ge(e);var n=M(t),r=_t(n).concat(Bl(n));return el(r,(function(t){C&&!S(Al,n,t)||xl(e,t,n[t])})),e},Al=function(e){var t=Oe(e),n=S(hl,this,t);return!(this===il&&he(vl,t)&&!he(yl,t))&&(!(n||!he(this,t)||!he(vl,t)||he(this,tl)&&this[tl][t])||n)},Ol=function(e,t){var n=M(e),r=Oe(t);if(n!==il||!he(vl,r)||he(yl,r)){var o=fl(n,r);return!o||!he(vl,r)||he(n,tl)&&n[tl][r]||(o.enumerable=!0),o}},kl=function(e){var t=pl(M(e)),n=[];return el(t,(function(e){he(vl,e)||he(Et,e)||gl(n,e)})),n},Bl=function(e){var t=e===il,n=pl(t?yl:M(e)),r=[];return el(n,(function(e){!he(vl,e)||t&&!he(il,e)||gl(r,vl[e])})),r};if(J||(ul=(al=function(){if(U(ul,this))throw sl("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?bn(arguments[0]):void 0,t=me(e),n=function(e){this===il&&S(n,yl,e),he(this,tl)&&he(this[tl],t)&&(this[tl][t]=!1),Dl(this,t,F(1,e))};return C&&El&&Dl(il,t,{configurable:!0,set:n}),Cl(t,e)}).prototype,Yn(ul,"toString",(function(){return ol(this).tag})),Yn(al,"withoutSetter",(function(e){return Cl(me(e),e)})),B.f=Al,Xe.f=xl,je.f=Ol,kt.f=qs.f=kl,Bt.f=Bl,Ys.f=function(e){return Cl(Ce(e),e)},C&&dl(ul,"description",{configurable:!0,get:function(){return ol(this).description}})),et({global:!0,wrap:!0,forced:!J,sham:!J},{Symbol:al}),el(_t(wl),(function(e){Zs(e)})),et({target:"Symbol",stat:!0,forced:!J},{for:function(e){var t=bn(e);if(he(ml,t))return ml[t];var n=al(t);return ml[t]=n,bl[n]=t,n},keyFor:function(e){if(!te(e))throw sl(e+" is not a symbol");if(he(bl,e))return bl[e]},useSetter:function(){El=!0},useSimple:function(){El=!1}}),et({target:"Object",stat:!0,forced:!J,sham:!C},{create:function(e,t){return void 0===t?zt(e):Sl(zt(e),t)},defineProperty:xl,defineProperties:Sl,getOwnPropertyDescriptor:Ol}),et({target:"Object",stat:!0,forced:!J},{getOwnPropertyNames:kl,getOwnPropertySymbols:Bl}),et({target:"Object",stat:!0,forced:D((function(){Bt.f(1)}))},{getOwnPropertySymbols:function(e){return Bt.f(de(e))}}),cl){var Fl=!J||D((function(){var e=al();return"[null]"!=cl([e])||"{}"!=cl({a:e})||"{}"!=cl(Object(e))}));et({target:"JSON",stat:!0,forced:Fl},{stringify:function(e,t,n){var r=Ks(arguments),o=t;if((z(t)||void 0!==e)&&!te(e))return Os(t)||(t=function(e,t){if(E(o)&&(t=S(o,this,e,t)),!te(t))return t}),r[1]=t,g(cl,null,r)}})}if(!ul[nl]){var Tl=ul.valueOf;Yn(ul,nl,(function(e){return S(Tl,this)}))}rr(al,"Symbol"),Et[tl]=!0,Zs("asyncIterator"),Zs("hasInstance"),Zs("isConcatSpreadable"),Zs("iterator"),Zs("match"),Zs("matchAll"),Zs("replace"),Zs("search"),Zs("species"),Zs("split"),Zs("toPrimitive"),Zs("toStringTag"),Zs("unscopables"),rr(c.JSON,"JSON",!0);var _l=$.Symbol;Zs("asyncDispose"),Zs("dispose"),Zs("matcher"),Zs("metadata"),Zs("observable"),Zs("patternMatch"),Zs("replaceAll");var Pl=_l,jl=Ys.f("iterator"),Nl=a((function(e){function t(n){return"function"==typeof Pl&&"symbol"==typeof jl?(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 Pl&&e.constructor===Pl&&e!==Pl.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})),Il=i(Nl),Ll=Ko.f,Rl=Fr((function(){Ll(1)}));if(ta({target:"Object",stat:!0,forced:!Tr||Rl,sham:!Tr},{getOwnPropertyDescriptor:function(e,t){return Ll(Jr(e),t)}}),"object"===("undefined"==typeof n.g?"undefined":Il(n.g))){var Ml=Object.getOwnPropertyDescriptor(n.g,"window");n.g.window&&!Ml.set||(n.g.window=n.g,n.g.requestAnimationFrame=function(){},n.g.navigator={userAgent:""},n.g.location={hostname:"0.0.0.0",port:0,protocol:"http:"},n.g.btoa=function(){},n.g.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=n.g.document&&null==n.g.document.getElementsByTagName&&(n.g.document.getElementsByTagName=function(){return[]})}
|
|
2
|
+
/*!
|
|
3
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6
|
+
* Released under the MIT License.
|
|
7
|
+
*/function zl(e){return"[object Object]"===Object.prototype.toString.call(e)}function $l(e){var t,n;return!1!==zl(e)&&(void 0===(t=e.constructor)||!1!==zl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Hl(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 Vl(e){return!!e&&!!e[kc]}function Ul(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)===Bc}(e)||Array.isArray(e)||!!e[Oc]||!!e.constructor[Oc]||Yl(e)||Xl(e))}function Wl(e,t,n){void 0===n&&(n=!1),0===Gl(e)?(n?Object.keys:Fc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Gl(e){var t=e[kc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Yl(e)?2:Xl(e)?3:0}function ql(e,t){return 2===Gl(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Kl(e,t,n){var r=Gl(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Yl(e){return Cc&&e instanceof Map}function Xl(e){return xc&&e instanceof Set}function Zl(e){return e.o||e.t}function Jl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Tc(e);delete t[kc];for(var n=Fc(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 Ql(e,t){return void 0===t&&(t=!1),tc(e)||Vl(e)||!Ul(e)||(Gl(e)>1&&(e.set=e.add=e.clear=e.delete=ec),Object.freeze(e),t&&Wl(e,(function(e,t){return Ql(t,!0)}),!0)),e}function ec(){Hl(2)}function tc(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function nc(e){var t=_c[e];return t||Hl(18,e),t}function rc(){return Ec}function oc(e,t){t&&(nc("Patches"),e.u=[],e.s=[],e.v=t)}function ic(e){ac(e),e.p.forEach(sc),e.p=null}function ac(e){e===Ec&&(Ec=e.l)}function uc(e){return Ec={p:[],l:Ec,h:e,m:!0,_:0}}function sc(e){var t=e[kc];0===t.i||1===t.i?t.j():t.O=!0}function lc(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||nc("ES5").S(t,e,r),r?(n[kc].P&&(ic(t),Hl(4)),Ul(e)&&(e=cc(t,e),t.l||dc(t,e)),t.u&&nc("Patches").M(n[kc],e,t.u,t.s)):e=cc(t,n,[]),ic(t),t.u&&t.v(t.u,t.s),e!==Ac?e:void 0}function cc(e,t,n){if(tc(t))return t;var r=t[kc];if(!r)return Wl(t,(function(o,i){return fc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return dc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Jl(r.k):r.o;Wl(3===r.i?new Set(o):o,(function(t,i){return fc(e,r,o,t,i,n)})),dc(e,o,!1),n&&e.u&&nc("Patches").R(r,n,e.u,e.s)}return r.o}function fc(e,t,n,r,o,i){if(Vl(o)){var a=cc(e,o,i&&t&&3!==t.i&&!ql(t.D,r)?i.concat(r):void 0);if(Kl(n,r,a),!Vl(a))return;e.m=!1}if(Ul(o)&&!tc(o)){if(!e.h.F&&e._<1)return;cc(e,o),t&&t.A.l||dc(e,o)}}function dc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Ql(t,n)}function pc(e,t){var n=e[kc];return(n?Zl(n):e)[t]}function hc(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 gc(e){e.P||(e.P=!0,e.l&&gc(e.l))}function vc(e){e.o||(e.o=Jl(e.t))}function yc(e,t,n){var r=Yl(t)?nc("MapSet").N(t,n):Xl(t)?nc("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:rc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Pc;n&&(o=[r],i=jc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):nc("ES5").J(t,n);return(n?n.A:rc()).p.push(r),r}function mc(e){return Vl(e)||Hl(22,e),function e(t){if(!Ul(t))return t;var n,r=t[kc],o=Gl(t);if(r){if(!r.P&&(r.i<4||!nc("ES5").K(r)))return r.t;r.I=!0,n=bc(t,o),r.I=!1}else n=bc(t,o);return Wl(n,(function(t,o){r&&function(e,t){return 2===Gl(e)?e.get(t):e[t]}(r.t,t)===o||Kl(n,t,e(o))})),3===o?new Set(n):n}(e)}function bc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Jl(e)}var wc,Ec,Dc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Cc="undefined"!=typeof Map,xc="undefined"!=typeof Set,Sc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ac=Dc?Symbol.for("immer-nothing"):((wc={})["immer-nothing"]=!0,wc),Oc=Dc?Symbol.for("immer-draftable"):"__$immer_draftable",kc=Dc?Symbol.for("immer-state"):"__$immer_state",Bc=""+Object.prototype.constructor,Fc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Tc=Object.getOwnPropertyDescriptors||function(e){var t={};return Fc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},_c={},Pc={get:function(e,t){if(t===kc)return e;var n=Zl(e);if(!ql(n,t))return function(e,t,n){var r,o=hc(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||!Ul(r)?r:r===pc(e.t,t)?(vc(e),e.o[t]=yc(e.A.h,r,e)):r},has:function(e,t){return t in Zl(e)},ownKeys:function(e){return Reflect.ownKeys(Zl(e))},set:function(e,t,n){var r=hc(Zl(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=pc(Zl(e),t),i=null==o?void 0:o[kc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||ql(e.t,t)))return!0;vc(e),gc(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!==pc(e.t,t)||t in e.t?(e.D[t]=!1,vc(e),gc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Zl(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(){Hl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Hl(12)}},jc={};Wl(Pc,(function(e,t){jc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),jc.deleteProperty=function(e,t){return Pc.deleteProperty.call(this,e[0],t)},jc.set=function(e,t,n){return Pc.set.call(this,e[0],t,n,e[0])};var Nc=function(){function e(e){var t=this;this.g=Sc,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&&Hl(6),void 0!==r&&"function"!=typeof r&&Hl(7),Ul(e)){var u=uc(t),s=yc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?ic(u):ac(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return oc(u,r),lc(e,u)}),(function(e){throw ic(u),e})):(oc(u,r),lc(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Ac)return;return void 0===a&&(a=e),t.F&&Ql(a,!0),a}Hl(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){Ul(e)||Hl(8),Vl(e)&&(e=mc(e));var t=uc(this),n=yc(this,e,void 0);return n[kc].C=!0,ac(t),n},t.finishDraft=function(e,t){var n=(e&&e[kc]).A;return oc(n,t),lc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Sc&&Hl(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=nc("Patches").$;return Vl(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Ic=new Nc,Lc=Ic.produce;Ic.produceWithPatches.bind(Ic),Ic.setAutoFreeze.bind(Ic),Ic.setUseProxies.bind(Ic),Ic.applyPatches.bind(Ic);var Rc=Ic.createDraft.bind(Ic),Mc=Ic.finishDraft.bind(Ic);function zc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $c=new WeakMap,Hc=new WeakMap,Vc=new WeakMap,Uc=new WeakMap,Wc=new WeakMap,Gc=new WeakMap;function qc(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 Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qc(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Pf.pathRefs(e))Vf.transform(n,t);for(var r of Pf.pointRefs(e))qf.transform(r,t);for(var o of Pf.rangeRefs(e))Zf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=$c.get(e)||[],l=Xc(t);for(var c of s)u(Hf.transform(c,t));for(var f of l)u(f);$c.set(e,a),Ed.transform(e,t),e.operations.push(t),Pf.normalize(e),"set_selection"===t.type&&(e.marks=null),Hc.get(e)||(Hc.set(e,!0),Promise.resolve().then((()=>{Hc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(Xf.isExpanded(r))Ed.setNodes(e,{[t]:n},{match:rd.isText,split:!0});else{var o=Kc(Kc({},Pf.marks(e)||{}),{},{[t]:n});e.marks=o,Hc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&Xf.isCollapsed(n)&&Ed.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&Xf.isCollapsed(n)&&Ed.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&Xf.isExpanded(n)&&Ed.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Rf.fragment(e,t):[]},insertBreak:()=>{Ed.splitNodes(e,{always:!0})},insertFragment:t=>{Ed.insertFragment(e,t)},insertNode:t=>{Ed.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Kc({text:t},r);Ed.insertNodes(e,o)}else Ed.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!rd.isText(n))if(Of.isElement(n)&&0===n.children.length)Ed.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!Pf.isEditor(n)&&Of.isElement(n)&&(e.isInline(n)||0===n.children.length||rd.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Rf.get(e,r);if(!rd.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(rd.isText(s)||Of.isElement(s)&&e.isInline(s))!==o?(Ed.removeNodes(e,{at:r.concat(i),voids:!0}),i--):Of.isElement(s)?e.isInline(s)&&(null!=l&&rd.isText(l)?c&&(Ed.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(Ed.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):null!=l&&rd.isText(l)&&(rd.equals(s,l,{loose:!0})?(Ed.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(Ed.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(Ed.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(Xf.isExpanded(n))Ed.unsetNodes(e,t,{match:rd.isText,split:!0});else{var r=Kc({},Pf.marks(e)||{});delete r[t],e.marks=r,Hc.get(e)||e.onChange()}}};return e},Xc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Hf.levels(t);case"insert_node":var{node:n,path:r}=e,o=Hf.levels(r),i=rd.isText(n)?[]:Array.from(Rf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Hf.ancestors(a),Hf.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Hf.equals(u,s))return[];var l=[],c=[];for(var f of Hf.ancestors(u)){var d=Hf.transform(f,e);l.push(d)}for(var p of Hf.ancestors(s)){var h=Hf.transform(p,e);c.push(h)}var g=c[c.length-1],v=s[s.length-1],y=g.concat(v);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...Hf.ancestors(m)];case"split_node":var{path:b}=e;return[...Hf.levels(b),Hf.next(b)];default:return[]}};function Zc(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 Jc,Qc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?af(e):e,o=Jc.None,i=Jc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=mf(s,l);if([o,i]=n?[i,c]:[c,o],bf(o,Jc.ZWJ)&&bf(i,Jc.ExtPict)&&!Cf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(bf(o,Jc.RI)&&bf(i,Jc.RI)&&!(u=null!==u?!u:!!n||Sf(e.substring(0,e.length-a))))break;if(o!==Jc.None&&i!==Jc.None&&Ef(o,i))break;a+=s.length}return a||1},ef=/\s/,tf=/[\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]/,nf=/['\u2018\u2019]/,rf=(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)]},of=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(ef.test(t))return!1;if(nf.test(t)){var o=Qc(n,r),[i,a]=rf(n,o,r);if(e(i,a,r))return!0}return!tf.test(t)},af=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(sf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(uf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},uf=e=>e>=55296&&e<=56319,sf=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"}(Jc||(Jc={}));var lf=/^(?:[\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])$/,cf=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ff=/^(?:[\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])$/,df=/^[\u1100-\u115F\uA960-\uA97C]$/,pf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,hf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,gf=/^[\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]$/,vf=/^[\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]$/,yf=/^(?:[\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])$/,mf=(e,t)=>{var n=Jc.Any;return-1!==e.search(lf)&&(n|=Jc.Extend),8205===t&&(n|=Jc.ZWJ),t>=127462&&t<=127487&&(n|=Jc.RI),-1!==e.search(cf)&&(n|=Jc.Prepend),-1!==e.search(ff)&&(n|=Jc.SpacingMark),-1!==e.search(df)&&(n|=Jc.L),-1!==e.search(pf)&&(n|=Jc.V),-1!==e.search(hf)&&(n|=Jc.T),-1!==e.search(gf)&&(n|=Jc.LV),-1!==e.search(vf)&&(n|=Jc.LVT),-1!==e.search(yf)&&(n|=Jc.ExtPict),n};function bf(e,t){return 0!=(e&t)}var wf=[[Jc.L,Jc.L|Jc.V|Jc.LV|Jc.LVT],[Jc.LV|Jc.V,Jc.V|Jc.T],[Jc.LVT|Jc.T,Jc.T],[Jc.Any,Jc.Extend|Jc.ZWJ],[Jc.Any,Jc.SpacingMark],[Jc.Prepend,Jc.Any],[Jc.ZWJ,Jc.ExtPict],[Jc.RI,Jc.RI]];function Ef(e,t){return-1===wf.findIndex((n=>bf(e,n[0])&&bf(t,n[1])))}var Df=/(?:[\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$/,Cf=e=>-1!==e.search(Df),xf=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Sf=e=>{var t=e.match(xf);return null!==t&&t[0].length/2%2==1},Af=e=>$l(e)&&Rf.isNodeList(e.children)&&!Pf.isEditor(e),Of={isAncestor:e=>$l(e)&&Rf.isNodeList(e.children),isElement:Af,isElementList:e=>Array.isArray(e)&&e.every((e=>Of.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 Af(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},kf=["text"],Bf=["text"];function Ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ff(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _f=new WeakMap,Pf={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=Pf.path(e,o),u="lowest"===r;for(var[s,l]of Pf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!rd.isText(s)&&!Hf.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:Pf.point(e,t,{edge:"end"}),focus:Pf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Pf.positions(e,Tf(Tf({},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:Pf.start(e,[]),focus:Pf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Pf.positions(e,Tf(Tf({},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)=>[Pf.start(e,t),Pf.end(e,t)],end:(e,t)=>Pf.point(e,t,{edge:"end"}),first(e,t){var n=Pf.path(e,t,{edge:"start"});return Pf.node(e,n)},fragment(e,t){var n=Pf.range(e,t);return Rf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Pf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>rd.isText(t)||Pf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>rd.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)=>Of.isElement(t)&&!e.isInline(t),isEditor(e){if(!$l(e))return!1;var t=_f.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||$l(e.marks))&&(null===e.selection||Xf.isRange(e.selection))&&Rf.isNodeList(e.children)&&$f.isOperationList(e.operations);return _f.set(e,n),n},isEnd(e,t,n){var r=Pf.end(e,n);return Gf.equals(t,r)},isEdge:(e,t,n)=>Pf.isStart(e,t,n)||Pf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&rd.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Of.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Vc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Pf.start(e,n);return Gf.equals(t,r)},isVoid:(e,t)=>Of.isElement(t)&&e.isVoid(t),last(e,t){var n=Pf.path(e,t,{edge:"end"});return Pf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pf.path(e,t,n);return[Rf.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=Pf.path(e,n);for(var[s,l]of Rf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Pf.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(Xf.isExpanded(n)){var[r]=Pf.nodes(e,{match:rd.isText});if(r){var[o]=r;return Zc(o,kf)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Pf.leaf(e,a);if(0===i.offset){var s=Pf.previous(e,{at:a,match:rd.isText}),l=Pf.above(e,{match:t=>Pf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Hf.isAncestor(d,f)&&(u=c)}}return Zc(u,Bf)},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=Pf.after(e,i,{voids:r});if(a){var[,u]=Pf.last(e,[]),s=[a.path,u];if(Hf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Hf.isPath(i)){var[l]=Pf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Pf.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=Pf.path(e,t,n);return[Rf.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(jf.isSpan(n))s=n[0],l=n[1];else{var c=Pf.path(e,n,{edge:"start"}),f=Pf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Rf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Pf.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===Hf.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&&rd.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>$c.get(e)||[];if(Pf.isNormalizing(e)){if(n){var o=Array.from(Rf.nodes(e),(e=>{var[,t]=e;return t}));$c.set(e,o)}0!==r(e).length&&Pf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Rf.has(e,t)){var n=Pf.node(e,t),[o,i]=n;Of.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(Rf.has(e,s)){var l=Pf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Pf.path(e,t,n),o=Hf.parent(r);return Pf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Hf.isPath(t))if("start"===o){var[,i]=Rf.first(e,t);t=i}else if("end"===o){var[,a]=Rf.last(e,t);t=a}return Xf.isRange(t)&&(t="start"===o?Xf.start(t):"end"===o?Xf.end(t):Hf.common(t.anchor.path,t.focus.path)),Gf.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Rf.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 Pf.pathRefs(e).delete(o),o.current=null,t}};return Pf.pathRefs(e).add(o),o},pathRefs(e){var t=Uc.get(e);return t||(t=new Set,Uc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Hf.isPath(t)){var o;if("end"===r){var[,i]=Rf.last(e,t);o=i}else{var[,a]=Rf.first(e,t);o=a}var u=Rf.get(e,o);if(!rd.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(Xf.isRange(t)){var[s,l]=Xf.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 Pf.pointRefs(e).delete(o),o.current=null,t}};return Pf.pointRefs(e).add(o),o},pointRefs(e){var t=Wc.get(e);return t||(t=new Set,Wc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Pf.range(e,n),[u,s]=Xf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[g,v]of Pf.nodes(e,{at:n,reverse:o,voids:i})){if(Of.isElement(g)){if(!i&&e.isVoid(g)){yield Pf.start(e,v);continue}if(e.isInline(g))continue;if(Pf.hasInlines(e,g)){var y=Hf.isAncestor(v,s.path)?s:Pf.end(e,v),m=Hf.isAncestor(v,u.path)?u:Pf.start(e,v);f=Pf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(rd.isText(g)){var b=Hf.equals(v,l.path);for(b?(p=o?l.offset:g.text.length-l.offset,h=l.offset):(p=g.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:v,offset:h},c=!1);;){if(0===d){if(""===f)break;d=w(f,r,o),f=rf(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:v,offset:h}}}}}function w(e,t,n){return"character"===t?Qc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Qc(e,t),[i,a]=rf(e,o,t);if(of(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},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=Pf.before(e,i,{voids:r});if(a){var[,u]=Pf.first(e,[]),s=[a.path,u];if(Hf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Hf.isPath(i)){var[l]=Pf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Pf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>Xf.isRange(t)&&!n?t:{anchor:Pf.start(e,t),focus:Pf.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 Pf.rangeRefs(e).delete(o),o.current=null,t}};return Pf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Gc.get(e);return t||(t=new Set,Gc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Vc.set(e,t)},start:(e,t)=>Pf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Pf.range(e,t),[i,a]=Xf.edges(o),u="";for(var[s,l]of Pf.nodes(e,{at:o,match:rd.isText,voids:r})){var c=s.text;Hf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Hf.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]=Xf.edges(t);if(0!==o.offset||0!==i.offset||Xf.isCollapsed(t))return t;var a=Pf.above(e,{at:i,match:t=>Pf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Pf.start(e,[]),focus:i},l=!0;for(var[c,f]of Pf.nodes(e,{at:s,match:rd.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Hf.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 Pf.above(e,Tf(Tf({},t),{},{match:t=>Pf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Pf.isNormalizing(e);Pf.setNormalizing(e,!1);try{t()}finally{Pf.setNormalizing(e,n)}Pf.normalize(e)}},jf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Hf.isPath)},Nf=["children"],If=["text"],Lf=new WeakMap,Rf={ancestor(e,t){var n=Rf.get(e,t);if(rd.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 Hf.ancestors(t,n)){var o=[Rf.ancestor(e,r),r];yield o}},child(e,t){if(rd.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=Rf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Rf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Hf.common(t,n);return[Rf.get(e,r),r]},descendant(e,t){var n=Rf.get(e,t);if(Pf.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 Rf.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 Rf.nodes(e,t))Of.isElement(n)&&(yield[n,r])},extractProps:e=>Of.isAncestor(e)?Zc(e,Nf):Zc(e,If),first(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!rd.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(rd.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Lc({children:e.children},(e=>{var[n,r]=Xf.edges(t),o=Rf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!Xf.includes(t,n)}});for(var[,i]of o){if(!Xf.includes(t,i)){var a=Rf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Hf.equals(i,r.path)){var s=Rf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Hf.equals(i,n.path)){var l=Rf.leaf(e,i);l.text=l.text.slice(n.offset)}}Pf.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(rd.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(rd.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>rd.isText(e)||Of.isElement(e)||Pf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Lf.get(e);if(void 0!==t)return t;var n=e.every((e=>Rf.isNode(e)));return Lf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!rd.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=Rf.get(e,t);if(!rd.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 Hf.levels(t,n)){var o=Rf.get(e,r);yield[o,r]}},matches:(e,t)=>Of.isElement(e)&&Of.isElementProps(t)&&Of.matches(e,t)||rd.isText(e)&&rd.isTextProps(t)&&rd.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?Hf.isBefore(u,i):Hf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||rd.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Hf.next(u);if(Rf.has(e,l)){u=l,s=Rf.get(e,u);continue}}r&&0!==u[u.length-1]?(u=Hf.previous(u),s=Rf.get(e,u)):(u=Hf.parent(u),s=Rf.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;Hf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Rf.get(e,u)}},parent(e,t){var n=Hf.parent(t),r=Rf.get(e,n);if(rd.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=>rd.isText(e)?e.text:e.children.map(Rf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))rd.isText(n)&&(yield[n,r])}};function Mf(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?Mf(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $f={isNodeOperation:e=>$f.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!$l(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Hf.isPath(e.path)&&Rf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Hf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Hf.isPath(e.path)&&$l(e.properties);case"move_node":return Hf.isPath(e.path)&&Hf.isPath(e.newPath);case"set_node":return Hf.isPath(e.path)&&$l(e.properties)&&$l(e.newProperties);case"set_selection":return null===e.properties&&Xf.isRange(e.newProperties)||null===e.newProperties&&Xf.isRange(e.properties)||$l(e.properties)&&$l(e.newProperties);case"split_node":return Hf.isPath(e.path)&&"number"==typeof e.position&&$l(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>$f.isOperation(e))),isSelectionOperation:e=>$f.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>$f.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return zf(zf({},e),{},{type:"remove_node"});case"insert_text":return zf(zf({},e),{},{type:"remove_text"});case"merge_node":return zf(zf({},e),{},{type:"split_node",path:Hf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Hf.equals(t,n))return e;if(Hf.isSibling(n,t))return zf(zf({},e),{},{path:t,newPath:n});var r=Hf.transform(n,e),o=Hf.transform(Hf.next(n),e);return zf(zf({},e),{},{path:r,newPath:o});case"remove_node":return zf(zf({},e),{},{type:"insert_node"});case"remove_text":return zf(zf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return zf(zf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return zf(zf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return zf(zf({},e),{},{type:"merge_node",path:Hf.next(e.path)})}}},Hf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Hf.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 Hf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Hf.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 Hf.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===Hf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Hf.compare(e,t),isBefore:(e,t)=>-1===Hf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Hf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Hf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Hf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Hf.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]&&Hf.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(!Hf.isAncestor(t,e)&&!Hf.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 Lc(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;(Hf.equals(i,r)||Hf.endsBefore(i,r)||Hf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Hf.equals(a,r)||Hf.isAncestor(a,r))return null;Hf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Hf.equals(u,r)||Hf.endsBefore(u,r)?r[u.length-1]-=1:Hf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Hf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Hf.endsBefore(l,r)?r[l.length-1]+=1:Hf.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(Hf.equals(f,d))return;if(Hf.isAncestor(f,r)||Hf.equals(f,r)){var p=d.slice();return Hf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Hf.isSibling(f,d)&&(Hf.isAncestor(d,r)||Hf.equals(d,r))?Hf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Hf.endsBefore(d,r)||Hf.equals(d,r)||Hf.isAncestor(d,r)?(Hf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Hf.endsBefore(f,r)&&(Hf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},Vf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Hf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Uf(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 Wf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gf={compare(e,t){var n=Hf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===Gf.compare(e,t),isBefore:(e,t)=>-1===Gf.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Hf.equals(e.path,t.path),isPoint:e=>$l(e)&&"number"==typeof e.offset&&Hf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Lc(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=Hf.transform(o,t,n);break;case"insert_text":Hf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Hf.equals(t.path,o)&&(e.offset+=t.position),e.path=Hf.transform(o,t,n);break;case"remove_text":Hf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Hf.equals(t.path,o)||Hf.isAncestor(t.path,o))return null;e.path=Hf.transform(o,t,n);break;case"split_node":if(Hf.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=Hf.transform(o,t,Wf(Wf({},n),{},{affinity:"forward"})))}else e.path=Hf.transform(o,t,n)}}))}},qf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Gf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Kf=["anchor","focus"];function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Xf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return Xf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=Xf.edges(e);return t},equals:(e,t)=>Gf.equals(e.anchor,t.anchor)&&Gf.equals(e.focus,t.focus),includes(e,t){if(Xf.isRange(t)){if(Xf.includes(e,t.anchor)||Xf.includes(e,t.focus))return!0;var[n,r]=Xf.edges(e),[o,i]=Xf.edges(t);return Gf.isBefore(n,o)&&Gf.isAfter(r,i)}var[a,u]=Xf.edges(e),s=!1,l=!1;return Gf.isPoint(t)?(s=Gf.compare(t,a)>=0,l=Gf.compare(t,u)<=0):(s=Hf.compare(t,a.path)>=0,l=Hf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=Zc(e,Kf),[r,o]=Xf.edges(e),[i,a]=Xf.edges(t),u=Gf.isBefore(r,i)?i:r,s=Gf.isBefore(o,a)?o:a;return Gf.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return Gf.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Gf.equals(t,n)},isExpanded:e=>!Xf.isCollapsed(e),isForward:e=>!Xf.isBackward(e),isRange:e=>$l(e)&&Gf.isPoint(e.anchor)&&Gf.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Xf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Lc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=Xf.isCollapsed(e);Xf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?Xf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=Gf.transform(e.anchor,t,{affinity:r}),s=Gf.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Xf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Jf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if($l(r)&&$l(o)){if(!Jf(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},Qf=["text"],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}function nd(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){zc(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}var rd={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return Zc(e,Qf)}return Jf(r?o(e):e,r?o(t):t)},isText:e=>$l(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>rd.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=[nd({},e)];for(var r of t){var o=Zc(r,ed),[i,a]=Xf.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=nd(nd({},d),{},{text:d.text.slice(g)}),d=nd(nd({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=nd(nd({},d),{},{text:d.text.slice(0,v)}),d=nd(nd({},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 od(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 id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?od(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ad={transform(e,t){e.children=Rc(e.children);var n=e.selection&&Rc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Rf.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 Xf.points(t))t[s]=Gf.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Rf.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 Xf.points(t))t[v]=Gf.transform(g,n);break;case"merge_node":var{path:y}=n,m=Rf.get(e,y),b=Hf.previous(y),w=Rf.get(e,b),E=Rf.parent(e,y),D=y[y.length-1];if(rd.isText(m)&&rd.isText(w))w.text+=m.text;else{if(rd.isText(m)||rd.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,x]of Xf.points(t))t[x]=Gf.transform(C,n);break;case"move_node":var{path:S,newPath:A}=n;if(Hf.isAncestor(S,A))throw new Error("Cannot move a path [".concat(S,"] to new path [").concat(A,"] because the destination is inside itself."));var O=Rf.get(e,S),k=Rf.parent(e,S),B=S[S.length-1];k.children.splice(B,1);var F=Hf.transform(S,n),T=Rf.get(e,Hf.parent(F)),_=F[F.length-1];if(T.children.splice(_,0,O),t)for(var[P,j]of Xf.points(t))t[j]=Gf.transform(P,n);break;case"remove_node":var{path:N}=n,I=N[N.length-1];if(Rf.parent(e,N).children.splice(I,1),t)for(var[L,R]of Xf.points(t)){var M=Gf.transform(L,n);if(null!=t&&null!=M)t[R]=M;else{var z=void 0,$=void 0;for(var[H,V]of Rf.texts(e)){if(-1!==Hf.compare(V,N)){$=[H,V];break}z=[H,V]}var U=!1;z&&$&&(U=Hf.equals($[1],N)?!Hf.hasPrevious($[1]):Hf.common(z[1],N).length<Hf.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=Rf.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 Xf.points(t))t[J]=Gf.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=Rf.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(!Xf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=id({},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=Rf.get(e,le),he=Rf.parent(e,le),ge=le[le.length-1];if(rd.isText(pe)){var ve=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ve,de=id(id({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=id(id({},fe),{},{children:be})}if(he.children.splice(ge+1,0,de),t)for(var[we,Ee]of Xf.points(t))t[Ee]=Gf.transform(we,n)}return t})(e,n,t)}finally{e.children=Mc(e.children),e.selection=n?Vl(n)?Mc(n):n:null}}},ud=["text"],sd=["children"];function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ld(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Rf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Pf.end(e,[]):[0],s=!0),null==s&&(s=!1),Xf.isRange(a))if(r||(a=Pf.unhangRange(e,a)),Xf.isCollapsed(a))a=a.anchor;else{var[,c]=Xf.edges(a),f=Pf.pointRef(e,c);Ed.delete(e,{at:a}),a=f.unref()}if(Gf.isPoint(a)){null==u&&(u=rd.isText(l)?e=>rd.isText(e):e.isInline(l)?t=>rd.isText(t)||Pf.isInline(e,t):t=>Pf.isBlock(e,t));var[d]=Pf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Pf.pathRef(e,p),g=Pf.isEnd(e,a,p);Ed.splitNodes(e,{at:a,match:u,mode:i,voids:o});var v=h.unref();a=g?Hf.next(v):v}var y=Hf.parent(a),m=a[a.length-1];if(o||!Pf.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=Hf.next(a)}if(a=Hf.previous(a),s){var E=Pf.end(e,a);E&&Ed.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Hf.isPath(n)?hd(e,n):t=>Pf.isBlock(e,t)),n){var a=Pf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Pf.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=Pf.node(e,Hf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=Hf.next(d);Ed.moveNodes(e,{at:l,to:g,voids:o}),Ed.removeNodes(e,{at:d,voids:o})}else if(0===p)Ed.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=Hf.next(d);Ed.moveNodes(e,{at:l,to:v,voids:o})}else{var y=Hf.next(l),m=Hf.next(d);Ed.splitNodes(e,{at:y,voids:o}),Ed.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.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(Hf.isPath(r)){var[u]=Pf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Pf.isBlock(e,t);if(!o&&Xf.isRange(r)&&(r=Pf.unhangRange(e,r)),Xf.isRange(r))if(Xf.isCollapsed(r))r=r.anchor;else{var[,s]=Xf.edges(r),l=Pf.pointRef(e,s);Ed.delete(e,{at:r}),r=l.unref(),null==t.at&&Ed.select(e,r)}var[c]=Pf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Pf.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=Hf.next(g),b=Hf.common(p,g),w=Hf.isSibling(p,g),E=Array.from(Pf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),D=Pf.above(e,{at:p,mode:"highest",match:t=>E.includes(t)&&dd(e,t)}),C=D&&Pf.pathRef(e,D[1]);if(rd.isText(d)&&rd.isText(h)){var x=Zc(d,ud);y=h.text.length,v=x}else{if(!Of.isElement(d)||!Of.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)));x=Zc(d,sd),y=h.children.length,v=x}w||Ed.moveNodes(e,{at:p,to:m,voids:i}),C&&Ed.removeNodes(e,{at:C.current,voids:i}),Of.isElement(h)&&Pf.isEmpty(e,h)||rd.isText(h)&&""===h.text&&0!==g[g.length-1]?Ed.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),C&&C.unref()}}}}))},moveNodes(e,t){Pf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Hf.isPath(r)?hd(e,r):t=>Pf.isBlock(e,t));var u=Pf.pathRef(e,n),s=Pf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Pf.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&&Hf.isSibling(d,f)&&Hf.isAfter(d,f)&&(u.current=Hf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.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=Hf.isPath(i)?hd(e,i):t=>Pf.isBlock(e,t)),!n&&Xf.isRange(i)&&(i=Pf.unhangRange(e,i));var u=Pf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Pf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Pf.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]:{};Pf.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=Hf.isPath(o)?hd(e,o):t=>Pf.isBlock(e,t)),!i&&Xf.isRange(o)&&(o=Pf.unhangRange(e,o)),u&&Xf.isRange(o)){if(Xf.isCollapsed(o)&&Pf.leaf(e,o.anchor)[0].text.length>0)return;var l=Pf.rangeRef(e,o,{affinity:"inward"}),[c,f]=Xf.edges(o),d="lowest"===a?"lowest":"highest",p=Pf.isEnd(e,f,f.path);Ed.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Pf.isStart(e,c,c.path);Ed.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&Ed.select(e,o)}for(var[g,v]of Pf.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]:{};Pf.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=>Pf.isBlock(e,t)),Xf.isRange(i)&&(i=pd(e,i)),Hf.isPath(i)){var s=i,l=Pf.point(e,s),[c]=Pf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Pf.pointRef(e,i,{affinity:"backward"}),[d]=Pf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Pf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(Of.isElement(h)&&e.isInline(h)){var v=Pf.after(e,g);if(!v){var y=Hf.next(g);Ed.insertNodes(e,{text:""},{at:y,voids:r}),v=Pf.point(e,y)}i=v,u=!0}a=i.path.length-g.length+1,u=!0}var m=Pf.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,x]of Pf.levels(e,{at:E,reverse:!0,voids:r})){var S=!1;if(x.length<w.length||0===x.length||!r&&Pf.isVoid(e,C))break;var A=f.current,O=Pf.isEnd(e,A,x);if(u||!f||!Pf.isEdge(e,A,x)){S=!0;var k=Rf.extractProps(C);e.apply({type:"split_node",path:x,position:D,properties:k})}D=x[x.length-1]+(S||O?1:0)}if(null==t.at){var B=m.current||Pf.end(e,[]);Ed.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;Ed.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.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=Hf.isPath(i)?hd(e,i):t=>Pf.isBlock(e,t)),Hf.isPath(i)&&(i=Pf.range(e,i));var u=Xf.isRange(i)?Pf.rangeRef(e,i):null,s=Pf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Pf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Pf.node(e,n),a=Pf.range(e,n);r&&u&&(a=Xf.intersection(u.current,a)),Ed.liftNodes(e,{at:a,match:e=>Of.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]:{};Pf.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=Hf.isPath(u)?hd(e,u):e.isInline(t)?t=>Pf.isInline(e,t)||rd.isText(t):t=>Pf.isBlock(e,t)),o&&Xf.isRange(u)){var[s,l]=Xf.edges(u),c=Pf.rangeRef(e,u,{affinity:"inward"});Ed.splitNodes(e,{at:l,match:a,voids:i}),Ed.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&Ed.select(e,u)}var f=Array.from(Pf.nodes(e,{at:u,match:e.isInline(t)?t=>Pf.isBlock(e,t):e=>Pf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=Xf.isRange(u)?Xf.intersection(u,Pf.range(e,d)):u;if(p){var h=Array.from(Pf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var g=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Hf.equals(o,a)?Hf.parent(o):Hf.common(o,a),s=Pf.range(e,o,a),l=Pf.node(e,u),[c]=l,f=u.length+1,d=Hf.next(a.slice(0,f)),p=cd(cd({},t),{},{children:[]});Ed.insertNodes(e,p,{at:d,voids:i}),Ed.moveNodes(e,{at:s,match:e=>Of.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===g)continue}}}}}))}},dd=(e,t)=>{if(Of.isElement(t)){var n=t;return!!Pf.isVoid(e,t)||1===n.children.length&&dd(e,n.children[0])}return!Pf.isEditor(t)},pd=(e,t)=>{if(Xf.isCollapsed(t))return t.anchor;var[,n]=Xf.edges(t),r=Pf.pointRef(e,n);return Ed.delete(e,{at:t}),r.unref()},hd=(e,t)=>{var[n]=Pf.node(e,t);return e=>e===n};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){zc(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={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)Ed.select(e,r.anchor);else if("focus"===n)Ed.select(e,r.focus);else if("start"===n){var[o]=Xf.edges(r);Ed.select(e,o)}else if("end"===n){var[,i]=Xf.edges(r);Ed.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=Xf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=Xf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Pf.before(e,u,l):Pf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Pf.before(e,s,l):Pf.after(e,s,l);d&&(c.focus=d)}Ed.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Pf.range(e,t),n)Ed.setSelection(e,t);else{if(!Xf.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=Xf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=Xf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;Ed.setSelection(e,{["anchor"===o?"anchor":"focus"]:vd(vd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!Gf.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!Gf.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})}}},md={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pf.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(Xf.isRange(a)&&Xf.isCollapsed(a)&&(a=a.anchor),Gf.isPoint(a)){var s=Pf.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?Pf.before(e,a,c)||Pf.start(e,[]):Pf.after(e,a,c)||Pf.end(e,[])},u=!0}}if(Hf.isPath(a))Ed.removeNodes(e,{at:a,voids:i});else if(!Xf.isCollapsed(a)){if(!u){var[,f]=Xf.edges(a),d=Pf.end(e,[]);Gf.equals(f,d)||(a=Pf.unhangRange(e,a,{voids:i}))}var[p,h]=Xf.edges(a),g=Pf.above(e,{match:t=>Pf.isBlock(e,t),at:p,voids:i}),v=Pf.above(e,{match:t=>Pf.isBlock(e,t),at:h,voids:i}),y=g&&v&&!Hf.equals(g[1],v[1]),m=Hf.equals(p.path,h.path),b=i?null:Pf.void(e,{at:p,mode:"highest"}),w=i?null:Pf.void(e,{at:h,mode:"highest"});if(b){var E=Pf.before(e,p);E&&g&&Hf.isAncestor(g[1],E.path)&&(p=E)}if(w){var D=Pf.after(e,h);D&&v&&Hf.isAncestor(v[1],D.path)&&(h=D)}var C,x=[];for(var S of Pf.nodes(e,{at:a,voids:i})){var[A,O]=S;C&&0===Hf.compare(O,C)||(!i&&Pf.isVoid(e,A)||!Hf.isCommon(O,p.path)&&!Hf.isCommon(O,h.path))&&(x.push(S),C=O)}var k=Array.from(x,(t=>{var[,n]=t;return Pf.pathRef(e,n)})),B=Pf.pointRef(e,p),F=Pf.pointRef(e,h);if(!m&&!b){var T=B.current,[_]=Pf.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();Ed.removeNodes(e,{at:L,voids:i})}if(!w){var R=F.current,[M]=Pf.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&&Ed.mergeNodes(e,{at:F.current,hanging:!0,voids:i});var V=n?B.unref()||F.unref():F.unref()||B.unref();null==t.at&&V&&Ed.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(Xf.isRange(i))if(r||(i=Pf.unhangRange(e,i)),Xf.isCollapsed(i))i=i.anchor;else{var[,a]=Xf.edges(i);if(!o&&Pf.void(e,{at:a}))return;var u=Pf.pointRef(e,a);Ed.delete(e,{at:i}),i=u.unref()}else Hf.isPath(i)&&(i=Pf.start(e,i));if(o||!Pf.void(e,{at:i})){var s=Pf.above(e,{at:i,match:t=>Pf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;Pf.isEnd(e,i,l)?i=Pf.after(e,l):Pf.isStart(e,i,l)&&(i=Pf.before(e,l))}var c=Pf.above(e,{match:t=>Pf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Pf.isStart(e,i,f),p=Pf.isEnd(e,i,f),h=d&&p,g=!d||d&&p,v=!p,[,y]=Rf.first({children:t},[]),[,m]=Rf.last({children:t},[]),b=[],w=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(g&&Hf.isAncestor(r,y)&&Of.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(v&&Hf.isAncestor(r,m)&&Of.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var E of Rf.nodes({children:t},{pass:w}))w(E)&&b.push(E);var D=[],C=[],x=[],S=!0,A=!1;for(var[O]of b)Of.isElement(O)&&!e.isInline(O)?(S=!1,A=!0,C.push(O)):S?D.push(O):x.push(O);var[k]=Pf.nodes(e,{at:i,match:t=>rd.isText(t)||Pf.isInline(e,t),mode:"highest",voids:o}),[,B]=k,F=Pf.isStart(e,i,B),T=Pf.isEnd(e,i,B),_=Pf.pathRef(e,p?Hf.next(f):f),P=Pf.pathRef(e,T?Hf.next(B):B),j=Pf.pathRef(e,f);Ed.splitNodes(e,{at:i,match:t=>A?Pf.isBlock(e,t):rd.isText(t)||Pf.isInline(e,t),mode:A?"lowest":"highest",voids:o});var N=Pf.pathRef(e,!F||F&&T?Hf.next(B):B);if(Ed.insertNodes(e,D,{at:N.current,match:t=>rd.isText(t)||Pf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&Ed.delete(e,{at:j.unref(),voids:o}),Ed.insertNodes(e,C,{at:_.current,match:t=>Pf.isBlock(e,t),mode:"lowest",voids:o}),Ed.insertNodes(e,x,{at:P.current,match:t=>rd.isText(t)||Pf.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=x.length>0?Hf.previous(P.current):C.length>0?Hf.previous(_.current):Hf.previous(N.current);var L=Pf.end(e,I);Ed.select(e,L)}N.unref(),_.unref(),P.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Pf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Hf.isPath(o)&&(o=Pf.range(e,o)),Xf.isRange(o))if(Xf.isCollapsed(o))o=o.anchor;else{var i=Xf.end(o);if(!r&&Pf.void(e,{at:i}))return;var a=Pf.pointRef(e,i);Ed.delete(e,{at:o,voids:r}),o=a.unref(),Ed.setSelection(e,{anchor:o,focus:o})}if(r||!Pf.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 bd(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 wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(n),!0).forEach((function(t){zc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ed=wd(wd(wd(wd({},ad),fd),yd),md),Dd="[object Map]",Cd="[object Set]",xd=/^\[object .+?Constructor\]$/,Sd=/^(?:0|[1-9]\d*)$/,Ad="[\\ud800-\\udfff]",Od="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",kd="\\ud83c[\\udffb-\\udfff]",Bd="[^\\ud800-\\udfff]",Fd="(?:\\ud83c[\\udde6-\\uddff]){2}",Td="[\\ud800-\\udbff][\\udc00-\\udfff]",_d="(?:"+Od+"|"+kd+")?",Pd="[\\ufe0e\\ufe0f]?"+_d+"(?:\\u200d(?:"+[Bd,Fd,Td].join("|")+")[\\ufe0e\\ufe0f]?"+_d+")*",jd="(?:"+[Bd+Od+"?",Od,Fd,Td,Ad].join("|")+")",Nd=RegExp(kd+"(?="+kd+")|"+jd+Pd,"g"),Id=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Ld="object"==typeof o&&o&&o.Object===Object&&o,Rd="object"==typeof self&&self&&self.Object===Object&&self,Md=Ld||Rd||Function("return this")();function zd(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],n,e);return o}(t,(function(t){return e[t]}))}function $d(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Hd(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Vd(e){return function(e){return Id.test(e)}(e)?function(e){return e.match(Nd)||[]}(e):function(e){return e.split("")}(e)}var Ud,Wd,Gd=Function.prototype,qd=Object.prototype,Kd=Md["__core-js_shared__"],Yd=function(){var e=/[^.]+$/.exec(Kd&&Kd.keys&&Kd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xd=Gd.toString,Zd=qd.hasOwnProperty,Jd=qd.toString,Qd=RegExp("^"+Xd.call(Zd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ep=Md.Symbol,tp=ep?ep.iterator:void 0,np=qd.propertyIsEnumerable,rp=(Ud=Object.keys,Wd=Object,function(e){return Ud(Wd(e))}),op=yp(Md,"DataView"),ip=yp(Md,"Map"),ap=yp(Md,"Promise"),up=yp(Md,"Set"),sp=yp(Md,"WeakMap"),lp=wp(op),cp=wp(ip),fp=wp(ap),dp=wp(up),pp=wp(sp);function hp(e,t){var n=Ep(e)||function(e){return function(e){return Sp(e)&&Dp(e)}(e)&&Zd.call(e,"callee")&&(!np.call(e,"callee")||"[object Arguments]"==Jd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Zd.call(e,i)||o&&("length"==i||bp(i,r))||n.push(i);return n}function gp(e){if(!xp(e)||function(e){return!!Yd&&Yd in e}(e))return!1;var t=Cp(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Qd:xd;return t.test(wp(e))}function vp(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||qd,t!==r)return rp(e);var t,n,r,o=[];for(var i in Object(e))Zd.call(e,i)&&"constructor"!=i&&o.push(i);return o}function yp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return gp(n)?n:void 0}var mp=function(e){return Jd.call(e)};function bp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Sd.test(e))&&e>-1&&e%1==0&&e<t}function wp(e){if(null!=e){try{return Xd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(op&&"[object DataView]"!=mp(new op(new ArrayBuffer(1)))||ip&&mp(new ip)!=Dd||ap&&"[object Promise]"!=mp(ap.resolve())||up&&mp(new up)!=Cd||sp&&"[object WeakMap]"!=mp(new sp))&&(mp=function(e){var t=Jd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?wp(n):void 0;if(r)switch(r){case lp:return"[object DataView]";case cp:return Dd;case fp:return"[object Promise]";case dp:return Cd;case pp:return"[object WeakMap]"}return t});var Ep=Array.isArray;function Dp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Cp(e)}function Cp(e){var t=xp(e)?Jd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function xp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sp(e){return!!e&&"object"==typeof e}function Ap(e){return e?zd(e,function(e){return Dp(e)?hp(e):vp(e)}(e)):[]}var Op=function(e){if(!e)return[];if(Dp(e))return function(e){return"string"==typeof e||!Ep(e)&&Sp(e)&&"[object String]"==Jd.call(e)}(e)?Vd(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(tp&&e[tp])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[tp]());var t=mp(e);return(t==Dd?$d:t==Cd?Hd: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)},jp(e)}function Np(e,t){return Np=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Np(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(o){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||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;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,n)}function n(){return Lp(e,arguments,jp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Np(n,e)},Rp(e)}var Mp=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),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="[object GeneratorFunction]",Dh=/^(?:0|[1-9]\d*)$/;function Ch(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var xh=Object.prototype,Sh=xh.hasOwnProperty,Ah=xh.toString,Oh=xh.propertyIsEnumerable,kh=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Bh(e,t){var n=Ih(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Lh(e)}(e)&&Sh.call(e,"callee")&&(!Oh.call(e,"callee")||"[object Arguments]"==Ah.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Sh.call(e,i)||o&&("length"==i||Nh(i,r))||n.push(i);return n}var Fh,Th,_h=(Fh=function(e,t){return e&&Ph(e,t,Rh)},function(e,t){if(null==e)return e;if(!Lh(e))return Fh(e,t);for(var n=e.length,r=Th?n:-1,o=Object(e);(Th?r--:++r<n)&&!1!==t(o[r],r,o););return e}),Ph=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}();function jh(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||xh,t!==r)return kh(e);var t,n,r,o=[];for(var i in Object(e))Sh.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Nh(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Dh.test(e))&&e>-1&&e%1==0&&e<t}var Ih=Array.isArray;function Lh(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Ah.call(e):"";return"[object Function]"==t||t==Eh}(e)}function Rh(e){return Lh(e)?Bh(e):jh(e)}function Mh(e){return e}var zh=function(e,t){return(Ih(e)?Ch:_h)(e,"function"==typeof t?t:Mh)};let $h=(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 Hh=/^\s+|\s+$/g,Vh=/^[-+]0x[0-9a-f]+$/i,Uh=/^0b[01]+$/i,Wh=/^0o[0-7]+$/i,Gh=parseInt,qh="object"==typeof o&&o&&o.Object===Object&&o,Kh="object"==typeof self&&self&&self.Object===Object&&self,Yh=qh||Kh||Function("return this")(),Xh=Object.prototype.toString,Zh=Math.max,Jh=Math.min,Qh=function(){return Yh.Date.now()};function eg(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=Qh();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Jh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Qh(),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=ng(t)||0,tg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Zh(ng(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(Qh())},m}function tg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ng(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Xh.call(e)}(e))return NaN;if(tg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Hh,"");var n=Uh.test(e);return n||Wh.test(e)?Gh(e.slice(2),n?2:8):Vh.test(e)?NaN:+e}var rg=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return tg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),eg(e,t,{leading:r,maxWait:t,trailing:o})};const og={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 ig(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 ag=Array.isArray;function ug(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function sg(e){return void 0===e}function lg(e){return void 0!==e}const cg=ig("",{},[],void 0,void 0);function fg(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 dg(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 pg=["create","update","remove","destroy","pre","post"];function hg(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:og;for(const f of pg)for(const t of e){const e=t[f];void 0!==e&&n[f].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return ig(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;lg(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)sg(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=lg(s)&&lg(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](cg,e);if(ag(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(g,a(e,t))}else ug(e.text)&&r.appendChild(g,r.createTextNode(e.text));const v=e.data.hook;lg(v)&&(null===(i=v.create)||void 0===i||i.call(v,cg,e),v.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(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&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(lg(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let t=0;t<n.remove.length;++t)n.remove[t](f,c);const e=null===(l=null===(u=null==f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;lg(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,o){var i,s,f,d,p;const h=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==h?void 0:h.prepatch)||void 0===s||s.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)}sg(t.text)?lg(v)&&lg(y)?v!==y&&function(e,t,n,o){let i,s,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]:fg(v,b)?(c(v,b,o),v=t[++p],b=n[++h]):fg(y,w)?(c(y,w,o),y=t[--g],w=n[--m]):fg(v,w)?(c(v,w,o),r.insertBefore(e,v.elm,r.nextSibling(y.elm)),v=t[++p],w=n[--m]):fg(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===i&&(i=dg(t,p,g)),s=i[b.key],sg(s)?r.insertBefore(e,a(b,o),v.elm):(f=t[s],f.sel!==b.sel?r.insertBefore(e,a(b,o),v.elm):(c(f,b,o),t[s]=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,u(e,d,n,h,m,o)):l(e,t,p,g))}(g,v,y,o):lg(y)?(lg(e.text)&&r.setTextContent(g,""),u(g,null,y,0,y.length-1,o)):lg(v)?l(g,v,0,v.length-1):lg(e.text)&&r.setTextContent(g,""):e.text!==t.text&&(lg(v)&&l(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 i,u,s;const f=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(function(e){return void 0!==e.sel}(e)||(e=o(e)),fg(e,t)?c(e,t,f):(u=e.elm,s=r.parentNode(u),a(t,f),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<f.length;++i)f[i].data.hook.insert(f[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function gg(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&&gg(e,t[r].children,t[r].sel)}}function vg(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),ag(n)?r=n:ug(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(ag(t)?r=t:ug(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ug(r[i])&&(r[i]=ig(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]||gg(a,r,e),ig(e,a,r,o,void 0)}function yg(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 mg={create:yg,update:yg};function bg(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 wg={create:bg,update:bg},Eg=/[A-Z]/g;function Dg(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(Eg,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(Eg,"-$&").toLowerCase(),i[r]))}const Cg={create:Dg,update:Dg};function xg(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++)xg(e[r],t,n)}function Sg(e,t){const n=e.type,r=t.data.on;r&&r[n]&&xg(r[n],t,e)}function Ag(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Sg(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 Og={create:Ag,update:Ag,destroy:Ag};function kg(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 Bg={create:kg,update:kg},Fg="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Tg=!1;function _g(e,t,n){!function(e){Fg((function(){Fg(e)}))}((function(){e[t]=n}))}function Pg(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||_g(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const jg={pre:function(){Tg=!1},create:Pg,update:Pg,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Tg||(e.elm.offsetLeft,Tg=!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 Ng(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Ng(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(ig(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Ig(e,t,...n){const r=Ng(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?vg(e,t,r[0].text):vg(e,t,r)}Ig||(Ig={});var Lg,Rg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zg="\\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",$g="[\\ud800-\\udfff]",Hg="["+zg+"]",Vg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Ug="\\d+",Wg="[\\u2700-\\u27bf]",Gg="[a-z\\xdf-\\xf6\\xf8-\\xff]",qg="[^\\ud800-\\udfff"+zg+Ug+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Kg="\\ud83c[\\udffb-\\udfff]",Yg="[^\\ud800-\\udfff]",Xg="(?:\\ud83c[\\udde6-\\uddff]){2}",Zg="[\\ud800-\\udbff][\\udc00-\\udfff]",Jg="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Qg="(?:"+Gg+"|"+qg+")",ev="(?:"+Jg+"|"+qg+")",tv="(?:"+Vg+"|"+Kg+")?",nv="[\\ufe0e\\ufe0f]?"+tv+"(?:\\u200d(?:"+[Yg,Xg,Zg].join("|")+")[\\ufe0e\\ufe0f]?"+tv+")*",rv="(?:"+[Wg,Xg,Zg].join("|")+")"+nv,ov="(?:"+[Yg+Vg+"?",Vg,Xg,Zg,$g].join("|")+")",iv=RegExp("['’]","g"),av=RegExp(Vg,"g"),uv=RegExp(Kg+"(?="+Kg+")|"+ov+nv,"g"),sv=RegExp([Jg+"?"+Gg+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Hg,Jg,"$"].join("|")+")",ev+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Hg,Jg+Qg,"$"].join("|")+")",Jg+"?"+Qg+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Jg+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Ug,rv].join("|"),"g"),lv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),cv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,fv="object"==typeof o&&o&&o.Object===Object&&o,dv="object"==typeof self&&self&&self.Object===Object&&self,pv=fv||dv||Function("return this")(),hv=(Lg={"À":"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==Lg?void 0:Lg[e]});function gv(e){return lv.test(e)}function vv(e){return gv(e)?function(e){return e.match(uv)||[]}(e):function(e){return e.split("")}(e)}var yv=Object.prototype.toString,mv=pv.Symbol,bv=mv?mv.prototype:void 0,wv=bv?bv.toString:void 0;function Ev(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==yv.call(e)}(e))return wv?wv.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Dv(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)}function Cv(e){return null==e?"":Ev(e)}for(var xv,Sv,Av=(xv=function(e,t,n){return t=t.toLowerCase(),e+(n?Ov(Cv(t).toLowerCase()):t)},function(e){return function(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(e,t,n){return e=Cv(e),void 0===(t=n?void 0:t)?function(e){return cv.test(e)}(e)?function(e){return e.match(sv)||[]}(e):function(e){return e.match(Rg)||[]}(e):e.match(t)||[]}(function(e){return(e=Cv(e))&&e.replace(Mg,hv).replace(av,"")}(e).replace(iv,"")),xv,"")}),Ov=(Sv="toUpperCase",function(e){var t=gv(e=Cv(e))?vv(e):void 0,n=t?t[0]:e.charAt(0),r=t?Dv(t,1).join(""):e.slice(1);return n[Sv]()+r}),kv=Av,Bv="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Fv={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Tv={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Bv?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},_v={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},Pv=1;Pv<20;Pv++)_v["f"+Pv]=111+Pv;function jv(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 Fv)r[Fv[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=Iv(d),g=Fv[h];if(d.length>1&&!g&&!Tv[d]&&!_v[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=Nv(d)),g&&(r[g]=!p||null)}}catch(e){s=!0,l=e}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 Nv(e){return e=Iv(e),_v[e]||e.toUpperCase().charCodeAt(0)}function Iv(e){return e=e.toLowerCase(),Tv[e]||e}var Lv=jv,Rv=function(e,t){return jv(e,{byKey:!0},t)},Mv=/^\s+|\s+$/g,zv=/^[-+]0x[0-9a-f]+$/i,$v=/^0b[01]+$/i,Hv=/^0o[0-7]+$/i,Vv=parseInt,Uv="object"==typeof o&&o&&o.Object===Object&&o,Wv="object"==typeof self&&self&&self.Object===Object&&self,Gv=Uv||Wv||Function("return this")(),qv=Object.prototype.toString,Kv=Math.max,Yv=Math.min,Xv=function(){return Gv.Date.now()};function Zv(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Jv(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==qv.call(e)}(e))return NaN;if(Zv(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zv(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mv,"");var n=$v.test(e);return n||Hv.test(e)?Vv(e.slice(2),n?2:8):zv.test(e)?NaN:+e}var Qv,ey=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=Xv();if(g(e))return y(e);u=setTimeout(v,function(e){var n=t-(e-s);return f?Yv(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Xv(),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=Jv(t)||0,Zv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Kv(Jv(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(Xv())},m},ty=a((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E="[object Float32Array]",D="[object Float64Array]",C="[object Int8Array]",x="[object Int16Array]",S="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",B="[object Uint32Array]",F=/\w*$/,T=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,P={};P[i]=P["[object Array]"]=P[b]=P[w]=P[a]=P[u]=P[E]=P[D]=P[C]=P[x]=P[S]=P[c]=P[f]=P[d]=P[h]=P[g]=P[v]=P[y]=P[A]=P[O]=P[k]=P[B]=!0,P["[object Error]"]=P[s]=P[m]=!1;var j="object"==typeof o&&o&&o.Object===Object&&o,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(e){}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=Le(I,"DataView"),pe=Le(I,"Map"),he=Le(I,"Promise"),ge=Le(I,"Set"),ve=Le(I,"WeakMap"),ye=Le(Object,"create"),me=He(de),be=He(pe),we=He(he),Ee=He(ge),De=He(ve),Ce=re?re.prototype:void 0,xe=Ce?Ce.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){this.__data__=new Ae(e)}function Be(e,t){var n=Ue(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function Fe(e,t,n){var r=e[t];Q.call(e,t)&&Ve(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Te(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function _e(e,t,n,r,o,p,m){var T;if(r&&(T=p?r(e,o,p,m):r(e)),void 0!==T)return T;if(!Ke(e))return e;var _=Ue(e);if(_){if(T=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!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 j=Me(e),N=j==s||j==l;if(Ge(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(j==d||j==i||N&&!p){if(V(e))return p?e:{};if(T=function(e){return"function"!=typeof e.constructor||$e(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(N?{}:e),!t)return function(e,t){return Ne(e,Re(e),t)}(e,function(e,t){return e&&Ne(t,Ye(t),e)}(T,e))}else{if(!P[j])return p?e:{};T=function(e,t,n,r){var o=e.constructor;switch(t){case b:return je(e);case a:case u:return new o(+e);case w:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case E:case D:case C:case x:case S:case A:case O:case k:case B:return function(e,t){var n=t?je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return H(t?n(U(e),!0):U(e),z,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,F.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(G(e),!0):G(e),$,new e.constructor)}(e,r,n);case y:return function(e){return xe?Object(xe.call(e)):{}}(e)}}(e,j,_e,t)}}m||(m=new ke);var I=m.get(e);if(I)return I;if(m.set(e,T),!_)var L=n?function(e){return function(e,t,n){var r=t(e);return Ue(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,Ye,Re)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(o,i){L&&(o=e[i=o]),Fe(T,i,_e(o,t,n,r,i,e,m))})),T}function Pe(e){return!(!Ke(e)||function(e){return!!Z&&Z in e}(e))&&(qe(e)||V(e)?te:T).test(He(e))}function je(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Ne(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;Fe(n,a,void 0===u?e[a]:u)}return n}function Ie(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 Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}Se.prototype.clear=function(){this.__data__=ye?ye(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return Q.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Te(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=Te(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Te(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Te(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Se,map:new(pe||Ae),string:new Se}},Oe.prototype.delete=function(e){return Ie(this,e).delete(e)},Oe.prototype.get=function(e){return Ie(this,e).get(e)},Oe.prototype.has=function(e){return Ie(this,e).has(e)},Oe.prototype.set=function(e,t){return Ie(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 Re=le?W(le,Object):function(){return[]},Me=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function $e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function He(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=w||pe&&Me(new pe)!=c||he&&Me(he.resolve())!=p||ge&&Me(new ge)!=g||ve&&Me(new ve)!=m)&&(Me=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case Ee:return g;case De:return m}return t});var Ue=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!qe(e)}var Ge=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return We(e)?Be(e):function(e){if(!$e(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 _e(e,!0,!0)}}));function ny(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ry=0;function oy(e){return"__private_"+ry+++"_"+e}function iy(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r
|
|
8
|
+
/**
|
|
9
|
+
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
10
|
+
* and replaces it with values from options `{smart_count: 5}`
|
|
11
|
+
*
|
|
12
|
+
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
|
|
13
|
+
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
|
|
14
|
+
*
|
|
15
|
+
* @param {string} phrase that needs interpolation, with placeholders
|
|
16
|
+
* @param {object} options with values that will be used to replace placeholders
|
|
17
|
+
* @returns {any[]} interpolated
|
|
18
|
+
*/}function ay(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=iy(r,new RegExp(`%\\{${o}\\}`,"g"),e)}return r}var uy=(Qv=oy("apply"),class{constructor(e){Object.defineProperty(this,Qv,{value:sy}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(ny(this,Qv)[Qv],this):ny(this,Qv)[Qv](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count)return ay(n[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 ay(n,t)}});function sy(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 ly=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},cy={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:fy}=cy,dy=e=>crypto.getRandomValues(new Uint8Array(e)),py=(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 hy={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)=>py(e,t,dy),customRandom:py,urlAlphabet:fy,random:dy},gy=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 vy(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}vy.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 yy=/[\/\+\.]/,my=function(e,t){function n(t){var n=function(e,t,n){var r=new vy(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,yy);return n&&n.length>=2}return t?n(t.split(";")[0]):n},by=0;function wy(e){return"__private_"+by+++"_"+e}var Ey=wy("publish");class Dy{constructor(){Object.defineProperty(this,Ey,{value:Cy}),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,Ey)[Ey](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Cy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Dy.VERSION="2.0.3";var xy=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)}},Sy={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 Ay(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Oy=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 ky(e){return e<10?`0${e}`:e.toString()}var By=function(){const e=new Date;return`${ky(e.getHours())}:${ky(e.getMinutes())}:${ky(e.getSeconds())}`},Fy={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] [${By()}]`,...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] [${By()}]`,...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] [${By()}]`,...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] [${By()}]`,...t)}}},Ty={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}"}}},_y=hy;let Py,jy;function Ny(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Iy=0;function Ly(e){return"__private_"+Iy+++"_"+e}const{nanoid:Ry}=_y,{justErrorsLogger:My,debugLogger:zy}=Fy;class $y 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 Hy extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Vy=Ly("plugins"),Uy=Ly("storeUnsubscribe"),Wy=Ly("emitter"),Gy=Ly("preProcessors"),qy=Ly("uploaders"),Ky=Ly("postProcessors"),Yy=Ly("checkRestrictions"),Xy=Ly("checkMinNumberOfFiles"),Zy=Ly("checkRequiredMetaFieldsOnFile"),Jy=Ly("checkRequiredMetaFields"),Qy=Ly("showOrLogErrorAndThrow"),em=Ly("assertNewUploadAllowed"),tm=Ly("checkAndCreateFileStateObject"),nm=Ly("startIfAutoProceed"),rm=Ly("addListeners"),om=Ly("updateOnlineStatus"),im=Ly("createUpload"),am=Ly("getUpload"),um=Ly("removeUpload"),sm=Ly("runUpload");Py=Symbol.for("uppy test: getPlugins"),jy=Symbol.for("uppy test: createUpload");class lm{constructor(e){Object.defineProperty(this,sm,{value:Dm}),Object.defineProperty(this,um,{value:Em}),Object.defineProperty(this,am,{value:wm}),Object.defineProperty(this,im,{value:bm}),Object.defineProperty(this,rm,{value:mm}),Object.defineProperty(this,nm,{value:ym}),Object.defineProperty(this,tm,{value:vm}),Object.defineProperty(this,em,{value:gm}),Object.defineProperty(this,Qy,{value:hm}),Object.defineProperty(this,Jy,{value:pm}),Object.defineProperty(this,Zy,{value:dm}),Object.defineProperty(this,Xy,{value:fm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Vy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Uy,{writable:!0,value:void 0}),Object.defineProperty(this,Wy,{writable:!0,value:ly()}),Object.defineProperty(this,Gy,{writable:!0,value:new Set}),Object.defineProperty(this,qy,{writable:!0,value:new Set}),Object.defineProperty(this,Ky,{writable:!0,value:new Set}),Object.defineProperty(this,om,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Ty;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 Dy,logger:My,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=zy),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=rg(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Oy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Ny(this,Uy)[Uy]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Ny(this,rm)[rm]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Ny(this,Wy)[Wy].emit(e,...n)}on(e,t){return Ny(this,Wy)[Wy].on(e,t),this}once(e,t){return Ny(this,Wy)[Wy].once(e,t),this}off(e,t){return Ny(this,Wy)[Wy].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 uy([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Ny(this,Gy)[Gy].add(e)}removePreProcessor(e){return Ny(this,Gy)[Gy].delete(e)}addPostProcessor(e){Ny(this,Ky)[Ky].add(e)}removePostProcessor(e){return Ny(this,Ky)[Ky].delete(e)}addUploader(e){Ny(this,qy)[qy].add(e)}removeUploader(e){return Ny(this,qy)[qy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Ny(this,Yy)[Yy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Ny(this,em)[em](e);const{files:t}=this.getState();let n=Ny(this,tm)[tm](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Ny(this,nm)[nm](),n.id}addFiles(e){Ny(this,em)[em]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Ny(this,tm)[tm](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Ny(this,nm)[nm](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Ny(this,im)[im](t,{forceAllowNewUpload:!0});return Ny(this,sm)[sm](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Ny(this,im)[im]([e],{forceAllowNewUpload:!0});return Ny(this,sm)[sm](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e)throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Ny(this,Vy)[Vy]?Ny(this,Vy)[Vy][n.type].push(n):Ny(this,Vy)[Vy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Ny(this,Vy)[Vy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[Py](e){return Ny(this,Vy)[Vy][e]}iteratePlugins(e){Object.values(Ny(this,Vy)[Vy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Ny(this,Vy)[Vy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Ny(this,Uy)[Uy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Ny(this,om)[om]),window.removeEventListener("offline",Ny(this,om)[om]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Ny(this,sm)[sm](e):(Ny(this,um)[um](e),Promise.reject(new Error("Nonexistent upload")))}[jy](){return Ny(this,im)[im](...arguments)}addResultData(e,t){if(!Ny(this,am)[am](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Ny(this,Vy)[Vy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Ny(this,Xy)[Xy](t),Ny(this,Jy)[Jy](t)})).catch((e=>{Ny(this,Qy)[Qy](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Ny(this,im)[im](r);return Ny(this,sm)[sm](o)})).catch((e=>{Ny(this,Qy)[Qy](e,{showInformer:!1})})))}}function cm(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 $y(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((t=>t.indexOf("/")>-1?!!e.type&&my(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new $y(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 $y(this.i18n("exceedsSize",{size:gy(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new $y(this.i18n("exceedsSize",{size:gy(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new $y(this.i18n("inferiorSize",{size:gy(r)}))}function fm(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new $y(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function dm(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 $y(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Ny(this,Qy)[Qy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function pm(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Ny(this,Zy)[Zy](t)}));if(t.length)throw new Hy(t,`${this.i18n("missingRequiredMetaField")}`)}function hm(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 gm(e){const{allowNewUpload:t}=this.getState();!1===t&&Ny(this,Qy)[Qy](new $y(this.i18n("noMoreFilesAllowed")),{file:e})}function vm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=xy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Sy?Sy[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=xy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Ay(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Ay(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});if(this.checkIfFileAlreadyExists(a)){const e=new $y(this.i18n("noDuplicates",{fileName:r}));Ny(this,Qy)[Qy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Ny(this,Qy)[Qy](new $y("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));Ny(this,Yy)[Yy](l,t)}catch(e){Ny(this,Qy)[Qy](e,{file:l})}return l}function ym(){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 mm(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Ny(this,Qy)[Qy](e,{throwErr:!1})}else Ny(this,Qy)[Qy](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Ny(this,Ky)[Ky].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Ny(this,Zy)[Zy](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Ny(this,om)[om]),window.addEventListener("offline",Ny(this,om)[om]),setTimeout(Ny(this,om)[om],3e3))}function bm(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=Ry();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 wm(e){const{currentUploads:t}=this.getState();return t[e]}function Em(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Dm(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Ny(this,Gy)[Gy],...Ny(this,qy)[qy],...Ny(this,Ky)[Ky]];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(t){throw this.emit("error",t),Ny(this,um)[um](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Ny(this,um)[um](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}lm.VERSION="2.1.3";var Cm=lm,xm=a((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=x(g,s,e):s=S(e,g,h,D,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=w,d=C;d--;)null!=D[d]&&("function"==typeof n.type&&null!=D[d].__e&&D[d].__e==n.__d&&(n.__d=b(r,d+1)),j(D[d],D[d]));if(E)for(d=0;d<E.length;d++)P(E[d],E[++d],E[++d])}function x(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?x(r,t,n):S(n,r,r,o,r.__e,t));return t}function S(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function A(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||A(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||A(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:k,i):e.removeEventListener(t,i?B:k,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"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,n,o,i,a,u,s,l){var c,f,d,h,g,v,b,w,E,D,x,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof S){if(w=t.props,E=(c=S.contextType)&&o[c.__c],D=c?E?E.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?t.__c=f=new S(w,D):(t.__c=f=new m(w,D),f.constructor=S,f.render=N),E&&E.sub(f),f.props=w,f.state||(f.state={}),f.context=D,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,S.getDerivedStateFromProps(w,f.__s))),h=f.props,g=f.state,d)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&w!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(w,D),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(w,f.__s,D)||t.__v===n.__v){f.props=w,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(w,f.__s,D),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,g,v)}))}f.context=D,f.props=w,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,g)),x=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(x)?x:[x],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}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(e){r.__e(e,t.__v)}}))}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}function P(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function j(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&j(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function N(e,t,n){return this.constructor(e,n)}function I(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(t){e=t}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){I(t,n,e)},t.isValidElement=i,t.options=r,t.render=I,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}})),Sm=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},Am=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 uy([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 Om(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var km=0;function Bm(e){return"__private_"+km+++"_"+e}const{render:Fm}=xm;var Tm=Bm("updateUI");class _m extends Am{constructor(){super(...arguments),Object.defineProperty(this,Tm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Sm(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Om(this,Tm)[Tm]=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)&&(Fm(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Fm(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 _m)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=Om(this,Tm))[Tm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var Pm=_m;const{debugLogger:jm}=Fy;var Nm=Cm,Im=Cm,Lm=Pm,Rm=Am,Mm=jm;Nm.Uppy=Im,Nm.UIPlugin=Lm,Nm.BasePlugin=Rm,Nm.debugLogger=Mm;class zm 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 $m=zm,Hm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new $m(e)}))};class Vm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Um,Wm,Gm,qm,Km,Ym=Vm;function Xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Zm=0;function Jm(e){return"__private_"+Zm+++"_"+e}async function Qm(e){if(401===e.status)throw new Ym;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 eb=(Wm=Jm("getPostResponseFunc"),Gm=Jm("getUrl"),qm=Jm("errorHandler"),Km=Um=class e{constructor(e,t){Object.defineProperty(this,qm,{value:nb}),Object.defineProperty(this,Gm,{value:tb}),Object.defineProperty(this,Wm,{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(Xm(this,Gm)[Gm](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Hm(Xm(this,Gm)[Gm](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Xm(this,Wm)[Wm](t)).then(Qm).catch(Xm(this,qm)[qm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Hm(Xm(this,Gm)[Gm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(Xm(this,Wm)[Wm](n)).then(Qm).catch(Xm(this,qm)[qm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Hm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(Xm(this,Wm)[Wm](n)).then(Qm).catch(Xm(this,qm)[qm](r,e))}},Um.VERSION="2.0.4",Um.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Um.VERSION}`},Km);function tb(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function nb(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${Xm(this,Gm)[Gm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var rb,ob,ib,ab,ub,sb={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 lb,cb;function fb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var db=0;function pb(e){return"__private_"+db+++"_"+e}var hb,gb,vb=(rb=pb("queued"),ob=pb("emitter"),ib=pb("isOpen"),ab=pb("socket"),ub=pb("handleMessage"),lb=Symbol.for("uppy test: getSocket"),cb=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,rb,{writable:!0,value:[]}),Object.defineProperty(this,ob,{writable:!0,value:ly()}),Object.defineProperty(this,ib,{writable:!0,value:!1}),Object.defineProperty(this,ab,{writable:!0,value:void 0}),Object.defineProperty(this,ub,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return fb(this,ib)[ib]}[lb](){return fb(this,ab)[ab]}[cb](){return fb(this,rb)[rb]}open(){fb(this,ab)[ab]=new WebSocket(this.opts.target),fb(this,ab)[ab].onopen=()=>{for(fb(this,ib)[ib]=!0;fb(this,rb)[rb].length>0&&fb(this,ib)[ib];){const e=fb(this,rb)[rb].shift();this.send(e.action,e.payload)}},fb(this,ab)[ab].onclose=()=>{fb(this,ib)[ib]=!1},fb(this,ab)[ab].onmessage=fb(this,ub)[ub]}close(){var e;null==(e=fb(this,ab)[ab])||e.close()}send(e,t){fb(this,ib)[ib]?fb(this,ab)[ab].send(JSON.stringify({action:e,payload:t})):fb(this,rb)[rb].push({action:e,payload:t})}on(e,t){fb(this,ob)[ob].on(e,t)}emit(e,t){fb(this,ob)[ob].emit(e,t)}once(e,t){fb(this,ob)[ob].once(e,t)}}),yb={RequestClient:eb,Provider:class extends eb{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),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||sb}},SearchProvider:class extends eb{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),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:vb},mb=rg((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 bb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var wb=0;function Eb(e){return"__private_"+wb+++"_"+e}var Db=(hb=Eb("emitter"),gb=Eb("events"),class{constructor(e){Object.defineProperty(this,hb,{writable:!0,value:void 0}),Object.defineProperty(this,gb,{writable:!0,value:[]}),bb(this,hb)[hb]=e}on(e,t){return bb(this,gb)[gb].push([e,t]),bb(this,hb)[hb].on(e,t)}remove(){for(const[e,t]of bb(this,gb)[gb].splice(0))bb(this,hb)[hb].off(e,t)}});function Cb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xb=0;function Sb(e){return"__private_"+xb+++"_"+e}var Ab=Sb("aliveTimer"),Ob=Sb("isDone"),kb=Sb("onTimedOut"),Bb=Sb("timeout"),Fb=class{constructor(e,t){Object.defineProperty(this,Ab,{writable:!0,value:void 0}),Object.defineProperty(this,Ob,{writable:!0,value:!1}),Object.defineProperty(this,kb,{writable:!0,value:void 0}),Object.defineProperty(this,Bb,{writable:!0,value:void 0}),Cb(this,Bb)[Bb]=e,Cb(this,kb)[kb]=t}progress(){Cb(this,Ob)[Ob]||Cb(this,Bb)[Bb]>0&&(clearTimeout(Cb(this,Ab)[Ab]),Cb(this,Ab)[Ab]=setTimeout(Cb(this,kb)[kb],Cb(this,Bb)[Bb]))}done(){Cb(this,Ob)[Ob]||(clearTimeout(Cb(this,Ab)[Ab]),Cb(this,Ab)[Ab]=null,Cb(this,Ob)[Ob]=!0)}};function Tb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var _b=0;function Pb(e){return"__private_"+_b+++"_"+e}function jb(){return new Error("Cancelled")}var Nb=Pb("activeRequests"),Ib=Pb("queuedHandlers"),Lb=Pb("call"),Rb=Pb("queueNext"),Mb=Pb("next"),zb=Pb("queue"),$b=Pb("dequeue");function Hb(e){Tb(this,Nb)[Nb]+=1;let t,n=!1;try{t=e()}catch(e){throw Tb(this,Nb)[Nb]-=1,e}return{abort:()=>{n||(n=!0,Tb(this,Nb)[Nb]-=1,t(),Tb(this,Rb)[Rb]())},done:()=>{n||(n=!0,Tb(this,Nb)[Nb]-=1,Tb(this,Rb)[Rb]())}}}function Vb(){queueMicrotask((()=>Tb(this,Mb)[Mb]()))}function Ub(){if(Tb(this,Nb)[Nb]>=this.limit)return;if(0===Tb(this,Ib)[Ib].length)return;const e=Tb(this,Ib)[Ib].shift(),t=Tb(this,Lb)[Lb](e.fn);e.abort=t.abort,e.done=t.done}function Wb(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Tb(this,$b)[$b](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Tb(this,Ib)[Ib].findIndex((e=>n.priority>e.priority));return-1===r?Tb(this,Ib)[Ib].push(n):Tb(this,Ib)[Ib].splice(r,0,n),n}function Gb(e){const t=Tb(this,Ib)[Ib].indexOf(e);-1!==t&&Tb(this,Ib)[Ib].splice(t,1)}var qb,Kb,Yb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,$b,{value:Gb}),Object.defineProperty(this,zb,{value:Wb}),Object.defineProperty(this,Mb,{value:Ub}),Object.defineProperty(this,Rb,{value:Vb}),Object.defineProperty(this,Lb,{value:Hb}),Object.defineProperty(this,Nb,{writable:!0,value:0}),Object.defineProperty(this,Ib,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Tb(this,Nb)[Nb]<this.limit?Tb(this,Lb)[Lb](e):Tb(this,zb)[zb](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(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=jb()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},Xb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Zb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Jb}=_y,{Provider:Qb,RequestClient:ew,Socket:tw}=yb,{RateLimitedQueue:nw,internalRateLimitedQueue:rw}=Yb;function ow(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})),Xb(e)?(n=new $m(n,e),n):(n.request=e,n)}function iw(e){return e.data.slice(0,e.data.size,e.meta.type)}var aw=(Kb=qb=class extends Am{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Zb;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(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return Xb(t)&&(n=new $m(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),rw in this.opts?this.requests=this.opts[rw]:this.requests=new nw(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=iw(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=iw(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 Db(this.uppy);const a=new Fb(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=Jb();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=ow(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=ow(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?Qb:ew)(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 tw({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new Db(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=>mb(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 Fb(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[rw]||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)}},qb.VERSION="2.0.6",Kb),uw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function sw(e){var t={exports:{}};return e(t,t.exports),t.exports}var lw,cw,fw=function(e){return e&&e.Math==Math&&e},dw=fw("object"==typeof globalThis&&globalThis)||fw("object"==typeof window&&window)||fw("object"==typeof self&&self)||fw("object"==typeof uw&&uw)||function(){return this}()||Function("return this")(),pw=Object.defineProperty,hw=function(e,t){try{pw(dw,e,{value:t,configurable:!0,writable:!0})}catch(a){dw[e]=t}return t},gw=dw["__core-js_shared__"]||hw("__core-js_shared__",{}),vw=sw((function(e){(e.exports=function(e,t){return gw[e]||(gw[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),yw=Function.prototype,mw=yw.bind,bw=yw.call,ww=mw&&mw.bind(bw),Ew=mw?function(e){return e&&ww(bw,e)}:function(e){return e&&function(){return bw.apply(e,arguments)}},Dw=dw.TypeError,Cw=function(e){if(null==e)throw Dw("Can't call method on "+e);return e},xw=dw.Object,Sw=function(e){return xw(Cw(e))},Aw=Ew({}.hasOwnProperty),Ow=Object.hasOwn||function(e,t){return Aw(Sw(e),t)},kw=0,Bw=Math.random(),Fw=Ew(1..toString),Tw=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Fw(++kw+Bw,36)},_w=function(e){return"function"==typeof e},Pw=function(e){return _w(e)?e:void 0},jw=function(e,t){return arguments.length<2?Pw(dw[e]):dw[e]&&dw[e][t]},Nw=jw("navigator","userAgent")||"",Iw=dw.process,Lw=dw.Deno,Rw=Iw&&Iw.versions||Lw&&Lw.version,Mw=Rw&&Rw.v8;Mw&&(cw=(lw=Mw.split("."))[0]>0&&lw[0]<4?1:+(lw[0]+lw[1])),!cw&&Nw&&(!(lw=Nw.match(/Edge\/(\d+)/))||lw[1]>=74)&&(lw=Nw.match(/Chrome\/(\d+)/))&&(cw=+lw[1]);var zw=cw,$w=function(e){try{return!!e()}catch(e){return!0}},Hw=!!Object.getOwnPropertySymbols&&!$w((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zw&&zw<41})),Vw=Hw&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Uw=vw("wks"),Ww=dw.Symbol,Gw=Ww&&Ww.for,qw=Vw?Ww:Ww&&Ww.withoutSetter||Tw,Kw=function(e){if(!Ow(Uw,e)||!Hw&&"string"!=typeof Uw[e]){var t="Symbol."+e;Hw&&Ow(Ww,e)?Uw[e]=Ww[e]:Uw[e]=Vw&&Gw?Gw(t):qw(t)}return Uw[e]},Yw={};Yw[Kw("toStringTag")]="z";var Xw="[object z]"===String(Yw),Zw=!$w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Jw=function(e){return"object"==typeof e?null!==e:_w(e)},Qw=dw.document,eE=Jw(Qw)&&Jw(Qw.createElement),tE=function(e){return eE?Qw.createElement(e):{}},nE=!Zw&&!$w((function(){return 7!=Object.defineProperty(tE("div"),"a",{get:function(){return 7}}).a})),rE=dw.String,oE=dw.TypeError,iE=function(e){if(Jw(e))return e;throw oE(rE(e)+" is not an object")},aE=Function.prototype.call,uE=aE.bind?aE.bind(aE):function(){return aE.apply(aE,arguments)},sE=Ew({}.isPrototypeOf),lE=dw.Object,cE=Vw?function(e){return"symbol"==typeof e}:function(e){var t=jw("Symbol");return _w(t)&&sE(t.prototype,lE(e))},fE=dw.String,dE=function(e){try{return fE(e)}catch(e){return"Object"}},pE=dw.TypeError,hE=function(e){if(_w(e))return e;throw pE(dE(e)+" is not a function")},gE=function(e,t){var n=e[t];return null==n?void 0:hE(n)},vE=dw.TypeError,yE=dw.TypeError,mE=Kw("toPrimitive"),bE=function(e){var t=function(e,t){if(!Jw(e)||cE(e))return e;var n,r=gE(e,mE);if(r){if(void 0===t&&(t="default"),n=uE(r,e,t),!Jw(n)||cE(n))return n;throw yE("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_w(n=e.toString)&&!Jw(r=uE(n,e)))return r;if(_w(n=e.valueOf)&&!Jw(r=uE(n,e)))return r;if("string"!==t&&_w(n=e.toString)&&!Jw(r=uE(n,e)))return r;throw vE("Can't convert object to primitive value")}(e,t)}(e,"string");return cE(t)?t:t+""},wE=dw.TypeError,EE=Object.defineProperty,DE={f:Zw?EE:function(e,t,n){if(iE(e),t=bE(t),iE(n),nE)try{return EE(e,t,n)}catch(e){}if("get"in n||"set"in n)throw wE("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},CE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xE=Zw?function(e,t,n){return DE.f(e,t,CE(1,n))}:function(e,t,n){return e[t]=n,e},SE=Ew(Function.toString);_w(gw.inspectSource)||(gw.inspectSource=function(e){return SE(e)});var AE,OE,kE,BE=gw.inspectSource,FE=dw.WeakMap,TE=_w(FE)&&/native code/.test(BE(FE)),_E=vw("keys"),PE=function(e){return _E[e]||(_E[e]=Tw(e))},jE={},NE=dw.TypeError,IE=dw.WeakMap;if(TE||gw.state){var LE=gw.state||(gw.state=new IE),RE=Ew(LE.get),ME=Ew(LE.has),zE=Ew(LE.set);AE=function(e,t){if(ME(LE,e))throw new NE("Object already initialized");return t.facade=e,zE(LE,e,t),t},OE=function(e){return RE(LE,e)||{}},kE=function(e){return ME(LE,e)}}else{var $E=PE("state");jE[$E]=!0,AE=function(e,t){if(Ow(e,$E))throw new NE("Object already initialized");return t.facade=e,xE(e,$E,t),t},OE=function(e){return Ow(e,$E)?e[$E]:{}},kE=function(e){return Ow(e,$E)}}var HE={set:AE,get:OE,has:kE,enforce:function(e){return kE(e)?OE(e):AE(e,{})},getterFor:function(e){return function(t){var n;if(!Jw(t)||(n=OE(t)).type!==e)throw NE("Incompatible receiver, "+e+" required");return n}}},VE=Function.prototype,UE=Zw&&Object.getOwnPropertyDescriptor,WE=Ow(VE,"name"),GE={EXISTS:WE,PROPER:WE&&"something"===function(){}.name,CONFIGURABLE:WE&&(!Zw||Zw&&UE(VE,"name").configurable)},qE=sw((function(e){var t=GE.CONFIGURABLE,n=HE.get,r=HE.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;_w(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ow(i,"name")||t&&i.name!==f)&&xE(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==dw?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:xE(e,n,i)):l?e[n]=i:hw(n,i)})(Function.prototype,"toString",(function(){return _w(this)&&n(this).source||BE(this)}))})),KE=Ew({}.toString),YE=Ew("".slice),XE=function(e){return YE(KE(e),8,-1)},ZE=Kw("toStringTag"),JE=dw.Object,QE="Arguments"==XE(function(){return arguments}()),eD=Xw?XE:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=JE(e),ZE))?n:QE?XE(t):"Object"==(r=XE(t))&&_w(t.callee)?"Arguments":r},tD=Xw?{}.toString:function(){return"[object "+eD(this)+"]"};Xw||qE(Object.prototype,"toString",tD,{unsafe:!0});var nD={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},rD=tE("span").classList,oD=rD&&rD.constructor&&rD.constructor.prototype,iD=oD===Object.prototype?void 0:oD,aD=Ew(Ew.bind),uD=function(e,t){return hE(e),void 0===t?e:aD?aD(e,t):function(){return e.apply(t,arguments)}},sD=dw.Object,lD=Ew("".split),cD=$w((function(){return!sD("z").propertyIsEnumerable(0)}))?function(e){return"String"==XE(e)?lD(e,""):sD(e)}:sD,fD=Math.ceil,dD=Math.floor,pD=function(e){var t=+e;return t!=t||0===t?0:(t>0?dD:fD)(t)},hD=Math.min,gD=function(e){return e>0?hD(pD(e),9007199254740991):0},vD=function(e){return gD(e.length)},yD=Array.isArray||function(e){return"Array"==XE(e)},mD=function(){},bD=[],wD=jw("Reflect","construct"),ED=/^\s*(?:class|function)\b/,DD=Ew(ED.exec),CD=!ED.exec(mD),xD=function(e){if(!_w(e))return!1;try{return wD(mD,bD,e),!0}catch(e){return!1}},SD=!wD||$w((function(){var e;return xD(xD.call)||!xD(Object)||!xD((function(){e=!0}))||e}))?function(e){if(!_w(e))return!1;switch(eD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return CD||!!DD(ED,BE(e))}:xD,AD=Kw("species"),OD=dw.Array,kD=function(e,t){return new(function(e){var t;return yD(e)&&(t=e.constructor,(SD(t)&&(t===OD||yD(t.prototype))||Jw(t)&&null===(t=t[AD]))&&(t=void 0)),void 0===t?OD:t}(e))(0===t?0:t)},BD=Ew([].push),FD=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=cD(h),v=uD(l,c),y=vD(g),m=0,b=f||kD,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:BD(w,d)}else switch(e){case 4:return!1;case 7:BD(w,d)}return i?-1:r||o?o:w}},TD={forEach:FD(0),map:FD(1),filter:FD(2),some:FD(3),every:FD(4),find:FD(5),findIndex:FD(6),filterReject:FD(7)},_D=function(e,t){var n=[][e];return!!n&&$w((function(){n.call(null,t||function(){throw 1},1)}))},PD=TD.forEach,jD=_D("forEach")?[].forEach:function(e){return PD(this,e,arguments.length>1?arguments[1]:void 0)},ND=function(e){if(e&&e.forEach!==jD)try{xE(e,"forEach",jD)}catch(i){e.forEach=jD}};for(var ID in nD)nD[ID]&&ND(dw[ID]&&dw[ID].prototype);ND(iD);var LD={}.propertyIsEnumerable,RD=Object.getOwnPropertyDescriptor,MD=RD&&!LD.call({1:2},1)?function(e){var t=RD(this,e);return!!t&&t.enumerable}:LD,zD={f:MD},$D=function(e){return cD(Cw(e))},HD=Object.getOwnPropertyDescriptor,VD={f:Zw?HD:function(e,t){if(e=$D(e),t=bE(t),nE)try{return HD(e,t)}catch(e){}if(Ow(e,t))return CE(!uE(zD.f,e,t),e[t])}},UD=Math.max,WD=Math.min,GD=function(e,t){var n=pD(e);return n<0?UD(n+t,0):WD(n,t)},qD=function(e){return function(t,n,r){var o,i=$D(t),a=vD(i),u=GD(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}},KD={includes:qD(!0),indexOf:qD(!1)},YD=KD.indexOf,XD=Ew([].push),ZD=function(e,t){var n,r=$D(e),o=0,i=[];for(n in r)!Ow(jE,n)&&Ow(r,n)&&XD(i,n);for(;t.length>o;)Ow(r,n=t[o++])&&(~YD(i,n)||XD(i,n));return i},JD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],QD=JD.concat("length","prototype"),eC={f:Object.getOwnPropertyNames||function(e){return ZD(e,QD)}},tC={f:Object.getOwnPropertySymbols},nC=Ew([].concat),rC=jw("Reflect","ownKeys")||function(e){var t=eC.f(iE(e)),n=tC.f;return n?nC(t,n(e)):t},oC=function(e,t){for(var n=rC(t),r=DE.f,o=VD.f,i=0;i<n.length;i++){var a=n[i];Ow(e,a)||r(e,a,o(t,a))}},iC=/#|\.prototype\./,aC=function(e,t){var n=sC[uC(e)];return n==cC||n!=lC&&(_w(t)?$w(t):!!t)},uC=aC.normalize=function(e){return String(e).replace(iC,".").toLowerCase()},sC=aC.data={},lC=aC.NATIVE="N",cC=aC.POLYFILL="P",fC=aC,dC=VD.f,pC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?dw:l?dw[u]||hw(u,{}):(dw[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=dC(n,r))&&a.value:n[r],!fC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;oC(i,o)}(e.sham||o&&o.sham)&&xE(i,"sham",!0),qE(n,r,i,e)}},hC=Object.keys||function(e){return ZD(e,JD)},gC=$w((function(){hC(1)}));
|
|
19
|
+
/*!
|
|
20
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
23
|
+
* Released under the MIT License.
|
|
24
|
+
*/function vC(e){return"[object Object]"===Object.prototype.toString.call(e)}pC({target:"Object",stat:!0,forced:gC},{keys:function(e){return hC(Sw(e))}});var yC={isHistory(e){return!1!==vC(t=e)&&(void 0===(n=t.constructor)||!1!==vC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||$f.isOperationList(e.redos[0]))&&(0===e.undos.length||$f.isOperationList(e.undos[0]));var t,n,r}},mC=new WeakMap,bC=new WeakMap,wC={isHistoryEditor:e=>yC.isHistory(e.history)&&Pf.isEditor(e),isMerging:e=>bC.get(e),isSaving:e=>mC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=wC.isMerging(e);bC.set(e,!1),t(),bC.set(e,n)},withoutSaving(e,t){var n=wC.isSaving(e);mC.set(e,!1),t(),mC.set(e,n)}},EC=dw.String,DC=function(e){if("Symbol"===eD(e))throw TypeError("Cannot convert a Symbol value to a string");return EC(e)},CC=function(){var e=iE(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},xC=GE.PROPER,SC=RegExp.prototype,AC=SC.toString,OC=Ew(CC),kC=$w((function(){return"/a/b"!=AC.call({source:"a",flags:"b"})})),BC=xC&&"toString"!=AC.name;(kC||BC)&&qE(RegExp.prototype,"toString",(function(){var e=iE(this),t=DC(e.source),n=e.flags;return"/"+t+"/"+DC(void 0===n&&sE(SC,e)&&!("flags"in SC)?OC(e):n)}),{unsafe:!0});var FC,TC=Zw?Object.defineProperties:function(e,t){iE(e);for(var n,r=$D(t),o=hC(t),i=o.length,a=0;i>a;)DE.f(e,n=o[a++],r[n]);return e},_C=jw("document","documentElement"),PC=PE("IE_PROTO"),jC=function(){},NC=function(e){return"<script>"+e+"<\/script>"},IC=function(e){e.write(NC("")),e.close();var t=e.parentWindow.Object;return e=null,t},LC=function(){try{FC=new ActiveXObject("htmlfile")}catch(e){}var e,t;LC="undefined"!=typeof document?document.domain&&FC?IC(FC):((t=tE("iframe")).style.display="none",_C.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(NC("document.F=Object")),e.close(),e.F):IC(FC);for(var n=JD.length;n--;)delete LC.prototype[JD[n]];return LC()};jE[PC]=!0;var RC=Object.create||function(e,t){var n;return null!==e?(jC.prototype=iE(e),n=new jC,jC.prototype=null,n[PC]=e):n=LC(),void 0===t?n:TC(n,t)},MC=Kw("unscopables"),zC=Array.prototype;null==zC[MC]&&DE.f(zC,MC,{configurable:!0,value:RC(null)});var $C=function(e){zC[MC][e]=!0},HC=KD.includes;pC({target:"Array",proto:!0},{includes:function(e){return HC(this,e,arguments.length>1?arguments[1]:void 0)}}),$C("includes");var VC=Kw("match"),UC=function(e){var t;return Jw(e)&&(void 0!==(t=e[VC])?!!t:"RegExp"==XE(e))},WC=dw.TypeError,GC=function(e){if(UC(e))throw WC("The method doesn't accept regular expressions");return e},qC=Kw("match"),KC=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[qC]=!1,"/./"[e](t)}catch(e){}}return!1},YC=Ew("".indexOf);pC({target:"String",proto:!0,forced:!KC("includes")},{includes:function(e){return!!~YC(DC(Cw(this)),DC(GC(e)),arguments.length>1?arguments[1]:void 0)}});var XC=/"/g,ZC=Ew("".replace);pC({target:"String",proto:!0,forced:$w((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=DC(Cw(this)),r="<a",(r+=' name="'+ZC(DC(t),XC,""")+'"')+">"+n+"</a>";var t,n,r}});var JC=function(e,t,n){var r,o;iE(e);try{if(!(r=gE(e,"return"))){if("throw"===t)throw n;return n}r=uE(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return iE(r),n},QC=function(e,t,n,r){try{return r?t(iE(n)[0],n[1]):t(n)}catch(t){JC(e,"throw",t)}},ex={},tx=Kw("iterator"),nx=Array.prototype,rx=function(e){return void 0!==e&&(ex.Array===e||nx[tx]===e)},ox=function(e,t,n){var r=bE(t);r in e?DE.f(e,r,CE(0,n)):e[r]=n},ix=Kw("iterator"),ax=function(e){if(null!=e)return gE(e,ix)||gE(e,"@@iterator")||ex[eD(e)]},ux=dw.TypeError,sx=function(e,t){var n=arguments.length<2?ax(e):t;if(hE(n))return iE(uE(n,e));throw ux(dE(e)+" is not iterable")},lx=dw.Array,cx=Kw("iterator"),fx=!1;try{var dx=0,px={next:function(){return{done:!!dx++}},return:function(){fx=!0}};px[cx]=function(){return this},Array.from(px,(function(){throw 2}))}catch(LO){}var hx=function(e,t){if(!t&&!fx)return!1;var n=!1;try{var r={};r[cx]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},gx=!hx((function(e){Array.from(e)}));pC({target:"Array",stat:!0,forced:gx},{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=uD(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=ax(t),p=0;if(!d||this==lx&&rx(d))for(a=vD(t),u=n?new this(a):lx(a);a>p;p++)f=i?o(t[p],p):t[p],ox(u,p,f);else for(c=(l=sx(t,d)).next,u=n?new this:[];!(s=uE(c,l)).done;p++)f=i?QC(l,o,[s.value,p],!0):s.value,ox(u,p,f);return u.length=p,u}});var vx,yx,mx,bx=Ew("".charAt),wx=Ew("".charCodeAt),Ex=Ew("".slice),Dx=function(e){return function(t,n){var r,o,i=DC(Cw(t)),a=pD(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=wx(i,a))<55296||r>56319||a+1===u||(o=wx(i,a+1))<56320||o>57343?e?bx(i,a):r:e?Ex(i,a,a+2):o-56320+(r-55296<<10)+65536}},Cx={codeAt:Dx(!1),charAt:Dx(!0)},xx=!$w((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Sx=PE("IE_PROTO"),Ax=dw.Object,Ox=Ax.prototype,kx=xx?Ax.getPrototypeOf:function(e){var t=Sw(e);if(Ow(t,Sx))return t[Sx];var n=t.constructor;return _w(n)&&t instanceof n?n.prototype:t instanceof Ax?Ox:null},Bx=Kw("iterator"),Fx=!1;[].keys&&("next"in(mx=[].keys())?(yx=kx(kx(mx)))!==Object.prototype&&(vx=yx):Fx=!0);var Tx=null==vx||$w((function(){var e={};return vx[Bx].call(e)!==e}));Tx&&(vx={}),_w(vx[Bx])||qE(vx,Bx,(function(){return this}));var _x={IteratorPrototype:vx,BUGGY_SAFARI_ITERATORS:Fx},Px=DE.f,jx=Kw("toStringTag"),Nx=function(e,t,n){e&&!Ow(e=n?e:e.prototype,jx)&&Px(e,jx,{configurable:!0,value:t})},Ix=_x.IteratorPrototype,Lx=function(){return this},Rx=dw.String,Mx=dw.TypeError,zx=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ew(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return iE(n),function(e){if("object"==typeof e||_w(e))return e;throw Mx("Can't set "+Rx(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),$x=GE.PROPER,Hx=GE.CONFIGURABLE,Vx=_x.IteratorPrototype,Ux=_x.BUGGY_SAFARI_ITERATORS,Wx=Kw("iterator"),Gx=function(){return this},qx=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=RC(Ix,{next:CE(1,n)}),Nx(e,o,!1),ex[o]=Lx}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!Ux&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Wx]||p["@@iterator"]||o&&p[o],g=!Ux&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=kx(v.call(new e)))!==Object.prototype&&u.next&&(kx(u)!==Vx&&(zx?zx(u,Vx):_w(u[Wx])||qE(u,Wx,Gx)),Nx(u,f,!0)),$x&&"values"==o&&h&&"values"!==h.name&&(Hx?xE(p,"name","values"):(d=!0,g=function(){return uE(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Ux||d||!(l in p))&&qE(p,l,s[l]);else pC({target:t,proto:!0,forced:Ux||d},s);return p[Wx]!==g&&qE(p,Wx,g,{name:o}),ex[t]=g,s},Kx=Cx.charAt,Yx=HE.set,Xx=HE.getterFor("String Iterator");qx(String,"String",(function(e){Yx(this,{type:"String Iterator",string:DC(e),index:0})}),(function(){var e,t=Xx(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Kx(n,r),t.index+=e.length,{value:e,done:!1})}));var Zx,Jx=VD.f,Qx=Ew("".endsWith),eS=Ew("".slice),tS=Math.min,nS=KC("endsWith"),rS=!(nS||(Zx=Jx(String.prototype,"endsWith"),!Zx||Zx.writable));pC({target:"String",proto:!0,forced:!rS&&!nS},{endsWith:function(e){var t=DC(Cw(this));GC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:tS(gD(n),r),i=DC(e);return Qx?Qx(t,i,o):eS(t,o-i.length,o)===i}});var oS=Ew([].join),iS=cD!=Object,aS=_D("join",",");pC({target:"Array",proto:!0,forced:iS||!aS},{join:function(e){return oS($D(this),void 0===e?",":e)}});var uS=Kw("species"),sS=function(e){return zw>=51||!$w((function(){var t=[];return(t.constructor={})[uS]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},lS=TD.map,cS=sS("map");pC({target:"Array",proto:!0,forced:!cS},{map:function(e){return lS(this,e,arguments.length>1?arguments[1]:void 0)}});var fS=dw.RegExp,dS=$w((function(){var e=fS("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),pS=dS||$w((function(){return!fS("a","y").sticky})),hS={BROKEN_CARET:dS||$w((function(){var e=fS("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:pS,UNSUPPORTED_Y:dS},gS=dw.RegExp,vS=$w((function(){var e=gS(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),yS=dw.RegExp,mS=$w((function(){var e=yS("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),bS=HE.get,wS=vw("native-string-replace",String.prototype.replace),ES=RegExp.prototype.exec,DS=ES,CS=Ew("".charAt),xS=Ew("".indexOf),SS=Ew("".replace),AS=Ew("".slice),OS=function(){var e=/a/,t=/b*/g;return uE(ES,e,"a"),uE(ES,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),kS=hS.BROKEN_CARET,BS=void 0!==/()??/.exec("")[1];(OS||BS||kS||vS||mS)&&(DS=function(e){var t,n,r,o,i,a,u,s=this,l=bS(s),c=DC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=uE(DS,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=kS&&s.sticky,h=uE(CC,s),g=s.source,v=0,y=c;if(p&&(h=SS(h,"y",""),-1===xS(h,"g")&&(h+="g"),y=AS(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==CS(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),BS&&(n=new RegExp("^"+g+"$(?!\\s)",h)),OS&&(r=s.lastIndex),o=uE(ES,p?n:s,y),p?o?(o.input=AS(o.input,v),o[0]=AS(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:OS&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),BS&&o&&o.length>1&&uE(wS,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=RC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var FS=DS;pC({target:"RegExp",proto:!0,forced:/./.exec!==FS},{exec:FS});var TS=Function.prototype,_S=TS.apply,PS=TS.bind,jS=TS.call,NS="object"==typeof Reflect&&Reflect.apply||(PS?jS.bind(_S):function(){return jS.apply(_S,arguments)}),IS=Kw("species"),LS=RegExp.prototype,RS=function(e,t,n,r){var o=Kw(e),i=!$w((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!$w((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[IS]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Ew(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Ew(e),s=t.exec;return s===FS||s===LS.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));qE(String.prototype,e,s[0]),qE(LS,o,s[1])}r&&xE(LS[o],"sham",!0)},MS=Cx.charAt,zS=function(e,t,n){return t+(n?MS(e,t).length:1)},$S=Math.floor,HS=Ew("".charAt),VS=Ew("".replace),US=Ew("".slice),WS=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,GS=/\$([$&'`]|\d{1,2})/g,qS=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=GS;return void 0!==o&&(o=Sw(o),s=WS),VS(i,s,(function(i,s){var l;switch(HS(s,0)){case"$":return"$";case"&":return e;case"`":return US(t,0,n);case"'":return US(t,a);case"<":l=o[US(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=$S(c/10);return 0===f?i:f<=u?void 0===r[f-1]?HS(s,1):r[f-1]+HS(s,1):i}l=r[c-1]}return void 0===l?"":l}))},KS=dw.TypeError,YS=function(e,t){var n=e.exec;if(_w(n)){var r=uE(n,e,t);return null!==r&&iE(r),r}if("RegExp"===XE(e))return uE(FS,e,t);throw KS("RegExp#exec called on incompatible receiver")},XS=Kw("replace"),ZS=Math.max,JS=Math.min,QS=Ew([].concat),eA=Ew([].push),tA=Ew("".indexOf),nA=Ew("".slice),rA="$0"==="a".replace(/./,"$0"),oA=!!/./[XS]&&""===/./[XS]("a","$0");RS("replace",(function(e,t,n){var r=oA?"$":"$0";return[function(e,n){var r=Cw(this),o=null==e?void 0:gE(e,XS);return o?uE(o,e,r,n):uE(t,DC(r),e,n)},function(e,o){var i=iE(this),a=DC(e);if("string"==typeof o&&-1===tA(o,r)&&-1===tA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=_w(o);s||(o=DC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=YS(i,a);if(null===d)break;if(eA(f,d),!l)break;""===DC(d[0])&&(i.lastIndex=zS(a,gD(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=DC((d=f[v])[0]),m=ZS(JS(pD(d.index),a.length),0),b=[],w=1;w<d.length;w++)eA(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=QS([y],b,m,a);void 0!==E&&eA(D,E);var C=DC(NS(o,void 0,D))}else C=qS(y,a,m,b,E,o);m>=g&&(h+=nA(a,g,m)+C,g=m+y.length)}return h+nA(a,g)}]}),!!$w((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!rA||oA);
|
|
25
|
+
/*! *****************************************************************************
|
|
26
|
+
Copyright (c) Microsoft Corporation.
|
|
27
|
+
|
|
28
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
29
|
+
purpose with or without fee is hereby granted.
|
|
30
|
+
|
|
31
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
32
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
33
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
34
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
35
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
36
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
+
***************************************************************************** */
|
|
39
|
+
var iA=function(e,t){return iA=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])},iA(e,t)};function aA(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}iA(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var uA=function(){return uA=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},uA.apply(this,arguments)};function sA(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 lA(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function cA(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var fA=0,dA=function(){this.id=""+fA++},pA=HE.set,hA=HE.getterFor("Array Iterator"),gA=qx(Array,"Array",(function(e,t){pA(this,{type:"Array Iterator",target:$D(e),index:0,kind:t})}),(function(){var e=hA(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");ex.Arguments=ex.Array,$C("keys"),$C("values"),$C("entries");var vA=function(e,t,n){for(var r in t)qE(e,r,t[r],n);return e},yA=dw.Array,mA=Math.max,bA=function(e,t,n){for(var r=vD(e),o=GD(t,r),i=GD(void 0===n?r:n,r),a=yA(mA(i-o,0)),u=0;o<i;o++,u++)ox(a,u,e[o]);return a.length=u,a},wA=eC.f,EA="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],DA={f:function(e){return EA&&"Window"==XE(e)?function(e){try{return wA(e)}catch(e){return bA(EA)}}(e):wA($D(e))}},CA=$w((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),xA=Object.isExtensible,SA=$w((function(){xA(1)}))||CA?function(e){return!!Jw(e)&&(!CA||"ArrayBuffer"!=XE(e))&&(!xA||xA(e))}:xA,AA=!$w((function(){return Object.isExtensible(Object.preventExtensions({}))})),OA=sw((function(e){var t=DE.f,n=!1,r=Tw("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=eC.f,t=Ew([].splice),o={};o[r]=1,e(o).length&&(eC.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},pC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:DA.f}))},fastKey:function(e,t){if(!Jw(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Ow(e,r)){if(!SA(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Ow(e,r)){if(!SA(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return AA&&n&&SA(e)&&!Ow(e,r)&&i(e),e}};jE[r]=!0})),kA=dw.TypeError,BA=function(e,t){this.stopped=e,this.result=t},FA=BA.prototype,TA=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=uD(t,c),g=function(e){return r&&JC(r,"normal",e),new BA(!0,e)},v=function(e){return f?(iE(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=ax(e)))throw kA(dE(e)+" is not iterable");if(rx(o)){for(i=0,a=vD(e);a>i;i++)if((u=v(e[i]))&&sE(FA,u))return u;return new BA(!1)}r=sx(e,o)}for(s=r.next;!(l=uE(s,r)).done;){try{u=v(l.value)}catch(e){JC(r,"throw",e)}if("object"==typeof u&&u&&sE(FA,u))return u}return new BA(!1)},_A=dw.TypeError,PA=function(e,t){if(sE(t,e))return e;throw _A("Incorrect invocation")},jA=function(e,t,n){var r,o;return zx&&_w(r=t.constructor)&&r!==n&&Jw(o=r.prototype)&&o!==n.prototype&&zx(e,o),e},NA=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=dw[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Ew(u[e]);qE(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Jw(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Jw(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Jw(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(fC(e,!_w(a)||!(o||u.forEach&&!$w((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),OA.enable();else if(fC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=$w((function(){f.has(1)})),h=hx((function(e){new a(e)})),g=!o&&$w((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){PA(e,u);var n=jA(new a,e,s);return null!=t&&TA(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,pC({global:!0,forced:s!=a},l),Nx(s,e),o||n.setStrong(s,e,r),s},IA=OA.getWeakData,LA=HE.set,RA=HE.getterFor,MA=TD.find,zA=TD.findIndex,$A=Ew([].splice),HA=0,VA=function(e){return e.frozen||(e.frozen=new UA)},UA=function(){this.entries=[]},WA=function(e,t){return MA(e.entries,(function(e){return e[0]===t}))};UA.prototype={get:function(e){var t=WA(this,e);if(t)return t[1]},has:function(e){return!!WA(this,e)},set:function(e,t){var n=WA(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zA(this.entries,(function(t){return t[0]===e}));return~t&&$A(this.entries,t,1),!!~t}};var GA,qA={getConstructor:function(e,t,n,r){var o=e((function(e,o){PA(e,i),LA(e,{type:t,id:HA++,frozen:void 0}),null!=o&&TA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=RA(t),u=function(e,t,n){var r=a(e),o=IA(iE(t),!0);return!0===o?VA(r).set(t,n):o[r.id]=n,e};return vA(i,{delete:function(e){var t=a(this);if(!Jw(e))return!1;var n=IA(e);return!0===n?VA(t).delete(e):n&&Ow(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Jw(e))return!1;var n=IA(e);return!0===n?VA(t).has(e):n&&Ow(n,t.id)}}),vA(i,n?{get:function(e){var t=a(this);if(Jw(e)){var n=IA(e);return!0===n?VA(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}},KA=HE.enforce,YA=!dw.ActiveXObject&&"ActiveXObject"in dw,XA=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ZA=NA("WeakMap",XA,qA);if(TE&&YA){GA=qA.getConstructor(XA,"WeakMap",!0),OA.enable();var JA=ZA.prototype,QA=Ew(JA.delete),eO=Ew(JA.has),tO=Ew(JA.get),nO=Ew(JA.set);vA(JA,{delete:function(e){if(Jw(e)&&!SA(e)){var t=KA(this);return t.frozen||(t.frozen=new GA),QA(this,e)||t.frozen.delete(e)}return QA(this,e)},has:function(e){if(Jw(e)&&!SA(e)){var t=KA(this);return t.frozen||(t.frozen=new GA),eO(this,e)||t.frozen.has(e)}return eO(this,e)},get:function(e){if(Jw(e)&&!SA(e)){var t=KA(this);return t.frozen||(t.frozen=new GA),eO(this,e)?tO(this,e):t.frozen.get(e)}return tO(this,e)},set:function(e,t){if(Jw(e)&&!SA(e)){var n=KA(this);n.frozen||(n.frozen=new GA),eO(this,e)?nO(this,e,t):n.frozen.set(e,t)}else nO(this,e,t);return this}})}var rO=Kw("iterator"),oO=Kw("toStringTag"),iO=gA.values,aO=function(e,t){if(e){if(e[rO]!==iO)try{xE(e,rO,iO)}catch(t){e[rO]=iO}if(e[oO]||xE(e,oO,t),nD[t])for(var n in gA)if(e[n]!==gA[n])try{xE(e,n,gA[n])}catch(t){e[n]=gA[n]}}};for(var uO in nD)aO(dw[uO]&&dw[uO].prototype,uO);aO(iD,"DOMTokenList");var sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,gO=new WeakMap,vO=new WeakMap,yO=new WeakMap,mO=new WeakMap,bO=new WeakMap,wO=new WeakMap,EO=new WeakMap,DO=new WeakMap,CO=new WeakMap,xO=new WeakMap,SO=new WeakMap,AO=new WeakMap,OO=new WeakMap,kO=new WeakMap,BO=new WeakMap,FO=new WeakMap,TO=new WeakMap,_O=new WeakMap,PO=TD.find,jO=!0;"find"in[]&&Array(1).find((function(){jO=!1})),pC({target:"Array",proto:!0,forced:jO},{find:function(e){return PO(this,e,arguments.length>1?arguments[1]:void 0)}}),$C("find"),pC({global:!0},{globalThis:dw});const NO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];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 IO,LO,RO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},MO=function(e){return zO(e)&&1===e.nodeType},zO=function(e){var t=RO(e);return!!t&&e instanceof t.Node},$O=function(e){var t=e&&e.anchorNode&&RO(e.anchorNode);return!!t&&e instanceof t.Selection},HO=function(e){return zO(e)&&3===e.nodeType},VO=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},UO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(zO(r=i)&&8===r.nodeType||MO(i)&&0===i.childNodes.length||MO(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]},WO=function(e,t,n){return lA(UO(e,t,n),1)[0]},GO=function e(t){var n,r,o="";if(HO(t)&&t.nodeValue)return t.nodeValue;if(MO(t)){try{for(var i=sA(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}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 qO(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||qO(o,t)}}function KO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==IO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(LO=IO||(IO={}))[LO.ELEMENT_NODE=1]="ELEMENT_NODE",LO[LO.TEXT_NODE=3]="TEXT_NODE",LO[LO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",LO[LO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",LO[LO.COMMENT_NODE=8]="COMMENT_NODE",LO[LO.DOCUMENT_NODE=9]="DOCUMENT_NODE",LO[LO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",LO[LO.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 YO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),XO="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 ZO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),JO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),QO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ek="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var tk=!QO&&!JO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,nk={getWindow:function(e){var t=kO.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=OO.get(t);return n||(n=new dA,OO.set(t,n)),n},setNewKey:function(e){var t=new dA;OO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=DO.get(r);if(null==o){if(Pf.isEditor(r))return n;break}var i=EO.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=nk.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return DO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=nk.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[nk.findPath(e,t)[0]];return Rf.get(e,n)},toDOMNode:function(e,t){var n;if(Pf.isEditor(t))n=CO.get(e);else{var r=nk.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=nk.toDOMNode(e,e);try{r=MO(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=Xf.isBackward(t),i=nk.toDOMPoint(e,n),a=Xf.isCollapsed(t)?i:nk.toDOMPoint(e,r),u=nk.getWindow(e).document.createRange(),s=lA(o?a:i,2),l=s[0],c=s[1],f=lA(o?i:a,2),d=f[0],p=f[1],h=!!(MO(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(MO(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=lA(Pf.node(e,t.path),1)[0],a=nk.toDOMNode(e,i);Pf.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=sA(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(e){n={error:e}}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=MO(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?xO.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=nk.toSlateNode(e,t.target),u=nk.findPath(e,a);if(Pf.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=Pf.point(e,u,{edge:l?"start":"end"}),f=l?Pf.before(e,c):Pf.after(e,c);if(f)return Pf.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 nk.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(($O(t)?t.anchorNode:t.startContainer)&&($O(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=ek&&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=nk.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:nk.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Xf.isExpanded(d)&&Xf.isForward(d)&&MO(i)&&Pf.void(e,{at:d.focus,mode:"highest"})&&(d=Pf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=lA(o?t:function(e){var t,n=lA(e,2),r=n[0],o=n[1];if(MO(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=lA(UO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;MO(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=WO(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=nk.getWindow(e).document.createRange();g.setStart(c,0),g.setEnd(u,s);var v=g.cloneContents();cA(cA([],lA(Op(v.querySelectorAll("[data-slate-zero-width]")))),lA(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")||XO&&(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=nk.toSlateNode(e,c);return{path:nk.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Pf.hasPath(e,n.path)&&Pf.hasPath(e,r.path)},getNodeType:function(e){return Of.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Rf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Pf.nodes(e,{universal:!0});try{for(var i=sA(o),a=i.next();!a.done;a=i.next()){var u=lA(a.value,1)[0];Of.isElement(u)&&r.push(u)}}catch(e){t={error:e}}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=lA(Pf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=lA(Pf.nodes(e,{match:function(e){return rd.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=lA(Pf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&lA(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Pf.isEnd(e,n.anchor,t)||Pf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=sO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return fO.get(e)||null},getHoverbar:function(e){return pO.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=nk.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=sA(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Pf.nodes(e,{match:function(t){return!(!Of.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=sA(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];qO(nk.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(e){r={error:e}}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=Pf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=sA(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}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(Xf.isExpanded(t))return!1;var n=nk.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=Pf.node(e,t);if(null==n)return!1;var r=lA(n,1)[0].children;return 1===r.length&&""===r[0].text}},rk=1,ok={},ik={},ak=TD.filter,uk=sS("filter");pC({target:"Array",proto:!0,forced:!uk},{filter:function(e){return ak(this,e,arguments.length>1?arguments[1]:void 0)}});var sk="\t\n\v\f\r \u2028\u2029\ufeff",lk=Ew("".replace),ck="["+sk+"]",fk=RegExp("^"+ck+ck+"*"),dk=RegExp(ck+ck+"*$"),pk=function(e){return function(t){var n=DC(Cw(t));return 1&e&&(n=lk(n,fk,"")),2&e&&(n=lk(n,dk,"")),n}},hk={start:pk(1),end:pk(2),trim:pk(3)},gk=GE.PROPER,vk=hk.trim;pC({target:"String",proto:!0,forced:function(e){return $w((function(){return!!sk[e]()||"
"!=="
"[e]()||gk&&sk[e].name!==e}))}("trim")},{trim:function(){return vk(this)}});var yk=[],mk={};function bk(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var wk,Ek,Dk,Ck,xk=dw.Promise,Sk=Kw("species"),Ak=function(e){var t=jw(e),n=DE.f;Zw&&t&&!t[Sk]&&n(t,Sk,{configurable:!0,get:function(){return this}})},Ok=dw.TypeError,kk=Kw("species"),Bk=function(e,t){var n,r=iE(e).constructor;return void 0===r||null==(n=iE(r)[kk])?t:function(e){if(SD(e))return e;throw Ok(dE(e)+" is not a constructor")}(n)},Fk=Ew([].slice),Tk=/(?:ipad|iphone|ipod).*applewebkit/i.test(Nw),_k="process"==XE(dw.process),Pk=dw.setImmediate,jk=dw.clearImmediate,Nk=dw.process,Ik=dw.Dispatch,Lk=dw.Function,Rk=dw.MessageChannel,Mk=dw.String,zk=0,$k={};try{wk=dw.location}catch(LO){}var Hk=function(e){if(Ow($k,e)){var t=$k[e];delete $k[e],t()}},Vk=function(e){return function(){Hk(e)}},Uk=function(e){Hk(e.data)},Wk=function(e){dw.postMessage(Mk(e),wk.protocol+"//"+wk.host)};Pk&&jk||(Pk=function(e){var t=Fk(arguments,1);return $k[++zk]=function(){NS(_w(e)?e:Lk(e),void 0,t)},Ek(zk),zk},jk=function(e){delete $k[e]},_k?Ek=function(e){Nk.nextTick(Vk(e))}:Ik&&Ik.now?Ek=function(e){Ik.now(Vk(e))}:Rk&&!Tk?(Ck=(Dk=new Rk).port2,Dk.port1.onmessage=Uk,Ek=uD(Ck.postMessage,Ck)):dw.addEventListener&&_w(dw.postMessage)&&!dw.importScripts&&wk&&"file:"!==wk.protocol&&!$w(Wk)?(Ek=Wk,dw.addEventListener("message",Uk,!1)):Ek="onreadystatechange"in tE("script")?function(e){_C.appendChild(tE("script")).onreadystatechange=function(){_C.removeChild(this),Hk(e)}}:function(e){setTimeout(Vk(e),0)});var Gk,qk,Kk,Yk,Xk,Zk,Jk,Qk,eB={set:Pk,clear:jk},tB=/ipad|iphone|ipod/i.test(Nw)&&void 0!==dw.Pebble,nB=/web0s(?!.*chrome)/i.test(Nw),rB=VD.f,oB=eB.set,iB=dw.MutationObserver||dw.WebKitMutationObserver,aB=dw.document,uB=dw.process,sB=dw.Promise,lB=rB(dw,"queueMicrotask"),cB=lB&&lB.value;cB||(Gk=function(){var e,t;for(_k&&(e=uB.domain)&&e.exit();qk;){t=qk.fn,qk=qk.next;try{t()}catch(e){throw qk?Yk():Kk=void 0,e}}Kk=void 0,e&&e.enter()},Tk||_k||nB||!iB||!aB?!tB&&sB&&sB.resolve?((Jk=sB.resolve(void 0)).constructor=sB,Qk=uD(Jk.then,Jk),Yk=function(){Qk(Gk)}):_k?Yk=function(){uB.nextTick(Gk)}:(oB=uD(oB,dw),Yk=function(){oB(Gk)}):(Xk=!0,Zk=aB.createTextNode(""),new iB(Gk).observe(Zk,{characterData:!0}),Yk=function(){Zk.data=Xk=!Xk}));var fB,dB,pB,hB,gB=cB||function(e){var t={fn:e,next:void 0};Kk&&(Kk.next=t),qk||(qk=t,Yk()),Kk=t},vB=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=hE(t),this.reject=hE(n)},yB={f:function(e){return new vB(e)}},mB=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},bB="object"==typeof window,wB=eB.set,EB=Kw("species"),DB="Promise",CB=HE.getterFor(DB),xB=HE.set,SB=HE.getterFor(DB),AB=xk&&xk.prototype,OB=xk,kB=AB,BB=dw.TypeError,FB=dw.document,TB=dw.process,_B=yB.f,PB=_B,jB=!!(FB&&FB.createEvent&&dw.dispatchEvent),NB=_w(dw.PromiseRejectionEvent),IB=!1,LB=fC(DB,(function(){var e=BE(OB),t=e!==String(OB);if(!t&&66===zw)return!0;if(zw>=51&&/native code/.test(e))return!1;var n=new OB((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[EB]=r,!(IB=n.then((function(){}))instanceof r)||!t&&bB&&!NB})),RB=LB||!hx((function(e){OB.all(e).catch((function(){}))})),MB=function(e){var t;return!(!Jw(e)||!_w(t=e.then))&&t},zB=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;gB((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&&UB(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(BB("Promise-chain cycle")):(u=MB(a))?uE(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&HB(e)}))}},$B=function(e,t,n){var r,o;jB?((r=FB.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),dw.dispatchEvent(r)):r={promise:t,reason:n},!NB&&(o=dw["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=dw.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},HB=function(e){uE(wB,dw,(function(){var t,n=e.facade,r=e.value;if(VB(e)&&(t=mB((function(){_k?TB.emit("unhandledRejection",r,n):$B("unhandledrejection",n,r)})),e.rejection=_k||VB(e)?2:1,t.error))throw t.value}))},VB=function(e){return 1!==e.rejection&&!e.parent},UB=function(e){uE(wB,dw,(function(){var t=e.facade;_k?TB.emit("rejectionHandled",t):$B("rejectionhandled",t,e.value)}))},WB=function(e,t,n){return function(r){e(t,r,n)}},GB=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,zB(e,!0))},qB=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw BB("Promise can't be resolved itself");var r=MB(t);r?gB((function(){var n={done:!1};try{uE(r,t,WB(qB,n,e),WB(GB,n,e))}catch(t){GB(n,t,e)}})):(e.value=t,e.state=1,zB(e,!1))}catch(t){GB({done:!1},t,e)}}};if(LB&&(kB=(OB=function(e){PA(this,kB),hE(e),uE(fB,this);var t=CB(this);try{e(WB(qB,t),WB(GB,t))}catch(e){GB(t,e)}}).prototype,(fB=function(e){xB(this,{type:DB,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=vA(kB,{then:function(e,t){var n=SB(this),r=n.reactions,o=_B(Bk(this,OB));return o.ok=!_w(e)||e,o.fail=_w(t)&&t,o.domain=_k?TB.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&zB(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),dB=function(){var e=new fB,t=CB(e);this.promise=e,this.resolve=WB(qB,t),this.reject=WB(GB,t)},yB.f=_B=function(e){return e===OB||e===pB?new dB(e):PB(e)},_w(xk)&&AB!==Object.prototype)){hB=AB.then,IB||(qE(AB,"then",(function(e,t){var n=this;return new OB((function(e,t){uE(hB,n,e,t)})).then(e,t)}),{unsafe:!0}),qE(AB,"catch",kB.catch,{unsafe:!0}));try{delete AB.constructor}catch(LO){}zx&&zx(AB,kB)}pC({global:!0,wrap:!0,forced:LB},{Promise:OB}),Nx(OB,DB,!1),Ak(DB),pB=jw(DB),pC({target:DB,stat:!0,forced:LB},{reject:function(e){var t=_B(this);return uE(t.reject,void 0,e),t.promise}}),pC({target:DB,stat:!0,forced:LB},{resolve:function(e){return function(e,t){if(iE(e),Jw(t)&&t.constructor===e)return t;var n=yB.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),pC({target:DB,stat:!0,forced:RB},{all:function(e){var t=this,n=_B(t),r=n.resolve,o=n.reject,i=mB((function(){var n=hE(t.resolve),i=[],a=0,u=1;TA(e,(function(e){var s=a++,l=!1;u++,uE(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=_B(t),r=n.reject,o=mB((function(){var o=hE(t.resolve);TA(e,(function(e){uE(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var KB=hS.UNSUPPORTED_Y,YB=Math.min,XB=[].push,ZB=Ew(/./.exec),JB=Ew(XB),QB=Ew("".slice);function eF(e){Promise.resolve().then(e)}function tF(e,t){return Of.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Pf.isVoid(t,e),u="";a||(u=i.map((function(e){return tF(e,t)})).join(""));var s=function(e){return mk[e]||bk}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||yk.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(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=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=nk.getParentsNodes(t,e).some((function(e){return"pre"===nk.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=nk.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return yk.forEach((function(t){return r=t(e,r)})),r}(e,t)}function nF(e){return"w-e-element-"+e}RS("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=DC(Cw(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!UC(e))return uE(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=uE(FS,f,r))&&!((a=f.lastIndex)>c&&(JB(s,QB(r,c,i.index)),i.length>1&&i.index<r.length&&NS(XB,s,bA(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&ZB(f,"")||JB(s,""):JB(s,QB(r,c)),s.length>o?bA(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:uE(t,this,e,n)}:t,[function(t,n){var o=Cw(this),i=null==t?void 0:gE(t,e);return i?uE(i,t,o,n):uE(r,DC(o),t,n)},function(e,o){var i=iE(this),a=DC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=Bk(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(KB?"g":"y"),f=new s(KB?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===YS(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=KB?0:h;var v,y=YS(f,KB?QB(a,h):a);if(null===y||(v=YB(gD(f.lastIndex+(KB?h:0)),a.length))===p)h=zS(a,h,l);else{if(JB(g,QB(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(JB(g,y[m]),g.length===d)return g;h=p=v}}return JB(g,QB(a,p)),g}]}),!!$w((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]})),KB);var rF=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},oF=function(e,t,n){var r=nk.toDOMRange(e,t).getBoundingClientRect(),o=nk.toDOMRange(e,n).getBoundingClientRect();return rF(r,o)&&rF(o,r)},iF=["span","b","strong","i","em","s","strike","u","font","sub","sup"],aF=[],uF=[],sF={},lF=DE.f,cF=eC.f,fF=HE.enforce,dF=Kw("match"),pF=dw.RegExp,hF=pF.prototype,gF=dw.SyntaxError,vF=Ew(CC),yF=Ew(hF.exec),mF=Ew("".charAt),bF=Ew("".replace),wF=Ew("".indexOf),EF=Ew("".slice),DF=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,CF=/a/g,xF=/a/g,SF=new pF(CF)!==CF,AF=hS.MISSED_STICKY,OF=hS.UNSUPPORTED_Y,kF=Zw&&(!SF||AF||vS||mS||$w((function(){return xF[dF]=!1,pF(CF)!=CF||pF(xF)==xF||"/a/i"!=pF(CF,"i")})));if(fC("RegExp",kF)){for(var BF=function(e,t){var n,r,o,i,a,u,s=sE(hF,this),l=UC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===BF)return e;if((l||sE(hF,e))&&(e=e.source,c&&(t="flags"in d?d.flags:vF(d))),e=void 0===e?"":DC(e),t=void 0===t?"":DC(t),d=e,vS&&"dotAll"in CF&&(r=!!t&&wF(t,"s")>-1)&&(t=bF(t,/s/g,"")),n=t,AF&&"sticky"in CF&&(o=!!t&&wF(t,"y")>-1)&&OF&&(t=bF(t,/y/g,"")),mS&&(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=mF(e,r)))t+=mF(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:yF(DF,EF(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||Ow(a,c))throw new gF("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),e=i[0],f=i[1]),a=jA(pF(e,t),s?this:hF,BF),(r||o||f.length)&&(u=fF(a),r&&(u.dotAll=!0,u.raw=BF(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=mF(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+mF(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{xE(a,"source",""===d?"(?:)":d)}catch(e){}return a},FF=function(e){e in BF||lF(BF,e,{configurable:!0,get:function(){return pF[e]},set:function(t){pF[e]=t}})},TF=cF(pF),_F=0;TF.length>_F;)FF(TF[_F++]);hF.constructor=BF,BF.prototype=hF,qE(dw,"RegExp",BF)}Ak("RegExp");var PF=new RegExp(String.fromCharCode(160),"g");function jF(e){return e.replace(PF," ")}function NF(e,t){var n=e.length;if(n){var r=e[n-1];if(rd.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function IF(e,t,n){return{type:"paragraph",children:[{text:Hp(e).text().replace(/\s+/gm," ")}]}}function LF(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!==IO.ELEMENT_NODE)if(e.nodeType!==IO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=jF(r),NF(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(NF(n,"\n")||n.push({text:"\n"}));var o=MF(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 sF)if(e[0].matches(t))return sF[t];return IF}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Pf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),uF.forEach((function(n){r=n(e[0],r,t)})))})),o}function RF(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=jF(n)};return uF.forEach((function(n){r=n(e[0],r,t)})),r}function MF(e,t){aF.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Hp(r(e[0])))}));var n=KO(e);return"span"===n?e.attr("data-w-e-type")?LF(e,t):RF(e,t):"code"===n?"pre"===KO(e.parent())?LF(e,t):RF(e,t):iF.includes(n)?RF(e,t):LF(e,t)}function zF(e,t,n){var r=Hp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function $F(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=MF(Hp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var HF=DE.f,VF=OA.fastKey,UF=HE.set,WF=HE.getterFor,GF={getConstructor:function(e,t,n,r){var o=e((function(e,o){PA(e,i),UF(e,{type:t,index:RC(null),first:void 0,last:void 0,size:0}),Zw||(e.size=0),null!=o&&TA(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=WF(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=VF(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),Zw?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=VF(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return vA(i,{clear:function(){for(var e=a(this),t=e.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,Zw?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),Zw?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=uD(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)}}),vA(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)}}),Zw&&HF(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=WF(t),i=WF(r);qx(e,t,(function(e,t){UF(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),Ak(t)}};NA("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),GF);var qF=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function KF(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):Ed.insertNodes(e,t,{mode:"highest"})}var YF=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=lA(Xf.edges(n),2),o=r[0],i=r[1],a=Pf.void(t,{at:o.path}),u=Pf.void(t,{at:i.path});if(!Xf.isCollapsed(n)||a){var s=nk.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=lA(u,1)[0],d=s.cloneRange(),p=nk.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":""})),HO(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",GO(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=sA(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&Ed.splitNodes(t,{always:!0}),n(h),f=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}}}},t},XF=function(e){return null!=e},ZF={object:!0,function:!0,undefined:!0},JF=/^\s*class[\s{/}]/,QF=Function.prototype.toString,eT=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!XF(e)&&hasOwnProperty.call(ZF,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!JF.test(QF.call(e))},tT=function(e){return null!=e},nT=Object.keys,rT=function(){try{return Object.keys("primitive"),!0}catch(o){return!1}}()?Object.keys:function(e){return nT(tT(e)?Object(e):e)},oT=function(e){if(!tT(e))throw new TypeError("Cannot use null or undefined");return e},iT=Math.max,aT=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=iT(arguments.length,2);for(e=Object(oT(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)rT(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},uT=Array.prototype.forEach,sT=Object.create,lT=function(e,t){var n;for(n in e)t[n]=e[n]},cT=function(e){var t=sT(null);return uT.call(arguments,(function(e){tT(e)&&lT(Object(e),t)})),t},fT="razdwatrzy",dT=String.prototype.indexOf,pT="function"==typeof fT.contains&&!0===fT.contains("dwa")&&!1===fT.contains("foo")?String.prototype.contains:function(e){return dT.call(this,e,arguments[1])>-1},hT=sw((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],XF(e)?(n=pT.call(e,"c"),r=pT.call(e,"e"),o=pT.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?aT(cT(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],XF(t)?eT(t)?XF(n)?eT(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,XF(e)?(r=pT.call(e,"c"),o=pT.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?aT(cT(i),a):a}})),gT=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},vT=sw((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};n=function(e,t){var n;return gT(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return gT(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(gT(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)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,once:r,off:o,emit:i},u={on:hT(n),once:hT(r),off:hT(o),emit:hT(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function yT(e){var t=TO.get(e);return null==t&&(t=vT(),TO.set(e,t)),t}var mT=new WeakMap;function bT(e,t){var n=mT.get(e);null==n&&(n=new Set,mT.set(e,n)),n.add(t)}function wT(e){return mT.get(e)||new Set}function ET(e){mT.set(e,new Set)}function DT(e){var t=nk.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function CT(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=DT(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=nk.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 xT(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Of.isElement(t)&&e.isVoid(t),i=Of.isElement(t)&&e.isInline(t),a=AO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(NO.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=DT(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){eF((function(){var n=DT(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 AT=sS("slice"),OT=Kw("species"),kT=dw.Array,BT=Math.max;pC({target:"Array",proto:!0,forced:!AT},{slice:function(e,t){var n,r,o,i=$D(this),a=vD(i),u=GD(e,a),s=GD(void 0===t?a:t,a);if(yD(i)&&(n=i.constructor,(SD(n)&&(n===kT||yD(n.prototype))||Jw(n)&&null===(n=n[OT]))&&(n=void 0),n===kT||void 0===n))return Fk(i,u,s);for(r=new(void 0===n?kT:n)(BT(s-u,0)),o=0;u<s;u++,o++)u in i&&ox(r,o,i[u]);return r.length=o,r}});var FT=VD.f,TT=Ew("".startsWith),_T=Ew("".slice),PT=Math.min,jT=KC("startsWith"),NT=!jT&&!!function(){var e=FT(String.prototype,"startsWith");return e&&!e.writable}();pC({target:"String",proto:!0,forced:!NT&&!jT},{startsWith:function(e){var t=DC(Cw(this));GC(e);var n=gD(PT(arguments.length>1?arguments[1]:void 0,t.length)),r=DC(e);return TT?TT(t,r,n):_T(t,n,n+r.length)===r}});var IT=Object.assign,LT=Object.defineProperty,RT=Ew([].concat),MT=!IT||$w((function(){if(Zw&&1!==IT({b:1},IT(LT({},"a",{enumerable:!0,get:function(){LT(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!=IT({},e)[n]||hC(IT({},t)).join("")!=r}))?function(e,t){for(var n=Sw(e),r=arguments.length,o=1,i=tC.f,a=zD.f;r>o;)for(var u,s=cD(arguments[o++]),l=i?RT(hC(s),i(s)):hC(s),c=l.length,f=0;c>f;)u=l[f++],Zw&&!uE(a,s,u)||(n[u]=s[u]);return n}:IT;pC({target:"Object",stat:!0,forced:Object.assign!==MT},{assign:MT});var zT=["props","attrs","style","dataset","on","hook"];function $T(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(!zT.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=kv(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&&$T(e)}))}var HT=[],VT={};function UT(e,t,n){return Ig(n.isInline(e)?"span":"div",null,t)}function WT(e,t){return void 0===t&&(t=!1),Ig("span",{"data-slate-string":!0},t?e+"\n":e)}function GT(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Ig("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Ig("br",null):null)}function qT(e,t,n,r){return EO.set(e,t),DO.set(e,n),Of.isElement(e)?function(e,t){var n,r=nk.findKey(t,e),o=t.isInline(e),i=Pf.isVoid(t,e),a=nF(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=function(e){return VT[e]||UT}(s);n=i?null:c.map((function(n,r){return qT(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=lA(Rf.texts(e),1),g=lA(h[0],1)[0],v=Ig(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},qT(g,0,e,t));d=Ig(p,{style:{position:"relative"}},d,v),EO.set(g,0),DO.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return HT.forEach((function(r){n=r(e,t)})),n}(e,d)),eF((function(){var t=VO(a);null!=t&&(SO.set(r,t),AO.set(e,t),xO.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=nk.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=nk.findPath(n,e),a=o([e,i]),u=rd.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=nk.findPath(o,n),u=Hf.parent(a);if(Pf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?GT(Rf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Pf.string(o,u)?""===i?GT():t&&"\n"===i.slice(-1)?WT(i,!0):WT(i):GT(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return HT.forEach((function(t){n=t(e,n)})),n}(r,i),Ig("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=Ig("span",{"data-slate-node":"text",id:l,key:r.id},s);return eF((function(){var t=VO(l);null!=t&&(SO.set(r,t),AO.set(e,t),xO.set(t,e))})),c}(e,n,r)}function KT(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),vg("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=qT(e,n,t,t);return $T(r),r}));var c=mO.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=hg([wg,Bg,jg,Cg,Og,mg]))(n,s),mO.set(e,!1),bO.set(e,p)}else{var d=wO.get(e),p=bO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=VO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=RO(n);h&&kO.set(t,h)}CO.set(t,n),AO.set(t,n),xO.set(n,t),wO.set(e,s)}}function YT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function XT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ZT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return XT(n.overflowY,t)||XT(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function JT(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 QT(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(!YT(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;YT(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&ZT(f)&&!ZT(document.documentElement)||null!=f&&ZT(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,x="center"===i?D+m/2:"end"===i?w:D,S=[],A=0;A<c.length;A++){var O=c[A],k=O.getBoundingClientRect(),B=k.height,F=k.width,T=k.top,_=k.right,P=k.bottom,j=k.left;if("if-needed"===r&&b>=0&&D>=0&&E<=p&&w<=d&&b>=T&&E<=P&&D>=j&&w<=_)return S;var N=getComputedStyle(O),I=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),R=parseInt(N.borderRightWidth,10),M=parseInt(N.borderBottomWidth,10),z=0,$=0,H="offsetWidth"in O?O.offsetWidth-O.clientWidth-I-R:0,V="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?C:"end"===o?C-p:"nearest"===o?JT(g,g+p,p,L,M,g+C,g+C+y,y):C-p/2,$="start"===i?x:"center"===i?x-d/2:"end"===i?x-d:JT(h,h+d,d,I,R,h+x,h+x+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?JT(T,P,B,L,M+V,C,C+y,y):C-(T+B/2)+V/2,$="start"===i?x-j-I:"center"===i?x-(j+F/2)+H/2:"end"===i?x-_+R+H:JT(j,_,F,I,R+H,x,x+m,m);var U=O.scrollLeft,W=O.scrollTop;C+=W-(z=Math.max(0,Math.min(W+z,O.scrollHeight-B+V))),x+=U-($=Math.max(0,Math.min(U+$,O.scrollWidth-F+H)))}S.push({el:O,top:z,left:$})}return S}function e_(e){return e===Object(e)&&0!==Object.keys(e).length}function t_(e,t){return zO(t)&&nk.hasDOMNode(e,t,{editable:!0})}function n_(e,t){if(e.getConfig().readOnly)return!1;var n=r_(e,t)&&nk.toSlateNode(e,t);return Pf.isVoid(e,n)}function r_(e,t){return zO(t)&&nk.hasDOMNode(e,t)}function o_(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=nk.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=CO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=nk.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Xf.equals(l,r)){var c=!0;if(Xf.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||nk.hasRange(t,r)){e.isUpdatingSelection=!0;var g=r&&nk.toDOMRange(t,r);if(g){Xf.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=!e.ownerDocument.documentElement.contains(e);if(e_(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:QT(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:e_(e)?e:{block:"start",inline:"nearest"}}(t);(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)}))})(QT(e,r),r.behavior)}})(v,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete v.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){g&&XO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=nk.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var i_=new WeakMap,a_=new WeakMap,u_={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"},s_={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"},l_={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},c_=function(e){var t=u_[e],n=s_[e],r=l_[e],o=t&&Rv(t),i=n&&Rv(n),a=r&&Rv(r);return function(e){return!(!o||!o(e))||!!(YO&&i&&i(e))||!(YO||!a||!a(e))}},f_={isBold:c_("bold"),isCompose:c_("compose"),isMoveBackward:c_("moveBackward"),isMoveForward:c_("moveForward"),isDeleteBackward:c_("deleteBackward"),isDeleteForward:c_("deleteForward"),isDeleteLineBackward:c_("deleteLineBackward"),isDeleteLineForward:c_("deleteLineForward"),isDeleteWordBackward:c_("deleteWordBackward"),isDeleteWordForward:c_("deleteWordForward"),isExtendBackward:c_("extendBackward"),isExtendForward:c_("extendForward"),isExtendLineBackward:c_("extendLineBackward"),isExtendLineForward:c_("extendLineForward"),isItalic:c_("italic"),isMoveLineBackward:c_("moveLineBackward"),isMoveLineForward:c_("moveLineForward"),isMoveWordBackward:c_("moveWordBackward"),isMoveWordForward:c_("moveWordForward"),isRedo:c_("redo"),isSplitBlock:c_("splitBlock"),isTransposeCharacter:c_("transposeCharacter"),isUndo:c_("undo"),isTab:c_("tab"),isSelectAll:c_("selectAll")};function d_(e){e.preventDefault()}var p_={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(tk&&!o&&t_(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=lA(r.getTargetRanges(),1)[0];if(s){var l=nk.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&Xf.equals(i,l)||Ed.select(n,l)}}if(i&&Xf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Pf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Pf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Pf.deleteForward(n);break;case"deleteContentBackward":Pf.deleteBackward(n);break;case"deleteEntireSoftLine":Pf.deleteBackward(n,{unit:"line"}),Pf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Pf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Pf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Pf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Pf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Pf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Pf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Pf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!_O.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Pf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&t_(n,r.target)){var a=nk.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===nk.toDOMNode(n,n)||MO(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&zO(u)&&nk.hasDOMNode(n,u)){var s=nk.toSlateNode(n,u);if(Of.isElement(s)&&!n.isVoid(s))return}if(ZO){var l=a.getSelection();null==l||l.removeAllRanges()}BO.delete(n)}}}},focus:function(e,t,n){var r=nk.toDOMNode(n,n),o=nk.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,XO&&e.target!==r?r.focus():BO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&r_(n,e.target)&&zO(e.target)){var r=nk.toSlateNode(n,e.target),o=nk.findPath(n,r);if(Pf.hasPath(n,o)&&Rf.get(n,o)===r){var i=Pf.start(n,o),a=Pf.end(n,o),u=Pf.void(n,{at:i}),s=Pf.void(n,{at:a});if(u&&s&&Hf.equals(u[1],s[1])){var l=Pf.range(n,i);Ed.select(n,l)}}}},compositionstart:function(e,t,n){if(t_(n,e.target)){var r=n.selection;if(r&&Xf.isExpanded(r)&&(Pf.deleteFragment(n),Promise.resolve().then((function(){o_(t,n,!0)}))),r&&Xf.isCollapsed(r)){var o=nk.toDOMRange(n,r).startContainer,i=o.textContent||"";i_.set(n,i),a_.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(t_(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(ek||XO)&&nk.cleanExposedTexNodeInSelectionBlock(n);for(var i=Xf.isBackward(o)?o.focus:o.anchor,a=lA(Pf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=lA(Pf.node(n,i.path.slice(0,u+1)),1)[0];if(Of.isElement(s)&&((ZO||XO)&&"link"===s.type||"code"===s.type)){nk.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=nk.getLeftLengthOfMaxLength(n);c<l.length?(nk.toDOMRange(n,o).startContainer.textContent=i_.get(n)||"",c>0&&Pf.insertText(n,l.slice(0,c)),t.changeViewState()):Pf.insertText(n,l)}else Pf.insertText(n,l);ZO||setTimeout((function(){var e=n.selection;if(null!=e){var t=a_.get(n);null!=t&&nk.toDOMRange(n,e).startContainer!==t&&(t.textContent=i_.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){t_(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&t_(n,r.target)){if(function(e,t){var n=fO.get(e),r=n&&n.getMenus(),o=pO.get(e),i=o&&o.getMenus(),a=uA(uA({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Lv(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),f_.isTab(r))return d_(r),void n.handleTab();if(f_.isRedo(r))return d_(r),void("function"==typeof n.redo&&n.redo());if(f_.isUndo(r))return d_(r),void("function"==typeof n.undo&&n.undo());if(f_.isMoveLineBackward(r))return d_(r),void Ed.move(n,{unit:"line",reverse:!0});if(f_.isMoveLineForward(r))return d_(r),void Ed.move(n,{unit:"line"});if(f_.isExtendLineBackward(r))return d_(r),void Ed.move(n,{unit:"line",edge:"focus",reverse:!0});if(f_.isExtendLineForward(r))return d_(r),void Ed.move(n,{unit:"line",edge:"focus"});if(f_.isMoveBackward(r))return d_(r),void(o&&Xf.isCollapsed(o)?Ed.move(n,{reverse:!0}):Ed.collapse(n,{edge:"start"}));if(f_.isMoveForward(r))return d_(r),void(o&&Xf.isCollapsed(o)?Ed.move(n):Ed.collapse(n,{edge:"end"}));if(f_.isMoveWordBackward(r))return d_(r),o&&Xf.isExpanded(o)&&Ed.collapse(n,{edge:"focus"}),void Ed.move(n,{unit:"word",reverse:!0});if(f_.isMoveWordForward(r))return d_(r),o&&Xf.isExpanded(o)&&Ed.collapse(n,{edge:"focus"}),void Ed.move(n,{unit:"word"});if(f_.isSelectAll(r))return d_(r),void n.selectAll();if(tk){if((ek||ZO)&&o&&(f_.isDeleteBackward(r)||f_.isDeleteForward(r))&&Xf.isCollapsed(o)){var i=Rf.parent(n,o.anchor.path);if(Of.isElement(i)&&Pf.isVoid(n,i)&&Pf.isInline(n,i))return r.preventDefault(),void Ed.delete(n,{unit:"block"})}}else{if(f_.isBold(r)||f_.isItalic(r)||f_.isTransposeCharacter(r))return void d_(r);if(f_.isSplitBlock(r))return d_(r),void Pf.insertBreak(n);if(f_.isDeleteBackward(r))return d_(r),void(o&&Xf.isExpanded(o)?Pf.deleteFragment(n,{direction:"backward"}):Pf.deleteBackward(n));if(f_.isDeleteForward(r))return d_(r),void(o&&Xf.isExpanded(o)?Pf.deleteFragment(n,{direction:"forward"}):Pf.deleteForward(n));if(f_.isDeleteLineBackward(r))return d_(r),void(o&&Xf.isExpanded(o)?Pf.deleteFragment(n,{direction:"backward"}):Pf.deleteBackward(n,{unit:"line"}));if(f_.isDeleteLineForward(r))return d_(r),void(o&&Xf.isExpanded(o)?Pf.deleteFragment(n,{direction:"forward"}):Pf.deleteForward(n,{unit:"line"}));if(f_.isDeleteWordBackward(r))return d_(r),void(o&&Xf.isExpanded(o)?Pf.deleteFragment(n,{direction:"backward"}):Pf.deleteBackward(n,{unit:"word"}));if(f_.isDeleteWordForward(r))return d_(r),void(o&&Xf.isExpanded(o)?Pf.deleteFragment(n,{direction:"forward"}):Pf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!tk&&!n.getConfig().readOnly&&t_(n,e.target)){e.preventDefault();var r=e.key;Pf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(t_(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&&t_(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(Xf.isExpanded(o))Pf.deleteFragment(n);else{var a=Rf.parent(n,o.anchor.path);Pf.isVoid(n,a)&&Ed.delete(n)}}},paste:function(e,t,n){_O.set(n,!0);var r=e;if(!n.getConfig().readOnly&&t_(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void _O.set(n,!1);if(!tk||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(r_(n,e.target)){var r=nk.toSlateNode(n,e.target);Pf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(r_(n,r.target)&&!n.getConfig().readOnly){var o=nk.toSlateNode(n,r.target),i=nk.findPath(n,o);if(Pf.isVoid(n,o)||Pf.void(n,{at:i,voids:!0})){var a=Pf.range(n,i);Ed.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&&r_(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&r_(n,r.target)&&null!=o&&!(tk&&ZO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=nk.findEventRange(n,r);Ed.select(n,a),t.isDraggingInternally&&(i&&Ed.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},h_=1,g_=function(){function e(e){var t=this;this.id=h_++,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=rg((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=nk.findDocumentOrShadowRoot(t),a=i.activeElement,u=nk.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,BO.set(t,!0)):BO.delete(t),!s)return Ed.deselect(t);var l=s.anchorNode,c=s.focusNode,f=t_(t,l)||n_(t,l),d=t_(t,c)||n_(t,c);if(f&&d){var p=nk.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});Ed.select(t,p)}else Ed.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,eF((function(){var e=t.editorInstance,n=nk.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=lO.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&&(zh(p_,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",rg((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-nk.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;KT(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),eF((function(){o_(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function v_(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&&v_(t)}function y_(){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 m_(){return Hp('<div class="w-e-bar-divider"></div>')}function b_(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=YO?"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")}}}RS("match",(function(e,t,n){return[function(t){var n=Cw(this),r=null==t?void 0:gE(t,e);return r?uE(r,t,n):new RegExp(t)[e](DC(n))},function(e){var r=iE(this),o=DC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return YS(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=YS(r,o));){var c=DC(u[0]);s[l]=c,""===c&&(r.lastIndex=zS(o,gD(r.lastIndex),a)),l++}return 0===l?null:s}]}));var w_=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);v_(d),f.append(d)}else f.text(a);b_(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),eF((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),P_(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=P_(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=P_(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=P_(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}(),E_=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return aA(t,e),t.prototype.onButtonClick=function(){},t}(w_),D_=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=gO.get(e);null==t&&(t=new Set,gO.set(e,t)),t.add(this),vO.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=vO.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=vO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),C_=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 aA(t,e),t.prototype.genSelfElem=function(){return null},t}(D_),x_=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=y_();o.$button.append(i)}return o}return aA(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=P_(this);if(null==this.dropPanel){var n=new C_(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}(w_),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 aA(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=vO.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}(D_);function A_(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 O_(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 k_=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 aA(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=P_(this),t=this.menu.getModalPositionNode(e);return Of.isElement(t)?xT(e,t,"modal"):CT(e)},t.prototype.handleModal=function(){var e=P_(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=P_(this),r=this.menu;if(null!=r.getModalContentElem){var o=nk.getTextarea(n),i=nk.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}(w_),B_=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 aA(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}(D_),F_=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),b_(f,s,i,c,n),this.$elem.append(f),this.menu=t,eF((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),P_(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=P_(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new B_(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=P_(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=P_(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=y_();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=P_(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}(),T_=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);v_(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=y_();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}(),__=new WeakMap;function P_(e){var t=hO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function j_(e,t,n){void 0===n&&(n=!1);var r=__.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new x_(e,t,n):a?new k_(e,t,n):new E_(e,t,n)}if("select"===o&&(r=new F_(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return __.set(t,r),r}function N_(e,t){var n=e.selection;return null!=n&&!Xf.isCollapsed(n)&&!nk.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!rd.isText(t)}var I_=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=ey((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&&Of.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),eF((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),nk.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;eF((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=m_();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=ik[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=j_(e,r);this.hoverbarItems.push(i),hO.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Of.isElement(e)){var r=xT(t,e,"bar");return n.css(r),void ST(t,n)}if(rd.isText(e))return r=CT(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 nk.checkNodeType(t,o)},c=lA(Pf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[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=dO.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=N_),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=nk.findPath(null,e),r=nk.findPath(null,t);return Hf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function L_(e,t,n,r){if(EO.set(e,t),DO.set(e,n),Of.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return L_(t,n,e,r)})),Pf.isVoid(r,e)){var i=lA(Rf.texts(e),1),a=lA(i[0],1)[0];EO.set(a,0),DO.set(a,e)}}}function R_(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(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];wC.withoutSaving(t,(()=>{Pf.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];wC.withoutSaving(t,(()=>{Pf.withoutNormalizing(t,(()=>{var e=r.map($f.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=wC.isSaving(t),c=wC.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Hf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Hf.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.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=nk.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=nk.getLeftLengthOfMaxLength(t);n<=0||n<Rf.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(nk.getLeftLengthOfMaxLength(t)<Rf.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=nk.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===IO.TEXT_NODE?e+(t.textContent||""):n===IO.ELEMENT_NODE?qF.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=yT(t);if(r.on(e,n),"destroyed"===e&&bT(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),bT(t,o)}},t.once=function(e,n){yT(t).once(e,n)},t.off=function(e,n){yT(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=yT(t);o.emit.apply(o,cA([e],lA(n))),"destroyed"===e&&(wT(t).forEach((function(e){return o.off("destroyed",e)})),ET(t))},t}(function(e){var t=e;return t.select=function(e){Ed.select(t,e)},t.deselect=function(){var n=t.selection,r=nk.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&Ed.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||Ed.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=FO.get(t);null!=e&&(t.focus(),Ed.select(t,e))},t.getSelectionPosition=function(){return CT(t)},t.getNodePosition=function(e){return xT(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=lA(Xf.edges(e),2),r=n[0],o=n[1],i=lA(Pf.edges(t,[]),2),a=i[0],u=i[1];return!(!Gf.equals(r,a)||!Gf.equals(o,u))},t.selectAll=function(){var e=Pf.start(t,[]),n=Pf.end(t,[]);Ed.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=sA(Pf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=lA(p.value,2),g=h[0],v=h[1],y=nk.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}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=sA(Pf.levels(t,{at:Hf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=lA(b.value,2);g=w[0],v=w[1],y=nk.findKey(t,g),f.push([v,y])}}catch(e){i={error:e}}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=sA(Pf.levels(t,{at:Hf.common(Hf.parent(e.path),Hf.parent(e.newPath))})),D=E.next();!D.done;D=E.next()){var C=lA(D.value,2);g=C[0],v=C[1],y=nk.findKey(t,g),f.push([v,y])}}catch(e){u={error:e}}finally{try{D&&!D.done&&(s=E.return)&&s.call(E)}finally{if(u)throw u.error}}}o(e);try{for(var x=sA(f),S=x.next();!S.done;S=x.next()){var A=lA(S.value,2);v=A[0],y=A[1],g=lA(Pf.node(t,v),1)[0],OO.set(g,y)}}catch(e){l={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&Xf.isCollapsed(e.selection)){var r=Pf.above(e,{match:function(t){return Pf.isBlock(e,t)},at:e.selection});if(r){var o=lA(r,2)[1],a=Pf.range(e,o,e.selection.anchor),u=function(e,t){var n=Pf.range(e,Xf.end(t)),r=Array.from(Pf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(oF(e,Pf.range(e,r[o]),n))return Pf.range(e,r[o],n);if(r.length<2)return Pf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)oF(e,Pf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Pf.range(e,r[i],n)}(t,a);Xf.isCollapsed(u)||Ed.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&FO.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 tF(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Rf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Pf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Pf.nodes(t,{at:[],universal:!0});try{for(var u=sA(a),s=u.next();!s.done;s=u.next()){var l=lA(s.value,1)[0];if(Of.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=nF(nk.findKey(t,l).id);i.push(uA(uA({},l),{id:c}))}}}catch(e){r={error:e}}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(Of.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(rd.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){Ed.delete(t,{at:{anchor:Pf.start(t,[]),focus:Pf.end(t,[])}}),0===t.children.length&&Ed.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return nk.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(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===IO.TEXT_NODE||t===IO.ELEMENT_NODE&&!qF.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;nk.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!==IO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(iF.includes(r.toLowerCase()))s=!0;else for(var l in sF)if(a.matches(l)){s=!0;break}if(s){var c=MF(Hp(a),t);return Array.isArray(c)?(c.forEach((function(e){return KF(t,e)})),u++):(KF(t,c),u++),void(nk.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;nk.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&&nk.isEmptyPath(t,a)&&Ed.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=$F(t,e);if(Ed.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(Pf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in ik)e.push(t);return e},t.getConfig=function(){var e=yO.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=YF(Yc());return t.id="wangEditor-"+rk++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(nk.toDOMNode(t,t).focus({preventScroll:!0}),BO.set(t,!0),e){var n=Pf.end(t,[]);Ed.select(t,n)}else{var r=FO.get(t);r?Ed.select(t,r):Ed.select(t,Pf.start(t,[]))}},t.isFocused=function(){return!!BO.get(t)},t.blur=function(){nk.toDOMNode(t,t).blur(),Ed.deselect(t),BO.set(t,!1)},t.updateView=function(){nk.getTextarea(t).changeViewState();var e=nk.getToolbar(t);e&&e.changeToolbarState();var n=nk.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=nk.getTextarea(t);e.destroy(),sO.delete(t),lO.delete(e);var n=nk.getToolbar(t);n&&(n.destroy(),fO.delete(t),cO.delete(n));var r=nk.getHoverbar(t);r&&(r.destroy(),pO.delete(t),dO.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(!nk.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=nk.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||nk.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=gO.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 nk.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=nk.getToolbar(t);n&&(e=n.$box);var r=nk.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=nk.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return nk.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return zF(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=ty(ok),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return zh(t,(function(e,t){n[t]=uA(uA({},e),o[t]||{})})),delete e.MENU_CONF,uA({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)}(o);yO.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=$F(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),nk.normalizeContent(l),n){var p=new g_(n);sO.set(l,p),lO.set(p,l),p.changeViewState(),eF((function(){var e=p.$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 h=void 0;Object.keys(d).length>0&&(h=new I_,dO.set(h,l),pO.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return L_(e,t,l,l)}));var g=c.onCreated,v=c.onDestroyed;return g&&l.on("created",(function(){return g(l)})),v&&l.on("destroyed",(function(){return v(l)})),eF((function(){return l.emit("created")})),l}var M_=sS("splice"),z_=dw.TypeError,$_=Math.max,H_=Math.min;pC({target:"Array",proto:!0,forced:!M_},{splice:function(e,t){var n,r,o,i,a,u,s=Sw(this),l=vD(s),c=GD(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=H_($_(pD(t),0),l-c)),l+n-r>9007199254740991)throw z_("Maximum allowed length exceeded");for(o=kD(s,r),i=0;i<r;i++)(a=c+i)in s&&ox(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 V_=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=ey((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),eF((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=ty(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=m_();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new T_(e)}(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 T_,o=this.menus,i=o[e];if(null==i){var a=ik[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=j_(e,i,r);this.toolbarItems.push(u),hO.set(u,n),r?t.appendBarItem(u):t.$toolbar.append(u.$elem)},e.prototype.getEditorInstance=function(){var e=cO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),U_=GE.EXISTS,W_=DE.f,G_=Function.prototype,q_=Ew(G_.toString),K_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Y_=Ew(K_.exec);function X_(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,x=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,S=e.onProgress,A=void 0===S?function(e){}:S;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=lA(e.split("#"),2),r=n[0],o=n[1],i=[];zh(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 Nm({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(aw,{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(e){console.error("wangEditor upload file - onSuccess error",e)}k.removeFile(e.id)})),k.on("progress",(function(e){e<1||A(e)})),k.on("upload-error",(function(e,t,n){try{x(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k.on("restriction-failed",(function(e,t){try{x(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}k.removeFile(e.id)})),k}function Z_(e){return Z_="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},Z_(e)}function J_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q_(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){J_(e,t,n[t])}))}return e}function eP(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tP(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 nP(e,t,n){return t&&tP(e.prototype,t),n&&tP(e,n),e}function rP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oP(e,t){if(t&&("object"===Z_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rP(e)}function iP(e){return iP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iP(e)}function aP(e,t){return aP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aP(e,t)}function uP(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&&aP(e,t)}Zw&&!U_&&W_(G_,"name",{configurable:!0,get:function(){try{return Y_(K_,q_(this))[1]}catch(o){return""}}});var sP={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)}},lP=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eP(this,e),this.init(t,n)}return nP(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||sP,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,Q_({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),cP=function(){function e(){eP(this,e),this.observers={}}return nP(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 fP(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function dP(e){return null==e?"":""+e}function pP(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function hP(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function gP(e,t,n){var r=hP(e,t,Object);r.obj[r.k]=n}function vP(e,t){var n=hP(e,t),r=n.obj,o=n.k;if(r)return r[o]}function yP(e,t,n){var r=vP(e,n);return void 0!==r?r:vP(t,n)}function mP(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]):mP(e[r],t[r],n):e[r]=t[r]);return e}function bP(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var wP={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function EP(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return wP[e]})):e}var DP="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function CP(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?CP(s,l,n):void 0}o=o[r[i]]}return o}}var xP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return eP(this,t),n=oP(this,iP(t).call(this)),DP&&cP.call(rP(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 uP(t,cP),nP(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=vP(this.data,a);return u||!i||"string"!=typeof n?u:CP(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),gP(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=vP(this.data,a)||{};r?mP(u,n,o):u=Q_({},u,n),gP(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?Q_({},{},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}},AP={},OP=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return eP(this,t),n=oP(this,iP(t).call(this)),DP&&cP.call(rP(n)),pP(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,rP(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=lP.create("translator"),n}return uP(t,cP),nP(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"!==Z_(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,Q_({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var D="[object Array]"===y,C=D?[]:{},x=D?v:g;for(var S in h)if(Object.prototype.hasOwnProperty.call(h,S)){var A="".concat(x).concat(i).concat(S);C[S]=this.translate(A,Q_({},n,{joinArrays:!1,ns:s})),C[S]===A&&(C[S]=h[S])}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,Q_({},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(Q_({},n,{interpolation:Q_({},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=Q_({},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?Q_({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,!AP["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(AP["".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 kP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var BP=function(){function e(t){eP(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lP.create("languageUtils")}return nP(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]=kP(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]=kP(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=kP(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}(),FP=[{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}],TP={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 _P(){var e={};return FP.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:TP[t.fc]}}))})),e}var PP=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};eP(this,e),this.languageUtils=t,this.options=n,this.logger=lP.create("pluralResolver"),this.rules=_P()}return nP(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}(),jP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eP(this,e),this.logger=lP.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return nP(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:EP,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?bP(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?bP(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?bP(t.nestingPrefix):t.nestingPrefixEscaped||bP("$t("),this.nestingSuffix=t.nestingSuffix?bP(t.nestingSuffix):t.nestingSuffixEscaped||bP(")"),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=yP(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,Q_({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(yP(t,s,a),l,n,Q_({},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,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.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=dP(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=Q_({},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=Q_({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var 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=dP(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,Q_({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),NP=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return eP(this,t),o=oP(this,iP(t).call(this)),DP&&cP.call(rP(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=lP.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return uP(t,cP),nP(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){!function(e,t,n,r){var o=hP(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(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,Q_({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function IP(){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"===Z_(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Z_(e[2])||"object"===Z_(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 LP(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 RP(){}var MP=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(eP(this,t),e=oP(this,iP(t).call(this)),DP&&cP.call(rP(e)),e.options=LP(n),e.services={},e.logger=lP,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),oP(e,rP(e));setTimeout((function(){e.init(n,r)}),0)}return e}return uP(t,cP),nP(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=Q_({},IP(),this.options,LP(t)),this.format=this.options.interpolation.format,n||(n=RP),!this.options.isClone){this.modules.logger?lP.init(r(this.modules.logger),this.options):lP.init(null,this.options);var o=new BP(this.options);this.store=new xP(this.options.resources,this.options);var i=this.services;i.logger=lP,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new PP(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new jP(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new NP(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 OP(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=fP(),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]:RP,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=fP();return e||(e=this.languages),t||(t=this.options.ns),n||(n=RP),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=fP();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==Z_(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=Q_({},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=fP();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=fP();"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]:RP,o=Q_({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=Q_({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new OP(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}(),zP=new MP;function $P(e,t){zP.addResourceBundle(e,"translation",t,!0,!0)}zP.init({lng:"zh-CN",resources:{}});var HP=zP.t.bind(zP);$P("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),$P("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var VP=oa?{}.toString:function(){return"[object "+sa(this)+"]"};oa||Si(Object.prototype,"toString",VP,{unsafe:!0});var UP=Array.isArray||function(e){return"Array"==Gr(e)},WP=function(){},GP=[],qP=no("Reflect","construct"),KP=/^\s*(?:class|function)\b/,YP=Vr(KP.exec),XP=!KP.exec(WP),ZP=function(e){if(!Qr(e))return!1;try{return qP(WP,GP,e),!0}catch(e){return!1}},JP=!qP||Fr((function(){var e;return ZP(ZP.call)||!ZP(Object)||!ZP((function(){e=!0}))||e}))?function(e){if(!Qr(e))return!1;switch(sa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XP||!!YP(KP,ui(e))}:ZP,QP=Lo("species"),ej=Br.Array,tj=function(e,t){return new(function(e){var t;return UP(e)&&(t=e.constructor,(JP(t)&&(t===ej||UP(t.prototype))||eo(t)&&null===(t=t[QP]))&&(t=void 0)),void 0===t?ej:t}(e))(0===t?0:t)},nj=Vr([].push),rj=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=Ao(s),g=Yr(h),v=Eu(l,c),y=ji(g),m=0,b=f||tj,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:nj(w,d)}else switch(e){case 4:return!1;case 7:nj(w,d)}return i?-1:r||o?o:w}},oj={forEach:rj(0),map:rj(1),filter:rj(2),some:rj(3),every:rj(4),find:rj(5),findIndex:rj(6),filterReject:rj(7)}.forEach,ij=function(e,t){var n=[][e];return!!n&&Fr((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),aj=ij?[].forEach:function(e){return oj(this,e,arguments.length>1?arguments[1]:void 0)},uj=function(e){if(e&&e.forEach!==aj)try{ni(e,"forEach",aj)}catch(i){e.forEach=aj}};for(var sj in gs)gs[sj]&&uj(Br[sj]&&Br[sj].prototype);uj(ms),$P("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"}}),$P("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 lj={type:"paragraph",renderElem:function(e,t,n){return Ig("p",null,t)}},cj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function fj(e){var t={exports:{}};return e(t,t.exports),t.exports}var dj,pj,hj=function(e){return e&&e.Math==Math&&e},gj=hj("object"==typeof globalThis&&globalThis)||hj("object"==typeof window&&window)||hj("object"==typeof self&&self)||hj("object"==typeof cj&&cj)||function(){return this}()||Function("return this")(),vj=function(e){try{return!!e()}catch(e){return!0}},yj=!vj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mj=Function.prototype.call,bj=mj.bind?mj.bind(mj):function(){return mj.apply(mj,arguments)},wj={}.propertyIsEnumerable,Ej=Object.getOwnPropertyDescriptor,Dj=Ej&&!wj.call({1:2},1)?function(e){var t=Ej(this,e);return!!t&&t.enumerable}:wj,Cj={f:Dj},xj=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sj=Function.prototype,Aj=Sj.bind,Oj=Sj.call,kj=Aj&&Aj.bind(Oj),Bj=Aj?function(e){return e&&kj(Oj,e)}:function(e){return e&&function(){return Oj.apply(e,arguments)}},Fj=Bj({}.toString),Tj=Bj("".slice),_j=function(e){return Tj(Fj(e),8,-1)},Pj=gj.Object,jj=Bj("".split),Nj=vj((function(){return!Pj("z").propertyIsEnumerable(0)}))?function(e){return"String"==_j(e)?jj(e,""):Pj(e)}:Pj,Ij=gj.TypeError,Lj=function(e){if(null==e)throw Ij("Can't call method on "+e);return e},Rj=function(e){return Nj(Lj(e))},Mj=function(e){return"function"==typeof e},zj=function(e){return"object"==typeof e?null!==e:Mj(e)},$j=function(e){return Mj(e)?e:void 0},Hj=function(e,t){return arguments.length<2?$j(gj[e]):gj[e]&&gj[e][t]},Vj=Bj({}.isPrototypeOf),Uj=Hj("navigator","userAgent")||"",Wj=gj.process,Gj=gj.Deno,qj=Wj&&Wj.versions||Gj&&Gj.version,Kj=qj&&qj.v8;Kj&&(pj=(dj=Kj.split("."))[0]>0&&dj[0]<4?1:+(dj[0]+dj[1])),!pj&&Uj&&(!(dj=Uj.match(/Edge\/(\d+)/))||dj[1]>=74)&&(dj=Uj.match(/Chrome\/(\d+)/))&&(pj=+dj[1]);var Yj=pj,Xj=!!Object.getOwnPropertySymbols&&!vj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Yj&&Yj<41})),Zj=Xj&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Jj=gj.Object,Qj=Zj?function(e){return"symbol"==typeof e}:function(e){var t=Hj("Symbol");return Mj(t)&&Vj(t.prototype,Jj(e))},eN=gj.String,tN=function(e){try{return eN(e)}catch(e){return"Object"}},nN=gj.TypeError,rN=function(e){if(Mj(e))return e;throw nN(tN(e)+" is not a function")},oN=function(e,t){var n=e[t];return null==n?void 0:rN(n)},iN=gj.TypeError,aN=Object.defineProperty,uN=function(e,t){try{aN(gj,e,{value:t,configurable:!0,writable:!0})}catch(a){gj[e]=t}return t},sN=gj["__core-js_shared__"]||uN("__core-js_shared__",{}),lN=fj((function(e){(e.exports=function(e,t){return sN[e]||(sN[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),cN=gj.Object,fN=function(e){return cN(Lj(e))},dN=Bj({}.hasOwnProperty),pN=Object.hasOwn||function(e,t){return dN(fN(e),t)},hN=0,gN=Math.random(),vN=Bj(1..toString),yN=function(e){return"Symbol("+(void 0===e?"":e)+")_"+vN(++hN+gN,36)},mN=lN("wks"),bN=gj.Symbol,wN=bN&&bN.for,EN=Zj?bN:bN&&bN.withoutSetter||yN,DN=function(e){if(!pN(mN,e)||!Xj&&"string"!=typeof mN[e]){var t="Symbol."+e;Xj&&pN(bN,e)?mN[e]=bN[e]:mN[e]=Zj&&wN?wN(t):EN(t)}return mN[e]},CN=gj.TypeError,xN=DN("toPrimitive"),SN=function(e){var t=function(e,t){if(!zj(e)||Qj(e))return e;var n,r=oN(e,xN);if(r){if(void 0===t&&(t="default"),n=bj(r,e,t),!zj(n)||Qj(n))return n;throw CN("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Mj(n=e.toString)&&!zj(r=bj(n,e)))return r;if(Mj(n=e.valueOf)&&!zj(r=bj(n,e)))return r;if("string"!==t&&Mj(n=e.toString)&&!zj(r=bj(n,e)))return r;throw iN("Can't convert object to primitive value")}(e,t)}(e,"string");return Qj(t)?t:t+""},AN=gj.document,ON=zj(AN)&&zj(AN.createElement),kN=function(e){return ON?AN.createElement(e):{}},BN=!yj&&!vj((function(){return 7!=Object.defineProperty(kN("div"),"a",{get:function(){return 7}}).a})),FN=Object.getOwnPropertyDescriptor,TN={f:yj?FN:function(e,t){if(e=Rj(e),t=SN(t),BN)try{return FN(e,t)}catch(e){}if(pN(e,t))return xj(!bj(Cj.f,e,t),e[t])}},_N=gj.String,PN=gj.TypeError,jN=function(e){if(zj(e))return e;throw PN(_N(e)+" is not an object")},NN=gj.TypeError,IN=Object.defineProperty,LN={f:yj?IN:function(e,t,n){if(jN(e),t=SN(t),jN(n),BN)try{return IN(e,t,n)}catch(e){}if("get"in n||"set"in n)throw NN("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},RN=yj?function(e,t,n){return LN.f(e,t,xj(1,n))}:function(e,t,n){return e[t]=n,e},MN=Bj(Function.toString);Mj(sN.inspectSource)||(sN.inspectSource=function(e){return MN(e)});var zN,$N,HN,VN=sN.inspectSource,UN=gj.WeakMap,WN=Mj(UN)&&/native code/.test(VN(UN)),GN=lN("keys"),qN=function(e){return GN[e]||(GN[e]=yN(e))},KN={},YN=gj.TypeError,XN=gj.WeakMap;if(WN||sN.state){var ZN=sN.state||(sN.state=new XN),JN=Bj(ZN.get),QN=Bj(ZN.has),eI=Bj(ZN.set);zN=function(e,t){if(QN(ZN,e))throw new YN("Object already initialized");return t.facade=e,eI(ZN,e,t),t},$N=function(e){return JN(ZN,e)||{}},HN=function(e){return QN(ZN,e)}}else{var tI=qN("state");KN[tI]=!0,zN=function(e,t){if(pN(e,tI))throw new YN("Object already initialized");return t.facade=e,RN(e,tI,t),t},$N=function(e){return pN(e,tI)?e[tI]:{}},HN=function(e){return pN(e,tI)}}var nI={set:zN,get:$N,has:HN,enforce:function(e){return HN(e)?$N(e):zN(e,{})},getterFor:function(e){return function(t){var n;if(!zj(t)||(n=$N(t)).type!==e)throw YN("Incompatible receiver, "+e+" required");return n}}},rI=Function.prototype,oI=yj&&Object.getOwnPropertyDescriptor,iI=pN(rI,"name"),aI={EXISTS:iI,PROPER:iI&&"something"===function(){}.name,CONFIGURABLE:iI&&(!yj||yj&&oI(rI,"name").configurable)},uI=fj((function(e){var t=aI.CONFIGURABLE,n=nI.get,r=nI.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;Mj(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!pN(i,"name")||t&&i.name!==f)&&RN(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==gj?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:RN(e,n,i)):l?e[n]=i:uN(n,i)})(Function.prototype,"toString",(function(){return Mj(this)&&n(this).source||VN(this)}))})),sI=Math.ceil,lI=Math.floor,cI=function(e){var t=+e;return t!=t||0===t?0:(t>0?lI:sI)(t)},fI=Math.max,dI=Math.min,pI=function(e,t){var n=cI(e);return n<0?fI(n+t,0):dI(n,t)},hI=Math.min,gI=function(e){return e>0?hI(cI(e),9007199254740991):0},vI=function(e){return gI(e.length)},yI=function(e){return function(t,n,r){var o,i=Rj(t),a=vI(i),u=pI(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}},mI={includes:yI(!0),indexOf:yI(!1)},bI=mI.indexOf,wI=Bj([].push),EI=function(e,t){var n,r=Rj(e),o=0,i=[];for(n in r)!pN(KN,n)&&pN(r,n)&&wI(i,n);for(;t.length>o;)pN(r,n=t[o++])&&(~bI(i,n)||wI(i,n));return i},DI=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],CI=DI.concat("length","prototype"),xI={f:Object.getOwnPropertyNames||function(e){return EI(e,CI)}},SI={f:Object.getOwnPropertySymbols},AI=Bj([].concat),OI=Hj("Reflect","ownKeys")||function(e){var t=xI.f(jN(e)),n=SI.f;return n?AI(t,n(e)):t},kI=function(e,t){for(var n=OI(t),r=LN.f,o=TN.f,i=0;i<n.length;i++){var a=n[i];pN(e,a)||r(e,a,o(t,a))}},BI=/#|\.prototype\./,FI=function(e,t){var n=_I[TI(e)];return n==jI||n!=PI&&(Mj(t)?vj(t):!!t)},TI=FI.normalize=function(e){return String(e).replace(BI,".").toLowerCase()},_I=FI.data={},PI=FI.NATIVE="N",jI=FI.POLYFILL="P",NI=FI,II=TN.f,LI=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?gj:l?gj[u]||uN(u,{}):(gj[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=II(n,r))&&a.value:n[r],!NI(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;kI(i,o)}(e.sham||o&&o.sham)&&RN(i,"sham",!0),uI(n,r,i,e)}},RI=Bj(Bj.bind),MI=Array.isArray||function(e){return"Array"==_j(e)},zI={};zI[DN("toStringTag")]="z";var $I="[object z]"===String(zI),HI=DN("toStringTag"),VI=gj.Object,UI="Arguments"==_j(function(){return arguments}()),WI=$I?_j:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=VI(e),HI))?n:UI?_j(t):"Object"==(r=_j(t))&&Mj(t.callee)?"Arguments":r},GI=function(){},qI=[],KI=Hj("Reflect","construct"),YI=/^\s*(?:class|function)\b/,XI=Bj(YI.exec),ZI=!YI.exec(GI),JI=function(e){if(!Mj(e))return!1;try{return KI(GI,qI,e),!0}catch(e){return!1}},QI=!KI||vj((function(){var e;return JI(JI.call)||!JI(Object)||!JI((function(){e=!0}))||e}))?function(e){if(!Mj(e))return!1;switch(WI(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZI||!!XI(YI,VN(e))}:JI,eL=DN("species"),tL=gj.Array,nL=function(e,t){return new(function(e){var t;return MI(e)&&(t=e.constructor,(QI(t)&&(t===tL||MI(t.prototype))||zj(t)&&null===(t=t[eL]))&&(t=void 0)),void 0===t?tL:t}(e))(0===t?0:t)},rL=Bj([].push),oL=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=fN(s),g=Nj(h),v=function(e,t){return rN(e),void 0===t?e:RI?RI(e,t):function(){return e.apply(t,arguments)}}(l,c),y=vI(g),m=0,b=f||nL,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:rL(w,d)}else switch(e){case 4:return!1;case 7:rL(w,d)}return i?-1:r||o?o:w}},iL={forEach:oL(0),map:oL(1),filter:oL(2),some:oL(3),every:oL(4),find:oL(5),findIndex:oL(6),filterReject:oL(7)},aL=DN("species"),uL=function(e){return Yj>=51||!vj((function(){var t=[];return(t.constructor={})[aL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},sL=iL.filter;LI({target:"Array",proto:!0,forced:!uL("filter")},{filter:function(e){return sL(this,e,arguments.length>1?arguments[1]:void 0)}});var lL=$I?{}.toString:function(){return"[object "+WI(this)+"]"};$I||uI(Object.prototype,"toString",lL,{unsafe:!0});var cL,fL=gj.String,dL=function(e){if("Symbol"===WI(e))throw TypeError("Cannot convert a Symbol value to a string");return fL(e)},pL=function(){var e=jN(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},hL=gj.RegExp,gL=vj((function(){var e=hL("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),vL=gL||vj((function(){return!hL("a","y").sticky})),yL={BROKEN_CARET:gL||vj((function(){var e=hL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:vL,UNSUPPORTED_Y:gL},mL=Object.keys||function(e){return EI(e,DI)},bL=yj?Object.defineProperties:function(e,t){jN(e);for(var n,r=Rj(t),o=mL(t),i=o.length,a=0;i>a;)LN.f(e,n=o[a++],r[n]);return e},wL=Hj("document","documentElement"),EL=qN("IE_PROTO"),DL=function(){},CL=function(e){return"<script>"+e+"<\/script>"},xL=function(e){e.write(CL("")),e.close();var t=e.parentWindow.Object;return e=null,t},SL=function(){try{cL=new ActiveXObject("htmlfile")}catch(e){}var e,t;SL="undefined"!=typeof document?document.domain&&cL?xL(cL):((t=kN("iframe")).style.display="none",wL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(CL("document.F=Object")),e.close(),e.F):xL(cL);for(var n=DI.length;n--;)delete SL.prototype[DI[n]];return SL()};KN[EL]=!0;var AL,OL,kL=Object.create||function(e,t){var n;return null!==e?(DL.prototype=jN(e),n=new DL,DL.prototype=null,n[EL]=e):n=SL(),void 0===t?n:bL(n,t)},BL=gj.RegExp,FL=vj((function(){var e=BL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),TL=gj.RegExp,_L=vj((function(){var e=TL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),PL=nI.get,jL=lN("native-string-replace",String.prototype.replace),NL=RegExp.prototype.exec,IL=NL,LL=Bj("".charAt),RL=Bj("".indexOf),ML=Bj("".replace),zL=Bj("".slice),$L=(OL=/b*/g,bj(NL,AL=/a/,"a"),bj(NL,OL,"a"),0!==AL.lastIndex||0!==OL.lastIndex),HL=yL.BROKEN_CARET,VL=void 0!==/()??/.exec("")[1];($L||VL||HL||FL||_L)&&(IL=function(e){var t,n,r,o,i,a,u,s=this,l=PL(s),c=dL(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=bj(IL,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=HL&&s.sticky,h=bj(pL,s),g=s.source,v=0,y=c;if(p&&(h=ML(h,"y",""),-1===RL(h,"g")&&(h+="g"),y=zL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==LL(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),VL&&(n=new RegExp("^"+g+"$(?!\\s)",h)),$L&&(r=s.lastIndex),o=bj(NL,p?n:s,y),p?o?(o.input=zL(o.input,v),o[0]=zL(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$L&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),VL&&o&&o.length>1&&bj(jL,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=kL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var UL=IL;LI({target:"RegExp",proto:!0,forced:/./.exec!==UL},{exec:UL});var WL=Function.prototype,GL=WL.apply,qL=WL.bind,KL=WL.call,YL="object"==typeof Reflect&&Reflect.apply||(qL?KL.bind(GL):function(){return KL.apply(GL,arguments)}),XL=DN("species"),ZL=RegExp.prototype,JL=function(e,t,n,r){var o=DN(e),i=!vj((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!vj((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[XL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Bj(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Bj(e),s=t.exec;return s===UL||s===ZL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));uI(String.prototype,e,s[0]),uI(ZL,o,s[1])}r&&RN(ZL[o],"sham",!0)},QL=Bj("".charAt),eR=Bj("".charCodeAt),tR=Bj("".slice),nR=function(e){return function(t,n){var r,o,i=dL(Lj(t)),a=cI(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=eR(i,a))<55296||r>56319||a+1===u||(o=eR(i,a+1))<56320||o>57343?e?QL(i,a):r:e?tR(i,a,a+2):o-56320+(r-55296<<10)+65536}},rR=(nR(!1),nR(!0)),oR=function(e,t,n){return t+(n?rR(e,t).length:1)},iR=Math.floor,aR=Bj("".charAt),uR=Bj("".replace),sR=Bj("".slice),lR=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cR=/\$([$&'`]|\d{1,2})/g,fR=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=cR;return void 0!==o&&(o=fN(o),s=lR),uR(i,s,(function(i,s){var l;switch(aR(s,0)){case"$":return"$";case"&":return e;case"`":return sR(t,0,n);case"'":return sR(t,a);case"<":l=o[sR(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=iR(c/10);return 0===f?i:f<=u?void 0===r[f-1]?aR(s,1):r[f-1]+aR(s,1):i}l=r[c-1]}return void 0===l?"":l}))},dR=gj.TypeError,pR=function(e,t){var n=e.exec;if(Mj(n)){var r=bj(n,e,t);return null!==r&&jN(r),r}if("RegExp"===_j(e))return bj(UL,e,t);throw dR("RegExp#exec called on incompatible receiver")},hR=DN("replace"),gR=Math.max,vR=Math.min,yR=Bj([].concat),mR=Bj([].push),bR=Bj("".indexOf),wR=Bj("".slice),ER="$0"==="a".replace(/./,"$0"),DR=!!/./[hR]&&""===/./[hR]("a","$0");JL("replace",(function(e,t,n){var r=DR?"$":"$0";return[function(e,n){var r=Lj(this),o=null==e?void 0:oN(e,hR);return o?bj(o,e,r,n):bj(t,dL(r),e,n)},function(e,o){var i=jN(this),a=dL(e);if("string"==typeof o&&-1===bR(o,r)&&-1===bR(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=Mj(o);s||(o=dL(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=pR(i,a);if(null===d)break;if(mR(f,d),!l)break;""===dL(d[0])&&(i.lastIndex=oR(a,gI(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=dL((d=f[v])[0]),m=gR(vR(cI(d.index),a.length),0),b=[],w=1;w<d.length;w++)mR(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=yR([y],b,m,a);void 0!==E&&mR(D,E);var C=dL(YL(o,void 0,D))}else C=fR(y,a,m,b,E,o);m>=g&&(h+=wR(a,g,m)+C,g=m+y.length)}return h+wR(a,g)}]}),!!vj((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!ER||DR);var CR=DN("unscopables"),xR=Array.prototype;null==xR[CR]&&LN.f(xR,CR,{configurable:!0,value:kL(null)});var SR=function(e){xR[CR][e]=!0},AR=iL.find,OR=!0;"find"in[]&&Array(1).find((function(){OR=!1})),LI({target:"Array",proto:!0,forced:OR},{find:function(e){return AR(this,e,arguments.length>1?arguments[1]:void 0)}}),SR("find");var kR=DN("match"),BR=function(e){var t;return zj(e)&&(void 0!==(t=e[kR])?!!t:"RegExp"==_j(e))},FR=gj.TypeError,TR=DN("species"),_R=function(e,t,n){var r=SN(t);r in e?LN.f(e,r,xj(0,n)):e[r]=n},PR=gj.Array,jR=Math.max,NR=function(e,t,n){for(var r=vI(e),o=pI(t,r),i=pI(void 0===n?r:n,r),a=PR(jR(i-o,0)),u=0;o<i;o++,u++)_R(a,u,e[o]);return a.length=u,a},IR=yL.UNSUPPORTED_Y,LR=Math.min,RR=[].push,MR=Bj(/./.exec),zR=Bj(RR),$R=Bj("".slice);JL("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=dL(Lj(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!BR(e))return bj(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=bj(UL,f,r))&&!((a=f.lastIndex)>c&&(zR(s,$R(r,c,i.index)),i.length>1&&i.index<r.length&&YL(RR,s,NR(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&MR(f,"")||zR(s,""):zR(s,$R(r,c)),s.length>o?NR(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:bj(t,this,e,n)}:t,[function(t,n){var o=Lj(this),i=null==t?void 0:oN(t,e);return i?bj(i,t,o,n):bj(r,dL(o),t,n)},function(e,o){var i=jN(this),a=dL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=jN(e).constructor;return void 0===r||null==(n=jN(r)[TR])?t:function(e){if(QI(e))return e;throw FR(tN(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(IR?"g":"y"),f=new s(IR?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===pR(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=IR?0:h;var v,y=pR(f,IR?$R(a,h):a);if(null===y||(v=LR(gI(f.lastIndex+(IR?h:0)),a.length))===p)h=oR(a,h,l);else{if(zR(g,$R(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(zR(g,y[m]),g.length===d)return g;h=p=v}}return zR(g,$R(a,p)),g}]}),!!vj((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]})),IR);var HR="\t\n\v\f\r \u2028\u2029\ufeff",VR=Bj("".replace),UR="["+HR+"]",WR=RegExp("^"+UR+UR+"*"),GR=RegExp(UR+UR+"*$"),qR=function(e){return function(t){var n=dL(Lj(t));return 1&e&&(n=VR(n,WR,"")),2&e&&(n=VR(n,GR,"")),n}},KR={start:qR(1),end:qR(2),trim:qR(3)},YR=aI.PROPER,XR=KR.trim;function ZR(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 QR(e){return e.length?e[0].tagName.toLowerCase():""}function eM(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}LI({target:"String",proto:!0,forced:vj((function(){return!!HR.trim()||"
"!=="
".trim()||YR&&"trim"!==HR.trim.name}))},{trim:function(){return XR(this)}}),LI({global:!0},{globalThis:gj}),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 tM={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);return 0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},nM=function(e,t){return nM=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])},nM(e,t);
|
|
40
|
+
/*! *****************************************************************************
|
|
41
|
+
Copyright (c) Microsoft Corporation.
|
|
42
|
+
|
|
43
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
44
|
+
purpose with or without fee is hereby granted.
|
|
45
|
+
|
|
46
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
47
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
48
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
49
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
50
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
51
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
52
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
53
|
+
***************************************************************************** */};function rM(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}nM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oM=function(){return oM=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},oM.apply(this,arguments)};function iM(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}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 aM(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(e){i=[6,e],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 uM(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 sM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function lM(e){var t=sM(Pf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Of.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Rf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!rd.isText(o[0])&&(Ed.setNodes(e,{type:"paragraph"}),!0)}var cM={renderElems:[lj],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[tM],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){lM(r)||t(e)},r.deleteForward=function(e){lM(r)||n(e)},r}},fM=/"/g,dM=Bj("".replace),pM=function(e,t,n,r){var o=dL(Lj(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+dM(dL(r),fM,""")+'"'),i+">"+o+"</"+t+">"},hM=function(e){return vj((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function gM(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 vM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}LI({target:"String",proto:!0,forced:hM("bold")},{bold:function(){return pM(this,"b","","")}}),LI({target:"String",proto:!0,forced:hM("italics")},{italics:function(){return pM(this,"i","","")}}),LI({target:"String",proto:!0,forced:hM("sub")},{sub:function(){return pM(this,"sub","","")}}),LI({target:"String",proto:!0,forced:hM("sup")},{sup:function(){return pM(this,"sup","","")}});var yM={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},mM=kN("span").classList,bM=mM&&mM.constructor&&mM.constructor.prototype,wM=bM===Object.prototype?void 0:bM,EM=function(e,t){var n=[][e];return!!n&&vj((function(){n.call(null,t||function(){throw 1},1)}))},DM=iL.forEach,CM=EM("forEach")?[].forEach:function(e){return DM(this,e,arguments.length>1?arguments[1]:void 0)},xM=function(e){if(e&&e.forEach!==CM)try{RN(e,"forEach",CM)}catch(i){e.forEach=CM}};for(var SM in yM)yM[SM]&&xM(gj[SM]&&gj[SM].prototype);function AM(e,t){return null==e.selection||!!sM(Pf.nodes(e,{match:function(t){return"pre"===nk.getNodeType(t)||!!Pf.isVoid(e,t)},universal:!0}),1)[0]}function OM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Pf.removeMark(e,t)}))}xM(wM),LI({target:"Object",stat:!0,forced:vj((function(){mL(1)}))},{keys:function(e){return mL(fN(e))}});var kM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Pf.marks(e);return n?n[t]:!!sM(Pf.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 AM(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}(),BM='<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>',FM='<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>',TM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',_M='<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>',PM='<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>',jM='<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>',NM='<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>',IM='<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>',LM='<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>',RM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',MM='<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>',zM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',$M='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',HM='<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>',VM='<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>',UM='<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>',WM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',GM='<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>',qM='<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>',KM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=HP("textStyle.bold"),t.iconSvg=BM,t.hotkey="mod+b",t}return rM(t,e),t}(kM),YM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=HP("textStyle.code"),t.iconSvg=PM,t.hotkey="mod+e",t}return rM(t,e),t}(kM),XM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=HP("textStyle.italic"),t.iconSvg=TM,t.hotkey="mod+i",t}return rM(t,e),t}(kM),ZM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=HP("textStyle.through"),t.iconSvg=_M,t.hotkey="mod+shift+x",t}return rM(t,e),t}(kM),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=HP("textStyle.underline"),t.iconSvg=FM,t.hotkey="mod+u",t}return rM(t,e),t}(kM),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=HP("textStyle.sub"),t.iconSvg=qM,t.hotkey="",t}return rM(t,e),t}(kM),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=HP("textStyle.sup"),t.iconSvg=GM,t.hotkey="",t}return rM(t,e),t}(kM),tz=function(){function e(){this.title=HP("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 AM(e)},e.prototype.exec=function(e,t){var n,r,o=Pf.nodes(e,{match:function(e){return rd.isText(e)},universal:!0});try{for(var i=uM(o),a=i.next();!a.done;a=i.next())OM(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),nz={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=Ig("strong",null,c)),a&&(c=Ig("code",null,c)),o&&(c=Ig("em",null,c)),i&&(c=Ig("u",null,c)),u&&(c=Ig("s",null,c)),s&&(c=Ig("sub",null,c)),l&&(c=Ig("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new KM}},{key:"underline",factory:function(){return new JM}},{key:"italic",factory:function(){return new XM}},{key:"through",factory:function(){return new ZM}},{key:"code",factory:function(){return new YM}},{key:"sub",factory:function(){return new QM}},{key:"sup",factory:function(){return new ez}},{key:"clearStyle",factory:function(){return new tz}}],styleToHtml:function(e,t){if(!rd.isText(e))return t;if(ZR(t))return gM(e,t);var n=Hp(t);if("br"===QR(n))return gM(e,"<br>");var r=n.html();return r=gM(e,r),n.html(r),JR(n)},parseStyleHtml:function(e,t,n){var r=Hp(e);if(!rd.isText(t))return t;var o=t;return vM(r,"b,strong")&&(o.bold=!0),vM(r,"i,em")&&(o.italic=!0),vM(r,"u")&&(o.underline=!0),vM(r,"s,strike")&&(o.through=!0),vM(r,"sub")&&(o.sub=!0),vM(r,"sup")&&(o.sup=!0),vM(r,"code")&&(o.code=!0),o}};function rz(e){return function(t,n,r){return Ig("h"+e,null,n)}}var oz={type:"header1",renderElem:rz(1)},iz={type:"header2",renderElem:rz(2)},az={type:"header3",renderElem:rz(3)},uz={type:"header4",renderElem:rz(4)},sz={type:"header5",renderElem:rz(5)},lz=aI.PROPER,cz=RegExp.prototype,fz=cz.toString,dz=Bj(pL),pz=vj((function(){return"/a/b"!=fz.call({source:"a",flags:"b"})})),hz=lz&&"toString"!=fz.name;(pz||hz)&&uI(RegExp.prototype,"toString",(function(){var e=jN(this),t=dL(e.source),n=e.flags;return"/"+t+"/"+dL(void 0===n&&Vj(cz,e)&&!("flags"in cz)?dz(e):n)}),{unsafe:!0});var gz,vz=gj.TypeError,yz=function(e){if(BR(e))throw vz("The method doesn't accept regular expressions");return e},mz=DN("match"),bz=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[mz]=!1,"/./"[e](t)}catch(e){}}return!1},wz=TN.f,Ez=Bj("".startsWith),Dz=Bj("".slice),Cz=Math.min,xz=bz("startsWith");function Sz(e){var t=sM(Pf.nodes(e,{match:function(e){return nk.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=sM(n,1)[0];return nk.getNodeType(r)}function Az(e){return null==e.selection||!sM(Pf.nodes(e,{match:function(e){var t=nk.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Oz(e,t){t&&Ed.setNodes(e,{type:t})}LI({target:"String",proto:!0,forced:!(!xz&&(gz=wz(String.prototype,"startsWith"),gz&&!gz.writable)||xz)},{startsWith:function(e){var t=dL(Lj(this));yz(e);var n=gI(Cz(arguments.length>1?arguments[1]:void 0,t.length)),r=dL(e);return Ez?Ez(t,r,n):Dz(t,n,n+r.length)===r}});var kz=function(){function e(){this.title=HP("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:HP("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return Sz(e)},e.prototype.isDisabled=function(e){return Az(e)},e.prototype.exec=function(e,t){Oz(e,t.toString())},e}(),Bz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return Sz(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return Az(e)},e.prototype.exec=function(e,t){var n=this.type;Oz(e,t===n?"paragraph":n)},e}(),Fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return rM(t,e),t}(Bz),Tz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return rM(t,e),t}(Bz),_z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return rM(t,e),t}(Bz),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return rM(t,e),t}(Bz),jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return rM(t,e),t}(Bz),Nz={key:"headerSelect",factory:function(){return new kz}},Iz={key:"header1",factory:function(){return new Fz}},Lz={key:"header2",factory:function(){return new Tz}},Rz={key:"header3",factory:function(){return new _z}},Mz={key:"header4",factory:function(){return new Pz}},zz={key:"header5",factory:function(){return new jz}};function $z(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Hz(e){return function(t,n,r){var o=Hp(t);return 0===(n=n.filter((function(e){return!!rd.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Vz={renderElems:[oz,iz,az,uz,sz],elemsToHtml:[{type:"header1",elemToHtml:$z(1)},{type:"header2",elemToHtml:$z(2)},{type:"header3",elemToHtml:$z(3)},{type:"header4",elemToHtml:$z(4)},{type:"header5",elemToHtml:$z(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Hz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Hz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Hz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Hz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Hz(5)}],menus:[Nz,Iz,Lz,Rz,Mz,zz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=sM(Pf.nodes(n,{match:function(e){return nk.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&nk.isSelectionAtLineEnd(e,r[1])?Ed.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Uz=Object.assign,Wz=Object.defineProperty,Gz=Bj([].concat),qz=!Uz||vj((function(){if(yj&&1!==Uz({b:1},Uz(Wz({},"a",{enumerable:!0,get:function(){Wz(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!=Uz({},e)[n]||mL(Uz({},t)).join("")!=r}))?function(e,t){for(var n=fN(e),r=arguments.length,o=1,i=SI.f,a=Cj.f;r>o;)for(var u,s=Nj(arguments[o++]),l=i?Gz(mL(s),i(s)):mL(s),c=l.length,f=0;c>f;)u=l[f++],yj&&!bj(a,s,u)||(n[u]=s[u]);return n}:Uz;function Kz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}LI({target:"Object",stat:!0,forced:Object.assign!==qz},{assign:qz});var Yz={selector:"font",preParseHtml:function(e){var t=Hp(e);if("font"!==QR(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Xz=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=Pf.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||!!sM(Pf.nodes(e,{match:function(t){return"pre"===nk.getNodeType(t)||!!Pf.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?Pf.removeMark(e,t):Pf.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=HP("color.default")),"bgColor"===t&&(a=HP("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}(),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("color.color"),t.iconSvg=IM,t.mark="color",t}return rM(t,e),t}(Xz),Jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("color.bgColor"),t.iconSvg=LM,t.mark="bgColor",t}return rM(t,e),t}(Xz),Qz=["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)"],e$={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Kz(i,{color:r}),o&&Kz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!rd.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((ZR(t)||"span"!==QR(n=Hp(t)))&&(n=Hp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),JR(n)):t},preParseHtml:[Yz],parseStyleHtml:function(e,t,n){var r=Hp(e);if(!rd.isText(t))return t;var o=t,i=eM(r,"color");i&&(o.color=i);var a=eM(r,"background-color");return a||(a=eM(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Zz},config:{colors:Qz}},{key:"bgColor",factory:function(){return new Jz},config:{colors:Qz}}]},t$=/^(?:\w+:)?\/\/(\S+)$/,n$=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,r$=/^[^\s\.]+\.\S{2,}$/,o$=mI.includes;function i$(e){return void 0===e&&(e="r"),e+"-"+$h()}function a$(e){return e.replace(/</g,"<").replace(/>/g,">")}function u$(e,t,n,r){return iM(this,void 0,void 0,(function(){var o,i;return aM(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 s$(e,t,n){return iM(this,void 0,void 0,(function(){var r;return aM(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 l$(e){return null==e.selection||!!nk.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function c$(e,t){return{type:"link",url:a$(e),children:t?[{text:t}]:[]}}function f$(e,t,n){return iM(this,void 0,void 0,(function(){var r,o,i;return aM(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),l$(e)?[2]:[4,u$("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,s$("insertLink",e,n)]:[2];case 2:return r=a.sent(),null==(o=e.selection)||(Xf.isCollapsed(o)?(e.insertText(" "),i=c$(r,t),Ed.insertNodes(e,i),e.insertFragment([{text:" "}])):Pf.string(e,o)!==t?(e.deleteFragment(),i=c$(r,t),Ed.insertNodes(e,i)):(i=c$(r),Ed.wrapNodes(e,i,{split:!0}),Ed.collapse(e,{edge:"end"}))),[2]}}))}))}LI({target:"Array",proto:!0},{includes:function(e){return o$(this,e,arguments.length>1?arguments[1]:void 0)}}),SR("includes");var d$={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Ig("a",{href:o,target:void 0===i?"_blank":i},t)}},p$={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);return 0===(t=t.filter((function(e){return!!rd.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 h$(){return i$("w-e-insert-link")}var g$=function(){function e(){this.title=HP("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=h$(),this.urlInputId=h$(),this.buttonId=h$()}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 l$(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=sM(A_(HP("link.text"),r),2),u=a[0],s=Hp(a[1]),l=sM(A_(HP("link.url"),o),2),c=l[0],f=Hp(l[1]),d=sM(O_(i,HP("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();f$(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||Xf.isCollapsed(t))s.val("");else{var g=Pf.string(e,t);s.val(g)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function v$(){return i$("w-e-update-link")}var y$=function(){function e(){this.title=HP("link.edit"),this.iconSvg=jM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=v$(),this.buttonId=v$()}return e.prototype.getSelectedLinkElem=function(e){var t=nk.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 nk.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=sM(A_(HP("link.url"),t),2),o=r[0],i=Hp(r[1]),a=sM(O_(n,HP("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=nk.getSelectedNodeByType(e,"link"),o=r?Rf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){iM(this,void 0,void 0,(function(){var r,o;return aM(this,(function(i){switch(i.label){case 0:return n?[4,u$("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,s$("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:a$(r)},Ed.setNodes(e,o,{match:function(e){return nk.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}(),m$=function(){function e(){this.title=HP("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==nk.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||Ed.unwrapNodes(e,{match:function(e){return nk.checkNodeType(e,"link")}})},e}(),b$=function(){function e(){this.title=HP("link.view"),this.iconSvg=NM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=nk.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}(),w$={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},E$={renderElems:[d$],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:[p$],menus:[{key:"insertLink",factory:function(){return new g$},config:w$},{key:"editLink",factory:function(){return new y$},config:w$},{key:"unLink",factory:function(){return new m$}},{key:"viewLink",factory:function(){return new b$}}],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(t$);if(!t)return!1;var n=t[1];return!(!n||!n$.test(n)&&!r$.test(n))}(t)){if(!l$(o)){var r=o.selection;if(null!=r){var i=Pf.string(o,r);f$(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=sM(e,2),n=t[0],i=t[1];return"link"!==nk.getNodeType(n)?r([n,i]):""===Rf.string(n)?Ed.removeNodes(o,{at:i}):r([n,i])},o}},D$=Bj(1..valueOf),C$=gj.RangeError,x$=gj.RangeError,S$=gj.String,A$=Math.floor,O$=Bj((function(e){var t=dL(Lj(this)),n="",r=cI(e);if(r<0||r==1/0)throw C$("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),k$=Bj("".slice),B$=Bj(1..toFixed),F$=function(e,t,n){return 0===t?n:t%2==1?F$(e,t-1,n*e):F$(e*e,t/2,n)},T$=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=A$(o/1e7)},_$=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=A$(r/t),r=r%t*1e7},P$=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=S$(e[t]);n=""===n?r:n+O$("0",7-r.length)+r}return n};function j$(e,t){return"w-e-image-container-"+nk.findKey(e,t).id}LI({target:"Number",proto:!0,forced:vj((function(){return"0.000"!==B$(8e-5,3)||"1"!==B$(.9,0)||"1.25"!==B$(1.255,2)||"1000000000000000128"!==B$(0xde0b6b3a7640080,0)}))||!vj((function(){B$({})}))},{toFixed:function(e){var t,n,r,o,i=D$(this),a=cI(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw x$("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return S$(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*F$(2,69,1))-69)<0?i*F$(2,-t,1):i/F$(2,t,1),n*=4503599627370496,(t=52-t)>0){for(T$(u,0,n),r=a;r>=7;)T$(u,1e7,0),r-=7;for(T$(u,F$(10,r,1),0),r=t-1;r>=23;)_$(u,1<<23),r-=23;_$(u,1<<r),T$(u,1,1),_$(u,2),l=P$(u)}else T$(u,0,n),T$(u,1<<-t,0),l=P$(u)+O$("0",a);return a>0?s+((o=l.length)<=a?"0."+O$("0",a-o)+l:k$(l,0,o-a)+"."+k$(l,o-a)):s+l}});var N$={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=nk.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=Ig("img",{style:v,src:o,alt:a,"data-href":s}),m=n.isDisabled();return g&&!m?function(e,t,n,r){var o=Hp("body"),i=j$(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(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",h),o.on("mouseup",g);var r=nk.getHoverbar(e);r&&r.hideAndClean()}var h=rg((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 g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:oM(oM({},t.style),{width:r+"px",height:i+"px"})};Ed.setNodes(e,a,{at:nk.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),u&&(v.height=u),Ig("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Hp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Ig("div",{className:"w-e-image-dragger left-top"}),Ig("div",{className:"w-e-image-dragger right-top"}),Ig("div",{className:"w-e-image-dragger left-bottom"}),Ig("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),Ig("div",{id:j$(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},I$={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:eM(r,"width"),height:eM(r,"height")},children:[{text:""}]}}};function L$(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),iM(this,void 0,void 0,(function(){var i,a;return aM(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 R$(e,t,n){return iM(this,void 0,void 0,(function(){var r;return aM(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 M$(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),iM(this,void 0,void 0,(function(){var o,i,a;return aM(this,(function(u){switch(u.label){case 0:return[4,L$("insertImage",e,t,n,r)];case 1:return u.sent()?[4,R$("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:a$(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),nk.getSelectedNodeByType(e,"image")&&e.move(1),z$(e)||(Ed.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function z$(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||!!sM(Pf.nodes(e,{match:function(t){var n=nk.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Pf.isVoid(e,t)},universal:!0}),1)[0]}function $$(){return i$("w-e-insert-image")}var H$=function(){function e(){this.title=HP("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=$$(),this.altInputId=$$(),this.hrefInputId=$$(),this.buttonId=$$()}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 z$(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=sM(A_(HP("image.src"),r),2),s=u[0],l=Hp(u[1]),c=sM(A_(HP("image.desc"),o),2),f=c[0],d=Hp(c[1]),p=sM(A_(HP("image.link"),i),2),h=p[0],g=Hp(p[1]),v=sM(O_(a,HP("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)||M$(e,t,n,r))},e}(),V$=function(){function e(){this.title=HP("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==nk.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||Ed.removeNodes(e,{match:function(e){return nk.checkNodeType(e,"image")}})},e}();function U$(){return i$("w-e-edit-image")}var W$=function(){function e(){this.title=HP("image.edit"),this.iconSvg=jM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=U$(),this.altInputId=U$(),this.hrefInputId=U$(),this.buttonId=U$()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return nk.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||!Xf.isCollapsed(t)||null==nk.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=sM(A_(HP("image.src"),r),2),l=s[0],c=Hp(s[1]),f=sM(A_(HP("image.desc"),o),2),d=f[0],p=Hp(f[1]),h=sM(A_(HP("image.link"),i),2),g=h[0],v=Hp(h[1]),y=sM(O_(a,HP("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,x=w.href,S=void 0===x?"":x;return c.val(E),p.val(C),v.val(S),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),iM(this,void 0,void 0,(function(){var i,a,u,s,l,c;return aM(this,(function(f){switch(f.label){case 0:return[4,L$("editImage",e,t,n,r)];case 1:return f.sent()?[4,R$("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=nk.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:oM(oM({},void 0===u?{}:u),o)},Ed.setNodes(e,s,{match:function(e){return nk.checkNodeType(e,"image")}}),l=nk.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),G$=function(){function e(){this.title=HP("image.viewLink"),this.iconSvg=NM,this.tag="button"}return e.prototype.getValue=function(e){var t=nk.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}(),q$=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 nk.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=nk.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:oM(oM({},void 0===o?{}:o),{width:this.value,height:""})};Ed.setNodes(e,i,{match:function(e){return nk.checkNodeType(e,"image")}})}}},e}(),K$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return rM(t,e),t}(q$),Y$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return rM(t,e),t}(q$),X$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return rM(t,e),t}(q$),Z$={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},J$={renderElems:[N$],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:[I$],menus:[{key:"insertImage",factory:function(){return new H$},config:Z$},{key:"deleteImage",factory:function(){return new V$}},{key:"editImage",factory:function(){return new W$},config:Z$},{key:"viewImageLink",factory:function(){return new G$}},{key:"imageWidth30",factory:function(){return new K$}},{key:"imageWidth50",factory:function(){return new Y$}},{key:"imageWidth100",factory:function(){return new X$}}],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}},Q$={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Ig("div",{style:{margin:"5px 0"}},Ig("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ig("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=nk.findPath(n,e),o={checked:t.target.checked};Ed.setNodes(n,o,{at:r})}}})),Ig("span",null,t));return o}},eH=function(){function e(){this.title=HP("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!!nk.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!nk.getSelectedElems(e).some((function(t){if(Pf.isVoid(e,t)&&Pf.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);Ed.setNodes(e,{type:n?"paragraph":"todo"})},e}(),tH={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Hp(e);0===(t=t.filter((function(e){return!!rd.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}}},nH={renderElems:[Q$],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:[tH],menus:[{key:"todo",factory:function(){return new eH}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&Xf.isCollapsed(r)){var o=nk.getSelectedNodeByType(e,"todo");if(o&&0===Rf.string(o).length)return void Ed.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},rH={type:"blockquote",renderElem:function(e,t,n){return Ig("blockquote",null,t)}},oH={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Hp(e);return 0===(t=t.filter((function(e){return!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},iH=function(){function e(){this.title=HP("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!!nk.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!sM(Pf.nodes(e,{match:function(e){var t=nk.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";Ed.setNodes(e,{type:n},{mode:"highest"})}},e}(),aH={key:"blockquote",factory:function(){return new iH}},uH=Bj([].slice),sH=uL("slice"),lH=DN("species"),cH=gj.Array,fH=Math.max;LI({target:"Array",proto:!0,forced:!sH},{slice:function(e,t){var n,r,o,i=Rj(this),a=vI(i),u=pI(e,a),s=pI(void 0===t?a:t,a);if(MI(i)&&(n=i.constructor,(QI(n)&&(n===cH||MI(n.prototype))||zj(n)&&null===(n=n[lH]))&&(n=void 0),n===cH||void 0===n))return uH(i,u,s);for(r=new(void 0===n?cH:n)(fH(s-u,0)),o=0;u<s;u++,o++)u in i&&_R(r,o,i[u]);return r.length=o,r}});var dH={renderElems:[rH],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[oH],menus:[aH],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=sM(Pf.nodes(e,{match:function(e){return nk.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=nk.findPath(e,a),s=Pf.end(e,u);if(Gf.equals(s,o.focus)){var l=Rf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void Ed.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},pH=function(){function e(){this.title=HP("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||!!sM(Pf.nodes(e,{match:function(t){return"pre"===nk.getNodeType(t)||!!Pf.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}(),hH={menus:[{key:"emotion",factory:function(){return new pH},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},gH={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},vH={selector:"font",preParseHtml:function(e){var t=Hp(e);if("font"!==QR(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",gH[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},yH=Bj("".indexOf);LI({target:"String",proto:!0,forced:!bz("includes")},{includes:function(e){return!!~yH(dL(Lj(this)),dL(yz(e)),arguments.length>1?arguments[1]:void 0)}});var mH,bH,wH=function(e){return e&&e.Math==Math&&e},EH=wH("object"==typeof globalThis&&globalThis)||wH("object"==typeof window&&window)||wH("object"==typeof self&&self)||wH("object"==typeof cj&&cj)||function(){return this}()||Function("return this")(),DH=Function.prototype,CH=DH.apply,xH=DH.bind,SH=DH.call,AH="object"==typeof Reflect&&Reflect.apply||(xH?SH.bind(CH):function(){return SH.apply(CH,arguments)}),OH=Function.prototype,kH=OH.bind,BH=OH.call,FH=kH&&kH.bind(BH),TH=kH?function(e){return e&&FH(BH,e)}:function(e){return e&&function(){return BH.apply(e,arguments)}},_H=function(e){return"function"==typeof e},PH=function(e){try{return!!e()}catch(e){return!0}},jH=!PH((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),NH=Function.prototype.call,IH=NH.bind?NH.bind(NH):function(){return NH.apply(NH,arguments)},LH={}.propertyIsEnumerable,RH=Object.getOwnPropertyDescriptor,MH=RH&&!LH.call({1:2},1)?function(e){var t=RH(this,e);return!!t&&t.enumerable}:LH,zH={f:MH},$H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},HH=TH({}.toString),VH=TH("".slice),UH=function(e){return VH(HH(e),8,-1)},WH=EH.Object,GH=TH("".split),qH=PH((function(){return!WH("z").propertyIsEnumerable(0)}))?function(e){return"String"==UH(e)?GH(e,""):WH(e)}:WH,KH=EH.TypeError,YH=function(e){if(null==e)throw KH("Can't call method on "+e);return e},XH=function(e){return qH(YH(e))},ZH=function(e){return"object"==typeof e?null!==e:_H(e)},JH={},QH=function(e){return _H(e)?e:void 0},eV=function(e,t){return arguments.length<2?QH(JH[e])||QH(EH[e]):JH[e]&&JH[e][t]||EH[e]&&EH[e][t]},tV=TH({}.isPrototypeOf),nV=eV("navigator","userAgent")||"",rV=EH.process,oV=EH.Deno,iV=rV&&rV.versions||oV&&oV.version,aV=iV&&iV.v8;aV&&(bH=(mH=aV.split("."))[0]>0&&mH[0]<4?1:+(mH[0]+mH[1])),!bH&&nV&&(!(mH=nV.match(/Edge\/(\d+)/))||mH[1]>=74)&&(mH=nV.match(/Chrome\/(\d+)/))&&(bH=+mH[1]);var uV=bH,sV=!!Object.getOwnPropertySymbols&&!PH((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uV&&uV<41})),lV=sV&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,cV=EH.Object,fV=lV?function(e){return"symbol"==typeof e}:function(e){var t=eV("Symbol");return _H(t)&&tV(t.prototype,cV(e))},dV=EH.String,pV=EH.TypeError,hV=function(e){if(_H(e))return e;throw pV(function(e){try{return dV(e)}catch(e){return"Object"}}(e)+" is not a function")},gV=EH.TypeError,vV=Object.defineProperty,yV=EH["__core-js_shared__"]||function(e,t){try{vV(EH,e,{value:t,configurable:!0,writable:!0})}catch(a){EH[e]=t}return t}("__core-js_shared__",{}),mV=fj((function(e){(e.exports=function(e,t){return yV[e]||(yV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),bV=EH.Object,wV=function(e){return bV(YH(e))},EV=TH({}.hasOwnProperty),DV=Object.hasOwn||function(e,t){return EV(wV(e),t)},CV=0,xV=Math.random(),SV=TH(1..toString),AV=function(e){return"Symbol("+(void 0===e?"":e)+")_"+SV(++CV+xV,36)},OV=mV("wks"),kV=EH.Symbol,BV=kV&&kV.for,FV=lV?kV:kV&&kV.withoutSetter||AV,TV=function(e){if(!DV(OV,e)||!sV&&"string"!=typeof OV[e]){var t="Symbol."+e;sV&&DV(kV,e)?OV[e]=kV[e]:OV[e]=lV&&BV?BV(t):FV(t)}return OV[e]},_V=EH.TypeError,PV=TV("toPrimitive"),jV=function(e){var t=function(e,t){if(!ZH(e)||fV(e))return e;var n,r,o=null==(n=e[PV])?void 0:hV(n);if(o){if(void 0===t&&(t="default"),r=IH(o,e,t),!ZH(r)||fV(r))return r;throw _V("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_H(n=e.toString)&&!ZH(r=IH(n,e)))return r;if(_H(n=e.valueOf)&&!ZH(r=IH(n,e)))return r;if("string"!==t&&_H(n=e.toString)&&!ZH(r=IH(n,e)))return r;throw gV("Can't convert object to primitive value")}(e,t)}(e,"string");return fV(t)?t:t+""},NV=EH.document,IV=ZH(NV)&&ZH(NV.createElement),LV=function(e){return IV?NV.createElement(e):{}},RV=!jH&&!PH((function(){return 7!=Object.defineProperty(LV("div"),"a",{get:function(){return 7}}).a})),MV=Object.getOwnPropertyDescriptor,zV={f:jH?MV:function(e,t){if(e=XH(e),t=jV(t),RV)try{return MV(e,t)}catch(e){}if(DV(e,t))return $H(!IH(zH.f,e,t),e[t])}},$V=/#|\.prototype\./,HV=function(e,t){var n=UV[VV(e)];return n==GV||n!=WV&&(_H(t)?PH(t):!!t)},VV=HV.normalize=function(e){return String(e).replace($V,".").toLowerCase()},UV=HV.data={},WV=HV.NATIVE="N",GV=HV.POLYFILL="P",qV=HV,KV=TH(TH.bind),YV=function(e,t){return hV(e),void 0===t?e:KV?KV(e,t):function(){return e.apply(t,arguments)}},XV=EH.String,ZV=EH.TypeError,JV=function(e){if(ZH(e))return e;throw ZV(XV(e)+" is not an object")},QV=EH.TypeError,eU=Object.defineProperty,tU={f:jH?eU:function(e,t,n){if(JV(e),t=jV(t),JV(n),RV)try{return eU(e,t,n)}catch(e){}if("get"in n||"set"in n)throw QV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},nU=jH?function(e,t,n){return tU.f(e,t,$H(1,n))}:function(e,t,n){return e[t]=n,e},rU=zV.f,oU=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 AH(e,this,arguments)};return t.prototype=e.prototype,t},iU=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?EH:d?EH[c]:(EH[c]||{}).prototype,g=f?JH:JH[c]||nU(JH,c,{})[c],v=g.prototype;for(o in t)n=!qV(f?o:c+(d?".":"#")+o,e.forced)&&h&&DV(h,o),a=g[o],n&&(u=e.noTargetGet?(l=rU(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?YV(i,EH):e.wrap&&n?oU(i):p&&_H(i)?TH(i):i,(e.sham||i&&i.sham||a&&a.sham)&&nU(s,"sham",!0),nU(g,o,s),p&&(DV(JH,r=c+"Prototype")||nU(JH,r,{}),nU(JH[r],o,i),e.real&&v&&!v[o]&&nU(v,o,i)))},aU=Array.isArray||function(e){return"Array"==UH(e)},uU=Math.ceil,sU=Math.floor,lU=function(e){var t=+e;return t!=t||0===t?0:(t>0?sU:uU)(t)},cU=Math.min,fU=function(e){return(t=e.length)>0?cU(lU(t),9007199254740991):0;var t},dU=function(e,t,n){var r=jV(t);r in e?tU.f(e,r,$H(0,n)):e[r]=n},pU={};pU[TV("toStringTag")]="z";var hU="[object z]"===String(pU),gU=TV("toStringTag"),vU=EH.Object,yU="Arguments"==UH(function(){return arguments}()),mU=hU?UH:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=vU(e),gU))?n:yU?UH(t):"Object"==(r=UH(t))&&_H(t.callee)?"Arguments":r},bU=TH(Function.toString);_H(yV.inspectSource)||(yV.inspectSource=function(e){return bU(e)});var wU=yV.inspectSource,EU=function(){},DU=[],CU=eV("Reflect","construct"),xU=/^\s*(?:class|function)\b/,SU=TH(xU.exec),AU=!xU.exec(EU),OU=function(e){if(!_H(e))return!1;try{return CU(EU,DU,e),!0}catch(e){return!1}},kU=!CU||PH((function(){var e;return OU(OU.call)||!OU(Object)||!OU((function(){e=!0}))||e}))?function(e){if(!_H(e))return!1;switch(mU(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return AU||!!SU(xU,wU(e))}:OU,BU=TV("species"),FU=EH.Array,TU=function(e,t){return new(function(e){var t;return aU(e)&&(t=e.constructor,(kU(t)&&(t===FU||aU(t.prototype))||ZH(t)&&null===(t=t[BU]))&&(t=void 0)),void 0===t?FU:t}(e))(0===t?0:t)},_U=TV("species"),PU=TV("isConcatSpreadable"),jU=EH.TypeError,NU=uV>=51||!PH((function(){var e=[];return e[PU]=!1,e.concat()[0]!==e})),IU=uV>=51||!PH((function(){var e=[];return(e.constructor={})[_U]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),LU=function(e){if(!ZH(e))return!1;var t=e[PU];return void 0!==t?!!t:aU(e)};iU({target:"Array",proto:!0,forced:!NU||!IU},{concat:function(e){var t,n,r,o,i,a=wV(this),u=TU(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(LU(i=-1===t?a:arguments[t])){if(s+(o=fU(i))>9007199254740991)throw jU("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&dU(u,s,i[n])}else{if(s>=9007199254740991)throw jU("Maximum allowed index exceeded");dU(u,s++,i)}return u.length=s,u}});var RU,MU=EH.String,zU=function(e){if("Symbol"===mU(e))throw TypeError("Cannot convert a Symbol value to a string");return MU(e)},$U=Math.max,HU=Math.min,VU=function(e,t){var n=lU(e);return n<0?$U(n+t,0):HU(n,t)},UU=function(e){return function(t,n,r){var o,i=XH(t),a=fU(i),u=VU(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}},WU={includes:UU(!0),indexOf:UU(!1)},GU={},qU=WU.indexOf,KU=TH([].push),YU=function(e,t){var n,r=XH(e),o=0,i=[];for(n in r)!DV(GU,n)&&DV(r,n)&&KU(i,n);for(;t.length>o;)DV(r,n=t[o++])&&(~qU(i,n)||KU(i,n));return i},XU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZU=Object.keys||function(e){return YU(e,XU)},JU=jH?Object.defineProperties:function(e,t){JV(e);for(var n,r=XH(t),o=ZU(t),i=o.length,a=0;i>a;)tU.f(e,n=o[a++],r[n]);return e},QU=eV("document","documentElement"),eW=mV("keys"),tW=function(e){return eW[e]||(eW[e]=AV(e))},nW=tW("IE_PROTO"),rW=function(){},oW=function(e){return"<script>"+e+"<\/script>"},iW=function(e){e.write(oW("")),e.close();var t=e.parentWindow.Object;return e=null,t},aW=function(){try{RU=new ActiveXObject("htmlfile")}catch(e){}var e,t;aW="undefined"!=typeof document?document.domain&&RU?iW(RU):((t=LV("iframe")).style.display="none",QU.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(oW("document.F=Object")),e.close(),e.F):iW(RU);for(var n=XU.length;n--;)delete aW.prototype[XU[n]];return aW()};GU[nW]=!0;var uW,sW,lW,cW=Object.create||function(e,t){var n;return null!==e?(rW.prototype=JV(e),n=new rW,rW.prototype=null,n[nW]=e):n=aW(),void 0===t?n:JU(n,t)},fW=XU.concat("length","prototype"),dW={f:Object.getOwnPropertyNames||function(e){return YU(e,fW)}},pW=EH.Array,hW=Math.max,gW=dW.f,vW="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yW={f:function(e){return vW&&"Window"==UH(e)?function(e){try{return gW(e)}catch(e){return function(e,t,n){for(var r=fU(e),o=VU(void 0,r),i=VU(r,r),a=pW(hW(i-o,0)),u=0;o<i;o++,u++)dU(a,u,e[o]);return a.length=u,a}(vW)}}(e):gW(XH(e))}},mW={f:Object.getOwnPropertySymbols},bW=TH([].slice),wW=function(e,t,n,r){r&&r.enumerable?e[t]=n:nU(e,t,n)},EW={f:TV},DW=tU.f,CW=function(e){var t=JH.Symbol||(JH.Symbol={});DV(t,e)||DW(t,e,{value:EW.f(e)})},xW=hU?{}.toString:function(){return"[object "+mU(this)+"]"},SW=tU.f,AW=TV("toStringTag"),OW=function(e,t,n,r){if(e){var o=n?e:e.prototype;DV(o,AW)||SW(o,AW,{configurable:!0,value:t}),r&&!hU&&nU(o,"toString",xW)}},kW=EH.WeakMap,BW=_H(kW)&&/native code/.test(wU(kW)),FW=EH.TypeError,TW=EH.WeakMap;if(BW||yV.state){var _W=yV.state||(yV.state=new TW),PW=TH(_W.get),jW=TH(_W.has),NW=TH(_W.set);uW=function(e,t){if(jW(_W,e))throw new FW("Object already initialized");return t.facade=e,NW(_W,e,t),t},sW=function(e){return PW(_W,e)||{}},lW=function(e){return jW(_W,e)}}else{var IW=tW("state");GU[IW]=!0,uW=function(e,t){if(DV(e,IW))throw new FW("Object already initialized");return t.facade=e,nU(e,IW,t),t},sW=function(e){return DV(e,IW)?e[IW]:{}},lW=function(e){return DV(e,IW)}}var LW={set:uW,get:sW,has:lW,enforce:function(e){return lW(e)?sW(e):uW(e,{})},getterFor:function(e){return function(t){var n;if(!ZH(t)||(n=sW(t)).type!==e)throw FW("Incompatible receiver, "+e+" required");return n}}},RW=TH([].push),MW=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=wV(s),g=qH(h),v=YV(l,c),y=fU(g),m=0,b=f||TU,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:RW(w,d)}else switch(e){case 4:return!1;case 7:RW(w,d)}return i?-1:r||o?o:w}},zW=[MW(0),MW(1),MW(2),MW(3),MW(4),MW(5),MW(6),MW(7)][0],$W=tW("hidden"),HW=TV("toPrimitive"),VW=LW.set,UW=LW.getterFor("Symbol"),WW=Object.prototype,GW=EH.Symbol,qW=GW&&GW.prototype,KW=EH.TypeError,YW=EH.QObject,XW=eV("JSON","stringify"),ZW=zV.f,JW=tU.f,QW=yW.f,eG=zH.f,tG=TH([].push),nG=mV("symbols"),rG=mV("op-symbols"),oG=mV("string-to-symbol-registry"),iG=mV("symbol-to-string-registry"),aG=mV("wks"),uG=!YW||!YW.prototype||!YW.prototype.findChild,sG=jH&&PH((function(){return 7!=cW(JW({},"a",{get:function(){return JW(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ZW(WW,t);r&&delete WW[t],JW(e,t,n),r&&e!==WW&&JW(WW,t,r)}:JW,lG=function(e,t){var n=nG[e]=cW(qW);return VW(n,{type:"Symbol",tag:e,description:t}),jH||(n.description=t),n},cG=function(e,t,n){e===WW&&cG(rG,t,n),JV(e);var r=jV(t);return JV(n),DV(nG,r)?(n.enumerable?(DV(e,$W)&&e[$W][r]&&(e[$W][r]=!1),n=cW(n,{enumerable:$H(0,!1)})):(DV(e,$W)||JW(e,$W,$H(1,{})),e[$W][r]=!0),sG(e,r,n)):JW(e,r,n)},fG=function(e,t){JV(e);var n=XH(t),r=ZU(n).concat(gG(n));return zW(r,(function(t){jH&&!IH(dG,n,t)||cG(e,t,n[t])})),e},dG=function(e){var t=jV(e),n=IH(eG,this,t);return!(this===WW&&DV(nG,t)&&!DV(rG,t))&&(!(n||!DV(this,t)||!DV(nG,t)||DV(this,$W)&&this[$W][t])||n)},pG=function(e,t){var n=XH(e),r=jV(t);if(n!==WW||!DV(nG,r)||DV(rG,r)){var o=ZW(n,r);return!o||!DV(nG,r)||DV(n,$W)&&n[$W][r]||(o.enumerable=!0),o}},hG=function(e){var t=QW(XH(e)),n=[];return zW(t,(function(e){DV(nG,e)||DV(GU,e)||tG(n,e)})),n},gG=function(e){var t=e===WW,n=QW(t?rG:XH(e)),r=[];return zW(n,(function(e){!DV(nG,e)||t&&!DV(WW,e)||tG(r,nG[e])})),r};if(sV||(qW=(GW=function(){if(tV(qW,this))throw KW("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?zU(arguments[0]):void 0,t=AV(e),n=function(e){this===WW&&IH(n,rG,e),DV(this,$W)&&DV(this[$W],t)&&(this[$W][t]=!1),sG(this,t,$H(1,e))};return jH&&uG&&sG(WW,t,{configurable:!0,set:n}),lG(t,e)}).prototype,wW(qW,"toString",(function(){return UW(this).tag})),wW(GW,"withoutSetter",(function(e){return lG(AV(e),e)})),zH.f=dG,tU.f=cG,zV.f=pG,dW.f=yW.f=hG,mW.f=gG,EW.f=function(e){return lG(TV(e),e)},jH&&JW(qW,"description",{configurable:!0,get:function(){return UW(this).description}})),iU({global:!0,wrap:!0,forced:!sV,sham:!sV},{Symbol:GW}),zW(ZU(aG),(function(e){CW(e)})),iU({target:"Symbol",stat:!0,forced:!sV},{for:function(e){var t=zU(e);if(DV(oG,t))return oG[t];var n=GW(t);return oG[t]=n,iG[n]=t,n},keyFor:function(e){if(!fV(e))throw KW(e+" is not a symbol");if(DV(iG,e))return iG[e]},useSetter:function(){uG=!0},useSimple:function(){uG=!1}}),iU({target:"Object",stat:!0,forced:!sV,sham:!jH},{create:function(e,t){return void 0===t?cW(e):fG(cW(e),t)},defineProperty:cG,defineProperties:fG,getOwnPropertyDescriptor:pG}),iU({target:"Object",stat:!0,forced:!sV},{getOwnPropertyNames:hG,getOwnPropertySymbols:gG}),iU({target:"Object",stat:!0,forced:PH((function(){mW.f(1)}))},{getOwnPropertySymbols:function(e){return mW.f(wV(e))}}),XW){var vG=!sV||PH((function(){var e=GW();return"[null]"!=XW([e])||"{}"!=XW({a:e})||"{}"!=XW(Object(e))}));iU({target:"JSON",stat:!0,forced:vG},{stringify:function(e,t,n){var r=bW(arguments),o=t;if((ZH(t)||void 0!==e)&&!fV(e))return aU(t)||(t=function(e,t){if(_H(o)&&(t=IH(o,this,e,t)),!fV(t))return t}),r[1]=t,AH(XW,null,r)}})}if(!qW[HW]){var yG=qW.valueOf;wW(qW,HW,(function(e){return IH(yG,this)}))}OW(GW,"Symbol"),GU[$W]=!0,CW("asyncIterator"),CW("hasInstance"),CW("isConcatSpreadable"),CW("iterator"),CW("match"),CW("matchAll"),CW("replace"),CW("search"),CW("species"),CW("split"),CW("toPrimitive"),CW("toStringTag"),CW("unscopables"),OW(EH.JSON,"JSON",!0);var mG,bG,wG,EG=JH.Symbol,DG={},CG=Function.prototype,xG=jH&&Object.getOwnPropertyDescriptor,SG=DV(CG,"name"),AG={EXISTS:SG,PROPER:SG&&"something"===function(){}.name,CONFIGURABLE:SG&&(!jH||jH&&xG(CG,"name").configurable)},OG=!PH((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),kG=tW("IE_PROTO"),BG=EH.Object,FG=BG.prototype,TG=OG?BG.getPrototypeOf:function(e){var t=wV(e);if(DV(t,kG))return t[kG];var n=t.constructor;return _H(n)&&t instanceof n?n.prototype:t instanceof BG?FG:null},_G=TV("iterator"),PG=!1;[].keys&&("next"in(wG=[].keys())?(bG=TG(TG(wG)))!==Object.prototype&&(mG=bG):PG=!0);var jG=null==mG||PH((function(){var e={};return mG[_G].call(e)!==e}));mG=jG?{}:cW(mG),_H(mG[_G])||wW(mG,_G,(function(){return this}));var NG={IteratorPrototype:mG,BUGGY_SAFARI_ITERATORS:PG},IG=NG.IteratorPrototype,LG=function(){return this};EH.String,EH.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{TH(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[])}catch(e){}}();var RG=AG.PROPER,MG=NG.BUGGY_SAFARI_ITERATORS,zG=TV("iterator"),$G=function(){return this},HG=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=cW(IG,{next:$H(1,n)}),OW(e,o,!1,!0),DG[o]=LG}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!MG&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[zG]||p["@@iterator"]||o&&p[o],g=!MG&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=TG(v.call(new e)))!==Object.prototype&&u.next&&(OW(u,f,!0,!0),DG[f]=$G),RG&&"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return IH(h,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(MG||d||!(l in p))&&wW(p,l,s[l]);else iU({target:t,proto:!0,forced:MG||d},s);return a&&p[zG]!==g&&wW(p,zG,g,{name:o}),DG[t]=g,s},VG=LW.set,UG=LW.getterFor("Array Iterator");HG(Array,"Array",(function(e,t){VG(this,{type:"Array Iterator",target:XH(e),index:0,kind:t})}),(function(){var e=UG(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"),DG.Arguments=DG.Array;var WG=TV("toStringTag");for(var GG 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 qG=EH[GG],KG=qG&&qG.prototype;KG&&mU(KG)!==WG&&nU(KG,WG,GG),DG[GG]=DG.Array}var YG=EG;CW("asyncDispose"),CW("dispose"),CW("matcher"),CW("metadata"),CW("observable"),CW("patternMatch"),CW("replaceAll");var XG=YG,ZG=TH("".charAt),JG=TH("".charCodeAt),QG=TH("".slice),eq=function(e){return function(t,n){var r,o,i=zU(YH(t)),a=lU(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?ZG(i,a):r:e?QG(i,a,a+2):o-56320+(r-55296<<10)+65536}},tq=(eq(!1),eq(!0)),nq=LW.set,rq=LW.getterFor("String Iterator");HG(String,"String",(function(e){nq(this,{type:"String Iterator",string:zU(e),index:0})}),(function(){var e,t=rq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=tq(n,r),t.index+=e.length,{value:e,done:!1})}));var oq=EW.f("iterator"),iq=fj((function(e){function t(n){return"function"==typeof XG&&"symbol"==typeof oq?(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 XG&&e.constructor===XG&&e!==XG.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})),aq=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(iq),uq=aI.EXISTS,sq=LN.f,lq=Function.prototype,cq=Bj(lq.toString),fq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,dq=Bj(fq.exec);yj&&!uq&&sq(lq,"name",{configurable:!0,get:function(){try{return dq(fq,cq(this))[1]}catch(o){return""}}});var pq=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=Pf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!sM(Pf.nodes(e,{match:function(t){return"pre"===nk.getNodeType(t)||!!Pf.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}(),hq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("fontSize.title"),t.iconSvg=RM,t.mark="fontSize",t}return rM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:HP("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===aq(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}(pq),gq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("fontFamily.title"),t.iconSvg=MM,t.mark="fontFamily",t.selectPanelWidth=150,t}return rM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:HP("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===aq(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}(pq),vq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Kz(i,{fontSize:r}),o&&Kz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!rd.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((ZR(t)||"span"!==QR(n=Hp(t)))&&(n=Hp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),JR(n)):t},preParseHtml:[vH],parseStyleHtml:function(e,t,n){var r=Hp(e);if(!rd.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=eM(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=eM(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 hq},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 gq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},yq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Hp(e),n=eM(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]}},mq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=sM(Pf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":sM(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=sM(Pf.nodes(e,{match:function(e){var t=nk.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),bq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("indent.decrease"),t.iconSvg=zM,t}return rM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){Ed.setNodes(e,{indent:null},{match:function(e){return Of.isElement(e)}})},t}(mq),wq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("indent.increase"),t.iconSvg=$M,t}return rM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.exec=function(e,t){Ed.setNodes(e,{indent:"2em"},{match:function(e){return Of.isElement(e)},mode:"highest"})},t}(mq),Eq={renderStyle:function(e,t){if(!Of.isElement(e))return t;var n=e.indent,r=t;return n&&Kz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Of.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:[yq],parseStyleHtml:function(e,t,n){var r=Hp(e);if(!Of.isElement(t))return t;var o=t,i=eM(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new wq}},{key:"delIndent",factory:function(){return new bq}}]},Dq=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=sM(Pf.nodes(e,{match:function(e){var t=nk.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||!!nk.getSelectedElems(e).some((function(t){if(Pf.isVoid(e,t)&&Pf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))},e}(),Cq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("justify.left"),t.iconSvg=HM,t}return rM(t,e),t.prototype.exec=function(e,t){Ed.setNodes(e,{textAlign:"left"},{match:function(t){return Of.isElement(t)&&!e.isInline(t)}})},t}(Dq),xq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("justify.right"),t.iconSvg=VM,t}return rM(t,e),t.prototype.exec=function(e,t){Ed.setNodes(e,{textAlign:"right"},{match:function(t){return Of.isElement(t)&&!e.isInline(t)}})},t}(Dq),Sq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("justify.center"),t.iconSvg=UM,t}return rM(t,e),t.prototype.exec=function(e,t){Ed.setNodes(e,{textAlign:"center"},{match:function(t){return Of.isElement(t)&&!e.isInline(t)}})},t}(Dq),Aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=HP("justify.justify"),t.iconSvg=WM,t}return rM(t,e),t.prototype.exec=function(e,t){Ed.setNodes(e,{textAlign:"justify"},{match:function(t){return Of.isElement(t)&&!e.isInline(t)}})},t}(Dq),Oq={renderStyle:function(e,t){if(!Of.isElement(e))return t;var n=e.textAlign,r=t;return n&&Kz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Of.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(!Of.isElement(t))return t;var o=t,i=eM(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Cq}},{key:"justifyRight",factory:function(){return new xq}},{key:"justifyCenter",factory:function(){return new Sq}},{key:"justifyJustify",factory:function(){return new Aq}}]},kq=function(){function e(){this.title=HP("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:HP("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=sM(Pf.nodes(e,{match:function(e){var t=nk.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?"":Of.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){Ed.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),Bq={renderStyle:function(e,t){if(!Of.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Kz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Of.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(!Of.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=eM(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new kq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Fq=function(){function e(){this.title=HP("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}(),Tq=function(){function e(){this.title=HP("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}(),_q={menus:[{key:"redo",factory:function(){return new Fq}},{key:"undo",factory:function(){return new Tq}}]},Pq={type:"divider",renderElem:function(e,t,n){return vg("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:nk.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[vg("hr")])}},jq=function(){function e(){this.title=HP("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||!!nk.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=nk.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){Ed.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Nq={renderElems:[Pq],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 jq}}],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=sM(e,2),o=t[0],i=t[1];if("divider"!==nk.getNodeType(o))return n([o,i]);nk.isLastNode(r,o)&&Ed.insertNodes(r,nk.genEmptyParagraph(),{at:[i[0]+1]})},r}},Iq=iL.map;LI({target:"Array",proto:!0,forced:!uL("map")},{map:function(e){return Iq(this,e,arguments.length>1?arguments[1]:void 0)}});var Lq=Bj([].join),Rq=Nj!=Object,Mq=EM("join",",");LI({target:"Array",proto:!0,forced:Rq||!Mq},{join:function(e){return Lq(Rj(this),void 0===e?",":e)}});var zq=function(){function e(){this.title=HP("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=nk.getSelectedNodeByType(e,"code");if(null==t)return null;var n=nk.getParentNode(e,t);return null==n||"pre"!==nk.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=nk.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=nk.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=Rf.string(t);Ed.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));Ed.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Pf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=uM(i),u=a.next();!u.done;u=a.next()){var s=sM(u.value,1)[0];s&&o.push(Rf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}Ed.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};Ed.insertNodes(e,l,{mode:"highest"})},e}(),$q={key:"codeBlock",factory:function(){return new zq}};LI({target:"String",proto:!0,forced:hM("anchor")},{anchor:function(e){return pM(this,"a","name",e)}}),JL("match",(function(e,t,n){return[function(t){var n=Lj(this),r=null==t?void 0:oN(t,e);return r?bj(r,t,n):new RegExp(t)[e](dL(n))},function(e){var r=jN(this),o=dL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return pR(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=pR(r,o));){var c=dL(u[0]);s[l]=c,""===c&&(r.lastIndex=oR(o,gI(r.lastIndex),a)),l++}return 0===l?null:s}]}));var Hq={type:"pre",renderElem:function(e,t,n){return Ig("pre",null,t)}},Vq={type:"code",renderElem:function(e,t,n){return Ig("code",null,t)}},Uq={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"===nk.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===nk.getNodeType(e)}))}}},Wq={menus:[$q],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=nk.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Rf.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=sM(e,2),r=t[0],i=t[1],a=nk.getNodeType(r);return"code"===a&&i.length<=1&&Ed.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(nk.isLastNode(o,r)&&Ed.insertNodes(o,nk.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==nk.getNodeType(r.children[0])&&(Ed.unwrapNodes(o),Ed.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=nk.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Pf.insertText(o,t)}else r(e)},o},renderElems:[Hq,Vq],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"!==QR(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||""}]}}},Uq]},Gq=function(){function e(){this.title=HP("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}(),qq={menus:[{key:"fullScreen",factory:function(){return new Gq}}]},Kq=function(){function e(){this.title=HP("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||!!Xf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];Ed.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Pf.start(e,r))}},e}(),Yq=[nz,e$,vq,Eq,Oq,Bq,J$,Nq,hH,E$,Wq,dH,Vz,cM,nH,_q,qq,{menus:[{key:"enter",factory:function(){return new Kq}}]}];$P("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),$P("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Xq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Zq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Jq,Qq,eK=function(e){return e&&e.Math==Math&&e},tK=eK("object"==typeof globalThis&&globalThis)||eK("object"==typeof window&&window)||eK("object"==typeof self&&self)||eK("object"==typeof Xq&&Xq)||function(){return this}()||Function("return this")(),nK=Function.prototype,rK=nK.bind,oK=nK.call,iK=rK&&rK.bind(oK),aK=rK?function(e){return e&&iK(oK,e)}:function(e){return e&&function(){return oK.apply(e,arguments)}},uK=function(e){try{return!!e()}catch(e){return!0}},sK=aK({}.toString),lK=aK("".slice),cK=function(e){return lK(sK(e),8,-1)},fK=tK.Object,dK=aK("".split),pK=uK((function(){return!fK("z").propertyIsEnumerable(0)}))?function(e){return"String"==cK(e)?dK(e,""):fK(e)}:fK,hK=tK.TypeError,gK=function(e){if(null==e)throw hK("Can't call method on "+e);return e},vK=function(e){return pK(gK(e))},yK=Object.defineProperty,mK=function(e,t){try{yK(tK,e,{value:t,configurable:!0,writable:!0})}catch(a){tK[e]=t}return t},bK=tK["__core-js_shared__"]||mK("__core-js_shared__",{}),wK=Zq((function(e){(e.exports=function(e,t){return bK[e]||(bK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),EK=tK.Object,DK=function(e){return EK(gK(e))},CK=aK({}.hasOwnProperty),xK=Object.hasOwn||function(e,t){return CK(DK(e),t)},SK=0,AK=Math.random(),OK=aK(1..toString),kK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+OK(++SK+AK,36)},BK=function(e){return"function"==typeof e},FK=function(e){return BK(e)?e:void 0},TK=function(e,t){return arguments.length<2?FK(tK[e]):tK[e]&&tK[e][t]},_K=TK("navigator","userAgent")||"",PK=tK.process,jK=tK.Deno,NK=PK&&PK.versions||jK&&jK.version,IK=NK&&NK.v8;IK&&(Qq=(Jq=IK.split("."))[0]>0&&Jq[0]<4?1:+(Jq[0]+Jq[1])),!Qq&&_K&&(!(Jq=_K.match(/Edge\/(\d+)/))||Jq[1]>=74)&&(Jq=_K.match(/Chrome\/(\d+)/))&&(Qq=+Jq[1]);var LK,RK=Qq,MK=!!Object.getOwnPropertySymbols&&!uK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&RK&&RK<41})),zK=MK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$K=wK("wks"),HK=tK.Symbol,VK=HK&&HK.for,UK=zK?HK:HK&&HK.withoutSetter||kK,WK=function(e){if(!xK($K,e)||!MK&&"string"!=typeof $K[e]){var t="Symbol."+e;MK&&xK(HK,e)?$K[e]=HK[e]:$K[e]=zK&&VK?VK(t):UK(t)}return $K[e]},GK=function(e){return"object"==typeof e?null!==e:BK(e)},qK=tK.String,KK=tK.TypeError,YK=function(e){if(GK(e))return e;throw KK(qK(e)+" is not an object")},XK=!uK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ZK=tK.document,JK=GK(ZK)&&GK(ZK.createElement),QK=function(e){return JK?ZK.createElement(e):{}},eY=!XK&&!uK((function(){return 7!=Object.defineProperty(QK("div"),"a",{get:function(){return 7}}).a})),tY=Function.prototype.call,nY=tY.bind?tY.bind(tY):function(){return tY.apply(tY,arguments)},rY=aK({}.isPrototypeOf),oY=tK.Object,iY=zK?function(e){return"symbol"==typeof e}:function(e){var t=TK("Symbol");return BK(t)&&rY(t.prototype,oY(e))},aY=tK.String,uY=function(e){try{return aY(e)}catch(e){return"Object"}},sY=tK.TypeError,lY=function(e){if(BK(e))return e;throw sY(uY(e)+" is not a function")},cY=function(e,t){var n=e[t];return null==n?void 0:lY(n)},fY=tK.TypeError,dY=tK.TypeError,pY=WK("toPrimitive"),hY=function(e){var t=function(e,t){if(!GK(e)||iY(e))return e;var n,r=cY(e,pY);if(r){if(void 0===t&&(t="default"),n=nY(r,e,t),!GK(n)||iY(n))return n;throw dY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&BK(n=e.toString)&&!GK(r=nY(n,e)))return r;if(BK(n=e.valueOf)&&!GK(r=nY(n,e)))return r;if("string"!==t&&BK(n=e.toString)&&!GK(r=nY(n,e)))return r;throw fY("Can't convert object to primitive value")}(e,t)}(e,"string");return iY(t)?t:t+""},gY=tK.TypeError,vY=Object.defineProperty,yY={f:XK?vY:function(e,t,n){if(YK(e),t=hY(t),YK(n),eY)try{return vY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw gY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},mY=Math.ceil,bY=Math.floor,wY=function(e){var t=+e;return t!=t||0===t?0:(t>0?bY:mY)(t)},EY=Math.max,DY=Math.min,CY=function(e,t){var n=wY(e);return n<0?EY(n+t,0):DY(n,t)},xY=Math.min,SY=function(e){return e>0?xY(wY(e),9007199254740991):0},AY=function(e){return SY(e.length)},OY=function(e){return function(t,n,r){var o,i=vK(t),a=AY(i),u=CY(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}},kY={includes:OY(!0),indexOf:OY(!1)},BY={},FY=kY.indexOf,TY=aK([].push),_Y=function(e,t){var n,r=vK(e),o=0,i=[];for(n in r)!xK(BY,n)&&xK(r,n)&&TY(i,n);for(;t.length>o;)xK(r,n=t[o++])&&(~FY(i,n)||TY(i,n));return i},PY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jY=Object.keys||function(e){return _Y(e,PY)},NY=XK?Object.defineProperties:function(e,t){YK(e);for(var n,r=vK(t),o=jY(t),i=o.length,a=0;i>a;)yY.f(e,n=o[a++],r[n]);return e},IY=TK("document","documentElement"),LY=wK("keys"),RY=function(e){return LY[e]||(LY[e]=kK(e))},MY=RY("IE_PROTO"),zY=function(){},$Y=function(e){return"<script>"+e+"<\/script>"},HY=function(e){e.write($Y("")),e.close();var t=e.parentWindow.Object;return e=null,t},VY=function(){try{LK=new ActiveXObject("htmlfile")}catch(e){}var e,t;VY="undefined"!=typeof document?document.domain&&LK?HY(LK):((t=QK("iframe")).style.display="none",IY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($Y("document.F=Object")),e.close(),e.F):HY(LK);for(var n=PY.length;n--;)delete VY.prototype[PY[n]];return VY()};BY[MY]=!0;var UY=Object.create||function(e,t){var n;return null!==e?(zY.prototype=YK(e),n=new zY,zY.prototype=null,n[MY]=e):n=VY(),void 0===t?n:NY(n,t)},WY=WK("unscopables"),GY=Array.prototype;null==GY[WY]&&yY.f(GY,WY,{configurable:!0,value:UY(null)});var qY=function(e){GY[WY][e]=!0},KY={},YY=aK(Function.toString);BK(bK.inspectSource)||(bK.inspectSource=function(e){return YY(e)});var XY,ZY,JY,QY=bK.inspectSource,eX=tK.WeakMap,tX=BK(eX)&&/native code/.test(QY(eX)),nX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rX=XK?function(e,t,n){return yY.f(e,t,nX(1,n))}:function(e,t,n){return e[t]=n,e},oX=tK.TypeError,iX=tK.WeakMap;if(tX||bK.state){var aX=bK.state||(bK.state=new iX),uX=aK(aX.get),sX=aK(aX.has),lX=aK(aX.set);XY=function(e,t){if(sX(aX,e))throw new oX("Object already initialized");return t.facade=e,lX(aX,e,t),t},ZY=function(e){return uX(aX,e)||{}},JY=function(e){return sX(aX,e)}}else{var cX=RY("state");BY[cX]=!0,XY=function(e,t){if(xK(e,cX))throw new oX("Object already initialized");return t.facade=e,rX(e,cX,t),t},ZY=function(e){return xK(e,cX)?e[cX]:{}},JY=function(e){return xK(e,cX)}}var fX,dX,pX,hX={set:XY,get:ZY,has:JY,enforce:function(e){return JY(e)?ZY(e):XY(e,{})},getterFor:function(e){return function(t){var n;if(!GK(t)||(n=ZY(t)).type!==e)throw oX("Incompatible receiver, "+e+" required");return n}}},gX={}.propertyIsEnumerable,vX=Object.getOwnPropertyDescriptor,yX={f:vX&&!gX.call({1:2},1)?function(e){var t=vX(this,e);return!!t&&t.enumerable}:gX},mX=Object.getOwnPropertyDescriptor,bX={f:XK?mX:function(e,t){if(e=vK(e),t=hY(t),eY)try{return mX(e,t)}catch(e){}if(xK(e,t))return nX(!nY(yX.f,e,t),e[t])}},wX=Function.prototype,EX=XK&&Object.getOwnPropertyDescriptor,DX=xK(wX,"name"),CX={EXISTS:DX,PROPER:DX&&"something"===function(){}.name,CONFIGURABLE:DX&&(!XK||XK&&EX(wX,"name").configurable)},xX=Zq((function(e){var t=CX.CONFIGURABLE,n=hX.get,r=hX.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;BK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xK(i,"name")||t&&i.name!==f)&&rX(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==tK?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:rX(e,n,i)):l?e[n]=i:mK(n,i)})(Function.prototype,"toString",(function(){return BK(this)&&n(this).source||QY(this)}))})),SX=PY.concat("length","prototype"),AX={f:Object.getOwnPropertyNames||function(e){return _Y(e,SX)}},OX={f:Object.getOwnPropertySymbols},kX=aK([].concat),BX=TK("Reflect","ownKeys")||function(e){var t=AX.f(YK(e)),n=OX.f;return n?kX(t,n(e)):t},FX=function(e,t){for(var n=BX(t),r=yY.f,o=bX.f,i=0;i<n.length;i++){var a=n[i];xK(e,a)||r(e,a,o(t,a))}},TX=/#|\.prototype\./,_X=function(e,t){var n=jX[PX(e)];return n==IX||n!=NX&&(BK(t)?uK(t):!!t)},PX=_X.normalize=function(e){return String(e).replace(TX,".").toLowerCase()},jX=_X.data={},NX=_X.NATIVE="N",IX=_X.POLYFILL="P",LX=_X,RX=bX.f,MX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?tK:l?tK[u]||mK(u,{}):(tK[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=RX(n,r))&&a.value:n[r],!LX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;FX(i,o)}(e.sham||o&&o.sham)&&rX(i,"sham",!0),xX(n,r,i,e)}},zX=!uK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$X=RY("IE_PROTO"),HX=tK.Object,VX=HX.prototype,UX=zX?HX.getPrototypeOf:function(e){var t=DK(e);if(xK(t,$X))return t[$X];var n=t.constructor;return BK(n)&&t instanceof n?n.prototype:t instanceof HX?VX:null},WX=WK("iterator"),GX=!1;[].keys&&("next"in(pX=[].keys())?(dX=UX(UX(pX)))!==Object.prototype&&(fX=dX):GX=!0);var qX=null==fX||uK((function(){var e={};return fX[WX].call(e)!==e}));qX&&(fX={}),BK(fX[WX])||xX(fX,WX,(function(){return this}));var KX={IteratorPrototype:fX,BUGGY_SAFARI_ITERATORS:GX},YX=yY.f,XX=WK("toStringTag"),ZX=function(e,t,n){e&&!xK(e=n?e:e.prototype,XX)&&YX(e,XX,{configurable:!0,value:t})},JX=KX.IteratorPrototype,QX=function(){return this},eZ=tK.String,tZ=tK.TypeError,nZ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=aK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return YK(n),function(e){if("object"==typeof e||BK(e))return e;throw tZ("Can't set "+eZ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),rZ=CX.PROPER,oZ=CX.CONFIGURABLE,iZ=KX.IteratorPrototype,aZ=KX.BUGGY_SAFARI_ITERATORS,uZ=WK("iterator"),sZ=function(){return this},lZ=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=UY(JX,{next:nX(1,n)}),ZX(e,o,!1),KY[o]=QX}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!aZ&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[uZ]||p["@@iterator"]||o&&p[o],g=!aZ&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=UX(v.call(new e)))!==Object.prototype&&u.next&&(UX(u)!==iZ&&(nZ?nZ(u,iZ):BK(u[uZ])||xX(u,uZ,sZ)),ZX(u,f,!0)),rZ&&"values"==o&&h&&"values"!==h.name&&(oZ?rX(p,"name","values"):(d=!0,g=function(){return nY(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(aZ||d||!(l in p))&&xX(p,l,s[l]);else MX({target:t,proto:!0,forced:aZ||d},s);return p[uZ]!==g&&xX(p,uZ,g,{name:o}),KY[t]=g,s},cZ=hX.set,fZ=hX.getterFor("Array Iterator"),dZ=lZ(Array,"Array",(function(e,t){cZ(this,{type:"Array Iterator",target:vK(e),index:0,kind:t})}),(function(){var e=fZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");KY.Arguments=KY.Array,qY("keys"),qY("values"),qY("entries");var pZ={};pZ[WK("toStringTag")]="z";var hZ="[object z]"===String(pZ),gZ=WK("toStringTag"),vZ=tK.Object,yZ="Arguments"==cK(function(){return arguments}()),mZ=hZ?cK:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=vZ(e),gZ))?n:yZ?cK(t):"Object"==(r=cK(t))&&BK(t.callee)?"Arguments":r},bZ=hZ?{}.toString:function(){return"[object "+mZ(this)+"]"};hZ||xX(Object.prototype,"toString",bZ,{unsafe:!0});var wZ=tK.String,EZ=function(e){if("Symbol"===mZ(e))throw TypeError("Cannot convert a Symbol value to a string");return wZ(e)},DZ=aK("".charAt),CZ=aK("".charCodeAt),xZ=aK("".slice),SZ=function(e){return function(t,n){var r,o,i=EZ(gK(t)),a=wY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=CZ(i,a))<55296||r>56319||a+1===u||(o=CZ(i,a+1))<56320||o>57343?e?DZ(i,a):r:e?xZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},AZ={codeAt:SZ(!1),charAt:SZ(!0)},OZ=AZ.charAt,kZ=hX.set,BZ=hX.getterFor("String Iterator");lZ(String,"String",(function(e){kZ(this,{type:"String Iterator",string:EZ(e),index:0})}),(function(){var e,t=BZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=OZ(n,r),t.index+=e.length,{value:e,done:!1})}));var FZ=function(e,t,n){for(var r in t)xX(e,r,t[r],n);return e},TZ=tK.Array,_Z=Math.max,PZ=AX.f,jZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],NZ={f:function(e){return jZ&&"Window"==cK(e)?function(e){try{return PZ(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=AY(e),s=CY(void 0,u),l=CY(u,u),c=TZ(_Z(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=hY(o))in r?yY.f(r,a,nX(0,i)):r[a]=i;return c.length=f,c}(jZ)}}(e):PZ(vK(e))}},IZ=uK((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),LZ=Object.isExtensible,RZ=uK((function(){LZ(1)}))||IZ?function(e){return!!GK(e)&&(!IZ||"ArrayBuffer"!=cK(e))&&(!LZ||LZ(e))}:LZ,MZ=!uK((function(){return Object.isExtensible(Object.preventExtensions({}))})),zZ=Zq((function(e){var t=yY.f,n=!1,r=kK("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=AX.f,t=aK([].splice),o={};o[r]=1,e(o).length&&(AX.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},MX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:NZ.f}))},fastKey:function(e,t){if(!GK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!xK(e,r)){if(!RZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!xK(e,r)){if(!RZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return MZ&&n&&RZ(e)&&!xK(e,r)&&i(e),e}};BY[r]=!0})),$Z=aK(aK.bind),HZ=function(e,t){return lY(e),void 0===t?e:$Z?$Z(e,t):function(){return e.apply(t,arguments)}},VZ=WK("iterator"),UZ=Array.prototype,WZ=WK("iterator"),GZ=function(e){if(null!=e)return cY(e,WZ)||cY(e,"@@iterator")||KY[mZ(e)]},qZ=tK.TypeError,KZ=function(e,t,n){var r,o;YK(e);try{if(!(r=cY(e,"return"))){if("throw"===t)throw n;return n}r=nY(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return YK(r),n},YZ=tK.TypeError,XZ=function(e,t){this.stopped=e,this.result=t},ZZ=XZ.prototype,JZ=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=HZ(t,f),v=function(e){return r&&KZ(r,"normal",e),new XZ(!0,e)},y=function(e){return d?(YK(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=GZ(e)))throw YZ(uY(e)+" is not iterable");if(void 0!==(c=o)&&(KY.Array===c||UZ[VZ]===c)){for(i=0,a=AY(e);a>i;i++)if((u=y(e[i]))&&rY(ZZ,u))return u;return new XZ(!1)}r=function(e,t){var n=arguments.length<2?GZ(e):t;if(lY(n))return YK(nY(n,e));throw qZ(uY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=nY(s,r)).done;){try{u=y(l.value)}catch(e){KZ(r,"throw",e)}if("object"==typeof u&&u&&rY(ZZ,u))return u}return new XZ(!1)},QZ=tK.TypeError,eJ=function(e,t){if(rY(t,e))return e;throw QZ("Incorrect invocation")},tJ=WK("iterator"),nJ=!1;try{var rJ=0,oJ={next:function(){return{done:!!rJ++}},return:function(){nJ=!0}};oJ[tJ]=function(){return this},Array.from(oJ,(function(){throw 2}))}catch(Vl){}var iJ=Array.isArray||function(e){return"Array"==cK(e)},aJ=function(){},uJ=[],sJ=TK("Reflect","construct"),lJ=/^\s*(?:class|function)\b/,cJ=aK(lJ.exec),fJ=!lJ.exec(aJ),dJ=function(e){if(!BK(e))return!1;try{return sJ(aJ,uJ,e),!0}catch(e){return!1}},pJ=!sJ||uK((function(){var e;return dJ(dJ.call)||!dJ(Object)||!dJ((function(){e=!0}))||e}))?function(e){if(!BK(e))return!1;switch(mZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fJ||!!cJ(lJ,QY(e))}:dJ,hJ=WK("species"),gJ=tK.Array,vJ=function(e,t){return new(function(e){var t;return iJ(e)&&(t=e.constructor,(pJ(t)&&(t===gJ||iJ(t.prototype))||GK(t)&&null===(t=t[hJ]))&&(t=void 0)),void 0===t?gJ:t}(e))(0===t?0:t)},yJ=aK([].push),mJ=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=DK(s),g=pK(h),v=HZ(l,c),y=AY(g),m=0,b=f||vJ,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:yJ(w,d)}else switch(e){case 4:return!1;case 7:yJ(w,d)}return i?-1:r||o?o:w}},bJ={forEach:mJ(0),map:mJ(1),filter:mJ(2),some:mJ(3),every:mJ(4),find:mJ(5),findIndex:mJ(6),filterReject:mJ(7)},wJ=zZ.getWeakData,EJ=hX.set,DJ=hX.getterFor,CJ=bJ.find,xJ=bJ.findIndex,SJ=aK([].splice),AJ=0,OJ=function(e){return e.frozen||(e.frozen=new kJ)},kJ=function(){this.entries=[]},BJ=function(e,t){return CJ(e.entries,(function(e){return e[0]===t}))};kJ.prototype={get:function(e){var t=BJ(this,e);if(t)return t[1]},has:function(e){return!!BJ(this,e)},set:function(e,t){var n=BJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=xJ(this.entries,(function(t){return t[0]===e}));return~t&&SJ(this.entries,t,1),!!~t}};var FJ,TJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){eJ(e,i),EJ(e,{type:t,id:AJ++,frozen:void 0}),null!=o&&JZ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=DJ(t),u=function(e,t,n){var r=a(e),o=wJ(YK(t),!0);return!0===o?OJ(r).set(t,n):o[r.id]=n,e};return FZ(i,{delete:function(e){var t=a(this);if(!GK(e))return!1;var n=wJ(e);return!0===n?OJ(t).delete(e):n&&xK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!GK(e))return!1;var n=wJ(e);return!0===n?OJ(t).has(e):n&&xK(n,t.id)}}),FZ(i,n?{get:function(e){var t=a(this);if(GK(e)){var n=wJ(e);return!0===n?OJ(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}},_J=hX.enforce,PJ=!tK.ActiveXObject&&"ActiveXObject"in tK,jJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},NJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=tK[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=aK(u[e]);xX(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!GK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!GK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!GK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(LX(e,!BK(a)||!(o||u.forEach&&!uK((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),zZ.enable();else if(LX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=uK((function(){f.has(1)})),h=function(e,t){if(!nJ)return!1;var n=!1;try{var r={};r[tJ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&uK((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){eJ(e,u);var n=function(e,t,n){var r,o;return nZ&&BK(r=t.constructor)&&r!==n&&GK(o=r.prototype)&&o!==n.prototype&&nZ(e,o),e}(new a,e,s);return null!=t&&JZ(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,MX({global:!0,forced:s!=a},l),ZX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",jJ,TJ);if(tX&&PJ){FJ=TJ.getConstructor(jJ,"WeakMap",!0),zZ.enable();var IJ=NJ.prototype,LJ=aK(IJ.delete),RJ=aK(IJ.has),MJ=aK(IJ.get),zJ=aK(IJ.set);FZ(IJ,{delete:function(e){if(GK(e)&&!RZ(e)){var t=_J(this);return t.frozen||(t.frozen=new FJ),LJ(this,e)||t.frozen.delete(e)}return LJ(this,e)},has:function(e){if(GK(e)&&!RZ(e)){var t=_J(this);return t.frozen||(t.frozen=new FJ),RJ(this,e)||t.frozen.has(e)}return RJ(this,e)},get:function(e){if(GK(e)&&!RZ(e)){var t=_J(this);return t.frozen||(t.frozen=new FJ),RJ(this,e)?MJ(this,e):t.frozen.get(e)}return MJ(this,e)},set:function(e,t){if(GK(e)&&!RZ(e)){var n=_J(this);n.frozen||(n.frozen=new FJ),RJ(this,e)?zJ(this,e,t):n.frozen.set(e,t)}else zJ(this,e,t);return this}})}var $J={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},HJ=QK("span").classList,VJ=HJ&&HJ.constructor&&HJ.constructor.prototype,UJ=VJ===Object.prototype?void 0:VJ,WJ=WK("iterator"),GJ=WK("toStringTag"),qJ=dZ.values,KJ=function(e,t){if(e){if(e[WJ]!==qJ)try{rX(e,WJ,qJ)}catch(t){e[WJ]=qJ}if(e[GJ]||rX(e,GJ,t),$J[t])for(var n in dZ)if(e[n]!==dZ[n])try{rX(e,n,dZ[n])}catch(t){e[n]=dZ[n]}}};for(var YJ in $J)KJ(tK[YJ]&&tK[YJ].prototype,YJ);KJ(UJ,"DOMTokenList");var XJ=new WeakMap,ZJ={type:"list-item",renderElem:function(e,t,n){XJ.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="";if(void 0!==a&&a){var l=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=nk.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Hf.previous(c),d=Pf.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=l+"."}else 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);var c=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];rd.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Ig("div",{style:u},Ig("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Ig("span",null,t))}},JJ=function(e,t){return JJ=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])},JJ(e,t);
|
|
54
|
+
/*! *****************************************************************************
|
|
55
|
+
Copyright (c) Microsoft Corporation.
|
|
56
|
+
|
|
57
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
58
|
+
purpose with or without fee is hereby granted.
|
|
59
|
+
|
|
60
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
61
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
62
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
63
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
64
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
65
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
66
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
67
|
+
***************************************************************************** */};function QJ(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}JJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function eQ(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 tQ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function nQ(e){return Pf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===nk.findPath(e,t).length}})}var rQ=kY.includes;MX({target:"Array",proto:!0},{includes:function(e){return rQ(this,e,arguments.length>1?arguments[1]:void 0)}}),qY("includes");var oQ,iQ,aQ=function(){var e=YK(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},uQ=tK.RegExp,sQ=uK((function(){var e=uQ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),lQ=sQ||uK((function(){return!uQ("a","y").sticky})),cQ={BROKEN_CARET:sQ||uK((function(){var e=uQ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:lQ,UNSUPPORTED_Y:sQ},fQ=tK.RegExp,dQ=uK((function(){var e=fQ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),pQ=tK.RegExp,hQ=uK((function(){var e=pQ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),gQ=hX.get,vQ=wK("native-string-replace",String.prototype.replace),yQ=RegExp.prototype.exec,mQ=yQ,bQ=aK("".charAt),wQ=aK("".indexOf),EQ=aK("".replace),DQ=aK("".slice),CQ=(iQ=/b*/g,nY(yQ,oQ=/a/,"a"),nY(yQ,iQ,"a"),0!==oQ.lastIndex||0!==iQ.lastIndex),xQ=cQ.BROKEN_CARET,SQ=void 0!==/()??/.exec("")[1];(CQ||SQ||xQ||dQ||hQ)&&(mQ=function(e){var t,n,r,o,i,a,u,s=this,l=gQ(s),c=EZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=nY(mQ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xQ&&s.sticky,h=nY(aQ,s),g=s.source,v=0,y=c;if(p&&(h=EQ(h,"y",""),-1===wQ(h,"g")&&(h+="g"),y=DQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==bQ(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),SQ&&(n=new RegExp("^"+g+"$(?!\\s)",h)),CQ&&(r=s.lastIndex),o=nY(yQ,p?n:s,y),p?o?(o.input=DQ(o.input,v),o[0]=DQ(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:CQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),SQ&&o&&o.length>1&&nY(vQ,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=UY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var AQ=mQ;MX({target:"RegExp",proto:!0,forced:/./.exec!==AQ},{exec:AQ});var OQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return nk.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||!!nk.getSelectedElems(e).some((function(t){if(Pf.isVoid(e,t)&&Pf.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)?Ed.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):Ed.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),kQ='<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>',BQ='<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>',FQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=HP("listModule.unOrderedList"),t.iconSvg=kQ,t}return QJ(t,e),t}(OQ),TQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=HP("listModule.orderedList"),t.iconSvg=BQ,t}return QJ(t,e),t}(OQ),_Q={key:"bulletedList",factory:function(){return new FQ}},PQ={key:"numberedList",factory:function(){return new TQ}},jQ=[],NQ={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=XJ.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=nk.findPath(t,e);if(0===s[0])return u+1;var l=Hf.previous(s),c=Pf.node(t,l);if(!c)return 0;var f=tQ(c,1)[0];if(nk.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+">",jQ.push(i);var s=function(e){var t=XJ.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=nk.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Hf.next(s),c=Pf.node(t,l);if(!c)return 0;var f=tQ(c,1)[0];if(nk.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+="</"+jQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},IQ=WK("species"),LQ=bJ.filter,RQ=RK>=51||!uK((function(){var e=[];return(e.constructor={})[IQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo}));MX({target:"Array",proto:!0,forced:!RQ},{filter:function(e){return LQ(this,e,arguments.length>1?arguments[1]:void 0)}});var MQ=Function.prototype,zQ=MQ.apply,$Q=MQ.bind,HQ=MQ.call,VQ="object"==typeof Reflect&&Reflect.apply||($Q?HQ.bind(zQ):function(){return HQ.apply(zQ,arguments)}),UQ=(WK("species"),RegExp.prototype),WQ=AZ.charAt,GQ=function(e,t,n){return t+(n?WQ(e,t).length:1)},qQ=Math.floor,KQ=aK("".charAt),YQ=aK("".replace),XQ=aK("".slice),ZQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,JQ=/\$([$&'`]|\d{1,2})/g,QQ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=JQ;return void 0!==o&&(o=DK(o),s=ZQ),YQ(i,s,(function(i,s){var l;switch(KQ(s,0)){case"$":return"$";case"&":return e;case"`":return XQ(t,0,n);case"'":return XQ(t,a);case"<":l=o[XQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=qQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?KQ(s,1):r[f-1]+KQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},e0=tK.TypeError,t0=function(e,t){var n=e.exec;if(BK(n)){var r=nY(n,e,t);return null!==r&&YK(r),r}if("RegExp"===cK(e))return nY(AQ,e,t);throw e0("RegExp#exec called on incompatible receiver")},n0=WK("replace"),r0=Math.max,o0=Math.min,i0=aK([].concat),a0=aK([].push),u0=aK("".indexOf),s0=aK("".slice),l0="$0"==="a".replace(/./,"$0"),c0=!!/./[n0]&&""===/./[n0]("a","$0");!function(e,t,n,r){var o=WK(e),i=!uK((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!uK((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=aK(/./[o]),s=function(e,t,n){var r=c0?"$":"$0";return[function(e,n){var r=gK(this),o=null==e?void 0:cY(e,n0);return o?nY(o,e,r,n):nY(t,EZ(r),e,n)},function(e,o){var i=YK(this),a=EZ(e);if("string"==typeof o&&-1===u0(o,r)&&-1===u0(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=BK(o);s||(o=EZ(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=t0(i,a);if(null===d)break;if(a0(f,d),!l)break;""===EZ(d[0])&&(i.lastIndex=GQ(a,SY(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=EZ((d=f[v])[0]),m=r0(o0(wY(d.index),a.length),0),b=[],w=1;w<d.length;w++)a0(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=i0([y],b,m,a);void 0!==E&&a0(D,E);var C=EZ(VQ(o,void 0,D))}else C=QQ(y,a,m,b,E,o);m>=g&&(h+=s0(a,g,m)+C,g=m+y.length)}return h+s0(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=aK(e),s=t.exec;return s===AQ||s===UQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));xX(String.prototype,e,s[0]),xX(UQ,o,s[1])}}("replace",0,!!uK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!l0||c0);var f0=tK.TypeError,d0=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&HZ(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&iJ(s))l=AY(s),c=d0(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw f0("Exceed the acceptable array length");e[c]=s}c++}f++}return c},p0=d0;function h0(e){return e.length?e[0].tagName.toLowerCase():""}MX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=DK(this),n=AY(t),r=vJ(t,0);return r.length=p0(r,t,t,n,0,void 0===e?1:wY(e)),r}}),qY("flat"),MX({global:!0},{globalThis:tK}),lh&&(Hp.fn.append=lh),Gp&&(Hp.fn.attr=Gp),fh&&(Hp.fn.parent=fh);var g0={renderElems:[ZJ],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(Xf.isExpanded(n))t(e);else{var r=nk.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?Ed.setNodes(o,{level:a-1}):Ed.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(Xf.isCollapsed(a)){var u=nk.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 Ed.setNodes(o,{level:l+1})}}if(Xf.isExpanded(a)){var c=0,f=!1;try{for(var d=eQ(nQ(o)),p=d.next();!p.done;p=d.next()){var h=tQ(p.value,1)[0];"list-item"===nk.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}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=eQ(nQ(o)),v=g.next();!v.done;v=g.next()){var y=tQ(v.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,Ed.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=tQ(e,2),n=t[0],i=t[1],a=nk.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||Ed.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[_Q,PQ],elemsToHtml:[NQ],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!!rd.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===h0(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=h0(n);"ul"===r||"ol"===r;)r=h0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},v0=a((function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",E="[object DataView]",D=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,x={};x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x[i]=x[a]=x[w]=x[u]=x[E]=x[s]=x[l]=x[c]=x[f]=x[d]=x[p]=x[g]=x[v]=x[y]=x[b]=!1;var S="object"==typeof o&&o&&o.Object===Object&&o,A="object"==typeof self&&self&&self.Object===Object&&self,O=S||A||Function("return this")(),k=t&&!t.nodeType&&t,B=k&&e&&!e.nodeType&&e,F=B&&B.exports===k,T=F&&S.process,_=function(){try{return T&&T.binding&&T.binding("util")}catch(o){}}(),P=_&&_.isTypedArray;function j(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 N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function I(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var L=Array.prototype,R=Function.prototype,M=Object.prototype,z=O["__core-js_shared__"],$=R.toString,H=M.hasOwnProperty,V=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U=M.toString,W=RegExp("^"+$.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=F?O.Buffer:void 0,q=O.Symbol,K=O.Uint8Array,Y=M.propertyIsEnumerable,X=L.splice,Z=q?q.toStringTag:void 0,J=Object.getOwnPropertySymbols,Q=G?G.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Be(O,"DataView"),ne=Be(O,"Map"),re=Be(O,"Promise"),oe=Be(O,"Set"),ie=Be(O,"WeakMap"),ae=Be(Object,"create"),ue=Pe(te),se=Pe(ne),le=Pe(re),ce=Pe(oe),fe=Pe(ie),de=q?q.prototype:void 0,pe=de?de.valueOf:void 0;function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ve;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ge(e);this.size=t.size}function be(e,t){var n=Ie(e),r=!n&&Ne(e),o=!n&&!r&&Le(e),i=!n&&!r&&!o&&He(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&&!H.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||_e(l,s))||u.push(l);return u}function we(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=H.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var o=U.call(e);return r&&(t?e[Z]=n:delete e[Z]),o}(e):function(e){return U.call(e)}(e)}function De(e){return $e(e)&&Ee(e)==i}function Ce(e,t,n,r,o){return e===t||(null==e||null==t||!$e(e)&&!$e(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=Ie(e),b=Ie(t),D=h?a:Te(e),C=b?a:Te(t),x=(D=D==i?p:D)==p,S=(C=C==i?p:C)==p,A=D==C;if(A&&Le(e)){if(!Le(t))return!1;h=!0,x=!1}if(A&&!x)return c||(c=new me),h||He(e)?Ae(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!i(new K(e),new K(t)));case u:case s:case d:return je(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=N;case v:var p=1&r;if(c||(c=I),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Ae(c(e),c(t),r,o,i,a);return a.delete(e),b;case m:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,D,n,r,o,c);if(!(1&n)){var O=x&&H.call(e,"__wrapped__"),k=S&&H.call(t,"__wrapped__");if(O||k){var B=O?e.value():e,F=k?t.value():t;return c||(c=new me),o(B,F,n,r,c)}}return!!A&&(c||(c=new me),function(e,t,n,r,o,i){var a=1&n,u=Oe(e),s=u.length,l=Oe(t).length;if(s!=l&&!a)return!1;for(var c=s;c--;){var f=u[c];if(!(a?f in t:H.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<s;){var g=e[f=u[c]],v=t[f];if(r)var y=a?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,c))}(e,t,n,r,Ce,o))}function xe(e){return!(!ze(e)||function(e){return!!V&&V in e}(e))&&(Re(e)?W:D).test(Pe(e))}function Se(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||M,t!==r)return ee(e);var t,n,r,o=[];for(var i in Object(e))H.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ae(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!j(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 Oe(e){return function(e,t,n){var r=t(e);return Ie(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,Ve,Fe)}function ke(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 Be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(n)?n:void 0}he.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ae){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:H.call(t,e)},he.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ae&&void 0===t?n:t,this},ge.prototype.clear=function(){this.__data__=[],this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0)&&(n==t.length-1?t.pop():X.call(t,n,1),--this.size,!0)},ge.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ge.prototype.has=function(e){return we(this.__data__,e)>-1},ge.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(ne||ge),string:new he}},ve.prototype.delete=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return ke(this,e).get(e)},ve.prototype.has=function(e){return ke(this,e).has(e)},ve.prototype.set=function(e,t){var n=ke(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,n),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ge,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ge){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Fe=J?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,n,e)&&(i[o++]=a)}return i}(J(e),(function(t){return Y.call(e,t)})))}:function(){return[]},Te=Ee;function _e(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Pe(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(te&&Te(new te(new ArrayBuffer(1)))!=E||ne&&Te(new ne)!=f||re&&Te(re.resolve())!=h||oe&&Te(new oe)!=v||ie&&Te(new ie)!=b)&&(Te=function(e){var t=Ee(e),n=t==p?e.constructor:void 0,r=n?Pe(n):"";if(r)switch(r){case ue:return E;case se:return f;case le:return h;case ce:return v;case fe:return b}return t});var Ne=De(function(){return arguments}())?De:function(e){return $e(e)&&H.call(e,"callee")&&!Y.call(e,"callee")},Ie=Array.isArray,Le=Q||function(){return!1};function Re(e){if(!ze(e))return!1;var t=Ee(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function $e(e){return null!=e&&"object"==typeof e}var He=P?function(e){return function(t){return e(t)}}(P):function(e){return $e(e)&&Me(e.length)&&!!x[Ee(e)]};function Ve(e){return null!=(t=e)&&Me(t.length)&&!Re(t)?be(e):Se(e);var t}e.exports=function(e,t){return Ce(e,t)}}));$P("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"}}),$P("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var y0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function m0(e){var t={exports:{}};return e(t,t.exports),t.exports}var b0,w0,E0=function(e){return e&&e.Math==Math&&e},D0=E0("object"==typeof globalThis&&globalThis)||E0("object"==typeof window&&window)||E0("object"==typeof self&&self)||E0("object"==typeof y0&&y0)||function(){return this}()||Function("return this")(),C0=function(e){try{return!!e()}catch(e){return!0}},x0=!C0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S0=Function.prototype.call,A0=S0.bind?S0.bind(S0):function(){return S0.apply(S0,arguments)},O0={}.propertyIsEnumerable,k0=Object.getOwnPropertyDescriptor,B0={f:k0&&!O0.call({1:2},1)?function(e){var t=k0(this,e);return!!t&&t.enumerable}:O0},F0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},T0=Function.prototype,_0=T0.bind,P0=T0.call,j0=_0&&_0.bind(P0),N0=_0?function(e){return e&&j0(P0,e)}:function(e){return e&&function(){return P0.apply(e,arguments)}},I0=N0({}.toString),L0=N0("".slice),R0=function(e){return L0(I0(e),8,-1)},M0=D0.Object,z0=N0("".split),$0=C0((function(){return!M0("z").propertyIsEnumerable(0)}))?function(e){return"String"==R0(e)?z0(e,""):M0(e)}:M0,H0=D0.TypeError,V0=function(e){if(null==e)throw H0("Can't call method on "+e);return e},U0=function(e){return $0(V0(e))},W0=function(e){return"function"==typeof e},G0=function(e){return"object"==typeof e?null!==e:W0(e)},q0=function(e){return W0(e)?e:void 0},K0=function(e,t){return arguments.length<2?q0(D0[e]):D0[e]&&D0[e][t]},Y0=N0({}.isPrototypeOf),X0=K0("navigator","userAgent")||"",Z0=D0.process,J0=D0.Deno,Q0=Z0&&Z0.versions||J0&&J0.version,e1=Q0&&Q0.v8;e1&&(w0=(b0=e1.split("."))[0]>0&&b0[0]<4?1:+(b0[0]+b0[1])),!w0&&X0&&(!(b0=X0.match(/Edge\/(\d+)/))||b0[1]>=74)&&(b0=X0.match(/Chrome\/(\d+)/))&&(w0=+b0[1]);var t1=w0,n1=!!Object.getOwnPropertySymbols&&!C0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t1&&t1<41})),r1=n1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,o1=D0.Object,i1=r1?function(e){return"symbol"==typeof e}:function(e){var t=K0("Symbol");return W0(t)&&Y0(t.prototype,o1(e))},a1=D0.String,u1=function(e){try{return a1(e)}catch(e){return"Object"}},s1=D0.TypeError,l1=function(e){if(W0(e))return e;throw s1(u1(e)+" is not a function")},c1=function(e,t){var n=e[t];return null==n?void 0:l1(n)},f1=D0.TypeError,d1=Object.defineProperty,p1=function(e,t){try{d1(D0,e,{value:t,configurable:!0,writable:!0})}catch(a){D0[e]=t}return t},h1=D0["__core-js_shared__"]||p1("__core-js_shared__",{}),g1=m0((function(e){(e.exports=function(e,t){return h1[e]||(h1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),v1=D0.Object,y1=function(e){return v1(V0(e))},m1=N0({}.hasOwnProperty),b1=Object.hasOwn||function(e,t){return m1(y1(e),t)},w1=0,E1=Math.random(),D1=N0(1..toString),C1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+D1(++w1+E1,36)},x1=g1("wks"),S1=D0.Symbol,A1=S1&&S1.for,O1=r1?S1:S1&&S1.withoutSetter||C1,k1=function(e){if(!b1(x1,e)||!n1&&"string"!=typeof x1[e]){var t="Symbol."+e;n1&&b1(S1,e)?x1[e]=S1[e]:x1[e]=r1&&A1?A1(t):O1(t)}return x1[e]},B1=D0.TypeError,F1=k1("toPrimitive"),T1=function(e){var t=function(e,t){if(!G0(e)||i1(e))return e;var n,r=c1(e,F1);if(r){if(void 0===t&&(t="default"),n=A0(r,e,t),!G0(n)||i1(n))return n;throw B1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&W0(n=e.toString)&&!G0(r=A0(n,e)))return r;if(W0(n=e.valueOf)&&!G0(r=A0(n,e)))return r;if("string"!==t&&W0(n=e.toString)&&!G0(r=A0(n,e)))return r;throw f1("Can't convert object to primitive value")}(e,t)}(e,"string");return i1(t)?t:t+""},_1=D0.document,P1=G0(_1)&&G0(_1.createElement),j1=function(e){return P1?_1.createElement(e):{}},N1=!x0&&!C0((function(){return 7!=Object.defineProperty(j1("div"),"a",{get:function(){return 7}}).a})),I1=Object.getOwnPropertyDescriptor,L1={f:x0?I1:function(e,t){if(e=U0(e),t=T1(t),N1)try{return I1(e,t)}catch(e){}if(b1(e,t))return F0(!A0(B0.f,e,t),e[t])}},R1=D0.String,M1=D0.TypeError,z1=function(e){if(G0(e))return e;throw M1(R1(e)+" is not an object")},$1=D0.TypeError,H1=Object.defineProperty,V1={f:x0?H1:function(e,t,n){if(z1(e),t=T1(t),z1(n),N1)try{return H1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},U1=x0?function(e,t,n){return V1.f(e,t,F0(1,n))}:function(e,t,n){return e[t]=n,e},W1=N0(Function.toString);W0(h1.inspectSource)||(h1.inspectSource=function(e){return W1(e)});var G1,q1,K1,Y1=h1.inspectSource,X1=D0.WeakMap,Z1=W0(X1)&&/native code/.test(Y1(X1)),J1=g1("keys"),Q1=function(e){return J1[e]||(J1[e]=C1(e))},e2={},t2=D0.TypeError,n2=D0.WeakMap;if(Z1||h1.state){var r2=h1.state||(h1.state=new n2),o2=N0(r2.get),i2=N0(r2.has),a2=N0(r2.set);G1=function(e,t){if(i2(r2,e))throw new t2("Object already initialized");return t.facade=e,a2(r2,e,t),t},q1=function(e){return o2(r2,e)||{}},K1=function(e){return i2(r2,e)}}else{var u2=Q1("state");e2[u2]=!0,G1=function(e,t){if(b1(e,u2))throw new t2("Object already initialized");return t.facade=e,U1(e,u2,t),t},q1=function(e){return b1(e,u2)?e[u2]:{}},K1=function(e){return b1(e,u2)}}var s2={set:G1,get:q1,has:K1,enforce:function(e){return K1(e)?q1(e):G1(e,{})},getterFor:function(e){return function(t){var n;if(!G0(t)||(n=q1(t)).type!==e)throw t2("Incompatible receiver, "+e+" required");return n}}},l2=Function.prototype,c2=x0&&Object.getOwnPropertyDescriptor,f2=b1(l2,"name"),d2={EXISTS:f2,PROPER:f2&&"something"===function(){}.name,CONFIGURABLE:f2&&(!x0||x0&&c2(l2,"name").configurable)},p2=m0((function(e){var t=d2.CONFIGURABLE,n=s2.get,r=s2.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;W0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b1(i,"name")||t&&i.name!==f)&&U1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==D0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:U1(e,n,i)):l?e[n]=i:p1(n,i)})(Function.prototype,"toString",(function(){return W0(this)&&n(this).source||Y1(this)}))})),h2=Math.ceil,g2=Math.floor,v2=function(e){var t=+e;return t!=t||0===t?0:(t>0?g2:h2)(t)},y2=Math.max,m2=Math.min,b2=function(e,t){var n=v2(e);return n<0?y2(n+t,0):m2(n,t)},w2=Math.min,E2=function(e){return e>0?w2(v2(e),9007199254740991):0},D2=function(e){return E2(e.length)},C2=function(e){return function(t,n,r){var o,i=U0(t),a=D2(i),u=b2(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}},x2=(C2(!0),C2(!1)),S2=N0([].push),A2=function(e,t){var n,r=U0(e),o=0,i=[];for(n in r)!b1(e2,n)&&b1(r,n)&&S2(i,n);for(;t.length>o;)b1(r,n=t[o++])&&(~x2(i,n)||S2(i,n));return i},O2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],k2=O2.concat("length","prototype"),B2={f:Object.getOwnPropertyNames||function(e){return A2(e,k2)}},F2={f:Object.getOwnPropertySymbols},T2=N0([].concat),_2=K0("Reflect","ownKeys")||function(e){var t=B2.f(z1(e)),n=F2.f;return n?T2(t,n(e)):t},P2=function(e,t){for(var n=_2(t),r=V1.f,o=L1.f,i=0;i<n.length;i++){var a=n[i];b1(e,a)||r(e,a,o(t,a))}},j2=/#|\.prototype\./,N2=function(e,t){var n=L2[I2(e)];return n==M2||n!=R2&&(W0(t)?C0(t):!!t)},I2=N2.normalize=function(e){return String(e).replace(j2,".").toLowerCase()},L2=N2.data={},R2=N2.NATIVE="N",M2=N2.POLYFILL="P",z2=N2,$2=L1.f,H2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?D0:l?D0[u]||p1(u,{}):(D0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$2(n,r))&&a.value:n[r],!z2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;P2(i,o)}(e.sham||o&&o.sham)&&U1(i,"sham",!0),p2(n,r,i,e)}},V2={};V2[k1("toStringTag")]="z";var U2="[object z]"===String(V2),W2=k1("toStringTag"),G2=D0.Object,q2="Arguments"==R0(function(){return arguments}()),K2=U2?R0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=G2(e),W2))?n:q2?R0(t):"Object"==(r=R0(t))&&W0(t.callee)?"Arguments":r},Y2=D0.String,X2=function(e){if("Symbol"===K2(e))throw TypeError("Cannot convert a Symbol value to a string");return Y2(e)},Z2=/"/g,J2=N0("".replace);H2({target:"String",proto:!0,forced:C0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=X2(V0(this)),r="<a",(r+=' name="'+J2(X2(t),Z2,""")+'"')+">"+n+"</a>";var t,n,r}});var Q2,e4=function(){var e=z1(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},t4=D0.RegExp,n4=C0((function(){var e=t4("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),r4=n4||C0((function(){return!t4("a","y").sticky})),o4={BROKEN_CARET:n4||C0((function(){var e=t4("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:r4,UNSUPPORTED_Y:n4},i4=Object.keys||function(e){return A2(e,O2)},a4=x0?Object.defineProperties:function(e,t){z1(e);for(var n,r=U0(t),o=i4(t),i=o.length,a=0;i>a;)V1.f(e,n=o[a++],r[n]);return e},u4=K0("document","documentElement"),s4=Q1("IE_PROTO"),l4=function(){},c4=function(e){return"<script>"+e+"<\/script>"},f4=function(e){e.write(c4("")),e.close();var t=e.parentWindow.Object;return e=null,t},d4=function(){try{Q2=new ActiveXObject("htmlfile")}catch(e){}var e,t;d4="undefined"!=typeof document?document.domain&&Q2?f4(Q2):((t=j1("iframe")).style.display="none",u4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(c4("document.F=Object")),e.close(),e.F):f4(Q2);for(var n=O2.length;n--;)delete d4.prototype[O2[n]];return d4()};e2[s4]=!0;var p4,h4,g4=Object.create||function(e,t){var n;return null!==e?(l4.prototype=z1(e),n=new l4,l4.prototype=null,n[s4]=e):n=d4(),void 0===t?n:a4(n,t)},v4=D0.RegExp,y4=C0((function(){var e=v4(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),m4=D0.RegExp,b4=C0((function(){var e=m4("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),w4=s2.get,E4=g1("native-string-replace",String.prototype.replace),D4=RegExp.prototype.exec,C4=D4,x4=N0("".charAt),S4=N0("".indexOf),A4=N0("".replace),O4=N0("".slice),k4=(h4=/b*/g,A0(D4,p4=/a/,"a"),A0(D4,h4,"a"),0!==p4.lastIndex||0!==h4.lastIndex),B4=o4.BROKEN_CARET,F4=void 0!==/()??/.exec("")[1];(k4||F4||B4||y4||b4)&&(C4=function(e){var t,n,r,o,i,a,u,s=this,l=w4(s),c=X2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=A0(C4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=B4&&s.sticky,h=A0(e4,s),g=s.source,v=0,y=c;if(p&&(h=A4(h,"y",""),-1===S4(h,"g")&&(h+="g"),y=O4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==x4(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),F4&&(n=new RegExp("^"+g+"$(?!\\s)",h)),k4&&(r=s.lastIndex),o=A0(D4,p?n:s,y),p?o?(o.input=O4(o.input,v),o[0]=O4(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:k4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),F4&&o&&o.length>1&&A0(E4,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=g4(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var T4=C4;H2({target:"RegExp",proto:!0,forced:/./.exec!==T4},{exec:T4});var _4=Array.isArray||function(e){return"Array"==R0(e)},P4=function(){},j4=[],N4=K0("Reflect","construct"),I4=/^\s*(?:class|function)\b/,L4=N0(I4.exec),R4=!I4.exec(P4),M4=function(e){if(!W0(e))return!1;try{return N4(P4,j4,e),!0}catch(e){return!1}},z4=!N4||C0((function(){var e;return M4(M4.call)||!M4(Object)||!M4((function(){e=!0}))||e}))?function(e){if(!W0(e))return!1;switch(K2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return R4||!!L4(I4,Y1(e))}:M4,$4=function(e,t,n){var r=T1(t);r in e?V1.f(e,r,F0(0,n)):e[r]=n},H4=k1("species"),V4=function(e){return t1>=51||!C0((function(){var t=[];return(t.constructor={})[H4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},U4=N0([].slice),W4=V4("slice"),G4=k1("species"),q4=D0.Array,K4=Math.max;function Y4(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function X4(e){var t=e.selection;if(null==t)return!1;var n=Y4(Pf.nodes(e,{match:function(e){return nk.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=Y4(n,2)[1],o=Pf.start(e,r);if(Gf.equals(t.anchor,o))return!0}return!1}function Z4(e,t){var n,r,o=Pf.nodes(e,{at:t,match:function(e){return"table"===nk.getNodeType(e)}}),i=!1;try{for(var a=
|
|
68
|
+
/*! *****************************************************************************
|
|
69
|
+
Copyright (c) Microsoft Corporation.
|
|
70
|
+
|
|
71
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
72
|
+
purpose with or without fee is hereby granted.
|
|
73
|
+
|
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
75
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
76
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
77
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
78
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
79
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
80
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
81
|
+
***************************************************************************** */
|
|
82
|
+
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(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}H2({target:"Array",proto:!0,forced:!W4},{slice:function(e,t){var n,r,o,i=U0(this),a=D2(i),u=b2(e,a),s=b2(void 0===t?a:t,a);if(_4(i)&&(n=i.constructor,(z4(n)&&(n===q4||_4(n.prototype))||G0(n)&&null===(n=n[G4]))&&(n=void 0),n===q4||void 0===n))return U4(i,u,s);for(r=new(void 0===n?q4:n)(K4(s-u,0)),o=0;u<s;u++,o++)u in i&&$4(r,o,i[u]);return r.length=o,r}});var J4=N0(N0.bind),Q4=k1("species"),e6=D0.Array,t6=function(e,t){return new(function(e){var t;return _4(e)&&(t=e.constructor,(z4(t)&&(t===e6||_4(t.prototype))||G0(t)&&null===(t=t[Q4]))&&(t=void 0)),void 0===t?e6:t}(e))(0===t?0:t)},n6=N0([].push),r6=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=y1(s),g=$0(h),v=function(e,t){return l1(e),void 0===t?e:J4?J4(e,t):function(){return e.apply(t,arguments)}}(l,c),y=D2(g),m=0,b=f||t6,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:n6(w,d)}else switch(e){case 4:return!1;case 7:n6(w,d)}return i?-1:r||o?o:w}},o6={forEach:r6(0),map:r6(1),filter:r6(2),some:r6(3),every:r6(4),find:r6(5),findIndex:r6(6),filterReject:r6(7)},i6=o6.map;H2({target:"Array",proto:!0,forced:!V4("map")},{map:function(e){return i6(this,e,arguments.length>1?arguments[1]:void 0)}});var a6=U2?{}.toString:function(){return"[object "+K2(this)+"]"};function u6(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function s6(e){return u6(e).every((function(e){return!!e.isHeader}))}U2||p2(Object.prototype,"toString",a6,{unsafe:!0});var l6=d2.PROPER,c6=RegExp.prototype,f6=c6.toString,d6=N0(e4),p6=C0((function(){return"/a/b"!=f6.call({source:"a",flags:"b"})})),h6=l6&&"toString"!=f6.name;(p6||h6)&&p2(RegExp.prototype,"toString",(function(){var e=z1(this),t=X2(e.source),n=e.flags;return"/"+t+"/"+X2(void 0===n&&Y0(c6,e)&&!("flags"in c6)?d6(e):n)}),{unsafe:!0});var g6=k1("unscopables"),v6=Array.prototype;null==v6[g6]&&V1.f(v6,g6,{configurable:!0,value:g4(null)});var y6=o6.find,m6=!0;"find"in[]&&Array(1).find((function(){m6=!1})),H2({target:"Array",proto:!0,forced:m6},{find:function(e){return y6(this,e,arguments.length>1?arguments[1]:void 0)}}),v6[g6].find=!0;var b6=Function.prototype,w6=b6.apply,E6=b6.bind,D6=b6.call,C6="object"==typeof Reflect&&Reflect.apply||(E6?D6.bind(w6):function(){return D6.apply(w6,arguments)}),x6=k1("species"),S6=RegExp.prototype,A6=function(e,t,n,r){var o=k1(e),i=!C0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!C0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[x6]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=N0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=N0(e),s=t.exec;return s===T4||s===S6.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));p2(String.prototype,e,s[0]),p2(S6,o,s[1])}r&&U1(S6[o],"sham",!0)},O6=k1("match"),k6=D0.TypeError,B6=k1("species"),F6=N0("".charAt),T6=N0("".charCodeAt),_6=N0("".slice),P6=function(e){return function(t,n){var r,o,i=X2(V0(t)),a=v2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=T6(i,a))<55296||r>56319||a+1===u||(o=T6(i,a+1))<56320||o>57343?e?F6(i,a):r:e?_6(i,a,a+2):o-56320+(r-55296<<10)+65536}},j6=(P6(!1),P6(!0)),N6=function(e,t,n){return t+(n?j6(e,t).length:1)},I6=D0.Array,L6=Math.max,R6=function(e,t,n){for(var r=D2(e),o=b2(t,r),i=b2(void 0===n?r:n,r),a=I6(L6(i-o,0)),u=0;o<i;o++,u++)$4(a,u,e[o]);return a.length=u,a},M6=D0.TypeError,z6=function(e,t){var n=e.exec;if(W0(n)){var r=A0(n,e,t);return null!==r&&z1(r),r}if("RegExp"===R0(e))return A0(T4,e,t);throw M6("RegExp#exec called on incompatible receiver")},$6=o4.UNSUPPORTED_Y,H6=Math.min,V6=[].push,U6=N0(/./.exec),W6=N0(V6),G6=N0("".slice);A6("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=X2(V0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!G0(r=e)||!(void 0!==(o=r[O6])?o:"RegExp"==R0(r)))return A0(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=A0(T4,p,i))&&!((s=p.lastIndex)>d&&(W6(c,G6(i,d,u.index)),u.length>1&&u.index<i.length&&C6(V6,c,R6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&U6(p,"")||W6(c,""):W6(c,G6(i,d)),c.length>a?R6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:A0(t,this,e,n)}:t,[function(t,n){var o=V0(this),i=null==t?void 0:c1(t,e);return i?A0(i,t,o,n):A0(r,X2(o),t,n)},function(e,o){var i=z1(this),a=X2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=z1(e).constructor;return void 0===r||null==(n=z1(r)[B6])?t:function(e){if(z4(e))return e;throw k6(u1(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+($6?"g":"y"),f=new s($6?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===z6(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=$6?0:h;var v,y=z6(f,$6?G6(a,h):a);if(null===y||(v=H6(E2(f.lastIndex+($6?h:0)),a.length))===p)h=N6(a,h,l);else{if(W6(g,G6(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(W6(g,y[m]),g.length===d)return g;h=p=v}}return W6(g,G6(a,p)),g}]}),!!C0((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]})),$6);var q6="\t\n\v\f\r \u2028\u2029\ufeff",K6=N0("".replace),Y6="["+q6+"]",X6=RegExp("^"+Y6+Y6+"*"),Z6=RegExp(Y6+Y6+"*$"),J6=function(e){return function(t){var n=X2(V0(t));return 1&e&&(n=K6(n,X6,"")),2&e&&(n=K6(n,Z6,"")),n}},Q6={start:J6(1),end:J6(2),trim:J6(3)},e3=d2.PROPER,t3=Q6.trim;function n3(e){return e.length?e[0].tagName.toLowerCase():""}H2({target:"String",proto:!0,forced:function(e){return C0((function(){return!!q6[e]()||"
"!=="
"[e]()||e3&&q6[e].name!==e}))}("trim")},{trim:function(){return t3(this)}}),H2({global:!0},{globalThis:D0}),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 r3=!1,o3=0,i3=0,a3=null,u3=null,s3=Hp("body");function l3(e){r3=!1,u3=null,a3=null,s3.off("mousemove",c3),s3.off("mouseup",l3)}s3.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(),r3=!0;var n=e.clientX;o3=n;var r=t.getBoundingClientRect().width;i3=r,s3.on("mousemove",c3),s3.on("mouseup",l3)}}));var c3=rg((function(e){if(r3&&null!=u3&&null!=a3){e.preventDefault();var t=e.clientX,n=i3+(t-o3);(n=Math.floor(100*n)/100)<30&&(n=30),Ed.setNodes(u3,{width:n.toString()},{at:a3})}}),100),f3={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(Xf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=nk.findPath(e,t),a=Pf.start(e,i),u=Pf.end(e,i),s=Gf.compare(r,u)<=0&&Gf.compare(r,a)>=0,l=Gf.compare(o,u)<=0&&Gf.compare(o,a)>=0;return!!(s&&l&&Hf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Ig("div",{className:"table-container","data-selected":nk.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=nk.findPath(n,e),o=Pf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Ig("table",{width:i,contentEditable:r},Ig("colgroup",null,u6(e).map((function(e){var t=e.width;return Ig("col",{width:void 0===t?"auto":t})}))),Ig("tbody",null,t)));return a}},d3={type:"table-row",renderElem:function(e,t,n){return Ig("tr",null,t)}},p3={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=nk.getParentNode(e,t);if(null==n)return!1;var r=nk.getParentNode(e,n);return null!=r&&u6(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,c=void 0!==l&&l;if(!r)return Ig("td",{colSpan:a,rowSpan:s},t);var f=Ig(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:rg((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;r3||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",u3=n,a3=nk.findPath(n,e)):r3||(r.style.cursor="auto",u3=null,a3=null))}}),100)}},t);return f}},h3={selector:"table",preParseHtml:function(e){var t=Hp(e);if("table"!==n3(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]}},g3=o6.filter;H2({target:"Array",proto:!0,forced:!V4("filter")},{filter:function(e){return g3(this,e,arguments.length>1?arguments[1]:void 0)}});var v3=Math.floor,y3=N0("".charAt),m3=N0("".replace),b3=N0("".slice),w3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,E3=/\$([$&'`]|\d{1,2})/g,D3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=E3;return void 0!==o&&(o=y1(o),s=w3),m3(i,s,(function(i,s){var l;switch(y3(s,0)){case"$":return"$";case"&":return e;case"`":return b3(t,0,n);case"'":return b3(t,a);case"<":l=o[b3(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=v3(c/10);return 0===f?i:f<=u?void 0===r[f-1]?y3(s,1):r[f-1]+y3(s,1):i}l=r[c-1]}return void 0===l?"":l}))},C3=k1("replace"),x3=Math.max,S3=Math.min,A3=N0([].concat),O3=N0([].push),k3=N0("".indexOf),B3=N0("".slice),F3="$0"==="a".replace(/./,"$0"),T3=!!/./[C3]&&""===/./[C3]("a","$0");A6("replace",(function(e,t,n){var r=T3?"$":"$0";return[function(e,n){var r=V0(this),o=null==e?void 0:c1(e,C3);return o?A0(o,e,r,n):A0(t,X2(r),e,n)},function(e,o){var i=z1(this),a=X2(e);if("string"==typeof o&&-1===k3(o,r)&&-1===k3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=W0(o);s||(o=X2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=z6(i,a);if(null===d)break;if(O3(f,d),!l)break;""===X2(d[0])&&(i.lastIndex=N6(a,E2(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=X2((d=f[v])[0]),m=x3(S3(v2(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=A3([y],b,m,a);void 0!==E&&O3(D,E);var C=X2(C6(o,void 0,D))}else C=D3(y,a,m,b,E,o);m>=g&&(h+=B3(a,g,m)+C,g=m+y.length)}return h+B3(a,g)}]}),!!C0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!F3||T3);var _3={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!!rd.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"===n3(r),colSpan:o,rowSpan:i,width:a,children:t}}},P3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===nk.getNodeType(e)}))}}},j3={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"===nk.getNodeType(e)}))}}},N3=function(){function e(){this.title=HP("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||!Xf.isCollapsed(t)||!!nk.getSelectedElems(e).some((function(t){var n=nk.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)){nk.isSelectedEmptyParagraph(e)&&Ed.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);Ed.insertNodes(e,i,{mode:"highest"})}},e}(),I3=function(){function e(){this.title=HP("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==nk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||Ed.removeNodes(e,{mode:"highest"})},e}(),L3=function(){function e(){this.title=HP("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||!Xf.isCollapsed(t)||null==nk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y4(Pf.nodes(e,{match:function(e){return nk.checkNodeType(e,"table-cell")},universal:!0}),1),r=Y4(n[0],2),o=r[0],i=r[1],a=nk.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=Hf.parent(i),f=Hf.next(c);Ed.insertNodes(e,s,{at:f})}}},e}(),R3=function(){function e(){this.title=HP("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||!Xf.isCollapsed(t)||null==nk.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y4(Pf.nodes(e,{match:function(e){return nk.checkNodeType(e,"table-row")},universal:!0}),1),r=Y4(n[0],2),o=r[0],i=r[1],a=nk.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?Ed.removeNodes(e,{mode:"highest"}):Ed.removeNodes(e,{at:i})}},e}(),M3={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},z3=j1("span").classList,$3=z3&&z3.constructor&&z3.constructor.prototype,H3=$3===Object.prototype?void 0:$3,V3=o6.forEach,U3=function(e,t){var n=[].forEach;return!!n&&C0((function(){n.call(null,(function(){throw 1}),1)}))}(),W3=U3?[].forEach:function(e){return V3(this,e,arguments.length>1?arguments[1]:void 0)},G3=function(e){if(e&&e.forEach!==W3)try{U1(e,"forEach",W3)}catch(i){e.forEach=W3}};for(var q3 in M3)M3[q3]&&G3(D0[q3]&&D0[q3].prototype);G3(H3);var K3=function(){function e(){this.title=HP("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||!Xf.isCollapsed(t)||null==nk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y4(Pf.nodes(e,{match:function(e){return nk.checkNodeType(e,"table-cell")},universal:!0}),1),r=Y4(n[0],2),o=r[0],i=r[1],a=nk.getParentNode(e,o);if(null!=a){var u=nk.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){Of.isElement(t)&&(t.children||[]).forEach((function(t){var r=nk.findPath(e,t);if(r.length===i.length&&v0(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&s6(u)&&(o.isHeader=!0),Ed.insertNodes(e,o,{at:r})}}))}))}}},e}(),Y3=function(){function e(){this.title=HP("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||!Xf.isCollapsed(t)||null==nk.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Y4(Pf.nodes(e,{match:function(e){return nk.checkNodeType(e,"table-cell")},universal:!0}),1),r=Y4(n[0],2),o=r[0],i=r[1],a=nk.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)Ed.removeNodes(e,{mode:"highest"});else{var s=nk.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){Of.isElement(t)&&(t.children||[]).forEach((function(t){var n=nk.findPath(e,t);n.length===i.length&&v0(n.slice(-1),i.slice(-1))&&Ed.removeNodes(e,{at:n})}))}))}}},e}(),X3=function(){function e(){this.title=HP("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=nk.getSelectedNodeByType(e,"table");return null!=t&&s6(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!Xf.isCollapsed(t)||null==nk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=nk.getSelectedNodeByType(e,"table");null!=r&&u6(r).forEach((function(t){return Ed.setNodes(e,{isHeader:n},{at:nk.findPath(e,t)})}))}},e}(),Z3=function(){function e(){this.title=HP("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=nk.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||!Xf.isCollapsed(t)||null==nk.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};Ed.setNodes(e,n,{mode:"highest"})}},e}(),J3={renderElems:[f3,d3,p3],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:[h3],parseElemsHtml:[_3,P3,j3],menus:[{key:"insertTable",factory:function(){return new N3}},{key:"deleteTable",factory:function(){return new I3}},{key:"insertTableRow",factory:function(){return new L3}},{key:"deleteTableRow",factory:function(){return new R3}},{key:"insertTableCol",factory:function(){return new K3}},{key:"deleteTableCol",factory:function(){return new Y3}},{key:"tableHeader",factory:function(){return new X3}},{key:"tableFullWidth",factory:function(){return new Z3}}],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==nk.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!X4(s)){var t=s.selection;if(t){var r=Pf.before(s,t);if(r){var o=Z4(s,r),i=Z4(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(nk.getSelectedNodeByType(s,"table")){var n=Pf.above(e);nk.checkNodeType(n[0],"table-cell")&&Ed.select(e,n[1]);var r=Pf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Pf.above(e,{at:r[1]}))&&void 0!==t?t:r),Ed.select(e,r[1]);else{var o=s.children||[],i=o.length;if(nk.checkNodeType(o[i-1],"table")){var u=nk.genEmptyParagraph();Ed.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){X4(s)||r(e)},s.normalizeNode=function(e){var t=Y4(e,2),n=t[0],r=t[1];if("table"!==nk.getNodeType(n))return o([n,r]);if(nk.isLastNode(s,n)){var i=nk.genEmptyParagraph();Ed.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=nk.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Pf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=nk.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Hf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Rf.string(t).length){var o=nk.findPath(s,t),i={anchor:Pf.start(s,o),focus:Pf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};$P("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"}}),$P("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});
|
|
83
|
+
/*! *****************************************************************************
|
|
84
|
+
Copyright (c) Microsoft Corporation.
|
|
85
|
+
|
|
86
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
87
|
+
purpose with or without fee is hereby granted.
|
|
88
|
+
|
|
89
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
90
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
91
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
92
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
93
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
94
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
95
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
96
|
+
***************************************************************************** */
|
|
97
|
+
var Q3=function(){return Q3=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},Q3.apply(this,arguments)};function e5(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}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 t5(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(e){i=[6,e],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 n5(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function r5(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){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var o5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function i5(e){var t={exports:{}};return e(t,t.exports),t.exports}var a5,u5,s5=function(e){return e&&e.Math==Math&&e},l5=s5("object"==typeof globalThis&&globalThis)||s5("object"==typeof window&&window)||s5("object"==typeof self&&self)||s5("object"==typeof o5&&o5)||function(){return this}()||Function("return this")(),c5=function(e){try{return!!e()}catch(e){return!0}},f5=!c5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d5=Function.prototype.call,p5=d5.bind?d5.bind(d5):function(){return d5.apply(d5,arguments)},h5={}.propertyIsEnumerable,g5=Object.getOwnPropertyDescriptor,v5={f:g5&&!h5.call({1:2},1)?function(e){var t=g5(this,e);return!!t&&t.enumerable}:h5},y5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},m5=Function.prototype,b5=m5.bind,w5=m5.call,E5=b5&&b5.bind(w5),D5=b5?function(e){return e&&E5(w5,e)}:function(e){return e&&function(){return w5.apply(e,arguments)}},C5=D5({}.toString),x5=D5("".slice),S5=function(e){return x5(C5(e),8,-1)},A5=l5.Object,O5=D5("".split),k5=c5((function(){return!A5("z").propertyIsEnumerable(0)}))?function(e){return"String"==S5(e)?O5(e,""):A5(e)}:A5,B5=l5.TypeError,F5=function(e){if(null==e)throw B5("Can't call method on "+e);return e},T5=function(e){return k5(F5(e))},_5=function(e){return"function"==typeof e},P5=function(e){return"object"==typeof e?null!==e:_5(e)},j5=function(e){return _5(e)?e:void 0},N5=function(e,t){return arguments.length<2?j5(l5[e]):l5[e]&&l5[e][t]},I5=D5({}.isPrototypeOf),L5=N5("navigator","userAgent")||"",R5=l5.process,M5=l5.Deno,z5=R5&&R5.versions||M5&&M5.version,$5=z5&&z5.v8;$5&&(u5=(a5=$5.split("."))[0]>0&&a5[0]<4?1:+(a5[0]+a5[1])),!u5&&L5&&(!(a5=L5.match(/Edge\/(\d+)/))||a5[1]>=74)&&(a5=L5.match(/Chrome\/(\d+)/))&&(u5=+a5[1]);var H5=u5,V5=!!Object.getOwnPropertySymbols&&!c5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&H5&&H5<41})),U5=V5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W5=l5.Object,G5=U5?function(e){return"symbol"==typeof e}:function(e){var t=N5("Symbol");return _5(t)&&I5(t.prototype,W5(e))},q5=l5.String,K5=function(e){try{return q5(e)}catch(e){return"Object"}},Y5=l5.TypeError,X5=function(e){if(_5(e))return e;throw Y5(K5(e)+" is not a function")},Z5=function(e,t){var n=e[t];return null==n?void 0:X5(n)},J5=l5.TypeError,Q5=Object.defineProperty,e8=function(e,t){try{Q5(l5,e,{value:t,configurable:!0,writable:!0})}catch(a){l5[e]=t}return t},t8=l5["__core-js_shared__"]||e8("__core-js_shared__",{}),n8=i5((function(e){(e.exports=function(e,t){return t8[e]||(t8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),r8=l5.Object,o8=function(e){return r8(F5(e))},i8=D5({}.hasOwnProperty),a8=Object.hasOwn||function(e,t){return i8(o8(e),t)},u8=0,s8=Math.random(),l8=D5(1..toString),c8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+l8(++u8+s8,36)},f8=n8("wks"),d8=l5.Symbol,p8=d8&&d8.for,h8=U5?d8:d8&&d8.withoutSetter||c8,g8=function(e){if(!a8(f8,e)||!V5&&"string"!=typeof f8[e]){var t="Symbol."+e;V5&&a8(d8,e)?f8[e]=d8[e]:f8[e]=U5&&p8?p8(t):h8(t)}return f8[e]},v8=l5.TypeError,y8=g8("toPrimitive"),m8=function(e){var t=function(e,t){if(!P5(e)||G5(e))return e;var n,r=Z5(e,y8);if(r){if(void 0===t&&(t="default"),n=p5(r,e,t),!P5(n)||G5(n))return n;throw v8("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_5(n=e.toString)&&!P5(r=p5(n,e)))return r;if(_5(n=e.valueOf)&&!P5(r=p5(n,e)))return r;if("string"!==t&&_5(n=e.toString)&&!P5(r=p5(n,e)))return r;throw J5("Can't convert object to primitive value")}(e,t)}(e,"string");return G5(t)?t:t+""},b8=l5.document,w8=P5(b8)&&P5(b8.createElement),E8=function(e){return w8?b8.createElement(e):{}},D8=!f5&&!c5((function(){return 7!=Object.defineProperty(E8("div"),"a",{get:function(){return 7}}).a})),C8=Object.getOwnPropertyDescriptor,x8={f:f5?C8:function(e,t){if(e=T5(e),t=m8(t),D8)try{return C8(e,t)}catch(e){}if(a8(e,t))return y5(!p5(v5.f,e,t),e[t])}},S8=l5.String,A8=l5.TypeError,O8=function(e){if(P5(e))return e;throw A8(S8(e)+" is not an object")},k8=l5.TypeError,B8=Object.defineProperty,F8={f:f5?B8:function(e,t,n){if(O8(e),t=m8(t),O8(n),D8)try{return B8(e,t,n)}catch(e){}if("get"in n||"set"in n)throw k8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},T8=f5?function(e,t,n){return F8.f(e,t,y5(1,n))}:function(e,t,n){return e[t]=n,e},_8=D5(Function.toString);_5(t8.inspectSource)||(t8.inspectSource=function(e){return _8(e)});var P8,j8,N8,I8=t8.inspectSource,L8=l5.WeakMap,R8=_5(L8)&&/native code/.test(I8(L8)),M8=n8("keys"),z8=function(e){return M8[e]||(M8[e]=c8(e))},$8={},H8=l5.TypeError,V8=l5.WeakMap;if(R8||t8.state){var U8=t8.state||(t8.state=new V8),W8=D5(U8.get),G8=D5(U8.has),q8=D5(U8.set);P8=function(e,t){if(G8(U8,e))throw new H8("Object already initialized");return t.facade=e,q8(U8,e,t),t},j8=function(e){return W8(U8,e)||{}},N8=function(e){return G8(U8,e)}}else{var K8=z8("state");$8[K8]=!0,P8=function(e,t){if(a8(e,K8))throw new H8("Object already initialized");return t.facade=e,T8(e,K8,t),t},j8=function(e){return a8(e,K8)?e[K8]:{}},N8=function(e){return a8(e,K8)}}var Y8={set:P8,get:j8,has:N8,enforce:function(e){return N8(e)?j8(e):P8(e,{})},getterFor:function(e){return function(t){var n;if(!P5(t)||(n=j8(t)).type!==e)throw H8("Incompatible receiver, "+e+" required");return n}}},X8=Function.prototype,Z8=f5&&Object.getOwnPropertyDescriptor,J8=a8(X8,"name"),Q8={EXISTS:J8,PROPER:J8&&"something"===function(){}.name,CONFIGURABLE:J8&&(!f5||f5&&Z8(X8,"name").configurable)},e7=i5((function(e){var t=Q8.CONFIGURABLE,n=Y8.get,r=Y8.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;_5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a8(i,"name")||t&&i.name!==f)&&T8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==l5?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:T8(e,n,i)):l?e[n]=i:e8(n,i)})(Function.prototype,"toString",(function(){return _5(this)&&n(this).source||I8(this)}))})),t7=Math.ceil,n7=Math.floor,r7=function(e){var t=+e;return t!=t||0===t?0:(t>0?n7:t7)(t)},o7=Math.max,i7=Math.min,a7=function(e,t){var n=r7(e);return n<0?o7(n+t,0):i7(n,t)},u7=Math.min,s7=function(e){return e>0?u7(r7(e),9007199254740991):0},l7=function(e){return s7(e.length)},c7=function(e){return function(t,n,r){var o,i=T5(t),a=l7(i),u=a7(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}},f7={includes:c7(!0),indexOf:c7(!1)},d7=f7.indexOf,p7=D5([].push),h7=function(e,t){var n,r=T5(e),o=0,i=[];for(n in r)!a8($8,n)&&a8(r,n)&&p7(i,n);for(;t.length>o;)a8(r,n=t[o++])&&(~d7(i,n)||p7(i,n));return i},g7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],v7=g7.concat("length","prototype"),y7={f:Object.getOwnPropertyNames||function(e){return h7(e,v7)}},m7={f:Object.getOwnPropertySymbols},b7=D5([].concat),w7=N5("Reflect","ownKeys")||function(e){var t=y7.f(O8(e)),n=m7.f;return n?b7(t,n(e)):t},E7=function(e,t){for(var n=w7(t),r=F8.f,o=x8.f,i=0;i<n.length;i++){var a=n[i];a8(e,a)||r(e,a,o(t,a))}},D7=/#|\.prototype\./,C7=function(e,t){var n=S7[x7(e)];return n==O7||n!=A7&&(_5(t)?c5(t):!!t)},x7=C7.normalize=function(e){return String(e).replace(D7,".").toLowerCase()},S7=C7.data={},A7=C7.NATIVE="N",O7=C7.POLYFILL="P",k7=C7,B7=x8.f,F7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?l5:l?l5[u]||e8(u,{}):(l5[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=B7(n,r))&&a.value:n[r],!k7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;E7(i,o)}(e.sham||o&&o.sham)&&T8(i,"sham",!0),e7(n,r,i,e)}},T7={};T7[g8("toStringTag")]="z";var _7="[object z]"===String(T7),P7=g8("toStringTag"),j7=l5.Object,N7="Arguments"==S5(function(){return arguments}()),I7=_7?S5:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=j7(e),P7))?n:N7?S5(t):"Object"==(r=S5(t))&&_5(t.callee)?"Arguments":r},L7=l5.String,R7=function(e){if("Symbol"===I7(e))throw TypeError("Cannot convert a Symbol value to a string");return L7(e)},M7="\t\n\v\f\r \u2028\u2029\ufeff",z7=D5("".replace),$7="["+M7+"]",H7=RegExp("^"+$7+$7+"*"),V7=RegExp($7+$7+"*$"),U7=function(e){return function(t){var n=R7(F5(t));return 1&e&&(n=z7(n,H7,"")),2&e&&(n=z7(n,V7,"")),n}},W7={start:U7(1),end:U7(2),trim:U7(3)},G7=Q8.PROPER,q7=W7.trim;function K7(e){return e.length?e[0].tagName.toLowerCase():""}function Y7(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}F7({target:"String",proto:!0,forced:c5((function(){return!!M7.trim()||"
"!=="
".trim()||G7&&"trim"!==M7.trim.name}))},{trim:function(){return q7(this)}}),F7({global:!0},{globalThis:l5}),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 X7,Z7={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=nk.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe "))r=Ig("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:Y7(a,c,d)});else{var h=Ig("video",{poster:s,controls:!0},Ig("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=Ig("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},h)}return vg("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},J7={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+=Y7(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+"\n</div>"}},Q7=Object.keys||function(e){return h7(e,g7)},e9=f5?Object.defineProperties:function(e,t){O8(e);for(var n,r=T5(t),o=Q7(t),i=o.length,a=0;i>a;)F8.f(e,n=o[a++],r[n]);return e},t9=N5("document","documentElement"),n9=z8("IE_PROTO"),r9=function(){},o9=function(e){return"<script>"+e+"<\/script>"},i9=function(e){e.write(o9("")),e.close();var t=e.parentWindow.Object;return e=null,t},a9=function(){try{X7=new ActiveXObject("htmlfile")}catch(e){}var e,t;a9="undefined"!=typeof document?document.domain&&X7?i9(X7):((t=E8("iframe")).style.display="none",t9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(o9("document.F=Object")),e.close(),e.F):i9(X7);for(var n=g7.length;n--;)delete a9.prototype[g7[n]];return a9()};$8[n9]=!0;var u9=Object.create||function(e,t){var n;return null!==e?(r9.prototype=O8(e),n=new r9,r9.prototype=null,n[n9]=e):n=a9(),void 0===t?n:e9(n,t)},s9=g8("unscopables"),l9=Array.prototype;null==l9[s9]&&F8.f(l9,s9,{configurable:!0,value:u9(null)});var c9=function(e){l9[s9][e]=!0},f9=f7.includes;F7({target:"Array",proto:!0},{includes:function(e){return f9(this,e,arguments.length>1?arguments[1]:void 0)}}),c9("includes");var d9={selector:"iframe,video,p",preParseHtml:function(e){var t=Hp(e),n=t;if("p"===K7(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=K7(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]}},p9=D5(D5.bind),h9=function(e,t){return X5(e),void 0===t?e:p9?p9(e,t):function(){return e.apply(t,arguments)}},g9=Array.isArray||function(e){return"Array"==S5(e)},v9=function(){},y9=[],m9=N5("Reflect","construct"),b9=/^\s*(?:class|function)\b/,w9=D5(b9.exec),E9=!b9.exec(v9),D9=function(e){if(!_5(e))return!1;try{return m9(v9,y9,e),!0}catch(e){return!1}},C9=!m9||c5((function(){var e;return D9(D9.call)||!D9(Object)||!D9((function(){e=!0}))||e}))?function(e){if(!_5(e))return!1;switch(I7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return E9||!!w9(b9,I8(e))}:D9,x9=g8("species"),S9=l5.Array,A9=function(e,t){return new(function(e){var t;return g9(e)&&(t=e.constructor,(C9(t)&&(t===S9||g9(t.prototype))||P5(t)&&null===(t=t[x9]))&&(t=void 0)),void 0===t?S9:t}(e))(0===t?0:t)},O9=D5([].push),k9=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=o8(s),g=k5(h),v=h9(l,c),y=l7(g),m=0,b=f||A9,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:O9(w,d)}else switch(e){case 4:return!1;case 7:O9(w,d)}return i?-1:r||o?o:w}},B9={forEach:k9(0),map:k9(1),filter:k9(2),some:k9(3),every:k9(4),find:k9(5),findIndex:k9(6),filterReject:k9(7)},F9=B9.find,T9=!0;"find"in[]&&Array(1).find((function(){T9=!1})),F7({target:"Array",proto:!0,forced:T9},{find:function(e){return F9(this,e,arguments.length>1?arguments[1]:void 0)}}),c9("find");var _9=_7?{}.toString:function(){return"[object "+I7(this)+"]"};function P9(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:""}]}}_7||e7(Object.prototype,"toString",_9,{unsafe:!0});var j9,N9,I9={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",P9(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",P9(o,i=l.attr("poster")||"",a,u)}},L9=function(){var e=O8(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},R9=l5.RegExp,M9=c5((function(){var e=R9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),z9=M9||c5((function(){return!R9("a","y").sticky})),$9={BROKEN_CARET:M9||c5((function(){var e=R9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:z9,UNSUPPORTED_Y:M9},H9=l5.RegExp,V9=c5((function(){var e=H9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),U9=l5.RegExp,W9=c5((function(){var e=U9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),G9=Y8.get,q9=n8("native-string-replace",String.prototype.replace),K9=RegExp.prototype.exec,Y9=K9,X9=D5("".charAt),Z9=D5("".indexOf),J9=D5("".replace),Q9=D5("".slice),eee=(N9=/b*/g,p5(K9,j9=/a/,"a"),p5(K9,N9,"a"),0!==j9.lastIndex||0!==N9.lastIndex),tee=$9.BROKEN_CARET,nee=void 0!==/()??/.exec("")[1];(eee||nee||tee||V9||W9)&&(Y9=function(e){var t,n,r,o,i,a,u,s=this,l=G9(s),c=R7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=p5(Y9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=tee&&s.sticky,h=p5(L9,s),g=s.source,v=0,y=c;if(p&&(h=J9(h,"y",""),-1===Z9(h,"g")&&(h+="g"),y=Q9(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==X9(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),nee&&(n=new RegExp("^"+g+"$(?!\\s)",h)),eee&&(r=s.lastIndex),o=p5(K9,p?n:s,y),p?o?(o.input=Q9(o.input,v),o[0]=Q9(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:eee&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),nee&&o&&o.length>1&&p5(q9,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=u9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ree=Y9;F7({target:"RegExp",proto:!0,forced:/./.exec!==ree},{exec:ree});var oee=Function.prototype,iee=oee.apply,aee=oee.bind,uee=oee.call,see="object"==typeof Reflect&&Reflect.apply||(aee?uee.bind(iee):function(){return uee.apply(iee,arguments)}),lee=(g8("species"),RegExp.prototype),cee=D5("".charAt),fee=D5("".charCodeAt),dee=D5("".slice),pee=function(e){return function(t,n){var r,o,i=R7(F5(t)),a=r7(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=fee(i,a))<55296||r>56319||a+1===u||(o=fee(i,a+1))<56320||o>57343?e?cee(i,a):r:e?dee(i,a,a+2):o-56320+(r-55296<<10)+65536}},hee={codeAt:pee(!1),charAt:pee(!0)},gee=hee.charAt,vee=function(e,t,n){return t+(n?gee(e,t).length:1)},yee=Math.floor,mee=D5("".charAt),bee=D5("".replace),wee=D5("".slice),Eee=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dee=/\$([$&'`]|\d{1,2})/g,Cee=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Dee;return void 0!==o&&(o=o8(o),s=Eee),bee(i,s,(function(i,s){var l;switch(mee(s,0)){case"$":return"$";case"&":return e;case"`":return wee(t,0,n);case"'":return wee(t,a);case"<":l=o[wee(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=yee(c/10);return 0===f?i:f<=u?void 0===r[f-1]?mee(s,1):r[f-1]+mee(s,1):i}l=r[c-1]}return void 0===l?"":l}))},xee=l5.TypeError,See=function(e,t){var n=e.exec;if(_5(n)){var r=p5(n,e,t);return null!==r&&O8(r),r}if("RegExp"===S5(e))return p5(ree,e,t);throw xee("RegExp#exec called on incompatible receiver")},Aee=g8("replace"),Oee=Math.max,kee=Math.min,Bee=D5([].concat),Fee=D5([].push),Tee=D5("".indexOf),_ee=D5("".slice),Pee="$0"==="a".replace(/./,"$0"),jee=!!/./[Aee]&&""===/./[Aee]("a","$0");function Nee(e){return void 0===e&&(e="r"),e+"-"+$h()}!function(e,t,n,r){var o=g8(e),i=!c5((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!c5((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=D5(/./[o]),s=function(e,t,n){var r=jee?"$":"$0";return[function(e,n){var r=F5(this),o=null==e?void 0:Z5(e,Aee);return o?p5(o,e,r,n):p5(t,R7(r),e,n)},function(e,o){var i=O8(this),a=R7(e);if("string"==typeof o&&-1===Tee(o,r)&&-1===Tee(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=_5(o);s||(o=R7(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=See(i,a);if(null===d)break;if(Fee(f,d),!l)break;""===R7(d[0])&&(i.lastIndex=vee(a,s7(i.lastIndex),c))}for(var p,h="",g=0,v=0;v<f.length;v++){for(var y=R7((d=f[v])[0]),m=Oee(kee(r7(d.index),a.length),0),b=[],w=1;w<d.length;w++)Fee(b,void 0===(p=d[w])?p:String(p));var E=d.groups;if(s){var D=Bee([y],b,m,a);void 0!==E&&Fee(D,E);var C=R7(see(o,void 0,D))}else C=Cee(y,a,m,b,E,o);m>=g&&(h+=_ee(a,g,m)+C,g=m+y.length)}return h+_ee(a,g)}]}(0,""[e],(function(e,t,n,r,o){var a=D5(e),s=t.exec;return s===ree||s===lee.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));e7(String.prototype,e,s[0]),e7(lee,o,s[1])}}("replace",0,!!c5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Pee||jee);var Iee=l5.Promise,Lee=function(e,t,n){for(var r in t)e7(e,r,t[r],n);return e},Ree=l5.String,Mee=l5.TypeError,zee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=D5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return O8(n),function(e){if("object"==typeof e||_5(e))return e;throw Mee("Can't set "+Ree(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),$ee=F8.f,Hee=g8("toStringTag"),Vee=function(e,t,n){e&&!a8(e=n?e:e.prototype,Hee)&&$ee(e,Hee,{configurable:!0,value:t})},Uee=g8("species"),Wee=l5.TypeError,Gee=function(e,t){if(I5(t,e))return e;throw Wee("Incorrect invocation")},qee={},Kee=g8("iterator"),Yee=Array.prototype,Xee=g8("iterator"),Zee=function(e){if(null!=e)return Z5(e,Xee)||Z5(e,"@@iterator")||qee[I7(e)]},Jee=l5.TypeError,Qee=function(e,t,n){var r,o;O8(e);try{if(!(r=Z5(e,"return"))){if("throw"===t)throw n;return n}r=p5(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return O8(r),n},ete=l5.TypeError,tte=function(e,t){this.stopped=e,this.result=t},nte=tte.prototype,rte=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=h9(t,f),v=function(e){return r&&Qee(r,"normal",e),new tte(!0,e)},y=function(e){return d?(O8(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if(!(o=Zee(e)))throw ete(K5(e)+" is not iterable");if(void 0!==(c=o)&&(qee.Array===c||Yee[Kee]===c)){for(i=0,a=l7(e);a>i;i++)if((u=y(e[i]))&&I5(nte,u))return u;return new tte(!1)}r=function(e,t){var n=arguments.length<2?Zee(e):t;if(X5(n))return O8(p5(n,e));throw Jee(K5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=p5(s,r)).done;){try{u=y(l.value)}catch(e){Qee(r,"throw",e)}if("object"==typeof u&&u&&I5(nte,u))return u}return new tte(!1)},ote=g8("iterator"),ite=!1;try{var ate=0,ute={next:function(){return{done:!!ate++}},return:function(){ite=!0}};ute[ote]=function(){return this},Array.from(ute,(function(){throw 2}))}catch(Vl){}var ste,lte,cte,fte,dte=function(e,t){if(!t&&!ite)return!1;var n=!1;try{var r={};r[ote]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},pte=l5.TypeError,hte=g8("species"),gte=D5([].slice),vte=/(?:ipad|iphone|ipod).*applewebkit/i.test(L5),yte="process"==S5(l5.process),mte=l5.setImmediate,bte=l5.clearImmediate,wte=l5.process,Ete=l5.Dispatch,Dte=l5.Function,Cte=l5.MessageChannel,xte=l5.String,Ste=0,Ate={};try{ste=l5.location}catch(Vl){}var Ote=function(e){if(a8(Ate,e)){var t=Ate[e];delete Ate[e],t()}},kte=function(e){return function(){Ote(e)}},Bte=function(e){Ote(e.data)},Fte=function(e){l5.postMessage(xte(e),ste.protocol+"//"+ste.host)};mte&&bte||(mte=function(e){var t=gte(arguments,1);return Ate[++Ste]=function(){see(_5(e)?e:Dte(e),void 0,t)},lte(Ste),Ste},bte=function(e){delete Ate[e]},yte?lte=function(e){wte.nextTick(kte(e))}:Ete&&Ete.now?lte=function(e){Ete.now(kte(e))}:Cte&&!vte?(fte=(cte=new Cte).port2,cte.port1.onmessage=Bte,lte=h9(fte.postMessage,fte)):l5.addEventListener&&_5(l5.postMessage)&&!l5.importScripts&&ste&&"file:"!==ste.protocol&&!c5(Fte)?(lte=Fte,l5.addEventListener("message",Bte,!1)):lte="onreadystatechange"in E8("script")?function(e){t9.appendChild(E8("script")).onreadystatechange=function(){t9.removeChild(this),Ote(e)}}:function(e){setTimeout(kte(e),0)});var Tte,_te,Pte,jte,Nte,Ite,Lte,Rte,Mte={set:mte,clear:bte},zte=/ipad|iphone|ipod/i.test(L5)&&void 0!==l5.Pebble,$te=/web0s(?!.*chrome)/i.test(L5),Hte=x8.f,Vte=Mte.set,Ute=l5.MutationObserver||l5.WebKitMutationObserver,Wte=l5.document,Gte=l5.process,qte=l5.Promise,Kte=Hte(l5,"queueMicrotask"),Yte=Kte&&Kte.value;Yte||(Tte=function(){var e,t;for(yte&&(e=Gte.domain)&&e.exit();_te;){t=_te.fn,_te=_te.next;try{t()}catch(e){throw _te?jte():Pte=void 0,e}}Pte=void 0,e&&e.enter()},vte||yte||$te||!Ute||!Wte?!zte&&qte&&qte.resolve?((Lte=qte.resolve(void 0)).constructor=qte,Rte=h9(Lte.then,Lte),jte=function(){Rte(Tte)}):yte?jte=function(){Gte.nextTick(Tte)}:(Vte=h9(Vte,l5),jte=function(){Vte(Tte)}):(Nte=!0,Ite=Wte.createTextNode(""),new Ute(Tte).observe(Ite,{characterData:!0}),jte=function(){Ite.data=Nte=!Nte}));var Xte,Zte,Jte,Qte,ene=Yte||function(e){var t={fn:e,next:void 0};Pte&&(Pte.next=t),_te||(_te=t,jte()),Pte=t},tne=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=X5(t),this.reject=X5(n)},nne={f:function(e){return new tne(e)}},rne=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},one="object"==typeof window,ine=Mte.set,ane=g8("species"),une="Promise",sne=Y8.getterFor(une),lne=Y8.set,cne=Y8.getterFor(une),fne=Iee&&Iee.prototype,dne=Iee,pne=fne,hne=l5.TypeError,gne=l5.document,vne=l5.process,yne=nne.f,mne=yne,bne=!!(gne&&gne.createEvent&&l5.dispatchEvent),wne=_5(l5.PromiseRejectionEvent),Ene=!1,Dne=k7(une,(function(){var e=I8(dne),t=e!==String(dne);if(!t&&66===H5)return!0;if(H5>=51&&/native code/.test(e))return!1;var n=new dne((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[ane]=r,!(Ene=n.then((function(){}))instanceof r)||!t&&one&&!wne})),Cne=Dne||!dte((function(e){dne.all(e).catch((function(){}))})),xne=function(e){var t;return!(!P5(e)||!_5(t=e.then))&&t},Sne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;ene((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&&Bne(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(hne("Promise-chain cycle")):(u=xne(a))?p5(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&One(e)}))}},Ane=function(e,t,n){var r,o;bne?((r=gne.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l5.dispatchEvent(r)):r={promise:t,reason:n},!wne&&(o=l5["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=l5.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},One=function(e){p5(ine,l5,(function(){var t,n=e.facade,r=e.value;if(kne(e)&&(t=rne((function(){yte?vne.emit("unhandledRejection",r,n):Ane("unhandledrejection",n,r)})),e.rejection=yte||kne(e)?2:1,t.error))throw t.value}))},kne=function(e){return 1!==e.rejection&&!e.parent},Bne=function(e){p5(ine,l5,(function(){var t=e.facade;yte?vne.emit("rejectionHandled",t):Ane("rejectionhandled",t,e.value)}))},Fne=function(e,t,n){return function(r){e(t,r,n)}},Tne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Sne(e,!0))},_ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw hne("Promise can't be resolved itself");var r=xne(t);r?ene((function(){var n={done:!1};try{p5(r,t,Fne(_ne,n,e),Fne(Tne,n,e))}catch(t){Tne(n,t,e)}})):(e.value=t,e.state=1,Sne(e,!1))}catch(t){Tne({done:!1},t,e)}}};if(Dne&&(pne=(dne=function(e){Gee(this,pne),X5(e),p5(Xte,this);var t=sne(this);try{e(Fne(_ne,t),Fne(Tne,t))}catch(e){Tne(t,e)}}).prototype,(Xte=function(e){lne(this,{type:une,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Lee(pne,{then:function(e,t){var n=cne(this),r=n.reactions,o=yne(function(e,t){var n,r=O8(e).constructor;return void 0===r||null==(n=O8(r)[hte])?t:function(e){if(C9(e))return e;throw pte(K5(e)+" is not a constructor")}(n)}(this,dne));return o.ok=!_5(e)||e,o.fail=_5(t)&&t,o.domain=yte?vne.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Sne(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),Zte=function(){var e=new Xte,t=sne(e);this.promise=e,this.resolve=Fne(_ne,t),this.reject=Fne(Tne,t)},nne.f=yne=function(e){return e===dne||e===Jte?new Zte(e):mne(e)},_5(Iee)&&fne!==Object.prototype)){Qte=fne.then,Ene||(e7(fne,"then",(function(e,t){var n=this;return new dne((function(e,t){p5(Qte,n,e,t)})).then(e,t)}),{unsafe:!0}),e7(fne,"catch",pne.catch,{unsafe:!0}));try{delete fne.constructor}catch(Vl){}zee&&zee(fne,pne)}function Pne(e,t,n){return void 0===n&&(n=""),e5(this,void 0,void 0,(function(){var r,o,i,a,u,s,l;return t5(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(){Ed.insertNodes(e,l)})),o(l),[2]}}))}))}function jne(){return Nee("w-e-insert-video")}F7({global:!0,wrap:!0,forced:Dne},{Promise:dne}),Vee(dne,une,!1),function(e){var t=N5("Promise"),n=F8.f;f5&&t&&!t[Uee]&&n(t,Uee,{configurable:!0,get:function(){return this}})}(),Jte=N5(une),F7({target:une,stat:!0,forced:Dne},{reject:function(e){var t=yne(this);return p5(t.reject,void 0,e),t.promise}}),F7({target:une,stat:!0,forced:Dne},{resolve:function(e){return function(e,t){if(O8(e),P5(t)&&t.constructor===e)return t;var n=nne.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),F7({target:une,stat:!0,forced:Cne},{all:function(e){var t=this,n=yne(t),r=n.resolve,o=n.reject,i=rne((function(){var n=X5(t.resolve),i=[],a=0,u=1;rte(e,(function(e){var s=a++,l=!1;u++,p5(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=yne(t),r=n.reject,o=rne((function(){var o=X5(t.resolve);rte(e,(function(e){p5(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Nne=function(){function e(){this.title=HP("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=jne(),this.posterInputId=jne(),this.buttonId=jne()}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||!Xf.isCollapsed(t)||!!nk.getSelectedElems(e).some((function(t){var n=nk.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=n5(A_(HP("videoModule.videoSrc"),r,HP("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=n5(A_(HP("videoModule.videoPoster"),o,HP("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Hp(s),p=Hp(f),h=n5(O_(i,HP("videoModule.ok")),1)[0];if(null==this.$content){var g=Hp("<div></div>");g.on("click","#"+i,(function(n){return e5(t,void 0,void 0,(function(){var t,i;return t5(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=g.find("#"+r).val().trim(),i=g.find("#"+o).val().trim(),[4,Pne(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}(),Ine=D5([].join),Lne=k5!=Object,Rne=function(e,t){var n=[].join;return!!n&&c5((function(){n.call(null,",",1)}))}();F7({target:"Array",proto:!0,forced:Lne||!Rne},{join:function(e){return Ine(T5(this),void 0===e?",":e)}});var Mne,zne,$ne,Hne=!c5((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vne=z8("IE_PROTO"),Une=l5.Object,Wne=Une.prototype,Gne=Hne?Une.getPrototypeOf:function(e){var t=o8(e);if(a8(t,Vne))return t[Vne];var n=t.constructor;return _5(n)&&t instanceof n?n.prototype:t instanceof Une?Wne:null},qne=g8("iterator"),Kne=!1;[].keys&&("next"in($ne=[].keys())?(zne=Gne(Gne($ne)))!==Object.prototype&&(Mne=zne):Kne=!0);var Yne=null==Mne||c5((function(){var e={};return Mne[qne].call(e)!==e}));Yne&&(Mne={}),_5(Mne[qne])||e7(Mne,qne,(function(){return this}));var Xne={IteratorPrototype:Mne,BUGGY_SAFARI_ITERATORS:Kne},Zne=Xne.IteratorPrototype,Jne=function(){return this},Qne=Q8.PROPER,ere=Q8.CONFIGURABLE,tre=Xne.IteratorPrototype,nre=Xne.BUGGY_SAFARI_ITERATORS,rre=g8("iterator"),ore=function(){return this},ire=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=u9(Zne,{next:y5(1,n)}),Vee(e,o,!1),qee[o]=Jne}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!nre&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[rre]||p["@@iterator"]||o&&p[o],g=!nre&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Gne(v.call(new e)))!==Object.prototype&&u.next&&(Gne(u)!==tre&&(zee?zee(u,tre):_5(u[rre])||e7(u,rre,ore)),Vee(u,f,!0)),Qne&&"values"==o&&h&&"values"!==h.name&&(ere?T8(p,"name","values"):(d=!0,g=function(){return p5(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(nre||d||!(l in p))&&e7(p,l,s[l]);else F7({target:t,proto:!0,forced:nre||d},s);return p[rre]!==g&&e7(p,rre,g,{name:o}),qee[t]=g,s},are=Y8.set,ure=Y8.getterFor("Array Iterator"),sre=ire(Array,"Array",(function(e,t){are(this,{type:"Array Iterator",target:T5(e),index:0,kind:t})}),(function(){var e=ure(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");qee.Arguments=qee.Array,c9("keys"),c9("values"),c9("entries");var lre=hee.charAt,cre=Y8.set,fre=Y8.getterFor("String Iterator");ire(String,"String",(function(e){cre(this,{type:"String Iterator",string:R7(e),index:0})}),(function(){var e,t=fre(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=lre(n,r),t.index+=e.length,{value:e,done:!1})}));var dre=function(e,t,n){var r=m8(t);r in e?F8.f(e,r,y5(0,n)):e[r]=n},pre=l5.Array,hre=Math.max,gre=y7.f,vre="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yre={f:function(e){return vre&&"Window"==S5(e)?function(e){try{return gre(e)}catch(e){return function(e,t,n){for(var r=l7(e),o=a7(void 0,r),i=a7(r,r),a=pre(hre(i-o,0)),u=0;o<i;o++,u++)dre(a,u,e[o]);return a.length=u,a}(vre)}}(e):gre(T5(e))}},mre=c5((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),bre=Object.isExtensible,wre=c5((function(){bre(1)}))||mre?function(e){return!!P5(e)&&(!mre||"ArrayBuffer"!=S5(e))&&(!bre||bre(e))}:bre,Ere=!c5((function(){return Object.isExtensible(Object.preventExtensions({}))})),Dre=i5((function(e){var t=F8.f,n=!1,r=c8("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=y7.f,t=D5([].splice),o={};o[r]=1,e(o).length&&(y7.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},F7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yre.f}))},fastKey:function(e,t){if(!P5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a8(e,r)){if(!wre(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!a8(e,r)){if(!wre(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Ere&&n&&wre(e)&&!a8(e,r)&&i(e),e}};$8[r]=!0})),Cre=Dre.getWeakData,xre=Y8.set,Sre=Y8.getterFor,Are=B9.find,Ore=B9.findIndex,kre=D5([].splice),Bre=0,Fre=function(e){return e.frozen||(e.frozen=new Tre)},Tre=function(){this.entries=[]},_re=function(e,t){return Are(e.entries,(function(e){return e[0]===t}))};Tre.prototype={get:function(e){var t=_re(this,e);if(t)return t[1]},has:function(e){return!!_re(this,e)},set:function(e,t){var n=_re(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ore(this.entries,(function(t){return t[0]===e}));return~t&&kre(this.entries,t,1),!!~t}};var Pre,jre={getConstructor:function(e,t,n,r){var o=e((function(e,o){Gee(e,i),xre(e,{type:t,id:Bre++,frozen:void 0}),null!=o&&rte(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Sre(t),u=function(e,t,n){var r=a(e),o=Cre(O8(t),!0);return!0===o?Fre(r).set(t,n):o[r.id]=n,e};return Lee(i,{delete:function(e){var t=a(this);if(!P5(e))return!1;var n=Cre(e);return!0===n?Fre(t).delete(e):n&&a8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!P5(e))return!1;var n=Cre(e);return!0===n?Fre(t).has(e):n&&a8(n,t.id)}}),Lee(i,n?{get:function(e){var t=a(this);if(P5(e)){var n=Cre(e);return!0===n?Fre(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}},Nre=Y8.enforce,Ire=!l5.ActiveXObject&&"ActiveXObject"in l5,Lre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Rre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=l5[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=D5(u[e]);e7(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!P5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!P5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!P5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(k7(e,!_5(a)||!(o||u.forEach&&!c5((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Dre.enable();else if(k7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=c5((function(){f.has(1)})),h=dte((function(e){new a(e)})),g=!o&&c5((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Gee(e,u);var n=function(e,t,n){var r,o;return zee&&_5(r=t.constructor)&&r!==n&&P5(o=r.prototype)&&o!==n.prototype&&zee(e,o),e}(new a,e,s);return null!=t&&rte(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,F7({global:!0,forced:s!=a},l),Vee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Lre,jre);if(R8&&Ire){Pre=jre.getConstructor(Lre,"WeakMap",!0),Dre.enable();var Mre=Rre.prototype,zre=D5(Mre.delete),$re=D5(Mre.has),Hre=D5(Mre.get),Vre=D5(Mre.set);Lee(Mre,{delete:function(e){if(P5(e)&&!wre(e)){var t=Nre(this);return t.frozen||(t.frozen=new Pre),zre(this,e)||t.frozen.delete(e)}return zre(this,e)},has:function(e){if(P5(e)&&!wre(e)){var t=Nre(this);return t.frozen||(t.frozen=new Pre),$re(this,e)||t.frozen.has(e)}return $re(this,e)},get:function(e){if(P5(e)&&!wre(e)){var t=Nre(this);return t.frozen||(t.frozen=new Pre),$re(this,e)?Hre(this,e):t.frozen.get(e)}return Hre(this,e)},set:function(e,t){if(P5(e)&&!wre(e)){var n=Nre(this);n.frozen||(n.frozen=new Pre),$re(this,e)?Vre(this,e,t):n.frozen.set(e,t)}else Vre(this,e,t);return this}})}var Ure={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},Wre=E8("span").classList,Gre=Wre&&Wre.constructor&&Wre.constructor.prototype,qre=Gre===Object.prototype?void 0:Gre,Kre=g8("iterator"),Yre=g8("toStringTag"),Xre=sre.values,Zre=function(e,t){if(e){if(e[Kre]!==Xre)try{T8(e,Kre,Xre)}catch(t){e[Kre]=Xre}if(e[Yre]||T8(e,Yre,t),Ure[t])for(var n in sre)if(e[n]!==sre[n])try{T8(e,n,sre[n])}catch(t){e[n]=sre[n]}}};for(var Jre in Ure)Zre(l5[Jre]&&l5[Jre].prototype,Jre);Zre(qre,"DOMTokenList");var Qre=Q8.EXISTS,eoe=F8.f,toe=Function.prototype,noe=D5(toe.toString),roe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ooe=D5(roe.exec);f5&&!Qre&&eoe(toe,"name",{configurable:!0,get:function(){try{return ooe(roe,noe(this))[1]}catch(o){return""}}});var ioe=g8("species"),aoe=H5>=51||!c5((function(){var e=[];return(e.constructor={})[ioe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),uoe=g8("species"),soe=l5.Array,loe=Math.max;function coe(e){return e.getMenuConfig("uploadVideo")}F7({target:"Array",proto:!0,forced:!aoe},{slice:function(e,t){var n,r,o,i=T5(this),a=l7(i),u=a7(e,a),s=a7(void 0===t?a:t,a);if(g9(i)&&(n=i.constructor,(C9(n)&&(n===soe||g9(n.prototype))||P5(n)&&null===(n=n[uoe]))&&(n=void 0),n===soe||void 0===n))return gte(i,u,s);for(r=new(void 0===n?soe:n)(loe(s-u,0)),o=0;u<s;u++,o++)u in i&&dre(r,o,i[u]);return r.length=o,r}});var foe=new WeakMap;function doe(e,t){return e5(this,void 0,void 0,(function(){var n,r,o,i;return t5(this,(function(a){switch(a.label){case 0:return n=function(e){var t=foe.get(e);if(null!=t)return t;var n=coe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=X_(Q3(Q3({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Pne(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;Pne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),foe.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 poe=function(){function e(){this.title=HP("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 Pne(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;e5(this,void 0,void 0,(function(){var o,i,a,u,s,l;return t5(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=coe(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=r5(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 Pne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,doe(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||!Xf.isCollapsed(t)||!!nk.getSelectedElems(e).some((function(t){var n=nk.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),hoe=Q8.PROPER,goe=RegExp.prototype,voe=goe.toString,yoe=D5(L9),moe=c5((function(){return"/a/b"!=voe.call({source:"a",flags:"b"})})),boe=hoe&&"toString"!=voe.name;function woe(){return Nee("w-e-insert-video")}(moe||boe)&&e7(RegExp.prototype,"toString",(function(){var e=O8(this),t=R7(e.source),n=e.flags;return"/"+t+"/"+R7(void 0===n&&I5(goe,e)&&!("flags"in goe)?yoe(e):n)}),{unsafe:!0});var Eoe=function(){function e(){this.title=HP("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=woe(),this.heightInputId=woe(),this.buttonId=woe()}return e.prototype.getSelectedVideoNode=function(e){return nk.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=n5(A_(HP("videoModule.width"),n,"auto"),2),a=i[0],u=Hp(i[1]),s=n5(A_(HP("videoModule.height"),r,"auto"),2),l=s[0],c=Hp(s[1]),f=n5(O_(o,HP("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(),Ed.setNodes(e,{width:s,height:l},{match:function(e){return nk.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}(),Doe={renderElems:[Z7],elemsToHtml:[J7],preParseHtml:[d9],parseElemsHtml:[I9],menus:[{key:"insertVideo",factory:function(){return new Nne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new poe},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 Eoe}}],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=n5(e,2),o=t[0],i=t[1];return"video"===nk.getNodeType(o)&&nk.isLastNode(r,o)&&Ed.insertNodes(r,nk.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};$P("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),$P("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Coe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function xoe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Soe,Aoe,Ooe=function(e){return e&&e.Math==Math&&e},koe=Ooe("object"==typeof globalThis&&globalThis)||Ooe("object"==typeof window&&window)||Ooe("object"==typeof self&&self)||Ooe("object"==typeof Coe&&Coe)||function(){return this}()||Function("return this")(),Boe=function(e){try{return!!e()}catch(e){return!0}},Foe=!Boe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Toe=Function.prototype.call,_oe=Toe.bind?Toe.bind(Toe):function(){return Toe.apply(Toe,arguments)},Poe={}.propertyIsEnumerable,joe=Object.getOwnPropertyDescriptor,Noe={f:joe&&!Poe.call({1:2},1)?function(e){var t=joe(this,e);return!!t&&t.enumerable}:Poe},Ioe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Loe=Function.prototype,Roe=Loe.bind,Moe=Loe.call,zoe=Roe&&Roe.bind(Moe),$oe=Roe?function(e){return e&&zoe(Moe,e)}:function(e){return e&&function(){return Moe.apply(e,arguments)}},Hoe=$oe({}.toString),Voe=$oe("".slice),Uoe=function(e){return Voe(Hoe(e),8,-1)},Woe=koe.Object,Goe=$oe("".split),qoe=Boe((function(){return!Woe("z").propertyIsEnumerable(0)}))?function(e){return"String"==Uoe(e)?Goe(e,""):Woe(e)}:Woe,Koe=koe.TypeError,Yoe=function(e){if(null==e)throw Koe("Can't call method on "+e);return e},Xoe=function(e){return qoe(Yoe(e))},Zoe=function(e){return"function"==typeof e},Joe=function(e){return"object"==typeof e?null!==e:Zoe(e)},Qoe=function(e){return Zoe(e)?e:void 0},eie=function(e,t){return arguments.length<2?Qoe(koe[e]):koe[e]&&koe[e][t]},tie=$oe({}.isPrototypeOf),nie=eie("navigator","userAgent")||"",rie=koe.process,oie=koe.Deno,iie=rie&&rie.versions||oie&&oie.version,aie=iie&&iie.v8;aie&&(Aoe=(Soe=aie.split("."))[0]>0&&Soe[0]<4?1:+(Soe[0]+Soe[1])),!Aoe&&nie&&(!(Soe=nie.match(/Edge\/(\d+)/))||Soe[1]>=74)&&(Soe=nie.match(/Chrome\/(\d+)/))&&(Aoe=+Soe[1]);var uie=Aoe,sie=!!Object.getOwnPropertySymbols&&!Boe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uie&&uie<41})),lie=sie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,cie=koe.Object,fie=lie?function(e){return"symbol"==typeof e}:function(e){var t=eie("Symbol");return Zoe(t)&&tie(t.prototype,cie(e))},die=koe.String,pie=function(e){try{return die(e)}catch(e){return"Object"}},hie=koe.TypeError,gie=function(e){if(Zoe(e))return e;throw hie(pie(e)+" is not a function")},vie=function(e,t){var n=e[t];return null==n?void 0:gie(n)},yie=koe.TypeError,mie=Object.defineProperty,bie=function(e,t){try{mie(koe,e,{value:t,configurable:!0,writable:!0})}catch(a){koe[e]=t}return t},wie=koe["__core-js_shared__"]||bie("__core-js_shared__",{}),Eie=xoe((function(e){(e.exports=function(e,t){return wie[e]||(wie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Die=koe.Object,Cie=function(e){return Die(Yoe(e))},xie=$oe({}.hasOwnProperty),Sie=Object.hasOwn||function(e,t){return xie(Cie(e),t)},Aie=0,Oie=Math.random(),kie=$oe(1..toString),Bie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+kie(++Aie+Oie,36)},Fie=Eie("wks"),Tie=koe.Symbol,_ie=Tie&&Tie.for,Pie=lie?Tie:Tie&&Tie.withoutSetter||Bie,jie=function(e){if(!Sie(Fie,e)||!sie&&"string"!=typeof Fie[e]){var t="Symbol."+e;sie&&Sie(Tie,e)?Fie[e]=Tie[e]:Fie[e]=lie&&_ie?_ie(t):Pie(t)}return Fie[e]},Nie=koe.TypeError,Iie=jie("toPrimitive"),Lie=function(e){var t=function(e,t){if(!Joe(e)||fie(e))return e;var n,r=vie(e,Iie);if(r){if(void 0===t&&(t="default"),n=_oe(r,e,t),!Joe(n)||fie(n))return n;throw Nie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Zoe(n=e.toString)&&!Joe(r=_oe(n,e)))return r;if(Zoe(n=e.valueOf)&&!Joe(r=_oe(n,e)))return r;if("string"!==t&&Zoe(n=e.toString)&&!Joe(r=_oe(n,e)))return r;throw yie("Can't convert object to primitive value")}(e,t)}(e,"string");return fie(t)?t:t+""},Rie=koe.document,Mie=Joe(Rie)&&Joe(Rie.createElement),zie=function(e){return Mie?Rie.createElement(e):{}},$ie=!Foe&&!Boe((function(){return 7!=Object.defineProperty(zie("div"),"a",{get:function(){return 7}}).a})),Hie=Object.getOwnPropertyDescriptor,Vie={f:Foe?Hie:function(e,t){if(e=Xoe(e),t=Lie(t),$ie)try{return Hie(e,t)}catch(e){}if(Sie(e,t))return Ioe(!_oe(Noe.f,e,t),e[t])}},Uie=koe.String,Wie=koe.TypeError,Gie=function(e){if(Joe(e))return e;throw Wie(Uie(e)+" is not an object")},qie=koe.TypeError,Kie=Object.defineProperty,Yie={f:Foe?Kie:function(e,t,n){if(Gie(e),t=Lie(t),Gie(n),$ie)try{return Kie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw qie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Xie=Foe?function(e,t,n){return Yie.f(e,t,Ioe(1,n))}:function(e,t,n){return e[t]=n,e},Zie=$oe(Function.toString);Zoe(wie.inspectSource)||(wie.inspectSource=function(e){return Zie(e)});var Jie,Qie,eae,tae=wie.inspectSource,nae=koe.WeakMap,rae=Zoe(nae)&&/native code/.test(tae(nae)),oae=Eie("keys"),iae=function(e){return oae[e]||(oae[e]=Bie(e))},aae={},uae=koe.TypeError,sae=koe.WeakMap;if(rae||wie.state){var lae=wie.state||(wie.state=new sae),cae=$oe(lae.get),fae=$oe(lae.has),dae=$oe(lae.set);Jie=function(e,t){if(fae(lae,e))throw new uae("Object already initialized");return t.facade=e,dae(lae,e,t),t},Qie=function(e){return cae(lae,e)||{}},eae=function(e){return fae(lae,e)}}else{var pae=iae("state");aae[pae]=!0,Jie=function(e,t){if(Sie(e,pae))throw new uae("Object already initialized");return t.facade=e,Xie(e,pae,t),t},Qie=function(e){return Sie(e,pae)?e[pae]:{}},eae=function(e){return Sie(e,pae)}}var hae={set:Jie,get:Qie,has:eae,enforce:function(e){return eae(e)?Qie(e):Jie(e,{})},getterFor:function(e){return function(t){var n;if(!Joe(t)||(n=Qie(t)).type!==e)throw uae("Incompatible receiver, "+e+" required");return n}}},gae=Function.prototype,vae=Foe&&Object.getOwnPropertyDescriptor,yae=Sie(gae,"name"),mae={EXISTS:yae,PROPER:yae&&"something"===function(){}.name,CONFIGURABLE:yae&&(!Foe||Foe&&vae(gae,"name").configurable)},bae=xoe((function(e){var t=mae.CONFIGURABLE,n=hae.get,r=hae.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;Zoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sie(i,"name")||t&&i.name!==f)&&Xie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==koe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Xie(e,n,i)):l?e[n]=i:bie(n,i)})(Function.prototype,"toString",(function(){return Zoe(this)&&n(this).source||tae(this)}))})),wae=Math.ceil,Eae=Math.floor,Dae=function(e){var t=+e;return t!=t||0===t?0:(t>0?Eae:wae)(t)},Cae=Math.max,xae=Math.min,Sae=function(e,t){var n=Dae(e);return n<0?Cae(n+t,0):xae(n,t)},Aae=Math.min,Oae=function(e){return e>0?Aae(Dae(e),9007199254740991):0},kae=function(e){return Oae(e.length)},Bae=function(e){return function(t,n,r){var o,i=Xoe(t),a=kae(i),u=Sae(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}},Fae=(Bae(!0),Bae(!1)),Tae=$oe([].push),_ae=function(e,t){var n,r=Xoe(e),o=0,i=[];for(n in r)!Sie(aae,n)&&Sie(r,n)&&Tae(i,n);for(;t.length>o;)Sie(r,n=t[o++])&&(~Fae(i,n)||Tae(i,n));return i},Pae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jae=Pae.concat("length","prototype"),Nae={f:Object.getOwnPropertyNames||function(e){return _ae(e,jae)}},Iae={f:Object.getOwnPropertySymbols},Lae=$oe([].concat),Rae=eie("Reflect","ownKeys")||function(e){var t=Nae.f(Gie(e)),n=Iae.f;return n?Lae(t,n(e)):t},Mae=function(e,t){for(var n=Rae(t),r=Yie.f,o=Vie.f,i=0;i<n.length;i++){var a=n[i];Sie(e,a)||r(e,a,o(t,a))}},zae=/#|\.prototype\./,$ae=function(e,t){var n=Vae[Hae(e)];return n==Wae||n!=Uae&&(Zoe(t)?Boe(t):!!t)},Hae=$ae.normalize=function(e){return String(e).replace(zae,".").toLowerCase()},Vae=$ae.data={},Uae=$ae.NATIVE="N",Wae=$ae.POLYFILL="P",Gae=$ae,qae=Vie.f,Kae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?koe:l?koe[u]||bie(u,{}):(koe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=qae(n,r))&&a.value:n[r],!Gae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Mae(i,o)}(e.sham||o&&o.sham)&&Xie(i,"sham",!0),bae(n,r,i,e)}},Yae=Array.isArray||function(e){return"Array"==Uoe(e)},Xae={};Xae[jie("toStringTag")]="z";var Zae="[object z]"===String(Xae),Jae=jie("toStringTag"),Qae=koe.Object,eue="Arguments"==Uoe(function(){return arguments}()),tue=Zae?Uoe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Qae(e),Jae))?n:eue?Uoe(t):"Object"==(r=Uoe(t))&&Zoe(t.callee)?"Arguments":r},nue=function(){},rue=[],oue=eie("Reflect","construct"),iue=/^\s*(?:class|function)\b/,aue=$oe(iue.exec),uue=!iue.exec(nue),sue=function(e){if(!Zoe(e))return!1;try{return oue(nue,rue,e),!0}catch(e){return!1}},lue=!oue||Boe((function(){var e;return sue(sue.call)||!sue(Object)||!sue((function(){e=!0}))||e}))?function(e){if(!Zoe(e))return!1;switch(tue(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uue||!!aue(iue,tae(e))}:sue,cue=function(e,t,n){var r=Lie(t);r in e?Yie.f(e,r,Ioe(0,n)):e[r]=n},fue=jie("species"),due=$oe([].slice),pue=uie>=51||!Boe((function(){var e=[];return(e.constructor={})[fue]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),hue=jie("species"),gue=koe.Array,vue=Math.max;Kae({target:"Array",proto:!0,forced:!pue},{slice:function(e,t){var n,r,o,i=Xoe(this),a=kae(i),u=Sae(e,a),s=Sae(void 0===t?a:t,a);if(Yae(i)&&(n=i.constructor,(lue(n)&&(n===gue||Yae(n.prototype))||Joe(n)&&null===(n=n[hue]))&&(n=void 0),n===gue||void 0===n))return due(i,u,s);for(r=new(void 0===n?gue:n)(vue(s-u,0)),o=0;u<s;u++,o++)u in i&&cue(r,o,i[u]);return r.length=o,r}});var yue=Zae?{}.toString:function(){return"[object "+tue(this)+"]"};Zae||bae(Object.prototype,"toString",yue,{unsafe:!0});var mue,bue=koe.String,wue=function(e){if("Symbol"===tue(e))throw TypeError("Cannot convert a Symbol value to a string");return bue(e)},Eue=function(){var e=Gie(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},Due=koe.RegExp,Cue=Boe((function(){var e=Due("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),xue=Cue||Boe((function(){return!Due("a","y").sticky})),Sue={BROKEN_CARET:Cue||Boe((function(){var e=Due("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:xue,UNSUPPORTED_Y:Cue},Aue=Object.keys||function(e){return _ae(e,Pae)},Oue=Foe?Object.defineProperties:function(e,t){Gie(e);for(var n,r=Xoe(t),o=Aue(t),i=o.length,a=0;i>a;)Yie.f(e,n=o[a++],r[n]);return e},kue=eie("document","documentElement"),Bue=iae("IE_PROTO"),Fue=function(){},Tue=function(e){return"<script>"+e+"<\/script>"},_ue=function(e){e.write(Tue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Pue=function(){try{mue=new ActiveXObject("htmlfile")}catch(e){}var e,t;Pue="undefined"!=typeof document?document.domain&&mue?_ue(mue):((t=zie("iframe")).style.display="none",kue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Tue("document.F=Object")),e.close(),e.F):_ue(mue);for(var n=Pae.length;n--;)delete Pue.prototype[Pae[n]];return Pue()};aae[Bue]=!0;var jue,Nue,Iue=Object.create||function(e,t){var n;return null!==e?(Fue.prototype=Gie(e),n=new Fue,Fue.prototype=null,n[Bue]=e):n=Pue(),void 0===t?n:Oue(n,t)},Lue=koe.RegExp,Rue=Boe((function(){var e=Lue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Mue=koe.RegExp,zue=Boe((function(){var e=Mue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),$ue=hae.get,Hue=Eie("native-string-replace",String.prototype.replace),Vue=RegExp.prototype.exec,Uue=Vue,Wue=$oe("".charAt),Gue=$oe("".indexOf),que=$oe("".replace),Kue=$oe("".slice),Yue=(Nue=/b*/g,_oe(Vue,jue=/a/,"a"),_oe(Vue,Nue,"a"),0!==jue.lastIndex||0!==Nue.lastIndex),Xue=Sue.BROKEN_CARET,Zue=void 0!==/()??/.exec("")[1];(Yue||Zue||Xue||Rue||zue)&&(Uue=function(e){var t,n,r,o,i,a,u,s=this,l=$ue(s),c=wue(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=_oe(Uue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Xue&&s.sticky,h=_oe(Eue,s),g=s.source,v=0,y=c;if(p&&(h=que(h,"y",""),-1===Gue(h,"g")&&(h+="g"),y=Kue(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)),Zue&&(n=new RegExp("^"+g+"$(?!\\s)",h)),Yue&&(r=s.lastIndex),o=_oe(Vue,p?n:s,y),p?o?(o.input=Kue(o.input,v),o[0]=Kue(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Yue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Zue&&o&&o.length>1&&_oe(Hue,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=Iue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Jue=Uue;Kae({target:"RegExp",proto:!0,forced:/./.exec!==Jue},{exec:Jue});var Que=Function.prototype,ese=Que.apply,tse=Que.bind,nse=Que.call,rse="object"==typeof Reflect&&Reflect.apply||(tse?nse.bind(ese):function(){return nse.apply(ese,arguments)}),ose=jie("species"),ise=RegExp.prototype,ase=jie("match"),use=koe.TypeError,sse=jie("species"),lse=function(e,t){var n,r=Gie(e).constructor;return void 0===r||null==(n=Gie(r)[sse])?t:function(e){if(lue(e))return e;throw use(pie(e)+" is not a constructor")}(n)},cse=$oe("".charAt),fse=$oe("".charCodeAt),dse=$oe("".slice),pse=function(e){return function(t,n){var r,o,i=wue(Yoe(t)),a=Dae(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=fse(i,a))<55296||r>56319||a+1===u||(o=fse(i,a+1))<56320||o>57343?e?cse(i,a):r:e?dse(i,a,a+2):o-56320+(r-55296<<10)+65536}},hse={codeAt:pse(!1),charAt:pse(!0)},gse=hse.charAt,vse=function(e,t,n){return t+(n?gse(e,t).length:1)},yse=koe.Array,mse=Math.max,bse=function(e,t,n){for(var r=kae(e),o=Sae(t,r),i=Sae(void 0===n?r:n,r),a=yse(mse(i-o,0)),u=0;o<i;o++,u++)cue(a,u,e[o]);return a.length=u,a},wse=koe.TypeError,Ese=function(e,t){var n=e.exec;if(Zoe(n)){var r=_oe(n,e,t);return null!==r&&Gie(r),r}if("RegExp"===Uoe(e))return _oe(Jue,e,t);throw wse("RegExp#exec called on incompatible receiver")},Dse=Sue.UNSUPPORTED_Y,Cse=Math.min,xse=[].push,Sse=$oe(/./.exec),Ase=$oe(xse),Ose=$oe("".slice);!function(e,t,n,r){var o=jie(e),i=!Boe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Boe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[ose]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=$oe(/./[o]),s=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=wue(Yoe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Joe(r=e)||!(void 0!==(o=r[ase])?o:"RegExp"==Uoe(r)))return _oe(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=_oe(Jue,p,i))&&!((s=p.lastIndex)>d&&(Ase(c,Ose(i,d,u.index)),u.length>1&&u.index<i.length&&rse(xse,c,bse(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Sse(p,"")||Ase(c,""):Ase(c,Ose(i,d)),c.length>a?bse(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:_oe(t,this,e,n)}:t,[function(t,n){var o=Yoe(this),i=null==t?void 0:vie(t,e);return i?_oe(i,t,o,n):_oe(r,wue(o),t,n)},function(e,o){var i=Gie(this),a=wue(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=lse(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Dse?"g":"y"),f=new s(Dse?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Ese(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Dse?0:h;var v,y=Ese(f,Dse?Ose(a,h):a);if(null===y||(v=Cse(Oae(f.lastIndex+(Dse?h:0)),a.length))===p)h=vse(a,h,l);else{if(Ase(g,Ose(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Ase(g,y[m]),g.length===d)return g;h=p=v}}return Ase(g,Ose(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=$oe(e),s=t.exec;return s===Jue||s===ise.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));bae(String.prototype,e,s[0]),bae(ise,o,s[1])}r&&Xie(ise[o],"sham",!0)}("split",0,!!Boe((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]})),Dse);
|
|
98
|
+
/*! *****************************************************************************
|
|
99
|
+
Copyright (c) Microsoft Corporation.
|
|
100
|
+
|
|
101
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
102
|
+
purpose with or without fee is hereby granted.
|
|
103
|
+
|
|
104
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
105
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
106
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
107
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
108
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
109
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
110
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
111
|
+
***************************************************************************** */
|
|
112
|
+
var kse=function(){return kse=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},kse.apply(this,arguments)};function Bse(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}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 Fse(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(e){i=[6,e],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 Tse(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){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var _se=jie("unscopables"),Pse=Array.prototype;null==Pse[_se]&&Yie.f(Pse,_se,{configurable:!0,value:Iue(null)});var jse,Nse,Ise,Lse=function(e){Pse[_se][e]=!0},Rse={},Mse=!Boe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),zse=iae("IE_PROTO"),$se=koe.Object,Hse=$se.prototype,Vse=Mse?$se.getPrototypeOf:function(e){var t=Cie(e);if(Sie(t,zse))return t[zse];var n=t.constructor;return Zoe(n)&&t instanceof n?n.prototype:t instanceof $se?Hse:null},Use=jie("iterator"),Wse=!1;[].keys&&("next"in(Ise=[].keys())?(Nse=Vse(Vse(Ise)))!==Object.prototype&&(jse=Nse):Wse=!0);var Gse=null==jse||Boe((function(){var e={};return jse[Use].call(e)!==e}));Gse&&(jse={}),Zoe(jse[Use])||bae(jse,Use,(function(){return this}));var qse={IteratorPrototype:jse,BUGGY_SAFARI_ITERATORS:Wse},Kse=Yie.f,Yse=jie("toStringTag"),Xse=function(e,t,n){e&&!Sie(e=n?e:e.prototype,Yse)&&Kse(e,Yse,{configurable:!0,value:t})},Zse=qse.IteratorPrototype,Jse=function(){return this},Qse=koe.String,ele=koe.TypeError,tle=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=$oe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Gie(n),function(e){if("object"==typeof e||Zoe(e))return e;throw ele("Can't set "+Qse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),nle=mae.PROPER,rle=mae.CONFIGURABLE,ole=qse.IteratorPrototype,ile=qse.BUGGY_SAFARI_ITERATORS,ale=jie("iterator"),ule=function(){return this},sle=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Iue(Zse,{next:Ioe(1,n)}),Xse(e,o,!1),Rse[o]=Jse}(n,t,r);var u,s,l,c=function(e){if(e===o&&g)return g;if(!ile&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ale]||p["@@iterator"]||o&&p[o],g=!ile&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(u=Vse(v.call(new e)))!==Object.prototype&&u.next&&(Vse(u)!==ole&&(tle?tle(u,ole):Zoe(u[ale])||bae(u,ale,ule)),Xse(u,f,!0)),nle&&"values"==o&&h&&"values"!==h.name&&(rle?Xie(p,"name","values"):(d=!0,g=function(){return _oe(h,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(ile||d||!(l in p))&&bae(p,l,s[l]);else Kae({target:t,proto:!0,forced:ile||d},s);return p[ale]!==g&&bae(p,ale,g,{name:o}),Rse[t]=g,s},lle=hae.set,cle=hae.getterFor("Array Iterator"),fle=sle(Array,"Array",(function(e,t){lle(this,{type:"Array Iterator",target:Xoe(e),index:0,kind:t})}),(function(){var e=cle(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");Rse.Arguments=Rse.Array,Lse("keys"),Lse("values"),Lse("entries");var dle=hse.charAt,ple=hae.set,hle=hae.getterFor("String Iterator");sle(String,"String",(function(e){ple(this,{type:"String Iterator",string:wue(e),index:0})}),(function(){var e,t=hle(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dle(n,r),t.index+=e.length,{value:e,done:!1})}));var gle=function(e,t,n){for(var r in t)bae(e,r,t[r],n);return e},vle=Nae.f,yle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mle={f:function(e){return yle&&"Window"==Uoe(e)?function(e){try{return vle(e)}catch(e){return bse(yle)}}(e):vle(Xoe(e))}},ble=Boe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),wle=Object.isExtensible,Ele=Boe((function(){wle(1)}))||ble?function(e){return!!Joe(e)&&(!ble||"ArrayBuffer"!=Uoe(e))&&(!wle||wle(e))}:wle,Dle=!Boe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Cle=xoe((function(e){var t=Yie.f,n=!1,r=Bie("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=Nae.f,t=$oe([].splice),o={};o[r]=1,e(o).length&&(Nae.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},Kae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:mle.f}))},fastKey:function(e,t){if(!Joe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Sie(e,r)){if(!Ele(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Sie(e,r)){if(!Ele(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Dle&&n&&Ele(e)&&!Sie(e,r)&&i(e),e}};aae[r]=!0})),xle=$oe($oe.bind),Sle=function(e,t){return gie(e),void 0===t?e:xle?xle(e,t):function(){return e.apply(t,arguments)}},Ale=jie("iterator"),Ole=Array.prototype,kle=jie("iterator"),Ble=function(e){if(null!=e)return vie(e,kle)||vie(e,"@@iterator")||Rse[tue(e)]},Fle=koe.TypeError,Tle=function(e,t,n){var r,o;Gie(e);try{if(!(r=vie(e,"return"))){if("throw"===t)throw n;return n}r=_oe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Gie(r),n},_le=koe.TypeError,Ple=function(e,t){this.stopped=e,this.result=t},jle=Ple.prototype,Nle=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=Sle(t,f),v=function(e){return r&&Tle(r,"normal",e),new Ple(!0,e)},y=function(e){return d?(Gie(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=Ble(e)))throw _le(pie(e)+" is not iterable");if(void 0!==(c=o)&&(Rse.Array===c||Ole[Ale]===c)){for(i=0,a=kae(e);a>i;i++)if((u=y(e[i]))&&tie(jle,u))return u;return new Ple(!1)}r=function(e,t){var n=arguments.length<2?Ble(e):t;if(gie(n))return Gie(_oe(n,e));throw Fle(pie(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=_oe(s,r)).done;){try{u=y(l.value)}catch(e){Tle(r,"throw",e)}if("object"==typeof u&&u&&tie(jle,u))return u}return new Ple(!1)},Ile=koe.TypeError,Lle=function(e,t){if(tie(t,e))return e;throw Ile("Incorrect invocation")},Rle=jie("iterator"),Mle=!1;try{var zle=0,$le={next:function(){return{done:!!zle++}},return:function(){Mle=!0}};$le[Rle]=function(){return this},Array.from($le,(function(){throw 2}))}catch(Vl){}var Hle=function(e,t){if(!t&&!Mle)return!1;var n=!1;try{var r={};r[Rle]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Vle=jie("species"),Ule=koe.Array,Wle=function(e,t){return new(function(e){var t;return Yae(e)&&(t=e.constructor,(lue(t)&&(t===Ule||Yae(t.prototype))||Joe(t)&&null===(t=t[Vle]))&&(t=void 0)),void 0===t?Ule:t}(e))(0===t?0:t)},Gle=$oe([].push),qle=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=Cie(s),g=qoe(h),v=Sle(l,c),y=kae(g),m=0,b=f||Wle,w=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Gle(w,d)}else switch(e){case 4:return!1;case 7:Gle(w,d)}return i?-1:r||o?o:w}},Kle={forEach:qle(0),map:qle(1),filter:qle(2),some:qle(3),every:qle(4),find:qle(5),findIndex:qle(6),filterReject:qle(7)},Yle=Cle.getWeakData,Xle=hae.set,Zle=hae.getterFor,Jle=Kle.find,Qle=Kle.findIndex,ece=$oe([].splice),tce=0,nce=function(e){return e.frozen||(e.frozen=new rce)},rce=function(){this.entries=[]},oce=function(e,t){return Jle(e.entries,(function(e){return e[0]===t}))};rce.prototype={get:function(e){var t=oce(this,e);if(t)return t[1]},has:function(e){return!!oce(this,e)},set:function(e,t){var n=oce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Qle(this.entries,(function(t){return t[0]===e}));return~t&&ece(this.entries,t,1),!!~t}};var ice,ace={getConstructor:function(e,t,n,r){var o=e((function(e,o){Lle(e,i),Xle(e,{type:t,id:tce++,frozen:void 0}),null!=o&&Nle(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Zle(t),u=function(e,t,n){var r=a(e),o=Yle(Gie(t),!0);return!0===o?nce(r).set(t,n):o[r.id]=n,e};return gle(i,{delete:function(e){var t=a(this);if(!Joe(e))return!1;var n=Yle(e);return!0===n?nce(t).delete(e):n&&Sie(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Joe(e))return!1;var n=Yle(e);return!0===n?nce(t).has(e):n&&Sie(n,t.id)}}),gle(i,n?{get:function(e){var t=a(this);if(Joe(e)){var n=Yle(e);return!0===n?nce(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}},uce=hae.enforce,sce=!koe.ActiveXObject&&"ActiveXObject"in koe,lce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},cce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=koe[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=$oe(u[e]);bae(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Joe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Joe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Joe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Gae(e,!Zoe(a)||!(o||u.forEach&&!Boe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Cle.enable();else if(Gae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Boe((function(){f.has(1)})),h=Hle((function(e){new a(e)})),g=!o&&Boe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Lle(e,u);var n=function(e,t,n){var r,o;return tle&&Zoe(r=t.constructor)&&r!==n&&Joe(o=r.prototype)&&o!==n.prototype&&tle(e,o),e}(new a,e,s);return null!=t&&Nle(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,Kae({global:!0,forced:s!=a},l),Xse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",lce,ace);if(rae&&sce){ice=ace.getConstructor(lce,"WeakMap",!0),Cle.enable();var fce=cce.prototype,dce=$oe(fce.delete),pce=$oe(fce.has),hce=$oe(fce.get),gce=$oe(fce.set);gle(fce,{delete:function(e){if(Joe(e)&&!Ele(e)){var t=uce(this);return t.frozen||(t.frozen=new ice),dce(this,e)||t.frozen.delete(e)}return dce(this,e)},has:function(e){if(Joe(e)&&!Ele(e)){var t=uce(this);return t.frozen||(t.frozen=new ice),pce(this,e)||t.frozen.has(e)}return pce(this,e)},get:function(e){if(Joe(e)&&!Ele(e)){var t=uce(this);return t.frozen||(t.frozen=new ice),pce(this,e)?hce(this,e):t.frozen.get(e)}return hce(this,e)},set:function(e,t){if(Joe(e)&&!Ele(e)){var n=uce(this);n.frozen||(n.frozen=new ice),pce(this,e)?gce(this,e,t):n.frozen.set(e,t)}else gce(this,e,t);return this}})}var vce={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},yce=zie("span").classList,mce=yce&&yce.constructor&&yce.constructor.prototype,bce=mce===Object.prototype?void 0:mce,wce=jie("iterator"),Ece=jie("toStringTag"),Dce=fle.values,Cce=function(e,t){if(e){if(e[wce]!==Dce)try{Xie(e,wce,Dce)}catch(t){e[wce]=Dce}if(e[Ece]||Xie(e,Ece,t),vce[t])for(var n in fle)if(e[n]!==fle[n])try{Xie(e,n,fle[n])}catch(t){e[n]=fle[n]}}};for(var xce in vce)Cce(koe[xce]&&koe[xce].prototype,xce);Cce(bce,"DOMTokenList");var Sce=function(e,t){var n=[][e];return!!n&&Boe((function(){n.call(null,t||function(){throw 1},1)}))},Ace=Kle.forEach,Oce=Sce("forEach")?[].forEach:function(e){return Ace(this,e,arguments.length>1?arguments[1]:void 0)},kce=function(e){if(e&&e.forEach!==Oce)try{Xie(e,"forEach",Oce)}catch(i){e.forEach=Oce}};for(var Bce in vce)vce[Bce]&&kce(koe[Bce]&&koe[Bce].prototype);kce(bce);var Fce,Tce,_ce,Pce,jce=koe.Promise,Nce=jie("species"),Ice=/(?:ipad|iphone|ipod).*applewebkit/i.test(nie),Lce="process"==Uoe(koe.process),Rce=koe.setImmediate,Mce=koe.clearImmediate,zce=koe.process,$ce=koe.Dispatch,Hce=koe.Function,Vce=koe.MessageChannel,Uce=koe.String,Wce=0,Gce={};try{Fce=koe.location}catch(Vl){}var qce=function(e){if(Sie(Gce,e)){var t=Gce[e];delete Gce[e],t()}},Kce=function(e){return function(){qce(e)}},Yce=function(e){qce(e.data)},Xce=function(e){koe.postMessage(Uce(e),Fce.protocol+"//"+Fce.host)};Rce&&Mce||(Rce=function(e){var t=due(arguments,1);return Gce[++Wce]=function(){rse(Zoe(e)?e:Hce(e),void 0,t)},Tce(Wce),Wce},Mce=function(e){delete Gce[e]},Lce?Tce=function(e){zce.nextTick(Kce(e))}:$ce&&$ce.now?Tce=function(e){$ce.now(Kce(e))}:Vce&&!Ice?(Pce=(_ce=new Vce).port2,_ce.port1.onmessage=Yce,Tce=Sle(Pce.postMessage,Pce)):koe.addEventListener&&Zoe(koe.postMessage)&&!koe.importScripts&&Fce&&"file:"!==Fce.protocol&&!Boe(Xce)?(Tce=Xce,koe.addEventListener("message",Yce,!1)):Tce="onreadystatechange"in zie("script")?function(e){kue.appendChild(zie("script")).onreadystatechange=function(){kue.removeChild(this),qce(e)}}:function(e){setTimeout(Kce(e),0)});var Zce,Jce,Qce,efe,tfe,nfe,rfe,ofe,ife={set:Rce,clear:Mce},afe=/ipad|iphone|ipod/i.test(nie)&&void 0!==koe.Pebble,ufe=/web0s(?!.*chrome)/i.test(nie),sfe=Vie.f,lfe=ife.set,cfe=koe.MutationObserver||koe.WebKitMutationObserver,ffe=koe.document,dfe=koe.process,pfe=koe.Promise,hfe=sfe(koe,"queueMicrotask"),gfe=hfe&&hfe.value;gfe||(Zce=function(){var e,t;for(Lce&&(e=dfe.domain)&&e.exit();Jce;){t=Jce.fn,Jce=Jce.next;try{t()}catch(e){throw Jce?efe():Qce=void 0,e}}Qce=void 0,e&&e.enter()},Ice||Lce||ufe||!cfe||!ffe?!afe&&pfe&&pfe.resolve?((rfe=pfe.resolve(void 0)).constructor=pfe,ofe=Sle(rfe.then,rfe),efe=function(){ofe(Zce)}):Lce?efe=function(){dfe.nextTick(Zce)}:(lfe=Sle(lfe,koe),efe=function(){lfe(Zce)}):(tfe=!0,nfe=ffe.createTextNode(""),new cfe(Zce).observe(nfe,{characterData:!0}),efe=function(){nfe.data=tfe=!tfe}));var vfe,yfe,mfe,bfe,wfe=gfe||function(e){var t={fn:e,next:void 0};Qce&&(Qce.next=t),Jce||(Jce=t,efe()),Qce=t},Efe=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=gie(t),this.reject=gie(n)},Dfe={f:function(e){return new Efe(e)}},Cfe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},xfe="object"==typeof window,Sfe=ife.set,Afe=jie("species"),Ofe="Promise",kfe=hae.getterFor(Ofe),Bfe=hae.set,Ffe=hae.getterFor(Ofe),Tfe=jce&&jce.prototype,_fe=jce,Pfe=Tfe,jfe=koe.TypeError,Nfe=koe.document,Ife=koe.process,Lfe=Dfe.f,Rfe=Lfe,Mfe=!!(Nfe&&Nfe.createEvent&&koe.dispatchEvent),zfe=Zoe(koe.PromiseRejectionEvent),$fe=!1,Hfe=Gae(Ofe,(function(){var e=tae(_fe),t=e!==String(_fe);if(!t&&66===uie)return!0;if(uie>=51&&/native code/.test(e))return!1;var n=new _fe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Afe]=r,!($fe=n.then((function(){}))instanceof r)||!t&&xfe&&!zfe})),Vfe=Hfe||!Hle((function(e){_fe.all(e).catch((function(){}))})),Ufe=function(e){var t;return!(!Joe(e)||!Zoe(t=e.then))&&t},Wfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;wfe((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&&Yfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(jfe("Promise-chain cycle")):(u=Ufe(a))?_oe(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&qfe(e)}))}},Gfe=function(e,t,n){var r,o;Mfe?((r=Nfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),koe.dispatchEvent(r)):r={promise:t,reason:n},!zfe&&(o=koe["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=koe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},qfe=function(e){_oe(Sfe,koe,(function(){var t,n=e.facade,r=e.value;if(Kfe(e)&&(t=Cfe((function(){Lce?Ife.emit("unhandledRejection",r,n):Gfe("unhandledrejection",n,r)})),e.rejection=Lce||Kfe(e)?2:1,t.error))throw t.value}))},Kfe=function(e){return 1!==e.rejection&&!e.parent},Yfe=function(e){_oe(Sfe,koe,(function(){var t=e.facade;Lce?Ife.emit("rejectionHandled",t):Gfe("rejectionhandled",t,e.value)}))},Xfe=function(e,t,n){return function(r){e(t,r,n)}},Zfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Wfe(e,!0))},Jfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw jfe("Promise can't be resolved itself");var r=Ufe(t);r?wfe((function(){var n={done:!1};try{_oe(r,t,Xfe(Jfe,n,e),Xfe(Zfe,n,e))}catch(t){Zfe(n,t,e)}})):(e.value=t,e.state=1,Wfe(e,!1))}catch(t){Zfe({done:!1},t,e)}}};if(Hfe&&(Pfe=(_fe=function(e){Lle(this,Pfe),gie(e),_oe(vfe,this);var t=kfe(this);try{e(Xfe(Jfe,t),Xfe(Zfe,t))}catch(e){Zfe(t,e)}}).prototype,(vfe=function(e){Bfe(this,{type:Ofe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gle(Pfe,{then:function(e,t){var n=Ffe(this),r=n.reactions,o=Lfe(lse(this,_fe));return o.ok=!Zoe(e)||e,o.fail=Zoe(t)&&t,o.domain=Lce?Ife.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Wfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),yfe=function(){var e=new vfe,t=kfe(e);this.promise=e,this.resolve=Xfe(Jfe,t),this.reject=Xfe(Zfe,t)},Dfe.f=Lfe=function(e){return e===_fe||e===mfe?new yfe(e):Rfe(e)},Zoe(jce)&&Tfe!==Object.prototype)){bfe=Tfe.then,$fe||(bae(Tfe,"then",(function(e,t){var n=this;return new _fe((function(e,t){_oe(bfe,n,e,t)})).then(e,t)}),{unsafe:!0}),bae(Tfe,"catch",Pfe.catch,{unsafe:!0}));try{delete Tfe.constructor}catch(Vl){}tle&&tle(Tfe,Pfe)}Kae({global:!0,wrap:!0,forced:Hfe},{Promise:_fe}),Xse(_fe,Ofe,!1),function(e){var t=eie("Promise"),n=Yie.f;Foe&&t&&!t[Nce]&&n(t,Nce,{configurable:!0,get:function(){return this}})}(),mfe=eie(Ofe),Kae({target:Ofe,stat:!0,forced:Hfe},{reject:function(e){var t=Lfe(this);return _oe(t.reject,void 0,e),t.promise}}),Kae({target:Ofe,stat:!0,forced:Hfe},{resolve:function(e){return function(e,t){if(Gie(e),Joe(t)&&t.constructor===e)return t;var n=Dfe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Kae({target:Ofe,stat:!0,forced:Vfe},{all:function(e){var t=this,n=Lfe(t),r=n.resolve,o=n.reject,i=Cfe((function(){var n=gie(t.resolve),i=[],a=0,u=1;Nle(e,(function(e){var s=a++,l=!1;u++,_oe(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=Lfe(t),r=n.reject,o=Cfe((function(){var o=gie(t.resolve);Nle(e,(function(e){_oe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Qfe=mae.PROPER,ede=RegExp.prototype,tde=ede.toString,nde=$oe(Eue),rde=Boe((function(){return"/a/b"!=tde.call({source:"a",flags:"b"})})),ode=Qfe&&"toString"!=tde.name;(rde||ode)&&bae(RegExp.prototype,"toString",(function(){var e=Gie(this),t=wue(e.source),n=e.flags;return"/"+t+"/"+wue(void 0===n&&tie(ede,e)&&!("flags"in ede)?nde(e):n)}),{unsafe:!0});var ide=mae.EXISTS,ade=Yie.f,ude=Function.prototype,sde=$oe(ude.toString),lde=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cde=$oe(lde.exec);Foe&&!ide&&ade(ude,"name",{configurable:!0,get:function(){try{return cde(lde,sde(this))[1]}catch(o){return""}}});var fde=new WeakMap;function dde(e){return e.getMenuConfig("uploadImage")}function pde(e,t){return Bse(this,void 0,void 0,(function(){return Fse(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;M$(e,i,t.name,a),n("ok")}}}))]}))}))}function hde(e,t){return Bse(this,void 0,void 0,(function(){var n,r,o,i;return Fse(this,(function(a){switch(a.label){case 0:return n=function(e){var t=fde.get(e);if(null!=t)return t;var n=dde(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=X_(kse(kse({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return M$(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;M$(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;M$(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),fde.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 gde(e,t){var n,r;return Bse(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return Fse(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=dde(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Tse(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,pde(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return M$(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,hde(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 vde=$oe([].join),yde=qoe!=Object,mde=Sce("join",",");Kae({target:"Array",proto:!0,forced:yde||!mde},{join:function(e){return vde(Xoe(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 bde=function(){function e(){this.title=HP("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 z$(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 M$(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;gde(e,t)}))}},e}(),wde={menus:[{key:"uploadImage",factory:function(){return new bde},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(z$(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(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?gde(e,o):t(r)}},n}};$P("en",{highLightModule:{selectLang:"Language"}}),$P("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Ede="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function Dde(e){var t={exports:{}};return e(t,t.exports),t.exports}var Cde,xde,Sde=function(e){return e&&e.Math==Math&&e},Ade=Sde("object"==typeof globalThis&&globalThis)||Sde("object"==typeof window&&window)||Sde("object"==typeof self&&self)||Sde("object"==typeof Ede&&Ede)||function(){return this}()||Function("return this")(),Ode=Object.defineProperty,kde=function(e,t){try{Ode(Ade,e,{value:t,configurable:!0,writable:!0})}catch(a){Ade[e]=t}return t},Bde=Ade["__core-js_shared__"]||kde("__core-js_shared__",{}),Fde=Dde((function(e){(e.exports=function(e,t){return Bde[e]||(Bde[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Tde=Function.prototype,_de=Tde.bind,Pde=Tde.call,jde=_de&&_de.bind(Pde),Nde=_de?function(e){return e&&jde(Pde,e)}:function(e){return e&&function(){return Pde.apply(e,arguments)}},Ide=Ade.TypeError,Lde=function(e){if(null==e)throw Ide("Can't call method on "+e);return e},Rde=Ade.Object,Mde=function(e){return Rde(Lde(e))},zde=Nde({}.hasOwnProperty),$de=Object.hasOwn||function(e,t){return zde(Mde(e),t)},Hde=0,Vde=Math.random(),Ude=Nde(1..toString),Wde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ude(++Hde+Vde,36)},Gde=function(e){return"function"==typeof e},qde=function(e){return Gde(e)?e:void 0},Kde=function(e,t){return arguments.length<2?qde(Ade[e]):Ade[e]&&Ade[e][t]},Yde=Kde("navigator","userAgent")||"",Xde=Ade.process,Zde=Ade.Deno,Jde=Xde&&Xde.versions||Zde&&Zde.version,Qde=Jde&&Jde.v8;Qde&&(xde=(Cde=Qde.split("."))[0]>0&&Cde[0]<4?1:+(Cde[0]+Cde[1])),!xde&&Yde&&(!(Cde=Yde.match(/Edge\/(\d+)/))||Cde[1]>=74)&&(Cde=Yde.match(/Chrome\/(\d+)/))&&(xde=+Cde[1]);var epe=xde,tpe=function(e){try{return!!e()}catch(e){return!0}},npe=!!Object.getOwnPropertySymbols&&!tpe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&epe&&epe<41})),rpe=npe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ope=Fde("wks"),ipe=Ade.Symbol,ape=ipe&&ipe.for,upe=rpe?ipe:ipe&&ipe.withoutSetter||Wde,spe=function(e){if(!$de(ope,e)||!npe&&"string"!=typeof ope[e]){var t="Symbol."+e;npe&&$de(ipe,e)?ope[e]=ipe[e]:ope[e]=rpe&&ape?ape(t):upe(t)}return ope[e]},lpe={};lpe[spe("toStringTag")]="z";var cpe="[object z]"===String(lpe),fpe=!tpe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),dpe=function(e){return"object"==typeof e?null!==e:Gde(e)},ppe=Ade.document,hpe=dpe(ppe)&&dpe(ppe.createElement),gpe=function(e){return hpe?ppe.createElement(e):{}},vpe=!fpe&&!tpe((function(){return 7!=Object.defineProperty(gpe("div"),"a",{get:function(){return 7}}).a})),ype=Ade.String,mpe=Ade.TypeError,bpe=function(e){if(dpe(e))return e;throw mpe(ype(e)+" is not an object")},wpe=Function.prototype.call,Epe=wpe.bind?wpe.bind(wpe):function(){return wpe.apply(wpe,arguments)},Dpe=Nde({}.isPrototypeOf),Cpe=Ade.Object,xpe=rpe?function(e){return"symbol"==typeof e}:function(e){var t=Kde("Symbol");return Gde(t)&&Dpe(t.prototype,Cpe(e))},Spe=Ade.String,Ape=function(e){try{return Spe(e)}catch(e){return"Object"}},Ope=Ade.TypeError,kpe=function(e){if(Gde(e))return e;throw Ope(Ape(e)+" is not a function")},Bpe=function(e,t){var n=e[t];return null==n?void 0:kpe(n)},Fpe=Ade.TypeError,Tpe=Ade.TypeError,_pe=spe("toPrimitive"),Ppe=function(e){var t=function(e,t){if(!dpe(e)||xpe(e))return e;var n,r=Bpe(e,_pe);if(r){if(void 0===t&&(t="default"),n=Epe(r,e,t),!dpe(n)||xpe(n))return n;throw Tpe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Gde(n=e.toString)&&!dpe(r=Epe(n,e)))return r;if(Gde(n=e.valueOf)&&!dpe(r=Epe(n,e)))return r;if("string"!==t&&Gde(n=e.toString)&&!dpe(r=Epe(n,e)))return r;throw Fpe("Can't convert object to primitive value")}(e,t)}(e,"string");return xpe(t)?t:t+""},jpe=Ade.TypeError,Npe=Object.defineProperty,Ipe={f:fpe?Npe:function(e,t,n){if(bpe(e),t=Ppe(t),bpe(n),vpe)try{return Npe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw jpe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Lpe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rpe=fpe?function(e,t,n){return Ipe.f(e,t,Lpe(1,n))}:function(e,t,n){return e[t]=n,e},Mpe=Nde(Function.toString);Gde(Bde.inspectSource)||(Bde.inspectSource=function(e){return Mpe(e)});var zpe,$pe,Hpe,Vpe=Bde.inspectSource,Upe=Ade.WeakMap,Wpe=Gde(Upe)&&/native code/.test(Vpe(Upe)),Gpe=Fde("keys"),qpe=function(e){return Gpe[e]||(Gpe[e]=Wde(e))},Kpe={},Ype=Ade.TypeError,Xpe=Ade.WeakMap;if(Wpe||Bde.state){var Zpe=Bde.state||(Bde.state=new Xpe),Jpe=Nde(Zpe.get),Qpe=Nde(Zpe.has),ehe=Nde(Zpe.set);zpe=function(e,t){if(Qpe(Zpe,e))throw new Ype("Object already initialized");return t.facade=e,ehe(Zpe,e,t),t},$pe=function(e){return Jpe(Zpe,e)||{}},Hpe=function(e){return Qpe(Zpe,e)}}else{var the=qpe("state");Kpe[the]=!0,zpe=function(e,t){if($de(e,the))throw new Ype("Object already initialized");return t.facade=e,Rpe(e,the,t),t},$pe=function(e){return $de(e,the)?e[the]:{}},Hpe=function(e){return $de(e,the)}}var nhe={set:zpe,get:$pe,has:Hpe,enforce:function(e){return Hpe(e)?$pe(e):zpe(e,{})},getterFor:function(e){return function(t){var n;if(!dpe(t)||(n=$pe(t)).type!==e)throw Ype("Incompatible receiver, "+e+" required");return n}}},rhe=Function.prototype,ohe=fpe&&Object.getOwnPropertyDescriptor,ihe=$de(rhe,"name"),ahe={EXISTS:ihe,PROPER:ihe&&"something"===function(){}.name,CONFIGURABLE:ihe&&(!fpe||fpe&&ohe(rhe,"name").configurable)},uhe=Dde((function(e){var t=ahe.CONFIGURABLE,n=nhe.get,r=nhe.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;Gde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!$de(i,"name")||t&&i.name!==f)&&Rpe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ade?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Rpe(e,n,i)):l?e[n]=i:kde(n,i)})(Function.prototype,"toString",(function(){return Gde(this)&&n(this).source||Vpe(this)}))})),she=Nde({}.toString),lhe=Nde("".slice),che=function(e){return lhe(she(e),8,-1)},fhe=spe("toStringTag"),dhe=Ade.Object,phe="Arguments"==che(function(){return arguments}()),hhe=cpe?che:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=dhe(e),fhe))?n:phe?che(t):"Object"==(r=che(t))&&Gde(t.callee)?"Arguments":r},ghe=cpe?{}.toString:function(){return"[object "+hhe(this)+"]"};cpe||uhe(Object.prototype,"toString",ghe,{unsafe:!0});var vhe,yhe={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},mhe=gpe("span").classList,bhe=mhe&&mhe.constructor&&mhe.constructor.prototype,whe=bhe===Object.prototype?void 0:bhe,Ehe=Nde(Nde.bind),Dhe=Ade.Object,Che=Nde("".split),xhe=tpe((function(){return!Dhe("z").propertyIsEnumerable(0)}))?function(e){return"String"==che(e)?Che(e,""):Dhe(e)}:Dhe,She=Math.ceil,Ahe=Math.floor,Ohe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ahe:She)(t)},khe=Math.min,Bhe=function(e){return e>0?khe(Ohe(e),9007199254740991):0},Fhe=function(e){return Bhe(e.length)},The=Array.isArray||function(e){return"Array"==che(e)},_he=function(){},Phe=[],jhe=Kde("Reflect","construct"),Nhe=/^\s*(?:class|function)\b/,Ihe=Nde(Nhe.exec),Lhe=!Nhe.exec(_he),Rhe=function(e){if(!Gde(e))return!1;try{return jhe(_he,Phe,e),!0}catch(e){return!1}},Mhe=!jhe||tpe((function(){var e;return Rhe(Rhe.call)||!Rhe(Object)||!Rhe((function(){e=!0}))||e}))?function(e){if(!Gde(e))return!1;switch(hhe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lhe||!!Ihe(Nhe,Vpe(e))}:Rhe,zhe=spe("species"),$he=Ade.Array,Hhe=function(e,t){return new(function(e){var t;return The(e)&&(t=e.constructor,(Mhe(t)&&(t===$he||The(t.prototype))||dpe(t)&&null===(t=t[zhe]))&&(t=void 0)),void 0===t?$he:t}(e))(0===t?0:t)},Vhe=Nde([].push),Uhe=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=Mde(s),g=xhe(h),v=function(e,t){return kpe(e),void 0===t?e:Ehe?Ehe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Fhe(g),m=0,b=f||Hhe,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:Vhe(w,d)}else switch(e){case 4:return!1;case 7:Vhe(w,d)}return i?-1:r||o?o:w}},Whe=[Uhe(0),Uhe(1),Uhe(2),Uhe(3),Uhe(4),Uhe(5),Uhe(6),Uhe(7)][0],Ghe=(vhe=[].forEach)&&tpe((function(){vhe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Whe(this,e,arguments.length>1?arguments[1]:void 0)},qhe=function(e){if(e&&e.forEach!==Ghe)try{Rpe(e,"forEach",Ghe)}catch(i){e.forEach=Ghe}};for(var Khe in yhe)yhe[Khe]&&qhe(Ade[Khe]&&Ade[Khe].prototype);qhe(whe);var Yhe={}.propertyIsEnumerable,Xhe=Object.getOwnPropertyDescriptor,Zhe={f:Xhe&&!Yhe.call({1:2},1)?function(e){var t=Xhe(this,e);return!!t&&t.enumerable}:Yhe},Jhe=function(e){return xhe(Lde(e))},Qhe=Object.getOwnPropertyDescriptor,ege={f:fpe?Qhe:function(e,t){if(e=Jhe(e),t=Ppe(t),vpe)try{return Qhe(e,t)}catch(e){}if($de(e,t))return Lpe(!Epe(Zhe.f,e,t),e[t])}},tge=Math.max,nge=Math.min,rge=function(e,t){var n=Ohe(e);return n<0?tge(n+t,0):nge(n,t)},oge=function(e){return function(t,n,r){var o,i=Jhe(t),a=Fhe(i),u=rge(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}},ige=(oge(!0),oge(!1)),age=Nde([].push),uge=function(e,t){var n,r=Jhe(e),o=0,i=[];for(n in r)!$de(Kpe,n)&&$de(r,n)&&age(i,n);for(;t.length>o;)$de(r,n=t[o++])&&(~ige(i,n)||age(i,n));return i},sge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],lge=sge.concat("length","prototype"),cge={f:Object.getOwnPropertyNames||function(e){return uge(e,lge)}},fge={f:Object.getOwnPropertySymbols},dge=Nde([].concat),pge=Kde("Reflect","ownKeys")||function(e){var t=cge.f(bpe(e)),n=fge.f;return n?dge(t,n(e)):t},hge=function(e,t){for(var n=pge(t),r=Ipe.f,o=ege.f,i=0;i<n.length;i++){var a=n[i];$de(e,a)||r(e,a,o(t,a))}},gge=/#|\.prototype\./,vge=function(e,t){var n=mge[yge(e)];return n==wge||n!=bge&&(Gde(t)?tpe(t):!!t)},yge=vge.normalize=function(e){return String(e).replace(gge,".").toLowerCase()},mge=vge.data={},bge=vge.NATIVE="N",wge=vge.POLYFILL="P",Ege=vge,Dge=ege.f,Cge=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ade:l?Ade[u]||kde(u,{}):(Ade[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Dge(n,r))&&a.value:n[r],!Ege(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;hge(i,o)}(e.sham||o&&o.sham)&&Rpe(i,"sham",!0),uhe(n,r,i,e)}},xge=Object.keys||function(e){return uge(e,sge)},Sge=Object.assign,Age=Object.defineProperty,Oge=Nde([].concat),kge=!Sge||tpe((function(){if(fpe&&1!==Sge({b:1},Sge(Age({},"a",{enumerable:!0,get:function(){Age(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!=Sge({},e)[n]||xge(Sge({},t)).join("")!=r}))?function(e,t){for(var n=Mde(e),r=arguments.length,o=1,i=fge.f,a=Zhe.f;r>o;)for(var u,s=xhe(arguments[o++]),l=i?Oge(xge(s),i(s)):xge(s),c=l.length,f=0;c>f;)u=l[f++],fpe&&!Epe(a,s,u)||(n[u]=s[u]);return n}:Sge;Cge({target:"Object",stat:!0,forced:Object.assign!==kge},{assign:kge});var Bge=Dde((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 x=D.value;if(t.length>e.length)return;if(!(x instanceof i)){var S,A=1;if(m){if(!(S=a(E,C,e,y)))break;var O=S.index,k=S.index+S[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--,x=e.slice(C,B),S.index-=C}else if(!(S=a(E,0,x,y)))continue;O=S.index;var T=S[0],_=x.slice(0,O),P=x.slice(O+T.length),j=C+x.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:{});
|
|
113
|
+
/**
|
|
114
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
115
|
+
*
|
|
116
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
117
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
118
|
+
* @namespace
|
|
119
|
+
* @public
|
|
120
|
+
*/e.exports&&(e.exports=t),void 0!==Ede&&(Ede.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:/[<>()?,.:[\]]/},x=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),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=S+"|"+x,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(function(e){var t=e.replace(a,"");return t.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}))}(t.content),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 Fge=["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 Tge(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+Tge(t)}),0)}var _ge,Pge=Ade.String,jge=function(e){if("Symbol"===hhe(e))throw TypeError("Cannot convert a Symbol value to a string");return Pge(e)},Nge=function(){var e=bpe(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},Ige=Ade.RegExp,Lge=tpe((function(){var e=Ige("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Rge=Lge||tpe((function(){return!Ige("a","y").sticky})),Mge={BROKEN_CARET:Lge||tpe((function(){var e=Ige("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Rge,UNSUPPORTED_Y:Lge},zge=fpe?Object.defineProperties:function(e,t){bpe(e);for(var n,r=Jhe(t),o=xge(t),i=o.length,a=0;i>a;)Ipe.f(e,n=o[a++],r[n]);return e},$ge=Kde("document","documentElement"),Hge=qpe("IE_PROTO"),Vge=function(){},Uge=function(e){return"<script>"+e+"<\/script>"},Wge=function(e){e.write(Uge("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gge=function(){try{_ge=new ActiveXObject("htmlfile")}catch(e){}var e,t;Gge="undefined"!=typeof document?document.domain&&_ge?Wge(_ge):((t=gpe("iframe")).style.display="none",$ge.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Uge("document.F=Object")),e.close(),e.F):Wge(_ge);for(var n=sge.length;n--;)delete Gge.prototype[sge[n]];return Gge()};Kpe[Hge]=!0;var qge,Kge,Yge=Object.create||function(e,t){var n;return null!==e?(Vge.prototype=bpe(e),n=new Vge,Vge.prototype=null,n[Hge]=e):n=Gge(),void 0===t?n:zge(n,t)},Xge=Ade.RegExp,Zge=tpe((function(){var e=Xge(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Jge=Ade.RegExp,Qge=tpe((function(){var e=Jge("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),eve=nhe.get,tve=Fde("native-string-replace",String.prototype.replace),nve=RegExp.prototype.exec,rve=nve,ove=Nde("".charAt),ive=Nde("".indexOf),ave=Nde("".replace),uve=Nde("".slice),sve=(Kge=/b*/g,Epe(nve,qge=/a/,"a"),Epe(nve,Kge,"a"),0!==qge.lastIndex||0!==Kge.lastIndex),lve=Mge.BROKEN_CARET,cve=void 0!==/()??/.exec("")[1];(sve||cve||lve||Zge||Qge)&&(rve=function(e){var t,n,r,o,i,a,u,s=this,l=eve(s),c=jge(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Epe(rve,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=lve&&s.sticky,h=Epe(Nge,s),g=s.source,v=0,y=c;if(p&&(h=ave(h,"y",""),-1===ive(h,"g")&&(h+="g"),y=uve(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ove(c,s.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),n=new RegExp("^(?:"+g+")",h)),cve&&(n=new RegExp("^"+g+"$(?!\\s)",h)),sve&&(r=s.lastIndex),o=Epe(nve,p?n:s,y),p?o?(o.input=uve(o.input,v),o[0]=uve(o[0],v),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:sve&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),cve&&o&&o.length>1&&Epe(tve,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=Yge(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var fve=rve;Cge({target:"RegExp",proto:!0,forced:/./.exec!==fve},{exec:fve});var dve=Function.prototype,pve=dve.apply,hve=dve.bind,gve=dve.call,vve="object"==typeof Reflect&&Reflect.apply||(hve?gve.bind(pve):function(){return gve.apply(pve,arguments)}),yve=spe("species"),mve=RegExp.prototype,bve=spe("match"),wve=Ade.TypeError,Eve=spe("species"),Dve=Nde("".charAt),Cve=Nde("".charCodeAt),xve=Nde("".slice),Sve=function(e){return function(t,n){var r,o,i=jge(Lde(t)),a=Ohe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Cve(i,a))<55296||r>56319||a+1===u||(o=Cve(i,a+1))<56320||o>57343?e?Dve(i,a):r:e?xve(i,a,a+2):o-56320+(r-55296<<10)+65536}},Ave=(Sve(!1),Sve(!0)),Ove=function(e,t,n){return t+(n?Ave(e,t).length:1)},kve=Ade.Array,Bve=Math.max,Fve=function(e,t,n){for(var r,o,i,a,u=Fhe(e),s=rge(t,u),l=rge(void 0===n?u:n,u),c=kve(Bve(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=Ppe(o))in r?Ipe.f(r,a,Lpe(0,i)):r[a]=i;return c.length=f,c},Tve=Ade.TypeError,_ve=function(e,t){var n=e.exec;if(Gde(n)){var r=Epe(n,e,t);return null!==r&&bpe(r),r}if("RegExp"===che(e))return Epe(fve,e,t);throw Tve("RegExp#exec called on incompatible receiver")},Pve=Mge.UNSUPPORTED_Y,jve=Math.min,Nve=[].push,Ive=Nde(/./.exec),Lve=Nde(Nve),Rve=Nde("".slice);!function(e,t,n,r){var o=spe(e),i=!tpe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!tpe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[yve]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Nde(/./[o]),s=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=jge(Lde(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!dpe(r=e)||!(void 0!==(o=r[bve])?o:"RegExp"==che(r)))return Epe(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=Epe(fve,p,i))&&!((s=p.lastIndex)>d&&(Lve(c,Rve(i,d,u.index)),u.length>1&&u.index<i.length&&vve(Nve,c,Fve(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Ive(p,"")||Lve(c,""):Lve(c,Rve(i,d)),c.length>a?Fve(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Epe(t,this,e,n)}:t,[function(t,n){var o=Lde(this),i=null==t?void 0:Bpe(t,e);return i?Epe(i,t,o,n):Epe(r,jge(o),t,n)},function(e,o){var i=bpe(this),a=jge(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=bpe(e).constructor;return void 0===r||null==(n=bpe(r)[Eve])?t:function(e){if(Mhe(e))return e;throw wve(Ape(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Pve?"g":"y"),f=new s(Pve?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===_ve(f,a)?[a]:[];for(var p=0,h=0,g=[];h<a.length;){f.lastIndex=Pve?0:h;var v,y=_ve(f,Pve?Rve(a,h):a);if(null===y||(v=jve(Bhe(f.lastIndex+(Pve?h:0)),a.length))===p)h=Ove(a,h,l);else{if(Lve(g,Rve(a,p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(Lve(g,y[m]),g.length===d)return g;h=p=v}}return Lve(g,Rve(a,p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=Nde(e),s=t.exec;return s===fve||s===mve.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));uhe(String.prototype,e,s[0]),uhe(mve,o,s[1])}r&&Rpe(mve[o],"sham",!0)}("split",0,!!tpe((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]})),Pve),Cge({global:!0},{globalThis:Ade}),Gp&&(Hp.fn.attr=Gp);var Mve=ahe.PROPER,zve=RegExp.prototype,$ve=zve.toString,Hve=Nde(Nge),Vve=tpe((function(){return"/a/b"!=$ve.call({source:"a",flags:"b"})})),Uve=Mve&&"toString"!=$ve.name;(Vve||Uve)&&uhe(RegExp.prototype,"toString",(function(){var e=bpe(this),t=jge(e.source),n=e.flags;return"/"+t+"/"+jge(void 0===n&&Dpe(zve,e)&&!("flags"in zve)?Hve(e):n)}),{unsafe:!0});var Wve=function(){function e(){this.title=HP("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(!Of.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()};Ed.setNodes(e,n,{match:function(e){return nk.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=nk.getSelectedNodeByType(e,"code");if(null==t)return null;var n=nk.getParentNode(e,t);return Of.isElement(n)?"pre"!==n.type?null:t:null},e}(),Gve={renderStyle:function(e,t){var n=e,r=t,o="";return Fge.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(!Of.isElement(t))return t;if("code"!==nk.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 Wve},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>"}}]},qve=/"/g,Kve=Nde("".replace);Cge({target:"String",proto:!0,forced:tpe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,n=jge(Lde(this)),r="<a",(r+=' name="'+Kve(jge(t),qve,""")+'"')+">"+n+"</a>";var t,n,r}});var Yve=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(e){o={error:e}}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(!rd.isText(e))return null;var t=nk.getParentNode(null,e);if(t&&"code"===nk.getNodeType(t)){var n=nk.getParentNode(null,t);if(n&&"pre"===nk.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=Bge.languages[t];return n?Bge.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
|
|
121
|
+
/*! *****************************************************************************
|
|
122
|
+
Copyright (c) Microsoft Corporation.
|
|
123
|
+
|
|
124
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
125
|
+
purpose with or without fee is hereby granted.
|
|
126
|
+
|
|
127
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
128
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
129
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
130
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
131
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
132
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
133
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
134
|
+
***************************************************************************** */
|
|
135
|
+
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+Tge(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(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Xve=function(){return Xve=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},Xve.apply(this,arguments)},Zve=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Xve(Xve({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Xve(Xve({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Xve(Xve({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Xve(Xve({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=uA(uA({},o),t||{});if(null!=ik[n])throw new Error("Duplicated key '"+n+"' in menu items");ik[n]=r,function(e,t){null!=t&&(ok[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;VT[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){HT.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;mk[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){yk.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){aF.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;sF[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){uF.push(e)}(e)},e.registerModule=function(e){Jve(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
|
|
136
|
+
/*! *****************************************************************************
|
|
137
|
+
Copyright (c) Microsoft Corporation.
|
|
138
|
+
|
|
139
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
140
|
+
purpose with or without fee is hereby granted.
|
|
141
|
+
|
|
142
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
143
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
144
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
145
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
146
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
147
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
148
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
149
|
+
***************************************************************************** */function Jve(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 Zve.registerMenu(e)})),n&&n.forEach((function(e){return Zve.registerRenderElem(e)})),r&&Zve.registerRenderStyle(r),o&&o.forEach((function(e){return Zve.registerElemToHtml(e)})),i&&Zve.registerStyleToHtml(i),a&&a.forEach((function(e){return Zve.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Zve.registerParseElemHtml(e)})),s&&Zve.registerParseStyleHtml(s),l&&Zve.registerPlugin(l)}Yq.forEach((function(e){return Jve(e)})),Jve(g0),Jve(J3),Jve(Doe),Jve(wde),Jve(Gve);var Qve='<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>',eye={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"]}},tye={hoverbarKeys:Xve(Xve({},eye),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Zve.setEditorConfig(Xve(Xve({},tye),{decorate:Yve}));var nye={hoverbarKeys:eye};Zve.setSimpleEditorConfig(Xve(Xve({},nye),{decorate:Yve}));var rye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:HP("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:HP("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:HP("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:HP("editor.image"),iconSvg:Qve,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:HP("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"]};Zve.setToolbarConfig(rye);var oye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:HP("editor.image"),iconSvg:Qve,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function iye(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)?Zve.simpleEditorConfig:Zve.editorConfig,c=Xve(Xve({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return R_({selector:n,config:Xve(Xve(Xve({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Zve.plugins})}function aye(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?Zve.simpleToolbarConfig:Zve.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return zF(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=uA({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new V_(n,i);return cO.set(a,e),fO.set(e,a),a}(n,{selector:t,config:Xve(Xve({},u),o)});return s}Zve.setSimpleToolbarConfig(oye);var uye=Object.defineProperty,sye=Object.defineProperties,lye=Object.getOwnPropertyDescriptors,cye=Object.getOwnPropertySymbols,fye=Object.prototype.hasOwnProperty,dye=Object.prototype.propertyIsEnumerable,pye=(e,t,n)=>t in e?uye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hye=(e,t)=>{for(var n in t||(t={}))fye.call(t,n)&&pye(e,n,t[n]);if(cye)for(var n of cye(t))dye.call(t,n)&&pye(e,n,t[n]);return e},gye=(e,t)=>sye(e,lye(t));function vye(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`\nPlease use '@${e}' event instead of props`,t}var yye=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const mye=(0,r.defineComponent)({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=(0,r.ref)(null),o=(0,r.shallowRef)(null),i=(0,r.ref)(""),a=()=>{if(!n.value)return;const a=(0,r.toRaw)(e.defaultContent);iye({selector:n.value,mode:e.mode,content:a||[],html:e.defaultHtml||e.modelValue||"",config:gye(hye({},e.defaultConfig),{onCreated(n){if(o.value=n,t.emit("onCreated",n),e.defaultConfig.onCreated){const e=vye("onCreated");throw new Error(e)}},onChange(n){const r=n.getHtml();if(i.value=r,t.emit("update:modelValue",r),t.emit("onChange",n),e.defaultConfig.onChange){const e=vye("onChange");throw new Error(e)}},onDestroyed(n){if(t.emit("onDestroyed",n),e.defaultConfig.onDestroyed){const e=vye("onDestroyed");throw new Error(e)}},onMaxLength(n){if(t.emit("onMaxLength",n),e.defaultConfig.onMaxLength){const e=vye("onMaxLength");throw new Error(e)}},onFocus(n){if(t.emit("onFocus",n),e.defaultConfig.onFocus){const e=vye("onFocus");throw new Error(e)}},onBlur(n){if(t.emit("onBlur",n),e.defaultConfig.onBlur){const e=vye("onBlur");throw new Error(e)}},customAlert(n,r){if(t.emit("customAlert",n,r),e.defaultConfig.customAlert){const e=vye("customAlert");throw new Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){const e=vye("customPaste");throw new Error(e)}let o;return t.emit("customPaste",n,r,(e=>{o=e})),o}})})};function u(e){const t=o.value;null!=t&&t.setHtml(e)}return(0,r.onMounted)((()=>{a()})),(0,r.watch)((()=>e.modelValue),(e=>{e!==i.value&&u(e)})),{box:n}}}),bye={ref:"box",style:{height:"100%"}};function wye(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",bye,null,512)}var Eye=yye(mye,[["render",wye]]);const Dye=(0,r.defineComponent)({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=(0,r.ref)(null),n=n=>{if(t.value){if(null==n)throw new Error("Not found instance of Editor when create <Toolbar/> component");nk.getToolbar(n)||aye({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return(0,r.watchEffect)((()=>{const{editor:t}=e;null!=t&&n(t)})),{selector:t}}}),Cye={ref:"selector"};function xye(e,t,n,o,i,a){return(0,r.openBlock)(),(0,r.createElementBlock)("div",Cye,null,512)}var Sye=yye(Dye,[["render",xye]])}}]);
|