UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

187 lines 807 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bz(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Zu(t){var e={exports:{}};return t(e,e.exports),e.exports}var yi,Cg,yh=function(t){return t&&t.Math==Math&&t},Bt=yh(typeof globalThis=="object"&&globalThis)||yh(typeof window=="object"&&window)||yh(typeof self=="object"&&self)||yh(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")(),S3=Function.prototype,zx=S3.apply,Fz=S3.bind,$x=S3.call,__=typeof Reflect=="object"&&Reflect.apply||(Fz?$x.bind(zx):function(){return $x.apply(zx,arguments)}),P_=Function.prototype,Uw=P_.bind,Ww=P_.call,Tz=Uw&&Uw.bind(Ww),pe=Uw?function(t){return t&&Tz(Ww,t)}:function(t){return t&&function(){return Ww.apply(t,arguments)}},dr=function(t){return typeof t=="function"},Gr=function(t){try{return!!t()}catch{return!0}},$r=!Gr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),yc=Function.prototype.call,tn=yc.bind?yc.bind(yc):function(){return yc.apply(yc,arguments)},Hx={}.propertyIsEnumerable,Vx=Object.getOwnPropertyDescriptor,_z=Vx&&!Hx.call({1:2},1)?function(t){var e=Vx(this,t);return!!e&&e.enumerable}:Hx,A3={f:_z},Un=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Pz=pe({}.toString),jz=pe("".slice),fu=function(t){return jz(Pz(t),8,-1)},xm=Bt.Object,Nz=pe("".split),j_=Gr(function(){return!xm("z").propertyIsEnumerable(0)})?function(t){return fu(t)=="String"?Nz(t,""):xm(t)}:xm,Iz=Bt.TypeError,O3=function(t){if(t==null)throw Iz("Can't call method on "+t);return t},To=function(t){return j_(O3(t))},wn=function(t){return typeof t=="object"?t!==null:dr(t)},Jr={},Ux=function(t){return dr(t)?t:void 0},Kl=function(t,e){return arguments.length<2?Ux(Jr[t])||Ux(Bt[t]):Jr[t]&&Jr[t][e]||Bt[t]&&Bt[t][e]},bd=pe({}.isPrototypeOf),Cm=Kl("navigator","userAgent")||"",Wx=Bt.process,Gx=Bt.Deno,qx=Wx&&Wx.versions||Gx&&Gx.version,Kx=qx&&qx.v8;Kx&&(Cg=(yi=Kx.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!Cg&&Cm&&(!(yi=Cm.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=Cm.match(/Chrome\/(\d+)/))&&(Cg=+yi[1]);var mh,ov=Cg,uo=!!Object.getOwnPropertySymbols&&!Gr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ov&&ov<41}),k3=uo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Lz=Bt.Object,il=k3?function(t){return typeof t=="symbol"}:function(t){var e=Kl("Symbol");return dr(e)&&bd(e.prototype,Lz(t))},Rz=Bt.String,Gw=function(t){try{return Rz(t)}catch{return"Object"}},Mz=Bt.TypeError,B3=function(t){if(dr(t))return t;throw Mz(Gw(t)+" is not a function")},iv=function(t,e){var r=t[e];return r==null?void 0:B3(r)},zz=Bt.TypeError,$z=Object.defineProperty,Wi=Bt["__core-js_shared__"]||function(t,e){try{$z(Bt,t,{value:e,configurable:!0,writable:!0})}catch{Bt[t]=e}return e}("__core-js_shared__",{}),Ju=Zu(function(t){(t.exports=function(e,r){return Wi[e]||(Wi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Hz=Bt.Object,yp=function(t){return Hz(O3(t))},Vz=pe({}.hasOwnProperty),Vt=Object.hasOwn||function(t,e){return Vz(yp(t),e)},Uz=0,Wz=Math.random(),Gz=pe(1 .toString),av=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Gz(++Uz+Wz,36)},mc=Ju("wks"),du=Bt.Symbol,Yx=du&&du.for,qz=k3?du:du&&du.withoutSetter||av,Or=function(t){if(!Vt(mc,t)||!uo&&typeof mc[t]!="string"){var e="Symbol."+t;uo&&Vt(du,t)?mc[t]=du[t]:mc[t]=k3&&Yx?Yx(e):qz(e)}return mc[t]},Kz=Bt.TypeError,Yz=Or("toPrimitive"),Xz=function(t,e){if(!wn(t)||il(t))return t;var r,n=iv(t,Yz);if(n){if(r=tn(n,t,e),!wn(r)||il(r))return r;throw Kz("Can't convert object to primitive value")}return function(o,i){var a,u;if(dr(a=o.toString)&&!wn(u=tn(a,o))||dr(a=o.valueOf)&&!wn(u=tn(a,o)))return u;throw zz("Can't convert object to primitive value")}(t)},Yl=function(t){var e=Xz(t,"string");return il(e)?e:e+""},qw=Bt.document,Zz=wn(qw)&&wn(qw.createElement),N_=function(t){return Zz?qw.createElement(t):{}},I_=!$r&&!Gr(function(){return Object.defineProperty(N_("div"),"a",{get:function(){return 7}}).a!=7}),Xx=Object.getOwnPropertyDescriptor,Jz=$r?Xx:function(t,e){if(t=To(t),e=Yl(e),I_)try{return Xx(t,e)}catch{}if(Vt(t,e))return Un(!tn(A3.f,t,e),t[e])},hy={f:Jz},Qz=/#|\.prototype\./,mp=function(t,e){var r=e$[t$(t)];return r==n$||r!=r$&&(dr(e)?Gr(e):!!e)},t$=mp.normalize=function(t){return String(t).replace(Qz,".").toLowerCase()},e$=mp.data={},r$=mp.NATIVE="N",n$=mp.POLYFILL="P",o$=mp,Zx=pe(pe.bind),F3=function(t,e){return B3(t),e===void 0?t:Zx?Zx(t,e):function(){return t.apply(e,arguments)}},i$=Bt.String,a$=Bt.TypeError,rn=function(t){if(wn(t))return t;throw a$(i$(t)+" is not an object")},u$=Bt.TypeError,Jx=Object.defineProperty,s$=$r?Jx:function(t,e,r){if(rn(t),e=Yl(e),rn(r),I_)try{return Jx(t,e,r)}catch{}if("get"in r||"set"in r)throw u$("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Ca={f:s$},Fr=$r?function(t,e,r){return Ca.f(t,e,Un(1,r))}:function(t,e,r){return t[e]=r,t},l$=hy.f,c$=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return __(t,this,arguments)};return e.prototype=t.prototype,e},Wo=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Bt:d?Bt[c]:(Bt[c]||{}).prototype,y=f?Jr:Jr[c]||Fr(Jr,c,{})[c],g=y.prototype;for(o in e)r=!o$(f?o:c+(d?".":"#")+o,t.forced)&&v&&Vt(v,o),a=y[o],r&&(u=t.noTargetGet?(l=l$(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?F3(i,Bt):t.wrap&&r?c$(i):p&&dr(i)?pe(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Fr(s,"sham",!0),Fr(y,o,s),p&&(Vt(Jr,n=c+"Prototype")||Fr(Jr,n,{}),Fr(Jr[n],o,i),t.real&&g&&!g[o]&&Fr(g,o,i)))},Qx=Ju("keys"),gy=function(t){return Qx[t]||(Qx[t]=av(t))},f$=!Gr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),tC=gy("IE_PROTO"),Kw=Bt.Object,d$=Kw.prototype,uv=f$?Kw.getPrototypeOf:function(t){var e=yp(t);if(Vt(e,tC))return e[tC];var r=e.constructor;return dr(r)&&e instanceof r?r.prototype:e instanceof Kw?d$:null},p$=Bt.String,h$=Bt.TypeError,sv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return rn(n),function(i){if(typeof i=="object"||dr(i))return i;throw h$("Can't set "+p$(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),g$=Math.ceil,v$=Math.floor,T3=function(t){var e=+t;return e!=e||e===0?0:(e>0?v$:g$)(e)},y$=Math.max,m$=Math.min,Yw=function(t,e){var r=T3(t);return r<0?y$(r+e,0):m$(r,e)},b$=Math.min,bp=function(t){return(e=t.length)>0?b$(T3(e),9007199254740991):0;var e},w$=function(t){return function(e,r,n){var o,i=To(e),a=bp(i),u=Yw(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},E$={indexOf:w$(!1)},wp={},D$=E$.indexOf,eC=pe([].push),L_=function(t,e){var r,n=To(t),o=0,i=[];for(r in n)!Vt(wp,r)&&Vt(n,r)&&eC(i,r);for(;e.length>o;)Vt(n,r=e[o++])&&(~D$(i,r)||eC(i,r));return i},lv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],x$=lv.concat("length","prototype"),C$=Object.getOwnPropertyNames||function(t){return L_(t,x$)},_3={f:C$},Sg={f:Object.getOwnPropertySymbols},S$=pe([].concat),A$=Kl("Reflect","ownKeys")||function(t){var e=_3.f(rn(t)),r=Sg.f;return r?S$(e,r(t)):e},P3=Object.keys||function(t){return L_(t,lv)},O$=$r?Object.defineProperties:function(t,e){rn(t);for(var r,n=To(e),o=P3(e),i=o.length,a=0;i>a;)Ca.f(t,r=o[a++],n[r]);return t},k$=Kl("document","documentElement"),R_=gy("IE_PROTO"),Sm=function(){},M_=function(t){return"<script>"+t+"<\/script>"},rC=function(t){t.write(M_("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ag=function(){try{mh=new ActiveXObject("htmlfile")}catch{}var t,e;Ag=typeof document<"u"?document.domain&&mh?rC(mh):((e=N_("iframe")).style.display="none",k$.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(M_("document.F=Object")),t.close(),t.F):rC(mh);for(var r=lv.length;r--;)delete Ag.prototype[lv[r]];return Ag()};wp[R_]=!0;var ni=Object.create||function(t,e){var r;return t!==null?(Sm.prototype=rn(t),r=new Sm,Sm.prototype=null,r[R_]=t):r=Ag(),e===void 0?r:O$(r,e)},Xw=function(t,e,r){var n=Yl(e);n in t?Ca.f(t,n,Un(0,r)):t[n]=r},B$=Bt.Array,F$=Math.max,z_=function(t,e,r){for(var n=bp(t),o=Yw(e,n),i=Yw(n,n),a=B$(F$(i-o,0)),u=0;o<i;o++,u++)Xw(a,u,t[o]);return a.length=u,a},T$=pe("".replace),_$=pe("".split),P$=pe([].join),Zw=String(Error("zxcasd").stack),$_=/\n\s*at [^:]*:[^\n]*/,j$=$_.test(Zw),N$=/@[^\n]*\n/.test(Zw)&&!/zxcasd/.test(Zw),I$=function(t,e){if(typeof t!="string")return t;if(j$)for(;e--;)t=T$(t,$_,"");else if(N$)return P$(z_(_$(t,`
`),e),`
`);return t},L$=function(t,e){wn(e)&&"cause"in e&&Fr(t,"cause",e.cause)},Qo={},R$=Or("iterator"),M$=Array.prototype,H_={};H_[Or("toStringTag")]="z";var j3=String(H_)==="[object z]",z$=Or("toStringTag"),$$=Bt.Object,H$=fu(function(){return arguments}())=="Arguments",Ep=j3?fu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=$$(t),z$))=="string"?r:H$?fu(e):(n=fu(e))=="Object"&&dr(e.callee)?"Arguments":n},V$=Or("iterator"),nC=function(t){if(t!=null)return iv(t,V$)||iv(t,"@@iterator")||Qo[Ep(t)]},U$=Bt.TypeError,oC=function(t,e,r){var n,o;rn(t);try{if(!(n=iv(t,"return"))){if(e==="throw")throw r;return r}n=tn(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return rn(n),r},W$=Bt.TypeError,Og=function(t,e){this.stopped=t,this.result=e},iC=Og.prototype,G$=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=F3(e,c),y=function(m){return n&&oC(n,"normal",m),new Og(!0,m)},g=function(m){return f?(rn(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)n=t;else{if(!(o=nC(t)))throw W$(Gw(t)+" is not iterable");if(function(m){return m!==void 0&&(Qo.Array===m||M$[R$]===m)}(o)){for(i=0,a=bp(t);a>i;i++)if((u=g(t[i]))&&bd(iC,u))return u;return new Og(!1)}n=function(m,h){var b=arguments.length<2?nC(m):h;if(B3(b))return rn(tn(b,m));throw U$(Gw(m)+" is not iterable")}(t,o)}for(s=n.next;!(l=tn(s,n)).done;){try{u=g(l.value)}catch(m){oC(n,"throw",m)}if(typeof u=="object"&&u&&bd(iC,u))return u}return new Og(!1)},q$=Bt.String,wd=function(t){if(Ep(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return q$(t)},K$=function(t,e){return t===void 0?arguments.length<2?"":e:wd(t)},Y$=!Gr(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Un(1,7)),t.stack!==7)}),X$=Or("toStringTag"),cv=Bt.Error,Z$=[].push,Ed=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=bd(Am,this);sv?r=sv(new cv(void 0),o?uv(this):Am):(r=o?this:ni(Am),Fr(r,X$,"Error")),Fr(r,"message",K$(e,"")),Y$&&Fr(r,"stack",I$(r.stack,1)),L$(r,n);var i=[];return G$(t,Z$,{that:i}),Fr(r,"errors",i),r};sv?sv(Ed,cv):function(t,e){for(var r=A$(e),n=Ca.f,o=hy.f,i=0;i<r.length;i++){var a=r[i];Vt(t,a)||n(t,a,o(e,a))}}(Ed,cv);var Am=Ed.prototype=ni(cv.prototype,{constructor:Un(1,Ed),message:Un(1,""),name:Un(1,"AggregateError")});Wo({global:!0},{AggregateError:Ed});var J$=pe(Function.toString);dr(Wi.inspectSource)||(Wi.inspectSource=function(t){return J$(t)});var fv,Yf,dv,V_=Wi.inspectSource,aC=Bt.WeakMap,Q$=dr(aC)&&/native code/.test(V_(aC)),Jw=Bt.TypeError,tH=Bt.WeakMap;if(Q$||Wi.state){var Ia=Wi.state||(Wi.state=new tH),eH=pe(Ia.get),uC=pe(Ia.has),rH=pe(Ia.set);fv=function(t,e){if(uC(Ia,t))throw new Jw("Object already initialized");return e.facade=t,rH(Ia,t,e),e},Yf=function(t){return eH(Ia,t)||{}},dv=function(t){return uC(Ia,t)}}else{var gs=gy("state");wp[gs]=!0,fv=function(t,e){if(Vt(t,gs))throw new Jw("Object already initialized");return e.facade=t,Fr(t,gs,e),e},Yf=function(t){return Vt(t,gs)?t[gs]:{}},dv=function(t){return Vt(t,gs)}}var Mi,sC,lC,Xl={set:fv,get:Yf,has:dv,enforce:function(t){return dv(t)?Yf(t):fv(t,{})},getterFor:function(t){return function(e){var r;if(!wn(e)||(r=Yf(e)).type!==t)throw Jw("Incompatible receiver, "+t+" required");return r}}},U_=Function.prototype,nH=$r&&Object.getOwnPropertyDescriptor,cC=Vt(U_,"name"),oH={PROPER:cC&&(function(){}).name==="something",CONFIGURABLE:cC&&(!$r||$r&&nH(U_,"name").configurable)},pv=function(t,e,r,n){Fr(t,e,r)},Qw=Or("iterator"),W_=!1;[].keys&&("next"in(lC=[].keys())?(sC=uv(uv(lC)))!==Object.prototype&&(Mi=sC):W_=!0);var iH=Mi==null||Gr(function(){var t={};return Mi[Qw].call(t)!==t});Mi=iH?{}:ni(Mi),dr(Mi[Qw])||pv(Mi,Qw,function(){return this});var G_={IteratorPrototype:Mi,BUGGY_SAFARI_ITERATORS:W_},aH=j3?{}.toString:function(){return"[object "+Ep(this)+"]"},uH=Ca.f,fC=Or("toStringTag"),hv=function(t,e,r,n){if(t){var o=r?t:t.prototype;Vt(o,fC)||uH(o,fC,{configurable:!0,value:e}),n&&!j3&&Fr(o,"toString",aH)}},sH=G_.IteratorPrototype,lH=function(){return this},cH=oH.PROPER,Om=G_.BUGGY_SAFARI_ITERATORS,fH=Or("iterator"),dH=function(){return this},q_=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=ni(sH,{next:Un(1,h)}),hv(g,w,!1,!0),Qo[w]=lH})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Om&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[fH]||d["@@iterator"]||o&&d[o],v=!Om&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=uv(y.call(new t)))!==Object.prototype&&u.next&&(hv(u,c,!0,!0),Qo[c]=dH),cH&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return tn(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Wo({target:e,proto:!0,forced:Om||f},s)),Qo[e]=v,s},pH=Xl.set,hH=Xl.getterFor("Array Iterator");q_(Array,"Array",function(t,e){pH(this,{type:"Array Iterator",target:To(t),index:0,kind:e})},function(){var t=hH(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),Qo.Arguments=Qo.Array;var gH=pe("".charAt),dC=pe("".charCodeAt),vH=pe("".slice),yH=function(t){return function(e,r){var n,o,i=wd(O3(e)),a=T3(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=dC(i,a))<55296||n>56319||a+1===u||(o=dC(i,a+1))<56320||o>57343?t?gH(i,a):n:t?vH(i,a,a+2):o-56320+(n-55296<<10)+65536}},mH={charAt:yH(!0)}.charAt,bH=Xl.set,wH=Xl.getterFor("String Iterator");q_(String,"String",function(t){bH(this,{type:"String Iterator",string:wd(t),index:0})},function(){var t,e=wH(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=mH(r,n),e.index+=t.length,{value:t,done:!1})});var EH=Jr.AggregateError,pC=Or("toStringTag");for(var km 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 hC=Bt[km],Bm=hC&&hC.prototype;Bm&&Ep(Bm)!==pC&&Fr(Bm,pC,km),Qo[km]=Qo.Array}var mi,kg,DH=EH,bh=function(t){return t&&t.Math==Math&&t},Et=bh(typeof globalThis=="object"&&globalThis)||bh(typeof window=="object"&&window)||bh(typeof self=="object"&&self)||bh(typeof ae=="object"&&ae)||function(){return this}()||Function("return this")(),ur=function(t){try{return!!t()}catch{return!0}},Co=!ur(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),bc=Function.prototype.call,fr=bc.bind?bc.bind(bc):function(){return bc.apply(bc,arguments)},gC={}.propertyIsEnumerable,vC=Object.getOwnPropertyDescriptor,xH=vC&&!gC.call({1:2},1)?function(t){var e=vC(this,t);return!!e&&e.enumerable}:gC,CH={f:xH},Gi=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},K_=Function.prototype,t4=K_.bind,e4=K_.call,SH=t4&&t4.bind(e4),re=t4?function(t){return t&&SH(e4,t)}:function(t){return t&&function(){return e4.apply(t,arguments)}},AH=re({}.toString),OH=re("".slice),pu=function(t){return OH(AH(t),8,-1)},Fm=Et.Object,kH=re("".split),Y_=ur(function(){return!Fm("z").propertyIsEnumerable(0)})?function(t){return pu(t)=="String"?kH(t,""):Fm(t)}:Fm,BH=Et.TypeError,vy=function(t){if(t==null)throw BH("Can't call method on "+t);return t},Zl=function(t){return Y_(vy(t))},er=function(t){return typeof t=="function"},ho=function(t){return typeof t=="object"?t!==null:er(t)},FH=function(t){return er(t)?t:void 0},Dp=function(t,e){return arguments.length<2?FH(Et[t]):Et[t]&&Et[t][e]},gv=re({}.isPrototypeOf),Tm=Dp("navigator","userAgent")||"",yC=Et.process,mC=Et.Deno,bC=yC&&yC.versions||mC&&mC.version,wC=bC&&bC.v8;wC&&(kg=(mi=wC.split("."))[0]>0&&mi[0]<4?1:+(mi[0]+mi[1])),!kg&&Tm&&(!(mi=Tm.match(/Edge\/(\d+)/))||mi[1]>=74)&&(mi=Tm.match(/Chrome\/(\d+)/))&&(kg=+mi[1]);var EC=kg,r4=!!Object.getOwnPropertySymbols&&!ur(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&EC&&EC<41}),N3=r4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",TH=Et.Object,n4=N3?function(t){return typeof t=="symbol"}:function(t){var e=Dp("Symbol");return er(e)&&gv(e.prototype,TH(t))},_H=Et.String,o4=function(t){try{return _H(t)}catch{return"Object"}},PH=Et.TypeError,I3=function(t){if(er(t))return t;throw PH(o4(t)+" is not a function")},Dd=function(t,e){var r=t[e];return r==null?void 0:I3(r)},jH=Et.TypeError,NH=Object.defineProperty,L3=function(t,e){try{NH(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},qi=Et["__core-js_shared__"]||L3("__core-js_shared__",{}),R3=Zu(function(t){(t.exports=function(e,r){return qi[e]||(qi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),IH=Et.Object,M3=function(t){return IH(vy(t))},LH=re({}.hasOwnProperty),Hr=Object.hasOwn||function(t,e){return LH(M3(t),e)},RH=0,MH=Math.random(),zH=re(1 .toString),X_=function(t){return"Symbol("+(t===void 0?"":t)+")_"+zH(++RH+MH,36)},wc=R3("wks"),hu=Et.Symbol,DC=hu&&hu.for,$H=N3?hu:hu&&hu.withoutSetter||X_,jr=function(t){if(!Hr(wc,t)||!r4&&typeof wc[t]!="string"){var e="Symbol."+t;r4&&Hr(hu,t)?wc[t]=hu[t]:wc[t]=N3&&DC?DC(e):$H(e)}return wc[t]},HH=Et.TypeError,VH=jr("toPrimitive"),UH=function(t,e){if(!ho(t)||n4(t))return t;var r,n=Dd(t,VH);if(n){if(r=fr(n,t,e),!ho(r)||n4(r))return r;throw HH("Can't convert object to primitive value")}return function(o,i){var a,u;if(er(a=o.toString)&&!ho(u=fr(a,o))||er(a=o.valueOf)&&!ho(u=fr(a,o)))return u;throw jH("Can't convert object to primitive value")}(t)},z3=function(t){var e=UH(t,"string");return n4(e)?e:e+""},i4=Et.document,WH=ho(i4)&&ho(i4.createElement),$3=function(t){return WH?i4.createElement(t):{}},Z_=!Co&&!ur(function(){return Object.defineProperty($3("div"),"a",{get:function(){return 7}}).a!=7}),xC=Object.getOwnPropertyDescriptor,GH=Co?xC:function(t,e){if(t=Zl(t),e=z3(e),Z_)try{return xC(t,e)}catch{}if(Hr(t,e))return Gi(!fr(CH.f,t,e),t[e])},H3={f:GH},qH=Et.String,KH=Et.TypeError,nn=function(t){if(ho(t))return t;throw KH(qH(t)+" is not an object")},YH=Et.TypeError,CC=Object.defineProperty,XH=Co?CC:function(t,e,r){if(nn(t),e=z3(e),nn(r),Z_)try{return CC(t,e,r)}catch{}if("get"in r||"set"in r)throw YH("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Jl={f:XH},Mr=Co?function(t,e,r){return Jl.f(t,e,Gi(1,r))}:function(t,e,r){return t[e]=r,t},ZH=re(Function.toString);er(qi.inspectSource)||(qi.inspectSource=function(t){return ZH(t)});var vv,Xf,yv,V3=qi.inspectSource,SC=Et.WeakMap,JH=er(SC)&&/native code/.test(V3(SC)),AC=R3("keys"),U3=function(t){return AC[t]||(AC[t]=X_(t))},W3={},a4=Et.TypeError,QH=Et.WeakMap;if(JH||qi.state){var La=qi.state||(qi.state=new QH),tV=re(La.get),OC=re(La.has),eV=re(La.set);vv=function(t,e){if(OC(La,t))throw new a4("Object already initialized");return e.facade=t,eV(La,t,e),e},Xf=function(t){return tV(La,t)||{}},yv=function(t){return OC(La,t)}}else{var vs=U3("state");W3[vs]=!0,vv=function(t,e){if(Hr(t,vs))throw new a4("Object already initialized");return e.facade=t,Mr(t,vs,e),e},Xf=function(t){return Hr(t,vs)?t[vs]:{}},yv=function(t){return Hr(t,vs)}}var Nu={set:vv,get:Xf,has:yv,enforce:function(t){return yv(t)?Xf(t):vv(t,{})},getterFor:function(t){return function(e){var r;if(!ho(e)||(r=Xf(e)).type!==t)throw a4("Incompatible receiver, "+t+" required");return r}}},J_=Function.prototype,rV=Co&&Object.getOwnPropertyDescriptor,kC=Hr(J_,"name"),G3={PROPER:kC&&(function(){}).name==="something",CONFIGURABLE:kC&&(!Co||Co&&rV(J_,"name").configurable)},Iu=Zu(function(t){var e=G3.CONFIGURABLE,r=Nu.get,n=Nu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;er(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Hr(u,"name")||e&&u.name!==p)&&Mr(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Mr(i,a,u)):f?i[a]=u:L3(a,u)})(Function.prototype,"toString",function(){return er(this)&&r(this).source||V3(this)})}),nV=Math.ceil,oV=Math.floor,q3=function(t){var e=+t;return e!=e||e===0?0:(e>0?oV:nV)(e)},iV=Math.max,aV=Math.min,u4=function(t,e){var r=q3(t);return r<0?iV(r+e,0):aV(r,e)},uV=Math.min,Q_=function(t){return t>0?uV(q3(t),9007199254740991):0},yy=function(t){return Q_(t.length)},sV=function(t){return function(e,r,n){var o,i=Zl(e),a=yy(i),u=u4(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},lV={indexOf:sV(!1)}.indexOf,BC=re([].push),tP=function(t,e){var r,n=Zl(t),o=0,i=[];for(r in n)!Hr(W3,r)&&Hr(n,r)&&BC(i,r);for(;e.length>o;)Hr(n,r=e[o++])&&(~lV(i,r)||BC(i,r));return i},mv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cV=mv.concat("length","prototype"),fV=Object.getOwnPropertyNames||function(t){return tP(t,cV)},dV={f:fV},pV={f:Object.getOwnPropertySymbols},hV=re([].concat),gV=Dp("Reflect","ownKeys")||function(t){var e=dV.f(nn(t)),r=pV.f;return r?hV(e,r(t)):e},eP=function(t,e){for(var r=gV(e),n=Jl.f,o=H3.f,i=0;i<r.length;i++){var a=r[i];Hr(t,a)||n(t,a,o(e,a))}},vV=/#|\.prototype\./,xp=function(t,e){var r=mV[yV(t)];return r==wV||r!=bV&&(er(e)?ur(e):!!e)},yV=xp.normalize=function(t){return String(t).replace(vV,".").toLowerCase()},mV=xp.data={},bV=xp.NATIVE="N",wV=xp.POLYFILL="P",EV=xp,DV=H3.f,Cp=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Et:l?Et[u]||L3(u,{}):(Et[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=DV(r,n))&&a.value:r[n],!EV(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;eP(i,o)}(t.sham||o&&o.sham)&&Mr(i,"sham",!0),Iu(r,n,i,t)}},rP={};rP[jr("toStringTag")]="z";var wh,K3=String(rP)==="[object z]",xV=jr("toStringTag"),CV=Et.Object,SV=pu(function(){return arguments}())=="Arguments",my=K3?pu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=CV(t),xV))=="string"?r:SV?pu(e):(n=pu(e))=="Object"&&er(e.callee)?"Arguments":n},AV=Et.String,gu=function(t){if(my(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return AV(t)},OV=function(){var t=nn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Y3=Et.RegExp,nP=ur(function(){var t=Y3("a","y");return t.lastIndex=2,t.exec("abcd")!=null});nP||ur(function(){return!Y3("a","y").sticky});var kV=nP||ur(function(){var t=Y3("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),BV={BROKEN_CARET:kV},FV=Object.keys||function(t){return tP(t,mv)},TV=Co?Object.defineProperties:function(t,e){nn(t);for(var r,n=Zl(e),o=FV(e),i=o.length,a=0;i>a;)Jl.f(t,r=o[a++],n[r]);return t},_V=Dp("document","documentElement"),oP=U3("IE_PROTO"),_m=function(){},iP=function(t){return"<script>"+t+"<\/script>"},FC=function(t){t.write(iP("")),t.close();var e=t.parentWindow.Object;return t=null,e},Bg=function(){try{wh=new ActiveXObject("htmlfile")}catch{}var t,e;Bg=typeof document<"u"?document.domain&&wh?FC(wh):((e=$3("iframe")).style.display="none",_V.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(iP("document.F=Object")),t.close(),t.F):FC(wh);for(var r=mv.length;r--;)delete Bg.prototype[mv[r]];return Bg()};W3[oP]=!0;var TC,Pm,Sp=Object.create||function(t,e){var r;return t!==null?(_m.prototype=nn(t),r=new _m,_m.prototype=null,r[oP]=t):r=Bg(),e===void 0?r:TV(r,e)},PV=Et.RegExp,jV=ur(function(){var t=PV(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),NV=Et.RegExp,IV=ur(function(){var t=NV("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),LV=Nu.get,RV=R3("native-string-replace",String.prototype.replace),bv=RegExp.prototype.exec,s4=bv,MV=re("".charAt),zV=re("".indexOf),$V=re("".replace),jm=re("".slice),Nm=(Pm=/b*/g,fr(bv,TC=/a/,"a"),fr(bv,Pm,"a"),TC.lastIndex!==0||Pm.lastIndex!==0),_C=BV.BROKEN_CARET,Im=/()??/.exec("")[1]!==void 0;(Nm||Im||_C||jV||IV)&&(s4=function(t){var e,r,n,o,i,a,u,s=this,l=LV(s),c=gu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=fr(s4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=_C&&s.sticky,v=fr(OV,s),y=s.source,g=0,m=c;if(p&&(v=$V(v,"y",""),zV(v,"g")===-1&&(v+="g"),m=jm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&MV(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),Im&&(r=new RegExp("^"+y+"$(?!\\s)",v)),Nm&&(n=s.lastIndex),o=fr(bv,p?r:s,m),p?o?(o.input=jm(o.input,g),o[0]=jm(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Nm&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Im&&o&&o.length>1&&fr(RV,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Sp(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var wv=s4;Cp({target:"RegExp",proto:!0,forced:/./.exec!==wv},{exec:wv});var HV=jr("species"),PC=RegExp.prototype,VV=re("".charAt),jC=re("".charCodeAt),UV=re("".slice),WV=function(t){return function(e,r){var n,o,i=gu(vy(e)),a=q3(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=jC(i,a))<55296||n>56319||a+1===u||(o=jC(i,a+1))<56320||o>57343?t?VV(i,a):n:t?UV(i,a,a+2):o-56320+(n-55296<<10)+65536}},aP={charAt:WV(!0)},GV=aP.charAt,qV=function(t,e,r){return e+(r?GV(t,e).length:1)},KV=Et.TypeError,NC=function(t,e){var r=t.exec;if(er(r)){var n=fr(r,t,e);return n!==null&&nn(n),n}if(pu(t)==="RegExp")return fr(wv,t,e);throw KV("RegExp#exec called on incompatible receiver")};(function(t,e,r,n){var o=jr(t),i=!ur(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ur(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[HV]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=re(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=re(l),y=c.exec;return y===wv||y===PC.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Iu(String.prototype,t,s[0]),Iu(PC,o,s[1])}})("match",function(t,e,r){return[function(n){var o=vy(this),i=n==null?void 0:Dd(n,t);return i?fr(i,n,o):new RegExp(n)[t](gu(o))},function(n){var o=nn(this),i=gu(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return NC(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=NC(o,i))!==null;){var f=gu(s[0]);l[c]=f,f===""&&(o.lastIndex=qV(i,Q_(o.lastIndex),u)),c++}return c===0?null:l}]}),Cp({global:!0},{globalThis:Et});var YV=!ur(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),IC=U3("IE_PROTO"),l4=Et.Object,XV=l4.prototype,xd=YV?l4.getPrototypeOf:function(t){var e=M3(t);if(Hr(e,IC))return e[IC];var r=e.constructor;return er(r)&&e instanceof r?r.prototype:e instanceof l4?XV:null},ZV=Et.String,JV=Et.TypeError,ml=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=re(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return nn(n),function(i){if(typeof i=="object"||er(i))return i;throw JV("Can't set "+ZV(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),QV=Et.Array,tU=Math.max,eU=re("".replace),rU=re("".split),nU=re([].join),c4=String(Error("zxcasd").stack),uP=/\n\s*at [^:]*:[^\n]*/,oU=uP.test(c4),iU=/@[^\n]*\n/.test(c4)&&!/zxcasd/.test(c4),aU=function(t,e){if(typeof t!="string")return t;if(oU)for(;e--;)t=eU(t,uP,"");else if(iU)return nU(function(r,n,o){for(var i,a,u,s,l=yy(r),c=u4(n,l),f=u4(l,l),d=QV(tU(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],s=void 0,(s=z3(a))in i?Jl.f(i,s,Gi(0,u)):i[s]=u;return d.length=p,d}(rU(t,`
`),e),`
`);return t},uU=function(t,e){ho(e)&&"cause"in e&&Mr(t,"cause",e.cause)},LC=re(re.bind),sP=function(t,e){return I3(t),e===void 0?t:LC?LC(t,e):function(){return t.apply(e,arguments)}},bl={},sU=jr("iterator"),lU=Array.prototype,cU=jr("iterator"),RC=function(t){if(t!=null)return Dd(t,cU)||Dd(t,"@@iterator")||bl[my(t)]},fU=Et.TypeError,MC=function(t,e,r){var n,o;nn(t);try{if(!(n=Dd(t,"return"))){if(e==="throw")throw r;return r}n=fr(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return nn(n),r},dU=Et.TypeError,Fg=function(t,e){this.stopped=t,this.result=e},zC=Fg.prototype,pU=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=sP(e,c),y=function(m){return n&&MC(n,"normal",m),new Fg(!0,m)},g=function(m){return f?(nn(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)n=t;else{if(!(o=RC(t)))throw dU(o4(t)+" is not iterable");if(function(m){return m!==void 0&&(bl.Array===m||lU[sU]===m)}(o)){for(i=0,a=yy(t);a>i;i++)if((u=g(t[i]))&&gv(zC,u))return u;return new Fg(!1)}n=function(m,h){var b=arguments.length<2?RC(m):h;if(I3(b))return nn(fr(b,m));throw fU(o4(m)+" is not iterable")}(t,o)}for(s=n.next;!(l=fr(s,n)).done;){try{u=g(l.value)}catch(m){MC(n,"throw",m)}if(typeof u=="object"&&u&&gv(zC,u))return u}return new Fg(!1)},hU=function(t,e){return t===void 0?arguments.length<2?"":e:gu(t)},gU=!ur(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Gi(1,7)),t.stack!==7)}),vU=jr("toStringTag"),Ev=Et.Error,yU=[].push,Cd=function(t,e){var r,n=arguments.length>2?arguments[2]:void 0,o=gv(Lm,this);ml?r=ml(new Ev(void 0),o?xd(this):Lm):(r=o?this:Sp(Lm),Mr(r,vU,"Error")),Mr(r,"message",hU(e,"")),gU&&Mr(r,"stack",aU(r.stack,1)),uU(r,n);var i=[];return pU(t,yU,{that:i}),Mr(r,"errors",i),r};ml?ml(Cd,Ev):eP(Cd,Ev);var Lm=Cd.prototype=Sp(Ev.prototype,{constructor:Gi(1,Cd),message:Gi(1,""),name:Gi(1,"AggregateError")});Cp({global:!0},{AggregateError:Cd});var f4=jr("unscopables"),d4=Array.prototype;d4[f4]==null&&Jl.f(d4,f4,{configurable:!0,value:Sp(null)});var vu,$C,HC,Rm=function(t){d4[f4][t]=!0},p4=jr("iterator"),lP=!1;[].keys&&("next"in(HC=[].keys())?($C=xd(xd(HC)))!==Object.prototype&&(vu=$C):lP=!0);var mU=vu==null||ur(function(){var t={};return vu[p4].call(t)!==t});mU&&(vu={}),er(vu[p4])||Iu(vu,p4,function(){return this});var X3={IteratorPrototype:vu,BUGGY_SAFARI_ITERATORS:lP},bU=Jl.f,VC=jr("toStringTag"),UC=function(t,e,r){t&&!Hr(t=r?t:t.prototype,VC)&&bU(t,VC,{configurable:!0,value:e})},wU=X3.IteratorPrototype,EU=function(){return this},DU=G3.PROPER,xU=G3.CONFIGURABLE,WC=X3.IteratorPrototype,Mm=X3.BUGGY_SAFARI_ITERATORS,Ec=jr("iterator"),CU=function(){return this},cP=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=Sp(wU,{next:Gi(1,h)}),UC(g,w,!1),bl[w]=EU})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Mm&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Ec]||d["@@iterator"]||o&&d[o],v=!Mm&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=xd(y.call(new t)))!==Object.prototype&&u.next&&(xd(u)!==WC&&(ml?ml(u,WC):er(u[Ec])||Iu(u,Ec,CU)),UC(u,c,!0)),DU&&o=="values"&&p&&p.name!=="values"&&(xU?Mr(d,"name","values"):(f=!0,v=function(){return fr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Cp({target:e,proto:!0,forced:Mm||f},s)),d[Ec]!==v&&Iu(d,Ec,v,{name:o}),bl[e]=v,s},SU=Nu.set,AU=Nu.getterFor("Array Iterator"),Mf=cP(Array,"Array",function(t,e){SU(this,{type:"Array Iterator",target:Zl(t),index:0,kind:e})},function(){var t=AU(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");bl.Arguments=bl.Array,Rm("keys"),Rm("values"),Rm("entries");var OU=aP.charAt,kU=Nu.set,BU=Nu.getterFor("String Iterator");cP(String,"String",function(t){kU(this,{type:"String Iterator",string:gu(t),index:0})},function(){var t,e=BU(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=OU(r,n),e.index+=t.length,{value:t,done:!1})});var zm,Dv={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},$m=$3("span").classList,GC=$m&&$m.constructor&&$m.constructor.prototype,fP=GC===Object.prototype?void 0:GC,Hm=jr("iterator"),qC=jr("toStringTag"),Vm=Mf.values,dP=function(t,e){if(t){if(t[Hm]!==Vm)try{Mr(t,Hm,Vm)}catch{t[Hm]=Vm}if(t[qC]||Mr(t,qC,e),Dv[e]){for(var r in Mf)if(t[r]!==Mf[r])try{Mr(t,r,Mf[r])}catch{t[r]=Mf[r]}}}};for(var Um in Dv)dP(Et[Um]&&Et[Um].prototype,Um);dP(fP,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
 Sorry, wangEditor V5+ versions do not support IE browser.`),KC(),YC()):global&&(!((zm=global.navigator)===null||zm===void 0)&&zm.userAgent.match("QQBrowser"))&&(KC(),YC());function KC(){typeof globalThis>"u"&&(window.globalThis=window)}function YC(){DH===void 0&&(window.AggregateError=function(t,e){var r=new Error(e);return r.errors=t,r})}var XC,xv=Array.isArray||function(t){return fu(t)=="Array"},pP=function(){},FU=[],hP=Kl("Reflect","construct"),Z3=/^\s*(?:class|function)\b/,TU=pe(Z3.exec),_U=!Z3.exec(pP),Dc=function(t){if(!dr(t))return!1;try{return hP(pP,FU,t),!0}catch{return!1}},PU=!hP||Gr(function(){var t;return Dc(Dc.call)||!Dc(Object)||!Dc(function(){t=!0})||t})?function(t){if(!dr(t))return!1;switch(Ep(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _U||!!TU(Z3,V_(t))}:Dc,jU=Or("species"),ZC=Bt.Array,gP=function(t,e){return new(function(r){var n;return xv(r)&&(n=r.constructor,(PU(n)&&(n===ZC||xv(n.prototype))||wn(n)&&(n=n[jU])===null)&&(n=void 0)),n===void 0?ZC:n}(t))(e===0?0:e)},NU=Or("species"),vP=Or("isConcatSpreadable"),JC=Bt.TypeError,IU=ov>=51||!Gr(function(){var t=[];return t[vP]=!1,t.concat()[0]!==t}),LU=(XC="concat",ov>=51||!Gr(function(){var t=[];return(t.constructor={})[NU]=function(){return{foo:1}},t[XC](Boolean).foo!==1})),RU=function(t){if(!wn(t))return!1;var e=t[vP];return e!==void 0?!!e:xv(t)};Wo({target:"Array",proto:!0,forced:!IU||!LU},{concat:function(t){var e,r,n,o,i,a=yp(this),u=gP(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(RU(i=e===-1?a:arguments[e])){if(s+(o=bp(i))>9007199254740991)throw JC("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&Xw(u,s,i[r])}else{if(s>=9007199254740991)throw JC("Maximum allowed index exceeded");Xw(u,s++,i)}return u.length=s,u}});var QC=_3.f,tS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yP={f:function(t){return tS&&fu(t)=="Window"?function(e){try{return QC(e)}catch{return z_(tS)}}(t):QC(To(t))}},MU=pe([].slice),J3={f:Or},zU=Ca.f,Pe=function(t){var e=Jr.Symbol||(Jr.Symbol={});Vt(e,t)||zU(e,t,{value:J3.f(t)})},eS=pe([].push),$U=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=yp(s),y=j_(v),g=F3(l,c),m=bp(y),h=0,b=f||gP,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:eS(w,d)}else switch(t){case 4:return!1;case 7:eS(w,d)}return i?-1:n||o?o:w}},by={forEach:$U(0)}.forEach,Lr=gy("hidden"),rS=Or("toPrimitive"),HU=Xl.set,nS=Xl.getterFor("Symbol"),$n=Object.prototype,Ni=Bt.Symbol,zi=Ni&&Ni.prototype,oS=Bt.TypeError,Wm=Bt.QObject,xc=Kl("JSON","stringify"),mP=hy.f,Ii=Ca.f,bP=yP.f,VU=A3.f,wP=pe([].push),oi=Ju("symbols"),Ap=Ju("op-symbols"),Gm=Ju("string-to-symbol-registry"),qm=Ju("symbol-to-string-registry"),UU=Ju("wks"),Km=!Wm||!Wm.prototype||!Wm.prototype.findChild,h4=$r&&Gr(function(){return ni(Ii({},"a",{get:function(){return Ii(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=mP($n,e);n&&delete $n[e],Ii(t,e,r),n&&t!==$n&&Ii($n,e,n)}:Ii,Ym=function(t,e){var r=oi[t]=ni(zi);return HU(r,{type:"Symbol",tag:t,description:e}),$r||(r.description=e),r},Cv=function(t,e,r){t===$n&&Cv(Ap,e,r),rn(t);var n=Yl(e);return rn(r),Vt(oi,n)?(r.enumerable?(Vt(t,Lr)&&t[Lr][n]&&(t[Lr][n]=!1),r=ni(r,{enumerable:Un(0,!1)})):(Vt(t,Lr)||Ii(t,Lr,Un(1,{})),t[Lr][n]=!0),h4(t,n,r)):Ii(t,n,r)},iS=function(t,e){rn(t);var r=To(e),n=P3(r).concat(g4(r));return by(n,function(o){$r&&!tn(EP,r,o)||Cv(t,o,r[o])}),t},EP=function(t){var e=Yl(t),r=tn(VU,this,e);return!(this===$n&&Vt(oi,e)&&!Vt(Ap,e))&&(!(r||!Vt(this,e)||!Vt(oi,e)||Vt(this,Lr)&&this[Lr][e])||r)},aS=function(t,e){var r=To(t),n=Yl(e);if(r!==$n||!Vt(oi,n)||Vt(Ap,n)){var o=mP(r,n);return!o||!Vt(oi,n)||Vt(r,Lr)&&r[Lr][n]||(o.enumerable=!0),o}},uS=function(t){var e=bP(To(t)),r=[];return by(e,function(n){Vt(oi,n)||Vt(wp,n)||wP(r,n)}),r},g4=function(t){var e=t===$n,r=bP(e?Ap:To(t)),n=[];return by(r,function(o){!Vt(oi,o)||e&&!Vt($n,o)||wP(n,oi[o])}),n};if(uo||(zi=(Ni=function(){if(bd(zi,this))throw oS("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?wd(arguments[0]):void 0,e=av(t),r=function(n){this===$n&&tn(r,Ap,n),Vt(this,Lr)&&Vt(this[Lr],e)&&(this[Lr][e]=!1),h4(this,e,Un(1,n))};return $r&&Km&&h4($n,e,{configurable:!0,set:r}),Ym(e,t)}).prototype,pv(zi,"toString",function(){return nS(this).tag}),pv(Ni,"withoutSetter",function(t){return Ym(av(t),t)}),A3.f=EP,Ca.f=Cv,hy.f=aS,_3.f=yP.f=uS,Sg.f=g4,J3.f=function(t){return Ym(Or(t),t)},$r&&Ii(zi,"description",{configurable:!0,get:function(){return nS(this).description}})),Wo({global:!0,wrap:!0,forced:!uo,sham:!uo},{Symbol:Ni}),by(P3(UU),function(t){Pe(t)}),Wo({target:"Symbol",stat:!0,forced:!uo},{for:function(t){var e=wd(t);if(Vt(Gm,e))return Gm[e];var r=Ni(e);return Gm[e]=r,qm[r]=e,r},keyFor:function(t){if(!il(t))throw oS(t+" is not a symbol");if(Vt(qm,t))return qm[t]},useSetter:function(){Km=!0},useSimple:function(){Km=!1}}),Wo({target:"Object",stat:!0,forced:!uo,sham:!$r},{create:function(t,e){return e===void 0?ni(t):iS(ni(t),e)},defineProperty:Cv,defineProperties:iS,getOwnPropertyDescriptor:aS}),Wo({target:"Object",stat:!0,forced:!uo},{getOwnPropertyNames:uS,getOwnPropertySymbols:g4}),Wo({target:"Object",stat:!0,forced:Gr(function(){Sg.f(1)})},{getOwnPropertySymbols:function(t){return Sg.f(yp(t))}}),xc){var WU=!uo||Gr(function(){var t=Ni();return xc([t])!="[null]"||xc({a:t})!="{}"||xc(Object(t))!="{}"});Wo({target:"JSON",stat:!0,forced:WU},{stringify:function(t,e,r){var n=MU(arguments),o=e;if((wn(e)||t!==void 0)&&!il(t))return xv(e)||(e=function(i,a){if(dr(o)&&(a=tn(o,this,i,a)),!il(a))return a}),n[1]=e,__(xc,null,n)}})}if(!zi[rS]){var GU=zi.valueOf;pv(zi,rS,function(t){return tn(GU,this)})}hv(Ni,"Symbol"),wp[Lr]=!0,Pe("asyncIterator"),Pe("hasInstance"),Pe("isConcatSpreadable"),Pe("iterator"),Pe("match"),Pe("matchAll"),Pe("replace"),Pe("search"),Pe("species"),Pe("split"),Pe("toPrimitive"),Pe("toStringTag"),Pe("unscopables"),hv(Bt.JSON,"JSON",!0);var qU=Jr.Symbol;Pe("asyncDispose"),Pe("dispose"),Pe("matcher"),Pe("metadata"),Pe("observable"),Pe("patternMatch"),Pe("replaceAll");var Eh=qU,KU=J3.f("iterator"),YU=Zu(function(t){function e(r){return typeof Eh=="function"&&typeof KU=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Eh=="function"&&n.constructor===Eh&&n!==Eh.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),XU=Bz(YU),DP=H3.f,ZU=ur(function(){DP(1)});if(Cp({target:"Object",stat:!0,forced:!Co||ZU,sham:!Co},{getOwnPropertyDescriptor:function(t,e){return DP(Zl(t),e)}}),(typeof global>"u"?"undefined":XU(global))==="object"){var JU=Object.getOwnPropertyDescriptor(global,"window");global.window&&!JU.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function sS(t){return Object.prototype.toString.call(t)==="[object Object]"}function Er(t){var e,r;return sS(t)!==!1&&((e=t.constructor)===void 0||sS(r=e.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function zn(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Lu(t){return!!t&&!!t[on]}function Ru(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===oW}(t)||Array.isArray(t)||!!t[vS]||!!t.constructor[vS]||Q3(t)||t5(t))}function Sd(t,e,r){r===void 0&&(r=!1),wl(t)===0?(r?Object.keys:i5)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function wl(t){var e=t[on];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Q3(t)?2:t5(t)?3:0}function v4(t,e){return wl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function xP(t,e,r){var n=wl(t);n===2?t.set(e,r):n===3?(t.delete(e),t.add(r)):t[e]=r}function Q3(t){return rW&&t instanceof Map}function t5(t){return nW&&t instanceof Set}function Ya(t){return t.o||t.t}function e5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=iW(t);delete e[on];for(var r=i5(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function r5(t,e){return e===void 0&&(e=!1),n5(t)||Lu(t)||!Ru(t)||(wl(t)>1&&(t.set=t.add=t.clear=t.delete=QU),Object.freeze(t),e&&Sd(t,function(r,n){return r5(n,!0)},!0)),t}function QU(){zn(2)}function n5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ti(t){var e=aW[t];return e||zn(18,t),e}function lS(){return Ad}function Xm(t,e){e&&(ti("Patches"),t.u=[],t.s=[],t.v=e)}function Sv(t){y4(t),t.p.forEach(tW),t.p=null}function y4(t){t===Ad&&(Ad=t.l)}function cS(t){return Ad={p:[],l:Ad,h:t,m:!0,_:0}}function tW(t){var e=t[on];e.i===0||e.i===1?e.j():e.O=!0}function Zm(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.g||ti("ES5").S(e,t,n),n?(r[on].P&&(Sv(e),zn(4)),Ru(t)&&(t=Av(e,t),e.l||Ov(e,t)),e.u&&ti("Patches").M(r[on],t,e.u,e.s)):t=Av(e,r,[]),Sv(e),e.u&&e.v(e.u,e.s),t!==CP?t:void 0}function Av(t,e,r){if(n5(e))return e;var n=e[on];if(!n)return Sd(e,function(i,a){return fS(t,n,e,i,a,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Ov(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=e5(n.k):n.o;Sd(n.i===3?new Set(o):o,function(i,a){return fS(t,n,o,i,a,r)}),Ov(t,o,!1),r&&t.u&&ti("Patches").R(n,r,t.u,t.s)}return n.o}function fS(t,e,r,n,o,i){if(Lu(o)){var a=Av(t,o,i&&e&&e.i!==3&&!v4(e.D,n)?i.concat(n):void 0);if(xP(r,n,a),!Lu(a))return;t.m=!1}if(Ru(o)&&!n5(o)){if(!t.h.F&&t._<1)return;Av(t,o),e&&e.A.l||Ov(t,o)}}function Ov(t,e,r){r===void 0&&(r=!1),t.h.F&&t.m&&r5(e,r)}function Jm(t,e){var r=t[on];return(r?Ya(r):t)[e]}function dS(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function m4(t){t.P||(t.P=!0,t.l&&m4(t.l))}function Qm(t){t.o||(t.o=e5(t.t))}function b4(t,e,r){var n=Q3(e)?ti("MapSet").N(e,r):t5(e)?ti("MapSet").T(e,r):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:lS(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=Tg;a&&(s=[u],l=_g);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,r):ti("ES5").J(e,r);return(r?r.A:lS()).p.push(n),n}function eW(t){return Lu(t)||zn(22,t),function e(r){if(!Ru(r))return r;var n,o=r[on],i=wl(r);if(o){if(!o.P&&(o.i<4||!ti("ES5").K(o)))return o.t;o.I=!0,n=pS(r,i),o.I=!1}else n=pS(r,i);return Sd(n,function(a,u){o&&function(s,l){return wl(s)===2?s.get(l):s[l]}(o.t,a)===u||xP(n,a,e(u))}),i===3?new Set(n):n}(t)}function pS(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return e5(t)}var hS,Ad,o5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",rW=typeof Map<"u",nW=typeof Set<"u",gS=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",CP=o5?Symbol.for("immer-nothing"):((hS={})["immer-nothing"]=!0,hS),vS=o5?Symbol.for("immer-draftable"):"__$immer_draftable",on=o5?Symbol.for("immer-state"):"__$immer_state",oW=""+Object.prototype.constructor,i5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,iW=Object.getOwnPropertyDescriptors||function(t){var e={};return i5(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},aW={},Tg={get:function(t,e){if(e===on)return t;var r=Ya(t);if(!v4(r,e))return function(o,i,a){var u,s=dS(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!Ru(n)?n:n===Jm(t.t,e)?(Qm(t),t.o[e]=b4(t.A.h,n,t)):n},has:function(t,e){return e in Ya(t)},ownKeys:function(t){return Reflect.ownKeys(Ya(t))},set:function(t,e,r){var n=dS(Ya(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Jm(Ya(t),e),i=o==null?void 0:o[on];if(i&&i.t===r)return t.o[e]=r,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(r,o)&&(r!==void 0||v4(t.t,e)))return!0;Qm(t),m4(t)}return t.o[e]===r&&typeof r!="number"&&(r!==void 0||e in t.o)||(t.o[e]=r,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Jm(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Qm(t),m4(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ya(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){zn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){zn(12)}},_g={};Sd(Tg,function(t,e){_g[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),_g.deleteProperty=function(t,e){return Tg.deleteProperty.call(this,t[0],e)},_g.set=function(t,e,r){return Tg.set.call(this,t[0],e,r,t[0])};var uW=function(){function t(r){var n=this;this.g=gS,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;return function(p){var v=this;p===void 0&&(p=u);for(var y=arguments.length,g=Array(y>1?y-1:0),m=1;m<y;m++)g[m-1]=arguments[m];return s.produce(p,function(h){var b;return(b=i).call.apply(b,[v,h].concat(g))})}}var l;if(typeof i!="function"&&zn(6),a!==void 0&&typeof a!="function"&&zn(7),Ru(o)){var c=cS(n),f=b4(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Sv(c):y4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return Xm(c,a),Zm(p,c)},function(p){throw Sv(c),p}):(Xm(c,a),Zm(l,c))}if(!o||typeof o!="object")return(l=i(o))===CP?void 0:(l===void 0&&(l=o),n.F&&r5(l,!0),l);zn(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(s,function(d){return o.apply(void 0,[d].concat(c))})}:[n.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Ru(r)||zn(8),Lu(r)&&(r=eW(r));var n=cS(this),o=b4(this,r,void 0);return o[on].C=!0,y4(n),o},e.finishDraft=function(r,n){var o=(r&&r[on]).A;return Xm(o,n),Zm(void 0,o)},e.setAutoFreeze=function(r){this.F=r},e.setUseProxies=function(r){r&&!gS&&zn(20),this.g=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=ti("Patches").$;return Lu(r)?a(r,n):this.produce(r,function(u){return a(u,n)})},t}(),Xr=new uW,wy=Xr.produce;Xr.produceWithPatches.bind(Xr),Xr.setAutoFreeze.bind(Xr),Xr.setUseProxies.bind(Xr),Xr.applyPatches.bind(Xr);var yS=Xr.createDraft.bind(Xr),mS=Xr.finishDraft.bind(Xr);function _o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kv=new WeakMap,Cc=new WeakMap,bS=new WeakMap,wS=new WeakMap,ES=new WeakMap,DS=new WeakMap;function xS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Dh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var sW=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var r of E.pathRefs(t))MW.transform(r,e);for(var n of E.pointRefs(t))zW.transform(n,e);for(var o of E.rangeRefs(t))HW.transform(o,e);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=kv.get(t)||[],l=lW(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);kv.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),Cc.get(t)||(Cc.set(t,!0),Promise.resolve().then(()=>{Cc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,r)=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.setNodes(t,{[e]:r},{match:ot.isText,split:!0});else{var o=Dh(Dh({},E.marks(t)||{}),{},{[e]:r});t.marks=o,Cc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:r}=t;r&&L.isCollapsed(r)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:r}=t;r&&L.isCollapsed(r)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:r}=t;r&&L.isExpanded(r)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?J.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:r,marks:n}=t;if(r){if(n){var o=Dh({text:e},n);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[r,n]=e;if(!ot.isText(r))if(ct.isElement(r)&&r.children.length===0)N.insertNodes(t,{text:""},{at:n.concat(0),voids:!0});else for(var o=!E.isEditor(r)&&ct.isElement(r)&&(t.isInline(r)||r.children.length===0||ot.isText(r.children[0])||t.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=J.get(t,n);if(!ot.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(ot.isText(s)||ct.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:n.concat(i),voids:!0}),i--):ct.isElement(s)?t.isInline(s)&&(l!=null&&ot.isText(l)?c&&(N.insertNodes(t,{text:""},{at:n.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&ot.isText(l)&&(ot.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:n.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:n.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.unsetNodes(t,e,{match:ot.isText,split:!0});else{var n=Dh({},E.marks(t)||{});delete n[e],t.marks=n,Cc.get(t)||t.onChange()}}};return t},lW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:r,path:n}=t,o=j.levels(n),i=ot.isText(r)?[]:Array.from(J.nodes(r),w=>{var[,D]=w;return n.concat(D)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var d=j.transform(f,t);l.push(d)}for(var p of j.ancestors(s)){var v=j.transform(p,t);c.push(v)}var y=c[c.length-1],g=s[s.length-1],m=y.concat(g);return[...l,...c,m];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:b}=t;return[...j.levels(b),j.next(b)];default:return[]}};function ii(t,e){if(t==null)return{};var r,n,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var Ct,w4=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!e,n=e?hW(t):t,o=Ct.None,i=Ct.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=AW(s,l);if([o,i]=r?[i,c]:[c,o],Qs(o,Ct.ZWJ)&&Qs(i,Ct.ExtPict)&&!FW(r?t.substring(0,a):t.substring(0,t.length-a))||Qs(o,Ct.RI)&&Qs(i,Ct.RI)&&!(u=u!==null?!u:!!r||_W(t.substring(0,t.length-a)))||o!==Ct.None&&i!==Ct.None&&kW(o,i))break;a+=s.length}return a||1},cW=/\s/,fW=/[\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]/,dW=/['\u2018\u2019]/,E4=(t,e,r)=>{if(r){var n=t.length-e;return[t.slice(n,t.length),t.slice(0,n)]}return[t.slice(0,e),t.slice(e)]},pW=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(cW.test(e))return!1;if(dW.test(e)){var o=w4(r,n),[i,a]=E4(r,o,n);if(t(i,a,n))return!0}return!fW.test(e)},hW=function*(t){for(var e=t.length-1,r=0;r<t.length;r++){var n=t.charAt(e-r);if(vW(n.charCodeAt(0))){var o=t.charAt(e-r-1);if(gW(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},gW=t=>t>=55296&&t<=56319,vW=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(Ct||(Ct={}));var yW=/^(?:[\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])$/,mW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,bW=/^(?:[\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])$/,wW=/^[\u1100-\u115F\uA960-\uA97C]$/,EW=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,DW=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,xW=/^[\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]$/,CW=/^[\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]$/,SW=/^(?:[\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])$/,AW=(t,e)=>{var r=Ct.Any;return t.search(yW)!==-1&&(r|=Ct.Extend),e===8205&&(r|=Ct.ZWJ),e>=127462&&e<=127487&&(r|=Ct.RI),t.search(mW)!==-1&&(r|=Ct.Prepend),t.search(bW)!==-1&&(r|=Ct.SpacingMark),t.search(wW)!==-1&&(r|=Ct.L),t.search(EW)!==-1&&(r|=Ct.V),t.search(DW)!==-1&&(r|=Ct.T),t.search(xW)!==-1&&(r|=Ct.LV),t.search(CW)!==-1&&(r|=Ct.LVT),t.search(SW)!==-1&&(r|=Ct.ExtPict),r};function Qs(t,e){return(t&e)!=0}var OW=[[Ct.L,Ct.L|Ct.V|Ct.LV|Ct.LVT],[Ct.LV|Ct.V,Ct.V|Ct.T],[Ct.LVT|Ct.T,Ct.T],[Ct.Any,Ct.Extend|Ct.ZWJ],[Ct.Any,Ct.SpacingMark],[Ct.Prepend,Ct.Any],[Ct.ZWJ,Ct.ExtPict],[Ct.RI,Ct.RI]];function kW(t,e){return OW.findIndex(r=>Qs(t,r[0])&&Qs(e,r[1]))===-1}var BW=/(?:[\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$/,FW=t=>t.search(BW)!==-1,TW=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,_W=t=>{var e=t.match(TW);return e!==null&&e[0].length/2%2==1},CS=t=>Er(t)&&J.isNodeList(t.children)&&!E.isEditor(t),ct={isAncestor:t=>Er(t)&&J.isNodeList(t.children),isElement:CS,isElementList:t=>Array.isArray(t)&&t.every(e=>ct.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return CS(t)&&t[r]===e},matches(t,e){for(var r in e)if(r!=="children"&&t[r]!==e[r])return!1;return!0}},PW=["text"],jW=["text"];function SS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ys(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?SS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var AS=new WeakMap,E={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=n==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:r,match:i,reverse:u}))if(!ot.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,r){t.addMark(e,r)},after(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=n,a=0;for(var u of E.positions(t,ys(ys({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(t,e){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of E.positions(t,ys(ys({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteBackward(r)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=e;t.deleteForward(r)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=e;t.deleteFragment(r)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var r=E.path(t,e,{edge:"start"});return E.node(t,r)},fragment(t,e){var r=E.range(t,e);return J.fragment(t,r)},hasBlocks:(t,e)=>e.children.some(r=>E.isBlock(t,r)),hasInlines:(t,e)=>e.children.some(r=>ot.isText(r)||E.isInline(t,r)),hasTexts:(t,e)=>e.children.every(r=>ot.isText(r)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ct.isElement(e)&&!t.isInline(e),isEditor(t){if(!Er(t))return!1;var e=AS.get(t);if(e!==void 0)return e;var r=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||Er(t.marks))&&(t.selection===null||L.isRange(t.selection))&&J.isNodeList(t.children)&&$i.isOperationList(t.operations);return AS.set(t,r),r},isEnd(t,e,r){var n=E.end(t,r);return kt.equals(e,n)},isEdge:(t,e,r)=>E.isStart(t,e,r)||E.isEnd(t,e,r),isEmpty(t,e){var{children:r}=e,[n]=r;return r.length===0||r.length===1&&ot.isText(n)&&n.text===""&&!t.isVoid(e)},isInline:(t,e)=>ct.isElement(e)&&t.isInline(e),isNormalizing(t){var e=bS.get(t);return e===void 0||e},isStart(t,e,r){if(e.offset!==0)return!1;var n=E.start(t,r);return kt.equals(e,n)},isVoid:(t,e)=>ct.isElement(e)&&t.isVoid(e),last(t,e){var r=E.path(t,e,{edge:"end"});return E.node(t,r)},leaf(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(t,e,r);return[J.leaf(t,n),n]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,reverse:n=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),r){var a=[],u=E.path(t,r);for(var[s,l]of J.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;n&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:r}=t;if(!r)return null;if(e)return e;if(L.isExpanded(r)){var[n]=E.nodes(t,{match:ot.isText});if(n){var[o]=n;return ii(o,PW)}return{}}var{anchor:i}=r,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:ot.isText}),l=E.above(t,{match:p=>E.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;j.isAncestor(d,f)&&(u=c)}}return ii(u,jW)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:n});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:r,voids:n});return c}}},node(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(t,e,r);return[J.get(t,n),n]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),r){var s,l;if(IW.isSpan(r))s=r[0],l=r[1];else{var c=E.path(t,r,{edge:"start"}),f=E.path(t,r,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=J.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),v=[];for(var[y,g]of p){var m=d&&j.compare(g,d[1])===0;if(n!=="highest"||!m){if(u(y,g))if(n==="lowest"&&m)d=[y,g];else{var h=n==="lowest"?d:[y,g];h&&(o?v.push(h):yield h),d=[y,g]}else if(o&&!m&&ot.isText(y))return}}n==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*v)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=e,n=i=>kv.get(i)||[];if(E.isNormalizing(t)){if(r){var o=Array.from(J.nodes(t),i=>{var[,a]=i;return a});kv.set(t,o)}n(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of n(t))if(J.has(t,i)){var a=E.node(t,i),[u,s]=a;ct.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*n(t).length,c=0;n(t).length!==0;){if(c>l)throw new Error(`
            Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
          `));var f=n(t).pop();if(J.has(t,f)){var d=E.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=E.path(t,e,r),o=j.parent(n);return E.node(t,o)},path(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(j.isPath(e)){if(o==="start"){var[,i]=J.first(t,e);e=i}else if(o==="end"){var[,a]=J.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):j.common(e.anchor.path,e.focus.path)),kt.isPoint(e)&&(e=e.path),n!=null&&(e=e.slice(0,n)),e},hasPath:(t,e)=>J.has(t,e),pathRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=wS.get(t);return e||(e=new Set,wS.set(t,e)),e},point(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(j.isPath(e)){var o;if(n==="end"){var[,i]=J.last(t,e);o=i}else{var[,a]=J.first(t,e);o=a}var u=J.get(t,o);if(!ot.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(e,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return n==="start"?s:l}return e},pointRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=ES.get(t);return e||(e=new Set,ES.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=t.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=e;if(r){var a=E.range(t,r),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[y,g]of E.nodes(t,{at:r,reverse:o,voids:i})){if(ct.isElement(y)){if(!i&&t.isVoid(y)){yield E.start(t,g);continue}if(t.isInline(y))continue;if(E.hasInlines(t,y)){var m=j.isAncestor(g,s.path)?s:E.end(t,g),h=j.isAncestor(g,u.path)?u:E.start(t,g);f=E.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(ot.isText(y)){var b=j.equals(g,l.path);for(b?(p=o?l.offset:y.text.length-l.offset,v=l.offset):(p=y.text.length,v=o?p:0),(b||c||n==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,n,o),f=E4(f,d,o)[1]}if(v=o?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:v}}}}}function w(D,C,x){return C==="character"?w4(D,x):C==="word"?function(O){for(var T=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=w4(O,T),[K,U]=E4(O,M,T);if(pW(K,U,T))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(D,x):C==="line"||C==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:n});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(t,e,r)=>L.isRange(e)&&!r?e:{anchor:E.start(t,e),focus:E.end(t,r||e)},rangeRef(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:e,affinity:n,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=DS.get(t);return e||(e=new Set,DS.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){bS.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=E.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:ot.isText,voids:n})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=E.above(t,{at:i,match:d=>E.isBlock(t,d)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:ot.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,ys(ys({},e),{},{match:r=>E.isVoid(t,r)}))},withoutNormalizing(t,e){var r=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,r)}E.normalize(t)}},NW={isLocation:t=>j.isPath(t)||kt.isPoint(t)||L.isRange(t)},IW={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},LW=["children"],RW=["text"],OS=new WeakMap,J={ancestor(t,e){var r=J.get(t,e);if(ot.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of j.ancestors(e,r)){var o=[J.ancestor(t,n),n];yield o}},child(t,e){if(ot.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var r=t.children[e];if(r==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return r},*children(t,e){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=J.ancestor(t,e),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=J.child(o,a),s=e.concat(a);yield[u,s],a=n?a-1:a+1}},common(t,e,r){var n=j.common(e,r);return[J.get(t,n),n]},descendant(t,e){var r=J.get(t,e);if(E.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of J.nodes(t,e))n.length!==0&&(yield[r,n])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of J.nodes(t,e))ct.isElement(r)&&(yield[r,n])},extractProps:t=>ct.isAncestor(t)?ii(t,LW):ii(t,RW),first(t,e){for(var r=e.slice(),n=J.get(t,r);n&&!ot.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(t,e){if(ot.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var r=wy({children:t.children},n=>{var[o,i]=L.edges(e),a=J.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!L.includes(e,p)}});for(var[,u]of a){if(!L.includes(e,u)){var s=J.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=J.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=J.leaf(n,u);f.text=f.text.slice(o.offset)}}E.isEditor(n)&&(n.selection=null)});return r.children},get(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(ot.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));r=r.children[o]}return r},has(t,e){for(var r=t,n=0;n<e.length;n++){var o=e[n];if(ot.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:t=>ot.isText(t)||ct.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=OS.get(t);if(e!==void 0)return e;var r=t.every(n=>J.isNode(n));return OS.set(t,r),r},last(t,e){for(var r=e.slice(),n=J.get(t,r);n&&!ot.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(t,e){var r=J.get(t,e);if(!ot.isText(r))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of j.levels(e,r)){var o=J.get(t,n);yield[o,n]}},matches:(t,e)=>ct.isElement(t)&&ct.isElementProps(e)&&ct.matches(t,e)||ot.isText(t)&&ot.isTextProps(e)&&ot.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(n?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ot.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=j.next(u);if(J.has(t,l)){u=l,s=J.get(t,u);continue}}n&&u[u.length-1]!==0?(u=j.previous(u),s=J.get(t,u)):(u=j.parent(u),s=J.get(t,u),a.add(s))}else{a.add(s);var c=n?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=J.get(t,u)}},parent(t,e){var r=j.parent(e),n=J.get(t,r);if(ot.isText(n))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return n},string:t=>ot.isText(t)?t.text:t.children.map(J.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of J.nodes(t,e))ot.isText(r)&&(yield[r,n])}};function kS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var $i={isNodeOperation:t=>$i.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!Er(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&J.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&Er(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&Er(t.properties)&&Er(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||Er(t.properties)&&Er(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&Er(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>$i.isOperation(e)),isSelectionOperation:t=>$i.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>$i.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return ze(ze({},t),{},{type:"remove_node"});case"insert_text":return ze(ze({},t),{},{type:"remove_text"});case"merge_node":return ze(ze({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:r}=t;if(j.equals(e,r))return t;if(j.isSibling(r,e))return ze(ze({},t),{},{path:e,newPath:r});var n=j.transform(r,t),o=j.transform(j.next(r),t);return ze(ze({},t),{},{path:n,newPath:o});case"remove_node":return ze(ze({},t),{},{type:"insert_node"});case"remove_text":return ze(ze({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return ze(ze({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return ze(ze({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return ze(ze({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=j.levels(t,e);return n=r?n.slice(1):n.slice(0,-1)},common(t,e){for(var r=[],n=0;n<t.length&&n<e.length;n++){var o=t[n];if(o!==e[n])break;r.push(o)}return r},compare(t,e){for(var r=Math.min(t.length,e.length),n=0;n<r;n++){if(t[n]<e[n])return-1;if(t[n]>e[n])return 1}return 0},endsAfter(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return j.equals(n,o)&&i>a},endsAt(t,e){var r=t.length,n=t.slice(0,r),o=e.slice(0,r);return j.equals(n,o)},endsBefore(t,e){var r=t.length-1,n=t.slice(0,r),o=e.slice(0,r),i=t[r],a=e[r];return j.equals(n,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((r,n)=>r===e[n]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&j.compare(t,e)===0,isBefore:(t,e)=>j.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var r=t.slice(0,-1),n=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(r,n)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,n=[],o=0;o<=t.length;o++)n.push(t.slice(0,o));return r&&n.reverse(),n},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return wy(t,n=>{var{affinity:o="forward"}=r;if(t&&(t==null?void 0:t.length)!==0){if(n===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,n)||j.endsBefore(i,n)||j.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,n)||j.isAncestor(a,n))return null;j.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,n)||j.endsBefore(u,n)?n[u.length-1]-=1:j.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,n)?n[l.length-1]+=1:j.isAncestor(l,n)&&t[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(j.equals(f,d))return;if(j.isAncestor(f,n)||j.equals(f,n)){var p=d.slice();return j.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}j.isSibling(f,d)&&(j.isAncestor(d,n)||j.equals(d,n))?j.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:j.endsBefore(d,n)||j.equals(d,n)||j.isAncestor(d,n)?(j.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):j.endsBefore(f,n)&&(j.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}})}},MW={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=j.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}};function BS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function FS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?BS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var kt={compare(t,e){var r=j.compare(t.path,e.path);return r===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:r},isAfter:(t,e)=>kt.compare(t,e)===1,isBefore:(t,e)=>kt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>Er(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return wy(t,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(e.type){case"insert_node":case"move_node":n.path=j.transform(i,e,r);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(n.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(n.offset+=e.position),n.path=j.transform(i,e,r);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(n.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;n.path=j.transform(i,e,r);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(n.offset-=e.position,n.path=j.transform(i,e,FS(FS({},r),{},{affinity:"forward"})))}else n.path=j.transform(i,e,r)}})}},zW={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=kt.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},$W=["anchor","focus"];function TS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=e,{anchor:n,focus:o}=t;return L.isBackward(t)===r?[n,o]:[o,n]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>kt.equals(t.anchor,e.anchor)&&kt.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[r,n]=L.edges(t),[o,i]=L.edges(e);return kt.isBefore(r,o)&&kt.isAfter(n,i)}var[a,u]=L.edges(t),s=!1,l=!1;return kt.isPoint(e)?(s=kt.compare(e,a)>=0,l=kt.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var r=ii(t,$W),[n,o]=L.edges(t),[i,a]=L.edges(e),u=kt.isBefore(n,i)?i:n,s=kt.isBefore(o,a)?o:a;return kt.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?TS(Object(f),!0).forEach(function(d){_o(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):TS(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},r)},isBackward(t){var{anchor:e,focus:r}=t;return kt.isAfter(e,r)},isCollapsed(t){var{anchor:e,focus:r}=t;return kt.equals(e,r)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>Er(t)&&kt.isPoint(t.anchor)&&kt.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return wy(t,n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=L.isCollapsed(n);L.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=kt.transform(n.anchor,e,{affinity:o}),l=kt.transform(n.focus,e,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l})}},HW={transform(t,e){var{current:r,affinity:n}=t;if(r!=null){var o=L.transform(r,e,{affinity:n});t.current=o,o==null&&t.unref()}}},SP=(t,e)=>{for(var r in t){var n=t[r],o=e[r];if(Er(n)&&Er(o)){if(!SP(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},VW=["text"],UW=["anchor","focus"];function _S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function zo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_S(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_S(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var ot={equals(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return ii(i,VW)}return SP(n?o(t):t,n?o(e):e)},isText:t=>Er(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>ot.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var r in e)if(r!=="text"&&(!t.hasOwnProperty(r)||t[r]!==e[r]))return!1;return!0},decorations(t,e){var r=[zo({},t)];for(var n of e){var o=ii(n,UW),[i,a]=L.edges(n),u=[],s=0;for(var l of r){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&&f!==0)u.push(l);else{var d=l,p=void 0,v=void 0;if(a.offset<s){var y=a.offset-f;v=zo(zo({},d),{},{text:d.text.slice(y)}),d=zo(zo({},d),{},{text:d.text.slice(0,y)})}if(i.offset>f){var g=i.offset-f;p=zo(zo({},d),{},{text:d.text.slice(0,g)}),d=zo(zo({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}r=u}return r}};function PS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Sc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?PS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):PS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var WW={transform(t,e){t.children=yS(t.children);var r=t.selection&&yS(t.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=J.parent(n,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=kt.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var y=J.leaf(n,d),g=y.text.slice(0,p),m=y.text.slice(p);if(y.text=g+v+m,o)for(var[h,b]of L.points(o))o[b]=kt.transform(h,i);break;case"merge_node":var{path:w}=i,D=J.get(n,w),C=j.previous(w),x=J.get(n,C),O=J.parent(n,w),T=w[w.length-1];if(ot.isText(D)&&ot.isText(x))x.text+=D.text;else{if(ot.isText(D)||ot.isText(x))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(x));x.children.push(...D.children)}if(O.children.splice(T,1),o)for(var[R,H]of L.points(o))o[H]=kt.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(j.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=J.get(n,M),W=J.parent(n,M),q=M[M.length-1];W.children.splice(q,1);var et=j.transform(M,i),st=J.get(n,j.parent(et)),ut=et[et.length-1];if(st.children.splice(ut,0,U),o)for(var[at,k]of L.points(o))o[k]=kt.transform(at,i);break;case"remove_node":var{path:S}=i,P=S[S.length-1];if(J.parent(n,S).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=kt.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var it=void 0,gt=void 0;for(var[vt,Dt]of J.texts(n)){if(j.compare(Dt,S)!==-1){gt=[vt,Dt];break}it=[vt,Dt]}var G=!1;it&&gt&&(G=j.equals(gt[1],S)?!j.hasPrevious(gt[1]):j.common(it[1],S).length<j.common(gt[1],S).length),it&&!G?($.path=it[1],$.offset=it[0].text.length):gt?($.path=gt[1],$.offset=0):o=null}}break;case"remove_text":var{path:It,offset:At,text:dt}=i;if(dt.length===0)break;var Ot=J.leaf(n,It),Oe=Ot.text.slice(0,At),$t=Ot.text.slice(At+dt.length);if(Ot.text=Oe+$t,o)for(var[Qt,ge]of L.points(o))o[ge]=kt.transform(Qt,i);break;case"set_node":var{path:hr,properties:Mt,newProperties:Nr}=i;if(hr.length===0)throw new Error("Cannot set properties on the root node!");var Pn=J.get(n,hr);for(var Qn in Nr){if(Qn==="children"||Qn==="text")throw new Error('Cannot set the "'.concat(Qn,'" property of nodes!'));var cs=Nr[Qn];cs==null?delete Pn[Qn]:Pn[Qn]=cs}for(var _a in Mt)Nr.hasOwnProperty(_a)||delete Pn[_a];break;case"set_selection":var{newProperties:jn}=i;if(jn==null)o=jn;else{if(o==null){if(!L.isRange(jn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(jn)," when there is no current selection."));o=Sc({},jn)}for(var to in jn){var jo=jn[to];if(jo==null){if(to==="anchor"||to==="focus")throw new Error('Cannot remove the "'.concat(to,'" selection property'));delete o[to]}else o[to]=jo}}break;case"split_node":var{path:gr,position:vr,properties:yr}=i;if(gr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(gr,"] because the root node cannot be split."));var kr,rr=J.get(n,gr),fn=J.parent(n,gr),pc=gr[gr.length-1];if(ot.isText(rr)){var di=rr.text.slice(0,vr),No=rr.text.slice(vr);rr.text=di,kr=Sc(Sc({},yr),{},{text:No})}else{var fs=rr.children.slice(0,vr),Pa=rr.children.slice(vr);rr.children=fs,kr=Sc(Sc({},yr),{},{children:Pa})}if(fn.children.splice(pc+1,0,kr),o)for(var[ds,Nn]of L.points(o))o[Nn]=kt.transform(ds,i)}return o})(t,r,e)}finally{t.children=mS(t.children),t.selection=r?Lu(r)?mS(r):r:null}}},GW=["text"],qW=["children"];function jS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function NS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?jS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var KW={insertNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(J.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(n||(a=E.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=E.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(kt.isPoint(a)){u==null&&(u=ot.isText(l)?C=>ot.isText(C):t.isInline(l)?C=>ot.isText(C)||E.isInline(t,C):C=>E.isBlock(t,C));var[d]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=E.pathRef(t,p),y=E.isEnd(t,a,p);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=y?j.next(g):g}var m=j.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:m})){for(var b of e){var w=m.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var D=E.end(t,a);D&&N.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:n="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(r)?ms(t,r):b=>E.isBlock(t,b)),r){var a=E.nodes(t,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});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=E.node(t,j.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var y=j.next(d);N.moveNodes(t,{at:l,to:y,voids:o}),N.removeNodes(t,{at:d,voids:o})}else if(p===0)N.moveNodes(t,{at:l,to:d,voids:o});else if(p===v-1){var g=j.next(d);N.moveNodes(t,{at:l,to:g,voids:o})}else{var m=j.next(l),h=j.next(d);N.splitNodes(t,{at:m,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:r,at:n=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(n){if(r==null)if(j.isPath(n)){var[u]=E.parent(t,n);r=T=>u.children.includes(T)}else r=T=>E.isBlock(t,T);if(!o&&L.isRange(n)&&(n=E.unhangRange(t,n)),L.isRange(n))if(L.isCollapsed(n))n=n.anchor;else{var[,s]=L.edges(n),l=E.pointRef(t,s);N.delete(t,{at:n}),n=l.unref(),e.at==null&&N.select(t,n)}var[c]=E.nodes(t,{at:n,match:r,voids:i,mode:a}),f=E.previous(t,{at:n,match:r,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,y]=f;if(p.length!==0&&y.length!==0){var g,m,h=j.next(y),b=j.common(p,y),w=j.isSibling(p,y),D=Array.from(E.levels(t,{at:p}),T=>{var[R]=T;return R}).slice(b.length).slice(0,-1),C=E.above(t,{at:p,mode:"highest",match:T=>D.includes(T)&&AP(t,T)}),x=C&&E.pathRef(t,C[1]);if(ot.isText(d)&&ot.isText(v)){var O=ii(d,GW);m=v.text.length,g=O}else{if(!ct.isElement(d)||!ct.isElement(v))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(v)));O=ii(d,qW),m=v.children.length,g=O}w||N.moveNodes(t,{at:p,to:h,voids:i}),x&&N.removeNodes(t,{at:x.current,voids:i}),ct.isElement(v)&&E.isEmpty(t,v)||ot.isText(v)&&v.text===""&&y[y.length-1]!==0?N.removeNodes(t,{at:y,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:g}),x&&x.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:r,at:n=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(n){a==null&&(a=j.isPath(n)?ms(t,n):p=>E.isBlock(t,p));var u=E.pathRef(t,r),s=E.nodes(t,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return E.pathRef(t,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&j.isSibling(d,f)&&j.isAfter(d,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?ms(t,i):d=>E.isBlock(t,d)),!r&&L.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(t,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=j.isPath(o)?ms(t,o):D=>E.isBlock(t,D)),!i&&L.isRange(o)&&(o=E.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),d=a==="lowest"?"lowest":"highest",p=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:n,mode:d,voids:s,always:!p});var v=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:n,mode:d,voids:s,always:!v}),o=l.unref(),r.at==null&&N.select(t,o)}for(var[y,g]of E.nodes(t,{at:o,match:n,mode:a,voids:s})){var m={},h={};if(g.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==y[w]&&(b=!0,y.hasOwnProperty(w)&&(m[w]=y[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:g,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:n=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>E.isBlock(t,U)),L.isRange(i)&&(i=YW(t,i)),j.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[d]=E.nodes(t,{at:i,match:o,mode:r,voids:n});if(d){var p=E.void(t,{at:i,mode:"highest"});if(!n&&p){var[v,y]=p;if(ct.isElement(v)&&t.isInline(v)){var g=E.after(t,y);if(!g){var m=j.next(y);N.insertNodes(t,{text:""},{at:m,voids:n}),g=E.point(t,m)}i=g,u=!0}a=i.path.length-y.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=d,D=i.path.slice(0,b),C=a===0?i.offset:i.path[b]+0;for(var[x,O]of E.levels(t,{at:D,reverse:!0,voids:n})){var T=!1;if(O.length<w.length||O.length===0||!n&&E.isVoid(t,x))break;var R=f.current,H=E.isEnd(t,R,O);if(u||!f||!E.isEdge(t,R,O)){T=!0;var M=J.extractProps(x);t.apply({type:"split_node",path:O,position:C,properties:M})}C=O[O.length-1]+(T||H?1:0)}if(e.at==null){var K=h.current||E.end(t,[]);N.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var n={};for(var o of e)n[o]=null;N.setNodes(t,n,r)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?ms(t,i):d=>E.isBlock(t,d)),j.isPath(i)&&(i=E.range(t,i));var u=L.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(t,p)}).reverse(),c=function(d){var p=d.unref(),[v]=E.node(t,p),y=E.range(t,p);n&&u&&(y=L.intersection(u.current,y)),N.liftNodes(t,{at:y,match:g=>ct.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=t.selection}=r;if(u){if(a==null&&(a=j.isPath(u)?ms(t,u):t.isInline(e)?g=>E.isInline(t,g)||ot.isText(g):g=>E.isBlock(t,g)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&N.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?g=>E.isBlock(t,g):g=>E.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=L.isRange(u)?L.intersection(u,E.range(t,d)):u;if(p){var v=Array.from(E.nodes(t,{at:p,match:a,mode:n,voids:i}));if(v.length>0){var y=function(){var[g]=v,m=v[v.length-1],[,h]=g,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),D=E.range(t,h,b),C=E.node(t,w),[x]=C,O=w.length+1,T=j.next(b.slice(0,O)),R=NS(NS({},e),{},{children:[]});N.insertNodes(t,R,{at:T,voids:i}),N.moveNodes(t,{at:D,match:H=>ct.isAncestor(x)&&x.children.includes(H),to:T.concat(0),voids:i})}();if(y==="continue")continue}}}}})}},AP=(t,e)=>{if(ct.isElement(e)){var r=e;return!!E.isVoid(t,e)||r.children.length===1&&AP(t,r.children[0])}return!E.isEditor(e)},YW=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,r]=L.edges(e),n=E.pointRef(t,r);return N.delete(t,{at:e}),n.unref()},ms=(t,e)=>{var[r]=E.node(t,e);return n=>n===r};function IS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function LS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?IS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):IS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var XW={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=e,{selection:n}=t;if(n){if(r==="anchor")N.select(t,n.anchor);else if(r==="focus")N.select(t,n.focus);else if(r==="start"){var[o]=L.edges(n);N.select(t,o)}else if(r==="end"){var[,i]=L.edges(n);N.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:n=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(r){a==="start"&&(a=L.isBackward(r)?"focus":"anchor"),a==="end"&&(a=L.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?E.before(t,s,l):E.after(t,s,l);d&&(c.focus=d)}N.setSelection(t,c)}},select(t,e){var{selection:r}=t;if(e=E.range(t,e),r)N.setSelection(t,e);else{if(!L.isRange(e))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(e)));t.apply({type:"set_selection",properties:r,newProperties:e})}},setPoint(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=t,{edge:o="both"}=r;if(n){o==="start"&&(o=L.isBackward(n)?"focus":"anchor"),o==="end"&&(o=L.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:LS(LS({},u),e)})}},setSelection(t,e){var{selection:r}=t,n={},o={};if(r){for(var i in e)(i==="anchor"&&e.anchor!=null&&!kt.equals(e.anchor,r.anchor)||i==="focus"&&e.focus!=null&&!kt.equals(e.focus,r.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==r[i])&&(n[i]=r[i],o[i]=e[i]);Object.keys(n).length>0&&t.apply({type:"set_selection",properties:n,newProperties:o})}}},ZW={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),kt.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),d=E.end(t,[]);kt.equals(f,d)||(a=E.unhangRange(t,a,{voids:i}))}var[p,v]=L.edges(a),y=E.above(t,{match:gt=>E.isBlock(t,gt),at:p,voids:i}),g=E.above(t,{match:gt=>E.isBlock(t,gt),at:v,voids:i}),m=y&&g&&!j.equals(y[1],g[1]),h=j.equals(p.path,v.path),b=i?null:E.void(t,{at:p,mode:"highest"}),w=i?null:E.void(t,{at:v,mode:"highest"});if(b){var D=E.before(t,p);D&&y&&j.isAncestor(y[1],D.path)&&(p=D)}if(w){var C=E.after(t,v);C&&g&&j.isAncestor(g[1],C.path)&&(v=C)}var x,O=[];for(var T of E.nodes(t,{at:a,voids:i})){var[R,H]=T;x&&j.compare(H,x)===0||(!i&&E.isVoid(t,R)||!j.isCommon(H,p.path)&&!j.isCommon(H,v.path))&&(O.push(T),x=H)}var M=Array.from(O,gt=>{var[,vt]=gt;return E.pathRef(t,vt)}),K=E.pointRef(t,p),U=E.pointRef(t,v);if(!h&&!b){var W=K.current,[q]=E.leaf(t,W),{path:et}=W,{offset:st}=p,ut=q.text.slice(st);ut.length>0&&t.apply({type:"remove_text",path:et,offset:st,text:ut})}for(var at of M){var k=at.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var S=U.current,[P]=E.leaf(t,S),{path:$}=S,Y=h?p.offset:0,V=P.text.slice(Y,v.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var it=r?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&it&&N.select(t,it)}}})},insertFragment(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=t.selection}=r;if(e.length&&i){if(L.isRange(i))if(n||(i=E.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:S=>E.isInline(t,S),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:S=>E.isBlock(t,S),at:i,voids:o}),[,f]=c,d=E.isStart(t,i,f),p=E.isEnd(t,i,f),v=d&&p,y=!d||d&&p,g=!p,[,m]=J.first({children:e},[]),[,h]=J.last({children:e},[]),b=[],w=S=>{var[P,$]=S;return $.length!==0&&(!!v||!(y&&j.isAncestor($,m)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(g&&j.isAncestor($,h)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var D of J.nodes({children:e},{pass:w}))w(D)&&b.push(D);var C=[],x=[],O=[],T=!0,R=!1;for(var[H]of b)ct.isElement(H)&&!t.isInline(H)?(T=!1,R=!0,x.push(H)):T?C.push(H):O.push(H);var[M]=E.nodes(t,{at:i,match:S=>ot.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),[,K]=M,U=E.isStart(t,i,K),W=E.isEnd(t,i,K),q=E.pathRef(t,p?j.next(f):f),et=E.pathRef(t,W?j.next(K):K),st=E.pathRef(t,f);N.splitNodes(t,{at:i,match:S=>R?E.isBlock(t,S):ot.isText(S)||E.isInline(t,S),mode:R?"lowest":"highest",voids:o});var ut=E.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,C,{at:ut.current,match:S=>ot.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),v&&x.length&&N.delete(t,{at:st.unref(),voids:o}),N.insertNodes(t,x,{at:q.current,match:S=>E.isBlock(t,S),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:et.current,match:S=>ot.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),!r.at){var at;at=O.length>0?j.previous(et.current):x.length>0?j.previous(q.current):j.previous(ut.current);var k=E.end(t,at);N.select(t,k)}ut.unref(),q.unref(),et.unref()}}})},insertText(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:n=!1}=r,{at:o=t.selection}=r;if(o){if(j.isPath(o)&&(o=E.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!n&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:n}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(n||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function RS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function xh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?RS(Object(r),!0).forEach(function(n){_o(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var N=xh(xh(xh(xh({},WW),KW),XW),ZW),D4="[object Map]",x4="[object Set]",JW=/^\[object .+?Constructor\]$/,QW=/^(?:0|[1-9]\d*)$/,tG="[\\ud800-\\udfff]",C4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",S4="\\ud83c[\\udffb-\\udfff]",OP="[^\\ud800-\\udfff]",kP="(?:\\ud83c[\\udde6-\\uddff]){2}",BP="[\\ud800-\\udbff][\\udc00-\\udfff]",MS="(?:"+C4+"|"+S4+")?",eG="[\\ufe0e\\ufe0f]?"+MS+("(?:\\u200d(?:"+[OP,kP,BP].join("|")+")[\\ufe0e\\ufe0f]?"+MS+")*"),rG="(?:"+[OP+C4+"?",C4,kP,BP,tG].join("|")+")",nG=RegExp(S4+"(?="+S4+")|"+rG+eG,"g"),oG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),iG=typeof ae=="object"&&ae&&ae.Object===Object&&ae,aG=typeof self=="object"&&self&&self.Object===Object&&self,Qu=iG||aG||Function("return this")();function uG(t,e){return function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a}(e,function(r){return t[r]})}function sG(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}function lG(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}function cG(t){return function(e){return oG.test(e)}(t)?function(e){return e.match(nG)||[]}(t):function(e){return e.split("")}(t)}var zS,$S,fG=Function.prototype,Ey=Object.prototype,t1=Qu["__core-js_shared__"],HS=function(){var t=/[^.]+$/.exec(t1&&t1.keys&&t1.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),FP=fG.toString,Bv=Ey.hasOwnProperty,Op=Ey.toString,dG=RegExp("^"+FP.call(Bv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),VS=Qu.Symbol,e1=VS?VS.iterator:void 0,pG=Ey.propertyIsEnumerable,hG=(zS=Object.keys,$S=Object,function(t){return zS($S(t))}),A4=kp(Qu,"DataView"),O4=kp(Qu,"Map"),k4=kp(Qu,"Promise"),B4=kp(Qu,"Set"),F4=kp(Qu,"WeakMap"),gG=ts(A4),vG=ts(O4),yG=ts(k4),mG=ts(B4),bG=ts(F4);function wG(t,e){var r=TP(t)||function(a){return function(u){return jP(u)&&a5(u)}(a)&&Bv.call(a,"callee")&&(!pG.call(a,"callee")||Op.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!Bv.call(t,i)||o&&(i=="length"||xG(i,n))||r.push(i);return r}function EG(t){if(!PP(t)||function(r){return!!HS&&HS in r}(t))return!1;var e=_P(t)||function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n}(t)?dG:JW;return e.test(ts(t))}function DG(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||Ey,e!==n)return hG(t);var e,r,n,o=[];for(var i in Object(t))Bv.call(t,i)&&i!="constructor"&&o.push(i);return o}function kp(t,e){var r=function(n,o){return n==null?void 0:n[o]}(t,e);return EG(r)?r:void 0}var Xa=function(t){return Op.call(t)};function xG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||QW.test(t))&&t>-1&&t%1==0&&t<e}function ts(t){if(t!=null){try{return FP.call(t)}catch{}try{return t+""}catch{}}return""}(A4&&Xa(new A4(new ArrayBuffer(1)))!="[object DataView]"||O4&&Xa(new O4)!=D4||k4&&Xa(k4.resolve())!="[object Promise]"||B4&&Xa(new B4)!=x4||F4&&Xa(new F4)!="[object WeakMap]")&&(Xa=function(t){var e=Op.call(t),r=e=="[object Object]"?t.constructor:void 0,n=r?ts(r):void 0;if(n)switch(n){case gG:return"[object DataView]";case vG:return D4;case yG:return"[object Promise]";case mG:return x4;case bG:return"[object WeakMap]"}return e});var TP=Array.isArray;function a5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!_P(t)}function _P(t){var e=PP(t)?Op.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function PP(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function jP(t){return!!t&&typeof t=="object"}function CG(t){return t?uG(t,function(e){return a5(e)?wG(e):DG(e)}(t)):[]}var US=function(t){if(!t)return[];if(a5(t))return function(r){return typeof r=="string"||!TP(r)&&jP(r)&&Op.call(r)=="[object String]"}(t)?cG(t):function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n}(t);if(e1&&t[e1])return function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o}(t[e1]());var e=Xa(t);return(e==D4?sG:e==x4?lG:CG)(t)};function WS(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function u5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(r){t[r]===void 0?t[r]=e[r]:WS(e[r])&&WS(t[r])&&Object.keys(e[r]).length>0&&u5(t[r],e[r])})}var NP={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 Bp(){var t=typeof document<"u"?document:{};return u5(t,NP),t}var SG={document:NP,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(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout<"u"&&clearTimeout(t)}};function es(){var t=typeof window<"u"?window:{};return u5(t,SG),t}function T4(t){return T4=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T4(t)}function Fv(t,e){return Fv=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Fv(t,e)}function AG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _4(t,e,r){return _4=AG()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&Fv(u,i.prototype),u},_4.apply(null,arguments)}function P4(t){var e=typeof Map=="function"?new Map:void 0;return P4=function(r){if(r===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return _4(r,arguments,T4(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fv(n,r)},P4(t)}var Hi=function(t){var e,r;function n(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,e.__proto__=r,n}(P4(Array));function Dy(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(r){Array.isArray(r)?e.push.apply(e,Dy(r)):e.push(r)}),e}function IP(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var r=es(),n=Bp(),o=[];if(!e&&t instanceof Hi)return t;if(!t)return new Hi(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=n.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(t.trim(),e||n)}else if(t.nodeType||t===r||t===n)o.push(t);else if(Array.isArray(t)){if(t instanceof Hi)return t;o=t}return new Hi(function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c}(o))}function El(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Dy(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,n)}),this}function Dl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Dy(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,n)}),this}function xl(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=Dy(e.map(function(o){return o.split(" ")}));return IP(this,function(o){return n.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Sn(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(t,e);else for(var n in t)this[r][n]=t[n],this[r].setAttribute(n,t[n]);return this}function Tv(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function Cl(){var t=this[0];if(t){var e,r={};if(t.dataset)for(var n in t.dataset)r[n]=t.dataset[n];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(r[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function So(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<e.selectedOptions.length;n+=1)r.push(e.selectedOptions[n].value);return r}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function Ao(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];function u(y){var g=y.target;if(g){var m=y.target.dom7EventData||[];if(m.indexOf(y)<0&&m.unshift(y),B(g).is(o))i.apply(g,m);else for(var h=B(g).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],m)}}function s(y){var g=y&&y.target&&y.target.dom7EventData||[];g.indexOf(y)<0&&g.unshift(y),i.apply(this,g)}typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=n.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 v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:s}),d.addEventListener(v,s,a)}}return this}function GS(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(n=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=n.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 v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function _v(){var t=es();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Pv(){var t=es();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function qS(){if(this.length>0){var t=es(),e=Bp(),r=this[0],n=r.getBoundingClientRect(),o=e.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===t?t.scrollY:r.scrollTop,s=r===t?t.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function Sl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function jv(){for(var t=es(),e=0;e<this.length;e+=1){var r=this[e];r.style.display==="none"&&(r.style.display=""),t.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function Nv(t,e){var r,n=es();if(arguments.length===1){if(typeof t!="string"){for(r=0;r<this.length;r+=1)for(var o in t)this[r].style[o]=t[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this}function Iv(t){return t?(this.forEach(function(e,r){t.apply(e,[e,r])}),this):this}function KS(t){return B(IP(this,t))}function da(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function Lv(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function YS(t){var e,r,n=es(),o=Bp(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=B(t),r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}if(t===o)return i===o;if(t===n)return i===n;if(t.nodeType||t instanceof Hi){for(e=t.nodeType?[t]:t,r=0;r<e.length;r+=1)if(e[r]===i)return!0;return!1}return!1}function An(){for(var t,e=Bp(),r=0;r<arguments.length;r+=1){t=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[n].appendChild(o.firstChild)}else if(t instanceof Hi)for(var i=0;i<t.length;i+=1)this[n].appendChild(t[i]);else this[n].appendChild(t)}return this}function XS(t){var e,r,n=Bp();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=n.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[e].insertBefore(o.childNodes[r],this[e].childNodes[0])}else if(t instanceof Hi)for(r=0;r<t.length;r+=1)this[e].insertBefore(t[r],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Al(t){for(var e=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(t?B(this[r].parentNode).is(t)&&e.push(this[r].parentNode):e.push(this[r].parentNode));return B(e)}function Rv(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)t?B(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return B(e)}function Ol(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(t),o=0;o<n.length;o+=1)e.push(n[o]);return B(e)}function kl(t){for(var e=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)t&&!B(n[o]).is(t)||e.push(n[o]);return B(e)}function Bl(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Fl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var r=0;r<e.childNodes.length;r+=1)e.childNodes[r].parentNode&&e.childNodes[r].parentNode.removeChild(e.childNodes[r]);e.textContent=""}}return this}B.fn=Hi.prototype;var OG="resize scroll".split(" ");function LP(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)OG.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(r))}}var ZS=LP("click"),pa=LP("focus"),kG="[object GeneratorFunction]",BG=/^(?:0|[1-9]\d*)$/;function FG(t,e){for(var r=-1,n=t?t.length:0;++r<n&&e(t[r],r,t)!==!1;);return t}var xy=Object.prototype,j4=xy.hasOwnProperty,RP=xy.toString,TG=xy.propertyIsEnumerable,_G=function(t,e){return function(r){return t(e(r))}}(Object.keys,Object);function PG(t,e){var r=MP(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&s5(u)}(a)&&j4.call(a,"callee")&&(!TG.call(a,"callee")||RP.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],n=r.length,o=!!n;for(var i in t)!j4.call(t,i)||o&&(i=="length"||LG(i,n))||r.push(i);return r}var JS,jG=(JS=function(t,e){return t&&NG(t,e,RG)},function(t,e){if(t==null)return t;if(!s5(t))return JS(t,e);for(var r=t.length,n=-1,o=Object(t);++n<r&&e(o[n],n,o)!==!1;);return t}),NG=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return e}}();function IG(t){if(r=(e=t)&&e.constructor,n=typeof r=="function"&&r.prototype||xy,e!==n)return _G(t);var e,r,n,o=[];for(var i in Object(t))j4.call(t,i)&&i!="constructor"&&o.push(i);return o}function LG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||BG.test(t))&&t>-1&&t%1==0&&t<e}var MP=Array.isArray;function s5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var r=function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}(e)?RP.call(e):"";return r=="[object Function]"||r==kG}(t)}function RG(t){return s5(t)?PG(t):IG(t)}function MG(t){return t}var l5=function(t,e){return(MP(t)?FG:jG)(t,typeof e=="function"?e:MG)};let zP=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e};var zG=/^\s+|\s+$/g,$G=/^[-+]0x[0-9a-f]+$/i,HG=/^0b[01]+$/i,VG=/^0o[0-7]+$/i,UG=parseInt,WG=typeof ae=="object"&&ae&&ae.Object===Object&&ae,GG=typeof self=="object"&&self&&self.Object===Object&&self,qG=WG||GG||Function("return this")(),KG=Object.prototype.toString,YG=Math.max,XG=Math.min,r1=function(){return qG.Date.now()};function ZG(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=n,D=o;return n=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function y(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=r1();if(y(b))return m(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?XG(D,i-(w-l)):D}(b))}function m(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=r1(),w=y(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=QS(e)||0,Mv(r)&&(c=!!r.leading,i=(f="maxWait"in r)?YG(QS(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(r1())},h}function Mv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function QS(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&KG.call(n)=="[object Symbol]"}(t))return NaN;if(Mv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Mv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(zG,"");var r=HG.test(t);return r||VG.test(t)?UG(t.slice(2),r?2:8):$G.test(t)?NaN:+t}var Mu=function(t,e,r){var n=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return Mv(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),ZG(t,e,{leading:n,maxWait:e,trailing:o})};const JG={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,r){return document.createElementNS(t,e,r)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,r){t.insertBefore(e,r)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function Od(t,e,r,n,o){return{sel:t,data:e,children:r,text:n,elm:o,key:e===void 0?void 0:e.key}}const N4=Array.isArray;function Pg(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function n1(t){return t===void 0}function Yr(t){return t!==void 0}const tA=Od("",{},[],void 0,void 0);function Ac(t,e){var r,n;const o=t.key===e.key,i=((r=t.data)===null||r===void 0?void 0:r.is)===((n=e.data)===null||n===void 0?void 0:n.is);return t.sel===e.sel&&o&&i}function QG(t,e,r){var n;const o={};for(let i=e;i<=r;++i){const a=(n=t[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const tq=["create","update","remove","destroy","pre","post"];function eq(t,e){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=JG;for(const f of tq)for(const d of t){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return Od(n.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function a(f,d){var p,v;let y,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;Yr(b)&&(b(f),g=f.data)}const m=f.children,h=f.sel;if(h==="!")n1(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,C=w>0?w:h.length,x=b!==-1||w!==-1?h.slice(0,Math.min(D,C)):h,O=f.elm=Yr(g)&&Yr(y=g.ns)?n.createElementNS(y,x,g):n.createElement(x,g);for(D<C&&O.setAttribute("id",h.slice(D+1,C)),w>0&&O.setAttribute("class",h.slice(C+1).replace(/\./g," ")),y=0;y<r.create.length;++y)r.create[y](tA,f);if(N4(m))for(y=0;y<m.length;++y){const R=m[y];R!=null&&n.appendChild(O,a(R,d))}else Pg(f.text)&&n.appendChild(O,n.createTextNode(f.text));const T=f.data.hook;Yr(T)&&((v=T.create)===null||v===void 0||v.call(T,tA,f),T.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,v,y,g){for(;v<=y;++v){const m=p[v];m!=null&&n.insertBefore(f,a(m,g),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let y=0;y<r.destroy.length;++y)r.destroy[y](f);if(f.children!==void 0)for(let y=0;y<f.children.length;++y){const g=f.children[y];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,v){for(var y,g;p<=v;++p){let m,h;const b=d[p];if(b!=null)if(Yr(b.sel)){s(b),m=r.remove.length+1,h=i(b.elm,m);for(let D=0;D<r.remove.length;++D)r.remove[D](b,h);const w=(g=(y=b==null?void 0:b.data)===null||y===void 0?void 0:y.hook)===null||g===void 0?void 0:g.remove;Yr(w)?w(b,h):h()}else n.removeChild(f,b.elm)}}function c(f,d,p){var v,y,g,m,h;const b=(v=d.data)===null||v===void 0?void 0:v.hook;(y=b==null?void 0:b.prepatch)===null||y===void 0||y.call(b,f,d);const w=d.elm=f.elm,D=f.children,C=d.children;if(f!==d){if(d.data!==void 0){for(let x=0;x<r.update.length;++x)r.update[x](f,d);(m=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||m===void 0||m.call(g,f,d)}n1(d.text)?Yr(D)&&Yr(C)?D!==C&&function(x,O,T,R){let H,M,K,U,W=0,q=0,et=O.length-1,st=O[0],ut=O[et],at=T.length-1,k=T[0],S=T[at];for(;W<=et&&q<=at;)st==null?st=O[++W]:ut==null?ut=O[--et]:k==null?k=T[++q]:S==null?S=T[--at]:Ac(st,k)?(c(st,k,R),st=O[++W],k=T[++q]):Ac(ut,S)?(c(ut,S,R),ut=O[--et],S=T[--at]):Ac(st,S)?(c(st,S,R),n.insertBefore(x,st.elm,n.nextSibling(ut.elm)),st=O[++W],S=T[--at]):Ac(ut,k)?(c(ut,k,R),n.insertBefore(x,ut.elm,st.elm),ut=O[--et],k=T[++q]):(H===void 0&&(H=QG(O,W,et)),M=H[k.key],n1(M)?n.insertBefore(x,a(k,R),st.elm):(K=O[M],K.sel!==k.sel?n.insertBefore(x,a(k,R),st.elm):(c(K,k,R),O[M]=void 0,n.insertBefore(x,K.elm,st.elm))),k=T[++q]);(W<=et||q<=at)&&(W>et?(U=T[at+1]==null?null:T[at+1].elm,u(x,U,T,q,at,R)):l(x,O,W,et))}(w,D,C,p):Yr(C)?(Yr(f.text)&&n.setTextContent(w,""),u(w,null,C,0,C.length-1,p)):Yr(D)?l(w,D,0,D.length-1):Yr(f.text)&&n.setTextContent(w,""):f.text!==d.text&&(Yr(D)&&l(w,D,0,D.length-1),n.setTextContent(w,d.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,d)}}return function(f,d){let p,v,y;const g=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for(function(m){return m.sel!==void 0}(f)||(f=o(f)),Ac(f,d)?c(f,d,g):(v=f.elm,y=n.parentNode(v),a(d,g),y!==null&&(n.insertBefore(y,d.elm,n.nextSibling(v)),l(y,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function $P(t,e,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){const o=e[n].data;o!==void 0&&$P(o,e[n].children,e[n].sel)}}function Tl(t,e,r){let n,o,i,a={};if(r!==void 0?(e!==null&&(a=e),N4(r)?n=r:Pg(r)?o=r.toString():r&&r.sel&&(n=[r])):e!=null&&(N4(e)?n=e:Pg(e)?o=e.toString():e&&e.sel?n=[e]:a=e),n!==void 0)for(i=0;i<n.length;++i)Pg(n[i])&&(n[i]=Od(void 0,void 0,void 0,n[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||$P(a,n,t),Od(t,a,n,o,void 0)}function eA(t,e){let r;const n=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const rq={create:eA,update:eA};function rA(t,e){let r,n;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const nq={create:rA,update:rA},nA=/[A-Z]/g;function oA(t,e){const r=e.elm;let n,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(nA,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(nA,"-$&").toLowerCase(),i[n]))}const oq={create:oA,update:oA};function HP(t,e,r){if(typeof t=="function")t.call(e,r,e);else if(typeof t=="object")for(let n=0;n<t.length;n++)HP(t[n],e,r)}function iq(t,e){const r=t.type,n=e.data.on;n&&n[r]&&HP(n[r],e,t)}function o1(t,e){const r=t.data.on,n=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=e.listener=t.listener||function l(c){iq(c,l.vnode)};if(s.vnode=e,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const aq={create:o1,update:o1,destroy:o1};function iA(t,e){let r,n,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const uq={create:iA,update:iA},aA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let i1=!1;function sq(t,e,r){(function(n){aA(function(){aA(n)})})(function(){t[e]=r})}function uA(t,e){let r,n;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||sq(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const lq={pre:function(){i1=!1},create:uA,update:uA,destroy:function(t){let e,r;const n=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(r in e)n.style[r]=e[r]},remove:function(t,e){const r=t.data.style;if(!r||!r.remove)return void e();let n;i1||(t.elm.offsetLeft,i1=!0);const o=t.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function VP(t,e){for(const r of t)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?VP(r,e):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?e.push(Od(void 0,void 0,void 0,String(r),void 0)):e.push(r));return e}function bt(t,e,...r){const n=VP(r,[]);return typeof t=="function"?t(e,n):n.length===1&&!n[0].sel&&n[0].text?Tl(t,e,n[0].text):Tl(t,e,n)}bt||(bt={});var cq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,UP="\\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",dq="[\\ud800-\\udfff]",sA="["+UP+"]",zv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",WP="\\d+",pq="[\\u2700-\\u27bf]",GP="[a-z\\xdf-\\xf6\\xf8-\\xff]",qP="[^\\ud800-\\udfff"+UP+WP+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",I4="\\ud83c[\\udffb-\\udfff]",KP="[^\\ud800-\\udfff]",c5="(?:\\ud83c[\\udde6-\\uddff]){2}",f5="[\\ud800-\\udbff][\\udc00-\\udfff]",qs="[A-Z\\xc0-\\xd6\\xd8-\\xde]",lA="(?:"+GP+"|"+qP+")",hq="(?:"+qs+"|"+qP+")",cA="(?:"+zv+"|"+I4+")?",YP="[\\ufe0e\\ufe0f]?"+cA+("(?:\\u200d(?:"+[KP,c5,f5].join("|")+")[\\ufe0e\\ufe0f]?"+cA+")*"),gq="(?:"+[pq,c5,f5].join("|")+")"+YP,vq="(?:"+[KP+zv+"?",zv,c5,f5,dq].join("|")+")",yq=RegExp("['’]","g"),mq=RegExp(zv,"g"),bq=RegExp(I4+"(?="+I4+")|"+vq+YP,"g"),wq=RegExp([qs+"?"+GP+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[sA,qs,"$"].join("|")+")",hq+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[sA,qs+lA,"$"].join("|")+")",qs+"?"+lA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",qs+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",WP,gq].join("|"),"g"),Eq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Dq=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xq=typeof ae=="object"&&ae&&ae.Object===Object&&ae,Cq=typeof self=="object"&&self&&self.Object===Object&&self,Sq=xq||Cq||Function("return this")(),a1,Aq=(a1={À:"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(t){return a1==null?void 0:a1[t]});function XP(t){return Eq.test(t)}function Oq(t){return XP(t)?function(e){return e.match(bq)||[]}(t):function(e){return e.split("")}(t)}var kq=Object.prototype.toString,fA=Sq.Symbol,dA=fA?fA.prototype:void 0,pA=dA?dA.toString:void 0;function Bq(t){if(typeof t=="string")return t;if(function(r){return typeof r=="symbol"||function(n){return!!n&&typeof n=="object"}(r)&&kq.call(r)=="[object Symbol]"}(t))return pA?pA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Fq(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,r)}function jg(t){return t==null?"":Bq(t)}var hA,Tq=(hA=function(t,e,r){return e=e.toLowerCase(),t+(r?_q(jg(e).toLowerCase()):e)},function(t){return function(e,r,n,o){var i=-1,a=e?e.length:0;for(o;++i<a;)n=r(n,e[i],i,e);return n}(function(e,r,n){return e=jg(e),(r=r)===void 0?function(o){return Dq.test(o)}(e)?function(o){return o.match(wq)||[]}(e):function(o){return o.match(cq)||[]}(e):e.match(r)||[]}(function(e){return(e=jg(e))&&e.replace(fq,Aq).replace(mq,"")}(t).replace(yq,"")),hA,"")}),gA,_q=(gA="toUpperCase",function(t){var e=XP(t=jg(t))?Oq(t):void 0,r=e?e[0]:t.charAt(0),n=e?Fq(e,1).join(""):t.slice(1);return r[gA]()+n});for(var Pq=Tq,jq=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),u1={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},ZP={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:jq?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},d5={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},Ch=1;Ch<20;Ch++)d5["f"+Ch]=111+Ch;function JP(t,e,r){e&&!("byKey"in e)&&(r=e,e=null),Array.isArray(t)||(t=[t]);var n=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in u1)l[u1[d]]=!1;var p=!0,v=!1,y=void 0;try{for(var g,m=c[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=QP(h),D=u1[w];if(h.length>1&&!D&&!ZP[h]&&!d5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=Nq(h)),D&&(l[D]=!b||null)}}catch(C){v=!0,y=C}finally{try{!p&&m.return&&m.return()}finally{if(v)throw y}}return l}(i,e)}),o=function(i){return n.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return r==null?o:o(r)}function Nq(t){return t=QP(t),d5[t]||t.toUpperCase().charCodeAt(0)}function QP(t){return t=t.toLowerCase(),t=ZP[t]||t}var Iq=JP,s1=function(t,e){return JP(t,{byKey:!0},e)},Lq=/^\s+|\s+$/g,Rq=/^[-+]0x[0-9a-f]+$/i,Mq=/^0b[01]+$/i,zq=/^0o[0-7]+$/i,$q=parseInt,Hq=typeof ae=="object"&&ae&&ae.Object===Object&&ae,Vq=typeof self=="object"&&self&&self.Object===Object&&self,Uq=Hq||Vq||Function("return this")(),Wq=Object.prototype.toString,Gq=Math.max,qq=Math.min,l1=function(){return Uq.Date.now()};function L4(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function vA(t){if(typeof t=="number")return t;if(function(n){return typeof n=="symbol"||function(o){return!!o&&typeof o=="object"}(n)&&Wq.call(n)=="[object Symbol]"}(t))return NaN;if(L4(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=L4(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Lq,"");var r=Mq.test(t);return r||zq.test(t)?$q(t.slice(2),r?2:8):Rq.test(t)?NaN:+t}var bs,tj=function(t,e,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=n,D=o;return n=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function y(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=l1();if(y(b))return m(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?qq(D,i-(w-l)):D}(b))}function m(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=l1(),w=y(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=vA(e)||0,L4(r)&&(c=!!r.leading,i=(f="maxWait"in r)?Gq(vA(r.maxWait)||0,e):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:m(l1())},h},ej=Zu(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",y="[object String]",g="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",C="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[C]=q[x]=q[O]=q[l]=q[c]=q[f]=q[p]=q[v]=q[y]=q[g]=q[T]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var et=typeof ae=="object"&&ae&&ae.Object===Object&&ae,st=typeof self=="object"&&self&&self.Object===Object&&self,ut=et||st||Function("return this")(),at=e&&!e.nodeType&&e,k=at&&t&&!t.nodeType&&t,S=k&&k.exports===at;function P(F,z){return F.set(z[0],z[1]),F}function $(F,z){return F.add(z),F}function Y(F,z,nt,lt){var zt=-1,ve=F?F.length:0;for(lt;++zt<ve;)nt=z(nt,F[zt],zt,F);return nt}function V(F){var z=!1;if(F!=null&&typeof F.toString!="function")try{z=!!(F+"")}catch{}return z}function it(F){var z=-1,nt=Array(F.size);return F.forEach(function(lt,zt){nt[++z]=[zt,lt]}),nt}function gt(F,z){return function(nt){return F(z(nt))}}function vt(F){var z=-1,nt=Array(F.size);return F.forEach(function(lt){nt[++z]=lt}),nt}var Dt=Array.prototype,G=Function.prototype,It=Object.prototype,At=ut["__core-js_shared__"],dt=function(){var F=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""}(),Ot=G.toString,Oe=It.hasOwnProperty,$t=It.toString,Qt=RegExp("^"+Ot.call(Oe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=S?ut.Buffer:void 0,hr=ut.Symbol,Mt=ut.Uint8Array,Nr=gt(Object.getPrototypeOf,Object),Pn=Object.create,Qn=It.propertyIsEnumerable,cs=Dt.splice,_a=Object.getOwnPropertySymbols,jn=ge?ge.isBuffer:void 0,to=gt(Object.keys,Object),jo=eo(ut,"DataView"),gr=eo(ut,"Map"),vr=eo(ut,"Promise"),yr=eo(ut,"Set"),kr=eo(ut,"WeakMap"),rr=eo(Object,"create"),fn=no(jo),pc=no(gr),di=no(vr),No=no(yr),fs=no(kr),Pa=hr?hr.prototype:void 0,ds=Pa?Pa.valueOf:void 0;function Nn(F){var z=-1,nt=F?F.length:0;for(this.clear();++z<nt;){var lt=F[z];this.set(lt[0],lt[1])}}function dn(F){var z=-1,nt=F?F.length:0;for(this.clear();++z<nt;){var lt=F[z];this.set(lt[0],lt[1])}}function Io(F){var z=-1,nt=F?F.length:0;for(this.clear();++z<nt;){var lt=F[z];this.set(lt[0],lt[1])}}function In(F){this.__data__=new dn(F)}function pi(F,z){var nt=_(F)||function(se){return function(Ut){return function(Ye){return!!Ye&&typeof Ye=="object"}(Ut)&&I(Ut)}(se)&&Oe.call(se,"callee")&&(!Qn.call(se,"callee")||$t.call(se)==o)}(F)?function(se,Ut){for(var Ye=-1,mr=Array(se);++Ye<se;)mr[Ye]=Ut(Ye);return mr}(F.length,String):[],lt=nt.length,zt=!!lt;for(var ve in F)!Oe.call(F,ve)||zt&&(ve=="length"||lh(ve,lt))||nt.push(ve);return nt}function uh(F,z,nt){var lt=F[z];Oe.call(F,z)&&ch(lt,nt)&&(nt!==void 0||z in F)||(F[z]=nt)}function Kr(F,z){for(var nt=F.length;nt--;)if(ch(F[nt][0],z))return nt;return-1}function hc(F,z,nt,lt,zt,ve,se){var Ut;if(lt&&(Ut=ve?lt(F,zt,ve,se):lt(F)),Ut!==void 0)return Ut;if(!te(F))return F;var Ye=_(F);if(Ye){if(Ut=function(mt){var Xt=mt.length,_e=mt.constructor(Xt);return Xt&&typeof mt[0]=="string"&&Oe.call(mt,"index")&&(_e.index=mt.index,_e.input=mt.input),_e}(F),!z)return function(mt,Xt){var _e=-1,Lt=mt.length;for(Xt||(Xt=Array(Lt));++_e<Lt;)Xt[_e]=mt[_e];return Xt}(F,Ut)}else{var mr=ro(F),ja=mr==u||mr==s;if(Z(F))return function(mt,Xt){if(Xt)return mt.slice();var _e=new mt.constructor(mt.length);return mt.copy(_e),_e}(F,z);if(mr==f||mr==o||ja&&!ve){if(V(F))return ve?F:{};if(Ut=function(mt){return typeof mt.constructor!="function"||hi(mt)?{}:(Xt=Nr(mt),te(Xt)?Pn(Xt):{});var Xt}(ja?{}:F),!z)return function(mt,Xt){return sh(mt,gc(mt),Xt)}(F,function(mt,Xt){return mt&&sh(Xt,Pt(Xt),mt)}(Ut,F))}else{if(!q[mr])return ve?F:{};Ut=function(mt,Xt,_e,Lt){var Wt=mt.constructor;switch(Xt){case h:return ps(mt);case i:case a:return new Wt(+mt);case b:return function(Gt,ke){var Br=ke?ps(Gt.buffer):Gt.buffer;return new Gt.constructor(Br,Gt.byteOffset,Gt.byteLength)}(mt,Lt);case w:case D:case C:case x:case O:case T:case R:case H:case M:return function(Gt,ke){var Br=ke?ps(Gt.buffer):Gt.buffer;return new Gt.constructor(Br,Gt.byteOffset,Gt.length)}(mt,Lt);case l:return function(Gt,ke,Br){return Y(ke?Br(it(Gt),!0):it(Gt),P,new Gt.constructor)}(mt,Lt,_e);case c:case y:return new Wt(mt);case p:return function(Gt){var ke=new Gt.constructor(Gt.source,K.exec(Gt));return ke.lastIndex=Gt.lastIndex,ke}(mt);case v:return function(Gt,ke,Br){return Y(ke?Br(vt(Gt),!0):vt(Gt),$,new Gt.constructor)}(mt,Lt,_e);case g:return function(Gt){return ds?Object(ds.call(Gt)):{}}(mt)}}(F,mr,hc,z)}}se||(se=new In);var Mo=se.get(F);if(Mo)return Mo;if(se.set(F,Ut),!Ye)var gi=nt?function(mt){return function(Xt,_e,Lt){var Wt=_e(Xt);return _(Xt)?Wt:function(Gt,ke){for(var Br=-1,Ir=ke.length,Ln=Gt.length;++Br<Ir;)Gt[Ln+Br]=ke[Br];return Gt}(Wt,Lt(Xt))}(mt,Pt,gc)}(F):Pt(F);return function(mt,Xt){for(var _e=-1,Lt=mt?mt.length:0;++_e<Lt&&Xt(mt[_e],_e,mt)!==!1;);}(gi||F,function(mt,Xt){gi&&(mt=F[Xt=mt]),uh(Ut,Xt,hc(mt,z,nt,lt,Xt,F,se))}),Ut}function Lo(F){return!(!te(F)||function(z){return!!dt&&dt in z}(F))&&(ht(F)||V(F)?Qt:U).test(no(F))}function ps(F){var z=new F.constructor(F.byteLength);return new Mt(z).set(new Mt(F)),z}function sh(F,z,nt,lt){nt||(nt={});for(var zt=-1,ve=z.length;++zt<ve;){var se=z[zt],Ut=void 0;uh(nt,se,Ut===void 0?F[se]:Ut)}return nt}function Ro(F,z){var nt,lt,zt=F.__data__;return((lt=typeof(nt=z))=="string"||lt=="number"||lt=="symbol"||lt=="boolean"?nt!=="__proto__":nt===null)?zt[typeof z=="string"?"string":"hash"]:zt.map}function eo(F,z){var nt=function(lt,zt){return lt==null?void 0:lt[zt]}(F,z);return Lo(nt)?nt:void 0}Nn.prototype.clear=function(){this.__data__=rr?rr(null):{}},Nn.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},Nn.prototype.get=function(F){var z=this.__data__;if(rr){var nt=z[F];return nt===r?void 0:nt}return Oe.call(z,F)?z[F]:void 0},Nn.prototype.has=function(F){var z=this.__data__;return rr?z[F]!==void 0:Oe.call(z,F)},Nn.prototype.set=function(F,z){return this.__data__[F]=rr&&z===void 0?r:z,this},dn.prototype.clear=function(){this.__data__=[]},dn.prototype.delete=function(F){var z=this.__data__,nt=Kr(z,F);return!(nt<0)&&(nt==z.length-1?z.pop():cs.call(z,nt,1),!0)},dn.prototype.get=function(F){var z=this.__data__,nt=Kr(z,F);return nt<0?void 0:z[nt][1]},dn.prototype.has=function(F){return Kr(this.__data__,F)>-1},dn.prototype.set=function(F,z){var nt=this.__data__,lt=Kr(nt,F);return lt<0?nt.push([F,z]):nt[lt][1]=z,this},Io.prototype.clear=function(){this.__data__={hash:new Nn,map:new(gr||dn),string:new Nn}},Io.prototype.delete=function(F){return Ro(this,F).delete(F)},Io.prototype.get=function(F){return Ro(this,F).get(F)},Io.prototype.has=function(F){return Ro(this,F).has(F)},Io.prototype.set=function(F,z){return Ro(this,F).set(F,z),this},In.prototype.clear=function(){this.__data__=new dn},In.prototype.delete=function(F){return this.__data__.delete(F)},In.prototype.get=function(F){return this.__data__.get(F)},In.prototype.has=function(F){return this.__data__.has(F)},In.prototype.set=function(F,z){var nt=this.__data__;if(nt instanceof dn){var lt=nt.__data__;if(!gr||lt.length<199)return lt.push([F,z]),this;nt=this.__data__=new Io(lt)}return nt.set(F,z),this};var gc=_a?gt(_a,Object):function(){return[]},ro=function(F){return $t.call(F)};function lh(F,z){return!!(z=z??n)&&(typeof F=="number"||W.test(F))&&F>-1&&F%1==0&&F<z}function hi(F){var z=F&&F.constructor;return F===(typeof z=="function"&&z.prototype||It)}function no(F){if(F!=null){try{return Ot.call(F)}catch{}try{return F+""}catch{}}return""}function ch(F,z){return F===z||F!=F&&z!=z}(jo&&ro(new jo(new ArrayBuffer(1)))!=b||gr&&ro(new gr)!=l||vr&&ro(vr.resolve())!=d||yr&&ro(new yr)!=v||kr&&ro(new kr)!=m)&&(ro=function(F){var z=$t.call(F),nt=z==f?F.constructor:void 0,lt=nt?no(nt):void 0;if(lt)switch(lt){case fn:return b;case pc:return l;case di:return d;case No:return v;case fs:return m}return z});var _=Array.isArray;function I(F){return F!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=n}(F.length)&&!ht(F)}var Z=jn||function(){return!1};function ht(F){var z=te(F)?$t.call(F):"";return z==u||z==s}function te(F){var z=typeof F;return!!F&&(z=="object"||z=="function")}function Pt(F){return I(F)?pi(F):function(z){if(!hi(z))return to(z);var nt=[];for(var lt in Object(z))Oe.call(z,lt)&&lt!="constructor"&&nt.push(lt);return nt}(F)}t.exports=function(F){return hc(F,!0,!0)}});function yA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Kq=0;function Yq(t){return"__private_"+Kq+++"_"+t}function Xq(t,e,r){const n=[];return t.forEach(o=>typeof o!="string"?n.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})),n}/**
 * Takes a string with placeholder variables like `%{smart_count} file selected`
 * and replaces it with values from options `{smart_count: 5}`
 *
 * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
 * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
 *
 * @param {string} phrase that needs interpolation, with placeholders
 * @param {object} options with values that will be used to replace placeholders
 * @returns {any[]} interpolated
 */function mA(t,e){const r=/\$/g;let n=[t];if(e==null)return n;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=Xq(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var rj=(bs=Yq("apply"),class{constructor(t){Object.defineProperty(this,bs,{value:Zq}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(yA(this,bs)[bs],this):yA(this,bs)[bs](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(n,o){return Object.prototype.hasOwnProperty.call(n,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const r=this.locale.strings[t];if(typeof r=="object"){if(e&&e.smart_count!==void 0)return mA(r[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return mA(r,e)}});function Zq(t){if(t==null||!t.strings)return;const e=this.locale;this.locale={...e,strings:{...e.strings,...t.strings}},this.locale.pluralize=t.pluralize||e.pluralize}var nj=function(){var t={},e=t._fns={};return t.emit=function(r,n,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(e),y=0,g=v.length;y<g;y++){var m=v[y];if(m==="*"&&(f=f.concat(e[m])),p.length===2&&p[0]===m){f=f.concat(e[m]);break}}return f}(r);l.length&&function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(r,l,[n,o,i,a,u,s])},t.on=function(r,n){e[r]||(e[r]=[]),e[r].push(n)},t.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),t.off(r,o)})},t.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},t},Jq={nanoid:(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e}},c1=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var n=Math.min(Math.floor(Math.log(t)/Math.log(1024)),r.length-1);t=Number(t/Math.pow(1024,n));var o=r[n];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function oj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}oj.prototype.match=function(t){var e,r,n=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(r=(t||"").split(this.separator),e=0;n&&e<i;e++)o[e]!=="*"&&(n=e<r.length&&o[e]===r[e]);n=n&&r}else n=!1;else if(typeof t.splice=="function")for(n=[],e=t.length;e--;)this.match(t[e])&&(n[n.length]=t[e]);else if(typeof t=="object")for(var a in n={},t)this.match(a)&&(n[a]=t[a]);return n};var Qq=/[\/\+\.]/,tK=function(t,e){function r(n){var o=function(i,a,u){var s=new oj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(n,t,Qq);return o&&o.length>=2}return e?r(e.split(";")[0]):r},eK=0;function rK(t){return"__private_"+eK+++"_"+t}var f1=rK("publish");class ij{constructor(){Object.defineProperty(this,f1,{value:nK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const r={...this.state},n={...this.state,...e};this.state=n,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,f1)[f1](r,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function nK(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];this.callbacks.forEach(n=>{n(...e)})}ij.VERSION="2.0.3";var bA=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},wA={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 EA(t){let e="";return t.replace(/[^A-Z0-9]/gi,r=>(e+=`-${function(n){return n.charCodeAt(0).toString(32)}(r)}`,"/"))+e}var oK=function(t){if(t==null&&(t=typeof navigator<"u"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const r=e[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function d1(t){return t<10?`0${t}`:t.toString()}var Sh=function(){const t=new Date;return`${d1(t.getHours())}:${d1(t.getMinutes())}:${d1(t.getSeconds())}`},aj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Sh()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.debug(`[Uppy] [${Sh()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.warn(`[Uppy] [${Sh()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return console.error(`[Uppy] [${Sh()}]`,...e)}}},iK={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}"}}},uj=Jq;let sj,lj;function ft(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var aK=0;function Ke(t){return"__private_"+aK+++"_"+t}const{nanoid:uK}=uj,{justErrorsLogger:sK,debugLogger:lK}=aj;class fo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class cK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var cr=Ke("plugins"),Oc=Ke("storeUnsubscribe"),$o=Ke("emitter"),eu=Ke("preProcessors"),ru=Ke("uploaders"),qo=Ke("postProcessors"),Zf=Ke("checkRestrictions"),p1=Ke("checkMinNumberOfFiles"),kd=Ke("checkRequiredMetaFieldsOnFile"),h1=Ke("checkRequiredMetaFields"),Ze=Ke("showOrLogErrorAndThrow"),kc=Ke("assertNewUploadAllowed"),Bc=Ke("checkAndCreateFileStateObject"),Fc=Ke("startIfAutoProceed"),g1=Ke("addListeners"),Mn=Ke("updateOnlineStatus"),Ho=Ke("createUpload"),v1=Ke("getUpload"),au=Ke("removeUpload"),Vo=Ke("runUpload");sj=Symbol.for("uppy test: getPlugins"),lj=Symbol.for("uppy test: createUpload");class cj{constructor(e){Object.defineProperty(this,Vo,{value:xK}),Object.defineProperty(this,au,{value:DK}),Object.defineProperty(this,v1,{value:EK}),Object.defineProperty(this,Ho,{value:wK}),Object.defineProperty(this,g1,{value:bK}),Object.defineProperty(this,Fc,{value:mK}),Object.defineProperty(this,Bc,{value:yK}),Object.defineProperty(this,kc,{value:vK}),Object.defineProperty(this,Ze,{value:gK}),Object.defineProperty(this,h1,{value:hK}),Object.defineProperty(this,kd,{value:pK}),Object.defineProperty(this,p1,{value:dK}),Object.defineProperty(this,Zf,{value:fK}),Object.defineProperty(this,cr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Oc,{writable:!0,value:void 0}),Object.defineProperty(this,$o,{writable:!0,value:nj()}),Object.defineProperty(this,eu,{writable:!0,value:new Set}),Object.defineProperty(this,ru,{writable:!0,value:new Set}),Object.defineProperty(this,qo,{writable:!0,value:new Set}),Object.defineProperty(this,Mn,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=iK;const r={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:n=>n,onBeforeUpload:n=>n,store:new ij,logger:sK,infoTimeout:5e3};if(this.opts={...r,...e,restrictions:{...r.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=lK),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Mu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:oK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ft(this,Oc)[Oc]=this.store.subscribe((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ft(this,g1)[g1]()}emit(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];ft(this,$o)[$o].emit(e,...n)}on(e,r){return ft(this,$o)[$o].on(e,r),this}once(e,r){return ft(this,$o)[$o].once(e,r),this}off(e,r){return ft(this,$o)[$o].off(e,r),this}updateAll(e){this.iteratePlugins(r=>{r.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,r){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],...r}}})}i18nInit(){const e=new rj([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(r=>{r.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(o=>{const i={...r[o]};i.progress={...i.progress,...e},n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ft(this,eu)[eu].add(e)}removePreProcessor(e){return ft(this,eu)[eu].delete(e)}addPostProcessor(e){ft(this,qo)[qo].add(e)}removePostProcessor(e){return ft(this,qo)[qo].delete(e)}addUploader(e){ft(this,ru)[ru].add(e)}removeUploader(e){return ft(this,ru)[ru].delete(e)}setMeta(e){const r={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach(o=>{n[o]={...n[o],meta:{...n[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:r,files:n})}setFileMeta(e,r){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 o={...n[e].meta,...r};n[e]={...n[e],meta:o},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:r,error:n}=this.getState(),o=Object.values(e),i=o.filter(v=>{let{progress:y}=v;return!y.uploadComplete&&y.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(e,r){try{return ft(this,Zf)[Zf](e,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(e){const{files:r}=this.getState();return!(!r[e]||r[e].isGhost)}addFile(e){ft(this,kc)[kc](e);const{files:r}=this.getState();let n=ft(this,Bc)[Bc](r,e);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[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}`),ft(this,Fc)[Fc](),n.id}addFiles(e){ft(this,kc)[kc]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<e.length;i++)try{let a=ft(this,Bc)[Bc](r,e[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
 id: ${n[i].id}
 type: ${n[i].type}`)}),n.length>0&&ft(this,Fc)[Fc](),o.length>0){let i=`Multiple errors occurred while adding files:
`;if(o.forEach(a=>{i+=`
 * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{n[f]&&(u[f]=n[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,r){r===void 0&&(r=null),this.removeFiles([e],r)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const r=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:r}),this.emit("upload-pause",e,r),r}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!0};e[r]=n}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(r=>!e[r].progress.uploadComplete&&e[r].progress.uploadStarted).forEach(r=>{const n={...e[r],isPaused:!1,error:null};e[r]=n}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},r=Object.keys(e).filter(o=>e[o].error);if(r.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=ft(this,Ho)[Ho](r,{forceAllowNewUpload:!0});return ft(this,Vo)[Vo](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),r=Object.keys(e);r.length&&this.removeFiles(r,"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 r=ft(this,Ho)[Ho]([e],{forceAllowNewUpload:!0});return ft(this,Vo)[Vo](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,r){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(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=e.filter(s=>s.progress.bytesTotal!=null),n=e.filter(s=>s.progress.bytesTotal==null);if(r.length===0){const s=100*e.length,l=n.reduce((f,d)=>f+d.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach(s=>{a+=s.progress.bytesUploaded}),n.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||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,r){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const n=new e(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),n.type in ft(this,cr)[cr]?ft(this,cr)[cr][n.type].push(n):ft(this,cr)[cr][n.type]=[n],n.install(),this}getPlugin(e){for(const r of Object.values(ft(this,cr)[cr])){const n=r.find(o=>o.id===e);if(n!=null)return n}}[sj](e){return ft(this,cr)[cr][e]}iteratePlugins(e){Object.values(ft(this,cr)[cr]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const r=ft(this,cr)[cr][e.type],n=r.findIndex(i=>i.id===e.id);n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ft(this,Oc)[Oc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ft(this,Mn)[Mn]),window.removeEventListener("offline",ft(this,Mn)[Mn]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:r,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(e,r){const{logger:n}=this.opts;switch(r){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]?ft(this,Vo)[Vo](e):(ft(this,au)[au](e),Promise.reject(new Error("Nonexistent upload")))}[lj](){return ft(this,Ho)[Ho](...arguments)}addResultData(e,r){if(!ft(this,v1)[v1](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),o={...n[e],result:{...n[e].result,...r}};this.setState({currentUploads:{...n,[e]:o}})}upload(){var e;(e=ft(this,cr)[cr].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{ft(this,p1)[p1](r),ft(this,h1)[h1](r)}).catch(o=>{ft(this,Ze)[Ze](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(r).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ft(this,Ho)[Ho](a);return ft(this,Vo)[Vo](u)}).catch(o=>{ft(this,Ze)[Ze](o,{showInformer:!1})}))}}function fK(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new fo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&tK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new fo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new fo(this.i18n("exceedsSize",{size:c1(o),file:t.name}))}if(r&&t.size!=null&&t.size>r)throw new fo(this.i18n("exceedsSize",{size:c1(r),file:t.name}));if(n&&t.size!=null&&t.size<n)throw new fo(this.i18n("inferiorSize",{size:c1(n)}))}function dK(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new fo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function pK(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<e.length;i++)if(!r.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new fo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);n.push(a),o.push(e[i]),ft(this,Ze)[Ze](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),n}function hK(t){const e=Object.keys(t).flatMap(r=>{const n=this.getFile(r);return ft(this,kd)[kd](n)});if(e.length)throw new cK(e,`${this.i18n("missingRequiredMetaField")}`)}function gK(t,e){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",n,t)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function vK(t){const{allowNewUpload:e}=this.getState();e===!1&&ft(this,Ze)[Ze](new fo(this.i18n("noMoreFilesAllowed")),{file:t})}function yK(t,e){const r=function(f){var d;if(f.type)return f.type;const p=f.name?(d=bA(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in wA?wA[p]:"application/octet-stream"}(e),n=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(r,e),o=bA(n).extension,i=!!e.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${EA(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${EA(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...e,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new fo(this.i18n("noDuplicates",{fileName:n}));ft(this,Ze)[Ze](f,{file:e})}const u=e.meta||{};u.name=n,u.type=r;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?ft(this,Ze)[Ze](new fo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(d=>t[d]);ft(this,Zf)[Zf](l,f)}catch(f){ft(this,Ze)[Ze](f,{file:l})}return l}function mK(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function bK(){const t=(e,r,n)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",t),this.on("upload-error",(e,r,n)=>{if(t(r,e,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),ft(this,Ze)[Ze](o,{throwErr:!1})}else ft(this,Ze)[Ze](r,{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,r)=>{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:ft(this,qo)[qo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:r}}):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 r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(e,r)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:r}}):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 r={...this.getState().files};r[e.id]={...r[e.id],progress:{...r[e.id].progress}},delete r[e.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&ft(this,kd)[kd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ft(this,Mn)[Mn]),window.addEventListener("offline",ft(this,Mn)[Mn]),setTimeout(ft(this,Mn)[Mn],3e3))}function wK(t,e){e===void 0&&(e={});const{forceAllowNewUpload:r=!1}=e,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=uK();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:t,step:0,result:{}}}}),i}function EK(t){const{currentUploads:e}=this.getState();return e[t]}function DK(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function xK(t){let{currentUploads:e}=this.getState(),r=e[t];const n=r.step||0,o=[...ft(this,eu)[eu],...ft(this,ru)[ru],...ft(this,qo)[qo]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s={...r,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,r=e[t]}}catch(a){throw this.emit("error",a),ft(this,au)[au](t),a}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=r.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,r=e[t]}let i;return r&&(i=r.result,this.emit("complete",i),ft(this,au)[au](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}cj.VERSION="2.1.3";var fj=cj,CK=Zu(function(t,e){var r,n,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(k,S){for(var P in S)k[P]=S[P];return k}function v(k){var S=k.parentNode;S&&S.removeChild(k)}function y(k,S,P){var $,Y,V,it={};for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:it[V]=S[V];if(arguments.length>2&&(it.children=arguments.length>3?r.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)it[V]===void 0&&(it[V]=k.defaultProps[V]);return g(k,it,$,Y,null)}function g(k,S,P,$,Y){var V={type:k,props:S,key:P,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y??++o};return Y==null&&n.vnode!=null&&n.vnode(V),V}function m(k){return k.children}function h(k,S){this.props=k,this.context=S}function b(k,S){if(S==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var P;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null)return P.__e;return typeof k.type=="function"?b(k):null}function w(k){var S,P;if((k=k.__)!=null&&k.__c!=null){for(k.__e=k.__c.base=null,S=0;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null){k.__e=k.__c.base=P.__e;break}return w(k)}}function D(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!C.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(C)}function C(){for(var k;C.__r=a.length;)k=a.sort(function(S,P){return S.__v.__b-P.__v.__b}),a=[],k.some(function(S){var P,$,Y,V,it,gt;S.__d&&(it=(V=(P=S).__v).__e,(gt=P.__P)&&($=[],(Y=p({},V)).__v=V.__v+1,U(gt,V,Y,P.__n,gt.ownerSVGElement!==void 0,V.__h!=null?[it]:null,$,it??b(V),V.__h),W($,V),V.__e!=it&&w(V)))})}function x(k,S,P,$,Y,V,it,gt,vt,Dt){var G,It,At,dt,Ot,Oe,$t,Qt=$&&$.__k||f,ge=Qt.length;for(P.__k=[],G=0;G<S.length;G++)if((dt=P.__k[G]=(dt=S[G])==null||typeof dt=="boolean"?null:typeof dt=="string"||typeof dt=="number"||typeof dt=="bigint"?g(null,dt,null,null,dt):Array.isArray(dt)?g(m,{children:dt},null,null,null):dt.__b>0?g(dt.type,dt.props,dt.key,null,dt.__v):dt)!=null){if(dt.__=P,dt.__b=P.__b+1,(At=Qt[G])===null||At&&dt.key==At.key&&dt.type===At.type)Qt[G]=void 0;else for(It=0;It<ge;It++){if((At=Qt[It])&&dt.key==At.key&&dt.type===At.type){Qt[It]=void 0;break}At=null}U(k,dt,At=At||c,Y,V,it,gt,vt,Dt),Ot=dt.__e,(It=dt.ref)&&At.ref!=It&&($t||($t=[]),At.ref&&$t.push(At.ref,null,dt),$t.push(It,dt.__c||Ot,dt)),Ot!=null?(Oe==null&&(Oe=Ot),typeof dt.type=="function"&&dt.__k===At.__k?dt.__d=vt=O(dt,vt,k):vt=T(k,dt,At,Qt,Ot,vt),typeof P.type=="function"&&(P.__d=vt)):vt&&At.__e==vt&&vt.parentNode!=k&&(vt=b(At))}for(P.__e=Oe,G=ge;G--;)Qt[G]!=null&&(typeof P.type=="function"&&Qt[G].__e!=null&&Qt[G].__e==P.__d&&(P.__d=b($,G+1)),st(Qt[G],Qt[G]));if($t)for(G=0;G<$t.length;G++)et($t[G],$t[++G],$t[++G])}function O(k,S,P){for(var $,Y=k.__k,V=0;Y&&V<Y.length;V++)($=Y[V])&&($.__=k,S=typeof $.type=="function"?O($,S,P):T(P,$,$,Y,$.__e,S));return S}function T(k,S,P,$,Y,V){var it,gt,vt;if(S.__d!==void 0)it=S.__d,S.__d=void 0;else if(P==null||Y!=V||Y.parentNode==null)t:if(V==null||V.parentNode!==k)k.appendChild(Y),it=null;else{for(gt=V,vt=0;(gt=gt.nextSibling)&&vt<$.length;vt+=2)if(gt==Y)break t;k.insertBefore(Y,V),it=V}return it!==void 0?it:Y.nextSibling}function R(k,S,P){S[0]==="-"?k.setProperty(S,P):k[S]=P==null?"":typeof P!="number"||d.test(S)?P:P+"px"}function H(k,S,P,$,Y){var V;t:if(S==="style")if(typeof P=="string")k.style.cssText=P;else{if(typeof $=="string"&&(k.style.cssText=$=""),$)for(S in $)P&&S in P||R(k.style,S,"");if(P)for(S in P)$&&P[S]===$[S]||R(k.style,S,P[S])}else if(S[0]==="o"&&S[1]==="n")V=S!==(S=S.replace(/Capture$/,"")),S=S.toLowerCase()in k?S.toLowerCase().slice(2):S.slice(2),k.l||(k.l={}),k.l[S+V]=P,P?$||k.addEventListener(S,V?K:M,V):k.removeEventListener(S,V?K:M,V);else if(S!=="dangerouslySetInnerHTML"){if(Y)S=S.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(S!=="href"&&S!=="list"&&S!=="form"&&S!=="tabIndex"&&S!=="download"&&S in k)try{k[S]=P??"";break t}catch{}typeof P=="function"||(P!=null&&(P!==!1||S[0]==="a"&&S[1]==="r")?k.setAttribute(S,P):k.removeAttribute(S))}}function M(k){this.l[k.type+!1](n.event?n.event(k):k)}function K(k){this.l[k.type+!0](n.event?n.event(k):k)}function U(k,S,P,$,Y,V,it,gt,vt){var Dt,G,It,At,dt,Ot,Oe,$t,Qt,ge,hr,Mt=S.type;if(S.constructor!==void 0)return null;P.__h!=null&&(vt=P.__h,gt=S.__e=P.__e,S.__h=null,V=[gt]),(Dt=n.__b)&&Dt(S);try{t:if(typeof Mt=="function"){if($t=S.props,Qt=(Dt=Mt.contextType)&&$[Dt.__c],ge=Dt?Qt?Qt.props.value:Dt.__:$,P.__c?Oe=(G=S.__c=P.__c).__=G.__E:("prototype"in Mt&&Mt.prototype.render?S.__c=G=new Mt($t,ge):(S.__c=G=new h($t,ge),G.constructor=Mt,G.render=ut),Qt&&Qt.sub(G),G.props=$t,G.state||(G.state={}),G.context=ge,G.__n=$,It=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),Mt.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=p({},G.__s)),p(G.__s,Mt.getDerivedStateFromProps($t,G.__s))),At=G.props,dt=G.state,It)Mt.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(Mt.getDerivedStateFromProps==null&&$t!==At&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps($t,ge),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate($t,G.__s,ge)===!1||S.__v===P.__v){G.props=$t,G.state=G.__s,S.__v!==P.__v&&(G.__d=!1),G.__v=S,S.__e=P.__e,S.__k=P.__k,S.__k.forEach(function(Nr){Nr&&(Nr.__=S)}),G.__h.length&&it.push(G);break t}G.componentWillUpdate!=null&&G.componentWillUpdate($t,G.__s,ge),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(At,dt,Ot)})}G.context=ge,G.props=$t,G.state=G.__s,(Dt=n.__r)&&Dt(S),G.__d=!1,G.__v=S,G.__P=k,Dt=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&($=p(p({},$),G.getChildContext())),It||G.getSnapshotBeforeUpdate==null||(Ot=G.getSnapshotBeforeUpdate(At,dt)),hr=Dt!=null&&Dt.type===m&&Dt.key==null?Dt.props.children:Dt,x(k,Array.isArray(hr)?hr:[hr],S,P,$,Y,V,it,gt,vt),G.base=S.__e,S.__h=null,G.__h.length&&it.push(G),Oe&&(G.__E=G.__=null),G.__e=!1}else V==null&&S.__v===P.__v?(S.__k=P.__k,S.__e=P.__e):S.__e=q(P.__e,S,P,$,Y,V,it,vt);(Dt=n.diffed)&&Dt(S)}catch(Nr){S.__v=null,(vt||V!=null)&&(S.__e=gt,S.__h=!!vt,V[V.indexOf(gt)]=null),n.__e(Nr,S,P)}}function W(k,S){n.__c&&n.__c(S,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function($){$.call(P)})}catch($){n.__e($,P.__v)}})}function q(k,S,P,$,Y,V,it,gt){var vt,Dt,G,It=P.props,At=S.props,dt=S.type,Ot=0;if(dt==="svg"&&(Y=!0),V!=null){for(;Ot<V.length;Ot++)if((vt=V[Ot])&&"setAttribute"in vt==!!dt&&(dt?vt.localName===dt:vt.nodeType===3)){k=vt,V[Ot]=null;break}}if(k==null){if(dt===null)return document.createTextNode(At);k=Y?document.createElementNS("http://www.w3.org/2000/svg",dt):document.createElement(dt,At.is&&At),V=null,gt=!1}if(dt===null)It===At||gt&&k.data===At||(k.data=At);else{if(V=V&&r.call(k.childNodes),Dt=(It=P.props||c).dangerouslySetInnerHTML,G=At.dangerouslySetInnerHTML,!gt){if(V!=null)for(It={},Ot=0;Ot<k.attributes.length;Ot++)It[k.attributes[Ot].name]=k.attributes[Ot].value;(G||Dt)&&(G&&(Dt&&G.__html==Dt.__html||G.__html===k.innerHTML)||(k.innerHTML=G&&G.__html||""))}if(function(Oe,$t,Qt,ge,hr){var Mt;for(Mt in Qt)Mt==="children"||Mt==="key"||Mt in $t||H(Oe,Mt,null,Qt[Mt],ge);for(Mt in $t)hr&&typeof $t[Mt]!="function"||Mt==="children"||Mt==="key"||Mt==="value"||Mt==="checked"||Qt[Mt]===$t[Mt]||H(Oe,Mt,$t[Mt],Qt[Mt],ge)}(k,At,It,Y,gt),G)S.__k=[];else if(Ot=S.props.children,x(k,Array.isArray(Ot)?Ot:[Ot],S,P,$,Y&&dt!=="foreignObject",V,it,V?V[0]:P.__k&&b(P,0),gt),V!=null)for(Ot=V.length;Ot--;)V[Ot]!=null&&v(V[Ot]);gt||("value"in At&&(Ot=At.value)!==void 0&&(Ot!==It.value||Ot!==k.value||dt==="progress"&&!Ot)&&H(k,"value",Ot,It.value,!1),"checked"in At&&(Ot=At.checked)!==void 0&&Ot!==k.checked&&H(k,"checked",Ot,It.checked,!1))}return k}function et(k,S,P){try{typeof k=="function"?k(S):k.current=S}catch($){n.__e($,P)}}function st(k,S,P){var $,Y;if(n.unmount&&n.unmount(k),($=k.ref)&&($.current&&$.current!==k.__e||et($,null,S)),($=k.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){n.__e(V,S)}$.base=$.__P=null}if($=k.__k)for(Y=0;Y<$.length;Y++)$[Y]&&st($[Y],S,typeof k.type!="function");P||k.__e==null||v(k.__e),k.__e=k.__d=void 0}function ut(k,S,P){return this.constructor(k,P)}function at(k,S,P){var $,Y,V;n.__&&n.__(k,S),Y=($=typeof P=="function")?null:P&&P.__k||S.__k,V=[],U(S,k=(!$&&P||S).__k=y(m,null,[k]),Y||c,c,S.ownerSVGElement!==void 0,!$&&P?[P]:Y?null:S.firstChild?r.call(S.childNodes):null,V,!$&&P?P:Y?Y.__e:S.firstChild,$),W(V,k)}r=f.slice,n={__e:function(k,S){for(var P,$,Y;S=S.__;)if((P=S.__c)&&!P.__)try{if(($=P.constructor)&&$.getDerivedStateFromError!=null&&(P.setState($.getDerivedStateFromError(k)),Y=P.__d),P.componentDidCatch!=null&&(P.componentDidCatch(k),Y=P.__d),Y)return P.__E=P}catch(V){k=V}throw k}},o=0,i=function(k){return k!=null&&k.constructor===void 0},h.prototype.setState=function(k,S){var P;P=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof k=="function"&&(k=k(p({},P),this.props)),k&&p(P,k),k!=null&&this.__v&&(S&&this.__h.push(S),D(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),D(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,l=0,e.Component=h,e.Fragment=m,e.cloneElement=function(k,S,P){var $,Y,V,it=p({},k.props);for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:it[V]=S[V];return arguments.length>2&&(it.children=arguments.length>3?r.call(arguments,2):P),g(k.type,it,$||k.key,Y||k.ref,null)},e.createContext=function(k,S){var P={__c:S="__cC"+l++,__:k,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,V;return this.getChildContext||(Y=[],(V={})[S]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(it){this.props.value!==it.value&&Y.some(D)},this.sub=function(it){Y.push(it);var gt=it.componentWillUnmount;it.componentWillUnmount=function(){Y.splice(Y.indexOf(it),1),gt&&gt.call(it)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=y,e.createRef=function(){return{current:null}},e.h=y,e.hydrate=function k(S,P){at(S,P,k)},e.isValidElement=i,e.options=n,e.render=at,e.toChildArray=function k(S,P){return P=P||[],S==null||typeof S=="boolean"||(Array.isArray(S)?S.some(function($){k($,P)}):P.push(S)),P}}),SK=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((r=t)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?t:null;var r},p5=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:{...e,[this.id]:{...e[this.id],...t}}})}setOptions(t){this.opts={...this.opts,...t},this.setPluginState(),this.i18nInit()}i18nInit(){const t=new rj([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),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 DA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var AK=0;function OK(t){return"__private_"+AK+++"_"+t}const{render:xA}=CK;var Tc=OK("updateUI");class h5 extends p5{constructor(){super(...arguments),Object.defineProperty(this,Tc,{writable:!0,value:void 0})}mount(e,r){const n=r.id,o=SK(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return DA(this,Tc)[Tc]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(xA(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),xA(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof h5)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof e=="function"?" 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(a)}update(e){var r,n;this.el!=null&&((r=(n=DA(this,Tc))[Tc])==null||r.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var kK=h5;const{debugLogger:BK}=aj;var zf=fj,FK=fj,TK=kK,_K=p5,PK=BK;zf.Uppy=FK,zf.UIPlugin=TK,zf.BasePlugin=_K,zf.debugLogger=PK;class jK extends Error{constructor(e,r){r===void 0&&(r=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=r}}var g5=jK,y1=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new g5(t)})};class NK extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Ah,bi,ao,wi,CA,IK=NK;function io(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var LK=0;function m1(t){return"__private_"+LK+++"_"+t}async function b1(t){if(t.status===401)throw new IK;const e=t.json();if(t.status<200||t.status>300){let r=`Failed request with status: ${t.status}. ${t.statusText}`;try{const n=await e;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return e}var SA=(bi=m1("getPostResponseFunc"),ao=m1("getUrl"),wi=m1("errorHandler"),CA=Ah=class dj{constructor(e,r){Object.defineProperty(this,wi,{value:MK}),Object.defineProperty(this,ao,{value:RK}),Object.defineProperty(this,bi,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=r,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(),r=this.opts.companionUrl;return(e&&e[r]?e[r]:r).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...dj.defaultHeaders,...e})}onReceiveResponse(e){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(io(this,ao)[ao](e),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,r){return this.preflightAndHeaders(e).then(n=>y1(io(this,ao)[ao](e),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(io(this,bi)[bi](r)).then(b1).catch(io(this,wi)[wi]("get",e))}post(e,r,n){const o="post";return this.preflightAndHeaders(e).then(i=>y1(io(this,ao)[ao](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(io(this,bi)[bi](n)).then(b1).catch(io(this,wi)[wi](o,e))}delete(e,r,n){const o="delete";return this.preflightAndHeaders(e).then(i=>y1(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(io(this,bi)[bi](n)).then(b1).catch(io(this,wi)[wi](o,e))}},Ah.VERSION="2.0.4",Ah.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Ah.VERSION}`},CA);function RK(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function MK(t,e){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${t} ${io(this,ao)[ao](e)}`);o.cause=r,r=o}return Promise.reject(r)}}var zK={setItem:(t,e)=>new Promise(r=>{localStorage.setItem(t,e),r()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},oo,Ei,pn,br,Oh;let AA,OA;function $e(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var $K=0;function _c(t){return"__private_"+$K+++"_"+t}var HK=(oo=_c("queued"),Ei=_c("emitter"),pn=_c("isOpen"),br=_c("socket"),Oh=_c("handleMessage"),AA=Symbol.for("uppy test: getSocket"),OA=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,oo,{writable:!0,value:[]}),Object.defineProperty(this,Ei,{writable:!0,value:nj()}),Object.defineProperty(this,pn,{writable:!0,value:!1}),Object.defineProperty(this,br,{writable:!0,value:void 0}),Object.defineProperty(this,Oh,{writable:!0,value:e=>{try{const r=JSON.parse(e.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return $e(this,pn)[pn]}[AA](){return $e(this,br)[br]}[OA](){return $e(this,oo)[oo]}open(){$e(this,br)[br]=new WebSocket(this.opts.target),$e(this,br)[br].onopen=()=>{for($e(this,pn)[pn]=!0;$e(this,oo)[oo].length>0&&$e(this,pn)[pn];){const t=$e(this,oo)[oo].shift();this.send(t.action,t.payload)}},$e(this,br)[br].onclose=()=>{$e(this,pn)[pn]=!1},$e(this,br)[br].onmessage=$e(this,Oh)[Oh]}close(){var t;(t=$e(this,br)[br])==null||t.close()}send(t,e){$e(this,pn)[pn]?$e(this,br)[br].send(JSON.stringify({action:t,payload:e})):$e(this,oo)[oo].push({action:t,payload:e})}on(t,e){$e(this,Ei)[Ei].on(t,e)}emit(t,e){$e(this,Ei)[Ei].emit(t,e)}once(t,e){$e(this,Ei)[Ei].once(t,e)}}),VK={RequestClient:SA,Provider:class extends SA{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.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(t=>{let[e,r]=t;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...n}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),r=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:r}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,r){if(t.type="acquirer",t.files=[],r&&(t.opts={...r,...e}),e.serverUrl||e.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(e.companionAllowedHosts){const n=e.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||zK}},Socket:HK},Di,ws,UK=Mu(function(t,e,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=e;n&&(t.uppy.log(`Upload progress: ${n}`),t.uppy.emit("upload-progress",r,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Pc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var WK=0;function kA(t){return"__private_"+WK+++"_"+t}var BA=(Di=kA("emitter"),ws=kA("events"),class{constructor(t){Object.defineProperty(this,Di,{writable:!0,value:void 0}),Object.defineProperty(this,ws,{writable:!0,value:[]}),Pc(this,Di)[Di]=t}on(t,e){return Pc(this,ws)[ws].push([t,e]),Pc(this,Di)[Di].on(t,e)}remove(){for(const[t,e]of Pc(this,ws)[ws].splice(0))Pc(this,Di)[Di].off(t,e)}});function hn(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var GK=0;function Cy(t){return"__private_"+GK+++"_"+t}var Uo=Cy("aliveTimer"),Ra=Cy("isDone"),jc=Cy("onTimedOut"),Ma=Cy("timeout"),FA=class{constructor(t,e){Object.defineProperty(this,Uo,{writable:!0,value:void 0}),Object.defineProperty(this,Ra,{writable:!0,value:!1}),Object.defineProperty(this,jc,{writable:!0,value:void 0}),Object.defineProperty(this,Ma,{writable:!0,value:void 0}),hn(this,Ma)[Ma]=t,hn(this,jc)[jc]=e}progress(){hn(this,Ra)[Ra]||hn(this,Ma)[Ma]>0&&(clearTimeout(hn(this,Uo)[Uo]),hn(this,Uo)[Uo]=setTimeout(hn(this,jc)[jc],hn(this,Ma)[Ma]))}done(){hn(this,Ra)[Ra]||(clearTimeout(hn(this,Uo)[Uo]),hn(this,Uo)[Uo]=null,hn(this,Ra)[Ra]=!0)}};function Ue(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var qK=0;function rs(t){return"__private_"+qK+++"_"+t}function KK(){return new Error("Cancelled")}var Zr=rs("activeRequests"),Tr=rs("queuedHandlers"),Jf=rs("call"),$f=rs("queueNext"),R4=rs("next"),w1=rs("queue"),M4=rs("dequeue");function YK(t){Ue(this,Zr)[Zr]+=1;let e,r=!1;try{e=t()}catch(n){throw Ue(this,Zr)[Zr]-=1,n}return{abort:()=>{r||(r=!0,Ue(this,Zr)[Zr]-=1,e(),Ue(this,$f)[$f]())},done:()=>{r||(r=!0,Ue(this,Zr)[Zr]-=1,Ue(this,$f)[$f]())}}}function XK(){queueMicrotask(()=>Ue(this,R4)[R4]())}function ZK(){if(Ue(this,Zr)[Zr]>=this.limit||Ue(this,Tr)[Tr].length===0)return;const t=Ue(this,Tr)[Tr].shift(),e=Ue(this,Jf)[Jf](t.fn);t.abort=e.abort,t.done=e.done}function JK(t,e){e===void 0&&(e={});const r={fn:t,priority:e.priority||0,abort:()=>{Ue(this,M4)[M4](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=Ue(this,Tr)[Tr].findIndex(o=>r.priority>o.priority);return n===-1?Ue(this,Tr)[Tr].push(r):Ue(this,Tr)[Tr].splice(n,0,r),r}function QK(t){const e=Ue(this,Tr)[Tr].indexOf(t);e!==-1&&Ue(this,Tr)[Tr].splice(e,1)}var tY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,M4,{value:QK}),Object.defineProperty(this,w1,{value:JK}),Object.defineProperty(this,R4,{value:ZK}),Object.defineProperty(this,$f,{value:XK}),Object.defineProperty(this,Jf,{value:YK}),Object.defineProperty(this,Zr,{writable:!0,value:0}),Object.defineProperty(this,Tr,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ue(this,Zr)[Zr]<this.limit?Ue(this,Jf)[Jf](t):Ue(this,w1)[w1](t,e)}wrapPromiseFunction(t,e){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=r.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),s(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=KK()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},TA,_A,pj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},eY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:rY}=uj,{Provider:nY,RequestClient:oY,Socket:iY}=VK,{RateLimitedQueue:aY,internalRateLimitedQueue:E1}=tY;function PA(t,e){let r=e;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),pj(t)?(r=new g5(r,t),r):(r.request=t,r)}function jA(t){return t.data.slice(0,t.data.size,t.meta.type)}var uY=(_A=TA=class extends p5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=eY;const r={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){t.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return pj(o)&&(i=new g5(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),E1 in this.opts?this.requests=this.opts[E1]:this.requests=new aY(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(t){const e=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(t):Object.assign(n.headers,this.opts.headers),e&&Object.assign(n.headers,e.headers),t.xhrUpload&&Object.assign(n.headers,t.xhrUpload.headers),n}addMetadata(t,e,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(e)).forEach(n=>{t.append(n,e[n])})}createFormDataUpload(t,e){const r=new FormData;this.addMetadata(r,t.meta,e);const n=jA(t);return t.name?r.append(e.fieldName,n,t.meta.name):r.append(e.fieldName,n),r}createBundledUpload(t,e){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,e),t.forEach(o=>{const i=this.getOptions(o),a=jA(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)}),r}upload(t,e,r){const n=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${r}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=n.formData?this.createFormDataUpload(t,n):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new BA(this.uppy);const s=new FA(n.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=rY();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n.validateStatus(f.target.status,u.responseText,u)){const y=n.getResponseData(u.responseText,u),g=y[n.responseUrlFieldName],m={status:f.target.status,body:y,uploadURL:g};return this.uppy.emit("upload-success",t,m),g&&this.uppy.log(`Download ${t.name} from ${g}`),o(t)}const d=n.getResponseData(u.responseText,u),p=PA(u,n.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,v),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=PA(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((r,n)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?nY:oY)(this.uppy,t.remote.providerOptions).post(t.remote.url,{...t.remote.body,endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers}).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new iY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new BA(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>UK(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r()}),s.on("error",c=>{const f=c.response,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n(d)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),n(i)})})}uploadBundle(t){return new Promise((e,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new FA(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach(v=>{this.uppy.emit("upload-success",v,p)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),n,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((r,n)=>{const o=parseInt(n,10)+1,i=t.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)});return function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map(u=>u.then(i,a))).then(()=>({successful:n,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",r=>{t===r.id&&e(r.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",r=>{t===r&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[E1]||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 e=t.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(e.some(r=>r.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:{...t,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},TA.VERSION="2.0.6",_A),NA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fp(t){var e={exports:{}};return t(e,e.exports),e.exports}var xi,Ng,kh=function(t){return t&&t.Math==Math&&t},X=kh(typeof globalThis=="object"&&globalThis)||kh(typeof window=="object"&&window)||kh(typeof self=="object"&&self)||kh(typeof NA=="object"&&NA)||function(){return this}()||Function("return this")(),sY=Object.defineProperty,v5=function(t,e){try{sY(X,t,{value:e,configurable:!0,writable:!0})}catch{X[t]=e}return e},Ki=X["__core-js_shared__"]||v5("__core-js_shared__",{}),y5=Fp(function(t){(t.exports=function(e,r){return Ki[e]||(Ki[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),hj=Function.prototype,z4=hj.bind,$4=hj.call,lY=z4&&z4.bind($4),pt=z4?function(t){return t&&lY($4,t)}:function(t){return t&&function(){return $4.apply(t,arguments)}},cY=X.TypeError,On=function(t){if(t==null)throw cY("Can't call method on "+t);return t},fY=X.Object,Sa=function(t){return fY(On(t))},dY=pt({}.hasOwnProperty),Ie=Object.hasOwn||function(t,e){return dY(Sa(t),e)},pY=0,hY=Math.random(),gY=pt(1 .toString),m5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+gY(++pY+hY,36)},ne=function(t){return typeof t=="function"},vY=function(t){return ne(t)?t:void 0},ns=function(t,e){return arguments.length<2?vY(X[t]):X[t]&&X[t][e]},al=ns("navigator","userAgent")||"",IA=X.process,LA=X.Deno,RA=IA&&IA.versions||LA&&LA.version,MA=RA&&RA.v8;MA&&(Ng=(xi=MA.split("."))[0]>0&&xi[0]<4?1:+(xi[0]+xi[1])),!Ng&&al&&(!(xi=al.match(/Edge\/(\d+)/))||xi[1]>=74)&&(xi=al.match(/Chrome\/(\d+)/))&&(Ng=+xi[1]);var Bd=Ng,Zt=function(t){try{return!!t()}catch{return!0}},H4=!!Object.getOwnPropertySymbols&&!Zt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Bd&&Bd<41}),b5=H4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Nc=y5("wks"),yu=X.Symbol,zA=yu&&yu.for,yY=b5?yu:yu&&yu.withoutSetter||m5,Ce=function(t){if(!Ie(Nc,t)||!H4&&typeof Nc[t]!="string"){var e="Symbol."+t;H4&&Ie(yu,t)?Nc[t]=yu[t]:Nc[t]=b5&&zA?zA(e):yY(e)}return Nc[t]},gj={};gj[Ce("toStringTag")]="z";var w5=String(gj)==="[object z]",nr=!Zt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fe=function(t){return typeof t=="object"?t!==null:ne(t)},V4=X.document,mY=fe(V4)&&fe(V4.createElement),Fd=function(t){return mY?V4.createElement(t):{}},vj=!nr&&!Zt(function(){return Object.defineProperty(Fd("div"),"a",{get:function(){return 7}}).a!=7}),bY=X.String,wY=X.TypeError,Le=function(t){if(fe(t))return t;throw wY(bY(t)+" is not an object")},Ic=Function.prototype.call,qt=Ic.bind?Ic.bind(Ic):function(){return Ic.apply(Ic,arguments)},zu=pt({}.isPrototypeOf),EY=X.Object,D1=b5?function(t){return typeof t=="symbol"}:function(t){var e=ns("Symbol");return ne(e)&&zu(e.prototype,EY(t))},DY=X.String,Sy=function(t){try{return DY(t)}catch{return"Object"}},xY=X.TypeError,ha=function(t){if(ne(t))return t;throw xY(Sy(t)+" is not a function")},$u=function(t,e){var r=t[e];return r==null?void 0:ha(r)},CY=X.TypeError,SY=X.TypeError,AY=Ce("toPrimitive"),E5=function(t){var e=function(r,n){if(!fe(r)||D1(r))return r;var o,i=$u(r,AY);if(i){if(o=qt(i,r,n),!fe(o)||D1(o))return o;throw SY("Can't convert object to primitive value")}return function(a,u){var s,l;if(ne(s=a.toString)&&!fe(l=qt(s,a))||ne(s=a.valueOf)&&!fe(l=qt(s,a)))return l;throw CY("Can't convert object to primitive value")}(r)}(t,"string");return D1(e)?e:e+""},OY=X.TypeError,$A=Object.defineProperty,Jn={f:nr?$A:function(t,e,r){if(Le(t),e=E5(e),Le(r),vj)try{return $A(t,e,r)}catch{}if("get"in r||"set"in r)throw OY("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Ay=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Wn=nr?function(t,e,r){return Jn.f(t,e,Ay(1,r))}:function(t,e,r){return t[e]=r,t},kY=pt(Function.toString);ne(Ki.inspectSource)||(Ki.inspectSource=function(t){return kY(t)});var $v,Qf,Hv,Oy=Ki.inspectSource,HA=X.WeakMap,yj=ne(HA)&&/native code/.test(Oy(HA)),VA=y5("keys"),D5=function(t){return VA[t]||(VA[t]=m5(t))},ky={},U4=X.TypeError,BY=X.WeakMap;if(yj||Ki.state){var za=Ki.state||(Ki.state=new BY),FY=pt(za.get),UA=pt(za.has),TY=pt(za.set);$v=function(t,e){if(UA(za,t))throw new U4("Object already initialized");return e.facade=t,TY(za,t,e),e},Qf=function(t){return FY(za,t)||{}},Hv=function(t){return UA(za,t)}}else{var Es=D5("state");ky[Es]=!0,$v=function(t,e){if(Ie(t,Es))throw new U4("Object already initialized");return e.facade=t,Wn(t,Es,e),e},Qf=function(t){return Ie(t,Es)?t[Es]:{}},Hv=function(t){return Ie(t,Es)}}var xr={set:$v,get:Qf,has:Hv,enforce:function(t){return Hv(t)?Qf(t):$v(t,{})},getterFor:function(t){return function(e){var r;if(!fe(e)||(r=Qf(e)).type!==t)throw U4("Incompatible receiver, "+t+" required");return r}}},mj=Function.prototype,_Y=nr&&Object.getOwnPropertyDescriptor,x1=Ie(mj,"name"),Ql={EXISTS:x1,PROPER:x1&&(function(){}).name==="something",CONFIGURABLE:x1&&(!nr||nr&&_Y(mj,"name").configurable)},Vr=Fp(function(t){var e=Ql.CONFIGURABLE,r=xr.get,n=xr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ne(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ie(u,"name")||e&&u.name!==p)&&Wn(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==X?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Wn(i,a,u)):f?i[a]=u:v5(a,u)})(Function.prototype,"toString",function(){return ne(this)&&r(this).source||Oy(this)})}),PY=pt({}.toString),jY=pt("".slice),Gn=function(t){return jY(PY(t),8,-1)},NY=Ce("toStringTag"),IY=X.Object,LY=Gn(function(){return arguments}())=="Arguments",By=w5?Gn:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=IY(t),NY))=="string"?r:LY?Gn(e):(n=Gn(e))=="Object"&&ne(e.callee)?"Arguments":n},RY=w5?{}.toString:function(){return"[object "+By(this)+"]"};w5||Vr(Object.prototype,"toString",RY,{unsafe:!0});var Vv={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},C1=Fd("span").classList,WA=C1&&C1.constructor&&C1.constructor.prototype,bj=WA===Object.prototype?void 0:WA,GA=pt(pt.bind),Hu=function(t,e){return ha(t),e===void 0?t:GA?GA(t,e):function(){return t.apply(e,arguments)}},S1=X.Object,MY=pt("".split),Fy=Zt(function(){return!S1("z").propertyIsEnumerable(0)})?function(t){return Gn(t)=="String"?MY(t,""):S1(t)}:S1,zY=Math.ceil,$Y=Math.floor,Tp=function(t){var e=+t;return e!=e||e===0?0:(e>0?$Y:zY)(e)},HY=Math.min,tc=function(t){return t>0?HY(Tp(t),9007199254740991):0},os=function(t){return tc(t.length)},Uv=Array.isArray||function(t){return Gn(t)=="Array"},wj=function(){},VY=[],Ej=ns("Reflect","construct"),x5=/^\s*(?:class|function)\b/,UY=pt(x5.exec),WY=!x5.exec(wj),Lc=function(t){if(!ne(t))return!1;try{return Ej(wj,VY,t),!0}catch{return!1}},Ty=!Ej||Zt(function(){var t;return Lc(Lc.call)||!Lc(Object)||!Lc(function(){t=!0})||t})?function(t){if(!ne(t))return!1;switch(By(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return WY||!!UY(x5,Oy(t))}:Lc,GY=Ce("species"),qA=X.Array,Dj=function(t,e){return new(function(r){var n;return Uv(r)&&(n=r.constructor,(Ty(n)&&(n===qA||Uv(n.prototype))||fe(n)&&(n=n[GY])===null)&&(n=void 0)),n===void 0?qA:n}(t))(e===0?0:e)},KA=pt([].push),Rc=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Sa(s),y=Fy(v),g=Hu(l,c),m=os(y),h=0,b=f||Dj,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:KA(w,d)}else switch(t){case 4:return!1;case 7:KA(w,d)}return i?-1:n||o?o:w}},ec={forEach:Rc(0),map:Rc(1),filter:Rc(2),find:Rc(5),findIndex:Rc(6)},xj=function(t,e){var r=[][t];return!!r&&Zt(function(){r.call(null,e||function(){throw 1},1)})},qY=ec.forEach,A1=xj("forEach")?[].forEach:function(t){return qY(this,t,arguments.length>1?arguments[1]:void 0)},Cj=function(t){if(t&&t.forEach!==A1)try{Wn(t,"forEach",A1)}catch{t.forEach=A1}};for(var O1 in Vv)Vv[O1]&&Cj(X[O1]&&X[O1].prototype);Cj(bj);var YA={}.propertyIsEnumerable,XA=Object.getOwnPropertyDescriptor,KY=XA&&!YA.call({1:2},1)?function(t){var e=XA(this,t);return!!e&&e.enumerable}:YA,Sj={f:KY},Aa=function(t){return Fy(On(t))},ZA=Object.getOwnPropertyDescriptor,_p={f:nr?ZA:function(t,e){if(t=Aa(t),e=E5(e),vj)try{return ZA(t,e)}catch{}if(Ie(t,e))return Ay(!qt(Sj.f,t,e),t[e])}},YY=Math.max,XY=Math.min,_l=function(t,e){var r=Tp(t);return r<0?YY(r+e,0):XY(r,e)},JA=function(t){return function(e,r,n){var o,i=Aa(e),a=os(i),u=_l(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Aj={includes:JA(!0),indexOf:JA(!1)},ZY=Aj.indexOf,QA=pt([].push),Oj=function(t,e){var r,n=Aa(t),o=0,i=[];for(r in n)!Ie(ky,r)&&Ie(n,r)&&QA(i,r);for(;e.length>o;)Ie(n,r=e[o++])&&(~ZY(i,r)||QA(i,r));return i},Wv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],JY=Wv.concat("length","prototype"),Td={f:Object.getOwnPropertyNames||function(t){return Oj(t,JY)}},kj={f:Object.getOwnPropertySymbols},QY=pt([].concat),tX=ns("Reflect","ownKeys")||function(t){var e=Td.f(Le(t)),r=kj.f;return r?QY(e,r(t)):e},eX=function(t,e){for(var r=tX(e),n=Jn.f,o=_p.f,i=0;i<r.length;i++){var a=r[i];Ie(t,a)||n(t,a,o(e,a))}},rX=/#|\.prototype\./,Pp=function(t,e){var r=oX[nX(t)];return r==aX||r!=iX&&(ne(e)?Zt(e):!!e)},nX=Pp.normalize=function(t){return String(t).replace(rX,".").toLowerCase()},oX=Pp.data={},iX=Pp.NATIVE="N",aX=Pp.POLYFILL="P",_d=Pp,uX=_p.f,De=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?X:l?X[u]||v5(u,{}):(X[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=uX(r,n))&&a.value:r[n],!_d(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;eX(i,o)}(t.sham||o&&o.sham)&&Wn(i,"sham",!0),Vr(r,n,i,t)}},ul=Object.keys||function(t){return Oj(t,Wv)},sX=Zt(function(){ul(1)});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function t7(t){return Object.prototype.toString.call(t)==="[object Object]"}De({target:"Object",stat:!0,forced:sX},{keys:function(t){return ul(Sa(t))}});var lX={isHistory(t){return t7(e=t)!==!1&&((r=e.constructor)===void 0||t7(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||$i.isOperationList(t.redos[0]))&&(t.undos.length===0||$i.isOperationList(t.undos[0]));var e,r,n}},k1=new WeakMap,B1=new WeakMap,tl={isHistoryEditor:t=>lX.isHistory(t.history)&&E.isEditor(t),isMerging:t=>B1.get(t),isSaving:t=>k1.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var r=tl.isMerging(t);B1.set(t,!1),e(),B1.set(t,r)},withoutSaving(t,e){var r=tl.isSaving(t);k1.set(t,!1),e(),k1.set(t,r)}},cX=X.String,ie=function(t){if(By(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cX(t)},C5=function(){var t=Le(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},fX=Ql.PROPER,W4=RegExp.prototype,Bj=W4.toString,dX=pt(C5),pX=Zt(function(){return Bj.call({source:"a",flags:"b"})!="/a/b"}),hX=fX&&Bj.name!="toString";(pX||hX)&&Vr(RegExp.prototype,"toString",function(){var t=Le(this),e=ie(t.source),r=t.flags;return"/"+e+"/"+ie(r===void 0&&zu(W4,t)&&!("flags"in W4)?dX(t):r)},{unsafe:!0});var Bh,gX=nr?Object.defineProperties:function(t,e){Le(t);for(var r,n=Aa(e),o=ul(e),i=o.length,a=0;i>a;)Jn.f(t,r=o[a++],n[r]);return t},G4=ns("document","documentElement"),Fj=D5("IE_PROTO"),F1=function(){},Tj=function(t){return"<script>"+t+"<\/script>"},e7=function(t){t.write(Tj("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ig=function(){try{Bh=new ActiveXObject("htmlfile")}catch{}var t,e;Ig=typeof document<"u"?document.domain&&Bh?e7(Bh):((e=Fd("iframe")).style.display="none",G4.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Tj("document.F=Object")),t.close(),t.F):e7(Bh);for(var r=Wv.length;r--;)delete Ig.prototype[Wv[r]];return Ig()};ky[Fj]=!0;var _y=Object.create||function(t,e){var r;return t!==null?(F1.prototype=Le(t),r=new F1,F1.prototype=null,r[Fj]=t):r=Ig(),e===void 0?r:gX(r,e)},q4=Ce("unscopables"),K4=Array.prototype;K4[q4]==null&&Jn.f(K4,q4,{configurable:!0,value:_y(null)});var td=function(t){K4[q4][t]=!0},vX=Aj.includes;De({target:"Array",proto:!0},{includes:function(t){return vX(this,t,arguments.length>1?arguments[1]:void 0)}}),td("includes");var yX=Ce("match"),S5=function(t){var e;return fe(t)&&((e=t[yX])!==void 0?!!e:Gn(t)=="RegExp")},mX=X.TypeError,A5=function(t){if(S5(t))throw mX("The method doesn't accept regular expressions");return t},bX=Ce("match"),O5=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[bX]=!1,"/./"[t](e)}catch{}}return!1},wX=pt("".indexOf);De({target:"String",proto:!0,forced:!O5("includes")},{includes:function(t){return!!~wX(ie(On(this)),ie(A5(t)),arguments.length>1?arguments[1]:void 0)}});var EX=/"/g,DX=pt("".replace);De({target:"String",proto:!0,forced:Zt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=ie(On(this)),n="<a",(n+=' name="'+DX(ie(e),EX,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var Y4=function(t,e,r){var n,o;Le(t);try{if(!(n=$u(t,"return"))){if(e==="throw")throw r;return r}n=qt(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return Le(n),r},xX=function(t,e,r,n){try{return n?e(Le(r)[0],r[1]):e(r)}catch(o){Y4(t,"throw",o)}},Pl={},CX=Ce("iterator"),SX=Array.prototype,_j=function(t){return t!==void 0&&(Pl.Array===t||SX[CX]===t)},Pd=function(t,e,r){var n=E5(e);n in t?Jn.f(t,n,Ay(0,r)):t[n]=r},AX=Ce("iterator"),k5=function(t){if(t!=null)return $u(t,AX)||$u(t,"@@iterator")||Pl[By(t)]},OX=X.TypeError,Pj=function(t,e){var r=arguments.length<2?k5(t):e;if(ha(r))return Le(qt(r,t));throw OX(Sy(t)+" is not iterable")},r7=X.Array,jj=Ce("iterator"),Nj=!1;try{var kX=0,n7={next:function(){return{done:!!kX++}},return:function(){Nj=!0}};n7[jj]=function(){return this},Array.from(n7,function(){throw 2})}catch{}var B5=function(t,e){if(!Nj)return!1;var r=!1;try{var n={};n[jj]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},BX=!B5(function(t){Array.from(t)});De({target:"Array",stat:!0,forced:BX},{from:function(t){var e=Sa(t),r=Ty(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Hu(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,d=k5(e),p=0;if(!d||this==r7&&_j(d))for(a=os(e),u=r?new this(a):r7(a);a>p;p++)f=i?o(e[p],p):e[p],Pd(u,p,f);else for(c=(l=Pj(e,d)).next,u=r?new this:[];!(s=qt(c,l)).done;p++)f=i?xX(l,o,[s.value,p],!0):s.value,Pd(u,p,f);return u.length=p,u}});var mu,o7,i7,FX=pt("".charAt),a7=pt("".charCodeAt),TX=pt("".slice),_X=function(t){return function(e,r){var n,o,i=ie(On(e)),a=Tp(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=a7(i,a))<55296||n>56319||a+1===u||(o=a7(i,a+1))<56320||o>57343?t?FX(i,a):n:t?TX(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ij={charAt:_X(!0)},PX=!Zt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),u7=D5("IE_PROTO"),X4=X.Object,jX=X4.prototype,Gv=PX?X4.getPrototypeOf:function(t){var e=Sa(t);if(Ie(e,u7))return e[u7];var r=e.constructor;return ne(r)&&e instanceof r?r.prototype:e instanceof X4?jX:null},Z4=Ce("iterator"),Lj=!1;[].keys&&("next"in(i7=[].keys())?(o7=Gv(Gv(i7)))!==Object.prototype&&(mu=o7):Lj=!0);var NX=mu==null||Zt(function(){var t={};return mu[Z4].call(t)!==t});NX&&(mu={}),ne(mu[Z4])||Vr(mu,Z4,function(){return this});var F5={IteratorPrototype:mu,BUGGY_SAFARI_ITERATORS:Lj},IX=Jn.f,s7=Ce("toStringTag"),qv=function(t,e,r){t&&!Ie(t=r?t:t.prototype,s7)&&IX(t,s7,{configurable:!0,value:e})},LX=F5.IteratorPrototype,RX=function(){return this},MX=X.String,zX=X.TypeError,jl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return Le(n),function(i){if(typeof i=="object"||ne(i))return i;throw zX("Can't set "+MX(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),$X=Ql.PROPER,HX=Ql.CONFIGURABLE,l7=F5.IteratorPrototype,Fh=F5.BUGGY_SAFARI_ITERATORS,Mc=Ce("iterator"),VX=function(){return this},T5=function(t,e,r,n,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=_y(LX,{next:Ay(1,b)}),qv(m,D,!1),Pl[D]=RX})(r,e,n);var u,s,l,c=function(m){if(m===o&&y)return y;if(!Fh&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new r(this,m)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,p=t.prototype,v=p[Mc]||p["@@iterator"]||o&&p[o],y=!Fh&&v||c(o),g=e=="Array"&&p.entries||v;if(g&&(u=Gv(g.call(new t)))!==Object.prototype&&u.next&&(Gv(u)!==l7&&(jl?jl(u,l7):ne(u[Mc])||Vr(u,Mc,VX)),qv(u,f,!0)),$X&&o=="values"&&v&&v.name!=="values"&&(HX?Wn(p,"name","values"):(d=!0,y=function(){return qt(v,this)})),o)if(s={values:c("values"),keys:i?y:c("keys"),entries:c("entries")},a)for(l in s)(Fh||d||!(l in p))&&Vr(p,l,s[l]);else De({target:e,proto:!0,forced:Fh||d},s);return p[Mc]!==y&&Vr(p,Mc,y,{name:o}),Pl[e]=y,s},UX=Ij.charAt,WX=xr.set,GX=xr.getterFor("String Iterator");T5(String,"String",function(t){WX(this,{type:"String Iterator",string:ie(t),index:0})},function(){var t,e=GX(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=UX(r,n),e.index+=t.length,{value:t,done:!1})});var T1,qX=_p.f,c7=pt("".endsWith),KX=pt("".slice),YX=Math.min,Rj=O5("endsWith"),XX=!(Rj||(T1=qX(String.prototype,"endsWith"),!T1||T1.writable));De({target:"String",proto:!0,forced:!XX&&!Rj},{endsWith:function(t){var e=ie(On(this));A5(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,o=r===void 0?n:YX(tc(r),n),i=ie(t);return c7?c7(e,i,o):KX(e,o-i.length,o)===i}});var ZX=pt([].join),JX=Fy!=Object,QX=xj("join",",");De({target:"Array",proto:!0,forced:JX||!QX},{join:function(t){return ZX(Aa(this),t===void 0?",":t)}});var tZ=Ce("species"),Py=function(t){return Bd>=51||!Zt(function(){var e=[];return(e.constructor={})[tZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},eZ=ec.map,rZ=Py("map");De({target:"Array",proto:!0,forced:!rZ},{map:function(t){return eZ(this,t,arguments.length>1?arguments[1]:void 0)}});var _5=X.RegExp,J4=Zt(function(){var t=_5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),nZ=J4||Zt(function(){return!_5("a","y").sticky}),jy={BROKEN_CARET:J4||Zt(function(){var t=_5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:nZ,UNSUPPORTED_Y:J4},oZ=X.RegExp,P5=Zt(function(){var t=oZ(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),iZ=X.RegExp,j5=Zt(function(){var t=iZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),aZ=xr.get,uZ=y5("native-string-replace",String.prototype.replace),Kv=RegExp.prototype.exec,Q4=Kv,sZ=pt("".charAt),lZ=pt("".indexOf),cZ=pt("".replace),_1=pt("".slice),P1=function(){var t=/a/,e=/b*/g;return qt(Kv,t,"a"),qt(Kv,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),f7=jy.BROKEN_CARET,j1=/()??/.exec("")[1]!==void 0;(P1||j1||f7||P5||j5)&&(Q4=function(t){var e,r,n,o,i,a,u,s=this,l=aZ(s),c=ie(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=qt(Q4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=f7&&s.sticky,v=qt(C5,s),y=s.source,g=0,m=c;if(p&&(v=cZ(v,"y",""),lZ(v,"g")===-1&&(v+="g"),m=_1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&sZ(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),j1&&(r=new RegExp("^"+y+"$(?!\\s)",v)),P1&&(n=s.lastIndex),o=qt(Kv,p?r:s,m),p?o?(o.input=_1(o.input,g),o[0]=_1(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:P1&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),j1&&o&&o.length>1&&qt(uZ,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=_y(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var jd=Q4;De({target:"RegExp",proto:!0,forced:/./.exec!==jd},{exec:jd});var N5=Function.prototype,d7=N5.apply,fZ=N5.bind,p7=N5.call,I5=typeof Reflect=="object"&&Reflect.apply||(fZ?p7.bind(d7):function(){return p7.apply(d7,arguments)}),dZ=Ce("species"),N1=RegExp.prototype,L5=function(t,e,r,n){var o=Ce(t),i=!Zt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Zt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[dZ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=pt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=pt(l),y=c.exec;return y===jd||y===N1.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Vr(String.prototype,t,s[0]),Vr(N1,o,s[1])}n&&Wn(N1[o],"sham",!0)},pZ=Ij.charAt,R5=function(t,e,r){return e+(r?pZ(t,e).length:1)},hZ=Math.floor,I1=pt("".charAt),gZ=pt("".replace),L1=pt("".slice),vZ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,yZ=/\$([$&'`]|\d{1,2})/g,mZ=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=yZ;return o!==void 0&&(o=Sa(o),s=vZ),gZ(i,s,function(l,c){var f;switch(I1(c,0)){case"$":return"$";case"&":return t;case"`":return L1(e,0,r);case"'":return L1(e,a);case"<":f=o[L1(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=hZ(d/10);return p===0?l:p<=u?n[p-1]===void 0?I1(c,1):n[p-1]+I1(c,1):l}f=n[d-1]}return f===void 0?"":f})},bZ=X.TypeError,Nd=function(t,e){var r=t.exec;if(ne(r)){var n=qt(r,t,e);return n!==null&&Le(n),n}if(Gn(t)==="RegExp")return qt(jd,t,e);throw bZ("RegExp#exec called on incompatible receiver")},tE=Ce("replace"),wZ=Math.max,EZ=Math.min,DZ=pt([].concat),R1=pt([].push),h7=pt("".indexOf),g7=pt("".slice),xZ="a".replace(/./,"$0")==="$0",v7=!!/./[tE]&&/./[tE]("a","$0")==="";L5("replace",function(t,e,r){var n=v7?"$":"$0";return[function(o,i){var a=On(this),u=o==null?void 0:$u(o,tE);return u?qt(u,o,a,i):qt(e,ie(a),o,i)},function(o,i){var a=Le(this),u=ie(o);if(typeof i=="string"&&h7(i,n)===-1&&h7(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=ne(i);l||(i=ie(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Nd(a,u);if(p===null||(R1(d,p),!c))break;ie(p[0])===""&&(a.lastIndex=R5(u,tc(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=ie((p=d[m])[0]),b=wZ(EZ(Tp(p.index),u.length),0),w=[],D=1;D<p.length;D++)R1(w,(v=p[D])===void 0?v:String(v));var C=p.groups;if(l){var x=DZ([h],w,b,u);C!==void 0&&R1(x,C);var O=ie(I5(i,void 0,x))}else O=mZ(h,u,b,w,C,i);b>=g&&(y+=g7(u,g,b)+O,g=b+h.length)}return y+g7(u,g)}]},!!Zt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!xZ||v7);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var eE=function(t,e){return eE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},eE(t,e)};function rc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}eE(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var mn=function(){return mn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},mn.apply(this,arguments)};function bn(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function rE(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var CZ=0,y7=function(){this.id=""+CZ++},SZ=xr.set,AZ=xr.getterFor("Array Iterator"),Hf=T5(Array,"Array",function(t,e){SZ(this,{type:"Array Iterator",target:Aa(t),index:0,kind:e})},function(){var t=AZ(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Pl.Arguments=Pl.Array,td("keys"),td("values"),td("entries");var Nl=function(t,e,r){for(var n in e)Vr(t,n,e[n],r);return t},OZ=X.Array,kZ=Math.max,nE=function(t,e,r){for(var n=os(t),o=_l(e,n),i=_l(r===void 0?n:r,n),a=OZ(kZ(i-o,0)),u=0;o<i;o++,u++)Pd(a,u,t[o]);return a.length=u,a},m7=Td.f,b7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],BZ={f:function(t){return b7&&Gn(t)=="Window"?function(e){try{return m7(e)}catch{return nE(b7)}}(t):m7(Aa(t))}},w7=Zt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Th=Object.isExtensible,uu=Zt(function(){Th(1)})||w7?function(t){return!!fe(t)&&(!w7||Gn(t)!="ArrayBuffer")&&(!Th||Th(t))}:Th,FZ=!Zt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ny=Fp(function(t){var e=Jn.f,r=!1,n=m5("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Td.f,s=pt([].splice),l={};l[n]=1,u(l).length&&(Td.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},De({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:BZ.f}))},fastKey:function(u,s){if(!fe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ie(u,n)){if(!uu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Ie(u,n)){if(!uu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return FZ&&r&&uu(u)&&!Ie(u,n)&&i(u),u}};ky[n]=!0}),TZ=X.TypeError,Lg=function(t,e){this.stopped=t,this.result=e},E7=Lg.prototype,Id=function(t,e,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=Hu(e,c),y=function(m){return n&&Y4(n,"normal",m),new Lg(!0,m)},g=function(m){return f?(Le(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)n=t;else{if(!(o=k5(t)))throw TZ(Sy(t)+" is not iterable");if(_j(o)){for(i=0,a=os(t);a>i;i++)if((u=g(t[i]))&&zu(E7,u))return u;return new Lg(!1)}n=Pj(t,o)}for(s=n.next;!(l=qt(s,n)).done;){try{u=g(l.value)}catch(m){Y4(n,"throw",m)}if(typeof u=="object"&&u&&zu(E7,u))return u}return new Lg(!1)},_Z=X.TypeError,Iy=function(t,e){if(zu(e,t))return t;throw _Z("Incorrect invocation")},Mj=function(t,e,r){var n,o;return jl&&ne(n=e.constructor)&&n!==r&&fe(o=n.prototype)&&o!==r.prototype&&jl(t,o),t},zj=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=pt(u[g]);Vr(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!fe(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!fe(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!fe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(_d(t,!ne(a)||!(o||u.forEach&&!Zt(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),Ny.enable();else if(_d(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Zt(function(){f.has(1)}),v=B5(function(g){new a(g)}),y=!o&&Zt(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){Iy(g,u);var h=Mj(new a,g,s);return m!=null&&Id(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,De({global:!0,forced:s!=a},l),qv(s,t),o||r.setStrong(s,t,n),s},_h=Ny.getWeakData,PZ=xr.set,jZ=xr.getterFor,NZ=ec.find,IZ=ec.findIndex,LZ=pt([].splice),RZ=0,Ph=function(t){return t.frozen||(t.frozen=new $j)},$j=function(){this.entries=[]},M1=function(t,e){return NZ(t.entries,function(r){return r[0]===e})};$j.prototype={get:function(t){var e=M1(this,t);if(e)return e[1]},has:function(t){return!!M1(this,t)},set:function(t,e){var r=M1(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=IZ(this.entries,function(r){return r[0]===t});return~e&&LZ(this.entries,e,1),!!~e}};var zc,Hj={getConstructor:function(t,e,r,n){var o=t(function(s,l){Iy(s,i),PZ(s,{type:e,id:RZ++,frozen:void 0}),l!=null&&Id(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=jZ(e),u=function(s,l,c){var f=a(s),d=_h(Le(l),!0);return d===!0?Ph(f).set(l,c):d[f.id]=c,s};return Nl(i,{delete:function(s){var l=a(this);if(!fe(s))return!1;var c=_h(s);return c===!0?Ph(l).delete(s):c&&Ie(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!fe(s))return!1;var c=_h(s);return c===!0?Ph(l).has(s):c&&Ie(c,l.id)}}),Nl(i,r?{get:function(s){var l=a(this);if(fe(s)){var c=_h(s);return c===!0?Ph(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},jh=xr.enforce,MZ=!X.ActiveXObject&&"ActiveXObject"in X,Vj=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},zZ=zj("WeakMap",Vj,Hj);if(yj&&MZ){zc=Hj.getConstructor(Vj,"WeakMap",!0),Ny.enable();var $c=zZ.prototype,D7=pt($c.delete),Nh=pt($c.has),x7=pt($c.get),C7=pt($c.set);Nl($c,{delete:function(t){if(fe(t)&&!uu(t)){var e=jh(this);return e.frozen||(e.frozen=new zc),D7(this,t)||e.frozen.delete(t)}return D7(this,t)},has:function(t){if(fe(t)&&!uu(t)){var e=jh(this);return e.frozen||(e.frozen=new zc),Nh(this,t)||e.frozen.has(t)}return Nh(this,t)},get:function(t){if(fe(t)&&!uu(t)){var e=jh(this);return e.frozen||(e.frozen=new zc),Nh(this,t)?x7(this,t):e.frozen.get(t)}return x7(this,t)},set:function(t,e){if(fe(t)&&!uu(t)){var r=jh(this);r.frozen||(r.frozen=new zc),Nh(this,t)?C7(this,t,e):r.frozen.set(t,e)}else C7(this,t,e);return this}})}var z1=Ce("iterator"),S7=Ce("toStringTag"),$1=Hf.values,Uj=function(t,e){if(t){if(t[z1]!==$1)try{Wn(t,z1,$1)}catch{t[z1]=$1}if(t[S7]||Wn(t,S7,e),Vv[e]){for(var r in Hf)if(t[r]!==Hf[r])try{Wn(t,r,Hf[r])}catch{t[r]=Hf[r]}}}};for(var H1 in Vv)Uj(X[H1]&&X[H1].prototype,H1);Uj(bj,"DOMTokenList");var oE=new WeakMap,iE=new WeakMap,M5=new WeakMap,Ly=new WeakMap,aE=new WeakMap,Yv=new WeakMap,z5=new WeakMap,uE=new WeakMap,Rg=new WeakMap,A7=new WeakMap,O7=new WeakMap,k7=new WeakMap,B7=new WeakMap,Ld=new WeakMap,Il=new WeakMap,$5=new WeakMap,Xv=new WeakMap,sE=new WeakMap,Zv=new WeakMap,Mg=new WeakMap,Wj=new WeakMap,bu=new WeakMap,V1=new WeakMap,F7=new WeakMap,U1=new WeakMap,$Z=ec.find,T7=!0;"find"in[]&&Array(1).find(function(){T7=!1}),De({target:"Array",proto:!0,forced:T7},{find:function(t){return $Z(this,t,arguments.length>1?arguments[1]:void 0)}}),td("find"),De({global:!0},{globalThis:X});const HZ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Nv&&(B.fn.css=Nv),An&&(B.fn.append=An),El&&(B.fn.addClass=El),Dl&&(B.fn.removeClass=Dl),xl&&(B.fn.hasClass=xl),Ao&&(B.fn.on=Ao),pa&&(B.fn.focus=pa),Sn&&(B.fn.attr=Sn),Tv&&(B.fn.removeAttr=Tv),Sl&&(B.fn.hide=Sl),jv&&(B.fn.show=jv),qS&&(B.fn.offset=qS),_v&&(B.fn.width=_v),Pv&&(B.fn.height=Pv),Al&&(B.fn.parent=Al),Rv&&(B.fn.parents=Rv),YS&&(B.fn.is=YS),Cl&&(B.fn.dataset=Cl),So&&(B.fn.val=So),Lv&&(B.fn.text=Lv),da&&(B.fn.html=da),kl&&(B.fn.children=kl),Bl&&(B.fn.remove=Bl),Ol&&(B.fn.find=Ol),Iv&&(B.fn.each=Iv),Fl&&(B.fn.empty=Fl);var po,wr,H5=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Rn=function(t){return Vu(t)&&t.nodeType===1},Vu=function(t){var e=H5(t);return!!e&&t instanceof e.Node},_7=function(t){var e=t&&t.anchorNode&&H5(t.anchorNode);return!!e&&t instanceof e.Selection},Gj=function(t){return Vu(t)&&t.nodeType===3},lE=function(t){var e,r,n;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(t))||null},qj=function(t,e,r){for(var n,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(Vu(n=i)&&n.nodeType===8||Rn(i)&&i.childNodes.length===0||Rn(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,r="backward"):a<0?(s=!0,a=e+1,r="forward"):(i=o[a],e=a,a+=r==="forward"?1:-1);return[i,e]},VZ=function(t,e,r){return Ht(qj(t,e,r),1)[0]},UZ=function t(e){var r,n,o="";if(Gj(e)&&e.nodeValue)return e.nodeValue;if(Rn(e)){try{for(var i=bn(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
`)}return o};function Kj(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var r=t.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||Kj(o,e)}}function P7(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==po.ELEMENT_NODE?"":e.tagName.toLowerCase()}(wr=po||(po={}))[wr.ELEMENT_NODE=1]="ELEMENT_NODE",wr[wr.TEXT_NODE=3]="TEXT_NODE",wr[wr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",wr[wr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",wr[wr.COMMENT_NODE=8]="COMMENT_NODE",wr[wr.DOCUMENT_NODE=9]="DOCUMENT_NODE",wr[wr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",wr[wr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var cE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),ed=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Hc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),WZ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),GZ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),fE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Vc=!GZ&&!WZ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=Wj.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var r=Mg.get(e);return r||(r=new y7,Mg.set(e,r)),r},setNewKey:function(t){var e=new y7;Mg.set(t,e)},findPath:function(t,e){for(var r=[],n=e;;){var o=Il.get(n);if(o==null){if(E.isEditor(n))return r;break}var i=Ld.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),r=e.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:e.ownerDocument},getParentNode:function(t,e){return Il.get(e)||null},getParentsNodes:function(t,e){for(var r=[],n=e;n!==t&&n!=null;){var o=A.getParentNode(t,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(t,e){var r=[A.findPath(t,e)[0]];return J.get(t,r)},toDOMNode:function(t,e){var r;if(E.isEditor(e))r=$5.get(t);else{var n=A.findKey(t,e);r=sE.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return r},hasDOMNode:function(t,e,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{n=Rn(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var r=e.anchor,n=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,r),a=L.isCollapsed(e)?i:A.toDOMPoint(t,n),u=A.getWindow(t).document.createRange(),s=Ht(o?a:i,2),l=s[0],c=s[1],f=Ht(o?i:a,2),d=f[0],p=f[1],v=!!(Rn(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),y=!!(Rn(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,y?1:p),u},toDOMPoint:function(t,e){var r,n,o,i=Ht(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=bn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),y=s+(v==null?p:parseInt(v,10));if(e.offset<=y){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=y}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var r=Rn(e)?e:e.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Xv.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var r=e.clientX,n=e.clientY,o=e.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=E.point(t,u,{edge:l?"start":"end"}),f=l?E.before(t,c):E.after(t,c);if(f)return E.range(t,f)}var d=this.getWindow(t).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);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: "+e);return A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((_7(e)?e.anchorNode:e.startContainer)&&(_7(e)?(n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=fE&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(n=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[n,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return L.isExpanded(d)&&L.isForward(d)&&Rn(i)&&E.void(t,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,r){var n,o=r.exactMatch,i=r.suppressThrow,a=Ht(o?e:function(h){var b,w=Ht(h,2),D=w[0],C=w[1];if(Rn(D)&&D.childNodes.length){var x=C===D.childNodes.length,O=x?C-1:C;for(D=(b=Ht(qj(D,O,x?"backward":"forward"),2))[0],x=(O=b[1])<C;Rn(D)&&D.childNodes.length;){var T=x?D.childNodes.length-1:0;D=VZ(D,T,x?"backward":"forward")}C=x&&D.textContent!=null?D.textContent.length:0}return[D,C]}(e),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]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var y=A.getWindow(t).document.createRange();y.setStart(c,0),y.setEnd(u,s);var g=y.cloneContents();rE(rE([],Ht(US(g.querySelectorAll("[data-slate-zero-width]")))),Ht(US(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||ed&&(!((n=v.textContent)===null||n===void 0)&&n.endsWith(`
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=A.toSlateNode(t,c);return{path:A.findPath(t,m),offset:f}},hasRange:function(t,e){var r=e.anchor,n=e.focus;return E.hasPath(t,r.path)&&E.hasPath(t,n.path)},getNodeType:function(t){return ct.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return J.string(e)}).join("")},getSelectedElems:function(t){var e,r,n=[],o=E.nodes(t,{universal:!0});try{for(var i=bn(o),a=i.next();!a.done;a=i.next()){var u=Ht(a.value,1)[0];ct.isElement(u)&&n.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return n},getSelectedNodeByType:function(t,e){var r=this,n=Ht(E.nodes(t,{match:function(i){return r.checkNodeType(i,e)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ht(E.nodes(t,{match:function(n){return ot.isText(n)},universal:!0}),1),r=e[0];return r==null?null:r[0]},isNodeSelected:function(t,e){var r=Ht(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),n=r[0];return n!=null&&Ht(n,1)[0]===e},isSelectionAtLineEnd:function(t,e){var r=t.selection;return!!r&&(E.isEnd(t,r.anchor,e)||E.isEnd(t,r.focus,e))},getTextarea:function(t){var e=oE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return Ly.get(t)||null},getHoverbar:function(t){return Yv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,r){t.normalizeNode([e,[r]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),r=e.maxLength,n=e.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,r,n,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=bn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(y){e={error:y}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(y){return!(!ct.isElement(y)||t.isInline(y))},universal:!0});try{for(var f=bn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];Kj(A.toDOMNode(t,v),function(y,g){var m=B(g);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||g.removeChild(y)})}}}catch(y){n={error:y}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(t,e){var r=t.children||[];return r[r.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,r,n=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=bn(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||L.isExpanded(e))return!1;var r=A.getSelectedNodeByType(t,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(t,e){var r=E.node(t,e);if(r==null)return!1;var n=Ht(r,1)[0].children;return n.length===1&&n[0].text===""}},qZ=1,Yj={},Rd={},KZ=ec.filter,YZ=Py("filter");De({target:"Array",proto:!0,forced:!YZ},{filter:function(t){return KZ(this,t,arguments.length>1?arguments[1]:void 0)}});var dE=`	
\v\f\r                 \u2028\u2029\uFEFF`,j7=pt("".replace),Jv="["+dE+"]",XZ=RegExp("^"+Jv+Jv+"*"),ZZ=RegExp(Jv+Jv+"*$"),JZ=function(t){return function(e){var r=ie(On(e));return 1&t&&(r=j7(r,XZ,"")),2&t&&(r=j7(r,ZZ,"")),r}},QZ={trim:JZ(3)},tJ=Ql.PROPER,eJ=QZ.trim;De({target:"String",proto:!0,forced:function(t){return Zt(function(){return!!dE[t]()||"​…᠎"[t]()!=="​…᠎"||tJ&&dE[t].name!==t})}("trim")},{trim:function(){return eJ(this)}});var pE=[],Xj={};function rJ(t,e,r){var n=r.isInline(t)?"span":"div";return"<"+n+">"+e+"</"+n+">"}var Md,Ds,N7,W1,Qv=X.Promise,I7=Ce("species"),V5=function(t){var e=ns(t),r=Jn.f;nr&&e&&!e[I7]&&r(e,I7,{configurable:!0,get:function(){return this}})},nJ=X.TypeError,oJ=Ce("species"),Zj=function(t,e){var r,n=Le(t).constructor;return n===void 0||(r=Le(n)[oJ])==null?e:function(o){if(Ty(o))return o;throw nJ(Sy(o)+" is not a constructor")}(r)},Jj=pt([].slice),Qj=/(?:ipad|iphone|ipod).*applewebkit/i.test(al),Yi=Gn(X.process)=="process",hE=X.setImmediate,L7=X.clearImmediate,iJ=X.process,G1=X.Dispatch,aJ=X.Function,R7=X.MessageChannel,uJ=X.String,q1=0,rd={};try{Md=X.location}catch{}var U5=function(t){if(Ie(rd,t)){var e=rd[t];delete rd[t],e()}},K1=function(t){return function(){U5(t)}},M7=function(t){U5(t.data)},z7=function(t){X.postMessage(uJ(t),Md.protocol+"//"+Md.host)};hE&&L7||(hE=function(t){var e=Jj(arguments,1);return rd[++q1]=function(){I5(ne(t)?t:aJ(t),void 0,e)},Ds(q1),q1},L7=function(t){delete rd[t]},Yi?Ds=function(t){iJ.nextTick(K1(t))}:G1&&G1.now?Ds=function(t){G1.now(K1(t))}:R7&&!Qj?(W1=(N7=new R7).port2,N7.port1.onmessage=M7,Ds=Hu(W1.postMessage,W1)):X.addEventListener&&ne(X.postMessage)&&!X.importScripts&&Md&&Md.protocol!=="file:"&&!Zt(z7)?(Ds=z7,X.addEventListener("message",M7,!1)):Ds="onreadystatechange"in Fd("script")?function(t){G4.appendChild(Fd("script")).onreadystatechange=function(){G4.removeChild(this),U5(t)}}:function(t){setTimeout(K1(t),0)});var Uc,nu,nd,Ks,Y1,X1,Z1,$7,tN={set:hE},sJ=/ipad|iphone|ipod/i.test(al)&&X.Pebble!==void 0,lJ=/web0s(?!.*chrome)/i.test(al),cJ=_p.f,J1=tN.set,H7=X.MutationObserver||X.WebKitMutationObserver,V7=X.document,U7=X.process,Ih=X.Promise,W7=cJ(X,"queueMicrotask"),eN=W7&&W7.value;eN||(Uc=function(){var t,e;for(Yi&&(t=U7.domain)&&t.exit();nu;){e=nu.fn,nu=nu.next;try{e()}catch(r){throw nu?Ks():nd=void 0,r}}nd=void 0,t&&t.enter()},Qj||Yi||lJ||!H7||!V7?!sJ&&Ih&&Ih.resolve?((Z1=Ih.resolve(void 0)).constructor=Ih,$7=Hu(Z1.then,Z1),Ks=function(){$7(Uc)}):Yi?Ks=function(){U7.nextTick(Uc)}:(J1=Hu(J1,X),Ks=function(){J1(Uc)}):(Y1=!0,X1=V7.createTextNode(""),new H7(Uc).observe(X1,{characterData:!0}),Ks=function(){X1.data=Y1=!Y1}));var Q1,G7,rN,q7,nN=eN||function(t){var e={fn:t,next:void 0};nd&&(nd.next=e),nu||(nu=e,Ks()),nd=e},fJ=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=ha(e),this.reject=ha(r)},W5={f:function(t){return new fJ(t)}},gE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},dJ=typeof window=="object",oN=tN.set,pJ=Ce("species"),lo="Promise",K7=xr.getterFor(lo),hJ=xr.set,gJ=xr.getterFor(lo),Za=Qv&&Qv.prototype,go=Qv,Wc=Za,iN=X.TypeError,vE=X.document,G5=X.process,sl=W5.f,vJ=sl,yJ=!!(vE&&vE.createEvent&&X.dispatchEvent),aN=ne(X.PromiseRejectionEvent),uN=!1,od=_d(lo,function(){var t=Oy(go),e=t!==String(go);if(!e&&Bd===66)return!0;if(Bd>=51&&/native code/.test(t))return!1;var r=new go(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[pJ]=n,!(uN=r.then(function(){})instanceof n)||!e&&dJ&&!aN}),mJ=od||!B5(function(t){go.all(t).catch(function(){})}),sN=function(t){var e;return!(!fe(t)||!ne(e=t.then))&&e},q5=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;nN(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&wJ(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(iN("Promise-chain cycle")):(u=sN(a))?qt(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&bJ(t)})}},lN=function(t,e,r){var n,o;yJ?((n=vE.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),X.dispatchEvent(n)):n={promise:e,reason:r},!aN&&(o=X["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},bJ=function(t){qt(oN,X,function(){var e,r=t.facade,n=t.value;if(Y7(t)&&(e=gE(function(){Yi?G5.emit("unhandledRejection",n,r):lN("unhandledrejection",r,n)}),t.rejection=Yi||Y7(t)?2:1,e.error))throw e.value})},Y7=function(t){return t.rejection!==1&&!t.parent},wJ=function(t){qt(oN,X,function(){var e=t.facade;Yi?G5.emit("rejectionHandled",e):lN("rejectionhandled",e,t.value)})},el=function(t,e,r){return function(n){t(e,n,r)}},ll=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,q5(t,!0))},yE=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw iN("Promise can't be resolved itself");var n=sN(e);n?nN(function(){var o={done:!1};try{qt(n,e,el(yE,o,t),el(ll,o,t))}catch(i){ll(o,i,t)}}):(t.value=e,t.state=1,q5(t,!1))}catch(o){ll({done:!1},o,t)}}};if(od&&(Wc=(go=function(t){Iy(this,Wc),ha(t),qt(Q1,this);var e=K7(this);try{t(el(yE,e),el(ll,e))}catch(r){ll(e,r)}}).prototype,(Q1=function(t){hJ(this,{type:lo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Nl(Wc,{then:function(t,e){var r=gJ(this),n=r.reactions,o=sl(Zj(this,go));return o.ok=!ne(t)||t,o.fail=ne(e)&&e,o.domain=Yi?G5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&q5(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),G7=function(){var t=new Q1,e=K7(t);this.promise=t,this.resolve=el(yE,e),this.reject=el(ll,e)},W5.f=sl=function(t){return t===go||t===rN?new G7(t):vJ(t)},ne(Qv)&&Za!==Object.prototype)){q7=Za.then,uN||(Vr(Za,"then",function(t,e){var r=this;return new go(function(n,o){qt(q7,r,n,o)}).then(t,e)},{unsafe:!0}),Vr(Za,"catch",Wc.catch,{unsafe:!0}));try{delete Za.constructor}catch{}jl&&jl(Za,Wc)}De({global:!0,wrap:!0,forced:od},{Promise:go}),qv(go,lo,!1),V5(lo),rN=ns(lo),De({target:lo,stat:!0,forced:od},{reject:function(t){var e=sl(this);return qt(e.reject,void 0,t),e.promise}}),De({target:lo,stat:!0,forced:od},{resolve:function(t){return function(e,r){if(Le(e),fe(r)&&r.constructor===e)return r;var n=W5.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),De({target:lo,stat:!0,forced:mJ},{all:function(t){var e=this,r=sl(e),n=r.resolve,o=r.reject,i=gE(function(){var a=ha(e.resolve),u=[],s=0,l=1;Id(t,function(c){var f=s++,d=!1;l++,qt(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=sl(e),n=r.reject,o=gE(function(){var i=ha(e.resolve);Id(t,function(a){qt(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var xs=jy.UNSUPPORTED_Y,EJ=Math.min,cN=[].push,DJ=pt(/./.exec),Cs=pt(cN),Gc=pt("".slice);function kn(t){Promise.resolve().then(t)}function fN(t,e){return ct.isElement(t)?function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=E.isVoid(n,r),l="";s||(l=u.map(function(m){return fN(m,n)}).join(""));var c=function(m){return Xj[m]||rJ}(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||pE.forEach(function(m){return d=m(r,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,y=f.suffix,g=y===void 0?"":y;return v&&(d=v+d),g&&(d+=g),d}(t,e):function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(i);var a=A.getParentsNodes(n,r).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=A.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return pE.forEach(function(s){return i=s(r,i)}),i}(t,e)}function dN(t){return"w-e-element-"+t}L5("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ie(On(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!S5(o))return qt(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=qt(jd,v,a))&&!((l=v.lastIndex)>p&&(Cs(f,Gc(a,p,s.index)),s.length>1&&s.index<a.length&&I5(cN,f,nE(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&DJ(v,"")||Cs(f,""):Cs(f,Gc(a,p)),f.length>u?nE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:qt(e,this,o,i)}:e,[function(o,i){var a=On(this),u=o==null?void 0:$u(o,t);return u?qt(u,o,a,i):qt(n,ie(a),o,i)},function(o,i){var a=Le(this),u=ie(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=Zj(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(xs?"g":"y"),d=new l(xs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Nd(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=xs?0:y;var m,h=Nd(d,xs?Gc(u,y):u);if(h===null||(m=EJ(tc(d.lastIndex+(xs?y:0)),u.length))===v)y=R5(u,y,c);else{if(Cs(g,Gc(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Cs(g,h[b]),g.length===p)return g;y=v=m}}return Cs(g,Gc(u,v)),g}]},!!Zt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),xs);var X7=function(t,e){var r=(e.top+e.bottom)/2;return t.top<=r&&t.bottom>=r},Z7=function(t,e,r){var n=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,r).getBoundingClientRect();return X7(n,o)&&X7(o,n)},pN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],hN=[],K5=[],t0={},xJ=Jn.f,CJ=Td.f,SJ=xr.enforce,AJ=Ce("match"),Xo=X.RegExp,Ys=Xo.prototype,OJ=X.SyntaxError,kJ=pt(C5),BJ=pt(Ys.exec),Lh=pt("".charAt),J7=pt("".replace),Q7=pt("".indexOf),FJ=pt("".slice),TJ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,wu=/a/g,tb=/a/g,_J=new Xo(wu)!==wu,gN=jy.MISSED_STICKY,PJ=jy.UNSUPPORTED_Y,jJ=nr&&(!_J||gN||P5||j5||Zt(function(){return tb[AJ]=!1,Xo(wu)!=wu||Xo(tb)==tb||Xo(wu,"i")!="/a/i"}));if(_d("RegExp",jJ)){for(var Ci=function(t,e){var r,n,o,i,a,u,s=zu(Ys,this),l=S5(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===Ci)return t;if((l||zu(Ys,t))&&(t=t.source,c&&(e="flags"in d?d.flags:kJ(d))),t=t===void 0?"":ie(t),e=e===void 0?"":ie(e),d=t,P5&&"dotAll"in wu&&(n=!!e&&Q7(e,"s")>-1)&&(e=J7(e,/s/g,"")),r=e,gN&&"sticky"in wu&&(o=!!e&&Q7(e,"y")>-1)&&PJ&&(e=J7(e,/y/g,"")),j5&&(i=function(p){for(var v,y=p.length,g=0,m="",h=[],b={},w=!1,D=!1,C=0,x="";g<=y;g++){if((v=Lh(p,g))==="\\")v+=Lh(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":BJ(TJ,FJ(p,g+1))&&(g+=2,D=!0),m+=v,C++;continue;case(v===">"&&D):if(x===""||Ie(b,x))throw new OJ("Invalid capture group name");b[x]=!0,h[h.length]=[x,C],D=!1,x="";continue}D?x+=v:m+=v}return[m,h]}(t),t=i[0],f=i[1]),a=Mj(Xo(t,e),s?this:Ys,Ci),(n||o||f.length)&&(u=SJ(a),n&&(u.dotAll=!0,u.raw=Ci(function(p){for(var v,y=p.length,g=0,m="",h=!1;g<=y;g++)(v=Lh(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),m+=v):m+="[\\s\\S]":m+=v+Lh(p,++g);return m}(t),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{Wn(a,"source",d===""?"(?:)":d)}catch{}return a},NJ=function(t){t in Ci||xJ(Ci,t,{configurable:!0,get:function(){return Xo[t]},set:function(e){Xo[t]=e}})},t9=CJ(Xo),e9=0;t9.length>e9;)NJ(t9[e9++]);Ys.constructor=Ci,Ci.prototype=Ys,Vr(X,"RegExp",Ci)}V5("RegExp");var IJ=new RegExp(" ","g");function vN(t){return t.replace(IJ," ")}function r9(t,e){var r=t.length;if(r){var n=t[r-1];if(ot.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+e,!0}}return!1}function LJ(t,e,r){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function eb(t,e){var r=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==po.ELEMENT_NODE){if(l.nodeType===po.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
`)>=0)return;c&&(c=vN(c),r9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(r9(u,`
`)||u.push({text:`
`}));var f=Y5(B(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),n=function(i){for(var a in t0)if(i[0].matches(a))return t0[a];return LJ}(t),o=n(t[0],r,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(r.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),K5.forEach(function(a){i=a(t[0],i,e)}))}),o}function rb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var r=t[0].textContent||"";r=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(r);var n={text:r=vN(r)};return K5.forEach(function(o){n=o(t[0],n,e)}),n}function Y5(t,e){hN.forEach(function(n){var o=n.selector,i=n.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var r=P7(t);return r==="span"?t.attr("data-w-e-type")?eb(t,e):rb(t,e):r==="code"?P7(t.parent())==="pre"?eb(t,e):rb(t,e):pN.includes(r)?rb(t,e):eb(t,e)}function yN(t,e,r){var n=B(r);return!!n.attr(e)||(n.attr(e,"true"),t.on("destroyed",function(){n.removeAttr(e)}),!1)}function n9(t,e){e===void 0&&(e="");var r=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=B("<div>"+e+"</div>");return Array.from(n.children()).forEach(function(o){var i=Y5(B(o),t);Array.isArray(i)?i.forEach(function(a){return r.push(a)}):r.push(i)}),r}var RJ=Jn.f,o9=Ny.fastKey,i9=xr.set,nb=xr.getterFor,MJ={getConstructor:function(t,e,r,n){var o=t(function(l,c){Iy(l,i),i9(l,{type:e,index:_y(null),first:void 0,last:void 0,size:0}),nr||(l.size=0),c!=null&&Id(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=nb(e),u=function(l,c,f){var d,p,v=a(l),y=s(l,c);return y?y.value=f:(v.last=y={index:p=o9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=y),d&&(d.next=y),nr?v.size++:l.size++,p!=="F"&&(v.index[p]=y)),l},s=function(l,c){var f,d=a(l),p=o9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Nl(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,nr?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),nr?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Hu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Nl(i,r?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),nr&&RJ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=nb(e),i=nb(n);T5(t,e,function(a,u){i9(this,{type:n,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),V5(e)}};zj("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},MJ);var a9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function u9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var zJ=function(t){var e=t,r=e.insertText;return e.insertFragment,e.setFragmentData=function(n){var o=e.selection;if(o){var i=Ht(L.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(d=D)}),l){var p=Ht(l,1)[0],v=c.cloneRange(),y=A.toDOMNode(e,p);v.setEndAfter(y),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var C=D.getAttribute("data-slate-zero-width")==="n";D.textContent=C?`
`:""}),Gj(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",b),n.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),n.setData("text/html",w.innerHTML),n.setData("text/plain",UZ(w)),f.ownerDocument.body.removeChild(w),n}}},e.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=bn(f),v=p.next();!v.done;v=p.next()){var y=v.value;d&&N.splitNodes(e,{always:!0}),r(y),d=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},e},Vf=function(t){return t!=null},$J={object:!0,function:!0,undefined:!0},HJ=/^\s*class[\s{/}]/,VJ=Function.prototype.toString,s9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!function(r){if(!function(n){return!!Vf(n)&&hasOwnProperty.call($J,typeof n)}(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}}(e)}(t)&&!HJ.test(VJ.call(t))},X5=function(t){return t!=null},UJ=Object.keys,WJ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return UJ(X5(t)?Object(t):t)},GJ=function(t){if(!X5(t))throw new TypeError("Cannot use null or undefined");return t},qJ=Math.max,l9=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var r,n,o,i=qJ(arguments.length,2);for(t=Object(GJ(t)),o=function(a){try{t[a]=e[a]}catch(u){r||(r=u)}},n=1;n<i;++n)WJ(e=arguments[n]).forEach(o);if(r!==void 0)throw r;return t},KJ=Array.prototype.forEach,YJ=Object.create,XJ=function(t,e){var r;for(r in t)e[r]=t[r]},c9=function(t){var e=YJ(null);return KJ.call(arguments,function(r){X5(r)&&XJ(Object(r),e)}),e},ob="razdwatrzy",ZJ=String.prototype.indexOf,qc=typeof ob.contains=="function"&&ob.contains("dwa")===!0&&ob.contains("foo")===!1?String.prototype.contains:function(t){return ZJ.call(this,t,arguments[1])>-1},Rh=Fp(function(t){var e=t.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Vf(r)?(o=qc.call(r,"c"),i=qc.call(r,"e"),a=qc.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?l9(c9(u),s):s};e.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Vf(n)?s9(n)?Vf(o)?s9(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Vf(r)?(i=qc.call(r,"c"),a=qc.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?l9(c9(u),s):s}}),ib=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},JJ=Fp(function(t,e){var r,n,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(g,m){var h;return ib(m),v.call(this,"__ee__")?h=this.__ee__:(h=y.value=f(null),d(this,"__ee__",y),y.value=null),h[g]?typeof h[g]=="object"?h[g].push(m):h[g]=[h[g],m]:h[g]=m,this},n=function(g,m){var h,b;return ib(m),b=this,r.call(this,g,h=function(){o.call(b,g,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(g,m){var h,b,w,D;if(ib(m),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(D=0;w=b[D];++D)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[g]=b[D?0:1]:b.splice(D,1));else b!==m&&b.__eeOnceListener__!==m||delete h[g];return this},i=function(g){var m,h,b,w,D;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];for(w=w.slice(),m=0;b=w[m];++m)l.call(b,this,D)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];l.call(w,this,D)}},a={on:r,once:n,off:o,emit:i},u={on:Rh(r),once:Rh(n),off:Rh(o),emit:Rh(i)},s=p({},u),t.exports=e=function(g){return g==null?f(s):p(Object(g),u)},e.methods=a});function Mh(t){var e=F7.get(t);return e==null&&(e=JJ(),F7.set(t,e)),e}var e0=new WeakMap;function f9(t,e){var r=e0.get(t);r==null&&(r=new Set,e0.set(t,r)),r.add(e)}function QJ(t){return e0.get(t)||new Set}function tQ(t){e0.set(t,new Set)}function Z5(t){var e=A.getTextarea(t).$textAreaContainer,r=e.width(),n=e.height(),o=e.offset();return{top:o.top,left:o.left,width:r,height:n}}function J5(t){var e={top:"0",left:"0"},r=t.selection;if(r==null)return e;var n=Z5(t);if(n==null)return e;var o=n.top,i=n.left,a=n.width,u=n.height,s=A.toDOMRange(t,r).getClientRects()[0];if(s==null)return e;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 v=u-f;c.bottom=v+5+"px"}else{var y=f+l;y<0&&(y=0),c.top=y+5+"px"}return c}function Q5(t,e,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(t.selection==null)return n;var o=ct.isElement(e)&&t.isVoid(e),i=ct.isElement(e)&&t.isInline(e),a=Zv.get(e);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(x){var O=[];O.push(x);for(var T=0;O.length>0;){var R=O.pop();if(R==null||++T>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(HZ.includes(M)||M==="iframe"||M==="video")return R;var K=R.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)O.push(K[W])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=Z5(t);if(v==null)return n;var y,g=v.top,m=v.left,h=v.width,b=v.height,w={},D=s-g,C=l-m;if(r==="bar")return w.left=C+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(r==="modal")return o?i?C>(h-f)/2?w.right=h-C+5+"px":w.left=C+f+5+"px":w.left="20px":w.left=C+"px",o?((y=D)<0&&(y=0),w.top=y+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((y=D+c)<0&&(y=0),w.top=y+5+"px"),w;throw new Error("type '"+r+"' is invalid")}function mE(t,e){kn(function(){var r=Z5(t);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),d=e.height(),p=l-o,v=c-i,y=e.attr("style");if(y.indexOf("top")>=0&&(n=p+d-u)>0){var g=e.css("top"),m=parseInt(g.toString())-n;m<0&&(m=0),e.css("top",m+"px")}if(y.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(y.indexOf("left")>=0&&(n=v+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-n;D<0&&(D=0),e.css("left",D+"px")}if(y.indexOf("right")>=0&&c<0){var C=e.css("right"),x=parseInt(C.toString())-Math.abs(c);e.css("right",x+"px")}}})}var eQ=Py("slice"),rQ=Ce("species"),ab=X.Array,nQ=Math.max;De({target:"Array",proto:!0,forced:!eQ},{slice:function(t,e){var r,n,o,i=Aa(this),a=os(i),u=_l(t,a),s=_l(e===void 0?a:e,a);if(Uv(i)&&(r=i.constructor,(Ty(r)&&(r===ab||Uv(r.prototype))||fe(r)&&(r=r[rQ])===null)&&(r=void 0),r===ab||r===void 0))return Jj(i,u,s);for(n=new(r===void 0?ab:r)(nQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Pd(n,o,i[u]);return n.length=o,n}});var oQ=_p.f,d9=pt("".startsWith),iQ=pt("".slice),aQ=Math.min,mN=O5("startsWith"),uQ=!mN&&!!function(){var t=oQ(String.prototype,"startsWith");return t&&!t.writable}();De({target:"String",proto:!0,forced:!uQ&&!mN},{startsWith:function(t){var e=ie(On(this));A5(t);var r=tc(aQ(arguments.length>1?arguments[1]:void 0,e.length)),n=ie(t);return d9?d9(e,n,r):iQ(e,r,r+n.length)===n}});var Ss=Object.assign,p9=Object.defineProperty,sQ=pt([].concat),h9=!Ss||Zt(function(){if(nr&&Ss({b:1},Ss(p9({},"a",{enumerable:!0,get:function(){p9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Ss({},t)[r]!=7||ul(Ss({},e)).join("")!=n})?function(t,e){for(var r=Sa(t),n=arguments.length,o=1,i=kj.f,a=Sj.f;n>o;)for(var u,s=Fy(arguments[o++]),l=i?sQ(ul(s),i(s)):ul(s),c=l.length,f=0;c>f;)u=l[f++],nr&&!qt(a,s,u)||(r[u]=s[u]);return r}:Ss;De({target:"Object",stat:!0,forced:Object.assign!==h9},{assign:h9});var lQ=["props","attrs","style","dataset","on","hook"];function bN(t){var e=t.data,r=e===void 0?{}:e,n=t.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(i){var a,u,s=r[i];if(i!=="key"){if(!lQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=Pq(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(t,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(t,(u={},u[i]=s,u)),delete r[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&bN(i)})}var bE=[],wN={};function cQ(t,e,r){return bt(r.isInline(t)?"span":"div",null,e)}function g9(t,e){return e===void 0&&(e=!1),bt("span",{"data-slate-string":!0},e?t+`
`:t)}function ub(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),bt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?bt("br",null):null)}function wE(t,e,r,n){return Ld.set(t,e),Il.set(t,r),ct.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=dN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,y=function(D){return wN[D]||cQ}(d);a=l?null:v.map(function(D,C){return wE(D,C,o,i)});var g=y(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Ht(J.texts(o),1),b=Ht(h[0],1)[0],w=bt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},wE(b,0,o,i));g=bt(m,{style:{position:"relative"}},g,w),Ld.set(b,0),Il.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=function(D,C){var x=C;return bE.forEach(function(O){x=O(D,C)}),x}(o,g)),kn(function(){var D=lE(c);D!=null&&(sE.set(u,D),Zv.set(o,D),Xv.set(D,o))}),g}(t,n):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=ot.decorations(o,c),d=f.map(function(y,g){var m=function(h,b,w,D,C){b===void 0&&(b=!1);var x=h.text,O=A.findPath(C,w),T=j.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return C.isVoid(D)?ub(J.string(D).length):x!==""||D.children[D.children.length-1]!==w||C.isInline(D)||E.string(C,T)!==""?x===""?ub():b&&x.slice(-1)===`
`?g9(x,!0):g9(x):ub(0,!0)}(y,g===f.length-1,o,i,a);return m=function(h,b){var w=b;return bE.forEach(function(D){w=D(h,w)}),w}(y,m),bt("span",{"data-slate-leaf":!0},m)}),p=function(y){return"w-e-text-"+y}(u.id),v=bt("span",{"data-slate-node":"text",id:p,key:u.id},d);return kn(function(){var y=lE(p);y!=null&&(sE.set(u,y),Zv.set(o,y),Xv.set(y,o))}),v}(t,r,n)}function fQ(t,e){var r,n=t.$scroll,o=function(y){return"w-e-textarea-"+y}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(y,g){return g===void 0&&(g=!1),Tl("div#"+y,{props:{contentEditable:!g}})}(o,a),l=e.children||[];s.children=l.map(function(y,g){var m=wE(y,g,e,e);return bN(m),m});var c=O7.get(t);if(c==null&&(c=!0),c){var f=function(y,g){return B(`<div
        id="`+y+`"
        data-slate-editor
        data-slate-node="value"
        suppressContentEditableWarning
        role="textarea"
        spellCheck="true"
        autoCorrect="true"
        autoCapitalize="true"
    ></div>`)}(o);n.append(f),t.$textArea=f,r=f[0],(p=eq([nq,uq,lq,oq,aq,rq]))(r,s),O7.set(t,!1),k7.set(t,p)}else{var d=B7.get(t),p=k7.get(t);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=lE(o))!=null){if((c?u:e.isFocused())&&r.focus({preventScroll:!0}),c){var v=H5(r);v&&Wj.set(e,v)}$5.set(e,r),Zv.set(e,r),Xv.set(r,e),B7.set(t,s)}}function v9(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function y9(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function sb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return y9(r.overflowY,e)||y9(r.overflowX,e)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(t)}return!1}function zh(t,e,r,n,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=r||a>=e&&u>=r?i-t-n:a>e&&u<r||i<t&&u>r?a-e+o:0}function m9(t,e){var r=window,n=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Dt){return Dt!==a};if(!v9(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;v9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&sb(f)&&!sb(document.documentElement)||f!=null&&sb(f,u)&&c.push(f)}for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,g=t.getBoundingClientRect(),m=g.height,h=g.width,b=g.top,w=g.right,D=g.bottom,C=g.left,x=o==="start"||o==="nearest"?b:o==="end"?D:b+m/2,O=i==="center"?C+h/2:i==="end"?w:C,T=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,q=M.right,et=M.bottom,st=M.left;if(n==="if-needed"&&b>=0&&C>=0&&D<=p&&w<=d&&b>=W&&D<=et&&C>=st&&w<=q)return T;var ut=getComputedStyle(H),at=parseInt(ut.borderLeftWidth,10),k=parseInt(ut.borderTopWidth,10),S=parseInt(ut.borderRightWidth,10),P=parseInt(ut.borderBottomWidth,10),$=0,Y=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-at-S:0,it="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?x:o==="end"?x-p:o==="nearest"?zh(y,y+p,p,k,P,y+x,y+x+m,m):x-p/2,Y=i==="start"?O:i==="center"?O-d/2:i==="end"?O-d:zh(v,v+d,d,at,S,v+O,v+O+h,h),$=Math.max(0,$+y),Y=Math.max(0,Y+v);else{$=o==="start"?x-W-k:o==="end"?x-et+P+it:o==="nearest"?zh(W,et,K,k,P+it,x,x+m,m):x-(W+K/2)+it/2,Y=i==="start"?O-st-at:i==="center"?O-(st+U/2)+V/2:i==="end"?O-q+S+V:zh(st,q,U,at,S+V,O,O+h,h);var gt=H.scrollLeft,vt=H.scrollTop;x+=vt-($=Math.max(0,Math.min(vt+$,H.scrollHeight-K+it))),O+=gt-(Y=Math.max(0,Math.min(gt+Y,H.scrollWidth-U+V)))}T.push({el:H,top:$,left:Y})}return T}function b9(t){return t===Object(t)&&Object.keys(t).length!==0}function gn(t,e){return Vu(e)&&A.hasDOMNode(t,e,{editable:!0})}function w9(t,e){if(t.getConfig().readOnly)return!1;var r=Xs(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,r)}function Xs(t,e){return Vu(e)&&A.hasDOMNode(t,e)}function EN(t,e,r){r===void 0&&(r=!1);var n=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||r)&&e.isFocused()){var a=i.type!=="None";if(n||a){var u=$5.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,n)){var c=!0;if(L.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!n||A.hasRange(e,n)){t.isUpdatingSelection=!0;var y=n&&A.toDOMRange(e,n);if(y){L.isBackward(n)?i.setBaseAndExtent(y.endContainer,y.endOffset,y.startContainer,y.startOffset):i.setBaseAndExtent(y.startContainer,y.startOffset,y.endContainer,y.endOffset);var g=y.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=y.getBoundingClientRect.bind(y);var m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(b9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:m9(h,b));if(!w){var D=function(C){return C===!1?{block:"end",inline:"nearest"}:b9(C)?C:{block:"start",inline:"nearest"}}(b);(function(C,x){x===void 0&&(x="auto");var O="scrollBehavior"in document.body.style;C.forEach(function(T){var R=T.el,H=T.top,M=T.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:x}):(R.scrollTop=H,R.scrollLeft=M)})})(m9(h,D),D.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){y&&ed&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var lb=new WeakMap,E9=new WeakMap,dQ={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"},pQ={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"},hQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},ye=function(t){var e=dQ[t],r=pQ[t],n=hQ[t],o=e&&s1(e),i=r&&s1(r),a=n&&s1(n);return function(u){return!(!o||!o(u))||!!(cE&&i&&i(u))||!(cE||!a||!a(u))}},we={isBold:ye("bold"),isCompose:ye("compose"),isMoveBackward:ye("moveBackward"),isMoveForward:ye("moveForward"),isDeleteBackward:ye("deleteBackward"),isDeleteForward:ye("deleteForward"),isDeleteLineBackward:ye("deleteLineBackward"),isDeleteLineForward:ye("deleteLineForward"),isDeleteWordBackward:ye("deleteWordBackward"),isDeleteWordForward:ye("deleteWordForward"),isExtendBackward:ye("extendBackward"),isExtendForward:ye("extendForward"),isExtendLineBackward:ye("extendLineBackward"),isExtendLineForward:ye("extendLineForward"),isItalic:ye("italic"),isMoveLineBackward:ye("moveLineBackward"),isMoveLineForward:ye("moveLineForward"),isMoveWordBackward:ye("moveWordBackward"),isMoveWordForward:ye("moveWordForward"),isRedo:ye("redo"),isSplitBlock:ye("splitBlock"),isTransposeCharacter:ye("transposeCharacter"),isUndo:ye("undo"),isTab:ye("tab"),isSelectAll:ye("selectAll")};function He(t){t.preventDefault()}var gQ={beforeinput:function(t,e,r){var n=t,o=r.getConfig().readOnly;if(Vc&&!o&&gn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ht(n.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(r,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":E.deleteForward(r);break;case"deleteContentBackward":E.deleteBackward(r);break;case"deleteEntireSoftLine":E.deleteBackward(r,{unit:"line"}),E.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":E.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!U1.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&E.insertText(r,u)}}}},blur:function(t,e,r){var n=t,o=e.isUpdatingSelection,i=e.latestElement;if(!r.getConfig().readOnly&&!o&&gn(r,n.target)){var a=A.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===A.toDOMNode(r,r)||Rn(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Vu(u)&&A.hasDOMNode(r,u)){var s=A.toSlateNode(r,u);if(ct.isElement(s)&&!r.isVoid(s))return}if(Hc){var l=a.getSelection();l==null||l.removeAllRanges()}bu.delete(r)}}}},focus:function(t,e,r){var n=A.toDOMNode(r,r),o=A.findDocumentOrShadowRoot(r);e.latestElement=o.activeElement,ed&&t.target!==n?n.focus():bu.set(r,!0)},click:function(t,e,r){if(!r.getConfig().readOnly&&Xs(r,t.target)&&Vu(t.target)){var n=A.toSlateNode(r,t.target),o=A.findPath(r,n);if(E.hasPath(r,o)&&J.get(r,o)===n){var i=E.start(r,o),a=E.end(r,o),u=E.void(r,{at:i}),s=E.void(r,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=E.range(r,i);N.select(r,l)}}}},compositionstart:function(t,e,r){if(gn(r,t.target)){var n=r.selection;if(n&&L.isExpanded(n)&&(E.deleteFragment(r),Promise.resolve().then(function(){EN(e,r,!0)})),n&&L.isCollapsed(n)){var o=A.toDOMRange(r,n).startContainer,i=o.textContent||"";lb.set(r,i),E9.set(r,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,r)}},compositionend:function(t,e,r){var n=t;if(gn(r,n.target)){e.isComposing=!1;var o=r.selection;if(o!=null){(fE||ed)&&A.cleanExposedTexNodeInSelectionBlock(r);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Ht(E.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ht(E.node(r,i.path.slice(0,u+1)),1)[0];if(ct.isElement(s)&&((Hc||ed)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(r);c<l.length?(A.toDOMRange(r,o).startContainer.textContent=lb.get(r)||"",c>0&&E.insertText(r,l.slice(0,c)),e.changeViewState()):E.insertText(r,l)}else E.insertText(r,l);Hc||setTimeout(function(){var f=r.selection;if(f!=null){var d=E9.get(r);d!=null&&A.toDOMRange(r,f).startContainer!==d&&(d.textContent=lb.get(r)||"")}})}}}},compositionupdate:function(t,e,r){gn(r,t.target)&&(e.isComposing=!0)},keydown:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&!e.isComposing&&gn(r,n.target)){if(function(a,u){var s=Ly.get(a),l=s&&s.getMenus(),c=Yv.get(a),f=c&&c.getMenus(),d=mn(mn({},l),f);for(var p in d){var v=d[p],y=v.hotkey;if(y&&Iq(y,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}}(r,n),we.isTab(n))return He(n),void r.handleTab();if(we.isRedo(n))return He(n),void(typeof r.redo=="function"&&r.redo());if(we.isUndo(n))return He(n),void(typeof r.undo=="function"&&r.undo());if(we.isMoveLineBackward(n))return He(n),void N.move(r,{unit:"line",reverse:!0});if(we.isMoveLineForward(n))return He(n),void N.move(r,{unit:"line"});if(we.isExtendLineBackward(n))return He(n),void N.move(r,{unit:"line",edge:"focus",reverse:!0});if(we.isExtendLineForward(n))return He(n),void N.move(r,{unit:"line",edge:"focus"});if(we.isMoveBackward(n))return He(n),void(o&&L.isCollapsed(o)?N.move(r,{reverse:!0}):N.collapse(r,{edge:"start"}));if(we.isMoveForward(n))return He(n),void(o&&L.isCollapsed(o)?N.move(r):N.collapse(r,{edge:"end"}));if(we.isMoveWordBackward(n))return He(n),o&&L.isExpanded(o)&&N.collapse(r,{edge:"focus"}),void N.move(r,{unit:"word",reverse:!0});if(we.isMoveWordForward(n))return He(n),o&&L.isExpanded(o)&&N.collapse(r,{edge:"focus"}),void N.move(r,{unit:"word"});if(we.isSelectAll(n))return He(n),void r.selectAll();if(Vc){if((fE||Hc)&&o&&(we.isDeleteBackward(n)||we.isDeleteForward(n))&&L.isCollapsed(o)){var i=J.parent(r,o.anchor.path);if(ct.isElement(i)&&E.isVoid(r,i)&&E.isInline(r,i))return n.preventDefault(),void N.delete(r,{unit:"block"})}}else{if(we.isBold(n)||we.isItalic(n)||we.isTransposeCharacter(n))return void He(n);if(we.isSplitBlock(n))return He(n),void E.insertBreak(r);if(we.isDeleteBackward(n))return He(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r));if(we.isDeleteForward(n))return He(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r));if(we.isDeleteLineBackward(n))return He(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r,{unit:"line"}));if(we.isDeleteLineForward(n))return He(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r,{unit:"line"}));if(we.isDeleteWordBackward(n))return He(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"backward"}):E.deleteBackward(r,{unit:"word"}));if(we.isDeleteWordForward(n))return He(n),void(o&&L.isExpanded(o)?E.deleteFragment(r,{direction:"forward"}):E.deleteForward(r,{unit:"word"}))}}},keypress:function(t,e,r){if(!Vc&&!r.getConfig().readOnly&&gn(r,t.target)){t.preventDefault();var n=t.key;E.insertText(r,n)}},copy:function(t,e,r){var n=t;if(gn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(t,e,r){var n=t,o=r.selection;if(!r.getConfig().readOnly&&gn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(r);else{var a=J.parent(r,o.anchor.path);E.isVoid(r,a)&&N.delete(r)}}},paste:function(t,e,r){U1.set(r,!0);var n=t;if(!r.getConfig().readOnly&&gn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void U1.set(r,!1);if(!Vc||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(t,e,r){if(Xs(r,t.target)){var n=A.toSlateNode(r,t.target);E.isVoid(r,n)&&t.preventDefault()}},dragstart:function(t,e,r){var n=t;if(Xs(r,n.target)&&!r.getConfig().readOnly){var o=A.toSlateNode(r,n.target),i=A.findPath(r,o);if(E.isVoid(r,o)||E.void(r,{at:i,voids:!0})){var a=E.range(r,i);N.select(r,a)}var u=n.dataTransfer;u!=null&&(e.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(t,e,r){var n=t;r.getConfig().readOnly||e.isDraggingInternally&&Xs(r,n.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,r){var n=t,o=n.dataTransfer;if(!r.getConfig().readOnly&&Xs(r,n.target)&&o!=null&&!(Vc&&Hc&&o.files.length>0)){n.preventDefault();var i=r.selection,a=A.findEventRange(r,n);N.select(r,a),e.isDraggingInternally&&(i&&N.delete(r,{at:i}),e.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},vQ=1,yQ=function(){function t(e){var r=this;this.id=vQ++,this.$textArea=null,this.$progressBar=B('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=B('<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=Mu(function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=A.findDocumentOrShadowRoot(s),p=d.activeElement,v=A.toDOMNode(s,s),y=d.getSelection();if(p===v?(u.latestElement=p,bu.set(s,!0)):bu.delete(s),!y)return N.deselect(s);var g=y.anchorNode,m=y.focusNode,h=gn(s,g)||w9(s,g),b=gn(s,m)||w9(s,m);if(h&&b){var w=A.toSlateRange(s,y,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(r,a)},100);var n=B(e);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,kn(function(){var a=r.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=iE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(l5(gQ,function(i,a){r.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Mu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){e.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):e.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),e.latestEditorSelection=r.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,r=e.getConfig().maxLength;if(r){var n=r-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},t.prototype.changeProgress=function(e){var r=this.$progressBar;r.css("width",e+"%"),e>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},t.prototype.changeViewState=function(){var e=this,r=this.editorInstance;fQ(this,r),function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}}(this,r),kn(function(){EN(e,r)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function tD(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&tD(e)}function eD(){return B('<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 DN(){return B('<div class="w-e-bar-divider"></div>')}function xN(t,e,r,n,o){if(o===void 0&&(o=!1),e){if(n){var i=cE?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(t.attr("data-tooltip",n),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=n?r+`
`+n:r;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}L5("match",function(t,e,r){return[function(n){var o=On(this),i=n==null?void 0:$u(n,t);return i?qt(i,n,o):new RegExp(n)[t](ie(o))},function(n){var o=Le(this),i=ie(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Nd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Nd(o,i))!==null;){var f=ie(s[0]);l[c]=f,f===""&&(o.lastIndex=R5(i,tc(o.lastIndex),u)),c++}return c===0?null:l}]});var rD=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=B(f);tD(p),d.append(p)}else d.text(u);xN(d,f,u,l,n),n&&f&&d.append(B('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",e),this.$elem.append(d),kn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),Qr(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=Qr(this),r=this.menu,n=r.getValue(e);r.exec(e,n)},t.prototype.setActive=function(){var e=Qr(this),r=this.$button,n="active";this.menu.isActive(e)?r.addClass(n):r.removeClass(n)},t.prototype.setDisabled=function(){var e=Qr(this),r=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),mQ=function(t){function e(r,n,o){return o===void 0&&(o=!1),t.call(this,r,n,o)||this}return rc(e,t),e.prototype.onButtonClick=function(){},e}(rD),nD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var r=uE.get(e);r==null&&(r=new Set,uE.set(e,r)),r.add(this),Rg.set(this,e)},t.prototype.renderContent=function(e){var r=this.$elem;r.empty(),r.append(e);var n=this.genSelfElem();n&&r.append(n)},t.prototype.appendTo=function(e){var r=this.$elem;e.append(r)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Rg.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Rg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),bQ=function(t){function e(r){var n=t.call(this,r)||this;return n.type="dropPanel",n.$elem=B('<div class="w-e-drop-panel"></div>'),n}return rc(e,t),e.prototype.genSelfElem=function(){return null},e}(nD),wQ=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=eD();i.$button.append(a)}return i}return rc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=Qr(this);if(this.dropPanel==null){var o=new bQ(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(rD),EQ=function(t){function e(r,n){n===void 0&&(n=0);var o=t.call(this,r)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return rc(e,t),e.prototype.genSelfElem=function(){var r=this,n=B('<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>'),o=Rg.get(this);return n.on("click",function(){r.hide(),o==null||o.restoreSelection()}),n},e.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},e}(nD);function Ur(t,e,r){var n=B('<label class="babel-container"></label>');n.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function DQ(t,e,r){var n=B('<label class="babel-container"></label>');n.append("<span>"+t+"</span>");var o=B('<textarea type="text" id="'+e+'" placeholder="'+(r||"")+'"></textarea>');return n.append(o),[n[0],o[0]]}function is(t,e){var r=B('<div class="button-container"></div>'),n=B('<button type="button" id="'+t+'">'+e+"</button>");return r.append(n),[r[0],n[0]]}var xQ=function(t){function e(r,n,o){o===void 0&&(o=!1);var i=t.call(this,r,n,o)||this;return i.$body=B("body"),i.modal=null,i.menu=n,i}return rc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var r=Qr(this),n=this.menu.getModalPositionNode(r);return ct.isElement(n)?Q5(r,n,"modal"):J5(r)},e.prototype.handleModal=function(){var r=Qr(this),n=this.menu;if(this.modal==null){var o=new EQ(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=Qr(this),i=this.menu;if(i.getModalContentElem!=null){var a=A.getTextarea(o),u=A.getToolbar(o),s=((u==null?void 0:u.getConfig())||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||mE(o,r.$elem),setTimeout(function(){o.blur()})}},e}(rD),CQ=function(t){function e(r,n){var o=t.call(this,r)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return rc(e,t),e.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=B("<ul></ul>");r.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=B('<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>');c.append(f),c.addClass("selected")}c.append(B('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),n.append(o)},e.prototype.genSelfElem=function(){return null},e}(nD),SQ=function(){function t(e,r,n){var o=this;n===void 0&&(n=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),xN(d,l,a,f,n),this.$elem.append(d),this.menu=r,kn(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),Qr(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,r=Qr(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new CQ(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var r=Qr(this),n=this.menu;n.exec&&n.exec(r,e)},t.prototype.setSelectedValue=function(){var e=Qr(this),r=this.menu,n=r.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(r.getOptions(e),n.toString()),i=this.$button,a=eD();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=Qr(this),r=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),D9=function(){function t(e){this.$elem=B('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=B('<div class="w-e-bar-item-menus-container"></div>'),this.$button=B('<button type="button"></button>');var r=e.key,n=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(n){var u=B(n);tD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",r);var s=eD();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var r=e.$elem;this.$container.append(r)},t.prototype.observe=function(e){var r=this.$container;e.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var i=r.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?n.addClass("disabled"):n.removeClass("disabled"),e.observe(o)}});return o},t}(),x9=new WeakMap;function Qr(t){var e=z5.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function CN(t,e,r){r===void 0&&(r=!1);var n=x9.get(e);if(n)return n;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;n=i?new wQ(t,e,r):a?new xQ(t,e,r):new mQ(t,e,r)}if(o==="select"&&(n=new SQ(t,e,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return x9.set(e,n),n}function AQ(t,e){var r=t.selection;return r!=null&&!L.isCollapsed(r)&&!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!ot.isText(e)}var OQ=function(){function t(){var e=this;this.$elem=B('<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=tj(function(){var r=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ct.isElement(i)&&r&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),kn(function(){var r=e.getEditorInstance(),n=e.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(r).$textAreaContainer.append(n),r.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.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},t.prototype.checkPositionBottom=function(){var e=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(r=!0),r?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;kn(function(){e.hoverbarItems.forEach(function(r){r.changeMenuState()})})},t.prototype.registerItems=function(e){var r=this,n=this.$elem;e.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var i=DN();n.append(i)}})},t.prototype.registerSingleItem=function(e){var r=this.getEditorInstance(),n=this.menus,o=n[e];if(o==null){var i=Rd[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),n[e]=o}var a=CN(e,o);this.hoverbarItems.push(a),z5.set(a,r),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ct.isElement(e)){var o=Q5(r,e,"bar");return n.css(o),void mE(r,n)}if(ot.isText(e))return o=J5(r),n.css(o),void mE(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(y,g){return A.checkNodeType(g,u)},p=Ht(E.nodes(e,{match:function(y){return d(e,y)},universal:!0}),1),v=p[0];if(v!=null)return n=v[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=aE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,r=e===void 0?{}:e,n=r.text;return n&&n.match==null&&(n.match=AQ),r},t.prototype.isSamePath=function(e,r){if(e==null||r==null)return!1;var n=A.findPath(null,e),o=A.findPath(null,r);return j.equals(n,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function SN(t,e,r,n){if(Ld.set(t,e),Il.set(t,r),ct.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return SN(u,s,t,n)}),E.isVoid(n,t)){var i=Ht(J.texts(t),1),a=Ht(i[0],1)[0];Ld.set(a,0),Il.set(a,t)}}}function kQ(t){var e=t.selector,r=e===void 0?"":e,n=t.config,o=n===void 0?{}:n,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var C=D[D.length-1];tl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var x of C)h.apply(x)})}),w.redos.pop(),w.undos.push(C)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var C=D[D.length-1];tl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var x=C.map($i.inverse).reverse();for(var O of x)h.apply(O)})}),w.redos.push(C),w.undos.pop()}},h.apply=w=>{var{operations:D,history:C}=h,{undos:x}=C,O=x[x.length-1],T=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,T),H=tl.isSaving(h),M=tl.isMerging(h);if(H==null&&(H=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!j.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!j.equals(U.path,W.path)))(w,T)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];x.push(K)}for(;x.length>100;)x.shift();(U=>U.type!=="set_selection")(w)&&(C.redos=[])}b(w)},h})(function(m){var h=m,b=h.insertText,w=h.insertNode,D=h.insertFragment,C=h.dangerouslyInsertHtml;return h.insertText=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<x.length?b(x.slice(0,O)):b(x))}else b(x)},h.insertNode=function(x){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<J.string(x).length||w(x)}else w(x)},h.insertFragment=function(x){if(h.getConfig().maxLength)if(x.length!==1)x.forEach(function(T){h.insertNode(T)});else{var O=x[0];if(A.getLeftLengthOfMaxLength(h)<J.string(O).length)return;D(x)}else D(x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x)if(h.getConfig().maxLength){var T=A.getLeftLengthOfMaxLength(h);if(!(T<=0)){var R=document.createElement("div");R.innerHTML=x;var H=Array.from(R.childNodes).reduce(function(M,K){var U=K.nodeType,W=K.nodeName;return K?U===po.TEXT_NODE?M+(K.textContent||""):U===po.ELEMENT_NODE?a9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");T<H.length||C(x,O)}}else C(x,O)},h}(function(m){var h=m;return h.on=function(b,w){var D=Mh(h);if(D.on(b,w),b==="destroyed"&&f9(h,w),b!=="destroyed"){var C=function(){return D.off(b,w)};D.on("destroyed",C),f9(h,C)}},h.once=function(b,w){Mh(h).once(b,w)},h.off=function(b,w){Mh(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var C=Mh(h);C.emit.apply(C,rE([b],Ht(w))),b==="destroyed"&&(QJ(h).forEach(function(x){return C.off("destroyed",x)}),tQ(h))},h}(function(m){var h=m;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=V1.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return J5(h)},h.getNodePosition=function(b){return Q5(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ht(L.edges(b),2),D=w[0],C=w[1],x=Ht(E.edges(h,[]),2),O=x[0],T=x[1];return!(!kt.equals(D,O)||!kt.equals(C,T))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,D=h.apply,C=h.deleteBackward;return h.insertText=function(x){h.getConfig().readOnly||w(x)},h.apply=function(x){var O,T,R,H,M,K,U,W,q=[];switch(x.type){case"insert_text":case"remove_text":case"set_node":try{for(var et=bn(E.levels(h,{at:x.path})),st=et.next();!st.done;st=et.next()){var ut=Ht(st.value,2),at=ut[0],k=ut[1],S=A.findKey(h,at);q.push([k,S])}}catch(It){O={error:It}}finally{try{st&&!st.done&&(T=et.return)&&T.call(et)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=bn(E.levels(h,{at:j.parent(x.path)})),$=P.next();!$.done;$=P.next()){var Y=Ht($.value,2);at=Y[0],k=Y[1],S=A.findKey(h,at),q.push([k,S])}}catch(It){R={error:It}}finally{try{$&&!$.done&&(H=P.return)&&H.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=bn(E.levels(h,{at:j.common(j.parent(x.path),j.parent(x.newPath))})),it=V.next();!it.done;it=V.next()){var gt=Ht(it.value,2);at=gt[0],k=gt[1],S=A.findKey(h,at),q.push([k,S])}}catch(It){M={error:It}}finally{try{it&&!it.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}D(x);try{for(var vt=bn(q),Dt=vt.next();!Dt.done;Dt=vt.next()){var G=Ht(Dt.value,2);k=G[0],S=G[1],at=Ht(E.node(h,k),1)[0],Mg.set(at,S)}}catch(It){U={error:It}}finally{try{Dt&&!Dt.done&&(W=vt.return)&&W.call(vt)}finally{if(U)throw U.error}}},h.deleteBackward=function(x){if(x!=="line")return C(x);if(m.selection&&L.isCollapsed(m.selection)){var O=E.above(m,{match:function(M){return E.isBlock(m,M)},at:m.selection});if(O){var T=Ht(O,2)[1],R=E.range(m,T,m.selection.anchor),H=function(M,K){var U=E.range(M,L.end(K)),W=Array.from(E.positions(M,{at:K})),q=0,et=W.length,st=Math.floor(et/2);if(Z7(M,E.range(M,W[q]),U))return E.range(M,W[q],U);if(W.length<2)return E.range(M,W[W.length-1],U);for(;st!==W.length&&st!==q;)Z7(M,E.range(M,W[st]),U)?et=st:q=st,st=Math.floor((q+et)/2);return E.range(M,W[et],U)}(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var x=h.selection;x!=null&&V1.set(h,x),h.emit("change"),b()},h.handleTab=function(){h.insertText("    ")},h.getHtml=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return fN(O,h)}).join("")},h.getText=function(){var x=h.children;return(x===void 0?[]:x).map(function(O){return J.string(O)}).join(`
`)},h.getSelectionText=function(){var x=h.selection;return x==null?"":E.string(m,x)},h.getElemsByType=function(x,O){var T,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=bn(M),U=K.next();!U.done;U=K.next()){var W=Ht(U.value,1)[0];if(ct.isElement(W)&&(O?W.type.indexOf(x)>=0:W.type===x)){var q=dN(A.findKey(h,W).id);H.push(mn(mn({},W),{id:q}))}}}catch(et){T={error:et}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(T)throw T.error}}return H},h.getElemsByTypePrefix=function(x){return h.getElemsByType(x,!0)},h.isEmpty=function(){var x=h.children,O=x===void 0?[]:x;if(O.length>1)return!1;var T=O[0];if(T==null)return!0;if(ct.isElement(T)&&T.type==="paragraph"){var R=T.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||ot.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(x){return A.getParentNode(h,x)},h.dangerouslyInsertHtml=function(x,O){if(x===void 0&&(x=""),O===void 0&&(O=!1),x){var T=document.createElement("div");T.innerHTML=x;var R=Array.from(T.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===po.TEXT_NODE||W===po.ELEMENT_NODE&&!a9.has(q.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),T.setAttribute("hidden","true"),document.body.appendChild(T);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,et=U.textContent,st=et===void 0?"":et;if(W!==po.TEXT_NODE)if(q!=="BR"){var ut=U,at=!1;if(pN.includes(q.toLowerCase()))at=!0;else for(var k in t0)if(ut.matches(k)){at=!0;break}if(at){var S=Y5(B(ut),h);return Array.isArray(S)?(S.forEach(function($){return u9(h,$)}),K++):(u9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(ut).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ut.innerHTML,!0)}else h.insertText(`
`);else{if(!st||!st.trim())return;h.insertNode({text:st})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),T.remove()}}}},h.setHtml=function(x){x===void 0&&(x="");var O=h.isDisabled(),T=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=n9(h,x);if(N.insertFragment(h,H),T||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch{h.select(E.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in Rd)b.push(w);return b},h.getConfig=function(){var b=A7.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h}(function(m){var h=zJ(sW());return h.id="wangEditor-"+qZ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),bu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=V1.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!bu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),bu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),oE.delete(h),iE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),Ly.delete(h),M5.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),Yv.delete(h),aE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=B("#"+b);if(D.length!==0){var C=D[0];if(!A.hasDOMNode(h,C))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,C);var x=A.getTextarea(h),O=x.$textAreaContainer,T=x.$scroll,R=D.offset().top,H=O.offset().top;T[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=uE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var C=D.css("z-index");D.attr("data-z-index",C.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(r&&function(m,h){return yN(m,"data-w-e-textarea",h)}(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=function(m){m===void 0&&(m={});var h=ej(Yj),b={},w=m.MENU_CONF,D=w===void 0?{}:w;return l5(h,function(C,x){b[x]=mn(mn({},C),D[x]||{})}),delete m.MENU_CONF,mn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(C,x){window.alert(x+`:
`+C)}},m)}(o);A7.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=n9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),r){var p=new yQ(r);oE.set(l,p),iE.set(p,l),p.changeViewState(),kn(function(){var m=p.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var v=void 0;Object.keys(d).length>0&&(v=new OQ,aE.set(v,l),Yv.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return SN(m,h,l,l)});var y=c.onCreated,g=c.onDestroyed;return y&&l.on("created",function(){return y(l)}),g&&l.on("destroyed",function(){return g(l)}),kn(function(){return l.emit("created")}),l}var BQ=Py("splice"),FQ=X.TypeError,TQ=Math.max,_Q=Math.min;De({target:"Array",proto:!0,forced:!BQ},{splice:function(t,e){var r,n,o,i,a,u,s=Sa(this),l=os(s),c=_l(t,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=_Q(TQ(Tp(e),0),l-c)),l+r-n>9007199254740991)throw FQ("Maximum allowed length exceeded");for(o=Dj(s,n),i=0;i<n;i++)(a=c+i)in s&&Pd(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var AN=function(){function t(e,r){var n=this;this.$toolbar=B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=tj(function(){n.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=r;var o=B(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),kn(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,r="",n=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=ej(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,y){f.splice(s.index+y,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,y){if(v==="|"){if(y===0||y+1===p||r==="|")return;var g=DN();return n.append(g),void(r=v)}if(typeof v=="string")return e.registerSingleItem(v,e),void(r=v);e.registerGroup(v),r="group"})},t.prototype.registerGroup=function(e){var r=this,n=this.$toolbar,o=function(l){return new D9(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||r.registerSingleItem(l,o)}),n.append(o.$elem)},t.prototype.registerSingleItem=function(e,r){var n=this.getEditorInstance(),o=r instanceof D9,i=this.menus,a=i[e];if(a==null){var u=Rd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
重复注册了菜单栏 menu '`+e+"'");var s=CN(e,a,o);this.toolbarItems.push(s),z5.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=M5.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),PQ=Ql.EXISTS,jQ=Jn.f,ON=Function.prototype,NQ=pt(ON.toString),kN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,IQ=pt(kN.exec);function oD(t){var e=t.server,r=e===void 0?"":e,n=t.fieldName,o=n===void 0?"":n,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,d=f!==void 0&&f,p=t.headers,v=p===void 0?{}:p,y=t.withCredentials,g=y!==void 0&&y,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,C=D===void 0?function(K,U){}:D,x=t.onError,O=x===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:x,T=t.onProgress,R=T===void 0?function(K){}:T;if(!r)throw new Error(`Cannot get upload server address
没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
没有配置 fieldName`);var H=r;d&&(H=function(K,U){var W=Ht(K.split("#"),2),q=W[0],et=W[1],st=[];l5(U,function(at,k){st.push(k+"="+at)});var ut=st.join("&");return q=q.indexOf("?")>0?q+"&"+ut:q+"?"+ut,et?q+"#"+et:q}(H,c));var M=new zf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(uY,{endpoint:H,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{C(K,q)}catch(et){console.error("wangEditor upload file - onSuccess error",et)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function Xi(t){return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xi(t)}function LQ(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ve(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){LQ(t,o,r[o])})}return t}function si(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C9(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function li(t,e,r){return e&&C9(t.prototype,e),r&&C9(t,r),t}function Uu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zd(t,e){if(e&&(Xi(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uu(t)}function Ll(t){return Ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ll(t)}function EE(t,e){return EE=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},EE(t,e)}function Ry(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&EE(t,e)}nr&&!PQ&&jQ(ON,"name",{configurable:!0,get:function(){try{return IQ(kN,NQ(this))[1]}catch{return""}}});var RQ={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Zo=new(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,t),this.init(e,r)}return li(t,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||RQ,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,r,n,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[r](e))}},{key:"create",value:function(e){return new t(this.logger,Ve({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),ga=function(){function t(){si(this,t),this.observers={}}return li(t,[{key:"on",value:function(e,r){var n=this;return e.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(e,r){this.observers[e]&&(r?this.observers[e]=this.observers[e].filter(function(n){return n!==r}):delete this.observers[e])}},{key:"emit",value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(n))})}}}]),t}();function Kc(){var t,e,r=new Promise(function(n,o){t=n,e=o});return r.resolve=t,r.reject=e,r}function S9(t){return t==null?"":""+t}function MQ(t,e,r){t.forEach(function(n){e[n]&&(r[n]=e[n])})}function iD(t,e,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!t[a]&&r&&(t[a]=new r),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:n(i.shift())}}function A9(t,e,r){var n=iD(t,e,Object);n.obj[n.k]=r}function r0(t,e){var r=iD(t,e),n=r.obj,o=r.k;if(n)return n[o]}function O9(t,e,r){var n=r0(t,r);return n!==void 0?n:r0(e,r)}function BN(t,e,r){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in t?typeof t[n]=="string"||t[n]instanceof String||typeof e[n]=="string"||e[n]instanceof String?r&&(t[n]=e[n]):BN(t[n],e[n],r):t[n]=e[n]);return t}function As(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var zQ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $Q(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return zQ[e]}):t}var My=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function FN(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var n=e.split(r),o=t,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?FN(s,l,r):void 0}o=o[n[i]]}return o}}var HQ=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return si(this,e),n=zd(this,Ll(e).call(this)),My&&ga.call(Uu(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Ry(e,ga),li(e,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=r0(this.data,s);return l||!u||typeof o!="string"?l:FN(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),A9(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=r0(this.data,s)||{};i?BN(l,o,a):l=Ve({},l,o),A9(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Ve({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),e}(),TN={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,r,n,o))}),e}},k9={},B9=function(t){function e(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return si(this,e),n=zd(this,Ll(e).call(this)),My&&ga.call(Uu(n)),MQ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Uu(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Zo.create("translator"),n}return Ry(e,ga),li(e,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(Xi(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(r,n),y=v&&v.res,g=v&&v.usedKey||s,m=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(y),b=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,C=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(D&&y&&C&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){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,y,Ve({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var x=h==="[object Array]",O=x?[]:{},T=x?m:g;for(var R in y)if(Object.prototype.hasOwnProperty.call(y,R)){var H="".concat(T).concat(a).concat(R);O[R]=this.translate(H,Ve({},n,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=y[R])}y=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(y=y.join(w))&&(y=this.extendTranslation(y,r,n,o));else{var M=!1,K=!1,U=n.count!==void 0&&typeof n.count!="string",W=e.hasDefaultValue(n),q=U?this.pluralResolver.getSuffix(f,n.count):"",et=n["defaultValue".concat(q)]||n.defaultValue;!this.isValidLookup(y)&&W&&(M=!0,y=et),this.isValidLookup(y)||(K=!0,y=s);var st=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ut=st&&K?void 0:y,at=W&&et!==y&&this.options.updateMissing;if(K||M||at){if(this.logger.log(at?"updateKey":"missingKey",f,c,s,at?et:y),a){var k=this.resolve(s,Ve({},n,{keySeparator:!1}));k&&k.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 S=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var $=0;$<P.length;$++)S.push(P[$]);else this.options.saveMissingTo==="all"?S=this.languageUtils.toResolveHierarchy(n.lng||this.language):S.push(n.lng||this.language);var Y=function(V,it,gt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,it,at?gt:ut,at,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,it,at?gt:ut,at,n),i.emit("missingKey",V,c,it,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(it){Y([V],s+it,n["defaultValue".concat(it)]||et)})}):Y(S,s,et))}y=this.extendTranslation(y,r,n,v,o),K&&y===s&&this.options.appendNamespaceToMissingKey&&(y="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Ve({},o,{interpolation:Ve({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Ve({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(n[0])),null):u.translate.apply(u,g.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return r!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(r=TN.handle(v,r,n,this.options&&this.options.postProcessPassResolved?Ve({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!s.isValidLookup(n)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",y=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(m){s.isValidLookup(n)||(u=m,!k9["".concat(g[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(k9["".concat(g[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" 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!!!")),g.forEach(function(h){if(!s.isValidLookup(n)){a=h;var b,w,D=d,C=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(C,d,h,m,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&y&&C.push(D+b),y&&C.push(D+="".concat(s.options.contextSeparator).concat(l.context)),v&&C.push(D+=b));w=C.pop();)s.isValidLookup(n)||(i=w,n=s.getResource(h,m,w,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),e}();function cb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var VQ=function(){function t(e){si(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zo.create("languageUtils")}return li(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var r=e.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var r=e.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=cb(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=cb(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=cb(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(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var r,n=this;return e?(e.forEach(function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&e.forEach(function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];var n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(n.formatLanguageCode(u))}),i}}]),t}(),UQ=[{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}],WQ={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function GQ(){var t={};return UQ.forEach(function(e){e.lngs.forEach(function(r){t[r]={numbers:e.nr,plurals:WQ[e.fc]}})}),t}var qQ=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,t),this.languageUtils=e,this.options=r,this.logger=Zo.create("pluralResolver"),this.rules=GQ()}return li(t,[{key:"addRule",value:function(e,r){this.rules[e]=r}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var r=this.getRule(e);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,r){return this.getSuffixes(e).map(function(n){return r+n})}},{key:"getSuffixes",value:function(e){var r=this,n=this.getRule(e);return n?n.numbers.map(function(o){return r.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,r){var n=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),KQ=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};si(this,t),this.logger=Zo.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(r){return r},this.init(e)}return li(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var r=e.interpolation;this.escape=r.escape!==void 0?r.escape:$Q,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?As(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?As(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?As(r.nestingPrefix):r.nestingPrefixEscaped||As("$t("),this.nestingSuffix=r.nestingSuffix?As(r.nestingSuffix):r.nestingSuffixEscaped||As(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.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 r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,r,n,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(y){return y.replace(/\$/g,"$$$$")}var f=function(y){if(y.indexOf(s.formatSeparator)<0){var g=O9(r,l,y);return s.alwaysFormat?s.format(g,void 0,n,Ve({},o,r,{interpolationkey:y})):g}var m=y.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(O9(r,l,h),b,n,Ve({},o,r,{interpolationkey:h}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(y){return c(y)}},{regex:this.regexp,safeValue:function(y){return s.escapeValue?c(s.escape(y)):c(y)}}];return v.forEach(function(y){for(u=0;i=y.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(e,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=S9(a));var m=y.safeValue(a);if(e=e.replace(i[0],m),p?(y.regex.lastIndex+=m.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ve({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var y=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(y[1]);d=y[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=Ve({},p,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),m),"".concat(d).concat(v).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(d){return d.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=S9(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,Ve({},a,{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),t}(),YQ=function(t){function e(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return si(this,e),i=zd(this,Ll(e).call(this)),My&&ga.call(Uu(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Zo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Ry(e,ga),li(e,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach(function(f){var d=!0;n.forEach(function(p){var v="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,d,p){var v=iD(c,f,Object),y=v.obj,g=v.k;y[g]=y[g]||[],y[g].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,r,n,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=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."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)})}},{key:"saveMissing",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" 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!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,Ve({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),e}();function XQ(){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(t){var e={};if(Xi(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),Xi(t[2])==="object"||Xi(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(n){e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function F9(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function $h(){}var ZQ=function(t){function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(si(this,e),r=zd(this,Ll(e).call(this)),My&&ga.call(Uu(r)),r.options=F9(n),r.services={},r.logger=Zo,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),zd(r,Uu(r));setTimeout(function(){r.init(n,o)},0)}return r}return Ry(e,ga),li(e,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.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=Ve({},XQ(),this.options,F9(n)),this.format=this.options.interpolation.format,o||(o=$h),!this.options.isClone){this.modules.logger?Zo.init(i(this.modules.logger),this.options):Zo.init(null,this.options);var a=new VQ(this.options);this.store=new HQ(this.options.resources,this.options);var u=this.services;u.logger=Zo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new qQ(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new KQ(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new YQ(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];r.emit.apply(r,[p].concat(y))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new B9(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];r.emit.apply(r,[p].concat(y))}),this.modules.external.forEach(function(p){p.init&&p.init(r)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments),r}});var f=Kc(),d=function(){var p=function(v,y){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(y),o(v,y)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$h,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=Kc();return r||(r=this.languages),n||(n=this.options.ns),o||(o=$h),this.services.backendConnector.reload(r,n,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&TN.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Kc();this.emit("languageChanging",r);var a=function(u){r||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(Xi(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=Ve({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",y=o?"".concat(o).concat(v).concat(s):s;return i.t(y,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?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 i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Kc();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Kc();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),n&&n(u)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["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(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$h,i=Ve({},this.options,n,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=r[s]}),a.services=Ve({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new B9(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),Rl=new ZQ;function _r(t,e){Rl.addResourceBundle(t,"translation",e,!0,!0)}function JQ(t){Rl.changeLanguage(t)}function QQ(t){return Rl.getResourceBundle(t,"translation")}Rl.init({lng:"zh-CN",resources:{}});var Q=Rl.t.bind(Rl);_r("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),_r("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var ttt=K3?{}.toString:function(){return"[object "+my(this)+"]"};K3||Iu(Object.prototype,"toString",ttt,{unsafe:!0});var T9=Array.isArray||function(t){return pu(t)=="Array"},_N=function(){},ett=[],PN=Dp("Reflect","construct"),aD=/^\s*(?:class|function)\b/,rtt=re(aD.exec),ntt=!aD.exec(_N),Yc=function(t){if(!er(t))return!1;try{return PN(_N,ett,t),!0}catch{return!1}},ott=!PN||ur(function(){var t;return Yc(Yc.call)||!Yc(Object)||!Yc(function(){t=!0})||t})?function(t){if(!er(t))return!1;switch(my(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ntt||!!rtt(aD,V3(t))}:Yc,itt=jr("species"),_9=Et.Array,att=function(t,e){return new(function(r){var n;return T9(r)&&(n=r.constructor,(ott(n)&&(n===_9||T9(n.prototype))||ho(n)&&(n=n[itt])===null)&&(n=void 0)),n===void 0?_9:n}(t))(e===0?0:e)},P9=re([].push),utt=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=M3(s),y=Y_(v),g=sP(l,c),m=yy(y),h=0,b=f||att,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:P9(w,d)}else switch(t){case 4:return!1;case 7:P9(w,d)}return i?-1:n||o?o:w}},stt={forEach:utt(0)}.forEach,ltt=function(t,e){var r=[][t];return!!r&&ur(function(){r.call(null,e||function(){throw 1},1)})}("forEach"),fb=ltt?[].forEach:function(t){return stt(this,t,arguments.length>1?arguments[1]:void 0)},jN=function(t){if(t&&t.forEach!==fb)try{Mr(t,"forEach",fb)}catch{t.forEach=fb}};for(var db in Dv)Dv[db]&&jN(Et[db]&&Et[db].prototype);jN(fP),_r("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"}}),_r("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 ctt={type:"paragraph",renderElem:function(t,e,r){return bt("p",null,e)}},n0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zy(t){var e={exports:{}};return t(e,e.exports),e.exports}var Si,zg,Hh=function(t){return t&&t.Math==Math&&t},St=Hh(typeof globalThis=="object"&&globalThis)||Hh(typeof window=="object"&&window)||Hh(typeof self=="object"&&self)||Hh(typeof n0=="object"&&n0)||function(){return this}()||Function("return this")(),xe=function(t){try{return!!t()}catch{return!0}},Xn=!xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Xc=Function.prototype.call,Ne=Xc.bind?Xc.bind(Xc):function(){return Xc.apply(Xc,arguments)},j9={}.propertyIsEnumerable,N9=Object.getOwnPropertyDescriptor,ftt=N9&&!j9.call({1:2},1)?function(t){var e=N9(this,t);return!!e&&e.enumerable}:j9,NN={f:ftt},uD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},IN=Function.prototype,DE=IN.bind,xE=IN.call,dtt=DE&&DE.bind(xE),yt=DE?function(t){return t&&dtt(xE,t)}:function(t){return t&&function(){return xE.apply(t,arguments)}},ptt=yt({}.toString),htt=yt("".slice),Zi=function(t){return htt(ptt(t),8,-1)},pb=St.Object,gtt=yt("".split),$y=xe(function(){return!pb("z").propertyIsEnumerable(0)})?function(t){return Zi(t)=="String"?gtt(t,""):pb(t)}:pb,vtt=St.TypeError,Bn=function(t){if(t==null)throw vtt("Can't call method on "+t);return t},nc=function(t){return $y(Bn(t))},Cr=function(t){return typeof t=="function"},vo=function(t){return typeof t=="object"?t!==null:Cr(t)},ytt=function(t){return Cr(t)?t:void 0},jp=function(t,e){return arguments.length<2?ytt(St[t]):St[t]&&St[t][e]},LN=yt({}.isPrototypeOf),hb=jp("navigator","userAgent")||"",I9=St.process,L9=St.Deno,R9=I9&&I9.versions||L9&&L9.version,M9=R9&&R9.v8;M9&&(zg=(Si=M9.split("."))[0]>0&&Si[0]<4?1:+(Si[0]+Si[1])),!zg&&hb&&(!(Si=hb.match(/Edge\/(\d+)/))||Si[1]>=74)&&(Si=hb.match(/Chrome\/(\d+)/))&&(zg=+Si[1]);var CE=zg,SE=!!Object.getOwnPropertySymbols&&!xe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&CE&&CE<41}),sD=SE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mtt=St.Object,gb=sD?function(t){return typeof t=="symbol"}:function(t){var e=jp("Symbol");return Cr(e)&&LN(e.prototype,mtt(t))},btt=St.String,RN=function(t){try{return btt(t)}catch{return"Object"}},wtt=St.TypeError,MN=function(t){if(Cr(t))return t;throw wtt(RN(t)+" is not a function")},Hy=function(t,e){var r=t[e];return r==null?void 0:MN(r)},Ett=St.TypeError,Dtt=Object.defineProperty,lD=function(t,e){try{Dtt(St,t,{value:e,configurable:!0,writable:!0})}catch{St[t]=e}return e},Ji=St["__core-js_shared__"]||lD("__core-js_shared__",{}),cD=zy(function(t){(t.exports=function(e,r){return Ji[e]||(Ji[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),xtt=St.Object,Np=function(t){return xtt(Bn(t))},Ctt=yt({}.hasOwnProperty),En=Object.hasOwn||function(t,e){return Ctt(Np(t),e)},Stt=0,Att=Math.random(),Ott=yt(1 .toString),zN=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Ott(++Stt+Att,36)},Zc=cD("wks"),Eu=St.Symbol,z9=Eu&&Eu.for,ktt=sD?Eu:Eu&&Eu.withoutSetter||zN,ln=function(t){if(!En(Zc,t)||!SE&&typeof Zc[t]!="string"){var e="Symbol."+t;SE&&En(Eu,t)?Zc[t]=Eu[t]:Zc[t]=sD&&z9?z9(e):ktt(e)}return Zc[t]},Btt=St.TypeError,Ftt=ln("toPrimitive"),fD=function(t){var e=function(r,n){if(!vo(r)||gb(r))return r;var o,i=Hy(r,Ftt);if(i){if(o=Ne(i,r,n),!vo(o)||gb(o))return o;throw Btt("Can't convert object to primitive value")}return function(a,u){var s,l;if(Cr(s=a.toString)&&!vo(l=Ne(s,a))||Cr(s=a.valueOf)&&!vo(l=Ne(s,a)))return l;throw Ett("Can't convert object to primitive value")}(r)}(t,"string");return gb(e)?e:e+""},AE=St.document,Ttt=vo(AE)&&vo(AE.createElement),dD=function(t){return Ttt?AE.createElement(t):{}},$N=!Xn&&!xe(function(){return Object.defineProperty(dD("div"),"a",{get:function(){return 7}}).a!=7}),$9=Object.getOwnPropertyDescriptor,pD={f:Xn?$9:function(t,e){if(t=nc(t),e=fD(e),$N)try{return $9(t,e)}catch{}if(En(t,e))return uD(!Ne(NN.f,t,e),t[e])}},_tt=St.String,Ptt=St.TypeError,en=function(t){if(vo(t))return t;throw Ptt(_tt(t)+" is not an object")},jtt=St.TypeError,H9=Object.defineProperty,oc={f:Xn?H9:function(t,e,r){if(en(t),e=fD(e),en(r),$N)try{return H9(t,e,r)}catch{}if("get"in r||"set"in r)throw jtt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Ml=Xn?function(t,e,r){return oc.f(t,e,uD(1,r))}:function(t,e,r){return t[e]=r,t},Ntt=yt(Function.toString);Cr(Ji.inspectSource)||(Ji.inspectSource=function(t){return Ntt(t)});var OE,o0,kE,hD=Ji.inspectSource,V9=St.WeakMap,Itt=Cr(V9)&&/native code/.test(hD(V9)),U9=cD("keys"),HN=function(t){return U9[t]||(U9[t]=zN(t))},gD={},W9=St.TypeError,Ltt=St.WeakMap;if(Itt||Ji.state){var $a=Ji.state||(Ji.state=new Ltt),Rtt=yt($a.get),G9=yt($a.has),Mtt=yt($a.set);OE=function(t,e){if(G9($a,t))throw new W9("Object already initialized");return e.facade=t,Mtt($a,t,e),e},o0=function(t){return Rtt($a,t)||{}},kE=function(t){return G9($a,t)}}else{var Os=HN("state");gD[Os]=!0,OE=function(t,e){if(En(t,Os))throw new W9("Object already initialized");return e.facade=t,Ml(t,Os,e),e},o0=function(t){return En(t,Os)?t[Os]:{}},kE=function(t){return En(t,Os)}}var BE={get:o0,enforce:function(t){return kE(t)?o0(t):OE(t,{})}},VN=Function.prototype,ztt=Xn&&Object.getOwnPropertyDescriptor,vb=En(VN,"name"),Vy={EXISTS:vb,PROPER:vb&&(function(){}).name==="something",CONFIGURABLE:vb&&(!Xn||Xn&&ztt(VN,"name").configurable)},$d=zy(function(t){var e=Vy.CONFIGURABLE,r=BE.get,n=BE.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Cr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!En(u,"name")||e&&u.name!==p)&&Ml(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==St?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ml(i,a,u)):f?i[a]=u:lD(a,u)})(Function.prototype,"toString",function(){return Cr(this)&&r(this).source||hD(this)})}),$tt=Math.ceil,Htt=Math.floor,ic=function(t){var e=+t;return e!=e||e===0?0:(e>0?Htt:$tt)(e)},Vtt=Math.max,Utt=Math.min,Hd=function(t,e){var r=ic(t);return r<0?Vtt(r+e,0):Utt(r,e)},Wtt=Math.min,Ip=function(t){return t>0?Wtt(ic(t),9007199254740991):0},Uy=function(t){return Ip(t.length)},q9=function(t){return function(e,r,n){var o,i=nc(e),a=Uy(i),u=Hd(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},UN={includes:q9(!0),indexOf:q9(!1)},Gtt=UN.indexOf,K9=yt([].push),WN=function(t,e){var r,n=nc(t),o=0,i=[];for(r in n)!En(gD,r)&&En(n,r)&&K9(i,r);for(;e.length>o;)En(n,r=e[o++])&&(~Gtt(i,r)||K9(i,r));return i},i0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],qtt=i0.concat("length","prototype"),Ktt={f:Object.getOwnPropertyNames||function(t){return WN(t,qtt)}},GN={f:Object.getOwnPropertySymbols},Ytt=yt([].concat),Xtt=jp("Reflect","ownKeys")||function(t){var e=Ktt.f(en(t)),r=GN.f;return r?Ytt(e,r(t)):e},Ztt=function(t,e){for(var r=Xtt(e),n=oc.f,o=pD.f,i=0;i<r.length;i++){var a=r[i];En(t,a)||n(t,a,o(e,a))}},Jtt=/#|\.prototype\./,Lp=function(t,e){var r=tet[Qtt(t)];return r==ret||r!=eet&&(Cr(e)?xe(e):!!e)},Qtt=Lp.normalize=function(t){return String(t).replace(Jtt,".").toLowerCase()},tet=Lp.data={},eet=Lp.NATIVE="N",ret=Lp.POLYFILL="P",net=Lp,oet=pD.f,Qe=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?St:l?St[u]||lD(u,{}):(St[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=oet(r,n))&&a.value:r[n],!net(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ztt(i,o)}(t.sham||o&&o.sham)&&Ml(i,"sham",!0),$d(r,n,i,t)}},Y9=yt(yt.bind),a0=Array.isArray||function(t){return Zi(t)=="Array"},qN={};qN[ln("toStringTag")]="z";var vD=String(qN)==="[object z]",iet=ln("toStringTag"),aet=St.Object,uet=Zi(function(){return arguments}())=="Arguments",yD=vD?Zi:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=aet(t),iet))=="string"?r:uet?Zi(e):(n=Zi(e))=="Object"&&Cr(e.callee)?"Arguments":n},KN=function(){},set=[],YN=jp("Reflect","construct"),mD=/^\s*(?:class|function)\b/,cet=yt(mD.exec),fet=!mD.exec(KN),Jc=function(t){if(!Cr(t))return!1;try{return YN(KN,set,t),!0}catch{return!1}},bD=!YN||xe(function(){var t;return Jc(Jc.call)||!Jc(Object)||!Jc(function(){t=!0})||t})?function(t){if(!Cr(t))return!1;switch(yD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fet||!!cet(mD,hD(t))}:Jc,det=ln("species"),X9=St.Array,pet=function(t,e){return new(function(r){var n;return a0(r)&&(n=r.constructor,(bD(n)&&(n===X9||a0(n.prototype))||vo(n)&&(n=n[det])===null)&&(n=void 0)),n===void 0?X9:n}(t))(e===0?0:e)},Z9=yt([].push),Vh=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Np(s),y=$y(v),g=function(D,C){return MN(D),C===void 0?D:Y9?Y9(D,C):function(){return D.apply(C,arguments)}}(l,c),m=Uy(y),h=0,b=f||pet,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:Z9(w,d)}else switch(t){case 4:return!1;case 7:Z9(w,d)}return i?-1:n||o?o:w}},Wy={forEach:Vh(0),map:Vh(1),filter:Vh(2),find:Vh(5)},het=ln("species"),wD=function(t){return CE>=51||!xe(function(){var e=[];return(e.constructor={})[het]=function(){return{foo:1}},e[t](Boolean).foo!==1})},get=Wy.filter;Qe({target:"Array",proto:!0,forced:!wD("filter")},{filter:function(t){return get(this,t,arguments.length>1?arguments[1]:void 0)}});var vet=vD?{}.toString:function(){return"[object "+yD(this)+"]"};vD||$d(Object.prototype,"toString",vet,{unsafe:!0});var Uh,yet=St.String,Ee=function(t){if(yD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yet(t)},XN=function(){var t=en(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ED=St.RegExp,FE=xe(function(){var t=ED("a","y");return t.lastIndex=2,t.exec("abcd")!=null});FE||xe(function(){return!ED("a","y").sticky});var ZN={BROKEN_CARET:FE||xe(function(){var t=ED("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:FE},cl=Object.keys||function(t){return WN(t,i0)},met=Xn?Object.defineProperties:function(t,e){en(t);for(var r,n=nc(e),o=cl(e),i=o.length,a=0;i>a;)oc.f(t,r=o[a++],n[r]);return t},bet=jp("document","documentElement"),JN=HN("IE_PROTO"),yb=function(){},QN=function(t){return"<script>"+t+"<\/script>"},J9=function(t){t.write(QN("")),t.close();var e=t.parentWindow.Object;return t=null,e},$g=function(){try{Uh=new ActiveXObject("htmlfile")}catch{}var t,e;$g=typeof document<"u"?document.domain&&Uh?J9(Uh):((e=dD("iframe")).style.display="none",bet.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(QN("document.F=Object")),t.close(),t.F):J9(Uh);for(var r=i0.length;r--;)delete $g.prototype[i0[r]];return $g()};gD[JN]=!0;var Q9,mb,tI=Object.create||function(t,e){var r;return t!==null?(yb.prototype=en(t),r=new yb,yb.prototype=null,r[JN]=t):r=$g(),e===void 0?r:met(r,e)},wet=St.RegExp,Eet=xe(function(){var t=wet(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Det=St.RegExp,xet=xe(function(){var t=Det("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Cet=BE.get,Aet=cD("native-string-replace",String.prototype.replace),u0=RegExp.prototype.exec,TE=u0,Oet=yt("".charAt),ket=yt("".indexOf),Bet=yt("".replace),bb=yt("".slice),wb=(mb=/b*/g,Ne(u0,Q9=/a/,"a"),Ne(u0,mb,"a"),Q9.lastIndex!==0||mb.lastIndex!==0),tO=ZN.BROKEN_CARET,Eb=/()??/.exec("")[1]!==void 0;(wb||Eb||tO||Eet||xet)&&(TE=function(t){var e,r,n,o,i,a,u,s=this,l=Cet(s),c=Ee(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ne(TE,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=tO&&s.sticky,v=Ne(XN,s),y=s.source,g=0,m=c;if(p&&(v=Bet(v,"y",""),ket(v,"g")===-1&&(v+="g"),m=bb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Oet(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),Eb&&(r=new RegExp("^"+y+"$(?!\\s)",v)),wb&&(n=s.lastIndex),o=Ne(u0,p?r:s,m),p?o?(o.input=bb(o.input,g),o[0]=bb(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wb&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Eb&&o&&o.length>1&&Ne(Aet,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=tI(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Vd=TE;Qe({target:"RegExp",proto:!0,forced:/./.exec!==Vd},{exec:Vd});var DD=Function.prototype,eO=DD.apply,Fet=DD.bind,rO=DD.call,eI=typeof Reflect=="object"&&Reflect.apply||(Fet?rO.bind(eO):function(){return rO.apply(eO,arguments)}),Tet=ln("species"),Db=RegExp.prototype,xD=function(t,e,r,n){var o=ln(t),i=!xe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!xe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Tet]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=yt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=yt(l),y=c.exec;return y===Vd||y===Db.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});$d(String.prototype,t,s[0]),$d(Db,o,s[1])}n&&Ml(Db[o],"sham",!0)},_et=yt("".charAt),nO=yt("".charCodeAt),Pet=yt("".slice),jet=function(t){return function(e,r){var n,o,i=Ee(Bn(e)),a=ic(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=nO(i,a))<55296||n>56319||a+1===u||(o=nO(i,a+1))<56320||o>57343?t?_et(i,a):n:t?Pet(i,a,a+2):o-56320+(n-55296<<10)+65536}},Net=jet(!0),CD=function(t,e,r){return e+(r?Net(t,e).length:1)},Iet=Math.floor,xb=yt("".charAt),Let=yt("".replace),Cb=yt("".slice),Ret=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Met=/\$([$&'`]|\d{1,2})/g,zet=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Met;return o!==void 0&&(o=Np(o),s=Ret),Let(i,s,function(l,c){var f;switch(xb(c,0)){case"$":return"$";case"&":return t;case"`":return Cb(e,0,r);case"'":return Cb(e,a);case"<":f=o[Cb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Iet(d/10);return p===0?l:p<=u?n[p-1]===void 0?xb(c,1):n[p-1]+xb(c,1):l}f=n[d-1]}return f===void 0?"":f})},$et=St.TypeError,Ud=function(t,e){var r=t.exec;if(Cr(r)){var n=Ne(r,t,e);return n!==null&&en(n),n}if(Zi(t)==="RegExp")return Ne(Vd,t,e);throw $et("RegExp#exec called on incompatible receiver")},_E=ln("replace"),Het=Math.max,Vet=Math.min,Uet=yt([].concat),Sb=yt([].push),oO=yt("".indexOf),iO=yt("".slice),Wet="a".replace(/./,"$0")==="$0",aO=!!/./[_E]&&/./[_E]("a","$0")==="";xD("replace",function(t,e,r){var n=aO?"$":"$0";return[function(o,i){var a=Bn(this),u=o==null?void 0:Hy(o,_E);return u?Ne(u,o,a,i):Ne(e,Ee(a),o,i)},function(o,i){var a=en(this),u=Ee(o);if(typeof i=="string"&&oO(i,n)===-1&&oO(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Cr(i);l||(i=Ee(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Ud(a,u);if(p===null||(Sb(d,p),!c))break;Ee(p[0])===""&&(a.lastIndex=CD(u,Ip(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=Ee((p=d[m])[0]),b=Het(Vet(ic(p.index),u.length),0),w=[],D=1;D<p.length;D++)Sb(w,(v=p[D])===void 0?v:String(v));var C=p.groups;if(l){var x=Uet([h],w,b,u);C!==void 0&&Sb(x,C);var O=Ee(eI(i,void 0,x))}else O=zet(h,u,b,w,C,i);b>=g&&(y+=iO(u,g,b)+O,g=b+h.length)}return y+iO(u,g)}]},!!xe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Wet||aO);var PE=ln("unscopables"),jE=Array.prototype;jE[PE]==null&&oc.f(jE,PE,{configurable:!0,value:tI(null)});var rI=function(t){jE[PE][t]=!0},Get=Wy.find,uO=!0;"find"in[]&&Array(1).find(function(){uO=!1}),Qe({target:"Array",proto:!0,forced:uO},{find:function(t){return Get(this,t,arguments.length>1?arguments[1]:void 0)}}),rI("find");var qet=ln("match"),nI=function(t){var e;return vo(t)&&((e=t[qet])!==void 0?!!e:Zi(t)=="RegExp")},Ket=St.TypeError,Yet=ln("species"),oI=function(t,e,r){var n=fD(e);n in t?oc.f(t,n,uD(0,r)):t[n]=r},Xet=St.Array,Zet=Math.max,sO=function(t,e,r){for(var n=Uy(t),o=Hd(e,n),i=Hd(r===void 0?n:r,n),a=Xet(Zet(i-o,0)),u=0;o<i;o++,u++)oI(a,u,t[o]);return a.length=u,a},ks=ZN.UNSUPPORTED_Y,Jet=Math.min,iI=[].push,Qet=yt(/./.exec),Bs=yt(iI),Qc=yt("".slice);xD("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ee(Bn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!nI(o))return Ne(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Ne(Vd,v,a))&&!((l=v.lastIndex)>p&&(Bs(f,Qc(a,p,s.index)),s.length>1&&s.index<a.length&&eI(iI,f,sO(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&Qet(v,"")||Bs(f,""):Bs(f,Qc(a,p)),f.length>u?sO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ne(e,this,o,i)}:e,[function(o,i){var a=Bn(this),u=o==null?void 0:Hy(o,t);return u?Ne(u,o,a,i):Ne(n,Ee(a),o,i)},function(o,i){var a=en(this),u=Ee(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(w,D){var C,x=en(w).constructor;return x===void 0||(C=en(x)[Yet])==null?D:function(O){if(bD(O))return O;throw Ket(RN(O)+" is not a constructor")}(C)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ks?"g":"y"),d=new l(ks?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Ud(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=ks?0:y;var m,h=Ud(d,ks?Qc(u,y):u);if(h===null||(m=Jet(Ip(d.lastIndex+(ks?y:0)),u.length))===v)y=CD(u,y,c);else{if(Bs(g,Qc(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Bs(g,h[b]),g.length===p)return g;y=v=m}}return Bs(g,Qc(u,v)),g}]},!!xe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),ks);var NE=`	
\v\f\r                 \u2028\u2029\uFEFF`,lO=yt("".replace),s0="["+NE+"]",trt=RegExp("^"+s0+s0+"*"),ert=RegExp(s0+s0+"*$"),rrt=function(t){return function(e){var r=Ee(Bn(e));return 1&t&&(r=lO(r,trt,"")),2&t&&(r=lO(r,ert,"")),r}},nrt={trim:rrt(3)},ort=Vy.PROPER,irt=nrt.trim;function SD(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function ac(t){return t.length===0?"":t[0].outerHTML}function uc(t){return t.length?t[0].tagName.toLowerCase():""}function qn(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===e&&(r=u[1].trim())}}return r}Qe({target:"String",proto:!0,forced:xe(function(){return!!NE.trim()||"​…᠎".trim()!=="​…᠎"||ort&&NE.trim.name!=="trim"})},{trim:function(){return irt(this)}}),Qe({global:!0},{globalThis:St}),Nv&&(B.fn.css=Nv),An&&(B.fn.append=An),XS&&(B.fn.prepend=XS),El&&(B.fn.addClass=El),Dl&&(B.fn.removeClass=Dl),xl&&(B.fn.hasClass=xl),Ao&&(B.fn.on=Ao),GS&&(B.fn.off=GS),pa&&(B.fn.focus=pa),Sn&&(B.fn.attr=Sn),Tv&&(B.fn.removeAttr=Tv),Sl&&(B.fn.hide=Sl),jv&&(B.fn.show=jv),Rv&&(B.fn.parents=Rv),Cl&&(B.fn.dataset=Cl),So&&(B.fn.val=So),Lv&&(B.fn.text=Lv),da&&(B.fn.html=da),kl&&(B.fn.children=kl),Bl&&(B.fn.remove=Bl),Ol&&(B.fn.find=Ol),_v&&(B.fn.width=_v),Pv&&(B.fn.height=Pv),KS&&(B.fn.filter=KS),Fl&&(B.fn.empty=Fl);var art={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},IE=function(t,e){return IE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},IE(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}IE(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var va=function(){return va=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},va.apply(this,arguments)};function Oa(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function ka(t,e){var r,n,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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function aI(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function cO(t){var e=Yt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var r=e[0];if(!ct.isElement(r)||r.type==="paragraph"||J.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!ot.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var urt={renderElems:[ctt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[art],editorPlugin:function(t){var e=t.deleteBackward,r=t.deleteForward;t.insertText,t.insertBreak;var n=t;return n.deleteBackward=function(o){cO(n)||e(o)},n.deleteForward=function(o){cO(n)||r(o)},n}},srt=/"/g,lrt=yt("".replace),Uf=function(t,e,r,n){var o=Ee(Bn(t)),i="<"+e;return r!==""&&(i+=" "+r+'="'+lrt(Ee(n),srt,"&quot;")+'"'),i+">"+o+"</"+e+">"},Wf=function(t){return xe(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function Ab(t,e){var r=e,n=t,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Ha(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}Qe({target:"String",proto:!0,forced:Wf("bold")},{bold:function(){return Uf(this,"b","","")}}),Qe({target:"String",proto:!0,forced:Wf("italics")},{italics:function(){return Uf(this,"i","","")}}),Qe({target:"String",proto:!0,forced:Wf("sub")},{sub:function(){return Uf(this,"sub","","")}}),Qe({target:"String",proto:!0,forced:Wf("sup")},{sup:function(){return Uf(this,"sup","","")}});var fO={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},Ob=dD("span").classList,dO=Ob&&Ob.constructor&&Ob.constructor.prototype,crt=dO===Object.prototype?void 0:dO,uI=function(t,e){var r=[][t];return!!r&&xe(function(){r.call(null,e||function(){throw 1},1)})},frt=Wy.forEach,kb=uI("forEach")?[].forEach:function(t){return frt(this,t,arguments.length>1?arguments[1]:void 0)},sI=function(t){if(t&&t.forEach!==kb)try{Ml(t,"forEach",kb)}catch{t.forEach=kb}};for(var Bb in fO)fO[Bb]&&sI(St[Bb]&&St[Bb].prototype);function lI(t,e){return t.selection==null||!!Yt(E.nodes(t,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(t,r)},universal:!0}),1)[0]}function drt(t,e){Object.keys(e).forEach(function(r){r!=="text"&&E.removeMark(t,r)})}sI(crt),Qe({target:"Object",stat:!0,forced:xe(function(){cl(1)})},{keys:function(t){return cl(Np(t))}});var as=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var r=this.mark,n=E.marks(e);return n?n[r]:!!Yt(E.nodes(e,{match:function(o){return o[r]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return lI(e,this.mark)},t.prototype.exec=function(e,r){var n=this.mark,o=this.marksNeedToRemove;r?e.removeMark(n):(e.addMark(n,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),prt='<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>',hrt='<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>',grt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',vrt='<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>',yrt='<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>',cI='<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>',fI='<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>',mrt='<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>',brt='<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>',wrt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Ert='<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>',Drt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',xrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Crt='<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>',Srt='<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>',Art='<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>',Ort='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',krt='<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>',Brt='<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>',Frt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="bold",r.title=Q("textStyle.bold"),r.iconSvg=prt,r.hotkey="mod+b",r}return be(e,t),e}(as),Trt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="code",r.title=Q("textStyle.code"),r.iconSvg=yrt,r.hotkey="mod+e",r}return be(e,t),e}(as),_rt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="italic",r.title=Q("textStyle.italic"),r.iconSvg=grt,r.hotkey="mod+i",r}return be(e,t),e}(as),Prt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="through",r.title=Q("textStyle.through"),r.iconSvg=vrt,r.hotkey="mod+shift+x",r}return be(e,t),e}(as),jrt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="underline",r.title=Q("textStyle.underline"),r.iconSvg=hrt,r.hotkey="mod+u",r}return be(e,t),e}(as),Nrt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=Q("textStyle.sub"),r.iconSvg=Brt,r.hotkey="",r}return be(e,t),e}(as),Irt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=Q("textStyle.sup"),r.iconSvg=krt,r.hotkey="",r}return be(e,t),e}(as),Lrt=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return lI(e)},t.prototype.exec=function(e,r){var n,o,i=E.nodes(e,{match:function(s){return ot.isText(s)},universal:!0});try{for(var a=aI(i),u=a.next();!u.done;u=a.next())drt(e,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},t}(),Rrt={renderStyle:function(t,e){var r=t,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=e;return n&&(c=bt("strong",null,c)),a&&(c=bt("code",null,c)),o&&(c=bt("em",null,c)),i&&(c=bt("u",null,c)),u&&(c=bt("s",null,c)),s&&(c=bt("sub",null,c)),l&&(c=bt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Frt}},{key:"underline",factory:function(){return new jrt}},{key:"italic",factory:function(){return new _rt}},{key:"through",factory:function(){return new Prt}},{key:"code",factory:function(){return new Trt}},{key:"sub",factory:function(){return new Nrt}},{key:"sup",factory:function(){return new Irt}},{key:"clearStyle",factory:function(){return new Lrt}}],styleToHtml:function(t,e){if(!ot.isText(t))return e;if(SD(e))return Ab(t,e);var r=B(e);if(uc(r)==="br")return Ab(t,"<br>");var n=r.html();return n=Ab(t,n),r.html(n),ac(r)},parseStyleHtml:function(t,e,r){var n=B(t);if(!ot.isText(e))return e;var o=e;return Ha(n,"b,strong")&&(o.bold=!0),Ha(n,"i,em")&&(o.italic=!0),Ha(n,"u")&&(o.underline=!0),Ha(n,"s,strike")&&(o.through=!0),Ha(n,"sub")&&(o.sub=!0),Ha(n,"sup")&&(o.sup=!0),Ha(n,"code")&&(o.code=!0),o}};function Rp(t){return function(e,r,n){return bt("h"+t,null,r)}}var Mrt={type:"header1",renderElem:Rp(1)},zrt={type:"header2",renderElem:Rp(2)},$rt={type:"header3",renderElem:Rp(3)},Hrt={type:"header4",renderElem:Rp(4)},Vrt={type:"header5",renderElem:Rp(5)},Urt=Vy.PROPER,LE=RegExp.prototype,dI=LE.toString,Wrt=yt(XN),Grt=xe(function(){return dI.call({source:"a",flags:"b"})!="/a/b"}),qrt=Urt&&dI.name!="toString";(Grt||qrt)&&$d(RegExp.prototype,"toString",function(){var t=en(this),e=Ee(t.source),r=t.flags;return"/"+e+"/"+Ee(r===void 0&&LN(LE,t)&&!("flags"in LE)?Wrt(t):r)},{unsafe:!0});var Fb,Krt=St.TypeError,pI=function(t){if(nI(t))throw Krt("The method doesn't accept regular expressions");return t},Yrt=ln("match"),hI=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Yrt]=!1,"/./"[t](e)}catch{}}return!1},Xrt=pD.f,pO=yt("".startsWith),Zrt=yt("".slice),Jrt=Math.min,hO=hI("startsWith");function gI(t){var e=Yt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),r=e[0];if(r==null)return"paragraph";var n=Yt(r,1)[0];return A.getNodeType(n)}function vI(t){return t.selection==null||!Yt(E.nodes(t,{match:function(e){var r=A.getNodeType(e);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function yI(t,e){e&&N.setNodes(t,{type:e})}Qe({target:"String",proto:!0,forced:!(!hO&&(Fb=Xrt(String.prototype,"startsWith"),Fb&&!Fb.writable)||hO)},{startsWith:function(t){var e=Ee(Bn(this));pI(t);var r=Ip(Jrt(arguments.length>1?arguments[1]:void 0,e.length)),n=Ee(t);return pO?pO(e,n,r):Zrt(e,r,r+n.length)===n}});var Qrt=function(){function t(){this.title=Q("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 t.prototype.getOptions=function(e){var r=[{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:Q("header.text")}],n=this.getValue(e).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return gI(e)},t.prototype.isDisabled=function(e){return vI(e)},t.prototype.exec=function(e,r){yI(e,r.toString())},t}(),Mp=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return gI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return vI(e)},t.prototype.exec=function(e,r){var n=this.type;yI(e,r===n?"paragraph":n)},t}(),tnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return be(e,t),e}(Mp),ent=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return be(e,t),e}(Mp),rnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return be(e,t),e}(Mp),nnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return be(e,t),e}(Mp),ont=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return be(e,t),e}(Mp),int={key:"headerSelect",factory:function(){return new Qrt}},ant={key:"header1",factory:function(){return new tnt}},unt={key:"header2",factory:function(){return new ent}},snt={key:"header3",factory:function(){return new rnt}},lnt={key:"header4",factory:function(){return new nnt}},cnt={key:"header5",factory:function(){return new ont}};function tf(t){return function(e,r){return"<h"+t+">"+r+"</h"+t+">"}}function ef(t){return function(e,r,n){var o=B(e);return(r=r.filter(function(i){return!!ot.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:r}}}var fnt={renderElems:[Mrt,zrt,$rt,Hrt,Vrt],elemsToHtml:[{type:"header1",elemToHtml:tf(1)},{type:"header2",elemToHtml:tf(2)},{type:"header3",elemToHtml:tf(3)},{type:"header4",elemToHtml:tf(4)},{type:"header5",elemToHtml:tf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:ef(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:ef(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:ef(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:ef(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:ef(5)}],menus:[int,ant,unt,snt,lnt,cnt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var r=t;return r.insertBreak=function(){var n=Yt(E.nodes(r,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&A.isSelectionAtLineEnd(t,n[1])?N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},r}},Fs=Object.assign,gO=Object.defineProperty,dnt=yt([].concat),vO=!Fs||xe(function(){if(Xn&&Fs({b:1},Fs(gO({},"a",{enumerable:!0,get:function(){gO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Fs({},t)[r]!=7||cl(Fs({},e)).join("")!=n})?function(t,e){for(var r=Np(t),n=arguments.length,o=1,i=GN.f,a=NN.f;n>o;)for(var u,s=$y(arguments[o++]),l=i?dnt(cl(s),i(s)):cl(s),c=l.length,f=0;c>f;)u=l[f++],Xn&&!Ne(a,s,u)||(r[u]=s[u]);return r}:Fs;function Wu(t,e){t.data==null&&(t.data={});var r=t.data;r.style==null&&(r.style={}),Object.assign(r.style,e)}Qe({target:"Object",stat:!0,forced:Object.assign!==vO},{assign:vO});var pnt={selector:"font",preParseHtml:function(t){var e=B(t);if(uc(e)!=="font")return t;var r=e.attr("color")||"";return r&&(e.removeAttr("color"),e.css("color",r)),e[0]}},mI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){var r=this.mark,n=E.marks(e);return n&&n[r]?n[r]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(E.nodes(e,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var r=this.mark;if(this.$content==null){var n=B('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?E.removeMark(e,r):E.addMark(e,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(r).colors;(a===void 0?[]:a).forEach(function(l){var c=B('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=B('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";r==="color"&&(u=Q("color.default")),r==="bgColor"&&(u=Q("color.clear"));var s=B(`
      <li data-value="0" class="clear">
        <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>
        `+u+`
      </li>
    `);return o.prepend(s),o[0]},t}(),hnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("color.color"),r.iconSvg=mrt,r.mark="color",r}return be(e,t),e}(mI),gnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("color.bgColor"),r.iconSvg=brt,r.mark="bgColor",r}return be(e,t),e}(mI),yO=["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)"],vnt={renderStyle:function(t,e){var r=t,n=r.color,o=r.bgColor,i=e;return n&&Wu(i,{color:n}),o&&Wu(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var r,n=t,o=n.color,i=n.bgColor;return o||i?((SD(e)||uc(r=B(e))!=="span")&&(r=B("<span>"+e+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),ac(r)):e},preParseHtml:[pnt],parseStyleHtml:function(t,e,r){var n=B(t);if(!ot.isText(e))return e;var o=e,i=qn(n,"color");i&&(o.color=i);var a=qn(n,"background-color");return a||(a=qn(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new hnt},config:{colors:yO}},{key:"bgColor",factory:function(){return new gnt},config:{colors:yO}}]},ynt=/^(?:\w+:)?\/\/(\S+)$/,mnt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,bnt=/^[^\s\.]+\.\S{2,}$/,wnt=UN.includes;function Gy(t){return t===void 0&&(t="r"),t+"-"+zP()}function AD(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function bI(t,e,r,n){return Oa(this,void 0,void 0,function(){var o,i;return ka(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function wI(t,e,r){return Oa(this,void 0,void 0,function(){var n;return ka(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function OD(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var r=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(r)||void 0})}function Tb(t,e){return{type:"link",url:AD(t),children:e?[{text:e}]:[]}}function EI(t,e,r){return Oa(this,void 0,void 0,function(){var n,o,i;return ka(this,function(a){switch(a.label){case 0:return r?(e||(e=r),t.restoreSelection(),OD(t)?[2]:[4,bI("insertLink",t,e,r)]):[2];case 1:return a.sent()?[4,wI("insertLink",t,r)]:[2];case 2:return n=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=Tb(n,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=Tb(n,e),N.insertNodes(t,i)):(i=Tb(n),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}Qe({target:"Array",proto:!0},{includes:function(t){return wnt(this,t,arguments.length>1?arguments[1]:void 0)}}),rI("includes");var Ent={type:"link",renderElem:function(t,e,r){var n=t,o=n.url,i=n.target;return bt("a",{href:o,target:i===void 0?"_blank":i},e)}},Dnt={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:e}}};function _b(){return Gy("w-e-insert-link")}var xnt=function(){function t(){this.title=Q("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=_b(),this.urlInputId=_b(),this.buttonId=_b()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return OD(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=e.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=Yt(Ur(Q("link.text"),o),2),s=u[0],l=B(u[1]),c=Yt(Ur(Q("link.url"),i),2),f=c[0],d=B(c[1]),p=Yt(is(a,Q("common.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(m){m.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();EI(e,h,b),e.hidePanelOrModal()}),this.$content=v}var y=this.$content;if(y.empty(),y.append(s),y.append(f),y.append(p),r==null||L.isCollapsed(r))l.val("");else{var g=E.string(e,r);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),y[0]},t}();function mO(){return Gy("w-e-update-link")}var Cnt=function(){function t(){this.title=Q("link.edit"),this.iconSvg=cI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=mO(),this.buttonId=mO()}return t.prototype.getSelectedLinkElem=function(e){var r=A.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var r=this.urlInputId,n=this.buttonId,o=Yt(Ur(Q("link.url"),r),2),i=o[0],a=B(o[1]),u=Yt(is(n,Q("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var d=A.getSelectedNodeByType(e,"link"),p=d?J.string(d):"",v=s.find("#"+r).val();(function(y,g,m){Oa(this,void 0,void 0,function(){var h,b;return ka(this,function(w){switch(w.label){case 0:return m?[4,bI("editLink",y,g,m)]:[2];case 1:return w.sent()?[4,wI("editLink",y,m)]:[2];case 2:return h=w.sent(),b={url:AD(h)},N.setNodes(y,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,p,v),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),Snt=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||N.unwrapNodes(e,{match:function(n){return A.checkNodeType(n,"link")}})},t}(),Ant=function(){function t(){this.title=Q("link.view"),this.iconSvg=fI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var r=A.getSelectedNodeByType(e,"link");return r??null},t.prototype.getValue=function(e){var r=this.getSelectedLinkElem(e);return r&&r.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},t}(),bO={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},Ont={renderElems:[Ent],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var r=t,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[Dnt],menus:[{key:"insertLink",factory:function(){return new xnt},config:bO},{key:"editLink",factory:function(){return new Cnt},config:bO},{key:"unLink",factory:function(){return new Snt}},{key:"viewLink",factory:function(){return new Ant}}],editorPlugin:function(t){var e=t.isInline,r=t.insertData,n=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(ynt);if(!c)return!1;var f=c[1];return!(!f||!mnt.test(f)&&!bnt.test(f))}(a)){if(!OD(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);EI(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?n([u,s]):J.string(u)===""?N.removeNodes(o,{at:s}):n([u,s])},o}},knt=yt(1 .valueOf),Bnt=St.RangeError,Fnt=St.RangeError,DI=St.String,xI=Math.floor,RE=yt(function(t){var e=Ee(Bn(this)),r="",n=ic(t);if(n<0||n==1/0)throw Bnt("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r}),wO=yt("".slice),rf=yt(1 .toFixed),rl=function(t,e,r){return e===0?r:e%2==1?rl(t,e-1,r*t):rl(t*t,e/2,r)},Ts=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=xI(o/1e7)},Pb=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=xI(n/e),n=n%e*1e7},EO=function(t){for(var e=6,r="";--e>=0;)if(r!==""||e===0||t[e]!==0){var n=DI(t[e]);r=r===""?n:r+RE("0",7-n.length)+n}return r};function DO(t,e){return"w-e-image-container-"+A.findKey(t,e).id}Qe({target:"Number",proto:!0,forced:xe(function(){return rf(8e-5,3)!=="0.000"||rf(.9,0)!=="1"||rf(1.255,2)!=="1.25"||rf(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!xe(function(){rf({})})},{toFixed:function(t){var e,r,n,o,i=knt(this),a=ic(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Fnt("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return DI(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(e=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*rl(2,69,1))-69)<0?i*rl(2,-e,1):i/rl(2,e,1),r*=4503599627370496,(e=52-e)>0){for(Ts(u,0,r),n=a;n>=7;)Ts(u,1e7,0),n-=7;for(Ts(u,rl(10,n,1),0),n=e-1;n>=23;)Pb(u,1<<23),n-=23;Pb(u,1<<n),Ts(u,1,1),Pb(u,2),l=EO(u)}else Ts(u,0,r),Ts(u,1<<-e,0),l=EO(u)+RE("0",a);return a>0?s+((o=l.length)<=a?"0."+RE("0",a-o)+l:wO(l,0,o-a)+"."+wO(l,o-a)):s+l}});var Tnt={type:"image",renderElem:function(t,e,r){var n=t,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,y=A.isNodeSelected(r,t),g={};d&&(g.width="100%"),v&&(g.height="100%");var m=bt("img",{style:g,src:o,alt:a,"data-href":s}),h=r.isDisabled();return y&&!h?function(b,w,D,C){var x=B("body"),O=DO(b,w),T=C.width,R=C.height,H=0,M=0,K=0,U=!1,W=null;function q(at){W=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),H=at;var k=W.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),K=k.height(),x.on("mousemove",et),x.on("mouseup",st);var S=A.getHoverbar(b);S&&S.hideAndClean()}var et=Mu(function(at){at.preventDefault();var k=at.clientX,S=M+(U?H-k:k-H),P=K*(S/M);W!=null&&(S<=15||P<=15||(W.css("width",S+"px"),W.css("height",P+"px")))},100);function st(at){if(x.off("mousemove",et),W!=null){var k=W.width().toFixed(2),S=W.height().toFixed(2),P={style:va(va({},w.style),{width:k+"px",height:S+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),x.off("mouseup",st)}}var ut={};return T&&(ut.width=T),R&&(ut.height=R),bt("div",{id:O,style:ut,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(at){var k=B(at.target);k.hasClass("w-e-image-dragger")&&(at.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(U=!0),q(at.clientX))}}},D,bt("div",{className:"w-e-image-dragger left-top"}),bt("div",{className:"w-e-image-dragger right-top"}),bt("div",{className:"w-e-image-dragger left-bottom"}),bt("div",{className:"w-e-image-dragger right-bottom"}))}(r,t,m,{width:d,height:v}):function(b,w,D,C){var x=C.width,O=C.height,T={};return x&&(T.width=x),O&&(T.height=O),bt("div",{id:DO(b,w),style:T,className:"w-e-image-container"},D)}(r,t,m,{width:d,height:v})}},_nt={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:qn(n,"width"),height:qn(n,"height")},children:[{text:""}]}}};function CI(t,e,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),Oa(this,void 0,void 0,function(){var i,a;return ka(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function SI(t,e,r){return Oa(this,void 0,void 0,function(){var n;return ka(this,function(o){switch(o.label){case 0:return(n=e.getMenuConfig(t).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function Du(t,e,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),Oa(this,void 0,void 0,function(){var o,i,a;return ka(this,function(u){switch(u.label){case 0:return[4,CI("insertImage",t,e,r,n)];case 1:return u.sent()?[4,SI("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:AD(o),href:n,alt:r,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),qy(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function qy(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Yt(E.nodes(t,{match:function(r){var n=A.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!E.isVoid(t,r)},universal:!0}),1)[0]}function Wh(){return Gy("w-e-insert-image")}var Pnt=function(){function t(){this.title=Q("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=Wh(),this.altInputId=Wh(),this.hrefInputId=Wh(),this.buttonId=Wh()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return qy(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=Yt(Ur(Q("image.src"),o),2),l=s[0],c=B(s[1]),f=Yt(Ur(Q("image.desc"),i),2),d=f[0],p=B(f[1]),v=Yt(Ur(Q("image.link"),a),2),y=v[0],g=B(v[1]),m=Yt(is(u,Q("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),C=h.find("#"+i).val().trim(),x=h.find("#"+a).val().trim();r.insertImage(e,D,C,x),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(y),b.append(m),c.val(""),p.val(""),g.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(e.restoreSelection(),this.isDisabled(e)||Du(e,r,n,o))},t}(),jnt=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||N.removeNodes(e,{match:function(n){return A.checkNodeType(n,"image")}})},t}();function Gh(){return Gy("w-e-edit-image")}var Nnt=function(){function t(){this.title=Q("image.edit"),this.iconSvg=cI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Gh(),this.altInputId=Gh(),this.hrefInputId=Gh(),this.buttonId=Gh()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Yt(Ur(Q("image.src"),o),2),c=l[0],f=B(l[1]),d=Yt(Ur(Q("image.desc"),i),2),p=d[0],v=B(d[1]),y=Yt(Ur(Q("image.link"),a),2),g=y[0],m=B(y[1]),h=Yt(is(u,Q("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();r.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var D=s,C=D.src,x=D.alt,O=x===void 0?"":x,T=D.href,R=T===void 0?"":T;return f.val(C),v.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Oa(this,void 0,void 0,function(){var f,d,p,v,y,g;return ka(this,function(m){switch(m.label){case 0:return[4,CI("editImage",a,u,s,l)];case 1:return m.sent()?[4,SI("editImage",a,u)]:[2];case 2:return f=m.sent(),(d=A.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:va(va({},p===void 0?{}:p),c)},N.setNodes(a,v,{match:function(h){return A.checkNodeType(h,"image")}}),y=A.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(y)),[2]}})})}(e,r,n,o,i))},t}(),Int=function(){function t(){this.title=Q("image.viewLink"),this.iconSvg=fI,this.tag="button"}return t.prototype.getValue=function(e){var r=A.getSelectedNodeByType(e,"image");return r&&r.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},t}(),kD=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=n.style,a={style:va(va({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),Lnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return be(e,t),e}(kD),Rnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return be(e,t),e}(kD),Mnt=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return be(e,t),e}(kD),xO={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,r){return!0},parseImageSrc:function(t){return t}},znt={renderElems:[Tnt],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var r=t,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[_nt],menus:[{key:"insertImage",factory:function(){return new Pnt},config:xO},{key:"deleteImage",factory:function(){return new jnt}},{key:"editImage",factory:function(){return new Nnt},config:xO},{key:"viewImageLink",factory:function(){return new Int}},{key:"imageWidth30",factory:function(){return new Lnt}},{key:"imageWidth50",factory:function(){return new Rnt}},{key:"imageWidth100",factory:function(){return new Mnt}}],editorPlugin:function(t){var e=t.isInline,r=t.isVoid;t.insertNode;var n=t;return n.isInline=function(o){return o.type==="image"||e(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},$nt={type:"todo",renderElem:function(t,e,r){var n=!1;r.isDisabled()&&(n=!0);var o=bt("div",{style:{margin:"5px 0"}},bt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},bt("input",{type:"checkbox",checked:t.checked,disabled:n,on:{change:function(i){var a=A.findPath(r,t),u={checked:i.target.checked};N.setNodes(r,u,{at:a})}}})),bt("span",null,e));return o}},Hnt=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(r){if(E.isVoid(e,r)&&E.isBlock(e,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},t.prototype.exec=function(e,r){var n=this.isActive(e);N.setNodes(e,{type:n?"paragraph":"todo"})},t}(),Vnt={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,r){var n=B(t);(e=e.filter(function(i){return!!ot.isText(i)||!!r.isInline(i)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Unt={renderElems:[$nt],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=B(t).find("li"),r=B('<div data-w-e-type="todo"></div>'),n=e.find("input[type]");return r.append(n),e.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+e[0].innerHTML,r[0]}}],parseElemsHtml:[Vnt],menus:[{key:"todo",factory:function(){return new Hnt}}],editorPlugin:function(t){var e=t.deleteBackward,r=t;return r.deleteBackward=function(n){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&J.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(n)},r}},Wnt={type:"blockquote",renderElem:function(t,e,r){return bt("blockquote",null,e)}},Gnt={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!r.isInline(o)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},qnt=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Yt(E.nodes(e,{match:function(r){var n=A.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:n},{mode:"highest"})}},t}(),Knt={key:"blockquote",factory:function(){return new qnt}},Ynt=yt([].slice),Xnt=wD("slice"),Znt=ln("species"),jb=St.Array,Jnt=Math.max;Qe({target:"Array",proto:!0,forced:!Xnt},{slice:function(t,e){var r,n,o,i=nc(this),a=Uy(i),u=Hd(t,a),s=Hd(e===void 0?a:e,a);if(a0(i)&&(r=i.constructor,(bD(r)&&(r===jb||a0(r.prototype))||vo(r)&&(r=r[Znt])===null)&&(r=void 0),r===jb||r===void 0))return Ynt(i,u,s);for(n=new(r===void 0?jb:r)(Jnt(s-u,0)),o=0;u<s;u++,o++)u in i&&oI(n,o,i[u]);return n.length=o,n}});var Qnt={renderElems:[Wnt],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Gnt],menus:[Knt],editorPlugin:function(t){var e=t.insertBreak,r=t.insertText,n=t;return n.insertBreak=function(){var o=n.selection;if(o==null)return e();var i=Yt(E.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=E.end(t,u);if(kt.equals(s,o.focus)){var l=J.string(a);if(l&&l.slice(-1)===`
`)return t.deleteBackward("character"),void N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
`)},n}},tot=function(){function t(){this.title=Q("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 t.prototype.exec=function(e,r){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(E.nodes(e,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(e,r)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var r=B('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");n.append(a)}),n[0]},t}(),eot={menus:[{key:"emotion",factory:function(){return new tot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},rot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},not={selector:"font",preParseHtml:function(t){var e=B(t);if(uc(e)!=="font")return t;var r=e.attr("size")||"";r&&(e.removeAttr("size"),e.css("font-size",rot[r]));var n=e.attr("face")||"";return n&&(e.removeAttr("face"),e.css("font-family",n)),e[0]}},oot=yt("".indexOf);Qe({target:"String",proto:!0,forced:!hI("includes")},{includes:function(t){return!!~oot(Ee(Bn(this)),Ee(pI(t)),arguments.length>1?arguments[1]:void 0)}});var Ai,Hg,qh=function(t){return t&&t.Math==Math&&t},Ft=qh(typeof globalThis=="object"&&globalThis)||qh(typeof window=="object"&&window)||qh(typeof self=="object"&&self)||qh(typeof n0=="object"&&n0)||function(){return this}()||Function("return this")(),BD=Function.prototype,CO=BD.apply,iot=BD.bind,SO=BD.call,AI=typeof Reflect=="object"&&Reflect.apply||(iot?SO.bind(CO):function(){return SO.apply(CO,arguments)}),OI=Function.prototype,ME=OI.bind,zE=OI.call,aot=ME&&ME.bind(zE),Fe=ME?function(t){return t&&aot(zE,t)}:function(t){return t&&function(){return zE.apply(t,arguments)}},Sr=function(t){return typeof t=="function"},an=function(t){try{return!!t()}catch{return!0}},Wr=!an(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),nf=Function.prototype.call,Eo=nf.bind?nf.bind(nf):function(){return nf.apply(nf,arguments)},AO={}.propertyIsEnumerable,OO=Object.getOwnPropertyDescriptor,uot=OO&&!AO.call({1:2},1)?function(t){var e=OO(this,t);return!!e&&e.enumerable}:AO,FD={f:uot},Gu=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},sot=Fe({}.toString),lot=Fe("".slice),xu=function(t){return lot(sot(t),8,-1)},Nb=Ft.Object,cot=Fe("".split),kI=an(function(){return!Nb("z").propertyIsEnumerable(0)})?function(t){return xu(t)=="String"?cot(t,""):Nb(t)}:Nb,fot=Ft.TypeError,TD=function(t){if(t==null)throw fot("Can't call method on "+t);return t},Po=function(t){return kI(TD(t))},Hn=function(t){return typeof t=="object"?t!==null:Sr(t)},vn={},kO=function(t){return Sr(t)?t:void 0},zp=function(t,e){return arguments.length<2?kO(vn[t])||kO(Ft[t]):vn[t]&&vn[t][e]||Ft[t]&&Ft[t][e]},BI=Fe({}.isPrototypeOf),Ib=zp("navigator","userAgent")||"",BO=Ft.process,FO=Ft.Deno,TO=BO&&BO.versions||FO&&FO.version,_O=TO&&TO.v8;_O&&(Hg=(Ai=_O.split("."))[0]>0&&Ai[0]<4?1:+(Ai[0]+Ai[1])),!Hg&&Ib&&(!(Ai=Ib.match(/Edge\/(\d+)/))||Ai[1]>=74)&&(Ai=Ib.match(/Chrome\/(\d+)/))&&(Hg=+Ai[1]);var l0=Hg,so=!!Object.getOwnPropertySymbols&&!an(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&l0&&l0<41}),_D=so&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dot=Ft.Object,fl=_D?function(t){return typeof t=="symbol"}:function(t){var e=zp("Symbol");return Sr(e)&&BI(e.prototype,dot(t))},pot=Ft.String,hot=Ft.TypeError,FI=function(t){if(Sr(t))return t;throw hot(function(e){try{return pot(e)}catch{return"Object"}}(t)+" is not a function")},got=Ft.TypeError,vot=Object.defineProperty,Qi=Ft["__core-js_shared__"]||function(t,e){try{vot(Ft,t,{value:e,configurable:!0,writable:!0})}catch{Ft[t]=e}return e}("__core-js_shared__",{}),us=zy(function(t){(t.exports=function(e,r){return Qi[e]||(Qi[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),yot=Ft.Object,$p=function(t){return yot(TD(t))},mot=Fe({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return mot($p(t),e)},bot=0,wot=Math.random(),Eot=Fe(1 .toString),c0=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Eot(++bot+wot,36)},of=us("wks"),Cu=Ft.Symbol,PO=Cu&&Cu.for,Dot=_D?Cu:Cu&&Cu.withoutSetter||c0,cn=function(t){if(!Kt(of,t)||!so&&typeof of[t]!="string"){var e="Symbol."+t;so&&Kt(Cu,t)?of[t]=Cu[t]:of[t]=_D&&PO?PO(e):Dot(e)}return of[t]},xot=Ft.TypeError,Cot=cn("toPrimitive"),sc=function(t){var e=function(r,n){if(!Hn(r)||fl(r))return r;var o,i,a=(o=r[Cot])==null?void 0:FI(o);if(a){if(i=Eo(a,r,n),!Hn(i)||fl(i))return i;throw xot("Can't convert object to primitive value")}return function(u,s){var l,c;if(Sr(l=u.toString)&&!Hn(c=Eo(l,u))||Sr(l=u.valueOf)&&!Hn(c=Eo(l,u)))return c;throw got("Can't convert object to primitive value")}(r)}(t,"string");return fl(e)?e:e+""},$E=Ft.document,Sot=Hn($E)&&Hn($E.createElement),TI=function(t){return Sot?$E.createElement(t):{}},_I=!Wr&&!an(function(){return Object.defineProperty(TI("div"),"a",{get:function(){return 7}}).a!=7}),jO=Object.getOwnPropertyDescriptor,PD={f:Wr?jO:function(t,e){if(t=Po(t),e=sc(e),_I)try{return jO(t,e)}catch{}if(Kt(t,e))return Gu(!Eo(FD.f,t,e),t[e])}},Aot=/#|\.prototype\./,Hp=function(t,e){var r=kot[Oot(t)];return r==Fot||r!=Bot&&(Sr(e)?an(e):!!e)},Oot=Hp.normalize=function(t){return String(t).replace(Aot,".").toLowerCase()},kot=Hp.data={},Bot=Hp.NATIVE="N",Fot=Hp.POLYFILL="P",Tot=Hp,NO=Fe(Fe.bind),PI=function(t,e){return FI(t),e===void 0?t:NO?NO(t,e):function(){return t.apply(e,arguments)}},_ot=Ft.String,Pot=Ft.TypeError,qu=function(t){if(Hn(t))return t;throw Pot(_ot(t)+" is not an object")},jot=Ft.TypeError,IO=Object.defineProperty,ss={f:Wr?IO:function(t,e,r){if(qu(t),e=sc(e),qu(r),_I)try{return IO(t,e,r)}catch{}if("get"in r||"set"in r)throw jot("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},co=Wr?function(t,e,r){return ss.f(t,e,Gu(1,r))}:function(t,e,r){return t[e]=r,t},Not=PD.f,Iot=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return AI(t,this,arguments)};return e.prototype=t.prototype,e},ji=function(t,e){var r,n,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Ft:d?Ft[c]:(Ft[c]||{}).prototype,y=f?vn:vn[c]||co(vn,c,{})[c],g=y.prototype;for(o in e)r=!Tot(f?o:c+(d?".":"#")+o,t.forced)&&v&&Kt(v,o),a=y[o],r&&(u=t.noTargetGet?(l=Not(v,o))&&l.value:v[o]),i=r&&u?u:e[o],r&&typeof a==typeof i||(s=t.bind&&r?PI(i,Ft):t.wrap&&r?Iot(i):p&&Sr(i)?Fe(i):i,(t.sham||i&&i.sham||a&&a.sham)&&co(s,"sham",!0),co(y,o,s),p&&(Kt(vn,n=c+"Prototype")||co(vn,n,{}),co(vn[n],o,i),t.real&&g&&!g[o]&&co(g,o,i)))},f0=Array.isArray||function(t){return xu(t)=="Array"},Lot=Math.ceil,Rot=Math.floor,jD=function(t){var e=+t;return e!=e||e===0?0:(e>0?Rot:Lot)(e)},Mot=Math.min,Ky=function(t){return(e=t.length)>0?Mot(jD(e),9007199254740991):0;var e},HE=function(t,e,r){var n=sc(e);n in t?ss.f(t,n,Gu(0,r)):t[n]=r},jI={};jI[cn("toStringTag")]="z";var ND=String(jI)==="[object z]",zot=cn("toStringTag"),$ot=Ft.Object,Hot=xu(function(){return arguments}())=="Arguments",Yy=ND?xu:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=$ot(t),zot))=="string"?r:Hot?xu(e):(n=xu(e))=="Object"&&Sr(e.callee)?"Arguments":n},Vot=Fe(Function.toString);Sr(Qi.inspectSource)||(Qi.inspectSource=function(t){return Vot(t)});var NI=Qi.inspectSource,II=function(){},Uot=[],LI=zp("Reflect","construct"),ID=/^\s*(?:class|function)\b/,Wot=Fe(ID.exec),Got=!ID.exec(II),af=function(t){if(!Sr(t))return!1;try{return LI(II,Uot,t),!0}catch{return!1}},qot=!LI||an(function(){var t;return af(af.call)||!af(Object)||!af(function(){t=!0})||t})?function(t){if(!Sr(t))return!1;switch(Yy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Got||!!Wot(ID,NI(t))}:af,Kot=cn("species"),LO=Ft.Array,RI=function(t,e){return new(function(r){var n;return f0(r)&&(n=r.constructor,(qot(n)&&(n===LO||f0(n.prototype))||Hn(n)&&(n=n[Kot])===null)&&(n=void 0)),n===void 0?LO:n}(t))(e===0?0:e)},Yot=cn("species"),MI=cn("isConcatSpreadable"),RO=Ft.TypeError,Xot=l0>=51||!an(function(){var t=[];return t[MI]=!1,t.concat()[0]!==t}),Zot=l0>=51||!an(function(){var t=[];return(t.constructor={})[Yot]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Jot=function(t){if(!Hn(t))return!1;var e=t[MI];return e!==void 0?!!e:f0(t)};ji({target:"Array",proto:!0,forced:!Xot||!Zot},{concat:function(t){var e,r,n,o,i,a=$p(this),u=RI(a,0),s=0;for(e=-1,n=arguments.length;e<n;e++)if(Jot(i=e===-1?a:arguments[e])){if(s+(o=Ky(i))>9007199254740991)throw RO("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&HE(u,s,i[r])}else{if(s>=9007199254740991)throw RO("Maximum allowed index exceeded");HE(u,s++,i)}return u.length=s,u}});var Kh,Qot=Ft.String,d0=function(t){if(Yy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Qot(t)},tit=Math.max,eit=Math.min,VE=function(t,e){var r=jD(t);return r<0?tit(r+e,0):eit(r,e)},rit=function(t){return function(e,r,n){var o,i=Po(e),a=Ky(i),u=VE(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},nit={indexOf:rit(!1)},Vp={},oit=nit.indexOf,MO=Fe([].push),zI=function(t,e){var r,n=Po(t),o=0,i=[];for(r in n)!Kt(Vp,r)&&Kt(n,r)&&MO(i,r);for(;e.length>o;)Kt(n,r=e[o++])&&(~oit(i,r)||MO(i,r));return i},p0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],LD=Object.keys||function(t){return zI(t,p0)},iit=Wr?Object.defineProperties:function(t,e){qu(t);for(var r,n=Po(e),o=LD(e),i=o.length,a=0;i>a;)ss.f(t,r=o[a++],n[r]);return t},ait=zp("document","documentElement"),zO=us("keys"),Xy=function(t){return zO[t]||(zO[t]=c0(t))},$I=Xy("IE_PROTO"),Lb=function(){},HI=function(t){return"<script>"+t+"<\/script>"},$O=function(t){t.write(HI("")),t.close();var e=t.parentWindow.Object;return t=null,e},Vg=function(){try{Kh=new ActiveXObject("htmlfile")}catch{}var t,e;Vg=typeof document<"u"?document.domain&&Kh?$O(Kh):((e=TI("iframe")).style.display="none",ait.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(HI("document.F=Object")),t.close(),t.F):$O(Kh);for(var r=p0.length;r--;)delete Vg.prototype[p0[r]];return Vg()};Vp[$I]=!0;var h0,id,g0,Ku=Object.create||function(t,e){var r;return t!==null?(Lb.prototype=qu(t),r=new Lb,Lb.prototype=null,r[$I]=t):r=Vg(),e===void 0?r:iit(r,e)},uit=p0.concat("length","prototype"),VI={f:Object.getOwnPropertyNames||function(t){return zI(t,uit)}},sit=Ft.Array,lit=Math.max,HO=VI.f,VO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],UI={f:function(t){return VO&&xu(t)=="Window"?function(e){try{return HO(e)}catch{return function(n,o,i){for(var a=Ky(n),u=VE(void 0,a),s=VE(a,a),l=sit(lit(s-u,0)),c=0;u<s;u++,c++)HE(l,c,n[u]);return l.length=c,l}(VO)}}(t):HO(Po(t))}},Rb={f:Object.getOwnPropertySymbols},cit=Fe([].slice),v0=function(t,e,r,n){co(t,e,r)},RD={f:cn},fit=ss.f,je=function(t){var e=vn.Symbol||(vn.Symbol={});Kt(e,t)||fit(e,t,{value:RD.f(t)})},dit=ND?{}.toString:function(){return"[object "+Yy(this)+"]"},pit=ss.f,UO=cn("toStringTag"),y0=function(t,e,r,n){if(t){var o=r?t:t.prototype;Kt(o,UO)||pit(o,UO,{configurable:!0,value:e}),n&&!ND&&co(o,"toString",dit)}},WO=Ft.WeakMap,hit=Sr(WO)&&/native code/.test(NI(WO)),UE=Ft.TypeError,git=Ft.WeakMap;if(hit||Qi.state){var Va=Qi.state||(Qi.state=new git),vit=Fe(Va.get),GO=Fe(Va.has),yit=Fe(Va.set);h0=function(t,e){if(GO(Va,t))throw new UE("Object already initialized");return e.facade=t,yit(Va,t,e),e},id=function(t){return vit(Va,t)||{}},g0=function(t){return GO(Va,t)}}else{var _s=Xy("state");Vp[_s]=!0,h0=function(t,e){if(Kt(t,_s))throw new UE("Object already initialized");return e.facade=t,co(t,_s,e),e},id=function(t){return Kt(t,_s)?t[_s]:{}},g0=function(t){return Kt(t,_s)}}var lc={set:h0,get:id,has:g0,enforce:function(t){return g0(t)?id(t):h0(t,{})},getterFor:function(t){return function(e){var r;if(!Hn(e)||(r=id(e)).type!==t)throw UE("Incompatible receiver, "+t+" required");return r}}},qO=Fe([].push),Oi=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=$p(s),y=kI(v),g=PI(l,c),m=Ky(y),h=0,b=f||RI,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:qO(w,d)}else switch(t){case 4:return!1;case 7:qO(w,d)}return i?-1:n||o?o:w}},Zy=[Oi(0),Oi(1),Oi(2),Oi(3),Oi(4),Oi(5),Oi(6),Oi(7)][0],Rr=Xy("hidden"),KO=cn("toPrimitive"),mit=lc.set,YO=lc.getterFor("Symbol"),Vn=Object.prototype,Li=Ft.Symbol,Vi=Li&&Li.prototype,XO=Ft.TypeError,Mb=Ft.QObject,uf=zp("JSON","stringify"),WI=PD.f,Ri=ss.f,GI=UI.f,bit=FD.f,qI=Fe([].push),ai=us("symbols"),Up=us("op-symbols"),zb=us("string-to-symbol-registry"),$b=us("symbol-to-string-registry"),wit=us("wks"),Hb=!Mb||!Mb.prototype||!Mb.prototype.findChild,WE=Wr&&an(function(){return Ku(Ri({},"a",{get:function(){return Ri(this,"a",{value:7}).a}})).a!=7})?function(t,e,r){var n=WI(Vn,e);n&&delete Vn[e],Ri(t,e,r),n&&t!==Vn&&Ri(Vn,e,n)}:Ri,Vb=function(t,e){var r=ai[t]=Ku(Vi);return mit(r,{type:"Symbol",tag:t,description:e}),Wr||(r.description=e),r},m0=function(t,e,r){t===Vn&&m0(Up,e,r),qu(t);var n=sc(e);return qu(r),Kt(ai,n)?(r.enumerable?(Kt(t,Rr)&&t[Rr][n]&&(t[Rr][n]=!1),r=Ku(r,{enumerable:Gu(0,!1)})):(Kt(t,Rr)||Ri(t,Rr,Gu(1,{})),t[Rr][n]=!0),WE(t,n,r)):Ri(t,n,r)},ZO=function(t,e){qu(t);var r=Po(e),n=LD(r).concat(GE(r));return Zy(n,function(o){Wr&&!Eo(KI,r,o)||m0(t,o,r[o])}),t},KI=function(t){var e=sc(t),r=Eo(bit,this,e);return!(this===Vn&&Kt(ai,e)&&!Kt(Up,e))&&(!(r||!Kt(this,e)||!Kt(ai,e)||Kt(this,Rr)&&this[Rr][e])||r)},JO=function(t,e){var r=Po(t),n=sc(e);if(r!==Vn||!Kt(ai,n)||Kt(Up,n)){var o=WI(r,n);return!o||!Kt(ai,n)||Kt(r,Rr)&&r[Rr][n]||(o.enumerable=!0),o}},QO=function(t){var e=GI(Po(t)),r=[];return Zy(e,function(n){Kt(ai,n)||Kt(Vp,n)||qI(r,n)}),r},GE=function(t){var e=t===Vn,r=GI(e?Up:Po(t)),n=[];return Zy(r,function(o){!Kt(ai,o)||e&&!Kt(Vn,o)||qI(n,ai[o])}),n};if(so||(Vi=(Li=function(){if(BI(Vi,this))throw XO("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?d0(arguments[0]):void 0,e=c0(t),r=function(n){this===Vn&&Eo(r,Up,n),Kt(this,Rr)&&Kt(this[Rr],e)&&(this[Rr][e]=!1),WE(this,e,Gu(1,n))};return Wr&&Hb&&WE(Vn,e,{configurable:!0,set:r}),Vb(e,t)}).prototype,v0(Vi,"toString",function(){return YO(this).tag}),v0(Li,"withoutSetter",function(t){return Vb(c0(t),t)}),FD.f=KI,ss.f=m0,PD.f=JO,VI.f=UI.f=QO,Rb.f=GE,RD.f=function(t){return Vb(cn(t),t)},Wr&&Ri(Vi,"description",{configurable:!0,get:function(){return YO(this).description}})),ji({global:!0,wrap:!0,forced:!so,sham:!so},{Symbol:Li}),Zy(LD(wit),function(t){je(t)}),ji({target:"Symbol",stat:!0,forced:!so},{for:function(t){var e=d0(t);if(Kt(zb,e))return zb[e];var r=Li(e);return zb[e]=r,$b[r]=e,r},keyFor:function(t){if(!fl(t))throw XO(t+" is not a symbol");if(Kt($b,t))return $b[t]},useSetter:function(){Hb=!0},useSimple:function(){Hb=!1}}),ji({target:"Object",stat:!0,forced:!so,sham:!Wr},{create:function(t,e){return e===void 0?Ku(t):ZO(Ku(t),e)},defineProperty:m0,defineProperties:ZO,getOwnPropertyDescriptor:JO}),ji({target:"Object",stat:!0,forced:!so},{getOwnPropertyNames:QO,getOwnPropertySymbols:GE}),ji({target:"Object",stat:!0,forced:an(function(){Rb.f(1)})},{getOwnPropertySymbols:function(t){return Rb.f($p(t))}}),uf){var Eit=!so||an(function(){var t=Li();return uf([t])!="[null]"||uf({a:t})!="{}"||uf(Object(t))!="{}"});ji({target:"JSON",stat:!0,forced:Eit},{stringify:function(t,e,r){var n=cit(arguments),o=e;if((Hn(e)||t!==void 0)&&!fl(t))return f0(e)||(e=function(i,a){if(Sr(o)&&(a=Eo(o,this,i,a)),!fl(a))return a}),n[1]=e,AI(uf,null,n)}})}if(!Vi[KO]){var Dit=Vi.valueOf;v0(Vi,KO,function(t){return Eo(Dit,this)})}y0(Li,"Symbol"),Vp[Rr]=!0,je("asyncIterator"),je("hasInstance"),je("isConcatSpreadable"),je("iterator"),je("match"),je("matchAll"),je("replace"),je("search"),je("species"),je("split"),je("toPrimitive"),je("toStringTag"),je("unscopables"),y0(Ft.JSON,"JSON",!0);var Ui,tk,ek,xit=vn.Symbol,Su={},YI=Function.prototype,Cit=Wr&&Object.getOwnPropertyDescriptor,rk=Kt(YI,"name"),Sit={PROPER:rk&&(function(){}).name==="something",CONFIGURABLE:rk&&(!Wr||Wr&&Cit(YI,"name").configurable)},Ait=!an(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),nk=Xy("IE_PROTO"),qE=Ft.Object,Oit=qE.prototype,KE=Ait?qE.getPrototypeOf:function(t){var e=$p(t);if(Kt(e,nk))return e[nk];var r=e.constructor;return Sr(r)&&e instanceof r?r.prototype:e instanceof qE?Oit:null},YE=cn("iterator"),XI=!1;[].keys&&("next"in(ek=[].keys())?(tk=KE(KE(ek)))!==Object.prototype&&(Ui=tk):XI=!0);var kit=Ui==null||an(function(){var t={};return Ui[YE].call(t)!==t});Ui=kit?{}:Ku(Ui),Sr(Ui[YE])||v0(Ui,YE,function(){return this});var ZI={IteratorPrototype:Ui,BUGGY_SAFARI_ITERATORS:XI},Bit=ZI.IteratorPrototype,Fit=function(){return this};Ft.String,Ft.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Fe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var Tit=Sit.PROPER,Ub=ZI.BUGGY_SAFARI_ITERATORS,_it=cn("iterator"),Pit=function(){return this},JI=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=Ku(Bit,{next:Gu(1,h)}),y0(g,w,!1,!0),Su[w]=Fit})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Ub&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[_it]||d["@@iterator"]||o&&d[o],v=!Ub&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=KE(y.call(new t)))!==Object.prototype&&u.next&&(y0(u,c,!0,!0),Su[c]=Pit),Tit&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Eo(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||ji({target:e,proto:!0,forced:Ub||f},s)),Su[e]=v,s},jit=lc.set,Nit=lc.getterFor("Array Iterator");JI(Array,"Array",function(t,e){jit(this,{type:"Array Iterator",target:Po(t),index:0,kind:e})},function(){var t=Nit(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values"),Su.Arguments=Su.Array;var ok=cn("toStringTag");for(var Wb 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 ik=Ft[Wb],Gb=ik&&ik.prototype;Gb&&Yy(Gb)!==ok&&co(Gb,ok,Wb),Su[Wb]=Su.Array}var Iit=xit;je("asyncDispose"),je("dispose"),je("matcher"),je("metadata"),je("observable"),je("patternMatch"),je("replaceAll");var Yh=Iit,Lit=Fe("".charAt),ak=Fe("".charCodeAt),Rit=Fe("".slice),Mit=function(t){return function(e,r){var n,o,i=d0(TD(e)),a=jD(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=ak(i,a))<55296||n>56319||a+1===u||(o=ak(i,a+1))<56320||o>57343?t?Lit(i,a):n:t?Rit(i,a,a+2):o-56320+(n-55296<<10)+65536}},zit=Mit(!0),$it=lc.set,Hit=lc.getterFor("String Iterator");JI(String,"String",function(t){$it(this,{type:"String Iterator",string:d0(t),index:0})},function(){var t,e=Hit(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=zit(r,n),e.index+=t.length,{value:t,done:!1})});var Vit=RD.f("iterator"),Uit=zy(function(t){function e(r){return typeof Yh=="function"&&typeof Vit=="symbol"?(t.exports=e=function(n){return typeof n},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(n){return n&&typeof Yh=="function"&&n.constructor===Yh&&n!==Yh.prototype?"symbol":typeof n},t.exports.default=t.exports,t.exports.__esModule=!0),e(r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),QI=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Uit),Wit=Vy.EXISTS,Git=oc.f,tL=Function.prototype,qit=yt(tL.toString),eL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Kit=yt(eL.exec);Xn&&!Wit&&Git(tL,"name",{configurable:!0,get:function(){try{return Kit(eL,qit(this))[1]}catch{return""}}});var rL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.mark,n=E.marks(e);return n&&n[r]?n[r]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Yt(E.nodes(e,{match:function(r){return A.getNodeType(r)==="pre"||!!E.isVoid(e,r)},universal:!0}),1)[0])},t.prototype.exec=function(e,r){var n=this.mark;r?e.addMark(n,r):e.removeMark(n)},t}(),Yit=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("fontSize.title"),r.iconSvg=wrt,r.mark="fontSize",r}return be(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:Q("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u});else if(QI(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(rL),Xit=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("fontFamily.title"),r.iconSvg=Ert,r.mark="fontFamily",r.selectPanelWidth=150,r}return be(e,t),e.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:Q("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(QI(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},e}(rL),Zit={renderStyle:function(t,e){var r=t,n=r.fontSize,o=r.fontFamily,i=e;return n&&Wu(i,{fontSize:n}),o&&Wu(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var r,n=t,o=n.fontSize,i=n.fontFamily;return o||i?((SD(e)||uc(r=B(e))!=="span")&&(r=B("<span>"+e+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),ac(r)):e},preParseHtml:[not],parseStyleHtml:function(t,e,r){var n=B(t);if(!ot.isText(e))return e;var o=e,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=qn(n,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=qn(n,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Yit},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 Xit},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Jit={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),r=qn(e,"padding-left");return/\dem/.test(r)&&e.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&e.css("text-indent","2em"),e[0]}},nL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var r=Yt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":Yt(n,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=Yt(E.nodes(e,{match:function(n){var o=A.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t}(),Qit=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("indent.decrease"),r.iconSvg=Drt,r}return be(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},e.prototype.exec=function(r,n){N.setNodes(r,{indent:null},{match:function(o){return ct.isElement(o)}})},e}(nL),tat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("indent.increase"),r.iconSvg=xrt,r}return be(e,t),e.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},e.prototype.exec=function(r,n){N.setNodes(r,{indent:"2em"},{match:function(o){return ct.isElement(o)},mode:"highest"})},e}(nL),eat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var r=t.indent,n=e;return r&&Wu(n,{textIndent:r}),n},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var r=t.indent;if(!r)return e;var n=B(e);return n.css("text-indent",r),ac(n)},preParseHtml:[Jit],parseStyleHtml:function(t,e,r){var n=B(t);if(!ct.isElement(e))return e;var o=e,i=qn(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new tat}},{key:"delIndent",factory:function(){return new Qit}}]},Jy=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var r=Yt(E.nodes(e,{match:function(n){var o=A.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(r){if(E.isVoid(e,r)&&E.isBlock(e,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},t}(),rat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("justify.left"),r.iconSvg=Crt,r}return be(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"left"},{match:function(o){return ct.isElement(o)&&!r.isInline(o)}})},e}(Jy),nat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("justify.right"),r.iconSvg=Srt,r}return be(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"right"},{match:function(o){return ct.isElement(o)&&!r.isInline(o)}})},e}(Jy),oat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("justify.center"),r.iconSvg=Art,r}return be(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"center"},{match:function(o){return ct.isElement(o)&&!r.isInline(o)}})},e}(Jy),iat=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.title=Q("justify.justify"),r.iconSvg=Ort,r}return be(e,t),e.prototype.exec=function(r,n){N.setNodes(r,{textAlign:"justify"},{match:function(o){return ct.isElement(o)&&!r.isInline(o)}})},e}(Jy),aat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var r=t.textAlign,n=e;return r&&Wu(n,{textAlign:r}),n},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var r=t.textAlign;if(!r)return e;var n=B(e);return n.css("text-align",r),ac(n)},parseStyleHtml:function(t,e,r){var n=B(t);if(!ct.isElement(e))return e;var o=e,i=qn(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new rat}},{key:"justifyRight",factory:function(){return new nat}},{key:"justifyCenter",factory:function(){return new oat}},{key:"justifyJustify",factory:function(){return new iat}}]},uat=function(){function t(){this.title=Q("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 t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:Q("lineHeight.default"),value:""}),o.forEach(function(a){r.push({text:a,value:a})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.getMatchNode=function(e){var r=Yt(E.nodes(e,{match:function(n){var o=A.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getMatchNode(e);return r==null?"":ct.isElement(r)&&r.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,r){N.setNodes(e,{lineHeight:r.toString()},{mode:"highest"})},t}(),sat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var r=t.lineHeight,n=e;return r&&Wu(n,{lineHeight:r}),n},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var r=t.lineHeight;if(!r)return e;var n=B(e);return n.css("line-height",r),ac(n)},parseStyleHtml:function(t,e,r){var n=B(t);if(!ct.isElement(e))return e;var o=e,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=qn(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new uat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},lat=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.redo=="function"&&e.redo()},t}(),cat=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,r){typeof e.undo=="function"&&e.undo()},t}(),fat={menus:[{key:"redo",factory:function(){return new lat}},{key:"undo",factory:function(){return new cat}}]},dat={type:"divider",renderElem:function(t,e,r){return Tl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(r,t)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[Tl("hr")])}},pat=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var n=A.getNodeType(r);return n==="table"||n==="pre"||void 0})},t.prototype.exec=function(e,r){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),hat={renderElems:[dat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new pat}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="divider"||e(o)},n.normalizeNode=function(o){var i=Yt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return r([a,u]);A.isLastNode(n,a)&&N.insertNodes(n,A.genEmptyParagraph(),{at:[u[0]+1]})},n}},gat=Wy.map;Qe({target:"Array",proto:!0,forced:!wD("map")},{map:function(t){return gat(this,t,arguments.length>1?arguments[1]:void 0)}});var vat=yt([].join),yat=$y!=Object,mat=uI("join",",");Qe({target:"Array",proto:!0,forced:yat||!mat},{join:function(t){return vat(nc(this),t===void 0?",":t)}});var bat=function(){function t(){this.title=Q("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 t.prototype.getSelectCodeElem=function(e){var r=A.getSelectedNodeByType(e,"code");if(r==null)return null;var n=A.getParentNode(e,r);return n==null||A.getNodeType(n)!=="pre"?null:r},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);return r==null?"":r.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var r=A.getSelectedElems(e);return!!r.some(function(n){return e.isVoid(n)})||!r.some(function(n){var o=A.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,r){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,r.toString())},t.prototype.changeToPlainText=function(e){var r=this.getSelectCodeElem(e);if(r!=null){var n=J.string(r);N.removeNodes(e,{mode:"highest"});var o=n.split(`
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,r){var n,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=aI(a),s=u.next();!s.done;s=u.next()){var l=Yt(s.value,1)[0];l&&i.push(J.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
`)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),wat={key:"codeBlock",factory:function(){return new bat}};Qe({target:"String",proto:!0,forced:Wf("anchor")},{anchor:function(t){return Uf(this,"a","name",t)}}),xD("match",function(t,e,r){return[function(n){var o=Bn(this),i=n==null?void 0:Hy(n,t);return i?Ne(i,n,o):new RegExp(n)[t](Ee(o))},function(n){var o=en(this),i=Ee(n),a=r(e,o,i);if(a.done)return a.value;if(!o.global)return Ud(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Ud(o,i))!==null;){var f=Ee(s[0]);l[c]=f,f===""&&(o.lastIndex=CD(i,Ip(o.lastIndex),u)),c++}return c===0?null:l}]});var Eat={type:"pre",renderElem:function(t,e,r){return bt("pre",null,e)}},Dat={type:"code",renderElem:function(t,e,r){return bt("code",null,e)}},xat={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},Cat={menus:[wat],editorPlugin:function(t){var e=t.insertBreak,r=t.normalizeNode,n=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=J.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
`),y=v.length;return y===0?"":v[y-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
`+s)}}o.insertText(`
`)}else e()},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else n(i)},o},renderElems:[Eat,Dat],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=B(t);if(uc(e)!=="code")return t;var r=e.find("xmp");if(r.length===0)return t;var n=r.text();return r.remove(),e.text(n),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,r){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},xat]},Sat=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,r){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),Aat={menus:[{key:"fullScreen",factory:function(){return new Sat}}]},Oat=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!!L.isExpanded(r)},t.prototype.exec=function(e,r){var n=e.selection;if(n!=null){var o=[n.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),kat=[Rrt,vnt,Zit,eat,aat,sat,znt,hat,eot,Ont,Cat,Qnt,fnt,urt,Unt,fat,Aat,{menus:[{key:"enter",factory:function(){return new Oat}}]}];_r("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),_r("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var uk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function MD(t){var e={exports:{}};return t(e,e.exports),e.exports}var ki,Ug,Xh=function(t){return t&&t.Math==Math&&t},wt=Xh(typeof globalThis=="object"&&globalThis)||Xh(typeof window=="object"&&window)||Xh(typeof self=="object"&&self)||Xh(typeof uk=="object"&&uk)||function(){return this}()||Function("return this")(),oL=Function.prototype,XE=oL.bind,ZE=oL.call,Bat=XE&&XE.bind(ZE),jt=XE?function(t){return t&&Bat(ZE,t)}:function(t){return t&&function(){return ZE.apply(t,arguments)}},Ae=function(t){try{return!!t()}catch{return!0}},Fat=jt({}.toString),Tat=jt("".slice),ei=function(t){return Tat(Fat(t),8,-1)},qb=wt.Object,_at=jt("".split),iL=Ae(function(){return!qb("z").propertyIsEnumerable(0)})?function(t){return ei(t)=="String"?_at(t,""):qb(t)}:qb,Pat=wt.TypeError,Qy=function(t){if(t==null)throw Pat("Can't call method on "+t);return t},cc=function(t){return iL(Qy(t))},jat=Object.defineProperty,zD=function(t,e){try{jat(wt,t,{value:e,configurable:!0,writable:!0})}catch{wt[t]=e}return e},ta=wt["__core-js_shared__"]||zD("__core-js_shared__",{}),$D=MD(function(t){(t.exports=function(e,r){return ta[e]||(ta[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Nat=wt.Object,Wp=function(t){return Nat(Qy(t))},Iat=jt({}.hasOwnProperty),tr=Object.hasOwn||function(t,e){return Iat(Wp(t),e)},Lat=0,Rat=Math.random(),Mat=jt(1 .toString),HD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Mat(++Lat+Rat,36)},Te=function(t){return typeof t=="function"},zat=function(t){return Te(t)?t:void 0},Gp=function(t,e){return arguments.length<2?zat(wt[t]):wt[t]&&wt[t][e]},Kb=Gp("navigator","userAgent")||"",sk=wt.process,lk=wt.Deno,ck=sk&&sk.versions||lk&&lk.version,fk=ck&&ck.v8;fk&&(Ug=(ki=fk.split("."))[0]>0&&ki[0]<4?1:+(ki[0]+ki[1])),!Ug&&Kb&&(!(ki=Kb.match(/Edge\/(\d+)/))||ki[1]>=74)&&(ki=Kb.match(/Chrome\/(\d+)/))&&(Ug=+ki[1]);var Zh,JE=Ug,QE=!!Object.getOwnPropertySymbols&&!Ae(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&JE&&JE<41}),VD=QE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",sf=$D("wks"),Au=wt.Symbol,dk=Au&&Au.for,$at=VD?Au:Au&&Au.withoutSetter||HD,pr=function(t){if(!tr(sf,t)||!QE&&typeof sf[t]!="string"){var e="Symbol."+t;QE&&tr(Au,t)?sf[t]=Au[t]:sf[t]=VD&&dk?dk(e):$at(e)}return sf[t]},Be=function(t){return typeof t=="object"?t!==null:Te(t)},Hat=wt.String,Vat=wt.TypeError,qr=function(t){if(Be(t))return t;throw Vat(Hat(t)+" is not an object")},ya=!Ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),t6=wt.document,Uat=Be(t6)&&Be(t6.createElement),UD=function(t){return Uat?t6.createElement(t):{}},aL=!ya&&!Ae(function(){return Object.defineProperty(UD("div"),"a",{get:function(){return 7}}).a!=7}),lf=Function.prototype.call,ir=lf.bind?lf.bind(lf):function(){return lf.apply(lf,arguments)},b0=jt({}.isPrototypeOf),Wat=wt.Object,Yb=VD?function(t){return typeof t=="symbol"}:function(t){var e=Gp("Symbol");return Te(e)&&b0(e.prototype,Wat(t))},Gat=wt.String,e6=function(t){try{return Gat(t)}catch{return"Object"}},qat=wt.TypeError,WD=function(t){if(Te(t))return t;throw qat(e6(t)+" is not a function")},Wd=function(t,e){var r=t[e];return r==null?void 0:WD(r)},Kat=wt.TypeError,Yat=wt.TypeError,Xat=pr("toPrimitive"),GD=function(t){var e=function(r,n){if(!Be(r)||Yb(r))return r;var o,i=Wd(r,Xat);if(i){if(o=ir(i,r,n),!Be(o)||Yb(o))return o;throw Yat("Can't convert object to primitive value")}return function(a,u){var s,l;if(Te(s=a.toString)&&!Be(l=ir(s,a))||Te(s=a.valueOf)&&!Be(l=ir(s,a)))return l;throw Kat("Can't convert object to primitive value")}(r)}(t,"string");return Yb(e)?e:e+""},Zat=wt.TypeError,pk=Object.defineProperty,ls={f:ya?pk:function(t,e,r){if(qr(t),e=GD(e),qr(r),aL)try{return pk(t,e,r)}catch{}if("get"in r||"set"in r)throw Zat("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Jat=Math.ceil,Qat=Math.floor,qp=function(t){var e=+t;return e!=e||e===0?0:(e>0?Qat:Jat)(e)},tut=Math.max,eut=Math.min,r6=function(t,e){var r=qp(t);return r<0?tut(r+e,0):eut(r,e)},rut=Math.min,uL=function(t){return t>0?rut(qp(t),9007199254740991):0},fc=function(t){return uL(t.length)},hk=function(t){return function(e,r,n){var o,i=cc(e),a=fc(i),u=r6(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},sL={includes:hk(!0),indexOf:hk(!1)},tm={},nut=sL.indexOf,gk=jt([].push),lL=function(t,e){var r,n=cc(t),o=0,i=[];for(r in n)!tr(tm,r)&&tr(n,r)&&gk(i,r);for(;e.length>o;)tr(n,r=e[o++])&&(~nut(i,r)||gk(i,r));return i},w0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],out=Object.keys||function(t){return lL(t,w0)},iut=ya?Object.defineProperties:function(t,e){qr(t);for(var r,n=cc(e),o=out(e),i=o.length,a=0;i>a;)ls.f(t,r=o[a++],n[r]);return t},aut=Gp("document","documentElement"),vk=$D("keys"),qD=function(t){return vk[t]||(vk[t]=HD(t))},cL=qD("IE_PROTO"),Xb=function(){},fL=function(t){return"<script>"+t+"<\/script>"},yk=function(t){t.write(fL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wg=function(){try{Zh=new ActiveXObject("htmlfile")}catch{}var t,e;Wg=typeof document<"u"?document.domain&&Zh?yk(Zh):((e=UD("iframe")).style.display="none",aut.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(fL("document.F=Object")),t.close(),t.F):yk(Zh);for(var r=w0.length;r--;)delete Wg.prototype[w0[r]];return Wg()};tm[cL]=!0;var KD=Object.create||function(t,e){var r;return t!==null?(Xb.prototype=qr(t),r=new Xb,Xb.prototype=null,r[cL]=t):r=Wg(),e===void 0?r:iut(r,e)},n6=pr("unscopables"),o6=Array.prototype;o6[n6]==null&&ls.f(o6,n6,{configurable:!0,value:KD(null)});var ad=function(t){o6[n6][t]=!0},zl={},uut=jt(Function.toString);Te(ta.inspectSource)||(ta.inspectSource=function(t){return uut(t)});var E0,ud,D0,YD=ta.inspectSource,mk=wt.WeakMap,dL=Te(mk)&&/native code/.test(YD(mk)),em=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ea=ya?function(t,e,r){return ls.f(t,e,em(1,r))}:function(t,e,r){return t[e]=r,t},i6=wt.TypeError,sut=wt.WeakMap;if(dL||ta.state){var Ua=ta.state||(ta.state=new sut),lut=jt(Ua.get),bk=jt(Ua.has),cut=jt(Ua.set);E0=function(t,e){if(bk(Ua,t))throw new i6("Object already initialized");return e.facade=t,cut(Ua,t,e),e},ud=function(t){return lut(Ua,t)||{}},D0=function(t){return bk(Ua,t)}}else{var Ps=qD("state");tm[Ps]=!0,E0=function(t,e){if(tr(t,Ps))throw new i6("Object already initialized");return e.facade=t,ea(t,Ps,e),e},ud=function(t){return tr(t,Ps)?t[Ps]:{}},D0=function(t){return tr(t,Ps)}}var Ou,wk,Ek,Oo={set:E0,get:ud,has:D0,enforce:function(t){return D0(t)?ud(t):E0(t,{})},getterFor:function(t){return function(e){var r;if(!Be(e)||(r=ud(e)).type!==t)throw i6("Incompatible receiver, "+t+" required");return r}}},Dk={}.propertyIsEnumerable,xk=Object.getOwnPropertyDescriptor,fut={f:xk&&!Dk.call({1:2},1)?function(t){var e=xk(this,t);return!!e&&e.enumerable}:Dk},Ck=Object.getOwnPropertyDescriptor,pL={f:ya?Ck:function(t,e){if(t=cc(t),e=GD(e),aL)try{return Ck(t,e)}catch{}if(tr(t,e))return em(!ir(fut.f,t,e),t[e])}},hL=Function.prototype,dut=ya&&Object.getOwnPropertyDescriptor,Sk=tr(hL,"name"),XD={PROPER:Sk&&(function(){}).name==="something",CONFIGURABLE:Sk&&(!ya||ya&&dut(hL,"name").configurable)},ui=MD(function(t){var e=XD.CONFIGURABLE,r=Oo.get,n=Oo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Te(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!tr(u,"name")||e&&u.name!==p)&&ea(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==wt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ea(i,a,u)):f?i[a]=u:zD(a,u)})(Function.prototype,"toString",function(){return Te(this)&&r(this).source||YD(this)})}),put=w0.concat("length","prototype"),x0={f:Object.getOwnPropertyNames||function(t){return lL(t,put)}},hut={f:Object.getOwnPropertySymbols},gut=jt([].concat),vut=Gp("Reflect","ownKeys")||function(t){var e=x0.f(qr(t)),r=hut.f;return r?gut(e,r(t)):e},yut=function(t,e){for(var r=vut(e),n=ls.f,o=pL.f,i=0;i<r.length;i++){var a=r[i];tr(t,a)||n(t,a,o(e,a))}},mut=/#|\.prototype\./,Kp=function(t,e){var r=wut[but(t)];return r==Dut||r!=Eut&&(Te(e)?Ae(e):!!e)},but=Kp.normalize=function(t){return String(t).replace(mut,".").toLowerCase()},wut=Kp.data={},Eut=Kp.NATIVE="N",Dut=Kp.POLYFILL="P",a6=Kp,xut=pL.f,ma=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?wt:l?wt[u]||zD(u,{}):(wt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=xut(r,n))&&a.value:r[n],!a6(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;yut(i,o)}(t.sham||o&&o.sham)&&ea(i,"sham",!0),ui(r,n,i,t)}},Cut=!Ae(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ak=qD("IE_PROTO"),u6=wt.Object,Sut=u6.prototype,C0=Cut?u6.getPrototypeOf:function(t){var e=Wp(t);if(tr(e,Ak))return e[Ak];var r=e.constructor;return Te(r)&&e instanceof r?r.prototype:e instanceof u6?Sut:null},s6=pr("iterator"),gL=!1;[].keys&&("next"in(Ek=[].keys())?(wk=C0(C0(Ek)))!==Object.prototype&&(Ou=wk):gL=!0);var Aut=Ou==null||Ae(function(){var t={};return Ou[s6].call(t)!==t});Aut&&(Ou={}),Te(Ou[s6])||ui(Ou,s6,function(){return this});var ZD={IteratorPrototype:Ou,BUGGY_SAFARI_ITERATORS:gL},Out=ls.f,Ok=pr("toStringTag"),l6=function(t,e,r){t&&!tr(t=r?t:t.prototype,Ok)&&Out(t,Ok,{configurable:!0,value:e})},kut=ZD.IteratorPrototype,But=function(){return this},Fut=wt.String,Tut=wt.TypeError,S0=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=jt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return qr(n),function(i){if(typeof i=="object"||Te(i))return i;throw Tut("Can't set "+Fut(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),_ut=XD.PROPER,Put=XD.CONFIGURABLE,kk=ZD.IteratorPrototype,Zb=ZD.BUGGY_SAFARI_ITERATORS,cf=pr("iterator"),jut=function(){return this},vL=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=KD(kut,{next:em(1,h)}),l6(g,w,!1),zl[w]=But})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Zb&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[cf]||d["@@iterator"]||o&&d[o],v=!Zb&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=C0(y.call(new t)))!==Object.prototype&&u.next&&(C0(u)!==kk&&(S0?S0(u,kk):Te(u[cf])||ui(u,cf,jut)),l6(u,c,!0)),_ut&&o=="values"&&p&&p.name!=="values"&&(Put?ea(d,"name","values"):(f=!0,v=function(){return ir(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||ma({target:e,proto:!0,forced:Zb||f},s)),d[cf]!==v&&ui(d,cf,v,{name:o}),zl[e]=v,s},Nut=Oo.set,Iut=Oo.getterFor("Array Iterator"),Gf=vL(Array,"Array",function(t,e){Nut(this,{type:"Array Iterator",target:cc(t),index:0,kind:e})},function(){var t=Iut(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");zl.Arguments=zl.Array,ad("keys"),ad("values"),ad("entries");var yL={};yL[pr("toStringTag")]="z";var JD=String(yL)==="[object z]",Lut=pr("toStringTag"),Rut=wt.Object,Mut=ei(function(){return arguments}())=="Arguments",rm=JD?ei:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Rut(t),Lut))=="string"?r:Mut?ei(e):(n=ei(e))=="Object"&&Te(e.callee)?"Arguments":n},zut=JD?{}.toString:function(){return"[object "+rm(this)+"]"};JD||ui(Object.prototype,"toString",zut,{unsafe:!0});var $ut=wt.String,Go=function(t){if(rm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $ut(t)},Hut=jt("".charAt),Bk=jt("".charCodeAt),Vut=jt("".slice),Uut=function(t){return function(e,r){var n,o,i=Go(Qy(e)),a=qp(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Bk(i,a))<55296||n>56319||a+1===u||(o=Bk(i,a+1))<56320||o>57343?t?Hut(i,a):n:t?Vut(i,a,a+2):o-56320+(n-55296<<10)+65536}},mL={charAt:Uut(!0)},Wut=mL.charAt,Gut=Oo.set,qut=Oo.getterFor("String Iterator");vL(String,"String",function(t){Gut(this,{type:"String Iterator",string:Go(t),index:0})},function(){var t,e=qut(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Wut(r,n),e.index+=t.length,{value:t,done:!1})});var c6=function(t,e,r){for(var n in e)ui(t,n,e[n],r);return t},Kut=wt.Array,Yut=Math.max,Fk=x0.f,Tk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xut={f:function(t){return Tk&&ei(t)=="Window"?function(e){try{return Fk(e)}catch{return function(n,o,i){for(var a,u,s,l,c=fc(n),f=r6(void 0,c),d=r6(c,c),p=Kut(Yut(d-f,0)),v=0;f<d;f++,v++)a=p,u=v,s=n[f],(l=GD(u))in a?ls.f(a,l,em(0,s)):a[l]=s;return p.length=v,p}(Tk)}}(t):Fk(cc(t))}},_k=Ae(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Jh=Object.isExtensible,su=Ae(function(){Jh(1)})||_k?function(t){return!!Be(t)&&(!_k||ei(t)!="ArrayBuffer")&&(!Jh||Jh(t))}:Jh,Zut=!Ae(function(){return Object.isExtensible(Object.preventExtensions({}))}),QD=MD(function(t){var e=ls.f,r=!1,n=HD("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=x0.f,s=jt([].splice),l={};l[n]=1,u(l).length&&(x0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},ma({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xut.f}))},fastKey:function(u,s){if(!Be(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!tr(u,n)){if(!su(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!tr(u,n)){if(!su(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Zut&&r&&su(u)&&!tr(u,n)&&i(u),u}};tm[n]=!0}),Pk=jt(jt.bind),t8=function(t,e){return WD(t),e===void 0?t:Pk?Pk(t,e):function(){return t.apply(e,arguments)}},Jut=pr("iterator"),Qut=Array.prototype,tst=pr("iterator"),jk=function(t){if(t!=null)return Wd(t,tst)||Wd(t,"@@iterator")||zl[rm(t)]},est=wt.TypeError,Nk=function(t,e,r){var n,o;qr(t);try{if(!(n=Wd(t,"return"))){if(e==="throw")throw r;return r}n=ir(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return qr(n),r},rst=wt.TypeError,Gg=function(t,e){this.stopped=t,this.result=e},Ik=Gg.prototype,bL=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=t8(e,f),g=function(h){return n&&Nk(n,"normal",h),new Gg(!0,h)},m=function(h){return d?(qr(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)n=t;else{if(!(o=jk(t)))throw rst(e6(t)+" is not iterable");if((c=o)!==void 0&&(zl.Array===c||Qut[Jut]===c)){for(i=0,a=fc(t);a>i;i++)if((u=m(t[i]))&&b0(Ik,u))return u;return new Gg(!1)}n=function(h,b){var w=arguments.length<2?jk(h):b;if(WD(w))return qr(ir(w,h));throw est(e6(h)+" is not iterable")}(t,o)}for(s=n.next;!(l=ir(s,n)).done;){try{u=m(l.value)}catch(h){Nk(n,"throw",h)}if(typeof u=="object"&&u&&b0(Ik,u))return u}return new Gg(!1)},nst=wt.TypeError,wL=function(t,e){if(b0(e,t))return t;throw nst("Incorrect invocation")},EL=pr("iterator"),DL=!1;try{var ost=0,Lk={next:function(){return{done:!!ost++}},return:function(){DL=!0}};Lk[EL]=function(){return this},Array.from(Lk,function(){throw 2})}catch{}var f6=Array.isArray||function(t){return ei(t)=="Array"},xL=function(){},ist=[],CL=Gp("Reflect","construct"),e8=/^\s*(?:class|function)\b/,ast=jt(e8.exec),ust=!e8.exec(xL),ff=function(t){if(!Te(t))return!1;try{return CL(xL,ist,t),!0}catch{return!1}},sst=!CL||Ae(function(){var t;return ff(ff.call)||!ff(Object)||!ff(function(){t=!0})||t})?function(t){if(!Te(t))return!1;switch(rm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ust||!!ast(e8,YD(t))}:ff,lst=pr("species"),Rk=wt.Array,SL=function(t,e){return new(function(r){var n;return f6(r)&&(n=r.constructor,(sst(n)&&(n===Rk||f6(n.prototype))||Be(n)&&(n=n[lst])===null)&&(n=void 0)),n===void 0?Rk:n}(t))(e===0?0:e)},Mk=jt([].push),Jb=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Wp(s),y=iL(v),g=t8(l,c),m=fc(y),h=0,b=f||SL,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:Mk(w,d)}else switch(t){case 4:return!1;case 7:Mk(w,d)}return i?-1:n||o?o:w}},r8={filter:Jb(2),find:Jb(5),findIndex:Jb(6)},Qh=QD.getWeakData,cst=Oo.set,fst=Oo.getterFor,dst=r8.find,pst=r8.findIndex,hst=jt([].splice),gst=0,tg=function(t){return t.frozen||(t.frozen=new AL)},AL=function(){this.entries=[]},Qb=function(t,e){return dst(t.entries,function(r){return r[0]===e})};AL.prototype={get:function(t){var e=Qb(this,t);if(e)return e[1]},has:function(t){return!!Qb(this,t)},set:function(t,e){var r=Qb(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=pst(this.entries,function(r){return r[0]===t});return~e&&hst(this.entries,e,1),!!~e}};var df,OL={getConstructor:function(t,e,r,n){var o=t(function(s,l){wL(s,i),cst(s,{type:e,id:gst++,frozen:void 0}),l!=null&&bL(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=fst(e),u=function(s,l,c){var f=a(s),d=Qh(qr(l),!0);return d===!0?tg(f).set(l,c):d[f.id]=c,s};return c6(i,{delete:function(s){var l=a(this);if(!Be(s))return!1;var c=Qh(s);return c===!0?tg(l).delete(s):c&&tr(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Be(s))return!1;var c=Qh(s);return c===!0?tg(l).has(s):c&&tr(c,l.id)}}),c6(i,r?{get:function(s){var l=a(this);if(Be(s)){var c=Qh(s);return c===!0?tg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},eg=Oo.enforce,vst=!wt.ActiveXObject&&"ActiveXObject"in wt,kL=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},yst=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=wt[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=jt(u[g]);ui(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Be(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!Be(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Be(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(a6(t,!Te(a)||!(o||u.forEach&&!Ae(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),QD.enable();else if(a6(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Ae(function(){f.has(1)}),v=function(g,m){if(!DL)return!1;var h=!1;try{var b={};b[EL]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),y=!o&&Ae(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){wL(g,u);var h=function(b,w,D){var C,x;return S0&&Te(C=w.constructor)&&C!==D&&Be(x=C.prototype)&&x!==D.prototype&&S0(b,x),b}(new a,g,s);return m!=null&&bL(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,ma({global:!0,forced:s!=a},l),l6(s,t),o||r.setStrong(s,t,n),s}("WeakMap",kL,OL);if(dL&&vst){df=OL.getConstructor(kL,"WeakMap",!0),QD.enable();var pf=yst.prototype,zk=jt(pf.delete),rg=jt(pf.has),$k=jt(pf.get),Hk=jt(pf.set);c6(pf,{delete:function(t){if(Be(t)&&!su(t)){var e=eg(this);return e.frozen||(e.frozen=new df),zk(this,t)||e.frozen.delete(t)}return zk(this,t)},has:function(t){if(Be(t)&&!su(t)){var e=eg(this);return e.frozen||(e.frozen=new df),rg(this,t)||e.frozen.has(t)}return rg(this,t)},get:function(t){if(Be(t)&&!su(t)){var e=eg(this);return e.frozen||(e.frozen=new df),rg(this,t)?$k(this,t):e.frozen.get(t)}return $k(this,t)},set:function(t,e){if(Be(t)&&!su(t)){var r=eg(this);r.frozen||(r.frozen=new df),rg(this,t)?Hk(this,t,e):r.frozen.set(t,e)}else Hk(this,t,e);return this}})}var BL={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},t2=UD("span").classList,Vk=t2&&t2.constructor&&t2.constructor.prototype,mst=Vk===Object.prototype?void 0:Vk,e2=pr("iterator"),Uk=pr("toStringTag"),r2=Gf.values,FL=function(t,e){if(t){if(t[e2]!==r2)try{ea(t,e2,r2)}catch{t[e2]=r2}if(t[Uk]||ea(t,Uk,e),BL[e]){for(var r in Gf)if(t[r]!==Gf[r])try{ea(t,r,Gf[r])}catch{t[r]=Gf[r]}}}};for(var n2 in BL)FL(wt[n2]&&wt[n2].prototype,n2);FL(mst,"DOMTokenList");var d6=new WeakMap,bst={type:"list-item",renderElem:function(t,e,r){d6.set(t,r);var n=t,o=n.level,i=o===void 0?0:o,a=n.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,d){var p=d,v=p.type,y=p.level,g=y===void 0?0:y,m=p.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=d,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var C=j.previous(D),x=E.node(f,C);if(x==null)break;var O=x[0],T=O.level,R=T===void 0?0:T,H=O.type,M=O.ordered;if(H!==v||R<g)break;if(R===g){if(M!==h)break;b++}w=O,D=C}return b}(r,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var y=0;y<v&&!d;y++){var g=p[y];ot.isText(g)&&(d=g)}return d==null?"":d.color||""}(t);return bt("div",{style:u},bt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),bt("span",null,e))}},p6=function(t,e){return p6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},p6(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function TL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}p6(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Wk(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function sd(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Gk(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var wst=sL.includes;ma({target:"Array",proto:!0},{includes:function(t){return wst(this,t,arguments.length>1?arguments[1]:void 0)}}),ad("includes");var qk,o2,Est=function(){var t=qr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},n8=wt.RegExp,_L=Ae(function(){var t=n8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});_L||Ae(function(){return!n8("a","y").sticky});var Dst={BROKEN_CARET:_L||Ae(function(){var t=n8("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},xst=wt.RegExp,Cst=Ae(function(){var t=xst(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Sst=wt.RegExp,Ast=Ae(function(){var t=Sst("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Ost=Oo.get,kst=$D("native-string-replace",String.prototype.replace),A0=RegExp.prototype.exec,h6=A0,Bst=jt("".charAt),Fst=jt("".indexOf),Tst=jt("".replace),i2=jt("".slice),a2=(o2=/b*/g,ir(A0,qk=/a/,"a"),ir(A0,o2,"a"),qk.lastIndex!==0||o2.lastIndex!==0),Kk=Dst.BROKEN_CARET,u2=/()??/.exec("")[1]!==void 0;(a2||u2||Kk||Cst||Ast)&&(h6=function(t){var e,r,n,o,i,a,u,s=this,l=Ost(s),c=Go(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ir(h6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=Kk&&s.sticky,v=ir(Est,s),y=s.source,g=0,m=c;if(p&&(v=Tst(v,"y",""),Fst(v,"g")===-1&&(v+="g"),m=i2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Bst(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),u2&&(r=new RegExp("^"+y+"$(?!\\s)",v)),a2&&(n=s.lastIndex),o=ir(A0,p?r:s,m),p?o?(o.input=i2(o.input,g),o[0]=i2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:a2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),u2&&o&&o.length>1&&ir(kst,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=KD(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var O0=h6;ma({target:"RegExp",proto:!0,forced:/./.exec!==O0},{exec:O0});var PL=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var r=this.type;return A.getSelectedNodeByType(e,r)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var r=this.getListNode(e);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(r){if(E.isVoid(e,r)&&E.isBlock(e,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},t.prototype.exec=function(e,r){this.isActive(e)?N.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),_st='<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>',Pst='<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>',jst=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!1,r.title=Q("listModule.unOrderedList"),r.iconSvg=_st,r}return TL(e,t),e}(PL),Nst=function(t){function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ordered=!0,r.title=Q("listModule.orderedList"),r.iconSvg=Pst,r}return TL(e,t),e}(PL),Ist={key:"bulletedList",factory:function(){return new jst}},Lst={key:"numberedList",factory:function(){return new Nst}},Yk=[],Rst={type:"list-item",elemToHtml:function(t,e){var r="",n="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=d6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,y=f.level,g=y===void 0?0:y,m=A.findPath(c,l);if(m[0]===0)return g+1;var h=j.previous(m),b=E.node(c,h);if(!b)return 0;var w=sd(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,C=D.ordered,x=C!==void 0&&C,O=D.level,T=O===void 0?0:O;return T<g?g-T:T>g?0:T===g?x===v?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",Yk.push(i);var s=function(l){var c=d6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,y=f.level,g=y===void 0?0:y,m=A.findPath(c,l);if(m[0]===c.children.length-1)return g+1;var h=j.next(m),b=E.node(c,h);if(!b)return 0;var w=sd(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,C=D.ordered,x=C!==void 0&&C,O=D.level,T=O===void 0?0:O;return T<g?g-T:T>g?0:T===g?x===v?0:1:0}(t);if(s>0)for(u=0;u<s;u++)n+="</"+Yk.pop()+">";return{html:"<li>"+e+"</li>",prefix:r,suffix:n}}},Mst=pr("species"),zst=r8.filter,$st=JE>=51||!Ae(function(){var t=[];return(t.constructor={})[Mst]=function(){return{foo:1}},t.filter(Boolean).foo!==1});ma({target:"Array",proto:!0,forced:!$st},{filter:function(t){return zst(this,t,arguments.length>1?arguments[1]:void 0)}});var o8=Function.prototype,Xk=o8.apply,Hst=o8.bind,Zk=o8.call,Vst=typeof Reflect=="object"&&Reflect.apply||(Hst?Zk.bind(Xk):function(){return Zk.apply(Xk,arguments)}),Jk=(pr("species"),RegExp.prototype),Ust=mL.charAt,Wst=function(t,e,r){return e+(r?Ust(t,e).length:1)},Gst=Math.floor,s2=jt("".charAt),qst=jt("".replace),l2=jt("".slice),Kst=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Yst=/\$([$&'`]|\d{1,2})/g,Xst=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=Yst;return o!==void 0&&(o=Wp(o),s=Kst),qst(i,s,function(l,c){var f;switch(s2(c,0)){case"$":return"$";case"&":return t;case"`":return l2(e,0,r);case"'":return l2(e,a);case"<":f=o[l2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Gst(d/10);return p===0?l:p<=u?n[p-1]===void 0?s2(c,1):n[p-1]+s2(c,1):l}f=n[d-1]}return f===void 0?"":f})},Zst=wt.TypeError,Jst=function(t,e){var r=t.exec;if(Te(r)){var n=ir(r,t,e);return n!==null&&qr(n),n}if(ei(t)==="RegExp")return ir(O0,t,e);throw Zst("RegExp#exec called on incompatible receiver")},g6=pr("replace"),Qst=Math.max,tlt=Math.min,elt=jt([].concat),c2=jt([].push),Qk=jt("".indexOf),tB=jt("".slice),rlt="a".replace(/./,"$0")==="$0",eB=!!/./[g6]&&/./[g6]("a","$0")==="";(function(t,e,r,n){var o=pr(t),i=!Ae(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ae(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=jt(/./[o]),s=function(l,c,f){var d=eB?"$":"$0";return[function(p,v){var y=Qy(this),g=p==null?void 0:Wd(p,g6);return g?ir(g,p,y,v):ir(c,Go(y),p,v)},function(p,v){var y=qr(this),g=Go(p);if(typeof v=="string"&&Qk(v,d)===-1&&Qk(v,"$<")===-1){var m=f(c,y,g,v);if(m.done)return m.value}var h=Te(v);h||(v=Go(v));var b=y.global;if(b){var w=y.unicode;y.lastIndex=0}for(var D=[];;){var C=Jst(y,g);if(C===null||(c2(D,C),!b))break;Go(C[0])===""&&(y.lastIndex=Wst(g,uL(y.lastIndex),w))}for(var x,O="",T=0,R=0;R<D.length;R++){for(var H=Go((C=D[R])[0]),M=Qst(tlt(qp(C.index),g.length),0),K=[],U=1;U<C.length;U++)c2(K,(x=C[U])===void 0?x:String(x));var W=C.groups;if(h){var q=elt([H],K,M,g);W!==void 0&&c2(q,W);var et=Go(Vst(v,void 0,q))}else et=Xst(H,g,M,K,W,v);M>=T&&(O+=tB(g,T,M)+et,T=M+H.length)}return O+tB(g,T)}]}(0,""[t],function(l,c,f,d,p){var v=jt(l),y=c.exec;return y===O0||y===Jk.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});ui(String.prototype,t,s[0]),ui(Jk,o,s[1])}})("replace",0,!!Ae(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!rlt||eB);var nlt=wt.TypeError,jL=function(t,e,r,n,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&t8(a,u);f<n;){if(f in r){if(s=d?d(r[f],f,e):r[f],i>0&&f6(s))l=fc(s),c=jL(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw nlt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},olt=jL;function f2(t){return t.length?t[0].tagName.toLowerCase():""}ma({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=Wp(this),r=fc(e),n=SL(e,0);return n.length=olt(n,e,e,r,0,t===void 0?1:qp(t)),n}}),ad("flat"),ma({global:!0},{globalThis:wt}),An&&(B.fn.append=An),Sn&&(B.fn.attr=Sn),Al&&(B.fn.parent=Al);var ilt={renderElems:[bst],editorPlugin:function(t){var e=t.deleteBackward,r=t.handleTab,n=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void N.setNodes(o,{level:d+1})}}if(L.isExpanded(l)){var p=0,v=!1;try{for(var y=Wk(Gk(o)),g=y.next();!g.done;g=y.next()){var m=sd(g.value,1)[0];A.getNodeType(m)==="list-item"?p++:v=!0}}catch(x){i={error:x}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}if(v||p<=1)return void r();try{for(var h=Wk(Gk(o)),b=h.next();!b.done;b=h.next()){var w=sd(b.value,2),D=(m=w[0],w[1]),C=m.level;d=C===void 0?0:C,N.setNodes(o,{level:d+1},{at:D})}}catch(x){u={error:x}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(i){var a=sd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[Ist,Lst],elemsToHtml:[Rst],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);(e=e.filter(function(a){return!!ot.isText(a)||!!r.isInline(a)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=function(a){return f2(a.parent())==="ol"}(n),i=function(a){for(var u=0,s=a.parent(),l=f2(s);l==="ul"||l==="ol";)l=f2(s=s.parent()),u++;return u-1}(n);return{type:"list-item",ordered:o,level:i,children:e}}}]},NL=Zu(function(t,e){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",y="[object Set]",g="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[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[o]=x[i]=x[b]=x[a]=x[w]=x[u]=x[s]=x[l]=x[c]=x[f]=x[d]=x[v]=x[y]=x[g]=x[h]=!1;var O=typeof ae=="object"&&ae&&ae.Object===Object&&ae,T=typeof self=="object"&&self&&self.Object===Object&&self,R=O||T||Function("return this")(),H=e&&!e.nodeType&&e,M=H&&t&&!t.nodeType&&t,K=M&&M.exports===H,U=K&&O.process,W=function(){try{return U&&U.binding&&U.binding("util")}catch{}}(),q=W&&W.isTypedArray;function et(_,I){for(var Z=-1,ht=_==null?0:_.length;++Z<ht;)if(I(_[Z],Z,_))return!0;return!1}function st(_){var I=-1,Z=Array(_.size);return _.forEach(function(ht,te){Z[++I]=[te,ht]}),Z}function ut(_){var I=-1,Z=Array(_.size);return _.forEach(function(ht){Z[++I]=ht}),Z}var at=Array.prototype,k=Function.prototype,S=Object.prototype,P=R["__core-js_shared__"],$=k.toString,Y=S.hasOwnProperty,V=function(){var _=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),it=S.toString,gt=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=K?R.Buffer:void 0,Dt=R.Symbol,G=R.Uint8Array,It=S.propertyIsEnumerable,At=at.splice,dt=Dt?Dt.toStringTag:void 0,Ot=Object.getOwnPropertySymbols,Oe=vt?vt.isBuffer:void 0,$t=function(_,I){return function(Z){return _(I(Z))}}(Object.keys,Object),Qt=pi(R,"DataView"),ge=pi(R,"Map"),hr=pi(R,"Promise"),Mt=pi(R,"Set"),Nr=pi(R,"WeakMap"),Pn=pi(Object,"create"),Qn=Lo(Qt),cs=Lo(ge),_a=Lo(hr),jn=Lo(Mt),to=Lo(Nr),jo=Dt?Dt.prototype:void 0,gr=jo?jo.valueOf:void 0;function vr(_){var I=-1,Z=_==null?0:_.length;for(this.clear();++I<Z;){var ht=_[I];this.set(ht[0],ht[1])}}function yr(_){var I=-1,Z=_==null?0:_.length;for(this.clear();++I<Z;){var ht=_[I];this.set(ht[0],ht[1])}}function kr(_){var I=-1,Z=_==null?0:_.length;for(this.clear();++I<Z;){var ht=_[I];this.set(ht[0],ht[1])}}function rr(_){var I=-1,Z=_==null?0:_.length;for(this.__data__=new kr;++I<Z;)this.add(_[I])}function fn(_){var I=this.__data__=new yr(_);this.size=I.size}function pc(_,I){var Z=Ro(_),ht=!Z&&sh(_),te=!Z&&!ht&&eo(_),Pt=!Z&&!ht&&!te&&no(_),F=Z||ht||te||Pt,z=F?function(zt,ve){for(var se=-1,Ut=Array(zt);++se<zt;)Ut[se]=ve(se);return Ut}(_.length,String):[],nt=z.length;for(var lt in _)!Y.call(_,lt)||F&&(lt=="length"||te&&(lt=="offset"||lt=="parent")||Pt&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||hc(lt,nt))||z.push(lt);return z}function di(_,I){for(var Z=_.length;Z--;)if(ps(_[Z][0],I))return Z;return-1}function No(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":dt&&dt in Object(_)?function(I){var Z=Y.call(I,dt),ht=I[dt];try{I[dt]=void 0;var te=!0}catch{}var Pt=it.call(I);return te&&(Z?I[dt]=ht:delete I[dt]),Pt}(_):function(I){return it.call(I)}(_)}function fs(_){return hi(_)&&No(_)==o}function Pa(_,I,Z,ht,te){return _===I||(_==null||I==null||!hi(_)&&!hi(I)?_!=_&&I!=I:function(Pt,F,z,nt,lt,zt){var ve=Ro(Pt),se=Ro(F),Ut=ve?i:Kr(Pt),Ye=se?i:Kr(F),mr=(Ut=Ut==o?d:Ut)==d,ja=(Ye=Ye==o?d:Ye)==d,Mo=Ut==Ye;if(Mo&&eo(Pt)){if(!eo(F))return!1;ve=!0,mr=!1}if(Mo&&!mr)return zt||(zt=new fn),ve||no(Pt)?dn(Pt,F,z,nt,lt,zt):function(Lt,Wt,Gt,ke,Br,Ir,Ln){switch(Gt){case w:if(Lt.byteLength!=Wt.byteLength||Lt.byteOffset!=Wt.byteOffset)return!1;Lt=Lt.buffer,Wt=Wt.buffer;case b:return!(Lt.byteLength!=Wt.byteLength||!Ir(new G(Lt),new G(Wt)));case a:case u:case f:return ps(+Lt,+Wt);case s:return Lt.name==Wt.name&&Lt.message==Wt.message;case v:case g:return Lt==Wt+"";case c:var vi=st;case y:var vc=1&ke;if(vi||(vi=ut),Lt.size!=Wt.size&&!vc)return!1;var fh=Ln.get(Lt);if(fh)return fh==Wt;ke|=2,Ln.set(Lt,Wt);var hs=dn(vi(Lt),vi(Wt),ke,Br,Ir,Ln);return Ln.delete(Lt),hs;case m:if(gr)return gr.call(Lt)==gr.call(Wt)}return!1}(Pt,F,Ut,z,nt,lt,zt);if(!(1&z)){var gi=mr&&Y.call(Pt,"__wrapped__"),mt=ja&&Y.call(F,"__wrapped__");if(gi||mt){var Xt=gi?Pt.value():Pt,_e=mt?F.value():F;return zt||(zt=new fn),lt(Xt,_e,z,nt,zt)}}return Mo?(zt||(zt=new fn),function(Lt,Wt,Gt,ke,Br,Ir){var Ln=1&Gt,vi=Io(Lt),vc=vi.length,fh=Io(Wt).length;if(vc!=fh&&!Ln)return!1;for(var hs=vc;hs--;){var Na=vi[hs];if(!(Ln?Na in Wt:Y.call(Wt,Na)))return!1}var Rx=Ir.get(Lt);if(Rx&&Ir.get(Wt))return Rx==Wt;var dh=!0;Ir.set(Lt,Wt),Ir.set(Wt,Lt);for(var Dm=Ln;++hs<vc;){var ph=Lt[Na=vi[hs]],hh=Wt[Na];if(ke)var Mx=Ln?ke(hh,ph,Na,Wt,Lt,Ir):ke(ph,hh,Na,Lt,Wt,Ir);if(!(Mx===void 0?ph===hh||Br(ph,hh,Gt,ke,Ir):Mx)){dh=!1;break}Dm||(Dm=Na=="constructor")}if(dh&&!Dm){var gh=Lt.constructor,vh=Wt.constructor;gh==vh||!("constructor"in Lt)||!("constructor"in Wt)||typeof gh=="function"&&gh instanceof gh&&typeof vh=="function"&&vh instanceof vh||(dh=!1)}return Ir.delete(Lt),Ir.delete(Wt),dh}(Pt,F,z,nt,lt,zt)):!1}(_,I,Z,ht,Pa,te))}function ds(_){return!(!lh(_)||function(I){return!!V&&V in I}(_))&&(gc(_)?gt:D).test(Lo(_))}function Nn(_){if(Z=(I=_)&&I.constructor,ht=typeof Z=="function"&&Z.prototype||S,I!==ht)return $t(_);var I,Z,ht,te=[];for(var Pt in Object(_))Y.call(_,Pt)&&Pt!="constructor"&&te.push(Pt);return te}function dn(_,I,Z,ht,te,Pt){var F=1&Z,z=_.length,nt=I.length;if(z!=nt&&!(F&&nt>z))return!1;var lt=Pt.get(_);if(lt&&Pt.get(I))return lt==I;var zt=-1,ve=!0,se=2&Z?new rr:void 0;for(Pt.set(_,I),Pt.set(I,_);++zt<z;){var Ut=_[zt],Ye=I[zt];if(ht)var mr=F?ht(Ye,Ut,zt,I,_,Pt):ht(Ut,Ye,zt,_,I,Pt);if(mr!==void 0){if(mr)continue;ve=!1;break}if(se){if(!et(I,function(ja,Mo){if(gi=Mo,!se.has(gi)&&(Ut===ja||te(Ut,ja,Z,ht,Pt)))return se.push(Mo);var gi})){ve=!1;break}}else if(Ut!==Ye&&!te(Ut,Ye,Z,ht,Pt)){ve=!1;break}}return Pt.delete(_),Pt.delete(I),ve}function Io(_){return function(I,Z,ht){var te=Z(I);return Ro(I)?te:function(Pt,F){for(var z=-1,nt=F.length,lt=Pt.length;++z<nt;)Pt[lt+z]=F[z];return Pt}(te,ht(I))}(_,ch,uh)}function In(_,I){var Z,ht,te=_.__data__;return((ht=typeof(Z=I))=="string"||ht=="number"||ht=="symbol"||ht=="boolean"?Z!=="__proto__":Z===null)?te[typeof I=="string"?"string":"hash"]:te.map}function pi(_,I){var Z=function(ht,te){return ht==null?void 0:ht[te]}(_,I);return ds(Z)?Z:void 0}vr.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},vr.prototype.delete=function(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I},vr.prototype.get=function(_){var I=this.__data__;if(Pn){var Z=I[_];return Z===r?void 0:Z}return Y.call(I,_)?I[_]:void 0},vr.prototype.has=function(_){var I=this.__data__;return Pn?I[_]!==void 0:Y.call(I,_)},vr.prototype.set=function(_,I){var Z=this.__data__;return this.size+=this.has(_)?0:1,Z[_]=Pn&&I===void 0?r:I,this},yr.prototype.clear=function(){this.__data__=[],this.size=0},yr.prototype.delete=function(_){var I=this.__data__,Z=di(I,_);return!(Z<0)&&(Z==I.length-1?I.pop():At.call(I,Z,1),--this.size,!0)},yr.prototype.get=function(_){var I=this.__data__,Z=di(I,_);return Z<0?void 0:I[Z][1]},yr.prototype.has=function(_){return di(this.__data__,_)>-1},yr.prototype.set=function(_,I){var Z=this.__data__,ht=di(Z,_);return ht<0?(++this.size,Z.push([_,I])):Z[ht][1]=I,this},kr.prototype.clear=function(){this.size=0,this.__data__={hash:new vr,map:new(ge||yr),string:new vr}},kr.prototype.delete=function(_){var I=In(this,_).delete(_);return this.size-=I?1:0,I},kr.prototype.get=function(_){return In(this,_).get(_)},kr.prototype.has=function(_){return In(this,_).has(_)},kr.prototype.set=function(_,I){var Z=In(this,_),ht=Z.size;return Z.set(_,I),this.size+=Z.size==ht?0:1,this},rr.prototype.add=rr.prototype.push=function(_){return this.__data__.set(_,r),this},rr.prototype.has=function(_){return this.__data__.has(_)},fn.prototype.clear=function(){this.__data__=new yr,this.size=0},fn.prototype.delete=function(_){var I=this.__data__,Z=I.delete(_);return this.size=I.size,Z},fn.prototype.get=function(_){return this.__data__.get(_)},fn.prototype.has=function(_){return this.__data__.has(_)},fn.prototype.set=function(_,I){var Z=this.__data__;if(Z instanceof yr){var ht=Z.__data__;if(!ge||ht.length<199)return ht.push([_,I]),this.size=++Z.size,this;Z=this.__data__=new kr(ht)}return Z.set(_,I),this.size=Z.size,this};var uh=Ot?function(_){return _==null?[]:(_=Object(_),function(I,Z){for(var ht=-1,te=I==null?0:I.length,Pt=0,F=[];++ht<te;){var z=I[ht];Z(z,ht,I)&&(F[Pt++]=z)}return F}(Ot(_),function(I){return It.call(_,I)}))}:function(){return[]},Kr=No;function hc(_,I){return!!(I=I??n)&&(typeof _=="number"||C.test(_))&&_>-1&&_%1==0&&_<I}function Lo(_){if(_!=null){try{return $.call(_)}catch{}try{return _+""}catch{}}return""}function ps(_,I){return _===I||_!=_&&I!=I}(Qt&&Kr(new Qt(new ArrayBuffer(1)))!=w||ge&&Kr(new ge)!=c||hr&&Kr(hr.resolve())!=p||Mt&&Kr(new Mt)!=y||Nr&&Kr(new Nr)!=h)&&(Kr=function(_){var I=No(_),Z=I==d?_.constructor:void 0,ht=Z?Lo(Z):"";if(ht)switch(ht){case Qn:return w;case cs:return c;case _a:return p;case jn:return y;case to:return h}return I});var sh=fs(function(){return arguments}())?fs:function(_){return hi(_)&&Y.call(_,"callee")&&!It.call(_,"callee")},Ro=Array.isArray,eo=Oe||function(){return!1};function gc(_){if(!lh(_))return!1;var I=No(_);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function ro(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=n}function lh(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function hi(_){return _!=null&&typeof _=="object"}var no=q?function(_){return function(I){return _(I)}}(q):function(_){return hi(_)&&ro(_.length)&&!!x[No(_)]};function ch(_){return(I=_)!=null&&ro(I.length)&&!gc(I)?pc(_):Nn(_);var I}t.exports=function(_,I){return Pa(_,I)}});_r("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"}}),_r("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var rB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function IL(t){var e={exports:{}};return t(e,e.exports),e.exports}var Bi,qg,ng=function(t){return t&&t.Math==Math&&t},_t=ng(typeof globalThis=="object"&&globalThis)||ng(typeof window=="object"&&window)||ng(typeof self=="object"&&self)||ng(typeof rB=="object"&&rB)||function(){return this}()||Function("return this")(),qe=function(t){try{return!!t()}catch{return!0}},ba=!qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),hf=Function.prototype.call,Je=hf.bind?hf.bind(hf):function(){return hf.apply(hf,arguments)},nB={}.propertyIsEnumerable,oB=Object.getOwnPropertyDescriptor,alt={f:oB&&!nB.call({1:2},1)?function(t){var e=oB(this,t);return!!e&&e.enumerable}:nB},i8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},LL=Function.prototype,v6=LL.bind,y6=LL.call,ult=v6&&v6.bind(y6),Rt=v6?function(t){return t&&ult(y6,t)}:function(t){return t&&function(){return y6.apply(t,arguments)}},slt=Rt({}.toString),llt=Rt("".slice),ra=function(t){return llt(slt(t),8,-1)},d2=_t.Object,clt=Rt("".split),RL=qe(function(){return!d2("z").propertyIsEnumerable(0)})?function(t){return ra(t)=="String"?clt(t,""):d2(t)}:d2,flt=_t.TypeError,wa=function(t){if(t==null)throw flt("Can't call method on "+t);return t},Yp=function(t){return RL(wa(t))},Ar=function(t){return typeof t=="function"},yo=function(t){return typeof t=="object"?t!==null:Ar(t)},dlt=function(t){return Ar(t)?t:void 0},Xp=function(t,e){return arguments.length<2?dlt(_t[t]):_t[t]&&_t[t][e]},ML=Rt({}.isPrototypeOf),p2=Xp("navigator","userAgent")||"",iB=_t.process,aB=_t.Deno,uB=iB&&iB.versions||aB&&aB.version,sB=uB&&uB.v8;sB&&(qg=(Bi=sB.split("."))[0]>0&&Bi[0]<4?1:+(Bi[0]+Bi[1])),!qg&&p2&&(!(Bi=p2.match(/Edge\/(\d+)/))||Bi[1]>=74)&&(Bi=p2.match(/Chrome\/(\d+)/))&&(qg=+Bi[1]);var m6=qg,b6=!!Object.getOwnPropertySymbols&&!qe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&m6&&m6<41}),a8=b6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",plt=_t.Object,h2=a8?function(t){return typeof t=="symbol"}:function(t){var e=Xp("Symbol");return Ar(e)&&ML(e.prototype,plt(t))},hlt=_t.String,zL=function(t){try{return hlt(t)}catch{return"Object"}},glt=_t.TypeError,$L=function(t){if(Ar(t))return t;throw glt(zL(t)+" is not a function")},u8=function(t,e){var r=t[e];return r==null?void 0:$L(r)},vlt=_t.TypeError,ylt=Object.defineProperty,s8=function(t,e){try{ylt(_t,t,{value:e,configurable:!0,writable:!0})}catch{_t[t]=e}return e},na=_t["__core-js_shared__"]||s8("__core-js_shared__",{}),l8=IL(function(t){(t.exports=function(e,r){return na[e]||(na[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),mlt=_t.Object,c8=function(t){return mlt(wa(t))},blt=Rt({}.hasOwnProperty),Dn=Object.hasOwn||function(t,e){return blt(c8(t),e)},wlt=0,Elt=Math.random(),Dlt=Rt(1 .toString),HL=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Dlt(++wlt+Elt,36)},gf=l8("wks"),ku=_t.Symbol,lB=ku&&ku.for,xlt=a8?ku:ku&&ku.withoutSetter||HL,_n=function(t){if(!Dn(gf,t)||!b6&&typeof gf[t]!="string"){var e="Symbol."+t;b6&&Dn(ku,t)?gf[t]=ku[t]:gf[t]=a8&&lB?lB(e):xlt(e)}return gf[t]},Clt=_t.TypeError,Slt=_n("toPrimitive"),f8=function(t){var e=function(r,n){if(!yo(r)||h2(r))return r;var o,i=u8(r,Slt);if(i){if(o=Je(i,r,n),!yo(o)||h2(o))return o;throw Clt("Can't convert object to primitive value")}return function(a,u){var s,l;if(Ar(s=a.toString)&&!yo(l=Je(s,a))||Ar(s=a.valueOf)&&!yo(l=Je(s,a)))return l;throw vlt("Can't convert object to primitive value")}(r)}(t,"string");return h2(e)?e:e+""},w6=_t.document,Alt=yo(w6)&&yo(w6.createElement),d8=function(t){return Alt?w6.createElement(t):{}},VL=!ba&&!qe(function(){return Object.defineProperty(d8("div"),"a",{get:function(){return 7}}).a!=7}),cB=Object.getOwnPropertyDescriptor,UL={f:ba?cB:function(t,e){if(t=Yp(t),e=f8(e),VL)try{return cB(t,e)}catch{}if(Dn(t,e))return i8(!Je(alt.f,t,e),t[e])}},Olt=_t.String,klt=_t.TypeError,xn=function(t){if(yo(t))return t;throw klt(Olt(t)+" is not an object")},Blt=_t.TypeError,fB=Object.defineProperty,Zp={f:ba?fB:function(t,e,r){if(xn(t),e=f8(e),xn(r),VL)try{return fB(t,e,r)}catch{}if("get"in r||"set"in r)throw Blt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},$l=ba?function(t,e,r){return Zp.f(t,e,i8(1,r))}:function(t,e,r){return t[e]=r,t},Flt=Rt(Function.toString);Ar(na.inspectSource)||(na.inspectSource=function(t){return Flt(t)});var E6,k0,D6,p8=na.inspectSource,dB=_t.WeakMap,Tlt=Ar(dB)&&/native code/.test(p8(dB)),pB=l8("keys"),WL=function(t){return pB[t]||(pB[t]=HL(t))},h8={},hB=_t.TypeError,_lt=_t.WeakMap;if(Tlt||na.state){var Wa=na.state||(na.state=new _lt),Plt=Rt(Wa.get),gB=Rt(Wa.has),jlt=Rt(Wa.set);E6=function(t,e){if(gB(Wa,t))throw new hB("Object already initialized");return e.facade=t,jlt(Wa,t,e),e},k0=function(t){return Plt(Wa,t)||{}},D6=function(t){return gB(Wa,t)}}else{var js=WL("state");h8[js]=!0,E6=function(t,e){if(Dn(t,js))throw new hB("Object already initialized");return e.facade=t,$l(t,js,e),e},k0=function(t){return Dn(t,js)?t[js]:{}},D6=function(t){return Dn(t,js)}}var x6={get:k0,enforce:function(t){return D6(t)?k0(t):E6(t,{})}},GL=Function.prototype,Nlt=ba&&Object.getOwnPropertyDescriptor,vB=Dn(GL,"name"),g8={PROPER:vB&&(function(){}).name==="something",CONFIGURABLE:vB&&(!ba||ba&&Nlt(GL,"name").configurable)},Gd=IL(function(t){var e=g8.CONFIGURABLE,r=x6.get,n=x6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Ar(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dn(u,"name")||e&&u.name!==p)&&$l(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==_t?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:$l(i,a,u)):f?i[a]=u:s8(a,u)})(Function.prototype,"toString",function(){return Ar(this)&&r(this).source||p8(this)})}),Ilt=Math.ceil,Llt=Math.floor,nm=function(t){var e=+t;return e!=e||e===0?0:(e>0?Llt:Ilt)(e)},Rlt=Math.max,Mlt=Math.min,qd=function(t,e){var r=nm(t);return r<0?Rlt(r+e,0):Mlt(r,e)},zlt=Math.min,v8=function(t){return t>0?zlt(nm(t),9007199254740991):0},om=function(t){return v8(t.length)},$lt=function(t){return function(e,r,n){var o,i=Yp(e),a=om(i),u=qd(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Hlt=$lt(!1),yB=Rt([].push),qL=function(t,e){var r,n=Yp(t),o=0,i=[];for(r in n)!Dn(h8,r)&&Dn(n,r)&&yB(i,r);for(;e.length>o;)Dn(n,r=e[o++])&&(~Hlt(i,r)||yB(i,r));return i},B0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vlt=B0.concat("length","prototype"),Ult={f:Object.getOwnPropertyNames||function(t){return qL(t,Vlt)}},Wlt={f:Object.getOwnPropertySymbols},Glt=Rt([].concat),qlt=Xp("Reflect","ownKeys")||function(t){var e=Ult.f(xn(t)),r=Wlt.f;return r?Glt(e,r(t)):e},Klt=function(t,e){for(var r=qlt(e),n=Zp.f,o=UL.f,i=0;i<r.length;i++){var a=r[i];Dn(t,a)||n(t,a,o(e,a))}},Ylt=/#|\.prototype\./,Jp=function(t,e){var r=Zlt[Xlt(t)];return r==Qlt||r!=Jlt&&(Ar(e)?qe(e):!!e)},Xlt=Jp.normalize=function(t){return String(t).replace(Ylt,".").toLowerCase()},Zlt=Jp.data={},Jlt=Jp.NATIVE="N",Qlt=Jp.POLYFILL="P",tct=Jp,ect=UL.f,Ea=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?_t:l?_t[u]||s8(u,{}):(_t[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=ect(r,n))&&a.value:r[n],!tct(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Klt(i,o)}(t.sham||o&&o.sham)&&$l(i,"sham",!0),Gd(r,n,i,t)}},KL={};KL[_n("toStringTag")]="z";var y8=String(KL)==="[object z]",rct=_n("toStringTag"),nct=_t.Object,oct=ra(function(){return arguments}())=="Arguments",m8=y8?ra:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=nct(t),rct))=="string"?r:oct?ra(e):(n=ra(e))=="Object"&&Ar(e.callee)?"Arguments":n},ict=_t.String,Dr=function(t){if(m8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ict(t)},act=/"/g,uct=Rt("".replace);Ea({target:"String",proto:!0,forced:qe(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=Dr(wa(this)),n="<a",(n+=' name="'+uct(Dr(e),act,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var og,YL=function(){var t=xn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},b8=_t.RegExp,C6=qe(function(){var t=b8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});C6||qe(function(){return!b8("a","y").sticky});var XL={BROKEN_CARET:C6||qe(function(){var t=b8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:C6},sct=Object.keys||function(t){return qL(t,B0)},lct=ba?Object.defineProperties:function(t,e){xn(t);for(var r,n=Yp(e),o=sct(e),i=o.length,a=0;i>a;)Zp.f(t,r=o[a++],n[r]);return t},cct=Xp("document","documentElement"),ZL=WL("IE_PROTO"),g2=function(){},JL=function(t){return"<script>"+t+"<\/script>"},mB=function(t){t.write(JL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Kg=function(){try{og=new ActiveXObject("htmlfile")}catch{}var t,e;Kg=typeof document<"u"?document.domain&&og?mB(og):((e=d8("iframe")).style.display="none",cct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(JL("document.F=Object")),t.close(),t.F):mB(og);for(var r=B0.length;r--;)delete Kg.prototype[B0[r]];return Kg()};h8[ZL]=!0;var bB,v2,QL=Object.create||function(t,e){var r;return t!==null?(g2.prototype=xn(t),r=new g2,g2.prototype=null,r[ZL]=t):r=Kg(),e===void 0?r:lct(r,e)},fct=_t.RegExp,dct=qe(function(){var t=fct(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),pct=_t.RegExp,hct=qe(function(){var t=pct("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),gct=x6.get,vct=l8("native-string-replace",String.prototype.replace),F0=RegExp.prototype.exec,S6=F0,yct=Rt("".charAt),mct=Rt("".indexOf),bct=Rt("".replace),y2=Rt("".slice),m2=(v2=/b*/g,Je(F0,bB=/a/,"a"),Je(F0,v2,"a"),bB.lastIndex!==0||v2.lastIndex!==0),wB=XL.BROKEN_CARET,b2=/()??/.exec("")[1]!==void 0;(m2||b2||wB||dct||hct)&&(S6=function(t){var e,r,n,o,i,a,u,s=this,l=gct(s),c=Dr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Je(S6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=wB&&s.sticky,v=Je(YL,s),y=s.source,g=0,m=c;if(p&&(v=bct(v,"y",""),mct(v,"g")===-1&&(v+="g"),m=y2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&yct(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),b2&&(r=new RegExp("^"+y+"$(?!\\s)",v)),m2&&(n=s.lastIndex),o=Je(F0,p?r:s,m),p?o?(o.input=y2(o.input,g),o[0]=y2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:m2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),b2&&o&&o.length>1&&Je(vct,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=QL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Kd=S6;Ea({target:"RegExp",proto:!0,forced:/./.exec!==Kd},{exec:Kd});var T0=Array.isArray||function(t){return ra(t)=="Array"},tR=function(){},wct=[],eR=Xp("Reflect","construct"),w8=/^\s*(?:class|function)\b/,Ect=Rt(w8.exec),Dct=!w8.exec(tR),vf=function(t){if(!Ar(t))return!1;try{return eR(tR,wct,t),!0}catch{return!1}},E8=!eR||qe(function(){var t;return vf(vf.call)||!vf(Object)||!vf(function(){t=!0})||t})?function(t){if(!Ar(t))return!1;switch(m8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Dct||!!Ect(w8,p8(t))}:vf,rR=function(t,e,r){var n=f8(e);n in t?Zp.f(t,n,i8(0,r)):t[n]=r},xct=_n("species"),D8=function(t){return m6>=51||!qe(function(){var e=[];return(e.constructor={})[xct]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Cct=Rt([].slice),Sct=D8("slice"),Act=_n("species"),w2=_t.Array,Oct=Math.max;function Zn(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function EB(t){var e=t.selection;if(e==null)return!1;var r=Zn(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Zn(r,2)[1],o=E.start(t,n);if(kt.equals(e.anchor,o))return!0}return!1}function DB(t,e){var r,n,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}Ea({target:"Array",proto:!0,forced:!Sct},{slice:function(t,e){var r,n,o,i=Yp(this),a=om(i),u=qd(t,a),s=qd(e===void 0?a:e,a);if(T0(i)&&(r=i.constructor,(E8(r)&&(r===w2||T0(r.prototype))||yo(r)&&(r=r[Act])===null)&&(r=void 0),r===w2||r===void 0))return Cct(i,u,s);for(n=new(r===void 0?w2:r)(Oct(s-u,0)),o=0;u<s;u++,o++)u in i&&rR(n,o,i[u]);return n.length=o,n}});var xB=Rt(Rt.bind),kct=_n("species"),CB=_t.Array,Bct=function(t,e){return new(function(r){var n;return T0(r)&&(n=r.constructor,(E8(n)&&(n===CB||T0(n.prototype))||yo(n)&&(n=n[kct])===null)&&(n=void 0)),n===void 0?CB:n}(t))(e===0?0:e)},SB=Rt([].push),ig=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=c8(s),y=RL(v),g=function(D,C){return $L(D),C===void 0?D:xB?xB(D,C):function(){return D.apply(C,arguments)}}(l,c),m=om(y),h=0,b=f||Bct,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:SB(w,d)}else switch(t){case 4:return!1;case 7:SB(w,d)}return i?-1:n||o?o:w}},im={forEach:ig(0),map:ig(1),filter:ig(2),find:ig(5)},Fct=im.map;Ea({target:"Array",proto:!0,forced:!D8("map")},{map:function(t){return Fct(this,t,arguments.length>1?arguments[1]:void 0)}});var Tct=y8?{}.toString:function(){return"[object "+m8(this)+"]"};function am(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function nR(t){return am(t).every(function(e){return!!e.isHeader})}y8||Gd(Object.prototype,"toString",Tct,{unsafe:!0});var _ct=g8.PROPER,A6=RegExp.prototype,oR=A6.toString,Pct=Rt(YL),jct=qe(function(){return oR.call({source:"a",flags:"b"})!="/a/b"}),Nct=_ct&&oR.name!="toString";(jct||Nct)&&Gd(RegExp.prototype,"toString",function(){var t=xn(this),e=Dr(t.source),r=t.flags;return"/"+e+"/"+Dr(r===void 0&&ML(A6,t)&&!("flags"in A6)?Pct(t):r)},{unsafe:!0});var O6=_n("unscopables"),k6=Array.prototype;k6[O6]==null&&Zp.f(k6,O6,{configurable:!0,value:QL(null)});var Ict=im.find,AB=!0;"find"in[]&&Array(1).find(function(){AB=!1}),Ea({target:"Array",proto:!0,forced:AB},{find:function(t){return Ict(this,t,arguments.length>1?arguments[1]:void 0)}}),k6[O6].find=!0;var x8=Function.prototype,OB=x8.apply,Lct=x8.bind,kB=x8.call,iR=typeof Reflect=="object"&&Reflect.apply||(Lct?kB.bind(OB):function(){return kB.apply(OB,arguments)}),Rct=_n("species"),E2=RegExp.prototype,aR=function(t,e,r,n){var o=_n(t),i=!qe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!qe(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[Rct]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Rt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=Rt(l),y=c.exec;return y===Kd||y===E2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Gd(String.prototype,t,s[0]),Gd(E2,o,s[1])}n&&$l(E2[o],"sham",!0)},Mct=_n("match"),zct=_t.TypeError,$ct=_n("species"),Hct=Rt("".charAt),BB=Rt("".charCodeAt),Vct=Rt("".slice),Uct=function(t){return function(e,r){var n,o,i=Dr(wa(e)),a=nm(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=BB(i,a))<55296||n>56319||a+1===u||(o=BB(i,a+1))<56320||o>57343?t?Hct(i,a):n:t?Vct(i,a,a+2):o-56320+(n-55296<<10)+65536}},Wct=Uct(!0),uR=function(t,e,r){return e+(r?Wct(t,e).length:1)},Gct=_t.Array,qct=Math.max,FB=function(t,e,r){for(var n=om(t),o=qd(e,n),i=qd(r===void 0?n:r,n),a=Gct(qct(i-o,0)),u=0;o<i;o++,u++)rR(a,u,t[o]);return a.length=u,a},Kct=_t.TypeError,B6=function(t,e){var r=t.exec;if(Ar(r)){var n=Je(r,t,e);return n!==null&&xn(n),n}if(ra(t)==="RegExp")return Je(Kd,t,e);throw Kct("RegExp#exec called on incompatible receiver")},Ns=XL.UNSUPPORTED_Y,Yct=Math.min,sR=[].push,Xct=Rt(/./.exec),Is=Rt(sR),yf=Rt("".slice);aR("split",function(t,e,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Dr(wa(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!yo(a=o)||!((u=a[Mct])!==void 0?u:ra(a)=="RegExp"))return Je(e,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),y=0,g=new RegExp(o.source,v+"g");(c=Je(Kd,g,s))&&!((f=g.lastIndex)>y&&(Is(p,yf(s,y,c.index)),c.length>1&&c.index<s.length&&iR(sR,p,FB(c,1)),d=c[0].length,y=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return y===s.length?!d&&Xct(g,"")||Is(p,""):Is(p,yf(s,y)),p.length>l?FB(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Je(e,this,o,i)}:e,[function(o,i){var a=wa(this),u=o==null?void 0:u8(o,t);return u?Je(u,o,a,i):Je(n,Dr(a),o,i)},function(o,i){var a=xn(this),u=Dr(o),s=r(n,a,u,i,n!==e);if(s.done)return s.value;var l=function(w,D){var C,x=xn(w).constructor;return x===void 0||(C=xn(x)[$ct])==null?D:function(O){if(E8(O))return O;throw zct(zL(O)+" is not a constructor")}(C)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ns?"g":"y"),d=new l(Ns?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return B6(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=Ns?0:y;var m,h=B6(d,Ns?yf(u,y):u);if(h===null||(m=Yct(v8(d.lastIndex+(Ns?y:0)),u.length))===v)y=uR(u,y,c);else{if(Is(g,yf(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Is(g,h[b]),g.length===p)return g;y=v=m}}return Is(g,yf(u,v)),g}]},!!qe(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ns);var F6=`	
\v\f\r                 \u2028\u2029\uFEFF`,TB=Rt("".replace),_0="["+F6+"]",Zct=RegExp("^"+_0+_0+"*"),Jct=RegExp(_0+_0+"*$"),Qct=function(t){return function(e){var r=Dr(wa(e));return 1&t&&(r=TB(r,Zct,"")),2&t&&(r=TB(r,Jct,"")),r}},tft={trim:Qct(3)},eft=g8.PROPER,rft=tft.trim;function lR(t){return t.length?t[0].tagName.toLowerCase():""}Ea({target:"String",proto:!0,forced:function(t){return qe(function(){return!!F6[t]()||"​…᠎"[t]()!=="​…᠎"||eft&&F6[t].name!==t})}("trim")},{trim:function(){return rft(this)}}),Ea({global:!0},{globalThis:_t}),An&&(B.fn.append=An),Ao&&(B.fn.on=Ao),pa&&(B.fn.focus=pa),Sn&&(B.fn.attr=Sn),So&&(B.fn.val=So),da&&(B.fn.html=da),Cl&&(B.fn.dataset=Cl),El&&(B.fn.addClass=El),Dl&&(B.fn.removeClass=Dl),kl&&(B.fn.children=kl),Iv&&(B.fn.each=Iv),Ol&&(B.fn.find=Ol);var Yd=!1,cR=0,fR=0,Xd=null,Zd=null,ld=B("body");function dR(t){Yd=!1,Zd=null,Xd=null,ld.off("mousemove",pR),ld.off("mouseup",dR)}ld.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),Yd=!0;var r=t.clientX;cR=r;var n=e.getBoundingClientRect().width;fR=n,ld.on("mousemove",pR),ld.on("mouseup",dR)}});var pR=Mu(function(t){if(Yd&&Zd!=null&&Xd!=null){t.preventDefault();var e=t.clientX,r=fR+(e-cR);(r=Math.floor(100*r)/100)<30&&(r=30),N.setNodes(Zd,{width:r.toString()},{at:Xd})}},100),nft={type:"table",renderElem:function(t,e,r){var n=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=A.findPath(u,s),p=E.start(u,d),v=E.end(u,d),y=kt.compare(c,v)<=0&&kt.compare(c,p)>=0,g=kt.compare(f,v)<=0&&kt.compare(f,p)>=0;return!!(y&&g&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(r,t),o=t.width,i=o===void 0?"auto":o,a=bt("div",{className:"table-container","data-selected":A.isNodeSelected(r,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=A.findPath(r,t),l=E.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},bt("table",{width:i,contentEditable:n},bt("colgroup",null,am(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},oft={type:"table-row",renderElem:function(t,e,r){return bt("tr",null,e)}},ift={type:"table-cell",renderElem:function(t,e,r){var n=function(d,p){var v=A.getParentNode(d,p);if(v==null)return!1;var y=A.getParentNode(d,v);return y!=null&&am(y).some(function(g){return g===p})}(r,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!n)return bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Mu(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),y=v.left,g=v.width,m=v.top,h=v.height,b=d.clientX,w=d.clientY;Yd||(b>y+g-5&&b<y+g&&w>m&&w<m+h?(p.style.cursor="col-resize",Zd=r,Xd=A.findPath(r,t)):Yd||(p.style.cursor="auto",Zd=null,Xd=null))}},100)}},e);return f}},aft={selector:"table",preParseHtml:function(t){var e=B(t);if(lR(e)!=="table")return t;var r=e.find("tbody");if(r.length===0)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},uft=im.filter;Ea({target:"Array",proto:!0,forced:!D8("filter")},{filter:function(t){return uft(this,t,arguments.length>1?arguments[1]:void 0)}});var sft=Math.floor,D2=Rt("".charAt),lft=Rt("".replace),x2=Rt("".slice),cft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,fft=/\$([$&'`]|\d{1,2})/g,dft=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=fft;return o!==void 0&&(o=c8(o),s=cft),lft(i,s,function(l,c){var f;switch(D2(c,0)){case"$":return"$";case"&":return t;case"`":return x2(e,0,r);case"'":return x2(e,a);case"<":f=o[x2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=sft(d/10);return p===0?l:p<=u?n[p-1]===void 0?D2(c,1):n[p-1]+D2(c,1):l}f=n[d-1]}return f===void 0?"":f})},T6=_n("replace"),pft=Math.max,hft=Math.min,gft=Rt([].concat),C2=Rt([].push),_B=Rt("".indexOf),PB=Rt("".slice),vft="a".replace(/./,"$0")==="$0",jB=!!/./[T6]&&/./[T6]("a","$0")==="";aR("replace",function(t,e,r){var n=jB?"$":"$0";return[function(o,i){var a=wa(this),u=o==null?void 0:u8(o,T6);return u?Je(u,o,a,i):Je(e,Dr(a),o,i)},function(o,i){var a=xn(this),u=Dr(o);if(typeof i=="string"&&_B(i,n)===-1&&_B(i,"$<")===-1){var s=r(e,a,u,i);if(s.done)return s.value}var l=Ar(i);l||(i=Dr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=B6(a,u);if(p===null||(C2(d,p),!c))break;Dr(p[0])===""&&(a.lastIndex=uR(u,v8(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=Dr((p=d[m])[0]),b=pft(hft(nm(p.index),u.length),0),w=[],D=1;D<p.length;D++)C2(w,(v=p[D])===void 0?v:String(v));var C=p.groups;if(l){var x=gft([h],w,b,u);C!==void 0&&C2(x,C);var O=Dr(iR(i,void 0,x))}else O=dft(h,u,b,w,C,i);b>=g&&(y+=PB(u,g,b)+O,g=b+h.length)}return y+PB(u,g)}]},!!qe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!vft||jB);var yft={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t);(e=e.filter(function(u){return!!ot.isText(u)||!!r.isInline(u)})).length===0&&(e=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:lR(n)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},mft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,r){return{type:"table-row",children:e.filter(function(n){return A.getNodeType(n)==="table-cell"})}}},bft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,r){var n=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u}(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},wft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||!!A.getSelectedElems(e).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getPanelContentElem=function(e){var r=this;if(this.$content)return this.$content[0];for(var n=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 &times; 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" &times; "+(v+1),i.children().each(function(y){B(y).children().each(function(g){var m=B(g),h=m.dataset(),b=h.x,w=h.y;b<=p&&w<=v?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;r.insertTable(e,v+1,p+1)}})}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},t.prototype.insertTable=function(e,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),Eft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),Dft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Zn(E.nodes(e,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),o=Zn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=j.parent(a),d=j.next(f);N.insertNodes(e,l,{at:d})}}},t}(),xft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Zn(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Zn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),NB={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},S2=d8("span").classList,IB=S2&&S2.constructor&&S2.constructor.prototype,Cft=IB===Object.prototype?void 0:IB,Sft=im.forEach,Aft=function(t,e){var r=[].forEach;return!!r&&qe(function(){r.call(null,function(){throw 1},1)})}(),A2=Aft?[].forEach:function(t){return Sft(this,t,arguments.length>1?arguments[1]:void 0)},hR=function(t){if(t&&t.forEach!==A2)try{$l(t,"forEach",A2)}catch{t.forEach=A2}};for(var O2 in NB)NB[O2]&&hR(_t[O2]&&_t[O2].prototype);hR(Cft);var Oft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Zn(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Zn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ct.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(e,f);if(d.length===a.length&&NL(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&nR(s)&&(p.isHeader=!0),N.insertNodes(e,p,{at:d})}})})}}},t}(),kft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=Zn(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Zn(n[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ct.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(e,f);d.length===a.length&&NL(d.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:d})})})}}},t}(),Bft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){var r=A.getSelectedNodeByType(e,"table");return r!=null&&nR(r)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n=!r,o=A.getSelectedNodeByType(e,"table");o!=null&&am(o).forEach(function(i){return N.setNodes(e,{isHeader:n},{at:A.findPath(e,i)})})}},t}(),Fft=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){var r=A.getSelectedNodeByType(e,"table");return r!=null&&r.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,r){if(!this.isDisabled(e)){var n={width:r?"auto":"100%"};N.setNodes(e,n,{mode:"highest"})}},t}(),Tft={renderElems:[nft,oft,ift],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var r=t.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[aft],parseElemsHtml:[yft,mft,bft],menus:[{key:"insertTable",factory:function(){return new wft}},{key:"deleteTable",factory:function(){return new Eft}},{key:"insertTableRow",factory:function(){return new Dft}},{key:"deleteTableRow",factory:function(){return new xft}},{key:"insertTableCol",factory:function(){return new Oft}},{key:"deleteTableCol",factory:function(){return new kft}},{key:"tableHeader",factory:function(){return new Bft}},{key:"tableFullWidth",factory:function(){return new Fft}}],editorPlugin:function(t){var e=t.insertBreak,r=t.deleteBackward,n=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
`)},s.deleteBackward=function(l){if(!EB(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=DB(s,f),p=DB(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var v=A.genEmptyParagraph();N.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){EB(s)||n(l)},s.normalizeNode=function(l){var c=Zn(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return o([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();N.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(j.equals(f.path.slice(0,3),d.path.slice(0,3)))if(J.string(c).length!==0){var p=A.findPath(s,c),v={anchor:E.start(s,p),focus:E.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};_r("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"}}),_r("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var P0=function(){return P0=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},P0.apply(this,arguments)};function um(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function sm(t,e){var r,n,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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Bu(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function _ft(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var LB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function C8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Fi,Yg,ag=function(t){return t&&t.Math==Math&&t},rt=ag(typeof globalThis=="object"&&globalThis)||ag(typeof window=="object"&&window)||ag(typeof self=="object"&&self)||ag(typeof LB=="object"&&LB)||function(){return this}()||Function("return this")(),ce=function(t){try{return!!t()}catch{return!0}},ko=!ce(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mf=Function.prototype.call,le=mf.bind?mf.bind(mf):function(){return mf.apply(mf,arguments)},RB={}.propertyIsEnumerable,MB=Object.getOwnPropertyDescriptor,Pft={f:MB&&!RB.call({1:2},1)?function(t){var e=MB(this,t);return!!e&&e.enumerable}:RB},lm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},gR=Function.prototype,_6=gR.bind,P6=gR.call,jft=_6&&_6.bind(P6),xt=_6?function(t){return t&&jft(P6,t)}:function(t){return t&&function(){return P6.apply(t,arguments)}},Nft=xt({}.toString),Ift=xt("".slice),Do=function(t){return Ift(Nft(t),8,-1)},k2=rt.Object,Lft=xt("".split),S8=ce(function(){return!k2("z").propertyIsEnumerable(0)})?function(t){return Do(t)=="String"?Lft(t,""):k2(t)}:k2,Rft=rt.TypeError,Qp=function(t){if(t==null)throw Rft("Can't call method on "+t);return t},Ba=function(t){return S8(Qp(t))},oe=function(t){return typeof t=="function"},me=function(t){return typeof t=="object"?t!==null:oe(t)},Mft=function(t){return oe(t)?t:void 0},Yu=function(t,e){return arguments.length<2?Mft(rt[t]):rt[t]&&rt[t][e]},Jd=xt({}.isPrototypeOf),dl=Yu("navigator","userAgent")||"",zB=rt.process,$B=rt.Deno,HB=zB&&zB.versions||$B&&$B.version,VB=HB&&HB.v8;VB&&(Yg=(Fi=VB.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!Yg&&dl&&(!(Fi=dl.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=dl.match(/Chrome\/(\d+)/))&&(Yg=+Fi[1]);var Qd=Yg,j6=!!Object.getOwnPropertySymbols&&!ce(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Qd&&Qd<41}),A8=j6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",zft=rt.Object,B2=A8?function(t){return typeof t=="symbol"}:function(t){var e=Yu("Symbol");return oe(e)&&Jd(e.prototype,zft(t))},$ft=rt.String,j0=function(t){try{return $ft(t)}catch{return"Object"}},Hft=rt.TypeError,Da=function(t){if(oe(t))return t;throw Hft(j0(t)+" is not a function")},tp=function(t,e){var r=t[e];return r==null?void 0:Da(r)},Vft=rt.TypeError,Uft=Object.defineProperty,O8=function(t,e){try{Uft(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},oa=rt["__core-js_shared__"]||O8("__core-js_shared__",{}),k8=C8(function(t){(t.exports=function(e,r){return oa[e]||(oa[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Wft=rt.Object,cm=function(t){return Wft(Qp(t))},Gft=xt({}.hasOwnProperty),We=Object.hasOwn||function(t,e){return Gft(cm(t),e)},qft=0,Kft=Math.random(),Yft=xt(1 .toString),B8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Yft(++qft+Kft,36)},bf=k8("wks"),Fu=rt.Symbol,UB=Fu&&Fu.for,Xft=A8?Fu:Fu&&Fu.withoutSetter||B8,Re=function(t){if(!We(bf,t)||!j6&&typeof bf[t]!="string"){var e="Symbol."+t;j6&&We(Fu,t)?bf[t]=Fu[t]:bf[t]=A8&&UB?UB(e):Xft(e)}return bf[t]},Zft=rt.TypeError,Jft=Re("toPrimitive"),F8=function(t){var e=function(r,n){if(!me(r)||B2(r))return r;var o,i=tp(r,Jft);if(i){if(o=le(i,r,n),!me(o)||B2(o))return o;throw Zft("Can't convert object to primitive value")}return function(a,u){var s,l;if(oe(s=a.toString)&&!me(l=le(s,a))||oe(s=a.valueOf)&&!me(l=le(s,a)))return l;throw Vft("Can't convert object to primitive value")}(r)}(t,"string");return B2(e)?e:e+""},N6=rt.document,Qft=me(N6)&&me(N6.createElement),ep=function(t){return Qft?N6.createElement(t):{}},vR=!ko&&!ce(function(){return Object.defineProperty(ep("div"),"a",{get:function(){return 7}}).a!=7}),WB=Object.getOwnPropertyDescriptor,T8={f:ko?WB:function(t,e){if(t=Ba(t),e=F8(e),vR)try{return WB(t,e)}catch{}if(We(t,e))return lm(!le(Pft.f,t,e),t[e])}},tdt=rt.String,edt=rt.TypeError,sr=function(t){if(me(t))return t;throw edt(tdt(t)+" is not an object")},rdt=rt.TypeError,GB=Object.defineProperty,ci={f:ko?GB:function(t,e,r){if(sr(t),e=F8(e),sr(r),vR)try{return GB(t,e,r)}catch{}if("get"in r||"set"in r)throw rdt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ia=ko?function(t,e,r){return ci.f(t,e,lm(1,r))}:function(t,e,r){return t[e]=r,t},ndt=xt(Function.toString);oe(oa.inspectSource)||(oa.inspectSource=function(t){return ndt(t)});var N0,cd,I0,fm=oa.inspectSource,qB=rt.WeakMap,yR=oe(qB)&&/native code/.test(fm(qB)),KB=k8("keys"),_8=function(t){return KB[t]||(KB[t]=B8(t))},dm={},I6=rt.TypeError,odt=rt.WeakMap;if(yR||oa.state){var Ga=oa.state||(oa.state=new odt),idt=xt(Ga.get),YB=xt(Ga.has),adt=xt(Ga.set);N0=function(t,e){if(YB(Ga,t))throw new I6("Object already initialized");return e.facade=t,adt(Ga,t,e),e},cd=function(t){return idt(Ga,t)||{}},I0=function(t){return YB(Ga,t)}}else{var Ls=_8("state");dm[Ls]=!0,N0=function(t,e){if(We(t,Ls))throw new I6("Object already initialized");return e.facade=t,ia(t,Ls,e),e},cd=function(t){return We(t,Ls)?t[Ls]:{}},I0=function(t){return We(t,Ls)}}var un={set:N0,get:cd,has:I0,enforce:function(t){return I0(t)?cd(t):N0(t,{})},getterFor:function(t){return function(e){var r;if(!me(e)||(r=cd(e)).type!==t)throw I6("Incompatible receiver, "+t+" required");return r}}},mR=Function.prototype,udt=ko&&Object.getOwnPropertyDescriptor,F2=We(mR,"name"),dc={EXISTS:F2,PROPER:F2&&(function(){}).name==="something",CONFIGURABLE:F2&&(!ko||ko&&udt(mR,"name").configurable)},Fn=C8(function(t){var e=dc.CONFIGURABLE,r=un.get,n=un.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;oe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!We(u,"name")||e&&u.name!==p)&&ia(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==rt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ia(i,a,u)):f?i[a]=u:O8(a,u)})(Function.prototype,"toString",function(){return oe(this)&&r(this).source||fm(this)})}),sdt=Math.ceil,ldt=Math.floor,pm=function(t){var e=+t;return e!=e||e===0?0:(e>0?ldt:sdt)(e)},cdt=Math.max,fdt=Math.min,rp=function(t,e){var r=pm(t);return r<0?cdt(r+e,0):fdt(r,e)},ddt=Math.min,bR=function(t){return t>0?ddt(pm(t),9007199254740991):0},th=function(t){return bR(t.length)},XB=function(t){return function(e,r,n){var o,i=Ba(e),a=th(i),u=rp(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},wR={includes:XB(!0),indexOf:XB(!1)},pdt=wR.indexOf,ZB=xt([].push),ER=function(t,e){var r,n=Ba(t),o=0,i=[];for(r in n)!We(dm,r)&&We(n,r)&&ZB(i,r);for(;e.length>o;)We(n,r=e[o++])&&(~pdt(i,r)||ZB(i,r));return i},L0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hdt=L0.concat("length","prototype"),R0={f:Object.getOwnPropertyNames||function(t){return ER(t,hdt)}},gdt={f:Object.getOwnPropertySymbols},vdt=xt([].concat),ydt=Yu("Reflect","ownKeys")||function(t){var e=R0.f(sr(t)),r=gdt.f;return r?vdt(e,r(t)):e},mdt=function(t,e){for(var r=ydt(e),n=ci.f,o=T8.f,i=0;i<r.length;i++){var a=r[i];We(t,a)||n(t,a,o(e,a))}},bdt=/#|\.prototype\./,eh=function(t,e){var r=Edt[wdt(t)];return r==xdt||r!=Ddt&&(oe(e)?ce(e):!!e)},wdt=eh.normalize=function(t){return String(t).replace(bdt,".").toLowerCase()},Edt=eh.data={},Ddt=eh.NATIVE="N",xdt=eh.POLYFILL="P",M0=eh,Cdt=T8.f,zr=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?rt:l?rt[u]||O8(u,{}):(rt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Cdt(r,n))&&a.value:r[n],!M0(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;mdt(i,o)}(t.sham||o&&o.sham)&&ia(i,"sham",!0),Fn(r,n,i,t)}},DR={};DR[Re("toStringTag")]="z";var P8=String(DR)==="[object z]",Sdt=Re("toStringTag"),Adt=rt.Object,Odt=Do(function(){return arguments}())=="Arguments",hm=P8?Do:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Adt(t),Sdt))=="string"?r:Odt?Do(e):(n=Do(e))=="Object"&&oe(e.callee)?"Arguments":n},kdt=rt.String,yn=function(t){if(hm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kdt(t)},L6=`	
\v\f\r                 \u2028\u2029\uFEFF`,JB=xt("".replace),z0="["+L6+"]",Bdt=RegExp("^"+z0+z0+"*"),Fdt=RegExp(z0+z0+"*$"),Tdt=function(t){return function(e){var r=yn(Qp(e));return 1&t&&(r=JB(r,Bdt,"")),2&t&&(r=JB(r,Fdt,"")),r}},_dt={trim:Tdt(3)},Pdt=dc.PROPER,jdt=_dt.trim;function QB(t){return t.length?t[0].tagName.toLowerCase():""}function xR(t,e,r){e===void 0&&(e="auto"),r===void 0&&(r="auto");var n=B(t);return n.attr("width",e),n.attr("height",r),n[0].outerHTML}zr({target:"String",proto:!0,forced:ce(function(){return!!L6.trim()||"​…᠎".trim()!=="​…᠎"||Pdt&&L6.trim.name!=="trim"})},{trim:function(){return jdt(this)}}),zr({global:!0},{globalThis:rt}),An&&(B.fn.append=An),Ao&&(B.fn.on=Ao),pa&&(B.fn.focus=pa),Sn&&(B.fn.attr=Sn),So&&(B.fn.val=So),da&&(B.fn.html=da),Al&&(B.fn.parent=Al),xl&&(B.fn.hasClass=xl),Fl&&(B.fn.empty=Fl);var ug,Ndt={type:"video",renderElem:function(t,e,r){var n,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=A.isNodeSelected(r,t);if(a.trim().indexOf("<iframe ")===0)n=bt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:xR(a,c,d)});else{var v=bt("video",{poster:s,controls:!0},bt("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=bt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return Tl("div",{props:{contentEditable:!1},on:{mousedown:function(y){return y.preventDefault()}}},n)}},Idt={type:"video",elemToHtml:function(t,e){var r=t,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?f+=xR(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
</div>`}},Ldt=Object.keys||function(t){return ER(t,L0)},Rdt=ko?Object.defineProperties:function(t,e){sr(t);for(var r,n=Ba(e),o=Ldt(e),i=o.length,a=0;i>a;)ci.f(t,r=o[a++],n[r]);return t},R6=Yu("document","documentElement"),CR=_8("IE_PROTO"),T2=function(){},SR=function(t){return"<script>"+t+"<\/script>"},tF=function(t){t.write(SR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Xg=function(){try{ug=new ActiveXObject("htmlfile")}catch{}var t,e;Xg=typeof document<"u"?document.domain&&ug?tF(ug):((e=ep("iframe")).style.display="none",R6.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(SR("document.F=Object")),t.close(),t.F):tF(ug);for(var r=L0.length;r--;)delete Xg.prototype[L0[r]];return Xg()};dm[CR]=!0;var j8=Object.create||function(t,e){var r;return t!==null?(T2.prototype=sr(t),r=new T2,T2.prototype=null,r[CR]=t):r=Xg(),e===void 0?r:Rdt(r,e)},M6=Re("unscopables"),z6=Array.prototype;z6[M6]==null&&ci.f(z6,M6,{configurable:!0,value:j8(null)});var fd=function(t){z6[M6][t]=!0},Mdt=wR.includes;zr({target:"Array",proto:!0},{includes:function(t){return Mdt(this,t,arguments.length>1?arguments[1]:void 0)}}),fd("includes");var zdt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),r=e;if(QB(e)==="p"){var n=e.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=B(o))}}var a=QB(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},eF=xt(xt.bind),np=function(t,e){return Da(t),e===void 0?t:eF?eF(t,e):function(){return t.apply(e,arguments)}},$0=Array.isArray||function(t){return Do(t)=="Array"},AR=function(){},$dt=[],OR=Yu("Reflect","construct"),N8=/^\s*(?:class|function)\b/,Hdt=xt(N8.exec),Vdt=!N8.exec(AR),wf=function(t){if(!oe(t))return!1;try{return OR(AR,$dt,t),!0}catch{return!1}},I8=!OR||ce(function(){var t;return wf(wf.call)||!wf(Object)||!wf(function(){t=!0})||t})?function(t){if(!oe(t))return!1;switch(hm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Vdt||!!Hdt(N8,fm(t))}:wf,Udt=Re("species"),rF=rt.Array,Wdt=function(t,e){return new(function(r){var n;return $0(r)&&(n=r.constructor,(I8(n)&&(n===rF||$0(n.prototype))||me(n)&&(n=n[Udt])===null)&&(n=void 0)),n===void 0?rF:n}(t))(e===0?0:e)},nF=xt([].push),oF=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=cm(s),y=S8(v),g=np(l,c),m=th(y),h=0,b=f||Wdt,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:nF(w,d)}else switch(t){case 4:return!1;case 7:nF(w,d)}return i?-1:n||o?o:w}},L8={find:oF(5),findIndex:oF(6)},Gdt=L8.find,iF=!0;"find"in[]&&Array(1).find(function(){iF=!1}),zr({target:"Array",proto:!0,forced:iF},{find:function(t){return Gdt(this,t,arguments.length>1?arguments[1]:void 0)}}),fd("find");var qdt=P8?{}.toString:function(){return"[object "+hm(this)+"]"};function aF(t,e,r,n){return e===void 0&&(e=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:t,poster:e,width:r,height:n,children:[{text:""}]}}P8||Fn(Object.prototype,"toString",qdt,{unsafe:!0});var uF,_2,Kdt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,r){var n=B(t),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",aF(o=s[0].outerHTML,i,a,u);var l=n.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",aF(o,i=l.attr("poster")||"",a,u)}},kR=function(){var t=sr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},R8=rt.RegExp,BR=ce(function(){var t=R8("a","y");return t.lastIndex=2,t.exec("abcd")!=null});BR||ce(function(){return!R8("a","y").sticky});var Ydt={BROKEN_CARET:BR||ce(function(){var t=R8("^r","gy");return t.lastIndex=2,t.exec("str")!=null})},Xdt=rt.RegExp,Zdt=ce(function(){var t=Xdt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Jdt=rt.RegExp,Qdt=ce(function(){var t=Jdt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),tpt=un.get,ept=k8("native-string-replace",String.prototype.replace),H0=RegExp.prototype.exec,$6=H0,rpt=xt("".charAt),npt=xt("".indexOf),opt=xt("".replace),P2=xt("".slice),j2=(_2=/b*/g,le(H0,uF=/a/,"a"),le(H0,_2,"a"),uF.lastIndex!==0||_2.lastIndex!==0),sF=Ydt.BROKEN_CARET,N2=/()??/.exec("")[1]!==void 0;(j2||N2||sF||Zdt||Qdt)&&($6=function(t){var e,r,n,o,i,a,u,s=this,l=tpt(s),c=yn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=le($6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=sF&&s.sticky,v=le(kR,s),y=s.source,g=0,m=c;if(p&&(v=opt(v,"y",""),npt(v,"g")===-1&&(v+="g"),m=P2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&rpt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),N2&&(r=new RegExp("^"+y+"$(?!\\s)",v)),j2&&(n=s.lastIndex),o=le(H0,p?r:s,m),p?o?(o.input=P2(o.input,g),o[0]=P2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:j2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),N2&&o&&o.length>1&&le(ept,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=j8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var V0=$6;zr({target:"RegExp",proto:!0,forced:/./.exec!==V0},{exec:V0});var M8=Function.prototype,lF=M8.apply,ipt=M8.bind,cF=M8.call,FR=typeof Reflect=="object"&&Reflect.apply||(ipt?cF.bind(lF):function(){return cF.apply(lF,arguments)}),fF=(Re("species"),RegExp.prototype),apt=xt("".charAt),dF=xt("".charCodeAt),upt=xt("".slice),spt=function(t){return function(e,r){var n,o,i=yn(Qp(e)),a=pm(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=dF(i,a))<55296||n>56319||a+1===u||(o=dF(i,a+1))<56320||o>57343?t?apt(i,a):n:t?upt(i,a,a+2):o-56320+(n-55296<<10)+65536}},TR={charAt:spt(!0)},lpt=TR.charAt,cpt=function(t,e,r){return e+(r?lpt(t,e).length:1)},fpt=Math.floor,I2=xt("".charAt),dpt=xt("".replace),L2=xt("".slice),ppt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hpt=/\$([$&'`]|\d{1,2})/g,gpt=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,s=hpt;return o!==void 0&&(o=cm(o),s=ppt),dpt(i,s,function(l,c){var f;switch(I2(c,0)){case"$":return"$";case"&":return t;case"`":return L2(e,0,r);case"'":return L2(e,a);case"<":f=o[L2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=fpt(d/10);return p===0?l:p<=u?n[p-1]===void 0?I2(c,1):n[p-1]+I2(c,1):l}f=n[d-1]}return f===void 0?"":f})},vpt=rt.TypeError,ypt=function(t,e){var r=t.exec;if(oe(r)){var n=le(r,t,e);return n!==null&&sr(n),n}if(Do(t)==="RegExp")return le(V0,t,e);throw vpt("RegExp#exec called on incompatible receiver")},H6=Re("replace"),mpt=Math.max,bpt=Math.min,wpt=xt([].concat),R2=xt([].push),pF=xt("".indexOf),hF=xt("".slice),Ept="a".replace(/./,"$0")==="$0",gF=!!/./[H6]&&/./[H6]("a","$0")==="";function _R(t){return t+"-"+zP()}(function(t,e,r,n){var o=Re(t),i=!ce(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ce(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=xt(/./[o]),s=function(l,c,f){var d=gF?"$":"$0";return[function(p,v){var y=Qp(this),g=p==null?void 0:tp(p,H6);return g?le(g,p,y,v):le(c,yn(y),p,v)},function(p,v){var y=sr(this),g=yn(p);if(typeof v=="string"&&pF(v,d)===-1&&pF(v,"$<")===-1){var m=f(c,y,g,v);if(m.done)return m.value}var h=oe(v);h||(v=yn(v));var b=y.global;if(b){var w=y.unicode;y.lastIndex=0}for(var D=[];;){var C=ypt(y,g);if(C===null||(R2(D,C),!b))break;yn(C[0])===""&&(y.lastIndex=cpt(g,bR(y.lastIndex),w))}for(var x,O="",T=0,R=0;R<D.length;R++){for(var H=yn((C=D[R])[0]),M=mpt(bpt(pm(C.index),g.length),0),K=[],U=1;U<C.length;U++)R2(K,(x=C[U])===void 0?x:String(x));var W=C.groups;if(h){var q=wpt([H],K,M,g);W!==void 0&&R2(q,W);var et=yn(FR(v,void 0,q))}else et=gpt(H,g,M,K,W,v);M>=T&&(O+=hF(g,T,M)+et,T=M+H.length)}return O+hF(g,T)}]}(0,""[t],function(l,c,f,d,p){var v=xt(l),y=c.exec;return y===V0||y===fF.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Fn(String.prototype,t,s[0]),Fn(fF,o,s[1])}})("replace",0,!!ce(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Ept||gF);var U0=rt.Promise,W0=function(t,e,r){for(var n in e)Fn(t,n,e[n],r);return t},Dpt=rt.String,xpt=rt.TypeError,Hl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=xt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return sr(n),function(i){if(typeof i=="object"||oe(i))return i;throw xpt("Can't set "+Dpt(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),Cpt=ci.f,vF=Re("toStringTag"),G0=function(t,e,r){t&&!We(t=r?t:t.prototype,vF)&&Cpt(t,vF,{configurable:!0,value:e})},yF=Re("species"),Spt=rt.TypeError,z8=function(t,e){if(Jd(e,t))return t;throw Spt("Incorrect invocation")},Vl={},Apt=Re("iterator"),Opt=Array.prototype,kpt=Re("iterator"),mF=function(t){if(t!=null)return tp(t,kpt)||tp(t,"@@iterator")||Vl[hm(t)]},Bpt=rt.TypeError,bF=function(t,e,r){var n,o;sr(t);try{if(!(n=tp(t,"return"))){if(e==="throw")throw r;return r}n=le(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return sr(n),r},Fpt=rt.TypeError,Zg=function(t,e){this.stopped=t,this.result=e},wF=Zg.prototype,q0=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=np(e,f),g=function(h){return n&&bF(n,"normal",h),new Zg(!0,h)},m=function(h){return d?(sr(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)n=t;else{if(!(o=mF(t)))throw Fpt(j0(t)+" is not iterable");if((c=o)!==void 0&&(Vl.Array===c||Opt[Apt]===c)){for(i=0,a=th(t);a>i;i++)if((u=m(t[i]))&&Jd(wF,u))return u;return new Zg(!1)}n=function(h,b){var w=arguments.length<2?mF(h):b;if(Da(w))return sr(le(w,h));throw Bpt(j0(h)+" is not iterable")}(t,o)}for(s=n.next;!(l=le(s,n)).done;){try{u=m(l.value)}catch(h){bF(n,"throw",h)}if(typeof u=="object"&&u&&Jd(wF,u))return u}return new Zg(!1)},PR=Re("iterator"),jR=!1;try{var Tpt=0,EF={next:function(){return{done:!!Tpt++}},return:function(){jR=!0}};EF[PR]=function(){return this},Array.from(EF,function(){throw 2})}catch{}var op,Rs,DF,M2,NR=function(t,e){if(!jR)return!1;var r=!1;try{var n={};n[PR]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},_pt=rt.TypeError,Ppt=Re("species"),IR=xt([].slice),LR=/(?:ipad|iphone|ipod).*applewebkit/i.test(dl),aa=Do(rt.process)=="process",V6=rt.setImmediate,xF=rt.clearImmediate,jpt=rt.process,z2=rt.Dispatch,Npt=rt.Function,CF=rt.MessageChannel,Ipt=rt.String,$2=0,dd={};try{op=rt.location}catch{}var $8=function(t){if(We(dd,t)){var e=dd[t];delete dd[t],e()}},H2=function(t){return function(){$8(t)}},SF=function(t){$8(t.data)},AF=function(t){rt.postMessage(Ipt(t),op.protocol+"//"+op.host)};V6&&xF||(V6=function(t){var e=IR(arguments,1);return dd[++$2]=function(){FR(oe(t)?t:Npt(t),void 0,e)},Rs($2),$2},xF=function(t){delete dd[t]},aa?Rs=function(t){jpt.nextTick(H2(t))}:z2&&z2.now?Rs=function(t){z2.now(H2(t))}:CF&&!LR?(M2=(DF=new CF).port2,DF.port1.onmessage=SF,Rs=np(M2.postMessage,M2)):rt.addEventListener&&oe(rt.postMessage)&&!rt.importScripts&&op&&op.protocol!=="file:"&&!ce(AF)?(Rs=AF,rt.addEventListener("message",SF,!1)):Rs="onreadystatechange"in ep("script")?function(t){R6.appendChild(ep("script")).onreadystatechange=function(){R6.removeChild(this),$8(t)}}:function(t){setTimeout(H2(t),0)});var Ef,ou,pd,Zs,V2,U2,W2,OF,RR={set:V6},Lpt=/ipad|iphone|ipod/i.test(dl)&&rt.Pebble!==void 0,Rpt=/web0s(?!.*chrome)/i.test(dl),Mpt=T8.f,G2=RR.set,kF=rt.MutationObserver||rt.WebKitMutationObserver,BF=rt.document,FF=rt.process,sg=rt.Promise,TF=Mpt(rt,"queueMicrotask"),MR=TF&&TF.value;MR||(Ef=function(){var t,e;for(aa&&(t=FF.domain)&&t.exit();ou;){e=ou.fn,ou=ou.next;try{e()}catch(r){throw ou?Zs():pd=void 0,r}}pd=void 0,t&&t.enter()},LR||aa||Rpt||!kF||!BF?!Lpt&&sg&&sg.resolve?((W2=sg.resolve(void 0)).constructor=sg,OF=np(W2.then,W2),Zs=function(){OF(Ef)}):aa?Zs=function(){FF.nextTick(Ef)}:(G2=np(G2,rt),Zs=function(){G2(Ef)}):(V2=!0,U2=BF.createTextNode(""),new kF(Ef).observe(U2,{characterData:!0}),Zs=function(){U2.data=V2=!V2}));var q2,_F,zR,PF,$R=MR||function(t){var e={fn:t,next:void 0};pd&&(pd.next=e),ou||(ou=e,Zs()),pd=e},zpt=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=Da(e),this.reject=Da(r)},H8={f:function(t){return new zpt(t)}},U6=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},$pt=typeof window=="object",HR=RR.set,Hpt=Re("species"),Ko="Promise",jF=un.getterFor(Ko),Vpt=un.set,Upt=un.getterFor(Ko),Ja=U0&&U0.prototype,mo=U0,Df=Ja,VR=rt.TypeError,W6=rt.document,V8=rt.process,pl=H8.f,Wpt=pl,Gpt=!!(W6&&W6.createEvent&&rt.dispatchEvent),UR=oe(rt.PromiseRejectionEvent),WR=!1,hd=M0(Ko,function(){var t=fm(mo),e=t!==String(mo);if(!e&&Qd===66)return!0;if(Qd>=51&&/native code/.test(t))return!1;var r=new mo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[Hpt]=n,!(WR=r.then(function(){})instanceof n)||!e&&$pt&&!UR}),qpt=hd||!NR(function(t){mo.all(t).catch(function(){})}),GR=function(t){var e;return!(!me(t)||!oe(e=t.then))&&e},U8=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;$R(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&Ypt(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(VR("Promise-chain cycle")):(u=GR(a))?le(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Kpt(t)})}},qR=function(t,e,r){var n,o;Gpt?((n=W6.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),rt.dispatchEvent(n)):n={promise:e,reason:r},!UR&&(o=rt["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},Kpt=function(t){le(HR,rt,function(){var e,r=t.facade,n=t.value;if(NF(t)&&(e=U6(function(){aa?V8.emit("unhandledRejection",n,r):qR("unhandledrejection",r,n)}),t.rejection=aa||NF(t)?2:1,e.error))throw e.value})},NF=function(t){return t.rejection!==1&&!t.parent},Ypt=function(t){le(HR,rt,function(){var e=t.facade;aa?V8.emit("rejectionHandled",e):qR("rejectionhandled",e,t.value)})},nl=function(t,e,r){return function(n){t(e,n,r)}},hl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,U8(t,!0))},G6=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw VR("Promise can't be resolved itself");var n=GR(e);n?$R(function(){var o={done:!1};try{le(n,e,nl(G6,o,t),nl(hl,o,t))}catch(i){hl(o,i,t)}}):(t.value=e,t.state=1,U8(t,!1))}catch(o){hl({done:!1},o,t)}}};if(hd&&(Df=(mo=function(t){z8(this,Df),Da(t),le(q2,this);var e=jF(this);try{t(nl(G6,e),nl(hl,e))}catch(r){hl(e,r)}}).prototype,(q2=function(t){Vpt(this,{type:Ko,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=W0(Df,{then:function(t,e){var r=Upt(this),n=r.reactions,o=pl(function(i,a){var u,s=sr(i).constructor;return s===void 0||(u=sr(s)[Ppt])==null?a:function(l){if(I8(l))return l;throw _pt(j0(l)+" is not a constructor")}(u)}(this,mo));return o.ok=!oe(t)||t,o.fail=oe(e)&&e,o.domain=aa?V8.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&U8(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),_F=function(){var t=new q2,e=jF(t);this.promise=t,this.resolve=nl(G6,e),this.reject=nl(hl,e)},H8.f=pl=function(t){return t===mo||t===zR?new _F(t):Wpt(t)},oe(U0)&&Ja!==Object.prototype)){PF=Ja.then,WR||(Fn(Ja,"then",function(t,e){var r=this;return new mo(function(n,o){le(PF,r,n,o)}).then(t,e)},{unsafe:!0}),Fn(Ja,"catch",Df.catch,{unsafe:!0}));try{delete Ja.constructor}catch{}Hl&&Hl(Ja,Df)}function ip(t,e,r){return r===void 0&&(r=""),um(this,void 0,void 0,function(){var n,o,i,a,u,s,l;return sm(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),n=t.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(e,r)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function K2(){return _R("w-e-insert-video")}zr({global:!0,wrap:!0,forced:hd},{Promise:mo}),G0(mo,Ko,!1),function(t){var e=Yu("Promise"),r=ci.f;ko&&e&&!e[yF]&&r(e,yF,{configurable:!0,get:function(){return this}})}(),zR=Yu(Ko),zr({target:Ko,stat:!0,forced:hd},{reject:function(t){var e=pl(this);return le(e.reject,void 0,t),e.promise}}),zr({target:Ko,stat:!0,forced:hd},{resolve:function(t){return function(e,r){if(sr(e),me(r)&&r.constructor===e)return r;var n=H8.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),zr({target:Ko,stat:!0,forced:qpt},{all:function(t){var e=this,r=pl(e),n=r.resolve,o=r.reject,i=U6(function(){var a=Da(e.resolve),u=[],s=0,l=1;q0(t,function(c){var f=s++,d=!1;l++,le(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=pl(e),n=r.reject,o=U6(function(){var i=Da(e.resolve);q0(t,function(a){le(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var Xpt=function(){function t(){this.title=Q("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=K2(),this.posterInputId=K2(),this.buttonId=K2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||!!A.getSelectedElems(e).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=Bu(Ur(Q("videoModule.videoSrc"),o,Q("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Bu(Ur(Q("videoModule.videoPoster"),i,Q("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=B(l),v=B(d),y=Bu(is(a,Q("videoModule.ok")),1)[0];if(this.$content==null){var g=B("<div></div>");g.on("click","#"+a,function(h){return um(r,void 0,void 0,function(){var b,w;return sm(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,ip(e,b,w)];case 1:return D.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(y),p.val(""),v.val(""),setTimeout(function(){p.focus()}),m[0]},t}(),Zpt=xt([].join),Jpt=S8!=Object,Qpt=function(t,e){var r=[].join;return!!r&&ce(function(){r.call(null,",",1)})}();zr({target:"Array",proto:!0,forced:Jpt||!Qpt},{join:function(t){return Zpt(Ba(this),t===void 0?",":t)}});var Tu,IF,LF,tht=!ce(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),RF=_8("IE_PROTO"),q6=rt.Object,eht=q6.prototype,K0=tht?q6.getPrototypeOf:function(t){var e=cm(t);if(We(e,RF))return e[RF];var r=e.constructor;return oe(r)&&e instanceof r?r.prototype:e instanceof q6?eht:null},K6=Re("iterator"),KR=!1;[].keys&&("next"in(LF=[].keys())?(IF=K0(K0(LF)))!==Object.prototype&&(Tu=IF):KR=!0);var rht=Tu==null||ce(function(){var t={};return Tu[K6].call(t)!==t});rht&&(Tu={}),oe(Tu[K6])||Fn(Tu,K6,function(){return this});var W8={IteratorPrototype:Tu,BUGGY_SAFARI_ITERATORS:KR},nht=W8.IteratorPrototype,oht=function(){return this},iht=dc.PROPER,aht=dc.CONFIGURABLE,MF=W8.IteratorPrototype,Y2=W8.BUGGY_SAFARI_ITERATORS,xf=Re("iterator"),uht=function(){return this},YR=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=j8(nht,{next:lm(1,h)}),G0(g,w,!1),Vl[w]=oht})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Y2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[xf]||d["@@iterator"]||o&&d[o],v=!Y2&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=K0(y.call(new t)))!==Object.prototype&&u.next&&(K0(u)!==MF&&(Hl?Hl(u,MF):oe(u[xf])||Fn(u,xf,uht)),G0(u,c,!0)),iht&&o=="values"&&p&&p.name!=="values"&&(aht?ia(d,"name","values"):(f=!0,v=function(){return le(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||zr({target:e,proto:!0,forced:Y2||f},s)),d[xf]!==v&&Fn(d,xf,v,{name:o}),Vl[e]=v,s},sht=un.set,lht=un.getterFor("Array Iterator"),qf=YR(Array,"Array",function(t,e){sht(this,{type:"Array Iterator",target:Ba(t),index:0,kind:e})},function(){var t=lht(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Vl.Arguments=Vl.Array,fd("keys"),fd("values"),fd("entries");var cht=TR.charAt,fht=un.set,dht=un.getterFor("String Iterator");YR(String,"String",function(t){fht(this,{type:"String Iterator",string:yn(t),index:0})},function(){var t,e=dht(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=cht(r,n),e.index+=t.length,{value:t,done:!1})});var XR=function(t,e,r){var n=F8(e);n in t?ci.f(t,n,lm(0,r)):t[n]=r},pht=rt.Array,hht=Math.max,zF=R0.f,$F=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ght={f:function(t){return $F&&Do(t)=="Window"?function(e){try{return zF(e)}catch{return function(n,o,i){for(var a=th(n),u=rp(void 0,a),s=rp(a,a),l=pht(hht(s-u,0)),c=0;u<s;u++,c++)XR(l,c,n[u]);return l.length=c,l}($F)}}(t):zF(Ba(t))}},HF=ce(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),lg=Object.isExtensible,lu=ce(function(){lg(1)})||HF?function(t){return!!me(t)&&(!HF||Do(t)!="ArrayBuffer")&&(!lg||lg(t))}:lg,vht=!ce(function(){return Object.isExtensible(Object.preventExtensions({}))}),G8=C8(function(t){var e=ci.f,r=!1,n=B8("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=R0.f,s=xt([].splice),l={};l[n]=1,u(l).length&&(R0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},zr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ght.f}))},fastKey:function(u,s){if(!me(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!We(u,n)){if(!lu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!We(u,n)){if(!lu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return vht&&r&&lu(u)&&!We(u,n)&&i(u),u}};dm[n]=!0}),cg=G8.getWeakData,yht=un.set,mht=un.getterFor,bht=L8.find,wht=L8.findIndex,Eht=xt([].splice),Dht=0,fg=function(t){return t.frozen||(t.frozen=new ZR)},ZR=function(){this.entries=[]},X2=function(t,e){return bht(t.entries,function(r){return r[0]===e})};ZR.prototype={get:function(t){var e=X2(this,t);if(e)return e[1]},has:function(t){return!!X2(this,t)},set:function(t,e){var r=X2(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=wht(this.entries,function(r){return r[0]===t});return~e&&Eht(this.entries,e,1),!!~e}};var Cf,JR={getConstructor:function(t,e,r,n){var o=t(function(s,l){z8(s,i),yht(s,{type:e,id:Dht++,frozen:void 0}),l!=null&&q0(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=mht(e),u=function(s,l,c){var f=a(s),d=cg(sr(l),!0);return d===!0?fg(f).set(l,c):d[f.id]=c,s};return W0(i,{delete:function(s){var l=a(this);if(!me(s))return!1;var c=cg(s);return c===!0?fg(l).delete(s):c&&We(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!me(s))return!1;var c=cg(s);return c===!0?fg(l).has(s):c&&We(c,l.id)}}),W0(i,r?{get:function(s){var l=a(this);if(me(s)){var c=cg(s);return c===!0?fg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},dg=un.enforce,xht=!rt.ActiveXObject&&"ActiveXObject"in rt,QR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Cht=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=xt(u[g]);Fn(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!me(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!me(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!me(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(M0(t,!oe(a)||!(o||u.forEach&&!ce(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),G8.enable();else if(M0(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ce(function(){f.has(1)}),v=NR(function(g){new a(g)}),y=!o&&ce(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){z8(g,u);var h=function(b,w,D){var C,x;return Hl&&oe(C=w.constructor)&&C!==D&&me(x=C.prototype)&&x!==D.prototype&&Hl(b,x),b}(new a,g,s);return m!=null&&q0(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,zr({global:!0,forced:s!=a},l),G0(s,t),o||r.setStrong(s,t,n),s}("WeakMap",QR,JR);if(yR&&xht){Cf=JR.getConstructor(QR,"WeakMap",!0),G8.enable();var Sf=Cht.prototype,VF=xt(Sf.delete),pg=xt(Sf.has),UF=xt(Sf.get),WF=xt(Sf.set);W0(Sf,{delete:function(t){if(me(t)&&!lu(t)){var e=dg(this);return e.frozen||(e.frozen=new Cf),VF(this,t)||e.frozen.delete(t)}return VF(this,t)},has:function(t){if(me(t)&&!lu(t)){var e=dg(this);return e.frozen||(e.frozen=new Cf),pg(this,t)||e.frozen.has(t)}return pg(this,t)},get:function(t){if(me(t)&&!lu(t)){var e=dg(this);return e.frozen||(e.frozen=new Cf),pg(this,t)?UF(this,t):e.frozen.get(t)}return UF(this,t)},set:function(t,e){if(me(t)&&!lu(t)){var r=dg(this);r.frozen||(r.frozen=new Cf),pg(this,t)?WF(this,t,e):r.frozen.set(t,e)}else WF(this,t,e);return this}})}var tM={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},Z2=ep("span").classList,GF=Z2&&Z2.constructor&&Z2.constructor.prototype,Sht=GF===Object.prototype?void 0:GF,J2=Re("iterator"),qF=Re("toStringTag"),Q2=qf.values,eM=function(t,e){if(t){if(t[J2]!==Q2)try{ia(t,J2,Q2)}catch{t[J2]=Q2}if(t[qF]||ia(t,qF,e),tM[e]){for(var r in qf)if(t[r]!==qf[r])try{ia(t,r,qf[r])}catch{t[r]=qf[r]}}}};for(var tw in tM)eM(rt[tw]&&rt[tw].prototype,tw);eM(Sht,"DOMTokenList");var Aht=dc.EXISTS,Oht=ci.f,rM=Function.prototype,kht=xt(rM.toString),nM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Bht=xt(nM.exec);ko&&!Aht&&Oht(rM,"name",{configurable:!0,get:function(){try{return Bht(nM,kht(this))[1]}catch{return""}}});var Fht=Re("species"),Tht=Qd>=51||!ce(function(){var t=[];return(t.constructor={})[Fht]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),_ht=Re("species"),ew=rt.Array,Pht=Math.max;function oM(t){return t.getMenuConfig("uploadVideo")}zr({target:"Array",proto:!0,forced:!Tht},{slice:function(t,e){var r,n,o,i=Ba(this),a=th(i),u=rp(t,a),s=rp(e===void 0?a:e,a);if($0(i)&&(r=i.constructor,(I8(r)&&(r===ew||$0(r.prototype))||me(r)&&(r=r[_ht])===null)&&(r=void 0),r===ew||r===void 0))return IR(i,u,s);for(n=new(r===void 0?ew:r)(Pht(s-u,0)),o=0;u<s;u++,o++)u in i&&XR(n,o,i[u]);return n.length=o,n}});var KF=new WeakMap;function jht(t,e){return um(this,void 0,void 0,function(){var r,n,o,i;return sm(this,function(a){switch(a.label){case 0:return r=function(u){var s=KF.get(u);if(s!=null)return s;var l=oM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=oD(P0(P0({},l),{onProgress:function(y){u.showProgressBar(y),f&&f(y)},onSuccess:function(y,g){if(p)return p(g,function(O,T){return ip(u,O,T)}),void c(y,g);var m=g.errno,h=m===void 0?1:m,b=g.data,w=b===void 0?{}:b;if(h===0){var D=w.url,C=D===void 0?"":D,x=w.poster;ip(u,C,x===void 0?"":x),c(y,g)}else d(y,g)},onError:function(y,g,m){v(y,g,m)}})),KF.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}var Nht=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f){return ip(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;um(this,void 0,void 0,function(){var y,g,m,h,b,w;return sm(this,function(D){switch(D.label){case 0:if(d==null)return[2];y=Array.prototype.slice.call(d),g=oM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),m=_ft(y),D.label=2;case 2:return[4,m.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(C,x){return ip(f,C,x)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,jht(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),p={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(v=m.return)?[4,v.call(m)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var r=e.selection;return r==null||!L.isCollapsed(r)||!!A.getSelectedElems(e).some(function(n){var o=A.getNodeType(n);return o==="pre"||o==="list-item"||!!e.isVoid(n)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),Iht=dc.PROPER,Y6=RegExp.prototype,iM=Y6.toString,Lht=xt(kR),Rht=ce(function(){return iM.call({source:"a",flags:"b"})!="/a/b"}),Mht=Iht&&iM.name!="toString";function rw(){return _R("w-e-insert-video")}(Rht||Mht)&&Fn(RegExp.prototype,"toString",function(){var t=sr(this),e=yn(t.source),r=t.flags;return"/"+e+"/"+yn(r===void 0&&Jd(Y6,t)&&!("flags"in Y6)?Lht(t):r)},{unsafe:!0});var zht=function(){function t(){this.title=Q("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=rw(),this.heightInputId=rw(),this.buttonId=rw()}return t.prototype.getSelectedVideoNode=function(e){return A.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,r){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=Bu(Ur(Q("videoModule.width"),n,"auto"),2),u=a[0],s=B(a[1]),l=Bu(Ur(Q("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),d=Bu(is(i,Q("videoModule.ok")),1)[0];if(this.$content==null){var p=B("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var D=p.find("#"+n).val().trim(),C=p.find("#"+o).val().trim(),x=parseInt(D),O=parseInt(C),T=x?x.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:T,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),e.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var y=this.getSelectedVideoNode(e);if(y==null)return v[0];var g=y.width,m=g===void 0?"auto":g,h=y.height,b=h===void 0?"auto":h;return s.val(m),f.val(b),setTimeout(function(){s.focus()}),v[0]},t}(),$ht={renderElems:[Ndt],elemsToHtml:[Idt],preParseHtml:[zdt],parseElemsHtml:[Kdt],menus:[{key:"insertVideo",factory:function(){return new Xpt},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new Nht},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+" upload error",e,r)}}},{key:"editVideoSize",factory:function(){return new zht}}],editorPlugin:function(t){var e=t.isVoid,r=t.normalizeNode,n=t;return n.isVoid=function(o){return o.type==="video"||e(o)},n.normalizeNode=function(o){var i=Bu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(n,a)&&N.insertNodes(n,A.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};_r("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),_r("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var YF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function q8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ti,Jg,hg=function(t){return t&&t.Math==Math&&t},tt=hg(typeof globalThis=="object"&&globalThis)||hg(typeof window=="object"&&window)||hg(typeof self=="object"&&self)||hg(typeof YF=="object"&&YF)||function(){return this}()||Function("return this")(),he=function(t){try{return!!t()}catch{return!0}},Bo=!he(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Af=Function.prototype.call,ee=Af.bind?Af.bind(Af):function(){return Af.apply(Af,arguments)},XF={}.propertyIsEnumerable,ZF=Object.getOwnPropertyDescriptor,Hht={f:ZF&&!XF.call({1:2},1)?function(t){var e=ZF(this,t);return!!e&&e.enumerable}:XF},gm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},aM=Function.prototype,X6=aM.bind,Z6=aM.call,Vht=X6&&X6.bind(Z6),Tt=X6?function(t){return t&&Vht(Z6,t)}:function(t){return t&&function(){return Z6.apply(t,arguments)}},Uht=Tt({}.toString),Wht=Tt("".slice),Kn=function(t){return Wht(Uht(t),8,-1)},nw=tt.Object,Ght=Tt("".split),K8=he(function(){return!nw("z").propertyIsEnumerable(0)})?function(t){return Kn(t)=="String"?Ght(t,""):nw(t)}:nw,qht=tt.TypeError,ap=function(t){if(t==null)throw qht("Can't call method on "+t);return t},Fa=function(t){return K8(ap(t))},ue=function(t){return typeof t=="function"},de=function(t){return typeof t=="object"?t!==null:ue(t)},Kht=function(t){return ue(t)?t:void 0},Xu=function(t,e){return arguments.length<2?Kht(tt[t]):tt[t]&&tt[t][e]},up=Tt({}.isPrototypeOf),gl=Xu("navigator","userAgent")||"",JF=tt.process,QF=tt.Deno,tT=JF&&JF.versions||QF&&QF.version,eT=tT&&tT.v8;eT&&(Jg=(Ti=eT.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!Jg&&gl&&(!(Ti=gl.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=gl.match(/Chrome\/(\d+)/))&&(Jg=+Ti[1]);var sp=Jg,J6=!!Object.getOwnPropertySymbols&&!he(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&sp&&sp<41}),Y8=J6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Yht=tt.Object,ow=Y8?function(t){return typeof t=="symbol"}:function(t){var e=Xu("Symbol");return ue(e)&&up(e.prototype,Yht(t))},Xht=tt.String,Y0=function(t){try{return Xht(t)}catch{return"Object"}},Zht=tt.TypeError,xa=function(t){if(ue(t))return t;throw Zht(Y0(t)+" is not a function")},lp=function(t,e){var r=t[e];return r==null?void 0:xa(r)},Jht=tt.TypeError,Qht=Object.defineProperty,X8=function(t,e){try{Qht(tt,t,{value:e,configurable:!0,writable:!0})}catch{tt[t]=e}return e},ua=tt["__core-js_shared__"]||X8("__core-js_shared__",{}),Z8=q8(function(t){(t.exports=function(e,r){return ua[e]||(ua[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),tgt=tt.Object,J8=function(t){return tgt(ap(t))},egt=Tt({}.hasOwnProperty),Ge=Object.hasOwn||function(t,e){return egt(J8(t),e)},rgt=0,ngt=Math.random(),ogt=Tt(1 .toString),Q8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+ogt(++rgt+ngt,36)},Of=Z8("wks"),_u=tt.Symbol,rT=_u&&_u.for,igt=Y8?_u:_u&&_u.withoutSetter||Q8,Me=function(t){if(!Ge(Of,t)||!J6&&typeof Of[t]!="string"){var e="Symbol."+t;J6&&Ge(_u,t)?Of[t]=_u[t]:Of[t]=Y8&&rT?rT(e):igt(e)}return Of[t]},agt=tt.TypeError,ugt=Me("toPrimitive"),tx=function(t){var e=function(r,n){if(!de(r)||ow(r))return r;var o,i=lp(r,ugt);if(i){if(o=ee(i,r,n),!de(o)||ow(o))return o;throw agt("Can't convert object to primitive value")}return function(a,u){var s,l;if(ue(s=a.toString)&&!de(l=ee(s,a))||ue(s=a.valueOf)&&!de(l=ee(s,a)))return l;throw Jht("Can't convert object to primitive value")}(r)}(t,"string");return ow(e)?e:e+""},Q6=tt.document,sgt=de(Q6)&&de(Q6.createElement),cp=function(t){return sgt?Q6.createElement(t):{}},uM=!Bo&&!he(function(){return Object.defineProperty(cp("div"),"a",{get:function(){return 7}}).a!=7}),nT=Object.getOwnPropertyDescriptor,ex={f:Bo?nT:function(t,e){if(t=Fa(t),e=tx(e),uM)try{return nT(t,e)}catch{}if(Ge(t,e))return gm(!ee(Hht.f,t,e),t[e])}},lgt=tt.String,cgt=tt.TypeError,lr=function(t){if(de(t))return t;throw cgt(lgt(t)+" is not an object")},fgt=tt.TypeError,oT=Object.defineProperty,fi={f:Bo?oT:function(t,e,r){if(lr(t),e=tx(e),lr(r),uM)try{return oT(t,e,r)}catch{}if("get"in r||"set"in r)throw fgt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},xo=Bo?function(t,e,r){return fi.f(t,e,gm(1,r))}:function(t,e,r){return t[e]=r,t},dgt=Tt(Function.toString);ue(ua.inspectSource)||(ua.inspectSource=function(t){return dgt(t)});var X0,gd,Z0,vm=ua.inspectSource,iT=tt.WeakMap,sM=ue(iT)&&/native code/.test(vm(iT)),aT=Z8("keys"),rx=function(t){return aT[t]||(aT[t]=Q8(t))},ym={},t3=tt.TypeError,pgt=tt.WeakMap;if(sM||ua.state){var qa=ua.state||(ua.state=new pgt),hgt=Tt(qa.get),uT=Tt(qa.has),ggt=Tt(qa.set);X0=function(t,e){if(uT(qa,t))throw new t3("Object already initialized");return e.facade=t,ggt(qa,t,e),e},gd=function(t){return hgt(qa,t)||{}},Z0=function(t){return uT(qa,t)}}else{var Ms=rx("state");ym[Ms]=!0,X0=function(t,e){if(Ge(t,Ms))throw new t3("Object already initialized");return e.facade=t,xo(t,Ms,e),e},gd=function(t){return Ge(t,Ms)?t[Ms]:{}},Z0=function(t){return Ge(t,Ms)}}var sn={set:X0,get:gd,has:Z0,enforce:function(t){return Z0(t)?gd(t):X0(t,{})},getterFor:function(t){return function(e){var r;if(!de(e)||(r=gd(e)).type!==t)throw t3("Incompatible receiver, "+t+" required");return r}}},lM=Function.prototype,vgt=Bo&&Object.getOwnPropertyDescriptor,iw=Ge(lM,"name"),rh={EXISTS:iw,PROPER:iw&&(function(){}).name==="something",CONFIGURABLE:iw&&(!Bo||Bo&&vgt(lM,"name").configurable)},Tn=q8(function(t){var e=rh.CONFIGURABLE,r=sn.get,n=sn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ue(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ge(u,"name")||e&&u.name!==p)&&xo(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==tt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:xo(i,a,u)):f?i[a]=u:X8(a,u)})(Function.prototype,"toString",function(){return ue(this)&&r(this).source||vm(this)})}),ygt=Math.ceil,mgt=Math.floor,nx=function(t){var e=+t;return e!=e||e===0?0:(e>0?mgt:ygt)(e)},bgt=Math.max,wgt=Math.min,fp=function(t,e){var r=nx(t);return r<0?bgt(r+e,0):wgt(r,e)},Egt=Math.min,cM=function(t){return t>0?Egt(nx(t),9007199254740991):0},nh=function(t){return cM(t.length)},Dgt=function(t){return function(e,r,n){var o,i=Fa(e),a=nh(i),u=fp(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},xgt=Dgt(!1),sT=Tt([].push),fM=function(t,e){var r,n=Fa(t),o=0,i=[];for(r in n)!Ge(ym,r)&&Ge(n,r)&&sT(i,r);for(;e.length>o;)Ge(n,r=e[o++])&&(~xgt(i,r)||sT(i,r));return i},J0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cgt=J0.concat("length","prototype"),Q0={f:Object.getOwnPropertyNames||function(t){return fM(t,Cgt)}},Sgt={f:Object.getOwnPropertySymbols},Agt=Tt([].concat),Ogt=Xu("Reflect","ownKeys")||function(t){var e=Q0.f(lr(t)),r=Sgt.f;return r?Agt(e,r(t)):e},kgt=function(t,e){for(var r=Ogt(e),n=fi.f,o=ex.f,i=0;i<r.length;i++){var a=r[i];Ge(t,a)||n(t,a,o(e,a))}},Bgt=/#|\.prototype\./,oh=function(t,e){var r=Tgt[Fgt(t)];return r==Pgt||r!=_gt&&(ue(e)?he(e):!!e)},Fgt=oh.normalize=function(t){return String(t).replace(Bgt,".").toLowerCase()},Tgt=oh.data={},_gt=oh.NATIVE="N",Pgt=oh.POLYFILL="P",ty=oh,jgt=ex.f,bo=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?tt:l?tt[u]||X8(u,{}):(tt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=jgt(r,n))&&a.value:r[n],!ty(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;kgt(i,o)}(t.sham||o&&o.sham)&&xo(i,"sham",!0),Tn(r,n,i,t)}},ey=Array.isArray||function(t){return Kn(t)=="Array"},dM={};dM[Me("toStringTag")]="z";var ox=String(dM)==="[object z]",Ngt=Me("toStringTag"),Igt=tt.Object,Lgt=Kn(function(){return arguments}())=="Arguments",mm=ox?Kn:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=Igt(t),Ngt))=="string"?r:Lgt?Kn(e):(n=Kn(e))=="Object"&&ue(e.callee)?"Arguments":n},pM=function(){},Rgt=[],hM=Xu("Reflect","construct"),ix=/^\s*(?:class|function)\b/,Mgt=Tt(ix.exec),zgt=!ix.exec(pM),kf=function(t){if(!ue(t))return!1;try{return hM(pM,Rgt,t),!0}catch{return!1}},ax=!hM||he(function(){var t;return kf(kf.call)||!kf(Object)||!kf(function(){t=!0})||t})?function(t){if(!ue(t))return!1;switch(mm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zgt||!!Mgt(ix,vm(t))}:kf,gM=function(t,e,r){var n=tx(e);n in t?fi.f(t,n,gm(0,r)):t[n]=r},$gt=Me("species"),vM=Tt([].slice),Hgt=sp>=51||!he(function(){var t=[];return(t.constructor={})[$gt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Vgt=Me("species"),aw=tt.Array,Ugt=Math.max;bo({target:"Array",proto:!0,forced:!Hgt},{slice:function(t,e){var r,n,o,i=Fa(this),a=nh(i),u=fp(t,a),s=fp(e===void 0?a:e,a);if(ey(i)&&(r=i.constructor,(ax(r)&&(r===aw||ey(r.prototype))||de(r)&&(r=r[Vgt])===null)&&(r=void 0),r===aw||r===void 0))return vM(i,u,s);for(n=new(r===void 0?aw:r)(Ugt(s-u,0)),o=0;u<s;u++,o++)u in i&&gM(n,o,i[u]);return n.length=o,n}});var Wgt=ox?{}.toString:function(){return"[object "+mm(this)+"]"};ox||Tn(Object.prototype,"toString",Wgt,{unsafe:!0});var gg,Ggt=tt.String,sa=function(t){if(mm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ggt(t)},yM=function(){var t=lr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ux=tt.RegExp,e3=he(function(){var t=ux("a","y");return t.lastIndex=2,t.exec("abcd")!=null});e3||he(function(){return!ux("a","y").sticky});var mM={BROKEN_CARET:e3||he(function(){var t=ux("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:e3},qgt=Object.keys||function(t){return fM(t,J0)},Kgt=Bo?Object.defineProperties:function(t,e){lr(t);for(var r,n=Fa(e),o=qgt(e),i=o.length,a=0;i>a;)fi.f(t,r=o[a++],n[r]);return t},r3=Xu("document","documentElement"),bM=rx("IE_PROTO"),uw=function(){},wM=function(t){return"<script>"+t+"<\/script>"},lT=function(t){t.write(wM("")),t.close();var e=t.parentWindow.Object;return t=null,e},Qg=function(){try{gg=new ActiveXObject("htmlfile")}catch{}var t,e;Qg=typeof document<"u"?document.domain&&gg?lT(gg):((e=cp("iframe")).style.display="none",r3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(wM("document.F=Object")),t.close(),t.F):lT(gg);for(var r=J0.length;r--;)delete Qg.prototype[J0[r]];return Qg()};ym[bM]=!0;var cT,sw,sx=Object.create||function(t,e){var r;return t!==null?(uw.prototype=lr(t),r=new uw,uw.prototype=null,r[bM]=t):r=Qg(),e===void 0?r:Kgt(r,e)},Ygt=tt.RegExp,Xgt=he(function(){var t=Ygt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Zgt=tt.RegExp,Jgt=he(function(){var t=Zgt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Qgt=sn.get,tvt=Z8("native-string-replace",String.prototype.replace),ry=RegExp.prototype.exec,n3=ry,evt=Tt("".charAt),rvt=Tt("".indexOf),nvt=Tt("".replace),lw=Tt("".slice),cw=(sw=/b*/g,ee(ry,cT=/a/,"a"),ee(ry,sw,"a"),cT.lastIndex!==0||sw.lastIndex!==0),fT=mM.BROKEN_CARET,fw=/()??/.exec("")[1]!==void 0;(cw||fw||fT||Xgt||Jgt)&&(n3=function(t){var e,r,n,o,i,a,u,s=this,l=Qgt(s),c=sa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ee(n3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=fT&&s.sticky,v=ee(yM,s),y=s.source,g=0,m=c;if(p&&(v=nvt(v,"y",""),rvt(v,"g")===-1&&(v+="g"),m=lw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&evt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),fw&&(r=new RegExp("^"+y+"$(?!\\s)",v)),cw&&(n=s.lastIndex),o=ee(ry,p?r:s,m),p?o?(o.input=lw(o.input,g),o[0]=lw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:cw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),fw&&o&&o.length>1&&ee(tvt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=sx(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var dp=n3;bo({target:"RegExp",proto:!0,forced:/./.exec!==dp},{exec:dp});var lx=Function.prototype,dT=lx.apply,ovt=lx.bind,pT=lx.call,EM=typeof Reflect=="object"&&Reflect.apply||(ovt?pT.bind(dT):function(){return pT.apply(dT,arguments)}),ivt=Me("species"),dw=RegExp.prototype,avt=Me("match"),uvt=tt.TypeError,svt=Me("species"),DM=function(t,e){var r,n=lr(t).constructor;return n===void 0||(r=lr(n)[svt])==null?e:function(o){if(ax(o))return o;throw uvt(Y0(o)+" is not a constructor")}(r)},lvt=Tt("".charAt),hT=Tt("".charCodeAt),cvt=Tt("".slice),fvt=function(t){return function(e,r){var n,o,i=sa(ap(e)),a=nx(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=hT(i,a))<55296||n>56319||a+1===u||(o=hT(i,a+1))<56320||o>57343?t?lvt(i,a):n:t?cvt(i,a,a+2):o-56320+(n-55296<<10)+65536}},xM={charAt:fvt(!0)},dvt=xM.charAt,pvt=function(t,e,r){return e+(r?dvt(t,e).length:1)},hvt=tt.Array,gvt=Math.max,o3=function(t,e,r){for(var n=nh(t),o=fp(e,n),i=fp(r===void 0?n:r,n),a=hvt(gvt(i-o,0)),u=0;o<i;o++,u++)gM(a,u,t[o]);return a.length=u,a},vvt=tt.TypeError,gT=function(t,e){var r=t.exec;if(ue(r)){var n=ee(r,t,e);return n!==null&&lr(n),n}if(Kn(t)==="RegExp")return ee(dp,t,e);throw vvt("RegExp#exec called on incompatible receiver")},zs=mM.UNSUPPORTED_Y,yvt=Math.min,CM=[].push,mvt=Tt(/./.exec),$s=Tt(CM),Bf=Tt("".slice);(function(t,e,r,n){var o=Me(t),i=!he(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!he(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[ivt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Tt(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var y,g,m=sa(ap(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[m];if(!de(y=p)||!((g=y[avt])!==void 0?g:Kn(y)=="RegExp"))return ee(c,m,p,h);for(var b,w,D,C=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,T=new RegExp(p.source,x+"g");(b=ee(dp,T,m))&&!((w=T.lastIndex)>O&&($s(C,Bf(m,O,b.index)),b.length>1&&b.index<m.length&&EM(CM,C,o3(b,1)),D=b[0].length,O=w,C.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&mvt(T,"")||$s(C,""):$s(C,Bf(m,O)),C.length>h?o3(C,0,h):C}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ee(c,this,p,v)}:c,[function(p,v){var y=ap(this),g=p==null?void 0:lp(p,l);return g?ee(g,p,y,v):ee(d,sa(y),p,v)},function(p,v){var y=lr(this),g=sa(p),m=f(d,y,g,v,d!==c);if(m.done)return m.value;var h=DM(y,RegExp),b=y.unicode,w=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(zs?"g":"y"),D=new h(zs?"^(?:"+y.source+")":y,w),C=v===void 0?4294967295:v>>>0;if(C===0)return[];if(g.length===0)return gT(D,g)===null?[g]:[];for(var x=0,O=0,T=[];O<g.length;){D.lastIndex=zs?0:O;var R,H=gT(D,zs?Bf(g,O):g);if(H===null||(R=yvt(cM(D.lastIndex+(zs?O:0)),g.length))===x)O=pvt(g,O,b);else{if($s(T,Bf(g,x,O)),T.length===C)return T;for(var M=1;M<=H.length-1;M++)if($s(T,H[M]),T.length===C)return T;O=x=R}}return $s(T,Bf(g,x)),T}]}(o,""[t],function(l,c,f,d,p){var v=Tt(l),y=c.exec;return y===dp||y===dw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Tn(String.prototype,t,s[0]),Tn(dw,o,s[1])}n&&xo(dw[o],"sham",!0)})("split",0,!!he(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),zs);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ny=function(){return ny=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ny.apply(this,arguments)};function cx(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(t,[])).next())})}function fx(t,e){var r,n,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)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function bvt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var i3=Me("unscopables"),a3=Array.prototype;a3[i3]==null&&fi.f(a3,i3,{configurable:!0,value:sx(null)});var Pu,vT,yT,pw=function(t){a3[i3][t]=!0},Ul={},wvt=!he(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),mT=rx("IE_PROTO"),u3=tt.Object,Evt=u3.prototype,oy=wvt?u3.getPrototypeOf:function(t){var e=J8(t);if(Ge(e,mT))return e[mT];var r=e.constructor;return ue(r)&&e instanceof r?r.prototype:e instanceof u3?Evt:null},s3=Me("iterator"),SM=!1;[].keys&&("next"in(yT=[].keys())?(vT=oy(oy(yT)))!==Object.prototype&&(Pu=vT):SM=!0);var Dvt=Pu==null||he(function(){var t={};return Pu[s3].call(t)!==t});Dvt&&(Pu={}),ue(Pu[s3])||Tn(Pu,s3,function(){return this});var dx={IteratorPrototype:Pu,BUGGY_SAFARI_ITERATORS:SM},xvt=fi.f,bT=Me("toStringTag"),iy=function(t,e,r){t&&!Ge(t=r?t:t.prototype,bT)&&xvt(t,bT,{configurable:!0,value:e})},Cvt=dx.IteratorPrototype,Svt=function(){return this},Avt=tt.String,Ovt=tt.TypeError,Wl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Tt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch{}return function(n,o){return lr(n),function(i){if(typeof i=="object"||ue(i))return i;throw Ovt("Can't set "+Avt(i)+" as a prototype")}(o),e?t(n,o):n.__proto__=o,n}}():void 0),kvt=rh.PROPER,Bvt=rh.CONFIGURABLE,wT=dx.IteratorPrototype,hw=dx.BUGGY_SAFARI_ITERATORS,Ff=Me("iterator"),Fvt=function(){return this},AM=function(t,e,r,n,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=sx(Cvt,{next:gm(1,h)}),iy(g,w,!1),Ul[w]=Svt})(r,e,n);var u,s,l=function(g){if(g===o&&v)return v;if(!hw&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Ff]||d["@@iterator"]||o&&d[o],v=!hw&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=oy(y.call(new t)))!==Object.prototype&&u.next&&(oy(u)!==wT&&(Wl?Wl(u,wT):ue(u[Ff])||Tn(u,Ff,Fvt)),iy(u,c,!0)),kvt&&o=="values"&&p&&p.name!=="values"&&(Bvt?xo(d,"name","values"):(f=!0,v=function(){return ee(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||bo({target:e,proto:!0,forced:hw||f},s)),d[Ff]!==v&&Tn(d,Ff,v,{name:o}),Ul[e]=v,s},Tvt=sn.set,_vt=sn.getterFor("Array Iterator"),Kf=AM(Array,"Array",function(t,e){Tvt(this,{type:"Array Iterator",target:Fa(t),index:0,kind:e})},function(){var t=_vt(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Ul.Arguments=Ul.Array,pw("keys"),pw("values"),pw("entries");var Pvt=xM.charAt,jvt=sn.set,Nvt=sn.getterFor("String Iterator");AM(String,"String",function(t){jvt(this,{type:"String Iterator",string:sa(t),index:0})},function(){var t,e=Nvt(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Pvt(r,n),e.index+=t.length,{value:t,done:!1})});var ay=function(t,e,r){for(var n in e)Tn(t,n,e[n],r);return t},ET=Q0.f,DT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ivt={f:function(t){return DT&&Kn(t)=="Window"?function(e){try{return ET(e)}catch{return o3(DT)}}(t):ET(Fa(t))}},xT=he(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),vg=Object.isExtensible,cu=he(function(){vg(1)})||xT?function(t){return!!de(t)&&(!xT||Kn(t)!="ArrayBuffer")&&(!vg||vg(t))}:vg,Lvt=!he(function(){return Object.isExtensible(Object.preventExtensions({}))}),px=q8(function(t){var e=fi.f,r=!1,n=Q8("meta"),o=0,i=function(u){e(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var u=Q0.f,s=Tt([].splice),l={};l[n]=1,u(l).length&&(Q0.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},bo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ivt.f}))},fastKey:function(u,s){if(!de(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ge(u,n)){if(!cu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Ge(u,n)){if(!cu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Lvt&&r&&cu(u)&&!Ge(u,n)&&i(u),u}};ym[n]=!0}),CT=Tt(Tt.bind),pp=function(t,e){return xa(t),e===void 0?t:CT?CT(t,e):function(){return t.apply(e,arguments)}},Rvt=Me("iterator"),Mvt=Array.prototype,zvt=Me("iterator"),ST=function(t){if(t!=null)return lp(t,zvt)||lp(t,"@@iterator")||Ul[mm(t)]},$vt=tt.TypeError,AT=function(t,e,r){var n,o;lr(t);try{if(!(n=lp(t,"return"))){if(e==="throw")throw r;return r}n=ee(n,t)}catch(i){o=!0,n=i}if(e==="throw")throw r;if(o)throw n;return lr(n),r},Hvt=tt.TypeError,tv=function(t,e){this.stopped=t,this.result=e},OT=tv.prototype,uy=function(t,e,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=pp(e,f),g=function(h){return n&&AT(n,"normal",h),new tv(!0,h)},m=function(h){return d?(lr(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)n=t;else{if(!(o=ST(t)))throw Hvt(Y0(t)+" is not iterable");if((c=o)!==void 0&&(Ul.Array===c||Mvt[Rvt]===c)){for(i=0,a=nh(t);a>i;i++)if((u=m(t[i]))&&up(OT,u))return u;return new tv(!1)}n=function(h,b){var w=arguments.length<2?ST(h):b;if(xa(w))return lr(ee(w,h));throw $vt(Y0(h)+" is not iterable")}(t,o)}for(s=n.next;!(l=ee(s,n)).done;){try{u=m(l.value)}catch(h){AT(n,"throw",h)}if(typeof u=="object"&&u&&up(OT,u))return u}return new tv(!1)},Vvt=tt.TypeError,hx=function(t,e){if(up(e,t))return t;throw Vvt("Incorrect invocation")},OM=Me("iterator"),kM=!1;try{var Uvt=0,kT={next:function(){return{done:!!Uvt++}},return:function(){kM=!0}};kT[OM]=function(){return this},Array.from(kT,function(){throw 2})}catch{}var BM=function(t,e){if(!kM)return!1;var r=!1;try{var n={};n[OM]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch{}return r},Wvt=Me("species"),BT=tt.Array,Gvt=function(t,e){return new(function(r){var n;return ey(r)&&(n=r.constructor,(ax(n)&&(n===BT||ey(n.prototype))||de(n)&&(n=n[Wvt])===null)&&(n=void 0)),n===void 0?BT:n}(t))(e===0?0:e)},FT=Tt([].push),gw=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=J8(s),y=K8(v),g=pp(l,c),m=nh(y),h=0,b=f||Gvt,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:FT(w,d)}else switch(t){case 4:return!1;case 7:FT(w,d)}return i?-1:n||o?o:w}},gx={forEach:gw(0),find:gw(5),findIndex:gw(6)},yg=px.getWeakData,qvt=sn.set,Kvt=sn.getterFor,Yvt=gx.find,Xvt=gx.findIndex,Zvt=Tt([].splice),Jvt=0,mg=function(t){return t.frozen||(t.frozen=new FM)},FM=function(){this.entries=[]},vw=function(t,e){return Yvt(t.entries,function(r){return r[0]===e})};FM.prototype={get:function(t){var e=vw(this,t);if(e)return e[1]},has:function(t){return!!vw(this,t)},set:function(t,e){var r=vw(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Xvt(this.entries,function(r){return r[0]===t});return~e&&Zvt(this.entries,e,1),!!~e}};var Tf,TM={getConstructor:function(t,e,r,n){var o=t(function(s,l){hx(s,i),qvt(s,{type:e,id:Jvt++,frozen:void 0}),l!=null&&uy(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=Kvt(e),u=function(s,l,c){var f=a(s),d=yg(lr(l),!0);return d===!0?mg(f).set(l,c):d[f.id]=c,s};return ay(i,{delete:function(s){var l=a(this);if(!de(s))return!1;var c=yg(s);return c===!0?mg(l).delete(s):c&&Ge(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!de(s))return!1;var c=yg(s);return c===!0?mg(l).has(s):c&&Ge(c,l.id)}}),ay(i,r?{get:function(s){var l=a(this);if(de(s)){var c=yg(s);return c===!0?mg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},bg=sn.enforce,Qvt=!tt.ActiveXObject&&"ActiveXObject"in tt,_M=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},t0t=function(t,e,r){var n=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=n?"set":"add",a=tt[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=Tt(u[g]);Tn(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!de(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!de(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!de(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(ty(t,!ue(a)||!(o||u.forEach&&!he(function(){new a().entries().next()}))))s=r.getConstructor(e,t,n,i),px.enable();else if(ty(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=he(function(){f.has(1)}),v=BM(function(g){new a(g)}),y=!o&&he(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){hx(g,u);var h=function(b,w,D){var C,x;return Wl&&ue(C=w.constructor)&&C!==D&&de(x=C.prototype)&&x!==D.prototype&&Wl(b,x),b}(new a,g,s);return m!=null&&uy(m,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),n&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,bo({global:!0,forced:s!=a},l),iy(s,t),o||r.setStrong(s,t,n),s}("WeakMap",_M,TM);if(sM&&Qvt){Tf=TM.getConstructor(_M,"WeakMap",!0),px.enable();var _f=t0t.prototype,TT=Tt(_f.delete),wg=Tt(_f.has),_T=Tt(_f.get),PT=Tt(_f.set);ay(_f,{delete:function(t){if(de(t)&&!cu(t)){var e=bg(this);return e.frozen||(e.frozen=new Tf),TT(this,t)||e.frozen.delete(t)}return TT(this,t)},has:function(t){if(de(t)&&!cu(t)){var e=bg(this);return e.frozen||(e.frozen=new Tf),wg(this,t)||e.frozen.has(t)}return wg(this,t)},get:function(t){if(de(t)&&!cu(t)){var e=bg(this);return e.frozen||(e.frozen=new Tf),wg(this,t)?_T(this,t):e.frozen.get(t)}return _T(this,t)},set:function(t,e){if(de(t)&&!cu(t)){var r=bg(this);r.frozen||(r.frozen=new Tf),wg(this,t)?PT(this,t,e):r.frozen.set(t,e)}else PT(this,t,e);return this}})}var sy={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},yw=cp("span").classList,jT=yw&&yw.constructor&&yw.constructor.prototype,PM=jT===Object.prototype?void 0:jT,mw=Me("iterator"),NT=Me("toStringTag"),bw=Kf.values,jM=function(t,e){if(t){if(t[mw]!==bw)try{xo(t,mw,bw)}catch{t[mw]=bw}if(t[NT]||xo(t,NT,e),sy[e]){for(var r in Kf)if(t[r]!==Kf[r])try{xo(t,r,Kf[r])}catch{t[r]=Kf[r]}}}};for(var ww in sy)jM(tt[ww]&&tt[ww].prototype,ww);jM(PM,"DOMTokenList");var NM=function(t,e){var r=[][t];return!!r&&he(function(){r.call(null,e||function(){throw 1},1)})},e0t=gx.forEach,Ew=NM("forEach")?[].forEach:function(t){return e0t(this,t,arguments.length>1?arguments[1]:void 0)},IM=function(t){if(t&&t.forEach!==Ew)try{xo(t,"forEach",Ew)}catch{t.forEach=Ew}};for(var Dw in sy)sy[Dw]&&IM(tt[Dw]&&tt[Dw].prototype);IM(PM);var hp,Hs,IT,xw,ly=tt.Promise,LT=Me("species"),LM=/(?:ipad|iphone|ipod).*applewebkit/i.test(gl),la=Kn(tt.process)=="process",l3=tt.setImmediate,RT=tt.clearImmediate,r0t=tt.process,Cw=tt.Dispatch,n0t=tt.Function,MT=tt.MessageChannel,o0t=tt.String,Sw=0,vd={};try{hp=tt.location}catch{}var vx=function(t){if(Ge(vd,t)){var e=vd[t];delete vd[t],e()}},Aw=function(t){return function(){vx(t)}},zT=function(t){vx(t.data)},$T=function(t){tt.postMessage(o0t(t),hp.protocol+"//"+hp.host)};l3&&RT||(l3=function(t){var e=vM(arguments,1);return vd[++Sw]=function(){EM(ue(t)?t:n0t(t),void 0,e)},Hs(Sw),Sw},RT=function(t){delete vd[t]},la?Hs=function(t){r0t.nextTick(Aw(t))}:Cw&&Cw.now?Hs=function(t){Cw.now(Aw(t))}:MT&&!LM?(xw=(IT=new MT).port2,IT.port1.onmessage=zT,Hs=pp(xw.postMessage,xw)):tt.addEventListener&&ue(tt.postMessage)&&!tt.importScripts&&hp&&hp.protocol!=="file:"&&!he($T)?(Hs=$T,tt.addEventListener("message",zT,!1)):Hs="onreadystatechange"in cp("script")?function(t){r3.appendChild(cp("script")).onreadystatechange=function(){r3.removeChild(this),vx(t)}}:function(t){setTimeout(Aw(t),0)});var Pf,iu,yd,Js,Ow,kw,Bw,HT,RM={set:l3},i0t=/ipad|iphone|ipod/i.test(gl)&&tt.Pebble!==void 0,a0t=/web0s(?!.*chrome)/i.test(gl),u0t=ex.f,Fw=RM.set,VT=tt.MutationObserver||tt.WebKitMutationObserver,UT=tt.document,WT=tt.process,Eg=tt.Promise,GT=u0t(tt,"queueMicrotask"),MM=GT&&GT.value;MM||(Pf=function(){var t,e;for(la&&(t=WT.domain)&&t.exit();iu;){e=iu.fn,iu=iu.next;try{e()}catch(r){throw iu?Js():yd=void 0,r}}yd=void 0,t&&t.enter()},LM||la||a0t||!VT||!UT?!i0t&&Eg&&Eg.resolve?((Bw=Eg.resolve(void 0)).constructor=Eg,HT=pp(Bw.then,Bw),Js=function(){HT(Pf)}):la?Js=function(){WT.nextTick(Pf)}:(Fw=pp(Fw,tt),Js=function(){Fw(Pf)}):(Ow=!0,kw=UT.createTextNode(""),new VT(Pf).observe(kw,{characterData:!0}),Js=function(){kw.data=Ow=!Ow}));var Tw,qT,zM,KT,$M=MM||function(t){var e={fn:t,next:void 0};yd&&(yd.next=e),iu||(iu=e,Js()),yd=e},s0t=function(t){var e,r;this.promise=new t(function(n,o){if(e!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");e=n,r=o}),this.resolve=xa(e),this.reject=xa(r)},yx={f:function(t){return new s0t(t)}},c3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},l0t=typeof window=="object",HM=RM.set,c0t=Me("species"),Yo="Promise",YT=sn.getterFor(Yo),f0t=sn.set,d0t=sn.getterFor(Yo),Qa=ly&&ly.prototype,wo=ly,jf=Qa,VM=tt.TypeError,f3=tt.document,mx=tt.process,vl=yx.f,p0t=vl,h0t=!!(f3&&f3.createEvent&&tt.dispatchEvent),UM=ue(tt.PromiseRejectionEvent),WM=!1,md=ty(Yo,function(){var t=vm(wo),e=t!==String(wo);if(!e&&sp===66)return!0;if(sp>=51&&/native code/.test(t))return!1;var r=new wo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[c0t]=n,!(WM=r.then(function(){})instanceof n)||!e&&l0t&&!UM}),g0t=md||!BM(function(t){wo.all(t).catch(function(){})}),GM=function(t){var e;return!(!de(t)||!ue(e=t.then))&&e},bx=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;$M(function(){for(var n=t.value,o=t.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&y0t(t),t.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(VM("Promise-chain cycle")):(u=GM(a))?ee(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&v0t(t)})}},qM=function(t,e,r){var n,o;h0t?((n=f3.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),tt.dispatchEvent(n)):n={promise:e,reason:r},!UM&&(o=tt["on"+t])?o(n):t==="unhandledrejection"&&function(i,a){var u=tt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",r)},v0t=function(t){ee(HM,tt,function(){var e,r=t.facade,n=t.value;if(XT(t)&&(e=c3(function(){la?mx.emit("unhandledRejection",n,r):qM("unhandledrejection",r,n)}),t.rejection=la||XT(t)?2:1,e.error))throw e.value})},XT=function(t){return t.rejection!==1&&!t.parent},y0t=function(t){ee(HM,tt,function(){var e=t.facade;la?mx.emit("rejectionHandled",e):qM("rejectionhandled",e,t.value)})},ol=function(t,e,r){return function(n){t(e,n,r)}},yl=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,bx(t,!0))},d3=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw VM("Promise can't be resolved itself");var n=GM(e);n?$M(function(){var o={done:!1};try{ee(n,e,ol(d3,o,t),ol(yl,o,t))}catch(i){yl(o,i,t)}}):(t.value=e,t.state=1,bx(t,!1))}catch(o){yl({done:!1},o,t)}}};if(md&&(jf=(wo=function(t){hx(this,jf),xa(t),ee(Tw,this);var e=YT(this);try{t(ol(d3,e),ol(yl,e))}catch(r){yl(e,r)}}).prototype,(Tw=function(t){f0t(this,{type:Yo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ay(jf,{then:function(t,e){var r=d0t(this),n=r.reactions,o=vl(DM(this,wo));return o.ok=!ue(t)||t,o.fail=ue(e)&&e,o.domain=la?mx.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&bx(r,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),qT=function(){var t=new Tw,e=YT(t);this.promise=t,this.resolve=ol(d3,e),this.reject=ol(yl,e)},yx.f=vl=function(t){return t===wo||t===zM?new qT(t):p0t(t)},ue(ly)&&Qa!==Object.prototype)){KT=Qa.then,WM||(Tn(Qa,"then",function(t,e){var r=this;return new wo(function(n,o){ee(KT,r,n,o)}).then(t,e)},{unsafe:!0}),Tn(Qa,"catch",jf.catch,{unsafe:!0}));try{delete Qa.constructor}catch{}Wl&&Wl(Qa,jf)}bo({global:!0,wrap:!0,forced:md},{Promise:wo}),iy(wo,Yo,!1),function(t){var e=Xu("Promise"),r=fi.f;Bo&&e&&!e[LT]&&r(e,LT,{configurable:!0,get:function(){return this}})}(),zM=Xu(Yo),bo({target:Yo,stat:!0,forced:md},{reject:function(t){var e=vl(this);return ee(e.reject,void 0,t),e.promise}}),bo({target:Yo,stat:!0,forced:md},{resolve:function(t){return function(e,r){if(lr(e),de(r)&&r.constructor===e)return r;var n=yx.f(e);return(0,n.resolve)(r),n.promise}(this,t)}}),bo({target:Yo,stat:!0,forced:g0t},{all:function(t){var e=this,r=vl(e),n=r.resolve,o=r.reject,i=c3(function(){var a=xa(e.resolve),u=[],s=0,l=1;uy(t,function(c){var f=s++,d=!1;l++,ee(a,e,c).then(function(p){d||(d=!0,u[f]=p,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=vl(e),n=r.reject,o=c3(function(){var i=xa(e.resolve);uy(t,function(a){ee(i,e,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var m0t=rh.PROPER,p3=RegExp.prototype,KM=p3.toString,b0t=Tt(yM),w0t=he(function(){return KM.call({source:"a",flags:"b"})!="/a/b"}),E0t=m0t&&KM.name!="toString";(w0t||E0t)&&Tn(RegExp.prototype,"toString",function(){var t=lr(this),e=sa(t.source),r=t.flags;return"/"+e+"/"+sa(r===void 0&&up(p3,t)&&!("flags"in p3)?b0t(t):r)},{unsafe:!0});var D0t=rh.EXISTS,x0t=fi.f,YM=Function.prototype,C0t=Tt(YM.toString),XM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,S0t=Tt(XM.exec);Bo&&!D0t&&x0t(YM,"name",{configurable:!0,get:function(){try{return S0t(XM,C0t(this))[1]}catch{return""}}});var ZT=new WeakMap;function ZM(t){return t.getMenuConfig("uploadImage")}function A0t(t,e){return cx(this,void 0,void 0,function(){return fx(this,function(r){return[2,new Promise(function(n){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Du(t,a,e.name,u),n("ok")}}})]})})}function O0t(t,e){return cx(this,void 0,void 0,function(){var r,n,o,i;return fx(this,function(a){switch(a.label){case 0:return r=function(u){var s=ZT.get(u);if(s!=null)return s;var l=ZM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=oD(ny(ny({},l),{onProgress:function(y){u.showProgressBar(y),f&&f(y)},onSuccess:function(y,g){if(p)return p(g,function(R,H,M){return Du(u,R,H,M)}),void c(y,g);var m=g.errno,h=m===void 0?1:m,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(R){var H=R.url,M=H===void 0?"":H,K=R.alt,U=K===void 0?"":K,W=R.href;Du(u,M,U,W===void 0?"":W)});else{var D=w.url,C=D===void 0?"":D,x=w.alt,O=x===void 0?"":x,T=w.href;Du(u,C,O,T===void 0?"":T)}c(y,g)}else d(y,g)},onError:function(y,g,m){v(y,g,m)}})),ZT.set(u,s),s}(t),n=e.name,o=e.type,i=e.size,r.addFile({name:n,type:o,size:i,data:e}),[4,r.upload()];case 1:return a.sent(),[2]}})})}function JM(t,e){var r,n;return cx(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return fx(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=ZM(t),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=bvt(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,A0t(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,y,g){return Du(t,v,y,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,O0t(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var k0t=Tt([].join),B0t=K8!=Object,F0t=NM("join",",");bo({target:"Array",proto:!0,forced:B0t||!F0t},{join:function(t){return k0t(Fa(this),t===void 0?",":t)}}),An&&(B.fn.append=An),Ao&&(B.fn.on=Ao),Bl&&(B.fn.remove=Bl),So&&(B.fn.val=So),ZS&&(B.fn.click=ZS),Sl&&(B.fn.hide=Sl);var T0t=function(){function t(){this.title=Q("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 t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return qy(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,r){var n=this.getMenuConfig(e),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f,d){return Du(e,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;JM(e,c)})}},t}(),_0t={menus:[{key:"uploadImage",factory:function(){return new T0t},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,r){console.error("'"+t.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,r=t;return r.insertData=function(n){if(qy(r))e(n);else if(n.getData("text/plain"))e(n);else{var o=n.files;o.length<=0?e(n):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?JM(t,o):e(n)}},r}};_r("en",{highLightModule:{selectLang:"Language"}}),_r("zh-CN",{highLightModule:{selectLang:"选择语言"}});var cy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wx(t){var e={exports:{}};return t(e,e.exports),e.exports}var _i,ev,Dg=function(t){return t&&t.Math==Math&&t},Nt=Dg(typeof globalThis=="object"&&globalThis)||Dg(typeof window=="object"&&window)||Dg(typeof self=="object"&&self)||Dg(typeof cy=="object"&&cy)||function(){return this}()||Function("return this")(),P0t=Object.defineProperty,Ex=function(t,e){try{P0t(Nt,t,{value:e,configurable:!0,writable:!0})}catch{Nt[t]=e}return e},ca=Nt["__core-js_shared__"]||Ex("__core-js_shared__",{}),Dx=wx(function(t){(t.exports=function(e,r){return ca[e]||(ca[e]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),QM=Function.prototype,h3=QM.bind,g3=QM.call,j0t=h3&&h3.bind(g3),Jt=h3?function(t){return t&&j0t(g3,t)}:function(t){return t&&function(){return g3.apply(t,arguments)}},N0t=Nt.TypeError,Gl=function(t){if(t==null)throw N0t("Can't call method on "+t);return t},I0t=Nt.Object,xx=function(t){return I0t(Gl(t))},L0t=Jt({}.hasOwnProperty),Cn=Object.hasOwn||function(t,e){return L0t(xx(t),e)},R0t=0,M0t=Math.random(),z0t=Jt(1 .toString),tz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+z0t(++R0t+M0t,36)},Pr=function(t){return typeof t=="function"},$0t=function(t){return Pr(t)?t:void 0},ih=function(t,e){return arguments.length<2?$0t(Nt[t]):Nt[t]&&Nt[t][e]},_w=ih("navigator","userAgent")||"",JT=Nt.process,QT=Nt.Deno,t_=JT&&JT.versions||QT&&QT.version,e_=t_&&t_.v8;e_&&(ev=(_i=e_.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!ev&&_w&&(!(_i=_w.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=_w.match(/Chrome\/(\d+)/))&&(ev=+_i[1]);var r_=ev,ar=function(t){try{return!!t()}catch{return!0}},v3=!!Object.getOwnPropertySymbols&&!ar(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r_&&r_<41}),Cx=v3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Nf=Dx("wks"),ju=Nt.Symbol,n_=ju&&ju.for,H0t=Cx?ju:ju&&ju.withoutSetter||tz,Ta=function(t){if(!Cn(Nf,t)||!v3&&typeof Nf[t]!="string"){var e="Symbol."+t;v3&&Cn(ju,t)?Nf[t]=ju[t]:Nf[t]=Cx&&n_?n_(e):H0t(e)}return Nf[t]},ez={};ez[Ta("toStringTag")]="z";var Sx=String(ez)==="[object z]",Fo=!ar(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Jo=function(t){return typeof t=="object"?t!==null:Pr(t)},y3=Nt.document,V0t=Jo(y3)&&Jo(y3.createElement),Ax=function(t){return V0t?y3.createElement(t):{}},rz=!Fo&&!ar(function(){return Object.defineProperty(Ax("div"),"a",{get:function(){return 7}}).a!=7}),U0t=Nt.String,W0t=Nt.TypeError,Yn=function(t){if(Jo(t))return t;throw W0t(U0t(t)+" is not an object")},If=Function.prototype.call,or=If.bind?If.bind(If):function(){return If.apply(If,arguments)},nz=Jt({}.isPrototypeOf),G0t=Nt.Object,Pw=Cx?function(t){return typeof t=="symbol"}:function(t){var e=ih("Symbol");return Pr(e)&&nz(e.prototype,G0t(t))},q0t=Nt.String,oz=function(t){try{return q0t(t)}catch{return"Object"}},K0t=Nt.TypeError,iz=function(t){if(Pr(t))return t;throw K0t(oz(t)+" is not a function")},az=function(t,e){var r=t[e];return r==null?void 0:iz(r)},Y0t=Nt.TypeError,X0t=Nt.TypeError,Z0t=Ta("toPrimitive"),Ox=function(t){var e=function(r,n){if(!Jo(r)||Pw(r))return r;var o,i=az(r,Z0t);if(i){if(o=or(i,r,n),!Jo(o)||Pw(o))return o;throw X0t("Can't convert object to primitive value")}return function(a,u){var s,l;if(Pr(s=a.toString)&&!Jo(l=or(s,a))||Pr(s=a.valueOf)&&!Jo(l=or(s,a)))return l;throw Y0t("Can't convert object to primitive value")}(r)}(t,"string");return Pw(e)?e:e+""},J0t=Nt.TypeError,o_=Object.defineProperty,bm={f:Fo?o_:function(t,e,r){if(Yn(t),e=Ox(e),Yn(r),rz)try{return o_(t,e,r)}catch{}if("get"in r||"set"in r)throw J0t("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},kx=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ql=Fo?function(t,e,r){return bm.f(t,e,kx(1,r))}:function(t,e,r){return t[e]=r,t},Q0t=Jt(Function.toString);Pr(ca.inspectSource)||(ca.inspectSource=function(t){return Q0t(t)});var m3,fy,b3,Bx=ca.inspectSource,i_=Nt.WeakMap,tyt=Pr(i_)&&/native code/.test(Bx(i_)),a_=Dx("keys"),uz=function(t){return a_[t]||(a_[t]=tz(t))},Fx={},u_=Nt.TypeError,eyt=Nt.WeakMap;if(tyt||ca.state){var Ka=ca.state||(ca.state=new eyt),ryt=Jt(Ka.get),s_=Jt(Ka.has),nyt=Jt(Ka.set);m3=function(t,e){if(s_(Ka,t))throw new u_("Object already initialized");return e.facade=t,nyt(Ka,t,e),e},fy=function(t){return ryt(Ka,t)||{}},b3=function(t){return s_(Ka,t)}}else{var Vs=uz("state");Fx[Vs]=!0,m3=function(t,e){if(Cn(t,Vs))throw new u_("Object already initialized");return e.facade=t,ql(t,Vs,e),e},fy=function(t){return Cn(t,Vs)?t[Vs]:{}},b3=function(t){return Cn(t,Vs)}}var w3={get:fy,enforce:function(t){return b3(t)?fy(t):m3(t,{})}},sz=Function.prototype,oyt=Fo&&Object.getOwnPropertyDescriptor,l_=Cn(sz,"name"),lz={PROPER:l_&&(function(){}).name==="something",CONFIGURABLE:l_&&(!Fo||Fo&&oyt(sz,"name").configurable)},gp=wx(function(t){var e=lz.CONFIGURABLE,r=w3.get,n=w3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Pr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cn(u,"name")||e&&u.name!==p)&&ql(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Nt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ql(i,a,u)):f?i[a]=u:Ex(a,u)})(Function.prototype,"toString",function(){return Pr(this)&&r(this).source||Bx(this)})}),iyt=Jt({}.toString),ayt=Jt("".slice),fa=function(t){return ayt(iyt(t),8,-1)},uyt=Ta("toStringTag"),syt=Nt.Object,lyt=fa(function(){return arguments}())=="Arguments",Tx=Sx?fa:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=function(o,i){try{return o[i]}catch{}}(e=syt(t),uyt))=="string"?r:lyt?fa(e):(n=fa(e))=="Object"&&Pr(e.callee)?"Arguments":n},cyt=Sx?{}.toString:function(){return"[object "+Tx(this)+"]"};Sx||gp(Object.prototype,"toString",cyt,{unsafe:!0});var c_,f_={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},jw=Ax("span").classList,d_=jw&&jw.constructor&&jw.constructor.prototype,fyt=d_===Object.prototype?void 0:d_,p_=Jt(Jt.bind),Nw=Nt.Object,dyt=Jt("".split),_x=ar(function(){return!Nw("z").propertyIsEnumerable(0)})?function(t){return fa(t)=="String"?dyt(t,""):Nw(t)}:Nw,pyt=Math.ceil,hyt=Math.floor,Px=function(t){var e=+t;return e!=e||e===0?0:(e>0?hyt:pyt)(e)},gyt=Math.min,cz=function(t){return t>0?gyt(Px(t),9007199254740991):0},jx=function(t){return cz(t.length)},h_=Array.isArray||function(t){return fa(t)=="Array"},fz=function(){},vyt=[],dz=ih("Reflect","construct"),Nx=/^\s*(?:class|function)\b/,yyt=Jt(Nx.exec),myt=!Nx.exec(fz),Lf=function(t){if(!Pr(t))return!1;try{return dz(fz,vyt,t),!0}catch{return!1}},pz=!dz||ar(function(){var t;return Lf(Lf.call)||!Lf(Object)||!Lf(function(){t=!0})||t})?function(t){if(!Pr(t))return!1;switch(Tx(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return myt||!!yyt(Nx,Bx(t))}:Lf,byt=Ta("species"),g_=Nt.Array,wyt=function(t,e){return new(function(r){var n;return h_(r)&&(n=r.constructor,(pz(n)&&(n===g_||h_(n.prototype))||Jo(n)&&(n=n[byt])===null)&&(n=void 0)),n===void 0?g_:n}(t))(e===0?0:e)},v_=Jt([].push),Pi=function(t){var e=t==1,r=t==2,n=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=xx(s),y=_x(v),g=function(D,C){return iz(D),C===void 0?D:p_?p_(D,C):function(){return D.apply(C,arguments)}}(l,c),m=jx(y),h=0,b=f||wyt,w=e?b(s,m):r||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:v_(w,d)}else switch(t){case 4:return!1;case 7:v_(w,d)}return i?-1:n||o?o:w}},Eyt=[Pi(0),Pi(1),Pi(2),Pi(3),Pi(4),Pi(5),Pi(6),Pi(7)][0],Iw=(c_=[].forEach)&&ar(function(){c_.call(null,function(){throw 1},1)})?[].forEach:function(t){return Eyt(this,t,arguments.length>1?arguments[1]:void 0)},hz=function(t){if(t&&t.forEach!==Iw)try{ql(t,"forEach",Iw)}catch{t.forEach=Iw}};for(var Lw in f_)f_[Lw]&&hz(Nt[Lw]&&Nt[Lw].prototype);hz(fyt);var y_={}.propertyIsEnumerable,m_=Object.getOwnPropertyDescriptor,gz={f:m_&&!y_.call({1:2},1)?function(t){var e=m_(this,t);return!!e&&e.enumerable}:y_},wm=function(t){return _x(Gl(t))},b_=Object.getOwnPropertyDescriptor,vz={f:Fo?b_:function(t,e){if(t=wm(t),e=Ox(e),rz)try{return b_(t,e)}catch{}if(Cn(t,e))return kx(!or(gz.f,t,e),t[e])}},Dyt=Math.max,xyt=Math.min,E3=function(t,e){var r=Px(t);return r<0?Dyt(r+e,0):xyt(r,e)},Cyt=function(t){return function(e,r,n){var o,i=wm(e),a=jx(i),u=E3(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Syt=Cyt(!1),w_=Jt([].push),yz=function(t,e){var r,n=wm(t),o=0,i=[];for(r in n)!Cn(Fx,r)&&Cn(n,r)&&w_(i,r);for(;e.length>o;)Cn(n,r=e[o++])&&(~Syt(i,r)||w_(i,r));return i},dy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ayt=dy.concat("length","prototype"),Oyt={f:Object.getOwnPropertyNames||function(t){return yz(t,Ayt)}},mz={f:Object.getOwnPropertySymbols},kyt=Jt([].concat),Byt=ih("Reflect","ownKeys")||function(t){var e=Oyt.f(Yn(t)),r=mz.f;return r?kyt(e,r(t)):e},Fyt=function(t,e){for(var r=Byt(e),n=bm.f,o=vz.f,i=0;i<r.length;i++){var a=r[i];Cn(t,a)||n(t,a,o(e,a))}},Tyt=/#|\.prototype\./,ah=function(t,e){var r=Pyt[_yt(t)];return r==Nyt||r!=jyt&&(Pr(e)?ar(e):!!e)},_yt=ah.normalize=function(t){return String(t).replace(Tyt,".").toLowerCase()},Pyt=ah.data={},jyt=ah.NATIVE="N",Nyt=ah.POLYFILL="P",Iyt=ah,Lyt=vz.f,Em=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,l=t.stat;if(r=s?Nt:l?Nt[u]||Ex(u,{}):(Nt[u]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=Lyt(r,n))&&a.value:r[n],!Iyt(s?n:u+(l?".":"#")+n,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Fyt(i,o)}(t.sham||o&&o.sham)&&ql(i,"sham",!0),gp(r,n,i,t)}},rv=Object.keys||function(t){return yz(t,dy)},Us=Object.assign,E_=Object.defineProperty,Ryt=Jt([].concat),D_=!Us||ar(function(){if(Fo&&Us({b:1},Us(E_({},"a",{enumerable:!0,get:function(){E_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(o){e[o]=o}),Us({},t)[r]!=7||rv(Us({},e)).join("")!=n})?function(t,e){for(var r=xx(t),n=arguments.length,o=1,i=mz.f,a=gz.f;n>o;)for(var u,s=_x(arguments[o++]),l=i?Ryt(rv(s),i(s)):rv(s),c=l.length,f=0;c>f;)u=l[f++],Fo&&!or(a,s,u)||(r[u]=s[u]);return r}:Us;Em({target:"Object",stat:!0,forced:Object.assign!==D_},{assign:D_});var x_=wx(function(t){var e=function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(m){return m instanceof u?new u(m.type,g(m.content),m.alias):Array.isArray(m)?m.map(g):m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(m,h){var b,w;switch(h=h||{},a.util.type(m)){case"Object":if(w=a.util.objId(m),h[w])return h[w];for(var D in b={},h[w]=b,m)m.hasOwnProperty(D)&&(b[D]=g(m[D],h));return b;case"Array":return w=a.util.objId(m),h[w]?h[w]:(b=[],h[w]=b,m.forEach(function(C,x){b[x]=g(C,h)}),b);default:return m}},getLanguage:function(g){for(;g&&!n.test(g.className);)g=g.parentElement;return g?(g.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==g)return m[h]}return null}},isActive:function(g,m,h){for(var b="no-"+m;g;){var w=g.classList;if(w.contains(m))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,m){var h=a.util.clone(a.languages[g]);for(var b in m)h[b]=m[b];return h},insertBefore:function(g,m,h,b){var w=(b=b||a.languages)[g],D={};for(var C in w)if(w.hasOwnProperty(C)){if(C==m)for(var x in h)h.hasOwnProperty(x)&&(D[x]=h[x]);h.hasOwnProperty(C)||(D[C]=w[C])}var O=b[g];return b[g]=D,a.languages.DFS(a.languages,function(T,R){R===O&&T!=g&&(this[T]=D)}),D},DFS:function g(m,h,b,w){w=w||{};var D=a.util.objId;for(var C in m)if(m.hasOwnProperty(C)){h.call(m,C,m[C],b||C);var x=m[C],O=a.util.type(x);O!=="Object"||w[D(x)]?O!=="Array"||w[D(x)]||(w[D(x)]=!0,g(x,h,C,w)):(w[D(x)]=!0,g(x,h,null,w))}}},plugins:{},highlightAll:function(g,m){a.highlightAllUnder(document,g,m)},highlightAllUnder:function(g,m,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,D=0;w=b.elements[D++];)a.highlightElement(w,m===!0,b.callback)},highlightElement:function(g,m,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(n,"").replace(/\s+/g," ")+" language-"+b;var D=g.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(n,"").replace(/\s+/g," ")+" language-"+b);var C={element:g,language:b,grammar:w,code:g.textContent};function x(T){C.highlightedCode=T,a.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,a.hooks.run("after-highlight",C),a.hooks.run("complete",C),h&&h.call(C.element)}if(a.hooks.run("before-sanity-check",C),(D=C.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!C.code)return a.hooks.run("complete",C),void(h&&h.call(C.element));if(a.hooks.run("before-highlight",C),C.grammar)if(m&&r.Worker){var O=new Worker(a.filename);O.onmessage=function(T){x(T.data)},O.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else x(a.highlight(C.code,C.grammar,C.language));else x(a.util.encode(C.code))},highlight:function(g,m,h){var b={code:g,grammar:m,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,m){var h=m.rest;if(h){for(var b in h)m[b]=h[b];delete m.rest}var w=new c;return f(w,w.head,g),l(g,w,m,w.head,0),function(D){for(var C=[],x=D.head.next;x!==D.tail;)C.push(x.value),x=x.next;return C}(w)},hooks:{all:{},add:function(g,m){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(m)},run:function(g,m){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(m)}},Token:u};function u(g,m,h,b){this.type=g,this.content=m,this.alias=h,this.length=0|(b||"").length}function s(g,m,h,b){g.lastIndex=m;var w=g.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(g,m,h,b,w,D){for(var C in h)if(h.hasOwnProperty(C)&&h[C]){var x=h[C];x=Array.isArray(x)?x:[x];for(var O=0;O<x.length;++O){if(D&&D.cause==C+","+O)return;var T=x[O],R=T.inside,H=!!T.lookbehind,M=!!T.greedy,K=T.alias;if(M&&!T.pattern.global){var U=T.pattern.toString().match(/[imsuy]*$/)[0];T.pattern=RegExp(T.pattern.source,U+"g")}for(var W=T.pattern||T,q=b.next,et=w;q!==m.tail&&!(D&&et>=D.reach);et+=q.value.length,q=q.next){var st=q.value;if(m.length>g.length)return;if(!(st instanceof u)){var ut,at=1;if(M){if(!(ut=s(W,et,g,H)))break;var k=ut.index,S=ut.index+ut[0].length,P=et;for(P+=q.value.length;k>=P;)P+=(q=q.next).value.length;if(et=P-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==m.tail&&(P<S||typeof $.value=="string");$=$.next)at++,P+=$.value.length;at--,st=g.slice(et,P),ut.index-=et}else if(!(ut=s(W,0,st,H)))continue;k=ut.index;var Y=ut[0],V=st.slice(0,k),it=st.slice(k+Y.length),gt=et+st.length;D&&gt>D.reach&&(D.reach=gt);var vt=q.prev;if(V&&(vt=f(m,vt,V),et+=V.length),d(m,vt,at),q=f(m,vt,new u(C,R?a.tokenize(Y,R):Y,K,Y)),it&&f(m,q,it),at>1){var Dt={cause:C+","+O,reach:gt};l(g,m,h,q.prev,et,Dt),D&&Dt.reach>D.reach&&(D.reach=Dt.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},m={value:null,prev:g,next:null};g.next=m,this.head=g,this.tail=m,this.length=0}function f(g,m,h){var b=m.next,w={value:h,prev:m,next:b};return m.next=w,b.prev=w,g.length++,w}function d(g,m,h){for(var b=m.next,w=0;w<h&&b!==g.tail;w++)b=b.next;m.next=b,b.prev=m,g.length-=w}if(r.Prism=a,u.stringify=function g(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var b="";return m.forEach(function(O){b+=g(O,h)}),b}var w={type:m.type,content:g(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},D=m.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),a.hooks.run("wrap",w);var C="";for(var x in w.attributes)C+=" "+x+'="'+(w.attributes[x]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+C+">"+w.content+"</"+w.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(g){var m=JSON.parse(g.data),h=m.language,b=m.code,w=m.immediateClose;r.postMessage(a.highlight(b,a.languages[h],h)),w&&r.close()},!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var y=document.readyState;y==="loading"||y==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 *
 * @license MIT <https://opensource.org/licenses/MIT>
 * @author Lea Verou <https://lea.verou.me>
 * @namespace
 * @public
 */t.exports&&(t.exports=e),cy!==void 0&&(cy.Prism=e),e.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]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(r,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.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\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.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:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.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}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.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:e.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:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.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:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.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:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.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")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}u(c,d),u(l,d);var v=e.plugins.autoloader;v&&v.loadLanguages(d);var y=new XMLHttpRequest;y.open("GET",f,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?(l.setAttribute(n,"loaded"),c.textContent=y.responseText,e.highlightElement(c)):(l.setAttribute(n,"failed"),y.status>=400?c.textContent="✖ Error "+y.status+" while fetching file: "+y.statusText:c.textContent="✖ Error: File does not exist or is empty"))},y.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.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/}),t.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 t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.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:e}}}}),t.languages.ts=t.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(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},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(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{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*\()/],n=/\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=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,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:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.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}}];t.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:e,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:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\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/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[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:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:e,function:[t.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}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.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":n,keyword:e,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 e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\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/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.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:e,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/}),t.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 r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.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:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(S,P){return S.replace(/<<(\d+)>>/g,function($,Y){return"(?:"+P[+Y]+")"})}function r(S,P,$){return RegExp(e(S,P),"")}function n(S,P){for(var $=0;$<P;$++)S=S.replace(/<<self>>/g,function(){return"(?:"+S+")"});return S.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(S){return"\\b(?:"+S.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=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[y,p]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),D=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),C=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,m,h]),x={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:x},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,C]),lookbehind:!0,inside:x},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:x},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:x},{pattern:r(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:x},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,y]),inside:x}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[y]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:x},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:x,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:x,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,p]),inside:{function:r(/^<<0>>/.source,[y]),generic:{pattern:RegExp(p),alias:"class-name",inside:x}}},"type-list":{pattern:r(/\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,g,y,C,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var H=T+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,et=n(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),st=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[et,q]),ut=n(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),at=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ut,q]);function k(S,P){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[st]),lookbehind:!0,greedy:!0,inside:k(st,et)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[at]),lookbehind:!0,greedy:!0,inside:k(at,ut)}]})}(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(t){t.languages.ruby=t.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 e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.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:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],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:t.languages.ruby}}}),t.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)/}),t.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:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{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:e}},{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:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.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]*)?(?:\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(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\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",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+e),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("(\\{)"+e),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})/};t.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;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.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}},r.inside=t.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=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.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(n),inside:t.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(n),alias:"important",inside:t.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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<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:r(/!?\[(?:(?!\])<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(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var y=v.content[1],g=v.content[3];if(y&&g&&y.type==="code-language"&&g.type==="code-block"&&typeof y.content=="string"){var m=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var y=t.languages[c];if(y)l.content=t.highlight(function(m){var h=m.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var D;return(w=w.toLowerCase())[0]==="#"?(D=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(D)):u[w]||b})}(l.content),y,c);else if(c&&c!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,t.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(g);m&&(m.innerHTML=t.highlight(m.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.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(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var Myt=["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 bz(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,r){return e+bz(r)},0)}var xg,zyt=Nt.String,ri=function(t){if(Tx(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zyt(t)},wz=function(){var t=Yn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Ix=Nt.RegExp,D3=ar(function(){var t=Ix("a","y");return t.lastIndex=2,t.exec("abcd")!=null});D3||ar(function(){return!Ix("a","y").sticky});var Ez={BROKEN_CARET:D3||ar(function(){var t=Ix("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),UNSUPPORTED_Y:D3},$yt=Fo?Object.defineProperties:function(t,e){Yn(t);for(var r,n=wm(e),o=rv(e),i=o.length,a=0;i>a;)bm.f(t,r=o[a++],n[r]);return t},Hyt=ih("document","documentElement"),Dz=uz("IE_PROTO"),Rw=function(){},xz=function(t){return"<script>"+t+"<\/script>"},C_=function(t){t.write(xz("")),t.close();var e=t.parentWindow.Object;return t=null,e},nv=function(){try{xg=new ActiveXObject("htmlfile")}catch{}var t,e;nv=typeof document<"u"?document.domain&&xg?C_(xg):((e=Ax("iframe")).style.display="none",Hyt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(xz("document.F=Object")),t.close(),t.F):C_(xg);for(var r=dy.length;r--;)delete nv.prototype[dy[r]];return nv()};Fx[Dz]=!0;var S_,Mw,Vyt=Object.create||function(t,e){var r;return t!==null?(Rw.prototype=Yn(t),r=new Rw,Rw.prototype=null,r[Dz]=t):r=nv(),e===void 0?r:$yt(r,e)},Uyt=Nt.RegExp,Wyt=ar(function(){var t=Uyt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Gyt=Nt.RegExp,qyt=ar(function(){var t=Gyt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Kyt=w3.get,Yyt=Dx("native-string-replace",String.prototype.replace),py=RegExp.prototype.exec,x3=py,Xyt=Jt("".charAt),Zyt=Jt("".indexOf),Jyt=Jt("".replace),zw=Jt("".slice),$w=(Mw=/b*/g,or(py,S_=/a/,"a"),or(py,Mw,"a"),S_.lastIndex!==0||Mw.lastIndex!==0),A_=Ez.BROKEN_CARET,Hw=/()??/.exec("")[1]!==void 0;($w||Hw||A_||Wyt||qyt)&&(x3=function(t){var e,r,n,o,i,a,u,s=this,l=Kyt(s),c=ri(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=or(x3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=A_&&s.sticky,v=or(wz,s),y=s.source,g=0,m=c;if(p&&(v=Jyt(v,"y",""),Zyt(v,"g")===-1&&(v+="g"),m=zw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Xyt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),r=new RegExp("^(?:"+y+")",v)),Hw&&(r=new RegExp("^"+y+"$(?!\\s)",v)),$w&&(n=s.lastIndex),o=or(py,p?r:s,m),p?o?(o.input=zw(o.input,g),o[0]=zw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$w&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Hw&&o&&o.length>1&&or(Yyt,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Vyt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var vp=x3;Em({target:"RegExp",proto:!0,forced:/./.exec!==vp},{exec:vp});var Lx=Function.prototype,O_=Lx.apply,Qyt=Lx.bind,k_=Lx.call,tmt=typeof Reflect=="object"&&Reflect.apply||(Qyt?k_.bind(O_):function(){return k_.apply(O_,arguments)}),emt=Ta("species"),Vw=RegExp.prototype,rmt=Ta("match"),nmt=Nt.TypeError,omt=Ta("species"),imt=Jt("".charAt),B_=Jt("".charCodeAt),amt=Jt("".slice),umt=function(t){return function(e,r){var n,o,i=ri(Gl(e)),a=Px(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=B_(i,a))<55296||n>56319||a+1===u||(o=B_(i,a+1))<56320||o>57343?t?imt(i,a):n:t?amt(i,a,a+2):o-56320+(n-55296<<10)+65536}},smt=umt(!0),lmt=function(t,e,r){return e+(r?smt(t,e).length:1)},cmt=Nt.Array,fmt=Math.max,F_=function(t,e,r){for(var n,o,i,a,u=jx(t),s=E3(e,u),l=E3(r===void 0?u:r,u),c=cmt(fmt(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=t[s],(a=Ox(o))in n?bm.f(n,a,kx(0,i)):n[a]=i;return c.length=f,c},dmt=Nt.TypeError,T_=function(t,e){var r=t.exec;if(Pr(r)){var n=or(r,t,e);return n!==null&&Yn(n),n}if(fa(t)==="RegExp")return or(vp,t,e);throw dmt("RegExp#exec called on incompatible receiver")},Ws=Ez.UNSUPPORTED_Y,pmt=Math.min,Cz=[].push,hmt=Jt(/./.exec),Gs=Jt(Cz),Rf=Jt("".slice);(function(t,e,r,n){var o=Ta(t),i=!ar(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ar(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[emt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Jt(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var y,g,m=ri(Gl(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[m];if(!Jo(y=p)||!((g=y[rmt])!==void 0?g:fa(y)=="RegExp"))return or(c,m,p,h);for(var b,w,D,C=[],x=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,T=new RegExp(p.source,x+"g");(b=or(vp,T,m))&&!((w=T.lastIndex)>O&&(Gs(C,Rf(m,O,b.index)),b.length>1&&b.index<m.length&&tmt(Cz,C,F_(b,1)),D=b[0].length,O=w,C.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&hmt(T,"")||Gs(C,""):Gs(C,Rf(m,O)),C.length>h?F_(C,0,h):C}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:or(c,this,p,v)}:c,[function(p,v){var y=Gl(this),g=p==null?void 0:az(p,l);return g?or(g,p,y,v):or(d,ri(y),p,v)},function(p,v){var y=Yn(this),g=ri(p),m=f(d,y,g,v,d!==c);if(m.done)return m.value;var h=function(K,U){var W,q=Yn(K).constructor;return q===void 0||(W=Yn(q)[omt])==null?U:function(et){if(pz(et))return et;throw nmt(oz(et)+" is not a constructor")}(W)}(y,RegExp),b=y.unicode,w=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(Ws?"g":"y"),D=new h(Ws?"^(?:"+y.source+")":y,w),C=v===void 0?4294967295:v>>>0;if(C===0)return[];if(g.length===0)return T_(D,g)===null?[g]:[];for(var x=0,O=0,T=[];O<g.length;){D.lastIndex=Ws?0:O;var R,H=T_(D,Ws?Rf(g,O):g);if(H===null||(R=pmt(cz(D.lastIndex+(Ws?O:0)),g.length))===x)O=lmt(g,O,b);else{if(Gs(T,Rf(g,x,O)),T.length===C)return T;for(var M=1;M<=H.length-1;M++)if(Gs(T,H[M]),T.length===C)return T;O=x=R}}return Gs(T,Rf(g,x)),T}]}(o,""[t],function(l,c,f,d,p){var v=Jt(l),y=c.exec;return y===vp||y===Vw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});gp(String.prototype,t,s[0]),gp(Vw,o,s[1])}n&&ql(Vw[o],"sham",!0)})("split",0,!!ar(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Ws),Em({global:!0},{globalThis:Nt}),Sn&&(B.fn.attr=Sn);var gmt=lz.PROPER,C3=RegExp.prototype,Sz=C3.toString,vmt=Jt(wz),ymt=ar(function(){return Sz.call({source:"a",flags:"b"})!="/a/b"}),mmt=gmt&&Sz.name!="toString";(ymt||mmt)&&gp(RegExp.prototype,"toString",function(){var t=Yn(this),e=ri(t.source),r=t.flags;return"/"+e+"/"+ri(r===void 0&&nz(C3,t)&&!("flags"in C3)?vmt(t):r)},{unsafe:!0});var bmt=function(){function t(){this.title=Q("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 t.prototype.getOptions=function(e){var r=[],n=e.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;r.push({text:u,value:s})});var i=this.getValue(e);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var r=this.getSelectCodeElem(e);if(r==null||!ct.isElement(r))return"";var n=r.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===n})?n:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,r){if(this.getSelectCodeElem(e)!=null){var n={language:r.toString()};N.setNodes(e,n,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var r=A.getSelectedNodeByType(e,"code");if(r==null)return null;var n=A.getParentNode(e,r);return ct.isElement(n)?n.type!=="pre"?null:r:null},t}(),wmt={renderStyle:function(t,e){var r=t,n=e,o="";return Myt.forEach(function(i){r[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(n,o="token "+o),n},parseStyleHtml:function(t,e,r){var n=B(t);if(!ct.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new bmt},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(t,e){var r=t.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+e+"</code>"}}]},Emt=/"/g,Dmt=Jt("".replace);Em({target:"String",proto:!0,forced:ar(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,r=ri(Gl(this)),n="<a",(n+=' name="'+Dmt(ri(e),Emt,"&quot;")+'"')+">"+r+"</a>";var e,r,n}});var Az=function(t){var e,r,n,o=function(m,h){var b=typeof Symbol=="function"&&m[Symbol.iterator];if(!b)return m;var w,D,C=b.call(m),x=[];try{for(;(h===void 0||h-- >0)&&!(w=C.next()).done;)x.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=C.return)&&b.call(C)}finally{if(D)throw D.error}}return x}(t,2),i=o[0],a=o[1],u=[],s=function(m){if(!ot.isText(m))return null;var h=A.getParentNode(null,m);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(m,h){if(!h)return[];var b=x_.languages[h];return b?x_.tokenize(m.text,b):[]}(i,c),d=0;try{for(var p=function(m){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&m[h],w=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&w>=m.length&&(m=void 0),{value:m&&m[w++],done:!m}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=p.next();!v.done;v=p.next()){var y=v.value,g=d+bz(y);typeof y!="string"&&u.push(((n={})[y.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:g},n)),d=g}}catch(m){e={error:m}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(e)throw e.error}}return u},Se=function(){return Se=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Se.apply(this,arguments)},Xe=function(){function t(){throw new Error(`不能实例化
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Se(Se({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Se(Se({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Se(Se({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Se(Se({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=mn(mn({},u),o||{});if(Rd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Rd[i]=a,function(l,c){c!=null&&(Yj[l]=c)}(i,s)})(e,r)},t.registerRenderElem=function(e){(function(r){var n=r.type,o=r.renderElem;wN[n||""]=o})(e)},t.registerRenderStyle=function(e){(function(r){bE.push(r)})(e)},t.registerElemToHtml=function(e){(function(r){var n=r.type,o=r.elemToHtml;Xj[n||""]=o})(e)},t.registerStyleToHtml=function(e){(function(r){pE.push(r)})(e)},t.registerPreParseHtml=function(e){(function(r){hN.push(r)})(e)},t.registerParseElemHtml=function(e){(function(r){var n=r.selector,o=r.parseElemHtml;t0[n]=o})(e)},t.registerParseStyleHtml=function(e){(function(r){K5.push(r)})(e)},t.registerModule=function(e){tu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function tu(t){var e=t.menus,r=t.renderElems,n=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return Xe.registerMenu(c)}),r&&r.forEach(function(c){return Xe.registerRenderElem(c)}),n&&Xe.registerRenderStyle(n),o&&o.forEach(function(c){return Xe.registerElemToHtml(c)}),i&&Xe.registerStyleToHtml(i),a&&a.forEach(function(c){return Xe.registerPreParseHtml(c)}),u&&u.forEach(function(c){return Xe.registerParseElemHtml(c)}),s&&Xe.registerParseStyleHtml(s),l&&Xe.registerPlugin(l)}kat.forEach(function(t){return tu(t)}),tu(ilt),tu(Tft),tu($ht),tu(_0t),tu(wmt);var Oz='<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>',kz={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"]}},xmt={hoverbarKeys:Se(Se({},kz),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Xe.setEditorConfig(Se(Se({},xmt),{decorate:Az}));var Cmt={hoverbarKeys:kz};Xe.setSimpleEditorConfig(Se(Se({},Cmt),{decorate:Az}));var Smt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Q("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:Q("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:Q("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:Q("editor.image"),iconSvg:Oz,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Q("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"]};Xe.setToolbarConfig(Smt);var Amt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Q("editor.image"),iconSvg:Oz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Omt(t){t===void 0&&(t={});var e=t.selector,r=e===void 0?"":e,n=t.content,o=n===void 0?[]:n,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?Xe.simpleEditorConfig:Xe.editorConfig,c=Se(Se({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return kQ({selector:r,config:Se(Se(Se({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Xe.plugins})}function kmt(t){var e=t.selector,r=t.editor,n=t.config,o=n===void 0?{}:n,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?Xe.simpleToolbarConfig:Xe.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(g,m){return yN(g,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=mn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),y=new AN(f,v);return M5.set(y,l),Ly.set(l,y),y}(r,{selector:e,config:Se(Se({},u),o)});return s}Xe.setSimpleToolbarConfig(Amt);var Bmt={};exports.Boot=Xe;exports.DomEditor=A;exports.SlateEditor=E;exports.SlateElement=ct;exports.SlateLocation=NW;exports.SlateNode=J;exports.SlatePath=j;exports.SlatePoint=kt;exports.SlateRange=L;exports.SlateText=ot;exports.SlateTransforms=N;exports.Toolbar=AN;exports.createEditor=Omt;exports.createToolbar=kmt;exports.createUploader=oD;exports.default=Bmt;exports.genModalButtonElems=is;exports.genModalInputElems=Ur;exports.genModalTextareaElems=DQ;exports.i18nAddResources=_r;exports.i18nChangeLanguage=JQ;exports.i18nGetResources=QQ;exports.t=Q;
//# sourceMappingURL=index.esm-BAyqWxyn.cjs.map