123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- import{A as xo,U as d$,c as rd}from"./index-61855aff.js";import{d as gP,a as kn,s as vP,o as U1,w as p$,j as h$,H as g$,X as Pl,Y as Mp,k as v$,m as Zt,u as Du,c as m$,W as ho,a2 as y$,Z as we,$ as vo,a4 as Z0,a3 as b$,E as Nc,a0 as w$,a1 as E$}from"./vue-7f5e2b1b.js";import{d as D$}from"./index-fb11d5d6.js";import{u as C$}from"./vue-router-e2815956.js";import{_ as x$}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-1c2c049f.js";/* empty css */import"./InboxOutlined-80e159f8.js";/* empty css */import"./routeTabs-00a65ebb.js";var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ps(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ci,J0,zh=function(t){return t&&t.Math==Math&&t},kt=zh(typeof globalThis=="object"&&globalThis)||zh(typeof window=="object"&&window)||zh(typeof self=="object"&&self)||zh(typeof le=="object"&&le)||function(){return this}()||Function("return this")(),c5=Function.prototype,Sx=c5.apply,A$=c5.bind,Ax=c5.call,mP=typeof Reflect=="object"&&Reflect.apply||(A$?Ax.bind(Sx):function(){return Ax.apply(Sx,arguments)}),yP=Function.prototype,O4=yP.bind,k4=yP.call,O$=O4&&O4.bind(k4),ve=O4?function(t){return t&&O$(k4,t)}:function(t){return t&&function(){return k4.apply(t,arguments)}},cn=function(t){return typeof t=="function"},Yn=function(t){try{return!!t()}catch{return!0}},Wn=!Yn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ic=Function.prototype.call,Vn=Ic.bind?Ic.bind(Ic):function(){return Ic.apply(Ic,arguments)},Ox={}.propertyIsEnumerable,kx=Object.getOwnPropertyDescriptor,k$=kx&&!Ox.call({1:2},1)?function(t){var e=kx(this,t);return!!e&&e.enumerable}:Ox,f5={f:k$},Jr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B$=ve({}.toString),_$=ve("".slice),ku=function(t){return _$(B$(t),8,-1)},ty=kt.Object,F$=ve("".split),bP=Yn(function(){return!ty("z").propertyIsEnumerable(0)})?function(t){return ku(t)=="String"?F$(t,""):ty(t)}:ty,T$=kt.TypeError,d5=function(t){if(t==null)throw T$("Can't call method on "+t);return t},Mo=function(t){return bP(d5(t))},rr=function(t){return typeof t=="object"?t!==null:cn(t)},nr={},Bx=function(t){return cn(t)?t:void 0},fc=function(t,e){return arguments.length<2?Bx(nr[t])||Bx(kt[t]):nr[t]&&nr[t][e]||kt[t]&&kt[t][e]},$d=ve({}.isPrototypeOf),ey=fc("navigator","userAgent")||"",_x=kt.process,Fx=kt.Deno,Tx=_x&&_x.versions||Fx&&Fx.version,Px=Tx&&Tx.v8;Px&&(J0=(Ci=Px.split("."))[0]>0&&Ci[0]<4?1:+(Ci[0]+Ci[1])),!J0&&ey&&(!(Ci=ey.match(/Edge\/(\d+)/))||Ci[1]>=74)&&(Ci=ey.match(/Chrome\/(\d+)/))&&(J0=+Ci[1]);var $h,Tg=J0,yo=!!Object.getOwnPropertySymbols&&!Yn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Tg&&Tg<41}),p5=yo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",P$=kt.Object,wl=p5?function(t){return typeof t=="symbol"}:function(t){var e=fc("Symbol");return cn(e)&&$d(e.prototype,P$(t))},j$=kt.String,B4=function(t){try{return j$(t)}catch{return"Object"}},N$=kt.TypeError,h5=function(t){if(cn(t))return t;throw N$(B4(t)+" is not a function")},Pg=function(t,e){var n=t[e];return n==null?void 0:h5(n)},I$=kt.TypeError,L$=Object.defineProperty,aa=kt["__core-js_shared__"]||function(t,e){try{L$(kt,t,{value:e,configurable:!0,writable:!0})}catch{kt[t]=e}return e}("__core-js_shared__",{}),hs=ps(function(t){(t.exports=function(e,n){return aa[e]||(aa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),R$=kt.Object,zp=function(t){return R$(d5(t))},M$=ve({}.hasOwnProperty),Vt=Object.hasOwn||function(t,e){return M$(zp(t),e)},z$=0,$$=Math.random(),H$=ve(1 .toString),jg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+H$(++z$+$$,36)},Lc=hs("wks"),Bu=kt.Symbol,jx=Bu&&Bu.for,V$=p5?Bu:Bu&&Bu.withoutSetter||jg,Tn=function(t){if(!Vt(Lc,t)||!yo&&typeof Lc[t]!="string"){var e="Symbol."+t;yo&&Vt(Bu,t)?Lc[t]=Bu[t]:Lc[t]=p5&&jx?jx(e):V$(e)}return Lc[t]},U$=kt.TypeError,W$=Tn("toPrimitive"),q$=function(t,e){if(!rr(t)||wl(t))return t;var n,r=Pg(t,W$);if(r){if(e===void 0&&(e="default"),n=Vn(r,t,e),!rr(n)||wl(n))return n;throw U$("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&cn(a=o.toString)&&!rr(u=Vn(a,o))||cn(a=o.valueOf)&&!rr(u=Vn(a,o))||i!=="string"&&cn(a=o.toString)&&!rr(u=Vn(a,o)))return u;throw I$("Can't convert object to primitive value")}(t,e)},dc=function(t){var e=q$(t,"string");return wl(e)?e:e+""},_4=kt.document,G$=rr(_4)&&rr(_4.createElement),wP=function(t){return G$?_4.createElement(t):{}},EP=!Wn&&!Yn(function(){return Object.defineProperty(wP("div"),"a",{get:function(){return 7}}).a!=7}),Nx=Object.getOwnPropertyDescriptor,K$=Wn?Nx:function(t,e){if(t=Mo(t),e=dc(e),EP)try{return Nx(t,e)}catch{}if(Vt(t,e))return Jr(!Vn(f5.f,t,e),t[e])},W1={f:K$},Y$=/#|\.prototype\./,$p=function(t,e){var n=Z$[X$(t)];return n==Q$||n!=J$&&(cn(e)?Yn(e):!!e)},X$=$p.normalize=function(t){return String(t).replace(Y$,".").toLowerCase()},Z$=$p.data={},J$=$p.NATIVE="N",Q$=$p.POLYFILL="P",tH=$p,Ix=ve(ve.bind),g5=function(t,e){return h5(t),e===void 0?t:Ix?Ix(t,e):function(){return t.apply(e,arguments)}},eH=kt.String,nH=kt.TypeError,lr=function(t){if(rr(t))return t;throw nH(eH(t)+" is not an object")},rH=kt.TypeError,Lx=Object.defineProperty,oH=Wn?Lx:function(t,e,n){if(lr(t),e=dc(e),lr(n),EP)try{return Lx(t,e,n)}catch{}if("get"in n||"set"in n)throw rH("Accessors not supported");return"value"in n&&(t[e]=n.value),t},za={f:oH},Nn=Wn?function(t,e,n){return za.f(t,e,Jr(1,n))}:function(t,e,n){return t[e]=n,t},iH=W1.f,aH=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return mP(t,this,arguments)};return e.prototype=t.prototype,e},Qo=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,v=f?kt:p?kt[c]:(kt[c]||{}).prototype,g=f?nr:nr[c]||Nn(nr,c,{})[c],m=g.prototype;for(o in e)n=!tH(f?o:c+(p?".":"#")+o,t.forced)&&v&&Vt(v,o),a=g[o],n&&(u=t.noTargetGet?(l=iH(v,o))&&l.value:v[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?g5(i,kt):t.wrap&&n?aH(i):d&&cn(i)?ve(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Nn(s,"sham",!0),Nn(g,o,s),d&&(Vt(nr,r=c+"Prototype")||Nn(nr,r,{}),Nn(nr[r],o,i),t.real&&m&&!m[o]&&Nn(m,o,i)))},Rx=hs("keys"),q1=function(t){return Rx[t]||(Rx[t]=jg(t))},uH=!Yn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Mx=q1("IE_PROTO"),F4=kt.Object,sH=F4.prototype,Ng=uH?F4.getPrototypeOf:function(t){var e=zp(t);if(Vt(e,Mx))return e[Mx];var n=e.constructor;return cn(n)&&e instanceof n?n.prototype:e instanceof F4?sH:null},lH=kt.String,cH=kt.TypeError,Ig=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return lr(r),function(i){if(typeof i=="object"||cn(i))return i;throw cH("Can't set "+lH(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),fH=Math.ceil,dH=Math.floor,v5=function(t){var e=+t;return e!=e||e===0?0:(e>0?dH:fH)(e)},pH=Math.max,hH=Math.min,T4=function(t,e){var n=v5(t);return n<0?pH(n+e,0):hH(n,e)},gH=Math.min,Hp=function(t){return(e=t.length)>0?gH(v5(e),9007199254740991):0;var e},zx=function(t){return function(e,n,r){var o,i=Mo(e),a=Hp(i),u=T4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},vH={includes:zx(!0),indexOf:zx(!1)},Vp={},mH=vH.indexOf,$x=ve([].push),DP=function(t,e){var n,r=Mo(t),o=0,i=[];for(n in r)!Vt(Vp,n)&&Vt(r,n)&&$x(i,n);for(;e.length>o;)Vt(r,n=e[o++])&&(~mH(i,n)||$x(i,n));return i},Lg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yH=Lg.concat("length","prototype"),bH=Object.getOwnPropertyNames||function(t){return DP(t,yH)},m5={f:bH},Q0={f:Object.getOwnPropertySymbols},wH=ve([].concat),EH=fc("Reflect","ownKeys")||function(t){var e=m5.f(lr(t)),n=Q0.f;return n?wH(e,n(t)):e},y5=Object.keys||function(t){return DP(t,Lg)},DH=Wn?Object.defineProperties:function(t,e){lr(t);for(var n,r=Mo(e),o=y5(e),i=o.length,a=0;i>a;)za.f(t,n=o[a++],r[n]);return t},CH=fc("document","documentElement"),CP=q1("IE_PROTO"),ny=function(){},xP=function(t){return"<script>"+t+"<\/script>"},Hx=function(t){t.write(xP("")),t.close();var e=t.parentWindow.Object;return t=null,e},tg=function(){try{$h=new ActiveXObject("htmlfile")}catch{}var t,e;tg=typeof document<"u"?document.domain&&$h?Hx($h):((e=wP("iframe")).style.display="none",CH.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(xP("document.F=Object")),t.close(),t.F):Hx($h);for(var n=Lg.length;n--;)delete tg.prototype[Lg[n]];return tg()};Vp[CP]=!0;var ci=Object.create||function(t,e){var n;return t!==null?(ny.prototype=lr(t),n=new ny,ny.prototype=null,n[CP]=t):n=tg(),e===void 0?n:DH(n,e)},P4=function(t,e,n){var r=dc(e);r in t?za.f(t,r,Jr(0,n)):t[r]=n},xH=kt.Array,SH=Math.max,SP=function(t,e,n){for(var r=Hp(t),o=T4(e,r),i=T4(n===void 0?r:n,r),a=xH(SH(i-o,0)),u=0;o<i;o++,u++)P4(a,u,t[o]);return a.length=u,a},AH=ve("".replace),OH=ve("".split),kH=ve([].join),j4=String(Error("zxcasd").stack),AP=/\n\s*at [^:]*:[^\n]*/,BH=AP.test(j4),_H=/@[^\n]*\n/.test(j4)&&!/zxcasd/.test(j4),FH=function(t,e){if(typeof t!="string")return t;if(BH)for(;e--;)t=AH(t,AP,"");else if(_H)return kH(SP(OH(t,`
- `),e),`
- `);return t},TH=function(t,e){rr(e)&&"cause"in e&&Nn(t,"cause",e.cause)},ai={},PH=Tn("iterator"),jH=Array.prototype,OP={};OP[Tn("toStringTag")]="z";var b5=String(OP)==="[object z]",NH=Tn("toStringTag"),IH=kt.Object,LH=ku(function(){return arguments}())=="Arguments",Up=b5?ku:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=IH(t),NH))=="string"?n:LH?ku(e):(r=ku(e))=="Object"&&cn(e.callee)?"Arguments":r},RH=Tn("iterator"),Vx=function(t){if(t!=null)return Pg(t,RH)||Pg(t,"@@iterator")||ai[Up(t)]},MH=kt.TypeError,Ux=function(t,e,n){var r,o;lr(t);try{if(!(r=Pg(t,"return"))){if(e==="throw")throw n;return n}r=Vn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return lr(r),n},zH=kt.TypeError,eg=function(t,e){this.stopped=t,this.result=e},Wx=eg.prototype,$H=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=g5(e,c),g=function(y){return r&&Ux(r,"normal",y),new eg(!0,y)},m=function(y){return f?(lr(y),d?v(y[0],y[1],g):v(y[0],y[1])):d?v(y,g):v(y)};if(p)r=t;else{if(!(o=Vx(t)))throw zH(B4(t)+" is not iterable");if(function(y){return y!==void 0&&(ai.Array===y||jH[PH]===y)}(o)){for(i=0,a=Hp(t);a>i;i++)if((u=m(t[i]))&&$d(Wx,u))return u;return new eg(!1)}r=function(y,h){var b=arguments.length<2?Vx(y):h;if(h5(b))return lr(Vn(b,y));throw MH(B4(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=Vn(s,r)).done;){try{u=m(l.value)}catch(y){Ux(r,"throw",y)}if(typeof u=="object"&&u&&$d(Wx,u))return u}return new eg(!1)},HH=kt.String,Hd=function(t){if(Up(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return HH(t)},VH=function(t,e){return t===void 0?arguments.length<2?"":e:Hd(t)},UH=!Yn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Jr(1,7)),t.stack!==7)}),WH=Tn("toStringTag"),Rg=kt.Error,qH=[].push,Vd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=$d(ry,this);Ig?n=Ig(new Rg(void 0),o?Ng(this):ry):(n=o?this:ci(ry),Nn(n,WH,"Error")),Nn(n,"message",VH(e,"")),UH&&Nn(n,"stack",FH(n.stack,1)),TH(n,r);var i=[];return $H(t,qH,{that:i}),Nn(n,"errors",i),n};Ig?Ig(Vd,Rg):function(t,e){for(var n=EH(e),r=za.f,o=W1.f,i=0;i<n.length;i++){var a=n[i];Vt(t,a)||r(t,a,o(e,a))}}(Vd,Rg);var ry=Vd.prototype=ci(Rg.prototype,{constructor:Jr(1,Vd),message:Jr(1,""),name:Jr(1,"AggregateError")});Qo({global:!0},{AggregateError:Vd});var GH=ve(Function.toString);cn(aa.inspectSource)||(aa.inspectSource=function(t){return GH(t)});var Mg,hd,zg,kP=aa.inspectSource,qx=kt.WeakMap,KH=cn(qx)&&/native code/.test(kP(qx)),N4=kt.TypeError,YH=kt.WeakMap;if(KH||aa.state){var Ja=aa.state||(aa.state=new YH),XH=ve(Ja.get),Gx=ve(Ja.has),ZH=ve(Ja.set);Mg=function(t,e){if(Gx(Ja,t))throw new N4("Object already initialized");return e.facade=t,ZH(Ja,t,e),e},hd=function(t){return XH(Ja,t)||{}},zg=function(t){return Gx(Ja,t)}}else{var _s=q1("state");Vp[_s]=!0,Mg=function(t,e){if(Vt(t,_s))throw new N4("Object already initialized");return e.facade=t,Nn(t,_s,e),e},hd=function(t){return Vt(t,_s)?t[_s]:{}},zg=function(t){return Vt(t,_s)}}var ta,Kx,Yx,pc={set:Mg,get:hd,has:zg,enforce:function(t){return zg(t)?hd(t):Mg(t,{})},getterFor:function(t){return function(e){var n;if(!rr(e)||(n=hd(e)).type!==t)throw N4("Incompatible receiver, "+t+" required");return n}}},BP=Function.prototype,JH=Wn&&Object.getOwnPropertyDescriptor,oy=Vt(BP,"name"),QH={EXISTS:oy,PROPER:oy&&function(){}.name==="something",CONFIGURABLE:oy&&(!Wn||Wn&&JH(BP,"name").configurable)},jl=function(t,e,n,r){r&&r.enumerable?t[e]=n:Nn(t,e,n)},I4=Tn("iterator"),_P=!1;[].keys&&("next"in(Yx=[].keys())?(Kx=Ng(Ng(Yx)))!==Object.prototype&&(ta=Kx):_P=!0);var tV=ta==null||Yn(function(){var t={};return ta[I4].call(t)!==t});ta=tV?{}:ci(ta),cn(ta[I4])||jl(ta,I4,function(){return this});var FP={IteratorPrototype:ta,BUGGY_SAFARI_ITERATORS:_P},eV=b5?{}.toString:function(){return"[object "+Up(this)+"]"},nV=za.f,Xx=Tn("toStringTag"),$g=function(t,e,n,r){if(t){var o=n?t:t.prototype;Vt(o,Xx)||nV(o,Xx,{configurable:!0,value:e}),r&&!b5&&Nn(o,"toString",eV)}},rV=FP.IteratorPrototype,oV=function(){return this},iV=QH.PROPER,Hh=FP.BUGGY_SAFARI_ITERATORS,iy=Tn("iterator"),aV=function(){return this},TP=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=ci(rV,{next:Jr(+!w,b)}),$g(y,D,!1,!0),ai[D]=oV})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!Hh&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[iy]||d["@@iterator"]||o&&d[o],g=!Hh&&v||c(o),m=e=="Array"&&d.entries||v;if(m&&(u=Ng(m.call(new t)))!==Object.prototype&&u.next&&($g(u,f,!0,!0),ai[f]=aV),iV&&o=="values"&&v&&v.name!=="values"&&(p=!0,g=function(){return Vn(v,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Hh||p||!(l in d))&&jl(d,l,s[l]);else Qo({target:e,proto:!0,forced:Hh||p},s);return a&&d[iy]!==g&&jl(d,iy,g,{name:o}),ai[e]=g,s},uV=pc.set,sV=pc.getterFor("Array Iterator");TP(Array,"Array",function(t,e){uV(this,{type:"Array Iterator",target:Mo(t),index:0,kind:e})},function(){var t=sV(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),ai.Arguments=ai.Array;var lV=ve("".charAt),Zx=ve("".charCodeAt),cV=ve("".slice),Jx=function(t){return function(e,n){var r,o,i=Hd(d5(e)),a=v5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Zx(i,a))<55296||r>56319||a+1===u||(o=Zx(i,a+1))<56320||o>57343?t?lV(i,a):r:t?cV(i,a,a+2):o-56320+(r-55296<<10)+65536}},fV={codeAt:Jx(!1),charAt:Jx(!0)}.charAt,dV=pc.set,pV=pc.getterFor("String Iterator");TP(String,"String",function(t){dV(this,{type:"String Iterator",string:Hd(t),index:0})},function(){var t,e=pV(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=fV(n,r),e.index+=t.length,{value:t,done:!1})});var hV=nr.AggregateError,Qx=Tn("toStringTag");for(var ay 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 tS=kt[ay],uy=tS&&tS.prototype;uy&&Up(uy)!==Qx&&Nn(uy,Qx,ay),ai[ay]=ai.Array}var xi,ng,gV=hV,Vh=function(t){return t&&t.Math==Math&&t},Et=Vh(typeof globalThis=="object"&&globalThis)||Vh(typeof window=="object"&&window)||Vh(typeof self=="object"&&self)||Vh(typeof le=="object"&&le)||function(){return this}()||Function("return this")(),dn=function(t){try{return!!t()}catch{return!0}},To=!dn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Rc=Function.prototype.call,ln=Rc.bind?Rc.bind(Rc):function(){return Rc.apply(Rc,arguments)},eS={}.propertyIsEnumerable,nS=Object.getOwnPropertyDescriptor,vV=nS&&!eS.call({1:2},1)?function(t){var e=nS(this,t);return!!e&&e.enumerable}:eS,mV={f:vV},ua=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},PP=Function.prototype,L4=PP.bind,R4=PP.call,yV=L4&&L4.bind(R4),ae=L4?function(t){return t&&yV(R4,t)}:function(t){return t&&function(){return R4.apply(t,arguments)}},bV=ae({}.toString),wV=ae("".slice),_u=function(t){return wV(bV(t),8,-1)},sy=Et.Object,EV=ae("".split),jP=dn(function(){return!sy("z").propertyIsEnumerable(0)})?function(t){return _u(t)=="String"?EV(t,""):sy(t)}:sy,DV=Et.TypeError,G1=function(t){if(t==null)throw DV("Can't call method on "+t);return t},hc=function(t){return jP(G1(t))},Ke=function(t){return typeof t=="function"},qr=function(t){return typeof t=="object"?t!==null:Ke(t)},CV=function(t){return Ke(t)?t:void 0},Wp=function(t,e){return arguments.length<2?CV(Et[t]):Et[t]&&Et[t][e]},Hg=ae({}.isPrototypeOf),ly=Wp("navigator","userAgent")||"",rS=Et.process,oS=Et.Deno,iS=rS&&rS.versions||oS&&oS.version,aS=iS&&iS.v8;aS&&(ng=(xi=aS.split("."))[0]>0&&xi[0]<4?1:+(xi[0]+xi[1])),!ng&&ly&&(!(xi=ly.match(/Edge\/(\d+)/))||xi[1]>=74)&&(xi=ly.match(/Chrome\/(\d+)/))&&(ng=+xi[1]);var uS=ng,M4=!!Object.getOwnPropertySymbols&&!dn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&uS&&uS<41}),w5=M4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",xV=Et.Object,z4=w5?function(t){return typeof t=="symbol"}:function(t){var e=Wp("Symbol");return Ke(e)&&Hg(e.prototype,xV(t))},SV=Et.String,$4=function(t){try{return SV(t)}catch{return"Object"}},AV=Et.TypeError,E5=function(t){if(Ke(t))return t;throw AV($4(t)+" is not a function")},Ud=function(t,e){var n=t[e];return n==null?void 0:E5(n)},OV=Et.TypeError,kV=Object.defineProperty,D5=function(t,e){try{kV(Et,t,{value:e,configurable:!0,writable:!0})}catch{Et[t]=e}return e},sa=Et["__core-js_shared__"]||D5("__core-js_shared__",{}),C5=ps(function(t){(t.exports=function(e,n){return sa[e]||(sa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),BV=Et.Object,x5=function(t){return BV(G1(t))},_V=ae({}.hasOwnProperty),qn=Object.hasOwn||function(t,e){return _V(x5(t),e)},FV=0,TV=Math.random(),PV=ae(1 .toString),NP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+PV(++FV+TV,36)},Mc=C5("wks"),Fu=Et.Symbol,sS=Fu&&Fu.for,jV=w5?Fu:Fu&&Fu.withoutSetter||NP,Rn=function(t){if(!qn(Mc,t)||!M4&&typeof Mc[t]!="string"){var e="Symbol."+t;M4&&qn(Fu,t)?Mc[t]=Fu[t]:Mc[t]=w5&&sS?sS(e):jV(e)}return Mc[t]},NV=Et.TypeError,IV=Rn("toPrimitive"),LV=function(t,e){if(!qr(t)||z4(t))return t;var n,r=Ud(t,IV);if(r){if(e===void 0&&(e="default"),n=ln(r,t,e),!qr(n)||z4(n))return n;throw NV("Can't convert object to primitive value")}return e===void 0&&(e="number"),function(o,i){var a,u;if(i==="string"&&Ke(a=o.toString)&&!qr(u=ln(a,o))||Ke(a=o.valueOf)&&!qr(u=ln(a,o))||i!=="string"&&Ke(a=o.toString)&&!qr(u=ln(a,o)))return u;throw OV("Can't convert object to primitive value")}(t,e)},S5=function(t){var e=LV(t,"string");return z4(e)?e:e+""},H4=Et.document,RV=qr(H4)&&qr(H4.createElement),A5=function(t){return RV?H4.createElement(t):{}},IP=!To&&!dn(function(){return Object.defineProperty(A5("div"),"a",{get:function(){return 7}}).a!=7}),lS=Object.getOwnPropertyDescriptor,MV=To?lS:function(t,e){if(t=hc(t),e=S5(e),IP)try{return lS(t,e)}catch{}if(qn(t,e))return ua(!ln(mV.f,t,e),t[e])},O5={f:MV},zV=Et.String,$V=Et.TypeError,cr=function(t){if(qr(t))return t;throw $V(zV(t)+" is not an object")},HV=Et.TypeError,cS=Object.defineProperty,VV=To?cS:function(t,e,n){if(cr(t),e=S5(e),cr(n),IP)try{return cS(t,e,n)}catch{}if("get"in n||"set"in n)throw HV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},gc={f:VV},Ln=To?function(t,e,n){return gc.f(t,e,ua(1,n))}:function(t,e,n){return t[e]=n,t},UV=ae(Function.toString);Ke(sa.inspectSource)||(sa.inspectSource=function(t){return UV(t)});var Vg,gd,Ug,k5=sa.inspectSource,fS=Et.WeakMap,WV=Ke(fS)&&/native code/.test(k5(fS)),dS=C5("keys"),B5=function(t){return dS[t]||(dS[t]=NP(t))},_5={},V4=Et.TypeError,qV=Et.WeakMap;if(WV||sa.state){var Qa=sa.state||(sa.state=new qV),GV=ae(Qa.get),pS=ae(Qa.has),KV=ae(Qa.set);Vg=function(t,e){if(pS(Qa,t))throw new V4("Object already initialized");return e.facade=t,KV(Qa,t,e),e},gd=function(t){return GV(Qa,t)||{}},Ug=function(t){return pS(Qa,t)}}else{var Fs=B5("state");_5[Fs]=!0,Vg=function(t,e){if(qn(t,Fs))throw new V4("Object already initialized");return e.facade=t,Ln(t,Fs,e),e},gd=function(t){return qn(t,Fs)?t[Fs]:{}},Ug=function(t){return qn(t,Fs)}}var Ju={set:Vg,get:gd,has:Ug,enforce:function(t){return Ug(t)?gd(t):Vg(t,{})},getterFor:function(t){return function(e){var n;if(!qr(e)||(n=gd(e)).type!==t)throw V4("Incompatible receiver, "+t+" required");return n}}},LP=Function.prototype,YV=To&&Object.getOwnPropertyDescriptor,cy=qn(LP,"name"),F5={EXISTS:cy,PROPER:cy&&function(){}.name==="something",CONFIGURABLE:cy&&(!To||To&&YV(LP,"name").configurable)},la=ps(function(t){var e=F5.CONFIGURABLE,n=Ju.get,r=Ju.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Ke(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qn(u,"name")||e&&u.name!==d)&&Ln(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ln(i,a,u)):f?i[a]=u:D5(a,u)})(Function.prototype,"toString",function(){return Ke(this)&&n(this).source||k5(this)})}),XV=Math.ceil,ZV=Math.floor,T5=function(t){var e=+t;return e!=e||e===0?0:(e>0?ZV:XV)(e)},JV=Math.max,QV=Math.min,U4=function(t,e){var n=T5(t);return n<0?JV(n+e,0):QV(n,e)},tU=Math.min,RP=function(t){return t>0?tU(T5(t),9007199254740991):0},K1=function(t){return RP(t.length)},hS=function(t){return function(e,n,r){var o,i=hc(e),a=K1(i),u=U4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},eU={includes:hS(!0),indexOf:hS(!1)}.indexOf,gS=ae([].push),MP=function(t,e){var n,r=hc(t),o=0,i=[];for(n in r)!qn(_5,n)&&qn(r,n)&&gS(i,n);for(;e.length>o;)qn(r,n=e[o++])&&(~eU(i,n)||gS(i,n));return i},Wg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],nU=Wg.concat("length","prototype"),rU=Object.getOwnPropertyNames||function(t){return MP(t,nU)},oU={f:rU},iU={f:Object.getOwnPropertySymbols},aU=ae([].concat),uU=Wp("Reflect","ownKeys")||function(t){var e=oU.f(cr(t)),n=iU.f;return n?aU(e,n(t)):e},zP=function(t,e){for(var n=uU(e),r=gc.f,o=O5.f,i=0;i<n.length;i++){var a=n[i];qn(t,a)||r(t,a,o(e,a))}},sU=/#|\.prototype\./,qp=function(t,e){var n=cU[lU(t)];return n==dU||n!=fU&&(Ke(e)?dn(e):!!e)},lU=qp.normalize=function(t){return String(t).replace(sU,".").toLowerCase()},cU=qp.data={},fU=qp.NATIVE="N",dU=qp.POLYFILL="P",pU=qp,hU=O5.f,Gp=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Et:l?Et[u]||D5(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=hU(n,r))&&a.value:n[r],!pU(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;zP(i,o)}(t.sham||o&&o.sham)&&Ln(i,"sham",!0),la(n,r,i,t)}},$P={};$P[Rn("toStringTag")]="z";var Uh,P5=String($P)==="[object z]",gU=Rn("toStringTag"),vU=Et.Object,mU=_u(function(){return arguments}())=="Arguments",Y1=P5?_u:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=vU(t),gU))=="string"?n:mU?_u(e):(r=_u(e))=="Object"&&Ke(e.callee)?"Arguments":r},yU=Et.String,Tu=function(t){if(Y1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yU(t)},bU=function(){var t=cr(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},j5=Et.RegExp,N5=dn(function(){var t=j5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),wU=N5||dn(function(){return!j5("a","y").sticky}),EU=N5||dn(function(){var t=j5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),DU={BROKEN_CARET:EU,MISSED_STICKY:wU,UNSUPPORTED_Y:N5},CU=Object.keys||function(t){return MP(t,Wg)},xU=To?Object.defineProperties:function(t,e){cr(t);for(var n,r=hc(e),o=CU(e),i=o.length,a=0;i>a;)gc.f(t,n=o[a++],r[n]);return t},SU=Wp("document","documentElement"),HP=B5("IE_PROTO"),fy=function(){},VP=function(t){return"<script>"+t+"<\/script>"},vS=function(t){t.write(VP("")),t.close();var e=t.parentWindow.Object;return t=null,e},rg=function(){try{Uh=new ActiveXObject("htmlfile")}catch{}var t,e;rg=typeof document<"u"?document.domain&&Uh?vS(Uh):((e=A5("iframe")).style.display="none",SU.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(VP("document.F=Object")),t.close(),t.F):vS(Uh);for(var n=Wg.length;n--;)delete rg.prototype[Wg[n]];return rg()};_5[HP]=!0;var mS,dy,Kp=Object.create||function(t,e){var n;return t!==null?(fy.prototype=cr(t),n=new fy,fy.prototype=null,n[HP]=t):n=rg(),e===void 0?n:xU(n,e)},AU=Et.RegExp,OU=dn(function(){var t=AU(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),kU=Et.RegExp,BU=dn(function(){var t=kU("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),_U=Ju.get,FU=C5("native-string-replace",String.prototype.replace),qg=RegExp.prototype.exec,W4=qg,TU=ae("".charAt),PU=ae("".indexOf),jU=ae("".replace),py=ae("".slice),hy=(dy=/b*/g,ln(qg,mS=/a/,"a"),ln(qg,dy,"a"),mS.lastIndex!==0||dy.lastIndex!==0),yS=DU.BROKEN_CARET,gy=/()??/.exec("")[1]!==void 0;(hy||gy||yS||OU||BU)&&(W4=function(t){var e,n,r,o,i,a,u,s=this,l=_U(s),c=Tu(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ln(W4,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=yS&&s.sticky,v=ln(bU,s),g=s.source,m=0,y=c;if(d&&(v=jU(v,"y",""),PU(v,"g")===-1&&(v+="g"),y=py(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&TU(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),gy&&(n=new RegExp("^"+g+"$(?!\\s)",v)),hy&&(r=s.lastIndex),o=ln(qg,d?n:s,y),d?o?(o.input=py(o.input,m),o[0]=py(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:hy&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),gy&&o&&o.length>1&&ln(FU,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Kp(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Gg=W4;Gp({target:"RegExp",proto:!0,forced:/./.exec!==Gg},{exec:Gg});var NU=Rn("species"),vy=RegExp.prototype,IU=ae("".charAt),bS=ae("".charCodeAt),LU=ae("".slice),wS=function(t){return function(e,n){var r,o,i=Tu(G1(e)),a=T5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=bS(i,a))<55296||r>56319||a+1===u||(o=bS(i,a+1))<56320||o>57343?t?IU(i,a):r:t?LU(i,a,a+2):o-56320+(r-55296<<10)+65536}},UP={codeAt:wS(!1),charAt:wS(!0)},RU=UP.charAt,MU=function(t,e,n){return e+(n?RU(t,e).length:1)},zU=Et.TypeError,ES=function(t,e){var n=t.exec;if(Ke(n)){var r=ln(n,t,e);return r!==null&&cr(r),r}if(_u(t)==="RegExp")return ln(Gg,t,e);throw zU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=Rn(t),i=!dn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!dn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[NU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ae(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var v=ae(l),g=c.exec;return g===Gg||g===vy.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});la(String.prototype,t,s[0]),la(vy,o,s[1])}r&&Ln(vy[o],"sham",!0)})("match",function(t,e,n){return[function(r){var o=G1(this),i=r==null?void 0:Ud(r,t);return i?ln(i,r,o):new RegExp(r)[t](Tu(o))},function(r){var o=cr(this),i=Tu(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return ES(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=ES(o,i))!==null;){var f=Tu(s[0]);l[c]=f,f===""&&(o.lastIndex=MU(i,RP(o.lastIndex),u)),c++}return c===0?null:l}]}),Gp({global:!0},{globalThis:Et});var $U=!dn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),DS=B5("IE_PROTO"),q4=Et.Object,HU=q4.prototype,Wd=$U?q4.getPrototypeOf:function(t){var e=x5(t);if(qn(e,DS))return e[DS];var n=e.constructor;return Ke(n)&&e instanceof n?n.prototype:e instanceof q4?HU:null},VU=Et.String,UU=Et.TypeError,Nl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ae(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return cr(r),function(i){if(typeof i=="object"||Ke(i))return i;throw UU("Can't set "+VU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),WU=Et.Array,qU=Math.max,GU=ae("".replace),KU=ae("".split),YU=ae([].join),G4=String(Error("zxcasd").stack),WP=/\n\s*at [^:]*:[^\n]*/,XU=WP.test(G4),ZU=/@[^\n]*\n/.test(G4)&&!/zxcasd/.test(G4),JU=function(t,e){if(typeof t!="string")return t;if(XU)for(;e--;)t=GU(t,WP,"");else if(ZU)return YU(function(n,r,o){for(var i,a,u,s,l=K1(n),c=U4(r,l),f=U4(o===void 0?l:o,l),p=WU(qU(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=n[c],s=void 0,(s=S5(a))in i?gc.f(i,s,ua(0,u)):i[s]=u;return p.length=d,p}(KU(t,`
- `),e),`
- `);return t},QU=function(t,e){qr(e)&&"cause"in e&&Ln(t,"cause",e.cause)},CS=ae(ae.bind),qP=function(t,e){return E5(t),e===void 0?t:CS?CS(t,e):function(){return t.apply(e,arguments)}},Il={},tW=Rn("iterator"),eW=Array.prototype,nW=Rn("iterator"),xS=function(t){if(t!=null)return Ud(t,nW)||Ud(t,"@@iterator")||Il[Y1(t)]},rW=Et.TypeError,SS=function(t,e,n){var r,o;cr(t);try{if(!(r=Ud(t,"return"))){if(e==="throw")throw n;return n}r=ln(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return cr(r),n},oW=Et.TypeError,og=function(t,e){this.stopped=t,this.result=e},AS=og.prototype,iW=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=qP(e,c),g=function(y){return r&&SS(r,"normal",y),new og(!0,y)},m=function(y){return f?(cr(y),d?v(y[0],y[1],g):v(y[0],y[1])):d?v(y,g):v(y)};if(p)r=t;else{if(!(o=xS(t)))throw oW($4(t)+" is not iterable");if(function(y){return y!==void 0&&(Il.Array===y||eW[tW]===y)}(o)){for(i=0,a=K1(t);a>i;i++)if((u=m(t[i]))&&Hg(AS,u))return u;return new og(!1)}r=function(y,h){var b=arguments.length<2?xS(y):h;if(E5(b))return cr(ln(b,y));throw rW($4(y)+" is not iterable")}(t,o)}for(s=r.next;!(l=ln(s,r)).done;){try{u=m(l.value)}catch(y){SS(r,"throw",y)}if(typeof u=="object"&&u&&Hg(AS,u))return u}return new og(!1)},aW=function(t,e){return t===void 0?arguments.length<2?"":e:Tu(t)},uW=!dn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ua(1,7)),t.stack!==7)}),sW=Rn("toStringTag"),Kg=Et.Error,lW=[].push,qd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Hg(my,this);Nl?n=Nl(new Kg(void 0),o?Wd(this):my):(n=o?this:Kp(my),Ln(n,sW,"Error")),Ln(n,"message",aW(e,"")),uW&&Ln(n,"stack",JU(n.stack,1)),QU(n,r);var i=[];return iW(t,lW,{that:i}),Ln(n,"errors",i),n};Nl?Nl(qd,Kg):zP(qd,Kg);var my=qd.prototype=Kp(Kg.prototype,{constructor:ua(1,qd),message:ua(1,""),name:ua(1,"AggregateError")});Gp({global:!0},{AggregateError:qd});var K4=Rn("unscopables"),Y4=Array.prototype;Y4[K4]==null&&gc.f(Y4,K4,{configurable:!0,value:Kp(null)});var Pu,OS,kS,yy=function(t){Y4[K4][t]=!0},X4=Rn("iterator"),GP=!1;[].keys&&("next"in(kS=[].keys())?(OS=Wd(Wd(kS)))!==Object.prototype&&(Pu=OS):GP=!0);var cW=Pu==null||dn(function(){var t={};return Pu[X4].call(t)!==t});cW&&(Pu={}),Ke(Pu[X4])||la(Pu,X4,function(){return this});var I5={IteratorPrototype:Pu,BUGGY_SAFARI_ITERATORS:GP},fW=gc.f,BS=Rn("toStringTag"),_S=function(t,e,n){t&&!qn(t=n?t:t.prototype,BS)&&fW(t,BS,{configurable:!0,value:e})},dW=I5.IteratorPrototype,pW=function(){return this},hW=F5.PROPER,gW=F5.CONFIGURABLE,FS=I5.IteratorPrototype,Wh=I5.BUGGY_SAFARI_ITERATORS,zc=Rn("iterator"),vW=function(){return this},KP=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=Kp(dW,{next:ua(+!w,b)}),_S(y,D,!1),Il[D]=pW})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!Wh&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[zc]||d["@@iterator"]||o&&d[o],g=!Wh&&v||c(o),m=e=="Array"&&d.entries||v;if(m&&(u=Wd(m.call(new t)))!==Object.prototype&&u.next&&(Wd(u)!==FS&&(Nl?Nl(u,FS):Ke(u[zc])||la(u,zc,vW)),_S(u,f,!0)),hW&&o=="values"&&v&&v.name!=="values"&&(gW?Ln(d,"name","values"):(p=!0,g=function(){return ln(v,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(Wh||p||!(l in d))&&la(d,l,s[l]);else Gp({target:e,proto:!0,forced:Wh||p},s);return d[zc]!==g&&la(d,zc,g,{name:o}),Il[e]=g,s},mW=Ju.set,yW=Ju.getterFor("Array Iterator"),od=KP(Array,"Array",function(t,e){mW(this,{type:"Array Iterator",target:hc(t),index:0,kind:e})},function(){var t=yW(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Il.Arguments=Il.Array,yy("keys"),yy("values"),yy("entries");var bW=UP.charAt,wW=Ju.set,EW=Ju.getterFor("String Iterator");KP(String,"String",function(t){wW(this,{type:"String Iterator",string:Tu(t),index:0})},function(){var t,e=EW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=bW(n,r),e.index+=t.length,{value:t,done:!1})});var by,Yg={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},wy=A5("span").classList,TS=wy&&wy.constructor&&wy.constructor.prototype,YP=TS===Object.prototype?void 0:TS,Ey=Rn("iterator"),PS=Rn("toStringTag"),Dy=od.values,XP=function(t,e){if(t){if(t[Ey]!==Dy)try{Ln(t,Ey,Dy)}catch{t[Ey]=Dy}if(t[PS]||Ln(t,PS,e),Yg[e]){for(var n in od)if(t[n]!==od[n])try{Ln(t,n,od[n])}catch{t[n]=od[n]}}}};for(var Cy in Yg)XP(Et[Cy]&&Et[Cy].prototype,Cy);XP(YP,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
- Sorry, wangEditor V5+ versions do not support IE browser.`),jS(),NS()):global&&(!((by=global.navigator)===null||by===void 0)&&by.userAgent.match("QQBrowser"))&&(jS(),NS());function jS(){typeof globalThis>"u"&&(window.globalThis=window)}function NS(){gV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var IS,Xg=Array.isArray||function(t){return ku(t)=="Array"},ZP=function(){},DW=[],JP=fc("Reflect","construct"),L5=/^\s*(?:class|function)\b/,CW=ve(L5.exec),xW=!L5.exec(ZP),$c=function(t){if(!cn(t))return!1;try{return JP(ZP,DW,t),!0}catch{return!1}},SW=!JP||Yn(function(){var t;return $c($c.call)||!$c(Object)||!$c(function(){t=!0})||t})?function(t){if(!cn(t))return!1;switch(Up(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xW||!!CW(L5,kP(t))}:$c,AW=Tn("species"),LS=kt.Array,QP=function(t,e){return new(function(n){var r;return Xg(n)&&(r=n.constructor,(SW(r)&&(r===LS||Xg(r.prototype))||rr(r)&&(r=r[AW])===null)&&(r=void 0)),r===void 0?LS:r}(t))(e===0?0:e)},OW=Tn("species"),tj=Tn("isConcatSpreadable"),RS=kt.TypeError,kW=Tg>=51||!Yn(function(){var t=[];return t[tj]=!1,t.concat()[0]!==t}),BW=(IS="concat",Tg>=51||!Yn(function(){var t=[];return(t.constructor={})[OW]=function(){return{foo:1}},t[IS](Boolean).foo!==1})),_W=function(t){if(!rr(t))return!1;var e=t[tj];return e!==void 0?!!e:Xg(t)};Qo({target:"Array",proto:!0,forced:!kW||!BW},{concat:function(t){var e,n,r,o,i,a=zp(this),u=QP(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(_W(i=e===-1?a:arguments[e])){if(s+(o=Hp(i))>9007199254740991)throw RS("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&P4(u,s,i[n])}else{if(s>=9007199254740991)throw RS("Maximum allowed index exceeded");P4(u,s++,i)}return u.length=s,u}});var MS=m5.f,zS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ej={f:function(t){return zS&&ku(t)=="Window"?function(e){try{return MS(e)}catch{return SP(zS)}}(t):MS(Mo(t))}},FW=ve([].slice),R5={f:Tn},TW=za.f,Ie=function(t){var e=nr.Symbol||(nr.Symbol={});Vt(e,t)||TW(e,t,{value:R5.f(t)})},$S=ve([].push),Si=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=zp(s),g=bP(v),m=g5(l,c),y=Hp(g),h=0,b=f||QP,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:$S(w,p)}else switch(t){case 4:return!1;case 7:$S(w,p)}return i?-1:r||o?o:w}},X1={forEach:Si(0),map:Si(1),filter:Si(2),some:Si(3),every:Si(4),find:Si(5),findIndex:Si(6),filterReject:Si(7)}.forEach,$n=q1("hidden"),HS=Tn("toPrimitive"),PW=pc.set,VS=pc.getterFor("Symbol"),Yr=Object.prototype,Xi=kt.Symbol,ea=Xi&&Xi.prototype,US=kt.TypeError,xy=kt.QObject,Hc=fc("JSON","stringify"),nj=W1.f,Zi=za.f,rj=ej.f,jW=f5.f,oj=ve([].push),fi=hs("symbols"),Yp=hs("op-symbols"),Sy=hs("string-to-symbol-registry"),Ay=hs("symbol-to-string-registry"),NW=hs("wks"),Oy=!xy||!xy.prototype||!xy.prototype.findChild,Z4=Wn&&Yn(function(){return ci(Zi({},"a",{get:function(){return Zi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=nj(Yr,e);r&&delete Yr[e],Zi(t,e,n),r&&t!==Yr&&Zi(Yr,e,r)}:Zi,ky=function(t,e){var n=fi[t]=ci(ea);return PW(n,{type:"Symbol",tag:t,description:e}),Wn||(n.description=e),n},Zg=function(t,e,n){t===Yr&&Zg(Yp,e,n),lr(t);var r=dc(e);return lr(n),Vt(fi,r)?(n.enumerable?(Vt(t,$n)&&t[$n][r]&&(t[$n][r]=!1),n=ci(n,{enumerable:Jr(0,!1)})):(Vt(t,$n)||Zi(t,$n,Jr(1,{})),t[$n][r]=!0),Z4(t,r,n)):Zi(t,r,n)},WS=function(t,e){lr(t);var n=Mo(e),r=y5(n).concat(J4(n));return X1(r,function(o){Wn&&!Vn(ij,n,o)||Zg(t,o,n[o])}),t},ij=function(t){var e=dc(t),n=Vn(jW,this,e);return!(this===Yr&&Vt(fi,e)&&!Vt(Yp,e))&&(!(n||!Vt(this,e)||!Vt(fi,e)||Vt(this,$n)&&this[$n][e])||n)},qS=function(t,e){var n=Mo(t),r=dc(e);if(n!==Yr||!Vt(fi,r)||Vt(Yp,r)){var o=nj(n,r);return!o||!Vt(fi,r)||Vt(n,$n)&&n[$n][r]||(o.enumerable=!0),o}},GS=function(t){var e=rj(Mo(t)),n=[];return X1(e,function(r){Vt(fi,r)||Vt(Vp,r)||oj(n,r)}),n},J4=function(t){var e=t===Yr,n=rj(e?Yp:Mo(t)),r=[];return X1(n,function(o){!Vt(fi,o)||e&&!Vt(Yr,o)||oj(r,fi[o])}),r};if(yo||(ea=(Xi=function(){if($d(ea,this))throw US("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?Hd(arguments[0]):void 0,e=jg(t),n=function(r){this===Yr&&Vn(n,Yp,r),Vt(this,$n)&&Vt(this[$n],e)&&(this[$n][e]=!1),Z4(this,e,Jr(1,r))};return Wn&&Oy&&Z4(Yr,e,{configurable:!0,set:n}),ky(e,t)}).prototype,jl(ea,"toString",function(){return VS(this).tag}),jl(Xi,"withoutSetter",function(t){return ky(jg(t),t)}),f5.f=ij,za.f=Zg,W1.f=qS,m5.f=ej.f=GS,Q0.f=J4,R5.f=function(t){return ky(Tn(t),t)},Wn&&Zi(ea,"description",{configurable:!0,get:function(){return VS(this).description}})),Qo({global:!0,wrap:!0,forced:!yo,sham:!yo},{Symbol:Xi}),X1(y5(NW),function(t){Ie(t)}),Qo({target:"Symbol",stat:!0,forced:!yo},{for:function(t){var e=Hd(t);if(Vt(Sy,e))return Sy[e];var n=Xi(e);return Sy[e]=n,Ay[n]=e,n},keyFor:function(t){if(!wl(t))throw US(t+" is not a symbol");if(Vt(Ay,t))return Ay[t]},useSetter:function(){Oy=!0},useSimple:function(){Oy=!1}}),Qo({target:"Object",stat:!0,forced:!yo,sham:!Wn},{create:function(t,e){return e===void 0?ci(t):WS(ci(t),e)},defineProperty:Zg,defineProperties:WS,getOwnPropertyDescriptor:qS}),Qo({target:"Object",stat:!0,forced:!yo},{getOwnPropertyNames:GS,getOwnPropertySymbols:J4}),Qo({target:"Object",stat:!0,forced:Yn(function(){Q0.f(1)})},{getOwnPropertySymbols:function(t){return Q0.f(zp(t))}}),Hc){var IW=!yo||Yn(function(){var t=Xi();return Hc([t])!="[null]"||Hc({a:t})!="{}"||Hc(Object(t))!="{}"});Qo({target:"JSON",stat:!0,forced:IW},{stringify:function(t,e,n){var r=FW(arguments),o=e;if((rr(e)||t!==void 0)&&!wl(t))return Xg(e)||(e=function(i,a){if(cn(o)&&(a=Vn(o,this,i,a)),!wl(a))return a}),r[1]=e,mP(Hc,null,r)}})}if(!ea[HS]){var LW=ea.valueOf;jl(ea,HS,function(t){return Vn(LW,this)})}$g(Xi,"Symbol"),Vp[$n]=!0,Ie("asyncIterator"),Ie("hasInstance"),Ie("isConcatSpreadable"),Ie("iterator"),Ie("match"),Ie("matchAll"),Ie("replace"),Ie("search"),Ie("species"),Ie("split"),Ie("toPrimitive"),Ie("toStringTag"),Ie("unscopables"),$g(kt.JSON,"JSON",!0);var RW=nr.Symbol;Ie("asyncDispose"),Ie("dispose"),Ie("matcher"),Ie("metadata"),Ie("observable"),Ie("patternMatch"),Ie("replaceAll");var qh=RW,MW=R5.f("iterator"),zW=ps(function(t){function e(n){return typeof qh=="function"&&typeof MW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof qh=="function"&&r.constructor===qh&&r!==qh.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),$W=S$(zW),aj=O5.f,HW=dn(function(){aj(1)});if(Gp({target:"Object",stat:!0,forced:!To||HW,sham:!To},{getOwnPropertyDescriptor:function(t,e){return aj(hc(t),e)}}),(typeof global>"u"?"undefined":$W(global))==="object"){var VW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!VW.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 KS(t){return Object.prototype.toString.call(t)==="[object Object]"}function On(t){var e,n;return KS(t)!==!1&&((e=t.constructor)===void 0||KS(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Gr(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qu(t){return!!t&&!!t[fr]}function ts(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===YW}(t)||Array.isArray(t)||!!t[nA]||!!t.constructor[nA]||M5(t)||z5(t))}function Gd(t,e,n){n===void 0&&(n=!1),Ll(t)===0?(n?Object.keys:W5)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function Ll(t){var e=t[fr];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:M5(t)?2:z5(t)?3:0}function Q4(t,e){return Ll(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function uj(t,e,n){var r=Ll(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function M5(t){return GW&&t instanceof Map}function z5(t){return KW&&t instanceof Set}function fu(t){return t.o||t.t}function $5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=XW(t);delete e[fr];for(var n=W5(e),r=0;r<n.length;r++){var o=n[r],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 H5(t,e){return e===void 0&&(e=!1),V5(t)||Qu(t)||!ts(t)||(Ll(t)>1&&(t.set=t.add=t.clear=t.delete=UW),Object.freeze(t),e&&Gd(t,function(n,r){return H5(r,!0)},!0)),t}function UW(){Gr(2)}function V5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ui(t){var e=ZW[t];return e||Gr(18,t),e}function YS(){return Kd}function By(t,e){e&&(ui("Patches"),t.u=[],t.s=[],t.v=e)}function Jg(t){tE(t),t.p.forEach(WW),t.p=null}function tE(t){t===Kd&&(Kd=t.l)}function XS(t){return Kd={p:[],l:Kd,h:t,m:!0,_:0}}function WW(t){var e=t[fr];e.i===0||e.i===1?e.j():e.O=!0}function _y(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ui("ES5").S(e,t,r),r?(n[fr].P&&(Jg(e),Gr(4)),ts(t)&&(t=Qg(e,t),e.l||tv(e,t)),e.u&&ui("Patches").M(n[fr],t,e.u,e.s)):t=Qg(e,n,[]),Jg(e),e.u&&e.v(e.u,e.s),t!==sj?t:void 0}function Qg(t,e,n){if(V5(e))return e;var r=e[fr];if(!r)return Gd(e,function(i,a){return ZS(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return tv(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=$5(r.k):r.o;Gd(r.i===3?new Set(o):o,function(i,a){return ZS(t,r,o,i,a,n)}),tv(t,o,!1),n&&t.u&&ui("Patches").R(r,n,t.u,t.s)}return r.o}function ZS(t,e,n,r,o,i){if(Qu(o)){var a=Qg(t,o,i&&e&&e.i!==3&&!Q4(e.D,r)?i.concat(r):void 0);if(uj(n,r,a),!Qu(a))return;t.m=!1}if(ts(o)&&!V5(o)){if(!t.h.F&&t._<1)return;Qg(t,o),e&&e.A.l||tv(t,o)}}function tv(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&H5(e,n)}function Fy(t,e){var n=t[fr];return(n?fu(n):t)[e]}function JS(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function eE(t){t.P||(t.P=!0,t.l&&eE(t.l))}function Ty(t){t.o||(t.o=$5(t.t))}function nE(t,e,n){var r=M5(e)?ui("MapSet").N(e,n):z5(e)?ui("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:YS(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=ig;a&&(s=[u],l=ag);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p}(e,n):ui("ES5").J(e,n);return(n?n.A:YS()).p.push(r),r}function qW(t){return Qu(t)||Gr(22,t),function e(n){if(!ts(n))return n;var r,o=n[fr],i=Ll(n);if(o){if(!o.P&&(o.i<4||!ui("ES5").K(o)))return o.t;o.I=!0,r=QS(n,i),o.I=!1}else r=QS(n,i);return Gd(r,function(a,u){o&&function(s,l){return Ll(s)===2?s.get(l):s[l]}(o.t,a)===u||uj(r,a,e(u))}),i===3?new Set(r):r}(t)}function QS(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return $5(t)}var tA,Kd,U5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",GW=typeof Map<"u",KW=typeof Set<"u",eA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",sj=U5?Symbol.for("immer-nothing"):((tA={})["immer-nothing"]=!0,tA),nA=U5?Symbol.for("immer-draftable"):"__$immer_draftable",fr=U5?Symbol.for("immer-state"):"__$immer_state",YW=""+Object.prototype.constructor,W5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,XW=Object.getOwnPropertyDescriptors||function(t){var e={};return W5(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},ZW={},ig={get:function(t,e){if(e===fr)return t;var n=fu(t);if(!Q4(n,e))return function(o,i,a){var u,s=JS(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,n,e);var r=n[e];return t.I||!ts(r)?r:r===Fy(t.t,e)?(Ty(t),t.o[e]=nE(t.A.h,r,t)):r},has:function(t,e){return e in fu(t)},ownKeys:function(t){return Reflect.ownKeys(fu(t))},set:function(t,e,n){var r=JS(fu(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=Fy(fu(t),e),i=o==null?void 0:o[fr];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||Q4(t.t,e)))return!0;Ty(t),eE(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return Fy(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,Ty(t),eE(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=fu(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Gr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Gr(12)}},ag={};Gd(ig,function(t,e){ag[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),ag.deleteProperty=function(t,e){return ig.deleteProperty.call(this,t[0],e)},ag.set=function(t,e,n){return ig.set.call(this,t[0],e,n,t[0])};var JW=function(){function t(n){var r=this;this.g=eA,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=r;return function(d){var v=this;d===void 0&&(d=u);for(var g=arguments.length,m=Array(g>1?g-1:0),y=1;y<g;y++)m[y-1]=arguments[y];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[v,h].concat(m))})}}var l;if(typeof i!="function"&&Gr(6),a!==void 0&&typeof a!="function"&&Gr(7),ts(o)){var c=XS(r),f=nE(r,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?Jg(c):tE(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return By(c,a),_y(d,c)},function(d){throw Jg(c),d}):(By(c,a),_y(l,c))}if(!o||typeof o!="object")return(l=i(o))===sj?void 0:(l===void 0&&(l=o),r.F&&H5(l,!0),l);Gr(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 r.produceWithPatches(s,function(p){return o.apply(void 0,[p].concat(c))})}:[r.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var e=t.prototype;return e.createDraft=function(n){ts(n)||Gr(8),Qu(n)&&(n=qW(n));var r=XS(this),o=nE(this,n,void 0);return o[fr].C=!0,tE(r),o},e.finishDraft=function(n,r){var o=(n&&n[fr]).A;return By(o,r),_y(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!eA&&Gr(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ui("Patches").$;return Qu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),tr=new JW,Z1=tr.produce;tr.produceWithPatches.bind(tr),tr.setAutoFreeze.bind(tr),tr.setUseProxies.bind(tr),tr.applyPatches.bind(tr);var rA=tr.createDraft.bind(tr),oA=tr.finishDraft.bind(tr);function zo(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ev=new WeakMap,Vc=new WeakMap,iA=new WeakMap,aA=new WeakMap,uA=new WeakMap,sA=new WeakMap;function lA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Gh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var QW=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))Bq.transform(n,e);for(var r of E.pointRefs(t))_q.transform(r,e);for(var o of E.rangeRefs(t))Tq.transform(o,e);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=ev.get(t)||[],l=tq(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);ev.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),Vc.get(t)||(Vc.set(t,!0),Promise.resolve().then(()=>{Vc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.setNodes(t,{[e]:n},{match:ot.isText,split:!0});else{var o=Gh(Gh({},E.marks(t)||{}),{},{[e]:n});t.marks=o,Vc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.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:n,marks:r}=t;if(n){if(r){var o=Gh({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!ot.isText(n))if(ct.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ct.isElement(n)&&(t.isInline(n)||n.children.length===0||ot.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Q.get(t,r);if(!ot.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(ot.isText(s)||ct.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--):ct.isElement(s)?t.isInline(s)&&(l!=null&&ot.isText(l)?c&&(N.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&ot.isText(l)&&(ot.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.unsetNodes(t,e,{match:ot.isText,split:!0});else{var r=Gh({},E.marks(t)||{});delete r[e],t.marks=r,Vc.get(t)||t.onChange()}}};return t},tq=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:n,path:r}=t,o=j.levels(r),i=ot.isText(n)?[]:Array.from(Q.nodes(n),w=>{var[,D]=w;return r.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 p=j.transform(f,t);l.push(p)}for(var d of j.ancestors(s)){var v=j.transform(d,t);c.push(v)}var g=c[c.length-1],m=s[s.length-1],y=g.concat(m);return[...l,...c,y];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 di(t,e){if(t==null)return{};var n,r,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(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var xt,rE=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?iq(t):t,o=xt.None,i=xt.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=mq(s,l);if([o,i]=n?[i,c]:[c,o],hl(o,xt.ZWJ)&&hl(i,xt.ExtPict)&&!Eq(n?t.substring(0,a):t.substring(0,t.length-a))||hl(o,xt.RI)&&hl(i,xt.RI)&&!(u=u!==null?!u:!!n||Cq(t.substring(0,t.length-a)))||o!==xt.None&&i!==xt.None&&bq(o,i))break;a+=s.length}return a||1},eq=/\s/,nq=/[\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]/,rq=/['\u2018\u2019]/,oE=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},oq=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(eq.test(e))return!1;if(rq.test(e)){var o=rE(n,r),[i,a]=oE(n,o,r);if(t(i,a,r))return!0}return!nq.test(e)},iq=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(uq(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(aq(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},aq=t=>t>=55296&&t<=56319,uq=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"})(xt||(xt={}));var sq=/^(?:[\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])$/,lq=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,cq=/^(?:[\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])$/,fq=/^[\u1100-\u115F\uA960-\uA97C]$/,dq=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,pq=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,hq=/^[\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]$/,gq=/^[\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]$/,vq=/^(?:[\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])$/,mq=(t,e)=>{var n=xt.Any;return t.search(sq)!==-1&&(n|=xt.Extend),e===8205&&(n|=xt.ZWJ),e>=127462&&e<=127487&&(n|=xt.RI),t.search(lq)!==-1&&(n|=xt.Prepend),t.search(cq)!==-1&&(n|=xt.SpacingMark),t.search(fq)!==-1&&(n|=xt.L),t.search(dq)!==-1&&(n|=xt.V),t.search(pq)!==-1&&(n|=xt.T),t.search(hq)!==-1&&(n|=xt.LV),t.search(gq)!==-1&&(n|=xt.LVT),t.search(vq)!==-1&&(n|=xt.ExtPict),n};function hl(t,e){return(t&e)!=0}var yq=[[xt.L,xt.L|xt.V|xt.LV|xt.LVT],[xt.LV|xt.V,xt.V|xt.T],[xt.LVT|xt.T,xt.T],[xt.Any,xt.Extend|xt.ZWJ],[xt.Any,xt.SpacingMark],[xt.Prepend,xt.Any],[xt.ZWJ,xt.ExtPict],[xt.RI,xt.RI]];function bq(t,e){return yq.findIndex(n=>hl(t,n[0])&&hl(e,n[1]))===-1}var wq=/(?:[\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$/,Eq=t=>t.search(wq)!==-1,Dq=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Cq=t=>{var e=t.match(Dq);return e!==null&&e[0].length/2%2==1},cA=t=>On(t)&&Q.isNodeList(t.children)&&!E.isEditor(t),ct={isAncestor:t=>On(t)&&Q.isNodeList(t.children),isElement:cA,isElementList:t=>Array.isArray(t)&&t.every(e=>ct.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return cA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},xq=["text"],Sq=["text"];function fA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ts(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var dA=new WeakMap,E={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!ot.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,Ts(Ts({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,Ts(Ts({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>ot.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>ot.isText(n)),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(!On(t))return!1;var e=dA.get(t);if(e!==void 0)return e;var n=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||On(t.marks))&&(t.selection===null||L.isRange(t.selection))&&Q.isNodeList(t.children)&&na.isOperationList(t.operations);return dA.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return Bt.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&ot.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ct.isElement(e)&&t.isInline(e),isNormalizing(t){var e=iA.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return Bt.equals(e,r)},isVoid:(t,e)=>ct.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*a}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(L.isExpanded(n)){var[r]=E.nodes(t,{match:ot.isText});if(r){var[o]=r;return di(o,xq)}return{}}var{anchor:i}=n,{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:d=>E.isBlock(t,d)});if(s&&l){var[c,f]=s,[,p]=l;j.isAncestor(p,f)&&(u=c)}}return di(u,Sq)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});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:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(Aq.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),v=[];for(var[g,m]of d){var y=p&&j.compare(m,p[1])===0;if(r!=="highest"||!y){if(u(g,m))if(r==="lowest"&&y)p=[g,m];else{var h=r==="lowest"?p:[g,m];h&&(o?v.push(h):yield h),p=[g,m]}else if(o&&!y&&ot.isText(g))return}}r==="lowest"&&p&&(o?v.push(p):yield p),o&&(yield*v)}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>ev.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});ev.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.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*r(t).length,c=0;r(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=r(t).pop();if(Q.has(t,f)){var p=E.node(t,f);t.normalizeNode(p)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=j.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.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)),Bt.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,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=aA.get(t);return e||(e=new Set,aA.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!ot.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,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=uA.get(t);return e||(e=new Set,uA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,v=0;for(var[g,m]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ct.isElement(g)){if(!i&&t.isVoid(g)){yield E.start(t,m);continue}if(t.isInline(g))continue;if(E.hasInlines(t,g)){var y=j.isAncestor(m,s.path)?s:E.end(t,m),h=j.isAncestor(m,u.path)?u:E.start(t,m);f=E.string(t,{anchor:h,focus:y},{voids:i}),c=!0}}if(ot.isText(g)){var b=j.equals(m,l.path);for(b?(d=o?l.offset:g.text.length-l.offset,v=l.offset):(d=g.text.length,v=o?d:0),(b||c||r==="offset")&&(yield{path:m,offset:v},c=!1);;){if(p===0){if(f==="")break;p=w(f,r,o),f=oE(f,p,o)[1]}if(v=o?v-p:v+p,(d-=p)<0){p=-d;break}p=0,yield{path:m,offset:v}}}}}function w(D,x,C){return x==="character"?rE(D,C):x==="word"?function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=rE(O,F),[K,U]=oE(O,M,F);if(oq(K,U,F))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(D,C):x==="line"||x==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});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:n,voids:r});return c}}},range:(t,e,n)=>L.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,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=sA.get(t);return e||(e=new Set,sA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){iA.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,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:r})){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 n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[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:p=>E.isBlock(t,p)}),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:r}))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,Ts(Ts({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},Aq={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},Oq=["children"],kq=["text"],pA=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(ot.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[Q.ancestor(t,r),r];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 n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=j.common(e,n);return[Q.get(t,r),r]},descendant(t,e){var n=Q.get(t,e);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ct.isElement(n)&&(yield[n,r])},extractProps:t=>ct.isAncestor(t)?di(t,Oq):di(t,kq),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},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 n=Z1({children:t.children},r=>{var[o,i]=L.edges(e),a=Q.nodes(r,{reverse:!0,pass:p=>{var[,d]=p;return!L.includes(e,d)}});for(var[,u]of a){if(!L.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(ot.isText(n)||!n.children[o])return!1;n=n.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=pA.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return pA.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!ot.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=Q.get(t,e);if(!ot.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=Q.get(t,r);yield[o,r]}},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:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?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||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=Q.get(t,u)):(u=j.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var n=j.parent(e),r=Q.get(t,n);if(ot.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>ot.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ot.isText(n)&&(yield[n,r])}};function hA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function He(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var na={isNodeOperation:t=>na.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!On(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&Q.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)&&On(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&On(t.properties)&&On(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||On(t.properties)&&On(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&On(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>na.isOperation(e)),isSelectionOperation:t=>na.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>na.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return He(He({},t),{},{type:"remove_node"});case"insert_text":return He(He({},t),{},{type:"remove_text"});case"merge_node":return He(He({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return He(He({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return He(He({},t),{},{path:r,newPath:o});case"remove_node":return He(He({},t),{},{type:"insert_node"});case"remove_text":return He(He({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return He(He({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return He(He({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return He(He({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),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 n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},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 n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Z1(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=e;if(j.equals(f,p))return;if(j.isAncestor(f,r)||j.equals(f,r)){var d=p.slice();return j.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(r.slice(f.length))}j.isSibling(f,p)&&(j.isAncestor(p,r)||j.equals(p,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(p,r)||j.equals(p,r)||j.isAncestor(p,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[p.length-1]+=1):j.endsBefore(f,r)&&(j.equals(p,r)&&(r[p.length-1]+=1),r[f.length-1]-=1)}}})}},Bq={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=j.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function gA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Bt={compare(t,e){var n=j.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Bt.compare(t,e)===1,isBefore:(t,e)=>Bt.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>On(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Z1(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.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;r.path=j.transform(i,e,n);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")&&(r.offset-=e.position,r.path=j.transform(i,e,vA(vA({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},_q={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Bt.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},Fq=["anchor","focus"];function mA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Bt.equals(t.anchor,e.anchor)&&Bt.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[n,r]=L.edges(t),[o,i]=L.edges(e);return Bt.isBefore(n,o)&&Bt.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Bt.isPoint(e)?(s=Bt.compare(e,a)>=0,l=Bt.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=di(t,Fq),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Bt.isBefore(r,i)?i:r,s=Bt.isBefore(o,a)?o:a;return Bt.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?mA(Object(f),!0).forEach(function(p){zo(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):mA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Bt.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Bt.equals(e,n)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>On(t)&&Bt.isPoint(t.anchor)&&Bt.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 n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Z1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Bt.transform(r.anchor,e,{affinity:o}),l=Bt.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},Tq={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},lj=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(On(r)&&On(o)){if(!lj(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},Pq=["text"],jq=["anchor","focus"];function yA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ko(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ot={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return di(i,Pq)}return lj(r?o(t):t,r?o(e):e)},isText:t=>On(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 n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Ko({},t)];for(var r of e){var o=di(r,jq),[i,a]=L.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var p=l,d=void 0,v=void 0;if(a.offset<s){var g=a.offset-f;v=Ko(Ko({},p),{},{text:p.text.slice(g)}),p=Ko(Ko({},p),{},{text:p.text.slice(0,g)})}if(i.offset>f){var m=i.offset-f;d=Ko(Ko({},p),{},{text:p.text.slice(0,m)}),p=Ko(Ko({},p),{},{text:p.text.slice(m)})}Object.assign(p,o),d&&u.push(d),u.push(p),v&&u.push(v)}}n=u}return n}};function bA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Uc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Nq={transform(t,e){t.children=rA(t.children);var n=t.selection&&rA(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(r,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]=Bt.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:v}=i;if(v.length===0)break;var g=Q.leaf(r,p),m=g.text.slice(0,d),y=g.text.slice(d);if(g.text=m+v+y,o)for(var[h,b]of L.points(o))o[b]=Bt.transform(h,i);break;case"merge_node":var{path:w}=i,D=Q.get(r,w),x=j.previous(w),C=Q.get(r,x),O=Q.parent(r,w),F=w[w.length-1];if(ot.isText(D)&&ot.isText(C))C.text+=D.text;else{if(ot.isText(D)||ot.isText(C))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(D," ").concat(C));C.children.push(...D.children)}if(O.children.splice(F,1),o)for(var[R,H]of L.points(o))o[H]=Bt.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=Q.get(r,M),W=Q.parent(r,M),G=M[M.length-1];W.children.splice(G,1);var nt=j.transform(M,i),lt=Q.get(r,j.parent(nt)),st=nt[nt.length-1];if(lt.children.splice(st,0,U),o)for(var[at,k]of L.points(o))o[k]=Bt.transform(at,i);break;case"remove_node":var{path:S}=i,P=S[S.length-1];if(Q.parent(r,S).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=Bt.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var it=void 0,gt=void 0;for(var[vt,Dt]of Q.texts(r)){if(j.compare(Dt,S)!==-1){gt=[vt,Dt];break}it=[vt,Dt]}var q=!1;it&>&&(q=j.equals(gt[1],S)?!j.hasPrevious(gt[1]):j.common(it[1],S).length<j.common(gt[1],S).length),it&&!q?($.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=Q.leaf(r,It),Fe=Ot.text.slice(0,At),$t=Ot.text.slice(At+dt.length);if(Ot.text=Fe+$t,o)for(var[ee,ye]of L.points(o))o[ye]=Bt.transform(ee,i);break;case"set_node":var{path:wn,properties:zt,newProperties:Mn}=i;if(wn.length===0)throw new Error("Cannot set properties on the root node!");var Mr=Q.get(r,wn);for(var uo in Mn){if(uo==="children"||uo==="text")throw new Error('Cannot set the "'.concat(uo,'" property of nodes!'));var Ss=Mn[uo];Ss==null?delete Mr[uo]:Mr[uo]=Ss}for(var Ka in zt)Mn.hasOwnProperty(Ka)||delete Mr[Ka];break;case"set_selection":var{newProperties:zr}=i;if(zr==null)o=zr;else{if(o==null){if(!L.isRange(zr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(zr)," when there is no current selection."));o=Uc({},zr)}for(var so in zr){var Ho=zr[so];if(Ho==null){if(so==="anchor"||so==="focus")throw new Error('Cannot remove the "'.concat(so,'" selection property'));delete o[so]}else o[so]=Ho}}break;case"split_node":var{path:En,position:Dn,properties:Cn}=i;if(En.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(En,"] because the root node cannot be split."));var Pn,an=Q.get(r,En),mr=Q.parent(r,En),Fc=En[En.length-1];if(ot.isText(an)){var yi=an.text.slice(0,Dn),Vo=an.text.slice(Dn);an.text=yi,Pn=Uc(Uc({},Cn),{},{text:Vo})}else{var As=an.children.slice(0,Dn),Ya=an.children.slice(Dn);an.children=As,Pn=Uc(Uc({},Cn),{},{children:Ya})}if(mr.children.splice(Fc+1,0,Pn),o)for(var[Os,$r]of L.points(o))o[$r]=Bt.transform(Os,i)}return o})(t,n,e)}finally{t.children=oA(t.children),t.selection=n?Qu(n)?oA(n):n:null}}},Iq=["text"],Lq=["children"];function wA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function EA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Rq={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.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(r||(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(Bt.isPoint(a)){u==null&&(u=ot.isText(l)?x=>ot.isText(x):t.isInline(l)?x=>ot.isText(x)||E.isInline(t,x):x=>E.isBlock(t,x));var[p]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,v=E.pathRef(t,d),g=E.isEnd(t,a,d);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var m=v.unref();a=g?j.next(m):m}var y=j.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:y})){for(var b of e){var w=y.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:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?Ps(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,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,p]=c,d=l[l.length-1],{length:v}=f.children;if(v===1){var g=j.next(p);N.moveNodes(t,{at:l,to:g,voids:o}),N.removeNodes(t,{at:p,voids:o})}else if(d===0)N.moveNodes(t,{at:l,to:p,voids:o});else if(d===v-1){var m=j.next(p);N.moveNodes(t,{at:l,to:m,voids:o})}else{var y=j.next(l),h=j.next(p);N.splitNodes(t,{at:y,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:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=E.parent(t,r);n=F=>u.children.includes(F)}else n=F=>E.isBlock(t,F);if(!o&&L.isRange(r)&&(r=E.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=E.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[p,d]=c,[v,g]=f;if(d.length!==0&&g.length!==0){var m,y,h=j.next(g),b=j.common(d,g),w=j.isSibling(d,g),D=Array.from(E.levels(t,{at:d}),F=>{var[R]=F;return R}).slice(b.length).slice(0,-1),x=E.above(t,{at:d,mode:"highest",match:F=>D.includes(F)&&cj(t,F)}),C=x&&E.pathRef(t,x[1]);if(ot.isText(p)&&ot.isText(v)){var O=di(p,Iq);y=v.text.length,m=O}else{if(!ct.isElement(p)||!ct.isElement(v))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(v)));O=di(p,Lq),y=v.children.length,m=O}w||N.moveNodes(t,{at:d,to:h,voids:i}),C&&N.removeNodes(t,{at:C.current,voids:i}),ct.isElement(v)&&E.isEmpty(t,v)||ot.isText(v)&&v.text===""&&g[g.length-1]!==0?N.removeNodes(t,{at:g,voids:i}):t.apply({type:"merge_node",path:h,position:y,properties:m}),C&&C.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?Ps(t,r):d=>E.isBlock(t,d));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,v]=d;return E.pathRef(t,v)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:p}),u.current&&j.isSibling(p,f)&&j.isAfter(p,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:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Ps(t,i):p=>E.isBlock(t,p)),!n&&L.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,p=>{var[,d]=p;return E.pathRef(t,d)});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 n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?Ps(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),p=a==="lowest"?"lowest":"highest",d=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:p,voids:s,always:!d});var v=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:p,voids:s,always:!v}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[g,m]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var y={},h={};if(m.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==g[w]&&(b=!0,g.hasOwnProperty(w)&&(y[w]=g[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:m,properties:y,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!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=Mq(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"}),[p]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(p){var d=E.void(t,{at:i,mode:"highest"});if(!r&&d){var[v,g]=d;if(ct.isElement(v)&&t.isInline(v)){var m=E.after(t,g);if(!m){var y=j.next(g);N.insertNodes(t,{text:""},{at:y,voids:r}),m=E.point(t,y)}i=m,u=!0}a=i.path.length-g.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=p,D=i.path.slice(0,b),x=a===0?i.offset:i.path[b]+0;for(var[C,O]of E.levels(t,{at:D,reverse:!0,voids:r})){var F=!1;if(O.length<w.length||O.length===0||!r&&E.isVoid(t,C))break;var R=f.current,H=E.isEnd(t,R,O);if(u||!f||!E.isEdge(t,R,O)){F=!0;var M=Q.extractProps(C);t.apply({type:"split_node",path:O,position:x,properties:M})}x=O[O.length-1]+(F||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 n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;N.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?Ps(t,i):p=>E.isBlock(t,p)),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:n,voids:o}),l=Array.from(s,p=>{var[,d]=p;return E.pathRef(t,d)}).reverse(),c=function(p){var d=p.unref(),[v]=E.node(t,d),g=E.range(t,d);r&&u&&(g=L.intersection(u.current,g)),N.liftNodes(t,{at:g,match:m=>ct.isAncestor(v)&&v.children.includes(m),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?Ps(t,u):t.isInline(e)?m=>E.isInline(t,m)||ot.isText(m):m=>E.isBlock(t,m)),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(),n.at==null&&N.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?m=>E.isBlock(t,m):m=>E.isEditor(m),mode:"lowest",voids:i}));for(var[,p]of f){var d=L.isRange(u)?L.intersection(u,E.range(t,p)):u;if(d){var v=Array.from(E.nodes(t,{at:d,match:a,mode:r,voids:i}));if(v.length>0){var g=function(){var[m]=v,y=v[v.length-1],[,h]=m,[,b]=y;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),x=E.node(t,w),[C]=x,O=w.length+1,F=j.next(b.slice(0,O)),R=EA(EA({},e),{},{children:[]});N.insertNodes(t,R,{at:F,voids:i}),N.moveNodes(t,{at:D,match:H=>ct.isAncestor(C)&&C.children.includes(H),to:F.concat(0),voids:i})}();if(g==="continue")continue}}}}})}},cj=(t,e)=>{if(ct.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&cj(t,n.children[0])}return!E.isEditor(e)},Mq=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=E.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},Ps=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function DA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function CA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?DA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):DA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var zq={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);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:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,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 p=i?E.before(t,s,l):E.after(t,s,l);p&&(c.focus=p)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)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:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:CA(CA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Bt.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Bt.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},$q={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="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),Bt.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?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),p=E.end(t,[]);Bt.equals(f,p)||(a=E.unhangRange(t,a,{voids:i}))}var[d,v]=L.edges(a),g=E.above(t,{match:gt=>E.isBlock(t,gt),at:d,voids:i}),m=E.above(t,{match:gt=>E.isBlock(t,gt),at:v,voids:i}),y=g&&m&&!j.equals(g[1],m[1]),h=j.equals(d.path,v.path),b=i?null:E.void(t,{at:d,mode:"highest"}),w=i?null:E.void(t,{at:v,mode:"highest"});if(b){var D=E.before(t,d);D&&g&&j.isAncestor(g[1],D.path)&&(d=D)}if(w){var x=E.after(t,v);x&&m&&j.isAncestor(m[1],x.path)&&(v=x)}var C,O=[];for(var F of E.nodes(t,{at:a,voids:i})){var[R,H]=F;C&&j.compare(H,C)===0||(!i&&E.isVoid(t,R)||!j.isCommon(H,d.path)&&!j.isCommon(H,v.path))&&(O.push(F),C=H)}var M=Array.from(O,gt=>{var[,vt]=gt;return E.pathRef(t,vt)}),K=E.pointRef(t,d),U=E.pointRef(t,v);if(!h&&!b){var W=K.current,[G]=E.leaf(t,W),{path:nt}=W,{offset:lt}=d,st=G.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:nt,offset:lt,text:st})}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?d.offset:0,V=P.text.slice(Y,v.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&y&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var it=n?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&it&&N.select(t,it)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(L.isRange(i))if(r||(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,p=E.isStart(t,i,f),d=E.isEnd(t,i,f),v=p&&d,g=!p||p&&d,m=!d,[,y]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=S=>{var[P,$]=S;return $.length!==0&&(!!v||!(g&&j.isAncestor($,y)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(m&&j.isAncestor($,h)&&ct.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var D of Q.nodes({children:e},{pass:w}))w(D)&&b.push(D);var x=[],C=[],O=[],F=!0,R=!1;for(var[H]of b)ct.isElement(H)&&!t.isInline(H)?(F=!1,R=!0,C.push(H)):F?x.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),G=E.pathRef(t,d?j.next(f):f),nt=E.pathRef(t,W?j.next(K):K),lt=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 st=E.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,x,{at:st.current,match:S=>ot.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),v&&C.length&&N.delete(t,{at:lt.unref(),voids:o}),N.insertNodes(t,C,{at:G.current,match:S=>E.isBlock(t,S),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:nt.current,match:S=>ot.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),!n.at){var at;at=O.length>0?j.previous(nt.current):C.length>0?j.previous(G.current):j.previous(st.current);var k=E.end(t,at);N.select(t,k)}st.unref(),G.unref(),nt.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;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(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!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 xA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Kh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xA(Object(n),!0).forEach(function(r){zo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var N=Kh(Kh(Kh(Kh({},Nq),Rq),zq),$q),iE="[object Map]",aE="[object Set]",Hq=/^\[object .+?Constructor\]$/,Vq=/^(?:0|[1-9]\d*)$/,Uq="[\\ud800-\\udfff]",uE="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",sE="\\ud83c[\\udffb-\\udfff]",fj="[^\\ud800-\\udfff]",dj="(?:\\ud83c[\\udde6-\\uddff]){2}",pj="[\\ud800-\\udbff][\\udc00-\\udfff]",SA="(?:"+uE+"|"+sE+")?",Wq="[\\ufe0e\\ufe0f]?"+SA+("(?:\\u200d(?:"+[fj,dj,pj].join("|")+")[\\ufe0e\\ufe0f]?"+SA+")*"),qq="(?:"+[fj+uE+"?",uE,dj,pj,Uq].join("|")+")",Gq=RegExp(sE+"(?="+sE+")|"+qq+Wq,"g"),Kq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Yq=typeof le=="object"&&le&&le.Object===Object&&le,Xq=typeof self=="object"&&self&&self.Object===Object&&self,gs=Yq||Xq||Function("return this")();function Zq(t,e){return function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a}(e,function(n){return t[n]})}function Jq(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function Qq(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function tG(t){return function(e){return Kq.test(e)}(t)?function(e){return e.match(Gq)||[]}(t):function(e){return e.split("")}(t)}var AA,OA,eG=Function.prototype,J1=Object.prototype,Py=gs["__core-js_shared__"],kA=function(){var t=/[^.]+$/.exec(Py&&Py.keys&&Py.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),hj=eG.toString,nv=J1.hasOwnProperty,Xp=J1.toString,nG=RegExp("^"+hj.call(nv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),BA=gs.Symbol,jy=BA?BA.iterator:void 0,rG=J1.propertyIsEnumerable,oG=(AA=Object.keys,OA=Object,function(t){return AA(OA(t))}),lE=Zp(gs,"DataView"),cE=Zp(gs,"Map"),fE=Zp(gs,"Promise"),dE=Zp(gs,"Set"),pE=Zp(gs,"WeakMap"),iG=vs(lE),aG=vs(cE),uG=vs(fE),sG=vs(dE),lG=vs(pE);function cG(t,e){var n=gj(t)||function(a){return function(u){return yj(u)&&q5(u)}(a)&&nv.call(a,"callee")&&(!rG.call(a,"callee")||Xp.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):[],r=n.length,o=!!r;for(var i in t)!e&&!nv.call(t,i)||o&&(i=="length"||pG(i,r))||n.push(i);return n}function fG(t){if(!mj(t)||function(n){return!!kA&&kA in n}(t))return!1;var e=vj(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(t)?nG:Hq;return e.test(vs(t))}function dG(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||J1,e!==r)return oG(t);var e,n,r,o=[];for(var i in Object(t))nv.call(t,i)&&i!="constructor"&&o.push(i);return o}function Zp(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return fG(n)?n:void 0}var du=function(t){return Xp.call(t)};function pG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||Vq.test(t))&&t>-1&&t%1==0&&t<e}function vs(t){if(t!=null){try{return hj.call(t)}catch{}try{return t+""}catch{}}return""}(lE&&du(new lE(new ArrayBuffer(1)))!="[object DataView]"||cE&&du(new cE)!=iE||fE&&du(fE.resolve())!="[object Promise]"||dE&&du(new dE)!=aE||pE&&du(new pE)!="[object WeakMap]")&&(du=function(t){var e=Xp.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?vs(n):void 0;if(r)switch(r){case iG:return"[object DataView]";case aG:return iE;case uG:return"[object Promise]";case sG:return aE;case lG:return"[object WeakMap]"}return e});var gj=Array.isArray;function q5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!vj(t)}function vj(t){var e=mj(t)?Xp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function mj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function yj(t){return!!t&&typeof t=="object"}function hG(t){return t?Zq(t,function(e){return q5(e)?cG(e):dG(e)}(t)):[]}var _A=function(t){if(!t)return[];if(q5(t))return function(n){return typeof n=="string"||!gj(n)&&yj(n)&&Xp.call(n)=="[object String]"}(t)?tG(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(jy&&t[jy])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[jy]());var e=du(t);return(e==iE?Jq:e==aE?Qq:hG)(t)};function FA(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function G5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:FA(e[n])&&FA(t[n])&&Object.keys(e[n]).length>0&&G5(t[n],e[n])})}var bj={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 Jp(){var t=typeof document<"u"?document:{};return G5(t,bj),t}var gG={document:bj,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 ms(){var t=typeof window<"u"?window:{};return G5(t,gG),t}function hE(t){return hE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hE(t)}function rv(t,e){return rv=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},rv(t,e)}function vG(){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 gE(t,e,n){return gE=vG()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&rv(u,i.prototype),u},gE.apply(null,arguments)}function vE(t){var e=typeof Map=="function"?new Map:void 0;return vE=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return gE(n,arguments,hE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),rv(r,n)},vE(t)}var ra=function(t){var e,n;function r(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 n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(vE(Array));function Q1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,Q1(n)):e.push(n)}),e}function wj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=ms(),r=Jp(),o=[];if(!e&&t instanceof ra)return t;if(!t)return new ra(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=r.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=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof ra)return t;o=t}return new ra(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 Rl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Q1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function Ml(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Q1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function zl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Q1(e.map(function(o){return o.split(" ")}));return wj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Pr(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function ov(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function $l(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Po(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}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 jo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(g){var m=g.target;if(m){var y=g.target.dom7EventData||[];if(y.indexOf(g)<0&&y.unshift(g),B(m).is(o))i.apply(m,y);else for(var h=B(m).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],y)}}function s(g){var m=g&&g.target&&g.target.dom7EventData||[];m.indexOf(g)<0&&m.unshift(g),i.apply(this,m)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[v]||(p.dom7Listeners[v]=[]),p.dom7Listeners[v].push({listener:i,proxyListener:s}),p.addEventListener(v,s,a)}}return this}function TA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var v=p[d];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,v.proxyListener,a),p.splice(d,1))}}return this}function iv(){var t=ms();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function av(){var t=ms();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function PA(){if(this.length>0){var t=ms(),e=Jp(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Hl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function uv(){for(var t=ms(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function sv(t,e){var n,r=ms();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function lv(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function jA(t){return B(wj(this,t))}function ka(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 cv(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 NA(t){var e,n,r=ms(),o=Jp(),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),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof ra){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function jr(){for(var t,e=Jp(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof ra)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function IA(t){var e,n,r=Jp();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof ra)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Vl(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?B(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return B(e)}function fv(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?B(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return B(e)}function Ul(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return B(e)}function Wl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!B(r[o]).is(t)||e.push(r[o]);return B(e)}function ql(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function Gl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}B.fn=ra.prototype;var mG="resize scroll".split(" ");function Ej(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)mG.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var LA=Ej("click"),Ba=Ej("focus"),yG="[object GeneratorFunction]",bG=/^(?:0|[1-9]\d*)$/;function wG(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var tm=Object.prototype,mE=tm.hasOwnProperty,Dj=tm.toString,EG=tm.propertyIsEnumerable,DG=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function CG(t,e){var n=Cj(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&K5(u)}(a)&&mE.call(a,"callee")&&(!EG.call(a,"callee")||Dj.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):[],r=n.length,o=!!r;for(var i in t)!e&&!mE.call(t,i)||o&&(i=="length"||OG(i,r))||n.push(i);return n}var RA,xG=(RA=function(t,e){return t&&SG(t,e,kG)},function(t,e){if(t==null)return t;if(!K5(t))return RA(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),SG=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[t?u:++o];if(n(i[s],s,i)===!1)break}return e}}();function AG(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||tm,e!==r)return DG(t);var e,n,r,o=[];for(var i in Object(t))mE.call(t,i)&&i!="constructor"&&o.push(i);return o}function OG(t,e){return!!(e=e??9007199254740991)&&(typeof t=="number"||bG.test(t))&&t>-1&&t%1==0&&t<e}var Cj=Array.isArray;function K5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?Dj.call(e):"";return n=="[object Function]"||n==yG}(t)}function kG(t){return K5(t)?CG(t):AG(t)}function BG(t){return t}var Y5=function(t,e){return(Cj(t)?wG:xG)(t,typeof e=="function"?e:BG)};let xj=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var _G=/^\s+|\s+$/g,FG=/^[-+]0x[0-9a-f]+$/i,TG=/^0b[01]+$/i,PG=/^0o[0-7]+$/i,jG=parseInt,NG=typeof le=="object"&&le&&le.Object===Object&&le,IG=typeof self=="object"&&self&&self.Object===Object&&self,LG=NG||IG||Function("return this")(),RG=Object.prototype.toString,MG=Math.max,zG=Math.min,Ny=function(){return LG.Date.now()};function $G(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(m,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function m(){var b=Ny();if(g(b))return y(b);u=setTimeout(m,function(w){var D=e-(w-s);return f?zG(D,i-(w-l)):D}(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Ny(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(m,e),d(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=MA(e)||0,dv(n)&&(c=!!n.leading,i=(f="maxWait"in n)?MG(MA(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Ny())},h}function dv(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function MA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&RG.call(r)=="[object Symbol]"}(t))return NaN;if(dv(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=dv(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(_G,"");var n=TG.test(t);return n||PG.test(t)?jG(t.slice(2),n?2:8):FG.test(t)?NaN:+t}var es=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return dv(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),$G(t,e,{leading:r,maxWait:e,trailing:o})};const HG={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},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 Yd(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const yE=Array.isArray;function ug(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Iy(t){return t===void 0}function Qn(t){return t!==void 0}const zA=Yd("",{},[],void 0,void 0);function Wc(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function VG(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const UG=["create","update","remove","destroy","pre","post"];function WG(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=e!==void 0?e:HG;for(const f of UG)for(const p of t){const d=p[f];d!==void 0&&n[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),v=d?"."+d.split(" ").join("."):"";return Yd(r.tagName(f).toLowerCase()+p+v,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=r.parentNode(f);r.removeChild(d,f)}}}function a(f,p){var d,v;let g,m=f.data;if(m!==void 0){const b=(d=m.hook)===null||d===void 0?void 0:d.init;Qn(b)&&(b(f),m=f.data)}const y=f.children,h=f.sel;if(h==="!")Iy(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,x=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(D,x)):h,O=f.elm=Qn(m)&&Qn(g=m.ns)?r.createElementNS(g,C,m):r.createElement(C,m);for(D<x&&O.setAttribute("id",h.slice(D+1,x)),w>0&&O.setAttribute("class",h.slice(x+1).replace(/\./g," ")),g=0;g<n.create.length;++g)n.create[g](zA,f);if(yE(y))for(g=0;g<y.length;++g){const R=y[g];R!=null&&r.appendChild(O,a(R,p))}else ug(f.text)&&r.appendChild(O,r.createTextNode(f.text));const F=f.data.hook;Qn(F)&&((v=F.create)===null||v===void 0||v.call(F,zA,f),F.insert&&p.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,p,d,v,g,m){for(;v<=g;++v){const y=d[v];y!=null&&r.insertBefore(f,a(y,m),p)}}function s(f){var p,d;const v=f.data;if(v!==void 0){(d=(p=v==null?void 0:v.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let g=0;g<n.destroy.length;++g)n.destroy[g](f);if(f.children!==void 0)for(let g=0;g<f.children.length;++g){const m=f.children[g];m!=null&&typeof m!="string"&&s(m)}}}function l(f,p,d,v){for(var g,m;d<=v;++d){let y,h;const b=p[d];if(b!=null)if(Qn(b.sel)){s(b),y=n.remove.length+1,h=i(b.elm,y);for(let D=0;D<n.remove.length;++D)n.remove[D](b,h);const w=(m=(g=b==null?void 0:b.data)===null||g===void 0?void 0:g.hook)===null||m===void 0?void 0:m.remove;Qn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,p,d){var v,g,m,y,h;const b=(v=p.data)===null||v===void 0?void 0:v.hook;(g=b==null?void 0:b.prepatch)===null||g===void 0||g.call(b,f,p);const w=p.elm=f.elm,D=f.children,x=p.children;if(f!==p){if(p.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,p);(y=(m=p.data.hook)===null||m===void 0?void 0:m.update)===null||y===void 0||y.call(m,f,p)}Iy(p.text)?Qn(D)&&Qn(x)?D!==x&&function(C,O,F,R){let H,M,K,U,W=0,G=0,nt=O.length-1,lt=O[0],st=O[nt],at=F.length-1,k=F[0],S=F[at];for(;W<=nt&&G<=at;)lt==null?lt=O[++W]:st==null?st=O[--nt]:k==null?k=F[++G]:S==null?S=F[--at]:Wc(lt,k)?(c(lt,k,R),lt=O[++W],k=F[++G]):Wc(st,S)?(c(st,S,R),st=O[--nt],S=F[--at]):Wc(lt,S)?(c(lt,S,R),r.insertBefore(C,lt.elm,r.nextSibling(st.elm)),lt=O[++W],S=F[--at]):Wc(st,k)?(c(st,k,R),r.insertBefore(C,st.elm,lt.elm),st=O[--nt],k=F[++G]):(H===void 0&&(H=VG(O,W,nt)),M=H[k.key],Iy(M)?r.insertBefore(C,a(k,R),lt.elm):(K=O[M],K.sel!==k.sel?r.insertBefore(C,a(k,R),lt.elm):(c(K,k,R),O[M]=void 0,r.insertBefore(C,K.elm,lt.elm))),k=F[++G]);(W<=nt||G<=at)&&(W>nt?(U=F[at+1]==null?null:F[at+1].elm,u(C,U,F,G,at,R)):l(C,O,W,nt))}(w,D,x,d):Qn(x)?(Qn(f.text)&&r.setTextContent(w,""),u(w,null,x,0,x.length-1,d)):Qn(D)?l(w,D,0,D.length-1):Qn(f.text)&&r.setTextContent(w,""):f.text!==p.text&&(Qn(D)&&l(w,D,0,D.length-1),r.setTextContent(w,p.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,v,g;const m=[];for(d=0;d<n.pre.length;++d)n.pre[d]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Wc(f,p)?c(f,p,m):(v=f.elm,g=r.parentNode(v),a(p,m),g!==null&&(r.insertBefore(g,p.elm,r.nextSibling(v)),l(g,[f],0,0))),d=0;d<m.length;++d)m[d].data.hook.insert(m[d]);for(d=0;d<n.post.length;++d)n.post[d]();return p}}function Sj(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&Sj(o,e[r].children,e[r].sel)}}function Kl(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),yE(n)?r=n:ug(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(yE(e)?r=e:ug(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)ug(r[i])&&(r[i]=Yd(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||Sj(a,r,t),Yd(t,a,r,o,void 0)}function $A(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const qG={create:$A,update:$A};function HA(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const GG={create:HA,update:HA},VA=/[A-Z]/g;function UA(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(VA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(VA,"-$&").toLowerCase(),i[r]))}const KG={create:UA,update:UA};function Aj(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)Aj(t[r],e,n)}function YG(t,e){const n=t.type,r=e.data.on;r&&r[n]&&Aj(r[n],e,t)}function Ly(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=e.listener=t.listener||function l(c){YG(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const XG={create:Ly,update:Ly,destroy:Ly};function WA(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const ZG={create:WA,update:WA},qA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Ry=!1;function JG(t,e,n){(function(r){qA(function(){qA(r)})})(function(){t[e]=n})}function GA(t,e){let n,r;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(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||JG(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const QG={pre:function(){Ry=!1},create:GA,update:GA,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;Ry||(t.elm.offsetLeft,Ry=!0);const o=t.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function Oj(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?Oj(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(Yd(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function bt(t,e,...n){const r=Oj(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?Kl(t,e,r[0].text):Kl(t,e,r)}bt||(bt={});var tK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kj="\\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",nK="[\\ud800-\\udfff]",KA="["+kj+"]",pv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Bj="\\d+",rK="[\\u2700-\\u27bf]",_j="[a-z\\xdf-\\xf6\\xf8-\\xff]",Fj="[^\\ud800-\\udfff"+kj+Bj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bE="\\ud83c[\\udffb-\\udfff]",Tj="[^\\ud800-\\udfff]",X5="(?:\\ud83c[\\udde6-\\uddff]){2}",Z5="[\\ud800-\\udbff][\\udc00-\\udfff]",sl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",YA="(?:"+_j+"|"+Fj+")",oK="(?:"+sl+"|"+Fj+")",XA="(?:"+pv+"|"+bE+")?",Pj="[\\ufe0e\\ufe0f]?"+XA+("(?:\\u200d(?:"+[Tj,X5,Z5].join("|")+")[\\ufe0e\\ufe0f]?"+XA+")*"),iK="(?:"+[rK,X5,Z5].join("|")+")"+Pj,aK="(?:"+[Tj+pv+"?",pv,X5,Z5,nK].join("|")+")",uK=RegExp("['’]","g"),sK=RegExp(pv,"g"),lK=RegExp(bE+"(?="+bE+")|"+aK+Pj,"g"),cK=RegExp([sl+"?"+_j+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[KA,sl,"$"].join("|")+")",oK+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[KA,sl+YA,"$"].join("|")+")",sl+"?"+YA+"+(?:['’](?:d|ll|m|re|s|t|ve))?",sl+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",Bj,iK].join("|"),"g"),fK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),dK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,pK=typeof le=="object"&&le&&le.Object===Object&&le,hK=typeof self=="object"&&self&&self.Object===Object&&self,gK=pK||hK||Function("return this")(),My,vK=(My={À:"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 My==null?void 0:My[t]});function jj(t){return fK.test(t)}function mK(t){return jj(t)?function(e){return e.match(lK)||[]}(t):function(e){return e.split("")}(t)}var yK=Object.prototype.toString,ZA=gK.Symbol,JA=ZA?ZA.prototype:void 0,QA=JA?JA.toString:void 0;function bK(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&yK.call(n)=="[object Symbol]"}(t))return QA?QA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function wK(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?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,n)}function sg(t){return t==null?"":bK(t)}var t7,EK=(t7=function(t,e,n){return e=e.toLowerCase(),t+(n?DK(sg(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o&&a&&(r=e[++i]);++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=sg(e),(n=r?void 0:n)===void 0?function(o){return dK.test(o)}(e)?function(o){return o.match(cK)||[]}(e):function(o){return o.match(tK)||[]}(e):e.match(n)||[]}(function(e){return(e=sg(e))&&e.replace(eK,vK).replace(sK,"")}(t).replace(uK,"")),t7,"")}),e7,DK=(e7="toUpperCase",function(t){var e=jj(t=sg(t))?mK(t):void 0,n=e?e[0]:t.charAt(0),r=e?wK(e,1).join(""):t.slice(1);return n[e7]()+r});for(var CK=EK,xK=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),zy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Nj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:xK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},J5={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},Yh=1;Yh<20;Yh++)J5["f"+Yh]=111+Yh;function Ij(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=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 p in zy)l[zy[p]]=!1;var d=!0,v=!1,g=void 0;try{for(var m,y=c[Symbol.iterator]();!(d=(m=y.next()).done);d=!0){var h=m.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=Lj(h),D=zy[w];if(h.length>1&&!D&&!Nj[h]&&!J5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=SK(h)),D&&(l[D]=!b||null)}}catch(x){v=!0,g=x}finally{try{!d&&y.return&&y.return()}finally{if(v)throw g}}return l}(i,e)}),o=function(i){return r.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 n==null?o:o(n)}function SK(t){return t=Lj(t),J5[t]||t.toUpperCase().charCodeAt(0)}function Lj(t){return t=t.toLowerCase(),t=Nj[t]||t}var AK=Ij,$y=function(t,e){return Ij(t,{byKey:!0},e)},OK=/^\s+|\s+$/g,kK=/^[-+]0x[0-9a-f]+$/i,BK=/^0b[01]+$/i,_K=/^0o[0-7]+$/i,FK=parseInt,TK=typeof le=="object"&&le&&le.Object===Object&&le,PK=typeof self=="object"&&self&&self.Object===Object&&self,jK=TK||PK||Function("return this")(),NK=Object.prototype.toString,IK=Math.max,LK=Math.min,Hy=function(){return jK.Date.now()};function wE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function n7(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&NK.call(r)=="[object Symbol]"}(t))return NaN;if(wE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=wE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(OK,"");var n=BK.test(t);return n||_K.test(t)?FK(t.slice(2),n?2:8):kK.test(t)?NaN:+t}var js,Rj=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function d(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(m,e),c?d(b):a}function g(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function m(){var b=Hy();if(g(b))return y(b);u=setTimeout(m,function(w){var D=e-(w-s);return f?LK(D,i-(w-l)):D}(b))}function y(b){return u=void 0,p&&r?d(b):(r=o=void 0,a)}function h(){var b=Hy(),w=g(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(m,e),d(s)}return u===void 0&&(u=setTimeout(m,e)),a}return e=n7(e)||0,wE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?IK(n7(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,r=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Hy())},h},Mj=ps(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",v="[object Set]",g="[object String]",m="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,G={};G[o]=G["[object Array]"]=G[h]=G[b]=G[i]=G[a]=G[w]=G[D]=G[x]=G[C]=G[O]=G[l]=G[c]=G[f]=G[d]=G[v]=G[g]=G[m]=G[F]=G[R]=G[H]=G[M]=!0,G["[object Error]"]=G[u]=G[y]=!1;var nt=typeof le=="object"&&le&&le.Object===Object&&le,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=nt||lt||Function("return this")(),at=e&&!e.nodeType&&e,k=at&&t&&!t.nodeType&&t,S=k&&k.exports===at;function P(_,z){return _.set(z[0],z[1]),_}function $(_,z){return _.add(z),_}function Y(_,z,J,ut){var Mt=-1,he=_?_.length:0;for(ut&&he&&(J=_[++Mt]);++Mt<he;)J=z(J,_[Mt],Mt,_);return J}function V(_){var z=!1;if(_!=null&&typeof _.toString!="function")try{z=!!(_+"")}catch{}return z}function it(_){var z=-1,J=Array(_.size);return _.forEach(function(ut,Mt){J[++z]=[Mt,ut]}),J}function gt(_,z){return function(J){return _(z(J))}}function vt(_){var z=-1,J=Array(_.size);return _.forEach(function(ut){J[++z]=ut}),J}var Dt=Array.prototype,q=Function.prototype,It=Object.prototype,At=st["__core-js_shared__"],dt=function(){var _=/[^.]+$/.exec(At&&At.keys&&At.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),Ot=q.toString,Fe=It.hasOwnProperty,$t=It.toString,ee=RegExp("^"+Ot.call(Fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=S?st.Buffer:void 0,wn=st.Symbol,zt=st.Uint8Array,Mn=gt(Object.getPrototypeOf,Object),Mr=Object.create,uo=It.propertyIsEnumerable,Ss=Dt.splice,Ka=Object.getOwnPropertySymbols,zr=ye?ye.isBuffer:void 0,so=gt(Object.keys,Object),Ho=lo(st,"DataView"),En=lo(st,"Map"),Dn=lo(st,"Promise"),Cn=lo(st,"Set"),Pn=lo(st,"WeakMap"),an=lo(Object,"create"),mr=fo(Ho),Fc=fo(En),yi=fo(Dn),Vo=fo(Cn),As=fo(Pn),Ya=wn?wn.prototype:void 0,Os=Ya?Ya.valueOf:void 0;function $r(_){var z=-1,J=_?_.length:0;for(this.clear();++z<J;){var ut=_[z];this.set(ut[0],ut[1])}}function yr(_){var z=-1,J=_?_.length:0;for(this.clear();++z<J;){var ut=_[z];this.set(ut[0],ut[1])}}function Uo(_){var z=-1,J=_?_.length:0;for(this.clear();++z<J;){var ut=_[z];this.set(ut[0],ut[1])}}function Hr(_){this.__data__=new yr(_)}function bi(_,z){var J=T(_)||function(re){return function(Wt){return function(Qe){return!!Qe&&typeof Qe=="object"}(Wt)&&I(Wt)}(re)&&Fe.call(re,"callee")&&(!uo.call(re,"callee")||$t.call(re)==o)}(_)?function(re,Wt){for(var Qe=-1,xn=Array(re);++Qe<re;)xn[Qe]=Wt(Qe);return xn}(_.length,String):[],ut=J.length,Mt=!!ut;for(var he in _)!z&&!Fe.call(_,he)||Mt&&(he=="length"||Th(he,ut))||J.push(he);return J}function _h(_,z,J){var ut=_[z];Fe.call(_,z)&&Ph(ut,J)&&(J!==void 0||z in _)||(_[z]=J)}function Jn(_,z){for(var J=_.length;J--;)if(Ph(_[J][0],z))return J;return-1}function Tc(_,z,J,ut,Mt,he,re){var Wt;if(ut&&(Wt=he?ut(_,Mt,he,re):ut(_)),Wt!==void 0)return Wt;if(!ne(_))return _;var Qe=T(_);if(Qe){if(Wt=function(yt){var Xt=yt.length,Ne=yt.constructor(Xt);return Xt&&typeof yt[0]=="string"&&Fe.call(yt,"index")&&(Ne.index=yt.index,Ne.input=yt.input),Ne}(_),!z)return function(yt,Xt){var Ne=-1,Lt=yt.length;for(Xt||(Xt=Array(Lt));++Ne<Lt;)Xt[Ne]=yt[Ne];return Xt}(_,Wt)}else{var xn=co(_),Xa=xn==u||xn==s;if(Z(_))return function(yt,Xt){if(Xt)return yt.slice();var Ne=new yt.constructor(yt.length);return yt.copy(Ne),Ne}(_,z);if(xn==f||xn==o||Xa&&!he){if(V(_))return he?_:{};if(Wt=function(yt){return typeof yt.constructor!="function"||wi(yt)?{}:(Xt=Mn(yt),ne(Xt)?Mr(Xt):{});var Xt}(Xa?{}:_),!z)return function(yt,Xt){return Fh(yt,Pc(yt),Xt)}(_,function(yt,Xt){return yt&&Fh(Xt,Pt(Xt),yt)}(Wt,_))}else{if(!G[xn])return he?_:{};Wt=function(yt,Xt,Ne,Lt){var qt=yt.constructor;switch(Xt){case h:return ks(yt);case i:case a:return new qt(+yt);case b:return function(Gt,Te){var jn=Te?ks(Gt.buffer):Gt.buffer;return new Gt.constructor(jn,Gt.byteOffset,Gt.byteLength)}(yt,Lt);case w:case D:case x:case C:case O:case F:case R:case H:case M:return function(Gt,Te){var jn=Te?ks(Gt.buffer):Gt.buffer;return new Gt.constructor(jn,Gt.byteOffset,Gt.length)}(yt,Lt);case l:return function(Gt,Te,jn){return Y(Te?jn(it(Gt),!0):it(Gt),P,new Gt.constructor)}(yt,Lt,Ne);case c:case g:return new qt(yt);case d:return function(Gt){var Te=new Gt.constructor(Gt.source,K.exec(Gt));return Te.lastIndex=Gt.lastIndex,Te}(yt);case v:return function(Gt,Te,jn){return Y(Te?jn(vt(Gt),!0):vt(Gt),$,new Gt.constructor)}(yt,Lt,Ne);case m:return function(Gt){return Os?Object(Os.call(Gt)):{}}(yt)}}(_,xn,Tc,z)}}re||(re=new Hr);var Go=re.get(_);if(Go)return Go;if(re.set(_,Wt),!Qe)var Ei=J?function(yt){return function(Xt,Ne,Lt){var qt=Ne(Xt);return T(Xt)?qt:function(Gt,Te){for(var jn=-1,zn=Te.length,Vr=Gt.length;++jn<zn;)Gt[Vr+jn]=Te[jn];return Gt}(qt,Lt(Xt))}(yt,Pt,Pc)}(_):Pt(_);return function(yt,Xt){for(var Ne=-1,Lt=yt?yt.length:0;++Ne<Lt&&Xt(yt[Ne],Ne,yt)!==!1;);}(Ei||_,function(yt,Xt){Ei&&(yt=_[Xt=yt]),_h(Wt,Xt,Tc(yt,z,J,ut,Xt,_,re))}),Wt}function Wo(_){return!(!ne(_)||function(z){return!!dt&&dt in z}(_))&&(ht(_)||V(_)?ee:U).test(fo(_))}function ks(_){var z=new _.constructor(_.byteLength);return new zt(z).set(new zt(_)),z}function Fh(_,z,J,ut){J||(J={});for(var Mt=-1,he=z.length;++Mt<he;){var re=z[Mt],Wt=ut?ut(J[re],_[re],re,J,_):void 0;_h(J,re,Wt===void 0?_[re]:Wt)}return J}function qo(_,z){var J,ut,Mt=_.__data__;return((ut=typeof(J=z))=="string"||ut=="number"||ut=="symbol"||ut=="boolean"?J!=="__proto__":J===null)?Mt[typeof z=="string"?"string":"hash"]:Mt.map}function lo(_,z){var J=function(ut,Mt){return ut==null?void 0:ut[Mt]}(_,z);return Wo(J)?J:void 0}$r.prototype.clear=function(){this.__data__=an?an(null):{}},$r.prototype.delete=function(_){return this.has(_)&&delete this.__data__[_]},$r.prototype.get=function(_){var z=this.__data__;if(an){var J=z[_];return J===n?void 0:J}return Fe.call(z,_)?z[_]:void 0},$r.prototype.has=function(_){var z=this.__data__;return an?z[_]!==void 0:Fe.call(z,_)},$r.prototype.set=function(_,z){return this.__data__[_]=an&&z===void 0?n:z,this},yr.prototype.clear=function(){this.__data__=[]},yr.prototype.delete=function(_){var z=this.__data__,J=Jn(z,_);return!(J<0)&&(J==z.length-1?z.pop():Ss.call(z,J,1),!0)},yr.prototype.get=function(_){var z=this.__data__,J=Jn(z,_);return J<0?void 0:z[J][1]},yr.prototype.has=function(_){return Jn(this.__data__,_)>-1},yr.prototype.set=function(_,z){var J=this.__data__,ut=Jn(J,_);return ut<0?J.push([_,z]):J[ut][1]=z,this},Uo.prototype.clear=function(){this.__data__={hash:new $r,map:new(En||yr),string:new $r}},Uo.prototype.delete=function(_){return qo(this,_).delete(_)},Uo.prototype.get=function(_){return qo(this,_).get(_)},Uo.prototype.has=function(_){return qo(this,_).has(_)},Uo.prototype.set=function(_,z){return qo(this,_).set(_,z),this},Hr.prototype.clear=function(){this.__data__=new yr},Hr.prototype.delete=function(_){return this.__data__.delete(_)},Hr.prototype.get=function(_){return this.__data__.get(_)},Hr.prototype.has=function(_){return this.__data__.has(_)},Hr.prototype.set=function(_,z){var J=this.__data__;if(J instanceof yr){var ut=J.__data__;if(!En||ut.length<199)return ut.push([_,z]),this;J=this.__data__=new Uo(ut)}return J.set(_,z),this};var Pc=Ka?gt(Ka,Object):function(){return[]},co=function(_){return $t.call(_)};function Th(_,z){return!!(z=z??r)&&(typeof _=="number"||W.test(_))&&_>-1&&_%1==0&&_<z}function wi(_){var z=_&&_.constructor;return _===(typeof z=="function"&&z.prototype||It)}function fo(_){if(_!=null){try{return Ot.call(_)}catch{}try{return _+""}catch{}}return""}function Ph(_,z){return _===z||_!=_&&z!=z}(Ho&&co(new Ho(new ArrayBuffer(1)))!=b||En&&co(new En)!=l||Dn&&co(Dn.resolve())!=p||Cn&&co(new Cn)!=v||Pn&&co(new Pn)!=y)&&(co=function(_){var z=$t.call(_),J=z==f?_.constructor:void 0,ut=J?fo(J):void 0;if(ut)switch(ut){case mr:return b;case Fc:return l;case yi:return p;case Vo:return v;case As:return y}return z});var T=Array.isArray;function I(_){return _!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(_.length)&&!ht(_)}var Z=zr||function(){return!1};function ht(_){var z=ne(_)?$t.call(_):"";return z==u||z==s}function ne(_){var z=typeof _;return!!_&&(z=="object"||z=="function")}function Pt(_){return I(_)?bi(_):function(z){if(!wi(z))return so(z);var J=[];for(var ut in Object(z))Fe.call(z,ut)&&ut!="constructor"&&J.push(ut);return J}(_)}t.exports=function(_){return Tc(_,!0,!0)}});function r7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var RK=0;function MK(t){return"__private_"+RK+++"_"+t}function zK(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
- * Takes a string with placeholder variables like `%{smart_count} file selected`
- * and replaces it with values from options `{smart_count: 5}`
- *
- * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
- * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
- *
- * @param {string} phrase that needs interpolation, with placeholders
- * @param {object} options with values that will be used to replace placeholders
- * @returns {any[]} interpolated
- */function o7(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=zK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var zj=(js=MK("apply"),class{constructor(t){Object.defineProperty(this,js,{value:$K}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(r7(this,js)[js],this):r7(this,js)[js](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return o7(n[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 o7(n,e)}});function $K(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 $j=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],v=Object.keys(e),g=0,m=v.length;g<m;g++){var y=v[g];if(y==="*"&&(f=f.concat(e[y])),d.length===2&&d[0]===y){f=f.concat(e[y]);break}}return f}(n);l.length&&function(c,f,p){for(var d=0,v=f.length;d<v&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)}(n,l,[r,o,i,a,u,s])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},t},HK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:VK}=HK,i7=t=>crypto.getRandomValues(new Uint8Array(t)),a7=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var UK={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>a7(t,e,i7),customRandom:a7,urlAlphabet:VK,random:i7},Vy=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function Hj(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Hj.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var WK=/[\/\+\.]/,qK=function(t,e){function n(r){var o=function(i,a,u){var s=new Hj(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,WK);return o&&o.length>=2}return e?n(e.split(";")[0]):n},GK=0;function KK(t){return"__private_"+GK+++"_"+t}var Uy=KK("publish");class Vj{constructor(){Object.defineProperty(this,Uy,{value:YK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n={...this.state},r={...this.state,...e};this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,Uy)[Uy](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function YK(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}Vj.VERSION="2.0.3";var u7=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)}},s7={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 l7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var XK=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 n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function Wy(t){return t<10?`0${t}`:t.toString()}var Xh=function(){const t=new Date;return`${Wy(t.getHours())}:${Wy(t.getMinutes())}:${Wy(t.getSeconds())}`},Uj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Xh()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${Xh()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${Xh()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Xh()}]`,...e)}}},ZK={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}"}}},Wj=UK;let qj,Gj;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 JK=0;function Je(t){return"__private_"+JK+++"_"+t}const{nanoid:QK}=Wj,{justErrorsLogger:tY,debugLogger:eY}=Uj;class Do 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 nY extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var gn=Je("plugins"),qc=Je("storeUnsubscribe"),Yo=Je("emitter"),mu=Je("preProcessors"),yu=Je("uploaders"),ei=Je("postProcessors"),vd=Je("checkRestrictions"),qy=Je("checkMinNumberOfFiles"),Xd=Je("checkRequiredMetaFieldsOnFile"),Gy=Je("checkRequiredMetaFields"),tn=Je("showOrLogErrorAndThrow"),Gc=Je("assertNewUploadAllowed"),Kc=Je("checkAndCreateFileStateObject"),Yc=Je("startIfAutoProceed"),Ky=Je("addListeners"),Wr=Je("updateOnlineStatus"),Xo=Je("createUpload"),Yy=Je("getUpload"),Cu=Je("removeUpload"),Zo=Je("runUpload");qj=Symbol.for("uppy test: getPlugins"),Gj=Symbol.for("uppy test: createUpload");class Kj{constructor(e){Object.defineProperty(this,Zo,{value:gY}),Object.defineProperty(this,Cu,{value:hY}),Object.defineProperty(this,Yy,{value:pY}),Object.defineProperty(this,Xo,{value:dY}),Object.defineProperty(this,Ky,{value:fY}),Object.defineProperty(this,Yc,{value:cY}),Object.defineProperty(this,Kc,{value:lY}),Object.defineProperty(this,Gc,{value:sY}),Object.defineProperty(this,tn,{value:uY}),Object.defineProperty(this,Gy,{value:aY}),Object.defineProperty(this,Xd,{value:iY}),Object.defineProperty(this,qy,{value:oY}),Object.defineProperty(this,vd,{value:rY}),Object.defineProperty(this,gn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,qc,{writable:!0,value:void 0}),Object.defineProperty(this,Yo,{writable:!0,value:$j()}),Object.defineProperty(this,mu,{writable:!0,value:new Set}),Object.defineProperty(this,yu,{writable:!0,value:new Set}),Object.defineProperty(this,ei,{writable:!0,value:new Set}),Object.defineProperty(this,Wr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=ZK;const n={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:r=>r,onBeforeUpload:r=>r,store:new Vj,logger:tY,infoTimeout:5e3};if(this.opts={...n,...e,restrictions:{...n.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=eY),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=es(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:XK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ft(this,qc)[qc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ft(this,Ky)[Ky]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];ft(this,Yo)[Yo].emit(e,...r)}on(e,n){return ft(this,Yo)[Yo].on(e,n),this}once(e,n){return ft(this,Yo)[Yo].once(e,n),this}off(e,n){return ft(this,Yo)[Yo].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){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],...n}}})}i18nInit(){const e=new zj([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(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n={...this.getState().files},r={};Object.keys(n).forEach(o=>{const i={...n[o]};i.progress={...i.progress,...e},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){ft(this,mu)[mu].add(e)}removePreProcessor(e){return ft(this,mu)[mu].delete(e)}addPostProcessor(e){ft(this,ei)[ei].add(e)}removePostProcessor(e){return ft(this,ei)[ei].delete(e)}addUploader(e){ft(this,yu)[yu].add(e)}removeUploader(e){return ft(this,yu)[yu].delete(e)}setMeta(e){const n={...this.getState().meta,...e},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...e}}}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r={...this.getState().files};if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o={...r[e].meta,...n};r[e]={...r[e],meta:o},this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(v=>{let{progress:g}=v;return!g.uploadComplete&&g.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),p=i.filter(v=>!v.isPaused),d=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:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&d.length===0,isAllErrored:!!r&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(e,n){try{return ft(this,vd)[vd](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){ft(this,Gc)[Gc](e);const{files:n}=this.getState();let r=ft(this,Kc)[Kc](n,e);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:{...n,[r.id]:r}}),this.emit("file-added",r),this.emit("files-added",[r]),this.log(`Added file: ${r.name}, ${r.id}, mime type: ${r.type}`),ft(this,Yc)[Yc](),r.id}addFiles(e){ft(this,Gc)[Gc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<e.length;i++)try{let a=ft(this,Kc)[Kc](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
- id: ${r[i].id}
- type: ${r[i].type}`)}),r.length>0&&ft(this,Yc)[Yc](),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,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}: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],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!0};e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r={...e[n],isPaused:!1,error:null};e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i={...e[o],isPaused:!1,error:null};e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=ft(this,Xo)[Xo](n,{forceAllowNewUpload:!0});return ft(this,Zo)[Zo](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"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 n=ft(this,Xo)[Xo]([e],{forceAllowNewUpload:!0});return ft(this,Zo)[Zo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.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 n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=n.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/n.length;o+=i*r.length;let a=0;n.forEach(s=>{a+=s.progress.bytesUploaded}),r.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,n){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 r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.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}`),r.type in ft(this,gn)[gn]?ft(this,gn)[gn][r.type].push(r):ft(this,gn)[gn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(ft(this,gn)[gn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[qj](e){return ft(this,gn)[gn][e]}iteratePlugins(e){Object.values(ft(this,gn)[gn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=ft(this,gn)[gn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,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,qc)[qc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ft(this,Wr)[Wr]),window.removeEventListener("offline",ft(this,Wr)[Wr]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?ft(this,Zo)[Zo](e):(ft(this,Cu)[Cu](e),Promise.reject(new Error("Nonexistent upload")))}[Gj](){return ft(this,Xo)[Xo](...arguments)}addResultData(e,n){if(!ft(this,Yy)[Yy](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o={...r[e],result:{...r[e].result,...n}};this.setState({currentUploads:{...r,[e]:o}})}upload(){var e;(e=ft(this,gn)[gn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{ft(this,qy)[qy](n),ft(this,Gy)[Gy](n)}).catch(o=>{ft(this,tn)[tn](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(n).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ft(this,Xo)[Xo](a);return ft(this,Zo)[Zo](u)}).catch(o=>{ft(this,tn)[tn](o,{showInformer:!1})}))}}function rY(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new Do(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&qK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new Do(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 Do(this.i18n("exceedsSize",{size:Vy(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new Do(this.i18n("exceedsSize",{size:Vy(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new Do(this.i18n("inferiorSize",{size:Vy(r)}))}function oY(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new Do(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function iY(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new Do(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),ft(this,tn)[tn](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function aY(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return ft(this,Xd)[Xd](r)});if(e.length)throw new nY(e,`${this.i18n("missingRequiredMetaField")}`)}function uY(t,e){let{showInformer:n=!0,file:r=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",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function sY(t){const{allowNewUpload:e}=this.getState();e===!1&&ft(this,tn)[tn](new Do(this.i18n("noMoreFilesAllowed")),{file:t})}function lY(t,e){const n=function(f){var p;if(f.type)return f.type;const d=f.name?(p=u7(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in s7?s7[d]:"application/octet-stream"}(e),r=function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=u7(r).extension,i=Boolean(e.isRemote),a=function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${l7(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${l7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p}({...e,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new Do(this.i18n("noDuplicates",{fileName:r}));ft(this,tn)[tn](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,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,tn)[tn](new Do("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(p=>t[p]);ft(this,vd)[vd](l,f)}catch(f){ft(this,tn)[tn](f,{file:l})}return l}function cY(){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 fY(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),ft(this,tn)[tn](o,{throwErr:!1})}else ft(this,tn)[tn](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...r,postprocess:ft(this,ei)[ei].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:n}}):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 n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:n}}):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 n={...this.getState().files};n[e.id]={...n[e.id],progress:{...n[e.id].progress}},delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&ft(this,Xd)[Xd](e)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ft(this,Wr)[Wr]),window.addEventListener("offline",ft(this,Wr)[Wr]),setTimeout(ft(this,Wr)[Wr],3e3))}function dY(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=QK();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 pY(t){const{currentUploads:e}=this.getState();return e[t]}function hY(t){const e={...this.getState().currentUploads};delete e[t],this.setState({currentUploads:e})}async function gY(t){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...ft(this,mu)[mu],...ft(this,yu)[yu],...ft(this,ei)[ei]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...e,[t]:s}}),await u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),ft(this,Cu)[Cu](t),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.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,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),ft(this,Cu)[Cu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i}Kj.VERSION="2.1.3";var Yj=Kj,vY=ps(function(t,e){var n,r,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(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 g(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?n.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 m(k,it,$,Y,null)}function m(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&&r.vnode!=null&&r.vnode(V),V}function y(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)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var k;x.__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=d({},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 C(k,S,P,$,Y,V,it,gt,vt,Dt){var q,It,At,dt,Ot,Fe,$t,ee=$&&$.__k||f,ye=ee.length;for(P.__k=[],q=0;q<S.length;q++)if((dt=P.__k[q]=(dt=S[q])==null||typeof dt=="boolean"?null:typeof dt=="string"||typeof dt=="number"||typeof dt=="bigint"?m(null,dt,null,null,dt):Array.isArray(dt)?m(y,{children:dt},null,null,null):dt.__b>0?m(dt.type,dt.props,dt.key,null,dt.__v):dt)!=null){if(dt.__=P,dt.__b=P.__b+1,(At=ee[q])===null||At&&dt.key==At.key&&dt.type===At.type)ee[q]=void 0;else for(It=0;It<ye;It++){if((At=ee[It])&&dt.key==At.key&&dt.type===At.type){ee[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?(Fe==null&&(Fe=Ot),typeof dt.type=="function"&&dt.__k===At.__k?dt.__d=vt=O(dt,vt,k):vt=F(k,dt,At,ee,Ot,vt),typeof P.type=="function"&&(P.__d=vt)):vt&&At.__e==vt&&vt.parentNode!=k&&(vt=b(At))}for(P.__e=Fe,q=ye;q--;)ee[q]!=null&&(typeof P.type=="function"&&ee[q].__e!=null&&ee[q].__e==P.__d&&(P.__d=b($,q+1)),lt(ee[q],ee[q]));if($t)for(q=0;q<$t.length;q++)nt($t[q],$t[++q],$t[++q])}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):F(P,$,$,Y,$.__e,S));return S}function F(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"||p.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](r.event?r.event(k):k)}function K(k){this.l[k.type+!0](r.event?r.event(k):k)}function U(k,S,P,$,Y,V,it,gt,vt){var Dt,q,It,At,dt,Ot,Fe,$t,ee,ye,wn,zt=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=r.__b)&&Dt(S);try{t:if(typeof zt=="function"){if($t=S.props,ee=(Dt=zt.contextType)&&$[Dt.__c],ye=Dt?ee?ee.props.value:Dt.__:$,P.__c?Fe=(q=S.__c=P.__c).__=q.__E:("prototype"in zt&&zt.prototype.render?S.__c=q=new zt($t,ye):(S.__c=q=new h($t,ye),q.constructor=zt,q.render=st),ee&&ee.sub(q),q.props=$t,q.state||(q.state={}),q.context=ye,q.__n=$,It=q.__d=!0,q.__h=[]),q.__s==null&&(q.__s=q.state),zt.getDerivedStateFromProps!=null&&(q.__s==q.state&&(q.__s=d({},q.__s)),d(q.__s,zt.getDerivedStateFromProps($t,q.__s))),At=q.props,dt=q.state,It)zt.getDerivedStateFromProps==null&&q.componentWillMount!=null&&q.componentWillMount(),q.componentDidMount!=null&&q.__h.push(q.componentDidMount);else{if(zt.getDerivedStateFromProps==null&&$t!==At&&q.componentWillReceiveProps!=null&&q.componentWillReceiveProps($t,ye),!q.__e&&q.shouldComponentUpdate!=null&&q.shouldComponentUpdate($t,q.__s,ye)===!1||S.__v===P.__v){q.props=$t,q.state=q.__s,S.__v!==P.__v&&(q.__d=!1),q.__v=S,S.__e=P.__e,S.__k=P.__k,S.__k.forEach(function(Mn){Mn&&(Mn.__=S)}),q.__h.length&&it.push(q);break t}q.componentWillUpdate!=null&&q.componentWillUpdate($t,q.__s,ye),q.componentDidUpdate!=null&&q.__h.push(function(){q.componentDidUpdate(At,dt,Ot)})}q.context=ye,q.props=$t,q.state=q.__s,(Dt=r.__r)&&Dt(S),q.__d=!1,q.__v=S,q.__P=k,Dt=q.render(q.props,q.state,q.context),q.state=q.__s,q.getChildContext!=null&&($=d(d({},$),q.getChildContext())),It||q.getSnapshotBeforeUpdate==null||(Ot=q.getSnapshotBeforeUpdate(At,dt)),wn=Dt!=null&&Dt.type===y&&Dt.key==null?Dt.props.children:Dt,C(k,Array.isArray(wn)?wn:[wn],S,P,$,Y,V,it,gt,vt),q.base=S.__e,S.__h=null,q.__h.length&&it.push(q),Fe&&(q.__E=q.__=null),q.__e=!1}else V==null&&S.__v===P.__v?(S.__k=P.__k,S.__e=P.__e):S.__e=G(P.__e,S,P,$,Y,V,it,vt);(Dt=r.diffed)&&Dt(S)}catch(Mn){S.__v=null,(vt||V!=null)&&(S.__e=gt,S.__h=!!vt,V[V.indexOf(gt)]=null),r.__e(Mn,S,P)}}function W(k,S){r.__c&&r.__c(S,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function($){$.call(P)})}catch($){r.__e($,P.__v)}})}function G(k,S,P,$,Y,V,it,gt){var vt,Dt,q,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&&n.call(k.childNodes),Dt=(It=P.props||c).dangerouslySetInnerHTML,q=At.dangerouslySetInnerHTML,!gt){if(V!=null)for(It={},Ot=0;Ot<k.attributes.length;Ot++)It[k.attributes[Ot].name]=k.attributes[Ot].value;(q||Dt)&&(q&&(Dt&&q.__html==Dt.__html||q.__html===k.innerHTML)||(k.innerHTML=q&&q.__html||""))}if(function(Fe,$t,ee,ye,wn){var zt;for(zt in ee)zt==="children"||zt==="key"||zt in $t||H(Fe,zt,null,ee[zt],ye);for(zt in $t)wn&&typeof $t[zt]!="function"||zt==="children"||zt==="key"||zt==="value"||zt==="checked"||ee[zt]===$t[zt]||H(Fe,zt,$t[zt],ee[zt],ye)}(k,At,It,Y,gt),q)S.__k=[];else if(Ot=S.props.children,C(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 nt(k,S,P){try{typeof k=="function"?k(S):k.current=S}catch($){r.__e($,P)}}function lt(k,S,P){var $,Y;if(r.unmount&&r.unmount(k),($=k.ref)&&($.current&&$.current!==k.__e||nt($,null,S)),($=k.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){r.__e(V,S)}$.base=$.__P=null}if($=k.__k)for(Y=0;Y<$.length;Y++)$[Y]&<($[Y],S,typeof k.type!="function");P||k.__e==null||v(k.__e),k.__e=k.__d=void 0}function st(k,S,P){return this.constructor(k,P)}function at(k,S,P){var $,Y,V;r.__&&r.__(k,S),Y=($=typeof P=="function")?null:P&&P.__k||S.__k,V=[],U(S,k=(!$&&P||S).__k=g(y,null,[k]),Y||c,c,S.ownerSVGElement!==void 0,!$&&P?[P]:Y?null:S.firstChild?n.call(S.childNodes):null,V,!$&&P?P:Y?Y.__e:S.firstChild,$),W(V,k)}n=f.slice,r={__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=d({},this.state),typeof k=="function"&&(k=k(d({},P),this.props)),k&&d(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=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,e.Component=h,e.Fragment=y,e.cloneElement=function(k,S,P){var $,Y,V,it=d({},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?n.call(arguments,2):P),m(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&>.call(it)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=g,e.createRef=function(){return{current:null}},e.h=g,e.hydrate=function k(S,P){at(S,P,k)},e.isValidElement=i,e.options=r,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}}),mY=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},Q5=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 zj([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 c7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var yY=0;function bY(t){return"__private_"+yY+++"_"+t}const{render:f7}=vY;var Xc=bY("updateUI");class tD extends Q5{constructor(){super(...arguments),Object.defineProperty(this,Xc,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=mY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return c7(this,Xc)[Xc]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(f7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),f7(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 tD)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 ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;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 n,r;this.el!=null&&((n=(r=c7(this,Xc))[Xc])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var wY=tD;const{debugLogger:EY}=Uj;var id=Yj,DY=Yj,CY=wY,xY=Q5,SY=EY;id.Uppy=DY,id.UIPlugin=CY,id.BasePlugin=xY,id.debugLogger=SY;class AY extends Error{constructor(e,n){n===void 0&&(n=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=n}}var eD=AY,Xy=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new eD(t)})};class OY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Zh,Ai,mo,Oi,d7,kY=OY;function go(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var BY=0;function Zy(t){return"__private_"+BY+++"_"+t}async function Jy(t){if(t.status===401)throw new kY;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=await e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e}var Qy=(Ai=Zy("getPostResponseFunc"),mo=Zy("getUrl"),Oi=Zy("errorHandler"),d7=Zh=class Xj{constructor(e,n){Object.defineProperty(this,Oi,{value:FY}),Object.defineProperty(this,mo,{value:_Y}),Object.defineProperty(this,Ai,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,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(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve({...Xj.defaultHeaders,...e})}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(go(this,mo)[mo](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>Xy(go(this,mo)[mo](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(go(this,Ai)[Ai](n)).then(Jy).catch(go(this,Oi)[Oi]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>Xy(go(this,mo)[mo](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(go(this,Ai)[Ai](r)).then(Jy).catch(go(this,Oi)[Oi](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>Xy(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(go(this,Ai)[Ai](r)).then(Jy).catch(go(this,Oi)[Oi](o,e))}},Zh.VERSION="2.0.4",Zh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Zh.VERSION}`},d7);function _Y(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function FY(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${go(this,mo)[mo](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var TY={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},po,ki,br,Sn,Jh;let p7,h7;function Ve(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var PY=0;function Zc(t){return"__private_"+PY+++"_"+t}var jY=(po=Zc("queued"),ki=Zc("emitter"),br=Zc("isOpen"),Sn=Zc("socket"),Jh=Zc("handleMessage"),p7=Symbol.for("uppy test: getSocket"),h7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,po,{writable:!0,value:[]}),Object.defineProperty(this,ki,{writable:!0,value:$j()}),Object.defineProperty(this,br,{writable:!0,value:!1}),Object.defineProperty(this,Sn,{writable:!0,value:void 0}),Object.defineProperty(this,Jh,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return Ve(this,br)[br]}[p7](){return Ve(this,Sn)[Sn]}[h7](){return Ve(this,po)[po]}open(){Ve(this,Sn)[Sn]=new WebSocket(this.opts.target),Ve(this,Sn)[Sn].onopen=()=>{for(Ve(this,br)[br]=!0;Ve(this,po)[po].length>0&&Ve(this,br)[br];){const t=Ve(this,po)[po].shift();this.send(t.action,t.payload)}},Ve(this,Sn)[Sn].onclose=()=>{Ve(this,br)[br]=!1},Ve(this,Sn)[Sn].onmessage=Ve(this,Jh)[Jh]}close(){var t;(t=Ve(this,Sn)[Sn])==null||t.close()}send(t,e){Ve(this,br)[br]?Ve(this,Sn)[Sn].send(JSON.stringify({action:t,payload:e})):Ve(this,po)[po].push({action:t,payload:e})}on(t,e){Ve(this,ki)[ki].on(t,e)}emit(t,e){Ve(this,ki)[ki].emit(t,e)}once(t,e){Ve(this,ki)[ki].once(t,e)}}),NY={RequestClient:Qy,Provider:class extends Qy{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.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,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...e,...r}})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),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,n){if(t.type="acquirer",t.files=[],n&&(t.opts={...n,...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 r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}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||TY}},SearchProvider:class extends Qy{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:jY},Bi,Ns,IY=es(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Jc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var LY=0;function g7(t){return"__private_"+LY+++"_"+t}var v7=(Bi=g7("emitter"),Ns=g7("events"),class{constructor(t){Object.defineProperty(this,Bi,{writable:!0,value:void 0}),Object.defineProperty(this,Ns,{writable:!0,value:[]}),Jc(this,Bi)[Bi]=t}on(t,e){return Jc(this,Ns)[Ns].push([t,e]),Jc(this,Bi)[Bi].on(t,e)}remove(){for(const[t,e]of Jc(this,Ns)[Ns].splice(0))Jc(this,Bi)[Bi].off(t,e)}});function wr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var RY=0;function em(t){return"__private_"+RY+++"_"+t}var Jo=em("aliveTimer"),tu=em("isDone"),Qc=em("onTimedOut"),eu=em("timeout"),m7=class{constructor(t,e){Object.defineProperty(this,Jo,{writable:!0,value:void 0}),Object.defineProperty(this,tu,{writable:!0,value:!1}),Object.defineProperty(this,Qc,{writable:!0,value:void 0}),Object.defineProperty(this,eu,{writable:!0,value:void 0}),wr(this,eu)[eu]=t,wr(this,Qc)[Qc]=e}progress(){wr(this,tu)[tu]||wr(this,eu)[eu]>0&&(clearTimeout(wr(this,Jo)[Jo]),wr(this,Jo)[Jo]=setTimeout(wr(this,Qc)[Qc],wr(this,eu)[eu]))}done(){wr(this,tu)[tu]||(clearTimeout(wr(this,Jo)[Jo]),wr(this,Jo)[Jo]=null,wr(this,tu)[tu]=!0)}};function qe(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var MY=0;function ys(t){return"__private_"+MY+++"_"+t}function zY(){return new Error("Cancelled")}var er=ys("activeRequests"),In=ys("queuedHandlers"),md=ys("call"),ad=ys("queueNext"),EE=ys("next"),tb=ys("queue"),DE=ys("dequeue");function $Y(t){qe(this,er)[er]+=1;let e,n=!1;try{e=t()}catch(r){throw qe(this,er)[er]-=1,r}return{abort:()=>{n||(n=!0,qe(this,er)[er]-=1,e(),qe(this,ad)[ad]())},done:()=>{n||(n=!0,qe(this,er)[er]-=1,qe(this,ad)[ad]())}}}function HY(){queueMicrotask(()=>qe(this,EE)[EE]())}function VY(){if(qe(this,er)[er]>=this.limit||qe(this,In)[In].length===0)return;const t=qe(this,In)[In].shift(),e=qe(this,md)[md](t.fn);t.abort=e.abort,t.done=e.done}function UY(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{qe(this,DE)[DE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=qe(this,In)[In].findIndex(o=>n.priority>o.priority);return r===-1?qe(this,In)[In].push(n):qe(this,In)[In].splice(r,0,n),n}function WY(t){const e=qe(this,In)[In].indexOf(t);e!==-1&&qe(this,In)[In].splice(e,1)}var qY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,DE,{value:WY}),Object.defineProperty(this,tb,{value:UY}),Object.defineProperty(this,EE,{value:VY}),Object.defineProperty(this,ad,{value:HY}),Object.defineProperty(this,md,{value:$Y}),Object.defineProperty(this,er,{writable:!0,value:0}),Object.defineProperty(this,In,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return qe(this,er)[er]<this.limit?qe(this,md)[md](t):qe(this,tb)[tb](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=zY()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},y7,b7,Zj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},GY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:KY}=Wj,{Provider:YY,RequestClient:XY,Socket:ZY}=NY,{RateLimitedQueue:JY,internalRateLimitedQueue:eb}=qY;function w7(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Zj(t)?(n=new eD(n,t),n):(n.request=t,n)}function E7(t){return t.data.slice(0,t.data.size,t.meta.type)}var QY=(b7=y7=class extends Q5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=GY;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return Zj(o)&&(i=new eD(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...e},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),eb in this.opts?this.requests=this.opts[eb]:this.requests=new JY(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:n}=this.opts,r={...this.opts,...e||{},...t.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=E7(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=E7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new v7(this.uppy);const s=new m7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=KY();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),r.validateStatus(f.target.status,u.responseText,u)){const g=r.getResponseData(u.responseText,u),m=g[r.responseUrlFieldName],y={status:f.target.status,body:g,uploadURL:m};return this.uppy.emit("upload-success",t,y),m&&this.uppy.log(`Download ${t.name} from ${m}`),o(t)}const p=r.getResponseData(u.responseText,u),d=w7(u,r.getResponseError(u.responseText,u)),v={status:f.target.status,body:p};return this.uppy.emit("upload-error",t,d,v),i(d)}),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=w7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),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((n,r)=>{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?YY:XY)(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 ZY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new v7(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`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=>IY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),p=f[e.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,p=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(p)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new m7(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(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 p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return t.forEach(v=>{this.uppy.emit("upload-success",v,d)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(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((n,r)=>{const o=parseInt(r,10)+1,i=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&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[eb]||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(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.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)}},y7.VERSION="2.0.6",b7),D7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qp(t){var e={exports:{}};return t(e,e.exports),e.exports}var _i,lg,Qh=function(t){return t&&t.Math==Math&&t},X=Qh(typeof globalThis=="object"&&globalThis)||Qh(typeof window=="object"&&window)||Qh(typeof self=="object"&&self)||Qh(typeof D7=="object"&&D7)||function(){return this}()||Function("return this")(),tX=Object.defineProperty,nD=function(t,e){try{tX(X,t,{value:e,configurable:!0,writable:!0})}catch{X[t]=e}return e},ca=X["__core-js_shared__"]||nD("__core-js_shared__",{}),rD=Qp(function(t){(t.exports=function(e,n){return ca[e]||(ca[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Jj=Function.prototype,CE=Jj.bind,xE=Jj.call,eX=CE&&CE.bind(xE),pt=CE?function(t){return t&&eX(xE,t)}:function(t){return t&&function(){return xE.apply(t,arguments)}},nX=X.TypeError,Nr=function(t){if(t==null)throw nX("Can't call method on "+t);return t},rX=X.Object,$a=function(t){return rX(Nr(t))},oX=pt({}.hasOwnProperty),Re=Object.hasOwn||function(t,e){return oX($a(t),e)},iX=0,aX=Math.random(),uX=pt(1 .toString),oD=function(t){return"Symbol("+(t===void 0?"":t)+")_"+uX(++iX+aX,36)},oe=function(t){return typeof t=="function"},sX=function(t){return oe(t)?t:void 0},bs=function(t,e){return arguments.length<2?sX(X[t]):X[t]&&X[t][e]},El=bs("navigator","userAgent")||"",C7=X.process,x7=X.Deno,S7=C7&&C7.versions||x7&&x7.version,A7=S7&&S7.v8;A7&&(lg=(_i=A7.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!lg&&El&&(!(_i=El.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=El.match(/Chrome\/(\d+)/))&&(lg=+_i[1]);var Zd=lg,Jt=function(t){try{return!!t()}catch{return!0}},SE=!!Object.getOwnPropertySymbols&&!Jt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Zd&&Zd<41}),iD=SE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tf=rD("wks"),ju=X.Symbol,O7=ju&&ju.for,lX=iD?ju:ju&&ju.withoutSetter||oD,Ae=function(t){if(!Re(tf,t)||!SE&&typeof tf[t]!="string"){var e="Symbol."+t;SE&&Re(ju,t)?tf[t]=ju[t]:tf[t]=iD&&O7?O7(e):lX(e)}return tf[t]},Qj={};Qj[Ae("toStringTag")]="z";var aD=String(Qj)==="[object z]",sn=!Jt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),fe=function(t){return typeof t=="object"?t!==null:oe(t)},AE=X.document,cX=fe(AE)&&fe(AE.createElement),Jd=function(t){return cX?AE.createElement(t):{}},tN=!sn&&!Jt(function(){return Object.defineProperty(Jd("div"),"a",{get:function(){return 7}}).a!=7}),fX=X.String,dX=X.TypeError,Me=function(t){if(fe(t))return t;throw dX(fX(t)+" is not an object")},ef=Function.prototype.call,Ut=ef.bind?ef.bind(ef):function(){return ef.apply(ef,arguments)},ns=pt({}.isPrototypeOf),pX=X.Object,nb=iD?function(t){return typeof t=="symbol"}:function(t){var e=bs("Symbol");return oe(e)&&ns(e.prototype,pX(t))},hX=X.String,nm=function(t){try{return hX(t)}catch{return"Object"}},gX=X.TypeError,_a=function(t){if(oe(t))return t;throw gX(nm(t)+" is not a function")},rs=function(t,e){var n=t[e];return n==null?void 0:_a(n)},vX=X.TypeError,mX=X.TypeError,yX=Ae("toPrimitive"),uD=function(t){var e=function(n,r){if(!fe(n)||nb(n))return n;var o,i=rs(n,yX);if(i){if(r===void 0&&(r="default"),o=Ut(i,n,r),!fe(o)||nb(o))return o;throw mX("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&oe(s=a.toString)&&!fe(l=Ut(s,a))||oe(s=a.valueOf)&&!fe(l=Ut(s,a))||u!=="string"&&oe(s=a.toString)&&!fe(l=Ut(s,a)))return l;throw vX("Can't convert object to primitive value")}(n,r)}(t,"string");return nb(e)?e:e+""},bX=X.TypeError,k7=Object.defineProperty,ao={f:sn?k7:function(t,e,n){if(Me(t),e=uD(e),Me(n),tN)try{return k7(t,e,n)}catch{}if("get"in n||"set"in n)throw bX("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},rm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Qr=sn?function(t,e,n){return ao.f(t,e,rm(1,n))}:function(t,e,n){return t[e]=n,t},wX=pt(Function.toString);oe(ca.inspectSource)||(ca.inspectSource=function(t){return wX(t)});var hv,yd,gv,om=ca.inspectSource,B7=X.WeakMap,eN=oe(B7)&&/native code/.test(om(B7)),_7=rD("keys"),sD=function(t){return _7[t]||(_7[t]=oD(t))},im={},OE=X.TypeError,EX=X.WeakMap;if(eN||ca.state){var nu=ca.state||(ca.state=new EX),DX=pt(nu.get),F7=pt(nu.has),CX=pt(nu.set);hv=function(t,e){if(F7(nu,t))throw new OE("Object already initialized");return e.facade=t,CX(nu,t,e),e},yd=function(t){return DX(nu,t)||{}},gv=function(t){return F7(nu,t)}}else{var Is=sD("state");im[Is]=!0,hv=function(t,e){if(Re(t,Is))throw new OE("Object already initialized");return e.facade=t,Qr(t,Is,e),e},yd=function(t){return Re(t,Is)?t[Is]:{}},gv=function(t){return Re(t,Is)}}var Fn={set:hv,get:yd,has:gv,enforce:function(t){return gv(t)?yd(t):hv(t,{})},getterFor:function(t){return function(e){var n;if(!fe(e)||(n=yd(e)).type!==t)throw OE("Incompatible receiver, "+t+" required");return n}}},nN=Function.prototype,xX=sn&&Object.getOwnPropertyDescriptor,rb=Re(nN,"name"),vc={EXISTS:rb,PROPER:rb&&function(){}.name==="something",CONFIGURABLE:rb&&(!sn||sn&&xX(nN,"name").configurable)},Gn=Qp(function(t){var e=vc.CONFIGURABLE,n=Fn.get,r=Fn.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;oe(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Re(u,"name")||e&&u.name!==d)&&Qr(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==X?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Qr(i,a,u)):f?i[a]=u:nD(a,u)})(Function.prototype,"toString",function(){return oe(this)&&n(this).source||om(this)})}),SX=pt({}.toString),AX=pt("".slice),to=function(t){return AX(SX(t),8,-1)},OX=Ae("toStringTag"),kX=X.Object,BX=to(function(){return arguments}())=="Arguments",am=aD?to:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=kX(t),OX))=="string"?n:BX?to(e):(r=to(e))=="Object"&&oe(e.callee)?"Arguments":r},_X=aD?{}.toString:function(){return"[object "+am(this)+"]"};aD||Gn(Object.prototype,"toString",_X,{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},ob=Jd("span").classList,T7=ob&&ob.constructor&&ob.constructor.prototype,rN=T7===Object.prototype?void 0:T7,P7=pt(pt.bind),os=function(t,e){return _a(t),e===void 0?t:P7?P7(t,e):function(){return t.apply(e,arguments)}},ib=X.Object,FX=pt("".split),um=Jt(function(){return!ib("z").propertyIsEnumerable(0)})?function(t){return to(t)=="String"?FX(t,""):ib(t)}:ib,TX=Math.ceil,PX=Math.floor,th=function(t){var e=+t;return e!=e||e===0?0:(e>0?PX:TX)(e)},jX=Math.min,mc=function(t){return t>0?jX(th(t),9007199254740991):0},ws=function(t){return mc(t.length)},mv=Array.isArray||function(t){return to(t)=="Array"},oN=function(){},NX=[],iN=bs("Reflect","construct"),lD=/^\s*(?:class|function)\b/,IX=pt(lD.exec),LX=!lD.exec(oN),nf=function(t){if(!oe(t))return!1;try{return iN(oN,NX,t),!0}catch{return!1}},sm=!iN||Jt(function(){var t;return nf(nf.call)||!nf(Object)||!nf(function(){t=!0})||t})?function(t){if(!oe(t))return!1;switch(am(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return LX||!!IX(lD,om(t))}:nf,RX=Ae("species"),j7=X.Array,aN=function(t,e){return new(function(n){var r;return mv(n)&&(r=n.constructor,(sm(r)&&(r===j7||mv(r.prototype))||fe(r)&&(r=r[RX])===null)&&(r=void 0)),r===void 0?j7:r}(t))(e===0?0:e)},N7=pt([].push),Fi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=$a(s),g=um(v),m=os(l,c),y=ws(g),h=0,b=f||aN,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:N7(w,p)}else switch(t){case 4:return!1;case 7:N7(w,p)}return i?-1:r||o?o:w}},yc={forEach:Fi(0),map:Fi(1),filter:Fi(2),some:Fi(3),every:Fi(4),find:Fi(5),findIndex:Fi(6),filterReject:Fi(7)},uN=function(t,e){var n=[][t];return!!n&&Jt(function(){n.call(null,e||function(){throw 1},1)})},MX=yc.forEach,ab=uN("forEach")?[].forEach:function(t){return MX(this,t,arguments.length>1?arguments[1]:void 0)},sN=function(t){if(t&&t.forEach!==ab)try{Qr(t,"forEach",ab)}catch{t.forEach=ab}};for(var ub in vv)vv[ub]&&sN(X[ub]&&X[ub].prototype);sN(rN);var I7={}.propertyIsEnumerable,L7=Object.getOwnPropertyDescriptor,zX=L7&&!I7.call({1:2},1)?function(t){var e=L7(this,t);return!!e&&e.enumerable}:I7,lN={f:zX},Ha=function(t){return um(Nr(t))},R7=Object.getOwnPropertyDescriptor,eh={f:sn?R7:function(t,e){if(t=Ha(t),e=uD(e),tN)try{return R7(t,e)}catch{}if(Re(t,e))return rm(!Ut(lN.f,t,e),t[e])}},$X=Math.max,HX=Math.min,Yl=function(t,e){var n=th(t);return n<0?$X(n+e,0):HX(n,e)},M7=function(t){return function(e,n,r){var o,i=Ha(e),a=ws(i),u=Yl(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},cN={includes:M7(!0),indexOf:M7(!1)},VX=cN.indexOf,z7=pt([].push),fN=function(t,e){var n,r=Ha(t),o=0,i=[];for(n in r)!Re(im,n)&&Re(r,n)&&z7(i,n);for(;e.length>o;)Re(r,n=e[o++])&&(~VX(i,n)||z7(i,n));return i},yv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],UX=yv.concat("length","prototype"),Qd={f:Object.getOwnPropertyNames||function(t){return fN(t,UX)}},dN={f:Object.getOwnPropertySymbols},WX=pt([].concat),qX=bs("Reflect","ownKeys")||function(t){var e=Qd.f(Me(t)),n=dN.f;return n?WX(e,n(t)):e},GX=function(t,e){for(var n=qX(e),r=ao.f,o=eh.f,i=0;i<n.length;i++){var a=n[i];Re(t,a)||r(t,a,o(e,a))}},KX=/#|\.prototype\./,nh=function(t,e){var n=XX[YX(t)];return n==JX||n!=ZX&&(oe(e)?Jt(e):!!e)},YX=nh.normalize=function(t){return String(t).replace(KX,".").toLowerCase()},XX=nh.data={},ZX=nh.NATIVE="N",JX=nh.POLYFILL="P",tp=nh,QX=eh.f,xe=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?X:l?X[u]||nD(u,{}):(X[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=QX(n,r))&&a.value:n[r],!tp(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;GX(i,o)}(t.sham||o&&o.sham)&&Qr(i,"sham",!0),Gn(n,r,i,t)}},Dl=Object.keys||function(t){return fN(t,yv)},tZ=Jt(function(){Dl(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function $7(t){return Object.prototype.toString.call(t)==="[object Object]"}xe({target:"Object",stat:!0,forced:tZ},{keys:function(t){return Dl($a(t))}});var eZ={isHistory(t){return $7(e=t)!==!1&&((n=e.constructor)===void 0||$7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||na.isOperationList(t.redos[0]))&&(t.undos.length===0||na.isOperationList(t.undos[0]));var e,n,r}},sb=new WeakMap,lb=new WeakMap,gl={isHistoryEditor:t=>eZ.isHistory(t.history)&&E.isEditor(t),isMerging:t=>lb.get(t),isSaving:t=>sb.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=gl.isMerging(t);lb.set(t,!1),e(),lb.set(t,n)},withoutSaving(t,e){var n=gl.isSaving(t);sb.set(t,!1),e(),sb.set(t,n)}},nZ=X.String,se=function(t){if(am(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return nZ(t)},cD=function(){var t=Me(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},rZ=vc.PROPER,kE=RegExp.prototype,pN=kE.toString,oZ=pt(cD),iZ=Jt(function(){return pN.call({source:"a",flags:"b"})!="/a/b"}),aZ=rZ&&pN.name!="toString";(iZ||aZ)&&Gn(RegExp.prototype,"toString",function(){var t=Me(this),e=se(t.source),n=t.flags;return"/"+e+"/"+se(n===void 0&&ns(kE,t)&&!("flags"in kE)?oZ(t):n)},{unsafe:!0});var t0,uZ=sn?Object.defineProperties:function(t,e){Me(t);for(var n,r=Ha(e),o=Dl(e),i=o.length,a=0;i>a;)ao.f(t,n=o[a++],r[n]);return t},BE=bs("document","documentElement"),hN=sD("IE_PROTO"),cb=function(){},gN=function(t){return"<script>"+t+"<\/script>"},H7=function(t){t.write(gN("")),t.close();var e=t.parentWindow.Object;return t=null,e},cg=function(){try{t0=new ActiveXObject("htmlfile")}catch{}var t,e;cg=typeof document<"u"?document.domain&&t0?H7(t0):((e=Jd("iframe")).style.display="none",BE.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(gN("document.F=Object")),t.close(),t.F):H7(t0);for(var n=yv.length;n--;)delete cg.prototype[yv[n]];return cg()};im[hN]=!0;var lm=Object.create||function(t,e){var n;return t!==null?(cb.prototype=Me(t),n=new cb,cb.prototype=null,n[hN]=t):n=cg(),e===void 0?n:uZ(n,e)},_E=Ae("unscopables"),FE=Array.prototype;FE[_E]==null&&ao.f(FE,_E,{configurable:!0,value:lm(null)});var bd=function(t){FE[_E][t]=!0},sZ=cN.includes;xe({target:"Array",proto:!0},{includes:function(t){return sZ(this,t,arguments.length>1?arguments[1]:void 0)}}),bd("includes");var lZ=Ae("match"),fD=function(t){var e;return fe(t)&&((e=t[lZ])!==void 0?!!e:to(t)=="RegExp")},cZ=X.TypeError,dD=function(t){if(fD(t))throw cZ("The method doesn't accept regular expressions");return t},fZ=Ae("match"),pD=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[fZ]=!1,"/./"[t](e)}catch{}}return!1},dZ=pt("".indexOf);xe({target:"String",proto:!0,forced:!pD("includes")},{includes:function(t){return!!~dZ(se(Nr(this)),se(dD(t)),arguments.length>1?arguments[1]:void 0)}});var pZ=/"/g,hZ=pt("".replace);xe({target:"String",proto:!0,forced:Jt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=se(Nr(this)),r="<a",(r+=' name="'+hZ(se(e),pZ,""")+'"')+">"+n+"</a>";var e,n,r}});var TE=function(t,e,n){var r,o;Me(t);try{if(!(r=rs(t,"return"))){if(e==="throw")throw n;return n}r=Ut(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Me(r),n},gZ=function(t,e,n,r){try{return r?e(Me(n)[0],n[1]):e(n)}catch(o){TE(t,"throw",o)}},Xl={},vZ=Ae("iterator"),mZ=Array.prototype,vN=function(t){return t!==void 0&&(Xl.Array===t||mZ[vZ]===t)},ep=function(t,e,n){var r=uD(e);r in t?ao.f(t,r,rm(0,n)):t[r]=n},yZ=Ae("iterator"),hD=function(t){if(t!=null)return rs(t,yZ)||rs(t,"@@iterator")||Xl[am(t)]},bZ=X.TypeError,mN=function(t,e){var n=arguments.length<2?hD(t):e;if(_a(n))return Me(Ut(n,t));throw bZ(nm(t)+" is not iterable")},V7=X.Array,yN=Ae("iterator"),bN=!1;try{var wZ=0,U7={next:function(){return{done:!!wZ++}},return:function(){bN=!0}};U7[yN]=function(){return this},Array.from(U7,function(){throw 2})}catch{}var gD=function(t,e){if(!e&&!bN)return!1;var n=!1;try{var r={};r[yN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},EZ=!gD(function(t){Array.from(t)});xe({target:"Array",stat:!0,forced:EZ},{from:function(t){var e=$a(t),n=sm(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=os(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,p=hD(e),d=0;if(!p||this==V7&&vN(p))for(a=ws(e),u=n?new this(a):V7(a);a>d;d++)f=i?o(e[d],d):e[d],ep(u,d,f);else for(c=(l=mN(e,p)).next,u=n?new this:[];!(s=Ut(c,l)).done;d++)f=i?gZ(l,o,[s.value,d],!0):s.value,ep(u,d,f);return u.length=d,u}});var Nu,W7,q7,DZ=pt("".charAt),G7=pt("".charCodeAt),CZ=pt("".slice),K7=function(t){return function(e,n){var r,o,i=se(Nr(e)),a=th(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=G7(i,a))<55296||r>56319||a+1===u||(o=G7(i,a+1))<56320||o>57343?t?DZ(i,a):r:t?CZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},wN={codeAt:K7(!1),charAt:K7(!0)},xZ=!Jt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Y7=sD("IE_PROTO"),PE=X.Object,SZ=PE.prototype,bv=xZ?PE.getPrototypeOf:function(t){var e=$a(t);if(Re(e,Y7))return e[Y7];var n=e.constructor;return oe(n)&&e instanceof n?n.prototype:e instanceof PE?SZ:null},jE=Ae("iterator"),EN=!1;[].keys&&("next"in(q7=[].keys())?(W7=bv(bv(q7)))!==Object.prototype&&(Nu=W7):EN=!0);var AZ=Nu==null||Jt(function(){var t={};return Nu[jE].call(t)!==t});AZ&&(Nu={}),oe(Nu[jE])||Gn(Nu,jE,function(){return this});var vD={IteratorPrototype:Nu,BUGGY_SAFARI_ITERATORS:EN},OZ=ao.f,X7=Ae("toStringTag"),wv=function(t,e,n){t&&!Re(t=n?t:t.prototype,X7)&&OZ(t,X7,{configurable:!0,value:e})},kZ=vD.IteratorPrototype,BZ=function(){return this},_Z=X.String,FZ=X.TypeError,Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Me(r),function(i){if(typeof i=="object"||oe(i))return i;throw FZ("Can't set "+_Z(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),TZ=vc.PROPER,PZ=vc.CONFIGURABLE,Z7=vD.IteratorPrototype,e0=vD.BUGGY_SAFARI_ITERATORS,rf=Ae("iterator"),jZ=function(){return this},mD=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=lm(kZ,{next:rm(1,b)}),wv(y,D,!1),Xl[D]=BZ})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!e0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[rf]||d["@@iterator"]||o&&d[o],g=!e0&&v||c(o),m=e=="Array"&&d.entries||v;if(m&&(u=bv(m.call(new t)))!==Object.prototype&&u.next&&(bv(u)!==Z7&&(Zl?Zl(u,Z7):oe(u[rf])||Gn(u,rf,jZ)),wv(u,f,!0)),TZ&&o=="values"&&v&&v.name!=="values"&&(PZ?Qr(d,"name","values"):(p=!0,g=function(){return Ut(v,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(e0||p||!(l in d))&&Gn(d,l,s[l]);else xe({target:e,proto:!0,forced:e0||p},s);return d[rf]!==g&&Gn(d,rf,g,{name:o}),Xl[e]=g,s},NZ=wN.charAt,IZ=Fn.set,LZ=Fn.getterFor("String Iterator");mD(String,"String",function(t){IZ(this,{type:"String Iterator",string:se(t),index:0})},function(){var t,e=LZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=NZ(n,r),e.index+=t.length,{value:t,done:!1})});var fb,RZ=eh.f,J7=pt("".endsWith),MZ=pt("".slice),zZ=Math.min,DN=pD("endsWith"),$Z=!(DN||(fb=RZ(String.prototype,"endsWith"),!fb||fb.writable));xe({target:"String",proto:!0,forced:!$Z&&!DN},{endsWith:function(t){var e=se(Nr(this));dD(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:zZ(mc(n),r),i=se(t);return J7?J7(e,i,o):MZ(e,o-i.length,o)===i}});var HZ=pt([].join),VZ=um!=Object,UZ=uN("join",",");xe({target:"Array",proto:!0,forced:VZ||!UZ},{join:function(t){return HZ(Ha(this),t===void 0?",":t)}});var WZ=Ae("species"),cm=function(t){return Zd>=51||!Jt(function(){var e=[];return(e.constructor={})[WZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},qZ=yc.map,GZ=cm("map");xe({target:"Array",proto:!0,forced:!GZ},{map:function(t){return qZ(this,t,arguments.length>1?arguments[1]:void 0)}});var yD=X.RegExp,NE=Jt(function(){var t=yD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),KZ=NE||Jt(function(){return!yD("a","y").sticky}),fm={BROKEN_CARET:NE||Jt(function(){var t=yD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:KZ,UNSUPPORTED_Y:NE},YZ=X.RegExp,bD=Jt(function(){var t=YZ(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),XZ=X.RegExp,wD=Jt(function(){var t=XZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ZZ=Fn.get,JZ=rD("native-string-replace",String.prototype.replace),Ev=RegExp.prototype.exec,IE=Ev,QZ=pt("".charAt),tJ=pt("".indexOf),eJ=pt("".replace),db=pt("".slice),pb=function(){var t=/a/,e=/b*/g;return Ut(Ev,t,"a"),Ut(Ev,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),Q7=fm.BROKEN_CARET,hb=/()??/.exec("")[1]!==void 0;(pb||hb||Q7||bD||wD)&&(IE=function(t){var e,n,r,o,i,a,u,s=this,l=ZZ(s),c=se(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ut(IE,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=Q7&&s.sticky,v=Ut(cD,s),g=s.source,m=0,y=c;if(d&&(v=eJ(v,"y",""),tJ(v,"g")===-1&&(v+="g"),y=db(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&QZ(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),hb&&(n=new RegExp("^"+g+"$(?!\\s)",v)),pb&&(r=s.lastIndex),o=Ut(Ev,d?n:s,y),d?o?(o.input=db(o.input,m),o[0]=db(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:pb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),hb&&o&&o.length>1&&Ut(JZ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=lm(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var np=IE;xe({target:"RegExp",proto:!0,forced:/./.exec!==np},{exec:np});var ED=Function.prototype,t9=ED.apply,nJ=ED.bind,e9=ED.call,DD=typeof Reflect=="object"&&Reflect.apply||(nJ?e9.bind(t9):function(){return e9.apply(t9,arguments)}),rJ=Ae("species"),gb=RegExp.prototype,CD=function(t,e,n,r){var o=Ae(t),i=!Jt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Jt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[rJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var v=pt(l),g=c.exec;return g===np||g===gb.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});Gn(String.prototype,t,s[0]),Gn(gb,o,s[1])}r&&Qr(gb[o],"sham",!0)},oJ=wN.charAt,xD=function(t,e,n){return e+(n?oJ(t,e).length:1)},iJ=Math.floor,vb=pt("".charAt),aJ=pt("".replace),mb=pt("".slice),uJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sJ=/\$([$&'`]|\d{1,2})/g,lJ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=sJ;return o!==void 0&&(o=$a(o),s=uJ),aJ(i,s,function(l,c){var f;switch(vb(c,0)){case"$":return"$";case"&":return t;case"`":return mb(e,0,n);case"'":return mb(e,a);case"<":f=o[mb(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=iJ(p/10);return d===0?l:d<=u?r[d-1]===void 0?vb(c,1):r[d-1]+vb(c,1):l}f=r[p-1]}return f===void 0?"":f})},cJ=X.TypeError,rp=function(t,e){var n=t.exec;if(oe(n)){var r=Ut(n,t,e);return r!==null&&Me(r),r}if(to(t)==="RegExp")return Ut(np,t,e);throw cJ("RegExp#exec called on incompatible receiver")},LE=Ae("replace"),fJ=Math.max,dJ=Math.min,pJ=pt([].concat),yb=pt([].push),n9=pt("".indexOf),r9=pt("".slice),hJ="a".replace(/./,"$0")==="$0",o9=!!/./[LE]&&/./[LE]("a","$0")==="";CD("replace",function(t,e,n){var r=o9?"$":"$0";return[function(o,i){var a=Nr(this),u=o==null?void 0:rs(o,LE);return u?Ut(u,o,a,i):Ut(e,se(a),o,i)},function(o,i){var a=Me(this),u=se(o);if(typeof i=="string"&&n9(i,r)===-1&&n9(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=oe(i);l||(i=se(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=rp(a,u);if(d===null||(yb(p,d),!c))break;se(d[0])===""&&(a.lastIndex=xD(u,mc(a.lastIndex),f))}for(var v,g="",m=0,y=0;y<p.length;y++){for(var h=se((d=p[y])[0]),b=fJ(dJ(th(d.index),u.length),0),w=[],D=1;D<d.length;D++)yb(w,(v=d[D])===void 0?v:String(v));var x=d.groups;if(l){var C=pJ([h],w,b,u);x!==void 0&&yb(C,x);var O=se(DD(i,void 0,C))}else O=lJ(h,u,b,w,x,i);b>=m&&(g+=r9(u,m,b)+O,m=b+h.length)}return g+r9(u,m)}]},!!Jt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!hJ||o9);/*! *****************************************************************************
- 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 RE=function(t,e){return RE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},RE(t,e)};function bc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}RE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var xr=function(){return xr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},xr.apply(this,arguments)};function Sr(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ME(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var gJ=0,i9=function(){this.id=""+gJ++},vJ=Fn.set,mJ=Fn.getterFor("Array Iterator"),ud=mD(Array,"Array",function(t,e){vJ(this,{type:"Array Iterator",target:Ha(t),index:0,kind:e})},function(){var t=mJ(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Xl.Arguments=Xl.Array,bd("keys"),bd("values"),bd("entries");var Jl=function(t,e,n){for(var r in e)Gn(t,r,e[r],n);return t},yJ=X.Array,bJ=Math.max,zE=function(t,e,n){for(var r=ws(t),o=Yl(e,r),i=Yl(n===void 0?r:n,r),a=yJ(bJ(i-o,0)),u=0;o<i;o++,u++)ep(a,u,t[o]);return a.length=u,a},a9=Qd.f,u9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wJ={f:function(t){return u9&&to(t)=="Window"?function(e){try{return a9(e)}catch{return zE(u9)}}(t):a9(Ha(t))}},s9=Jt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),n0=Object.isExtensible,xu=Jt(function(){n0(1)})||s9?function(t){return!!fe(t)&&(!s9||to(t)!="ArrayBuffer")&&(!n0||n0(t))}:n0,EJ=!Jt(function(){return Object.isExtensible(Object.preventExtensions({}))}),dm=Qp(function(t){var e=ao.f,n=!1,r=oD("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Qd.f,s=pt([].splice),l={};l[r]=1,u(l).length&&(Qd.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},xe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wJ.f}))},fastKey:function(u,s){if(!fe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Re(u,r)){if(!xu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Re(u,r)){if(!xu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return EJ&&n&&xu(u)&&!Re(u,r)&&i(u),u}};im[r]=!0}),DJ=X.TypeError,fg=function(t,e){this.stopped=t,this.result=e},l9=fg.prototype,op=function(t,e,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=os(e,c),g=function(y){return r&&TE(r,"normal",y),new fg(!0,y)},m=function(y){return f?(Me(y),d?v(y[0],y[1],g):v(y[0],y[1])):d?v(y,g):v(y)};if(p)r=t;else{if(!(o=hD(t)))throw DJ(nm(t)+" is not iterable");if(vN(o)){for(i=0,a=ws(t);a>i;i++)if((u=m(t[i]))&&ns(l9,u))return u;return new fg(!1)}r=mN(t,o)}for(s=r.next;!(l=Ut(s,r)).done;){try{u=m(l.value)}catch(y){TE(r,"throw",y)}if(typeof u=="object"&&u&&ns(l9,u))return u}return new fg(!1)},CJ=X.TypeError,pm=function(t,e){if(ns(e,t))return t;throw CJ("Incorrect invocation")},CN=function(t,e,n){var r,o;return Zl&&oe(r=e.constructor)&&r!==n&&fe(o=r.prototype)&&o!==n.prototype&&Zl(t,o),t},xN=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=pt(u[m]);Gn(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!fe(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!fe(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!fe(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(tp(t,!oe(a)||!(o||u.forEach&&!Jt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),dm.enable();else if(tp(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Jt(function(){f.has(1)}),v=gD(function(m){new a(m)}),g=!o&&Jt(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){pm(m,u);var h=CN(new a,m,s);return y!=null&&op(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,xe({global:!0,forced:s!=a},l),wv(s,t),o||n.setStrong(s,t,r),s},r0=dm.getWeakData,xJ=Fn.set,SJ=Fn.getterFor,AJ=yc.find,OJ=yc.findIndex,kJ=pt([].splice),BJ=0,o0=function(t){return t.frozen||(t.frozen=new SN)},SN=function(){this.entries=[]},bb=function(t,e){return AJ(t.entries,function(n){return n[0]===e})};SN.prototype={get:function(t){var e=bb(this,t);if(e)return e[1]},has:function(t){return!!bb(this,t)},set:function(t,e){var n=bb(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=OJ(this.entries,function(n){return n[0]===t});return~e&&kJ(this.entries,e,1),!!~e}};var of,AN={getConstructor:function(t,e,n,r){var o=t(function(s,l){pm(s,i),xJ(s,{type:e,id:BJ++,frozen:void 0}),l!=null&&op(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=SJ(e),u=function(s,l,c){var f=a(s),p=r0(Me(l),!0);return p===!0?o0(f).set(l,c):p[f.id]=c,s};return Jl(i,{delete:function(s){var l=a(this);if(!fe(s))return!1;var c=r0(s);return c===!0?o0(l).delete(s):c&&Re(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!fe(s))return!1;var c=r0(s);return c===!0?o0(l).has(s):c&&Re(c,l.id)}}),Jl(i,n?{get:function(s){var l=a(this);if(fe(s)){var c=r0(s);return c===!0?o0(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}},i0=Fn.enforce,_J=!X.ActiveXObject&&"ActiveXObject"in X,ON=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},FJ=xN("WeakMap",ON,AN);if(eN&&_J){of=AN.getConstructor(ON,"WeakMap",!0),dm.enable();var af=FJ.prototype,c9=pt(af.delete),a0=pt(af.has),f9=pt(af.get),d9=pt(af.set);Jl(af,{delete:function(t){if(fe(t)&&!xu(t)){var e=i0(this);return e.frozen||(e.frozen=new of),c9(this,t)||e.frozen.delete(t)}return c9(this,t)},has:function(t){if(fe(t)&&!xu(t)){var e=i0(this);return e.frozen||(e.frozen=new of),a0(this,t)||e.frozen.has(t)}return a0(this,t)},get:function(t){if(fe(t)&&!xu(t)){var e=i0(this);return e.frozen||(e.frozen=new of),a0(this,t)?f9(this,t):e.frozen.get(t)}return f9(this,t)},set:function(t,e){if(fe(t)&&!xu(t)){var n=i0(this);n.frozen||(n.frozen=new of),a0(this,t)?d9(this,t,e):n.frozen.set(t,e)}else d9(this,t,e);return this}})}var wb=Ae("iterator"),p9=Ae("toStringTag"),Eb=ud.values,kN=function(t,e){if(t){if(t[wb]!==Eb)try{Qr(t,wb,Eb)}catch{t[wb]=Eb}if(t[p9]||Qr(t,p9,e),vv[e]){for(var n in ud)if(t[n]!==ud[n])try{Qr(t,n,ud[n])}catch{t[n]=ud[n]}}}};for(var Db in vv)kN(X[Db]&&X[Db].prototype,Db);kN(rN,"DOMTokenList");var $E=new WeakMap,HE=new WeakMap,SD=new WeakMap,hm=new WeakMap,VE=new WeakMap,Dv=new WeakMap,AD=new WeakMap,UE=new WeakMap,dg=new WeakMap,h9=new WeakMap,g9=new WeakMap,v9=new WeakMap,m9=new WeakMap,ip=new WeakMap,Ql=new WeakMap,OD=new WeakMap,Cv=new WeakMap,WE=new WeakMap,xv=new WeakMap,pg=new WeakMap,BN=new WeakMap,Iu=new WeakMap,Cb=new WeakMap,y9=new WeakMap,xb=new WeakMap,TJ=yc.find,b9=!0;"find"in[]&&Array(1).find(function(){b9=!1}),xe({target:"Array",proto:!0,forced:b9},{find:function(t){return TJ(this,t,arguments.length>1?arguments[1]:void 0)}}),bd("find"),xe({global:!0},{globalThis:X});const PJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];sv&&(B.fn.css=sv),jr&&(B.fn.append=jr),Rl&&(B.fn.addClass=Rl),Ml&&(B.fn.removeClass=Ml),zl&&(B.fn.hasClass=zl),jo&&(B.fn.on=jo),Ba&&(B.fn.focus=Ba),Pr&&(B.fn.attr=Pr),ov&&(B.fn.removeAttr=ov),Hl&&(B.fn.hide=Hl),uv&&(B.fn.show=uv),PA&&(B.fn.offset=PA),iv&&(B.fn.width=iv),av&&(B.fn.height=av),Vl&&(B.fn.parent=Vl),fv&&(B.fn.parents=fv),NA&&(B.fn.is=NA),$l&&(B.fn.dataset=$l),Po&&(B.fn.val=Po),cv&&(B.fn.text=cv),ka&&(B.fn.html=ka),Wl&&(B.fn.children=Wl),ql&&(B.fn.remove=ql),Ul&&(B.fn.find=Ul),lv&&(B.fn.each=lv),Gl&&(B.fn.empty=Gl);var Co,An,kD=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},Ur=function(t){return is(t)&&t.nodeType===1},is=function(t){var e=kD(t);return!!e&&t instanceof e.Node},w9=function(t){var e=t&&t.anchorNode&&kD(t.anchorNode);return!!e&&t instanceof e.Selection},_N=function(t){return is(t)&&t.nodeType===3},qE=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},FN=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(is(r=i)&&r.nodeType===8||Ur(i)&&i.childNodes.length===0||Ur(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},jJ=function(t,e,n){return Ht(FN(t,e,n),1)[0]},NJ=function t(e){var n,r,o="";if(_N(e)&&e.nodeValue)return e.nodeValue;if(Ur(e)){try{for(var i=Sr(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
- `)}return o};function TN(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||TN(o,e)}}function E9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==Co.ELEMENT_NODE?"":e.tagName.toLowerCase()}(An=Co||(Co={}))[An.ELEMENT_NODE=1]="ELEMENT_NODE",An[An.TEXT_NODE=3]="TEXT_NODE",An[An.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",An[An.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",An[An.COMMENT_NODE=8]="COMMENT_NODE",An[An.DOCUMENT_NODE=9]="DOCUMENT_NODE",An[An.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",An[An.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var GE=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),wd=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),uf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),IJ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),LJ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),KE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),sf=!LJ&&!IJ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=BN.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=pg.get(e);return n||(n=new i9,pg.set(e,n)),n},setNewKey:function(t){var e=new i9;pg.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Ql.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=ip.get(r);if(i==null)break;n.unshift(i),r=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),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return Ql.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=OD.get(t);else{var r=A.findKey(t,e);n=WE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=Ur(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Ht(o?a:i,2),l=s[0],c=s[1],f=Ht(o?i:a,2),p=f[0],d=f[1],v=!!(Ur(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(Ur(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(p,g?1:d),u},toDOMPoint:function(t,e){var n,r,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=Sr(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,v=f.getAttribute("data-slate-length"),g=s+(v==null?d:parseInt(v,10));if(e.offset<=g){o=[p,Math.min(d,Math.max(0,e.offset-s))];break}s=g}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(e));return o},toSlateNode:function(t,e){var n=Ur(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Cv.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==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)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,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 p=this.getWindow(t).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(n,r);else{var d=p.caretPositionFromPoint(n,r);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.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,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((w9(e)?e.anchorNode:e.startContainer)&&(w9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=KE&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[r,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 p={anchor:c,focus:f};return L.isExpanded(p)&&L.isForward(p)&&Ur(i)&&E.void(t,{at:p.focus,mode:"highest"})&&(p=E.unhangRange(t,p,{voids:!0})),p},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Ht(o?e:function(h){var b,w=Ht(h,2),D=w[0],x=w[1];if(Ur(D)&&D.childNodes.length){var C=x===D.childNodes.length,O=C?x-1:x;for(D=(b=Ht(FN(D,O,C?"backward":"forward"),2))[0],C=(O=b[1])<x;Ur(D)&&D.childNodes.length;){var F=C?D.childNodes.length-1:0;D=jJ(D,F,C?"backward":"forward")}x=C&&D.textContent!=null?D.textContent.length:0}return[D,x]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),v=null;if(d){c=d.closest('[data-slate-node="text"]');var g=A.getWindow(t).document.createRange();g.setStart(c,0),g.setEnd(u,s);var m=g.cloneContents();ME(ME([],Ht(_A(m.querySelectorAll("[data-slate-zero-width]")))),Ht(_A(m.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=m.textContent.length,v=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(v=d).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")||wd&&(!((r=v.textContent)===null||r===void 0)&&r.endsWith(`
- `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var y=A.toSlateNode(t,c);return{path:A.findPath(t,y),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return E.hasPath(t,n.path)&&E.hasPath(t,r.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 Q.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=E.nodes(t,{universal:!0});try{for(var i=Sr(o),a=i.next();!a.done;a=i.next()){var u=Ht(a.value,1)[0];ct.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Ht(E.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Ht(E.nodes(t,{match:function(r){return ot.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Ht(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Ht(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(E.isEnd(t,n.anchor,e)||E.isEnd(t,n.focus,e))},getTextarea:function(t){var e=$E.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return hm.get(t)||null},getHoverbar:function(t){return Dv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Sr(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(g){e={error:g}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(g){return!(!ct.isElement(g)||t.isInline(g))},universal:!0});try{for(var f=Sr(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var v=d[0];TN(A.toDOMNode(t,v),function(g,m){var y=B(m);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||m.removeChild(g)})}}}catch(g){r={error:g}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Sr(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.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 n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=Ht(n,1)[0].children;return r.length===1&&r[0].text===""}},RJ=1,PN={},ap={},MJ=yc.filter,zJ=cm("filter");xe({target:"Array",proto:!0,forced:!zJ},{filter:function(t){return MJ(this,t,arguments.length>1?arguments[1]:void 0)}});var YE=`
- \v\f\r \u2028\u2029\uFEFF`,D9=pt("".replace),Sv="["+YE+"]",$J=RegExp("^"+Sv+Sv+"*"),HJ=RegExp(Sv+Sv+"*$"),Sb=function(t){return function(e){var n=se(Nr(e));return 1&t&&(n=D9(n,$J,"")),2&t&&(n=D9(n,HJ,"")),n}},VJ={start:Sb(1),end:Sb(2),trim:Sb(3)},UJ=vc.PROPER,WJ=VJ.trim;xe({target:"String",proto:!0,forced:function(t){return Jt(function(){return!!YE[t]()||"
"[t]()!=="
"||UJ&&YE[t].name!==t})}("trim")},{trim:function(){return WJ(this)}});var XE=[],jN={};function qJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var up,Ls,C9,Ab,Av=X.Promise,x9=Ae("species"),BD=function(t){var e=bs(t),n=ao.f;sn&&e&&!e[x9]&&n(e,x9,{configurable:!0,get:function(){return this}})},GJ=X.TypeError,KJ=Ae("species"),NN=function(t,e){var n,r=Me(t).constructor;return r===void 0||(n=Me(r)[KJ])==null?e:function(o){if(sm(o))return o;throw GJ(nm(o)+" is not a constructor")}(n)},IN=pt([].slice),LN=/(?:ipad|iphone|ipod).*applewebkit/i.test(El),fa=to(X.process)=="process",ZE=X.setImmediate,JE=X.clearImmediate,YJ=X.process,Ob=X.Dispatch,XJ=X.Function,S9=X.MessageChannel,ZJ=X.String,kb=0,Ed={};try{up=X.location}catch{}var _D=function(t){if(Re(Ed,t)){var e=Ed[t];delete Ed[t],e()}},Bb=function(t){return function(){_D(t)}},A9=function(t){_D(t.data)},O9=function(t){X.postMessage(ZJ(t),up.protocol+"//"+up.host)};ZE&&JE||(ZE=function(t){var e=IN(arguments,1);return Ed[++kb]=function(){DD(oe(t)?t:XJ(t),void 0,e)},Ls(kb),kb},JE=function(t){delete Ed[t]},fa?Ls=function(t){YJ.nextTick(Bb(t))}:Ob&&Ob.now?Ls=function(t){Ob.now(Bb(t))}:S9&&!LN?(Ab=(C9=new S9).port2,C9.port1.onmessage=A9,Ls=os(Ab.postMessage,Ab)):X.addEventListener&&oe(X.postMessage)&&!X.importScripts&&up&&up.protocol!=="file:"&&!Jt(O9)?(Ls=O9,X.addEventListener("message",A9,!1)):Ls="onreadystatechange"in Jd("script")?function(t){BE.appendChild(Jd("script")).onreadystatechange=function(){BE.removeChild(this),_D(t)}}:function(t){setTimeout(Bb(t),0)});var lf,bu,Dd,ll,_b,Fb,Tb,k9,RN={set:ZE,clear:JE},JJ=/ipad|iphone|ipod/i.test(El)&&X.Pebble!==void 0,QJ=/web0s(?!.*chrome)/i.test(El),tQ=eh.f,Pb=RN.set,B9=X.MutationObserver||X.WebKitMutationObserver,_9=X.document,F9=X.process,u0=X.Promise,T9=tQ(X,"queueMicrotask"),MN=T9&&T9.value;MN||(lf=function(){var t,e;for(fa&&(t=F9.domain)&&t.exit();bu;){e=bu.fn,bu=bu.next;try{e()}catch(n){throw bu?ll():Dd=void 0,n}}Dd=void 0,t&&t.enter()},LN||fa||QJ||!B9||!_9?!JJ&&u0&&u0.resolve?((Tb=u0.resolve(void 0)).constructor=u0,k9=os(Tb.then,Tb),ll=function(){k9(lf)}):fa?ll=function(){F9.nextTick(lf)}:(Pb=os(Pb,X),ll=function(){Pb(lf)}):(_b=!0,Fb=_9.createTextNode(""),new B9(lf).observe(Fb,{characterData:!0}),ll=function(){Fb.data=_b=!_b}));var jb,P9,zN,j9,$N=MN||function(t){var e={fn:t,next:void 0};Dd&&(Dd.next=e),bu||(bu=e,ll()),Dd=e},eQ=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=_a(e),this.reject=_a(n)},FD={f:function(t){return new eQ(t)}},QE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},nQ=typeof window=="object",HN=RN.set,rQ=Ae("species"),wo="Promise",N9=Fn.getterFor(wo),oQ=Fn.set,iQ=Fn.getterFor(wo),pu=Av&&Av.prototype,So=Av,cf=pu,VN=X.TypeError,t6=X.document,TD=X.process,Cl=FD.f,aQ=Cl,uQ=!!(t6&&t6.createEvent&&X.dispatchEvent),UN=oe(X.PromiseRejectionEvent),WN=!1,Cd=tp(wo,function(){var t=om(So),e=t!==String(So);if(!e&&Zd===66)return!0;if(Zd>=51&&/native code/.test(t))return!1;var n=new So(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[rQ]=r,!(WN=n.then(function(){})instanceof r)||!e&&nQ&&!UN}),sQ=Cd||!gD(function(t){So.all(t).catch(function(){})}),qN=function(t){var e;return!(!fe(t)||!oe(e=t.then))&&e},PD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;$N(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&cQ(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(VN("Promise-chain cycle")):(u=qN(a))?Ut(u,a,f,p):f(a)):p(r)}catch(v){d&&!s&&d.exit(),p(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&lQ(t)})}},GN=function(t,e,n){var r,o;uQ?((r=t6.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),X.dispatchEvent(r)):r={promise:e,reason:n},!UN&&(o=X["on"+t])?o(r):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",n)},lQ=function(t){Ut(HN,X,function(){var e,n=t.facade,r=t.value;if(I9(t)&&(e=QE(function(){fa?TD.emit("unhandledRejection",r,n):GN("unhandledrejection",n,r)}),t.rejection=fa||I9(t)?2:1,e.error))throw e.value})},I9=function(t){return t.rejection!==1&&!t.parent},cQ=function(t){Ut(HN,X,function(){var e=t.facade;fa?TD.emit("rejectionHandled",e):GN("rejectionhandled",e,t.value)})},vl=function(t,e,n){return function(r){t(e,r,n)}},xl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,PD(t,!0))},e6=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw VN("Promise can't be resolved itself");var r=qN(e);r?$N(function(){var o={done:!1};try{Ut(r,e,vl(e6,o,t),vl(xl,o,t))}catch(i){xl(o,i,t)}}):(t.value=e,t.state=1,PD(t,!1))}catch(o){xl({done:!1},o,t)}}};if(Cd&&(cf=(So=function(t){pm(this,cf),_a(t),Ut(jb,this);var e=N9(this);try{t(vl(e6,e),vl(xl,e))}catch(n){xl(e,n)}}).prototype,(jb=function(t){oQ(this,{type:wo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Jl(cf,{then:function(t,e){var n=iQ(this),r=n.reactions,o=Cl(NN(this,So));return o.ok=!oe(t)||t,o.fail=oe(e)&&e,o.domain=fa?TD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&PD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),P9=function(){var t=new jb,e=N9(t);this.promise=t,this.resolve=vl(e6,e),this.reject=vl(xl,e)},FD.f=Cl=function(t){return t===So||t===zN?new P9(t):aQ(t)},oe(Av)&&pu!==Object.prototype)){j9=pu.then,WN||(Gn(pu,"then",function(t,e){var n=this;return new So(function(r,o){Ut(j9,n,r,o)}).then(t,e)},{unsafe:!0}),Gn(pu,"catch",cf.catch,{unsafe:!0}));try{delete pu.constructor}catch{}Zl&&Zl(pu,cf)}xe({global:!0,wrap:!0,forced:Cd},{Promise:So}),wv(So,wo,!1),BD(wo),zN=bs(wo),xe({target:wo,stat:!0,forced:Cd},{reject:function(t){var e=Cl(this);return Ut(e.reject,void 0,t),e.promise}}),xe({target:wo,stat:!0,forced:Cd},{resolve:function(t){return function(e,n){if(Me(e),fe(n)&&n.constructor===e)return n;var r=FD.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),xe({target:wo,stat:!0,forced:sQ},{all:function(t){var e=this,n=Cl(e),r=n.resolve,o=n.reject,i=QE(function(){var a=_a(e.resolve),u=[],s=0,l=1;op(t,function(c){var f=s++,p=!1;l++,Ut(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Cl(e),r=n.reject,o=QE(function(){var i=_a(e.resolve);op(t,function(a){Ut(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Rs=fm.UNSUPPORTED_Y,fQ=Math.min,KN=[].push,dQ=pt(/./.exec),Ms=pt(KN),ff=pt("".slice);function Ir(t){Promise.resolve().then(t)}function YN(t,e){return ct.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(y){return YN(y,r)}).join(""));var c=function(y){return jN[y]||qJ}(i),f=c(n,l,r),p="";if(p=typeof f=="string"?f:f.html||"",s||XE.forEach(function(y){return p=y(n,p)}),typeof f=="string")return p;var d=f.prefix,v=d===void 0?"":d,g=f.suffix,m=g===void 0?"":g;return v&&(p=v+p),m&&(p+=m),p}(t,e):function(n,r){var o=n.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(n));var i=o;i=function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(i);var a=A.getParentsNodes(r,n).some(function(s){return A.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return XE.forEach(function(s){return i=s(n,i)}),i}(t,e)}function XN(t){return"w-e-element-"+t}CD("split",function(t,e,n){var r;return r="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=se(Nr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!fD(o))return Ut(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,v=new RegExp(o.source,p+"g");(s=Ut(np,v,a))&&!((l=v.lastIndex)>d&&(Ms(f,ff(a,d,s.index)),s.length>1&&s.index<a.length&&DD(KN,f,zE(s,1)),c=s[0].length,d=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return d===a.length?!c&&dQ(v,"")||Ms(f,""):Ms(f,ff(a,d)),f.length>u?zE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ut(e,this,o,i)}:e,[function(o,i){var a=Nr(this),u=o==null?void 0:rs(o,t);return u?Ut(u,o,a,i):Ut(r,se(a),o,i)},function(o,i){var a=Me(this),u=se(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=NN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Rs?"g":"y"),p=new l(Rs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return rp(p,u)===null?[u]:[];for(var v=0,g=0,m=[];g<u.length;){p.lastIndex=Rs?0:g;var y,h=rp(p,Rs?ff(u,g):u);if(h===null||(y=fQ(mc(p.lastIndex+(Rs?g:0)),u.length))===v)g=xD(u,g,c);else{if(Ms(m,ff(u,v,g)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(Ms(m,h[b]),m.length===d)return m;g=v=y}}return Ms(m,ff(u,v)),m}]},!!Jt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Rs);var L9=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},R9=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return L9(r,o)&&L9(o,r)},ZN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],JN=[],jD=[],Ov={},pQ=ao.f,hQ=Qd.f,gQ=Fn.enforce,vQ=Ae("match"),oi=X.RegExp,cl=oi.prototype,mQ=X.SyntaxError,yQ=pt(cD),bQ=pt(cl.exec),s0=pt("".charAt),M9=pt("".replace),z9=pt("".indexOf),wQ=pt("".slice),EQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Lu=/a/g,Nb=/a/g,DQ=new oi(Lu)!==Lu,QN=fm.MISSED_STICKY,CQ=fm.UNSUPPORTED_Y,xQ=sn&&(!DQ||QN||bD||wD||Jt(function(){return Nb[vQ]=!1,oi(Lu)!=Lu||oi(Nb)==Nb||oi(Lu,"i")!="/a/i"}));if(tp("RegExp",xQ)){for(var Ti=function(t,e){var n,r,o,i,a,u,s=ns(cl,this),l=fD(t),c=e===void 0,f=[],p=t;if(!s&&l&&c&&t.constructor===Ti)return t;if((l||ns(cl,t))&&(t=t.source,c&&(e="flags"in p?p.flags:yQ(p))),t=t===void 0?"":se(t),e=e===void 0?"":se(e),p=t,bD&&"dotAll"in Lu&&(r=!!e&&z9(e,"s")>-1)&&(e=M9(e,/s/g,"")),n=e,QN&&"sticky"in Lu&&(o=!!e&&z9(e,"y")>-1)&&CQ&&(e=M9(e,/y/g,"")),wD&&(i=function(d){for(var v,g=d.length,m=0,y="",h=[],b={},w=!1,D=!1,x=0,C="";m<=g;m++){if((v=s0(d,m))==="\\")v+=s0(d,++m);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":bQ(EQ,wQ(d,m+1))&&(m+=2,D=!0),y+=v,x++;continue;case(v===">"&&D):if(C===""||Re(b,C))throw new mQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,x],D=!1,C="";continue}D?C+=v:y+=v}return[y,h]}(t),t=i[0],f=i[1]),a=CN(oi(t,e),s?this:cl,Ti),(r||o||f.length)&&(u=gQ(a),r&&(u.dotAll=!0,u.raw=Ti(function(d){for(var v,g=d.length,m=0,y="",h=!1;m<=g;m++)(v=s0(d,m))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+s0(d,++m);return y}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==p)try{Qr(a,"source",p===""?"(?:)":p)}catch{}return a},SQ=function(t){t in Ti||pQ(Ti,t,{configurable:!0,get:function(){return oi[t]},set:function(e){oi[t]=e}})},$9=hQ(oi),H9=0;$9.length>H9;)SQ($9[H9++]);cl.constructor=Ti,Ti.prototype=cl,Gn(X,"RegExp",Ti)}BD("RegExp");var AQ=new RegExp(String.fromCharCode(160),"g");function tI(t){return t.replace(AQ," ")}function V9(t,e){var n=t.length;if(n){var r=t[n-1];if(ot.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function OQ(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function Ib(t,e){var n=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!==Co.ELEMENT_NODE){if(l.nodeType===Co.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=tI(c),V9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(V9(u,`
- `)||u.push({text:`
- `}));var f=ND(B(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in Ov)if(i[0].matches(a))return Ov[a];return OQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),jD.forEach(function(a){i=a(t[0],i,e)}))}),o}function Lb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=t[0].textContent||"";n=function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=tI(n)};return jD.forEach(function(o){r=o(t[0],r,e)}),r}function ND(t,e){JN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=E9(t);return n==="span"?t.attr("data-w-e-type")?Ib(t,e):Lb(t,e):n==="code"?E9(t.parent())==="pre"?Ib(t,e):Lb(t,e):ZN.includes(n)?Lb(t,e):Ib(t,e)}function eI(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function U9(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=B("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=ND(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var kQ=ao.f,W9=dm.fastKey,q9=Fn.set,Rb=Fn.getterFor,BQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){pm(l,i),q9(l,{type:e,index:lm(null),first:void 0,last:void 0,size:0}),sn||(l.size=0),c!=null&&op(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=Rb(e),u=function(l,c,f){var p,d,v=a(l),g=s(l,c);return g?g.value=f:(v.last=g={index:d=W9(c,!0),key:c,value:f,previous:p=v.last,next:void 0,removed:!1},v.first||(v.first=g),p&&(p.next=g),sn?v.size++:l.size++,d!=="F"&&(v.index[d]=g)),l},s=function(l,c){var f,p=a(l),d=W9(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Jl(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,sn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,v=p.previous;delete f.index[p.index],p.removed=!0,v&&(v.next=d),d&&(d.previous=v),f.first==p&&(f.first=d),f.last==p&&(f.last=v),sn?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=os(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Jl(i,n?{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)}}),sn&&kQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Rb(e),i=Rb(r);mD(t,e,function(a,u){q9(this,{type:r,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})},n?"entries":"values",!n,!0),BD(e)}};xN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},BQ);var G9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function K9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var _Q=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){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(),p=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(p=D)}),l){var d=Ht(l,1)[0],v=c.cloneRange(),g=A.toDOMNode(e,d);v.setEndAfter(g),f=v.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var x=D.getAttribute("data-slate-zero-width")==="n";D.textContent=x?`
- `:""}),_N(p)){var m=p.ownerDocument.createElement("span");m.style.whiteSpace="pre",m.appendChild(p),f.appendChild(m),p=m}var y=e.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),r.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),r.setData("text/html",w.innerHTML),r.setData("text/plain",NJ(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=Sr(f),v=d.next();!v.done;v=d.next()){var g=v.value;p&&N.splitNodes(e,{always:!0}),n(g),p=!0}}catch(m){o={error:m}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},e},sd=function(t){return t!=null},FQ={object:!0,function:!0,undefined:!0},TQ=/^\s*class[\s{/}]/,PQ=Function.prototype.toString,Y9=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(n){if(!function(r){return!!sd(r)&&hasOwnProperty.call(FQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(e)}(t)&&!TQ.test(PQ.call(t))},ID=function(t){return t!=null},jQ=Object.keys,NQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(t){return jQ(ID(t)?Object(t):t)},IQ=function(t){if(!ID(t))throw new TypeError("Cannot use null or undefined");return t},LQ=Math.max,X9=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 n,r,o,i=LQ(arguments.length,2);for(t=Object(IQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)NQ(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},RQ=Array.prototype.forEach,MQ=Object.create,zQ=function(t,e){var n;for(n in t)e[n]=t[n]},Z9=function(t){var e=MQ(null);return RQ.call(arguments,function(n){ID(n)&&zQ(Object(n),e)}),e},Mb="razdwatrzy",$Q=String.prototype.indexOf,df=typeof Mb.contains=="function"&&Mb.contains("dwa")===!0&&Mb.contains("foo")===!1?String.prototype.contains:function(t){return $Q.call(this,t,arguments[1])>-1},l0=Qp(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],sd(n)?(o=df.call(n,"c"),i=df.call(n,"e"),a=df.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?X9(Z9(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],sd(r)?Y9(r)?sd(o)?Y9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,sd(n)?(i=df.call(n,"c"),a=df.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?X9(Z9(u),s):s}}),zb=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},HQ=Qp(function(t,e){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,v=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};n=function(m,y){var h;return zb(y),v.call(this,"__ee__")?h=this.__ee__:(h=g.value=f(null),p(this,"__ee__",g),g.value=null),h[m]?typeof h[m]=="object"?h[m].push(y):h[m]=[h[m],y]:h[m]=y,this},r=function(m,y){var h,b;return zb(y),b=this,n.call(this,m,h=function(){o.call(b,m,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(m,y){var h,b,w,D;if(zb(y),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[m])return this;if(typeof(b=h[m])=="object")for(D=0;w=b[D];++D)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[m]=b[D?0:1]:b.splice(D,1));else b!==y&&b.__eeOnceListener__!==y||delete h[m];return this},i=function(m){var y,h,b,w,D;if(v.call(this,"__ee__")&&(w=this.__ee__[m]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),y=1;y<h;++y)D[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)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),y=1;y<h;++y)D[y-1]=arguments[y];l.call(w,this,D)}},a={on:n,once:r,off:o,emit:i},u={on:l0(n),once:l0(r),off:l0(o),emit:l0(i)},s=d({},u),t.exports=e=function(m){return m==null?f(s):d(Object(m),u)},e.methods=a});function c0(t){var e=y9.get(t);return e==null&&(e=HQ(),y9.set(t,e)),e}var kv=new WeakMap;function J9(t,e){var n=kv.get(t);n==null&&(n=new Set,kv.set(t,n)),n.add(e)}function VQ(t){return kv.get(t)||new Set}function UQ(t){kv.set(t,new Set)}function LD(t){var e=A.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function RD(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=LD(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function MD(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ct.isElement(e)&&t.isVoid(e),i=ct.isElement(e)&&t.isInline(e),a=xv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=function(C){var O=[];O.push(C);for(var F=0;O.length>0;){var R=O.pop();if(R==null||++F>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(PJ.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(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var v=LD(t);if(v==null)return r;var g,m=v.top,y=v.left,h=v.width,b=v.height,w={},D=s-m,x=l-y;if(n==="bar")return w.left=x+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?x>(h-f)/2?w.right=h-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((g=D)<0&&(g=0),w.top=g+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((g=D+c)<0&&(g=0),w.top=g+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function n6(t,e){Ir(function(){var n=LD(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),p=e.height(),d=l-o,v=c-i,g=e.attr("style");if(g.indexOf("top")>=0&&(r=d+p-u)>0){var m=e.css("top"),y=parseInt(m.toString())-r;y<0&&(y=0),e.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=v+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),e.css("left",D+"px")}if(g.indexOf("right")>=0&&c<0){var x=e.css("right"),C=parseInt(x.toString())-Math.abs(c);e.css("right",C+"px")}}})}var WQ=cm("slice"),qQ=Ae("species"),$b=X.Array,GQ=Math.max;xe({target:"Array",proto:!0,forced:!WQ},{slice:function(t,e){var n,r,o,i=Ha(this),a=ws(i),u=Yl(t,a),s=Yl(e===void 0?a:e,a);if(mv(i)&&(n=i.constructor,(sm(n)&&(n===$b||mv(n.prototype))||fe(n)&&(n=n[qQ])===null)&&(n=void 0),n===$b||n===void 0))return IN(i,u,s);for(r=new(n===void 0?$b:n)(GQ(s-u,0)),o=0;u<s;u++,o++)u in i&&ep(r,o,i[u]);return r.length=o,r}});var KQ=eh.f,Q9=pt("".startsWith),YQ=pt("".slice),XQ=Math.min,nI=pD("startsWith"),ZQ=!nI&&!!function(){var t=KQ(String.prototype,"startsWith");return t&&!t.writable}();xe({target:"String",proto:!0,forced:!ZQ&&!nI},{startsWith:function(t){var e=se(Nr(this));dD(t);var n=mc(XQ(arguments.length>1?arguments[1]:void 0,e.length)),r=se(t);return Q9?Q9(e,r,n):YQ(e,n,n+r.length)===r}});var zs=Object.assign,tO=Object.defineProperty,JQ=pt([].concat),eO=!zs||Jt(function(){if(sn&&zs({b:1},zs(tO({},"a",{enumerable:!0,get:function(){tO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),zs({},t)[n]!=7||Dl(zs({},e)).join("")!=r})?function(t,e){for(var n=$a(t),r=arguments.length,o=1,i=dN.f,a=lN.f;r>o;)for(var u,s=um(arguments[o++]),l=i?JQ(Dl(s),i(s)):Dl(s),c=l.length,f=0;c>f;)u=l[f++],sn&&!Ut(a,s,u)||(n[u]=s[u]);return n}:zs;xe({target:"Object",stat:!0,forced:Object.assign!==eO},{assign:eO});var QQ=["props","attrs","style","dataset","on","hook"];function rI(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!QQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=CK(l),function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&rI(i)})}var r6=[],oI={};function ttt(t,e,n){return bt(n.isInline(t)?"span":"div",null,e)}function nO(t,e){return e===void 0&&(e=!1),bt("span",{"data-slate-string":!0},e?t+`
- `:t)}function Hb(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 o6(t,e,n,r){return ip.set(t,e),Ql.set(t,n),ct.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=XN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,v=d===void 0?[]:d,g=function(D){return oI[D]||ttt}(p);a=l?null:v.map(function(D,x){return o6(D,x,o,i)});var m=g(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=Ht(Q.texts(o),1),b=Ht(h[0],1)[0],w=bt(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},o6(b,0,o,i));m=bt(y,{style:{position:"relative"}},m,w),ip.set(b,0),Ql.set(b,o)}return m.data==null&&(m.data={}),Object.assign(m.data,f),l||s||(m=function(D,x){var C=x;return r6.forEach(function(O){C=O(D,x)}),C}(o,m)),Ir(function(){var D=qE(c);D!=null&&(WE.set(u,D),xv.set(o,D),Cv.set(D,o))}),m}(t,r):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),p=f.map(function(g,m){var y=function(h,b,w,D,x){b===void 0&&(b=!1);var C=h.text,O=A.findPath(x,w),F=j.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return x.isVoid(D)?Hb(Q.string(D).length):C!==""||D.children[D.children.length-1]!==w||x.isInline(D)||E.string(x,F)!==""?C===""?Hb():b&&C.slice(-1)===`
- `?nO(C,!0):nO(C):Hb(0,!0)}(g,m===f.length-1,o,i,a);return y=function(h,b){var w=b;return r6.forEach(function(D){w=D(h,w)}),w}(g,y),bt("span",{"data-slate-leaf":!0},y)}),d=function(g){return"w-e-text-"+g}(u.id),v=bt("span",{"data-slate-node":"text",id:d,key:u.id},p);return Ir(function(){var g=qE(d);g!=null&&(WE.set(u,g),xv.set(o,g),Cv.set(g,o))}),v}(t,n,r)}function ett(t,e){var n,r=t.$scroll,o=function(g){return"w-e-textarea-"+g}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(g,m){return m===void 0&&(m=!1),Kl("div#"+g,{props:{contentEditable:!m}})}(o,a),l=e.children||[];s.children=l.map(function(g,m){var y=o6(g,m,e,e);return rI(y),y});var c=g9.get(t);if(c==null&&(c=!0),c){var f=function(g,m){return B(`<div
- id="`+g+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(d=WG([GG,ZG,QG,KG,XG,qG]))(n,s),g9.set(t,!1),v9.set(t,d)}else{var p=m9.get(t),d=v9.get(t);if(p==null||d==null)return;n=p.elm,d(p,s)}if(n!=null||(n=qE(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var v=kD(n);v&&BN.set(e,v)}OD.set(e,n),xv.set(e,n),Cv.set(n,e),m9.set(t,s)}}function rO(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function oO(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Vb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return oO(n.overflowY,e)||oO(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function f0(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function iO(t,e){var n=window,r=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(!rO(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;rO(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Vb(f)&&!Vb(document.documentElement)||f!=null&&Vb(f,u)&&c.push(f)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,d=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=t.getBoundingClientRect(),y=m.height,h=m.width,b=m.top,w=m.right,D=m.bottom,x=m.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+y/2,O=i==="center"?x+h/2:i==="end"?w:x,F=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,G=M.right,nt=M.bottom,lt=M.left;if(r==="if-needed"&&b>=0&&x>=0&&D<=d&&w<=p&&b>=W&&D<=nt&&x>=lt&&w<=G)return F;var st=getComputedStyle(H),at=parseInt(st.borderLeftWidth,10),k=parseInt(st.borderTopWidth,10),S=parseInt(st.borderRightWidth,10),P=parseInt(st.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"?C:o==="end"?C-d:o==="nearest"?f0(g,g+d,d,k,P,g+C,g+C+y,y):C-d/2,Y=i==="start"?O:i==="center"?O-p/2:i==="end"?O-p:f0(v,v+p,p,at,S,v+O,v+O+h,h),$=Math.max(0,$+g),Y=Math.max(0,Y+v);else{$=o==="start"?C-W-k:o==="end"?C-nt+P+it:o==="nearest"?f0(W,nt,K,k,P+it,C,C+y,y):C-(W+K/2)+it/2,Y=i==="start"?O-lt-at:i==="center"?O-(lt+U/2)+V/2:i==="end"?O-G+S+V:f0(lt,G,U,at,S+V,O,O+h,h);var gt=H.scrollLeft,vt=H.scrollTop;C+=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)))}F.push({el:H,top:$,left:Y})}return F}function aO(t){return t===Object(t)&&Object.keys(t).length!==0}function Er(t,e){return is(e)&&A.hasDOMNode(t,e,{editable:!0})}function uO(t,e){if(t.getConfig().readOnly)return!1;var n=fl(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function fl(t,e){return is(e)&&A.hasDOMNode(t,e)}function iI(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=OD.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,v=void 0;(v=d[p])&&v.matches("table")&&(c=!1),(v=d[p-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(e,r)){t.isUpdatingSelection=!0;var g=r&&A.toDOMRange(e,r);if(g){L.isBackward(r)?i.setBaseAndExtent(g.endContainer,g.endOffset,g.startContainer,g.startOffset):i.setBaseAndExtent(g.startContainer,g.startOffset,g.endContainer,g.endOffset);var m=g.startContainer.parentElement;if(!m.closest("[data-slate-spacer]")){m.getBoundingClientRect=g.getBoundingClientRect.bind(g);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(aO(b)&&typeof b.behavior=="function")return b.behavior(w?[]:iO(h,b));if(!w){var D=function(x){return x===!1?{block:"end",inline:"nearest"}:aO(x)?x:{block:"start",inline:"nearest"}}(b);(function(x,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;x.forEach(function(F){var R=F.el,H=F.top,M=F.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:C}):(R.scrollTop=H,R.scrollLeft=M)})})(iO(h,D),D.behavior)}})(m,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete m.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){g&&wd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Ub=new WeakMap,sO=new WeakMap,ntt={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"},rtt={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"},ott={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},be=function(t){var e=ntt[t],n=rtt[t],r=ott[t],o=e&&$y(e),i=n&&$y(n),a=r&&$y(r);return function(u){return!(!o||!o(u))||!!(GE&&i&&i(u))||!(GE||!a||!a(u))}},De={isBold:be("bold"),isCompose:be("compose"),isMoveBackward:be("moveBackward"),isMoveForward:be("moveForward"),isDeleteBackward:be("deleteBackward"),isDeleteForward:be("deleteForward"),isDeleteLineBackward:be("deleteLineBackward"),isDeleteLineForward:be("deleteLineForward"),isDeleteWordBackward:be("deleteWordBackward"),isDeleteWordForward:be("deleteWordForward"),isExtendBackward:be("extendBackward"),isExtendForward:be("extendForward"),isExtendLineBackward:be("extendLineBackward"),isExtendLineForward:be("extendLineForward"),isItalic:be("italic"),isMoveLineBackward:be("moveLineBackward"),isMoveLineForward:be("moveLineForward"),isMoveWordBackward:be("moveWordBackward"),isMoveWordForward:be("moveWordForward"),isRedo:be("redo"),isSplitBlock:be("splitBlock"),isTransposeCharacter:be("transposeCharacter"),isUndo:be("undo"),isTab:be("tab"),isSelectAll:be("selectAll")};function Ue(t){t.preventDefault()}var itt={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(sf&&!o&&Er(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ht(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!xb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&Er(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Ur(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&is(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ct.isElement(s)&&!n.isVoid(s))return}if(uf){var l=a.getSelection();l==null||l.removeAllRanges()}Iu.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,wd&&t.target!==r?r.focus():Iu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&fl(n,t.target)&&is(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&Q.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=E.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(Er(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){iI(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Ub.set(n,i),sO.set(n,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,n)}},compositionend:function(t,e,n){var r=t;if(Er(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(KE||wd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Ht(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ht(E.node(n,i.path.slice(0,u+1)),1)[0];if(ct.isElement(s)&&((uf||wd)&&s.type==="link"||s.type==="code")){A.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=A.getLeftLengthOfMaxLength(n);c<l.length?(A.toDOMRange(n,o).startContainer.textContent=Ub.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);uf||setTimeout(function(){var f=n.selection;if(f!=null){var p=sO.get(n);p!=null&&A.toDOMRange(n,f).startContainer!==p&&(p.textContent=Ub.get(n)||"")}})}}}},compositionupdate:function(t,e,n){Er(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&Er(n,r.target)){if(function(a,u){var s=hm.get(a),l=s&&s.getMenus(),c=Dv.get(a),f=c&&c.getMenus(),p=xr(xr({},l),f);for(var d in p){var v=p[d],g=v.hotkey;if(g&&AK(g,u)&&!v.isDisabled(a)){var m=v.getValue(a);v.exec(a,m)}}}(n,r),De.isTab(r))return Ue(r),void n.handleTab();if(De.isRedo(r))return Ue(r),void(typeof n.redo=="function"&&n.redo());if(De.isUndo(r))return Ue(r),void(typeof n.undo=="function"&&n.undo());if(De.isMoveLineBackward(r))return Ue(r),void N.move(n,{unit:"line",reverse:!0});if(De.isMoveLineForward(r))return Ue(r),void N.move(n,{unit:"line"});if(De.isExtendLineBackward(r))return Ue(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(De.isExtendLineForward(r))return Ue(r),void N.move(n,{unit:"line",edge:"focus"});if(De.isMoveBackward(r))return Ue(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(De.isMoveForward(r))return Ue(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(De.isMoveWordBackward(r))return Ue(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(De.isMoveWordForward(r))return Ue(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(De.isSelectAll(r))return Ue(r),void n.selectAll();if(sf){if((KE||uf)&&o&&(De.isDeleteBackward(r)||De.isDeleteForward(r))&&L.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(ct.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(De.isBold(r)||De.isItalic(r)||De.isTransposeCharacter(r))return void Ue(r);if(De.isSplitBlock(r))return Ue(r),void E.insertBreak(n);if(De.isDeleteBackward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(De.isDeleteForward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(De.isDeleteLineBackward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(De.isDeleteLineForward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(De.isDeleteWordBackward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(De.isDeleteWordForward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!sf&&!n.getConfig().readOnly&&Er(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(Er(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&Er(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(n);else{var a=Q.parent(n,o.anchor.path);E.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){xb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&Er(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void xb.set(n,!1);if(!sf||function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1}(r)){r.preventDefault();var i=r.clipboardData;i!=null&&n.insertData(i)}}},dragover:function(t,e,n){if(fl(n,t.target)){var r=A.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(fl(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&fl(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&fl(n,r.target)&&o!=null&&!(sf&&uf&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},att=1,utt=function(){function t(e){var n=this;this.id=att++,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=es(function(){var a=n.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=A.findDocumentOrShadowRoot(s),d=p.activeElement,v=A.toDOMNode(s,s),g=p.getSelection();if(d===v?(u.latestElement=d,Iu.set(s,!0)):Iu.delete(s),!g)return N.deselect(s);var m=g.anchorNode,y=g.focusNode,h=Er(s,m)||uO(s,m),b=Er(s,y)||uO(s,y);if(h&&b){var w=A.toSlateRange(s,g,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=B(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Ir(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=HE.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,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(Y5(itt,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",es(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;ett(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Ir(function(){iI(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function zD(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&&zD(e)}function $D(){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 aI(){return B('<div class="w-e-bar-divider"></div>')}function uI(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=GE?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
- `+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}CD("match",function(t,e,n){return[function(r){var o=Nr(this),i=r==null?void 0:rs(r,t);return i?Ut(i,r,o):new RegExp(r)[t](se(o))},function(r){var o=Me(this),i=se(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return rp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=rp(o,i))!==null;){var f=se(s[0]);l[c]=f,f===""&&(o.lastIndex=xD(i,mc(o.lastIndex),u)),c++}return c===0?null:l}]});var HD=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=B(f);zD(d),p.append(d)}else p.text(u);uI(p,f,u,l,r),r&&f&&p.append(B('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",e),this.$elem.append(p),Ir(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),or(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=or(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=or(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=or(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),stt=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return bc(e,t),e.prototype.onButtonClick=function(){},e}(HD),VD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=UE.get(e);n==null&&(n=new Set,UE.set(e,n)),n.add(this),dg.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=dg.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=dg.get(this);e&&e.emit("modalOrPanelHide")}},t}(),ltt=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=B('<div class="w-e-drop-panel"></div>'),r}return bc(e,t),e.prototype.genSelfElem=function(){return null},e}(VD),ctt=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=$D();i.$button.append(a)}return i}return bc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=or(this);if(this.dropPanel==null){var o=new ltt(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),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}(HD),ftt=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return bc(e,t),e.prototype.genSelfElem=function(){var n=this,r=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=dg.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(VD);function ir(t,e,n){var r=B('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function wc(t,e){var n=B('<div class="button-container"></div>'),r=B('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var dtt=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=B("body"),i.modal=null,i.menu=r,i}return bc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=or(this),r=this.menu.getModalPositionNode(n);return ct.isElement(r)?MD(n,r,"modal"):RD(n)},e.prototype.handleModal=function(){var n=or(this),r=this.menu;if(this.modal==null){var o=new ftt(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=or(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(n.renderContent(l),s)n.setStyle({left:"0",right:"0"});else{var c=this.getPosition();n.setStyle(c)}r&&(s?n.appendTo(this.$body):n.appendTo(a.$textAreaContainer)),n.show(),s||n6(o,n.$elem),setTimeout(function(){o.blur()})}},e}(HD),ptt=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return bc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=B("<ul></ul>");n.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)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(VD),htt=function(){function t(e,n,r){var o=this;r===void 0&&(r=!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=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",e),uI(p,l,a,f,r),this.$elem.append(p),this.menu=n,Ir(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),or(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=or(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new ptt(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);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=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=or(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=or(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=$D();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=or(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),lO=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 n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=B(r);zD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=$D();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 n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),cO=new WeakMap;function or(t){var e=AD.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function sI(t,e,n){n===void 0&&(n=!1);var r=cO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new ctt(t,e,n):a?new dtt(t,e,n):new stt(t,e,n)}if(o==="select"&&(r=new htt(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return cO.set(e,r),r}function gtt(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!ot.isText(e)}var vtt=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=Rj(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ct.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Ir(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.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,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?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;Ir(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=aI();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=ap[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(),r[e]=o}var a=sI(e,o);this.hoverbarItems.push(a),AD.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ct.isElement(e)){var o=MD(n,e,"bar");return r.css(o),void n6(n,r)}if(ot.isText(e))return o=RD(n),r.css(o),void n6(n,r);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 n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(g,m){return A.checkNodeType(m,u)},d=Ht(E.nodes(e,{match:function(g){return p(e,g)},universal:!0}),1),v=d[0];if(v!=null)return r=v[0],o=f,"break"};for(var a in n)if(i(a)==="break")break;return r==null||o.length===0?null:{node:r,menuKeys:o}},t.prototype.getEditorInstance=function(){var e=VE.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,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=gtt),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function lI(t,e,n,r){if(ip.set(t,e),Ql.set(t,n),ct.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return lI(u,s,t,r)}),E.isVoid(r,t)){var i=Ht(Q.texts(t),1),a=Ht(i[0],1)[0];ip.set(a,0),Ql.set(a,t)}}}function mtt(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var x=D[D.length-1];gl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of x)h.apply(C)})}),w.redos.pop(),w.undos.push(x)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var x=D[D.length-1];gl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=x.map(na.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(x),w.undos.pop()}},h.apply=w=>{var{operations:D,history:x}=h,{undos:C}=x,O=C[C.length-1],F=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,F),H=gl.isSaving(h),M=gl.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,F)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(U=>U.type!=="set_selection")(w)&&(x.redos=[])}b(w)},h})(function(y){var h=y,b=h.insertText,w=h.insertNode,D=h.insertFragment,x=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<C.length?b(C.slice(0,O)):b(C))}else b(C)},h.insertNode=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<Q.string(C).length||w(C)}else w(C)},h.insertFragment=function(C){if(h.getConfig().maxLength)if(C.length!==1)C.forEach(function(F){h.insertNode(F)});else{var O=C[0];if(A.getLeftLengthOfMaxLength(h)<Q.string(O).length)return;D(C)}else D(C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C)if(h.getConfig().maxLength){var F=A.getLeftLengthOfMaxLength(h);if(!(F<=0)){var R=document.createElement("div");R.innerHTML=C;var H=Array.from(R.childNodes).reduce(function(M,K){var U=K.nodeType,W=K.nodeName;return K?U===Co.TEXT_NODE?M+(K.textContent||""):U===Co.ELEMENT_NODE?G9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");F<H.length||x(C,O)}}else x(C,O)},h}(function(y){var h=y;return h.on=function(b,w){var D=c0(h);if(D.on(b,w),b==="destroyed"&&J9(h,w),b!=="destroyed"){var x=function(){return D.off(b,w)};D.on("destroyed",x),J9(h,x)}},h.once=function(b,w){c0(h).once(b,w)},h.off=function(b,w){c0(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var x=c0(h);x.emit.apply(x,ME([b],Ht(w))),b==="destroyed"&&(VQ(h).forEach(function(C){return x.off("destroyed",C)}),UQ(h))},h}(function(y){var h=y;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(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(y,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=Cb.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return RD(h)},h.getNodePosition=function(b){return MD(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ht(L.edges(b),2),D=w[0],x=w[1],C=Ht(E.edges(h,[]),2),O=C[0],F=C[1];return!(!Bt.equals(D,O)||!Bt.equals(x,F))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(y){var h=y,b=h.onChange,w=h.insertText,D=h.apply,x=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,F,R,H,M,K,U,W,G=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var nt=Sr(E.levels(h,{at:C.path})),lt=nt.next();!lt.done;lt=nt.next()){var st=Ht(lt.value,2),at=st[0],k=st[1],S=A.findKey(h,at);G.push([k,S])}}catch(It){O={error:It}}finally{try{lt&&!lt.done&&(F=nt.return)&&F.call(nt)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=Sr(E.levels(h,{at:j.parent(C.path)})),$=P.next();!$.done;$=P.next()){var Y=Ht($.value,2);at=Y[0],k=Y[1],S=A.findKey(h,at),G.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=Sr(E.levels(h,{at:j.common(j.parent(C.path),j.parent(C.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),G.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(C);try{for(var vt=Sr(G),Dt=vt.next();!Dt.done;Dt=vt.next()){var q=Ht(Dt.value,2);k=q[0],S=q[1],at=Ht(E.node(h,k),1)[0],pg.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(C){if(C!=="line")return x(C);if(y.selection&&L.isCollapsed(y.selection)){var O=E.above(y,{match:function(M){return E.isBlock(y,M)},at:y.selection});if(O){var F=Ht(O,2)[1],R=E.range(y,F,y.selection.anchor),H=function(M,K){var U=E.range(M,L.end(K)),W=Array.from(E.positions(M,{at:K})),G=0,nt=W.length,lt=Math.floor(nt/2);if(R9(M,E.range(M,W[G]),U))return E.range(M,W[G],U);if(W.length<2)return E.range(M,W[W.length-1],U);for(;lt!==W.length&<!==G;)R9(M,E.range(M,W[lt]),U)?nt=lt:G=lt,lt=Math.floor((G+nt)/2);return E.range(M,W[nt],U)}(h,R);L.isCollapsed(H)||N.delete(y,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&Cb.set(h,C),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return YN(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Q.string(O)}).join(`
- `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(y,C)},h.getElemsByType=function(C,O){var F,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=Sr(M),U=K.next();!U.done;U=K.next()){var W=Ht(U.value,1)[0];if(ct.isElement(W)&&(O?W.type.indexOf(C)>=0:W.type===C)){var G=XN(A.findKey(h,W).id);H.push(xr(xr({},W),{id:G}))}}}catch(nt){F={error:nt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(F)throw F.error}}return H},h.getElemsByTypePrefix=function(C){return h.getElemsByType(C,!0)},h.isEmpty=function(){var C=h.children,O=C===void 0?[]:C;if(O.length>1)return!1;var F=O[0];if(F==null)return!0;if(ct.isElement(F)&&F.type==="paragraph"){var R=F.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(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var F=document.createElement("div");F.innerHTML=C;var R=Array.from(F.childNodes);if(R=R.filter(function(U){var W=U.nodeType,G=U.nodeName;return W===Co.TEXT_NODE||W===Co.ELEMENT_NODE&&!G9.has(G.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),F.setAttribute("hidden","true"),document.body.appendChild(F);var K=0;R.forEach(function(U){var W=U.nodeType,G=U.nodeName,nt=U.textContent,lt=nt===void 0?"":nt;if(W!==Co.TEXT_NODE)if(G!=="BR"){var st=U,at=!1;if(ZN.includes(G.toLowerCase()))at=!0;else for(var k in Ov)if(st.matches(k)){at=!0;break}if(at){var S=ND(B(st),h);return Array.isArray(S)?(S.forEach(function($){return K9(h,$)}),K++):(K9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(st).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(`
- `);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),F=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=U9(h,C);if(N.insertFragment(h,H),F||(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(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in ap)b.push(w);return b},h.getConfig=function(){var b=h9.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(y){var h=_Q(QW());return h.id="wangEditor-"+RJ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Iu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=Cb.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Iu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Iu.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(),$E.delete(h),HE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),hm.delete(h),SD.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),Dv.delete(h),VE.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 x=D[0];if(!A.hasDOMNode(h,x))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
- 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,x);var C=A.getTextarea(h),O=C.$textAreaContainer,F=C.$scroll,R=D.offset().top,H=O.offset().top;F[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 x=D.css("z-index");D.attr("data-z-index",x.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(n&&function(y,h){return eI(y,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(y){y===void 0&&(y={});var h=Mj(PN),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return Y5(h,function(x,C){b[C]=xr(xr({},x),D[C]||{})}),delete y.MENU_CONF,xr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(x,C){window.alert(C+`:
- `+x)}},y)}(o);h9.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=U9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var d=new utt(n);$E.set(l,d),HE.set(d,l),d.changeViewState(),Ir(function(){var y=d.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
- Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var v=void 0;Object.keys(p).length>0&&(v=new vtt,VE.set(v,l),Dv.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return lI(y,h,l,l)});var g=c.onCreated,m=c.onDestroyed;return g&&l.on("created",function(){return g(l)}),m&&l.on("destroyed",function(){return m(l)}),Ir(function(){return l.emit("created")}),l}var ytt=cm("splice"),btt=X.TypeError,wtt=Math.max,Ett=Math.min;xe({target:"Array",proto:!0,forced:!ytt},{splice:function(t,e){var n,r,o,i,a,u,s=$a(this),l=ws(s),c=Yl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=Ett(wtt(th(e),0),l-c)),l+n-r>9007199254740991)throw btt("Maximum allowed length exceeded");for(o=aN(s,r),i=0;i<r;i++)(a=c+i)in s&&ep(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var Dtt=function(){function t(e,n){var r=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=Rj(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;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),Ir(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=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=Mj(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,g){f.splice(s.index+g,0,v)}));var p=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),d=p.length;p.forEach(function(v,g){if(v==="|"){if(g===0||g+1===d||n==="|")return;var m=aI();return r.append(m),void(n=v)}if(typeof v=="string")return e.registerSingleItem(v,e),void(n=v);e.registerGroup(v),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new lO(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)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof lO,i=this.menus,a=i[e];if(a==null){var u=ap[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=sI(e,a,o);this.toolbarItems.push(s),AD.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=SD.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}(),Ctt=vc.EXISTS,xtt=ao.f,cI=Function.prototype,Stt=pt(cI.toString),fI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Att=pt(fI.exec);function dI(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,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,p=f!==void 0&&f,d=t.headers,v=d===void 0?{}:d,g=t.withCredentials,m=g!==void 0&&g,y=t.timeout,h=y===void 0?1e4:y,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,x=D===void 0?function(K,U){}:D,C=t.onError,O=C===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:C,F=t.onProgress,R=F===void 0?function(K){}:F;if(!n)throw new Error(`Cannot get upload server address
- 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
- 没有配置 fieldName`);var H=n;p&&(H=function(K,U){var W=Ht(K.split("#"),2),G=W[0],nt=W[1],lt=[];Y5(U,function(at,k){lt.push(k+"="+at)});var st=lt.join("&");return G=G.indexOf("?")>0?G+"&"+st:G+"?"+st,nt?G+"#"+nt:G}(H,c));var M=new id({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(QY,{endpoint:H,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:m,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,G=W===void 0?{}:W;try{x(K,G)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}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(G){console.error("wangEditor upload file - onError error",G)}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 da(t){return da=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},da(t)}function Ott(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function We(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){Ott(t,o,n[o])})}return t}function hi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gi(t,e,n){return e&&fO(t.prototype,e),n&&fO(t,n),t}function as(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sp(t,e){if(e&&(da(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return as(t)}function tc(t){return tc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tc(t)}function i6(t,e){return i6=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},i6(t,e)}function gm(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&&i6(t,e)}sn&&!Ctt&&xtt(cI,"name",{configurable:!0,get:function(){try{return Att(fI,Stt(this))[1]}catch{return""}}});var ktt={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)}},ii=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};hi(this,t),this.init(e,n)}return gi(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||ktt,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,We({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Fa=function(){function t(){hi(this,t),this.observers={}}return gi(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function pf(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function dO(t){return t==null?"":""+t}function Btt(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function UD(t,e,n){function r(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=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function pO(t,e,n){var r=UD(t,e,Object);r.obj[r.k]=n}function Bv(t,e){var n=UD(t,e),r=n.obj,o=n.k;if(r)return r[o]}function hO(t,e,n){var r=Bv(t,n);return r!==void 0?r:Bv(e,n)}function pI(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):pI(t[r],e[r],n):t[r]=e[r]);return t}function $s(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _tt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Ftt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return _tt[e]}):t}var vm=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function hI(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?hI(s,l,n):void 0}o=o[r[i]]}return o}}var Ttt=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return hi(this,e),r=sp(this,tc(e).call(this)),vm&&Fa.call(as(r)),r.data=n||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return gm(e,Fa),gi(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,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=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=Bv(this.data,s);return l||!u||typeof o!="string"?l:hI(this.data&&this.data[n]&&this.data[n][r],o,a)}},{key:"addResource",value:function(n,r,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=[n,r];o&&(s=s.concat(u?o.split(u):o)),n.indexOf(".")>-1&&(i=r,r=(s=n.split("."))[1]),this.addNamespaces(r),pO(this.data,s,i),a.silent||this.emit("added",n,r,o,i)}},{key:"addResources",value:function(n,r,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(n,r,a,o[a],{silent:!0});i.silent||this.emit("added",n,r,o)}},{key:"addResourceBundle",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[n,r];n.indexOf(".")>-1&&(i=o,o=r,r=(s=n.split("."))[1]),this.addNamespaces(r);var l=Bv(this.data,s)||{};i?pI(l,o,a):l=We({},l,o),pO(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),gI={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},gO={},vO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return hi(this,e),r=sp(this,tc(e).call(this)),vm&&Fa.call(as(r)),Btt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,as(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ii.create("translator"),r}return gm(e,Fa),gi(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(da(r)!=="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],r),s=u.key,l=u.namespaces,c=l[l.length-1],f=r.lng||this.language,p=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=r.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var v=this.resolve(n,r),g=v&&v.res,m=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(g),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,x=typeof g!="string"&&typeof g!="boolean"&&typeof g!="number";if(D&&g&&x&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.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(m,g,We({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},F=C?y:m;for(var R in g)if(Object.prototype.hasOwnProperty.call(g,R)){var H="".concat(F).concat(a).concat(R);O[R]=this.translate(H,We({},r,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=g[R])}g=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(g=g.join(w))&&(g=this.extendTranslation(g,n,r,o));else{var M=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=e.hasDefaultValue(r),G=U?this.pluralResolver.getSuffix(f,r.count):"",nt=r["defaultValue".concat(G)]||r.defaultValue;!this.isValidLookup(g)&&W&&(M=!0,g=nt),this.isValidLookup(g)||(K=!0,g=s);var lt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&K?void 0:g,at=W&&nt!==g&&this.options.updateMissing;if(K||M||at){if(this.logger.log(at?"updateKey":"missingKey",f,c,s,at?nt:g),a){var k=this.resolve(s,We({},r,{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,r.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(r.lng||this.language):S.push(r.lng||this.language);var Y=function(V,it,gt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,it,at?gt:st,at,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,it,at?gt:st,at,r),i.emit("missingKey",V,c,it,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(it){Y([V],s+it,r["defaultValue".concat(it)]||nt)})}):Y(S,s,nt))}g=this.extendTranslation(g,n,r,v,o),K&&g===s&&this.options.appendNamespaceToMissingKey&&(g="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(We({},o,{interpolation:We({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.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=We({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var p=n.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var g=arguments.length,m=new Array(g),y=0;y<g;y++)m[y]=arguments[y];return a&&a[0]===m[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(m[0]," in key: ").concat(r[0])),null):u.translate.apply(u,m.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,v=typeof d=="string"?[d]:d;return n!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(n=gI.handle(v,n,r,this.options&&this.options.postProcessPassResolved?We({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",g=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",m=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(y){s.isValidLookup(r)||(u=y,!gO["".concat(m[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(gO["".concat(m[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(m.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!!!")),m.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=p,x=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(x,p,h,y,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&g&&x.push(D+b),g&&x.push(D+="".concat(s.options.contextSeparator).concat(l.context)),v&&x.push(D+=b));w=x.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,y,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function Wb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Ptt=function(){function t(e){hi(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ii.create("languageUtils")}return gi(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Wb(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Wb(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Wb(r[2].toLowerCase()))),r.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 n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.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(r.formatLanguageCode(u))}),i}}]),t}(),jtt=[{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}],Ntt={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(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 Number(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 Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}};function Itt(){var t={};return jtt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Ntt[e.fc]}})}),t}var Ltt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};hi(this,t),this.languageUtils=e,this.options=n,this.logger=ii.create("pluralResolver"),this.rules=Itt()}return gi(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),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 r.options.prepend&&a.toString()?r.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}(),Rtt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};hi(this,t),this.logger=ii.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return gi(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Ftt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?$s(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?$s(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?$s(n.nestingPrefix):n.nestingPrefixEscaped||$s("$t("),this.nestingSuffix=n.nestingSuffix?$s(n.nestingSuffix):n.nestingSuffixEscaped||$s(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.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 n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(g){return g.replace(/\$/g,"$$$$")}var f=function(g){if(g.indexOf(s.formatSeparator)<0){var m=hO(n,l,g);return s.alwaysFormat?s.format(m,void 0,r,We({},o,n,{interpolationkey:g})):m}var y=g.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(hO(n,l,h),b,r,We({},o,n,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(g){return c(g)}},{regex:this.regexp,safeValue:function(g){return s.escapeValue?c(s.escape(g)):c(g)}}];return v.forEach(function(g){for(u=0;i=g.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var m=p(e,i,o);a=typeof m=="string"?m:""}else{if(d){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=dO(a));var y=g.safeValue(a);if(e=e.replace(i[0],y),d?(g.regex.lastIndex+=y.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=We({},a);function s(p,d){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var g=p.split(new RegExp("".concat(v,"[ ]*{"))),m="{".concat(g[1]);p=g[0],m=(m=this.interpolate(m,u)).replace(/'/g,'"');try{u=JSON.parse(m),d&&(u=We({},d,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),y),"".concat(p).concat(v).concat(m)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(p){return p.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=dO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,We({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Mtt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return hi(this,e),i=sp(this,tc(e).call(this)),vm&&Fa.call(as(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ii.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return gm(e,Fa),gi(e,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var p=!0;r.forEach(function(d){var v="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,p=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(d)<0&&c.push(d)))}),p||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(n,r,o){var i=n.split("|"),a=i[0],u=i[1];r&&this.emit("failedLoading",a,u,r),o&&this.store.addResourceBundle(a,u,o),this.state[n]=r?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var v=UD(c,f,Object),g=v.obj,m=v.k;g[m]=g[m]||[],g[m].push(p)})(l.loaded,[a],u),function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),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(n,r,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 n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){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 n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,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(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" 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(n,r,o,i,null,We({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function ztt(){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(da(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),da(t[2])==="object"||da(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function mO(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 d0(){}var $tt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(hi(this,e),n=sp(this,tc(e).call(this)),vm&&Fa.call(as(n)),n.options=mO(r),n.services={},n.logger=ii,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),sp(n,as(n));setTimeout(function(){n.init(r,o)},0)}return n}return gm(e,Fa),gi(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof r=="function"&&(o=r,r={}),r.whitelist&&!r.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),r.nonExplicitWhitelist&&!r.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=We({},ztt(),this.options,mO(r)),this.format=this.options.interpolation.format,o||(o=d0),!this.options.isClone){this.modules.logger?ii.init(i(this.modules.logger),this.options):ii.init(null,this.options);var a=new Ptt(this.options);this.store=new Ttt(this.options.resources,this.options);var u=this.services;u.logger=ii,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Ltt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Rtt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Mtt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var v=arguments.length,g=new Array(v>1?v-1:0),m=1;m<v;m++)g[m-1]=arguments[m];n.emit.apply(n,[d].concat(g))}),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 vO(this.services,this.options),this.translator.on("*",function(d){for(var v=arguments.length,g=new Array(v>1?v-1:0),m=1;m<v;m++)g[m-1]=arguments[m];n.emit.apply(n,[d].concat(g))}),this.modules.external.forEach(function(d){d.init&&d.init(n)})}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(d){n[d]=function(){var v;return(v=n.store)[d].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){n[d]=function(){var v;return(v=n.store)[d].apply(v,arguments),n}});var f=pf(),p=function(){var d=function(v,g){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),f.resolve(g),o(v,g)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return d(null,n.t.bind(n));n.changeLanguage(n.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d0,i=o,a=typeof n=="string"?n:this.language;if(typeof n=="function"&&(i=n),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&r.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(n,r,o){var i=pf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=d0),this.services.backendConnector.reload(n,r,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&gI.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,r){var o=this;this.isLanguageChangingTo=n;var i=pf();this.emit("languageChanging",n);var a=function(u){n||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)}),r&&r(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(n):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(n,r,o){var i=this,a=function u(s,l){var c;if(da(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=We({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",g=o?"".concat(o).concat(v).concat(s):s;return i.t(g,c)};return typeof n=="string"?a.lng=n:a.lngs=n,a.ns=r,a.keyPrefix=o,a}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var r=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 p=r.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=pf();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),r&&r(a)}),i):(r&&r(),Promise.resolve())}},{key:"loadLanguages",value:function(n,r){var o=pf();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["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(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d0,i=We({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=We({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new vO(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}(),_v=new $tt;function Xn(t,e){_v.addResourceBundle(t,"translation",e,!0,!0)}_v.init({lng:"zh-CN",resources:{}});var tt=_v.t.bind(_v);Xn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Xn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Htt=P5?{}.toString:function(){return"[object "+Y1(this)+"]"};P5||la(Object.prototype,"toString",Htt,{unsafe:!0});var yO=Array.isArray||function(t){return _u(t)=="Array"},vI=function(){},Vtt=[],mI=Wp("Reflect","construct"),WD=/^\s*(?:class|function)\b/,Utt=ae(WD.exec),Wtt=!WD.exec(vI),hf=function(t){if(!Ke(t))return!1;try{return mI(vI,Vtt,t),!0}catch{return!1}},qtt=!mI||dn(function(){var t;return hf(hf.call)||!hf(Object)||!hf(function(){t=!0})||t})?function(t){if(!Ke(t))return!1;switch(Y1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wtt||!!Utt(WD,k5(t))}:hf,Gtt=Rn("species"),bO=Et.Array,Ktt=function(t,e){return new(function(n){var r;return yO(n)&&(r=n.constructor,(qtt(r)&&(r===bO||yO(r.prototype))||qr(r)&&(r=r[Gtt])===null)&&(r=void 0)),r===void 0?bO:r}(t))(e===0?0:e)},wO=ae([].push),Pi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=x5(s),g=jP(v),m=qP(l,c),y=K1(g),h=0,b=f||Ktt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:wO(w,p)}else switch(t){case 4:return!1;case 7:wO(w,p)}return i?-1:r||o?o:w}},Ytt={forEach:Pi(0),map:Pi(1),filter:Pi(2),some:Pi(3),every:Pi(4),find:Pi(5),findIndex:Pi(6),filterReject:Pi(7)}.forEach,Xtt=function(t,e){var n=[][t];return!!n&&dn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),qb=Xtt?[].forEach:function(t){return Ytt(this,t,arguments.length>1?arguments[1]:void 0)},yI=function(t){if(t&&t.forEach!==qb)try{Ln(t,"forEach",qb)}catch{t.forEach=qb}};for(var Gb in Yg)Yg[Gb]&&yI(Et[Gb]&&Et[Gb].prototype);yI(YP),Xn("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"}}),Xn("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 Ztt={type:"paragraph",renderElem:function(t,e,n){return bt("p",null,e)}},Fv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mm(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,hg,p0=function(t){return t&&t.Math==Math&&t},St=p0(typeof globalThis=="object"&&globalThis)||p0(typeof window=="object"&&window)||p0(typeof self=="object"&&self)||p0(typeof Fv=="object"&&Fv)||function(){return this}()||Function("return this")(),Se=function(t){try{return!!t()}catch{return!0}},oo=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),gf=Function.prototype.call,Pe=gf.bind?gf.bind(gf):function(){return gf.apply(gf,arguments)},EO={}.propertyIsEnumerable,DO=Object.getOwnPropertyDescriptor,Jtt=DO&&!EO.call({1:2},1)?function(t){var e=DO(this,t);return!!e&&e.enumerable}:EO,bI={f:Jtt},qD=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},wI=Function.prototype,a6=wI.bind,u6=wI.call,Qtt=a6&&a6.bind(u6),mt=a6?function(t){return t&&Qtt(u6,t)}:function(t){return t&&function(){return u6.apply(t,arguments)}},tet=mt({}.toString),eet=mt("".slice),pa=function(t){return eet(tet(t),8,-1)},Kb=St.Object,net=mt("".split),ym=Se(function(){return!Kb("z").propertyIsEnumerable(0)})?function(t){return pa(t)=="String"?net(t,""):Kb(t)}:Kb,ret=St.TypeError,Lr=function(t){if(t==null)throw ret("Can't call method on "+t);return t},Ec=function(t){return ym(Lr(t))},vn=function(t){return typeof t=="function"},Ar=function(t){return typeof t=="object"?t!==null:vn(t)},oet=function(t){return vn(t)?t:void 0},rh=function(t,e){return arguments.length<2?oet(St[t]):St[t]&&St[t][e]},EI=mt({}.isPrototypeOf),Yb=rh("navigator","userAgent")||"",CO=St.process,xO=St.Deno,SO=CO&&CO.versions||xO&&xO.version,AO=SO&&SO.v8;AO&&(hg=(ji=AO.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!hg&&Yb&&(!(ji=Yb.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=Yb.match(/Chrome\/(\d+)/))&&(hg=+ji[1]);var s6=hg,l6=!!Object.getOwnPropertySymbols&&!Se(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s6&&s6<41}),GD=l6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",iet=St.Object,Xb=GD?function(t){return typeof t=="symbol"}:function(t){var e=rh("Symbol");return vn(e)&&EI(e.prototype,iet(t))},aet=St.String,DI=function(t){try{return aet(t)}catch{return"Object"}},uet=St.TypeError,CI=function(t){if(vn(t))return t;throw uet(DI(t)+" is not a function")},bm=function(t,e){var n=t[e];return n==null?void 0:CI(n)},set=St.TypeError,cet=Object.defineProperty,KD=function(t,e){try{cet(St,t,{value:e,configurable:!0,writable:!0})}catch{St[t]=e}return e},ha=St["__core-js_shared__"]||KD("__core-js_shared__",{}),YD=mm(function(t){(t.exports=function(e,n){return ha[e]||(ha[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),fet=St.Object,oh=function(t){return fet(Lr(t))},det=mt({}.hasOwnProperty),Br=Object.hasOwn||function(t,e){return det(oh(t),e)},pet=0,het=Math.random(),get=mt(1 .toString),xI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+get(++pet+het,36)},vf=YD("wks"),Ru=St.Symbol,OO=Ru&&Ru.for,vet=GD?Ru:Ru&&Ru.withoutSetter||xI,gr=function(t){if(!Br(vf,t)||!l6&&typeof vf[t]!="string"){var e="Symbol."+t;l6&&Br(Ru,t)?vf[t]=Ru[t]:vf[t]=GD&&OO?OO(e):vet(e)}return vf[t]},met=St.TypeError,yet=gr("toPrimitive"),XD=function(t){var e=function(n,r){if(!Ar(n)||Xb(n))return n;var o,i=bm(n,yet);if(i){if(r===void 0&&(r="default"),o=Pe(i,n,r),!Ar(o)||Xb(o))return o;throw met("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&vn(s=a.toString)&&!Ar(l=Pe(s,a))||vn(s=a.valueOf)&&!Ar(l=Pe(s,a))||u!=="string"&&vn(s=a.toString)&&!Ar(l=Pe(s,a)))return l;throw set("Can't convert object to primitive value")}(n,r)}(t,"string");return Xb(e)?e:e+""},c6=St.document,bet=Ar(c6)&&Ar(c6.createElement),ZD=function(t){return bet?c6.createElement(t):{}},SI=!oo&&!Se(function(){return Object.defineProperty(ZD("div"),"a",{get:function(){return 7}}).a!=7}),kO=Object.getOwnPropertyDescriptor,JD={f:oo?kO:function(t,e){if(t=Ec(t),e=XD(e),SI)try{return kO(t,e)}catch{}if(Br(t,e))return qD(!Pe(bI.f,t,e),t[e])}},wet=St.String,Eet=St.TypeError,ar=function(t){if(Ar(t))return t;throw Eet(wet(t)+" is not an object")},Det=St.TypeError,BO=Object.defineProperty,Dc={f:oo?BO:function(t,e,n){if(ar(t),e=XD(e),ar(n),SI)try{return BO(t,e,n)}catch{}if("get"in n||"set"in n)throw Det("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},ec=oo?function(t,e,n){return Dc.f(t,e,qD(1,n))}:function(t,e,n){return t[e]=n,t},Cet=mt(Function.toString);vn(ha.inspectSource)||(ha.inspectSource=function(t){return Cet(t)});var Tv,xd,Pv,QD=ha.inspectSource,_O=St.WeakMap,xet=vn(_O)&&/native code/.test(QD(_O)),FO=YD("keys"),AI=function(t){return FO[t]||(FO[t]=xI(t))},t8={},f6=St.TypeError,Aet=St.WeakMap;if(xet||ha.state){var ru=ha.state||(ha.state=new Aet),Oet=mt(ru.get),TO=mt(ru.has),ket=mt(ru.set);Tv=function(t,e){if(TO(ru,t))throw new f6("Object already initialized");return e.facade=t,ket(ru,t,e),e},xd=function(t){return Oet(ru,t)||{}},Pv=function(t){return TO(ru,t)}}else{var Hs=AI("state");t8[Hs]=!0,Tv=function(t,e){if(Br(t,Hs))throw new f6("Object already initialized");return e.facade=t,ec(t,Hs,e),e},xd=function(t){return Br(t,Hs)?t[Hs]:{}},Pv=function(t){return Br(t,Hs)}}var d6={set:Tv,get:xd,has:Pv,enforce:function(t){return Pv(t)?xd(t):Tv(t,{})},getterFor:function(t){return function(e){var n;if(!Ar(e)||(n=xd(e)).type!==t)throw f6("Incompatible receiver, "+t+" required");return n}}},OI=Function.prototype,Bet=oo&&Object.getOwnPropertyDescriptor,Zb=Br(OI,"name"),wm={EXISTS:Zb,PROPER:Zb&&function(){}.name==="something",CONFIGURABLE:Zb&&(!oo||oo&&Bet(OI,"name").configurable)},lp=mm(function(t){var e=wm.CONFIGURABLE,n=d6.get,r=d6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;vn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Br(u,"name")||e&&u.name!==d)&&ec(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==St?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ec(i,a,u)):f?i[a]=u:KD(a,u)})(Function.prototype,"toString",function(){return vn(this)&&n(this).source||QD(this)})}),_et=Math.ceil,Fet=Math.floor,Cc=function(t){var e=+t;return e!=e||e===0?0:(e>0?Fet:_et)(e)},Tet=Math.max,Pet=Math.min,cp=function(t,e){var n=Cc(t);return n<0?Tet(n+e,0):Pet(n,e)},jet=Math.min,ih=function(t){return t>0?jet(Cc(t),9007199254740991):0},Em=function(t){return ih(t.length)},PO=function(t){return function(e,n,r){var o,i=Ec(e),a=Em(i),u=cp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},kI={includes:PO(!0),indexOf:PO(!1)},Net=kI.indexOf,jO=mt([].push),BI=function(t,e){var n,r=Ec(t),o=0,i=[];for(n in r)!Br(t8,n)&&Br(r,n)&&jO(i,n);for(;e.length>o;)Br(r,n=e[o++])&&(~Net(i,n)||jO(i,n));return i},jv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Iet=jv.concat("length","prototype"),Let={f:Object.getOwnPropertyNames||function(t){return BI(t,Iet)}},_I={f:Object.getOwnPropertySymbols},Ret=mt([].concat),Met=rh("Reflect","ownKeys")||function(t){var e=Let.f(ar(t)),n=_I.f;return n?Ret(e,n(t)):e},zet=function(t,e){for(var n=Met(e),r=Dc.f,o=JD.f,i=0;i<n.length;i++){var a=n[i];Br(t,a)||r(t,a,o(e,a))}},$et=/#|\.prototype\./,ah=function(t,e){var n=Vet[Het(t)];return n==Wet||n!=Uet&&(vn(e)?Se(e):!!e)},Het=ah.normalize=function(t){return String(t).replace($et,".").toLowerCase()},Vet=ah.data={},Uet=ah.NATIVE="N",Wet=ah.POLYFILL="P",qet=ah,Get=JD.f,nn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?St:l?St[u]||KD(u,{}):(St[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Get(n,r))&&a.value:n[r],!qet(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;zet(i,o)}(t.sham||o&&o.sham)&&ec(i,"sham",!0),lp(n,r,i,t)}},NO=mt(mt.bind),Nv=Array.isArray||function(t){return pa(t)=="Array"},FI={};FI[gr("toStringTag")]="z";var e8=String(FI)==="[object z]",Ket=gr("toStringTag"),Yet=St.Object,Xet=pa(function(){return arguments}())=="Arguments",n8=e8?pa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Yet(t),Ket))=="string"?n:Xet?pa(e):(r=pa(e))=="Object"&&vn(e.callee)?"Arguments":r},TI=function(){},Zet=[],PI=rh("Reflect","construct"),r8=/^\s*(?:class|function)\b/,Jet=mt(r8.exec),Qet=!r8.exec(TI),mf=function(t){if(!vn(t))return!1;try{return PI(TI,Zet,t),!0}catch{return!1}},o8=!PI||Se(function(){var t;return mf(mf.call)||!mf(Object)||!mf(function(){t=!0})||t})?function(t){if(!vn(t))return!1;switch(n8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Qet||!!Jet(r8,QD(t))}:mf,tnt=gr("species"),IO=St.Array,ent=function(t,e){return new(function(n){var r;return Nv(n)&&(r=n.constructor,(o8(r)&&(r===IO||Nv(r.prototype))||Ar(r)&&(r=r[tnt])===null)&&(r=void 0)),r===void 0?IO:r}(t))(e===0?0:e)},LO=mt([].push),Ni=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=oh(s),g=ym(v),m=function(D,x){return CI(D),x===void 0?D:NO?NO(D,x):function(){return D.apply(x,arguments)}}(l,c),y=Em(g),h=0,b=f||ent,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:LO(w,p)}else switch(t){case 4:return!1;case 7:LO(w,p)}return i?-1:r||o?o:w}},Dm={forEach:Ni(0),map:Ni(1),filter:Ni(2),some:Ni(3),every:Ni(4),find:Ni(5),findIndex:Ni(6),filterReject:Ni(7)},nnt=gr("species"),i8=function(t){return s6>=51||!Se(function(){var e=[];return(e.constructor={})[nnt]=function(){return{foo:1}},e[t](Boolean).foo!==1})},rnt=Dm.filter;nn({target:"Array",proto:!0,forced:!i8("filter")},{filter:function(t){return rnt(this,t,arguments.length>1?arguments[1]:void 0)}});var ont=e8?{}.toString:function(){return"[object "+n8(this)+"]"};e8||lp(Object.prototype,"toString",ont,{unsafe:!0});var h0,int=St.String,Ce=function(t){if(n8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return int(t)},jI=function(){var t=ar(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},a8=St.RegExp,p6=Se(function(){var t=a8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),ant=p6||Se(function(){return!a8("a","y").sticky}),NI={BROKEN_CARET:p6||Se(function(){var t=a8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:ant,UNSUPPORTED_Y:p6},Sl=Object.keys||function(t){return BI(t,jv)},unt=oo?Object.defineProperties:function(t,e){ar(t);for(var n,r=Ec(e),o=Sl(e),i=o.length,a=0;i>a;)Dc.f(t,n=o[a++],r[n]);return t},snt=rh("document","documentElement"),II=AI("IE_PROTO"),Jb=function(){},LI=function(t){return"<script>"+t+"<\/script>"},RO=function(t){t.write(LI("")),t.close();var e=t.parentWindow.Object;return t=null,e},gg=function(){try{h0=new ActiveXObject("htmlfile")}catch{}var t,e;gg=typeof document<"u"?document.domain&&h0?RO(h0):((e=ZD("iframe")).style.display="none",snt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(LI("document.F=Object")),t.close(),t.F):RO(h0);for(var n=jv.length;n--;)delete gg.prototype[jv[n]];return gg()};t8[II]=!0;var MO,Qb,RI=Object.create||function(t,e){var n;return t!==null?(Jb.prototype=ar(t),n=new Jb,Jb.prototype=null,n[II]=t):n=gg(),e===void 0?n:unt(n,e)},lnt=St.RegExp,cnt=Se(function(){var t=lnt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),fnt=St.RegExp,dnt=Se(function(){var t=fnt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),pnt=d6.get,hnt=YD("native-string-replace",String.prototype.replace),Iv=RegExp.prototype.exec,h6=Iv,gnt=mt("".charAt),vnt=mt("".indexOf),mnt=mt("".replace),t2=mt("".slice),e2=(Qb=/b*/g,Pe(Iv,MO=/a/,"a"),Pe(Iv,Qb,"a"),MO.lastIndex!==0||Qb.lastIndex!==0),zO=NI.BROKEN_CARET,n2=/()??/.exec("")[1]!==void 0;(e2||n2||zO||cnt||dnt)&&(h6=function(t){var e,n,r,o,i,a,u,s=this,l=pnt(s),c=Ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Pe(h6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=zO&&s.sticky,v=Pe(jI,s),g=s.source,m=0,y=c;if(d&&(v=mnt(v,"y",""),vnt(v,"g")===-1&&(v+="g"),y=t2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&gnt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),n2&&(n=new RegExp("^"+g+"$(?!\\s)",v)),e2&&(r=s.lastIndex),o=Pe(Iv,d?n:s,y),d?o?(o.input=t2(o.input,m),o[0]=t2(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:e2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),n2&&o&&o.length>1&&Pe(hnt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=RI(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var fp=h6;nn({target:"RegExp",proto:!0,forced:/./.exec!==fp},{exec:fp});var u8=Function.prototype,$O=u8.apply,ynt=u8.bind,HO=u8.call,MI=typeof Reflect=="object"&&Reflect.apply||(ynt?HO.bind($O):function(){return HO.apply($O,arguments)}),bnt=gr("species"),r2=RegExp.prototype,s8=function(t,e,n,r){var o=gr(t),i=!Se(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Se(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[bnt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=mt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var v=mt(l),g=c.exec;return g===fp||g===r2.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});lp(String.prototype,t,s[0]),lp(r2,o,s[1])}r&&ec(r2[o],"sham",!0)},wnt=mt("".charAt),VO=mt("".charCodeAt),Ent=mt("".slice),Dnt=function(t){return function(e,n){var r,o,i=Ce(Lr(e)),a=Cc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=VO(i,a))<55296||r>56319||a+1===u||(o=VO(i,a+1))<56320||o>57343?t?wnt(i,a):r:t?Ent(i,a,a+2):o-56320+(r-55296<<10)+65536}},Cnt=Dnt(!0),l8=function(t,e,n){return e+(n?Cnt(t,e).length:1)},xnt=Math.floor,o2=mt("".charAt),Snt=mt("".replace),i2=mt("".slice),Ant=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ont=/\$([$&'`]|\d{1,2})/g,knt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Ont;return o!==void 0&&(o=oh(o),s=Ant),Snt(i,s,function(l,c){var f;switch(o2(c,0)){case"$":return"$";case"&":return t;case"`":return i2(e,0,n);case"'":return i2(e,a);case"<":f=o[i2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=xnt(p/10);return d===0?l:d<=u?r[d-1]===void 0?o2(c,1):r[d-1]+o2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Bnt=St.TypeError,dp=function(t,e){var n=t.exec;if(vn(n)){var r=Pe(n,t,e);return r!==null&&ar(r),r}if(pa(t)==="RegExp")return Pe(fp,t,e);throw Bnt("RegExp#exec called on incompatible receiver")},g6=gr("replace"),_nt=Math.max,Fnt=Math.min,Tnt=mt([].concat),a2=mt([].push),UO=mt("".indexOf),WO=mt("".slice),Pnt="a".replace(/./,"$0")==="$0",qO=!!/./[g6]&&/./[g6]("a","$0")==="";s8("replace",function(t,e,n){var r=qO?"$":"$0";return[function(o,i){var a=Lr(this),u=o==null?void 0:bm(o,g6);return u?Pe(u,o,a,i):Pe(e,Ce(a),o,i)},function(o,i){var a=ar(this),u=Ce(o);if(typeof i=="string"&&UO(i,r)===-1&&UO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=vn(i);l||(i=Ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=dp(a,u);if(d===null||(a2(p,d),!c))break;Ce(d[0])===""&&(a.lastIndex=l8(u,ih(a.lastIndex),f))}for(var v,g="",m=0,y=0;y<p.length;y++){for(var h=Ce((d=p[y])[0]),b=_nt(Fnt(Cc(d.index),u.length),0),w=[],D=1;D<d.length;D++)a2(w,(v=d[D])===void 0?v:String(v));var x=d.groups;if(l){var C=Tnt([h],w,b,u);x!==void 0&&a2(C,x);var O=Ce(MI(i,void 0,C))}else O=knt(h,u,b,w,x,i);b>=m&&(g+=WO(u,m,b)+O,m=b+h.length)}return g+WO(u,m)}]},!!Se(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Pnt||qO);var v6=gr("unscopables"),m6=Array.prototype;m6[v6]==null&&Dc.f(m6,v6,{configurable:!0,value:RI(null)});var zI=function(t){m6[v6][t]=!0},jnt=Dm.find,GO=!0;"find"in[]&&Array(1).find(function(){GO=!1}),nn({target:"Array",proto:!0,forced:GO},{find:function(t){return jnt(this,t,arguments.length>1?arguments[1]:void 0)}}),zI("find");var Nnt=gr("match"),$I=function(t){var e;return Ar(t)&&((e=t[Nnt])!==void 0?!!e:pa(t)=="RegExp")},Int=St.TypeError,Lnt=gr("species"),HI=function(t,e,n){var r=XD(e);r in t?Dc.f(t,r,qD(0,n)):t[r]=n},Rnt=St.Array,Mnt=Math.max,KO=function(t,e,n){for(var r=Em(t),o=cp(e,r),i=cp(n===void 0?r:n,r),a=Rnt(Mnt(i-o,0)),u=0;o<i;o++,u++)HI(a,u,t[o]);return a.length=u,a},Vs=NI.UNSUPPORTED_Y,znt=Math.min,VI=[].push,$nt=mt(/./.exec),Us=mt(VI),yf=mt("".slice);s8("split",function(t,e,n){var r;return r="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=Ce(Lr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!$I(o))return Pe(e,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,v=new RegExp(o.source,p+"g");(s=Pe(fp,v,a))&&!((l=v.lastIndex)>d&&(Us(f,yf(a,d,s.index)),s.length>1&&s.index<a.length&&MI(VI,f,KO(s,1)),c=s[0].length,d=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return d===a.length?!c&&$nt(v,"")||Us(f,""):Us(f,yf(a,d)),f.length>u?KO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Pe(e,this,o,i)}:e,[function(o,i){var a=Lr(this),u=o==null?void 0:bm(o,t);return u?Pe(u,o,a,i):Pe(r,Ce(a),o,i)},function(o,i){var a=ar(this),u=Ce(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var x,C=ar(w).constructor;return C===void 0||(x=ar(C)[Lnt])==null?D:function(O){if(o8(O))return O;throw Int(DI(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Vs?"g":"y"),p=new l(Vs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return dp(p,u)===null?[u]:[];for(var v=0,g=0,m=[];g<u.length;){p.lastIndex=Vs?0:g;var y,h=dp(p,Vs?yf(u,g):u);if(h===null||(y=znt(ih(p.lastIndex+(Vs?g:0)),u.length))===v)g=l8(u,g,c);else{if(Us(m,yf(u,v,g)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(Us(m,h[b]),m.length===d)return m;g=v=y}}return Us(m,yf(u,v)),m}]},!!Se(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Vs);var y6=`
- \v\f\r \u2028\u2029\uFEFF`,YO=mt("".replace),Lv="["+y6+"]",Hnt=RegExp("^"+Lv+Lv+"*"),Vnt=RegExp(Lv+Lv+"*$"),u2=function(t){return function(e){var n=Ce(Lr(e));return 1&t&&(n=YO(n,Hnt,"")),2&t&&(n=YO(n,Vnt,"")),n}},Unt={start:u2(1),end:u2(2),trim:u2(3)},Wnt=wm.PROPER,qnt=Unt.trim;function c8(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function xc(t){return t.length===0?"":t[0].outerHTML}function Sc(t){return t.length?t[0].tagName.toLowerCase():""}function eo(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}nn({target:"String",proto:!0,forced:Se(function(){return!!y6.trim()||"
".trim()!=="
"||Wnt&&y6.trim.name!=="trim"})},{trim:function(){return qnt(this)}}),nn({global:!0},{globalThis:St}),sv&&(B.fn.css=sv),jr&&(B.fn.append=jr),IA&&(B.fn.prepend=IA),Rl&&(B.fn.addClass=Rl),Ml&&(B.fn.removeClass=Ml),zl&&(B.fn.hasClass=zl),jo&&(B.fn.on=jo),TA&&(B.fn.off=TA),Ba&&(B.fn.focus=Ba),Pr&&(B.fn.attr=Pr),ov&&(B.fn.removeAttr=ov),Hl&&(B.fn.hide=Hl),uv&&(B.fn.show=uv),fv&&(B.fn.parents=fv),$l&&(B.fn.dataset=$l),Po&&(B.fn.val=Po),cv&&(B.fn.text=cv),ka&&(B.fn.html=ka),Wl&&(B.fn.children=Wl),ql&&(B.fn.remove=ql),Ul&&(B.fn.find=Ul),iv&&(B.fn.width=iv),av&&(B.fn.height=av),jA&&(B.fn.filter=jA),Gl&&(B.fn.empty=Gl);var Gnt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},b6=function(t,e){return b6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},b6(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 Ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}b6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Ta=function(){return Ta=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ta.apply(this,arguments)};function Va(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function Ua(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=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++,r=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],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function UI(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function XO(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 n=e[0];if(!ct.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!ot.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var Knt={renderElems:[Ztt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[Gnt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){XO(r)||e(o)},r.deleteForward=function(o){XO(r)||n(o)},r}},Ynt=/"/g,Xnt=mt("".replace),ld=function(t,e,n,r){var o=Ce(Lr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Xnt(Ce(r),Ynt,""")+'"'),i+">"+o+"</"+e+">"},cd=function(t){return Se(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function s2(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function ou(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}nn({target:"String",proto:!0,forced:cd("bold")},{bold:function(){return ld(this,"b","","")}}),nn({target:"String",proto:!0,forced:cd("italics")},{italics:function(){return ld(this,"i","","")}}),nn({target:"String",proto:!0,forced:cd("sub")},{sub:function(){return ld(this,"sub","","")}}),nn({target:"String",proto:!0,forced:cd("sup")},{sup:function(){return ld(this,"sup","","")}});var ZO={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},l2=ZD("span").classList,JO=l2&&l2.constructor&&l2.constructor.prototype,Znt=JO===Object.prototype?void 0:JO,WI=function(t,e){var n=[][t];return!!n&&Se(function(){n.call(null,e||function(){throw 1},1)})},Jnt=Dm.forEach,c2=WI("forEach")?[].forEach:function(t){return Jnt(this,t,arguments.length>1?arguments[1]:void 0)},qI=function(t){if(t&&t.forEach!==c2)try{ec(t,"forEach",c2)}catch{t.forEach=c2}};for(var f2 in ZO)ZO[f2]&&qI(St[f2]&&St[f2].prototype);function GI(t,e){return t.selection==null||!!Yt(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function Qnt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}qI(Znt),nn({target:"Object",stat:!0,forced:Se(function(){Sl(1)})},{keys:function(t){return Sl(oh(t))}});var Es=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!Yt(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return GI(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),trt='<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>',ert='<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>',nrt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',rrt='<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>',ort='<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>',KI='<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>',YI='<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>',irt='<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>',art='<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>',urt='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',srt='<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>',lrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',crt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',frt='<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>',drt='<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>',prt='<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>',hrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',grt='<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>',vrt='<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>',mrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=trt,n.hotkey="mod+b",n}return Ee(e,t),e}(Es),yrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=ort,n.hotkey="mod+e",n}return Ee(e,t),e}(Es),brt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=nrt,n.hotkey="mod+i",n}return Ee(e,t),e}(Es),wrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=rrt,n.hotkey="mod+shift+x",n}return Ee(e,t),e}(Es),Ert=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=ert,n.hotkey="mod+u",n}return Ee(e,t),e}(Es),Drt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=vrt,n.hotkey="",n}return Ee(e,t),e}(Es),Crt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=grt,n.hotkey="",n}return Ee(e,t),e}(Es),xrt=function(){function t(){this.title=tt("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 GI(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return ot.isText(s)},universal:!0});try{for(var a=UI(i),u=a.next();!u.done;u=a.next())Qnt(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),Srt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(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 mrt}},{key:"underline",factory:function(){return new Ert}},{key:"italic",factory:function(){return new brt}},{key:"through",factory:function(){return new wrt}},{key:"code",factory:function(){return new yrt}},{key:"sub",factory:function(){return new Drt}},{key:"sup",factory:function(){return new Crt}},{key:"clearStyle",factory:function(){return new xrt}}],styleToHtml:function(t,e){if(!ot.isText(t))return e;if(c8(e))return s2(t,e);var n=B(e);if(Sc(n)==="br")return s2(t,"<br>");var r=n.html();return r=s2(t,r),n.html(r),xc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e;return ou(r,"b,strong")&&(o.bold=!0),ou(r,"i,em")&&(o.italic=!0),ou(r,"u")&&(o.underline=!0),ou(r,"s,strike")&&(o.through=!0),ou(r,"sub")&&(o.sub=!0),ou(r,"sup")&&(o.sup=!0),ou(r,"code")&&(o.code=!0),o}};function uh(t){return function(e,n,r){return bt("h"+t,null,n)}}var Art={type:"header1",renderElem:uh(1)},Ort={type:"header2",renderElem:uh(2)},krt={type:"header3",renderElem:uh(3)},Brt={type:"header4",renderElem:uh(4)},_rt={type:"header5",renderElem:uh(5)},Frt=wm.PROPER,w6=RegExp.prototype,XI=w6.toString,Trt=mt(jI),Prt=Se(function(){return XI.call({source:"a",flags:"b"})!="/a/b"}),jrt=Frt&&XI.name!="toString";(Prt||jrt)&&lp(RegExp.prototype,"toString",function(){var t=ar(this),e=Ce(t.source),n=t.flags;return"/"+e+"/"+Ce(n===void 0&&EI(w6,t)&&!("flags"in w6)?Trt(t):n)},{unsafe:!0});var d2,Nrt=St.TypeError,ZI=function(t){if($I(t))throw Nrt("The method doesn't accept regular expressions");return t},Irt=gr("match"),JI=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[Irt]=!1,"/./"[t](e)}catch{}}return!1},Lrt=JD.f,QO=mt("".startsWith),Rrt=mt("".slice),Mrt=Math.min,tk=JI("startsWith");function QI(t){var e=Yt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Yt(n,1)[0];return A.getNodeType(r)}function tL(t){return t.selection==null||!Yt(E.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function eL(t,e){e&&N.setNodes(t,{type:e})}nn({target:"String",proto:!0,forced:!(!tk&&(d2=Lrt(String.prototype,"startsWith"),d2&&!d2.writable)||tk)},{startsWith:function(t){var e=Ce(Lr(this));ZI(t);var n=ih(Mrt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ce(t);return QO?QO(e,r,n):Rrt(e,n,n+r.length)===r}});var zrt=function(){function t(){this.title=tt("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 n=[{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:tt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return QI(e)},t.prototype.isDisabled=function(e){return tL(e)},t.prototype.exec=function(e,n){eL(e,n.toString())},t}(),sh=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return QI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return tL(e)},t.prototype.exec=function(e,n){var r=this.type;eL(e,n===r?"paragraph":r)},t}(),$rt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Ee(e,t),e}(sh),Hrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Ee(e,t),e}(sh),Vrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Ee(e,t),e}(sh),Urt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Ee(e,t),e}(sh),Wrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Ee(e,t),e}(sh),qrt={key:"headerSelect",factory:function(){return new zrt}},Grt={key:"header1",factory:function(){return new $rt}},Krt={key:"header2",factory:function(){return new Hrt}},Yrt={key:"header3",factory:function(){return new Vrt}},Xrt={key:"header4",factory:function(){return new Urt}},Zrt={key:"header5",factory:function(){return new Wrt}};function bf(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function wf(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!ot.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Jrt={renderElems:[Art,Ort,krt,Brt,_rt],elemsToHtml:[{type:"header1",elemToHtml:bf(1)},{type:"header2",elemToHtml:bf(2)},{type:"header3",elemToHtml:bf(3)},{type:"header4",elemToHtml:bf(4)},{type:"header5",elemToHtml:bf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:wf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:wf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:wf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:wf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:wf(5)}],menus:[qrt,Grt,Krt,Yrt,Xrt,Zrt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Yt(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},Ws=Object.assign,ek=Object.defineProperty,Qrt=mt([].concat),nk=!Ws||Se(function(){if(oo&&Ws({b:1},Ws(ek({},"a",{enumerable:!0,get:function(){ek(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Ws({},t)[n]!=7||Sl(Ws({},e)).join("")!=r})?function(t,e){for(var n=oh(t),r=arguments.length,o=1,i=_I.f,a=bI.f;r>o;)for(var u,s=ym(arguments[o++]),l=i?Qrt(Sl(s),i(s)):Sl(s),c=l.length,f=0;c>f;)u=l[f++],oo&&!Pe(a,s,u)||(n[u]=s[u]);return n}:Ws;function us(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}nn({target:"Object",stat:!0,forced:Object.assign!==nk},{assign:nk});var tot={selector:"font",preParseHtml:function(t){var e=B(t);if(Sc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},nL=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=B('<ul class="w-e-panel-content-color"></ul>');r.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,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).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="";n==="color"&&(u=tt("color.default")),n==="bgColor"&&(u=tt("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}(),eot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=irt,n.mark="color",n}return Ee(e,t),e}(nL),not=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=art,n.mark="bgColor",n}return Ee(e,t),e}(nL),rk=["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)"],rot={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&us(i,{color:r}),o&&us(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((c8(e)||Sc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),xc(n)):e},preParseHtml:[tot],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=eo(r,"color");i&&(o.color=i);var a=eo(r,"background-color");return a||(a=eo(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new eot},config:{colors:rk}},{key:"bgColor",factory:function(){return new not},config:{colors:rk}}]},oot=/^(?:\w+:)?\/\/(\S+)$/,iot=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,aot=/^[^\s\.]+\.\S{2,}$/,uot=kI.includes;function Cm(t){return t===void 0&&(t="r"),t+"-"+xj()}function f8(t){return t.replace(/</g,"<").replace(/>/g,">")}function rL(t,e,n,r){return Va(this,void 0,void 0,function(){var o,i;return Ua(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[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 oL(t,e,n){return Va(this,void 0,void 0,function(){var r;return Ua(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function d8(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function p2(t,e){return{type:"link",url:f8(t),children:e?[{text:e}]:[]}}function iL(t,e,n){return Va(this,void 0,void 0,function(){var r,o,i;return Ua(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),d8(t)?[2]:[4,rL("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,oL("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=p2(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=p2(r,e),N.insertNodes(t,i)):(i=p2(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}nn({target:"Array",proto:!0},{includes:function(t){return uot(this,t,arguments.length>1?arguments[1]:void 0)}}),zI("includes");var sot={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return bt("a",{href:o,target:i===void 0?"_blank":i},e)}},lot={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function h2(){return Cm("w-e-insert-link")}var cot=function(){function t(){this.title=tt("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=h2(),this.urlInputId=h2(),this.buttonId=h2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return d8(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Yt(ir(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=Yt(ir(tt("link.url"),i),2),f=c[0],p=B(c[1]),d=Yt(wc(a,tt("common.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(y){y.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();iL(e,h,b),e.hidePanelOrModal()}),this.$content=v}var g=this.$content;if(g.empty(),g.append(s),g.append(f),g.append(d),n==null||L.isCollapsed(n))l.val("");else{var m=E.string(e,n);l.val(m)}return p.val(""),setTimeout(function(){l.focus()}),g[0]},t}();function ok(){return Cm("w-e-update-link")}var fot=function(){function t(){this.title=tt("link.edit"),this.iconSvg=KI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ok(),this.buttonId=ok()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},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 n=this.urlInputId,r=this.buttonId,o=Yt(ir(tt("link.url"),n),2),i=o[0],a=B(o[1]),u=Yt(wc(r,tt("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var p=A.getSelectedNodeByType(e,"link"),d=p?Q.string(p):"",v=s.find("#"+n).val();(function(g,m,y){Va(this,void 0,void 0,function(){var h,b;return Ua(this,function(w){switch(w.label){case 0:return y?[4,rL("editLink",g,m,y)]:[2];case 1:return w.sent()?[4,oL("editLink",g,y)]:[2];case 2:return h=w.sent(),b={url:f8(h)},N.setNodes(g,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,d,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}(),dot=function(){function t(){this.title=tt("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,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),pot=function(){function t(){this.title=tt("link.view"),this.iconSvg=YI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n??null},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.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,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),ik={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},hot={renderElems:[sot],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[lot],menus:[{key:"insertLink",factory:function(){return new cot},config:ik},{key:"editLink",factory:function(){return new fot},config:ik},{key:"unLink",factory:function(){return new dot}},{key:"viewLink",factory:function(){return new pot}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=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(oot);if(!c)return!1;var f=c[1];return!(!f||!iot.test(f)&&!aot.test(f))}(a)){if(!d8(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);iL(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Yt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},got=mt(1 .valueOf),vot=St.RangeError,mot=St.RangeError,aL=St.String,uL=Math.floor,E6=mt(function(t){var e=Ce(Lr(this)),n="",r=Cc(t);if(r<0||r==1/0)throw vot("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),ak=mt("".slice),Ef=mt(1 .toFixed),ml=function(t,e,n){return e===0?n:e%2==1?ml(t,e-1,n*t):ml(t*t,e/2,n)},qs=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=uL(o/1e7)},g2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=uL(r/e),r=r%e*1e7},uk=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=aL(t[e]);n=n===""?r:n+E6("0",7-r.length)+r}return n};function sk(t,e){return"w-e-image-container-"+A.findKey(t,e).id}nn({target:"Number",proto:!0,forced:Se(function(){return Ef(8e-5,3)!=="0.000"||Ef(.9,0)!=="1"||Ef(1.255,2)!=="1.25"||Ef(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Se(function(){Ef({})})},{toFixed:function(t){var e,n,r,o,i=got(this),a=Cc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw mot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return aL(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f}(i*ml(2,69,1))-69)<0?i*ml(2,-e,1):i/ml(2,e,1),n*=4503599627370496,(e=52-e)>0){for(qs(u,0,n),r=a;r>=7;)qs(u,1e7,0),r-=7;for(qs(u,ml(10,r,1),0),r=e-1;r>=23;)g2(u,1<<23),r-=23;g2(u,1<<r),qs(u,1,1),g2(u,2),l=uk(u)}else qs(u,0,n),qs(u,1<<-e,0),l=uk(u)+E6("0",a);return a>0?s+((o=l.length)<=a?"0."+E6("0",a-o)+l:ak(l,0,o-a)+"."+ak(l,o-a)):s+l}});var yot={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,v=d===void 0?"":d,g=A.isNodeSelected(n,t),m={};p&&(m.width="100%"),v&&(m.height="100%");var y=bt("img",{style:m,src:o,alt:a,"data-href":s}),h=n.isDisabled();return g&&!h?function(b,w,D,x){var C=B("body"),O=sk(b,w),F=x.width,R=x.height,H=0,M=0,K=0,U=!1,W=null;function G(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(),C.on("mousemove",nt),C.on("mouseup",lt);var S=A.getHoverbar(b);S&&S.hideAndClean()}var nt=es(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 lt(at){if(C.off("mousemove",nt),W!=null){var k=W.width().toFixed(2),S=W.height().toFixed(2),P={style:Ta(Ta({},w.style),{width:k+"px",height:S+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),C.off("mouseup",lt)}}var st={};return F&&(st.width=F),R&&(st.height=R),bt("div",{id:O,style:st,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),G(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"}))}(n,t,y,{width:p,height:v}):function(b,w,D,x){var C=x.width,O=x.height,F={};return C&&(F.width=C),O&&(F.height=O),bt("div",{id:sk(b,w),style:F,className:"w-e-image-container"},D)}(n,t,y,{width:p,height:v})}},bot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:eo(r,"width"),height:eo(r,"height")},children:[{text:""}]}}};function sL(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Va(this,void 0,void 0,function(){var i,a;return Ua(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,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 lL(t,e,n){return Va(this,void 0,void 0,function(){var r;return Ua(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Mu(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Va(this,void 0,void 0,function(){var o,i,a;return Ua(this,function(u){switch(u.label){case 0:return[4,sL("insertImage",t,e,n,r)];case 1:return u.sent()?[4,lL("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:f8(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),xm(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function xm(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Yt(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function g0(){return Cm("w-e-insert-image")}var wot=function(){function t(){this.title=tt("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=g0(),this.altInputId=g0(),this.hrefInputId=g0(),this.buttonId=g0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return xm(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Yt(ir(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=Yt(ir(tt("image.desc"),i),2),p=f[0],d=B(f[1]),v=Yt(ir(tt("image.link"),a),2),g=v[0],m=B(v[1]),y=Yt(wc(u,tt("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(),x=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(e,D,x,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(g),b.append(y),c.val(""),d.val(""),m.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Mu(e,n,r,o))},t}(),Eot=function(){function t(){this.title=tt("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,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function v0(){return Cm("w-e-edit-image")}var Dot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=KI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=v0(),this.altInputId=v0(),this.hrefInputId=v0(),this.buttonId=v0()}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,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Yt(ir(tt("image.src"),o),2),c=l[0],f=B(l[1]),p=Yt(ir(tt("image.desc"),i),2),d=p[0],v=B(p[1]),g=Yt(ir(tt("image.link"),a),2),m=g[0],y=B(g[1]),h=Yt(wc(u,tt("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();n.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(m),w.append(h);var D=s,x=D.src,C=D.alt,O=C===void 0?"":C,F=D.href,R=F===void 0?"":F;return f.val(x),v.val(O),y.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Va(this,void 0,void 0,function(){var f,p,d,v,g,m;return Ua(this,function(y){switch(y.label){case 0:return[4,sL("editImage",a,u,s,l)];case 1:return y.sent()?[4,lL("editImage",a,u)]:[2];case 2:return f=y.sent(),(p=A.getSelectedNodeByType(a,"image"))==null||(d=p.style,v={src:f,alt:s,href:l,style:Ta(Ta({},d===void 0?{}:d),c)},N.setNodes(a,v,{match:function(h){return A.checkNodeType(h,"image")}}),g=A.getSelectedNodeByType(a,"image"),(m=a.getMenuConfig("editImage").onUpdatedImage)&&m(g)),[2]}})})}(e,n,r,o,i))},t}(),Cot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=YI,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.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,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),p8=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,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Ta(Ta({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),xot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Ee(e,t),e}(p8),Sot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Ee(e,t),e}(p8),Aot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Ee(e,t),e}(p8),lk={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Oot={renderElems:[yot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,v="";return f&&(v+="width: "+f+";"),d&&(v+="height: "+d+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[bot],menus:[{key:"insertImage",factory:function(){return new wot},config:lk},{key:"deleteImage",factory:function(){return new Eot}},{key:"editImage",factory:function(){return new Dot},config:lk},{key:"viewImageLink",factory:function(){return new Cot}},{key:"imageWidth30",factory:function(){return new xot}},{key:"imageWidth50",factory:function(){return new Sot}},{key:"imageWidth100",factory:function(){return new Aot}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},kot={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!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:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),bt("span",null,e));return o}},Bot=function(){function t(){this.title=tt("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(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),_ot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!ot.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Fot={renderElems:[kot],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"),n=B('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[_ot],menus:[{key:"todo",factory:function(){return new Bot}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Tot={type:"blockquote",renderElem:function(t,e,n){return bt("blockquote",null,e)}},Pot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!ot.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},jot=function(){function t(){this.title=tt("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(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),Not={key:"blockquote",factory:function(){return new jot}},Iot=mt([].slice),Lot=i8("slice"),Rot=gr("species"),v2=St.Array,Mot=Math.max;nn({target:"Array",proto:!0,forced:!Lot},{slice:function(t,e){var n,r,o,i=Ec(this),a=Em(i),u=cp(t,a),s=cp(e===void 0?a:e,a);if(Nv(i)&&(n=i.constructor,(o8(n)&&(n===v2||Nv(n.prototype))||Ar(n)&&(n=n[Rot])===null)&&(n=void 0),n===v2||n===void 0))return Iot(i,u,s);for(r=new(n===void 0?v2:n)(Mot(s-u,0)),o=0;u<s;u++,o++)u in i&&HI(r,o,i[u]);return r.length=o,r}});var zot={renderElems:[Tot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Pot],menus:[Not],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.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(Bt.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
- `)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},$ot=function(){function t(){this.title=tt("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,n){},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(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=B('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),Hot={menus:[{key:"emotion",factory:function(){return new $ot},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Vot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Uot={selector:"font",preParseHtml:function(t){var e=B(t);if(Sc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Vot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Wot=mt("".indexOf);nn({target:"String",proto:!0,forced:!JI("includes")},{includes:function(t){return!!~Wot(Ce(Lr(this)),Ce(ZI(t)),arguments.length>1?arguments[1]:void 0)}});var Ii,vg,m0=function(t){return t&&t.Math==Math&&t},_t=m0(typeof globalThis=="object"&&globalThis)||m0(typeof window=="object"&&window)||m0(typeof self=="object"&&self)||m0(typeof Fv=="object"&&Fv)||function(){return this}()||Function("return this")(),h8=Function.prototype,ck=h8.apply,qot=h8.bind,fk=h8.call,cL=typeof Reflect=="object"&&Reflect.apply||(qot?fk.bind(ck):function(){return fk.apply(ck,arguments)}),fL=Function.prototype,D6=fL.bind,C6=fL.call,Got=D6&&D6.bind(C6),je=D6?function(t){return t&&Got(C6,t)}:function(t){return t&&function(){return C6.apply(t,arguments)}},mn=function(t){return typeof t=="function"},dr=function(t){try{return!!t()}catch{return!0}},Kn=!dr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Df=Function.prototype.call,Xr=Df.bind?Df.bind(Df):function(){return Df.apply(Df,arguments)},dk={}.propertyIsEnumerable,pk=Object.getOwnPropertyDescriptor,Kot=pk&&!dk.call({1:2},1)?function(t){var e=pk(this,t);return!!e&&e.enumerable}:dk,g8={f:Kot},ss=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Yot=je({}.toString),Xot=je("".slice),zu=function(t){return Xot(Yot(t),8,-1)},m2=_t.Object,Zot=je("".split),dL=dr(function(){return!m2("z").propertyIsEnumerable(0)})?function(t){return zu(t)=="String"?Zot(t,""):m2(t)}:m2,Jot=_t.TypeError,v8=function(t){if(t==null)throw Jot("Can't call method on "+t);return t},$o=function(t){return dL(v8(t))},Or=function(t){return typeof t=="object"?t!==null:mn(t)},Dr={},hk=function(t){return mn(t)?t:void 0},lh=function(t,e){return arguments.length<2?hk(Dr[t])||hk(_t[t]):Dr[t]&&Dr[t][e]||_t[t]&&_t[t][e]},pL=je({}.isPrototypeOf),y2=lh("navigator","userAgent")||"",gk=_t.process,vk=_t.Deno,mk=gk&&gk.versions||vk&&vk.version,yk=mk&&mk.v8;yk&&(vg=(Ii=yk.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!vg&&y2&&(!(Ii=y2.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=y2.match(/Chrome\/(\d+)/))&&(vg=+Ii[1]);var Rv=vg,bo=!!Object.getOwnPropertySymbols&&!dr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Rv&&Rv<41}),m8=bo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qot=_t.Object,Al=m8?function(t){return typeof t=="symbol"}:function(t){var e=lh("Symbol");return mn(e)&&pL(e.prototype,Qot(t))},tit=_t.String,eit=_t.TypeError,hL=function(t){if(mn(t))return t;throw eit(function(e){try{return tit(e)}catch{return"Object"}}(t)+" is not a function")},nit=_t.TypeError,rit=Object.defineProperty,ga=_t["__core-js_shared__"]||function(t,e){try{rit(_t,t,{value:e,configurable:!0,writable:!0})}catch{_t[t]=e}return e}("__core-js_shared__",{}),Ds=mm(function(t){(t.exports=function(e,n){return ga[e]||(ga[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),oit=_t.Object,ch=function(t){return oit(v8(t))},iit=je({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return iit(ch(t),e)},ait=0,uit=Math.random(),sit=je(1 .toString),Mv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+sit(++ait+uit,36)},Cf=Ds("wks"),$u=_t.Symbol,bk=$u&&$u.for,lit=m8?$u:$u&&$u.withoutSetter||Mv,vr=function(t){if(!Kt(Cf,t)||!bo&&typeof Cf[t]!="string"){var e="Symbol."+t;bo&&Kt($u,t)?Cf[t]=$u[t]:Cf[t]=m8&&bk?bk(e):lit(e)}return Cf[t]},cit=_t.TypeError,fit=vr("toPrimitive"),Ac=function(t){var e=function(n,r){if(!Or(n)||Al(n))return n;var o,i,a=(o=n[fit])==null?void 0:hL(o);if(a){if(r===void 0&&(r="default"),i=Xr(a,n,r),!Or(i)||Al(i))return i;throw cit("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(u,s){var l,c;if(s==="string"&&mn(l=u.toString)&&!Or(c=Xr(l,u))||mn(l=u.valueOf)&&!Or(c=Xr(l,u))||s!=="string"&&mn(l=u.toString)&&!Or(c=Xr(l,u)))return c;throw nit("Can't convert object to primitive value")}(n,r)}(t,"string");return Al(e)?e:e+""},x6=_t.document,dit=Or(x6)&&Or(x6.createElement),gL=function(t){return dit?x6.createElement(t):{}},vL=!Kn&&!dr(function(){return Object.defineProperty(gL("div"),"a",{get:function(){return 7}}).a!=7}),wk=Object.getOwnPropertyDescriptor,y8={f:Kn?wk:function(t,e){if(t=$o(t),e=Ac(e),vL)try{return wk(t,e)}catch{}if(Kt(t,e))return ss(!Xr(g8.f,t,e),t[e])}},pit=/#|\.prototype\./,fh=function(t,e){var n=git[hit(t)];return n==mit||n!=vit&&(mn(e)?dr(e):!!e)},hit=fh.normalize=function(t){return String(t).replace(pit,".").toLowerCase()},git=fh.data={},vit=fh.NATIVE="N",mit=fh.POLYFILL="P",yit=fh,Ek=je(je.bind),mL=function(t,e){return hL(t),e===void 0?t:Ek?Ek(t,e):function(){return t.apply(e,arguments)}},bit=_t.String,wit=_t.TypeError,ls=function(t){if(Or(t))return t;throw wit(bit(t)+" is not an object")},Eit=_t.TypeError,Dk=Object.defineProperty,Cs={f:Kn?Dk:function(t,e,n){if(ls(t),e=Ac(e),ls(n),vL)try{return Dk(t,e,n)}catch{}if("get"in n||"set"in n)throw Eit("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Eo=Kn?function(t,e,n){return Cs.f(t,e,ss(1,n))}:function(t,e,n){return t[e]=n,t},Dit=y8.f,Cit=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return cL(t,this,arguments)};return e.prototype=t.prototype,e},Yi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,p=t.stat,d=t.proto,v=f?_t:p?_t[c]:(_t[c]||{}).prototype,g=f?Dr:Dr[c]||Eo(Dr,c,{})[c],m=g.prototype;for(o in e)n=!yit(f?o:c+(p?".":"#")+o,t.forced)&&v&&Kt(v,o),a=g[o],n&&(u=t.noTargetGet?(l=Dit(v,o))&&l.value:v[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?mL(i,_t):t.wrap&&n?Cit(i):d&&mn(i)?je(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Eo(s,"sham",!0),Eo(g,o,s),d&&(Kt(Dr,r=c+"Prototype")||Eo(Dr,r,{}),Eo(Dr[r],o,i),t.real&&m&&!m[o]&&Eo(m,o,i)))},zv=Array.isArray||function(t){return zu(t)=="Array"},xit=Math.ceil,Sit=Math.floor,b8=function(t){var e=+t;return e!=e||e===0?0:(e>0?Sit:xit)(e)},Ait=Math.min,Sm=function(t){return(e=t.length)>0?Ait(b8(e),9007199254740991):0;var e},S6=function(t,e,n){var r=Ac(e);r in t?Cs.f(t,r,ss(0,n)):t[r]=n},yL={};yL[vr("toStringTag")]="z";var w8=String(yL)==="[object z]",Oit=vr("toStringTag"),kit=_t.Object,Bit=zu(function(){return arguments}())=="Arguments",Am=w8?zu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=kit(t),Oit))=="string"?n:Bit?zu(e):(r=zu(e))=="Object"&&mn(e.callee)?"Arguments":r},_it=je(Function.toString);mn(ga.inspectSource)||(ga.inspectSource=function(t){return _it(t)});var bL=ga.inspectSource,wL=function(){},Fit=[],EL=lh("Reflect","construct"),E8=/^\s*(?:class|function)\b/,Tit=je(E8.exec),Pit=!E8.exec(wL),xf=function(t){if(!mn(t))return!1;try{return EL(wL,Fit,t),!0}catch{return!1}},jit=!EL||dr(function(){var t;return xf(xf.call)||!xf(Object)||!xf(function(){t=!0})||t})?function(t){if(!mn(t))return!1;switch(Am(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pit||!!Tit(E8,bL(t))}:xf,Nit=vr("species"),Ck=_t.Array,DL=function(t,e){return new(function(n){var r;return zv(n)&&(r=n.constructor,(jit(r)&&(r===Ck||zv(r.prototype))||Or(r)&&(r=r[Nit])===null)&&(r=void 0)),r===void 0?Ck:r}(t))(e===0?0:e)},Iit=vr("species"),CL=vr("isConcatSpreadable"),xk=_t.TypeError,Lit=Rv>=51||!dr(function(){var t=[];return t[CL]=!1,t.concat()[0]!==t}),Rit=Rv>=51||!dr(function(){var t=[];return(t.constructor={})[Iit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Mit=function(t){if(!Or(t))return!1;var e=t[CL];return e!==void 0?!!e:zv(t)};Yi({target:"Array",proto:!0,forced:!Lit||!Rit},{concat:function(t){var e,n,r,o,i,a=ch(this),u=DL(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Mit(i=e===-1?a:arguments[e])){if(s+(o=Sm(i))>9007199254740991)throw xk("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&S6(u,s,i[n])}else{if(s>=9007199254740991)throw xk("Maximum allowed index exceeded");S6(u,s++,i)}return u.length=s,u}});var y0,zit=_t.String,$v=function(t){if(Am(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return zit(t)},$it=Math.max,Hit=Math.min,A6=function(t,e){var n=b8(t);return n<0?$it(n+e,0):Hit(n,e)},Sk=function(t){return function(e,n,r){var o,i=$o(e),a=Sm(i),u=A6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Vit={includes:Sk(!0),indexOf:Sk(!1)},dh={},Uit=Vit.indexOf,Ak=je([].push),xL=function(t,e){var n,r=$o(t),o=0,i=[];for(n in r)!Kt(dh,n)&&Kt(r,n)&&Ak(i,n);for(;e.length>o;)Kt(r,n=e[o++])&&(~Uit(i,n)||Ak(i,n));return i},Hv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],D8=Object.keys||function(t){return xL(t,Hv)},Wit=Kn?Object.defineProperties:function(t,e){ls(t);for(var n,r=$o(e),o=D8(e),i=o.length,a=0;i>a;)Cs.f(t,n=o[a++],r[n]);return t},qit=lh("document","documentElement"),Ok=Ds("keys"),Om=function(t){return Ok[t]||(Ok[t]=Mv(t))},SL=Om("IE_PROTO"),b2=function(){},AL=function(t){return"<script>"+t+"<\/script>"},kk=function(t){t.write(AL("")),t.close();var e=t.parentWindow.Object;return t=null,e},mg=function(){try{y0=new ActiveXObject("htmlfile")}catch{}var t,e;mg=typeof document<"u"?document.domain&&y0?kk(y0):((e=gL("iframe")).style.display="none",qit.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(AL("document.F=Object")),t.close(),t.F):kk(y0);for(var n=Hv.length;n--;)delete mg.prototype[Hv[n]];return mg()};dh[SL]=!0;var Vv,Sd,Uv,cs=Object.create||function(t,e){var n;return t!==null?(b2.prototype=ls(t),n=new b2,b2.prototype=null,n[SL]=t):n=mg(),e===void 0?n:Wit(n,e)},Git=Hv.concat("length","prototype"),OL={f:Object.getOwnPropertyNames||function(t){return xL(t,Git)}},Kit=_t.Array,Yit=Math.max,Bk=OL.f,_k=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kL={f:function(t){return _k&&zu(t)=="Window"?function(e){try{return Bk(e)}catch{return function(r,o,i){for(var a=Sm(r),u=A6(void 0,a),s=A6(a,a),l=Kit(Yit(s-u,0)),c=0;u<s;u++,c++)S6(l,c,r[u]);return l.length=c,l}(_k)}}(t):Bk($o(t))}},w2={f:Object.getOwnPropertySymbols},Xit=je([].slice),nc=function(t,e,n,r){r&&r.enumerable?t[e]=n:Eo(t,e,n)},C8={f:vr},Zit=Cs.f,Le=function(t){var e=Dr.Symbol||(Dr.Symbol={});Kt(e,t)||Zit(e,t,{value:C8.f(t)})},Jit=w8?{}.toString:function(){return"[object "+Am(this)+"]"},Qit=Cs.f,Fk=vr("toStringTag"),Wv=function(t,e,n,r){if(t){var o=n?t:t.prototype;Kt(o,Fk)||Qit(o,Fk,{configurable:!0,value:e}),r&&!w8&&Eo(o,"toString",Jit)}},Tk=_t.WeakMap,tat=mn(Tk)&&/native code/.test(bL(Tk)),O6=_t.TypeError,eat=_t.WeakMap;if(tat||ga.state){var iu=ga.state||(ga.state=new eat),nat=je(iu.get),Pk=je(iu.has),rat=je(iu.set);Vv=function(t,e){if(Pk(iu,t))throw new O6("Object already initialized");return e.facade=t,rat(iu,t,e),e},Sd=function(t){return nat(iu,t)||{}},Uv=function(t){return Pk(iu,t)}}else{var Gs=Om("state");dh[Gs]=!0,Vv=function(t,e){if(Kt(t,Gs))throw new O6("Object already initialized");return e.facade=t,Eo(t,Gs,e),e},Sd=function(t){return Kt(t,Gs)?t[Gs]:{}},Uv=function(t){return Kt(t,Gs)}}var Oc={set:Vv,get:Sd,has:Uv,enforce:function(t){return Uv(t)?Sd(t):Vv(t,{})},getterFor:function(t){return function(e){var n;if(!Or(e)||(n=Sd(e)).type!==t)throw O6("Incompatible receiver, "+t+" required");return n}}},jk=je([].push),Li=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=ch(s),g=dL(v),m=mL(l,c),y=Sm(g),h=0,b=f||DL,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:jk(w,p)}else switch(t){case 4:return!1;case 7:jk(w,p)}return i?-1:r||o?o:w}},km=[Li(0),Li(1),Li(2),Li(3),Li(4),Li(5),Li(6),Li(7)][0],Hn=Om("hidden"),Nk=vr("toPrimitive"),oat=Oc.set,Ik=Oc.getterFor("Symbol"),Zr=Object.prototype,Ji=_t.Symbol,oa=Ji&&Ji.prototype,Lk=_t.TypeError,E2=_t.QObject,Sf=lh("JSON","stringify"),BL=y8.f,Qi=Cs.f,_L=kL.f,iat=g8.f,FL=je([].push),pi=Ds("symbols"),ph=Ds("op-symbols"),D2=Ds("string-to-symbol-registry"),C2=Ds("symbol-to-string-registry"),aat=Ds("wks"),x2=!E2||!E2.prototype||!E2.prototype.findChild,k6=Kn&&dr(function(){return cs(Qi({},"a",{get:function(){return Qi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=BL(Zr,e);r&&delete Zr[e],Qi(t,e,n),r&&t!==Zr&&Qi(Zr,e,r)}:Qi,S2=function(t,e){var n=pi[t]=cs(oa);return oat(n,{type:"Symbol",tag:t,description:e}),Kn||(n.description=e),n},qv=function(t,e,n){t===Zr&&qv(ph,e,n),ls(t);var r=Ac(e);return ls(n),Kt(pi,r)?(n.enumerable?(Kt(t,Hn)&&t[Hn][r]&&(t[Hn][r]=!1),n=cs(n,{enumerable:ss(0,!1)})):(Kt(t,Hn)||Qi(t,Hn,ss(1,{})),t[Hn][r]=!0),k6(t,r,n)):Qi(t,r,n)},Rk=function(t,e){ls(t);var n=$o(e),r=D8(n).concat(B6(n));return km(r,function(o){Kn&&!Xr(TL,n,o)||qv(t,o,n[o])}),t},TL=function(t){var e=Ac(t),n=Xr(iat,this,e);return!(this===Zr&&Kt(pi,e)&&!Kt(ph,e))&&(!(n||!Kt(this,e)||!Kt(pi,e)||Kt(this,Hn)&&this[Hn][e])||n)},Mk=function(t,e){var n=$o(t),r=Ac(e);if(n!==Zr||!Kt(pi,r)||Kt(ph,r)){var o=BL(n,r);return!o||!Kt(pi,r)||Kt(n,Hn)&&n[Hn][r]||(o.enumerable=!0),o}},zk=function(t){var e=_L($o(t)),n=[];return km(e,function(r){Kt(pi,r)||Kt(dh,r)||FL(n,r)}),n},B6=function(t){var e=t===Zr,n=_L(e?ph:$o(t)),r=[];return km(n,function(o){!Kt(pi,o)||e&&!Kt(Zr,o)||FL(r,pi[o])}),r};if(bo||(oa=(Ji=function(){if(pL(oa,this))throw Lk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?$v(arguments[0]):void 0,e=Mv(t),n=function(r){this===Zr&&Xr(n,ph,r),Kt(this,Hn)&&Kt(this[Hn],e)&&(this[Hn][e]=!1),k6(this,e,ss(1,r))};return Kn&&x2&&k6(Zr,e,{configurable:!0,set:n}),S2(e,t)}).prototype,nc(oa,"toString",function(){return Ik(this).tag}),nc(Ji,"withoutSetter",function(t){return S2(Mv(t),t)}),g8.f=TL,Cs.f=qv,y8.f=Mk,OL.f=kL.f=zk,w2.f=B6,C8.f=function(t){return S2(vr(t),t)},Kn&&Qi(oa,"description",{configurable:!0,get:function(){return Ik(this).description}})),Yi({global:!0,wrap:!0,forced:!bo,sham:!bo},{Symbol:Ji}),km(D8(aat),function(t){Le(t)}),Yi({target:"Symbol",stat:!0,forced:!bo},{for:function(t){var e=$v(t);if(Kt(D2,e))return D2[e];var n=Ji(e);return D2[e]=n,C2[n]=e,n},keyFor:function(t){if(!Al(t))throw Lk(t+" is not a symbol");if(Kt(C2,t))return C2[t]},useSetter:function(){x2=!0},useSimple:function(){x2=!1}}),Yi({target:"Object",stat:!0,forced:!bo,sham:!Kn},{create:function(t,e){return e===void 0?cs(t):Rk(cs(t),e)},defineProperty:qv,defineProperties:Rk,getOwnPropertyDescriptor:Mk}),Yi({target:"Object",stat:!0,forced:!bo},{getOwnPropertyNames:zk,getOwnPropertySymbols:B6}),Yi({target:"Object",stat:!0,forced:dr(function(){w2.f(1)})},{getOwnPropertySymbols:function(t){return w2.f(ch(t))}}),Sf){var uat=!bo||dr(function(){var t=Ji();return Sf([t])!="[null]"||Sf({a:t})!="{}"||Sf(Object(t))!="{}"});Yi({target:"JSON",stat:!0,forced:uat},{stringify:function(t,e,n){var r=Xit(arguments),o=e;if((Or(e)||t!==void 0)&&!Al(t))return zv(e)||(e=function(i,a){if(mn(o)&&(a=Xr(o,this,i,a)),!Al(a))return a}),r[1]=e,cL(Sf,null,r)}})}if(!oa[Nk]){var sat=oa.valueOf;nc(oa,Nk,function(t){return Xr(sat,this)})}Wv(Ji,"Symbol"),dh[Hn]=!0,Le("asyncIterator"),Le("hasInstance"),Le("isConcatSpreadable"),Le("iterator"),Le("match"),Le("matchAll"),Le("replace"),Le("search"),Le("species"),Le("split"),Le("toPrimitive"),Le("toStringTag"),Le("unscopables"),Wv(_t.JSON,"JSON",!0);var ia,$k,Hk,lat=Dr.Symbol,Hu={},PL=Function.prototype,cat=Kn&&Object.getOwnPropertyDescriptor,A2=Kt(PL,"name"),fat={EXISTS:A2,PROPER:A2&&function(){}.name==="something",CONFIGURABLE:A2&&(!Kn||Kn&&cat(PL,"name").configurable)},dat=!dr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Vk=Om("IE_PROTO"),_6=_t.Object,pat=_6.prototype,F6=dat?_6.getPrototypeOf:function(t){var e=ch(t);if(Kt(e,Vk))return e[Vk];var n=e.constructor;return mn(n)&&e instanceof n?n.prototype:e instanceof _6?pat:null},T6=vr("iterator"),jL=!1;[].keys&&("next"in(Hk=[].keys())?($k=F6(F6(Hk)))!==Object.prototype&&(ia=$k):jL=!0);var hat=ia==null||dr(function(){var t={};return ia[T6].call(t)!==t});ia=hat?{}:cs(ia),mn(ia[T6])||nc(ia,T6,function(){return this});var NL={IteratorPrototype:ia,BUGGY_SAFARI_ITERATORS:jL},gat=NL.IteratorPrototype,vat=function(){return this};_t.String,_t.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{je(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch{}}();var mat=fat.PROPER,b0=NL.BUGGY_SAFARI_ITERATORS,O2=vr("iterator"),yat=function(){return this},IL=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=cs(gat,{next:ss(1,b)}),Wv(y,D,!1,!0),Hu[D]=vat})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!b0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[O2]||d["@@iterator"]||o&&d[o],g=!b0&&v||c(o),m=e=="Array"&&d.entries||v;if(m&&(u=F6(m.call(new t)))!==Object.prototype&&u.next&&(Wv(u,f,!0,!0),Hu[f]=yat),mat&&o=="values"&&v&&v.name!=="values"&&(p=!0,g=function(){return Xr(v,this)}),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(b0||p||!(l in d))&&nc(d,l,s[l]);else Yi({target:e,proto:!0,forced:b0||p},s);return a&&d[O2]!==g&&nc(d,O2,g,{name:o}),Hu[e]=g,s},bat=Oc.set,wat=Oc.getterFor("Array Iterator");IL(Array,"Array",function(t,e){bat(this,{type:"Array Iterator",target:$o(t),index:0,kind:e})},function(){var t=wat(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Hu.Arguments=Hu.Array;var Uk=vr("toStringTag");for(var k2 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 Wk=_t[k2],B2=Wk&&Wk.prototype;B2&&Am(B2)!==Uk&&Eo(B2,Uk,k2),Hu[k2]=Hu.Array}var Eat=lat;Le("asyncDispose"),Le("dispose"),Le("matcher"),Le("metadata"),Le("observable"),Le("patternMatch"),Le("replaceAll");var w0=Eat,Dat=je("".charAt),qk=je("".charCodeAt),Cat=je("".slice),xat=function(t){return function(e,n){var r,o,i=$v(v8(e)),a=b8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=qk(i,a))<55296||r>56319||a+1===u||(o=qk(i,a+1))<56320||o>57343?t?Dat(i,a):r:t?Cat(i,a,a+2):o-56320+(r-55296<<10)+65536}},Sat=xat(!0),Aat=Oc.set,Oat=Oc.getterFor("String Iterator");IL(String,"String",function(t){Aat(this,{type:"String Iterator",string:$v(t),index:0})},function(){var t,e=Oat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Sat(n,r),e.index+=t.length,{value:t,done:!1})});var kat=C8.f("iterator"),Bat=mm(function(t){function e(n){return typeof w0=="function"&&typeof kat=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof w0=="function"&&r.constructor===w0&&r!==w0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),LL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(Bat),_at=wm.EXISTS,Fat=Dc.f,RL=Function.prototype,Tat=mt(RL.toString),ML=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Pat=mt(ML.exec);oo&&!_at&&Fat(RL,"name",{configurable:!0,get:function(){try{return Pat(ML,Tat(this))[1]}catch{return""}}});var zL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Yt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),jat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=urt,n.mark="fontSize",n}return Ee(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(LL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(zL),Nat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=srt,n.mark="fontFamily",n.selectPanelWidth=150,n}return Ee(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(LL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(zL),Iat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&us(i,{fontSize:r}),o&&us(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!ot.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((c8(e)||Sc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),xc(n)):e},preParseHtml:[Uot],parseStyleHtml:function(t,e,n){var r=B(t);if(!ot.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=eo(r,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=eo(r,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new jat},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 Nat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Lat={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=eo(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},$L=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Yt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Yt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Rat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=lrt,n}return Ee(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ct.isElement(o)}})},e}($L),Mat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=crt,n}return Ee(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ct.isElement(o)},mode:"highest"})},e}($L),zat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.indent,r=e;return n&&us(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),xc(r)},preParseHtml:[Lat],parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=eo(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Mat}},{key:"delIndent",factory:function(){return new Rat}}]},Bm=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 n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),$at=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=frt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Bm),Hat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=drt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Bm),Vat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=prt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Bm),Uat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=hrt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ct.isElement(o)&&!n.isInline(o)}})},e}(Bm),Wat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign,r=e;return n&&us(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),xc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=eo(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new $at}},{key:"justifyRight",factory:function(){return new Hat}},{key:"justifyCenter",factory:function(){return new Vat}},{key:"justifyJustify",factory:function(){return new Uat}}]},qat=function(){function t(){this.title=tt("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 n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Yt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ct.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Gat={renderStyle:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight,r=e;return n&&us(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ct.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),xc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=eo(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new qat},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Kat=function(){function t(){this.title=tt("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,n){typeof e.redo=="function"&&e.redo()},t}(),Yat=function(){function t(){this.title=tt("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,n){typeof e.undo=="function"&&e.undo()},t}(),Xat={menus:[{key:"redo",factory:function(){return new Kat}},{key:"undo",factory:function(){return new Yat}}]},Zat={type:"divider",renderElem:function(t,e,n){return Kl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[Kl("hr")])}},Jat=function(){function t(){this.title=tt("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(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Qat={renderElems:[Zat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Jat}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Yt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},tut=Dm.map;nn({target:"Array",proto:!0,forced:!i8("map")},{map:function(t){return tut(this,t,arguments.length>1?arguments[1]:void 0)}});var eut=mt([].join),nut=ym!=Object,rut=WI("join",",");nn({target:"Array",proto:!0,forced:nut||!rut},{join:function(t){return eut(Ec(this),t===void 0?",":t)}});var out=function(){function t(){this.title=tt("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 n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=Q.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(`
- `).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=UI(a),s=u.next();!s.done;s=u.next()){var l=Yt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),iut={key:"codeBlock",factory:function(){return new out}};nn({target:"String",proto:!0,forced:cd("anchor")},{anchor:function(t){return ld(this,"a","name",t)}}),s8("match",function(t,e,n){return[function(r){var o=Lr(this),i=r==null?void 0:bm(r,t);return i?Pe(i,r,o):new RegExp(r)[t](Ce(o))},function(r){var o=ar(this),i=Ce(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return dp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=dp(o,i))!==null;){var f=Ce(s[0]);l[c]=f,f===""&&(o.lastIndex=l8(i,ih(o.lastIndex),u)),c++}return c===0?null:l}]});var aut={type:"pre",renderElem:function(t,e,n){return bt("pre",null,e)}},uut={type:"code",renderElem:function(t,e,n){return bt("code",null,e)}},sut={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},lut={menus:[iut],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=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 p=Q.string(l),d=f.anchor.offset,v=p.slice(0,d).split(`
- `),g=v.length;return g===0?"":v[g-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"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[aut,uut],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(Sc(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},sut]},cut=function(){function t(){this.title=tt("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,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),fut={menus:[{key:"fullScreen",factory:function(){return new cut}}]},dut=function(){function t(){this.title=tt("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 n=e.selection;return n==null||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),put=[Srt,rot,Iat,zat,Wat,Gat,Oot,Qat,Hot,hot,lut,zot,Jrt,Knt,Fot,Xat,fut,{menus:[{key:"enter",factory:function(){return new dut}}]}];Xn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Xn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Gk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ri,yg,E0=function(t){return t&&t.Math==Math&&t},wt=E0(typeof globalThis=="object"&&globalThis)||E0(typeof window=="object"&&window)||E0(typeof self=="object"&&self)||E0(typeof Gk=="object"&&Gk)||function(){return this}()||Function("return this")(),HL=Function.prototype,P6=HL.bind,j6=HL.call,hut=P6&&P6.bind(j6),jt=P6?function(t){return t&&hut(j6,t)}:function(t){return t&&function(){return j6.apply(t,arguments)}},Be=function(t){try{return!!t()}catch{return!0}},gut=jt({}.toString),vut=jt("".slice),si=function(t){return vut(gut(t),8,-1)},_2=wt.Object,mut=jt("".split),VL=Be(function(){return!_2("z").propertyIsEnumerable(0)})?function(t){return si(t)=="String"?mut(t,""):_2(t)}:_2,yut=wt.TypeError,_m=function(t){if(t==null)throw yut("Can't call method on "+t);return t},kc=function(t){return VL(_m(t))},but=Object.defineProperty,S8=function(t,e){try{but(wt,t,{value:e,configurable:!0,writable:!0})}catch{wt[t]=e}return e},va=wt["__core-js_shared__"]||S8("__core-js_shared__",{}),A8=x8(function(t){(t.exports=function(e,n){return va[e]||(va[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),wut=wt.Object,hh=function(t){return wut(_m(t))},Eut=jt({}.hasOwnProperty),on=Object.hasOwn||function(t,e){return Eut(hh(t),e)},Dut=0,Cut=Math.random(),xut=jt(1 .toString),O8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+xut(++Dut+Cut,36)},_e=function(t){return typeof t=="function"},Sut=function(t){return _e(t)?t:void 0},gh=function(t,e){return arguments.length<2?Sut(wt[t]):wt[t]&&wt[t][e]},F2=gh("navigator","userAgent")||"",Kk=wt.process,Yk=wt.Deno,Xk=Kk&&Kk.versions||Yk&&Yk.version,Zk=Xk&&Xk.v8;Zk&&(yg=(Ri=Zk.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!yg&&F2&&(!(Ri=F2.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=F2.match(/Chrome\/(\d+)/))&&(yg=+Ri[1]);var D0,N6=yg,I6=!!Object.getOwnPropertySymbols&&!Be(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&N6&&N6<41}),k8=I6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Af=A8("wks"),Vu=wt.Symbol,Jk=Vu&&Vu.for,Aut=k8?Vu:Vu&&Vu.withoutSetter||O8,bn=function(t){if(!on(Af,t)||!I6&&typeof Af[t]!="string"){var e="Symbol."+t;I6&&on(Vu,t)?Af[t]=Vu[t]:Af[t]=k8&&Jk?Jk(e):Aut(e)}return Af[t]},ke=function(t){return typeof t=="object"?t!==null:_e(t)},Out=wt.String,kut=wt.TypeError,Zn=function(t){if(ke(t))return t;throw kut(Out(t)+" is not an object")},Pa=!Be(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),L6=wt.document,But=ke(L6)&&ke(L6.createElement),B8=function(t){return But?L6.createElement(t):{}},UL=!Pa&&!Be(function(){return Object.defineProperty(B8("div"),"a",{get:function(){return 7}}).a!=7}),Of=Function.prototype.call,rn=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},Gv=jt({}.isPrototypeOf),_ut=wt.Object,T2=k8?function(t){return typeof t=="symbol"}:function(t){var e=gh("Symbol");return _e(e)&&Gv(e.prototype,_ut(t))},Fut=wt.String,R6=function(t){try{return Fut(t)}catch{return"Object"}},Tut=wt.TypeError,_8=function(t){if(_e(t))return t;throw Tut(R6(t)+" is not a function")},pp=function(t,e){var n=t[e];return n==null?void 0:_8(n)},Put=wt.TypeError,jut=wt.TypeError,Nut=bn("toPrimitive"),F8=function(t){var e=function(n,r){if(!ke(n)||T2(n))return n;var o,i=pp(n,Nut);if(i){if(r===void 0&&(r="default"),o=rn(i,n,r),!ke(o)||T2(o))return o;throw jut("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&_e(s=a.toString)&&!ke(l=rn(s,a))||_e(s=a.valueOf)&&!ke(l=rn(s,a))||u!=="string"&&_e(s=a.toString)&&!ke(l=rn(s,a)))return l;throw Put("Can't convert object to primitive value")}(n,r)}(t,"string");return T2(e)?e:e+""},Iut=wt.TypeError,Qk=Object.defineProperty,xs={f:Pa?Qk:function(t,e,n){if(Zn(t),e=F8(e),Zn(n),UL)try{return Qk(t,e,n)}catch{}if("get"in n||"set"in n)throw Iut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Lut=Math.ceil,Rut=Math.floor,vh=function(t){var e=+t;return e!=e||e===0?0:(e>0?Rut:Lut)(e)},Mut=Math.max,zut=Math.min,M6=function(t,e){var n=vh(t);return n<0?Mut(n+e,0):zut(n,e)},$ut=Math.min,WL=function(t){return t>0?$ut(vh(t),9007199254740991):0},Bc=function(t){return WL(t.length)},tB=function(t){return function(e,n,r){var o,i=kc(e),a=Bc(i),u=M6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},qL={includes:tB(!0),indexOf:tB(!1)},Fm={},Hut=qL.indexOf,eB=jt([].push),GL=function(t,e){var n,r=kc(t),o=0,i=[];for(n in r)!on(Fm,n)&&on(r,n)&&eB(i,n);for(;e.length>o;)on(r,n=e[o++])&&(~Hut(i,n)||eB(i,n));return i},Kv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vut=Object.keys||function(t){return GL(t,Kv)},Uut=Pa?Object.defineProperties:function(t,e){Zn(t);for(var n,r=kc(e),o=Vut(e),i=o.length,a=0;i>a;)xs.f(t,n=o[a++],r[n]);return t},Wut=gh("document","documentElement"),nB=A8("keys"),T8=function(t){return nB[t]||(nB[t]=O8(t))},KL=T8("IE_PROTO"),P2=function(){},YL=function(t){return"<script>"+t+"<\/script>"},rB=function(t){t.write(YL("")),t.close();var e=t.parentWindow.Object;return t=null,e},bg=function(){try{D0=new ActiveXObject("htmlfile")}catch{}var t,e;bg=typeof document<"u"?document.domain&&D0?rB(D0):((e=B8("iframe")).style.display="none",Wut.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(YL("document.F=Object")),t.close(),t.F):rB(D0);for(var n=Kv.length;n--;)delete bg.prototype[Kv[n]];return bg()};Fm[KL]=!0;var P8=Object.create||function(t,e){var n;return t!==null?(P2.prototype=Zn(t),n=new P2,P2.prototype=null,n[KL]=t):n=bg(),e===void 0?n:Uut(n,e)},z6=bn("unscopables"),$6=Array.prototype;$6[z6]==null&&xs.f($6,z6,{configurable:!0,value:P8(null)});var Ad=function(t){$6[z6][t]=!0},rc={},qut=jt(Function.toString);_e(va.inspectSource)||(va.inspectSource=function(t){return qut(t)});var Yv,Od,Xv,j8=va.inspectSource,oB=wt.WeakMap,XL=_e(oB)&&/native code/.test(j8(oB)),Tm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},ma=Pa?function(t,e,n){return xs.f(t,e,Tm(1,n))}:function(t,e,n){return t[e]=n,t},H6=wt.TypeError,Gut=wt.WeakMap;if(XL||va.state){var au=va.state||(va.state=new Gut),Kut=jt(au.get),iB=jt(au.has),Yut=jt(au.set);Yv=function(t,e){if(iB(au,t))throw new H6("Object already initialized");return e.facade=t,Yut(au,t,e),e},Od=function(t){return Kut(au,t)||{}},Xv=function(t){return iB(au,t)}}else{var Ks=T8("state");Fm[Ks]=!0,Yv=function(t,e){if(on(t,Ks))throw new H6("Object already initialized");return e.facade=t,ma(t,Ks,e),e},Od=function(t){return on(t,Ks)?t[Ks]:{}},Xv=function(t){return on(t,Ks)}}var Uu,aB,uB,No={set:Yv,get:Od,has:Xv,enforce:function(t){return Xv(t)?Od(t):Yv(t,{})},getterFor:function(t){return function(e){var n;if(!ke(e)||(n=Od(e)).type!==t)throw H6("Incompatible receiver, "+t+" required");return n}}},sB={}.propertyIsEnumerable,lB=Object.getOwnPropertyDescriptor,Xut={f:lB&&!sB.call({1:2},1)?function(t){var e=lB(this,t);return!!e&&e.enumerable}:sB},cB=Object.getOwnPropertyDescriptor,ZL={f:Pa?cB:function(t,e){if(t=kc(t),e=F8(e),UL)try{return cB(t,e)}catch{}if(on(t,e))return Tm(!rn(Xut.f,t,e),t[e])}},JL=Function.prototype,Zut=Pa&&Object.getOwnPropertyDescriptor,j2=on(JL,"name"),N8={EXISTS:j2,PROPER:j2&&function(){}.name==="something",CONFIGURABLE:j2&&(!Pa||Pa&&Zut(JL,"name").configurable)},Bo=x8(function(t){var e=N8.CONFIGURABLE,n=No.get,r=No.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;_e(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!on(u,"name")||e&&u.name!==d)&&ma(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==wt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ma(i,a,u)):f?i[a]=u:S8(a,u)})(Function.prototype,"toString",function(){return _e(this)&&n(this).source||j8(this)})}),Jut=Kv.concat("length","prototype"),Zv={f:Object.getOwnPropertyNames||function(t){return GL(t,Jut)}},Qut={f:Object.getOwnPropertySymbols},tst=jt([].concat),est=gh("Reflect","ownKeys")||function(t){var e=Zv.f(Zn(t)),n=Qut.f;return n?tst(e,n(t)):e},nst=function(t,e){for(var n=est(e),r=xs.f,o=ZL.f,i=0;i<n.length;i++){var a=n[i];on(t,a)||r(t,a,o(e,a))}},rst=/#|\.prototype\./,mh=function(t,e){var n=ist[ost(t)];return n==ust||n!=ast&&(_e(e)?Be(e):!!e)},ost=mh.normalize=function(t){return String(t).replace(rst,".").toLowerCase()},ist=mh.data={},ast=mh.NATIVE="N",ust=mh.POLYFILL="P",V6=mh,sst=ZL.f,ja=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?wt:l?wt[u]||S8(u,{}):(wt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=sst(n,r))&&a.value:n[r],!V6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;nst(i,o)}(t.sham||o&&o.sham)&&ma(i,"sham",!0),Bo(n,r,i,t)}},lst=!Be(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),fB=T8("IE_PROTO"),U6=wt.Object,cst=U6.prototype,Jv=lst?U6.getPrototypeOf:function(t){var e=hh(t);if(on(e,fB))return e[fB];var n=e.constructor;return _e(n)&&e instanceof n?n.prototype:e instanceof U6?cst:null},W6=bn("iterator"),QL=!1;[].keys&&("next"in(uB=[].keys())?(aB=Jv(Jv(uB)))!==Object.prototype&&(Uu=aB):QL=!0);var fst=Uu==null||Be(function(){var t={};return Uu[W6].call(t)!==t});fst&&(Uu={}),_e(Uu[W6])||Bo(Uu,W6,function(){return this});var I8={IteratorPrototype:Uu,BUGGY_SAFARI_ITERATORS:QL},dst=xs.f,dB=bn("toStringTag"),q6=function(t,e,n){t&&!on(t=n?t:t.prototype,dB)&&dst(t,dB,{configurable:!0,value:e})},pst=I8.IteratorPrototype,hst=function(){return this},gst=wt.String,vst=wt.TypeError,Qv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=jt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return Zn(r),function(i){if(typeof i=="object"||_e(i))return i;throw vst("Can't set "+gst(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),mst=N8.PROPER,yst=N8.CONFIGURABLE,pB=I8.IteratorPrototype,C0=I8.BUGGY_SAFARI_ITERATORS,kf=bn("iterator"),bst=function(){return this},tR=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=P8(pst,{next:Tm(1,b)}),q6(y,D,!1),rc[D]=hst})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!C0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[kf]||d["@@iterator"]||o&&d[o],g=!C0&&v||c(o),m=e=="Array"&&d.entries||v;if(m&&(u=Jv(m.call(new t)))!==Object.prototype&&u.next&&(Jv(u)!==pB&&(Qv?Qv(u,pB):_e(u[kf])||Bo(u,kf,bst)),q6(u,f,!0)),mst&&o=="values"&&v&&v.name!=="values"&&(yst?ma(d,"name","values"):(p=!0,g=function(){return rn(v,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(C0||p||!(l in d))&&Bo(d,l,s[l]);else ja({target:e,proto:!0,forced:C0||p},s);return d[kf]!==g&&Bo(d,kf,g,{name:o}),rc[e]=g,s},wst=No.set,Est=No.getterFor("Array Iterator"),fd=tR(Array,"Array",function(t,e){wst(this,{type:"Array Iterator",target:kc(t),index:0,kind:e})},function(){var t=Est(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");rc.Arguments=rc.Array,Ad("keys"),Ad("values"),Ad("entries");var eR={};eR[bn("toStringTag")]="z";var L8=String(eR)==="[object z]",Dst=bn("toStringTag"),Cst=wt.Object,xst=si(function(){return arguments}())=="Arguments",Pm=L8?si:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Cst(t),Dst))=="string"?n:xst?si(e):(r=si(e))=="Object"&&_e(e.callee)?"Arguments":r},Sst=L8?{}.toString:function(){return"[object "+Pm(this)+"]"};L8||Bo(Object.prototype,"toString",Sst,{unsafe:!0});var Ast=wt.String,ti=function(t){if(Pm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Ast(t)},Ost=jt("".charAt),hB=jt("".charCodeAt),kst=jt("".slice),gB=function(t){return function(e,n){var r,o,i=ti(_m(e)),a=vh(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=hB(i,a))<55296||r>56319||a+1===u||(o=hB(i,a+1))<56320||o>57343?t?Ost(i,a):r:t?kst(i,a,a+2):o-56320+(r-55296<<10)+65536}},nR={codeAt:gB(!1),charAt:gB(!0)},Bst=nR.charAt,_st=No.set,Fst=No.getterFor("String Iterator");tR(String,"String",function(t){_st(this,{type:"String Iterator",string:ti(t),index:0})},function(){var t,e=Fst(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Bst(n,r),e.index+=t.length,{value:t,done:!1})});var G6=function(t,e,n){for(var r in e)Bo(t,r,e[r],n);return t},Tst=wt.Array,Pst=Math.max,vB=Zv.f,mB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],jst={f:function(t){return mB&&si(t)=="Window"?function(e){try{return vB(e)}catch{return function(r,o,i){for(var a,u,s,l,c=Bc(r),f=M6(void 0,c),p=M6(c,c),d=Tst(Pst(p-f,0)),v=0;f<p;f++,v++)a=d,u=v,s=r[f],(l=F8(u))in a?xs.f(a,l,Tm(0,s)):a[l]=s;return d.length=v,d}(mB)}}(t):vB(kc(t))}},yB=Be(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),x0=Object.isExtensible,Su=Be(function(){x0(1)})||yB?function(t){return!!ke(t)&&(!yB||si(t)!="ArrayBuffer")&&(!x0||x0(t))}:x0,Nst=!Be(function(){return Object.isExtensible(Object.preventExtensions({}))}),R8=x8(function(t){var e=xs.f,n=!1,r=O8("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Zv.f,s=jt([].splice),l={};l[r]=1,u(l).length&&(Zv.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},ja({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:jst.f}))},fastKey:function(u,s){if(!ke(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!on(u,r)){if(!Su(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!on(u,r)){if(!Su(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Nst&&n&&Su(u)&&!on(u,r)&&i(u),u}};Fm[r]=!0}),bB=jt(jt.bind),M8=function(t,e){return _8(t),e===void 0?t:bB?bB(t,e):function(){return t.apply(e,arguments)}},Ist=bn("iterator"),Lst=Array.prototype,Rst=bn("iterator"),wB=function(t){if(t!=null)return pp(t,Rst)||pp(t,"@@iterator")||rc[Pm(t)]},Mst=wt.TypeError,EB=function(t,e,n){var r,o;Zn(t);try{if(!(r=pp(t,"return"))){if(e==="throw")throw n;return n}r=rn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Zn(r),n},zst=wt.TypeError,wg=function(t,e){this.stopped=t,this.result=e},DB=wg.prototype,rR=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=M8(e,f),m=function(h){return r&&EB(r,"normal",h),new wg(!0,h)},y=function(h){return p?(Zn(h),v?g(h[0],h[1],m):g(h[0],h[1])):v?g(h,m):g(h)};if(d)r=t;else{if(!(o=wB(t)))throw zst(R6(t)+" is not iterable");if((c=o)!==void 0&&(rc.Array===c||Lst[Ist]===c)){for(i=0,a=Bc(t);a>i;i++)if((u=y(t[i]))&&Gv(DB,u))return u;return new wg(!1)}r=function(h,b){var w=arguments.length<2?wB(h):b;if(_8(w))return Zn(rn(w,h));throw Mst(R6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=rn(s,r)).done;){try{u=y(l.value)}catch(h){EB(r,"throw",h)}if(typeof u=="object"&&u&&Gv(DB,u))return u}return new wg(!1)},$st=wt.TypeError,oR=function(t,e){if(Gv(e,t))return t;throw $st("Incorrect invocation")},iR=bn("iterator"),aR=!1;try{var Hst=0,CB={next:function(){return{done:!!Hst++}},return:function(){aR=!0}};CB[iR]=function(){return this},Array.from(CB,function(){throw 2})}catch{}var K6=Array.isArray||function(t){return si(t)=="Array"},uR=function(){},Vst=[],sR=gh("Reflect","construct"),z8=/^\s*(?:class|function)\b/,Ust=jt(z8.exec),Wst=!z8.exec(uR),Bf=function(t){if(!_e(t))return!1;try{return sR(uR,Vst,t),!0}catch{return!1}},qst=!sR||Be(function(){var t;return Bf(Bf.call)||!Bf(Object)||!Bf(function(){t=!0})||t})?function(t){if(!_e(t))return!1;switch(Pm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wst||!!Ust(z8,j8(t))}:Bf,Gst=bn("species"),xB=wt.Array,lR=function(t,e){return new(function(n){var r;return K6(n)&&(r=n.constructor,(qst(r)&&(r===xB||K6(r.prototype))||ke(r)&&(r=r[Gst])===null)&&(r=void 0)),r===void 0?xB:r}(t))(e===0?0:e)},SB=jt([].push),Mi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=hh(s),g=VL(v),m=M8(l,c),y=Bc(g),h=0,b=f||lR,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:SB(w,p)}else switch(t){case 4:return!1;case 7:SB(w,p)}return i?-1:r||o?o:w}},$8={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},S0=R8.getWeakData,Kst=No.set,Yst=No.getterFor,Xst=$8.find,Zst=$8.findIndex,Jst=jt([].splice),Qst=0,A0=function(t){return t.frozen||(t.frozen=new cR)},cR=function(){this.entries=[]},N2=function(t,e){return Xst(t.entries,function(n){return n[0]===e})};cR.prototype={get:function(t){var e=N2(this,t);if(e)return e[1]},has:function(t){return!!N2(this,t)},set:function(t,e){var n=N2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Zst(this.entries,function(n){return n[0]===t});return~e&&Jst(this.entries,e,1),!!~e}};var _f,fR={getConstructor:function(t,e,n,r){var o=t(function(s,l){oR(s,i),Kst(s,{type:e,id:Qst++,frozen:void 0}),l!=null&&rR(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Yst(e),u=function(s,l,c){var f=a(s),p=S0(Zn(l),!0);return p===!0?A0(f).set(l,c):p[f.id]=c,s};return G6(i,{delete:function(s){var l=a(this);if(!ke(s))return!1;var c=S0(s);return c===!0?A0(l).delete(s):c&&on(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ke(s))return!1;var c=S0(s);return c===!0?A0(l).has(s):c&&on(c,l.id)}}),G6(i,n?{get:function(s){var l=a(this);if(ke(s)){var c=S0(s);return c===!0?A0(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}},O0=No.enforce,tlt=!wt.ActiveXObject&&"ActiveXObject"in wt,dR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},elt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=wt[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=jt(u[m]);Bo(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!ke(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!ke(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!ke(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(V6(t,!_e(a)||!(o||u.forEach&&!Be(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),R8.enable();else if(V6(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Be(function(){f.has(1)}),v=function(m,y){if(!aR)return!1;var h=!1;try{var b={};b[iR]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),g=!o&&Be(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){oR(m,u);var h=function(b,w,D){var x,C;return Qv&&_e(x=w.constructor)&&x!==D&&ke(C=x.prototype)&&C!==D.prototype&&Qv(b,C),b}(new a,m,s);return y!=null&&rR(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,ja({global:!0,forced:s!=a},l),q6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",dR,fR);if(XL&&tlt){_f=fR.getConstructor(dR,"WeakMap",!0),R8.enable();var Ff=elt.prototype,AB=jt(Ff.delete),k0=jt(Ff.has),OB=jt(Ff.get),kB=jt(Ff.set);G6(Ff,{delete:function(t){if(ke(t)&&!Su(t)){var e=O0(this);return e.frozen||(e.frozen=new _f),AB(this,t)||e.frozen.delete(t)}return AB(this,t)},has:function(t){if(ke(t)&&!Su(t)){var e=O0(this);return e.frozen||(e.frozen=new _f),k0(this,t)||e.frozen.has(t)}return k0(this,t)},get:function(t){if(ke(t)&&!Su(t)){var e=O0(this);return e.frozen||(e.frozen=new _f),k0(this,t)?OB(this,t):e.frozen.get(t)}return OB(this,t)},set:function(t,e){if(ke(t)&&!Su(t)){var n=O0(this);n.frozen||(n.frozen=new _f),k0(this,t)?kB(this,t,e):n.frozen.set(t,e)}else kB(this,t,e);return this}})}var pR={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},I2=B8("span").classList,BB=I2&&I2.constructor&&I2.constructor.prototype,nlt=BB===Object.prototype?void 0:BB,L2=bn("iterator"),_B=bn("toStringTag"),R2=fd.values,hR=function(t,e){if(t){if(t[L2]!==R2)try{ma(t,L2,R2)}catch{t[L2]=R2}if(t[_B]||ma(t,_B,e),pR[e]){for(var n in fd)if(t[n]!==fd[n])try{ma(t,n,fd[n])}catch{t[n]=fd[n]}}}};for(var M2 in pR)hR(wt[M2]&&wt[M2].prototype,M2);hR(nlt,"DOMTokenList");var Y6=new WeakMap,rlt={type:"list-item",renderElem:function(t,e,n){Y6.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,p){var d=p,v=d.type,g=d.level,m=g===void 0?0:g,y=d.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,w=p,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var x=j.previous(D),C=E.node(f,x);if(C==null)break;var O=C[0],F=O.level,R=F===void 0?0:F,H=O.type,M=O.ordered;if(H!==v||R<m)break;if(R===m){if(M!==h)break;b++}w=O,D=x}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p}(i);var c=function(f){var p,d=f.children||[],v=d.length;if(v===0)return"";for(var g=0;g<v&&!p;g++){var m=d[g];ot.isText(m)&&(p=m)}return p==null?"":p.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))}},X6=function(t,e){return X6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},X6(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 gR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}X6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function FB(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function kd(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function TB(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var olt=qL.includes;ja({target:"Array",proto:!0},{includes:function(t){return olt(this,t,arguments.length>1?arguments[1]:void 0)}}),Ad("includes");var PB,z2,ilt=function(){var t=Zn(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},H8=wt.RegExp,Z6=Be(function(){var t=H8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),alt=Z6||Be(function(){return!H8("a","y").sticky}),ult={BROKEN_CARET:Z6||Be(function(){var t=H8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:alt,UNSUPPORTED_Y:Z6},slt=wt.RegExp,llt=Be(function(){var t=slt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),clt=wt.RegExp,flt=Be(function(){var t=clt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),dlt=No.get,plt=A8("native-string-replace",String.prototype.replace),t1=RegExp.prototype.exec,J6=t1,hlt=jt("".charAt),glt=jt("".indexOf),vlt=jt("".replace),$2=jt("".slice),H2=(z2=/b*/g,rn(t1,PB=/a/,"a"),rn(t1,z2,"a"),PB.lastIndex!==0||z2.lastIndex!==0),jB=ult.BROKEN_CARET,V2=/()??/.exec("")[1]!==void 0;(H2||V2||jB||llt||flt)&&(J6=function(t){var e,n,r,o,i,a,u,s=this,l=dlt(s),c=ti(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=rn(J6,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=jB&&s.sticky,v=rn(ilt,s),g=s.source,m=0,y=c;if(d&&(v=vlt(v,"y",""),glt(v,"g")===-1&&(v+="g"),y=$2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hlt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),V2&&(n=new RegExp("^"+g+"$(?!\\s)",v)),H2&&(r=s.lastIndex),o=rn(t1,d?n:s,y),d?o?(o.input=$2(o.input,m),o[0]=$2(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:H2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),V2&&o&&o.length>1&&rn(plt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=P8(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var e1=J6;ja({target:"RegExp",proto:!0,forced:/./.exec!==e1},{exec:e1});var vR=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return A.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){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}(),mlt='<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>',ylt='<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>',blt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=tt("listModule.unOrderedList"),n.iconSvg=mlt,n}return gR(e,t),e}(vR),wlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=tt("listModule.orderedList"),n.iconSvg=ylt,n}return gR(e,t),e}(vR),Elt={key:"bulletedList",factory:function(){return new blt}},Dlt={key:"numberedList",factory:function(){return new wlt}},NB=[],Clt={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=Y6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,v=d!==void 0&&d,g=f.level,m=g===void 0?0:g,y=A.findPath(c,l);if(y[0]===0)return m+1;var h=j.previous(y),b=E.node(c,h);if(!b)return 0;var w=kd(b,1)[0];if(A.getNodeType(w)!==p)return m+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,F=O===void 0?0:O;return F<m?m-F:F>m?0:F===m?C===v?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",NB.push(i);var s=function(l){var c=Y6.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,v=d!==void 0&&d,g=f.level,m=g===void 0?0:g,y=A.findPath(c,l);if(y[0]===c.children.length-1)return m+1;var h=j.next(y),b=E.node(c,h);if(!b)return 0;var w=kd(b,1)[0];if(A.getNodeType(w)!==p)return m+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,F=O===void 0?0:O;return F<m?m-F:F>m?0:F===m?C===v?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+NB.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},xlt=bn("species"),Slt=$8.filter,Alt=N6>=51||!Be(function(){var t=[];return(t.constructor={})[xlt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});ja({target:"Array",proto:!0,forced:!Alt},{filter:function(t){return Slt(this,t,arguments.length>1?arguments[1]:void 0)}});var V8=Function.prototype,IB=V8.apply,Olt=V8.bind,LB=V8.call,klt=typeof Reflect=="object"&&Reflect.apply||(Olt?LB.bind(IB):function(){return LB.apply(IB,arguments)}),RB=(bn("species"),RegExp.prototype),Blt=nR.charAt,_lt=function(t,e,n){return e+(n?Blt(t,e).length:1)},Flt=Math.floor,U2=jt("".charAt),Tlt=jt("".replace),W2=jt("".slice),Plt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jlt=/\$([$&'`]|\d{1,2})/g,Nlt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=jlt;return o!==void 0&&(o=hh(o),s=Plt),Tlt(i,s,function(l,c){var f;switch(U2(c,0)){case"$":return"$";case"&":return t;case"`":return W2(e,0,n);case"'":return W2(e,a);case"<":f=o[W2(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Flt(p/10);return d===0?l:d<=u?r[d-1]===void 0?U2(c,1):r[d-1]+U2(c,1):l}f=r[p-1]}return f===void 0?"":f})},Ilt=wt.TypeError,Llt=function(t,e){var n=t.exec;if(_e(n)){var r=rn(n,t,e);return r!==null&&Zn(r),r}if(si(t)==="RegExp")return rn(e1,t,e);throw Ilt("RegExp#exec called on incompatible receiver")},Q6=bn("replace"),Rlt=Math.max,Mlt=Math.min,zlt=jt([].concat),q2=jt([].push),MB=jt("".indexOf),zB=jt("".slice),$lt="a".replace(/./,"$0")==="$0",$B=!!/./[Q6]&&/./[Q6]("a","$0")==="";(function(t,e,n,r){var o=bn(t),i=!Be(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Be(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=jt(/./[o]),s=function(l,c,f){var p=$B?"$":"$0";return[function(d,v){var g=_m(this),m=d==null?void 0:pp(d,Q6);return m?rn(m,d,g,v):rn(c,ti(g),d,v)},function(d,v){var g=Zn(this),m=ti(d);if(typeof v=="string"&&MB(v,p)===-1&&MB(v,"$<")===-1){var y=f(c,g,m,v);if(y.done)return y.value}var h=_e(v);h||(v=ti(v));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var x=Llt(g,m);if(x===null||(q2(D,x),!b))break;ti(x[0])===""&&(g.lastIndex=_lt(m,WL(g.lastIndex),w))}for(var C,O="",F=0,R=0;R<D.length;R++){for(var H=ti((x=D[R])[0]),M=Rlt(Mlt(vh(x.index),m.length),0),K=[],U=1;U<x.length;U++)q2(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var G=zlt([H],K,M,m);W!==void 0&&q2(G,W);var nt=ti(klt(v,void 0,G))}else nt=Nlt(H,m,M,K,W,v);M>=F&&(O+=zB(m,F,M)+nt,F=M+H.length)}return O+zB(m,F)}]}(0,""[t],function(l,c,f,p,d){var v=jt(l),g=c.exec;return g===e1||g===RB.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});Bo(String.prototype,t,s[0]),Bo(RB,o,s[1])}})("replace",0,!!Be(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!$lt||$B);var Hlt=wt.TypeError,mR=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&M8(a,u);f<r;){if(f in n){if(s=p?p(n[f],f,e):n[f],i>0&&K6(s))l=Bc(s),c=mR(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Hlt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Vlt=mR;function G2(t){return t.length?t[0].tagName.toLowerCase():""}ja({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=hh(this),n=Bc(e),r=lR(e,0);return r.length=Vlt(r,e,e,n,0,t===void 0?1:vh(t)),r}}),Ad("flat"),ja({global:!0},{globalThis:wt}),jr&&(B.fn.append=jr),Pr&&(B.fn.attr=Pr),Vl&&(B.fn.parent=Vl);var Ult={renderElems:[rlt],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=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 n();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void N.setNodes(o,{level:p+1})}}if(L.isExpanded(l)){var d=0,v=!1;try{for(var g=FB(TB(o)),m=g.next();!m.done;m=g.next()){var y=kd(m.value,1)[0];A.getNodeType(y)==="list-item"?d++:v=!0}}catch(C){i={error:C}}finally{try{m&&!m.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}if(v||d<=1)return void n();try{for(var h=FB(TB(o)),b=h.next();!b.done;b=h.next()){var w=kd(b.value,2),D=(y=w[0],w[1]),x=y.level;p=x===void 0?0:x,N.setNodes(o,{level:p+1},{at:D})}}catch(C){u={error:C}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else n()}else n()},o.normalizeNode=function(i){var a=kd(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[Elt,Dlt],elemsToHtml:[Clt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(a){return!!ot.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return G2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=G2(s);l==="ul"||l==="ol";)l=G2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},yR=ps(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",v="[object RegExp]",g="[object Set]",m="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[p]=C[v]=C[g]=C[m]=C[h]=!1;var O=typeof le=="object"&&le&&le.Object===Object&&le,F=typeof self=="object"&&self&&self.Object===Object&&self,R=O||F||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{}}(),G=W&&W.isTypedArray;function nt(T,I){for(var Z=-1,ht=T==null?0:T.length;++Z<ht;)if(I(T[Z],Z,T))return!0;return!1}function lt(T){var I=-1,Z=Array(T.size);return T.forEach(function(ht,ne){Z[++I]=[ne,ht]}),Z}function st(T){var I=-1,Z=Array(T.size);return T.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 T=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),it=S.toString,gt=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=K?R.Buffer:void 0,Dt=R.Symbol,q=R.Uint8Array,It=S.propertyIsEnumerable,At=at.splice,dt=Dt?Dt.toStringTag:void 0,Ot=Object.getOwnPropertySymbols,Fe=vt?vt.isBuffer:void 0,$t=function(T,I){return function(Z){return T(I(Z))}}(Object.keys,Object),ee=bi(R,"DataView"),ye=bi(R,"Map"),wn=bi(R,"Promise"),zt=bi(R,"Set"),Mn=bi(R,"WeakMap"),Mr=bi(Object,"create"),uo=Wo(ee),Ss=Wo(ye),Ka=Wo(wn),zr=Wo(zt),so=Wo(Mn),Ho=Dt?Dt.prototype:void 0,En=Ho?Ho.valueOf:void 0;function Dn(T){var I=-1,Z=T==null?0:T.length;for(this.clear();++I<Z;){var ht=T[I];this.set(ht[0],ht[1])}}function Cn(T){var I=-1,Z=T==null?0:T.length;for(this.clear();++I<Z;){var ht=T[I];this.set(ht[0],ht[1])}}function Pn(T){var I=-1,Z=T==null?0:T.length;for(this.clear();++I<Z;){var ht=T[I];this.set(ht[0],ht[1])}}function an(T){var I=-1,Z=T==null?0:T.length;for(this.__data__=new Pn;++I<Z;)this.add(T[I])}function mr(T){var I=this.__data__=new Cn(T);this.size=I.size}function Fc(T,I){var Z=qo(T),ht=!Z&&Fh(T),ne=!Z&&!ht&&lo(T),Pt=!Z&&!ht&&!ne&&fo(T),_=Z||ht||ne||Pt,z=_?function(Mt,he){for(var re=-1,Wt=Array(Mt);++re<Mt;)Wt[re]=he(re);return Wt}(T.length,String):[],J=z.length;for(var ut in T)!I&&!Y.call(T,ut)||_&&(ut=="length"||ne&&(ut=="offset"||ut=="parent")||Pt&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||Tc(ut,J))||z.push(ut);return z}function yi(T,I){for(var Z=T.length;Z--;)if(ks(T[Z][0],I))return Z;return-1}function Vo(T){return T==null?T===void 0?"[object Undefined]":"[object Null]":dt&&dt in Object(T)?function(I){var Z=Y.call(I,dt),ht=I[dt];try{I[dt]=void 0;var ne=!0}catch{}var Pt=it.call(I);return ne&&(Z?I[dt]=ht:delete I[dt]),Pt}(T):function(I){return it.call(I)}(T)}function As(T){return wi(T)&&Vo(T)==o}function Ya(T,I,Z,ht,ne){return T===I||(T==null||I==null||!wi(T)&&!wi(I)?T!=T&&I!=I:function(Pt,_,z,J,ut,Mt){var he=qo(Pt),re=qo(_),Wt=he?i:Jn(Pt),Qe=re?i:Jn(_),xn=(Wt=Wt==o?p:Wt)==p,Xa=(Qe=Qe==o?p:Qe)==p,Go=Wt==Qe;if(Go&&lo(Pt)){if(!lo(_))return!1;he=!0,xn=!1}if(Go&&!xn)return Mt||(Mt=new mr),he||fo(Pt)?yr(Pt,_,z,J,ut,Mt):function(Lt,qt,Gt,Te,jn,zn,Vr){switch(Gt){case w:if(Lt.byteLength!=qt.byteLength||Lt.byteOffset!=qt.byteOffset)return!1;Lt=Lt.buffer,qt=qt.buffer;case b:return!(Lt.byteLength!=qt.byteLength||!zn(new q(Lt),new q(qt)));case a:case u:case f:return ks(+Lt,+qt);case s:return Lt.name==qt.name&&Lt.message==qt.message;case v:case m:return Lt==qt+"";case c:var Di=lt;case g:var jc=1&Te;if(Di||(Di=st),Lt.size!=qt.size&&!jc)return!1;var jh=Vr.get(Lt);if(jh)return jh==qt;Te|=2,Vr.set(Lt,qt);var Bs=yr(Di(Lt),Di(qt),Te,jn,zn,Vr);return Vr.delete(Lt),Bs;case y:if(En)return En.call(Lt)==En.call(qt)}return!1}(Pt,_,Wt,z,J,ut,Mt);if(!(1&z)){var Ei=xn&&Y.call(Pt,"__wrapped__"),yt=Xa&&Y.call(_,"__wrapped__");if(Ei||yt){var Xt=Ei?Pt.value():Pt,Ne=yt?_.value():_;return Mt||(Mt=new mr),ut(Xt,Ne,z,J,Mt)}}return Go?(Mt||(Mt=new mr),function(Lt,qt,Gt,Te,jn,zn){var Vr=1&Gt,Di=Uo(Lt),jc=Di.length,jh=Uo(qt).length;if(jc!=jh&&!Vr)return!1;for(var Bs=jc;Bs--;){var Za=Di[Bs];if(!(Vr?Za in qt:Y.call(qt,Za)))return!1}var Cx=zn.get(Lt);if(Cx&&zn.get(qt))return Cx==qt;var Nh=!0;zn.set(Lt,qt),zn.set(qt,Lt);for(var Qm=Vr;++Bs<jc;){var Ih=Lt[Za=Di[Bs]],Lh=qt[Za];if(Te)var xx=Vr?Te(Lh,Ih,Za,qt,Lt,zn):Te(Ih,Lh,Za,Lt,qt,zn);if(!(xx===void 0?Ih===Lh||jn(Ih,Lh,Gt,Te,zn):xx)){Nh=!1;break}Qm||(Qm=Za=="constructor")}if(Nh&&!Qm){var Rh=Lt.constructor,Mh=qt.constructor;Rh==Mh||!("constructor"in Lt)||!("constructor"in qt)||typeof Rh=="function"&&Rh instanceof Rh&&typeof Mh=="function"&&Mh instanceof Mh||(Nh=!1)}return zn.delete(Lt),zn.delete(qt),Nh}(Pt,_,z,J,ut,Mt)):!1}(T,I,Z,ht,Ya,ne))}function Os(T){return!(!Th(T)||function(I){return!!V&&V in I}(T))&&(Pc(T)?gt:D).test(Wo(T))}function $r(T){if(Z=(I=T)&&I.constructor,ht=typeof Z=="function"&&Z.prototype||S,I!==ht)return $t(T);var I,Z,ht,ne=[];for(var Pt in Object(T))Y.call(T,Pt)&&Pt!="constructor"&&ne.push(Pt);return ne}function yr(T,I,Z,ht,ne,Pt){var _=1&Z,z=T.length,J=I.length;if(z!=J&&!(_&&J>z))return!1;var ut=Pt.get(T);if(ut&&Pt.get(I))return ut==I;var Mt=-1,he=!0,re=2&Z?new an:void 0;for(Pt.set(T,I),Pt.set(I,T);++Mt<z;){var Wt=T[Mt],Qe=I[Mt];if(ht)var xn=_?ht(Qe,Wt,Mt,I,T,Pt):ht(Wt,Qe,Mt,T,I,Pt);if(xn!==void 0){if(xn)continue;he=!1;break}if(re){if(!nt(I,function(Xa,Go){if(Ei=Go,!re.has(Ei)&&(Wt===Xa||ne(Wt,Xa,Z,ht,Pt)))return re.push(Go);var Ei})){he=!1;break}}else if(Wt!==Qe&&!ne(Wt,Qe,Z,ht,Pt)){he=!1;break}}return Pt.delete(T),Pt.delete(I),he}function Uo(T){return function(I,Z,ht){var ne=Z(I);return qo(I)?ne:function(Pt,_){for(var z=-1,J=_.length,ut=Pt.length;++z<J;)Pt[ut+z]=_[z];return Pt}(ne,ht(I))}(T,Ph,_h)}function Hr(T,I){var Z,ht,ne=T.__data__;return((ht=typeof(Z=I))=="string"||ht=="number"||ht=="symbol"||ht=="boolean"?Z!=="__proto__":Z===null)?ne[typeof I=="string"?"string":"hash"]:ne.map}function bi(T,I){var Z=function(ht,ne){return ht==null?void 0:ht[ne]}(T,I);return Os(Z)?Z:void 0}Dn.prototype.clear=function(){this.__data__=Mr?Mr(null):{},this.size=0},Dn.prototype.delete=function(T){var I=this.has(T)&&delete this.__data__[T];return this.size-=I?1:0,I},Dn.prototype.get=function(T){var I=this.__data__;if(Mr){var Z=I[T];return Z===n?void 0:Z}return Y.call(I,T)?I[T]:void 0},Dn.prototype.has=function(T){var I=this.__data__;return Mr?I[T]!==void 0:Y.call(I,T)},Dn.prototype.set=function(T,I){var Z=this.__data__;return this.size+=this.has(T)?0:1,Z[T]=Mr&&I===void 0?n:I,this},Cn.prototype.clear=function(){this.__data__=[],this.size=0},Cn.prototype.delete=function(T){var I=this.__data__,Z=yi(I,T);return!(Z<0)&&(Z==I.length-1?I.pop():At.call(I,Z,1),--this.size,!0)},Cn.prototype.get=function(T){var I=this.__data__,Z=yi(I,T);return Z<0?void 0:I[Z][1]},Cn.prototype.has=function(T){return yi(this.__data__,T)>-1},Cn.prototype.set=function(T,I){var Z=this.__data__,ht=yi(Z,T);return ht<0?(++this.size,Z.push([T,I])):Z[ht][1]=I,this},Pn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(ye||Cn),string:new Dn}},Pn.prototype.delete=function(T){var I=Hr(this,T).delete(T);return this.size-=I?1:0,I},Pn.prototype.get=function(T){return Hr(this,T).get(T)},Pn.prototype.has=function(T){return Hr(this,T).has(T)},Pn.prototype.set=function(T,I){var Z=Hr(this,T),ht=Z.size;return Z.set(T,I),this.size+=Z.size==ht?0:1,this},an.prototype.add=an.prototype.push=function(T){return this.__data__.set(T,n),this},an.prototype.has=function(T){return this.__data__.has(T)},mr.prototype.clear=function(){this.__data__=new Cn,this.size=0},mr.prototype.delete=function(T){var I=this.__data__,Z=I.delete(T);return this.size=I.size,Z},mr.prototype.get=function(T){return this.__data__.get(T)},mr.prototype.has=function(T){return this.__data__.has(T)},mr.prototype.set=function(T,I){var Z=this.__data__;if(Z instanceof Cn){var ht=Z.__data__;if(!ye||ht.length<199)return ht.push([T,I]),this.size=++Z.size,this;Z=this.__data__=new Pn(ht)}return Z.set(T,I),this.size=Z.size,this};var _h=Ot?function(T){return T==null?[]:(T=Object(T),function(I,Z){for(var ht=-1,ne=I==null?0:I.length,Pt=0,_=[];++ht<ne;){var z=I[ht];Z(z,ht,I)&&(_[Pt++]=z)}return _}(Ot(T),function(I){return It.call(T,I)}))}:function(){return[]},Jn=Vo;function Tc(T,I){return!!(I=I??r)&&(typeof T=="number"||x.test(T))&&T>-1&&T%1==0&&T<I}function Wo(T){if(T!=null){try{return $.call(T)}catch{}try{return T+""}catch{}}return""}function ks(T,I){return T===I||T!=T&&I!=I}(ee&&Jn(new ee(new ArrayBuffer(1)))!=w||ye&&Jn(new ye)!=c||wn&&Jn(wn.resolve())!=d||zt&&Jn(new zt)!=g||Mn&&Jn(new Mn)!=h)&&(Jn=function(T){var I=Vo(T),Z=I==p?T.constructor:void 0,ht=Z?Wo(Z):"";if(ht)switch(ht){case uo:return w;case Ss:return c;case Ka:return d;case zr:return g;case so:return h}return I});var Fh=As(function(){return arguments}())?As:function(T){return wi(T)&&Y.call(T,"callee")&&!It.call(T,"callee")},qo=Array.isArray,lo=Fe||function(){return!1};function Pc(T){if(!Th(T))return!1;var I=Vo(T);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function co(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=r}function Th(T){var I=typeof T;return T!=null&&(I=="object"||I=="function")}function wi(T){return T!=null&&typeof T=="object"}var fo=G?function(T){return function(I){return T(I)}}(G):function(T){return wi(T)&&co(T.length)&&!!C[Vo(T)]};function Ph(T){return(I=T)!=null&&co(I.length)&&!Pc(I)?Fc(T):$r(T);var I}t.exports=function(T,I){return Ya(T,I)}});Xn("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"}}),Xn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var HB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bR(t){var e={exports:{}};return t(e,e.exports),e.exports}var zi,Eg,B0=function(t){return t&&t.Math==Math&&t},Tt=B0(typeof globalThis=="object"&&globalThis)||B0(typeof window=="object"&&window)||B0(typeof self=="object"&&self)||B0(typeof HB=="object"&&HB)||function(){return this}()||Function("return this")(),Ze=function(t){try{return!!t()}catch{return!0}},Na=!Ze(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Tf=Function.prototype.call,Ge=Tf.bind?Tf.bind(Tf):function(){return Tf.apply(Tf,arguments)},VB={}.propertyIsEnumerable,UB=Object.getOwnPropertyDescriptor,Wlt={f:UB&&!VB.call({1:2},1)?function(t){var e=UB(this,t);return!!e&&e.enumerable}:VB},U8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},wR=Function.prototype,t3=wR.bind,e3=wR.call,qlt=t3&&t3.bind(e3),Rt=t3?function(t){return t&&qlt(e3,t)}:function(t){return t&&function(){return e3.apply(t,arguments)}},Glt=Rt({}.toString),Klt=Rt("".slice),ya=function(t){return Klt(Glt(t),8,-1)},K2=Tt.Object,Ylt=Rt("".split),ER=Ze(function(){return!K2("z").propertyIsEnumerable(0)})?function(t){return ya(t)=="String"?Ylt(t,""):K2(t)}:K2,Xlt=Tt.TypeError,Ia=function(t){if(t==null)throw Xlt("Can't call method on "+t);return t},yh=function(t){return ER(Ia(t))},yn=function(t){return typeof t=="function"},kr=function(t){return typeof t=="object"?t!==null:yn(t)},Zlt=function(t){return yn(t)?t:void 0},bh=function(t,e){return arguments.length<2?Zlt(Tt[t]):Tt[t]&&Tt[t][e]},DR=Rt({}.isPrototypeOf),Y2=bh("navigator","userAgent")||"",WB=Tt.process,qB=Tt.Deno,GB=WB&&WB.versions||qB&&qB.version,KB=GB&&GB.v8;KB&&(Eg=(zi=KB.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!Eg&&Y2&&(!(zi=Y2.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=Y2.match(/Chrome\/(\d+)/))&&(Eg=+zi[1]);var n3=Eg,r3=!!Object.getOwnPropertySymbols&&!Ze(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n3&&n3<41}),W8=r3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Jlt=Tt.Object,X2=W8?function(t){return typeof t=="symbol"}:function(t){var e=bh("Symbol");return yn(e)&&DR(e.prototype,Jlt(t))},Qlt=Tt.String,CR=function(t){try{return Qlt(t)}catch{return"Object"}},tct=Tt.TypeError,xR=function(t){if(yn(t))return t;throw tct(CR(t)+" is not a function")},q8=function(t,e){var n=t[e];return n==null?void 0:xR(n)},ect=Tt.TypeError,nct=Object.defineProperty,G8=function(t,e){try{nct(Tt,t,{value:e,configurable:!0,writable:!0})}catch{Tt[t]=e}return e},ba=Tt["__core-js_shared__"]||G8("__core-js_shared__",{}),K8=bR(function(t){(t.exports=function(e,n){return ba[e]||(ba[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),rct=Tt.Object,Y8=function(t){return rct(Ia(t))},oct=Rt({}.hasOwnProperty),_r=Object.hasOwn||function(t,e){return oct(Y8(t),e)},ict=0,act=Math.random(),uct=Rt(1 .toString),SR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+uct(++ict+act,36)},Pf=K8("wks"),Wu=Tt.Symbol,YB=Wu&&Wu.for,sct=W8?Wu:Wu&&Wu.withoutSetter||SR,Rr=function(t){if(!_r(Pf,t)||!r3&&typeof Pf[t]!="string"){var e="Symbol."+t;r3&&_r(Wu,t)?Pf[t]=Wu[t]:Pf[t]=W8&&YB?YB(e):sct(e)}return Pf[t]},lct=Tt.TypeError,cct=Rr("toPrimitive"),X8=function(t){var e=function(n,r){if(!kr(n)||X2(n))return n;var o,i=q8(n,cct);if(i){if(r===void 0&&(r="default"),o=Ge(i,n,r),!kr(o)||X2(o))return o;throw lct("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&yn(s=a.toString)&&!kr(l=Ge(s,a))||yn(s=a.valueOf)&&!kr(l=Ge(s,a))||u!=="string"&&yn(s=a.toString)&&!kr(l=Ge(s,a)))return l;throw ect("Can't convert object to primitive value")}(n,r)}(t,"string");return X2(e)?e:e+""},o3=Tt.document,fct=kr(o3)&&kr(o3.createElement),Z8=function(t){return fct?o3.createElement(t):{}},AR=!Na&&!Ze(function(){return Object.defineProperty(Z8("div"),"a",{get:function(){return 7}}).a!=7}),XB=Object.getOwnPropertyDescriptor,OR={f:Na?XB:function(t,e){if(t=yh(t),e=X8(e),AR)try{return XB(t,e)}catch{}if(_r(t,e))return U8(!Ge(Wlt.f,t,e),t[e])}},dct=Tt.String,pct=Tt.TypeError,Fr=function(t){if(kr(t))return t;throw pct(dct(t)+" is not an object")},hct=Tt.TypeError,ZB=Object.defineProperty,wh={f:Na?ZB:function(t,e,n){if(Fr(t),e=X8(e),Fr(n),AR)try{return ZB(t,e,n)}catch{}if("get"in n||"set"in n)throw hct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},oc=Na?function(t,e,n){return wh.f(t,e,U8(1,n))}:function(t,e,n){return t[e]=n,t},gct=Rt(Function.toString);yn(ba.inspectSource)||(ba.inspectSource=function(t){return gct(t)});var n1,Bd,r1,J8=ba.inspectSource,JB=Tt.WeakMap,vct=yn(JB)&&/native code/.test(J8(JB)),QB=K8("keys"),kR=function(t){return QB[t]||(QB[t]=SR(t))},Q8={},i3=Tt.TypeError,mct=Tt.WeakMap;if(vct||ba.state){var uu=ba.state||(ba.state=new mct),yct=Rt(uu.get),t_=Rt(uu.has),bct=Rt(uu.set);n1=function(t,e){if(t_(uu,t))throw new i3("Object already initialized");return e.facade=t,bct(uu,t,e),e},Bd=function(t){return yct(uu,t)||{}},r1=function(t){return t_(uu,t)}}else{var Ys=kR("state");Q8[Ys]=!0,n1=function(t,e){if(_r(t,Ys))throw new i3("Object already initialized");return e.facade=t,oc(t,Ys,e),e},Bd=function(t){return _r(t,Ys)?t[Ys]:{}},r1=function(t){return _r(t,Ys)}}var a3={set:n1,get:Bd,has:r1,enforce:function(t){return r1(t)?Bd(t):n1(t,{})},getterFor:function(t){return function(e){var n;if(!kr(e)||(n=Bd(e)).type!==t)throw i3("Incompatible receiver, "+t+" required");return n}}},BR=Function.prototype,wct=Na&&Object.getOwnPropertyDescriptor,Z2=_r(BR,"name"),tC={EXISTS:Z2,PROPER:Z2&&function(){}.name==="something",CONFIGURABLE:Z2&&(!Na||Na&&wct(BR,"name").configurable)},hp=bR(function(t){var e=tC.CONFIGURABLE,n=a3.get,r=a3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;yn(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!_r(u,"name")||e&&u.name!==d)&&oc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Tt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:oc(i,a,u)):f?i[a]=u:G8(a,u)})(Function.prototype,"toString",function(){return yn(this)&&n(this).source||J8(this)})}),Ect=Math.ceil,Dct=Math.floor,jm=function(t){var e=+t;return e!=e||e===0?0:(e>0?Dct:Ect)(e)},Cct=Math.max,xct=Math.min,gp=function(t,e){var n=jm(t);return n<0?Cct(n+e,0):xct(n,e)},Sct=Math.min,eC=function(t){return t>0?Sct(jm(t),9007199254740991):0},Nm=function(t){return eC(t.length)},Act=function(t){return function(e,n,r){var o,i=yh(e),a=Nm(i),u=gp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Oct=Act(!1),e_=Rt([].push),_R=function(t,e){var n,r=yh(t),o=0,i=[];for(n in r)!_r(Q8,n)&&_r(r,n)&&e_(i,n);for(;e.length>o;)_r(r,n=e[o++])&&(~Oct(i,n)||e_(i,n));return i},o1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kct=o1.concat("length","prototype"),Bct={f:Object.getOwnPropertyNames||function(t){return _R(t,kct)}},_ct={f:Object.getOwnPropertySymbols},Fct=Rt([].concat),Tct=bh("Reflect","ownKeys")||function(t){var e=Bct.f(Fr(t)),n=_ct.f;return n?Fct(e,n(t)):e},Pct=function(t,e){for(var n=Tct(e),r=wh.f,o=OR.f,i=0;i<n.length;i++){var a=n[i];_r(t,a)||r(t,a,o(e,a))}},jct=/#|\.prototype\./,Eh=function(t,e){var n=Ict[Nct(t)];return n==Rct||n!=Lct&&(yn(e)?Ze(e):!!e)},Nct=Eh.normalize=function(t){return String(t).replace(jct,".").toLowerCase()},Ict=Eh.data={},Lct=Eh.NATIVE="N",Rct=Eh.POLYFILL="P",Mct=Eh,zct=OR.f,La=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Tt:l?Tt[u]||G8(u,{}):(Tt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=zct(n,r))&&a.value:n[r],!Mct(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Pct(i,o)}(t.sham||o&&o.sham)&&oc(i,"sham",!0),hp(n,r,i,t)}},FR={};FR[Rr("toStringTag")]="z";var nC=String(FR)==="[object z]",$ct=Rr("toStringTag"),Hct=Tt.Object,Vct=ya(function(){return arguments}())=="Arguments",rC=nC?ya:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=Hct(t),$ct))=="string"?n:Vct?ya(e):(r=ya(e))=="Object"&&yn(e.callee)?"Arguments":r},Uct=Tt.String,Bn=function(t){if(rC(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Uct(t)},Wct=/"/g,qct=Rt("".replace);La({target:"String",proto:!0,forced:Ze(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Bn(Ia(this)),r="<a",(r+=' name="'+qct(Bn(e),Wct,""")+'"')+">"+n+"</a>";var e,n,r}});var _0,TR=function(){var t=Fr(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},oC=Tt.RegExp,u3=Ze(function(){var t=oC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Gct=u3||Ze(function(){return!oC("a","y").sticky}),PR={BROKEN_CARET:u3||Ze(function(){var t=oC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Gct,UNSUPPORTED_Y:u3},Kct=Object.keys||function(t){return _R(t,o1)},Yct=Na?Object.defineProperties:function(t,e){Fr(t);for(var n,r=yh(e),o=Kct(e),i=o.length,a=0;i>a;)wh.f(t,n=o[a++],r[n]);return t},Xct=bh("document","documentElement"),jR=kR("IE_PROTO"),J2=function(){},NR=function(t){return"<script>"+t+"<\/script>"},n_=function(t){t.write(NR("")),t.close();var e=t.parentWindow.Object;return t=null,e},Dg=function(){try{_0=new ActiveXObject("htmlfile")}catch{}var t,e;Dg=typeof document<"u"?document.domain&&_0?n_(_0):((e=Z8("iframe")).style.display="none",Xct.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(NR("document.F=Object")),t.close(),t.F):n_(_0);for(var n=o1.length;n--;)delete Dg.prototype[o1[n]];return Dg()};Q8[jR]=!0;var r_,Q2,IR=Object.create||function(t,e){var n;return t!==null?(J2.prototype=Fr(t),n=new J2,J2.prototype=null,n[jR]=t):n=Dg(),e===void 0?n:Yct(n,e)},Zct=Tt.RegExp,Jct=Ze(function(){var t=Zct(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Qct=Tt.RegExp,tft=Ze(function(){var t=Qct("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),eft=a3.get,nft=K8("native-string-replace",String.prototype.replace),i1=RegExp.prototype.exec,s3=i1,rft=Rt("".charAt),oft=Rt("".indexOf),ift=Rt("".replace),tw=Rt("".slice),ew=(Q2=/b*/g,Ge(i1,r_=/a/,"a"),Ge(i1,Q2,"a"),r_.lastIndex!==0||Q2.lastIndex!==0),o_=PR.BROKEN_CARET,nw=/()??/.exec("")[1]!==void 0;(ew||nw||o_||Jct||tft)&&(s3=function(t){var e,n,r,o,i,a,u,s=this,l=eft(s),c=Bn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Ge(s3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=o_&&s.sticky,v=Ge(TR,s),g=s.source,m=0,y=c;if(d&&(v=ift(v,"y",""),oft(v,"g")===-1&&(v+="g"),y=tw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&rft(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),nw&&(n=new RegExp("^"+g+"$(?!\\s)",v)),ew&&(r=s.lastIndex),o=Ge(i1,d?n:s,y),d?o?(o.input=tw(o.input,m),o[0]=tw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ew&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),nw&&o&&o.length>1&&Ge(nft,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=IR(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var vp=s3;La({target:"RegExp",proto:!0,forced:/./.exec!==vp},{exec:vp});var a1=Array.isArray||function(t){return ya(t)=="Array"},LR=function(){},aft=[],RR=bh("Reflect","construct"),iC=/^\s*(?:class|function)\b/,uft=Rt(iC.exec),sft=!iC.exec(LR),jf=function(t){if(!yn(t))return!1;try{return RR(LR,aft,t),!0}catch{return!1}},aC=!RR||Ze(function(){var t;return jf(jf.call)||!jf(Object)||!jf(function(){t=!0})||t})?function(t){if(!yn(t))return!1;switch(rC(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sft||!!uft(iC,J8(t))}:jf,MR=function(t,e,n){var r=X8(e);r in t?wh.f(t,r,U8(0,n)):t[r]=n},lft=Rr("species"),uC=function(t){return n3>=51||!Ze(function(){var e=[];return(e.constructor={})[lft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},cft=Rt([].slice),fft=uC("slice"),dft=Rr("species"),rw=Tt.Array,pft=Math.max;function io(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function i_(t){var e=t.selection;if(e==null)return!1;var n=io(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=io(n,2)[1],o=E.start(t,r);if(Bt.equals(e.anchor,o))return!0}return!1}function a_(t,e){var n,r,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){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}La({target:"Array",proto:!0,forced:!fft},{slice:function(t,e){var n,r,o,i=yh(this),a=Nm(i),u=gp(t,a),s=gp(e===void 0?a:e,a);if(a1(i)&&(n=i.constructor,(aC(n)&&(n===rw||a1(n.prototype))||kr(n)&&(n=n[dft])===null)&&(n=void 0),n===rw||n===void 0))return cft(i,u,s);for(r=new(n===void 0?rw:n)(pft(s-u,0)),o=0;u<s;u++,o++)u in i&&MR(r,o,i[u]);return r.length=o,r}});var u_=Rt(Rt.bind),hft=Rr("species"),s_=Tt.Array,gft=function(t,e){return new(function(n){var r;return a1(n)&&(r=n.constructor,(aC(r)&&(r===s_||a1(r.prototype))||kr(r)&&(r=r[hft])===null)&&(r=void 0)),r===void 0?s_:r}(t))(e===0?0:e)},l_=Rt([].push),$i=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=Y8(s),g=ER(v),m=function(D,x){return xR(D),x===void 0?D:u_?u_(D,x):function(){return D.apply(x,arguments)}}(l,c),y=Nm(g),h=0,b=f||gft,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:l_(w,p)}else switch(t){case 4:return!1;case 7:l_(w,p)}return i?-1:r||o?o:w}},Im={forEach:$i(0),map:$i(1),filter:$i(2),some:$i(3),every:$i(4),find:$i(5),findIndex:$i(6),filterReject:$i(7)},vft=Im.map;La({target:"Array",proto:!0,forced:!uC("map")},{map:function(t){return vft(this,t,arguments.length>1?arguments[1]:void 0)}});var mft=nC?{}.toString:function(){return"[object "+rC(this)+"]"};function Lm(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function zR(t){return Lm(t).every(function(e){return!!e.isHeader})}nC||hp(Object.prototype,"toString",mft,{unsafe:!0});var yft=tC.PROPER,l3=RegExp.prototype,$R=l3.toString,bft=Rt(TR),wft=Ze(function(){return $R.call({source:"a",flags:"b"})!="/a/b"}),Eft=yft&&$R.name!="toString";(wft||Eft)&&hp(RegExp.prototype,"toString",function(){var t=Fr(this),e=Bn(t.source),n=t.flags;return"/"+e+"/"+Bn(n===void 0&&DR(l3,t)&&!("flags"in l3)?bft(t):n)},{unsafe:!0});var c3=Rr("unscopables"),f3=Array.prototype;f3[c3]==null&&wh.f(f3,c3,{configurable:!0,value:IR(null)});var Dft=Im.find,c_=!0;"find"in[]&&Array(1).find(function(){c_=!1}),La({target:"Array",proto:!0,forced:c_},{find:function(t){return Dft(this,t,arguments.length>1?arguments[1]:void 0)}}),f3[c3].find=!0;var sC=Function.prototype,f_=sC.apply,Cft=sC.bind,d_=sC.call,HR=typeof Reflect=="object"&&Reflect.apply||(Cft?d_.bind(f_):function(){return d_.apply(f_,arguments)}),xft=Rr("species"),ow=RegExp.prototype,VR=function(t,e,n,r){var o=Rr(t),i=!Ze(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ze(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[xft]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Rt(/./[o]),s=e(o,""[t],function(l,c,f,p,d){var v=Rt(l),g=c.exec;return g===vp||g===ow.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});hp(String.prototype,t,s[0]),hp(ow,o,s[1])}r&&oc(ow[o],"sham",!0)},Sft=Rr("match"),Aft=Tt.TypeError,Oft=Rr("species"),kft=Rt("".charAt),p_=Rt("".charCodeAt),Bft=Rt("".slice),_ft=function(t){return function(e,n){var r,o,i=Bn(Ia(e)),a=jm(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=p_(i,a))<55296||r>56319||a+1===u||(o=p_(i,a+1))<56320||o>57343?t?kft(i,a):r:t?Bft(i,a,a+2):o-56320+(r-55296<<10)+65536}},Fft=_ft(!0),UR=function(t,e,n){return e+(n?Fft(t,e).length:1)},Tft=Tt.Array,Pft=Math.max,h_=function(t,e,n){for(var r=Nm(t),o=gp(e,r),i=gp(n===void 0?r:n,r),a=Tft(Pft(i-o,0)),u=0;o<i;o++,u++)MR(a,u,t[o]);return a.length=u,a},jft=Tt.TypeError,d3=function(t,e){var n=t.exec;if(yn(n)){var r=Ge(n,t,e);return r!==null&&Fr(r),r}if(ya(t)==="RegExp")return Ge(vp,t,e);throw jft("RegExp#exec called on incompatible receiver")},Xs=PR.UNSUPPORTED_Y,Nft=Math.min,WR=[].push,Ift=Rt(/./.exec),Zs=Rt(WR),Nf=Rt("".slice);VR("split",function(t,e,n){var r;return r="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=Bn(Ia(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!kr(a=o)||!((u=a[Sft])!==void 0?u:ya(a)=="RegExp"))return Ge(e,s,o,l);for(var c,f,p,d=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),g=0,m=new RegExp(o.source,v+"g");(c=Ge(vp,m,s))&&!((f=m.lastIndex)>g&&(Zs(d,Nf(s,g,c.index)),c.length>1&&c.index<s.length&&HR(WR,d,h_(c,1)),p=c[0].length,g=f,d.length>=l));)m.lastIndex===c.index&&m.lastIndex++;return g===s.length?!p&&Ift(m,"")||Zs(d,""):Zs(d,Nf(s,g)),d.length>l?h_(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Ge(e,this,o,i)}:e,[function(o,i){var a=Ia(this),u=o==null?void 0:q8(o,t);return u?Ge(u,o,a,i):Ge(r,Bn(a),o,i)},function(o,i){var a=Fr(this),u=Bn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var x,C=Fr(w).constructor;return C===void 0||(x=Fr(C)[Oft])==null?D:function(O){if(aC(O))return O;throw Aft(CR(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Xs?"g":"y"),p=new l(Xs?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return d3(p,u)===null?[u]:[];for(var v=0,g=0,m=[];g<u.length;){p.lastIndex=Xs?0:g;var y,h=d3(p,Xs?Nf(u,g):u);if(h===null||(y=Nft(eC(p.lastIndex+(Xs?g:0)),u.length))===v)g=UR(u,g,c);else{if(Zs(m,Nf(u,v,g)),m.length===d)return m;for(var b=1;b<=h.length-1;b++)if(Zs(m,h[b]),m.length===d)return m;g=v=y}}return Zs(m,Nf(u,v)),m}]},!!Ze(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Xs);var p3=`
- \v\f\r \u2028\u2029\uFEFF`,g_=Rt("".replace),u1="["+p3+"]",Lft=RegExp("^"+u1+u1+"*"),Rft=RegExp(u1+u1+"*$"),iw=function(t){return function(e){var n=Bn(Ia(e));return 1&t&&(n=g_(n,Lft,"")),2&t&&(n=g_(n,Rft,"")),n}},Mft={start:iw(1),end:iw(2),trim:iw(3)},zft=tC.PROPER,$ft=Mft.trim;function qR(t){return t.length?t[0].tagName.toLowerCase():""}La({target:"String",proto:!0,forced:function(t){return Ze(function(){return!!p3[t]()||"
"[t]()!=="
"||zft&&p3[t].name!==t})}("trim")},{trim:function(){return $ft(this)}}),La({global:!0},{globalThis:Tt}),jr&&(B.fn.append=jr),jo&&(B.fn.on=jo),Ba&&(B.fn.focus=Ba),Pr&&(B.fn.attr=Pr),Po&&(B.fn.val=Po),ka&&(B.fn.html=ka),$l&&(B.fn.dataset=$l),Rl&&(B.fn.addClass=Rl),Ml&&(B.fn.removeClass=Ml),Wl&&(B.fn.children=Wl),lv&&(B.fn.each=lv),Ul&&(B.fn.find=Ul);var mp=!1,GR=0,KR=0,yp=null,bp=null,_d=B("body");function YR(t){mp=!1,bp=null,yp=null,_d.off("mousemove",XR),_d.off("mouseup",YR)}_d.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(),mp=!0;var n=t.clientX;GR=n;var r=e.getBoundingClientRect().width;KR=r,_d.on("mousemove",XR),_d.on("mouseup",YR)}});var XR=es(function(t){if(mp&&bp!=null&&yp!=null){t.preventDefault();var e=t.clientX,n=KR+(e-GR);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(bp,{width:n.toString()},{at:yp})}},100),Hft={type:"table",renderElem:function(t,e,n){var r=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,p=A.findPath(u,s),d=E.start(u,p),v=E.end(u,p),g=Bt.compare(c,v)<=0&&Bt.compare(c,d)>=0,m=Bt.compare(f,v)<=0&&Bt.compare(f,d)>=0;return!!(g&&m&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=bt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},bt("table",{width:i,contentEditable:r},bt("colgroup",null,Lm(t).map(function(u){var s=u.width;return bt("col",{width:s===void 0?"auto":s})})),bt("tbody",null,e)));return a}},Vft={type:"table-row",renderElem:function(t,e,n){return bt("tr",null,e)}},Uft={type:"table-cell",renderElem:function(t,e,n){var r=function(p,d){var v=A.getParentNode(p,d);if(v==null)return!1;var g=A.getParentNode(p,v);return g!=null&&Lm(g).some(function(m){return m===d})}(n,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(!r)return bt("td",{colSpan:a,rowSpan:s},e);var f=bt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:es(function(p){var d=this.elm;if(d!=null){var v=d.getBoundingClientRect(),g=v.left,m=v.width,y=v.top,h=v.height,b=p.clientX,w=p.clientY;mp||(b>g+m-5&&b<g+m&&w>y&&w<y+h?(d.style.cursor="col-resize",bp=n,yp=A.findPath(n,t)):mp||(d.style.cursor="auto",bp=null,yp=null))}},100)}},e);return f}},Wft={selector:"table",preParseHtml:function(t){var e=B(t);if(qR(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},qft=Im.filter;La({target:"Array",proto:!0,forced:!uC("filter")},{filter:function(t){return qft(this,t,arguments.length>1?arguments[1]:void 0)}});var Gft=Math.floor,aw=Rt("".charAt),Kft=Rt("".replace),uw=Rt("".slice),Yft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Xft=/\$([$&'`]|\d{1,2})/g,Zft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Xft;return o!==void 0&&(o=Y8(o),s=Yft),Kft(i,s,function(l,c){var f;switch(aw(c,0)){case"$":return"$";case"&":return t;case"`":return uw(e,0,n);case"'":return uw(e,a);case"<":f=o[uw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Gft(p/10);return d===0?l:d<=u?r[d-1]===void 0?aw(c,1):r[d-1]+aw(c,1):l}f=r[p-1]}return f===void 0?"":f})},h3=Rr("replace"),Jft=Math.max,Qft=Math.min,tdt=Rt([].concat),sw=Rt([].push),v_=Rt("".indexOf),m_=Rt("".slice),edt="a".replace(/./,"$0")==="$0",y_=!!/./[h3]&&/./[h3]("a","$0")==="";VR("replace",function(t,e,n){var r=y_?"$":"$0";return[function(o,i){var a=Ia(this),u=o==null?void 0:q8(o,h3);return u?Ge(u,o,a,i):Ge(e,Bn(a),o,i)},function(o,i){var a=Fr(this),u=Bn(o);if(typeof i=="string"&&v_(i,r)===-1&&v_(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=yn(i);l||(i=Bn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=d3(a,u);if(d===null||(sw(p,d),!c))break;Bn(d[0])===""&&(a.lastIndex=UR(u,eC(a.lastIndex),f))}for(var v,g="",m=0,y=0;y<p.length;y++){for(var h=Bn((d=p[y])[0]),b=Jft(Qft(jm(d.index),u.length),0),w=[],D=1;D<d.length;D++)sw(w,(v=d[D])===void 0?v:String(v));var x=d.groups;if(l){var C=tdt([h],w,b,u);x!==void 0&&sw(C,x);var O=Bn(HR(i,void 0,C))}else O=Zft(h,u,b,w,x,i);b>=m&&(g+=m_(u,m,b)+O,m=b+h.length)}return g+m_(u,m)}]},!!Ze(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!edt||y_);var ndt={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(u){return!!ot.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:qR(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},rdt={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},odt={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=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 p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},idt=function(){function t(){this.title=tt("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,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 × 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 p=B(f).dataset(),d=p.x,v=p.y;o[0].innerHTML=d+1+" × "+(v+1),i.children().each(function(g){B(g).children().each(function(m){var y=B(m),h=y.dataset(),b=h.x,w=h.y;b<=d&&w<=v?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=B(f).dataset(),d=p.x,v=p.y;n.insertTable(e,v+1,d+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,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=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),adt=function(){function t(){this.title=tt("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,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),udt=function(){function t(){this.title=tt("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 n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=io(E.nodes(e,{match:function(d){return A.checkNodeType(d,"table-cell")},universal:!0}),1),o=io(r[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),p=j.next(f);N.insertNodes(e,l,{at:p})}}},t}(),sdt=function(){function t(){this.title=tt("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 n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=io(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=io(r[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}(),b_={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},lw=Z8("span").classList,w_=lw&&lw.constructor&&lw.constructor.prototype,ldt=w_===Object.prototype?void 0:w_,cdt=Im.forEach,fdt=function(t,e){var n=[].forEach;return!!n&&Ze(function(){n.call(null,function(){throw 1},1)})}(),cw=fdt?[].forEach:function(t){return cdt(this,t,arguments.length>1?arguments[1]:void 0)},ZR=function(t){if(t&&t.forEach!==cw)try{oc(t,"forEach",cw)}catch{t.forEach=cw}};for(var fw in b_)b_[fw]&&ZR(Tt[fw]&&Tt[fw].prototype);ZR(ldt);var ddt=function(){function t(){this.title=tt("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 n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=io(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=io(r[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 p=A.findPath(e,f);if(p.length===a.length&&yR(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&zR(s)&&(d.isHeader=!0),N.insertNodes(e,d,{at:p})}})})}}},t}(),pdt=function(){function t(){this.title=tt("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 n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=io(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=io(r[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 p=A.findPath(e,f);p.length===a.length&&yR(p.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:p})})})}}},t}(),hdt=function(){function t(){this.title=tt("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 n=A.getSelectedNodeByType(e,"table");return n!=null&&zR(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&Lm(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),gdt=function(){function t(){this.title=tt("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 n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),vdt={renderElems:[Hft,Vft,Uft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[Wft],parseElemsHtml:[ndt,rdt,odt],menus:[{key:"insertTable",factory:function(){return new idt}},{key:"deleteTable",factory:function(){return new adt}},{key:"insertTableRow",factory:function(){return new udt}},{key:"deleteTableRow",factory:function(){return new sdt}},{key:"insertTableCol",factory:function(){return new ddt}},{key:"deleteTableCol",factory:function(){return new pdt}},{key:"tableHeader",factory:function(){return new hdt}},{key:"tableFullWidth",factory:function(){return new gdt}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=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(!i_(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var p=a_(s,f),d=a_(s,c);if(p&&!d)return}}n(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 p=s.children||[],d=p.length;if(A.checkNodeType(p[d-1],"table")){var v=A.genEmptyParagraph();N.insertNodes(s,v,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){i_(s)||r(l)},s.normalizeNode=function(l){var c=io(l,2),f=c[0],p=c[1];if(A.getNodeType(f)!=="table")return o([f,p]);if(A.isLastNode(s,f)){var d=A.genEmptyParagraph();N.insertNodes(s,d,{at:[p[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,p=l.focus;if(j.equals(f.path.slice(0,3),p.path.slice(0,3)))if(Q.string(c).length!==0){var d=A.findPath(s,c),v={anchor:E.start(s,d),focus:E.end(s,d)};s.select(v)}else u();else u()}else u()}else u()},s}};Xn("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"}}),Xn("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 s1=function(){return s1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s1.apply(this,arguments)};function Rm(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function Mm(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=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++,r=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],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function qu(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function mdt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.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={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var E_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lC(t){var e={exports:{}};return t(e,e.exports),e.exports}var Hi,Cg,F0=function(t){return t&&t.Math==Math&&t},rt=F0(typeof globalThis=="object"&&globalThis)||F0(typeof window=="object"&&window)||F0(typeof self=="object"&&self)||F0(typeof E_=="object"&&E_)||function(){return this}()||Function("return this")(),pe=function(t){try{return!!t()}catch{return!0}},Io=!pe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),If=Function.prototype.call,ce=If.bind?If.bind(If):function(){return If.apply(If,arguments)},D_={}.propertyIsEnumerable,C_=Object.getOwnPropertyDescriptor,ydt={f:C_&&!D_.call({1:2},1)?function(t){var e=C_(this,t);return!!e&&e.enumerable}:D_},zm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},JR=Function.prototype,g3=JR.bind,v3=JR.call,bdt=g3&&g3.bind(v3),Ct=g3?function(t){return t&&bdt(v3,t)}:function(t){return t&&function(){return v3.apply(t,arguments)}},wdt=Ct({}.toString),Edt=Ct("".slice),_o=function(t){return Edt(wdt(t),8,-1)},dw=rt.Object,Ddt=Ct("".split),cC=pe(function(){return!dw("z").propertyIsEnumerable(0)})?function(t){return _o(t)=="String"?Ddt(t,""):dw(t)}:dw,Cdt=rt.TypeError,Dh=function(t){if(t==null)throw Cdt("Can't call method on "+t);return t},Wa=function(t){return cC(Dh(t))},ie=function(t){return typeof t=="function"},ge=function(t){return typeof t=="object"?t!==null:ie(t)},xdt=function(t){return ie(t)?t:void 0},fs=function(t,e){return arguments.length<2?xdt(rt[t]):rt[t]&&rt[t][e]},wp=Ct({}.isPrototypeOf),Ol=fs("navigator","userAgent")||"",x_=rt.process,S_=rt.Deno,A_=x_&&x_.versions||S_&&S_.version,O_=A_&&A_.v8;O_&&(Cg=(Hi=O_.split("."))[0]>0&&Hi[0]<4?1:+(Hi[0]+Hi[1])),!Cg&&Ol&&(!(Hi=Ol.match(/Edge\/(\d+)/))||Hi[1]>=74)&&(Hi=Ol.match(/Chrome\/(\d+)/))&&(Cg=+Hi[1]);var Ep=Cg,m3=!!Object.getOwnPropertySymbols&&!pe(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ep&&Ep<41}),fC=m3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Sdt=rt.Object,pw=fC?function(t){return typeof t=="symbol"}:function(t){var e=fs("Symbol");return ie(e)&&wp(e.prototype,Sdt(t))},Adt=rt.String,l1=function(t){try{return Adt(t)}catch{return"Object"}},Odt=rt.TypeError,Ra=function(t){if(ie(t))return t;throw Odt(l1(t)+" is not a function")},Dp=function(t,e){var n=t[e];return n==null?void 0:Ra(n)},kdt=rt.TypeError,Bdt=Object.defineProperty,dC=function(t,e){try{Bdt(rt,t,{value:e,configurable:!0,writable:!0})}catch{rt[t]=e}return e},wa=rt["__core-js_shared__"]||dC("__core-js_shared__",{}),pC=lC(function(t){(t.exports=function(e,n){return wa[e]||(wa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_dt=rt.Object,$m=function(t){return _dt(Dh(t))},Fdt=Ct({}.hasOwnProperty),Ye=Object.hasOwn||function(t,e){return Fdt($m(t),e)},Tdt=0,Pdt=Math.random(),jdt=Ct(1 .toString),hC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+jdt(++Tdt+Pdt,36)},Lf=pC("wks"),Gu=rt.Symbol,k_=Gu&&Gu.for,Ndt=fC?Gu:Gu&&Gu.withoutSetter||hC,ze=function(t){if(!Ye(Lf,t)||!m3&&typeof Lf[t]!="string"){var e="Symbol."+t;m3&&Ye(Gu,t)?Lf[t]=Gu[t]:Lf[t]=fC&&k_?k_(e):Ndt(e)}return Lf[t]},Idt=rt.TypeError,Ldt=ze("toPrimitive"),gC=function(t){var e=function(n,r){if(!ge(n)||pw(n))return n;var o,i=Dp(n,Ldt);if(i){if(r===void 0&&(r="default"),o=ce(i,n,r),!ge(o)||pw(o))return o;throw Idt("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ie(s=a.toString)&&!ge(l=ce(s,a))||ie(s=a.valueOf)&&!ge(l=ce(s,a))||u!=="string"&&ie(s=a.toString)&&!ge(l=ce(s,a)))return l;throw kdt("Can't convert object to primitive value")}(n,r)}(t,"string");return pw(e)?e:e+""},y3=rt.document,Rdt=ge(y3)&&ge(y3.createElement),Cp=function(t){return Rdt?y3.createElement(t):{}},QR=!Io&&!pe(function(){return Object.defineProperty(Cp("div"),"a",{get:function(){return 7}}).a!=7}),B_=Object.getOwnPropertyDescriptor,vC={f:Io?B_:function(t,e){if(t=Wa(t),e=gC(e),QR)try{return B_(t,e)}catch{}if(Ye(t,e))return zm(!ce(ydt.f,t,e),t[e])}},Mdt=rt.String,zdt=rt.TypeError,pn=function(t){if(ge(t))return t;throw zdt(Mdt(t)+" is not an object")},$dt=rt.TypeError,__=Object.defineProperty,vi={f:Io?__:function(t,e,n){if(pn(t),e=gC(e),pn(n),QR)try{return __(t,e,n)}catch{}if("get"in n||"set"in n)throw $dt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ea=Io?function(t,e,n){return vi.f(t,e,zm(1,n))}:function(t,e,n){return t[e]=n,t},Hdt=Ct(Function.toString);ie(wa.inspectSource)||(wa.inspectSource=function(t){return Hdt(t)});var c1,Fd,f1,Hm=wa.inspectSource,F_=rt.WeakMap,tM=ie(F_)&&/native code/.test(Hm(F_)),T_=pC("keys"),mC=function(t){return T_[t]||(T_[t]=hC(t))},Vm={},b3=rt.TypeError,Vdt=rt.WeakMap;if(tM||wa.state){var su=wa.state||(wa.state=new Vdt),Udt=Ct(su.get),P_=Ct(su.has),Wdt=Ct(su.set);c1=function(t,e){if(P_(su,t))throw new b3("Object already initialized");return e.facade=t,Wdt(su,t,e),e},Fd=function(t){return Udt(su,t)||{}},f1=function(t){return P_(su,t)}}else{var Js=mC("state");Vm[Js]=!0,c1=function(t,e){if(Ye(t,Js))throw new b3("Object already initialized");return e.facade=t,Ea(t,Js,e),e},Fd=function(t){return Ye(t,Js)?t[Js]:{}},f1=function(t){return Ye(t,Js)}}var pr={set:c1,get:Fd,has:f1,enforce:function(t){return f1(t)?Fd(t):c1(t,{})},getterFor:function(t){return function(e){var n;if(!ge(e)||(n=Fd(e)).type!==t)throw b3("Incompatible receiver, "+t+" required");return n}}},eM=Function.prototype,qdt=Io&&Object.getOwnPropertyDescriptor,hw=Ye(eM,"name"),_c={EXISTS:hw,PROPER:hw&&function(){}.name==="something",CONFIGURABLE:hw&&(!Io||Io&&qdt(eM,"name").configurable)},ur=lC(function(t){var e=_c.CONFIGURABLE,n=pr.get,r=pr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ie(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ye(u,"name")||e&&u.name!==d)&&Ea(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==rt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ea(i,a,u)):f?i[a]=u:dC(a,u)})(Function.prototype,"toString",function(){return ie(this)&&n(this).source||Hm(this)})}),Gdt=Math.ceil,Kdt=Math.floor,Um=function(t){var e=+t;return e!=e||e===0?0:(e>0?Kdt:Gdt)(e)},Ydt=Math.max,Xdt=Math.min,xp=function(t,e){var n=Um(t);return n<0?Ydt(n+e,0):Xdt(n,e)},Zdt=Math.min,nM=function(t){return t>0?Zdt(Um(t),9007199254740991):0},Ch=function(t){return nM(t.length)},j_=function(t){return function(e,n,r){var o,i=Wa(e),a=Ch(i),u=xp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},rM={includes:j_(!0),indexOf:j_(!1)},Jdt=rM.indexOf,N_=Ct([].push),oM=function(t,e){var n,r=Wa(t),o=0,i=[];for(n in r)!Ye(Vm,n)&&Ye(r,n)&&N_(i,n);for(;e.length>o;)Ye(r,n=e[o++])&&(~Jdt(i,n)||N_(i,n));return i},d1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Qdt=d1.concat("length","prototype"),p1={f:Object.getOwnPropertyNames||function(t){return oM(t,Qdt)}},tpt={f:Object.getOwnPropertySymbols},ept=Ct([].concat),npt=fs("Reflect","ownKeys")||function(t){var e=p1.f(pn(t)),n=tpt.f;return n?ept(e,n(t)):e},rpt=function(t,e){for(var n=npt(e),r=vi.f,o=vC.f,i=0;i<n.length;i++){var a=n[i];Ye(t,a)||r(t,a,o(e,a))}},opt=/#|\.prototype\./,xh=function(t,e){var n=apt[ipt(t)];return n==spt||n!=upt&&(ie(e)?pe(e):!!e)},ipt=xh.normalize=function(t){return String(t).replace(opt,".").toLowerCase()},apt=xh.data={},upt=xh.NATIVE="N",spt=xh.POLYFILL="P",h1=xh,lpt=vC.f,Un=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?rt:l?rt[u]||dC(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=lpt(n,r))&&a.value:n[r],!h1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;rpt(i,o)}(t.sham||o&&o.sham)&&Ea(i,"sham",!0),ur(n,r,i,t)}},iM={};iM[ze("toStringTag")]="z";var yC=String(iM)==="[object z]",cpt=ze("toStringTag"),fpt=rt.Object,dpt=_o(function(){return arguments}())=="Arguments",Wm=yC?_o:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=fpt(t),cpt))=="string"?n:dpt?_o(e):(r=_o(e))=="Object"&&ie(e.callee)?"Arguments":r},ppt=rt.String,Cr=function(t){if(Wm(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ppt(t)},w3=`
- \v\f\r \u2028\u2029\uFEFF`,I_=Ct("".replace),g1="["+w3+"]",hpt=RegExp("^"+g1+g1+"*"),gpt=RegExp(g1+g1+"*$"),gw=function(t){return function(e){var n=Cr(Dh(e));return 1&t&&(n=I_(n,hpt,"")),2&t&&(n=I_(n,gpt,"")),n}},vpt={start:gw(1),end:gw(2),trim:gw(3)},mpt=_c.PROPER,ypt=vpt.trim;function L_(t){return t.length?t[0].tagName.toLowerCase():""}function aM(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=B(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}Un({target:"String",proto:!0,forced:pe(function(){return!!w3.trim()||"
".trim()!=="
"||mpt&&w3.trim.name!=="trim"})},{trim:function(){return ypt(this)}}),Un({global:!0},{globalThis:rt}),jr&&(B.fn.append=jr),jo&&(B.fn.on=jo),Ba&&(B.fn.focus=Ba),Pr&&(B.fn.attr=Pr),Po&&(B.fn.val=Po),ka&&(B.fn.html=ka),Vl&&(B.fn.parent=Vl),zl&&(B.fn.hasClass=zl),Gl&&(B.fn.empty=Gl);var T0,bpt={type:"video",renderElem:function(t,e,n){var r,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,p=f===void 0?"auto":f,d=A.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:aM(a,c,p)});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),p!=="auto"&&(v.data.height=p),r=bt("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},v)}return Kl("div",{props:{contentEditable:!1},on:{mousedown:function(g){return g.preventDefault()}}},r)}},wpt={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.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+=aM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
- </div>`}},Ept=Object.keys||function(t){return oM(t,d1)},Dpt=Io?Object.defineProperties:function(t,e){pn(t);for(var n,r=Wa(e),o=Ept(e),i=o.length,a=0;i>a;)vi.f(t,n=o[a++],r[n]);return t},E3=fs("document","documentElement"),uM=mC("IE_PROTO"),vw=function(){},sM=function(t){return"<script>"+t+"<\/script>"},R_=function(t){t.write(sM("")),t.close();var e=t.parentWindow.Object;return t=null,e},xg=function(){try{T0=new ActiveXObject("htmlfile")}catch{}var t,e;xg=typeof document<"u"?document.domain&&T0?R_(T0):((e=Cp("iframe")).style.display="none",E3.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(sM("document.F=Object")),t.close(),t.F):R_(T0);for(var n=d1.length;n--;)delete xg.prototype[d1[n]];return xg()};Vm[uM]=!0;var bC=Object.create||function(t,e){var n;return t!==null?(vw.prototype=pn(t),n=new vw,vw.prototype=null,n[uM]=t):n=xg(),e===void 0?n:Dpt(n,e)},D3=ze("unscopables"),C3=Array.prototype;C3[D3]==null&&vi.f(C3,D3,{configurable:!0,value:bC(null)});var Td=function(t){C3[D3][t]=!0},Cpt=rM.includes;Un({target:"Array",proto:!0},{includes:function(t){return Cpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Td("includes");var xpt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(L_(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=B(o))}}var a=L_(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},M_=Ct(Ct.bind),Sp=function(t,e){return Ra(t),e===void 0?t:M_?M_(t,e):function(){return t.apply(e,arguments)}},v1=Array.isArray||function(t){return _o(t)=="Array"},lM=function(){},Spt=[],cM=fs("Reflect","construct"),wC=/^\s*(?:class|function)\b/,Apt=Ct(wC.exec),Opt=!wC.exec(lM),Rf=function(t){if(!ie(t))return!1;try{return cM(lM,Spt,t),!0}catch{return!1}},EC=!cM||pe(function(){var t;return Rf(Rf.call)||!Rf(Object)||!Rf(function(){t=!0})||t})?function(t){if(!ie(t))return!1;switch(Wm(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Opt||!!Apt(wC,Hm(t))}:Rf,kpt=ze("species"),z_=rt.Array,Bpt=function(t,e){return new(function(n){var r;return v1(n)&&(r=n.constructor,(EC(r)&&(r===z_||v1(r.prototype))||ge(r)&&(r=r[kpt])===null)&&(r=void 0)),r===void 0?z_:r}(t))(e===0?0:e)},$_=Ct([].push),Vi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=$m(s),g=cC(v),m=Sp(l,c),y=Ch(g),h=0,b=f||Bpt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:$_(w,p)}else switch(t){case 4:return!1;case 7:$_(w,p)}return i?-1:r||o?o:w}},DC={forEach:Vi(0),map:Vi(1),filter:Vi(2),some:Vi(3),every:Vi(4),find:Vi(5),findIndex:Vi(6),filterReject:Vi(7)},_pt=DC.find,H_=!0;"find"in[]&&Array(1).find(function(){H_=!1}),Un({target:"Array",proto:!0,forced:H_},{find:function(t){return _pt(this,t,arguments.length>1?arguments[1]:void 0)}}),Td("find");var Fpt=yC?{}.toString:function(){return"[object "+Wm(this)+"]"};function V_(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}yC||ur(Object.prototype,"toString",Fpt,{unsafe:!0});var U_,mw,Tpt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=B(t),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",V_(o=s[0].outerHTML,i,a,u);var l=r.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",V_(o,i=l.attr("poster")||"",a,u)}},fM=function(){var t=pn(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},CC=rt.RegExp,x3=pe(function(){var t=CC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Ppt=x3||pe(function(){return!CC("a","y").sticky}),jpt={BROKEN_CARET:x3||pe(function(){var t=CC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Ppt,UNSUPPORTED_Y:x3},Npt=rt.RegExp,Ipt=pe(function(){var t=Npt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Lpt=rt.RegExp,Rpt=pe(function(){var t=Lpt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Mpt=pr.get,zpt=pC("native-string-replace",String.prototype.replace),m1=RegExp.prototype.exec,S3=m1,$pt=Ct("".charAt),Hpt=Ct("".indexOf),Vpt=Ct("".replace),yw=Ct("".slice),bw=(mw=/b*/g,ce(m1,U_=/a/,"a"),ce(m1,mw,"a"),U_.lastIndex!==0||mw.lastIndex!==0),W_=jpt.BROKEN_CARET,ww=/()??/.exec("")[1]!==void 0;(bw||ww||W_||Ipt||Rpt)&&(S3=function(t){var e,n,r,o,i,a,u,s=this,l=Mpt(s),c=Cr(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=ce(S3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=W_&&s.sticky,v=ce(fM,s),g=s.source,m=0,y=c;if(d&&(v=Vpt(v,"y",""),Hpt(v,"g")===-1&&(v+="g"),y=yw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&$pt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),ww&&(n=new RegExp("^"+g+"$(?!\\s)",v)),bw&&(r=s.lastIndex),o=ce(m1,d?n:s,y),d?o?(o.input=yw(o.input,m),o[0]=yw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:bw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ww&&o&&o.length>1&&ce(zpt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=bC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var y1=S3;Un({target:"RegExp",proto:!0,forced:/./.exec!==y1},{exec:y1});var xC=Function.prototype,q_=xC.apply,Upt=xC.bind,G_=xC.call,dM=typeof Reflect=="object"&&Reflect.apply||(Upt?G_.bind(q_):function(){return G_.apply(q_,arguments)}),K_=(ze("species"),RegExp.prototype),Wpt=Ct("".charAt),Y_=Ct("".charCodeAt),qpt=Ct("".slice),X_=function(t){return function(e,n){var r,o,i=Cr(Dh(e)),a=Um(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Y_(i,a))<55296||r>56319||a+1===u||(o=Y_(i,a+1))<56320||o>57343?t?Wpt(i,a):r:t?qpt(i,a,a+2):o-56320+(r-55296<<10)+65536}},pM={codeAt:X_(!1),charAt:X_(!0)},Gpt=pM.charAt,Kpt=function(t,e,n){return e+(n?Gpt(t,e).length:1)},Ypt=Math.floor,Ew=Ct("".charAt),Xpt=Ct("".replace),Dw=Ct("".slice),Zpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jpt=/\$([$&'`]|\d{1,2})/g,Qpt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Jpt;return o!==void 0&&(o=$m(o),s=Zpt),Xpt(i,s,function(l,c){var f;switch(Ew(c,0)){case"$":return"$";case"&":return t;case"`":return Dw(e,0,n);case"'":return Dw(e,a);case"<":f=o[Dw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Ypt(p/10);return d===0?l:d<=u?r[d-1]===void 0?Ew(c,1):r[d-1]+Ew(c,1):l}f=r[p-1]}return f===void 0?"":f})},tht=rt.TypeError,eht=function(t,e){var n=t.exec;if(ie(n)){var r=ce(n,t,e);return r!==null&&pn(r),r}if(_o(t)==="RegExp")return ce(y1,t,e);throw tht("RegExp#exec called on incompatible receiver")},A3=ze("replace"),nht=Math.max,rht=Math.min,oht=Ct([].concat),Cw=Ct([].push),Z_=Ct("".indexOf),J_=Ct("".slice),iht="a".replace(/./,"$0")==="$0",Q_=!!/./[A3]&&/./[A3]("a","$0")==="";function hM(t){return t===void 0&&(t="r"),t+"-"+xj()}(function(t,e,n,r){var o=ze(t),i=!pe(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!pe(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ct(/./[o]),s=function(l,c,f){var p=Q_?"$":"$0";return[function(d,v){var g=Dh(this),m=d==null?void 0:Dp(d,A3);return m?ce(m,d,g,v):ce(c,Cr(g),d,v)},function(d,v){var g=pn(this),m=Cr(d);if(typeof v=="string"&&Z_(v,p)===-1&&Z_(v,"$<")===-1){var y=f(c,g,m,v);if(y.done)return y.value}var h=ie(v);h||(v=Cr(v));var b=g.global;if(b){var w=g.unicode;g.lastIndex=0}for(var D=[];;){var x=eht(g,m);if(x===null||(Cw(D,x),!b))break;Cr(x[0])===""&&(g.lastIndex=Kpt(m,nM(g.lastIndex),w))}for(var C,O="",F=0,R=0;R<D.length;R++){for(var H=Cr((x=D[R])[0]),M=nht(rht(Um(x.index),m.length),0),K=[],U=1;U<x.length;U++)Cw(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var G=oht([H],K,M,m);W!==void 0&&Cw(G,W);var nt=Cr(dM(v,void 0,G))}else nt=Qpt(H,m,M,K,W,v);M>=F&&(O+=J_(m,F,M)+nt,F=M+H.length)}return O+J_(m,F)}]}(0,""[t],function(l,c,f,p,d){var v=Ct(l),g=c.exec;return g===y1||g===K_.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});ur(String.prototype,t,s[0]),ur(K_,o,s[1])}})("replace",0,!!pe(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!iht||Q_);var b1=rt.Promise,w1=function(t,e,n){for(var r in e)ur(t,r,e[r],n);return t},aht=rt.String,uht=rt.TypeError,ic=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ct(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return pn(r),function(i){if(typeof i=="object"||ie(i))return i;throw uht("Can't set "+aht(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),sht=vi.f,tF=ze("toStringTag"),E1=function(t,e,n){t&&!Ye(t=n?t:t.prototype,tF)&&sht(t,tF,{configurable:!0,value:e})},eF=ze("species"),lht=rt.TypeError,SC=function(t,e){if(wp(e,t))return t;throw lht("Incorrect invocation")},ac={},cht=ze("iterator"),fht=Array.prototype,dht=ze("iterator"),nF=function(t){if(t!=null)return Dp(t,dht)||Dp(t,"@@iterator")||ac[Wm(t)]},pht=rt.TypeError,rF=function(t,e,n){var r,o;pn(t);try{if(!(r=Dp(t,"return"))){if(e==="throw")throw n;return n}r=ce(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return pn(r),n},hht=rt.TypeError,Sg=function(t,e){this.stopped=t,this.result=e},oF=Sg.prototype,D1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Sp(e,f),m=function(h){return r&&rF(r,"normal",h),new Sg(!0,h)},y=function(h){return p?(pn(h),v?g(h[0],h[1],m):g(h[0],h[1])):v?g(h,m):g(h)};if(d)r=t;else{if(!(o=nF(t)))throw hht(l1(t)+" is not iterable");if((c=o)!==void 0&&(ac.Array===c||fht[cht]===c)){for(i=0,a=Ch(t);a>i;i++)if((u=y(t[i]))&&wp(oF,u))return u;return new Sg(!1)}r=function(h,b){var w=arguments.length<2?nF(h):b;if(Ra(w))return pn(ce(w,h));throw pht(l1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=ce(s,r)).done;){try{u=y(l.value)}catch(h){rF(r,"throw",h)}if(typeof u=="object"&&u&&wp(oF,u))return u}return new Sg(!1)},gM=ze("iterator"),vM=!1;try{var ght=0,iF={next:function(){return{done:!!ght++}},return:function(){vM=!0}};iF[gM]=function(){return this},Array.from(iF,function(){throw 2})}catch{}var Ap,Qs,aF,xw,mM=function(t,e){if(!e&&!vM)return!1;var n=!1;try{var r={};r[gM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},vht=rt.TypeError,mht=ze("species"),yM=Ct([].slice),bM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ol),Da=_o(rt.process)=="process",O3=rt.setImmediate,k3=rt.clearImmediate,yht=rt.process,Sw=rt.Dispatch,bht=rt.Function,uF=rt.MessageChannel,wht=rt.String,Aw=0,Pd={};try{Ap=rt.location}catch{}var AC=function(t){if(Ye(Pd,t)){var e=Pd[t];delete Pd[t],e()}},Ow=function(t){return function(){AC(t)}},sF=function(t){AC(t.data)},lF=function(t){rt.postMessage(wht(t),Ap.protocol+"//"+Ap.host)};O3&&k3||(O3=function(t){var e=yM(arguments,1);return Pd[++Aw]=function(){dM(ie(t)?t:bht(t),void 0,e)},Qs(Aw),Aw},k3=function(t){delete Pd[t]},Da?Qs=function(t){yht.nextTick(Ow(t))}:Sw&&Sw.now?Qs=function(t){Sw.now(Ow(t))}:uF&&!bM?(xw=(aF=new uF).port2,aF.port1.onmessage=sF,Qs=Sp(xw.postMessage,xw)):rt.addEventListener&&ie(rt.postMessage)&&!rt.importScripts&&Ap&&Ap.protocol!=="file:"&&!pe(lF)?(Qs=lF,rt.addEventListener("message",sF,!1)):Qs="onreadystatechange"in Cp("script")?function(t){E3.appendChild(Cp("script")).onreadystatechange=function(){E3.removeChild(this),AC(t)}}:function(t){setTimeout(Ow(t),0)});var Mf,wu,jd,dl,kw,Bw,_w,cF,wM={set:O3,clear:k3},Eht=/ipad|iphone|ipod/i.test(Ol)&&rt.Pebble!==void 0,Dht=/web0s(?!.*chrome)/i.test(Ol),Cht=vC.f,Fw=wM.set,fF=rt.MutationObserver||rt.WebKitMutationObserver,dF=rt.document,pF=rt.process,P0=rt.Promise,hF=Cht(rt,"queueMicrotask"),EM=hF&&hF.value;EM||(Mf=function(){var t,e;for(Da&&(t=pF.domain)&&t.exit();wu;){e=wu.fn,wu=wu.next;try{e()}catch(n){throw wu?dl():jd=void 0,n}}jd=void 0,t&&t.enter()},bM||Da||Dht||!fF||!dF?!Eht&&P0&&P0.resolve?((_w=P0.resolve(void 0)).constructor=P0,cF=Sp(_w.then,_w),dl=function(){cF(Mf)}):Da?dl=function(){pF.nextTick(Mf)}:(Fw=Sp(Fw,rt),dl=function(){Fw(Mf)}):(kw=!0,Bw=dF.createTextNode(""),new fF(Mf).observe(Bw,{characterData:!0}),dl=function(){Bw.data=kw=!kw}));var Tw,gF,DM,vF,CM=EM||function(t){var e={fn:t,next:void 0};jd&&(jd.next=e),wu||(wu=e,dl()),jd=e},xht=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Ra(e),this.reject=Ra(n)},OC={f:function(t){return new xht(t)}},B3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Sht=typeof window=="object",xM=wM.set,Aht=ze("species"),ni="Promise",mF=pr.getterFor(ni),Oht=pr.set,kht=pr.getterFor(ni),hu=b1&&b1.prototype,Ao=b1,zf=hu,SM=rt.TypeError,_3=rt.document,kC=rt.process,kl=OC.f,Bht=kl,_ht=!!(_3&&_3.createEvent&&rt.dispatchEvent),AM=ie(rt.PromiseRejectionEvent),OM=!1,Nd=h1(ni,function(){var t=Hm(Ao),e=t!==String(Ao);if(!e&&Ep===66)return!0;if(Ep>=51&&/native code/.test(t))return!1;var n=new Ao(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Aht]=r,!(OM=n.then(function(){})instanceof r)||!e&&Sht&&!AM}),Fht=Nd||!mM(function(t){Ao.all(t).catch(function(){})}),kM=function(t){var e;return!(!ge(t)||!ie(e=t.then))&&e},BC=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;CM(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&Pht(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(SM("Promise-chain cycle")):(u=kM(a))?ce(u,a,f,p):f(a)):p(r)}catch(v){d&&!s&&d.exit(),p(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Tht(t)})}},BM=function(t,e,n){var r,o;_ht?((r=_3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!AM&&(o=rt["on"+t])?o(r):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",n)},Tht=function(t){ce(xM,rt,function(){var e,n=t.facade,r=t.value;if(yF(t)&&(e=B3(function(){Da?kC.emit("unhandledRejection",r,n):BM("unhandledrejection",n,r)}),t.rejection=Da||yF(t)?2:1,e.error))throw e.value})},yF=function(t){return t.rejection!==1&&!t.parent},Pht=function(t){ce(xM,rt,function(){var e=t.facade;Da?kC.emit("rejectionHandled",e):BM("rejectionhandled",e,t.value)})},yl=function(t,e,n){return function(r){t(e,r,n)}},Bl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,BC(t,!0))},F3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw SM("Promise can't be resolved itself");var r=kM(e);r?CM(function(){var o={done:!1};try{ce(r,e,yl(F3,o,t),yl(Bl,o,t))}catch(i){Bl(o,i,t)}}):(t.value=e,t.state=1,BC(t,!1))}catch(o){Bl({done:!1},o,t)}}};if(Nd&&(zf=(Ao=function(t){SC(this,zf),Ra(t),ce(Tw,this);var e=mF(this);try{t(yl(F3,e),yl(Bl,e))}catch(n){Bl(e,n)}}).prototype,(Tw=function(t){Oht(this,{type:ni,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=w1(zf,{then:function(t,e){var n=kht(this),r=n.reactions,o=kl(function(i,a){var u,s=pn(i).constructor;return s===void 0||(u=pn(s)[mht])==null?a:function(l){if(EC(l))return l;throw vht(l1(l)+" is not a constructor")}(u)}(this,Ao));return o.ok=!ie(t)||t,o.fail=ie(e)&&e,o.domain=Da?kC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&BC(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),gF=function(){var t=new Tw,e=mF(t);this.promise=t,this.resolve=yl(F3,e),this.reject=yl(Bl,e)},OC.f=kl=function(t){return t===Ao||t===DM?new gF(t):Bht(t)},ie(b1)&&hu!==Object.prototype)){vF=hu.then,OM||(ur(hu,"then",function(t,e){var n=this;return new Ao(function(r,o){ce(vF,n,r,o)}).then(t,e)},{unsafe:!0}),ur(hu,"catch",zf.catch,{unsafe:!0}));try{delete hu.constructor}catch{}ic&&ic(hu,zf)}function Op(t,e,n){return n===void 0&&(n=""),Rm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return Mm(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[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,"<").replace(/>/g,">")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function Pw(){return hM("w-e-insert-video")}Un({global:!0,wrap:!0,forced:Nd},{Promise:Ao}),E1(Ao,ni,!1),function(t){var e=fs("Promise"),n=vi.f;Io&&e&&!e[eF]&&n(e,eF,{configurable:!0,get:function(){return this}})}(),DM=fs(ni),Un({target:ni,stat:!0,forced:Nd},{reject:function(t){var e=kl(this);return ce(e.reject,void 0,t),e.promise}}),Un({target:ni,stat:!0,forced:Nd},{resolve:function(t){return function(e,n){if(pn(e),ge(n)&&n.constructor===e)return n;var r=OC.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Un({target:ni,stat:!0,forced:Fht},{all:function(t){var e=this,n=kl(e),r=n.resolve,o=n.reject,i=B3(function(){var a=Ra(e.resolve),u=[],s=0,l=1;D1(t,function(c){var f=s++,p=!1;l++,ce(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=kl(e),r=n.reject,o=B3(function(){var i=Ra(e.resolve);D1(t,function(a){ce(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var jht=function(){function t(){this.title=tt("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=Pw(),this.posterInputId=Pw(),this.buttonId=Pw()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=qu(ir(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=qu(ir(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=B(l),v=B(p),g=qu(wc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var m=B("<div></div>");m.on("click","#"+a,function(h){return Rm(n,void 0,void 0,function(){var b,w;return Mm(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=m.find("#"+o).val().trim(),w=m.find("#"+i).val().trim(),[4,Op(e,b,w)];case 1:return D.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=m}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(g),d.val(""),v.val(""),setTimeout(function(){d.focus()}),y[0]},t}(),Nht=Ct([].join),Iht=cC!=Object,Lht=function(t,e){var n=[].join;return!!n&&pe(function(){n.call(null,",",1)})}();Un({target:"Array",proto:!0,forced:Iht||!Lht},{join:function(t){return Nht(Wa(this),t===void 0?",":t)}});var Ku,bF,wF,Rht=!pe(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),EF=mC("IE_PROTO"),T3=rt.Object,Mht=T3.prototype,C1=Rht?T3.getPrototypeOf:function(t){var e=$m(t);if(Ye(e,EF))return e[EF];var n=e.constructor;return ie(n)&&e instanceof n?n.prototype:e instanceof T3?Mht:null},P3=ze("iterator"),_M=!1;[].keys&&("next"in(wF=[].keys())?(bF=C1(C1(wF)))!==Object.prototype&&(Ku=bF):_M=!0);var zht=Ku==null||pe(function(){var t={};return Ku[P3].call(t)!==t});zht&&(Ku={}),ie(Ku[P3])||ur(Ku,P3,function(){return this});var _C={IteratorPrototype:Ku,BUGGY_SAFARI_ITERATORS:_M},$ht=_C.IteratorPrototype,Hht=function(){return this},Vht=_c.PROPER,Uht=_c.CONFIGURABLE,DF=_C.IteratorPrototype,j0=_C.BUGGY_SAFARI_ITERATORS,$f=ze("iterator"),Wht=function(){return this},FM=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=bC($ht,{next:zm(1,b)}),E1(y,D,!1),ac[D]=Hht})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!j0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[$f]||d["@@iterator"]||o&&d[o],g=!j0&&v||c(o),m=e=="Array"&&d.entries||v;if(m&&(u=C1(m.call(new t)))!==Object.prototype&&u.next&&(C1(u)!==DF&&(ic?ic(u,DF):ie(u[$f])||ur(u,$f,Wht)),E1(u,f,!0)),Vht&&o=="values"&&v&&v.name!=="values"&&(Uht?Ea(d,"name","values"):(p=!0,g=function(){return ce(v,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(j0||p||!(l in d))&&ur(d,l,s[l]);else Un({target:e,proto:!0,forced:j0||p},s);return d[$f]!==g&&ur(d,$f,g,{name:o}),ac[e]=g,s},qht=pr.set,Ght=pr.getterFor("Array Iterator"),dd=FM(Array,"Array",function(t,e){qht(this,{type:"Array Iterator",target:Wa(t),index:0,kind:e})},function(){var t=Ght(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");ac.Arguments=ac.Array,Td("keys"),Td("values"),Td("entries");var Kht=pM.charAt,Yht=pr.set,Xht=pr.getterFor("String Iterator");FM(String,"String",function(t){Yht(this,{type:"String Iterator",string:Cr(t),index:0})},function(){var t,e=Xht(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Kht(n,r),e.index+=t.length,{value:t,done:!1})});var TM=function(t,e,n){var r=gC(e);r in t?vi.f(t,r,zm(0,n)):t[r]=n},Zht=rt.Array,Jht=Math.max,CF=p1.f,xF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Qht={f:function(t){return xF&&_o(t)=="Window"?function(e){try{return CF(e)}catch{return function(r,o,i){for(var a=Ch(r),u=xp(void 0,a),s=xp(a,a),l=Zht(Jht(s-u,0)),c=0;u<s;u++,c++)TM(l,c,r[u]);return l.length=c,l}(xF)}}(t):CF(Wa(t))}},SF=pe(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),N0=Object.isExtensible,Au=pe(function(){N0(1)})||SF?function(t){return!!ge(t)&&(!SF||_o(t)!="ArrayBuffer")&&(!N0||N0(t))}:N0,t0t=!pe(function(){return Object.isExtensible(Object.preventExtensions({}))}),FC=lC(function(t){var e=vi.f,n=!1,r=hC("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=p1.f,s=Ct([].splice),l={};l[r]=1,u(l).length&&(p1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Un({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Qht.f}))},fastKey:function(u,s){if(!ge(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ye(u,r)){if(!Au(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ye(u,r)){if(!Au(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return t0t&&n&&Au(u)&&!Ye(u,r)&&i(u),u}};Vm[r]=!0}),I0=FC.getWeakData,e0t=pr.set,n0t=pr.getterFor,r0t=DC.find,o0t=DC.findIndex,i0t=Ct([].splice),a0t=0,L0=function(t){return t.frozen||(t.frozen=new PM)},PM=function(){this.entries=[]},jw=function(t,e){return r0t(t.entries,function(n){return n[0]===e})};PM.prototype={get:function(t){var e=jw(this,t);if(e)return e[1]},has:function(t){return!!jw(this,t)},set:function(t,e){var n=jw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=o0t(this.entries,function(n){return n[0]===t});return~e&&i0t(this.entries,e,1),!!~e}};var Hf,jM={getConstructor:function(t,e,n,r){var o=t(function(s,l){SC(s,i),e0t(s,{type:e,id:a0t++,frozen:void 0}),l!=null&&D1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=n0t(e),u=function(s,l,c){var f=a(s),p=I0(pn(l),!0);return p===!0?L0(f).set(l,c):p[f.id]=c,s};return w1(i,{delete:function(s){var l=a(this);if(!ge(s))return!1;var c=I0(s);return c===!0?L0(l).delete(s):c&&Ye(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ge(s))return!1;var c=I0(s);return c===!0?L0(l).has(s):c&&Ye(c,l.id)}}),w1(i,n?{get:function(s){var l=a(this);if(ge(s)){var c=I0(s);return c===!0?L0(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}},R0=pr.enforce,u0t=!rt.ActiveXObject&&"ActiveXObject"in rt,NM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},s0t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=Ct(u[m]);ur(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!ge(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!ge(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!ge(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(h1(t,!ie(a)||!(o||u.forEach&&!pe(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),FC.enable();else if(h1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=pe(function(){f.has(1)}),v=mM(function(m){new a(m)}),g=!o&&pe(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){SC(m,u);var h=function(b,w,D){var x,C;return ic&&ie(x=w.constructor)&&x!==D&&ge(C=x.prototype)&&C!==D.prototype&&ic(b,C),b}(new a,m,s);return y!=null&&D1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Un({global:!0,forced:s!=a},l),E1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",NM,jM);if(tM&&u0t){Hf=jM.getConstructor(NM,"WeakMap",!0),FC.enable();var Vf=s0t.prototype,AF=Ct(Vf.delete),M0=Ct(Vf.has),OF=Ct(Vf.get),kF=Ct(Vf.set);w1(Vf,{delete:function(t){if(ge(t)&&!Au(t)){var e=R0(this);return e.frozen||(e.frozen=new Hf),AF(this,t)||e.frozen.delete(t)}return AF(this,t)},has:function(t){if(ge(t)&&!Au(t)){var e=R0(this);return e.frozen||(e.frozen=new Hf),M0(this,t)||e.frozen.has(t)}return M0(this,t)},get:function(t){if(ge(t)&&!Au(t)){var e=R0(this);return e.frozen||(e.frozen=new Hf),M0(this,t)?OF(this,t):e.frozen.get(t)}return OF(this,t)},set:function(t,e){if(ge(t)&&!Au(t)){var n=R0(this);n.frozen||(n.frozen=new Hf),M0(this,t)?kF(this,t,e):n.frozen.set(t,e)}else kF(this,t,e);return this}})}var IM={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},Nw=Cp("span").classList,BF=Nw&&Nw.constructor&&Nw.constructor.prototype,l0t=BF===Object.prototype?void 0:BF,Iw=ze("iterator"),_F=ze("toStringTag"),Lw=dd.values,LM=function(t,e){if(t){if(t[Iw]!==Lw)try{Ea(t,Iw,Lw)}catch{t[Iw]=Lw}if(t[_F]||Ea(t,_F,e),IM[e]){for(var n in dd)if(t[n]!==dd[n])try{Ea(t,n,dd[n])}catch{t[n]=dd[n]}}}};for(var Rw in IM)LM(rt[Rw]&&rt[Rw].prototype,Rw);LM(l0t,"DOMTokenList");var c0t=_c.EXISTS,f0t=vi.f,RM=Function.prototype,d0t=Ct(RM.toString),MM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,p0t=Ct(MM.exec);Io&&!c0t&&f0t(RM,"name",{configurable:!0,get:function(){try{return p0t(MM,d0t(this))[1]}catch{return""}}});var h0t=ze("species"),g0t=Ep>=51||!pe(function(){var t=[];return(t.constructor={})[h0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),v0t=ze("species"),Mw=rt.Array,m0t=Math.max;function zM(t){return t.getMenuConfig("uploadVideo")}Un({target:"Array",proto:!0,forced:!g0t},{slice:function(t,e){var n,r,o,i=Wa(this),a=Ch(i),u=xp(t,a),s=xp(e===void 0?a:e,a);if(v1(i)&&(n=i.constructor,(EC(n)&&(n===Mw||v1(n.prototype))||ge(n)&&(n=n[v0t])===null)&&(n=void 0),n===Mw||n===void 0))return yM(i,u,s);for(r=new(n===void 0?Mw:n)(m0t(s-u,0)),o=0;u<s;u++,o++)u in i&&TM(r,o,i[u]);return r.length=o,r}});var FF=new WeakMap;function y0t(t,e){return Rm(this,void 0,void 0,function(){var n,r,o,i;return Mm(this,function(a){switch(a.label){case 0:return n=function(u){var s=FF.get(u);if(s!=null)return s;var l=zM(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,v=l.onError;return s=dI(s1(s1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,m){if(d)return d(m,function(O,F){return Op(u,O,F)}),void c(g,m);var y=m.errno,h=y===void 0?1:y,b=m.data,w=b===void 0?{}:b;if(h===0){var D=w.url,x=D===void 0?"":D,C=w.poster;Op(u,x,C===void 0?"":C),c(g,m)}else p(g,m)},onError:function(g,m,y){v(g,m,y)}})),FF.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var b0t=function(){function t(){this.title=tt("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,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return Op(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,p){var d,v;Rm(this,void 0,void 0,function(){var g,m,y,h,b,w;return Mm(this,function(D){switch(D.label){case 0:if(p==null)return[2];g=Array.prototype.slice.call(p),m=zM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),y=mdt(g),D.label=2;case 2:return[4,y.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,m?[4,m(b,function(x,C){return Op(f,x,C)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,y0t(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(),d={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),w0t=_c.PROPER,j3=RegExp.prototype,$M=j3.toString,E0t=Ct(fM),D0t=pe(function(){return $M.call({source:"a",flags:"b"})!="/a/b"}),C0t=w0t&&$M.name!="toString";function zw(){return hM("w-e-insert-video")}(D0t||C0t)&&ur(RegExp.prototype,"toString",function(){var t=pn(this),e=Cr(t.source),n=t.flags;return"/"+e+"/"+Cr(n===void 0&&wp(j3,t)&&!("flags"in j3)?E0t(t):n)},{unsafe:!0});var x0t=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=zw(),this.heightInputId=zw(),this.buttonId=zw()}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,n){},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 n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=qu(ir(tt("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=qu(ir(tt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),p=qu(wc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var d=B("<div></div>");d.on("click","#"+i,function(w){w.preventDefault();var D=d.find("#"+r).val().trim(),x=d.find("#"+o).val().trim(),C=parseInt(D),O=parseInt(x),F=C?C.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:F,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),e.hidePanelOrModal()}),this.$content=d}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(p);var g=this.getSelectedVideoNode(e);if(g==null)return v[0];var m=g.width,y=m===void 0?"auto":m,h=g.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),v[0]},t}(),S0t={renderElems:[bpt],elemsToHtml:[wpt],preParseHtml:[xpt],parseElemsHtml:[Tpt],menus:[{key:"insertVideo",factory:function(){return new jht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new b0t},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,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new x0t}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=qu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Xn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Xn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var TF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TC(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ui,Ag,z0=function(t){return t&&t.Math==Math&&t},et=z0(typeof globalThis=="object"&&globalThis)||z0(typeof window=="object"&&window)||z0(typeof self=="object"&&self)||z0(typeof TF=="object"&&TF)||function(){return this}()||Function("return this")(),me=function(t){try{return!!t()}catch{return!0}},Lo=!me(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Uf=Function.prototype.call,Qt=Uf.bind?Uf.bind(Uf):function(){return Uf.apply(Uf,arguments)},PF={}.propertyIsEnumerable,jF=Object.getOwnPropertyDescriptor,A0t={f:jF&&!PF.call({1:2},1)?function(t){var e=jF(this,t);return!!e&&e.enumerable}:PF},qm=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},HM=Function.prototype,N3=HM.bind,I3=HM.call,O0t=N3&&N3.bind(I3),Ft=N3?function(t){return t&&O0t(I3,t)}:function(t){return t&&function(){return I3.apply(t,arguments)}},k0t=Ft({}.toString),B0t=Ft("".slice),no=function(t){return B0t(k0t(t),8,-1)},$w=et.Object,_0t=Ft("".split),PC=me(function(){return!$w("z").propertyIsEnumerable(0)})?function(t){return no(t)=="String"?_0t(t,""):$w(t)}:$w,F0t=et.TypeError,kp=function(t){if(t==null)throw F0t("Can't call method on "+t);return t},qa=function(t){return PC(kp(t))},ue=function(t){return typeof t=="function"},de=function(t){return typeof t=="object"?t!==null:ue(t)},T0t=function(t){return ue(t)?t:void 0},ds=function(t,e){return arguments.length<2?T0t(et[t]):et[t]&&et[t][e]},Bp=Ft({}.isPrototypeOf),_l=ds("navigator","userAgent")||"",NF=et.process,IF=et.Deno,LF=NF&&NF.versions||IF&&IF.version,RF=LF&&LF.v8;RF&&(Ag=(Ui=RF.split("."))[0]>0&&Ui[0]<4?1:+(Ui[0]+Ui[1])),!Ag&&_l&&(!(Ui=_l.match(/Edge\/(\d+)/))||Ui[1]>=74)&&(Ui=_l.match(/Chrome\/(\d+)/))&&(Ag=+Ui[1]);var _p=Ag,L3=!!Object.getOwnPropertySymbols&&!me(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_p&&_p<41}),jC=L3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",P0t=et.Object,Hw=jC?function(t){return typeof t=="symbol"}:function(t){var e=ds("Symbol");return ue(e)&&Bp(e.prototype,P0t(t))},j0t=et.String,x1=function(t){try{return j0t(t)}catch{return"Object"}},N0t=et.TypeError,Ma=function(t){if(ue(t))return t;throw N0t(x1(t)+" is not a function")},Fp=function(t,e){var n=t[e];return n==null?void 0:Ma(n)},I0t=et.TypeError,L0t=Object.defineProperty,NC=function(t,e){try{L0t(et,t,{value:e,configurable:!0,writable:!0})}catch{et[t]=e}return e},Ca=et["__core-js_shared__"]||NC("__core-js_shared__",{}),IC=TC(function(t){(t.exports=function(e,n){return Ca[e]||(Ca[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),R0t=et.Object,LC=function(t){return R0t(kp(t))},M0t=Ft({}.hasOwnProperty),Xe=Object.hasOwn||function(t,e){return M0t(LC(t),e)},z0t=0,$0t=Math.random(),H0t=Ft(1 .toString),RC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+H0t(++z0t+$0t,36)},Wf=IC("wks"),Yu=et.Symbol,MF=Yu&&Yu.for,V0t=jC?Yu:Yu&&Yu.withoutSetter||RC,$e=function(t){if(!Xe(Wf,t)||!L3&&typeof Wf[t]!="string"){var e="Symbol."+t;L3&&Xe(Yu,t)?Wf[t]=Yu[t]:Wf[t]=jC&&MF?MF(e):V0t(e)}return Wf[t]},U0t=et.TypeError,W0t=$e("toPrimitive"),MC=function(t){var e=function(n,r){if(!de(n)||Hw(n))return n;var o,i=Fp(n,W0t);if(i){if(r===void 0&&(r="default"),o=Qt(i,n,r),!de(o)||Hw(o))return o;throw U0t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&ue(s=a.toString)&&!de(l=Qt(s,a))||ue(s=a.valueOf)&&!de(l=Qt(s,a))||u!=="string"&&ue(s=a.toString)&&!de(l=Qt(s,a)))return l;throw I0t("Can't convert object to primitive value")}(n,r)}(t,"string");return Hw(e)?e:e+""},R3=et.document,q0t=de(R3)&&de(R3.createElement),Tp=function(t){return q0t?R3.createElement(t):{}},VM=!Lo&&!me(function(){return Object.defineProperty(Tp("div"),"a",{get:function(){return 7}}).a!=7}),zF=Object.getOwnPropertyDescriptor,zC={f:Lo?zF:function(t,e){if(t=qa(t),e=MC(e),VM)try{return zF(t,e)}catch{}if(Xe(t,e))return qm(!Qt(A0t.f,t,e),t[e])}},G0t=et.String,K0t=et.TypeError,hn=function(t){if(de(t))return t;throw K0t(G0t(t)+" is not an object")},Y0t=et.TypeError,$F=Object.defineProperty,mi={f:Lo?$F:function(t,e,n){if(hn(t),e=MC(e),hn(n),VM)try{return $F(t,e,n)}catch{}if("get"in n||"set"in n)throw Y0t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Fo=Lo?function(t,e,n){return mi.f(t,e,qm(1,n))}:function(t,e,n){return t[e]=n,t},X0t=Ft(Function.toString);ue(Ca.inspectSource)||(Ca.inspectSource=function(t){return X0t(t)});var S1,Id,A1,Gm=Ca.inspectSource,HF=et.WeakMap,UM=ue(HF)&&/native code/.test(Gm(HF)),VF=IC("keys"),$C=function(t){return VF[t]||(VF[t]=RC(t))},Km={},M3=et.TypeError,Z0t=et.WeakMap;if(UM||Ca.state){var lu=Ca.state||(Ca.state=new Z0t),J0t=Ft(lu.get),UF=Ft(lu.has),Q0t=Ft(lu.set);S1=function(t,e){if(UF(lu,t))throw new M3("Object already initialized");return e.facade=t,Q0t(lu,t,e),e},Id=function(t){return J0t(lu,t)||{}},A1=function(t){return UF(lu,t)}}else{var tl=$C("state");Km[tl]=!0,S1=function(t,e){if(Xe(t,tl))throw new M3("Object already initialized");return e.facade=t,Fo(t,tl,e),e},Id=function(t){return Xe(t,tl)?t[tl]:{}},A1=function(t){return Xe(t,tl)}}var hr={set:S1,get:Id,has:A1,enforce:function(t){return A1(t)?Id(t):S1(t,{})},getterFor:function(t){return function(e){var n;if(!de(e)||(n=Id(e)).type!==t)throw M3("Incompatible receiver, "+t+" required");return n}}},WM=Function.prototype,tgt=Lo&&Object.getOwnPropertyDescriptor,Vw=Xe(WM,"name"),Sh={EXISTS:Vw,PROPER:Vw&&function(){}.name==="something",CONFIGURABLE:Vw&&(!Lo||Lo&&tgt(WM,"name").configurable)},sr=TC(function(t){var e=Sh.CONFIGURABLE,n=hr.get,r=hr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ue(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xe(u,"name")||e&&u.name!==d)&&Fo(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==et?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Fo(i,a,u)):f?i[a]=u:NC(a,u)})(Function.prototype,"toString",function(){return ue(this)&&n(this).source||Gm(this)})}),egt=Math.ceil,ngt=Math.floor,HC=function(t){var e=+t;return e!=e||e===0?0:(e>0?ngt:egt)(e)},rgt=Math.max,ogt=Math.min,Pp=function(t,e){var n=HC(t);return n<0?rgt(n+e,0):ogt(n,e)},igt=Math.min,qM=function(t){return t>0?igt(HC(t),9007199254740991):0},Ah=function(t){return qM(t.length)},agt=function(t){return function(e,n,r){var o,i=qa(e),a=Ah(i),u=Pp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ugt=agt(!1),WF=Ft([].push),GM=function(t,e){var n,r=qa(t),o=0,i=[];for(n in r)!Xe(Km,n)&&Xe(r,n)&&WF(i,n);for(;e.length>o;)Xe(r,n=e[o++])&&(~ugt(i,n)||WF(i,n));return i},O1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sgt=O1.concat("length","prototype"),k1={f:Object.getOwnPropertyNames||function(t){return GM(t,sgt)}},lgt={f:Object.getOwnPropertySymbols},cgt=Ft([].concat),fgt=ds("Reflect","ownKeys")||function(t){var e=k1.f(hn(t)),n=lgt.f;return n?cgt(e,n(t)):e},dgt=function(t,e){for(var n=fgt(e),r=mi.f,o=zC.f,i=0;i<n.length;i++){var a=n[i];Xe(t,a)||r(t,a,o(e,a))}},pgt=/#|\.prototype\./,Oh=function(t,e){var n=ggt[hgt(t)];return n==mgt||n!=vgt&&(ue(e)?me(e):!!e)},hgt=Oh.normalize=function(t){return String(t).replace(pgt,".").toLowerCase()},ggt=Oh.data={},vgt=Oh.NATIVE="N",mgt=Oh.POLYFILL="P",B1=Oh,ygt=zC.f,Oo=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?et:l?et[u]||NC(u,{}):(et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=ygt(n,r))&&a.value:n[r],!B1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;dgt(i,o)}(t.sham||o&&o.sham)&&Fo(i,"sham",!0),sr(n,r,i,t)}},_1=Array.isArray||function(t){return no(t)=="Array"},KM={};KM[$e("toStringTag")]="z";var VC=String(KM)==="[object z]",bgt=$e("toStringTag"),wgt=et.Object,Egt=no(function(){return arguments}())=="Arguments",Ym=VC?no:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=wgt(t),bgt))=="string"?n:Egt?no(e):(r=no(e))=="Object"&&ue(e.callee)?"Arguments":r},YM=function(){},Dgt=[],XM=ds("Reflect","construct"),UC=/^\s*(?:class|function)\b/,Cgt=Ft(UC.exec),xgt=!UC.exec(YM),qf=function(t){if(!ue(t))return!1;try{return XM(YM,Dgt,t),!0}catch{return!1}},WC=!XM||me(function(){var t;return qf(qf.call)||!qf(Object)||!qf(function(){t=!0})||t})?function(t){if(!ue(t))return!1;switch(Ym(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xgt||!!Cgt(UC,Gm(t))}:qf,ZM=function(t,e,n){var r=MC(e);r in t?mi.f(t,r,qm(0,n)):t[r]=n},Sgt=$e("species"),JM=Ft([].slice),Agt=_p>=51||!me(function(){var t=[];return(t.constructor={})[Sgt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Ogt=$e("species"),Uw=et.Array,kgt=Math.max;Oo({target:"Array",proto:!0,forced:!Agt},{slice:function(t,e){var n,r,o,i=qa(this),a=Ah(i),u=Pp(t,a),s=Pp(e===void 0?a:e,a);if(_1(i)&&(n=i.constructor,(WC(n)&&(n===Uw||_1(n.prototype))||de(n)&&(n=n[Ogt])===null)&&(n=void 0),n===Uw||n===void 0))return JM(i,u,s);for(r=new(n===void 0?Uw:n)(kgt(s-u,0)),o=0;u<s;u++,o++)u in i&&ZM(r,o,i[u]);return r.length=o,r}});var Bgt=VC?{}.toString:function(){return"[object "+Ym(this)+"]"};VC||sr(Object.prototype,"toString",Bgt,{unsafe:!0});var $0,_gt=et.String,xa=function(t){if(Ym(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return _gt(t)},QM=function(){var t=hn(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},qC=et.RegExp,z3=me(function(){var t=qC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Fgt=z3||me(function(){return!qC("a","y").sticky}),tz={BROKEN_CARET:z3||me(function(){var t=qC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Fgt,UNSUPPORTED_Y:z3},Tgt=Object.keys||function(t){return GM(t,O1)},Pgt=Lo?Object.defineProperties:function(t,e){hn(t);for(var n,r=qa(e),o=Tgt(e),i=o.length,a=0;i>a;)mi.f(t,n=o[a++],r[n]);return t},$3=ds("document","documentElement"),ez=$C("IE_PROTO"),Ww=function(){},nz=function(t){return"<script>"+t+"<\/script>"},qF=function(t){t.write(nz("")),t.close();var e=t.parentWindow.Object;return t=null,e},Og=function(){try{$0=new ActiveXObject("htmlfile")}catch{}var t,e;Og=typeof document<"u"?document.domain&&$0?qF($0):((e=Tp("iframe")).style.display="none",$3.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(nz("document.F=Object")),t.close(),t.F):qF($0);for(var n=O1.length;n--;)delete Og.prototype[O1[n]];return Og()};Km[ez]=!0;var GF,qw,GC=Object.create||function(t,e){var n;return t!==null?(Ww.prototype=hn(t),n=new Ww,Ww.prototype=null,n[ez]=t):n=Og(),e===void 0?n:Pgt(n,e)},jgt=et.RegExp,Ngt=me(function(){var t=jgt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Igt=et.RegExp,Lgt=me(function(){var t=Igt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Rgt=hr.get,Mgt=IC("native-string-replace",String.prototype.replace),F1=RegExp.prototype.exec,H3=F1,zgt=Ft("".charAt),$gt=Ft("".indexOf),Hgt=Ft("".replace),Gw=Ft("".slice),Kw=(qw=/b*/g,Qt(F1,GF=/a/,"a"),Qt(F1,qw,"a"),GF.lastIndex!==0||qw.lastIndex!==0),KF=tz.BROKEN_CARET,Yw=/()??/.exec("")[1]!==void 0;(Kw||Yw||KF||Ngt||Lgt)&&(H3=function(t){var e,n,r,o,i,a,u,s=this,l=Rgt(s),c=xa(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qt(H3,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=KF&&s.sticky,v=Qt(QM,s),g=s.source,m=0,y=c;if(d&&(v=Hgt(v,"y",""),$gt(v,"g")===-1&&(v+="g"),y=Gw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&zgt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),Yw&&(n=new RegExp("^"+g+"$(?!\\s)",v)),Kw&&(r=s.lastIndex),o=Qt(F1,d?n:s,y),d?o?(o.input=Gw(o.input,m),o[0]=Gw(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Kw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Yw&&o&&o.length>1&&Qt(Mgt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=GC(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var jp=H3;Oo({target:"RegExp",proto:!0,forced:/./.exec!==jp},{exec:jp});var KC=Function.prototype,YF=KC.apply,Vgt=KC.bind,XF=KC.call,rz=typeof Reflect=="object"&&Reflect.apply||(Vgt?XF.bind(YF):function(){return XF.apply(YF,arguments)}),Ugt=$e("species"),Xw=RegExp.prototype,Wgt=$e("match"),qgt=et.TypeError,Ggt=$e("species"),oz=function(t,e){var n,r=hn(t).constructor;return r===void 0||(n=hn(r)[Ggt])==null?e:function(o){if(WC(o))return o;throw qgt(x1(o)+" is not a constructor")}(n)},Kgt=Ft("".charAt),ZF=Ft("".charCodeAt),Ygt=Ft("".slice),JF=function(t){return function(e,n){var r,o,i=xa(kp(e)),a=HC(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=ZF(i,a))<55296||r>56319||a+1===u||(o=ZF(i,a+1))<56320||o>57343?t?Kgt(i,a):r:t?Ygt(i,a,a+2):o-56320+(r-55296<<10)+65536}},iz={codeAt:JF(!1),charAt:JF(!0)},Xgt=iz.charAt,Zgt=function(t,e,n){return e+(n?Xgt(t,e).length:1)},Jgt=et.Array,Qgt=Math.max,V3=function(t,e,n){for(var r=Ah(t),o=Pp(e,r),i=Pp(n===void 0?r:n,r),a=Jgt(Qgt(i-o,0)),u=0;o<i;o++,u++)ZM(a,u,t[o]);return a.length=u,a},tvt=et.TypeError,QF=function(t,e){var n=t.exec;if(ue(n)){var r=Qt(n,t,e);return r!==null&&hn(r),r}if(no(t)==="RegExp")return Qt(jp,t,e);throw tvt("RegExp#exec called on incompatible receiver")},el=tz.UNSUPPORTED_Y,evt=Math.min,az=[].push,nvt=Ft(/./.exec),nl=Ft(az),Gf=Ft("".slice);(function(t,e,n,r){var o=$e(t),i=!me(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!me(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Ugt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ft(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,v){var g,m,y=xa(kp(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(d===void 0)return[y];if(!de(g=d)||!((m=g[Wgt])!==void 0?m:no(g)=="RegExp"))return Qt(c,y,d,h);for(var b,w,D,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=Qt(jp,F,y))&&!((w=F.lastIndex)>O&&(nl(x,Gf(y,O,b.index)),b.length>1&&b.index<y.length&&rz(az,x,V3(b,1)),D=b[0].length,O=w,x.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&nvt(F,"")||nl(x,""):nl(x,Gf(y,O)),x.length>h?V3(x,0,h):x}:"0".split(void 0,0).length?function(d,v){return d===void 0&&v===0?[]:Qt(c,this,d,v)}:c,[function(d,v){var g=kp(this),m=d==null?void 0:Fp(d,l);return m?Qt(m,d,g,v):Qt(p,xa(g),d,v)},function(d,v){var g=hn(this),m=xa(d),y=f(p,g,m,v,p!==c);if(y.done)return y.value;var h=oz(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(el?"g":"y"),D=new h(el?"^(?:"+g.source+")":g,w),x=v===void 0?4294967295:v>>>0;if(x===0)return[];if(m.length===0)return QF(D,m)===null?[m]:[];for(var C=0,O=0,F=[];O<m.length;){D.lastIndex=el?0:O;var R,H=QF(D,el?Gf(m,O):m);if(H===null||(R=evt(qM(D.lastIndex+(el?O:0)),m.length))===C)O=Zgt(m,O,b);else{if(nl(F,Gf(m,C,O)),F.length===x)return F;for(var M=1;M<=H.length-1;M++)if(nl(F,H[M]),F.length===x)return F;O=C=R}}return nl(F,Gf(m,C)),F}]}(o,""[t],function(l,c,f,p,d){var v=Ft(l),g=c.exec;return g===jp||g===Xw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});sr(String.prototype,t,s[0]),sr(Xw,o,s[1])}r&&Fo(Xw[o],"sham",!0)})("split",0,!!me(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),el);/*! *****************************************************************************
- 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 T1=function(){return T1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},T1.apply(this,arguments)};function YC(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,e||[])).next())})}function XC(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=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++,r=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],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function rvt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.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={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var U3=$e("unscopables"),W3=Array.prototype;W3[U3]==null&&mi.f(W3,U3,{configurable:!0,value:GC(null)});var Xu,tT,eT,Zw=function(t){W3[U3][t]=!0},uc={},ovt=!me(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),nT=$C("IE_PROTO"),q3=et.Object,ivt=q3.prototype,P1=ovt?q3.getPrototypeOf:function(t){var e=LC(t);if(Xe(e,nT))return e[nT];var n=e.constructor;return ue(n)&&e instanceof n?n.prototype:e instanceof q3?ivt:null},G3=$e("iterator"),uz=!1;[].keys&&("next"in(eT=[].keys())?(tT=P1(P1(eT)))!==Object.prototype&&(Xu=tT):uz=!0);var avt=Xu==null||me(function(){var t={};return Xu[G3].call(t)!==t});avt&&(Xu={}),ue(Xu[G3])||sr(Xu,G3,function(){return this});var ZC={IteratorPrototype:Xu,BUGGY_SAFARI_ITERATORS:uz},uvt=mi.f,rT=$e("toStringTag"),j1=function(t,e,n){t&&!Xe(t=n?t:t.prototype,rT)&&uvt(t,rT,{configurable:!0,value:e})},svt=ZC.IteratorPrototype,lvt=function(){return this},cvt=et.String,fvt=et.TypeError,sc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Ft(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch{}return function(r,o){return hn(r),function(i){if(typeof i=="object"||ue(i))return i;throw fvt("Can't set "+cvt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),dvt=Sh.PROPER,pvt=Sh.CONFIGURABLE,oT=ZC.IteratorPrototype,H0=ZC.BUGGY_SAFARI_ITERATORS,Kf=$e("iterator"),hvt=function(){return this},sz=function(t,e,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=GC(svt,{next:qm(1,b)}),j1(y,D,!1),uc[D]=lvt})(n,e,r);var u,s,l,c=function(y){if(y===o&&g)return g;if(!H0&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[Kf]||d["@@iterator"]||o&&d[o],g=!H0&&v||c(o),m=e=="Array"&&d.entries||v;if(m&&(u=P1(m.call(new t)))!==Object.prototype&&u.next&&(P1(u)!==oT&&(sc?sc(u,oT):ue(u[Kf])||sr(u,Kf,hvt)),j1(u,f,!0)),dvt&&o=="values"&&v&&v.name!=="values"&&(pvt?Fo(d,"name","values"):(p=!0,g=function(){return Qt(v,this)})),o)if(s={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in s)(H0||p||!(l in d))&&sr(d,l,s[l]);else Oo({target:e,proto:!0,forced:H0||p},s);return d[Kf]!==g&&sr(d,Kf,g,{name:o}),uc[e]=g,s},gvt=hr.set,vvt=hr.getterFor("Array Iterator"),pd=sz(Array,"Array",function(t,e){gvt(this,{type:"Array Iterator",target:qa(t),index:0,kind:e})},function(){var t=vvt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");uc.Arguments=uc.Array,Zw("keys"),Zw("values"),Zw("entries");var mvt=iz.charAt,yvt=hr.set,bvt=hr.getterFor("String Iterator");sz(String,"String",function(t){yvt(this,{type:"String Iterator",string:xa(t),index:0})},function(){var t,e=bvt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=mvt(n,r),e.index+=t.length,{value:t,done:!1})});var N1=function(t,e,n){for(var r in e)sr(t,r,e[r],n);return t},iT=k1.f,aT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wvt={f:function(t){return aT&&no(t)=="Window"?function(e){try{return iT(e)}catch{return V3(aT)}}(t):iT(qa(t))}},uT=me(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),V0=Object.isExtensible,Ou=me(function(){V0(1)})||uT?function(t){return!!de(t)&&(!uT||no(t)!="ArrayBuffer")&&(!V0||V0(t))}:V0,Evt=!me(function(){return Object.isExtensible(Object.preventExtensions({}))}),JC=TC(function(t){var e=mi.f,n=!1,r=RC("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=k1.f,s=Ft([].splice),l={};l[r]=1,u(l).length&&(k1.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===r){s(f,p,1);break}return f},Oo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wvt.f}))},fastKey:function(u,s){if(!de(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Xe(u,r)){if(!Ou(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Xe(u,r)){if(!Ou(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Evt&&n&&Ou(u)&&!Xe(u,r)&&i(u),u}};Km[r]=!0}),sT=Ft(Ft.bind),Np=function(t,e){return Ma(t),e===void 0?t:sT?sT(t,e):function(){return t.apply(e,arguments)}},Dvt=$e("iterator"),Cvt=Array.prototype,xvt=$e("iterator"),lT=function(t){if(t!=null)return Fp(t,xvt)||Fp(t,"@@iterator")||uc[Ym(t)]},Svt=et.TypeError,cT=function(t,e,n){var r,o;hn(t);try{if(!(r=Fp(t,"return"))){if(e==="throw")throw n;return n}r=Qt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return hn(r),n},Avt=et.TypeError,kg=function(t,e){this.stopped=t,this.result=e},fT=kg.prototype,I1=function(t,e,n){var r,o,i,a,u,s,l,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),g=Np(e,f),m=function(h){return r&&cT(r,"normal",h),new kg(!0,h)},y=function(h){return p?(hn(h),v?g(h[0],h[1],m):g(h[0],h[1])):v?g(h,m):g(h)};if(d)r=t;else{if(!(o=lT(t)))throw Avt(x1(t)+" is not iterable");if((c=o)!==void 0&&(uc.Array===c||Cvt[Dvt]===c)){for(i=0,a=Ah(t);a>i;i++)if((u=y(t[i]))&&Bp(fT,u))return u;return new kg(!1)}r=function(h,b){var w=arguments.length<2?lT(h):b;if(Ma(w))return hn(Qt(w,h));throw Svt(x1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=Qt(s,r)).done;){try{u=y(l.value)}catch(h){cT(r,"throw",h)}if(typeof u=="object"&&u&&Bp(fT,u))return u}return new kg(!1)},Ovt=et.TypeError,QC=function(t,e){if(Bp(e,t))return t;throw Ovt("Incorrect invocation")},lz=$e("iterator"),cz=!1;try{var kvt=0,dT={next:function(){return{done:!!kvt++}},return:function(){cz=!0}};dT[lz]=function(){return this},Array.from(dT,function(){throw 2})}catch{}var fz=function(t,e){if(!e&&!cz)return!1;var n=!1;try{var r={};r[lz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch{}return n},Bvt=$e("species"),pT=et.Array,_vt=function(t,e){return new(function(n){var r;return _1(n)&&(r=n.constructor,(WC(r)&&(r===pT||_1(r.prototype))||de(r)&&(r=r[Bvt])===null)&&(r=void 0)),r===void 0?pT:r}(t))(e===0?0:e)},hT=Ft([].push),Wi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=LC(s),g=PC(v),m=Np(l,c),y=Ah(g),h=0,b=f||_vt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:hT(w,p)}else switch(t){case 4:return!1;case 7:hT(w,p)}return i?-1:r||o?o:w}},tx={forEach:Wi(0),map:Wi(1),filter:Wi(2),some:Wi(3),every:Wi(4),find:Wi(5),findIndex:Wi(6),filterReject:Wi(7)},U0=JC.getWeakData,Fvt=hr.set,Tvt=hr.getterFor,Pvt=tx.find,jvt=tx.findIndex,Nvt=Ft([].splice),Ivt=0,W0=function(t){return t.frozen||(t.frozen=new dz)},dz=function(){this.entries=[]},Jw=function(t,e){return Pvt(t.entries,function(n){return n[0]===e})};dz.prototype={get:function(t){var e=Jw(this,t);if(e)return e[1]},has:function(t){return!!Jw(this,t)},set:function(t,e){var n=Jw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=jvt(this.entries,function(n){return n[0]===t});return~e&&Nvt(this.entries,e,1),!!~e}};var Yf,pz={getConstructor:function(t,e,n,r){var o=t(function(s,l){QC(s,i),Fvt(s,{type:e,id:Ivt++,frozen:void 0}),l!=null&&I1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Tvt(e),u=function(s,l,c){var f=a(s),p=U0(hn(l),!0);return p===!0?W0(f).set(l,c):p[f.id]=c,s};return N1(i,{delete:function(s){var l=a(this);if(!de(s))return!1;var c=U0(s);return c===!0?W0(l).delete(s):c&&Xe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!de(s))return!1;var c=U0(s);return c===!0?W0(l).has(s):c&&Xe(c,l.id)}}),N1(i,n?{get:function(s){var l=a(this);if(de(s)){var c=U0(s);return c===!0?W0(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}},q0=hr.enforce,Lvt=!et.ActiveXObject&&"ActiveXObject"in et,hz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Rvt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(m){var y=Ft(u[m]);sr(u,m,m=="add"?function(h){return y(this,h===0?0:h),this}:m=="delete"?function(h){return!(o&&!de(h))&&y(this,h===0?0:h)}:m=="get"?function(h){return o&&!de(h)?void 0:y(this,h===0?0:h)}:m=="has"?function(h){return!(o&&!de(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(B1(t,!ue(a)||!(o||u.forEach&&!me(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),JC.enable();else if(B1(t,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=me(function(){f.has(1)}),v=fz(function(m){new a(m)}),g=!o&&me(function(){for(var m=new a,y=5;y--;)m[i](y,y);return!m.has(-0)});v||((s=e(function(m,y){QC(m,u);var h=function(b,w,D){var x,C;return sc&&ue(x=w.constructor)&&x!==D&&de(C=x.prototype)&&C!==D.prototype&&sc(b,C),b}(new a,m,s);return y!=null&&I1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(d||g)&&(c("delete"),c("has"),r&&c("get")),(g||p)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Oo({global:!0,forced:s!=a},l),j1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",hz,pz);if(UM&&Lvt){Yf=pz.getConstructor(hz,"WeakMap",!0),JC.enable();var Xf=Rvt.prototype,gT=Ft(Xf.delete),G0=Ft(Xf.has),vT=Ft(Xf.get),mT=Ft(Xf.set);N1(Xf,{delete:function(t){if(de(t)&&!Ou(t)){var e=q0(this);return e.frozen||(e.frozen=new Yf),gT(this,t)||e.frozen.delete(t)}return gT(this,t)},has:function(t){if(de(t)&&!Ou(t)){var e=q0(this);return e.frozen||(e.frozen=new Yf),G0(this,t)||e.frozen.has(t)}return G0(this,t)},get:function(t){if(de(t)&&!Ou(t)){var e=q0(this);return e.frozen||(e.frozen=new Yf),G0(this,t)?vT(this,t):e.frozen.get(t)}return vT(this,t)},set:function(t,e){if(de(t)&&!Ou(t)){var n=q0(this);n.frozen||(n.frozen=new Yf),G0(this,t)?mT(this,t,e):n.frozen.set(t,e)}else mT(this,t,e);return this}})}var L1={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},Qw=Tp("span").classList,yT=Qw&&Qw.constructor&&Qw.constructor.prototype,gz=yT===Object.prototype?void 0:yT,t4=$e("iterator"),bT=$e("toStringTag"),e4=pd.values,vz=function(t,e){if(t){if(t[t4]!==e4)try{Fo(t,t4,e4)}catch{t[t4]=e4}if(t[bT]||Fo(t,bT,e),L1[e]){for(var n in pd)if(t[n]!==pd[n])try{Fo(t,n,pd[n])}catch{t[n]=pd[n]}}}};for(var n4 in L1)vz(et[n4]&&et[n4].prototype,n4);vz(gz,"DOMTokenList");var mz=function(t,e){var n=[][t];return!!n&&me(function(){n.call(null,e||function(){throw 1},1)})},Mvt=tx.forEach,r4=mz("forEach")?[].forEach:function(t){return Mvt(this,t,arguments.length>1?arguments[1]:void 0)},yz=function(t){if(t&&t.forEach!==r4)try{Fo(t,"forEach",r4)}catch{t.forEach=r4}};for(var o4 in L1)L1[o4]&&yz(et[o4]&&et[o4].prototype);yz(gz);var Ip,rl,wT,i4,R1=et.Promise,ET=$e("species"),bz=/(?:ipad|iphone|ipod).*applewebkit/i.test(_l),Sa=no(et.process)=="process",K3=et.setImmediate,Y3=et.clearImmediate,zvt=et.process,a4=et.Dispatch,$vt=et.Function,DT=et.MessageChannel,Hvt=et.String,u4=0,Ld={};try{Ip=et.location}catch{}var ex=function(t){if(Xe(Ld,t)){var e=Ld[t];delete Ld[t],e()}},s4=function(t){return function(){ex(t)}},CT=function(t){ex(t.data)},xT=function(t){et.postMessage(Hvt(t),Ip.protocol+"//"+Ip.host)};K3&&Y3||(K3=function(t){var e=JM(arguments,1);return Ld[++u4]=function(){rz(ue(t)?t:$vt(t),void 0,e)},rl(u4),u4},Y3=function(t){delete Ld[t]},Sa?rl=function(t){zvt.nextTick(s4(t))}:a4&&a4.now?rl=function(t){a4.now(s4(t))}:DT&&!bz?(i4=(wT=new DT).port2,wT.port1.onmessage=CT,rl=Np(i4.postMessage,i4)):et.addEventListener&&ue(et.postMessage)&&!et.importScripts&&Ip&&Ip.protocol!=="file:"&&!me(xT)?(rl=xT,et.addEventListener("message",CT,!1)):rl="onreadystatechange"in Tp("script")?function(t){$3.appendChild(Tp("script")).onreadystatechange=function(){$3.removeChild(this),ex(t)}}:function(t){setTimeout(s4(t),0)});var Zf,Eu,Rd,pl,l4,c4,f4,ST,wz={set:K3,clear:Y3},Vvt=/ipad|iphone|ipod/i.test(_l)&&et.Pebble!==void 0,Uvt=/web0s(?!.*chrome)/i.test(_l),Wvt=zC.f,d4=wz.set,AT=et.MutationObserver||et.WebKitMutationObserver,OT=et.document,kT=et.process,K0=et.Promise,BT=Wvt(et,"queueMicrotask"),Ez=BT&&BT.value;Ez||(Zf=function(){var t,e;for(Sa&&(t=kT.domain)&&t.exit();Eu;){e=Eu.fn,Eu=Eu.next;try{e()}catch(n){throw Eu?pl():Rd=void 0,n}}Rd=void 0,t&&t.enter()},bz||Sa||Uvt||!AT||!OT?!Vvt&&K0&&K0.resolve?((f4=K0.resolve(void 0)).constructor=K0,ST=Np(f4.then,f4),pl=function(){ST(Zf)}):Sa?pl=function(){kT.nextTick(Zf)}:(d4=Np(d4,et),pl=function(){d4(Zf)}):(l4=!0,c4=OT.createTextNode(""),new AT(Zf).observe(c4,{characterData:!0}),pl=function(){c4.data=l4=!l4}));var p4,_T,Dz,FT,Cz=Ez||function(t){var e={fn:t,next:void 0};Rd&&(Rd.next=e),Eu||(Eu=e,pl()),Rd=e},qvt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Ma(e),this.reject=Ma(n)},nx={f:function(t){return new qvt(t)}},X3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Gvt=typeof window=="object",xz=wz.set,Kvt=$e("species"),ri="Promise",TT=hr.getterFor(ri),Yvt=hr.set,Xvt=hr.getterFor(ri),gu=R1&&R1.prototype,ko=R1,Jf=gu,Sz=et.TypeError,Z3=et.document,rx=et.process,Fl=nx.f,Zvt=Fl,Jvt=!!(Z3&&Z3.createEvent&&et.dispatchEvent),Az=ue(et.PromiseRejectionEvent),Oz=!1,Md=B1(ri,function(){var t=Gm(ko),e=t!==String(ko);if(!e&&_p===66)return!0;if(_p>=51&&/native code/.test(t))return!1;var n=new ko(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Kvt]=r,!(Oz=n.then(function(){})instanceof r)||!e&&Gvt&&!Az}),Qvt=Md||!fz(function(t){ko.all(t).catch(function(){})}),kz=function(t){var e;return!(!de(t)||!ue(e=t.then))&&e},ox=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;Cz(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(t.rejection===2&&e1t(t),t.rejection=1),c===!0?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),s=!0)),a===l.promise?p(Sz("Promise-chain cycle")):(u=kz(a))?Qt(u,a,f,p):f(a)):p(r)}catch(v){d&&!s&&d.exit(),p(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&t1t(t)})}},Bz=function(t,e,n){var r,o;Jvt?((r=Z3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),et.dispatchEvent(r)):r={promise:e,reason:n},!Az&&(o=et["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},t1t=function(t){Qt(xz,et,function(){var e,n=t.facade,r=t.value;if(PT(t)&&(e=X3(function(){Sa?rx.emit("unhandledRejection",r,n):Bz("unhandledrejection",n,r)}),t.rejection=Sa||PT(t)?2:1,e.error))throw e.value})},PT=function(t){return t.rejection!==1&&!t.parent},e1t=function(t){Qt(xz,et,function(){var e=t.facade;Sa?rx.emit("rejectionHandled",e):Bz("rejectionhandled",e,t.value)})},bl=function(t,e,n){return function(r){t(e,r,n)}},Tl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ox(t,!0))},J3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw Sz("Promise can't be resolved itself");var r=kz(e);r?Cz(function(){var o={done:!1};try{Qt(r,e,bl(J3,o,t),bl(Tl,o,t))}catch(i){Tl(o,i,t)}}):(t.value=e,t.state=1,ox(t,!1))}catch(o){Tl({done:!1},o,t)}}};if(Md&&(Jf=(ko=function(t){QC(this,Jf),Ma(t),Qt(p4,this);var e=TT(this);try{t(bl(J3,e),bl(Tl,e))}catch(n){Tl(e,n)}}).prototype,(p4=function(t){Yvt(this,{type:ri,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=N1(Jf,{then:function(t,e){var n=Xvt(this),r=n.reactions,o=Fl(oz(this,ko));return o.ok=!ue(t)||t,o.fail=ue(e)&&e,o.domain=Sa?rx.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&ox(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),_T=function(){var t=new p4,e=TT(t);this.promise=t,this.resolve=bl(J3,e),this.reject=bl(Tl,e)},nx.f=Fl=function(t){return t===ko||t===Dz?new _T(t):Zvt(t)},ue(R1)&&gu!==Object.prototype)){FT=gu.then,Oz||(sr(gu,"then",function(t,e){var n=this;return new ko(function(r,o){Qt(FT,n,r,o)}).then(t,e)},{unsafe:!0}),sr(gu,"catch",Jf.catch,{unsafe:!0}));try{delete gu.constructor}catch{}sc&&sc(gu,Jf)}Oo({global:!0,wrap:!0,forced:Md},{Promise:ko}),j1(ko,ri,!1),function(t){var e=ds("Promise"),n=mi.f;Lo&&e&&!e[ET]&&n(e,ET,{configurable:!0,get:function(){return this}})}(),Dz=ds(ri),Oo({target:ri,stat:!0,forced:Md},{reject:function(t){var e=Fl(this);return Qt(e.reject,void 0,t),e.promise}}),Oo({target:ri,stat:!0,forced:Md},{resolve:function(t){return function(e,n){if(hn(e),de(n)&&n.constructor===e)return n;var r=nx.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Oo({target:ri,stat:!0,forced:Qvt},{all:function(t){var e=this,n=Fl(e),r=n.resolve,o=n.reject,i=X3(function(){var a=Ma(e.resolve),u=[],s=0,l=1;I1(t,function(c){var f=s++,p=!1;l++,Qt(a,e,c).then(function(d){p||(p=!0,u[f]=d,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Fl(e),r=n.reject,o=X3(function(){var i=Ma(e.resolve);I1(t,function(a){Qt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var n1t=Sh.PROPER,Q3=RegExp.prototype,_z=Q3.toString,r1t=Ft(QM),o1t=me(function(){return _z.call({source:"a",flags:"b"})!="/a/b"}),i1t=n1t&&_z.name!="toString";(o1t||i1t)&&sr(RegExp.prototype,"toString",function(){var t=hn(this),e=xa(t.source),n=t.flags;return"/"+e+"/"+xa(n===void 0&&Bp(Q3,t)&&!("flags"in Q3)?r1t(t):n)},{unsafe:!0});var a1t=Sh.EXISTS,u1t=mi.f,Fz=Function.prototype,s1t=Ft(Fz.toString),Tz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l1t=Ft(Tz.exec);Lo&&!a1t&&u1t(Fz,"name",{configurable:!0,get:function(){try{return l1t(Tz,s1t(this))[1]}catch{return""}}});var jT=new WeakMap;function Pz(t){return t.getMenuConfig("uploadImage")}function c1t(t,e){return YC(this,void 0,void 0,function(){return XC(this,function(n){return[2,new Promise(function(r){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;Mu(t,a,e.name,u),r("ok")}}})]})})}function f1t(t,e){return YC(this,void 0,void 0,function(){var n,r,o,i;return XC(this,function(a){switch(a.label){case 0:return n=function(u){var s=jT.get(u);if(s!=null)return s;var l=Pz(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,v=l.onError;return s=dI(T1(T1({},l),{onProgress:function(g){u.showProgressBar(g),f&&f(g)},onSuccess:function(g,m){if(d)return d(m,function(R,H,M){return Mu(u,R,H,M)}),void c(g,m);var y=m.errno,h=y===void 0?1:y,b=m.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;Mu(u,M,U,W===void 0?"":W)});else{var D=w.url,x=D===void 0?"":D,C=w.alt,O=C===void 0?"":C,F=w.href;Mu(u,x,O,F===void 0?"":F)}c(g,m)}else p(g,m)},onError:function(g,m,y){v(g,m,y)}})),jT.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function jz(t,e){var n,r;return YC(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return XC(this,function(d){switch(d.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=Pz(t),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=rvt(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,c1t(t,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(v,g,m){return Mu(t,v,g,m)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,f1t(t,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),n={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var d1t=Ft([].join),p1t=PC!=Object,h1t=mz("join",",");Oo({target:"Array",proto:!0,forced:p1t||!h1t},{join:function(t){return d1t(qa(this),t===void 0?",":t)}}),jr&&(B.fn.append=jr),jo&&(B.fn.on=jo),ql&&(B.fn.remove=ql),Po&&(B.fn.val=Po),LA&&(B.fn.click=LA),Hl&&(B.fn.hide=Hl);var g1t=function(){function t(){this.title=tt("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 xm(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,p){return Mu(e,c,f,p)});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;jz(e,c)})}},t}(),v1t={menus:[{key:"uploadImage",factory:function(){return new g1t},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,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(xm(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):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),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p}(i.type.split("/"),1)[0]==="image"})?jz(t,o):e(r)}},n}};Xn("en",{highLightModule:{selectLang:"Language"}}),Xn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var M1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ix(t){var e={exports:{}};return t(e,e.exports),e.exports}var qi,Bg,Y0=function(t){return t&&t.Math==Math&&t},Nt=Y0(typeof globalThis=="object"&&globalThis)||Y0(typeof window=="object"&&window)||Y0(typeof self=="object"&&self)||Y0(typeof M1=="object"&&M1)||function(){return this}()||Function("return this")(),m1t=Object.defineProperty,ax=function(t,e){try{m1t(Nt,t,{value:e,configurable:!0,writable:!0})}catch{Nt[t]=e}return e},Aa=Nt["__core-js_shared__"]||ax("__core-js_shared__",{}),ux=ix(function(t){(t.exports=function(e,n){return Aa[e]||(Aa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Nz=Function.prototype,t5=Nz.bind,e5=Nz.call,y1t=t5&&t5.bind(e5),te=t5?function(t){return t&&y1t(e5,t)}:function(t){return t&&function(){return e5.apply(t,arguments)}},b1t=Nt.TypeError,lc=function(t){if(t==null)throw b1t("Can't call method on "+t);return t},w1t=Nt.Object,sx=function(t){return w1t(lc(t))},E1t=te({}.hasOwnProperty),Tr=Object.hasOwn||function(t,e){return E1t(sx(t),e)},D1t=0,C1t=Math.random(),x1t=te(1 .toString),Iz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+x1t(++D1t+C1t,36)},_n=function(t){return typeof t=="function"},S1t=function(t){return _n(t)?t:void 0},kh=function(t,e){return arguments.length<2?S1t(Nt[t]):Nt[t]&&Nt[t][e]},h4=kh("navigator","userAgent")||"",NT=Nt.process,IT=Nt.Deno,LT=NT&&NT.versions||IT&&IT.version,RT=LT&<.v8;RT&&(Bg=(qi=RT.split("."))[0]>0&&qi[0]<4?1:+(qi[0]+qi[1])),!Bg&&h4&&(!(qi=h4.match(/Edge\/(\d+)/))||qi[1]>=74)&&(qi=h4.match(/Chrome\/(\d+)/))&&(Bg=+qi[1]);var MT=Bg,fn=function(t){try{return!!t()}catch{return!0}},n5=!!Object.getOwnPropertySymbols&&!fn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&MT&&MT<41}),lx=n5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qf=ux("wks"),Zu=Nt.Symbol,zT=Zu&&Zu.for,A1t=lx?Zu:Zu&&Zu.withoutSetter||Iz,Ga=function(t){if(!Tr(Qf,t)||!n5&&typeof Qf[t]!="string"){var e="Symbol."+t;n5&&Tr(Zu,t)?Qf[t]=Zu[t]:Qf[t]=lx&&zT?zT(e):A1t(e)}return Qf[t]},Lz={};Lz[Ga("toStringTag")]="z";var cx=String(Lz)==="[object z]",Ro=!fn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Kr=function(t){return typeof t=="object"?t!==null:_n(t)},r5=Nt.document,O1t=Kr(r5)&&Kr(r5.createElement),fx=function(t){return O1t?r5.createElement(t):{}},Rz=!Ro&&!fn(function(){return Object.defineProperty(fx("div"),"a",{get:function(){return 7}}).a!=7}),k1t=Nt.String,B1t=Nt.TypeError,ro=function(t){if(Kr(t))return t;throw B1t(k1t(t)+" is not an object")},td=Function.prototype.call,en=td.bind?td.bind(td):function(){return td.apply(td,arguments)},Mz=te({}.isPrototypeOf),_1t=Nt.Object,g4=lx?function(t){return typeof t=="symbol"}:function(t){var e=kh("Symbol");return _n(e)&&Mz(e.prototype,_1t(t))},F1t=Nt.String,zz=function(t){try{return F1t(t)}catch{return"Object"}},T1t=Nt.TypeError,$z=function(t){if(_n(t))return t;throw T1t(zz(t)+" is not a function")},Hz=function(t,e){var n=t[e];return n==null?void 0:$z(n)},P1t=Nt.TypeError,j1t=Nt.TypeError,N1t=Ga("toPrimitive"),dx=function(t){var e=function(n,r){if(!Kr(n)||g4(n))return n;var o,i=Hz(n,N1t);if(i){if(r===void 0&&(r="default"),o=en(i,n,r),!Kr(o)||g4(o))return o;throw j1t("Can't convert object to primitive value")}return r===void 0&&(r="number"),function(a,u){var s,l;if(u==="string"&&_n(s=a.toString)&&!Kr(l=en(s,a))||_n(s=a.valueOf)&&!Kr(l=en(s,a))||u!=="string"&&_n(s=a.toString)&&!Kr(l=en(s,a)))return l;throw P1t("Can't convert object to primitive value")}(n,r)}(t,"string");return g4(e)?e:e+""},I1t=Nt.TypeError,$T=Object.defineProperty,Xm={f:Ro?$T:function(t,e,n){if(ro(t),e=dx(e),ro(n),Rz)try{return $T(t,e,n)}catch{}if("get"in n||"set"in n)throw I1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},px=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},cc=Ro?function(t,e,n){return Xm.f(t,e,px(1,n))}:function(t,e,n){return t[e]=n,t},L1t=te(Function.toString);_n(Aa.inspectSource)||(Aa.inspectSource=function(t){return L1t(t)});var z1,zd,$1,hx=Aa.inspectSource,HT=Nt.WeakMap,R1t=_n(HT)&&/native code/.test(hx(HT)),VT=ux("keys"),Vz=function(t){return VT[t]||(VT[t]=Iz(t))},gx={},o5=Nt.TypeError,M1t=Nt.WeakMap;if(R1t||Aa.state){var cu=Aa.state||(Aa.state=new M1t),z1t=te(cu.get),UT=te(cu.has),$1t=te(cu.set);z1=function(t,e){if(UT(cu,t))throw new o5("Object already initialized");return e.facade=t,$1t(cu,t,e),e},zd=function(t){return z1t(cu,t)||{}},$1=function(t){return UT(cu,t)}}else{var ol=Vz("state");gx[ol]=!0,z1=function(t,e){if(Tr(t,ol))throw new o5("Object already initialized");return e.facade=t,cc(t,ol,e),e},zd=function(t){return Tr(t,ol)?t[ol]:{}},$1=function(t){return Tr(t,ol)}}var i5={set:z1,get:zd,has:$1,enforce:function(t){return $1(t)?zd(t):z1(t,{})},getterFor:function(t){return function(e){var n;if(!Kr(e)||(n=zd(e)).type!==t)throw o5("Incompatible receiver, "+t+" required");return n}}},Uz=Function.prototype,H1t=Ro&&Object.getOwnPropertyDescriptor,v4=Tr(Uz,"name"),Wz={EXISTS:v4,PROPER:v4&&function(){}.name==="something",CONFIGURABLE:v4&&(!Ro||Ro&&H1t(Uz,"name").configurable)},Lp=ix(function(t){var e=Wz.CONFIGURABLE,n=i5.get,r=i5.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;_n(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Tr(u,"name")||e&&u.name!==d)&&cc(u,"name",d),(l=r(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Nt?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:cc(i,a,u)):f?i[a]=u:ax(a,u)})(Function.prototype,"toString",function(){return _n(this)&&n(this).source||hx(this)})}),V1t=te({}.toString),U1t=te("".slice),Oa=function(t){return U1t(V1t(t),8,-1)},W1t=Ga("toStringTag"),q1t=Nt.Object,G1t=Oa(function(){return arguments}())=="Arguments",vx=cx?Oa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(e=q1t(t),W1t))=="string"?n:G1t?Oa(e):(r=Oa(e))=="Object"&&_n(e.callee)?"Arguments":r},K1t=cx?{}.toString:function(){return"[object "+vx(this)+"]"};cx||Lp(Object.prototype,"toString",K1t,{unsafe:!0});var WT,qT={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},m4=fx("span").classList,GT=m4&&m4.constructor&&m4.constructor.prototype,Y1t=GT===Object.prototype?void 0:GT,KT=te(te.bind),y4=Nt.Object,X1t=te("".split),mx=fn(function(){return!y4("z").propertyIsEnumerable(0)})?function(t){return Oa(t)=="String"?X1t(t,""):y4(t)}:y4,Z1t=Math.ceil,J1t=Math.floor,yx=function(t){var e=+t;return e!=e||e===0?0:(e>0?J1t:Z1t)(e)},Q1t=Math.min,qz=function(t){return t>0?Q1t(yx(t),9007199254740991):0},bx=function(t){return qz(t.length)},YT=Array.isArray||function(t){return Oa(t)=="Array"},Gz=function(){},tmt=[],Kz=kh("Reflect","construct"),wx=/^\s*(?:class|function)\b/,emt=te(wx.exec),nmt=!wx.exec(Gz),ed=function(t){if(!_n(t))return!1;try{return Kz(Gz,tmt,t),!0}catch{return!1}},Yz=!Kz||fn(function(){var t;return ed(ed.call)||!ed(Object)||!ed(function(){t=!0})||t})?function(t){if(!_n(t))return!1;switch(vx(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return nmt||!!emt(wx,hx(t))}:ed,rmt=Ga("species"),XT=Nt.Array,omt=function(t,e){return new(function(n){var r;return YT(n)&&(r=n.constructor,(Yz(r)&&(r===XT||YT(r.prototype))||Kr(r)&&(r=r[rmt])===null)&&(r=void 0)),r===void 0?XT:r}(t))(e===0?0:e)},ZT=te([].push),Gi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var p,d,v=sx(s),g=mx(v),m=function(D,x){return $z(D),x===void 0?D:KT?KT(D,x):function(){return D.apply(x,arguments)}}(l,c),y=bx(g),h=0,b=f||omt,w=e?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in g)&&(d=m(p=g[h],h,v),t))if(e)w[h]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return h;case 2:ZT(w,p)}else switch(t){case 4:return!1;case 7:ZT(w,p)}return i?-1:r||o?o:w}},imt=[Gi(0),Gi(1),Gi(2),Gi(3),Gi(4),Gi(5),Gi(6),Gi(7)][0],b4=(WT=[].forEach)&&fn(function(){WT.call(null,function(){throw 1},1)})?[].forEach:function(t){return imt(this,t,arguments.length>1?arguments[1]:void 0)},Xz=function(t){if(t&&t.forEach!==b4)try{cc(t,"forEach",b4)}catch{t.forEach=b4}};for(var w4 in qT)qT[w4]&&Xz(Nt[w4]&&Nt[w4].prototype);Xz(Y1t);var JT={}.propertyIsEnumerable,QT=Object.getOwnPropertyDescriptor,Zz={f:QT&&!JT.call({1:2},1)?function(t){var e=QT(this,t);return!!e&&e.enumerable}:JT},Zm=function(t){return mx(lc(t))},tP=Object.getOwnPropertyDescriptor,Jz={f:Ro?tP:function(t,e){if(t=Zm(t),e=dx(e),Rz)try{return tP(t,e)}catch{}if(Tr(t,e))return px(!en(Zz.f,t,e),t[e])}},amt=Math.max,umt=Math.min,a5=function(t,e){var n=yx(t);return n<0?amt(n+e,0):umt(n,e)},smt=function(t){return function(e,n,r){var o,i=Zm(e),a=bx(i),u=a5(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},lmt=smt(!1),eP=te([].push),Qz=function(t,e){var n,r=Zm(t),o=0,i=[];for(n in r)!Tr(gx,n)&&Tr(r,n)&&eP(i,n);for(;e.length>o;)Tr(r,n=e[o++])&&(~lmt(i,n)||eP(i,n));return i},H1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cmt=H1.concat("length","prototype"),fmt={f:Object.getOwnPropertyNames||function(t){return Qz(t,cmt)}},t$={f:Object.getOwnPropertySymbols},dmt=te([].concat),pmt=kh("Reflect","ownKeys")||function(t){var e=fmt.f(ro(t)),n=t$.f;return n?dmt(e,n(t)):e},hmt=function(t,e){for(var n=pmt(e),r=Xm.f,o=Jz.f,i=0;i<n.length;i++){var a=n[i];Tr(t,a)||r(t,a,o(e,a))}},gmt=/#|\.prototype\./,Bh=function(t,e){var n=mmt[vmt(t)];return n==bmt||n!=ymt&&(_n(e)?fn(e):!!e)},vmt=Bh.normalize=function(t){return String(t).replace(gmt,".").toLowerCase()},mmt=Bh.data={},ymt=Bh.NATIVE="N",bmt=Bh.POLYFILL="P",wmt=Bh,Emt=Jz.f,Jm=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Nt:l?Nt[u]||ax(u,{}):(Nt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Emt(n,r))&&a.value:n[r],!wmt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;hmt(i,o)}(t.sham||o&&o.sham)&&cc(i,"sham",!0),Lp(n,r,i,t)}},_g=Object.keys||function(t){return Qz(t,H1)},il=Object.assign,nP=Object.defineProperty,Dmt=te([].concat),rP=!il||fn(function(){if(Ro&&il({b:1},il(nP({},"a",{enumerable:!0,get:function(){nP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),il({},t)[n]!=7||_g(il({},e)).join("")!=r})?function(t,e){for(var n=sx(t),r=arguments.length,o=1,i=t$.f,a=Zz.f;r>o;)for(var u,s=mx(arguments[o++]),l=i?Dmt(_g(s),i(s)):_g(s),c=l.length,f=0;c>f;)u=l[f++],Ro&&!en(a,s,u)||(n[u]=s[u]);return n}:il;Jm({target:"Object",stat:!0,forced:Object.assign!==rP},{assign:rP});var oP=ix(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function m(y){return y instanceof u?new u(y.type,m(y.content),y.alias):Array.isArray(y)?y.map(m):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(y,h){var b,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var D in b={},h[w]=b,y)y.hasOwnProperty(D)&&(b[D]=m(y[D],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach(function(x,C){b[C]=m(x,h)}),b);default:return y}},getLanguage:function(m){for(;m&&!r.test(m.className);)m=m.parentElement;return m?(m.className.match(r)||[,"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 m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(m){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==m)return y[h]}return null}},isActive:function(m,y,h){for(var b="no-"+y;m;){var w=m.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;m=m.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(m,y){var h=a.util.clone(a.languages[m]);for(var b in y)h[b]=y[b];return h},insertBefore:function(m,y,h,b){var w=(b=b||a.languages)[m],D={};for(var x in w)if(w.hasOwnProperty(x)){if(x==y)for(var C in h)h.hasOwnProperty(C)&&(D[C]=h[C]);h.hasOwnProperty(x)||(D[x]=w[x])}var O=b[m];return b[m]=D,a.languages.DFS(a.languages,function(F,R){R===O&&F!=m&&(this[F]=D)}),D},DFS:function m(y,h,b,w){w=w||{};var D=a.util.objId;for(var x in y)if(y.hasOwnProperty(x)){h.call(y,x,y[x],b||x);var C=y[x],O=a.util.type(C);O!=="Object"||w[D(C)]?O!=="Array"||w[D(C)]||(w[D(C)]=!0,m(C,h,x,w)):(w[D(C)]=!0,m(C,h,null,w))}}},plugins:{},highlightAll:function(m,y){a.highlightAllUnder(document,m,y)},highlightAllUnder:function(m,y,h){var b={callback:h,container:m,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,y===!0,b.callback)},highlightElement:function(m,y,h){var b=a.util.getLanguage(m),w=a.languages[b];m.className=m.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var D=m.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var x={element:m,language:b,grammar:w,code:m.textContent};function C(F){x.highlightedCode=F,a.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,a.hooks.run("after-highlight",x),a.hooks.run("complete",x),h&&h.call(x.element)}if(a.hooks.run("before-sanity-check",x),(D=x.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!x.code)return a.hooks.run("complete",x),void(h&&h.call(x.element));if(a.hooks.run("before-highlight",x),x.grammar)if(y&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(F){C(F.data)},O.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else C(a.highlight(x.code,x.grammar,x.language));else C(a.util.encode(x.code))},highlight:function(m,y,h){var b={code:m,grammar:y,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(m,y){var h=y.rest;if(h){for(var b in h)y[b]=h[b];delete y.rest}var w=new c;return f(w,w.head,m),l(m,w,y,w.head,0),function(D){for(var x=[],C=D.head.next;C!==D.tail;)x.push(C.value),C=C.next;return x}(w)},hooks:{all:{},add:function(m,y){var h=a.hooks.all;h[m]=h[m]||[],h[m].push(y)},run:function(m,y){var h=a.hooks.all[m];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(m,y,h,b){this.type=m,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(m,y,h,b){m.lastIndex=y;var w=m.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(m,y,h,b,w,D){for(var x in h)if(h.hasOwnProperty(x)&&h[x]){var C=h[x];C=Array.isArray(C)?C:[C];for(var O=0;O<C.length;++O){if(D&&D.cause==x+","+O)return;var F=C[O],R=F.inside,H=!!F.lookbehind,M=!!F.greedy,K=F.alias;if(M&&!F.pattern.global){var U=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,U+"g")}for(var W=F.pattern||F,G=b.next,nt=w;G!==y.tail&&!(D&&nt>=D.reach);nt+=G.value.length,G=G.next){var lt=G.value;if(y.length>m.length)return;if(!(lt instanceof u)){var st,at=1;if(M){if(!(st=s(W,nt,m,H)))break;var k=st.index,S=st.index+st[0].length,P=nt;for(P+=G.value.length;k>=P;)P+=(G=G.next).value.length;if(nt=P-=G.value.length,G.value instanceof u)continue;for(var $=G;$!==y.tail&&(P<S||typeof $.value=="string");$=$.next)at++,P+=$.value.length;at--,lt=m.slice(nt,P),st.index-=nt}else if(!(st=s(W,0,lt,H)))continue;k=st.index;var Y=st[0],V=lt.slice(0,k),it=lt.slice(k+Y.length),gt=nt+lt.length;D&>>D.reach&&(D.reach=gt);var vt=G.prev;if(V&&(vt=f(y,vt,V),nt+=V.length),p(y,vt,at),G=f(y,vt,new u(x,R?a.tokenize(Y,R):Y,K,Y)),it&&f(y,G,it),at>1){var Dt={cause:x+","+O,reach:gt};l(m,y,h,G.prev,nt,Dt),D&&Dt.reach>D.reach&&(D.reach=Dt.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},y={value:null,prev:m,next:null};m.next=y,this.head=m,this.tail=y,this.length=0}function f(m,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,m.length++,w}function p(m,y,h){for(var b=y.next,w=0;w<h&&b!==m.tail;w++)b=b.next;y.next=b,b.prev=y,m.length-=w}if(n.Prism=a,u.stringify=function m(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(O){b+=m(O,h)}),b}var w={type:y.type,content:m(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},D=y.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),a.hooks.run("wrap",w);var x="";for(var C in w.attributes)x+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+x+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(m){var y=JSON.parse(m.data),h=y.language,b=y.code,w=y.immediateClose;n.postMessage(a.highlight(b,a.languages[h],h)),w&&n.close()},!1)),a;var d=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var g=document.readyState;g==="loading"||g==="interactive"&&d&&d.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),M1!==void 0&&(M1.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(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:[r,"language-"+r],inside:e.languages[r]},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(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.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 n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="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(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=n[d]||d}u(c,p),u(l,p);var v=e.plugins.autoloader;v&&v.loadLanguages(p);var g=new XMLHttpRequest;g.open("GET",f,!0),g.onreadystatechange=function(){g.readyState==4&&(g.status<400&&g.responseText?(l.setAttribute(r,"loaded"),c.textContent=g.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),g.status>=400?c.textContent="✖ Error "+g.status+" while fetching file: "+g.statusText:c.textContent="✖ Error: File does not exist or is empty"))},g.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),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).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],p=!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--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",d,null,d)}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(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["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:r},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]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside: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:n,number:r,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://,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/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.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":r,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/,n=/\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 n})+")"),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 n(S,P,$){return RegExp(e(S,P),$||"")}function r(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),p=s(o+" "+i+" "+u),d=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,m=e(/<<0>>(?:\s*<<1>>)?/.source,[g,d]),y=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,m]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,v,h]),D=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,y,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,F=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[F]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,g]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,d]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(d),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,g,x,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,v]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var H=F+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(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,[y,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var G=/:[^}\r\n]+/.source,nt=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nt,G]),st=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),at=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,G]);function k(S,P){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,G]),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:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:k(lt,nt)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[at]),lookbehind:!0,greedy:!0,inside:k(at,st)}]})}(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",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,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:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=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=r.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 n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;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(r),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(r),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:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(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 p=0,d=f.length;p<d;p++){var v=f[p];if(v.type==="code"){var g=v.content[1],m=v.content[3];if(g&&m&&g.type==="code-language"&&m.type==="code-block"&&typeof g.content=="string"){var y=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());m.alias?typeof m.alias=="string"?m.alias=[m.alias,h]:m.alias.push(h):m.alias=[h]}}else c(v.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],v=/language-(.+)/.exec(d);if(v){c=v[1];break}}var g=t.languages[c];if(g)l.content=t.highlight(function(y){var h=y.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),g,c);else if(c&&c!=="none"&&t.plugins.autoloader){var m="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=m,t.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(m);y&&(y.innerHTML=t.highlight(y.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 n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/</g,"<").replace(/&/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var Cmt=["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 e$(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+e$(n)},0)}var X0,xmt=Nt.String,li=function(t){if(vx(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return xmt(t)},n$=function(){var t=ro(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},Ex=Nt.RegExp,u5=fn(function(){var t=Ex("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Smt=u5||fn(function(){return!Ex("a","y").sticky}),r$={BROKEN_CARET:u5||fn(function(){var t=Ex("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Smt,UNSUPPORTED_Y:u5},Amt=Ro?Object.defineProperties:function(t,e){ro(t);for(var n,r=Zm(e),o=_g(e),i=o.length,a=0;i>a;)Xm.f(t,n=o[a++],r[n]);return t},Omt=kh("document","documentElement"),o$=Vz("IE_PROTO"),E4=function(){},i$=function(t){return"<script>"+t+"<\/script>"},iP=function(t){t.write(i$("")),t.close();var e=t.parentWindow.Object;return t=null,e},Fg=function(){try{X0=new ActiveXObject("htmlfile")}catch{}var t,e;Fg=typeof document<"u"?document.domain&&X0?iP(X0):((e=fx("iframe")).style.display="none",Omt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(i$("document.F=Object")),t.close(),t.F):iP(X0);for(var n=H1.length;n--;)delete Fg.prototype[H1[n]];return Fg()};gx[o$]=!0;var aP,D4,kmt=Object.create||function(t,e){var n;return t!==null?(E4.prototype=ro(t),n=new E4,E4.prototype=null,n[o$]=t):n=Fg(),e===void 0?n:Amt(n,e)},Bmt=Nt.RegExp,_mt=fn(function(){var t=Bmt(".","s");return!(t.dotAll&&t.exec(`
- `)&&t.flags==="s")}),Fmt=Nt.RegExp,Tmt=fn(function(){var t=Fmt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Pmt=i5.get,jmt=ux("native-string-replace",String.prototype.replace),V1=RegExp.prototype.exec,s5=V1,Nmt=te("".charAt),Imt=te("".indexOf),Lmt=te("".replace),C4=te("".slice),x4=(D4=/b*/g,en(V1,aP=/a/,"a"),en(V1,D4,"a"),aP.lastIndex!==0||D4.lastIndex!==0),uP=r$.BROKEN_CARET,S4=/()??/.exec("")[1]!==void 0;(x4||S4||uP||_mt||Tmt)&&(s5=function(t){var e,n,r,o,i,a,u,s=this,l=Pmt(s),c=li(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=en(s5,f,c),s.lastIndex=f.lastIndex,e;var p=l.groups,d=uP&&s.sticky,v=en(n$,s),g=s.source,m=0,y=c;if(d&&(v=Lmt(v,"y",""),Imt(v,"g")===-1&&(v+="g"),y=C4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Nmt(c,s.lastIndex-1)!==`
- `)&&(g="(?: "+g+")",y=" "+y,m++),n=new RegExp("^(?:"+g+")",v)),S4&&(n=new RegExp("^"+g+"$(?!\\s)",v)),x4&&(r=s.lastIndex),o=en(V1,d?n:s,y),d?o?(o.input=C4(o.input,m),o[0]=C4(o[0],m),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:x4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),S4&&o&&o.length>1&&en(jmt,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=kmt(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Rp=s5;Jm({target:"RegExp",proto:!0,forced:/./.exec!==Rp},{exec:Rp});var Dx=Function.prototype,sP=Dx.apply,Rmt=Dx.bind,lP=Dx.call,Mmt=typeof Reflect=="object"&&Reflect.apply||(Rmt?lP.bind(sP):function(){return lP.apply(sP,arguments)}),zmt=Ga("species"),A4=RegExp.prototype,$mt=Ga("match"),Hmt=Nt.TypeError,Vmt=Ga("species"),Umt=te("".charAt),cP=te("".charCodeAt),Wmt=te("".slice),qmt=function(t){return function(e,n){var r,o,i=li(lc(e)),a=yx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=cP(i,a))<55296||r>56319||a+1===u||(o=cP(i,a+1))<56320||o>57343?t?Umt(i,a):r:t?Wmt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Gmt=qmt(!0),Kmt=function(t,e,n){return e+(n?Gmt(t,e).length:1)},Ymt=Nt.Array,Xmt=Math.max,fP=function(t,e,n){for(var r,o,i,a,u=bx(t),s=a5(e,u),l=a5(n===void 0?u:n,u),c=Ymt(Xmt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=dx(o))in r?Xm.f(r,a,px(0,i)):r[a]=i;return c.length=f,c},Zmt=Nt.TypeError,dP=function(t,e){var n=t.exec;if(_n(n)){var r=en(n,t,e);return r!==null&&ro(r),r}if(Oa(t)==="RegExp")return en(Rp,t,e);throw Zmt("RegExp#exec called on incompatible receiver")},al=r$.UNSUPPORTED_Y,Jmt=Math.min,a$=[].push,Qmt=te(/./.exec),ul=te(a$),nd=te("".slice);(function(t,e,n,r){var o=Ga(t),i=!fn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!fn(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[zmt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=te(/./[o]),s=function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,v){var g,m,y=li(lc(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(d===void 0)return[y];if(!Kr(g=d)||!((m=g[$mt])!==void 0?m:Oa(g)=="RegExp"))return en(c,y,d,h);for(var b,w,D,x=[],C=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),O=0,F=new RegExp(d.source,C+"g");(b=en(Rp,F,y))&&!((w=F.lastIndex)>O&&(ul(x,nd(y,O,b.index)),b.length>1&&b.index<y.length&&Mmt(a$,x,fP(b,1)),D=b[0].length,O=w,x.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&Qmt(F,"")||ul(x,""):ul(x,nd(y,O)),x.length>h?fP(x,0,h):x}:"0".split(void 0,0).length?function(d,v){return d===void 0&&v===0?[]:en(c,this,d,v)}:c,[function(d,v){var g=lc(this),m=d==null?void 0:Hz(d,l);return m?en(m,d,g,v):en(p,li(g),d,v)},function(d,v){var g=ro(this),m=li(d),y=f(p,g,m,v,p!==c);if(y.done)return y.value;var h=function(K,U){var W,G=ro(K).constructor;return G===void 0||(W=ro(G)[Vmt])==null?U:function(nt){if(Yz(nt))return nt;throw Hmt(zz(nt)+" is not a constructor")}(W)}(g,RegExp),b=g.unicode,w=(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")+(al?"g":"y"),D=new h(al?"^(?:"+g.source+")":g,w),x=v===void 0?4294967295:v>>>0;if(x===0)return[];if(m.length===0)return dP(D,m)===null?[m]:[];for(var C=0,O=0,F=[];O<m.length;){D.lastIndex=al?0:O;var R,H=dP(D,al?nd(m,O):m);if(H===null||(R=Jmt(qz(D.lastIndex+(al?O:0)),m.length))===C)O=Kmt(m,O,b);else{if(ul(F,nd(m,C,O)),F.length===x)return F;for(var M=1;M<=H.length-1;M++)if(ul(F,H[M]),F.length===x)return F;O=C=R}}return ul(F,nd(m,C)),F}]}(o,""[t],function(l,c,f,p,d){var v=te(l),g=c.exec;return g===Rp||g===A4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});Lp(String.prototype,t,s[0]),Lp(A4,o,s[1])}r&&cc(A4[o],"sham",!0)})("split",0,!!fn(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),al),Jm({global:!0},{globalThis:Nt}),Pr&&(B.fn.attr=Pr);var tyt=Wz.PROPER,l5=RegExp.prototype,u$=l5.toString,eyt=te(n$),nyt=fn(function(){return u$.call({source:"a",flags:"b"})!="/a/b"}),ryt=tyt&&u$.name!="toString";(nyt||ryt)&&Lp(RegExp.prototype,"toString",function(){var t=ro(this),e=li(t.source),n=t.flags;return"/"+e+"/"+li(n===void 0&&Mz(l5,t)&&!("flags"in l5)?eyt(t):n)},{unsafe:!0});var oyt=function(){function t(){this.title=tt("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 n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!ct.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};N.setNodes(e,r,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return ct.isElement(r)?r.type!=="pre"?null:n:null},t}(),iyt={renderStyle:function(t,e){var n=t,r=e,o="";return Cmt.forEach(function(i){n[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})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=B(t);if(!ct.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new oyt},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 n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},ayt=/"/g,uyt=te("".replace);Jm({target:"String",proto:!0,forced:fn(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=li(lc(this)),r="<a",(r+=' name="'+uyt(li(e),ayt,""")+'"')+">"+n+"</a>";var e,n,r}});var s$=function(t){var e,n,r,o=function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,D,x=b.call(y),C=[];try{for(;(h===void 0||h-- >0)&&!(w=x.next()).done;)C.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=x.return)&&b.call(x)}finally{if(D)throw D.error}}return C}(t,2),i=o[0],a=o[1],u=[],s=function(y){if(!ot.isText(y))return null;var h=A.getParentNode(null,y);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(y,h){if(!h)return[];var b=oP.languages[h];return b?oP.tokenize(y.text,b):[]}(i,c),p=0;try{for(var d=function(y){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&y[h],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=d.next();!v.done;v=d.next()){var g=v.value,m=p+e$(g);typeof g!="string"&&u.push(((r={})[g.type]=!0,r.anchor={path:a,offset:p},r.focus={path:a,offset:m},r)),p=m}}catch(y){e={error:y}}finally{try{v&&!v.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return u},Oe=function(){return Oe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Oe.apply(this,arguments)},un=function(){function t(){throw new Error(`不能实例化
- Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Oe(Oe({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Oe(Oe({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Oe(Oe({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Oe(Oe({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=xr(xr({},u),o||{});if(ap[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");ap[i]=a,function(l,c){c!=null&&(PN[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;oI[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){r6.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;jN[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){XE.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){JN.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;Ov[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){jD.push(n)})(e)},t.registerModule=function(e){vu(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 vu(t){var e=t.menus,n=t.renderElems,r=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 un.registerMenu(c)}),n&&n.forEach(function(c){return un.registerRenderElem(c)}),r&&un.registerRenderStyle(r),o&&o.forEach(function(c){return un.registerElemToHtml(c)}),i&&un.registerStyleToHtml(i),a&&a.forEach(function(c){return un.registerPreParseHtml(c)}),u&&u.forEach(function(c){return un.registerParseElemHtml(c)}),s&&un.registerParseStyleHtml(s),l&&un.registerPlugin(l)}put.forEach(function(t){return vu(t)}),vu(Ult),vu(vdt),vu(S0t),vu(v1t),vu(iyt);var l$='<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>',c$={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"]}},syt={hoverbarKeys:Oe(Oe({},c$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};un.setEditorConfig(Oe(Oe({},syt),{decorate:s$}));var lyt={hoverbarKeys:c$};un.setSimpleEditorConfig(Oe(Oe({},lyt),{decorate:s$}));var cyt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("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:tt("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:tt("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:tt("editor.image"),iconSvg:l$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("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"]};un.setToolbarConfig(cyt);var fyt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:l$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function dyt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?un.simpleEditorConfig:un.editorConfig,c=Oe(Oe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return mtt({selector:n,config:Oe(Oe(Oe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:un.plugins})}function pyt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?un.simpleToolbarConfig:un.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if(function(m,y){return eI(m,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=xr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),g=new Dtt(f,v);return SD.set(g,l),hm.set(l,g),g}(n,{selector:e,config:Oe(Oe({},u),o)});return s}un.setSimpleToolbarConfig(fyt);var hyt=Object.defineProperty,gyt=Object.defineProperties,vyt=Object.getOwnPropertyDescriptors,pP=Object.getOwnPropertySymbols,myt=Object.prototype.hasOwnProperty,yyt=Object.prototype.propertyIsEnumerable,hP=(t,e,n)=>e in t?hyt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,byt=(t,e)=>{for(var n in e||(e={}))myt.call(e,n)&&hP(t,n,e[n]);if(pP)for(var n of pP(e))yyt.call(e,n)&&hP(t,n,e[n]);return t},wyt=(t,e)=>gyt(t,vyt(e));function Ki(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
- Please use '@${t}' event instead of props`,e}var f$=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const Eyt=gP({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const n=kn(null),r=vP(null),o=kn(""),i=()=>{if(!n.value)return;const u=g$(t.defaultContent);dyt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:wyt(byt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Ki("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Ki("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Ki("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Ki("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Ki("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Ki("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Ki("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Ki("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return U1(()=>{i()}),p$(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),Dyt={ref:"box",style:{height:"100%"}};function Cyt(t,e,n,r,o,i){return Pl(),Mp("div",Dyt,null,512)}var xyt=f$(Eyt,[["render",Cyt]]);const Syt=gP({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=kn(null),n=r=>{if(e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||pyt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return h$(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),Ayt={ref:"selector"};function Oyt(t,e,n,r,o,i){return Pl(),Mp("div",Ayt,null,512)}var kyt=f$(Syt,[["render",Oyt]]);const Byt={style:{border:"1px solid #ccc"}},_yt={__name:"editor",props:["id"],setup(t,{expose:e}){const n=t,r=kn("default"),o=vP(),i=kn("");U1(()=>{});const a=(c,f)=>{let p=c.name.substr(0,c.name.indexOf(".")),d=c.name.substr(c.name.indexOf(".")+1),v={classname:"system.attachment.huawei.OBS",method:"getFileName",content:{filename:p,filetype:d,parentid:0}};xo.requested(v).then(g=>{let m=g.data.uploadurl,y=g.data.serialfilename,h={headers:{"Content-Type":"application/octet-stream"}};d$.upload(m,c,h).then(b=>{if(b.statusText=="OK"){let w={classname:"system.attachment.huawei.OBS",method:"uploadSuccess",content:{serialfilename:y}};xo.requested(w).then(D=>{let x=D.data.attachmentids,C={classname:"system.attachment.Attachment",method:"createFileLink",content:{ownertable:"SAT_SHAREMATERIAL",ownerid:n.id,usetype:"richtext",attachmentids:x}};xo.requested(C).then(O=>{O.msg!="成功"?alert("上传失败"):f(O.data[0].url,p,O.data[0].url)})})}})})},u={},s={placeholder:"请输入内容...",MENU_CONF:{uploadImage:{customUpload:a},uploadVideo:{customUpload:a}}};v$(()=>{const c=o.value;c!=null&&c.destroy()}),e({valueHtml:i});const l=c=>{o.value=c};return(c,f)=>(Pl(),Mp("div",Byt,[Zt(Du(kyt),{style:{"border-bottom":"1px solid #ccc"},editor:Du(o),defaultConfig:u,mode:r.value},null,8,["editor","mode"]),Zt(Du(xyt),{style:{height:"1000px","overflow-y":"hidden"},modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=p=>i.value=p),defaultConfig:s,mode:r.value,onOnCreated:l},null,8,["modelValue","mode"])]))}},Fyt={__name:"mainArea",props:["id"],emits:["onTreeSelect"],setup(t,{emit:e}){const n=t,r=kn([]);m$(()=>400);const o=async()=>{const c=await xo.requested({classname:"webmanage.sale.salearea.salearea",method:"query_area",content:{nocache:!0}});r.value=i(c.data),console.log(r.value)},i=c=>{let f=[];function p(d){var v={parentid:d.parentid,title:d.areaname,key:d.sa_saleareaid,isused:d.isused,remarks:d.remarks,children:[]};if(d.subarea&&d.subarea.length>0)for(var g=0;g<d.subarea.length;g++)v.children.push(p(d.subarea[g]));return v}return c.forEach(d=>{f.push(p(d))}),f};kn(0),kn({}),kn(),kn();const a=c=>{l(c)},u=kn([]),s=async()=>{const c=await xo.requested({id:20221101142303,content:{sat_noticeid:n.id}});u.value=c.data.sa_saleareaid},l=async c=>{const f=await xo.post({id:20221101142003,content:{isonlymanager_agent:!1,isonlymanager_dept:!1,sa_saleareaid:c,sat_noticeid:n.id}});rd.message(f,"授权成功",()=>{})};return U1(()=>{o(),s()}),(c,f)=>{const p=ho("a-tree");return Pl(),Mp("div",null,[r.value.length?(Pl(),y$(p,{key:0,checkedKeys:u.value,"onUpdate:checkedKeys":f[0]||(f[0]=d=>u.value=d),"tree-data":r.value,autoExpandParent:"",defaultExpandAll:"",checkable:"",blockNode:"",virtual:"",onCheck:a},{title:we(d=>[vo("span",null,Z0(d.title),1)]),_:1},8,["checkedKeys","tree-data"])):b$("",!0)])}}};const Tyt=t=>(w$("data-v-9d4c376f"),t=t(),E$(),t),Pyt={style:{display:"flex"}},jyt={style:{flex:"0 1 auto"}},Nyt={class:"mt-10"},Iyt=Tyt(()=>vo("p",{class:"info"},"基础信息",-1)),Lyt=["innerHTML"],Ryt={__name:"index",setup(t){const e=C$(),n=kn(!1),r=kn([{label:"置顶",value:1},{label:"不置顶",value:0}]),o=kn({}),i=async()=>{const p=await xo.requested({id:20221101095003,content:{sat_noticeid:e.currentRoute.value.query.id}});o.value=Object.assign({},o.value,p.data),a.value.valueHtml=o.value.content},a=kn(),u=kn(),s=async()=>{try{const p=await u.value.validateFields();o.value.content=a.value.valueHtml,o.value.issecret=1;const d=await xo.requested({id:20221101094803,content:o.value});rd.message(d,"保存成功!",()=>{})}catch(p){console.log("Failed:",p)}},l=async()=>{await s();const p=await xo.requested({id:20221101095203,content:{sat_noticeids:[o.value.sat_noticeid]}});rd.message(p,"发布成功!",()=>{i()})},c=async()=>{const p=await xo.requested({id:20221101095303,content:{sat_noticeids:[o.value.sat_noticeid]}});rd.message(p,"取消发布成功!",()=>{i()})},f=()=>{o.status=="新建"&&s(),n.value=!0};return U1(()=>{console.log("111"),i()}),(p,d)=>{const v=ho("a-button"),g=ho("a-col"),m=ho("a-input"),y=ho("a-form-item"),h=ho("a-date-picker"),b=ho("a-radio-group"),w=ho("a-row"),D=ho("a-form"),x=ho("a-modal");return Pl(),Mp("div",null,[Zt(D$,{title:o.value.title,notabs:!0,tabs:["明细"],ownertable:"sa_itempriceadjust",delParam:{id:"20221101095103",content:{sat_noticeids:[Du(e).currentRoute.value.query.id]}},disable:Du(rd).isDisabled(o.value.status,[],o.value.status!=="新建")},{operation:we(()=>[Zt(v,{type:"primary",disabled:o.value.status=="发布",onClick:s},{default:we(()=>[Nc("保存")]),_:1},8,["disabled"]),Zt(v,{type:"primary",onClick:f},{default:we(()=>[Nc("预览")]),_:1}),Zt(v,{type:"primary",disabled:o.value.status=="发布",onClick:l},{default:we(()=>[Nc("发布")]),_:1},8,["disabled"]),Zt(v,{type:"primary",disabled:o.value.status=="新建",onClick:c},{default:we(()=>[Nc("取消发布")]),_:1},8,["disabled"])]),customContent:we(()=>[vo("div",Pyt,[Zt(Fyt,{style:{flex:"1 0 auto","max-width":"250px","min-width":"250px","margin-right":"20px","border-right":"1px solid #f1f2f3"},id:Du(e).currentRoute.value.query.id},null,8,["id"]),vo("div",jyt,[Zt(w,null,{default:we(()=>[Zt(g,{sm:24,md:24,lg:24,xl:12},{default:we(()=>[vo("div",Nyt,[Zt(D,{ref_key:"formRef",ref:u,model:o.value,layout:"vertical"},{default:we(()=>[Zt(w,{gutter:16},{default:we(()=>[Zt(g,{span:24},{default:we(()=>[Iyt]),_:1}),Zt(g,{span:12},{default:we(()=>[Zt(y,{label:"标题",name:"title",rules:[{required:!0,message:"请输入标题"}]},{default:we(()=>[Zt(m,{value:o.value.title,"onUpdate:value":d[0]||(d[0]=C=>o.value.title=C),placeholder:"输入标题"},null,8,["value"])]),_:1})]),_:1}),Zt(g,{span:12},{default:we(()=>[Zt(y,{label:"导语",name:"summary",rules:[{required:!0,message:"请输入导语"}]},{default:we(()=>[Zt(m,{value:o.value.summary,"onUpdate:value":d[1]||(d[1]=C=>o.value.summary=C),placeholder:"输入导语"},null,8,["value"])]),_:1})]),_:1}),Zt(g,{span:12},{default:we(()=>[Zt(y,{label:"生效日期",name:"begdate",rules:[{required:!0,message:"请选择生效日期"}]},{default:we(()=>[Zt(h,{style:{width:"100%"},value:o.value.begdate,"onUpdate:value":d[2]||(d[2]=C=>o.value.begdate=C),"value-format":"YYYY-MM-DD",placeholder:"选择生效日期"},null,8,["value"])]),_:1})]),_:1}),Zt(g,{span:12},{default:we(()=>[Zt(y,{label:"截止日期",name:"enddate",rules:[{required:!0,message:"请选择截止日期"}]},{default:we(()=>[Zt(h,{style:{width:"100%"},value:o.value.enddate,"onUpdate:value":d[3]||(d[3]=C=>o.value.enddate=C),"value-format":"YYYY-MM-DD",placeholder:"请选择截止日期"},null,8,["value"])]),_:1})]),_:1}),Zt(g,{span:12},{default:we(()=>[Zt(y,{name:"isontop"},{default:we(()=>[Zt(b,{value:o.value.isontop,"onUpdate:value":d[4]||(d[4]=C=>o.value.isontop=C),options:r.value},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),_:1})]),_:1}),Zt(w,null,{default:we(()=>[Zt(g,{span:12},{default:we(()=>[Zt(_yt,{ref_key:"editor",ref:a,id:Du(e).currentRoute.value.query.id},null,8,["id"])]),_:1})]),_:1})])])]),_:1},8,["title","delParam","disable"]),Zt(x,{open:n.value,"onUpdate:open":d[5]||(d[5]=C=>n.value=C),title:null,footer:null,closable:!1,width:"800px",bodyStyle:{padding:"20px",height:"80vh",overflowY:"scroll"}},{default:we(()=>[vo("h2",null,Z0(o.value.title),1),vo("p",null,[vo("small",null,Z0(o.value.createdate),1),Nc(" "),vo("small",null,Z0(o.value.createby),1)]),vo("div",{style:{width:"100%"},innerHTML:o.value.content},null,8,Lyt)]),_:1},8,["open"])])}}},Yyt=x$(Ryt,[["__scopeId","data-v-9d4c376f"]]);export{Yyt as default};
|