123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- import{K as o$,T as pS,R as i$,H as a$}from"./index.DYFzjhQc.js";import{l as hS}from"./elementPlus.CXoFsoPv.js";import{d as Y3,s as uj,r as pl,w as f4,k as gS,A as u$,j as sj,ai as vS,o as X3,c as J3,U as mS,K as Im,b as s$,ae as l$}from"./vue.1RczIYhx.js";var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function as(e){var t={exports:{}};return e(t,t.exports),t.exports}var mi,_0,Bh=function(e){return e&&e.Math==Math&&e},Be=Bh(typeof globalThis=="object"&&globalThis)||Bh(typeof window=="object"&&window)||Bh(typeof self=="object"&&self)||Bh(typeof at=="object"&&at)||function(){return this}()||Function("return this")(),Z3=Function.prototype,yS=Z3.apply,f$=Z3.bind,bS=Z3.call,lj=typeof Reflect=="object"&&Reflect.apply||(f$?bS.bind(yS):function(){return bS.apply(yS,arguments)}),cj=Function.prototype,d4=cj.bind,p4=cj.call,d$=d4&&d4.bind(p4),pt=d4?function(e){return e&&d$(p4,e)}:function(e){return e&&function(){return p4.apply(e,arguments)}},pn=function(e){return typeof e=="function"},Wn=function(e){try{return!!e()}catch{return!0}},$n=!Wn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Ac=Function.prototype.call,er=Ac.bind?Ac.bind(Ac):function(){return Ac.apply(Ac,arguments)},wS={}.propertyIsEnumerable,ES=Object.getOwnPropertyDescriptor,p$=ES&&!wS.call({1:2},1)?function(e){var t=ES(this,e);return!!t&&t.enumerable}:wS,Q3={f:p$},Gr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},h$=pt({}.toString),g$=pt("".slice),wu=function(e){return g$(h$(e),8,-1)},Nm=Be.Object,v$=pt("".split),fj=Wn(function(){return!Nm("z").propertyIsEnumerable(0)})?function(e){return wu(e)=="String"?v$(e,""):Nm(e)}:Nm,m$=Be.TypeError,e5=function(e){if(e==null)throw m$("Can't call method on "+e);return e},_o=function(e){return fj(e5(e))},wr=function(e){return typeof e=="object"?e!==null:pn(e)},Zn={},DS=function(e){return pn(e)?e:void 0},nc=function(e,t){return arguments.length<2?DS(Zn[e])||DS(Be[e]):Zn[e]&&Zn[e][t]||Be[e]&&Be[e][t]},Fd=pt({}.isPrototypeOf),Rm=nc("navigator","userAgent")||"",CS=Be.process,SS=Be.Deno,xS=CS&&CS.versions||SS&&SS.version,AS=xS&&xS.v8;AS&&(_0=(mi=AS.split("."))[0]>0&&mi[0]<4?1:+(mi[0]+mi[1])),!_0&&Rm&&(!(mi=Rm.match(/Edge\/(\d+)/))||mi[1]>=74)&&(mi=Rm.match(/Chrome\/(\d+)/))&&(_0=+mi[1]);var kh,dg=_0,lo=!!Object.getOwnPropertySymbols&&!Wn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dg&&dg<41}),t5=lo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",y$=Be.Object,hl=t5?function(e){return typeof e=="symbol"}:function(e){var t=nc("Symbol");return pn(t)&&Fd(t.prototype,y$(e))},b$=Be.String,h4=function(e){try{return b$(e)}catch{return"Object"}},w$=Be.TypeError,n5=function(e){if(pn(e))return e;throw w$(h4(e)+" is not a function")},pg=function(e,t){var n=e[t];return n==null?void 0:n5(n)},E$=Be.TypeError,D$=Object.defineProperty,ea=Be["__core-js_shared__"]||function(e,t){try{D$(Be,e,{value:t,configurable:!0,writable:!0})}catch{Be[e]=t}return t}("__core-js_shared__",{}),us=as(function(e){(e.exports=function(t,n){return ea[t]||(ea[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),C$=Be.Object,Bp=function(e){return C$(e5(e))},S$=pt({}.hasOwnProperty),Ue=Object.hasOwn||function(e,t){return S$(Bp(e),t)},x$=0,A$=Math.random(),O$=pt(1 .toString),hg=function(e){return"Symbol("+(e===void 0?"":e)+")_"+O$(++x$+A$,36)},Oc=us("wks"),Eu=Be.Symbol,OS=Eu&&Eu.for,B$=t5?Eu:Eu&&Eu.withoutSetter||hg,Bn=function(e){if(!Ue(Oc,e)||!lo&&typeof Oc[e]!="string"){var t="Symbol."+e;lo&&Ue(Eu,e)?Oc[e]=Eu[e]:Oc[e]=t5&&OS?OS(t):B$(t)}return Oc[e]},k$=Be.TypeError,F$=Bn("toPrimitive"),T$=function(e,t){if(!wr(e)||hl(e))return e;var n,r=pg(e,F$);if(r){if(n=er(r,e,t),!wr(n)||hl(n))return n;throw k$("Can't convert object to primitive value")}return function(o,i){var a,u;if(pn(a=o.toString)&&!wr(u=er(a,o))||pn(a=o.valueOf)&&!wr(u=er(a,o))||i!=="string")return u;throw E$("Can't convert object to primitive value")}(e,t)},rc=function(e){var t=T$(e,"string");return hl(t)?t:t+""},g4=Be.document,_$=wr(g4)&&wr(g4.createElement),dj=function(e){return _$?g4.createElement(e):{}},pj=!$n&&!Wn(function(){return Object.defineProperty(dj("div"),"a",{get:function(){return 7}}).a!=7}),BS=Object.getOwnPropertyDescriptor,j$=$n?BS:function(e,t){if(e=_o(e),t=rc(t),pj)try{return BS(e,t)}catch{}if(Ue(e,t))return Gr(!er(Q3.f,e,t),e[t])},A1={f:j$},P$=/#|\.prototype\./,kp=function(e,t){var n=N$[I$(e)];return n==L$||n!=R$&&(pn(t)?Wn(t):!!t)},I$=kp.normalize=function(e){return String(e).replace(P$,".").toLowerCase()},N$=kp.data={},R$=kp.NATIVE="N",L$=kp.POLYFILL="P",M$=kp,kS=pt(pt.bind),r5=function(e,t){return n5(e),t===void 0?e:kS?kS(e,t):function(){return e.apply(t,arguments)}},z$=Be.String,$$=Be.TypeError,rr=function(e){if(wr(e))return e;throw $$(z$(e)+" is not an object")},H$=Be.TypeError,FS=Object.defineProperty,U$=$n?FS:function(e,t,n){if(rr(e),t=rc(t),rr(n),pj)try{return FS(e,t,n)}catch{}if("get"in n||"set"in n)throw H$("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ja={f:U$},Tn=$n?function(e,t,n){return ja.f(e,t,Gr(1,n))}:function(e,t,n){return e[t]=n,e},V$=A1.f,W$=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return lj(e,this,arguments)};return t.prototype=e.prototype,t},Go=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?Be:d?Be[c]:(Be[c]||{}).prototype,m=f?Zn:Zn[c]||Tn(Zn,c,{})[c],g=m.prototype;for(o in t)n=!M$(f?o:c+(d?".":"#")+o,e.forced)&&v&&Ue(v,o),a=m[o],n&&(u=e.noTargetGet?(l=V$(v,o))&&l.value:v[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?r5(i,Be):e.wrap&&n?W$(i):p&&pn(i)?pt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Tn(s,"sham",!0),Tn(m,o,s),p&&(Ue(Zn,r=c+"Prototype")||Tn(Zn,r,{}),Tn(Zn[r],o,i),e.real&&g&&!g[o]&&Tn(g,o,i)))},TS=us("keys"),O1=function(e){return TS[e]||(TS[e]=hg(e))},G$=!Wn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),_S=O1("IE_PROTO"),v4=Be.Object,q$=v4.prototype,gg=G$?v4.getPrototypeOf:function(e){var t=Bp(e);if(Ue(t,_S))return t[_S];var n=t.constructor;return pn(n)&&t instanceof n?n.prototype:t instanceof v4?q$:null},K$=Be.String,Y$=Be.TypeError,vg=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=pt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return rr(r),function(i){if(typeof i=="object"||pn(i))return i;throw Y$("Can't set "+K$(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),X$=Math.ceil,J$=Math.floor,o5=function(e){var t=+e;return t!=t||t===0?0:(t>0?J$:X$)(t)},Z$=Math.max,Q$=Math.min,m4=function(e,t){var n=o5(e);return n<0?Z$(n+t,0):Q$(n,t)},eH=Math.min,Fp=function(e){return(t=e.length)>0?eH(o5(t),9007199254740991):0;var t},jS=function(e){return function(t,n,r){var o,i=_o(t),a=Fp(i),u=m4(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},tH={includes:jS(!0),indexOf:jS(!1)},Tp={},nH=tH.indexOf,PS=pt([].push),hj=function(e,t){var n,r=_o(e),o=0,i=[];for(n in r)!Ue(Tp,n)&&Ue(r,n)&&PS(i,n);for(;t.length>o;)Ue(r,n=t[o++])&&(~nH(i,n)||PS(i,n));return i},mg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rH=mg.concat("length","prototype"),oH=Object.getOwnPropertyNames||function(e){return hj(e,rH)},i5={f:oH},j0={f:Object.getOwnPropertySymbols},iH=pt([].concat),aH=nc("Reflect","ownKeys")||function(e){var t=i5.f(rr(e)),n=j0.f;return n?iH(t,n(e)):t},a5=Object.keys||function(e){return hj(e,mg)},uH=$n?Object.defineProperties:function(e,t){rr(e);for(var n,r=_o(t),o=a5(t),i=o.length,a=0;i>a;)ja.f(e,n=o[a++],r[n]);return e},sH=nc("document","documentElement"),gj=O1("IE_PROTO"),Lm=function(){},vj=function(e){return"<script>"+e+"<\/script>"},IS=function(e){e.write(vj("")),e.close();var t=e.parentWindow.Object;return e=null,t},P0=function(){try{kh=new ActiveXObject("htmlfile")}catch{}var e,t;P0=typeof document<"u"?document.domain&&kh?IS(kh):((t=dj("iframe")).style.display="none",sH.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(vj("document.F=Object")),e.close(),e.F):IS(kh);for(var n=mg.length;n--;)delete P0.prototype[mg[n]];return P0()};Tp[gj]=!0;var ri=Object.create||function(e,t){var n;return e!==null?(Lm.prototype=rr(e),n=new Lm,Lm.prototype=null,n[gj]=e):n=P0(),t===void 0?n:uH(n,t)},y4=function(e,t,n){var r=rc(t);r in e?ja.f(e,r,Gr(0,n)):e[r]=n},lH=Be.Array,cH=Math.max,mj=function(e,t,n){for(var r=Fp(e),o=m4(t,r),i=m4(r,r),a=lH(cH(i-o,0)),u=0;o<i;o++,u++)y4(a,u,e[o]);return a.length=u,a},fH=pt("".replace),dH=pt("".split),pH=pt([].join),b4=String(Error("zxcasd").stack),yj=/\n\s*at [^:]*:[^\n]*/,hH=yj.test(b4),gH=/@[^\n]*\n/.test(b4)&&!/zxcasd/.test(b4),vH=function(e,t){if(typeof e!="string")return e;if(hH)for(;t--;)e=fH(e,yj,"");else if(gH)return pH(mj(dH(e,`
- `),t),`
- `);return e},mH=function(e,t){wr(t)&&"cause"in t&&Tn(e,"cause",t.cause)},Qo={},yH=Bn("iterator"),bH=Array.prototype,bj={};bj[Bn("toStringTag")]="z";var u5=String(bj)==="[object z]",wH=Bn("toStringTag"),EH=Be.Object,DH=wu(function(){return arguments}())=="Arguments",_p=u5?wu:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=EH(e),wH))=="string"?n:DH?wu(t):(r=wu(t))=="Object"&&pn(t.callee)?"Arguments":r},CH=Bn("iterator"),NS=function(e){if(e!=null)return pg(e,CH)||pg(e,"@@iterator")||Qo[_p(e)]},SH=Be.TypeError,RS=function(e,t,n){var r,o;rr(e);try{if(!(r=pg(e,"return"))){if(t==="throw")throw n;return n}r=er(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return rr(r),n},xH=Be.TypeError,I0=function(e,t){this.stopped=e,this.result=t},LS=I0.prototype,AH=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=r5(t,c),m=function(y){return r&&RS(r,"normal",y),new I0(!0,y)},g=function(y){return f?(rr(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=e;else{if(!(o=NS(e)))throw xH(h4(e)+" is not iterable");if(function(y){return y!==void 0&&(Qo.Array===y||bH[yH]===y)}(o)){for(i=0,a=Fp(e);a>i;i++)if((u=g(e[i]))&&Fd(LS,u))return u;return new I0(!1)}r=function(y,h){var b=arguments.length<2?NS(y):h;if(n5(b))return rr(er(b,y));throw SH(h4(y)+" is not iterable")}(e,o)}for(s=r.next;!(l=er(s,r)).done;){try{u=g(l.value)}catch(y){RS(r,"throw",y)}if(typeof u=="object"&&u&&Fd(LS,u))return u}return new I0(!1)},OH=Be.String,Td=function(e){if(_p(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return OH(e)},BH=function(e,t){return e===void 0?arguments.length<2?"":t:Td(e)},kH=!Wn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Gr(1,7)),e.stack!==7)}),FH=Bn("toStringTag"),yg=Be.Error,TH=[].push,_d=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Fd(Mm,this);vg?n=vg(new yg(void 0),o?gg(this):Mm):(n=o?this:ri(Mm),Tn(n,FH,"Error")),Tn(n,"message",BH(t,"")),kH&&Tn(n,"stack",vH(n.stack,1)),mH(n,r);var i=[];return AH(e,TH,{that:i}),Tn(n,"errors",i),n};vg?vg(_d,yg):function(e,t){for(var n=aH(t),r=ja.f,o=A1.f,i=0;i<n.length;i++){var a=n[i];Ue(e,a)||r(e,a,o(t,a))}}(_d,yg);var Mm=_d.prototype=ri(yg.prototype,{constructor:Gr(1,_d),message:Gr(1,""),name:Gr(1,"AggregateError")});Go({global:!0},{AggregateError:_d});var _H=pt(Function.toString);pn(ea.inspectSource)||(ea.inspectSource=function(e){return _H(e)});var bg,rd,wg,wj=ea.inspectSource,MS=Be.WeakMap,jH=pn(MS)&&/native code/.test(wj(MS)),w4=Be.TypeError,PH=Be.WeakMap;if(jH||ea.state){var Wa=ea.state||(ea.state=new PH),IH=pt(Wa.get),zS=pt(Wa.has),NH=pt(Wa.set);bg=function(e,t){if(zS(Wa,e))throw new w4("Object already initialized");return t.facade=e,NH(Wa,e,t),t},rd=function(e){return IH(Wa,e)||{}},wg=function(e){return zS(Wa,e)}}else{var Cs=O1("state");Tp[Cs]=!0,bg=function(e,t){if(Ue(e,Cs))throw new w4("Object already initialized");return t.facade=e,Tn(e,Cs,t),t},rd=function(e){return Ue(e,Cs)?e[Cs]:{}},wg=function(e){return Ue(e,Cs)}}var Ki,$S,HS,oc={set:bg,get:rd,has:wg,enforce:function(e){return wg(e)?rd(e):bg(e,{})},getterFor:function(e){return function(t){var n;if(!wr(t)||(n=rd(t)).type!==e)throw w4("Incompatible receiver, "+e+" required");return n}}},Ej=Function.prototype,RH=$n&&Object.getOwnPropertyDescriptor,zm=Ue(Ej,"name"),LH={EXISTS:zm,PROPER:zm&&(function(){}).name==="something",CONFIGURABLE:zm&&(!$n||$n&&RH(Ej,"name").configurable)},Eg=function(e,t,n,r){Tn(e,t,n)},E4=Bn("iterator"),Dj=!1;[].keys&&("next"in(HS=[].keys())?($S=gg(gg(HS)))!==Object.prototype&&(Ki=$S):Dj=!0);var MH=Ki==null||Wn(function(){var e={};return Ki[E4].call(e)!==e});Ki=MH?{}:ri(Ki),pn(Ki[E4])||Eg(Ki,E4,function(){return this});var Cj={IteratorPrototype:Ki,BUGGY_SAFARI_ITERATORS:Dj},zH=u5?{}.toString:function(){return"[object "+_p(this)+"]"},$H=ja.f,US=Bn("toStringTag"),Dg=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ue(o,US)||$H(o,US,{configurable:!0,value:t}),r&&!u5&&Tn(o,"toString",zH)}},HH=Cj.IteratorPrototype,UH=function(){return this},VH=LH.PROPER,$m=Cj.BUGGY_SAFARI_ITERATORS,WH=Bn("iterator"),GH=function(){return this},Sj=function(e,t,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=ri(HH,{next:Gr(+!b,h)}),Dg(g,w,!1,!0),Qo[w]=UH})(n,t,r);var u,s,l=function(g){if(g===o&&v)return v;if(!$m&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[WH]||d["@@iterator"]||o&&d[o],v=!$m&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=gg(m.call(new e)))!==Object.prototype&&u.next&&(Dg(u,c,!0,!0),Qo[c]=GH),VH&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return er(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Go({target:t,proto:!0,forced:$m||f},s)),Qo[t]=v,s},qH=oc.set,KH=oc.getterFor("Array Iterator");Sj(Array,"Array",function(e,t){qH(this,{type:"Array Iterator",target:_o(e),index:0,kind:t})},function(){var e=KH(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Qo.Arguments=Qo.Array;var YH=pt("".charAt),VS=pt("".charCodeAt),XH=pt("".slice),WS=function(e){return function(t,n){var r,o,i=Td(e5(t)),a=o5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=VS(i,a))<55296||r>56319||a+1===u||(o=VS(i,a+1))<56320||o>57343?e?YH(i,a):r:e?XH(i,a,a+2):o-56320+(r-55296<<10)+65536}},JH={codeAt:WS(!1),charAt:WS(!0)}.charAt,ZH=oc.set,QH=oc.getterFor("String Iterator");Sj(String,"String",function(e){ZH(this,{type:"String Iterator",string:Td(e),index:0})},function(){var e,t=QH(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=JH(n,r),t.index+=e.length,{value:e,done:!1})});var eU=Zn.AggregateError,GS=Bn("toStringTag");for(var Hm 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 qS=Be[Hm],Um=qS&&qS.prototype;Um&&_p(Um)!==GS&&Tn(Um,GS,Hm),Qo[Hm]=Qo.Array}var yi,N0,tU=eU,Fh=function(e){return e&&e.Math==Math&&e},Ee=Fh(typeof globalThis=="object"&&globalThis)||Fh(typeof window=="object"&&window)||Fh(typeof self=="object"&&self)||Fh(typeof at=="object"&&at)||function(){return this}()||Function("return this")(),sn=function(e){try{return!!e()}catch{return!0}},xo=!sn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bc=Function.prototype.call,dn=Bc.bind?Bc.bind(Bc):function(){return Bc.apply(Bc,arguments)},KS={}.propertyIsEnumerable,YS=Object.getOwnPropertyDescriptor,nU=YS&&!KS.call({1:2},1)?function(e){var t=YS(this,e);return!!t&&t.enumerable}:KS,rU={f:nU},ta=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},xj=Function.prototype,D4=xj.bind,C4=xj.call,oU=D4&&D4.bind(C4),nt=D4?function(e){return e&&oU(C4,e)}:function(e){return e&&function(){return C4.apply(e,arguments)}},iU=nt({}.toString),aU=nt("".slice),Du=function(e){return aU(iU(e),8,-1)},Vm=Ee.Object,uU=nt("".split),Aj=sn(function(){return!Vm("z").propertyIsEnumerable(0)})?function(e){return Du(e)=="String"?uU(e,""):Vm(e)}:Vm,sU=Ee.TypeError,B1=function(e){if(e==null)throw sU("Can't call method on "+e);return e},ic=function(e){return Aj(B1(e))},en=function(e){return typeof e=="function"},vo=function(e){return typeof e=="object"?e!==null:en(e)},lU=function(e){return en(e)?e:void 0},jp=function(e,t){return arguments.length<2?lU(Ee[e]):Ee[e]&&Ee[e][t]},Cg=nt({}.isPrototypeOf),Wm=jp("navigator","userAgent")||"",XS=Ee.process,JS=Ee.Deno,ZS=XS&&XS.versions||JS&&JS.version,QS=ZS&&ZS.v8;QS&&(N0=(yi=QS.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!N0&&Wm&&(!(yi=Wm.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=Wm.match(/Chrome\/(\d+)/))&&(N0=+yi[1]);var ex=N0,S4=!!Object.getOwnPropertySymbols&&!sn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ex&&ex<41}),s5=S4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",cU=Ee.Object,x4=s5?function(e){return typeof e=="symbol"}:function(e){var t=jp("Symbol");return en(t)&&Cg(t.prototype,cU(e))},fU=Ee.String,A4=function(e){try{return fU(e)}catch{return"Object"}},dU=Ee.TypeError,l5=function(e){if(en(e))return e;throw dU(A4(e)+" is not a function")},jd=function(e,t){var n=e[t];return n==null?void 0:l5(n)},pU=Ee.TypeError,hU=Object.defineProperty,c5=function(e,t){try{hU(Ee,e,{value:t,configurable:!0,writable:!0})}catch{Ee[e]=t}return t},na=Ee["__core-js_shared__"]||c5("__core-js_shared__",{}),f5=as(function(e){(e.exports=function(t,n){return na[t]||(na[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gU=Ee.Object,d5=function(e){return gU(B1(e))},vU=nt({}.hasOwnProperty),Hn=Object.hasOwn||function(e,t){return vU(d5(e),t)},mU=0,yU=Math.random(),bU=nt(1 .toString),Oj=function(e){return"Symbol("+(e===void 0?"":e)+")_"+bU(++mU+yU,36)},kc=f5("wks"),Cu=Ee.Symbol,tx=Cu&&Cu.for,wU=s5?Cu:Cu&&Cu.withoutSetter||Oj,Pn=function(e){if(!Hn(kc,e)||!S4&&typeof kc[e]!="string"){var t="Symbol."+e;S4&&Hn(Cu,e)?kc[e]=Cu[e]:kc[e]=s5&&tx?tx(t):wU(t)}return kc[e]},EU=Ee.TypeError,DU=Pn("toPrimitive"),CU=function(e,t){if(!vo(e)||x4(e))return e;var n,r=jd(e,DU);if(r){if(n=dn(r,e,t),!vo(n)||x4(n))return n;throw EU("Can't convert object to primitive value")}return function(o,i){var a,u;if(en(a=o.toString)&&!vo(u=dn(a,o))||en(a=o.valueOf)&&!vo(u=dn(a,o))||i!=="string")return u;throw pU("Can't convert object to primitive value")}(e,t)},p5=function(e){var t=CU(e,"string");return x4(t)?t:t+""},O4=Ee.document,SU=vo(O4)&&vo(O4.createElement),h5=function(e){return SU?O4.createElement(e):{}},Bj=!xo&&!sn(function(){return Object.defineProperty(h5("div"),"a",{get:function(){return 7}}).a!=7}),nx=Object.getOwnPropertyDescriptor,xU=xo?nx:function(e,t){if(e=ic(e),t=p5(t),Bj)try{return nx(e,t)}catch{}if(Hn(e,t))return ta(!dn(rU.f,e,t),e[t])},g5={f:xU},AU=Ee.String,OU=Ee.TypeError,or=function(e){if(vo(e))return e;throw OU(AU(e)+" is not an object")},BU=Ee.TypeError,rx=Object.defineProperty,kU=xo?rx:function(e,t,n){if(or(e),t=p5(t),or(n),Bj)try{return rx(e,t,n)}catch{}if("get"in n||"set"in n)throw BU("Accessors not supported");return"value"in n&&(e[t]=n.value),e},ac={f:kU},Mn=xo?function(e,t,n){return ac.f(e,t,ta(1,n))}:function(e,t,n){return e[t]=n,e},FU=nt(Function.toString);en(na.inspectSource)||(na.inspectSource=function(e){return FU(e)});var Sg,od,xg,v5=na.inspectSource,ox=Ee.WeakMap,TU=en(ox)&&/native code/.test(v5(ox)),ix=f5("keys"),m5=function(e){return ix[e]||(ix[e]=Oj(e))},y5={},B4=Ee.TypeError,_U=Ee.WeakMap;if(TU||na.state){var Ga=na.state||(na.state=new _U),jU=nt(Ga.get),ax=nt(Ga.has),PU=nt(Ga.set);Sg=function(e,t){if(ax(Ga,e))throw new B4("Object already initialized");return t.facade=e,PU(Ga,e,t),t},od=function(e){return jU(Ga,e)||{}},xg=function(e){return ax(Ga,e)}}else{var Ss=m5("state");y5[Ss]=!0,Sg=function(e,t){if(Hn(e,Ss))throw new B4("Object already initialized");return t.facade=e,Mn(e,Ss,t),t},od=function(e){return Hn(e,Ss)?e[Ss]:{}},xg=function(e){return Hn(e,Ss)}}var Vu={set:Sg,get:od,has:xg,enforce:function(e){return xg(e)?od(e):Sg(e,{})},getterFor:function(e){return function(t){var n;if(!vo(t)||(n=od(t)).type!==e)throw B4("Incompatible receiver, "+e+" required");return n}}},kj=Function.prototype,IU=xo&&Object.getOwnPropertyDescriptor,Gm=Hn(kj,"name"),b5={EXISTS:Gm,PROPER:Gm&&(function(){}).name==="something",CONFIGURABLE:Gm&&(!xo||xo&&IU(kj,"name").configurable)},Wu=as(function(e){var t=b5.CONFIGURABLE,n=Vu.get,r=Vu.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;en(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Hn(u,"name")||t&&u.name!==p)&&Mn(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ee?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Mn(i,a,u)):f?i[a]=u:c5(a,u)})(Function.prototype,"toString",function(){return en(this)&&n(this).source||v5(this)})}),NU=Math.ceil,RU=Math.floor,w5=function(e){var t=+e;return t!=t||t===0?0:(t>0?RU:NU)(t)},LU=Math.max,MU=Math.min,k4=function(e,t){var n=w5(e);return n<0?LU(n+t,0):MU(n,t)},zU=Math.min,Fj=function(e){return e>0?zU(w5(e),9007199254740991):0},k1=function(e){return Fj(e.length)},ux=function(e){return function(t,n,r){var o,i=ic(t),a=k1(i),u=k4(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},$U={includes:ux(!0),indexOf:ux(!1)}.indexOf,sx=nt([].push),Tj=function(e,t){var n,r=ic(e),o=0,i=[];for(n in r)!Hn(y5,n)&&Hn(r,n)&&sx(i,n);for(;t.length>o;)Hn(r,n=t[o++])&&(~$U(i,n)||sx(i,n));return i},Ag=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],HU=Ag.concat("length","prototype"),UU=Object.getOwnPropertyNames||function(e){return Tj(e,HU)},VU={f:UU},WU={f:Object.getOwnPropertySymbols},GU=nt([].concat),qU=jp("Reflect","ownKeys")||function(e){var t=VU.f(or(e)),n=WU.f;return n?GU(t,n(e)):t},_j=function(e,t){for(var n=qU(t),r=ac.f,o=g5.f,i=0;i<n.length;i++){var a=n[i];Hn(e,a)||r(e,a,o(t,a))}},KU=/#|\.prototype\./,Pp=function(e,t){var n=XU[YU(e)];return n==ZU||n!=JU&&(en(t)?sn(t):!!t)},YU=Pp.normalize=function(e){return String(e).replace(KU,".").toLowerCase()},XU=Pp.data={},JU=Pp.NATIVE="N",ZU=Pp.POLYFILL="P",QU=Pp,eV=g5.f,Ip=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ee:l?Ee[u]||c5(u,{}):(Ee[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=eV(n,r))&&a.value:n[r],!QU(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;_j(i,o)}(e.sham||o&&o.sham)&&Mn(i,"sham",!0),Wu(n,r,i,e)}},jj={};jj[Pn("toStringTag")]="z";var Th,E5=String(jj)==="[object z]",tV=Pn("toStringTag"),nV=Ee.Object,rV=Du(function(){return arguments}())=="Arguments",F1=E5?Du:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=nV(e),tV))=="string"?n:rV?Du(t):(r=Du(t))=="Object"&&en(t.callee)?"Arguments":r},oV=Ee.String,Su=function(e){if(F1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oV(e)},iV=function(){var e=or(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},D5=Ee.RegExp,C5=sn(function(){var e=D5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),aV=C5||sn(function(){return!D5("a","y").sticky}),uV=C5||sn(function(){var e=D5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),sV={BROKEN_CARET:uV,MISSED_STICKY:aV,UNSUPPORTED_Y:C5},lV=Object.keys||function(e){return Tj(e,Ag)},cV=xo?Object.defineProperties:function(e,t){or(e);for(var n,r=ic(t),o=lV(t),i=o.length,a=0;i>a;)ac.f(e,n=o[a++],r[n]);return e},fV=jp("document","documentElement"),Pj=m5("IE_PROTO"),qm=function(){},Ij=function(e){return"<script>"+e+"<\/script>"},lx=function(e){e.write(Ij("")),e.close();var t=e.parentWindow.Object;return e=null,t},R0=function(){try{Th=new ActiveXObject("htmlfile")}catch{}var e,t;R0=typeof document<"u"?document.domain&&Th?lx(Th):((t=h5("iframe")).style.display="none",fV.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Ij("document.F=Object")),e.close(),e.F):lx(Th);for(var n=Ag.length;n--;)delete R0.prototype[Ag[n]];return R0()};y5[Pj]=!0;var cx,Km,Np=Object.create||function(e,t){var n;return e!==null?(qm.prototype=or(e),n=new qm,qm.prototype=null,n[Pj]=e):n=R0(),t===void 0?n:cV(n,t)},dV=Ee.RegExp,pV=sn(function(){var e=dV(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),hV=Ee.RegExp,gV=sn(function(){var e=hV("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),vV=Vu.get,mV=f5("native-string-replace",String.prototype.replace),Og=RegExp.prototype.exec,F4=Og,yV=nt("".charAt),bV=nt("".indexOf),wV=nt("".replace),Ym=nt("".slice),Xm=(Km=/b*/g,dn(Og,cx=/a/,"a"),dn(Og,Km,"a"),cx.lastIndex!==0||Km.lastIndex!==0),fx=sV.BROKEN_CARET,Jm=/()??/.exec("")[1]!==void 0;(Xm||Jm||fx||pV||gV)&&(F4=function(e){var t,n,r,o,i,a,u,s=this,l=vV(s),c=Su(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=dn(F4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=fx&&s.sticky,v=dn(iV,s),m=s.source,g=0,y=c;if(p&&(v=wV(v,"y",""),bV(v,"g")===-1&&(v+="g"),y=Ym(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&yV(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Jm&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Xm&&(r=s.lastIndex),o=dn(Og,p?n:s,y),p?o?(o.input=Ym(o.input,g),o[0]=Ym(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Xm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Jm&&o&&o.length>1&&dn(mV,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=Np(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Bg=F4;Ip({target:"RegExp",proto:!0,forced:/./.exec!==Bg},{exec:Bg});var EV=Pn("species"),dx=RegExp.prototype,DV=nt("".charAt),px=nt("".charCodeAt),CV=nt("".slice),hx=function(e){return function(t,n){var r,o,i=Su(B1(t)),a=w5(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=px(i,a))<55296||r>56319||a+1===u||(o=px(i,a+1))<56320||o>57343?e?DV(i,a):r:e?CV(i,a,a+2):o-56320+(r-55296<<10)+65536}},Nj={codeAt:hx(!1),charAt:hx(!0)},SV=Nj.charAt,xV=function(e,t,n){return t+(n?SV(e,t).length:1)},AV=Ee.TypeError,gx=function(e,t){var n=e.exec;if(en(n)){var r=dn(n,e,t);return r!==null&&or(r),r}if(Du(e)==="RegExp")return dn(Bg,e,t);throw AV("RegExp#exec called on incompatible receiver")};(function(e,t,n,r){var o=Pn(e),i=!sn(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!sn(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[EV]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=nt(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=nt(l),m=c.exec;return m===Bg||m===dx.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Wu(String.prototype,e,s[0]),Wu(dx,o,s[1])}})("match",function(e,t,n){return[function(r){var o=B1(this),i=r==null?void 0:jd(r,e);return i?dn(i,r,o):new RegExp(r)[e](Su(o))},function(r){var o=or(this),i=Su(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return gx(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=gx(o,i))!==null;){var f=Su(s[0]);l[c]=f,f===""&&(o.lastIndex=xV(i,Fj(o.lastIndex),u)),c++}return c===0?null:l}]}),Ip({global:!0},{globalThis:Ee});var OV=!sn(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),vx=m5("IE_PROTO"),T4=Ee.Object,BV=T4.prototype,Pd=OV?T4.getPrototypeOf:function(e){var t=d5(e);if(Hn(t,vx))return t[vx];var n=t.constructor;return en(n)&&t instanceof n?n.prototype:t instanceof T4?BV:null},kV=Ee.String,FV=Ee.TypeError,Ol=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return or(r),function(i){if(typeof i=="object"||en(i))return i;throw FV("Can't set "+kV(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),TV=Ee.Array,_V=Math.max,jV=nt("".replace),PV=nt("".split),IV=nt([].join),_4=String(Error("zxcasd").stack),Rj=/\n\s*at [^:]*:[^\n]*/,NV=Rj.test(_4),RV=/@[^\n]*\n/.test(_4)&&!/zxcasd/.test(_4),LV=function(e,t){if(typeof e!="string")return e;if(NV)for(;t--;)e=jV(e,Rj,"");else if(RV)return IV(function(n,r,o){for(var i,a,u,s,l=k1(n),c=k4(r,l),f=k4(l,l),d=TV(_V(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=n[c],s=void 0,(s=p5(a))in i?ac.f(i,s,ta(0,u)):i[s]=u;return d.length=p,d}(PV(e,`
- `),t),`
- `);return e},MV=function(e,t){vo(t)&&"cause"in t&&Mn(e,"cause",t.cause)},mx=nt(nt.bind),Lj=function(e,t){return l5(e),t===void 0?e:mx?mx(e,t):function(){return e.apply(t,arguments)}},Bl={},zV=Pn("iterator"),$V=Array.prototype,HV=Pn("iterator"),yx=function(e){if(e!=null)return jd(e,HV)||jd(e,"@@iterator")||Bl[F1(e)]},UV=Ee.TypeError,bx=function(e,t,n){var r,o;or(e);try{if(!(r=jd(e,"return"))){if(t==="throw")throw n;return n}r=dn(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return or(r),n},VV=Ee.TypeError,L0=function(e,t){this.stopped=e,this.result=t},wx=L0.prototype,WV=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Lj(t,c),m=function(y){return r&&bx(r,"normal",y),new L0(!0,y)},g=function(y){return f?(or(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=e;else{if(!(o=yx(e)))throw VV(A4(e)+" is not iterable");if(function(y){return y!==void 0&&(Bl.Array===y||$V[zV]===y)}(o)){for(i=0,a=k1(e);a>i;i++)if((u=g(e[i]))&&Cg(wx,u))return u;return new L0(!1)}r=function(y,h){var b=arguments.length<2?yx(y):h;if(l5(b))return or(dn(b,y));throw UV(A4(y)+" is not iterable")}(e,o)}for(s=r.next;!(l=dn(s,r)).done;){try{u=g(l.value)}catch(y){bx(r,"throw",y)}if(typeof u=="object"&&u&&Cg(wx,u))return u}return new L0(!1)},GV=function(e,t){return e===void 0?arguments.length<2?"":t:Su(e)},qV=!sn(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ta(1,7)),e.stack!==7)}),KV=Pn("toStringTag"),kg=Ee.Error,YV=[].push,Id=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Cg(Zm,this);Ol?n=Ol(new kg(void 0),o?Pd(this):Zm):(n=o?this:Np(Zm),Mn(n,KV,"Error")),Mn(n,"message",GV(t,"")),qV&&Mn(n,"stack",LV(n.stack,1)),MV(n,r);var i=[];return WV(e,YV,{that:i}),Mn(n,"errors",i),n};Ol?Ol(Id,kg):_j(Id,kg);var Zm=Id.prototype=Np(kg.prototype,{constructor:ta(1,Id),message:ta(1,""),name:ta(1,"AggregateError")});Ip({global:!0},{AggregateError:Id});var j4=Pn("unscopables"),P4=Array.prototype;P4[j4]==null&&ac.f(P4,j4,{configurable:!0,value:Np(null)});var xu,Ex,Dx,Qm=function(e){P4[j4][e]=!0},I4=Pn("iterator"),Mj=!1;[].keys&&("next"in(Dx=[].keys())?(Ex=Pd(Pd(Dx)))!==Object.prototype&&(xu=Ex):Mj=!0);var XV=xu==null||sn(function(){var e={};return xu[I4].call(e)!==e});XV&&(xu={}),en(xu[I4])||Wu(xu,I4,function(){return this});var S5={IteratorPrototype:xu,BUGGY_SAFARI_ITERATORS:Mj},JV=ac.f,Cx=Pn("toStringTag"),Sx=function(e,t,n){e&&!Hn(e=n?e:e.prototype,Cx)&&JV(e,Cx,{configurable:!0,value:t})},ZV=S5.IteratorPrototype,QV=function(){return this},eW=b5.PROPER,tW=b5.CONFIGURABLE,xx=S5.IteratorPrototype,ey=S5.BUGGY_SAFARI_ITERATORS,Fc=Pn("iterator"),nW=function(){return this},zj=function(e,t,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Np(ZV,{next:ta(+!b,h)}),Sx(g,w,!1),Bl[w]=QV})(n,t,r);var u,s,l=function(g){if(g===o&&v)return v;if(!ey&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Fc]||d["@@iterator"]||o&&d[o],v=!ey&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=Pd(m.call(new e)))!==Object.prototype&&u.next&&(Pd(u)!==xx&&(Ol?Ol(u,xx):en(u[Fc])||Wu(u,Fc,nW)),Sx(u,c,!0)),eW&&o=="values"&&p&&p.name!=="values"&&(tW?Mn(d,"name","values"):(f=!0,v=function(){return dn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ip({target:t,proto:!0,forced:ey||f},s)),d[Fc]!==v&&Wu(d,Fc,v,{name:o}),Bl[t]=v,s},rW=Vu.set,oW=Vu.getterFor("Array Iterator"),qf=zj(Array,"Array",function(e,t){rW(this,{type:"Array Iterator",target:ic(e),index:0,kind:t})},function(){var e=oW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Bl.Arguments=Bl.Array,Qm("keys"),Qm("values"),Qm("entries");var iW=Nj.charAt,aW=Vu.set,uW=Vu.getterFor("String Iterator");zj(String,"String",function(e){aW(this,{type:"String Iterator",string:Su(e),index:0})},function(){var e,t=uW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iW(n,r),t.index+=e.length,{value:e,done:!1})});var ty,Fg={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},ny=h5("span").classList,Ax=ny&&ny.constructor&&ny.constructor.prototype,$j=Ax===Object.prototype?void 0:Ax,ry=Pn("iterator"),Ox=Pn("toStringTag"),oy=qf.values,Hj=function(e,t){if(e){if(e[ry]!==oy)try{Mn(e,ry,oy)}catch{e[ry]=oy}if(e[Ox]||Mn(e,Ox,t),Fg[t]){for(var n in qf)if(e[n]!==qf[n])try{Mn(e,n,qf[n])}catch{e[n]=qf[n]}}}};for(var iy in Fg)Hj(Ee[iy]&&Ee[iy].prototype,iy);Hj($j,"DOMTokenList"),(typeof global>"u"||global&&!((ty=global.navigator)===null||ty===void 0)&&ty.userAgent.match("QQBrowser"))&&(sW(),lW());function sW(){typeof globalThis>"u"&&(window.globalThis=window)}function lW(){tU===void 0&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Bx,Tg=Array.isArray||function(e){return wu(e)=="Array"},Uj=function(){},cW=[],Vj=nc("Reflect","construct"),x5=/^\s*(?:class|function)\b/,fW=pt(x5.exec),dW=!x5.exec(Uj),Tc=function(e){if(!pn(e))return!1;try{return Vj(Uj,cW,e),!0}catch{return!1}},pW=!Vj||Wn(function(){var e;return Tc(Tc.call)||!Tc(Object)||!Tc(function(){e=!0})||e})?function(e){if(!pn(e))return!1;switch(_p(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dW||!!fW(x5,wj(e))}:Tc,hW=Bn("species"),kx=Be.Array,Wj=function(e,t){return new(function(n){var r;return Tg(n)&&(r=n.constructor,(pW(r)&&(r===kx||Tg(r.prototype))||wr(r)&&(r=r[hW])===null)&&(r=void 0)),r===void 0?kx:r}(e))(t===0?0:t)},gW=Bn("species"),Gj=Bn("isConcatSpreadable"),Fx=Be.TypeError,vW=dg>=51||!Wn(function(){var e=[];return e[Gj]=!1,e.concat()[0]!==e}),mW=(Bx="concat",dg>=51||!Wn(function(){var e=[];return(e.constructor={})[gW]=function(){return{foo:1}},e[Bx](Boolean).foo!==1})),yW=function(e){if(!wr(e))return!1;var t=e[Gj];return t!==void 0?!!t:Tg(e)};Go({target:"Array",proto:!0,forced:!vW||!mW},{concat:function(e){var t,n,r,o,i,a=Bp(this),u=Wj(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(yW(i=t===-1?a:arguments[t])){if(s+(o=Fp(i))>9007199254740991)throw Fx("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&y4(u,s,i[n])}else{if(s>=9007199254740991)throw Fx("Maximum allowed index exceeded");y4(u,s++,i)}return u.length=s,u}});var Tx=i5.f,_x=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],qj={f:function(e){return _x&&wu(e)=="Window"?function(t){try{return Tx(t)}catch{return mj(_x)}}(e):Tx(_o(e))}},bW=pt([].slice),A5={f:Bn},wW=ja.f,jt=function(e){var t=Zn.Symbol||(Zn.Symbol={});Ue(t,e)||wW(t,e,{value:A5.f(e)})},jx=pt([].push),bi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Bp(s),m=fj(v),g=r5(l,c),y=Fp(m),h=0,b=f||Wj,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:jx(w,d)}else switch(e){case 4:return!1;case 7:jx(w,d)}return i?-1:r||o?o:w}},T1={forEach:bi(0),map:bi(1),filter:bi(2),some:bi(3),every:bi(4),find:bi(5),findIndex:bi(6),filterReject:bi(7)}.forEach,Rn=O1("hidden"),Px=Bn("toPrimitive"),EW=oc.set,Ix=oc.getterFor("Symbol"),$r=Object.prototype,Vi=Be.Symbol,Yi=Vi&&Vi.prototype,Nx=Be.TypeError,ay=Be.QObject,_c=nc("JSON","stringify"),Kj=A1.f,Wi=ja.f,Yj=qj.f,DW=Q3.f,Xj=pt([].push),oi=us("symbols"),Rp=us("op-symbols"),uy=us("string-to-symbol-registry"),sy=us("symbol-to-string-registry"),CW=us("wks"),ly=!ay||!ay.prototype||!ay.prototype.findChild,N4=$n&&Wn(function(){return ri(Wi({},"a",{get:function(){return Wi(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=Kj($r,t);r&&delete $r[t],Wi(e,t,n),r&&e!==$r&&Wi($r,t,r)}:Wi,cy=function(e,t){var n=oi[e]=ri(Yi);return EW(n,{type:"Symbol",tag:e,description:t}),$n||(n.description=t),n},_g=function(e,t,n){e===$r&&_g(Rp,t,n),rr(e);var r=rc(t);return rr(n),Ue(oi,r)?(n.enumerable?(Ue(e,Rn)&&e[Rn][r]&&(e[Rn][r]=!1),n=ri(n,{enumerable:Gr(0,!1)})):(Ue(e,Rn)||Wi(e,Rn,Gr(1,{})),e[Rn][r]=!0),N4(e,r,n)):Wi(e,r,n)},Rx=function(e,t){rr(e);var n=_o(t),r=a5(n).concat(R4(n));return T1(r,function(o){$n&&!er(Jj,n,o)||_g(e,o,n[o])}),e},Jj=function(e){var t=rc(e),n=er(DW,this,t);return!(this===$r&&Ue(oi,t)&&!Ue(Rp,t))&&(!(n||!Ue(this,t)||!Ue(oi,t)||Ue(this,Rn)&&this[Rn][t])||n)},Lx=function(e,t){var n=_o(e),r=rc(t);if(n!==$r||!Ue(oi,r)||Ue(Rp,r)){var o=Kj(n,r);return!o||!Ue(oi,r)||Ue(n,Rn)&&n[Rn][r]||(o.enumerable=!0),o}},Mx=function(e){var t=Yj(_o(e)),n=[];return T1(t,function(r){Ue(oi,r)||Ue(Tp,r)||Xj(n,r)}),n},R4=function(e){var t=e===$r,n=Yj(t?Rp:_o(e)),r=[];return T1(n,function(o){!Ue(oi,o)||t&&!Ue($r,o)||Xj(r,oi[o])}),r};if(lo||(Yi=(Vi=function(){if(Fd(Yi,this))throw Nx("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Td(arguments[0]):void 0,t=hg(e),n=function(r){this===$r&&er(n,Rp,r),Ue(this,Rn)&&Ue(this[Rn],t)&&(this[Rn][t]=!1),N4(this,t,Gr(1,r))};return $n&&ly&&N4($r,t,{configurable:!0,set:n}),cy(t,e)}).prototype,Eg(Yi,"toString",function(){return Ix(this).tag}),Eg(Vi,"withoutSetter",function(e){return cy(hg(e),e)}),Q3.f=Jj,ja.f=_g,A1.f=Lx,i5.f=qj.f=Mx,j0.f=R4,A5.f=function(e){return cy(Bn(e),e)},$n&&Wi(Yi,"description",{configurable:!0,get:function(){return Ix(this).description}})),Go({global:!0,wrap:!0,forced:!lo,sham:!lo},{Symbol:Vi}),T1(a5(CW),function(e){jt(e)}),Go({target:"Symbol",stat:!0,forced:!lo},{for:function(e){var t=Td(e);if(Ue(uy,t))return uy[t];var n=Vi(t);return uy[t]=n,sy[n]=t,n},keyFor:function(e){if(!hl(e))throw Nx(e+" is not a symbol");if(Ue(sy,e))return sy[e]},useSetter:function(){ly=!0},useSimple:function(){ly=!1}}),Go({target:"Object",stat:!0,forced:!lo,sham:!$n},{create:function(e,t){return t===void 0?ri(e):Rx(ri(e),t)},defineProperty:_g,defineProperties:Rx,getOwnPropertyDescriptor:Lx}),Go({target:"Object",stat:!0,forced:!lo},{getOwnPropertyNames:Mx,getOwnPropertySymbols:R4}),Go({target:"Object",stat:!0,forced:Wn(function(){j0.f(1)})},{getOwnPropertySymbols:function(e){return j0.f(Bp(e))}}),_c){var SW=!lo||Wn(function(){var e=Vi();return _c([e])!="[null]"||_c({a:e})!="{}"||_c(Object(e))!="{}"});Go({target:"JSON",stat:!0,forced:SW},{stringify:function(e,t,n){var r=bW(arguments),o=t;if((wr(t)||e!==void 0)&&!hl(e))return Tg(t)||(t=function(i,a){if(pn(o)&&(a=er(o,this,i,a)),!hl(a))return a}),r[1]=t,lj(_c,null,r)}})}if(!Yi[Px]){var xW=Yi.valueOf;Eg(Yi,Px,function(e){return er(xW,this)})}Dg(Vi,"Symbol"),Tp[Rn]=!0,jt("asyncIterator"),jt("hasInstance"),jt("isConcatSpreadable"),jt("iterator"),jt("match"),jt("matchAll"),jt("replace"),jt("search"),jt("species"),jt("split"),jt("toPrimitive"),jt("toStringTag"),jt("unscopables"),Dg(Be.JSON,"JSON",!0);var AW=Zn.Symbol;jt("asyncDispose"),jt("dispose"),jt("matcher"),jt("metadata"),jt("observable"),jt("patternMatch"),jt("replaceAll");var _h=AW,OW=A5.f("iterator"),BW=as(function(e){function t(n){return typeof _h=="function"&&typeof OW=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof _h=="function"&&r.constructor===_h&&r!==_h.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),kW=c$(BW),Zj=g5.f,FW=sn(function(){Zj(1)});if(Ip({target:"Object",stat:!0,forced:!xo||FW,sham:!xo},{getOwnPropertyDescriptor:function(e,t){return Zj(ic(e),t)}}),(typeof global>"u"?"undefined":kW(global))==="object"){var TW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!TW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),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 zx(e){return Object.prototype.toString.call(e)==="[object Object]"}function Dn(e){var t,n;return zx(e)!==!1&&((t=e.constructor)===void 0||zx(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function zr(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gu(e){return!!e&&!!e[ir]}function qu(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===RW}(e)||Array.isArray(e)||!!e[Kx]||!!e.constructor[Kx]||O5(e)||B5(e))}function Nd(e,t,n){n===void 0&&(n=!1),kl(e)===0?(n?Object.keys:j5)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function kl(e){var t=e[ir];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:O5(e)?2:B5(e)?3:0}function L4(e,t){return kl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qj(e,t,n){var r=kl(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function O5(e){return IW&&e instanceof Map}function B5(e){return NW&&e instanceof Set}function ou(e){return e.o||e.t}function k5(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=LW(e);delete t[ir];for(var n=j5(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function F5(e,t){return t===void 0&&(t=!1),T5(e)||Gu(e)||!qu(e)||(kl(e)>1&&(e.set=e.add=e.clear=e.delete=_W),Object.freeze(e),t&&Nd(e,function(n,r){return F5(r,!0)},!0)),e}function _W(){zr(2)}function T5(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ei(e){var t=MW[e];return t||zr(18,e),t}function $x(){return Rd}function fy(e,t){t&&(ei("Patches"),e.u=[],e.s=[],e.v=t)}function jg(e){M4(e),e.p.forEach(jW),e.p=null}function M4(e){e===Rd&&(Rd=e.l)}function Hx(e){return Rd={p:[],l:Rd,h:e,m:!0,_:0}}function jW(e){var t=e[ir];t.i===0||t.i===1?t.j():t.O=!0}function dy(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ei("ES5").S(t,e,r),r?(n[ir].P&&(jg(t),zr(4)),qu(e)&&(e=Pg(t,e),t.l||Ig(t,e)),t.u&&ei("Patches").M(n[ir],e,t.u,t.s)):e=Pg(t,n,[]),jg(t),t.u&&t.v(t.u,t.s),e!==eP?e:void 0}function Pg(e,t,n){if(T5(t))return t;var r=t[ir];if(!r)return Nd(t,function(i,a){return Ux(e,r,t,i,a,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Ig(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=k5(r.k):r.o;Nd(r.i===3?new Set(o):o,function(i,a){return Ux(e,r,o,i,a,n)}),Ig(e,o,!1),n&&e.u&&ei("Patches").R(r,n,e.u,e.s)}return r.o}function Ux(e,t,n,r,o,i){if(Gu(o)){var a=Pg(e,o,i&&t&&t.i!==3&&!L4(t.D,r)?i.concat(r):void 0);if(Qj(n,r,a),!Gu(a))return;e.m=!1}if(qu(o)&&!T5(o)){if(!e.h.F&&e._<1)return;Pg(e,o),t&&t.A.l||Ig(e,o)}}function Ig(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&F5(t,n)}function py(e,t){var n=e[ir];return(n?ou(n):e)[t]}function Vx(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function z4(e){e.P||(e.P=!0,e.l&&z4(e.l))}function hy(e){e.o||(e.o=k5(e.t))}function $4(e,t,n){var r=O5(t)?ei("MapSet").N(t,n):B5(t)?ei("MapSet").T(t,n):e.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:$x(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=M0;a&&(s=[u],l=z0);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(t,n):ei("ES5").J(t,n);return(n?n.A:$x()).p.push(r),r}function PW(e){return Gu(e)||zr(22,e),function t(n){if(!qu(n))return n;var r,o=n[ir],i=kl(n);if(o){if(!o.P&&(o.i<4||!ei("ES5").K(o)))return o.t;o.I=!0,r=Wx(n,i),o.I=!1}else r=Wx(n,i);return Nd(r,function(a,u){o&&function(s,l){return kl(s)===2?s.get(l):s[l]}(o.t,a)===u||Qj(r,a,t(u))}),i===3?new Set(r):r}(e)}function Wx(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return k5(e)}var Gx,Rd,_5=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",IW=typeof Map<"u",NW=typeof Set<"u",qx=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",eP=_5?Symbol.for("immer-nothing"):((Gx={})["immer-nothing"]=!0,Gx),Kx=_5?Symbol.for("immer-draftable"):"__$immer_draftable",ir=_5?Symbol.for("immer-state"):"__$immer_state",RW=""+Object.prototype.constructor,j5=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,LW=Object.getOwnPropertyDescriptors||function(e){var t={};return j5(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},MW={},M0={get:function(e,t){if(t===ir)return e;var n=ou(e);if(!L4(n,t))return function(o,i,a){var u,s=Vx(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!qu(r)?r:r===py(e.t,t)?(hy(e),e.o[t]=$4(e.A.h,r,e)):r},has:function(e,t){return t in ou(e)},ownKeys:function(e){return Reflect.ownKeys(ou(e))},set:function(e,t,n){var r=Vx(ou(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=py(ou(e),t),i=o==null?void 0:o[ir];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||L4(e.t,t)))return!0;hy(e),z4(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return py(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,hy(e),z4(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ou(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){zr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){zr(12)}},z0={};Nd(M0,function(e,t){z0[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),z0.deleteProperty=function(e,t){return M0.deleteProperty.call(this,e[0],t)},z0.set=function(e,t,n){return M0.set.call(this,e[0],t,n,e[0])};var zW=function(){function e(n){var r=this;this.g=qx,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(p){var v=this;p===void 0&&(p=u);for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return s.produce(p,function(h){var b;return(b=i).call.apply(b,[v,h].concat(g))})}}var l;if(typeof i!="function"&&zr(6),a!==void 0&&typeof a!="function"&&zr(7),qu(o)){var c=Hx(r),f=$4(r,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?jg(c):M4(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(p){return fy(c,a),dy(p,c)},function(p){throw jg(c),p}):(fy(c,a),dy(l,c))}if(!o||typeof o!="object")return(l=i(o))===eP?void 0:(l===void 0&&(l=o),r.F&&F5(l,!0),l);zr(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(d){return o.apply(void 0,[d].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 t=e.prototype;return t.createDraft=function(n){qu(n)||zr(8),Gu(n)&&(n=PW(n));var r=Hx(this),o=$4(this,n,void 0);return o[ir].C=!0,M4(r),o},t.finishDraft=function(n,r){var o=(n&&n[ir]).A;return fy(o,r),dy(void 0,o)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!qx&&zr(20),this.g=n},t.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=ei("Patches").$;return Gu(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},e}(),Xn=new zW,_1=Xn.produce;Xn.produceWithPatches.bind(Xn),Xn.setAutoFreeze.bind(Xn),Xn.setUseProxies.bind(Xn),Xn.applyPatches.bind(Xn);var Yx=Xn.createDraft.bind(Xn),Xx=Xn.finishDraft.bind(Xn);function jo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ng=new WeakMap,jc=new WeakMap,Jx=new WeakMap,Zx=new WeakMap,Qx=new WeakMap,eA=new WeakMap;function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function jh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $W=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of E.pathRefs(e))mG.transform(n,t);for(var r of E.pointRefs(e))yG.transform(r,t);for(var o of E.rangeRefs(e))wG.transform(o,t);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=Ng.get(e)||[],l=HW(t);for(var c of s)u(P.transform(c,t));for(var f of l)u(f);Ng.set(e,a),I.transform(e,t),e.operations.push(t),E.normalize(e),t.type==="set_selection"&&(e.marks=null),jc.get(e)||(jc.set(e,!0),Promise.resolve().then(()=>{jc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(R.isExpanded(r))I.setNodes(e,{[t]:n},{match:oe.isText,split:!0});else{var o=jh(jh({},E.marks(e)||{}),{},{[t]:n});e.marks=o,jc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&I.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&I.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&R.isExpanded(n)&&I.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?Z.fragment(e,t):[]},insertBreak:()=>{I.splitNodes(e,{always:!0})},insertFragment:t=>{I.insertFragment(e,t)},insertNode:t=>{I.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=jh({text:t},r);I.insertNodes(e,o)}else I.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!oe.isText(n))if(ce.isElement(n)&&n.children.length===0)I.insertNodes(e,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ce.isElement(n)&&(e.isInline(n)||n.children.length===0||oe.isText(n.children[0])||e.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Z.get(e,r);if(!oe.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(oe.isText(s)||ce.isElement(s)&&e.isInline(s))!==o?(I.removeNodes(e,{at:r.concat(i),voids:!0}),i--):ce.isElement(s)?e.isInline(s)&&(l!=null&&oe.isText(l)?c&&(I.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++):(I.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&oe.isText(l)&&(oe.equals(s,l,{loose:!0})?(I.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):l.text===""?(I.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(I.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(R.isExpanded(n))I.unsetNodes(e,t,{match:oe.isText,split:!0});else{var r=jh({},E.marks(e)||{});delete r[t],e.marks=r,jc.get(e)||e.onChange()}}};return e},HW=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return P.levels(t);case"insert_node":var{node:n,path:r}=e,o=P.levels(r),i=oe.isText(n)?[]:Array.from(Z.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=e;return[...P.ancestors(a),P.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(P.equals(u,s))return[];var l=[],c=[];for(var f of P.ancestors(u)){var d=P.transform(f,e);l.push(d)}for(var p of P.ancestors(s)){var v=P.transform(p,e);c.push(v)}var m=c[c.length-1],g=s[s.length-1],y=m.concat(g);return[...l,...c,y];case"remove_node":var{path:h}=e;return[...P.ancestors(h)];case"split_node":var{path:b}=e;return[...P.levels(b),P.next(b)];default:return[]}};function ii(e,t){if(e==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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Se,H4=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?qW(e):e,o=Se.None,i=Se.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=iG(s,l);if([o,i]=n?[i,c]:[c,o],ul(o,Se.ZWJ)&&ul(i,Se.ExtPict)&&!lG(n?e.substring(0,a):e.substring(0,e.length-a))||ul(o,Se.RI)&&ul(i,Se.RI)&&!(u=u!==null?!u:!!n||fG(e.substring(0,e.length-a)))||o!==Se.None&&i!==Se.None&&uG(o,i))break;a+=s.length}return a||1},UW=/\s/,VW=/[\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]/,WW=/['\u2018\u2019]/,U4=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},GW=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(UW.test(t))return!1;if(WW.test(t)){var o=H4(n,r),[i,a]=U4(n,o,r);if(e(i,a,r))return!0}return!VW.test(t)},qW=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(YW(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(KW(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},KW=e=>e>=55296&&e<=56319,YW=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(Se||(Se={}));var XW=/^(?:[\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])$/,JW=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,ZW=/^(?:[\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])$/,QW=/^[\u1100-\u115F\uA960-\uA97C]$/,eG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,tG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,nG=/^[\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]$/,rG=/^[\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]$/,oG=/^(?:[\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])$/,iG=(e,t)=>{var n=Se.Any;return e.search(XW)!==-1&&(n|=Se.Extend),t===8205&&(n|=Se.ZWJ),t>=127462&&t<=127487&&(n|=Se.RI),e.search(JW)!==-1&&(n|=Se.Prepend),e.search(ZW)!==-1&&(n|=Se.SpacingMark),e.search(QW)!==-1&&(n|=Se.L),e.search(eG)!==-1&&(n|=Se.V),e.search(tG)!==-1&&(n|=Se.T),e.search(nG)!==-1&&(n|=Se.LV),e.search(rG)!==-1&&(n|=Se.LVT),e.search(oG)!==-1&&(n|=Se.ExtPict),n};function ul(e,t){return(e&t)!=0}var aG=[[Se.L,Se.L|Se.V|Se.LV|Se.LVT],[Se.LV|Se.V,Se.V|Se.T],[Se.LVT|Se.T,Se.T],[Se.Any,Se.Extend|Se.ZWJ],[Se.Any,Se.SpacingMark],[Se.Prepend,Se.Any],[Se.ZWJ,Se.ExtPict],[Se.RI,Se.RI]];function uG(e,t){return aG.findIndex(n=>ul(e,n[0])&&ul(t,n[1]))===-1}var sG=/(?:[\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$/,lG=e=>e.search(sG)!==-1,cG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,fG=e=>{var t=e.match(cG);return t!==null&&t[0].length/2%2==1},nA=e=>Dn(e)&&Z.isNodeList(e.children)&&!E.isEditor(e),ce={isAncestor:e=>Dn(e)&&Z.isNodeList(e.children),isElement:nA,isElementList:e=>Array.isArray(e)&&e.every(t=>ce.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return nA(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},dG=["text"],pG=["text"];function rA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oA=new WeakMap,E={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=E.path(e,o),u=r==="lowest";for(var[s,l]of E.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!oe.isText(s)&&!P.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(e,t,{edge:"end"}),focus:E.end(e,[])},{distance:i=1}=r,a=0;for(var u of E.positions(e,xs(xs({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(e,[]),focus:E.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(e,xs(xs({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[E.start(e,t),E.end(e,t)],end:(e,t)=>E.point(e,t,{edge:"end"}),first(e,t){var n=E.path(e,t,{edge:"start"});return E.node(e,n)},fragment(e,t){var n=E.range(e,t);return Z.fragment(e,n)},hasBlocks:(e,t)=>t.children.some(n=>E.isBlock(e,n)),hasInlines:(e,t)=>t.children.some(n=>oe.isText(n)||E.isInline(e,n)),hasTexts:(e,t)=>t.children.every(n=>oe.isText(n)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>ce.isElement(t)&&!e.isInline(t),isEditor(e){if(!Dn(e))return!1;var t=oA.get(e);if(t!==void 0)return t;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||Dn(e.marks))&&(e.selection===null||R.isRange(e.selection))&&Z.isNodeList(e.children)&&Xi.isOperationList(e.operations);return oA.set(e,n),n},isEnd(e,t,n){var r=E.end(e,n);return ke.equals(t,r)},isEdge:(e,t,n)=>E.isStart(e,t,n)||E.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&oe.isText(r)&&r.text===""&&!e.isVoid(t)},isInline:(e,t)=>ce.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Jx.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=E.start(e,n);return ke.equals(t,r)},isVoid:(e,t)=>ce.isElement(t)&&e.isVoid(t),last(e,t){var n=E.path(e,t,{edge:"end"});return E.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n);return[Z.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(e,n);for(var[s,l]of Z.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(R.isExpanded(n)){var[r]=E.nodes(e,{match:oe.isText});if(r){var[o]=r;return ii(o,dG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(e,a);if(i.offset===0){var s=E.previous(e,{at:a,match:oe.isText}),l=E.above(e,{match:p=>E.isBlock(e,p)});if(s&&l){var[c,f]=s,[,d]=l;P.isAncestor(d,f)&&(u=c)}}return ii(u,pG)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.after(e,i,{voids:r});if(a){var[,u]=E.last(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n);return[Z.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(hG.isSpan(n))s=n[0],l=n[1];else{var c=E.path(e,n,{edge:"start"}),f=E.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Z.nodes(e,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(e,w)}}),v=[];for(var[m,g]of p){var y=d&&P.compare(g,d[1])===0;if(r!=="highest"||!y){if(u(m,g))if(r==="lowest"&&y)d=[m,g];else{var h=r==="lowest"?d:[m,g];h&&(o?v.push(h):yield h),d=[m,g]}else if(o&&!y&&oe.isText(m))return}}r==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*v)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=t,r=i=>Ng.get(i)||[];if(E.isNormalizing(e)){if(n){var o=Array.from(Z.nodes(e),i=>{var[,a]=i;return a});Ng.set(e,o)}r(e).length!==0&&E.withoutNormalizing(e,()=>{for(var i of r(e))if(Z.has(e,i)){var a=E.node(e,i),[u,s]=a;ce.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=42*r(e).length,c=0;r(e).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(e).pop();if(Z.has(e,f)){var d=E.node(e,f);e.normalizeNode(d)}c++}})}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(e,t,n),o=P.parent(r);return E.node(e,o)},path(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(P.isPath(t)){if(o==="start"){var[,i]=Z.first(e,t);t=i}else if(o==="end"){var[,a]=Z.last(e,t);t=a}}return R.isRange(t)&&(t=o==="start"?R.start(t):o==="end"?R.end(t):P.common(t.anchor.path,t.focus.path)),ke.isPoint(t)&&(t=t.path),r!=null&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Z.has(e,t),pathRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.pathRefs(e).delete(o),o.current=null,i}};return E.pathRefs(e).add(o),o},pathRefs(e){var t=Zx.get(e);return t||(t=new Set,Zx.set(e,t)),t},point(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(P.isPath(t)){var o;if(r==="end"){var[,i]=Z.last(e,t);o=i}else{var[,a]=Z.first(e,t);o=a}var u=Z.get(e,o);if(!oe.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(R.isRange(t)){var[s,l]=R.edges(t);return r==="start"?s:l}return t},pointRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.pointRefs(e).delete(o),o.current=null,i}};return E.pointRefs(e).add(o),o},pointRefs(e){var t=Qx.get(e);return t||(t=new Set,Qx.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=E.range(e,n),[u,s]=R.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[m,g]of E.nodes(e,{at:n,reverse:o,voids:i})){if(ce.isElement(m)){if(!i&&e.isVoid(m)){yield E.start(e,g);continue}if(e.isInline(m))continue;if(E.hasInlines(e,m)){var y=P.isAncestor(g,s.path)?s:E.end(e,g),h=P.isAncestor(g,u.path)?u:E.start(e,g);f=E.string(e,{anchor:h,focus:y},{voids:i}),c=!0}}if(oe.isText(m)){var b=P.equals(g,l.path);for(b?(p=o?l.offset:m.text.length-l.offset,v=l.offset):(p=m.text.length,v=o?p:0),(b||c||r==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,o),f=U4(f,d,o)[1]}if(v=o?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:v}}}}}function w(D,S,C){return S==="character"?H4(D,C):S==="word"?function(O){for(var F=arguments.length>1&&arguments[1]!==void 0&&arguments[1],L=0,H=!1;O.length>0;){var M=H4(O,F),[K,V]=U4(O,M,F);if(GW(K,V,F))H=!0,L+=M;else{if(H)break;L+=M}O=V}return L}(D,C):S==="line"||S==="block"?D.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=E.before(e,i,{voids:r});if(a){var[,u]=E.first(e,[]),s=[a.path,u];if(P.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(P.isPath(i)){var[l]=E.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>R.isRange(t)&&!n?t:{anchor:E.start(e,t),focus:E.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(e).delete(o),o.current=null,i}};return E.rangeRefs(e).add(o),o},rangeRefs(e){var t=eA.get(e);return t||(t=new Set,eA.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Jx.set(e,t)},start:(e,t)=>E.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(e,t),[i,a]=R.edges(o),u="";for(var[s,l]of E.nodes(e,{at:o,match:oe.isText,voids:r})){var c=s.text;P.equals(l,a.path)&&(c=c.slice(0,a.offset)),P.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=R.edges(t);if(o.offset!==0||i.offset!==0||R.isCollapsed(t))return t;var a=E.above(e,{at:i,match:d=>E.isBlock(e,d)}),u=a?a[1]:[],s={anchor:E.start(e,[]),focus:i},l=!0;for(var[c,f]of E.nodes(e,{at:s,match:oe.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||P.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(e,xs(xs({},t),{},{match:n=>E.isVoid(e,n)}))},withoutNormalizing(e,t){var n=E.isNormalizing(e);E.setNormalizing(e,!1);try{t()}finally{E.setNormalizing(e,n)}E.normalize(e)}},hG={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(P.isPath)},gG=["children"],vG=["text"],iA=new WeakMap,Z={ancestor(e,t){var n=Z.get(e,t);if(oe.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.ancestors(t,n)){var o=[Z.ancestor(e,r),r];yield o}},child(e,t){if(oe.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Z.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Z.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=P.common(t,n);return[Z.get(e,r),r]},descendant(e,t){var n=Z.get(e,t);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Z.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Z.nodes(e,t))ce.isElement(n)&&(yield[n,r])},extractProps:e=>ce.isAncestor(e)?ii(e,gG):ii(e,vG),first(e,t){for(var n=t.slice(),r=Z.get(e,n);r&&!oe.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(oe.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=_1({children:e.children},r=>{var[o,i]=R.edges(t),a=Z.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!R.includes(t,p)}});for(var[,u]of a){if(!R.includes(t,u)){var s=Z.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(P.equals(u,i.path)){var c=Z.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(P.equals(u,o.path)){var f=Z.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(oe.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(oe.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>oe.isText(e)||ce.isElement(e)||E.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=iA.get(e);if(t!==void 0)return t;var n=e.every(r=>Z.isNode(r));return iA.set(e,n),n},last(e,t){for(var n=t.slice(),r=Z.get(e,n);r&&!oe.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Z.get(e,t);if(!oe.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of P.levels(t,n)){var o=Z.get(e,r);yield[o,r]}},matches:(e,t)=>ce.isElement(e)&&ce.isElementProps(t)&&ce.matches(e,t)||oe.isText(e)&&oe.isTextProps(t)&&oe.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?P.isBefore(u,i):P.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||oe.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=P.next(u);if(Z.has(e,l)){u=l,s=Z.get(e,u);continue}}r&&u[u.length-1]!==0?(u=P.previous(u),s=Z.get(e,u)):(u=P.parent(u),s=Z.get(e,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;P.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Z.get(e,u)}},parent(e,t){var n=P.parent(t),r=Z.get(e,n);if(oe.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>oe.isText(e)?e.text:e.children.map(Z.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Z.nodes(e,t))oe.isText(n)&&(yield[n,r])}};function aA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Xi={isNodeOperation:e=>Xi.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Dn(e))return!1;switch(e.type){case"insert_node":case"remove_node":return P.isPath(e.path)&&Z.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&Dn(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"set_node":return P.isPath(e.path)&&Dn(e.properties)&&Dn(e.newProperties);case"set_selection":return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||Dn(e.properties)&&Dn(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&Dn(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Xi.isOperation(t)),isSelectionOperation:e=>Xi.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Xi.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return zt(zt({},e),{},{type:"remove_node"});case"insert_text":return zt(zt({},e),{},{type:"remove_text"});case"merge_node":return zt(zt({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(P.equals(t,n))return e;if(P.isSibling(n,t))return zt(zt({},e),{},{path:t,newPath:n});var r=P.transform(n,e),o=P.transform(P.next(n),e);return zt(zt({},e),{},{path:r,newPath:o});case"remove_node":return zt(zt({},e),{},{type:"insert_node"});case"remove_text":return zt(zt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return zt(zt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return zt(zt({},e),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return zt(zt({},e),{},{type:"merge_node",path:P.next(e.path)})}}},P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=P.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return P.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return P.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return P.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>P.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&P.compare(e,t)===0,isBefore:(e,t)=>P.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&P.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&P.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&P.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&P.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&P.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!P.isAncestor(t,e)&&!P.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _1(e,r=>{var{affinity:o="forward"}=n;if(e&&(e==null?void 0:e.length)!==0){if(r===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(P.equals(i,r)||P.endsBefore(i,r)||P.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(P.equals(a,r)||P.isAncestor(a,r))return null;P.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;P.equals(u,r)||P.endsBefore(u,r)?r[u.length-1]-=1:P.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(P.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else P.endsBefore(l,r)?r[l.length-1]+=1:P.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(P.equals(f,d))return;if(P.isAncestor(f,r)||P.equals(f,r)){var p=d.slice();return P.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}P.isSibling(f,d)&&(P.isAncestor(d,r)||P.equals(d,r))?P.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:P.endsBefore(d,r)||P.equals(d,r)||P.isAncestor(d,r)?(P.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):P.endsBefore(f,r)&&(P.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},mG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=P.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}};function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ke={compare(e,t){var n=P.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>ke.compare(e,t)===1,isBefore:(e,t)=>ke.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&P.equals(e.path,t.path),isPoint:e=>Dn(e)&&typeof e.offset=="number"&&P.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _1(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(t.type){case"insert_node":case"move_node":r.path=P.transform(i,t,n);break;case"insert_text":P.equals(t.path,i)&&t.offset<=a&&(r.offset+=t.text.length);break;case"merge_node":P.equals(t.path,i)&&(r.offset+=t.position),r.path=P.transform(i,t,n);break;case"remove_text":P.equals(t.path,i)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(P.equals(t.path,i)||P.isAncestor(t.path,i))return null;r.path=P.transform(i,t,n);break;case"split_node":if(P.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=P.transform(i,t,sA(sA({},n),{},{affinity:"forward"})))}else r.path=P.transform(i,t,n)}})}},yG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ke.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},bG=["anchor","focus"];function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}var R={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return R.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=R.edges(e);return t},equals:(e,t)=>ke.equals(e.anchor,t.anchor)&&ke.equals(e.focus,t.focus),includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[n,r]=R.edges(e),[o,i]=R.edges(t);return ke.isBefore(n,o)&&ke.isAfter(r,i)}var[a,u]=R.edges(e),s=!1,l=!1;return ke.isPoint(t)?(s=ke.compare(t,a)>=0,l=ke.compare(t,u)<=0):(s=P.compare(t,a.path)>=0,l=P.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=ii(e,bG),[r,o]=R.edges(e),[i,a]=R.edges(t),u=ke.isBefore(r,i)?i:r,s=ke.isBefore(o,a)?o:a;return ke.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?lA(Object(f),!0).forEach(function(d){jo(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):lA(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ke.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ke.equals(t,n)},isExpanded:e=>!R.isCollapsed(e),isForward:e=>!R.isBackward(e),isRange:e=>Dn(e)&&ke.isPoint(e.anchor)&&ke.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=R.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _1(e,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=R.isCollapsed(r);R.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?R.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=ke.transform(r.anchor,t,{affinity:o}),l=ke.transform(r.focus,t,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},wG={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=R.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},tP=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Dn(r)&&Dn(o)){if(!tP(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},EG=["text"],DG=["anchor","focus"];function cA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oe={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ii(i,EG)}return tP(r?o(e):e,r?o(t):t)},isText:e=>Dn(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>oe.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[$o({},e)];for(var r of t){var o=ii(r,DG),[i,a]=R.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 d=l,p=void 0,v=void 0;if(a.offset<s){var m=a.offset-f;v=$o($o({},d),{},{text:d.text.slice(m)}),d=$o($o({},d),{},{text:d.text.slice(0,m)})}if(i.offset>f){var g=i.offset-f;p=$o($o({},d),{},{text:d.text.slice(0,g)}),d=$o($o({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}n=u}return n}};function fA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var CG={transform(e,t){e.children=Yx(e.children);var n=e.selection&&Yx(e.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Z.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 R.points(o))o[f]=ke.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var m=Z.leaf(r,d),g=m.text.slice(0,p),y=m.text.slice(p);if(m.text=g+v+y,o)for(var[h,b]of R.points(o))o[b]=ke.transform(h,i);break;case"merge_node":var{path:w}=i,D=Z.get(r,w),S=P.previous(w),C=Z.get(r,S),O=Z.parent(r,w),F=w[w.length-1];if(oe.isText(D)&&oe.isText(C))C.text+=D.text;else{if(oe.isText(D)||oe.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[L,H]of R.points(o))o[H]=ke.transform(L,i);break;case"move_node":var{path:M,newPath:K}=i;if(P.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var V=Z.get(r,M),G=Z.parent(r,M),q=M[M.length-1];G.children.splice(q,1);var ne=P.transform(M,i),se=Z.get(r,P.parent(ne)),ue=ne[ne.length-1];if(se.children.splice(ue,0,V),o)for(var[ae,B]of R.points(o))o[B]=ke.transform(ae,i);break;case"remove_node":var{path:x}=i,j=x[x.length-1];if(Z.parent(r,x).children.splice(j,1),o)for(var[$,Y]of R.points(o)){var U=ke.transform($,i);if(o!=null&&U!=null)o[Y]=U;else{var ie=void 0,ge=void 0;for(var[ve,De]of Z.texts(r)){if(P.compare(De,x)!==-1){ge=[ve,De];break}ie=[ve,De]}var W=!1;ie&&ge&&(W=P.equals(ge[1],x)?!P.hasPrevious(ge[1]):P.common(ie[1],x).length<P.common(ge[1],x).length),ie&&!W?($.path=ie[1],$.offset=ie[0].text.length):ge?($.path=ge[1],$.offset=0):o=null}}break;case"remove_text":var{path:Ne,offset:Ae,text:de}=i;if(de.length===0)break;var Oe=Z.leaf(r,Ne),Ot=Oe.text.slice(0,Ae),$e=Oe.text.slice(Ae+de.length);if(Oe.text=Ot+$e,o)for(var[Qe,gt]of R.points(o))o[gt]=ke.transform(Qe,i);break;case"set_node":var{path:gn,properties:Me,newProperties:In}=i;if(gn.length===0)throw new Error("Cannot set properties on the root node!");var jr=Z.get(r,gn);for(var to in In){if(to==="children"||to==="text")throw new Error('Cannot set the "'.concat(to,'" property of nodes!'));var ys=In[to];ys==null?delete jr[to]:jr[to]=ys}for(var $a in Me)In.hasOwnProperty($a)||delete jr[$a];break;case"set_selection":var{newProperties:Pr}=i;if(Pr==null)o=Pr;else{if(o==null){if(!R.isRange(Pr))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Pr)," when there is no current selection."));o=Pc({},Pr)}for(var no in Pr){var Io=Pr[no];if(Io==null){if(no==="anchor"||no==="focus")throw new Error('Cannot remove the "'.concat(no,'" selection property'));delete o[no]}else o[no]=Io}}break;case"split_node":var{path:vn,position:mn,properties:yn}=i;if(vn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(vn,"] because the root node cannot be split."));var kn,tn=Z.get(r,vn),fr=Z.parent(r,vn),Dc=vn[vn.length-1];if(oe.isText(tn)){var di=tn.text.slice(0,mn),No=tn.text.slice(mn);tn.text=di,kn=Pc(Pc({},yn),{},{text:No})}else{var bs=tn.children.slice(0,mn),Ha=tn.children.slice(mn);tn.children=bs,kn=Pc(Pc({},yn),{},{children:Ha})}if(fr.children.splice(Dc+1,0,kn),o)for(var[ws,Ir]of R.points(o))o[Ir]=ke.transform(ws,i)}return o})(e,n,t)}finally{e.children=Xx(e.children),e.selection=n?Gu(n)?Xx(n):n:null}}},SG=["text"],xG=["children"];function dA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var AG={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Z.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?E.end(e,[]):[0],s=!0),s==null&&(s=!1),R.isRange(a))if(r||(a=E.unhangRange(e,a)),R.isCollapsed(a))a=a.anchor;else{var[,c]=R.edges(a),f=E.pointRef(e,c);I.delete(e,{at:a}),a=f.unref()}if(ke.isPoint(a)){u==null&&(u=oe.isText(l)?S=>oe.isText(S):e.isInline(l)?S=>oe.isText(S)||E.isInline(e,S):S=>E.isBlock(e,S));var[d]=E.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=E.pathRef(e,p),m=E.isEnd(e,a,p);I.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=m?P.next(g):g}var y=P.parent(a),h=a[a.length-1];if(o||!E.void(e,{at:y})){for(var b of t){var w=y.concat(h);h++,e.apply({type:"insert_node",path:w,node:b}),a=P.next(a)}if(a=P.previous(a),s){var D=E.end(e,a);D&&I.select(e,D)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=P.isPath(n)?As(e,n):b=>E.isBlock(e,b)),n){var a=E.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(e,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(e,P.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var m=P.next(d);I.moveNodes(e,{at:l,to:m,voids:o}),I.removeNodes(e,{at:d,voids:o})}else if(p===0)I.moveNodes(e,{at:l,to:d,voids:o});else if(p===v-1){var g=P.next(d);I.moveNodes(e,{at:l,to:g,voids:o})}else{var y=P.next(l),h=P.next(d);I.splitNodes(e,{at:y,voids:o}),I.moveNodes(e,{at:l,to:h,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(n==null)if(P.isPath(r)){var[u]=E.parent(e,r);n=F=>u.children.includes(F)}else n=F=>E.isBlock(e,F);if(!o&&R.isRange(r)&&(r=E.unhangRange(e,r)),R.isRange(r))if(R.isCollapsed(r))r=r.anchor;else{var[,s]=R.edges(r),l=E.pointRef(e,s);I.delete(e,{at:r}),r=l.unref(),t.at==null&&I.select(e,r)}var[c]=E.nodes(e,{at:r,match:n,voids:i,mode:a}),f=E.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,m]=f;if(p.length!==0&&m.length!==0){var g,y,h=P.next(m),b=P.common(p,m),w=P.isSibling(p,m),D=Array.from(E.levels(e,{at:p}),F=>{var[L]=F;return L}).slice(b.length).slice(0,-1),S=E.above(e,{at:p,mode:"highest",match:F=>D.includes(F)&&nP(e,F)}),C=S&&E.pathRef(e,S[1]);if(oe.isText(d)&&oe.isText(v)){var O=ii(d,SG);y=v.text.length,g=O}else{if(!ce.isElement(d)||!ce.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(v)));O=ii(d,xG),y=v.children.length,g=O}w||I.moveNodes(e,{at:p,to:h,voids:i}),C&&I.removeNodes(e,{at:C.current,voids:i}),ce.isElement(v)&&E.isEmpty(e,v)||oe.isText(v)&&v.text===""&&m[m.length-1]!==0?I.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:h,position:y,properties:g}),C&&C.unref()}}}})},moveNodes(e,t){E.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){a==null&&(a=P.isPath(r)?As(e,r):p=>E.isBlock(e,p));var u=E.pathRef(e,n),s=E.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return E.pathRef(e,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&P.isSibling(d,f)&&P.isAfter(d,f)&&(u.current=P.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?As(e,i):d=>E.isBlock(e,d)),!n&&R.isRange(i)&&(i=E.unhangRange(e,i));var u=E.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(e,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=P.isPath(o)?As(e,o):D=>E.isBlock(e,D)),!i&&R.isRange(o)&&(o=E.unhangRange(e,o)),u&&R.isRange(o)){if(R.isCollapsed(o)&&E.leaf(e,o.anchor)[0].text.length>0)return;var l=E.rangeRef(e,o,{affinity:"inward"}),[c,f]=R.edges(o),d=a==="lowest"?"lowest":"highest",p=E.isEnd(e,f,f.path);I.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var v=E.isStart(e,c,c.path);I.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!v}),o=l.unref(),n.at==null&&I.select(e,o)}for(var[m,g]of E.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},h={};if(g.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==m[w]&&(b=!0,m.hasOwnProperty(w)&&(y[w]=m[w]),t[w]!=null&&(h[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=V=>E.isBlock(e,V)),R.isRange(i)&&(i=OG(e,i)),P.isPath(i)){var s=i,l=E.point(e,s),[c]=E.parent(e,s);o=V=>V===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(e,i,{affinity:"backward"}),[d]=E.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=E.void(e,{at:i,mode:"highest"});if(!r&&p){var[v,m]=p;if(ce.isElement(v)&&e.isInline(v)){var g=E.after(e,m);if(!g){var y=P.next(m);I.insertNodes(e,{text:""},{at:y,voids:r}),g=E.point(e,y)}i=g,u=!0}a=i.path.length-m.length+1,u=!0}var h=E.pointRef(e,i),b=i.path.length-a,[,w]=d,D=i.path.slice(0,b),S=a===0?i.offset:i.path[b]+0;for(var[C,O]of E.levels(e,{at:D,reverse:!0,voids:r})){var F=!1;if(O.length<w.length||O.length===0||!r&&E.isVoid(e,C))break;var L=f.current,H=E.isEnd(e,L,O);if(u||!f||!E.isEdge(e,L,O)){F=!0;var M=Z.extractProps(C);e.apply({type:"split_node",path:O,position:S,properties:M})}S=O[O.length-1]+(F||H?1:0)}if(t.at==null){var K=h.current||E.end(e,[]);I.select(e,K)}f.unref(),h.unref()}}})},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;I.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=P.isPath(i)?As(e,i):d=>E.isBlock(e,d)),P.isPath(i)&&(i=E.range(e,i));var u=R.isRange(i)?E.rangeRef(e,i):null,s=E.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(e,p)}).reverse(),c=function(d){var p=d.unref(),[v]=E.node(e,p),m=E.range(e,p);r&&u&&(m=R.intersection(u.current,m)),I.liftNodes(e,{at:m,match:g=>ce.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(a==null&&(a=P.isPath(u)?As(e,u):e.isInline(t)?g=>E.isInline(e,g)||oe.isText(g):g=>E.isBlock(e,g)),o&&R.isRange(u)){var[s,l]=R.edges(u),c=E.rangeRef(e,u,{affinity:"inward"});I.splitNodes(e,{at:l,match:a,voids:i}),I.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&I.select(e,u)}var f=Array.from(E.nodes(e,{at:u,match:e.isInline(t)?g=>E.isBlock(e,g):g=>E.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=R.isRange(u)?R.intersection(u,E.range(e,d)):u;if(p){var v=Array.from(E.nodes(e,{at:p,match:a,mode:r,voids:i}));if(v.length>0){var m=function(){var[g]=v,y=v[v.length-1],[,h]=g,[,b]=y;if(h.length===0&&b.length===0)return"continue";var w=P.equals(h,b)?P.parent(h):P.common(h,b),D=E.range(e,h,b),S=E.node(e,w),[C]=S,O=w.length+1,F=P.next(b.slice(0,O)),L=pA(pA({},t),{},{children:[]});I.insertNodes(e,L,{at:F,voids:i}),I.moveNodes(e,{at:D,match:H=>ce.isAncestor(C)&&C.children.includes(H),to:F.concat(0),voids:i})}();if(m==="continue")continue}}}}})}},nP=(e,t)=>{if(ce.isElement(t)){var n=t;return!!E.isVoid(e,t)||n.children.length===1&&nP(e,n.children[0])}return!E.isEditor(t)},OG=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,n]=R.edges(t),r=E.pointRef(e,n);return I.delete(e,{at:t}),r.unref()},As=(e,t)=>{var[n]=E.node(e,t);return r=>r===n};function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BG={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r){if(n==="anchor")I.select(e,r.anchor);else if(n==="focus")I.select(e,r.focus);else if(n==="start"){var[o]=R.edges(r);I.select(e,o)}else if(n==="end"){var[,i]=R.edges(r);I.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){a==="start"&&(a=R.isBackward(n)?"focus":"anchor"),a==="end"&&(a=R.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(e,u,l):E.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?E.before(e,s,l):E.after(e,s,l);d&&(c.focus=d)}I.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=E.range(e,t),n)I.setSelection(e,t);else{if(!R.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){o==="start"&&(o=R.isBackward(r)?"focus":"anchor"),o==="end"&&(o=R.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;I.setSelection(e,{[o==="anchor"?"anchor":"focus"]:gA(gA({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)(i==="anchor"&&t.anchor!=null&&!ke.equals(t.anchor,n.anchor)||i==="focus"&&t.focus!=null&&!ke.equals(t.focus,n.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},kG={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(e,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(R.isRange(a)&&R.isCollapsed(a)&&(a=a.anchor),ke.isPoint(a)){var s=E.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(e,a,c)||E.start(e,[]):E.after(e,a,c)||E.end(e,[])},u=!0}}if(P.isPath(a))I.removeNodes(e,{at:a,voids:i});else if(!R.isCollapsed(a)){if(!u){var[,f]=R.edges(a),d=E.end(e,[]);ke.equals(f,d)||(a=E.unhangRange(e,a,{voids:i}))}var[p,v]=R.edges(a),m=E.above(e,{match:ge=>E.isBlock(e,ge),at:p,voids:i}),g=E.above(e,{match:ge=>E.isBlock(e,ge),at:v,voids:i}),y=m&&g&&!P.equals(m[1],g[1]),h=P.equals(p.path,v.path),b=i?null:E.void(e,{at:p,mode:"highest"}),w=i?null:E.void(e,{at:v,mode:"highest"});if(b){var D=E.before(e,p);D&&m&&P.isAncestor(m[1],D.path)&&(p=D)}if(w){var S=E.after(e,v);S&&g&&P.isAncestor(g[1],S.path)&&(v=S)}var C,O=[];for(var F of E.nodes(e,{at:a,voids:i})){var[L,H]=F;C&&P.compare(H,C)===0||(!i&&E.isVoid(e,L)||!P.isCommon(H,p.path)&&!P.isCommon(H,v.path))&&(O.push(F),C=H)}var M=Array.from(O,ge=>{var[,ve]=ge;return E.pathRef(e,ve)}),K=E.pointRef(e,p),V=E.pointRef(e,v);if(!h&&!b){var G=K.current,[q]=E.leaf(e,G),{path:ne}=G,{offset:se}=p,ue=q.text.slice(se);ue.length>0&&e.apply({type:"remove_text",path:ne,offset:se,text:ue})}for(var ae of M){var B=ae.unref();I.removeNodes(e,{at:B,voids:i})}if(!w){var x=V.current,[j]=E.leaf(e,x),{path:$}=x,Y=h?p.offset:0,U=j.text.slice(Y,v.offset);U.length>0&&e.apply({type:"remove_text",path:$,offset:Y,text:U})}!h&&y&&V.current&&K.current&&I.mergeNodes(e,{at:V.current,hanging:!0,voids:i});var ie=n?K.unref()||V.unref():V.unref()||K.unref();t.at==null&&ie&&I.select(e,ie)}}})},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(R.isRange(i))if(r||(i=E.unhangRange(e,i)),R.isCollapsed(i))i=i.anchor;else{var[,a]=R.edges(i);if(!o&&E.void(e,{at:a}))return;var u=E.pointRef(e,a);I.delete(e,{at:i}),i=u.unref()}else P.isPath(i)&&(i=E.start(e,i));if(o||!E.void(e,{at:i})){var s=E.above(e,{at:i,match:x=>E.isInline(e,x),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(e,i,l)?i=E.after(e,l):E.isStart(e,i,l)&&(i=E.before(e,l))}var c=E.above(e,{match:x=>E.isBlock(e,x),at:i,voids:o}),[,f]=c,d=E.isStart(e,i,f),p=E.isEnd(e,i,f),v=d&&p,m=!d||d&&p,g=!p,[,y]=Z.first({children:t},[]),[,h]=Z.last({children:t},[]),b=[],w=x=>{var[j,$]=x;return $.length!==0&&(!!v||!(m&&P.isAncestor($,y)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j))&&!(g&&P.isAncestor($,h)&&ce.isElement(j)&&!e.isVoid(j)&&!e.isInline(j)))};for(var D of Z.nodes({children:t},{pass:w}))w(D)&&b.push(D);var S=[],C=[],O=[],F=!0,L=!1;for(var[H]of b)ce.isElement(H)&&!e.isInline(H)?(F=!1,L=!0,C.push(H)):F?S.push(H):O.push(H);var[M]=E.nodes(e,{at:i,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),[,K]=M,V=E.isStart(e,i,K),G=E.isEnd(e,i,K),q=E.pathRef(e,p?P.next(f):f),ne=E.pathRef(e,G?P.next(K):K),se=E.pathRef(e,f);I.splitNodes(e,{at:i,match:x=>L?E.isBlock(e,x):oe.isText(x)||E.isInline(e,x),mode:L?"lowest":"highest",voids:o});var ue=E.pathRef(e,!V||V&&G?P.next(K):K);if(I.insertNodes(e,S,{at:ue.current,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),v&&C.length&&I.delete(e,{at:se.unref(),voids:o}),I.insertNodes(e,C,{at:q.current,match:x=>E.isBlock(e,x),mode:"lowest",voids:o}),I.insertNodes(e,O,{at:ne.current,match:x=>oe.isText(x)||E.isInline(e,x),mode:"highest",voids:o}),!n.at){var ae;ae=O.length>0?P.previous(ne.current):C.length>0?P.previous(q.current):P.previous(ue.current);var B=E.end(e,ae);I.select(e,B)}ue.unref(),q.unref(),ne.unref()}}})},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(P.isPath(o)&&(o=E.range(e,o)),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var i=R.end(o);if(!r&&E.void(e,{at:i}))return;var a=E.pointRef(e,i);I.delete(e,{at:o,voids:r}),o=a.unref(),I.setSelection(e,{anchor:o,focus:o})}if(r||!E.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function vA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(n),!0).forEach(function(r){jo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var I=Ph(Ph(Ph(Ph({},CG),AG),BG),kG),V4="[object Map]",W4="[object Set]",FG=/^\[object .+?Constructor\]$/,TG=/^(?:0|[1-9]\d*)$/,_G="[\\ud800-\\udfff]",G4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",q4="\\ud83c[\\udffb-\\udfff]",rP="[^\\ud800-\\udfff]",oP="(?:\\ud83c[\\udde6-\\uddff]){2}",iP="[\\ud800-\\udbff][\\udc00-\\udfff]",mA="(?:"+G4+"|"+q4+")?",jG="[\\ufe0e\\ufe0f]?"+mA+("(?:\\u200d(?:"+[rP,oP,iP].join("|")+")[\\ufe0e\\ufe0f]?"+mA+")*"),PG="(?:"+[rP+G4+"?",G4,oP,iP,_G].join("|")+")",IG=RegExp(q4+"(?="+q4+")|"+PG+jG,"g"),NG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),RG=typeof at=="object"&&at&&at.Object===Object&&at,LG=typeof self=="object"&&self&&self.Object===Object&&self,ss=RG||LG||Function("return this")();function MG(e,t){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}(t,function(n){return e[n]})}function zG(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function $G(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}function HG(e){return function(t){return NG.test(t)}(e)?function(t){return t.match(IG)||[]}(e):function(t){return t.split("")}(e)}var yA,bA,UG=Function.prototype,j1=Object.prototype,gy=ss["__core-js_shared__"],wA=function(){var e=/[^.]+$/.exec(gy&&gy.keys&&gy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),aP=UG.toString,Rg=j1.hasOwnProperty,Lp=j1.toString,VG=RegExp("^"+aP.call(Rg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),EA=ss.Symbol,vy=EA?EA.iterator:void 0,WG=j1.propertyIsEnumerable,GG=(yA=Object.keys,bA=Object,function(e){return yA(bA(e))}),K4=Mp(ss,"DataView"),Y4=Mp(ss,"Map"),X4=Mp(ss,"Promise"),J4=Mp(ss,"Set"),Z4=Mp(ss,"WeakMap"),qG=ls(K4),KG=ls(Y4),YG=ls(X4),XG=ls(J4),JG=ls(Z4);function ZG(e,t){var n=uP(e)||function(a){return function(u){return cP(u)&&P5(u)}(a)&&Rg.call(a,"callee")&&(!WG.call(a,"callee")||Lp.call(a)=="[object Arguments]")}(e)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!Rg.call(e,i)||o&&(i=="length"||tq(i,r))||n.push(i);return n}function QG(e){if(!lP(e)||function(n){return!!wA&&wA in n}(e))return!1;var t=sP(e)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch{}return r}(e)?VG:FG;return t.test(ls(e))}function eq(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||j1,t!==r)return GG(e);var t,n,r,o=[];for(var i in Object(e))Rg.call(e,i)&&i!="constructor"&&o.push(i);return o}function Mp(e,t){var n=function(r,o){return r==null?void 0:r[o]}(e,t);return QG(n)?n:void 0}var iu=function(e){return Lp.call(e)};function tq(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||TG.test(e))&&e>-1&&e%1==0&&e<t}function ls(e){if(e!=null){try{return aP.call(e)}catch{}try{return e+""}catch{}}return""}(K4&&iu(new K4(new ArrayBuffer(1)))!="[object DataView]"||Y4&&iu(new Y4)!=V4||X4&&iu(X4.resolve())!="[object Promise]"||J4&&iu(new J4)!=W4||Z4&&iu(new Z4)!="[object WeakMap]")&&(iu=function(e){var t=Lp.call(e),n=t=="[object Object]"?e.constructor:void 0,r=n?ls(n):void 0;if(r)switch(r){case qG:return"[object DataView]";case KG:return V4;case YG:return"[object Promise]";case XG:return W4;case JG:return"[object WeakMap]"}return t});var uP=Array.isArray;function P5(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!sP(e)}function sP(e){var t=lP(e)?Lp.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function lP(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function cP(e){return!!e&&typeof e=="object"}function nq(e){return e?MG(e,function(t){return P5(t)?ZG(t):eq(t)}(e)):[]}var DA=function(e){if(!e)return[];if(P5(e))return function(n){return typeof n=="string"||!uP(n)&&cP(n)&&Lp.call(n)=="[object String]"}(e)?HG(e):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(e);if(vy&&e[vy])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(e[vy]());var t=iu(e);return(t==V4?zG:t==W4?$G:nq)(e)};function CA(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function I5(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(n){e[n]===void 0?e[n]=t[n]:CA(t[n])&&CA(e[n])&&Object.keys(t[n]).length>0&&I5(e[n],t[n])})}var fP={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function zp(){var e=typeof document<"u"?document:{};return I5(e,fP),e}var rq={document:fP,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function cs(){var e=typeof window<"u"?window:{};return I5(e,rq),e}function Q4(e){return Q4=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Q4(e)}function Lg(e,t){return Lg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},Lg(e,t)}function oq(){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 eE(e,t,n){return eE=oq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&Lg(u,i.prototype),u},eE.apply(null,arguments)}function tE(e){var t=typeof Map=="function"?new Map:void 0;return tE=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(t!==void 0){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return eE(n,arguments,Q4(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Lg(r,n)},tE(e)}var Ji=function(e){var t,n;function r(o){var i,a,u;return i=e.call.apply(e,[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=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(tE(Array));function P1(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,P1(n)):t.push(n)}),t}function dP(e,t){return Array.prototype.filter.call(e,t)}function k(e,t){var n=cs(),r=zp(),o=[];if(!t&&e instanceof Ji)return e;if(!e)return new Ji(o);if(typeof e=="string"){var i=e.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=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Ji)return e;o=e}return new Ji(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 Fl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=P1(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function Tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=P1(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function _l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=P1(t.map(function(o){return o.split(" ")}));return dP(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function xr(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Mg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function jl(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(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 Ao(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Oo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(m){var g=m.target;if(g){var y=m.target.dom7EventData||[];if(y.indexOf(m)<0&&y.unshift(m),k(g).is(o))i.apply(g,y);else for(var h=k(g).parents(),b=0;b<h.length;b+=1)k(h[b]).is(o)&&i.apply(h[b],y)}}function s(m){var g=m&&m.target&&m.target.dom7EventData||[];g.indexOf(m)<0&&g.unshift(m),i.apply(this,g)}typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:s}),d.addEventListener(v,s,a)}}return this}function SA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function zg(){var e=cs();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function $g(){var e=cs();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function xA(){if(this.length>0){var e=cs(),t=zp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Pl(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Hg(){for(var e=cs(),t=0;t<this.length;t+=1){var n=this[t];n.style.display==="none"&&(n.style.display=""),e.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Ug(e,t){var n,r=cs();if(arguments.length===1){if(typeof e!="string"){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Vg(e){return e?(this.forEach(function(t,n){e.apply(t,[t,n])}),this):this}function AA(e){return k(dP(this,e))}function Ea(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Wg(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function OA(e){var t,n,r=cs(),o=zp(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=k(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Ji){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function Ar(){for(var e,t=zp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Ji)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function BA(e){var t,n,r=zp();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Ji)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Il(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?k(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return k(t)}function Gg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?k(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return k(t)}function Nl(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return k(t)}function Rl(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!k(r[o]).is(e)||t.push(r[o]);return k(t)}function Ll(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Ml(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}k.fn=Ji.prototype;var iq="resize scroll".split(" ");function pP(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)iq.indexOf(e)<0&&(e in this[o]?this[o][e]():k(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var kA=pP("click"),Da=pP("focus"),aq="[object GeneratorFunction]",uq=/^(?:0|[1-9]\d*)$/;function sq(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}var I1=Object.prototype,nE=I1.hasOwnProperty,hP=I1.toString,lq=I1.propertyIsEnumerable,cq=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function fq(e,t){var n=gP(e)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&N5(u)}(a)&&nE.call(a,"callee")&&(!lq.call(a,"callee")||hP.call(a)=="[object Arguments]")}(e)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!nE.call(e,i)||o&&(i=="length"||gq(i,r))||n.push(i);return n}var FA,dq=(FA=function(e,t){return e&&pq(e,t,vq)},function(e,t){if(e==null)return e;if(!N5(e))return FA(e,t);for(var n=e.length,r=-1,o=Object(e);++r<n&&t(o[r],r,o)!==!1;);return e}),pq=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[++o];if(n(i[s],s,i)===!1)break}return t}}();function hq(e){if(n=(t=e)&&t.constructor,r=typeof n=="function"&&n.prototype||I1,t!==r)return cq(e);var t,n,r,o=[];for(var i in Object(e))nE.call(e,i)&&i!="constructor"&&o.push(i);return o}function gq(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||uq.test(e))&&e>-1&&e%1==0&&e<t}var gP=Array.isArray;function N5(e){return e!=null&&function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991}(e.length)&&!function(t){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(t)?hP.call(t):"";return n=="[object Function]"||n==aq}(e)}function vq(e){return N5(e)?fq(e):hq(e)}function mq(e){return e}var R5=function(e,t){return(gP(e)?sq:dq)(e,typeof t=="function"?t:mq)};let vP=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var yq=/^\s+|\s+$/g,bq=/^[-+]0x[0-9a-f]+$/i,wq=/^0b[01]+$/i,Eq=/^0o[0-7]+$/i,Dq=parseInt,Cq=typeof at=="object"&&at&&at.Object===Object&&at,Sq=typeof self=="object"&&self&&self.Object===Object&&self,xq=Cq||Sq||Function("return this")(),Aq=Object.prototype.toString,Oq=Math.max,Bq=Math.min,my=function(){return xq.Date.now()};function kq(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=e.apply(D,w)}function v(b){return l=b,u=setTimeout(g,t),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=my();if(m(b))return y(b);u=setTimeout(g,function(w){var D=t-(w-s);return f?Bq(D,i-(w-l)):D}(b))}function y(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=my(),w=m(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=TA(t)||0,qg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Oq(TA(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),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(my())},h}function qg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function TA(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&Aq.call(r)=="[object Symbol]"}(e))return NaN;if(qg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(yq,"");var n=wq.test(e);return n||Eq.test(e)?Dq(e.slice(2),n?2:8):bq.test(e)?NaN:+e}var Ku=function(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return qg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),kq(e,t,{leading:r,maxWait:t,trailing:o})};const Fq={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function Ld(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:t===void 0?void 0:t.key}}const rE=Array.isArray;function $0(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function yy(e){return e===void 0}function Yn(e){return e!==void 0}const _A=Ld("",{},[],void 0,void 0);function Ic(e,t){var n,r;const o=e.key===t.key,i=((n=e.data)===null||n===void 0?void 0:n.is)===((r=t.data)===null||r===void 0?void 0:r.is);return e.sel===t.sel&&o&&i}function Tq(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const a=(r=e[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const _q=["create","update","remove","destroy","pre","post"];function jq(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Fq;for(const f of _q)for(const d of e){const p=d[f];p!==void 0&&n[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return Ld(r.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=r.parentNode(f);r.removeChild(p,f)}}}function a(f,d){var p,v;let m,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;Yn(b)&&(b(f),g=f.data)}const y=f.children,h=f.sel;if(h==="!")yy(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,S=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(D,S)):h,O=f.elm=Yn(g)&&Yn(m=g.ns)?r.createElementNS(m,C,g):r.createElement(C,g);for(D<S&&O.setAttribute("id",h.slice(D+1,S)),w>0&&O.setAttribute("class",h.slice(S+1).replace(/\./g," ")),m=0;m<n.create.length;++m)n.create[m](_A,f);if(rE(y))for(m=0;m<y.length;++m){const L=y[m];L!=null&&r.appendChild(O,a(L,d))}else $0(f.text)&&r.appendChild(O,r.createTextNode(f.text));const F=f.data.hook;Yn(F)&&((v=F.create)===null||v===void 0||v.call(F,_A,f),F.insert&&d.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,d,p,v,m,g){for(;v<=m;++v){const y=p[v];y!=null&&r.insertBefore(f,a(y,g),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let m=0;m<n.destroy.length;++m)n.destroy[m](f);if(f.children!==void 0)for(let m=0;m<f.children.length;++m){const g=f.children[m];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,v){for(var m,g;p<=v;++p){let y,h;const b=d[p];if(b!=null)if(Yn(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=(g=(m=b==null?void 0:b.data)===null||m===void 0?void 0:m.hook)===null||g===void 0?void 0:g.remove;Yn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,d,p){var v,m,g,y,h;const b=(v=d.data)===null||v===void 0?void 0:v.hook;(m=b==null?void 0:b.prepatch)===null||m===void 0||m.call(b,f,d);const w=d.elm=f.elm,D=f.children,S=d.children;if(f!==d){if(d.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,d);(y=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,f,d)}yy(d.text)?Yn(D)&&Yn(S)?D!==S&&function(C,O,F,L){let H,M,K,V,G=0,q=0,ne=O.length-1,se=O[0],ue=O[ne],ae=F.length-1,B=F[0],x=F[ae];for(;G<=ne&&q<=ae;)se==null?se=O[++G]:ue==null?ue=O[--ne]:B==null?B=F[++q]:x==null?x=F[--ae]:Ic(se,B)?(c(se,B,L),se=O[++G],B=F[++q]):Ic(ue,x)?(c(ue,x,L),ue=O[--ne],x=F[--ae]):Ic(se,x)?(c(se,x,L),r.insertBefore(C,se.elm,r.nextSibling(ue.elm)),se=O[++G],x=F[--ae]):Ic(ue,B)?(c(ue,B,L),r.insertBefore(C,ue.elm,se.elm),ue=O[--ne],B=F[++q]):(H===void 0&&(H=Tq(O,G,ne)),M=H[B.key],yy(M)?r.insertBefore(C,a(B,L),se.elm):(K=O[M],K.sel!==B.sel?r.insertBefore(C,a(B,L),se.elm):(c(K,B,L),O[M]=void 0,r.insertBefore(C,K.elm,se.elm))),B=F[++q]);(G<=ne||q<=ae)&&(G>ne?(V=F[ae+1]==null?null:F[ae+1].elm,u(C,V,F,q,ae,L)):l(C,O,G,ne))}(w,D,S,p):Yn(S)?(Yn(f.text)&&r.setTextContent(w,""),u(w,null,S,0,S.length-1,p)):Yn(D)?l(w,D,0,D.length-1):Yn(f.text)&&r.setTextContent(w,""):f.text!==d.text&&(Yn(D)&&l(w,D,0,D.length-1),r.setTextContent(w,d.text)),(h=b==null?void 0:b.postpatch)===null||h===void 0||h.call(b,f,d)}}return function(f,d){let p,v,m;const g=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for(function(y){return y.sel!==void 0}(f)||(f=o(f)),Ic(f,d)?c(f,d,g):(v=f.elm,m=r.parentNode(v),a(d,g),m!==null&&(r.insertBefore(m,d.elm,r.nextSibling(v)),l(m,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<n.post.length;++p)n.post[p]();return d}}function mP(e,t,n){if(e.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&t!==void 0)for(let r=0;r<t.length;++r){const o=t[r].data;o!==void 0&&mP(o,t[r].children,t[r].sel)}}function zl(e,t,n){let r,o,i,a={};if(n!==void 0?(t!==null&&(a=t),rE(n)?r=n:$0(n)?o=n.toString():n&&n.sel&&(r=[n])):t!=null&&(rE(t)?r=t:$0(t)?o=t.toString():t&&t.sel?r=[t]:a=t),r!==void 0)for(i=0;i<r.length;++i)$0(r[i])&&(r[i]=Ld(void 0,void 0,void 0,r[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||mP(a,r,e),Ld(e,a,r,o,void 0)}function jA(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const 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 Pq={create:jA,update:jA};function PA(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const Iq={create:PA,update:PA},IA=/[A-Z]/g;function NA(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.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(IA,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(IA,"-$&").toLowerCase(),i[r]))}const Nq={create:NA,update:NA};function yP(e,t,n){if(typeof e=="function")e.call(t,n,t);else if(typeof e=="object")for(let r=0;r<e.length;r++)yP(e[r],t,n)}function Rq(e,t){const n=e.type,r=t.data.on;r&&r[n]&&yP(r[n],t,e)}function by(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=t.listener=e.listener||function l(c){Rq(c,l.vnode)};if(s.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Lq={create:by,update:by,destroy:by};function RA(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const Mq={create:RA,update:RA},LA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let wy=!1;function zq(e,t,n){(function(r){LA(function(){LA(r)})})(function(){e[t]=n})}function MA(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.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]||zq(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const $q={pre:function(){wy=!1},create:MA,update:MA,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;wy||(e.elm.offsetLeft,wy=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&t()})}};function bP(e,t){for(const n of e)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?bP(n,t):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?t.push(Ld(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function be(e,t,...n){const r=bP(n,[]);return typeof e=="function"?e(t,r):r.length===1&&!r[0].sel&&r[0].text?zl(e,t,r[0].text):zl(e,t,r)}be||(be={});var Hq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Uq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wP="\\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",Vq="[\\ud800-\\udfff]",zA="["+wP+"]",Kg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",EP="\\d+",Wq="[\\u2700-\\u27bf]",DP="[a-z\\xdf-\\xf6\\xf8-\\xff]",CP="[^\\ud800-\\udfff"+wP+EP+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",oE="\\ud83c[\\udffb-\\udfff]",SP="[^\\ud800-\\udfff]",L5="(?:\\ud83c[\\udde6-\\uddff]){2}",M5="[\\ud800-\\udbff][\\udc00-\\udfff]",tl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",$A="(?:"+DP+"|"+CP+")",Gq="(?:"+tl+"|"+CP+")",HA="(?:"+Kg+"|"+oE+")?",xP="[\\ufe0e\\ufe0f]?"+HA+("(?:\\u200d(?:"+[SP,L5,M5].join("|")+")[\\ufe0e\\ufe0f]?"+HA+")*"),qq="(?:"+[Wq,L5,M5].join("|")+")"+xP,Kq="(?:"+[SP+Kg+"?",Kg,L5,M5,Vq].join("|")+")",Yq=RegExp("['’]","g"),Xq=RegExp(Kg,"g"),Jq=RegExp(oE+"(?="+oE+")|"+Kq+xP,"g"),Zq=RegExp([tl+"?"+DP+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[zA,tl,"$"].join("|")+")",Gq+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[zA,tl+$A,"$"].join("|")+")",tl+"?"+$A+"+(?:['’](?:d|ll|m|re|s|t|ve))?",tl+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",EP,qq].join("|"),"g"),Qq=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),eK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tK=typeof at=="object"&&at&&at.Object===Object&&at,nK=typeof self=="object"&&self&&self.Object===Object&&self,rK=tK||nK||Function("return this")(),Ey,oK=(Ey={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return Ey==null?void 0:Ey[e]});function AP(e){return Qq.test(e)}function iK(e){return AP(e)?function(t){return t.match(Jq)||[]}(e):function(t){return t.split("")}(e)}var aK=Object.prototype.toString,UA=rK.Symbol,VA=UA?UA.prototype:void 0,WA=VA?VA.toString:void 0;function uK(e){if(typeof e=="string")return e;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&aK.call(n)=="[object Symbol]"}(e))return WA?WA.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function sK(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e: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}(e,t,n)}function H0(e){return e==null?"":uK(e)}var GA,lK=(GA=function(e,t,n){return t=t.toLowerCase(),e+(n?cK(H0(t).toLowerCase()):t)},function(e){return function(t,n,r,o){var i=-1,a=t?t.length:0;for(o;++i<a;)r=n(r,t[i],i,t);return r}(function(t,n,r){return t=H0(t),(n=n)===void 0?function(o){return eK.test(o)}(t)?function(o){return o.match(Zq)||[]}(t):function(o){return o.match(Hq)||[]}(t):t.match(n)||[]}(function(t){return(t=H0(t))&&t.replace(Uq,oK).replace(Xq,"")}(e).replace(Yq,"")),GA,"")}),qA,cK=(qA="toUpperCase",function(e){var t=AP(e=H0(e))?iK(e):void 0,n=t?t[0]:e.charAt(0),r=t?sK(t,1).join(""):e.slice(1);return n[qA]()+r});for(var fK=lK,dK=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Dy={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},OP={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:dK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},z5={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},Ih=1;Ih<20;Ih++)z5["f"+Ih]=111+Ih;function BP(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in Dy)l[Dy[d]]=!1;var p=!0,v=!1,m=void 0;try{for(var g,y=c[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=kP(h),D=Dy[w];if(h.length>1&&!D&&!OP[h]&&!z5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=pK(h)),D&&(l[D]=!b||null)}}catch(S){v=!0,m=S}finally{try{!p&&y.return&&y.return()}finally{if(v)throw m}}return l}(i,t)}),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 pK(e){return e=kP(e),z5[e]||e.toUpperCase().charCodeAt(0)}function kP(e){return e=e.toLowerCase(),e=OP[e]||e}var hK=BP,Cy=function(e,t){return BP(e,{byKey:!0},t)},gK=/^\s+|\s+$/g,vK=/^[-+]0x[0-9a-f]+$/i,mK=/^0b[01]+$/i,yK=/^0o[0-7]+$/i,bK=parseInt,wK=typeof at=="object"&&at&&at.Object===Object&&at,EK=typeof self=="object"&&self&&self.Object===Object&&self,DK=wK||EK||Function("return this")(),CK=Object.prototype.toString,SK=Math.max,xK=Math.min,Sy=function(){return DK.Date.now()};function iE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function KA(e){if(typeof e=="number")return e;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&CK.call(r)=="[object Symbol]"}(e))return NaN;if(iE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(gK,"");var n=mK.test(e);return n||yK.test(e)?bK(e.slice(2),n?2:8):vK.test(e)?NaN:+e}var Os,FP=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=e.apply(D,w)}function v(b){return l=b,u=setTimeout(g,t),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=Sy();if(m(b))return y(b);u=setTimeout(g,function(w){var D=t-(w-s);return f?xK(D,i-(w-l)):D}(b))}function y(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=Sy(),w=m(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=KA(t)||0,iE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?SK(KA(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),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(Sy())},h},TP=as(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",F="[object Uint8Array]",L="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,V=/^\[object .+?Constructor\]$/,G=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[S]=q[C]=q[O]=q[l]=q[c]=q[f]=q[p]=q[v]=q[m]=q[g]=q[F]=q[L]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[y]=!1;var ne=typeof at=="object"&&at&&at.Object===Object&&at,se=typeof self=="object"&&self&&self.Object===Object&&self,ue=ne||se||Function("return this")(),ae=t&&!t.nodeType&&t,B=ae&&e&&!e.nodeType&&e,x=B&&B.exports===ae;function j(T,z){return T.set(z[0],z[1]),T}function $(T,z){return T.add(z),T}function Y(T,z,re,le){var ze=-1,vt=T?T.length:0;for(le;++ze<vt;)re=z(re,T[ze],ze,T);return re}function U(T){var z=!1;if(T!=null&&typeof T.toString!="function")try{z=!!(T+"")}catch{}return z}function ie(T){var z=-1,re=Array(T.size);return T.forEach(function(le,ze){re[++z]=[ze,le]}),re}function ge(T,z){return function(re){return T(z(re))}}function ve(T){var z=-1,re=Array(T.size);return T.forEach(function(le){re[++z]=le}),re}var De=Array.prototype,W=Function.prototype,Ne=Object.prototype,Ae=ue["__core-js_shared__"],de=function(){var T=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),Oe=W.toString,Ot=Ne.hasOwnProperty,$e=Ne.toString,Qe=RegExp("^"+Oe.call(Ot).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=x?ue.Buffer:void 0,gn=ue.Symbol,Me=ue.Uint8Array,In=ge(Object.getPrototypeOf,Object),jr=Object.create,to=Ne.propertyIsEnumerable,ys=De.splice,$a=Object.getOwnPropertySymbols,Pr=gt?gt.isBuffer:void 0,no=ge(Object.keys,Object),Io=ro(ue,"DataView"),vn=ro(ue,"Map"),mn=ro(ue,"Promise"),yn=ro(ue,"Set"),kn=ro(ue,"WeakMap"),tn=ro(Object,"create"),fr=io(Io),Dc=io(vn),di=io(mn),No=io(yn),bs=io(kn),Ha=gn?gn.prototype:void 0,ws=Ha?Ha.valueOf:void 0;function Ir(T){var z=-1,re=T?T.length:0;for(this.clear();++z<re;){var le=T[z];this.set(le[0],le[1])}}function dr(T){var z=-1,re=T?T.length:0;for(this.clear();++z<re;){var le=T[z];this.set(le[0],le[1])}}function Ro(T){var z=-1,re=T?T.length:0;for(this.clear();++z<re;){var le=T[z];this.set(le[0],le[1])}}function Nr(T){this.__data__=new dr(T)}function pi(T,z){var re=_(T)||function(st){return function(Ve){return function(Yt){return!!Yt&&typeof Yt=="object"}(Ve)&&N(Ve)}(st)&&Ot.call(st,"callee")&&(!to.call(st,"callee")||$e.call(st)==o)}(T)?function(st,Ve){for(var Yt=-1,bn=Array(st);++Yt<st;)bn[Yt]=Ve(Yt);return bn}(T.length,String):[],le=re.length,ze=!!le;for(var vt in T)!Ot.call(T,vt)||ze&&(vt=="length"||wh(vt,le))||re.push(vt);return re}function yh(T,z,re){var le=T[z];Ot.call(T,z)&&Eh(le,re)&&(re!==void 0||z in T)||(T[z]=re)}function Kn(T,z){for(var re=T.length;re--;)if(Eh(T[re][0],z))return re;return-1}function Cc(T,z,re,le,ze,vt,st){var Ve;if(le&&(Ve=vt?le(T,ze,vt,st):le(T)),Ve!==void 0)return Ve;if(!et(T))return T;var Yt=_(T);if(Yt){if(Ve=function(ye){var Xe=ye.length,_t=ye.constructor(Xe);return Xe&&typeof ye[0]=="string"&&Ot.call(ye,"index")&&(_t.index=ye.index,_t.input=ye.input),_t}(T),!z)return function(ye,Xe){var _t=-1,Re=ye.length;for(Xe||(Xe=Array(Re));++_t<Re;)Xe[_t]=ye[_t];return Xe}(T,Ve)}else{var bn=oo(T),Ua=bn==u||bn==s;if(J(T))return function(ye,Xe){if(Xe)return ye.slice();var _t=new ye.constructor(ye.length);return ye.copy(_t),_t}(T,z);if(bn==f||bn==o||Ua&&!vt){if(U(T))return vt?T:{};if(Ve=function(ye){return typeof ye.constructor!="function"||hi(ye)?{}:(Xe=In(ye),et(Xe)?jr(Xe):{});var Xe}(Ua?{}:T),!z)return function(ye,Xe){return bh(ye,Sc(ye),Xe)}(T,function(ye,Xe){return ye&&bh(Xe,je(Xe),ye)}(Ve,T))}else{if(!q[bn])return vt?T:{};Ve=function(ye,Xe,_t,Re){var We=ye.constructor;switch(Xe){case h:return Es(ye);case i:case a:return new We(+ye);case b:return function(Ge,Bt){var Fn=Bt?Es(Ge.buffer):Ge.buffer;return new Ge.constructor(Fn,Ge.byteOffset,Ge.byteLength)}(ye,Re);case w:case D:case S:case C:case O:case F:case L:case H:case M:return function(Ge,Bt){var Fn=Bt?Es(Ge.buffer):Ge.buffer;return new Ge.constructor(Fn,Ge.byteOffset,Ge.length)}(ye,Re);case l:return function(Ge,Bt,Fn){return Y(Bt?Fn(ie(Ge),!0):ie(Ge),j,new Ge.constructor)}(ye,Re,_t);case c:case m:return new We(ye);case p:return function(Ge){var Bt=new Ge.constructor(Ge.source,K.exec(Ge));return Bt.lastIndex=Ge.lastIndex,Bt}(ye);case v:return function(Ge,Bt,Fn){return Y(Bt?Fn(ve(Ge),!0):ve(Ge),$,new Ge.constructor)}(ye,Re,_t);case g:return function(Ge){return ws?Object(ws.call(Ge)):{}}(ye)}}(T,bn,Cc,z)}}st||(st=new Nr);var zo=st.get(T);if(zo)return zo;if(st.set(T,Ve),!Yt)var gi=re?function(ye){return function(Xe,_t,Re){var We=_t(Xe);return _(Xe)?We:function(Ge,Bt){for(var Fn=-1,Nn=Bt.length,Rr=Ge.length;++Fn<Nn;)Ge[Rr+Fn]=Bt[Fn];return Ge}(We,Re(Xe))}(ye,je,Sc)}(T):je(T);return function(ye,Xe){for(var _t=-1,Re=ye?ye.length:0;++_t<Re&&Xe(ye[_t],_t,ye)!==!1;);}(gi||T,function(ye,Xe){gi&&(ye=T[Xe=ye]),yh(Ve,Xe,Cc(ye,z,re,le,Xe,T,st))}),Ve}function Lo(T){return!(!et(T)||function(z){return!!de&&de in z}(T))&&(he(T)||U(T)?Qe:V).test(io(T))}function Es(T){var z=new T.constructor(T.byteLength);return new Me(z).set(new Me(T)),z}function bh(T,z,re,le){re||(re={});for(var ze=-1,vt=z.length;++ze<vt;){var st=z[ze],Ve=void 0;yh(re,st,Ve===void 0?T[st]:Ve)}return re}function Mo(T,z){var re,le,ze=T.__data__;return((le=typeof(re=z))=="string"||le=="number"||le=="symbol"||le=="boolean"?re!=="__proto__":re===null)?ze[typeof z=="string"?"string":"hash"]:ze.map}function ro(T,z){var re=function(le,ze){return le==null?void 0:le[ze]}(T,z);return Lo(re)?re:void 0}Ir.prototype.clear=function(){this.__data__=tn?tn(null):{}},Ir.prototype.delete=function(T){return this.has(T)&&delete this.__data__[T]},Ir.prototype.get=function(T){var z=this.__data__;if(tn){var re=z[T];return re===n?void 0:re}return Ot.call(z,T)?z[T]:void 0},Ir.prototype.has=function(T){var z=this.__data__;return tn?z[T]!==void 0:Ot.call(z,T)},Ir.prototype.set=function(T,z){return this.__data__[T]=tn&&z===void 0?n:z,this},dr.prototype.clear=function(){this.__data__=[]},dr.prototype.delete=function(T){var z=this.__data__,re=Kn(z,T);return!(re<0)&&(re==z.length-1?z.pop():ys.call(z,re,1),!0)},dr.prototype.get=function(T){var z=this.__data__,re=Kn(z,T);return re<0?void 0:z[re][1]},dr.prototype.has=function(T){return Kn(this.__data__,T)>-1},dr.prototype.set=function(T,z){var re=this.__data__,le=Kn(re,T);return le<0?re.push([T,z]):re[le][1]=z,this},Ro.prototype.clear=function(){this.__data__={hash:new Ir,map:new(vn||dr),string:new Ir}},Ro.prototype.delete=function(T){return Mo(this,T).delete(T)},Ro.prototype.get=function(T){return Mo(this,T).get(T)},Ro.prototype.has=function(T){return Mo(this,T).has(T)},Ro.prototype.set=function(T,z){return Mo(this,T).set(T,z),this},Nr.prototype.clear=function(){this.__data__=new dr},Nr.prototype.delete=function(T){return this.__data__.delete(T)},Nr.prototype.get=function(T){return this.__data__.get(T)},Nr.prototype.has=function(T){return this.__data__.has(T)},Nr.prototype.set=function(T,z){var re=this.__data__;if(re instanceof dr){var le=re.__data__;if(!vn||le.length<199)return le.push([T,z]),this;re=this.__data__=new Ro(le)}return re.set(T,z),this};var Sc=$a?ge($a,Object):function(){return[]},oo=function(T){return $e.call(T)};function wh(T,z){return!!(z=z??r)&&(typeof T=="number"||G.test(T))&&T>-1&&T%1==0&&T<z}function hi(T){var z=T&&T.constructor;return T===(typeof z=="function"&&z.prototype||Ne)}function io(T){if(T!=null){try{return Oe.call(T)}catch{}try{return T+""}catch{}}return""}function Eh(T,z){return T===z||T!=T&&z!=z}(Io&&oo(new Io(new ArrayBuffer(1)))!=b||vn&&oo(new vn)!=l||mn&&oo(mn.resolve())!=d||yn&&oo(new yn)!=v||kn&&oo(new kn)!=y)&&(oo=function(T){var z=$e.call(T),re=z==f?T.constructor:void 0,le=re?io(re):void 0;if(le)switch(le){case fr:return b;case Dc:return l;case di:return d;case No:return v;case bs:return y}return z});var _=Array.isArray;function N(T){return T!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(T.length)&&!he(T)}var J=Pr||function(){return!1};function he(T){var z=et(T)?$e.call(T):"";return z==u||z==s}function et(T){var z=typeof T;return!!T&&(z=="object"||z=="function")}function je(T){return N(T)?pi(T):function(z){if(!hi(z))return no(z);var re=[];for(var le in Object(z))Ot.call(z,le)&&le!="constructor"&&re.push(le);return re}(T)}e.exports=function(T){return Cc(T,!0,!0)}});function YA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AK=0;function OK(e){return"__private_"+AK+++"_"+e}function BK(e,t,n){const r=[];return e.forEach(o=>typeof o!="string"?r.push(o):t[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 XA(e,t){const n=/\$/g;let r=[e];if(t==null)return r;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=BK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var _P=(Os=OK("apply"),class{constructor(e){Object.defineProperty(this,Os,{value:kK}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(YA(this,Os)[Os],this):YA(this,Os)[Os](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if(typeof n=="object"){if(t&&t.smart_count!==void 0)return XA(n[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return XA(n,t)}});function kK(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var jP=function(){var e={},t=e._fns={};return e.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(t),m=0,g=v.length;m<g;m++){var y=v[m];if(y==="*"&&(f=f.concat(t[y])),p.length===2&&p[0]===y){f=f.concat(t[y]);break}}return f}(n);l.length&&function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)}(n,l,[r,o,i,a,u,s])},e.on=function(n,r){t[n]||(t[n]=[]),t[n].push(r)},e.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),e.off(n,o)})},e.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]},e},FK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:TK}=FK,JA=e=>crypto.getRandomValues(new Uint8Array(e)),ZA=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var _K={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>ZA(e,t,JA),customRandom:ZA,urlAlphabet:TK,random:JA},xy=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function PP(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}PP.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)o[t]!=="*"&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if(typeof e.splice=="function")for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e=="object")for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var jK=/[\/\+\.]/,PK=function(e,t){function n(r){var o=function(i,a,u){var s=new PP(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,e,jK);return o&&o.length>=2}return t?n(t.split(";")[0]):n},IK=0;function NK(e){return"__private_"+IK+++"_"+e}var Ay=NK("publish");class IP{constructor(){Object.defineProperty(this,Ay,{value:RK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const n={...this.state},r={...this.state,...t};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,Ay)[Ay](n,r,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function RK(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach(r=>{r(...t)})}IP.VERSION="2.0.3";var QA=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},e7={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 t7(e){let t="";return e.replace(/[^A-Z0-9]/gi,n=>(t+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+t}var LK=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218},NP={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n]}}},MK={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}"}}},RP=_K;let LP,MP;function fe(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var zK=0;function Kt(e){return"__private_"+zK+++"_"+e}const{nanoid:$K}=RP,{justErrorsLogger:HK,debugLogger:UK}=NP;class ho extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class VK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var fn=Kt("plugins"),Nc=Kt("storeUnsubscribe"),Ho=Kt("emitter"),cu=Kt("preProcessors"),fu=Kt("uploaders"),Ko=Kt("postProcessors"),id=Kt("checkRestrictions"),Oy=Kt("checkMinNumberOfFiles"),Md=Kt("checkRequiredMetaFieldsOnFile"),By=Kt("checkRequiredMetaFields"),Xt=Kt("showOrLogErrorAndThrow"),Rc=Kt("assertNewUploadAllowed"),Lc=Kt("checkAndCreateFileStateObject"),Mc=Kt("startIfAutoProceed"),ky=Kt("addListeners"),Mr=Kt("updateOnlineStatus"),Uo=Kt("createUpload"),Fy=Kt("getUpload"),gu=Kt("removeUpload"),Vo=Kt("runUpload");LP=Symbol.for("uppy test: getPlugins"),MP=Symbol.for("uppy test: createUpload");class zP{constructor(t){Object.defineProperty(this,Vo,{value:rY}),Object.defineProperty(this,gu,{value:nY}),Object.defineProperty(this,Fy,{value:tY}),Object.defineProperty(this,Uo,{value:eY}),Object.defineProperty(this,ky,{value:QK}),Object.defineProperty(this,Mc,{value:ZK}),Object.defineProperty(this,Lc,{value:JK}),Object.defineProperty(this,Rc,{value:XK}),Object.defineProperty(this,Xt,{value:YK}),Object.defineProperty(this,By,{value:KK}),Object.defineProperty(this,Md,{value:qK}),Object.defineProperty(this,Oy,{value:GK}),Object.defineProperty(this,id,{value:WK}),Object.defineProperty(this,fn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Nc,{writable:!0,value:void 0}),Object.defineProperty(this,Ho,{writable:!0,value:jP()}),Object.defineProperty(this,cu,{writable:!0,value:new Set}),Object.defineProperty(this,fu,{writable:!0,value:new Set}),Object.defineProperty(this,Ko,{writable:!0,value:new Set}),Object.defineProperty(this,Mr,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=MK;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 IP,logger:HK,infoTimeout:5e3};if(this.opts={...n,...t,restrictions:{...n.restrictions,...t&&t.restrictions}},t&&t.logger&&t.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"):t&&t.debug&&(this.opts.logger=UK),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=Ku(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:LK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),fe(this,Nc)[Nc]=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),fe(this,ky)[ky]()}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];fe(this,Ho)[Ho].emit(t,...r)}on(t,n){return fe(this,Ho)[Ho].on(t,n),this}once(t,n){return fe(this,Ho)[Ho].once(t,n),this}off(t,n){return fe(this,Ho)[Ho].off(t,n),this}updateAll(t){this.iteratePlugins(n=>{n.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,n){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...n}}})}i18nInit(){const t=new _P([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const t={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,...t},r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){fe(this,cu)[cu].add(t)}removePreProcessor(t){return fe(this,cu)[cu].delete(t)}addPostProcessor(t){fe(this,Ko)[Ko].add(t)}removePostProcessor(t){return fe(this,Ko)[Ko].delete(t)}addUploader(t){fe(this,fu)[fu].add(t)}removeUploader(t){return fe(this,fu)[fu].delete(t)}setMeta(t){const n={...this.getState().meta,...t},r={...this.getState().files};Object.keys(r).forEach(o=>{r[o]={...r[o],meta:{...r[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:n,files:r})}setFileMeta(t,n){const r={...this.getState().files};if(!r[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...r[t].meta,...n};r[t]={...r[t],meta:o},this.setState({files:r})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:n,error:r}=this.getState(),o=Object.values(t),i=o.filter(v=>{let{progress:m}=v;return!m.uploadComplete&&m.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:n===100&&c.length===o.length&&p.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(t,n){try{return fe(this,id)[id](t,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(t){const{files:n}=this.getState();return!(!n[t]||n[t].isGhost)}addFile(t){fe(this,Rc)[Rc](t);const{files:n}=this.getState();let r=fe(this,Lc)[Lc](n,t);return n[r.id]&&n[r.id].isGhost&&(r={...n[r.id],data:t.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}`),fe(this,Mc)[Mc](),r.id}addFiles(t){fe(this,Rc)[Rc]();const n={...this.getState().files},r=[],o=[];for(let i=0;i<t.length;i++)try{let a=fe(this,Lc)[Lc](n,t[i]);n[a.id]&&n[a.id].isGhost&&(a={...n[a.id],data:t[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&&fe(this,Mc)[Mc](),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(t,n){const{files:r,currentUploads:o}=this.getState(),i={...r},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}t.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],n)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,n){n===void 0&&(n=null),this.removeFiles([t],n)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const n=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:n}),this.emit("upload-pause",t,n),n}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!0};t[n]=r}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(n=>!t[n].progress.uploadComplete&&t[n].progress.uploadStarted).forEach(n=>{const r={...t[n],isPaused:!1,error:null};t[n]=r}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},n=Object.keys(t).filter(o=>t[o].error);if(n.forEach(o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i}),this.setState({files:t,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=fe(this,Uo)[Uo](n,{forceAllowNewUpload:!0});return fe(this,Vo)[Vo](r)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),n=Object.keys(t);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const n=fe(this,Uo)[Uo]([t],{forceAllowNewUpload:!0});return fe(this,Vo)[Vo](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,n){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=t.filter(s=>s.progress.bytesTotal!=null),r=t.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*t.length,l=r.reduce((f,d)=>f+d.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(t,n){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const r=new t(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 t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),r.type in fe(this,fn)[fn]?fe(this,fn)[fn][r.type].push(r):fe(this,fn)[fn][r.type]=[r],r.install(),this}getPlugin(t){for(const n of Object.values(fe(this,fn)[fn])){const r=n.find(o=>o.id===t);if(r!=null)return r}}[LP](t){return fe(this,fn)[fn][t]}iteratePlugins(t){Object.values(fe(this,fn)[fn]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const n=fe(this,fn)[fn][t.type],r=n.findIndex(i=>i.id===t.id);r!==-1&&n.splice(r,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),fe(this,Nc)[Nc](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",fe(this,Mr)[Mr]),window.removeEventListener("offline",fe(this,Mr)[Mr]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:n,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(t,n){const{logger:r}=this.opts;switch(n){case"error":r.error(t);break;case"warning":r.warn(t);break;default:r.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?fe(this,Vo)[Vo](t):(fe(this,gu)[gu](t),Promise.reject(new Error("Nonexistent upload")))}[MP](){return fe(this,Uo)[Uo](...arguments)}addResultData(t,n){if(!fe(this,Fy)[Fy](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:r}=this.getState(),o={...r[t],result:{...r[t].result,...n}};this.setState({currentUploads:{...r,[t]:o}})}upload(){var t;(t=fe(this,fn)[fn].uploader)!=null&&t.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(()=>{fe(this,Oy)[Oy](n),fe(this,By)[By](n)}).catch(o=>{fe(this,Xt)[Xt](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=fe(this,Uo)[Uo](a);return fe(this,Vo)[Vo](u)}).catch(o=>{fe(this,Xt)[Xt](o,{showInformer:!1})}))}}function WK(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new ho(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!e.type&&PK(e.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!e.extension)&&e.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new ho(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>o)throw new ho(this.i18n("exceedsSize",{size:xy(o),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new ho(this.i18n("exceedsSize",{size:xy(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new ho(this.i18n("inferiorSize",{size:xy(r)}))}function GK(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new ho(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function qK(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new ho(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(a),o.push(t[i]),fe(this,Xt)[Xt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function KK(e){const t=Object.keys(e).flatMap(n=>{const r=this.getFile(n);return fe(this,Md)[Md](r)});if(t.length)throw new VK(t,`${this.i18n("missingRequiredMetaField")}`)}function YK(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function XK(e){const{allowNewUpload:t}=this.getState();t===!1&&fe(this,Xt)[Xt](new ho(this.i18n("noMoreFilesAllowed")),{file:e})}function JK(e,t){const n=function(f){var d;if(f.type)return f.type;const p=f.name?(d=QA(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in e7?e7[p]:"application/octet-stream"}(t),r=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,t),o=QA(r).extension,i=!!t.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${t7(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${t7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const f=new ho(this.i18n("noDuplicates",{fileName:r}));fe(this,Xt)[Xt](f,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?fe(this,Xt)[Xt](new ho("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(d=>e[d]);fe(this,id)[id](l,f)}catch(f){fe(this,Xt)[Xt](f,{file:l})}return l}function ZK(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function QK(){const e=(t,n,r)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",e),this.on("upload-error",(t,n,r)=>{if(e(n,t,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:t.name}),fe(this,Xt)[Xt](o,{throwErr:!1})}else fe(this,Xt)[Xt](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,n)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...r,postprocess:fe(this,Ko)[Ko].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal},response:n,uploadURL:n.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(t,n)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:n}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n={...this.getState().files};n[t.id]={...n[t.id],progress:{...n[t.id].progress}},delete n[t.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&fe(this,Md)[Md](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",fe(this,Mr)[Mr]),window.addEventListener("offline",fe(this,Mr)[Mr]),setTimeout(fe(this,Mr)[Mr],3e3))}function eY(e,t){t===void 0&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=$K();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function tY(e){const{currentUploads:t}=this.getState();return t[e]}function nY(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function rY(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...fe(this,cu)[cu],...fe(this,fu)[fu],...fe(this,Ko)[Ko]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s={...n,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(a){throw this.emit("error",a),fe(this,gu)[gu](e),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(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),fe(this,gu)[gu](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}zP.VERSION="2.1.3";var $P=zP,oY=as(function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(B,x){for(var j in x)B[j]=x[j];return B}function v(B){var x=B.parentNode;x&&x.removeChild(B)}function m(B,x,j){var $,Y,U,ie={};for(U in x)U=="key"?$=x[U]:U=="ref"?Y=x[U]:ie[U]=x[U];if(arguments.length>2&&(ie.children=arguments.length>3?n.call(arguments,2):j),typeof B=="function"&&B.defaultProps!=null)for(U in B.defaultProps)ie[U]===void 0&&(ie[U]=B.defaultProps[U]);return g(B,ie,$,Y,null)}function g(B,x,j,$,Y){var U={type:B,props:x,key:j,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(U),U}function y(B){return B.children}function h(B,x){this.props=B,this.context=x}function b(B,x){if(x==null)return B.__?b(B.__,B.__.__k.indexOf(B)+1):null;for(var j;x<B.__k.length;x++)if((j=B.__k[x])!=null&&j.__e!=null)return j.__e;return typeof B.type=="function"?b(B):null}function w(B){var x,j;if((B=B.__)!=null&&B.__c!=null){for(B.__e=B.__c.base=null,x=0;x<B.__k.length;x++)if((j=B.__k[x])!=null&&j.__e!=null){B.__e=B.__c.base=j.__e;break}return w(B)}}function D(B){(!B.__d&&(B.__d=!0)&&a.push(B)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var B;S.__r=a.length;)B=a.sort(function(x,j){return x.__v.__b-j.__v.__b}),a=[],B.some(function(x){var j,$,Y,U,ie,ge;x.__d&&(ie=(U=(j=x).__v).__e,(ge=j.__P)&&($=[],(Y=p({},U)).__v=U.__v+1,V(ge,U,Y,j.__n,ge.ownerSVGElement!==void 0,U.__h!=null?[ie]:null,$,ie??b(U),U.__h),G($,U),U.__e!=ie&&w(U)))})}function C(B,x,j,$,Y,U,ie,ge,ve,De){var W,Ne,Ae,de,Oe,Ot,$e,Qe=$&&$.__k||f,gt=Qe.length;for(j.__k=[],W=0;W<x.length;W++)if((de=j.__k[W]=(de=x[W])==null||typeof de=="boolean"?null:typeof de=="string"||typeof de=="number"||typeof de=="bigint"?g(null,de,null,null,de):Array.isArray(de)?g(y,{children:de},null,null,null):de.__b>0?g(de.type,de.props,de.key,null,de.__v):de)!=null){if(de.__=j,de.__b=j.__b+1,(Ae=Qe[W])===null||Ae&&de.key==Ae.key&&de.type===Ae.type)Qe[W]=void 0;else for(Ne=0;Ne<gt;Ne++){if((Ae=Qe[Ne])&&de.key==Ae.key&&de.type===Ae.type){Qe[Ne]=void 0;break}Ae=null}V(B,de,Ae=Ae||c,Y,U,ie,ge,ve,De),Oe=de.__e,(Ne=de.ref)&&Ae.ref!=Ne&&($e||($e=[]),Ae.ref&&$e.push(Ae.ref,null,de),$e.push(Ne,de.__c||Oe,de)),Oe!=null?(Ot==null&&(Ot=Oe),typeof de.type=="function"&&de.__k===Ae.__k?de.__d=ve=O(de,ve,B):ve=F(B,de,Ae,Qe,Oe,ve),typeof j.type=="function"&&(j.__d=ve)):ve&&Ae.__e==ve&&ve.parentNode!=B&&(ve=b(Ae))}for(j.__e=Ot,W=gt;W--;)Qe[W]!=null&&(typeof j.type=="function"&&Qe[W].__e!=null&&Qe[W].__e==j.__d&&(j.__d=b($,W+1)),se(Qe[W],Qe[W]));if($e)for(W=0;W<$e.length;W++)ne($e[W],$e[++W],$e[++W])}function O(B,x,j){for(var $,Y=B.__k,U=0;Y&&U<Y.length;U++)($=Y[U])&&($.__=B,x=typeof $.type=="function"?O($,x,j):F(j,$,$,Y,$.__e,x));return x}function F(B,x,j,$,Y,U){var ie,ge,ve;if(x.__d!==void 0)ie=x.__d,x.__d=void 0;else if(j==null||Y!=U||Y.parentNode==null)e:if(U==null||U.parentNode!==B)B.appendChild(Y),ie=null;else{for(ge=U,ve=0;(ge=ge.nextSibling)&&ve<$.length;ve+=2)if(ge==Y)break e;B.insertBefore(Y,U),ie=U}return ie!==void 0?ie:Y.nextSibling}function L(B,x,j){x[0]==="-"?B.setProperty(x,j):B[x]=j==null?"":typeof j!="number"||d.test(x)?j:j+"px"}function H(B,x,j,$,Y){var U;e:if(x==="style")if(typeof j=="string")B.style.cssText=j;else{if(typeof $=="string"&&(B.style.cssText=$=""),$)for(x in $)j&&x in j||L(B.style,x,"");if(j)for(x in j)$&&j[x]===$[x]||L(B.style,x,j[x])}else if(x[0]==="o"&&x[1]==="n")U=x!==(x=x.replace(/Capture$/,"")),x=x.toLowerCase()in B?x.toLowerCase().slice(2):x.slice(2),B.l||(B.l={}),B.l[x+U]=j,j?$||B.addEventListener(x,U?K:M,U):B.removeEventListener(x,U?K:M,U);else if(x!=="dangerouslySetInnerHTML"){if(Y)x=x.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(x!=="href"&&x!=="list"&&x!=="form"&&x!=="tabIndex"&&x!=="download"&&x in B)try{B[x]=j??"";break e}catch{}typeof j=="function"||(j!=null&&(j!==!1||x[0]==="a"&&x[1]==="r")?B.setAttribute(x,j):B.removeAttribute(x))}}function M(B){this.l[B.type+!1](r.event?r.event(B):B)}function K(B){this.l[B.type+!0](r.event?r.event(B):B)}function V(B,x,j,$,Y,U,ie,ge,ve){var De,W,Ne,Ae,de,Oe,Ot,$e,Qe,gt,gn,Me=x.type;if(x.constructor!==void 0)return null;j.__h!=null&&(ve=j.__h,ge=x.__e=j.__e,x.__h=null,U=[ge]),(De=r.__b)&&De(x);try{e:if(typeof Me=="function"){if($e=x.props,Qe=(De=Me.contextType)&&$[De.__c],gt=De?Qe?Qe.props.value:De.__:$,j.__c?Ot=(W=x.__c=j.__c).__=W.__E:("prototype"in Me&&Me.prototype.render?x.__c=W=new Me($e,gt):(x.__c=W=new h($e,gt),W.constructor=Me,W.render=ue),Qe&&Qe.sub(W),W.props=$e,W.state||(W.state={}),W.context=gt,W.__n=$,Ne=W.__d=!0,W.__h=[]),W.__s==null&&(W.__s=W.state),Me.getDerivedStateFromProps!=null&&(W.__s==W.state&&(W.__s=p({},W.__s)),p(W.__s,Me.getDerivedStateFromProps($e,W.__s))),Ae=W.props,de=W.state,Ne)Me.getDerivedStateFromProps==null&&W.componentWillMount!=null&&W.componentWillMount(),W.componentDidMount!=null&&W.__h.push(W.componentDidMount);else{if(Me.getDerivedStateFromProps==null&&$e!==Ae&&W.componentWillReceiveProps!=null&&W.componentWillReceiveProps($e,gt),!W.__e&&W.shouldComponentUpdate!=null&&W.shouldComponentUpdate($e,W.__s,gt)===!1||x.__v===j.__v){W.props=$e,W.state=W.__s,x.__v!==j.__v&&(W.__d=!1),W.__v=x,x.__e=j.__e,x.__k=j.__k,x.__k.forEach(function(In){In&&(In.__=x)}),W.__h.length&&ie.push(W);break e}W.componentWillUpdate!=null&&W.componentWillUpdate($e,W.__s,gt),W.componentDidUpdate!=null&&W.__h.push(function(){W.componentDidUpdate(Ae,de,Oe)})}W.context=gt,W.props=$e,W.state=W.__s,(De=r.__r)&&De(x),W.__d=!1,W.__v=x,W.__P=B,De=W.render(W.props,W.state,W.context),W.state=W.__s,W.getChildContext!=null&&($=p(p({},$),W.getChildContext())),Ne||W.getSnapshotBeforeUpdate==null||(Oe=W.getSnapshotBeforeUpdate(Ae,de)),gn=De!=null&&De.type===y&&De.key==null?De.props.children:De,C(B,Array.isArray(gn)?gn:[gn],x,j,$,Y,U,ie,ge,ve),W.base=x.__e,x.__h=null,W.__h.length&&ie.push(W),Ot&&(W.__E=W.__=null),W.__e=!1}else U==null&&x.__v===j.__v?(x.__k=j.__k,x.__e=j.__e):x.__e=q(j.__e,x,j,$,Y,U,ie,ve);(De=r.diffed)&&De(x)}catch(In){x.__v=null,(ve||U!=null)&&(x.__e=ge,x.__h=!!ve,U[U.indexOf(ge)]=null),r.__e(In,x,j)}}function G(B,x){r.__c&&r.__c(x,B),B.some(function(j){try{B=j.__h,j.__h=[],B.some(function($){$.call(j)})}catch($){r.__e($,j.__v)}})}function q(B,x,j,$,Y,U,ie,ge){var ve,De,W,Ne=j.props,Ae=x.props,de=x.type,Oe=0;if(de==="svg"&&(Y=!0),U!=null){for(;Oe<U.length;Oe++)if((ve=U[Oe])&&"setAttribute"in ve==!!de&&(de?ve.localName===de:ve.nodeType===3)){B=ve,U[Oe]=null;break}}if(B==null){if(de===null)return document.createTextNode(Ae);B=Y?document.createElementNS("http://www.w3.org/2000/svg",de):document.createElement(de,Ae.is&&Ae),U=null,ge=!1}if(de===null)Ne===Ae||ge&&B.data===Ae||(B.data=Ae);else{if(U=U&&n.call(B.childNodes),De=(Ne=j.props||c).dangerouslySetInnerHTML,W=Ae.dangerouslySetInnerHTML,!ge){if(U!=null)for(Ne={},Oe=0;Oe<B.attributes.length;Oe++)Ne[B.attributes[Oe].name]=B.attributes[Oe].value;(W||De)&&(W&&(De&&W.__html==De.__html||W.__html===B.innerHTML)||(B.innerHTML=W&&W.__html||""))}if(function(Ot,$e,Qe,gt,gn){var Me;for(Me in Qe)Me==="children"||Me==="key"||Me in $e||H(Ot,Me,null,Qe[Me],gt);for(Me in $e)gn&&typeof $e[Me]!="function"||Me==="children"||Me==="key"||Me==="value"||Me==="checked"||Qe[Me]===$e[Me]||H(Ot,Me,$e[Me],Qe[Me],gt)}(B,Ae,Ne,Y,ge),W)x.__k=[];else if(Oe=x.props.children,C(B,Array.isArray(Oe)?Oe:[Oe],x,j,$,Y&&de!=="foreignObject",U,ie,U?U[0]:j.__k&&b(j,0),ge),U!=null)for(Oe=U.length;Oe--;)U[Oe]!=null&&v(U[Oe]);ge||("value"in Ae&&(Oe=Ae.value)!==void 0&&(Oe!==Ne.value||Oe!==B.value||de==="progress"&&!Oe)&&H(B,"value",Oe,Ne.value,!1),"checked"in Ae&&(Oe=Ae.checked)!==void 0&&Oe!==B.checked&&H(B,"checked",Oe,Ne.checked,!1))}return B}function ne(B,x,j){try{typeof B=="function"?B(x):B.current=x}catch($){r.__e($,j)}}function se(B,x,j){var $,Y;if(r.unmount&&r.unmount(B),($=B.ref)&&($.current&&$.current!==B.__e||ne($,null,x)),($=B.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(U){r.__e(U,x)}$.base=$.__P=null}if($=B.__k)for(Y=0;Y<$.length;Y++)$[Y]&&se($[Y],x,typeof B.type!="function");j||B.__e==null||v(B.__e),B.__e=B.__d=void 0}function ue(B,x,j){return this.constructor(B,j)}function ae(B,x,j){var $,Y,U;r.__&&r.__(B,x),Y=($=typeof j=="function")?null:j&&j.__k||x.__k,U=[],V(x,B=(!$&&j||x).__k=m(y,null,[B]),Y||c,c,x.ownerSVGElement!==void 0,!$&&j?[j]:Y?null:x.firstChild?n.call(x.childNodes):null,U,!$&&j?j:Y?Y.__e:x.firstChild,$),G(U,B)}n=f.slice,r={__e:function(B,x){for(var j,$,Y;x=x.__;)if((j=x.__c)&&!j.__)try{if(($=j.constructor)&&$.getDerivedStateFromError!=null&&(j.setState($.getDerivedStateFromError(B)),Y=j.__d),j.componentDidCatch!=null&&(j.componentDidCatch(B),Y=j.__d),Y)return j.__E=j}catch(U){B=U}throw B}},o=0,i=function(B){return B!=null&&B.constructor===void 0},h.prototype.setState=function(B,x){var j;j=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof B=="function"&&(B=B(p({},j),this.props)),B&&p(j,B),B!=null&&this.__v&&(x&&this.__h.push(x),D(this))},h.prototype.forceUpdate=function(B){this.__v&&(this.__e=!0,B&&this.__h.push(B),D(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(B,x,j){var $,Y,U,ie=p({},B.props);for(U in x)U=="key"?$=x[U]:U=="ref"?Y=x[U]:ie[U]=x[U];return arguments.length>2&&(ie.children=arguments.length>3?n.call(arguments,2):j),g(B.type,ie,$||B.key,Y||B.ref,null)},t.createContext=function(B,x){var j={__c:x="__cC"+l++,__:B,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,U;return this.getChildContext||(Y=[],(U={})[x]=this,this.getChildContext=function(){return U},this.shouldComponentUpdate=function(ie){this.props.value!==ie.value&&Y.some(D)},this.sub=function(ie){Y.push(ie);var ge=ie.componentWillUnmount;ie.componentWillUnmount=function(){Y.splice(Y.indexOf(ie),1),ge&&ge.call(ie)}}),$.children}};return j.Provider.__=j.Consumer.contextType=j},t.createElement=m,t.createRef=function(){return{current:null}},t.h=m,t.hydrate=function B(x,j){ae(x,j,B)},t.isValidElement=i,t.options=r,t.render=ae,t.toChildArray=function B(x,j){return j=j||[],x==null||typeof x=="boolean"||(Array.isArray(x)?x.some(function($){B($,j)}):j.push(x)),j}}),iY=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((n=e)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},$5=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new _P([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function n7(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var aY=0;function uY(e){return"__private_"+aY+++"_"+e}const{render:r7}=oY;var zc=uY("updateUI");class H5 extends $5{constructor(){super(...arguments),Object.defineProperty(this,zc,{writable:!0,value:void 0})}mount(t,n){const r=n.id,o=iY(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return n7(this,zc)[zc]=function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}}(s=>{this.uppy.getPlugin(this.id)&&(r7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),r7(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof H5)i=t;else if(typeof t=="function"){const u=t;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 t=="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(t){var n,r;this.el!=null&&((n=(r=n7(this,zc))[zc])==null||n.call(r,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var sY=H5;const{debugLogger:lY}=NP;var Kf=$P,cY=$P,fY=sY,dY=$5,pY=lY;Kf.Uppy=cY,Kf.UIPlugin=fY,Kf.BasePlugin=dY,Kf.debugLogger=pY;class hY extends Error{constructor(t,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=t,this.isNetworkError=!0,this.request=n}}var U5=hY,Ty=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new U5(e)})};class gY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Nh,wi,so,Ei,o7,vY=gY;function uo(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var mY=0;function _y(e){return"__private_"+mY+++"_"+e}async function jy(e){if(e.status===401)throw new vY;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const r=await t;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return t}var Py=(wi=_y("getPostResponseFunc"),so=_y("getUrl"),Ei=_y("errorHandler"),o7=Nh=class HP{constructor(t,n){Object.defineProperty(this,Ei,{value:bY}),Object.defineProperty(this,so,{value:yY}),Object.defineProperty(this,wi,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),n=this.opts.companionUrl;return(t&&t[n]?t[n]:n).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...HP.defaultHeaders,...t})}onReceiveResponse(t){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:{...n,[r]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(uo(this,so)[so](t),{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(t){return Promise.all([this.preflight(t),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(t,n){return this.preflightAndHeaders(t).then(r=>Ty(uo(this,so)[so](t),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(uo(this,wi)[wi](n)).then(jy).catch(uo(this,Ei)[Ei]("get",t))}post(t,n,r){const o="post";return this.preflightAndHeaders(t).then(i=>Ty(uo(this,so)[so](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(uo(this,wi)[wi](r)).then(jy).catch(uo(this,Ei)[Ei](o,t))}delete(t,n,r){const o="delete";return this.preflightAndHeaders(t).then(i=>Ty(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(uo(this,wi)[wi](r)).then(jy).catch(uo(this,Ei)[Ei](o,t))}},Nh.VERSION="2.0.4",Nh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Nh.VERSION}`},o7);function yY(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function bY(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${e} ${uo(this,so)[so](t)}`);o.cause=n,n=o}return Promise.reject(n)}}var wY={setItem:(e,t)=>new Promise(n=>{localStorage.setItem(e,t),n()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},ao,Di,pr,wn,Rh;let i7,a7;function $t(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var EY=0;function $c(e){return"__private_"+EY+++"_"+e}var DY=(ao=$c("queued"),Di=$c("emitter"),pr=$c("isOpen"),wn=$c("socket"),Rh=$c("handleMessage"),i7=Symbol.for("uppy test: getSocket"),a7=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,ao,{writable:!0,value:[]}),Object.defineProperty(this,Di,{writable:!0,value:jP()}),Object.defineProperty(this,pr,{writable:!0,value:!1}),Object.defineProperty(this,wn,{writable:!0,value:void 0}),Object.defineProperty(this,Rh,{writable:!0,value:t=>{try{const n=JSON.parse(t.data);this.emit(n.action,n.payload)}catch{}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return $t(this,pr)[pr]}[i7](){return $t(this,wn)[wn]}[a7](){return $t(this,ao)[ao]}open(){$t(this,wn)[wn]=new WebSocket(this.opts.target),$t(this,wn)[wn].onopen=()=>{for($t(this,pr)[pr]=!0;$t(this,ao)[ao].length>0&&$t(this,pr)[pr];){const e=$t(this,ao)[ao].shift();this.send(e.action,e.payload)}},$t(this,wn)[wn].onclose=()=>{$t(this,pr)[pr]=!1},$t(this,wn)[wn].onmessage=$t(this,Rh)[Rh]}close(){var e;(e=$t(this,wn)[wn])==null||e.close()}send(e,t){$t(this,pr)[pr]?$t(this,wn)[wn].send(JSON.stringify({action:e,payload:t})):$t(this,ao)[ao].push({action:e,payload:t})}on(e,t){$t(this,Di)[Di].on(e,t)}emit(e,t){$t(this,Di)[Di].emit(e,t)}once(e,t){$t(this,Di)[Di].once(e,t)}}),CY={RequestClient:Py,Provider:class extends Py{constructor(e,t){super(e,t),this.provider=t.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(e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const r=t.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||wY}},SearchProvider:class extends Py{constructor(e,t){super(e,t),this.provider=t.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(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:DY},Ci,Bs,SY=Ku(function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Hc(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xY=0;function u7(e){return"__private_"+xY+++"_"+e}var s7=(Ci=u7("emitter"),Bs=u7("events"),class{constructor(e){Object.defineProperty(this,Ci,{writable:!0,value:void 0}),Object.defineProperty(this,Bs,{writable:!0,value:[]}),Hc(this,Ci)[Ci]=e}on(e,t){return Hc(this,Bs)[Bs].push([e,t]),Hc(this,Ci)[Ci].on(e,t)}remove(){for(const[e,t]of Hc(this,Bs)[Bs].splice(0))Hc(this,Ci)[Ci].off(e,t)}});function hr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var AY=0;function N1(e){return"__private_"+AY+++"_"+e}var Wo=N1("aliveTimer"),qa=N1("isDone"),Uc=N1("onTimedOut"),Ka=N1("timeout"),l7=class{constructor(e,t){Object.defineProperty(this,Wo,{writable:!0,value:void 0}),Object.defineProperty(this,qa,{writable:!0,value:!1}),Object.defineProperty(this,Uc,{writable:!0,value:void 0}),Object.defineProperty(this,Ka,{writable:!0,value:void 0}),hr(this,Ka)[Ka]=e,hr(this,Uc)[Uc]=t}progress(){hr(this,qa)[qa]||hr(this,Ka)[Ka]>0&&(clearTimeout(hr(this,Wo)[Wo]),hr(this,Wo)[Wo]=setTimeout(hr(this,Uc)[Uc],hr(this,Ka)[Ka]))}done(){hr(this,qa)[qa]||(clearTimeout(hr(this,Wo)[Wo]),hr(this,Wo)[Wo]=null,hr(this,qa)[qa]=!0)}};function Vt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var OY=0;function fs(e){return"__private_"+OY+++"_"+e}function BY(){return new Error("Cancelled")}var Jn=fs("activeRequests"),_n=fs("queuedHandlers"),ad=fs("call"),Yf=fs("queueNext"),aE=fs("next"),Iy=fs("queue"),uE=fs("dequeue");function kY(e){Vt(this,Jn)[Jn]+=1;let t,n=!1;try{t=e()}catch(r){throw Vt(this,Jn)[Jn]-=1,r}return{abort:()=>{n||(n=!0,Vt(this,Jn)[Jn]-=1,t(),Vt(this,Yf)[Yf]())},done:()=>{n||(n=!0,Vt(this,Jn)[Jn]-=1,Vt(this,Yf)[Yf]())}}}function FY(){queueMicrotask(()=>Vt(this,aE)[aE]())}function TY(){if(Vt(this,Jn)[Jn]>=this.limit||Vt(this,_n)[_n].length===0)return;const e=Vt(this,_n)[_n].shift(),t=Vt(this,ad)[ad](e.fn);e.abort=t.abort,e.done=t.done}function _Y(e,t){t===void 0&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Vt(this,uE)[uE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Vt(this,_n)[_n].findIndex(o=>n.priority>o.priority);return r===-1?Vt(this,_n)[_n].push(n):Vt(this,_n)[_n].splice(r,0,n),n}function jY(e){const t=Vt(this,_n)[_n].indexOf(e);t!==-1&&Vt(this,_n)[_n].splice(t,1)}var PY={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,uE,{value:jY}),Object.defineProperty(this,Iy,{value:_Y}),Object.defineProperty(this,aE,{value:TY}),Object.defineProperty(this,Yf,{value:FY}),Object.defineProperty(this,ad,{value:kY}),Object.defineProperty(this,Jn,{writable:!0,value:0}),Object.defineProperty(this,_n,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return Vt(this,Jn)[Jn]<this.limit?Vt(this,ad)[ad](e):Vt(this,Iy)[Iy](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(e(...o))}catch(d){f=Promise.reject(d)}return f.then(d=>{c?l(c):(a.done(),s(d))},d=>{c?l(c):(a.done(),l(d))}),()=>{c=BY()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},c7,f7,UP=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},IY={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:NY}=RP,{Provider:RY,RequestClient:LY,Socket:MY}=CY,{RateLimitedQueue:zY,internalRateLimitedQueue:Ny}=PY;function d7(e,t){let n=t;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})),UP(e)?(n=new U5(n,e),n):(n.request=e,n)}function p7(e){return e.data.slice(0,e.data.size,e.meta.type)}var $Y=(f7=c7=class extends $5{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=IY;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){e.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return UP(o)&&(i=new U5(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Ny in this.opts?this.requests=this.opts[Ny]:this.requests=new zY(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n=="function"?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach(r=>{e.append(r,t[r])})}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=p7(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach(o=>{const i=this.getOptions(o),a=p7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",e);const a=r.formData?this.createFormDataUpload(e,r):e.data,u=new XMLHttpRequest;this.uploaderEvents[e.id]=new s7(this.uppy);const s=new l7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)}),l=NY();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",e,{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[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const m=r.getResponseData(u.responseText,u),g=m[r.responseUrlFieldName],y={status:f.target.status,body:m,uploadURL:g};return this.uppy.emit("upload-success",e,y),g&&this.uppy.log(`Download ${e.name} from ${g}`),o(e)}const d=r.getResponseData(u.responseText,u),p=d7(u,r.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",e,p,v),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=d7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,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",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(e.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(i=>{o[i]=e.meta[i]}),new(e.remote.providerOptions.provider?RY:LY)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(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}`}(e.remote.companionUrl),s=new MY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new s7(this.uppy),this.onFileRemove(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>SY(this,c,e)),s.on("success",c=>{const f=t.getResponseData(c.response.responseText,c.response),d=f[t.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()}),s.on("error",c=>{const f=c.response,d=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(d)});const l=this.requests.run(()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",e,i),r(i)})})}uploadBundle(e){return new Promise((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new l7(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=>{e.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&&e.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return e.forEach(v=>{this.uppy.emit("upload-success",v,p)}),t()}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),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((n,r)=>{const o=parseInt(r,10)+1,i=e.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}))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",n=>{e===n.id&&t(n.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",n=>{e===n&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[Ny]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(t.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(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},c7.VERSION="2.0.6",f7),h7=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $p(e){var t={exports:{}};return e(t,t.exports),t.exports}var Si,U0,Lh=function(e){return e&&e.Math==Math&&e},X=Lh(typeof globalThis=="object"&&globalThis)||Lh(typeof window=="object"&&window)||Lh(typeof self=="object"&&self)||Lh(typeof h7=="object"&&h7)||function(){return this}()||Function("return this")(),HY=Object.defineProperty,V5=function(e,t){try{HY(X,e,{value:t,configurable:!0,writable:!0})}catch{X[e]=t}return t},ra=X["__core-js_shared__"]||V5("__core-js_shared__",{}),W5=$p(function(e){(e.exports=function(t,n){return ra[t]||(ra[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),VP=Function.prototype,sE=VP.bind,lE=VP.call,UY=sE&&sE.bind(lE),pe=sE?function(e){return e&&UY(lE,e)}:function(e){return e&&function(){return lE.apply(e,arguments)}},VY=X.TypeError,Or=function(e){if(e==null)throw VY("Can't call method on "+e);return e},WY=X.Object,Pa=function(e){return WY(Or(e))},GY=pe({}.hasOwnProperty),Nt=Object.hasOwn||function(e,t){return GY(Pa(e),t)},qY=0,KY=Math.random(),YY=pe(1 .toString),G5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+YY(++qY+KY,36)},rt=function(e){return typeof e=="function"},XY=function(e){return rt(e)?e:void 0},ds=function(e,t){return arguments.length<2?XY(X[e]):X[e]&&X[e][t]},gl=ds("navigator","userAgent")||"",g7=X.process,v7=X.Deno,m7=g7&&g7.versions||v7&&v7.version,y7=m7&&m7.v8;y7&&(U0=(Si=y7.split("."))[0]>0&&Si[0]<4?1:+(Si[0]+Si[1])),!U0&&gl&&(!(Si=gl.match(/Edge\/(\d+)/))||Si[1]>=74)&&(Si=gl.match(/Chrome\/(\d+)/))&&(U0=+Si[1]);var zd=U0,Je=function(e){try{return!!e()}catch{return!0}},cE=!!Object.getOwnPropertySymbols&&!Je(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zd&&zd<41}),q5=cE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Vc=W5("wks"),Au=X.Symbol,b7=Au&&Au.for,JY=q5?Au:Au&&Au.withoutSetter||G5,St=function(e){if(!Nt(Vc,e)||!cE&&typeof Vc[e]!="string"){var t="Symbol."+e;cE&&Nt(Au,e)?Vc[e]=Au[e]:Vc[e]=q5&&b7?b7(t):JY(t)}return Vc[e]},WP={};WP[St("toStringTag")]="z";var K5=String(WP)==="[object z]",rn=!Je(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ft=function(e){return typeof e=="object"?e!==null:rt(e)},fE=X.document,ZY=ft(fE)&&ft(fE.createElement),$d=function(e){return ZY?fE.createElement(e):{}},GP=!rn&&!Je(function(){return Object.defineProperty($d("div"),"a",{get:function(){return 7}}).a!=7}),QY=X.String,eX=X.TypeError,Rt=function(e){if(ft(e))return e;throw eX(QY(e)+" is not an object")},Wc=Function.prototype.call,qe=Wc.bind?Wc.bind(Wc):function(){return Wc.apply(Wc,arguments)},Yu=pe({}.isPrototypeOf),tX=X.Object,Ry=q5?function(e){return typeof e=="symbol"}:function(e){var t=ds("Symbol");return rt(t)&&Yu(t.prototype,tX(e))},nX=X.String,R1=function(e){try{return nX(e)}catch{return"Object"}},rX=X.TypeError,Ca=function(e){if(rt(e))return e;throw rX(R1(e)+" is not a function")},Xu=function(e,t){var n=e[t];return n==null?void 0:Ca(n)},oX=X.TypeError,iX=X.TypeError,aX=St("toPrimitive"),Y5=function(e){var t=function(n,r){if(!ft(n)||Ry(n))return n;var o,i=Xu(n,aX);if(i){if(o=qe(i,n,r),!ft(o)||Ry(o))return o;throw iX("Can't convert object to primitive value")}return function(a,u){var s,l;if(rt(s=a.toString)&&!ft(l=qe(s,a))||rt(s=a.valueOf)&&!ft(l=qe(s,a))||u!=="string")return l;throw oX("Can't convert object to primitive value")}(n,r)}(e,"string");return Ry(t)?t:t+""},uX=X.TypeError,w7=Object.defineProperty,eo={f:rn?w7:function(e,t,n){if(Rt(e),t=Y5(t),Rt(n),GP)try{return w7(e,t,n)}catch{}if("get"in n||"set"in n)throw uX("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},L1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qr=rn?function(e,t,n){return eo.f(e,t,L1(1,n))}:function(e,t,n){return e[t]=n,e},sX=pe(Function.toString);rt(ra.inspectSource)||(ra.inspectSource=function(e){return sX(e)});var Yg,ud,Xg,M1=ra.inspectSource,E7=X.WeakMap,qP=rt(E7)&&/native code/.test(M1(E7)),D7=W5("keys"),X5=function(e){return D7[e]||(D7[e]=G5(e))},z1={},dE=X.TypeError,lX=X.WeakMap;if(qP||ra.state){var Ya=ra.state||(ra.state=new lX),cX=pe(Ya.get),C7=pe(Ya.has),fX=pe(Ya.set);Yg=function(e,t){if(C7(Ya,e))throw new dE("Object already initialized");return t.facade=e,fX(Ya,e,t),t},ud=function(e){return cX(Ya,e)||{}},Xg=function(e){return C7(Ya,e)}}else{var ks=X5("state");z1[ks]=!0,Yg=function(e,t){if(Nt(e,ks))throw new dE("Object already initialized");return t.facade=e,qr(e,ks,t),t},ud=function(e){return Nt(e,ks)?e[ks]:{}},Xg=function(e){return Nt(e,ks)}}var Sn={set:Yg,get:ud,has:Xg,enforce:function(e){return Xg(e)?ud(e):Yg(e,{})},getterFor:function(e){return function(t){var n;if(!ft(t)||(n=ud(t)).type!==e)throw dE("Incompatible receiver, "+e+" required");return n}}},KP=Function.prototype,dX=rn&&Object.getOwnPropertyDescriptor,Ly=Nt(KP,"name"),uc={EXISTS:Ly,PROPER:Ly&&(function(){}).name==="something",CONFIGURABLE:Ly&&(!rn||rn&&dX(KP,"name").configurable)},Un=$p(function(e){var t=uc.CONFIGURABLE,n=Sn.get,r=Sn.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;rt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Nt(u,"name")||t&&u.name!==p)&&qr(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==X?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:qr(i,a,u)):f?i[a]=u:V5(a,u)})(Function.prototype,"toString",function(){return rt(this)&&n(this).source||M1(this)})}),pX=pe({}.toString),hX=pe("".slice),Kr=function(e){return hX(pX(e),8,-1)},gX=St("toStringTag"),vX=X.Object,mX=Kr(function(){return arguments}())=="Arguments",$1=K5?Kr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=vX(e),gX))=="string"?n:mX?Kr(t):(r=Kr(t))=="Object"&&rt(t.callee)?"Arguments":r},yX=K5?{}.toString:function(){return"[object "+$1(this)+"]"};K5||Un(Object.prototype,"toString",yX,{unsafe:!0});var Jg={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},My=$d("span").classList,S7=My&&My.constructor&&My.constructor.prototype,YP=S7===Object.prototype?void 0:S7,x7=pe(pe.bind),Ju=function(e,t){return Ca(e),t===void 0?e:x7?x7(e,t):function(){return e.apply(t,arguments)}},zy=X.Object,bX=pe("".split),H1=Je(function(){return!zy("z").propertyIsEnumerable(0)})?function(e){return Kr(e)=="String"?bX(e,""):zy(e)}:zy,wX=Math.ceil,EX=Math.floor,Hp=function(e){var t=+e;return t!=t||t===0?0:(t>0?EX:wX)(t)},DX=Math.min,sc=function(e){return e>0?DX(Hp(e),9007199254740991):0},ps=function(e){return sc(e.length)},Zg=Array.isArray||function(e){return Kr(e)=="Array"},XP=function(){},CX=[],JP=ds("Reflect","construct"),J5=/^\s*(?:class|function)\b/,SX=pe(J5.exec),xX=!J5.exec(XP),Gc=function(e){if(!rt(e))return!1;try{return JP(XP,CX,e),!0}catch{return!1}},U1=!JP||Je(function(){var e;return Gc(Gc.call)||!Gc(Object)||!Gc(function(){e=!0})||e})?function(e){if(!rt(e))return!1;switch($1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xX||!!SX(J5,M1(e))}:Gc,AX=St("species"),A7=X.Array,ZP=function(e,t){return new(function(n){var r;return Zg(n)&&(r=n.constructor,(U1(r)&&(r===A7||Zg(r.prototype))||ft(r)&&(r=r[AX])===null)&&(r=void 0)),r===void 0?A7:r}(e))(t===0?0:t)},O7=pe([].push),xi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Pa(s),m=H1(v),g=Ju(l,c),y=ps(m),h=0,b=f||ZP,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:O7(w,d)}else switch(e){case 4:return!1;case 7:O7(w,d)}return i?-1:r||o?o:w}},lc={forEach:xi(0),map:xi(1),filter:xi(2),some:xi(3),every:xi(4),find:xi(5),findIndex:xi(6),filterReject:xi(7)},QP=function(e,t){var n=[][e];return!!n&&Je(function(){n.call(null,t||function(){throw 1},1)})},OX=lc.forEach,$y=QP("forEach")?[].forEach:function(e){return OX(this,e,arguments.length>1?arguments[1]:void 0)},eI=function(e){if(e&&e.forEach!==$y)try{qr(e,"forEach",$y)}catch{e.forEach=$y}};for(var Hy in Jg)Jg[Hy]&&eI(X[Hy]&&X[Hy].prototype);eI(YP);var B7={}.propertyIsEnumerable,k7=Object.getOwnPropertyDescriptor,BX=k7&&!B7.call({1:2},1)?function(e){var t=k7(this,e);return!!t&&t.enumerable}:B7,tI={f:BX},Ia=function(e){return H1(Or(e))},F7=Object.getOwnPropertyDescriptor,Up={f:rn?F7:function(e,t){if(e=Ia(e),t=Y5(t),GP)try{return F7(e,t)}catch{}if(Nt(e,t))return L1(!qe(tI.f,e,t),e[t])}},kX=Math.max,FX=Math.min,$l=function(e,t){var n=Hp(e);return n<0?kX(n+t,0):FX(n,t)},T7=function(e){return function(t,n,r){var o,i=Ia(t),a=ps(i),u=$l(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},nI={includes:T7(!0),indexOf:T7(!1)},TX=nI.indexOf,_7=pe([].push),rI=function(e,t){var n,r=Ia(e),o=0,i=[];for(n in r)!Nt(z1,n)&&Nt(r,n)&&_7(i,n);for(;t.length>o;)Nt(r,n=t[o++])&&(~TX(i,n)||_7(i,n));return i},Qg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_X=Qg.concat("length","prototype"),Hd={f:Object.getOwnPropertyNames||function(e){return rI(e,_X)}},oI={f:Object.getOwnPropertySymbols},jX=pe([].concat),PX=ds("Reflect","ownKeys")||function(e){var t=Hd.f(Rt(e)),n=oI.f;return n?jX(t,n(e)):t},IX=function(e,t){for(var n=PX(t),r=eo.f,o=Up.f,i=0;i<n.length;i++){var a=n[i];Nt(e,a)||r(e,a,o(t,a))}},NX=/#|\.prototype\./,Vp=function(e,t){var n=LX[RX(e)];return n==zX||n!=MX&&(rt(t)?Je(t):!!t)},RX=Vp.normalize=function(e){return String(e).replace(NX,".").toLowerCase()},LX=Vp.data={},MX=Vp.NATIVE="N",zX=Vp.POLYFILL="P",Ud=Vp,$X=Up.f,Dt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?X:l?X[u]||V5(u,{}):(X[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=$X(n,r))&&a.value:n[r],!Ud(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;IX(i,o)}(e.sham||o&&o.sham)&&qr(i,"sham",!0),Un(n,r,i,e)}},vl=Object.keys||function(e){return rI(e,Qg)},HX=Je(function(){vl(1)});/*!
- * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
- *
- * Copyright (c) 2014-2017, Jon Schlinkert.
- * Released under the MIT License.
- */function j7(e){return Object.prototype.toString.call(e)==="[object Object]"}Dt({target:"Object",stat:!0,forced:HX},{keys:function(e){return vl(Pa(e))}});var UX={isHistory(e){return j7(t=e)!==!1&&((n=t.constructor)===void 0||j7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Xi.isOperationList(e.redos[0]))&&(e.undos.length===0||Xi.isOperationList(e.undos[0]));var t,n,r}},Uy=new WeakMap,Vy=new WeakMap,sl={isHistoryEditor:e=>UX.isHistory(e.history)&&E.isEditor(e),isMerging:e=>Vy.get(e),isSaving:e=>Uy.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=sl.isMerging(e);Vy.set(e,!1),t(),Vy.set(e,n)},withoutSaving(e,t){var n=sl.isSaving(e);Uy.set(e,!1),t(),Uy.set(e,n)}},VX=X.String,it=function(e){if($1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return VX(e)},Z5=function(){var e=Rt(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},WX=uc.PROPER,pE=RegExp.prototype,iI=pE.toString,GX=pe(Z5),qX=Je(function(){return iI.call({source:"a",flags:"b"})!="/a/b"}),KX=WX&&iI.name!="toString";(qX||KX)&&Un(RegExp.prototype,"toString",function(){var e=Rt(this),t=it(e.source),n=e.flags;return"/"+t+"/"+it(n===void 0&&Yu(pE,e)&&!("flags"in pE)?GX(e):n)},{unsafe:!0});var Mh,YX=rn?Object.defineProperties:function(e,t){Rt(e);for(var n,r=Ia(t),o=vl(t),i=o.length,a=0;i>a;)eo.f(e,n=o[a++],r[n]);return e},hE=ds("document","documentElement"),aI=X5("IE_PROTO"),Wy=function(){},uI=function(e){return"<script>"+e+"<\/script>"},P7=function(e){e.write(uI("")),e.close();var t=e.parentWindow.Object;return e=null,t},V0=function(){try{Mh=new ActiveXObject("htmlfile")}catch{}var e,t;V0=typeof document<"u"?document.domain&&Mh?P7(Mh):((t=$d("iframe")).style.display="none",hE.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(uI("document.F=Object")),e.close(),e.F):P7(Mh);for(var n=Qg.length;n--;)delete V0.prototype[Qg[n]];return V0()};z1[aI]=!0;var V1=Object.create||function(e,t){var n;return e!==null?(Wy.prototype=Rt(e),n=new Wy,Wy.prototype=null,n[aI]=e):n=V0(),t===void 0?n:YX(n,t)},gE=St("unscopables"),vE=Array.prototype;vE[gE]==null&&eo.f(vE,gE,{configurable:!0,value:V1(null)});var sd=function(e){vE[gE][e]=!0},XX=nI.includes;Dt({target:"Array",proto:!0},{includes:function(e){return XX(this,e,arguments.length>1?arguments[1]:void 0)}}),sd("includes");var JX=St("match"),Q5=function(e){var t;return ft(e)&&((t=e[JX])!==void 0?!!t:Kr(e)=="RegExp")},ZX=X.TypeError,e8=function(e){if(Q5(e))throw ZX("The method doesn't accept regular expressions");return e},QX=St("match"),t8=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[QX]=!1,"/./"[e](t)}catch{}}return!1},eJ=pe("".indexOf);Dt({target:"String",proto:!0,forced:!t8("includes")},{includes:function(e){return!!~eJ(it(Or(this)),it(e8(e)),arguments.length>1?arguments[1]:void 0)}});var tJ=/"/g,nJ=pe("".replace);Dt({target:"String",proto:!0,forced:Je(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=it(Or(this)),r="<a",(r+=' name="'+nJ(it(t),tJ,""")+'"')+">"+n+"</a>";var t,n,r}});var mE=function(e,t,n){var r,o;Rt(e);try{if(!(r=Xu(e,"return"))){if(t==="throw")throw n;return n}r=qe(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return Rt(r),n},rJ=function(e,t,n,r){try{return r?t(Rt(n)[0],n[1]):t(n)}catch(o){mE(e,"throw",o)}},Hl={},oJ=St("iterator"),iJ=Array.prototype,sI=function(e){return e!==void 0&&(Hl.Array===e||iJ[oJ]===e)},Vd=function(e,t,n){var r=Y5(t);r in e?eo.f(e,r,L1(0,n)):e[r]=n},aJ=St("iterator"),n8=function(e){if(e!=null)return Xu(e,aJ)||Xu(e,"@@iterator")||Hl[$1(e)]},uJ=X.TypeError,lI=function(e,t){var n=arguments.length<2?n8(e):t;if(Ca(n))return Rt(qe(n,e));throw uJ(R1(e)+" is not iterable")},I7=X.Array,cI=St("iterator"),fI=!1;try{var sJ=0,N7={next:function(){return{done:!!sJ++}},return:function(){fI=!0}};N7[cI]=function(){return this},Array.from(N7,function(){throw 2})}catch{}var r8=function(e,t){if(!fI)return!1;var n=!1;try{var r={};r[cI]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},lJ=!r8(function(e){Array.from(e)});Dt({target:"Array",stat:!0,forced:lJ},{from:function(e){var t=Pa(e),n=U1(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Ju(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=n8(t),p=0;if(!d||this==I7&&sI(d))for(a=ps(t),u=n?new this(a):I7(a);a>p;p++)f=i?o(t[p],p):t[p],Vd(u,p,f);else for(c=(l=lI(t,d)).next,u=n?new this:[];!(s=qe(c,l)).done;p++)f=i?rJ(l,o,[s.value,p],!0):s.value,Vd(u,p,f);return u.length=p,u}});var Ou,R7,L7,cJ=pe("".charAt),M7=pe("".charCodeAt),fJ=pe("".slice),z7=function(e){return function(t,n){var r,o,i=it(Or(t)),a=Hp(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=M7(i,a))<55296||r>56319||a+1===u||(o=M7(i,a+1))<56320||o>57343?e?cJ(i,a):r:e?fJ(i,a,a+2):o-56320+(r-55296<<10)+65536}},dI={codeAt:z7(!1),charAt:z7(!0)},dJ=!Je(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),$7=X5("IE_PROTO"),yE=X.Object,pJ=yE.prototype,ev=dJ?yE.getPrototypeOf:function(e){var t=Pa(e);if(Nt(t,$7))return t[$7];var n=t.constructor;return rt(n)&&t instanceof n?n.prototype:t instanceof yE?pJ:null},bE=St("iterator"),pI=!1;[].keys&&("next"in(L7=[].keys())?(R7=ev(ev(L7)))!==Object.prototype&&(Ou=R7):pI=!0);var hJ=Ou==null||Je(function(){var e={};return Ou[bE].call(e)!==e});hJ&&(Ou={}),rt(Ou[bE])||Un(Ou,bE,function(){return this});var o8={IteratorPrototype:Ou,BUGGY_SAFARI_ITERATORS:pI},gJ=eo.f,H7=St("toStringTag"),tv=function(e,t,n){e&&!Nt(e=n?e:e.prototype,H7)&&gJ(e,H7,{configurable:!0,value:t})},vJ=o8.IteratorPrototype,mJ=function(){return this},yJ=X.String,bJ=X.TypeError,Ul=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return Rt(r),function(i){if(typeof i=="object"||rt(i))return i;throw bJ("Can't set "+yJ(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),wJ=uc.PROPER,EJ=uc.CONFIGURABLE,U7=o8.IteratorPrototype,zh=o8.BUGGY_SAFARI_ITERATORS,qc=St("iterator"),DJ=function(){return this},i8=function(e,t,n,r,o,i,a){(function(y,h,b,w){var D=h+" Iterator";y.prototype=V1(vJ,{next:L1(1,b)}),tv(y,D,!1),Hl[D]=mJ})(n,t,r);var u,s,l,c=function(y){if(y===o&&m)return m;if(!zh&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new n(this,y)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[qc]||p["@@iterator"]||o&&p[o],m=!zh&&v||c(o),g=t=="Array"&&p.entries||v;if(g&&(u=ev(g.call(new e)))!==Object.prototype&&u.next&&(ev(u)!==U7&&(Ul?Ul(u,U7):rt(u[qc])||Un(u,qc,DJ)),tv(u,f,!0)),wJ&&o=="values"&&v&&v.name!=="values"&&(EJ?qr(p,"name","values"):(d=!0,m=function(){return qe(v,this)})),o)if(s={values:c("values"),keys:i?m:c("keys"),entries:c("entries")},a)for(l in s)(zh||d||!(l in p))&&Un(p,l,s[l]);else Dt({target:t,proto:!0,forced:zh||d},s);return p[qc]!==m&&Un(p,qc,m,{name:o}),Hl[t]=m,s},CJ=dI.charAt,SJ=Sn.set,xJ=Sn.getterFor("String Iterator");i8(String,"String",function(e){SJ(this,{type:"String Iterator",string:it(e),index:0})},function(){var e,t=xJ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=CJ(n,r),t.index+=e.length,{value:e,done:!1})});var Gy,AJ=Up.f,V7=pe("".endsWith),OJ=pe("".slice),BJ=Math.min,hI=t8("endsWith"),kJ=!(hI||(Gy=AJ(String.prototype,"endsWith"),!Gy||Gy.writable));Dt({target:"String",proto:!0,forced:!kJ&&!hI},{endsWith:function(e){var t=it(Or(this));e8(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=n===void 0?r:BJ(sc(n),r),i=it(e);return V7?V7(t,i,o):OJ(t,o-i.length,o)===i}});var FJ=pe([].join),TJ=H1!=Object,_J=QP("join",",");Dt({target:"Array",proto:!0,forced:TJ||!_J},{join:function(e){return FJ(Ia(this),e===void 0?",":e)}});var jJ=St("species"),W1=function(e){return zd>=51||!Je(function(){var t=[];return(t.constructor={})[jJ]=function(){return{foo:1}},t[e](Boolean).foo!==1})},PJ=lc.map,IJ=W1("map");Dt({target:"Array",proto:!0,forced:!IJ},{map:function(e){return PJ(this,e,arguments.length>1?arguments[1]:void 0)}});var a8=X.RegExp,wE=Je(function(){var e=a8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),NJ=wE||Je(function(){return!a8("a","y").sticky}),G1={BROKEN_CARET:wE||Je(function(){var e=a8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:NJ,UNSUPPORTED_Y:wE},RJ=X.RegExp,u8=Je(function(){var e=RJ(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),LJ=X.RegExp,s8=Je(function(){var e=LJ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),MJ=Sn.get,zJ=W5("native-string-replace",String.prototype.replace),nv=RegExp.prototype.exec,EE=nv,$J=pe("".charAt),HJ=pe("".indexOf),UJ=pe("".replace),qy=pe("".slice),Ky=function(){var e=/a/,t=/b*/g;return qe(nv,e,"a"),qe(nv,t,"a"),e.lastIndex!==0||t.lastIndex!==0}(),W7=G1.BROKEN_CARET,Yy=/()??/.exec("")[1]!==void 0;(Ky||Yy||W7||u8||s8)&&(EE=function(e){var t,n,r,o,i,a,u,s=this,l=MJ(s),c=it(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=qe(EE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=W7&&s.sticky,v=qe(Z5,s),m=s.source,g=0,y=c;if(p&&(v=UJ(v,"y",""),HJ(v,"g")===-1&&(v+="g"),y=qy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&$J(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Yy&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Ky&&(r=s.lastIndex),o=qe(nv,p?n:s,y),p?o?(o.input=qy(o.input,g),o[0]=qy(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ky&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Yy&&o&&o.length>1&&qe(zJ,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=V1(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Wd=EE;Dt({target:"RegExp",proto:!0,forced:/./.exec!==Wd},{exec:Wd});var l8=Function.prototype,G7=l8.apply,VJ=l8.bind,q7=l8.call,c8=typeof Reflect=="object"&&Reflect.apply||(VJ?q7.bind(G7):function(){return q7.apply(G7,arguments)}),WJ=St("species"),Xy=RegExp.prototype,f8=function(e,t,n,r){var o=St(e),i=!Je(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Je(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[WJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=pe(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=pe(l),m=c.exec;return m===Wd||m===Xy.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Un(String.prototype,e,s[0]),Un(Xy,o,s[1])}r&&qr(Xy[o],"sham",!0)},GJ=dI.charAt,d8=function(e,t,n){return t+(n?GJ(e,t).length:1)},qJ=Math.floor,Jy=pe("".charAt),KJ=pe("".replace),Zy=pe("".slice),YJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,XJ=/\$([$&'`]|\d{1,2})/g,JJ=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=XJ;return o!==void 0&&(o=Pa(o),s=YJ),KJ(i,s,function(l,c){var f;switch(Jy(c,0)){case"$":return"$";case"&":return e;case"`":return Zy(t,0,n);case"'":return Zy(t,a);case"<":f=o[Zy(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=qJ(d/10);return p===0?l:p<=u?r[p-1]===void 0?Jy(c,1):r[p-1]+Jy(c,1):l}f=r[d-1]}return f===void 0?"":f})},ZJ=X.TypeError,Gd=function(e,t){var n=e.exec;if(rt(n)){var r=qe(n,e,t);return r!==null&&Rt(r),r}if(Kr(e)==="RegExp")return qe(Wd,e,t);throw ZJ("RegExp#exec called on incompatible receiver")},DE=St("replace"),QJ=Math.max,eZ=Math.min,tZ=pe([].concat),Qy=pe([].push),K7=pe("".indexOf),Y7=pe("".slice),nZ="a".replace(/./,"$0")==="$0",X7=!!/./[DE]&&/./[DE]("a","$0")==="";f8("replace",function(e,t,n){var r=X7?"$":"$0";return[function(o,i){var a=Or(this),u=o==null?void 0:Xu(o,DE);return u?qe(u,o,a,i):qe(t,it(a),o,i)},function(o,i){var a=Rt(this),u=it(o);if(typeof i=="string"&&K7(i,r)===-1&&K7(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=rt(i);l||(i=it(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=Gd(a,u);if(p===null||(Qy(d,p),!c))break;it(p[0])===""&&(a.lastIndex=d8(u,sc(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=it((p=d[y])[0]),b=QJ(eZ(Hp(p.index),u.length),0),w=[],D=1;D<p.length;D++)Qy(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=tZ([h],w,b,u);S!==void 0&&Qy(C,S);var O=it(c8(i,void 0,C))}else O=JJ(h,u,b,w,S,i);b>=g&&(m+=Y7(u,g,b)+O,g=b+h.length)}return m+Y7(u,g)}]},!!Je(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!nZ||X7);/*! *****************************************************************************
- 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 CE=function(e,t){return CE=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])},CE(e,t)};function cc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}CE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var yr=function(){return yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yr.apply(this,arguments)};function br(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function SE(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var rZ=0,J7=function(){this.id=""+rZ++},oZ=Sn.set,iZ=Sn.getterFor("Array Iterator"),Xf=i8(Array,"Array",function(e,t){oZ(this,{type:"Array Iterator",target:Ia(e),index:0,kind:t})},function(){var e=iZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Hl.Arguments=Hl.Array,sd("keys"),sd("values"),sd("entries");var Vl=function(e,t,n){for(var r in t)Un(e,r,t[r],n);return e},aZ=X.Array,uZ=Math.max,xE=function(e,t,n){for(var r=ps(e),o=$l(t,r),i=$l(n===void 0?r:n,r),a=aZ(uZ(i-o,0)),u=0;o<i;o++,u++)Vd(a,u,e[o]);return a.length=u,a},Z7=Hd.f,Q7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sZ={f:function(e){return Q7&&Kr(e)=="Window"?function(t){try{return Z7(t)}catch{return xE(Q7)}}(e):Z7(Ia(e))}},e9=Je(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),$h=Object.isExtensible,vu=Je(function(){$h(1)})||e9?function(e){return!!ft(e)&&(!e9||Kr(e)!="ArrayBuffer")&&(!$h||$h(e))}:$h,lZ=!Je(function(){return Object.isExtensible(Object.preventExtensions({}))}),q1=$p(function(e){var t=eo.f,n=!1,r=G5("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Hd.f,s=pe([].splice),l={};l[r]=1,u(l).length&&(Hd.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Dt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:sZ.f}))},fastKey:function(u,s){if(!ft(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Nt(u,r)){if(!vu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Nt(u,r)){if(!vu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return lZ&&n&&vu(u)&&!Nt(u,r)&&i(u),u}};z1[r]=!0}),cZ=X.TypeError,W0=function(e,t){this.stopped=e,this.result=t},t9=W0.prototype,qd=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),v=Ju(t,c),m=function(y){return r&&mE(r,"normal",y),new W0(!0,y)},g=function(y){return f?(Rt(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)r=e;else{if(!(o=n8(e)))throw cZ(R1(e)+" is not iterable");if(sI(o)){for(i=0,a=ps(e);a>i;i++)if((u=g(e[i]))&&Yu(t9,u))return u;return new W0(!1)}r=lI(e,o)}for(s=r.next;!(l=qe(s,r)).done;){try{u=g(l.value)}catch(y){mE(r,"throw",y)}if(typeof u=="object"&&u&&Yu(t9,u))return u}return new W0(!1)},fZ=X.TypeError,K1=function(e,t){if(Yu(t,e))return e;throw fZ("Incorrect invocation")},gI=function(e,t,n){var r,o;return Ul&&rt(r=t.constructor)&&r!==n&&ft(o=r.prototype)&&o!==n.prototype&&Ul(e,o),e},vI=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=X[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=pe(u[g]);Un(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!ft(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!ft(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!ft(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Ud(e,!rt(a)||!(o||u.forEach&&!Je(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),q1.enable();else if(Ud(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Je(function(){f.has(1)}),v=r8(function(g){new a(g)}),m=!o&&Je(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){K1(g,u);var h=gI(new a,g,s);return y!=null&&qd(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Dt({global:!0,forced:s!=a},l),tv(s,e),o||n.setStrong(s,e,r),s},Hh=q1.getWeakData,dZ=Sn.set,pZ=Sn.getterFor,hZ=lc.find,gZ=lc.findIndex,vZ=pe([].splice),mZ=0,Uh=function(e){return e.frozen||(e.frozen=new mI)},mI=function(){this.entries=[]},eb=function(e,t){return hZ(e.entries,function(n){return n[0]===t})};mI.prototype={get:function(e){var t=eb(this,e);if(t)return t[1]},has:function(e){return!!eb(this,e)},set:function(e,t){var n=eb(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=gZ(this.entries,function(n){return n[0]===e});return~t&&vZ(this.entries,t,1),!!~t}};var Kc,yI={getConstructor:function(e,t,n,r){var o=e(function(s,l){K1(s,i),dZ(s,{type:t,id:mZ++,frozen:void 0}),l!=null&&qd(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=pZ(t),u=function(s,l,c){var f=a(s),d=Hh(Rt(l),!0);return d===!0?Uh(f).set(l,c):d[f.id]=c,s};return Vl(i,{delete:function(s){var l=a(this);if(!ft(s))return!1;var c=Hh(s);return c===!0?Uh(l).delete(s):c&&Nt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!ft(s))return!1;var c=Hh(s);return c===!0?Uh(l).has(s):c&&Nt(c,l.id)}}),Vl(i,n?{get:function(s){var l=a(this);if(ft(s)){var c=Hh(s);return c===!0?Uh(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}},Vh=Sn.enforce,yZ=!X.ActiveXObject&&"ActiveXObject"in X,bI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bZ=vI("WeakMap",bI,yI);if(qP&&yZ){Kc=yI.getConstructor(bI,"WeakMap",!0),q1.enable();var Yc=bZ.prototype,n9=pe(Yc.delete),Wh=pe(Yc.has),r9=pe(Yc.get),o9=pe(Yc.set);Vl(Yc,{delete:function(e){if(ft(e)&&!vu(e)){var t=Vh(this);return t.frozen||(t.frozen=new Kc),n9(this,e)||t.frozen.delete(e)}return n9(this,e)},has:function(e){if(ft(e)&&!vu(e)){var t=Vh(this);return t.frozen||(t.frozen=new Kc),Wh(this,e)||t.frozen.has(e)}return Wh(this,e)},get:function(e){if(ft(e)&&!vu(e)){var t=Vh(this);return t.frozen||(t.frozen=new Kc),Wh(this,e)?r9(this,e):t.frozen.get(e)}return r9(this,e)},set:function(e,t){if(ft(e)&&!vu(e)){var n=Vh(this);n.frozen||(n.frozen=new Kc),Wh(this,e)?o9(this,e,t):n.frozen.set(e,t)}else o9(this,e,t);return this}})}var tb=St("iterator"),i9=St("toStringTag"),nb=Xf.values,wI=function(e,t){if(e){if(e[tb]!==nb)try{qr(e,tb,nb)}catch{e[tb]=nb}if(e[i9]||qr(e,i9,t),Jg[t]){for(var n in Xf)if(e[n]!==Xf[n])try{qr(e,n,Xf[n])}catch{e[n]=Xf[n]}}}};for(var rb in Jg)wI(X[rb]&&X[rb].prototype,rb);wI(YP,"DOMTokenList");var AE=new WeakMap,OE=new WeakMap,p8=new WeakMap,Y1=new WeakMap,BE=new WeakMap,rv=new WeakMap,h8=new WeakMap,kE=new WeakMap,G0=new WeakMap,a9=new WeakMap,u9=new WeakMap,s9=new WeakMap,l9=new WeakMap,Kd=new WeakMap,Wl=new WeakMap,g8=new WeakMap,ov=new WeakMap,FE=new WeakMap,iv=new WeakMap,q0=new WeakMap,EI=new WeakMap,Bu=new WeakMap,ob=new WeakMap,c9=new WeakMap,ib=new WeakMap,wZ=lc.find,f9=!0;"find"in[]&&Array(1).find(function(){f9=!1}),Dt({target:"Array",proto:!0,forced:f9},{find:function(e){return wZ(this,e,arguments.length>1?arguments[1]:void 0)}}),sd("find"),Dt({global:!0},{globalThis:X});const EZ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Ug&&(k.fn.css=Ug),Ar&&(k.fn.append=Ar),Fl&&(k.fn.addClass=Fl),Tl&&(k.fn.removeClass=Tl),_l&&(k.fn.hasClass=_l),Oo&&(k.fn.on=Oo),Da&&(k.fn.focus=Da),xr&&(k.fn.attr=xr),Mg&&(k.fn.removeAttr=Mg),Pl&&(k.fn.hide=Pl),Hg&&(k.fn.show=Hg),xA&&(k.fn.offset=xA),zg&&(k.fn.width=zg),$g&&(k.fn.height=$g),Il&&(k.fn.parent=Il),Gg&&(k.fn.parents=Gg),OA&&(k.fn.is=OA),jl&&(k.fn.dataset=jl),Ao&&(k.fn.val=Ao),Wg&&(k.fn.text=Wg),Ea&&(k.fn.html=Ea),Rl&&(k.fn.children=Rl),Ll&&(k.fn.remove=Ll),Nl&&(k.fn.find=Nl),Vg&&(k.fn.each=Vg),Ml&&(k.fn.empty=Ml);var go,En,v8=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Lr=function(e){return Zu(e)&&e.nodeType===1},Zu=function(e){var t=v8(e);return!!t&&e instanceof t.Node},d9=function(e){var t=e&&e.anchorNode&&v8(e.anchorNode);return!!t&&e instanceof t.Selection},DI=function(e){return Zu(e)&&e.nodeType===3},TE=function(e){var t,n,r;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(e))||null},CI=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Zu(r=i)&&r.nodeType===8||Lr(i)&&i.childNodes.length===0||Lr(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+=n==="forward"?1:-1);return[i,t]},DZ=function(e,t,n){return He(CI(e,t,n),1)[0]},CZ=function e(t){var n,r,o="";if(DI(t)&&t.nodeValue)return t.nodeValue;if(Lr(t)){try{for(var i=br(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(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(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+=`
- `)}return o};function SI(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||SI(o,t)}}function p9(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==go.ELEMENT_NODE?"":t.tagName.toLowerCase()}(En=go||(go={}))[En.ELEMENT_NODE=1]="ELEMENT_NODE",En[En.TEXT_NODE=3]="TEXT_NODE",En[En.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",En[En.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",En[En.COMMENT_NODE=8]="COMMENT_NODE",En[En.DOCUMENT_NODE=9]="DOCUMENT_NODE",En[En.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",En[En.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var _E=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),ld=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Xc=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),SZ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),xZ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),jE=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Jc=!xZ&&!SZ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(e){var t=EI.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=q0.get(t);return n||(n=new J7,q0.set(t,n)),n},setNewKey:function(e){var t=new J7;q0.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Wl.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Kd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=A.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Wl.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var o=A.getParentNode(e,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[A.findPath(e,t)[0]];return Z.get(e,n)},toDOMNode:function(e,t){var n;if(E.isEditor(t))n=g8.get(e);else{var r=A.findKey(e,t);n=FE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(e,e);try{r=Lr(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=R.isBackward(t),i=A.toDOMPoint(e,n),a=R.isCollapsed(t)?i:A.toDOMPoint(e,r),u=A.getWindow(e).document.createRange(),s=He(o?a:i,2),l=s[0],c=s[1],f=He(o?i:a,2),d=f[0],p=f[1],v=!!(Lr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),m=!!(Lr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,m?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=He(E.node(e,t.path),1)[0],a=A.toDOMNode(e,i);E.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=br(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),m=s+(v==null?p:parseInt(v,10));if(t.offset<=m){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=m}}}catch(g){n={error:g}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=Lr(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?ov.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=A.toSlateNode(e,t.target),u=A.findPath(e,a);if(E.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(e,u,{edge:l?"start":"end"}),f=l?E.before(e,c):E.after(e,c);if(f)return E.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((d9(t)?t.anchorNode:t.startContainer)&&(d9(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=jE&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=A.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return R.isExpanded(d)&&R.isForward(d)&&Lr(i)&&E.void(e,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=He(o?t:function(h){var b,w=He(h,2),D=w[0],S=w[1];if(Lr(D)&&D.childNodes.length){var C=S===D.childNodes.length,O=C?S-1:S;for(D=(b=He(CI(D,O,C?"backward":"forward"),2))[0],C=(O=b[1])<S;Lr(D)&&D.childNodes.length;){var F=C?D.childNodes.length-1:0;D=DZ(D,F,C?"backward":"forward")}S=C&&D.textContent!=null?D.textContent.length:0}return[D,S]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var m=A.getWindow(e).document.createRange();m.setStart(c,0),m.setEnd(u,s);var g=m.cloneContents();SE(SE([],He(DA(g.querySelectorAll("[data-slate-zero-width]")))),He(DA(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||ld&&!((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: "+t)}var y=A.toSlateNode(e,c);return{path:A.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return E.hasPath(e,n.path)&&E.hasPath(e,r.path)},getNodeType:function(e){return ce.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return Z.string(t)}).join("")},getSelectedElems:function(e){var t,n,r=[],o=E.nodes(e,{universal:!0});try{for(var i=br(o),a=i.next();!a.done;a=i.next()){var u=He(a.value,1)[0];ce.isElement(u)&&r.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=He(E.nodes(e,{match:function(i){return n.checkNodeType(i,t)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=He(E.nodes(e,{match:function(r){return oe.isText(r)},universal:!0}),1),n=t[0];return n==null?null:n[0]},isNodeSelected:function(e,t){var n=He(E.nodes(e,{match:function(o){return o===t},universal:!0}),1),r=n[0];return r!=null&&He(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(E.isEnd(e,n.anchor,t)||E.isEnd(e,n.focus,t))},getTextarea:function(e){var t=AE.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Y1.get(e)||null},getHoverbar:function(e){return rv.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,n){e.normalizeNode([t,[n]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=A.getTextarea(e).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=br(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(m){t={error:m}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=E.nodes(e,{match:function(m){return!(!ce.isElement(m)||e.isInline(m))},universal:!0});try{for(var f=br(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];SI(A.toDOMNode(e,v),function(m,g){var y=k(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(m)})}}}catch(m){r={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=E.nodes(e,{match:function(u){return e.isVoid(u)}}),o=0;try{for(var i=br(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||R.isExpanded(t))return!1;var n=A.getSelectedNodeByType(e,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(e,t){var n=E.node(e,t);if(n==null)return!1;var r=He(n,1)[0].children;return r.length===1&&r[0].text===""}},AZ=1,xI={},Yd={},OZ=lc.filter,BZ=W1("filter");Dt({target:"Array",proto:!0,forced:!BZ},{filter:function(e){return OZ(this,e,arguments.length>1?arguments[1]:void 0)}});var PE=`
- \v\f\r \u2028\u2029\uFEFF`,h9=pe("".replace),av="["+PE+"]",kZ=RegExp("^"+av+av+"*"),FZ=RegExp(av+av+"*$"),ab=function(e){return function(t){var n=it(Or(t));return 1&e&&(n=h9(n,kZ,"")),2&e&&(n=h9(n,FZ,"")),n}},TZ={start:ab(1),end:ab(2),trim:ab(3)},_Z=uc.PROPER,jZ=TZ.trim;Dt({target:"String",proto:!0,forced:function(e){return Je(function(){return!!PE[e]()||"
"[e]()!=="
"||_Z&&PE[e].name!==e})}("trim")},{trim:function(){return jZ(this)}});var IE=[],AI={};function PZ(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var Xd,Fs,g9,ub,uv=X.Promise,v9=St("species"),m8=function(e){var t=ds(e),n=eo.f;rn&&t&&!t[v9]&&n(t,v9,{configurable:!0,get:function(){return this}})},IZ=X.TypeError,NZ=St("species"),OI=function(e,t){var n,r=Rt(e).constructor;return r===void 0||(n=Rt(r)[NZ])==null?t:function(o){if(U1(o))return o;throw IZ(R1(o)+" is not a constructor")}(n)},BI=pe([].slice),kI=/(?:ipad|iphone|ipod).*applewebkit/i.test(gl),oa=Kr(X.process)=="process",NE=X.setImmediate,RE=X.clearImmediate,RZ=X.process,sb=X.Dispatch,LZ=X.Function,m9=X.MessageChannel,MZ=X.String,lb=0,cd={};try{Xd=X.location}catch{}var y8=function(e){if(Nt(cd,e)){var t=cd[e];delete cd[e],t()}},cb=function(e){return function(){y8(e)}},y9=function(e){y8(e.data)},b9=function(e){X.postMessage(MZ(e),Xd.protocol+"//"+Xd.host)};NE&&RE||(NE=function(e){var t=BI(arguments,1);return cd[++lb]=function(){c8(rt(e)?e:LZ(e),void 0,t)},Fs(lb),lb},RE=function(e){delete cd[e]},oa?Fs=function(e){RZ.nextTick(cb(e))}:sb&&sb.now?Fs=function(e){sb.now(cb(e))}:m9&&!kI?(ub=(g9=new m9).port2,g9.port1.onmessage=y9,Fs=Ju(ub.postMessage,ub)):X.addEventListener&&rt(X.postMessage)&&!X.importScripts&&Xd&&Xd.protocol!=="file:"&&!Je(b9)?(Fs=b9,X.addEventListener("message",y9,!1)):Fs="onreadystatechange"in $d("script")?function(e){hE.appendChild($d("script")).onreadystatechange=function(){hE.removeChild(this),y8(e)}}:function(e){setTimeout(cb(e),0)});var Zc,du,fd,nl,fb,db,pb,w9,FI={set:NE,clear:RE},zZ=/ipad|iphone|ipod/i.test(gl)&&X.Pebble!==void 0,$Z=/web0s(?!.*chrome)/i.test(gl),HZ=Up.f,hb=FI.set,E9=X.MutationObserver||X.WebKitMutationObserver,D9=X.document,C9=X.process,Gh=X.Promise,S9=HZ(X,"queueMicrotask"),TI=S9&&S9.value;TI||(Zc=function(){var e,t;for(oa&&(e=C9.domain)&&e.exit();du;){t=du.fn,du=du.next;try{t()}catch(n){throw du?nl():fd=void 0,n}}fd=void 0,e&&e.enter()},kI||oa||$Z||!E9||!D9?!zZ&&Gh&&Gh.resolve?((pb=Gh.resolve(void 0)).constructor=Gh,w9=Ju(pb.then,pb),nl=function(){w9(Zc)}):oa?nl=function(){C9.nextTick(Zc)}:(hb=Ju(hb,X),nl=function(){hb(Zc)}):(fb=!0,db=D9.createTextNode(""),new E9(Zc).observe(db,{characterData:!0}),nl=function(){db.data=fb=!fb}));var gb,x9,_I,A9,jI=TI||function(e){var t={fn:e,next:void 0};fd&&(fd.next=t),du||(du=t,nl()),fd=t},UZ=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Ca(t),this.reject=Ca(n)},b8={f:function(e){return new UZ(e)}},LE=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},VZ=typeof window=="object",PI=FI.set,WZ=St("species"),fo="Promise",O9=Sn.getterFor(fo),GZ=Sn.set,qZ=Sn.getterFor(fo),au=uv&&uv.prototype,mo=uv,Qc=au,II=X.TypeError,ME=X.document,w8=X.process,ml=b8.f,KZ=ml,YZ=!!(ME&&ME.createEvent&&X.dispatchEvent),NI=rt(X.PromiseRejectionEvent),RI=!1,dd=Ud(fo,function(){var e=M1(mo),t=e!==String(mo);if(!t&&zd===66)return!0;if(zd>=51&&/native code/.test(e))return!1;var n=new mo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[WZ]=r,!(RI=n.then(function(){})instanceof r)||!t&&VZ&&!NI}),XZ=dd||!r8(function(e){mo.all(e).catch(function(){})}),LI=function(e){var t;return!(!ft(e)||!rt(t=e.then))&&t},E8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;jI(function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&ZZ(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(II("Promise-chain cycle")):(u=LI(a))?qe(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&JZ(e)})}},MI=function(e,t,n){var r,o;YZ?((r=ME.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),X.dispatchEvent(r)):r={promise:t,reason:n},!NI&&(o=X["on"+e])?o(r):e==="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)},JZ=function(e){qe(PI,X,function(){var t,n=e.facade,r=e.value;if(B9(e)&&(t=LE(function(){oa?w8.emit("unhandledRejection",r,n):MI("unhandledrejection",n,r)}),e.rejection=oa||B9(e)?2:1,t.error))throw t.value})},B9=function(e){return e.rejection!==1&&!e.parent},ZZ=function(e){qe(PI,X,function(){var t=e.facade;oa?w8.emit("rejectionHandled",t):MI("rejectionhandled",t,e.value)})},ll=function(e,t,n){return function(r){e(t,r,n)}},yl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,E8(e,!0))},zE=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw II("Promise can't be resolved itself");var r=LI(t);r?jI(function(){var o={done:!1};try{qe(r,t,ll(zE,o,e),ll(yl,o,e))}catch(i){yl(o,i,e)}}):(e.value=t,e.state=1,E8(e,!1))}catch(o){yl({done:!1},o,e)}}};if(dd&&(Qc=(mo=function(e){K1(this,Qc),Ca(e),qe(gb,this);var t=O9(this);try{e(ll(zE,t),ll(yl,t))}catch(n){yl(t,n)}}).prototype,(gb=function(e){GZ(this,{type:fo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Vl(Qc,{then:function(e,t){var n=qZ(this),r=n.reactions,o=ml(OI(this,mo));return o.ok=!rt(e)||e,o.fail=rt(t)&&t,o.domain=oa?w8.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&E8(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),x9=function(){var e=new gb,t=O9(e);this.promise=e,this.resolve=ll(zE,t),this.reject=ll(yl,t)},b8.f=ml=function(e){return e===mo||e===_I?new x9(e):KZ(e)},rt(uv)&&au!==Object.prototype)){A9=au.then,RI||(Un(au,"then",function(e,t){var n=this;return new mo(function(r,o){qe(A9,n,r,o)}).then(e,t)},{unsafe:!0}),Un(au,"catch",Qc.catch,{unsafe:!0}));try{delete au.constructor}catch{}Ul&&Ul(au,Qc)}Dt({global:!0,wrap:!0,forced:dd},{Promise:mo}),tv(mo,fo,!1),m8(fo),_I=ds(fo),Dt({target:fo,stat:!0,forced:dd},{reject:function(e){var t=ml(this);return qe(t.reject,void 0,e),t.promise}}),Dt({target:fo,stat:!0,forced:dd},{resolve:function(e){return function(t,n){if(Rt(t),ft(n)&&n.constructor===t)return n;var r=b8.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),Dt({target:fo,stat:!0,forced:XZ},{all:function(e){var t=this,n=ml(t),r=n.resolve,o=n.reject,i=LE(function(){var a=Ca(t.resolve),u=[],s=0,l=1;qd(e,function(c){var f=s++,d=!1;l++,qe(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=ml(t),r=n.reject,o=LE(function(){var i=Ca(t.resolve);qd(e,function(a){qe(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ts=G1.UNSUPPORTED_Y,QZ=Math.min,zI=[].push,eQ=pe(/./.exec),_s=pe(zI),ef=pe("".slice);function Br(e){Promise.resolve().then(e)}function $I(e,t){return ce.isElement(e)?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 $I(y,r)}).join(""));var c=function(y){return AI[y]||PZ}(i),f=c(n,l,r),d="";if(d=typeof f=="string"?f:f.html||"",s||IE.forEach(function(y){return d=y(n,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,m=f.suffix,g=m===void 0?"":m;return v&&(d=v+d),g&&(d+=g),d}(e,t):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 IE.forEach(function(s){return i=s(n,i)}),i}(e,t)}function HI(e){return"w-e-element-"+e}f8("split",function(e,t,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=it(Or(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!Q5(o))return qe(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=qe(Wd,v,a))&&!((l=v.lastIndex)>p&&(_s(f,ef(a,p,s.index)),s.length>1&&s.index<a.length&&c8(zI,f,xE(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&eQ(v,"")||_s(f,""):_s(f,ef(a,p)),f.length>u?xE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:qe(t,this,o,i)}:t,[function(o,i){var a=Or(this),u=o==null?void 0:Xu(o,e);return u?qe(u,o,a,i):qe(r,it(a),o,i)},function(o,i){var a=Rt(this),u=it(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=OI(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ts?"g":"y"),d=new l(Ts?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return Gd(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Ts?0:m;var y,h=Gd(d,Ts?ef(u,m):u);if(h===null||(y=QZ(sc(d.lastIndex+(Ts?m:0)),u.length))===v)m=d8(u,m,c);else{if(_s(g,ef(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(_s(g,h[b]),g.length===p)return g;m=v=y}}return _s(g,ef(u,v)),g}]},!!Je(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ts);var k9=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},F9=function(e,t,n){var r=A.toDOMRange(e,t).getBoundingClientRect(),o=A.toDOMRange(e,n).getBoundingClientRect();return k9(r,o)&&k9(o,r)},UI=["span","b","strong","i","em","s","strike","u","font","sub","sup"],VI=[],D8=[],sv={},tQ=eo.f,nQ=Hd.f,rQ=Sn.enforce,oQ=St("match"),Jo=X.RegExp,rl=Jo.prototype,iQ=X.SyntaxError,aQ=pe(Z5),uQ=pe(rl.exec),qh=pe("".charAt),T9=pe("".replace),_9=pe("".indexOf),sQ=pe("".slice),lQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ku=/a/g,vb=/a/g,cQ=new Jo(ku)!==ku,WI=G1.MISSED_STICKY,fQ=G1.UNSUPPORTED_Y,dQ=rn&&(!cQ||WI||u8||s8||Je(function(){return vb[oQ]=!1,Jo(ku)!=ku||Jo(vb)==vb||Jo(ku,"i")!="/a/i"}));if(Ud("RegExp",dQ)){for(var Ai=function(e,t){var n,r,o,i,a,u,s=Yu(rl,this),l=Q5(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===Ai)return e;if((l||Yu(rl,e))&&(e=e.source,c&&(t="flags"in d?d.flags:aQ(d))),e=e===void 0?"":it(e),t=t===void 0?"":it(t),d=e,u8&&"dotAll"in ku&&(r=!!t&&_9(t,"s")>-1)&&(t=T9(t,/s/g,"")),n=t,WI&&"sticky"in ku&&(o=!!t&&_9(t,"y")>-1)&&fQ&&(t=T9(t,/y/g,"")),s8&&(i=function(p){for(var v,m=p.length,g=0,y="",h=[],b={},w=!1,D=!1,S=0,C="";g<=m;g++){if((v=qh(p,g))==="\\")v+=qh(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":uQ(lQ,sQ(p,g+1))&&(g+=2,D=!0),y+=v,S++;continue;case(v===">"&&D):if(C===""||Nt(b,C))throw new iQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,S],D=!1,C="";continue}D?C+=v:y+=v}return[y,h]}(e),e=i[0],f=i[1]),a=gI(Jo(e,t),s?this:rl,Ai),(r||o||f.length)&&(u=rQ(a),r&&(u.dotAll=!0,u.raw=Ai(function(p){for(var v,m=p.length,g=0,y="",h=!1;g<=m;g++)(v=qh(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+qh(p,++g);return y}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{qr(a,"source",d===""?"(?:)":d)}catch{}return a},pQ=function(e){e in Ai||tQ(Ai,e,{configurable:!0,get:function(){return Jo[e]},set:function(t){Jo[e]=t}})},j9=nQ(Jo),P9=0;j9.length>P9;)pQ(j9[P9++]);rl.constructor=Ai,Ai.prototype=rl,Un(X,"RegExp",Ai)}m8("RegExp");var hQ=new RegExp(" ","g");function GI(e){return e.replace(hQ," ")}function I9(e,t){var n=e.length;if(n){var r=e[n-1];if(oe.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+t,!0}}return!1}function gQ(e,t,n){return{type:"paragraph",children:[{text:k(e).text().replace(/\s+/gm," ")}]}}function mb(e,t){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!==go.ELEMENT_NODE){if(l.nodeType===go.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
- `)>=0)return;c&&(c=GI(c),I9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(I9(u,`
- `)||u.push({text:`
- `}));var f=C8(k(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(e,t),r=function(i){for(var a in sv)if(i[0].matches(a))return sv[a];return gQ}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(t,i)||(n.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),D8.forEach(function(a){i=a(e[0],i,t)}))}),o}function yb(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
- `));var n=e[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=GI(n)};return D8.forEach(function(o){r=o(e[0],r,t)}),r}function C8(e,t){VI.forEach(function(r){var o=r.selector,i=r.preParseHtml;e[0].matches(o)&&(e=k(i(e[0])))});var n=p9(e);return n==="span"?e.attr("data-w-e-type")?mb(e,t):yb(e,t):n==="code"?p9(e.parent())==="pre"?mb(e,t):yb(e,t):UI.includes(n)?yb(e,t):mb(e,t)}function qI(e,t,n){var r=k(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",function(){r.removeAttr(t)}),!1)}function N9(e,t){t===void 0&&(t="");var n=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=k("<div>"+t+"</div>");return Array.from(r.children()).forEach(function(o){var i=C8(k(o),e);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var vQ=eo.f,R9=q1.fastKey,L9=Sn.set,bb=Sn.getterFor,mQ={getConstructor:function(e,t,n,r){var o=e(function(l,c){K1(l,i),L9(l,{type:t,index:V1(null),first:void 0,last:void 0,size:0}),rn||(l.size=0),c!=null&&qd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=bb(t),u=function(l,c,f){var d,p,v=a(l),m=s(l,c);return m?m.value=f:(v.last=m={index:p=R9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=m),d&&(d.next=m),rn?v.size++:l.size++,p!=="F"&&(v.index[p]=m)),l},s=function(l,c){var f,d=a(l),p=R9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return Vl(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,rn?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),rn?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Ju(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Vl(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)}}),rn&&vQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=bb(t),i=bb(r);i8(e,t,function(a,u){L9(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),m8(t)}};vI("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mQ);var M9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function z9(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):I.insertNodes(e,t,{mode:"highest"})}var yQ=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(r){var o=t.selection;if(o){var i=He(R.edges(o),2),a=i[0],u=i[1],s=E.void(t,{at:a.path}),l=E.void(t,{at:u.path});if(!R.isCollapsed(o)||s){var c=A.toDOMRange(t,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(d=D)}),l){var p=He(l,1)[0],v=c.cloneRange(),m=A.toDOMNode(t,p);v.setEndAfter(m),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var S=D.getAttribute("data-slate-zero-width")==="n";D.textContent=S?`
- `:""}),DI(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var y=t.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));d.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",CZ(w)),f.ownerDocument.body.removeChild(w),r}}},t.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);t.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=br(f),v=p.next();!v.done;v=p.next()){var m=v.value;d&&I.splitNodes(t,{always:!0}),n(m),d=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},t},Jf=function(e){return e!=null},bQ={object:!0,function:!0,undefined:!0},wQ=/^\s*class[\s{/}]/,EQ=Function.prototype.toString,$9=function(e){return!!function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!function(n){if(!function(r){return!!Jf(r)&&hasOwnProperty.call(bQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch{return!1}}(t)}(e)&&!wQ.test(EQ.call(e))},S8=function(e){return e!=null},DQ=Object.keys,CQ=function(){try{return Object.keys("primitive"),!0}catch{return!1}}()?Object.keys:function(e){return DQ(S8(e)?Object(e):e)},SQ=function(e){if(!S8(e))throw new TypeError("Cannot use null or undefined");return e},xQ=Math.max,H9=function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=xQ(arguments.length,2);for(e=Object(SQ(e)),o=function(a){try{e[a]=t[a]}catch(u){n||(n=u)}},r=1;r<i;++r)CQ(t=arguments[r]).forEach(o);if(n!==void 0)throw n;return e},AQ=Array.prototype.forEach,OQ=Object.create,BQ=function(e,t){var n;for(n in e)t[n]=e[n]},U9=function(e){var t=OQ(null);return AQ.call(arguments,function(n){S8(n)&&BQ(Object(n),t)}),t},wb="razdwatrzy",kQ=String.prototype.indexOf,tf=typeof wb.contains=="function"&&wb.contains("dwa")===!0&&wb.contains("foo")===!1?String.prototype.contains:function(e){return kQ.call(this,e,arguments[1])>-1},Kh=$p(function(e){var t=e.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],Jf(n)?(o=tf.call(n,"c"),i=tf.call(n,"e"),a=tf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?H9(U9(u),s):s};t.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],Jf(r)?$9(r)?Jf(o)?$9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Jf(n)?(i=tf.call(n,"c"),a=tf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?H9(U9(u),s):s}}),Eb=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},FQ=$p(function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};n=function(g,y){var h;return Eb(y),v.call(this,"__ee__")?h=this.__ee__:(h=m.value=f(null),d(this,"__ee__",m),m.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},r=function(g,y){var h,b;return Eb(y),b=this,n.call(this,g,h=function(){o.call(b,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(g,y){var h,b,w,D;if(Eb(y),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(D=0;w=b[D];++D)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[g]=b[D?0:1]:b.splice(D,1));else b!==y&&b.__eeOnceListener__!==y||delete h[g];return this},i=function(g){var y,h,b,w,D;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),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:Kh(n),once:Kh(r),off:Kh(o),emit:Kh(i)},s=p({},u),e.exports=t=function(g){return g==null?f(s):p(Object(g),u)},t.methods=a});function Yh(e){var t=c9.get(e);return t==null&&(t=FQ(),c9.set(e,t)),t}var lv=new WeakMap;function V9(e,t){var n=lv.get(e);n==null&&(n=new Set,lv.set(e,n)),n.add(t)}function TQ(e){return lv.get(e)||new Set}function _Q(e){lv.set(e,new Set)}function x8(e){var t=A.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function A8(e){var t={top:"0",left:"0"},n=e.selection;if(n==null)return t;var r=x8(e);if(r==null)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(e,n).getClientRects()[0];if(s==null)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var m=f+l;m<0&&(m=0),c.top=m+5+"px"}return c}function O8(e,t,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(e.selection==null)return r;var o=ce.isElement(t)&&e.isVoid(t),i=ce.isElement(t)&&e.isInline(t),a=iv.get(t);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(C){var O=[];O.push(C);for(var F=0;O.length>0;){var L=O.pop();if(L==null||++F>1e4)break;var H=L.nodeName;if(L.nodeType===1){var M=H.toLowerCase();if(EZ.includes(M)||M==="iframe"||M==="video")return L;var K=L.children||[],V=K.length;if(V)for(var G=V-1;G>=0;G--)O.push(K[G])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=x8(e);if(v==null)return r;var m,g=v.top,y=v.left,h=v.width,b=v.height,w={},D=s-g,S=l-y;if(n==="bar")return w.left=S+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?S>(h-f)/2?w.right=h-S+5+"px":w.left=S+f+5+"px":w.left="20px":w.left=S+"px",o?((m=D)<0&&(m=0),w.top=m+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((m=D+c)<0&&(m=0),w.top=m+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function $E(e,t){Br(function(){var n=x8(e);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,v=c-i,m=t.attr("style");if(m.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(m.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),b=parseInt(h.toString())-Math.abs(l);t.css("bottom",b+"px")}if(m.indexOf("left")>=0&&(r=v+f-a)>0){var w=t.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),t.css("left",D+"px")}if(m.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}})}var jQ=W1("slice"),PQ=St("species"),Db=X.Array,IQ=Math.max;Dt({target:"Array",proto:!0,forced:!jQ},{slice:function(e,t){var n,r,o,i=Ia(this),a=ps(i),u=$l(e,a),s=$l(t===void 0?a:t,a);if(Zg(i)&&(n=i.constructor,(U1(n)&&(n===Db||Zg(n.prototype))||ft(n)&&(n=n[PQ])===null)&&(n=void 0),n===Db||n===void 0))return BI(i,u,s);for(r=new(n===void 0?Db:n)(IQ(s-u,0)),o=0;u<s;u++,o++)u in i&&Vd(r,o,i[u]);return r.length=o,r}});var NQ=Up.f,W9=pe("".startsWith),RQ=pe("".slice),LQ=Math.min,KI=t8("startsWith"),MQ=!KI&&!!function(){var e=NQ(String.prototype,"startsWith");return e&&!e.writable}();Dt({target:"String",proto:!0,forced:!MQ&&!KI},{startsWith:function(e){var t=it(Or(this));e8(e);var n=sc(LQ(arguments.length>1?arguments[1]:void 0,t.length)),r=it(e);return W9?W9(t,r,n):RQ(t,n,n+r.length)===r}});var js=Object.assign,G9=Object.defineProperty,zQ=pe([].concat),q9=!js||Je(function(){if(rn&&js({b:1},js(G9({},"a",{enumerable:!0,get:function(){G9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),js({},e)[n]!=7||vl(js({},t)).join("")!=r})?function(e,t){for(var n=Pa(e),r=arguments.length,o=1,i=oI.f,a=tI.f;r>o;)for(var u,s=H1(arguments[o++]),l=i?zQ(vl(s),i(s)):vl(s),c=l.length,f=0;c>f;)u=l[f++],rn&&!qe(a,s,u)||(n[u]=s[u]);return n}:js;Dt({target:"Object",stat:!0,forced:Object.assign!==q9},{assign:q9});var $Q=["props","attrs","style","dataset","on","hook"];function YI(e){var t=e.data,n=t===void 0?{}:t,r=e.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!$Q.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=fK(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(e,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(u={},u[i]=s,u)),delete n[i]}}else e.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&YI(i)})}var HE=[],XI={};function HQ(e,t,n){return be(n.isInline(e)?"span":"div",null,t)}function K9(e,t){return t===void 0&&(t=!1),be("span",{"data-slate-string":!0},t?e+`
- `:e)}function Cb(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),be("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?be("br",null):null)}function UE(e,t,n,r){return Kd.set(e,t),Wl.set(e,n),ce.isElement(e)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=HI(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,m=function(D){return XI[D]||HQ}(d);a=l?null:v.map(function(D,S){return UE(D,S,o,i)});var g=m(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=He(Z.texts(o),1),b=He(h[0],1)[0],w=be(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},UE(b,0,o,i));g=be(y,{style:{position:"relative"}},g,w),Kd.set(b,0),Wl.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=function(D,S){var C=S;return HE.forEach(function(O){C=O(D,S)}),C}(o,g)),Br(function(){var D=TE(c);D!=null&&(FE.set(u,D),iv.set(o,D),ov.set(D,o))}),g}(e,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=oe.decorations(o,c),d=f.map(function(m,g){var y=function(h,b,w,D,S){b===void 0&&(b=!1);var C=h.text,O=A.findPath(S,w),F=P.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return S.isVoid(D)?Cb(Z.string(D).length):C!==""||D.children[D.children.length-1]!==w||S.isInline(D)||E.string(S,F)!==""?C===""?Cb():b&&C.slice(-1)===`
- `?K9(C,!0):K9(C):Cb(0,!0)}(m,g===f.length-1,o,i,a);return y=function(h,b){var w=b;return HE.forEach(function(D){w=D(h,w)}),w}(m,y),be("span",{"data-slate-leaf":!0},y)}),p=function(m){return"w-e-text-"+m}(u.id),v=be("span",{"data-slate-node":"text",id:p,key:u.id},d);return Br(function(){var m=TE(p);m!=null&&(FE.set(u,m),iv.set(o,m),ov.set(m,o))}),v}(e,n,r)}function UQ(e,t){var n,r=e.$scroll,o=function(m){return"w-e-textarea-"+m}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(m,g){return g===void 0&&(g=!1),zl("div#"+m,{props:{contentEditable:!g}})}(o,a),l=t.children||[];s.children=l.map(function(m,g){var y=UE(m,g,t,t);return YI(y),y});var c=u9.get(e);if(c==null&&(c=!0),c){var f=function(m,g){return k(`<div
- id="`+m+`"
- data-slate-editor
- data-slate-node="value"
- suppressContentEditableWarning
- role="textarea"
- spellCheck="true"
- autoCorrect="true"
- autoCapitalize="true"
- ></div>`)}(o);r.append(f),e.$textArea=f,n=f[0],(p=jq([Iq,Mq,$q,Nq,Lq,Pq]))(n,s),u9.set(e,!1),s9.set(e,p)}else{var d=l9.get(e),p=s9.get(e);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=TE(o))!=null){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var v=v8(n);v&&EI.set(t,v)}g8.set(t,n),iv.set(t,n),ov.set(n,t),l9.set(e,s)}}function Y9(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function X9(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Sb(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return X9(n.overflowY,t)||X9(n.overflowX,t)||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)}(e)}return!1}function Xh(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function J9(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(De){return De!==a};if(!Y9(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;Y9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Sb(f)&&!Sb(document.documentElement)||f!=null&&Sb(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,h=g.width,b=g.top,w=g.right,D=g.bottom,S=g.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+y/2,O=i==="center"?S+h/2:i==="end"?w:S,F=[],L=0;L<c.length;L++){var H=c[L],M=H.getBoundingClientRect(),K=M.height,V=M.width,G=M.top,q=M.right,ne=M.bottom,se=M.left;if(r==="if-needed"&&b>=0&&S>=0&&D<=p&&w<=d&&b>=G&&D<=ne&&S>=se&&w<=q)return F;var ue=getComputedStyle(H),ae=parseInt(ue.borderLeftWidth,10),B=parseInt(ue.borderTopWidth,10),x=parseInt(ue.borderRightWidth,10),j=parseInt(ue.borderBottomWidth,10),$=0,Y=0,U="offsetWidth"in H?H.offsetWidth-H.clientWidth-ae-x:0,ie="offsetHeight"in H?H.offsetHeight-H.clientHeight-B-j:0;if(l===H)$=o==="start"?C:o==="end"?C-p:o==="nearest"?Xh(m,m+p,p,B,j,m+C,m+C+y,y):C-p/2,Y=i==="start"?O:i==="center"?O-d/2:i==="end"?O-d:Xh(v,v+d,d,ae,x,v+O,v+O+h,h),$=Math.max(0,$+m),Y=Math.max(0,Y+v);else{$=o==="start"?C-G-B:o==="end"?C-ne+j+ie:o==="nearest"?Xh(G,ne,K,B,j+ie,C,C+y,y):C-(G+K/2)+ie/2,Y=i==="start"?O-se-ae:i==="center"?O-(se+V/2)+U/2:i==="end"?O-q+x+U:Xh(se,q,V,ae,x+U,O,O+h,h);var ge=H.scrollLeft,ve=H.scrollTop;C+=ve-($=Math.max(0,Math.min(ve+$,H.scrollHeight-K+ie))),O+=ge-(Y=Math.max(0,Math.min(ge+Y,H.scrollWidth-V+U)))}F.push({el:H,top:$,left:Y})}return F}function Z9(e){return e===Object(e)&&Object.keys(e).length!==0}function gr(e,t){return Zu(t)&&A.hasDOMNode(e,t,{editable:!0})}function Q9(e,t){if(e.getConfig().readOnly)return!1;var n=ol(e,t)&&A.toSlateNode(e,t);return E.isVoid(e,n)}function ol(e,t){return Zu(t)&&A.hasDOMNode(e,t)}function JI(e,t,n){n===void 0&&(n=!1);var r=t.selection,o=t.getConfig(),i=A.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a=i.type!=="None";if(r||a){var u=g8.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&R.equals(l,r)){var c=!0;if(R.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!r||A.hasRange(t,r)){e.isUpdatingSelection=!0;var m=r&&A.toDOMRange(t,r);if(m){R.isBackward(r)?i.setBaseAndExtent(m.endContainer,m.endOffset,m.startContainer,m.startOffset):i.setBaseAndExtent(m.startContainer,m.startOffset,m.endContainer,m.endOffset);var g=m.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=m.getBoundingClientRect.bind(m);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(Z9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:J9(h,b));if(!w){var D=function(S){return S===!1?{block:"end",inline:"nearest"}:Z9(S)?S:{block:"start",inline:"nearest"}}(b);(function(S,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;S.forEach(function(F){var L=F.el,H=F.top,M=F.left;L.scroll&&O?L.scroll({top:H,left:M,behavior:C}):(L.scrollTop=H,L.scrollLeft=M)})})(J9(h,D),D.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){m&&ld&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var xb=new WeakMap,eO=new WeakMap,VQ={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"},WQ={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"},GQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},mt=function(e){var t=VQ[e],n=WQ[e],r=GQ[e],o=t&&Cy(t),i=n&&Cy(n),a=r&&Cy(r);return function(u){return!(!o||!o(u))||!!(_E&&i&&i(u))||!(_E||!a||!a(u))}},wt={isBold:mt("bold"),isCompose:mt("compose"),isMoveBackward:mt("moveBackward"),isMoveForward:mt("moveForward"),isDeleteBackward:mt("deleteBackward"),isDeleteForward:mt("deleteForward"),isDeleteLineBackward:mt("deleteLineBackward"),isDeleteLineForward:mt("deleteLineForward"),isDeleteWordBackward:mt("deleteWordBackward"),isDeleteWordForward:mt("deleteWordForward"),isExtendBackward:mt("extendBackward"),isExtendForward:mt("extendForward"),isExtendLineBackward:mt("extendLineBackward"),isExtendLineForward:mt("extendLineForward"),isItalic:mt("italic"),isMoveLineBackward:mt("moveLineBackward"),isMoveLineForward:mt("moveLineForward"),isMoveWordBackward:mt("moveWordBackward"),isMoveWordForward:mt("moveWordForward"),isRedo:mt("redo"),isSplitBlock:mt("splitBlock"),isTransposeCharacter:mt("transposeCharacter"),isUndo:mt("undo"),isTab:mt("tab"),isSelectAll:mt("selectAll")};function Ht(e){e.preventDefault()}var qQ={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Jc&&!o&&gr(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=He(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&R.equals(i,l)||I.select(n,l)}}if(i&&R.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"&&!ib.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&gr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||Lr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&Zu(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ce.isElement(s)&&!n.isVoid(s))return}if(Xc){var l=a.getSelection();l==null||l.removeAllRanges()}Bu.delete(n)}}}},focus:function(e,t,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,ld&&e.target!==r?r.focus():Bu.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&ol(n,e.target)&&Zu(e.target)){var r=A.toSlateNode(n,e.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&Z.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&&P.equals(u[1],s[1])){var l=E.range(n,i);I.select(n,l)}}}},compositionstart:function(e,t,n){if(gr(n,e.target)){var r=n.selection;if(r&&R.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){JI(t,n,!0)})),r&&R.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";xb.set(n,i),eO.set(n,o)}t.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)}(t,n)}},compositionend:function(e,t,n){var r=e;if(gr(n,r.target)){t.isComposing=!1;var o=n.selection;if(o!=null){(jE||ld)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=R.isBackward(o)?o.focus:o.anchor,a=He(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=He(E.node(n,i.path.slice(0,u+1)),1)[0];if(ce.isElement(s)&&((Xc||ld)&&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=xb.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),t.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Xc||setTimeout(function(){var f=n.selection;if(f!=null){var d=eO.get(n);d!=null&&A.toDOMRange(n,f).startContainer!==d&&(d.textContent=xb.get(n)||"")}})}}}},compositionupdate:function(e,t,n){gr(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&gr(n,r.target)){if(function(a,u){var s=Y1.get(a),l=s&&s.getMenus(),c=rv.get(a),f=c&&c.getMenus(),d=yr(yr({},l),f);for(var p in d){var v=d[p],m=v.hotkey;if(m&&hK(m,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}}(n,r),wt.isTab(r))return Ht(r),void n.handleTab();if(wt.isRedo(r))return Ht(r),void(typeof n.redo=="function"&&n.redo());if(wt.isUndo(r))return Ht(r),void(typeof n.undo=="function"&&n.undo());if(wt.isMoveLineBackward(r))return Ht(r),void I.move(n,{unit:"line",reverse:!0});if(wt.isMoveLineForward(r))return Ht(r),void I.move(n,{unit:"line"});if(wt.isExtendLineBackward(r))return Ht(r),void I.move(n,{unit:"line",edge:"focus",reverse:!0});if(wt.isExtendLineForward(r))return Ht(r),void I.move(n,{unit:"line",edge:"focus"});if(wt.isMoveBackward(r))return Ht(r),void(o&&R.isCollapsed(o)?I.move(n,{reverse:!0}):I.collapse(n,{edge:"start"}));if(wt.isMoveForward(r))return Ht(r),void(o&&R.isCollapsed(o)?I.move(n):I.collapse(n,{edge:"end"}));if(wt.isMoveWordBackward(r))return Ht(r),o&&R.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word",reverse:!0});if(wt.isMoveWordForward(r))return Ht(r),o&&R.isExpanded(o)&&I.collapse(n,{edge:"focus"}),void I.move(n,{unit:"word"});if(wt.isSelectAll(r))return Ht(r),void n.selectAll();if(Jc){if((jE||Xc)&&o&&(wt.isDeleteBackward(r)||wt.isDeleteForward(r))&&R.isCollapsed(o)){var i=Z.parent(n,o.anchor.path);if(ce.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void I.delete(n,{unit:"block"})}}else{if(wt.isBold(r)||wt.isItalic(r)||wt.isTransposeCharacter(r))return void Ht(r);if(wt.isSplitBlock(r))return Ht(r),void E.insertBreak(n);if(wt.isDeleteBackward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(wt.isDeleteForward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(wt.isDeleteLineBackward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(wt.isDeleteLineForward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(wt.isDeleteWordBackward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(wt.isDeleteWordForward(r))return Ht(r),void(o&&R.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Jc&&!n.getConfig().readOnly&&gr(n,e.target)){e.preventDefault();var r=e.key;E.insertText(n,r)}},copy:function(e,t,n){var r=e;if(gr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&gr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(R.isExpanded(o))E.deleteFragment(n);else{var a=Z.parent(n,o.anchor.path);E.isVoid(n,a)&&I.delete(n)}}},paste:function(e,t,n){ib.set(n,!0);var r=e;if(!n.getConfig().readOnly&&gr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void ib.set(n,!1);if(!Jc||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(e,t,n){if(ol(n,e.target)){var r=A.toSlateNode(n,e.target);E.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(ol(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);I.select(n,a)}var u=r.dataTransfer;u!=null&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&ol(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&ol(n,r.target)&&o!=null&&!(Jc&&Xc&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);I.select(n,a),t.isDraggingInternally&&(i&&I.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},KQ=1,YQ=function(){function e(t){var n=this;this.id=KQ++,this.$textArea=null,this.$progressBar=k('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=k('<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=Ku(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 d=A.findDocumentOrShadowRoot(s),p=d.activeElement,v=A.toDOMNode(s,s),m=d.getSelection();if(p===v?(u.latestElement=p,Bu.set(s,!0)):Bu.delete(s),!m)return I.deselect(s);var g=m.anchorNode,y=m.focusNode,h=gr(s,g)||Q9(s,g),b=gr(s,y)||Q9(s,y);if(h&&b){var w=A.toSlateRange(s,m,{exactMatch:!1,suppressThrow:!1});I.select(s,w)}else I.deselect(s)}})(n,a)},100);var r=k(t);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=r;var o=k('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=k('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Br(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(e.prototype,"editorInstance",{get:function(){var t=OE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(R5(qQ,function(i,a){n.on(a,function(u){i(u,t,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Ku(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){t.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):t.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),t.latestEditorSelection=n.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,n=t.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},e.prototype.changeProgress=function(t){var n=this.$progressBar;n.css("width",t+"%"),t>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},e.prototype.changeViewState=function(){var t=this,n=this.editorInstance;UQ(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=k('<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),Br(function(){JI(t,n)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function B8(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&B8(t)}function k8(){return k('<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 ZI(){return k('<div class="w-e-bar-divider"></div>')}function QI(e,t,n,r,o){if(o===void 0&&(o=!1),t){if(r){var i=_E?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+`
- `+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}f8("match",function(e,t,n){return[function(r){var o=Or(this),i=r==null?void 0:Xu(r,e);return i?qe(i,r,o):new RegExp(r)[e](it(o))},function(r){var o=Rt(this),i=it(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return Gd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Gd(o,i))!==null;){var f=it(s[0]);l[c]=f,f===""&&(o.lastIndex=d8(i,sc(o.lastIndex),u)),c++}return c===0?null:l}]});var F8=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<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,d=this.$button;if(f){var p=k(f);B8(p),d.append(p)}else d.text(u);QI(d,f,u,l,r),r&&f&&d.append(k('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",t),this.$elem.append(d),Br(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),Qn(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=Qn(this),n=this.menu,r=n.getValue(t);n.exec(t,r)},e.prototype.setActive=function(){var t=Qn(this),n=this.$button,r="active";this.menu.isActive(t)?n.addClass(r):n.removeClass(r)},e.prototype.setDisabled=function(){var t=Qn(this),n=this.$button,r=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),XQ=function(e){function t(n,r,o){return o===void 0&&(o=!1),e.call(this,n,r,o)||this}return cc(t,e),t.prototype.onButtonClick=function(){},t}(F8),T8=function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var n=kE.get(t);n==null&&(n=new Set,kE.set(t,n)),n.add(this),G0.set(this,t)},e.prototype.renderContent=function(t){var n=this.$elem;n.empty(),n.append(t);var r=this.genSelfElem();r&&n.append(r)},e.prototype.appendTo=function(t){var n=this.$elem;t.append(n)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=G0.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=G0.get(this);t&&t.emit("modalOrPanelHide")}},e}(),JQ=function(e){function t(n){var r=e.call(this,n)||this;return r.type="dropPanel",r.$elem=k('<div class="w-e-drop-panel"></div>'),r}return cc(t,e),t.prototype.genSelfElem=function(){return null},t}(T8),ZQ=function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=k8();i.$button.append(a)}return i}return cc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=Qn(this);if(this.dropPanel==null){var o=new JQ(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"})}}},t}(F8),QQ=function(e){function t(n,r){r===void 0&&(r=0);var o=e.call(this,n)||this;o.type="modal",o.$elem=k('<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 cc(t,e),t.prototype.genSelfElem=function(){var n=this,r=k('<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=G0.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},t.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},t}(T8);function tr(e,t,n){var r=k('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=k('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function fc(e,t){var n=k('<div class="button-container"></div>'),r=k('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var eee=function(e){function t(n,r,o){o===void 0&&(o=!1);var i=e.call(this,n,r,o)||this;return i.$body=k("body"),i.modal=null,i.menu=r,i}return cc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var n=Qn(this),r=this.menu.getModalPositionNode(n);return ce.isElement(r)?O8(n,r,"modal"):A8(n)},t.prototype.handleModal=function(){var n=Qn(this),r=this.menu;if(this.modal==null){var o=new QQ(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=Qn(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||$E(o,n.$elem),setTimeout(function(){o.blur()})}},t}(F8),tee=function(e){function t(n,r){var o=e.call(this,n)||this;return o.type="selectList",o.$elem=k('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return cc(t,e),t.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=k("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=k('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=k('<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(k('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},t.prototype.genSelfElem=function(){return null},t}(T8),nee=function(){function e(t,n,r){var o=this;r===void 0&&(r=!1),this.$elem=k('<div class="w-e-bar-item"></div>'),this.$button=k('<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 d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",t),QI(d,l,a,f,r),this.$elem.append(d),this.menu=n,Br(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),Qn(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,n=Qn(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new tee(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=k(u).attr("data-value");t.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var n=Qn(this),r=this.menu;r.exec&&r.exec(n,t)},e.prototype.setSelectedValue=function(){var t=Qn(this),n=this.menu,r=n.getValue(t),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(n.getOptions(t),r.toString()),i=this.$button,a=k8();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=Qn(this),n=this.menu.isDisabled(t),r=this.$button;(t.selection==null||t.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),tO=function(){function e(t){this.$elem=k('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=k('<div class="w-e-bar-item-menus-container"></div>'),this.$button=k('<button type="button"></button>');var n=t.key,r=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(r){var u=k(r);B8(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=k8();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var n=t.$elem;this.$container.append(n)},e.prototype.observe=function(t){var n=this.$container;t.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=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){k(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),t.observe(o)}});return o},e}(),nO=new WeakMap;function Qn(e){var t=h8.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function eN(e,t,n){n===void 0&&(n=!1);var r=nO.get(t);if(r)return r;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;r=i?new ZQ(e,t,n):a?new eee(e,t,n):new XQ(e,t,n)}if(o==="select"&&(r=new nee(e,t,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return nO.set(t,r),r}function ree(e,t){var n=e.selection;return n!=null&&!R.isCollapsed(n)&&!A.getSelectedElems(e).some(function(r){if(e.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!oe.isText(t)}var oee=function(){function e(){var t=this;this.$elem=k('<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=FP(function(){var n=t.isShow,r=t.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&ce.isElement(i)&&n&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),Br(function(){var n=t.getEditorInstance(),r=t.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-t[0].getBoundingClientRect().bottom<360&&(n=!0),n?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;Br(function(){t.hoverbarItems.forEach(function(n){n.changeMenuState()})})},e.prototype.registerItems=function(t){var n=this,r=this.$elem;t.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=ZI();r.append(i)}})},e.prototype.registerSingleItem=function(t){var n=this.getEditorInstance(),r=this.menus,o=r[t];if(o==null){var i=Yd[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),r[t]=o}var a=eN(t,o);this.hoverbarItems.push(a),h8.set(a,n),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ce.isElement(t)){var o=O8(n,t,"bar");return r.css(o),void $E(n,r)}if(oe.isText(t))return o=A8(n),r.css(o),void $E(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.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,d=l||function(m,g){return A.checkNodeType(g,u)},p=He(E.nodes(t,{match:function(m){return d(t,m)},universal:!0}),1),v=p[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}},e.prototype.getEditorInstance=function(){var t=BE.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,n=t===void 0?{}:t,r=n.text;return r&&r.match==null&&(r.match=ree),n},e.prototype.isSamePath=function(t,n){if(t==null||n==null)return!1;var r=A.findPath(null,t),o=A.findPath(null,n);return P.equals(r,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function tN(e,t,n,r){if(Kd.set(e,t),Wl.set(e,n),ce.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(u,s){return tN(u,s,e,r)}),E.isVoid(r,e)){var i=He(Z.texts(e),1),a=He(i[0],1)[0];Kd.set(a,0),Wl.set(a,e)}}}function iee(e){var t=e.selector,n=t===void 0?"":t,r=e.config,o=r===void 0?{}:r,i=e.content,a=e.html,u=e.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 S=D[D.length-1];sl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of S)h.apply(C)})}),w.redos.pop(),w.undos.push(S)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var S=D[D.length-1];sl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=S.map(Xi.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(S),w.undos.pop()}},h.apply=w=>{var{operations:D,history:S}=h,{undos:C}=S,O=C[C.length-1],F=O&&O[O.length-1],L=((V,G)=>!(!G||V.type!=="set_selection"||G.type!=="set_selection"))(w,F),H=sl.isSaving(h),M=sl.isMerging(h);if(H==null&&(H=((V,G)=>V.type!=="set_selection"||V.properties!=null&&V.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((V,G)=>V.type==="set_selection"||!(!G||V.type!=="insert_text"||G.type!=="insert_text"||V.offset!==G.offset+G.text.length||!P.equals(V.path,G.path))||!(!G||V.type!=="remove_text"||G.type!=="remove_text"||V.offset+V.text.length!==G.offset||!P.equals(V.path,G.path)))(w,F)||L)),O&&M)L&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(V=>V.type!=="set_selection")(w)&&(S.redos=[])}b(w)},h})(function(y){var h=y,b=h.insertText,w=h.insertNode,D=h.insertFragment,S=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<Z.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)<Z.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 L=document.createElement("div");L.innerHTML=C;var H=Array.from(L.childNodes).reduce(function(M,K){var V=K.nodeType,G=K.nodeName;return K?V===go.TEXT_NODE?M+(K.textContent||""):V===go.ELEMENT_NODE?M9.has(G.toLowerCase())?M:M+(K.textContent||""):M:M},"");F<H.length||S(C,O)}}else S(C,O)},h}(function(y){var h=y;return h.on=function(b,w){var D=Yh(h);if(D.on(b,w),b==="destroyed"&&V9(h,w),b!=="destroyed"){var S=function(){return D.off(b,w)};D.on("destroyed",S),V9(h,S)}},h.once=function(b,w){Yh(h).once(b,w)},h.off=function(b,w){Yh(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var S=Yh(h);S.emit.apply(S,SE([b],He(w))),b==="destroyed"&&(TQ(h).forEach(function(C){return S.off("destroyed",C)}),_Q(h))},h}(function(y){var h=y;return h.select=function(b){I.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&I.deselect(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||I.move(y,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=ob.get(h);b!=null&&(h.focus(),I.select(h,b))},h.getSelectionPosition=function(){return A8(h)},h.getNodePosition=function(b){return O8(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=He(R.edges(b),2),D=w[0],S=w[1],C=He(E.edges(h,[]),2),O=C[0],F=C[1];return!(!ke.equals(D,O)||!ke.equals(S,F))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);I.select(h,{anchor:b,focus:w})},h}(function(y){var h=y,b=h.onChange,w=h.insertText,D=h.apply,S=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,F,L,H,M,K,V,G,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var ne=br(E.levels(h,{at:C.path})),se=ne.next();!se.done;se=ne.next()){var ue=He(se.value,2),ae=ue[0],B=ue[1],x=A.findKey(h,ae);q.push([B,x])}}catch(Ne){O={error:Ne}}finally{try{se&&!se.done&&(F=ne.return)&&F.call(ne)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var j=br(E.levels(h,{at:P.parent(C.path)})),$=j.next();!$.done;$=j.next()){var Y=He($.value,2);ae=Y[0],B=Y[1],x=A.findKey(h,ae),q.push([B,x])}}catch(Ne){L={error:Ne}}finally{try{$&&!$.done&&(H=j.return)&&H.call(j)}finally{if(L)throw L.error}}break;case"move_node":try{for(var U=br(E.levels(h,{at:P.common(P.parent(C.path),P.parent(C.newPath))})),ie=U.next();!ie.done;ie=U.next()){var ge=He(ie.value,2);ae=ge[0],B=ge[1],x=A.findKey(h,ae),q.push([B,x])}}catch(Ne){M={error:Ne}}finally{try{ie&&!ie.done&&(K=U.return)&&K.call(U)}finally{if(M)throw M.error}}}D(C);try{for(var ve=br(q),De=ve.next();!De.done;De=ve.next()){var W=He(De.value,2);B=W[0],x=W[1],ae=He(E.node(h,B),1)[0],q0.set(ae,x)}}catch(Ne){V={error:Ne}}finally{try{De&&!De.done&&(G=ve.return)&&G.call(ve)}finally{if(V)throw V.error}}},h.deleteBackward=function(C){if(C!=="line")return S(C);if(y.selection&&R.isCollapsed(y.selection)){var O=E.above(y,{match:function(M){return E.isBlock(y,M)},at:y.selection});if(O){var F=He(O,2)[1],L=E.range(y,F,y.selection.anchor),H=function(M,K){var V=E.range(M,R.end(K)),G=Array.from(E.positions(M,{at:K})),q=0,ne=G.length,se=Math.floor(ne/2);if(F9(M,E.range(M,G[q]),V))return E.range(M,G[q],V);if(G.length<2)return E.range(M,G[G.length-1],V);for(;se!==G.length&&se!==q;)F9(M,E.range(M,G[se]),V)?ne=se:q=se,se=Math.floor((q+ne)/2);return E.range(M,G[ne],V)}(h,L);R.isCollapsed(H)||I.delete(y,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&ob.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 $I(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Z.string(O)}).join(`
- `)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(y,C)},h.getElemsByType=function(C,O){var F,L;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=br(M),V=K.next();!V.done;V=K.next()){var G=He(V.value,1)[0];if(ce.isElement(G)&&(O?G.type.indexOf(C)>=0:G.type===C)){var q=HI(A.findKey(h,G).id);H.push(yr(yr({},G),{id:q}))}}}catch(ne){F={error:ne}}finally{try{V&&!V.done&&(L=K.return)&&L.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(ce.isElement(F)&&F.type==="paragraph"){var L=F.children,H=L===void 0?[]:L;if(H.length>1)return!1;var M=H[0];if(M==null||oe.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){I.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&I.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 L=Array.from(F.childNodes);if(L=L.filter(function(V){var G=V.nodeType,q=V.nodeName;return G===go.TEXT_NODE||G===go.ELEMENT_NODE&&!M9.has(q.toLowerCase())}),L.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;L.forEach(function(V){var G=V.nodeType,q=V.nodeName,ne=V.textContent,se=ne===void 0?"":ne;if(G!==go.TEXT_NODE)if(q!=="BR"){var ue=V,ae=!1;if(UI.includes(q.toLowerCase()))ae=!0;else for(var B in sv)if(ue.matches(B)){ae=!0;break}if(ae){var x=C8(k(ue),h);return Array.isArray(x)?(x.forEach(function($){return z9(h,$)}),K++):(z9(h,x),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var j=window.getComputedStyle(ue).display;A.isSelectedEmptyParagraph(h)||j.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ue.innerHTML,!0)}else h.insertText(`
- `);else{if(!se||!se.trim())return;h.insertNode({text:se})}}),K&&M&&A.isEmptyPath(h,M)&&I.removeNodes(h,{at:M}),F.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),F=h.isFocused(),L=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=N9(h,C);if(I.insertFragment(h,H),F||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(L))}catch{h.select(E.start(h,[]))}},h}(function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in Yd)b.push(w);return b},h.getConfig=function(){var b=a9.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=yQ($W());return h.id="wangEditor-"+AZ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Bu.set(h,!0),b){var w=E.end(h,[]);I.select(h,w)}else{var D=ob.get(h);D?I.select(h,D):I.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Bu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),I.deselect(h),Bu.set(h,!1)},h.updateView=function(){A.getTextarea(h).changeViewState();var b=A.getToolbar(h);b&&b.changeToolbarState();var w=A.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=A.getTextarea(h);b.destroy(),AE.delete(h),OE.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),Y1.delete(h),p8.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),rv.delete(h),BE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(h.getConfig().scroll){var w=k("#"+b);if(w.length!==0){var D=w[0];if(!A.hasDOMNode(h,D))return;var S=A.getTextarea(h),C=S.$textAreaContainer,O=S.$scroll,F=w.offset().top,L=C.offset().top;O[0].scrollBy({top:F-L,behavior:"smooth"})}}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=kE.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 S=D.css("z-index");D.attr("data-z-index",S.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 qI(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=TP(xI),b={},w=y.MENU_CONF,D=w===void 0?{}:w;return R5(h,function(S,C){b[C]=yr(yr({},S),D[C]||{})}),delete y.MENU_CONF,yr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(S,C){window.alert(C+`:
- `+S)}},y)}(o);a9.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=N9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),A.normalizeContent(l),n){var p=new YQ(n);AE.set(l,p),OE.set(p,l),p.changeViewState(),Br(function(){var y=p.$scroll;y!=null&&y.height()<300});var v=void 0;Object.keys(d).length>0&&(v=new oee,BE.set(v,l),rv.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return tN(y,h,l,l)});var m=c.onCreated,g=c.onDestroyed;return m&&l.on("created",function(){return m(l)}),g&&l.on("destroyed",function(){return g(l)}),Br(function(){return l.emit("created")}),l}var aee=W1("splice"),uee=X.TypeError,see=Math.max,lee=Math.min;Dt({target:"Array",proto:!0,forced:!aee},{splice:function(e,t){var n,r,o,i,a,u,s=Pa(this),l=ps(s),c=$l(e,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=lee(see(Hp(t),0),l-c)),l+n-r>9007199254740991)throw uee("Maximum allowed length exceeded");for(o=ZP(s,r),i=0;i<r;i++)(a=c+i)in s&&Vd(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 cee=function(){function e(t,n){var r=this;this.$toolbar=k('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=FP(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=k(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Br(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=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=TP(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,m){f.splice(s.index+m,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,m){if(v==="|"){if(m===0||m+1===p||n==="|")return;var g=ZI();return r.append(g),void(n=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(n=v);t.registerGroup(v),n="group"})},e.prototype.registerGroup=function(t){var n=this,r=this.$toolbar,o=function(l){return new tO(l)}(t),i=t.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)},e.prototype.registerSingleItem=function(t,n){var r=this.getEditorInstance(),o=n instanceof tO,i=this.menus,a=i[t];if(a==null){var u=Yd[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}var s=eN(t,a,o);this.toolbarItems.push(s),h8.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=p8.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),fee=uc.EXISTS,dee=eo.f,nN=Function.prototype,pee=pe(nN.toString),rN=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,hee=pe(rN.exec);function oN(e){var t=e.server,n=t===void 0?"":t,r=e.fieldName,o=r===void 0?"":r,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,v=p===void 0?{}:p,m=e.withCredentials,g=m!==void 0&&m,y=e.timeout,h=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=e.onSuccess,S=D===void 0?function(K,V){}:D,C=e.onError,O=C===void 0?function(K,V,G){}:C,F=e.onProgress,L=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;d&&(H=function(K,V){var G=He(K.split("#"),2),q=G[0],ne=G[1],se=[];R5(V,function(ae,B){se.push(B+"="+ae)});var ue=se.join("&");return q=q.indexOf("?")>0?q+"&"+ue:q+"?"+ue,ne?q+"#"+ne:q}(H,c));var M=new Kf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use($Y,{endpoint:H,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return M.on("upload-success",function(K,V){var G=V.body,q=G===void 0?{}:G;try{S(K,q)}catch{}M.removeFile(K.id)}),M.on("progress",function(K){K<1||L(K)}),M.on("upload-error",function(K,V,G){try{O(K,V,G)}catch{}M.removeFile(K.id)}),M.on("restriction-failed",function(K,V){try{O(K,V)}catch{}M.removeFile(K.id)}),M}function ia(e){return ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ia(e)}function gee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},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){gee(e,o,n[o])})}return e}function si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function li(e,t,n){return t&&rO(e.prototype,t),n&&rO(e,n),e}function Qu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jd(e,t){if(t&&(ia(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qu(e)}function Gl(e){return Gl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gl(e)}function VE(e,t){return VE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},VE(e,t)}function X1(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&VE(e,t)}rn&&!fee&&dee(nN,"name",{configurable:!0,get:function(){try{return hee(rN,pee(this))[1]}catch{return""}}});var vee={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Zo=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.init(t,n)}return li(e,[{key:"init",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||vee,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(r).concat(this.prefix," ").concat(t[0])),this.logger[n](t))}},{key:"create",value:function(t){return new e(this.logger,Ut({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),Sa=function(){function e(){si(this,e),this.observers={}}return li(e,[{key:"on",value:function(t,n){var r=this;return t.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(t,n){this.observers[t]&&(n?this.observers[t]=this.observers[t].filter(function(r){return r!==n}):delete this.observers[t])}},{key:"emit",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(r))})}}}]),e}();function nf(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function oO(e){return e==null?"":""+e}function mee(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function _8(e,t,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function iO(e,t,n){var r=_8(e,t,Object);r.obj[r.k]=n}function cv(e,t){var n=_8(e,t),r=n.obj,o=n.k;if(r)return r[o]}function aO(e,t,n){var r=cv(e,n);return r!==void 0?r:cv(t,n)}function iN(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):iN(e[r],t[r],n):e[r]=t[r]);return e}function Ps(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var yee={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function bee(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return yee[t]}):e}var J1=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function aN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o||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?aN(s,l,n):void 0}o=o[r[i]]}return o}}var wee=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return si(this,t),r=Jd(this,Gl(t).call(this)),J1&&Sa.call(Qu(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 X1(t,Sa),li(t,[{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=cv(this.data,s);return l||!u||typeof o!="string"?l:aN(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),iO(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=cv(this.data,s)||{};i?iN(l,o,a):l=Ut({},l,o),iO(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"?Ut({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(),uN={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(a){i.processors[a]&&(t=i.processors[a].process(t,n,r,o))}),t}},uO={},sO=function(e){function t(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return si(this,t),r=Jd(this,Gl(t).call(this)),J1&&Sa.call(Qu(r)),mee(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,Qu(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Zo.create("translator"),r}return X1(t,Sa),li(t,[{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(ia(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,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=r.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(n,r),m=v&&v.res,g=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,S=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(D&&m&&S&&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(g,m,Ut({},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:g;for(var L in m)if(Object.prototype.hasOwnProperty.call(m,L)){var H="".concat(F).concat(a).concat(L);O[L]=this.translate(H,Ut({},r,{joinArrays:!1,ns:l})),O[L]===H&&(O[L]=m[L])}m=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(m=m.join(w))&&(m=this.extendTranslation(m,n,r,o));else{var M=!1,K=!1,V=r.count!==void 0&&typeof r.count!="string",G=t.hasDefaultValue(r),q=V?this.pluralResolver.getSuffix(f,r.count):"",ne=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(m)&&G&&(M=!0,m=ne),this.isValidLookup(m)||(K=!0,m=s);var se=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ue=se&&K?void 0:m,ae=G&&ne!==m&&this.options.updateMissing;if(K||M||ae){if(this.logger.log(ae?"updateKey":"missingKey",f,c,s,ae?ne:m),a){var B=this.resolve(s,Ut({},r,{keySeparator:!1}));B&&B.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 x=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(var $=0;$<j.length;$++)x.push(j[$]);else this.options.saveMissingTo==="all"?x=this.languageUtils.toResolveHierarchy(r.lng||this.language):x.push(r.lng||this.language);var Y=function(U,ie,ge){i.options.missingKeyHandler?i.options.missingKeyHandler(U,c,ie,ae?ge:ue,ae,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(U,c,ie,ae?ge:ue,ae,r),i.emit("missingKey",U,c,ie,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&V?x.forEach(function(U){i.pluralResolver.getSuffixes(U).forEach(function(ie){Y([U],s+ie,r["defaultValue".concat(ie)]||ne)})}):Y(x,s,ne))}m=this.extendTranslation(m,n,r,v,o),K&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{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(Ut({},o,{interpolation:Ut({},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=Ut({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var m=arguments.length,g=new Array(m),y=0;y<m;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(r[0])),null):u.translate.apply(u,g.concat([r]))},o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return n!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(n=uN.handle(v,n,r,this.options&&this.options.postProcessPassResolved?Ut({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),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",m=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(y){s.isValidLookup(r)||(u=y,!uO["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(uO["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=d,S=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(S,d,h,y,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&m&&S.push(D+b),m&&S.push(D+="".concat(s.options.contextSeparator).concat(l.context)),v&&S.push(D+=b));w=S.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}}]),t}();function Ab(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Eee=function(){function e(t){si(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zo.create("languageUtils")}return li(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var n=t.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var n=t.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=t.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]=Ab(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]=Ab(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Ab(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){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(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var n,r=this;return t?(t.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&t.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(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];var r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}},{key:"toResolveHierarchy",value:function(t,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],t),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 t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),e}(),Dee=[{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}],Cee={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function See(){var e={};return Dee.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:Cee[t.fc]}})}),e}var xee=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};si(this,e),this.languageUtils=t,this.options=n,this.logger=Zo.create("pluralResolver"),this.rules=See()}return li(e,[{key:"addRule",value:function(t,n){this.rules[t]=n}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var n=this.getRule(t);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,n){return this.getSuffixes(t).map(function(r){return n+r})}},{key:"getSuffixes",value:function(t){var n=this,r=this.getRule(t);return r?r.numbers.map(function(o){return n.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,n){var r=this,o=this.getRule(t);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(t)),""}}]),e}(),Aee=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};si(this,e),this.logger=Zo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return li(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var n=t.interpolation;this.escape=n.escape!==void 0?n.escape:bee,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Ps(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ps(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?Ps(n.nestingPrefix):n.nestingPrefixEscaped||Ps("$t("),this.nestingSuffix=n.nestingSuffix?Ps(n.nestingSuffix):n.nestingSuffixEscaped||Ps(")"),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 t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"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(t,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(m){return m.replace(/\$/g,"$$$$")}var f=function(m){if(m.indexOf(s.formatSeparator)<0){var g=aO(n,l,m);return s.alwaysFormat?s.format(g,void 0,r,Ut({},o,n,{interpolationkey:m})):g}var y=m.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(aO(n,l,h),b,r,Ut({},o,n,{interpolationkey:h}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(m){return c(m)}},{regex:this.regexp,safeValue:function(m){return s.escapeValue?c(s.escape(m)):c(m)}}];return v.forEach(function(m){for(u=0;i=m.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(t,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=oO(a));var y=m.safeValue(a);if(t=t.replace(i[0],y),p?(m.regex.lastIndex+=y.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Ut({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var m=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(m[1]);d=m[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=Ut({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(v).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(t);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(d){return d.trim()});r[1]=f.shift(),l=f,c=!0}if((o=n(s.call(this,r[1].trim(),u),u))&&r[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=oO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,Ut({},a,{interpolationkey:r[1].trim()}))},o.trim())),t=t.replace(r[0],o),this.regexp.lastIndex=0}return t}}]),e}(),Oee=function(e){function t(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return si(this,t),i=Jd(this,Gl(t).call(this)),J1&&Sa.call(Qu(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Zo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return X1(t,Sa),li(t,[{key:"queueLoad",value:function(n,r,o,i){var a=this,u=[],s=[],l=[],c=[];return n.forEach(function(f){var d=!0;r.forEach(function(p){var v="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(p)<0&&c.push(p)))}),d||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(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,d,p){var v=_8(c,f,Object),m=v.obj,g=v.k;m[g]=m[g]||[],m[g].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,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,Ut({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),t}();function Bee(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(ia(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),ia(e[2])==="object"||ia(e[3])==="object"){var n=e[3]||e[2];Object.keys(n).forEach(function(r){t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function lO(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Jh(){}var kee=function(e){function t(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(si(this,t),n=Jd(this,Gl(t).call(this)),J1&&Sa.call(Qu(n)),n.options=lO(r),n.services={},n.logger=Zo,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Jd(n,Qu(n));setTimeout(function(){n.init(r,o)},0)}return n}return X1(t,Sa),li(t,[{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(p){return p?typeof p=="function"?new p:p: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=Ut({},Bee(),this.options,lO(r)),this.format=this.options.interpolation.format,o||(o=Jh),!this.options.isClone){this.modules.logger?Zo.init(i(this.modules.logger),this.options):Zo.init(null,this.options);var a=new Eee(this.options);this.store=new wee(this.options.resources,this.options);var u=this.services;u.logger=Zo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new xee(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Aee(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Oee(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),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 sO(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];n.emit.apply(n,[p].concat(m))}),this.modules.external.forEach(function(p){p.init&&p.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(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(p){n[p]=function(){var v;return(v=n.store)[p].apply(v,arguments),n}});var f=nf(),d=function(){var p=function(v,m){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(m),o(v,m)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jh,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=nf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Jh),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"&&uN.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=nf();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(ia(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=Ut({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",m=o?"".concat(o).concat(v).concat(s):s;return i.t(m,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 d=r.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,n)||!this.services.backendConnector.backend||!(!s(i,n)||a&&!s(u,n))}},{key:"loadNamespaces",value:function(n,r){var o=this,i=nf();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=nf();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 t(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]:Jh,i=Ut({},this.options,r,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=Ut({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new sO(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}}}]),t}(),fv=new kee;function Gn(e,t){fv.addResourceBundle(e,"translation",t,!0,!0)}fv.init({lng:"zh-CN",resources:{}});var Q=fv.t.bind(fv);Gn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Gn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Fee=E5?{}.toString:function(){return"[object "+F1(this)+"]"};E5||Wu(Object.prototype,"toString",Fee,{unsafe:!0});var cO=Array.isArray||function(e){return Du(e)=="Array"},sN=function(){},Tee=[],lN=jp("Reflect","construct"),j8=/^\s*(?:class|function)\b/,_ee=nt(j8.exec),jee=!j8.exec(sN),rf=function(e){if(!en(e))return!1;try{return lN(sN,Tee,e),!0}catch{return!1}},Pee=!lN||sn(function(){var e;return rf(rf.call)||!rf(Object)||!rf(function(){e=!0})||e})?function(e){if(!en(e))return!1;switch(F1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jee||!!_ee(j8,v5(e))}:rf,Iee=Pn("species"),fO=Ee.Array,Nee=function(e,t){return new(function(n){var r;return cO(n)&&(r=n.constructor,(Pee(r)&&(r===fO||cO(r.prototype))||vo(r)&&(r=r[Iee])===null)&&(r=void 0)),r===void 0?fO:r}(e))(t===0?0:t)},dO=nt([].push),Oi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=d5(s),m=Aj(v),g=Lj(l,c),y=k1(m),h=0,b=f||Nee,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:dO(w,d)}else switch(e){case 4:return!1;case 7:dO(w,d)}return i?-1:r||o?o:w}},Ree={forEach:Oi(0),map:Oi(1),filter:Oi(2),some:Oi(3),every:Oi(4),find:Oi(5),findIndex:Oi(6),filterReject:Oi(7)}.forEach,Lee=function(e,t){var n=[][e];return!!n&&sn(function(){n.call(null,t||function(){throw 1},1)})}("forEach"),Ob=Lee?[].forEach:function(e){return Ree(this,e,arguments.length>1?arguments[1]:void 0)},cN=function(e){if(e&&e.forEach!==Ob)try{Mn(e,"forEach",Ob)}catch{e.forEach=Ob}};for(var Bb in Fg)Fg[Bb]&&cN(Ee[Bb]&&Ee[Bb].prototype);cN($j),Gn("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"}}),Gn("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 Mee={type:"paragraph",renderElem:function(e,t,n){return be("p",null,t)}},dv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z1(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bi,K0,Zh=function(e){return e&&e.Math==Math&&e},xe=Zh(typeof globalThis=="object"&&globalThis)||Zh(typeof window=="object"&&window)||Zh(typeof self=="object"&&self)||Zh(typeof dv=="object"&&dv)||function(){return this}()||Function("return this")(),Ct=function(e){try{return!!e()}catch{return!0}},Zr=!Ct(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),of=Function.prototype.call,It=of.bind?of.bind(of):function(){return of.apply(of,arguments)},pO={}.propertyIsEnumerable,hO=Object.getOwnPropertyDescriptor,zee=hO&&!pO.call({1:2},1)?function(e){var t=hO(this,e);return!!t&&t.enumerable}:pO,fN={f:zee},P8=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dN=Function.prototype,WE=dN.bind,GE=dN.call,$ee=WE&&WE.bind(GE),me=WE?function(e){return e&&$ee(GE,e)}:function(e){return e&&function(){return GE.apply(e,arguments)}},Hee=me({}.toString),Uee=me("".slice),aa=function(e){return Uee(Hee(e),8,-1)},kb=xe.Object,Vee=me("".split),Q1=Ct(function(){return!kb("z").propertyIsEnumerable(0)})?function(e){return aa(e)=="String"?Vee(e,""):kb(e)}:kb,Wee=xe.TypeError,kr=function(e){if(e==null)throw Wee("Can't call method on "+e);return e},dc=function(e){return Q1(kr(e))},xn=function(e){return typeof e=="function"},Hr=function(e){return typeof e=="object"?e!==null:xn(e)},Gee=function(e){return xn(e)?e:void 0},Wp=function(e,t){return arguments.length<2?Gee(xe[e]):xe[e]&&xe[e][t]},pN=me({}.isPrototypeOf),Fb=Wp("navigator","userAgent")||"",gO=xe.process,vO=xe.Deno,mO=gO&&gO.versions||vO&&vO.version,yO=mO&&mO.v8;yO&&(K0=(Bi=yO.split("."))[0]>0&&Bi[0]<4?1:+(Bi[0]+Bi[1])),!K0&&Fb&&(!(Bi=Fb.match(/Edge\/(\d+)/))||Bi[1]>=74)&&(Bi=Fb.match(/Chrome\/(\d+)/))&&(K0=+Bi[1]);var qE=K0,KE=!!Object.getOwnPropertySymbols&&!Ct(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qE&&qE<41}),I8=KE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qee=xe.Object,Tb=I8?function(e){return typeof e=="symbol"}:function(e){var t=Wp("Symbol");return xn(t)&&pN(t.prototype,qee(e))},Kee=xe.String,hN=function(e){try{return Kee(e)}catch{return"Object"}},Yee=xe.TypeError,gN=function(e){if(xn(e))return e;throw Yee(hN(e)+" is not a function")},em=function(e,t){var n=e[t];return n==null?void 0:gN(n)},Xee=xe.TypeError,Jee=Object.defineProperty,N8=function(e,t){try{Jee(xe,e,{value:t,configurable:!0,writable:!0})}catch{xe[e]=t}return t},ua=xe["__core-js_shared__"]||N8("__core-js_shared__",{}),R8=Z1(function(e){(e.exports=function(t,n){return ua[t]||(ua[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Zee=xe.Object,Gp=function(e){return Zee(kr(e))},Qee=me({}.hasOwnProperty),Er=Object.hasOwn||function(e,t){return Qee(Gp(e),t)},ete=0,tte=Math.random(),nte=me(1 .toString),vN=function(e){return"Symbol("+(e===void 0?"":e)+")_"+nte(++ete+tte,36)},af=R8("wks"),Fu=xe.Symbol,bO=Fu&&Fu.for,rte=I8?Fu:Fu&&Fu.withoutSetter||vN,lr=function(e){if(!Er(af,e)||!KE&&typeof af[e]!="string"){var t="Symbol."+e;KE&&Er(Fu,e)?af[e]=Fu[e]:af[e]=I8&&bO?bO(t):rte(t)}return af[e]},ote=xe.TypeError,ite=lr("toPrimitive"),L8=function(e){var t=function(n,r){if(!Hr(n)||Tb(n))return n;var o,i=em(n,ite);if(i){if(o=It(i,n,r),!Hr(o)||Tb(o))return o;throw ote("Can't convert object to primitive value")}return function(a,u){var s,l;if(xn(s=a.toString)&&!Hr(l=It(s,a))||xn(s=a.valueOf)&&!Hr(l=It(s,a))||u!=="string")return l;throw Xee("Can't convert object to primitive value")}(n,r)}(e,"string");return Tb(t)?t:t+""},YE=xe.document,ate=Hr(YE)&&Hr(YE.createElement),M8=function(e){return ate?YE.createElement(e):{}},mN=!Zr&&!Ct(function(){return Object.defineProperty(M8("div"),"a",{get:function(){return 7}}).a!=7}),wO=Object.getOwnPropertyDescriptor,z8={f:Zr?wO:function(e,t){if(e=dc(e),t=L8(t),mN)try{return wO(e,t)}catch{}if(Er(e,t))return P8(!It(fN.f,e,t),e[t])}},ute=xe.String,ste=xe.TypeError,nr=function(e){if(Hr(e))return e;throw ste(ute(e)+" is not an object")},lte=xe.TypeError,EO=Object.defineProperty,pc={f:Zr?EO:function(e,t,n){if(nr(e),t=L8(t),nr(n),mN)try{return EO(e,t,n)}catch{}if("get"in n||"set"in n)throw lte("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ql=Zr?function(e,t,n){return pc.f(e,t,P8(1,n))}:function(e,t,n){return e[t]=n,e},cte=me(Function.toString);xn(ua.inspectSource)||(ua.inspectSource=function(e){return cte(e)});var pv,pd,hv,$8=ua.inspectSource,DO=xe.WeakMap,fte=xn(DO)&&/native code/.test($8(DO)),CO=R8("keys"),yN=function(e){return CO[e]||(CO[e]=vN(e))},H8={},XE=xe.TypeError,dte=xe.WeakMap;if(fte||ua.state){var Xa=ua.state||(ua.state=new dte),pte=me(Xa.get),SO=me(Xa.has),hte=me(Xa.set);pv=function(e,t){if(SO(Xa,e))throw new XE("Object already initialized");return t.facade=e,hte(Xa,e,t),t},pd=function(e){return pte(Xa,e)||{}},hv=function(e){return SO(Xa,e)}}else{var Is=yN("state");H8[Is]=!0,pv=function(e,t){if(Er(e,Is))throw new XE("Object already initialized");return t.facade=e,ql(e,Is,t),t},pd=function(e){return Er(e,Is)?e[Is]:{}},hv=function(e){return Er(e,Is)}}var JE={set:pv,get:pd,has:hv,enforce:function(e){return hv(e)?pd(e):pv(e,{})},getterFor:function(e){return function(t){var n;if(!Hr(t)||(n=pd(t)).type!==e)throw XE("Incompatible receiver, "+e+" required");return n}}},bN=Function.prototype,gte=Zr&&Object.getOwnPropertyDescriptor,_b=Er(bN,"name"),tm={EXISTS:_b,PROPER:_b&&(function(){}).name==="something",CONFIGURABLE:_b&&(!Zr||Zr&>e(bN,"name").configurable)},Zd=Z1(function(e){var t=tm.CONFIGURABLE,n=JE.get,r=JE.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;xn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Er(u,"name")||t&&u.name!==p)&&ql(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==xe?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ql(i,a,u)):f?i[a]=u:N8(a,u)})(Function.prototype,"toString",function(){return xn(this)&&n(this).source||$8(this)})}),vte=Math.ceil,mte=Math.floor,hc=function(e){var t=+e;return t!=t||t===0?0:(t>0?mte:vte)(t)},yte=Math.max,bte=Math.min,Qd=function(e,t){var n=hc(e);return n<0?yte(n+t,0):bte(n,t)},wte=Math.min,qp=function(e){return e>0?wte(hc(e),9007199254740991):0},nm=function(e){return qp(e.length)},xO=function(e){return function(t,n,r){var o,i=dc(t),a=nm(i),u=Qd(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},wN={includes:xO(!0),indexOf:xO(!1)},Ete=wN.indexOf,AO=me([].push),EN=function(e,t){var n,r=dc(e),o=0,i=[];for(n in r)!Er(H8,n)&&Er(r,n)&&AO(i,n);for(;t.length>o;)Er(r,n=t[o++])&&(~Ete(i,n)||AO(i,n));return i},gv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Dte=gv.concat("length","prototype"),Cte={f:Object.getOwnPropertyNames||function(e){return EN(e,Dte)}},DN={f:Object.getOwnPropertySymbols},Ste=me([].concat),xte=Wp("Reflect","ownKeys")||function(e){var t=Cte.f(nr(e)),n=DN.f;return n?Ste(t,n(e)):t},Ate=function(e,t){for(var n=xte(t),r=pc.f,o=z8.f,i=0;i<n.length;i++){var a=n[i];Er(e,a)||r(e,a,o(t,a))}},Ote=/#|\.prototype\./,Kp=function(e,t){var n=kte[Bte(e)];return n==Tte||n!=Fte&&(xn(t)?Ct(t):!!t)},Bte=Kp.normalize=function(e){return String(e).replace(Ote,".").toLowerCase()},kte=Kp.data={},Fte=Kp.NATIVE="N",Tte=Kp.POLYFILL="P",_te=Kp,jte=z8.f,Zt=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?xe:l?xe[u]||N8(u,{}):(xe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=jte(n,r))&&a.value:n[r],!_te(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ate(i,o)}(e.sham||o&&o.sham)&&ql(i,"sham",!0),Zd(n,r,i,e)}},OO=me(me.bind),vv=Array.isArray||function(e){return aa(e)=="Array"},CN={};CN[lr("toStringTag")]="z";var U8=String(CN)==="[object z]",Pte=lr("toStringTag"),Ite=xe.Object,Nte=aa(function(){return arguments}())=="Arguments",V8=U8?aa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=Ite(e),Pte))=="string"?n:Nte?aa(t):(r=aa(t))=="Object"&&xn(t.callee)?"Arguments":r},SN=function(){},Rte=[],xN=Wp("Reflect","construct"),W8=/^\s*(?:class|function)\b/,Lte=me(W8.exec),Mte=!W8.exec(SN),uf=function(e){if(!xn(e))return!1;try{return xN(SN,Rte,e),!0}catch{return!1}},G8=!xN||Ct(function(){var e;return uf(uf.call)||!uf(Object)||!uf(function(){e=!0})||e})?function(e){if(!xn(e))return!1;switch(V8(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mte||!!Lte(W8,$8(e))}:uf,zte=lr("species"),BO=xe.Array,$te=function(e,t){return new(function(n){var r;return vv(n)&&(r=n.constructor,(G8(r)&&(r===BO||vv(r.prototype))||Hr(r)&&(r=r[zte])===null)&&(r=void 0)),r===void 0?BO:r}(e))(t===0?0:t)},kO=me([].push),ki=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Gp(s),m=Q1(v),g=function(D,S){return gN(D),S===void 0?D:OO?OO(D,S):function(){return D.apply(S,arguments)}}(l,c),y=nm(m),h=0,b=f||$te,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:kO(w,d)}else switch(e){case 4:return!1;case 7:kO(w,d)}return i?-1:r||o?o:w}},rm={forEach:ki(0),map:ki(1),filter:ki(2),some:ki(3),every:ki(4),find:ki(5),findIndex:ki(6),filterReject:ki(7)},Hte=lr("species"),q8=function(e){return qE>=51||!Ct(function(){var t=[];return(t.constructor={})[Hte]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Ute=rm.filter;Zt({target:"Array",proto:!0,forced:!q8("filter")},{filter:function(e){return Ute(this,e,arguments.length>1?arguments[1]:void 0)}});var Vte=U8?{}.toString:function(){return"[object "+V8(this)+"]"};U8||Zd(Object.prototype,"toString",Vte,{unsafe:!0});var Qh,Wte=xe.String,Et=function(e){if(V8(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Wte(e)},AN=function(){var e=nr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},K8=xe.RegExp,ZE=Ct(function(){var e=K8("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Gte=ZE||Ct(function(){return!K8("a","y").sticky}),ON={BROKEN_CARET:ZE||Ct(function(){var e=K8("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Gte,UNSUPPORTED_Y:ZE},bl=Object.keys||function(e){return EN(e,gv)},qte=Zr?Object.defineProperties:function(e,t){nr(e);for(var n,r=dc(t),o=bl(t),i=o.length,a=0;i>a;)pc.f(e,n=o[a++],r[n]);return e},Kte=Wp("document","documentElement"),BN=yN("IE_PROTO"),jb=function(){},kN=function(e){return"<script>"+e+"<\/script>"},FO=function(e){e.write(kN("")),e.close();var t=e.parentWindow.Object;return e=null,t},Y0=function(){try{Qh=new ActiveXObject("htmlfile")}catch{}var e,t;Y0=typeof document<"u"?document.domain&&Qh?FO(Qh):((t=M8("iframe")).style.display="none",Kte.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(kN("document.F=Object")),e.close(),e.F):FO(Qh);for(var n=gv.length;n--;)delete Y0.prototype[gv[n]];return Y0()};H8[BN]=!0;var TO,Pb,FN=Object.create||function(e,t){var n;return e!==null?(jb.prototype=nr(e),n=new jb,jb.prototype=null,n[BN]=e):n=Y0(),t===void 0?n:qte(n,t)},Yte=xe.RegExp,Xte=Ct(function(){var e=Yte(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Jte=xe.RegExp,Zte=Ct(function(){var e=Jte("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Qte=JE.get,ene=R8("native-string-replace",String.prototype.replace),mv=RegExp.prototype.exec,QE=mv,tne=me("".charAt),nne=me("".indexOf),rne=me("".replace),Ib=me("".slice),Nb=(Pb=/b*/g,It(mv,TO=/a/,"a"),It(mv,Pb,"a"),TO.lastIndex!==0||Pb.lastIndex!==0),_O=ON.BROKEN_CARET,Rb=/()??/.exec("")[1]!==void 0;(Nb||Rb||_O||Xte||Zte)&&(QE=function(e){var t,n,r,o,i,a,u,s=this,l=Qte(s),c=Et(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=It(QE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=_O&&s.sticky,v=It(AN,s),m=s.source,g=0,y=c;if(p&&(v=rne(v,"y",""),nne(v,"g")===-1&&(v+="g"),y=Ib(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tne(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),Rb&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Nb&&(r=s.lastIndex),o=It(mv,p?n:s,y),p?o?(o.input=Ib(o.input,g),o[0]=Ib(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Nb&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Rb&&o&&o.length>1&&It(ene,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=FN(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ep=QE;Zt({target:"RegExp",proto:!0,forced:/./.exec!==ep},{exec:ep});var Y8=Function.prototype,jO=Y8.apply,one=Y8.bind,PO=Y8.call,TN=typeof Reflect=="object"&&Reflect.apply||(one?PO.bind(jO):function(){return PO.apply(jO,arguments)}),ine=lr("species"),Lb=RegExp.prototype,X8=function(e,t,n,r){var o=lr(e),i=!Ct(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Ct(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[ine]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=me(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=me(l),m=c.exec;return m===ep||m===Lb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Zd(String.prototype,e,s[0]),Zd(Lb,o,s[1])}r&&ql(Lb[o],"sham",!0)},ane=me("".charAt),IO=me("".charCodeAt),une=me("".slice),sne=function(e){return function(t,n){var r,o,i=Et(kr(t)),a=hc(n),u=i.length;return a<0||a>=u?"":(r=IO(i,a))<55296||r>56319||a+1===u||(o=IO(i,a+1))<56320||o>57343?ane(i,a):une(i,a,a+2)}},lne=sne(),J8=function(e,t,n){return t+(n?lne(e,t).length:1)},cne=Math.floor,Mb=me("".charAt),fne=me("".replace),zb=me("".slice),dne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,pne=/\$([$&'`]|\d{1,2})/g,hne=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=pne;return o!==void 0&&(o=Gp(o),s=dne),fne(i,s,function(l,c){var f;switch(Mb(c,0)){case"$":return"$";case"&":return e;case"`":return zb(t,0,n);case"'":return zb(t,a);case"<":f=o[zb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=cne(d/10);return p===0?l:p<=u?r[p-1]===void 0?Mb(c,1):r[p-1]+Mb(c,1):l}f=r[d-1]}return f===void 0?"":f})},gne=xe.TypeError,tp=function(e,t){var n=e.exec;if(xn(n)){var r=It(n,e,t);return r!==null&&nr(r),r}if(aa(e)==="RegExp")return It(ep,e,t);throw gne("RegExp#exec called on incompatible receiver")},e6=lr("replace"),vne=Math.max,mne=Math.min,yne=me([].concat),$b=me([].push),NO=me("".indexOf),RO=me("".slice),bne="a".replace(/./,"$0")==="$0",LO=!!/./[e6]&&/./[e6]("a","$0")==="";X8("replace",function(e,t,n){var r=LO?"$":"$0";return[function(o,i){var a=kr(this),u=o==null?void 0:em(o,e6);return u?It(u,o,a,i):It(t,Et(a),o,i)},function(o,i){var a=nr(this),u=Et(o);if(typeof i=="string"&&NO(i,r)===-1&&NO(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=xn(i);l||(i=Et(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=tp(a,u);if(p===null||($b(d,p),!c))break;Et(p[0])===""&&(a.lastIndex=J8(u,qp(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Et((p=d[y])[0]),b=vne(mne(hc(p.index),u.length),0),w=[],D=1;D<p.length;D++)$b(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=yne([h],w,b,u);S!==void 0&&$b(C,S);var O=Et(TN(i,void 0,C))}else O=hne(h,u,b,w,S,i);b>=g&&(m+=RO(u,g,b)+O,g=b+h.length)}return m+RO(u,g)}]},!!Ct(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!bne||LO);var t6=lr("unscopables"),n6=Array.prototype;n6[t6]==null&&pc.f(n6,t6,{configurable:!0,value:FN(null)});var _N=function(e){n6[t6][e]=!0},wne=rm.find,MO=!0;"find"in[]&&Array(1).find(function(){MO=!1}),Zt({target:"Array",proto:!0,forced:MO},{find:function(e){return wne(this,e,arguments.length>1?arguments[1]:void 0)}}),_N("find");var Ene=lr("match"),jN=function(e){var t;return Hr(e)&&((t=e[Ene])!==void 0?!!t:aa(e)=="RegExp")},Dne=xe.TypeError,Cne=lr("species"),PN=function(e,t,n){var r=L8(t);r in e?pc.f(e,r,P8(0,n)):e[r]=n},Sne=xe.Array,xne=Math.max,zO=function(e,t,n){for(var r=nm(e),o=Qd(t,r),i=Qd(n===void 0?r:n,r),a=Sne(xne(i-o,0)),u=0;o<i;o++,u++)PN(a,u,e[o]);return a.length=u,a},Ns=ON.UNSUPPORTED_Y,Ane=Math.min,IN=[].push,One=me(/./.exec),Rs=me(IN),sf=me("".slice);X8("split",function(e,t,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=Et(kr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!jN(o))return It(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=It(ep,v,a))&&!((l=v.lastIndex)>p&&(Rs(f,sf(a,p,s.index)),s.length>1&&s.index<a.length&&TN(IN,f,zO(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&One(v,"")||Rs(f,""):Rs(f,sf(a,p)),f.length>u?zO(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:It(t,this,o,i)}:t,[function(o,i){var a=kr(this),u=o==null?void 0:em(o,e);return u?It(u,o,a,i):It(r,Et(a),o,i)},function(o,i){var a=nr(this),u=Et(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=function(w,D){var S,C=nr(w).constructor;return C===void 0||(S=nr(C)[Cne])==null?D:function(O){if(G8(O))return O;throw Dne(hN(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ns?"g":"y"),d=new l(Ns?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return tp(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Ns?0:m;var y,h=tp(d,Ns?sf(u,m):u);if(h===null||(y=Ane(qp(d.lastIndex+(Ns?m:0)),u.length))===v)m=J8(u,m,c);else{if(Rs(g,sf(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Rs(g,h[b]),g.length===p)return g;m=v=y}}return Rs(g,sf(u,v)),g}]},!!Ct(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ns);var r6=`
- \v\f\r \u2028\u2029\uFEFF`,$O=me("".replace),yv="["+r6+"]",Bne=RegExp("^"+yv+yv+"*"),kne=RegExp(yv+yv+"*$"),Hb=function(e){return function(t){var n=Et(kr(t));return 1&e&&(n=$O(n,Bne,"")),2&e&&(n=$O(n,kne,"")),n}},Fne={start:Hb(1),end:Hb(2),trim:Hb(3)},Tne=tm.PROPER,_ne=Fne.trim;function Z8(e){return k("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function gc(e){return e.length===0?"":e[0].outerHTML}function vc(e){return e.length?e[0].tagName.toLowerCase():""}function Yr(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}Zt({target:"String",proto:!0,forced:Ct(function(){return!!r6.trim()||"
".trim()!=="
"||Tne&&r6.trim.name!=="trim"})},{trim:function(){return _ne(this)}}),Zt({global:!0},{globalThis:xe}),Ug&&(k.fn.css=Ug),Ar&&(k.fn.append=Ar),BA&&(k.fn.prepend=BA),Fl&&(k.fn.addClass=Fl),Tl&&(k.fn.removeClass=Tl),_l&&(k.fn.hasClass=_l),Oo&&(k.fn.on=Oo),SA&&(k.fn.off=SA),Da&&(k.fn.focus=Da),xr&&(k.fn.attr=xr),Mg&&(k.fn.removeAttr=Mg),Pl&&(k.fn.hide=Pl),Hg&&(k.fn.show=Hg),Gg&&(k.fn.parents=Gg),jl&&(k.fn.dataset=jl),Ao&&(k.fn.val=Ao),Wg&&(k.fn.text=Wg),Ea&&(k.fn.html=Ea),Rl&&(k.fn.children=Rl),Ll&&(k.fn.remove=Ll),Nl&&(k.fn.find=Nl),zg&&(k.fn.width=zg),$g&&(k.fn.height=$g),AA&&(k.fn.filter=AA),Ml&&(k.fn.empty=Ml);var jne={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},o6=function(e,t){return o6=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])},o6(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o6(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var xa=function(){return xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xa.apply(this,arguments)};function Na(e,t,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(e,[])).next())})}function Ra(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},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=t.call(e,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 NN(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ye(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function HO(e){var t=Ye(E.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var n=t[0];if(!ce.isElement(n)||n.type==="paragraph"||Z.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!oe.isText(o[0])&&(I.setNodes(e,{type:"paragraph"}),!0)}var Pne={renderElems:[Mee],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[jne],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(o){HO(r)||t(o)},r.deleteForward=function(o){HO(r)||n(o)},r}},Ine=/"/g,Nne=me("".replace),Zf=function(e,t,n,r){var o=Et(kr(e)),i="<"+t;return n!==""&&(i+=" "+n+'="'+Nne(Et(r),Ine,""")+'"'),i+">"+o+"</"+t+">"},Qf=function(e){return Ct(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function Ub(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Ja(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Zt({target:"String",proto:!0,forced:Qf("bold")},{bold:function(){return Zf(this,"b","","")}}),Zt({target:"String",proto:!0,forced:Qf("italics")},{italics:function(){return Zf(this,"i","","")}}),Zt({target:"String",proto:!0,forced:Qf("sub")},{sub:function(){return Zf(this,"sub","","")}}),Zt({target:"String",proto:!0,forced:Qf("sup")},{sup:function(){return Zf(this,"sup","","")}});var UO={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},Vb=M8("span").classList,VO=Vb&&Vb.constructor&&Vb.constructor.prototype,Rne=VO===Object.prototype?void 0:VO,RN=function(e,t){var n=[][e];return!!n&&Ct(function(){n.call(null,t||function(){throw 1},1)})},Lne=rm.forEach,Wb=RN("forEach")?[].forEach:function(e){return Lne(this,e,arguments.length>1?arguments[1]:void 0)},LN=function(e){if(e&&e.forEach!==Wb)try{ql(e,"forEach",Wb)}catch{e.forEach=Wb}};for(var Gb in UO)UO[Gb]&&LN(xe[Gb]&&xe[Gb].prototype);function MN(e,t){return e.selection==null||!!Ye(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]}function Mne(e,t){Object.keys(t).forEach(function(n){n!=="text"&&E.removeMark(e,n)})}LN(Rne),Zt({target:"Object",stat:!0,forced:Ct(function(){bl(1)})},{keys:function(e){return bl(Gp(e))}});var hs=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r?r[n]:!!Ye(E.nodes(t,{match:function(o){return o[n]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return MN(t,this.mark)},e.prototype.exec=function(t,n){var r=this.mark,o=this.marksNeedToRemove;n?t.removeMark(r):(t.addMark(r,!0),o&&o.forEach(function(i){return t.removeMark(i)}))},e}(),zne='<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>',$ne='<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>',Hne='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Une='<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>',Vne='<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>',zN='<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>',$N='<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>',Wne='<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>',Gne='<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>',qne='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Kne='<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>',Yne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Xne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Jne='<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>',Zne='<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>',Qne='<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>',ere='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',tre='<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>',nre='<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>',rre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="bold",n.title=Q("textStyle.bold"),n.iconSvg=zne,n.hotkey="mod+b",n}return bt(t,e),t}(hs),ore=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="code",n.title=Q("textStyle.code"),n.iconSvg=Vne,n.hotkey="mod+e",n}return bt(t,e),t}(hs),ire=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="italic",n.title=Q("textStyle.italic"),n.iconSvg=Hne,n.hotkey="mod+i",n}return bt(t,e),t}(hs),are=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="through",n.title=Q("textStyle.through"),n.iconSvg=Une,n.hotkey="mod+shift+x",n}return bt(t,e),t}(hs),ure=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="underline",n.title=Q("textStyle.underline"),n.iconSvg=$ne,n.hotkey="mod+u",n}return bt(t,e),t}(hs),sre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=Q("textStyle.sub"),n.iconSvg=nre,n.hotkey="",n}return bt(t,e),t}(hs),lre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=Q("textStyle.sup"),n.iconSvg=tre,n.hotkey="",n}return bt(t,e),t}(hs),cre=function(){function e(){this.title=Q("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return MN(t)},e.prototype.exec=function(t,n){var r,o,i=E.nodes(t,{match:function(s){return oe.isText(s)},universal:!0});try{for(var a=NN(i),u=a.next();!u.done;u=a.next())Mne(t,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}}},e}(),fre={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=be("strong",null,c)),a&&(c=be("code",null,c)),o&&(c=be("em",null,c)),i&&(c=be("u",null,c)),u&&(c=be("s",null,c)),s&&(c=be("sub",null,c)),l&&(c=be("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new rre}},{key:"underline",factory:function(){return new ure}},{key:"italic",factory:function(){return new ire}},{key:"through",factory:function(){return new are}},{key:"code",factory:function(){return new ore}},{key:"sub",factory:function(){return new sre}},{key:"sup",factory:function(){return new lre}},{key:"clearStyle",factory:function(){return new cre}}],styleToHtml:function(e,t){if(!oe.isText(e))return t;if(Z8(t))return Ub(e,t);var n=k(t);if(vc(n)==="br")return Ub(e,"<br>");var r=n.html();return r=Ub(e,r),n.html(r),gc(n)},parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t;return Ja(r,"b,strong")&&(o.bold=!0),Ja(r,"i,em")&&(o.italic=!0),Ja(r,"u")&&(o.underline=!0),Ja(r,"s,strike")&&(o.through=!0),Ja(r,"sub")&&(o.sub=!0),Ja(r,"sup")&&(o.sup=!0),Ja(r,"code")&&(o.code=!0),o}};function Yp(e){return function(t,n,r){return be("h"+e,null,n)}}var dre={type:"header1",renderElem:Yp(1)},pre={type:"header2",renderElem:Yp(2)},hre={type:"header3",renderElem:Yp(3)},gre={type:"header4",renderElem:Yp(4)},vre={type:"header5",renderElem:Yp(5)},mre=tm.PROPER,i6=RegExp.prototype,HN=i6.toString,yre=me(AN),bre=Ct(function(){return HN.call({source:"a",flags:"b"})!="/a/b"}),wre=mre&&HN.name!="toString";(bre||wre)&&Zd(RegExp.prototype,"toString",function(){var e=nr(this),t=Et(e.source),n=e.flags;return"/"+t+"/"+Et(n===void 0&&pN(i6,e)&&!("flags"in i6)?yre(e):n)},{unsafe:!0});var qb,Ere=xe.TypeError,UN=function(e){if(jN(e))throw Ere("The method doesn't accept regular expressions");return e},Dre=lr("match"),VN=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[Dre]=!1,"/./"[e](t)}catch{}}return!1},Cre=z8.f,WO=me("".startsWith),Sre=me("".slice),xre=Math.min,GO=VN("startsWith");function WN(e){var t=Ye(E.nodes(e,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=t[0];if(n==null)return"paragraph";var r=Ye(n,1)[0];return A.getNodeType(r)}function GN(e){return e.selection==null||!Ye(E.nodes(e,{match:function(t){var n=A.getNodeType(t);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function qN(e,t){t&&I.setNodes(e,{type:t})}Zt({target:"String",proto:!0,forced:!(!GO&&(qb=Cre(String.prototype,"startsWith"),qb&&!qb.writable)||GO)},{startsWith:function(e){var t=Et(kr(this));UN(e);var n=qp(xre(arguments.length>1?arguments[1]:void 0,t.length)),r=Et(e);return WO?WO(t,r,n):Sre(t,n,n+r.length)===r}});var Are=function(){function e(){this.title=Q("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){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:Q("header.text")}],r=this.getValue(t).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return WN(t)},e.prototype.isDisabled=function(t){return GN(t)},e.prototype.exec=function(t,n){qN(t,n.toString())},e}(),Xp=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return WN(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return GN(t)},e.prototype.exec=function(t,n){var r=this.type;qN(t,n===r?"paragraph":r)},e}(),Ore=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return bt(t,e),t}(Xp),Bre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return bt(t,e),t}(Xp),kre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return bt(t,e),t}(Xp),Fre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return bt(t,e),t}(Xp),Tre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return bt(t,e),t}(Xp),_re={key:"headerSelect",factory:function(){return new Are}},jre={key:"header1",factory:function(){return new Ore}},Pre={key:"header2",factory:function(){return new Bre}},Ire={key:"header3",factory:function(){return new kre}},Nre={key:"header4",factory:function(){return new Fre}},Rre={key:"header5",factory:function(){return new Tre}};function lf(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function cf(e){return function(t,n,r){var o=k(t);return(n=n.filter(function(i){return!!oe.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var Lre={renderElems:[dre,pre,hre,gre,vre],elemsToHtml:[{type:"header1",elemToHtml:lf(1)},{type:"header2",elemToHtml:lf(2)},{type:"header3",elemToHtml:lf(3)},{type:"header4",elemToHtml:lf(4)},{type:"header5",elemToHtml:lf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:cf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:cf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:cf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:cf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:cf(5)}],menus:[_re,jre,Pre,Ire,Nre,Rre],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=Ye(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(e,r[1])?I.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Ls=Object.assign,qO=Object.defineProperty,Mre=me([].concat),KO=!Ls||Ct(function(){if(Zr&&Ls({b:1},Ls(qO({},"a",{enumerable:!0,get:function(){qO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),Ls({},e)[n]!=7||bl(Ls({},t)).join("")!=r})?function(e,t){for(var n=Gp(e),r=arguments.length,o=1,i=DN.f,a=fN.f;r>o;)for(var u,s=Q1(arguments[o++]),l=i?Mre(bl(s),i(s)):bl(s),c=l.length,f=0;c>f;)u=l[f++],Zr&&!It(a,s,u)||(n[u]=s[u]);return n}:Ls;function es(e,t){e.data==null&&(e.data={});var n=e.data;n.style==null&&(n.style={}),Object.assign(n.style,t)}Zt({target:"Object",stat:!0,forced:Object.assign!==KO},{assign:KO});var zre={selector:"font",preParseHtml:function(e){var t=k(e);if(vc(t)!=="font")return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},KN=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Ye(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var n=this.mark;if(this.$content==null){var r=k('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=k(c).attr("data-value");f==="0"?E.removeMark(t,n):E.addMark(t,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=k('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=k('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=Q("color.default")),n==="bgColor"&&(u=Q("color.clear"));var s=k(`
- <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]},e}(),$re=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("color.color"),n.iconSvg=Wne,n.mark="color",n}return bt(t,e),t}(KN),Hre=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("color.bgColor"),n.iconSvg=Gne,n.mark="bgColor",n}return bt(t,e),t}(KN),YO=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Ure={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&es(i,{color:r}),o&&es(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((Z8(t)||vc(n=k(t))!=="span")&&(n=k("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),gc(n)):t},preParseHtml:[zre],parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t,i=Yr(r,"color");i&&(o.color=i);var a=Yr(r,"background-color");return a||(a=Yr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new $re},config:{colors:YO}},{key:"bgColor",factory:function(){return new Hre},config:{colors:YO}}]},Vre=/^(?:\w+:)?\/\/(\S+)$/,Wre=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Gre=/^[^\s\.]+\.\S{2,}$/,qre=wN.includes;function om(e){return e===void 0&&(e="r"),e+"-"+vP()}function Q8(e){return e.replace(/</g,"<").replace(/>/g,">")}function YN(e,t,n,r){return Na(this,void 0,void 0,function(){var o,i;return Ra(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function XN(e,t,n){return Na(this,void 0,void 0,function(){var r;return Ra(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function eD(e){return e.selection==null||!!A.getSelectedElems(e).some(function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0})}function Kb(e,t){return{type:"link",url:Q8(e),children:t?[{text:t}]:[]}}function JN(e,t,n){return Na(this,void 0,void 0,function(){var r,o,i;return Ra(this,function(a){switch(a.label){case 0:return n?(t||(t=n),e.restoreSelection(),eD(e)?[2]:[4,YN("insertLink",e,t,n)]):[2];case 1:return a.sent()?[4,XN("insertLink",e,n)]:[2];case 2:return r=a.sent(),(o=e.selection)==null||(R.isCollapsed(o)?(e.insertText(" "),i=Kb(r,t),I.insertNodes(e,i),e.insertFragment([{text:" "}])):E.string(e,o)!==t?(e.deleteFragment(),i=Kb(r,t),I.insertNodes(e,i)):(i=Kb(r),I.wrapNodes(e,i,{split:!0}),I.collapse(e,{edge:"end"}))),[2]}})})}Zt({target:"Array",proto:!0},{includes:function(e){return qre(this,e,arguments.length>1?arguments[1]:void 0)}}),_N("includes");var Kre={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return be("a",{href:o,target:i===void 0?"_blank":i},t)}},Yre={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function Yb(){return om("w-e-insert-link")}var Xre=function(){function e(){this.title=Q("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=Yb(),this.urlInputId=Yb(),this.buttonId=Yb()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return eD(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=t.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Ye(tr(Q("link.text"),o),2),s=u[0],l=k(u[1]),c=Ye(tr(Q("link.url"),i),2),f=c[0],d=k(c[1]),p=Ye(fc(a,Q("common.ok")),1)[0];if(this.$content==null){var v=k("<div></div>");v.on("click","#"+a,function(y){y.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();JN(t,h,b),t.hidePanelOrModal()}),this.$content=v}var m=this.$content;if(m.empty(),m.append(s),m.append(f),m.append(p),n==null||R.isCollapsed(n))l.val("");else{var g=E.string(t,n);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),m[0]},e}();function XO(){return om("w-e-update-link")}var Jre=function(){function e(){this.title=Q("link.edit"),this.iconSvg=zN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=XO(),this.buttonId=XO()}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return A.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var n=this.urlInputId,r=this.buttonId,o=Ye(tr(Q("link.url"),n),2),i=o[0],a=k(o[1]),u=Ye(fc(r,Q("common.ok")),1)[0];if(this.$content==null){var s=k("<div></div>");s.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var d=A.getSelectedNodeByType(t,"link"),p=d?Z.string(d):"",v=s.find("#"+n).val();(function(m,g,y){Na(this,void 0,void 0,function(){var h,b;return Ra(this,function(w){switch(w.label){case 0:return y?[4,YN("editLink",m,g,y)]:[2];case 1:return w.sent()?[4,XN("editLink",m,y)]:[2];case 2:return h=w.sent(),b={url:Q8(h)},I.setNodes(m,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(t,p,v),t.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(t);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e}(),Zre=function(){function e(){this.title=Q("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||I.unwrapNodes(t,{match:function(r){return A.checkNodeType(r,"link")}})},e}(),Qre=function(){function e(){this.title=Q("link.view"),this.iconSvg=$N,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var n=A.getSelectedNodeByType(t,"link");return n??null},e.prototype.getValue=function(t){var n=this.getSelectedLinkElem(t);return n&&n.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},e}(),JO={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},eoe={renderElems:[Kre],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Yre],menus:[{key:"insertLink",factory:function(){return new Xre},config:JO},{key:"editLink",factory:function(){return new Jre},config:JO},{key:"unLink",factory:function(){return new Zre}},{key:"viewLink",factory:function(){return new Qre}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(Vre);if(!c)return!1;var f=c[1];return!(!f||!Wre.test(f)&&!Gre.test(f))}(a)){if(!eD(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);JN(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Ye(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Z.string(u)===""?I.removeNodes(o,{at:s}):r([u,s])},o}},toe=me(1 .valueOf),noe=xe.RangeError,roe=xe.RangeError,ZN=xe.String,QN=Math.floor,a6=me(function(e){var t=Et(kr(this)),n="",r=hc(e);if(r<0||r==1/0)throw noe("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}),ZO=me("".slice),ff=me(1 .toFixed),cl=function(e,t,n){return t===0?n:t%2==1?cl(e,t-1,n*e):cl(e*e,t/2,n)},Ms=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=QN(o/1e7)},Xb=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=QN(r/t),r=r%t*1e7},QO=function(e){for(var t=6,n="";--t>=0;)if(n!==""||t===0||e[t]!==0){var r=ZN(e[t]);n=n===""?r:n+a6("0",7-r.length)+r}return n};function eB(e,t){return"w-e-image-container-"+A.findKey(e,t).id}Zt({target:"Number",proto:!0,forced:Ct(function(){return ff(8e-5,3)!=="0.000"||ff(.9,0)!=="1"||ff(1.255,2)!=="1.25"||ff(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Ct(function(){ff({})})},{toFixed:function(e){var t,n,r,o,i=toe(this),a=hc(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw roe("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return ZN(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*cl(2,69,1))-69)<0?i*cl(2,-t,1):i/cl(2,t,1),n*=4503599627370496,(t=52-t)>0){for(Ms(u,0,n),r=a;r>=7;)Ms(u,1e7,0),r-=7;for(Ms(u,cl(10,r,1),0),r=t-1;r>=23;)Xb(u,1<<23),r-=23;Xb(u,1<<r),Ms(u,1,1),Xb(u,2),l=QO(u)}else Ms(u,0,n),Ms(u,1<<-t,0),l=QO(u)+a6("0",a);return a>0?s+((o=l.length)<=a?"0."+a6("0",a-o)+l:ZO(l,0,o-a)+"."+ZO(l,o-a)):s+l}});var ooe={type:"image",renderElem:function(e,t,n){var r=e,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,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,m=A.isNodeSelected(n,e),g={};d&&(g.width="100%"),v&&(g.height="100%");var y=be("img",{style:g,src:o,alt:a,"data-href":s}),h=n.isDisabled();return m&&!h?function(b,w,D,S){var C=k("body"),O=eB(b,w),F=S.width,L=S.height,H=0,M=0,K=0,V=!1,G=null;function q(ae){G=function(){var j=k("#"+O);if(j.length===0)throw new Error("Cannot find image container elem");return j}(),H=ae;var B=G.find("img");if(B.length===0)throw new Error("Cannot find image elem");M=B.width(),K=B.height(),C.on("mousemove",ne),C.on("mouseup",se);var x=A.getHoverbar(b);x&&x.hideAndClean()}var ne=Ku(function(ae){ae.preventDefault();var B=ae.clientX,x=M+(V?H-B:B-H),j=K*(x/M);G!=null&&(x<=15||j<=15||(G.css("width",x+"px"),G.css("height",j+"px")))},100);function se(ae){if(C.off("mousemove",ne),G!=null){var B=G.width().toFixed(2),x=G.height().toFixed(2),j={style:xa(xa({},w.style),{width:B+"px",height:x+"px"})};I.setNodes(b,j,{at:A.findPath(b,w)}),C.off("mouseup",se)}}var ue={};return F&&(ue.width=F),L&&(ue.height=L),be("div",{id:O,style:ue,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ae){var B=k(ae.target);B.hasClass("w-e-image-dragger")&&(ae.preventDefault(),(B.hasClass("left-top")||B.hasClass("left-bottom"))&&(V=!0),q(ae.clientX))}}},D,be("div",{className:"w-e-image-dragger left-top"}),be("div",{className:"w-e-image-dragger right-top"}),be("div",{className:"w-e-image-dragger left-bottom"}),be("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:v}):function(b,w,D,S){var C=S.width,O=S.height,F={};return C&&(F.width=C),O&&(F.height=O),be("div",{id:eB(b,w),style:F,className:"w-e-image-container"},D)}(n,e,y,{width:d,height:v})}},ioe={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Yr(r,"width"),height:Yr(r,"height")},children:[{text:""}]}}};function eR(e,t,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Na(this,void 0,void 0,function(){var i,a;return Ra(this,function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function tR(e,t,n){return Na(this,void 0,void 0,function(){var r;return Ra(this,function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Tu(e,t,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Na(this,void 0,void 0,function(){var o,i,a;return Ra(this,function(u){switch(u.label){case 0:return[4,eR("insertImage",e,t,n,r)];case 1:return u.sent()?[4,tR("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:Q8(o),href:r,alt:n,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),A.getSelectedNodeByType(e,"image")&&e.move(1),im(e)||(I.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function im(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!Ye(E.nodes(e,{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(e,n)},universal:!0}),1)[0]}function e0(){return om("w-e-insert-image")}var aoe=function(){function e(){this.title=Q("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=e0(),this.altInputId=e0(),this.hrefInputId=e0(),this.buttonId=e0()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return im(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Ye(tr(Q("image.src"),o),2),l=s[0],c=k(s[1]),f=Ye(tr(Q("image.desc"),i),2),d=f[0],p=k(f[1]),v=Ye(tr(Q("image.link"),a),2),m=v[0],g=k(v[1]),y=Ye(fc(u,Q("common.ok")),1)[0];if(this.$content==null){var h=k("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),S=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(t,D,S,C),t.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(m),b.append(y),c.val(""),p.val(""),g.val(""),setTimeout(function(){c.focus()}),b[0]},e.prototype.insertImage=function(t,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(t.restoreSelection(),this.isDisabled(t)||Tu(t,n,r,o))},e}(),uoe=function(){function e(){this.title=Q("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||I.removeNodes(t,{match:function(r){return A.checkNodeType(r,"image")}})},e}();function t0(){return om("w-e-edit-image")}var soe=function(){function e(){this.title=Q("image.edit"),this.iconSvg=zN,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=t0(),this.altInputId=t0(),this.hrefInputId=t0(),this.buttonId=t0()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Ye(tr(Q("image.src"),o),2),c=l[0],f=k(l[1]),d=Ye(tr(Q("image.desc"),i),2),p=d[0],v=k(d[1]),m=Ye(tr(Q("image.link"),a),2),g=m[0],y=k(m[1]),h=Ye(fc(u,Q("common.ok")),1)[0];if(this.$content==null){var b=k("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),V=b.find("#"+a).val();n.updateImage(t,M,K,V),t.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var D=s,S=D.src,C=D.alt,O=C===void 0?"":C,F=D.href,L=F===void 0?"":F;return f.val(S),v.val(O),y.val(L),setTimeout(function(){f.focus()}),w[0]},e.prototype.updateImage=function(t,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(t.restoreSelection(),this.isDisabled(t)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Na(this,void 0,void 0,function(){var f,d,p,v,m,g;return Ra(this,function(y){switch(y.label){case 0:return[4,eR("editImage",a,u,s,l)];case 1:return y.sent()?[4,tR("editImage",a,u)]:[2];case 2:return f=y.sent(),(d=A.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:xa(xa({},p===void 0?{}:p),c)},I.setNodes(a,v,{match:function(h){return A.checkNodeType(h,"image")}}),m=A.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(m)),[2]}})})}(t,n,r,o,i))},e}(),loe=function(){function e(){this.title=Q("image.viewLink"),this.iconSvg=$N,this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"image");return n&&n.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},e}(),tD=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return A.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.getSelectedNode(t);if(r!=null){var o=A.getHoverbar(t);o&&o.hideAndClean();var i=r.style,a={style:xa(xa({},i===void 0?{}:i),{width:this.value,height:""})};I.setNodes(t,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},e}(),coe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return bt(t,e),t}(tD),foe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return bt(t,e),t}(tD),doe=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return bt(t,e),t}(tD),tB={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},poe={renderElems:[ooe],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,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,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[ioe],menus:[{key:"insertImage",factory:function(){return new aoe},config:tB},{key:"deleteImage",factory:function(){return new uoe}},{key:"editImage",factory:function(){return new soe},config:tB},{key:"viewImageLink",factory:function(){return new loe}},{key:"imageWidth30",factory:function(){return new coe}},{key:"imageWidth50",factory:function(){return new foe}},{key:"imageWidth100",factory:function(){return new doe}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(o){return o.type==="image"||t(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},hoe={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=be("div",{style:{margin:"5px 0"}},be("span",{contentEditable:!1,style:{marginRight:"0.5em"}},be("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,e),u={checked:i.target.checked};I.setNodes(n,u,{at:a})}}})),be("span",null,t));return o}},goe=function(){function e(){this.title=Q("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},e.prototype.exec=function(t,n){var r=this.isActive(t);I.setNodes(t,{type:r?"paragraph":"todo"})},e}(),voe={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(i){return!!oe.isText(i)||!!n.isInline(i)})).length===0&&(t=[{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:t}}},moe={renderElems:[hoe],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=k(e).find("li"),n=k('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[voe],menus:[{key:"todo",factory:function(){return new goe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(r){var o=e.selection;if(o&&R.isCollapsed(o)){var i=A.getSelectedNodeByType(e,"todo");if(i&&Z.string(i).length===0)return void I.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(r)},n}},yoe={type:"blockquote",renderElem:function(e,t,n){return be("blockquote",null,t)}},boe={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return!!oe.isText(o)||!!n.isInline(o)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},woe=function(){function e(){this.title=Q("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!A.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Ye(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=this.isActive(t)?"paragraph":"blockquote";I.setNodes(t,{type:r},{mode:"highest"})}},e}(),Eoe={key:"blockquote",factory:function(){return new woe}},Doe=me([].slice),Coe=q8("slice"),Soe=lr("species"),Jb=xe.Array,xoe=Math.max;Zt({target:"Array",proto:!0,forced:!Coe},{slice:function(e,t){var n,r,o,i=dc(this),a=nm(i),u=Qd(e,a),s=Qd(t===void 0?a:t,a);if(vv(i)&&(n=i.constructor,(G8(n)&&(n===Jb||vv(n.prototype))||Hr(n)&&(n=n[Soe])===null)&&(n=void 0),n===Jb||n===void 0))return Doe(i,u,s);for(r=new(n===void 0?Jb:n)(xoe(s-u,0)),o=0;u<s;u++,o++)u in i&&PN(r,o,i[u]);return r.length=o,r}});var Aoe={renderElems:[yoe],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[boe],menus:[Eoe],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(o==null)return t();var i=Ye(E.nodes(e,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=A.findPath(e,a),s=E.end(e,u);if(ke.equals(s,o.focus)){var l=Z.string(a);if(l&&l.slice(-1)===`
- `)return e.deleteBackward("character"),void I.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
- `)},r}},Ooe=function(){function e(){this.title=Q("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,n){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Ye(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var n=k('<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=k(a).text();t.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=k("<li>"+i+"</li>");r.append(a)}),r[0]},e}(),Boe={menus:[{key:"emotion",factory:function(){return new Ooe},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},koe={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Foe={selector:"font",preParseHtml:function(e){var t=k(e);if(vc(t)!=="font")return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",koe[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},Toe=me("".indexOf);Zt({target:"String",proto:!0,forced:!VN("includes")},{includes:function(e){return!!~Toe(Et(kr(this)),Et(UN(e)),arguments.length>1?arguments[1]:void 0)}});var Fi,X0,n0=function(e){return e&&e.Math==Math&&e},Fe=n0(typeof globalThis=="object"&&globalThis)||n0(typeof window=="object"&&window)||n0(typeof self=="object"&&self)||n0(typeof dv=="object"&&dv)||function(){return this}()||Function("return this")(),nD=Function.prototype,nB=nD.apply,_oe=nD.bind,rB=nD.call,nR=typeof Reflect=="object"&&Reflect.apply||(_oe?rB.bind(nB):function(){return rB.apply(nB,arguments)}),rR=Function.prototype,u6=rR.bind,s6=rR.call,joe=u6&&u6.bind(s6),Ft=u6?function(e){return e&&joe(s6,e)}:function(e){return e&&function(){return s6.apply(e,arguments)}},An=function(e){return typeof e=="function"},ar=function(e){try{return!!e()}catch{return!0}},Vn=!ar(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),df=Function.prototype.call,Do=df.bind?df.bind(df):function(){return df.apply(df,arguments)},oB={}.propertyIsEnumerable,iB=Object.getOwnPropertyDescriptor,Poe=iB&&!oB.call({1:2},1)?function(e){var t=iB(this,e);return!!t&&t.enumerable}:oB,rD={f:Poe},ts=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ioe=Ft({}.toString),Noe=Ft("".slice),_u=function(e){return Noe(Ioe(e),8,-1)},Zb=Fe.Object,Roe=Ft("".split),oR=ar(function(){return!Zb("z").propertyIsEnumerable(0)})?function(e){return _u(e)=="String"?Roe(e,""):Zb(e)}:Zb,Loe=Fe.TypeError,oD=function(e){if(e==null)throw Loe("Can't call method on "+e);return e},Po=function(e){return oR(oD(e))},Ur=function(e){return typeof e=="object"?e!==null:An(e)},vr={},aB=function(e){return An(e)?e:void 0},Jp=function(e,t){return arguments.length<2?aB(vr[e])||aB(Fe[e]):vr[e]&&vr[e][t]||Fe[e]&&Fe[e][t]},iR=Ft({}.isPrototypeOf),Qb=Jp("navigator","userAgent")||"",uB=Fe.process,sB=Fe.Deno,lB=uB&&uB.versions||sB&&sB.version,cB=lB&&lB.v8;cB&&(X0=(Fi=cB.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!X0&&Qb&&(!(Fi=Qb.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=Qb.match(/Chrome\/(\d+)/))&&(X0=+Fi[1]);var bv=X0,co=!!Object.getOwnPropertySymbols&&!ar(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bv&&bv<41}),iD=co&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Moe=Fe.Object,wl=iD?function(e){return typeof e=="symbol"}:function(e){var t=Jp("Symbol");return An(t)&&iR(t.prototype,Moe(e))},zoe=Fe.String,$oe=Fe.TypeError,aR=function(e){if(An(e))return e;throw $oe(function(t){try{return zoe(t)}catch{return"Object"}}(e)+" is not a function")},Hoe=Fe.TypeError,Uoe=Object.defineProperty,sa=Fe["__core-js_shared__"]||function(e,t){try{Uoe(Fe,e,{value:t,configurable:!0,writable:!0})}catch{Fe[e]=t}return t}("__core-js_shared__",{}),gs=Z1(function(e){(e.exports=function(t,n){return sa[t]||(sa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Voe=Fe.Object,Zp=function(e){return Voe(oD(e))},Woe=Ft({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return Woe(Zp(e),t)},Goe=0,qoe=Math.random(),Koe=Ft(1 .toString),wv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Koe(++Goe+qoe,36)},pf=gs("wks"),ju=Fe.Symbol,fB=ju&&ju.for,Yoe=iD?ju:ju&&ju.withoutSetter||wv,cr=function(e){if(!Ke(pf,e)||!co&&typeof pf[e]!="string"){var t="Symbol."+e;co&&Ke(ju,e)?pf[e]=ju[e]:pf[e]=iD&&fB?fB(t):Yoe(t)}return pf[e]},Xoe=Fe.TypeError,Joe=cr("toPrimitive"),mc=function(e){var t=function(n,r){if(!Ur(n)||wl(n))return n;var o,i,a=(o=n[Joe])==null?void 0:aR(o);if(a){if(i=Do(a,n,r),!Ur(i)||wl(i))return i;throw Xoe("Can't convert object to primitive value")}return function(u,s){var l,c;if(An(l=u.toString)&&!Ur(c=Do(l,u))||An(l=u.valueOf)&&!Ur(c=Do(l,u))||s!=="string")return c;throw Hoe("Can't convert object to primitive value")}(n,r)}(e,"string");return wl(t)?t:t+""},l6=Fe.document,Zoe=Ur(l6)&&Ur(l6.createElement),uR=function(e){return Zoe?l6.createElement(e):{}},sR=!Vn&&!ar(function(){return Object.defineProperty(uR("div"),"a",{get:function(){return 7}}).a!=7}),dB=Object.getOwnPropertyDescriptor,aD={f:Vn?dB:function(e,t){if(e=Po(e),t=mc(t),sR)try{return dB(e,t)}catch{}if(Ke(e,t))return ts(!Do(rD.f,e,t),e[t])}},Qoe=/#|\.prototype\./,Qp=function(e,t){var n=tie[eie(e)];return n==rie||n!=nie&&(An(t)?ar(t):!!t)},eie=Qp.normalize=function(e){return String(e).replace(Qoe,".").toLowerCase()},tie=Qp.data={},nie=Qp.NATIVE="N",rie=Qp.POLYFILL="P",oie=Qp,pB=Ft(Ft.bind),lR=function(e,t){return aR(e),t===void 0?e:pB?pB(e,t):function(){return e.apply(t,arguments)}},iie=Fe.String,aie=Fe.TypeError,ns=function(e){if(Ur(e))return e;throw aie(iie(e)+" is not an object")},uie=Fe.TypeError,hB=Object.defineProperty,vs={f:Vn?hB:function(e,t,n){if(ns(e),t=mc(t),ns(n),sR)try{return hB(e,t,n)}catch{}if("get"in n||"set"in n)throw uie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},po=Vn?function(e,t,n){return vs.f(e,t,ts(1,n))}:function(e,t,n){return e[t]=n,e},sie=aD.f,lie=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return nR(e,this,arguments)};return t.prototype=e.prototype,t},Ui=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?Fe:d?Fe[c]:(Fe[c]||{}).prototype,m=f?vr:vr[c]||po(vr,c,{})[c],g=m.prototype;for(o in t)n=!oie(f?o:c+(d?".":"#")+o,e.forced)&&v&&Ke(v,o),a=m[o],n&&(u=e.noTargetGet?(l=sie(v,o))&&l.value:v[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?lR(i,Fe):e.wrap&&n?lie(i):p&&An(i)?Ft(i):i,(e.sham||i&&i.sham||a&&a.sham)&&po(s,"sham",!0),po(m,o,s),p&&(Ke(vr,r=c+"Prototype")||po(vr,r,{}),po(vr[r],o,i),e.real&&g&&!g[o]&&po(g,o,i)))},Ev=Array.isArray||function(e){return _u(e)=="Array"},cie=Math.ceil,fie=Math.floor,uD=function(e){var t=+e;return t!=t||t===0?0:(t>0?fie:cie)(t)},die=Math.min,am=function(e){return(t=e.length)>0?die(uD(t),9007199254740991):0;var t},c6=function(e,t,n){var r=mc(t);r in e?vs.f(e,r,ts(0,n)):e[r]=n},cR={};cR[cr("toStringTag")]="z";var sD=String(cR)==="[object z]",pie=cr("toStringTag"),hie=Fe.Object,gie=_u(function(){return arguments}())=="Arguments",um=sD?_u:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=hie(e),pie))=="string"?n:gie?_u(t):(r=_u(t))=="Object"&&An(t.callee)?"Arguments":r},vie=Ft(Function.toString);An(sa.inspectSource)||(sa.inspectSource=function(e){return vie(e)});var fR=sa.inspectSource,dR=function(){},mie=[],pR=Jp("Reflect","construct"),lD=/^\s*(?:class|function)\b/,yie=Ft(lD.exec),bie=!lD.exec(dR),hf=function(e){if(!An(e))return!1;try{return pR(dR,mie,e),!0}catch{return!1}},wie=!pR||ar(function(){var e;return hf(hf.call)||!hf(Object)||!hf(function(){e=!0})||e})?function(e){if(!An(e))return!1;switch(um(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bie||!!yie(lD,fR(e))}:hf,Eie=cr("species"),gB=Fe.Array,hR=function(e,t){return new(function(n){var r;return Ev(n)&&(r=n.constructor,(wie(r)&&(r===gB||Ev(r.prototype))||Ur(r)&&(r=r[Eie])===null)&&(r=void 0)),r===void 0?gB:r}(e))(t===0?0:t)},Die=cr("species"),gR=cr("isConcatSpreadable"),vB=Fe.TypeError,Cie=bv>=51||!ar(function(){var e=[];return e[gR]=!1,e.concat()[0]!==e}),Sie=bv>=51||!ar(function(){var e=[];return(e.constructor={})[Die]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),xie=function(e){if(!Ur(e))return!1;var t=e[gR];return t!==void 0?!!t:Ev(e)};Ui({target:"Array",proto:!0,forced:!Cie||!Sie},{concat:function(e){var t,n,r,o,i,a=Zp(this),u=hR(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(xie(i=t===-1?a:arguments[t])){if(s+(o=am(i))>9007199254740991)throw vB("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&c6(u,s,i[n])}else{if(s>=9007199254740991)throw vB("Maximum allowed index exceeded");c6(u,s++,i)}return u.length=s,u}});var r0,Aie=Fe.String,Dv=function(e){if(um(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Aie(e)},Oie=Math.max,Bie=Math.min,f6=function(e,t){var n=uD(e);return n<0?Oie(n+t,0):Bie(n,t)},mB=function(e){return function(t,n,r){var o,i=Po(t),a=am(i),u=f6(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},kie={includes:mB(!0),indexOf:mB(!1)},eh={},Fie=kie.indexOf,yB=Ft([].push),vR=function(e,t){var n,r=Po(e),o=0,i=[];for(n in r)!Ke(eh,n)&&Ke(r,n)&&yB(i,n);for(;t.length>o;)Ke(r,n=t[o++])&&(~Fie(i,n)||yB(i,n));return i},Cv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cD=Object.keys||function(e){return vR(e,Cv)},Tie=Vn?Object.defineProperties:function(e,t){ns(e);for(var n,r=Po(t),o=cD(t),i=o.length,a=0;i>a;)vs.f(e,n=o[a++],r[n]);return e},_ie=Jp("document","documentElement"),bB=gs("keys"),sm=function(e){return bB[e]||(bB[e]=wv(e))},mR=sm("IE_PROTO"),e2=function(){},yR=function(e){return"<script>"+e+"<\/script>"},wB=function(e){e.write(yR("")),e.close();var t=e.parentWindow.Object;return e=null,t},J0=function(){try{r0=new ActiveXObject("htmlfile")}catch{}var e,t;J0=typeof document<"u"?document.domain&&r0?wB(r0):((t=uR("iframe")).style.display="none",_ie.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(yR("document.F=Object")),e.close(),e.F):wB(r0);for(var n=Cv.length;n--;)delete J0.prototype[Cv[n]];return J0()};eh[mR]=!0;var Sv,hd,xv,rs=Object.create||function(e,t){var n;return e!==null?(e2.prototype=ns(e),n=new e2,e2.prototype=null,n[mR]=e):n=J0(),t===void 0?n:Tie(n,t)},jie=Cv.concat("length","prototype"),bR={f:Object.getOwnPropertyNames||function(e){return vR(e,jie)}},Pie=Fe.Array,Iie=Math.max,EB=bR.f,DB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wR={f:function(e){return DB&&_u(e)=="Window"?function(t){try{return EB(t)}catch{return function(n,r,o){for(var i=am(n),a=f6(void 0,i),u=f6(i,i),s=Pie(Iie(u-a,0)),l=0;a<u;a++,l++)c6(s,l,n[a]);return s.length=l,s}(DB)}}(e):EB(Po(e))}},t2={f:Object.getOwnPropertySymbols},Nie=Ft([].slice),Av=function(e,t,n,r){po(e,t,n)},fD={f:cr},Rie=vs.f,Pt=function(e){var t=vr.Symbol||(vr.Symbol={});Ke(t,e)||Rie(t,e,{value:fD.f(e)})},Lie=sD?{}.toString:function(){return"[object "+um(this)+"]"},Mie=vs.f,CB=cr("toStringTag"),Ov=function(e,t,n,r){if(e){var o=n?e:e.prototype;Ke(o,CB)||Mie(o,CB,{configurable:!0,value:t}),r&&!sD&&po(o,"toString",Lie)}},SB=Fe.WeakMap,zie=An(SB)&&/native code/.test(fR(SB)),d6=Fe.TypeError,$ie=Fe.WeakMap;if(zie||sa.state){var Za=sa.state||(sa.state=new $ie),Hie=Ft(Za.get),xB=Ft(Za.has),Uie=Ft(Za.set);Sv=function(e,t){if(xB(Za,e))throw new d6("Object already initialized");return t.facade=e,Uie(Za,e,t),t},hd=function(e){return Hie(Za,e)||{}},xv=function(e){return xB(Za,e)}}else{var zs=sm("state");eh[zs]=!0,Sv=function(e,t){if(Ke(e,zs))throw new d6("Object already initialized");return t.facade=e,po(e,zs,t),t},hd=function(e){return Ke(e,zs)?e[zs]:{}},xv=function(e){return Ke(e,zs)}}var yc={set:Sv,get:hd,has:xv,enforce:function(e){return xv(e)?hd(e):Sv(e,{})},getterFor:function(e){return function(t){var n;if(!Ur(t)||(n=hd(t)).type!==e)throw d6("Incompatible receiver, "+e+" required");return n}}},AB=Ft([].push),Ti=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Zp(s),m=oR(v),g=lR(l,c),y=am(m),h=0,b=f||hR,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:AB(w,d)}else switch(e){case 4:return!1;case 7:AB(w,d)}return i?-1:r||o?o:w}},lm=[Ti(0),Ti(1),Ti(2),Ti(3),Ti(4),Ti(5),Ti(6),Ti(7)][0],Ln=sm("hidden"),OB=cr("toPrimitive"),Vie=yc.set,BB=yc.getterFor("Symbol"),Vr=Object.prototype,Gi=Fe.Symbol,Zi=Gi&&Gi.prototype,kB=Fe.TypeError,n2=Fe.QObject,gf=Jp("JSON","stringify"),ER=aD.f,qi=vs.f,DR=wR.f,Wie=rD.f,CR=Ft([].push),ai=gs("symbols"),th=gs("op-symbols"),r2=gs("string-to-symbol-registry"),o2=gs("symbol-to-string-registry"),Gie=gs("wks"),i2=!n2||!n2.prototype||!n2.prototype.findChild,p6=Vn&&ar(function(){return rs(qi({},"a",{get:function(){return qi(this,"a",{value:7}).a}})).a!=7})?function(e,t,n){var r=ER(Vr,t);r&&delete Vr[t],qi(e,t,n),r&&e!==Vr&&qi(Vr,t,r)}:qi,a2=function(e,t){var n=ai[e]=rs(Zi);return Vie(n,{type:"Symbol",tag:e,description:t}),Vn||(n.description=t),n},Bv=function(e,t,n){e===Vr&&Bv(th,t,n),ns(e);var r=mc(t);return ns(n),Ke(ai,r)?(n.enumerable?(Ke(e,Ln)&&e[Ln][r]&&(e[Ln][r]=!1),n=rs(n,{enumerable:ts(0,!1)})):(Ke(e,Ln)||qi(e,Ln,ts(1,{})),e[Ln][r]=!0),p6(e,r,n)):qi(e,r,n)},FB=function(e,t){ns(e);var n=Po(t),r=cD(n).concat(h6(n));return lm(r,function(o){Vn&&!Do(SR,n,o)||Bv(e,o,n[o])}),e},SR=function(e){var t=mc(e),n=Do(Wie,this,t);return!(this===Vr&&Ke(ai,t)&&!Ke(th,t))&&(!(n||!Ke(this,t)||!Ke(ai,t)||Ke(this,Ln)&&this[Ln][t])||n)},TB=function(e,t){var n=Po(e),r=mc(t);if(n!==Vr||!Ke(ai,r)||Ke(th,r)){var o=ER(n,r);return!o||!Ke(ai,r)||Ke(n,Ln)&&n[Ln][r]||(o.enumerable=!0),o}},_B=function(e){var t=DR(Po(e)),n=[];return lm(t,function(r){Ke(ai,r)||Ke(eh,r)||CR(n,r)}),n},h6=function(e){var t=e===Vr,n=DR(t?th:Po(e)),r=[];return lm(n,function(o){!Ke(ai,o)||t&&!Ke(Vr,o)||CR(r,ai[o])}),r};if(co||(Zi=(Gi=function(){if(iR(Zi,this))throw kB("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Dv(arguments[0]):void 0,t=wv(e),n=function(r){this===Vr&&Do(n,th,r),Ke(this,Ln)&&Ke(this[Ln],t)&&(this[Ln][t]=!1),p6(this,t,ts(1,r))};return Vn&&i2&&p6(Vr,t,{configurable:!0,set:n}),a2(t,e)}).prototype,Av(Zi,"toString",function(){return BB(this).tag}),Av(Gi,"withoutSetter",function(e){return a2(wv(e),e)}),rD.f=SR,vs.f=Bv,aD.f=TB,bR.f=wR.f=_B,t2.f=h6,fD.f=function(e){return a2(cr(e),e)},Vn&&qi(Zi,"description",{configurable:!0,get:function(){return BB(this).description}})),Ui({global:!0,wrap:!0,forced:!co,sham:!co},{Symbol:Gi}),lm(cD(Gie),function(e){Pt(e)}),Ui({target:"Symbol",stat:!0,forced:!co},{for:function(e){var t=Dv(e);if(Ke(r2,t))return r2[t];var n=Gi(t);return r2[t]=n,o2[n]=t,n},keyFor:function(e){if(!wl(e))throw kB(e+" is not a symbol");if(Ke(o2,e))return o2[e]},useSetter:function(){i2=!0},useSimple:function(){i2=!1}}),Ui({target:"Object",stat:!0,forced:!co,sham:!Vn},{create:function(e,t){return t===void 0?rs(e):FB(rs(e),t)},defineProperty:Bv,defineProperties:FB,getOwnPropertyDescriptor:TB}),Ui({target:"Object",stat:!0,forced:!co},{getOwnPropertyNames:_B,getOwnPropertySymbols:h6}),Ui({target:"Object",stat:!0,forced:ar(function(){t2.f(1)})},{getOwnPropertySymbols:function(e){return t2.f(Zp(e))}}),gf){var qie=!co||ar(function(){var e=Gi();return gf([e])!="[null]"||gf({a:e})!="{}"||gf(Object(e))!="{}"});Ui({target:"JSON",stat:!0,forced:qie},{stringify:function(e,t,n){var r=Nie(arguments),o=t;if((Ur(t)||e!==void 0)&&!wl(e))return Ev(t)||(t=function(i,a){if(An(o)&&(a=Do(o,this,i,a)),!wl(a))return a}),r[1]=t,nR(gf,null,r)}})}if(!Zi[OB]){var Kie=Zi.valueOf;Av(Zi,OB,function(e){return Do(Kie,this)})}Ov(Gi,"Symbol"),eh[Ln]=!0,Pt("asyncIterator"),Pt("hasInstance"),Pt("isConcatSpreadable"),Pt("iterator"),Pt("match"),Pt("matchAll"),Pt("replace"),Pt("search"),Pt("species"),Pt("split"),Pt("toPrimitive"),Pt("toStringTag"),Pt("unscopables"),Ov(Fe.JSON,"JSON",!0);var Qi,jB,PB,Yie=vr.Symbol,Pu={},xR=Function.prototype,Xie=Vn&&Object.getOwnPropertyDescriptor,u2=Ke(xR,"name"),Jie={EXISTS:u2,PROPER:u2&&(function(){}).name==="something",CONFIGURABLE:u2&&(!Vn||Vn&&Xie(xR,"name").configurable)},Zie=!ar(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),IB=sm("IE_PROTO"),g6=Fe.Object,Qie=g6.prototype,v6=Zie?g6.getPrototypeOf:function(e){var t=Zp(e);if(Ke(t,IB))return t[IB];var n=t.constructor;return An(n)&&t instanceof n?n.prototype:t instanceof g6?Qie:null},m6=cr("iterator"),AR=!1;[].keys&&("next"in(PB=[].keys())?(jB=v6(v6(PB)))!==Object.prototype&&(Qi=jB):AR=!0);var eae=Qi==null||ar(function(){var e={};return Qi[m6].call(e)!==e});Qi=eae?{}:rs(Qi),An(Qi[m6])||Av(Qi,m6,function(){return this});var OR={IteratorPrototype:Qi,BUGGY_SAFARI_ITERATORS:AR},tae=OR.IteratorPrototype,nae=function(){return this};Fe.String,Fe.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Ft(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}}();var rae=Jie.PROPER,s2=OR.BUGGY_SAFARI_ITERATORS,oae=cr("iterator"),iae=function(){return this},BR=function(e,t,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=rs(tae,{next:ts(1,h)}),Ov(g,w,!1,!0),Pu[w]=nae})(n,t,r);var u,s,l=function(g){if(g===o&&v)return v;if(!s2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[oae]||d["@@iterator"]||o&&d[o],v=!s2&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=v6(m.call(new e)))!==Object.prototype&&u.next&&(Ov(u,c,!0,!0),Pu[c]=iae),rae&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Do(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ui({target:t,proto:!0,forced:s2||f},s)),Pu[t]=v,s},aae=yc.set,uae=yc.getterFor("Array Iterator");BR(Array,"Array",function(e,t){aae(this,{type:"Array Iterator",target:Po(e),index:0,kind:t})},function(){var e=uae(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),Pu.Arguments=Pu.Array;var NB=cr("toStringTag");for(var l2 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 RB=Fe[l2],c2=RB&&RB.prototype;c2&&um(c2)!==NB&&po(c2,NB,l2),Pu[l2]=Pu.Array}var sae=Yie;Pt("asyncDispose"),Pt("dispose"),Pt("matcher"),Pt("metadata"),Pt("observable"),Pt("patternMatch"),Pt("replaceAll");var o0=sae,lae=Ft("".charAt),LB=Ft("".charCodeAt),cae=Ft("".slice),fae=function(e){return function(t,n){var r,o,i=Dv(oD(t)),a=uD(n),u=i.length;return a<0||a>=u?"":(r=LB(i,a))<55296||r>56319||a+1===u||(o=LB(i,a+1))<56320||o>57343?lae(i,a):cae(i,a,a+2)}},dae=fae(),pae=yc.set,hae=yc.getterFor("String Iterator");BR(String,"String",function(e){pae(this,{type:"String Iterator",string:Dv(e),index:0})},function(){var e,t=hae(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dae(n,r),t.index+=e.length,{value:e,done:!1})});var gae=fD.f("iterator"),vae=Z1(function(e){function t(n){return typeof o0=="function"&&typeof gae=="symbol"?(e.exports=t=function(r){return typeof r},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(r){return r&&typeof o0=="function"&&r.constructor===o0&&r!==o0.prototype?"symbol":typeof r},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),kR=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(vae),mae=tm.EXISTS,yae=pc.f,FR=Function.prototype,bae=me(FR.toString),TR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wae=me(TR.exec);Zr&&!mae&&yae(FR,"name",{configurable:!0,get:function(){try{return wae(TR,bae(this))[1]}catch{return""}}});var _R=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.mark,r=E.marks(t);return r&&r[n]?r[n]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Ye(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0])},e.prototype.exec=function(t,n){var r=this.mark;n?t.addMark(r,n):t.removeMark(r)},e}(),Eae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("fontSize.title"),n.iconSvg=qne,n.mark="fontSize",n}return bt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:Q("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(kR(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},t}(_R),Dae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("fontFamily.title"),n.iconSvg=Kne,n.mark="fontFamily",n.selectPanelWidth=150,n}return bt(t,e),t.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:Q("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(kR(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},t}(_R),Cae={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&es(i,{fontSize:r}),o&&es(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!oe.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((Z8(t)||vc(n=k(t))!=="span")&&(n=k("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),gc(n)):t},preParseHtml:[Foe],parseStyleHtml:function(e,t,n){var r=k(e);if(!oe.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Yr(r,"font-size"),s=a.find(function(p){return p.value&&p.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=Yr(r,"font-family").replace(/"/g,""),d=c.find(function(p){return p.value&&p.value===f})||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new Eae},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 Dae},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},Sae={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=k(e),n=Yr(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},jR=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var n=Ye(E.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Ye(r,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ye(E.nodes(t,{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]},e}(),xae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("indent.decrease"),n.iconSvg=Yne,n}return bt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},t.prototype.exec=function(n,r){I.setNodes(n,{indent:null},{match:function(o){return ce.isElement(o)}})},t}(jR),Aae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("indent.increase"),n.iconSvg=Xne,n}return bt(t,e),t.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},t.prototype.exec=function(n,r){I.setNodes(n,{indent:"2em"},{match:function(o){return ce.isElement(o)},mode:"highest"})},t}(jR),Oae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.indent,r=t;return n&&es(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.indent;if(!n)return t;var r=k(t);return r.css("text-indent",n),gc(r)},preParseHtml:[Sae],parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=Yr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new Aae}},{key:"delIndent",factory:function(){return new xae}}]},cm=function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var n=Ye(E.nodes(t,{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]},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},e}(),Bae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.left"),n.iconSvg=Jne,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"left"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(cm),kae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.right"),n.iconSvg=Zne,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"right"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(cm),Fae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.center"),n.iconSvg=Qne,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"center"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(cm),Tae=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.title=Q("justify.justify"),n.iconSvg=ere,n}return bt(t,e),t.prototype.exec=function(n,r){I.setNodes(n,{textAlign:"justify"},{match:function(o){return ce.isElement(o)&&!n.isInline(o)}})},t}(cm),_ae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.textAlign,r=t;return n&&es(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=k(t);return r.css("text-align",n),gc(r)},parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=Yr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Bae}},{key:"justifyRight",factory:function(){return new kae}},{key:"justifyCenter",factory:function(){return new Fae}},{key:"justifyJustify",factory:function(){return new Tae}}]},jae=function(){function e(){this.title=Q("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var n=[],r=t.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:Q("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.getMatchNode=function(t){var n=Ye(E.nodes(t,{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]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getMatchNode(t);return n==null?"":ce.isElement(n)&&n.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,n){I.setNodes(t,{lineHeight:n.toString()},{mode:"highest"})},e}(),Pae={renderStyle:function(e,t){if(!ce.isElement(e))return t;var n=e.lineHeight,r=t;return n&&es(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!ce.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=k(t);return r.css("line-height",n),gc(r)},parseStyleHtml:function(e,t,n){var r=k(e);if(!ce.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Yr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new jae},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Iae=function(){function e(){this.title=Q("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.redo=="function"&&t.redo()},e}(),Nae=function(){function e(){this.title=Q("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,n){typeof t.undo=="function"&&t.undo()},e}(),Rae={menus:[{key:"redo",factory:function(){return new Iae}},{key:"undo",factory:function(){return new Nae}}]},Lae={type:"divider",renderElem:function(e,t,n){return zl("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[zl("hr")])}},Mae=function(){function e(){this.title=Q("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(t.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},e.prototype.exec=function(t,n){I.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),zae={renderElems:[Lae],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Mae}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="divider"||t(o)},r.normalizeNode=function(o){var i=Ye(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&I.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},$ae=rm.map;Zt({target:"Array",proto:!0,forced:!q8("map")},{map:function(e){return $ae(this,e,arguments.length>1?arguments[1]:void 0)}});var Hae=me([].join),Uae=Q1!=Object,Vae=RN("join",",");Zt({target:"Array",proto:!0,forced:Uae||!Vae},{join:function(e){return Hae(dc(this),e===void 0?",":e)}});var Wae=function(){function e(){this.title=Q("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return r==null||A.getNodeType(r)!=="pre"?null:n},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);return n==null?"":n.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var n=A.getSelectedElems(t);return!!n.some(function(r){return t.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,n){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,n.toString())},e.prototype.changeToPlainText=function(t){var n=this.getSelectCodeElem(t);if(n!=null){var r=Z.string(n);I.removeNodes(t,{mode:"highest"});var o=r.split(`
- `).map(function(i){return{type:"paragraph",children:[{text:i}]}});I.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,n){var r,o,i=[],a=E.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=NN(a),s=u.next();!s.done;s=u.next()){var l=Ye(s.value,1)[0];l&&i.push(Z.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}I.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
- `)}]}]};I.insertNodes(t,c,{mode:"highest"})},e}(),Gae={key:"codeBlock",factory:function(){return new Wae}};Zt({target:"String",proto:!0,forced:Qf("anchor")},{anchor:function(e){return Zf(this,"a","name",e)}}),X8("match",function(e,t,n){return[function(r){var o=kr(this),i=r==null?void 0:em(r,e);return i?It(i,r,o):new RegExp(r)[e](Et(o))},function(r){var o=nr(this),i=Et(r),a=n(t,o,i);if(a.done)return a.value;if(!o.global)return tp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=tp(o,i))!==null;){var f=Et(s[0]);l[c]=f,f===""&&(o.lastIndex=J8(i,qp(o.lastIndex),u)),c++}return c===0?null:l}]});var qae={type:"pre",renderElem:function(e,t,n){return be("pre",null,t)}},Kae={type:"code",renderElem:function(e,t,n){return be("code",null,t)}},Yae={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);return(t=t.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return A.getNodeType(o)==="code"})}}},Xae={menus:[Gae],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=Z.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
- `),m=v.length;return m===0?"":v[m-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 t()},o.normalizeNode=function(i){var a=Ye(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&I.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&I.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(I.unwrapNodes(o),I.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:[qae,Kae],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=k(e);if(vc(t)!=="code")return e;var n=t.find("xmp");if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:k(e)[0].textContent||""}]}}},Yae]},Jae=function(){function e(){this.title=Q("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,n){t.isFullScreen?t.unFullScreen():t.fullScreen()},e}(),Zae={menus:[{key:"fullScreen",factory:function(){return new Jae}}]},Qae=function(){function e(){this.title=Q("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!!R.isExpanded(n)},e.prototype.exec=function(t,n){var r=t.selection;if(r!=null){var o=[r.anchor.path[0]];I.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(E.start(t,o))}},e}(),eue=[fre,Ure,Cae,Oae,_ae,Pae,poe,zae,Boe,eoe,Xae,Aoe,Lre,Pne,moe,Rae,Zae,{menus:[{key:"enter",factory:function(){return new Qae}}]}];Gn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Gn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var MB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dD(e){var t={exports:{}};return e(t,t.exports),t.exports}var _i,Z0,i0=function(e){return e&&e.Math==Math&&e},we=i0(typeof globalThis=="object"&&globalThis)||i0(typeof window=="object"&&window)||i0(typeof self=="object"&&self)||i0(typeof MB=="object"&&MB)||function(){return this}()||Function("return this")(),PR=Function.prototype,y6=PR.bind,b6=PR.call,tue=y6&&y6.bind(b6),Pe=y6?function(e){return e&&tue(b6,e)}:function(e){return e&&function(){return b6.apply(e,arguments)}},At=function(e){try{return!!e()}catch{return!0}},nue=Pe({}.toString),rue=Pe("".slice),ti=function(e){return rue(nue(e),8,-1)},f2=we.Object,oue=Pe("".split),IR=At(function(){return!f2("z").propertyIsEnumerable(0)})?function(e){return ti(e)=="String"?oue(e,""):f2(e)}:f2,iue=we.TypeError,fm=function(e){if(e==null)throw iue("Can't call method on "+e);return e},bc=function(e){return IR(fm(e))},aue=Object.defineProperty,pD=function(e,t){try{aue(we,e,{value:t,configurable:!0,writable:!0})}catch{we[e]=t}return t},la=we["__core-js_shared__"]||pD("__core-js_shared__",{}),hD=dD(function(e){(e.exports=function(t,n){return la[t]||(la[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),uue=we.Object,nh=function(e){return uue(fm(e))},sue=Pe({}.hasOwnProperty),Qt=Object.hasOwn||function(e,t){return sue(nh(e),t)},lue=0,cue=Math.random(),fue=Pe(1 .toString),gD=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fue(++lue+cue,36)},Tt=function(e){return typeof e=="function"},due=function(e){return Tt(e)?e:void 0},rh=function(e,t){return arguments.length<2?due(we[e]):we[e]&&we[e][t]},d2=rh("navigator","userAgent")||"",zB=we.process,$B=we.Deno,HB=zB&&zB.versions||$B&&$B.version,UB=HB&&HB.v8;UB&&(Z0=(_i=UB.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!Z0&&d2&&(!(_i=d2.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=d2.match(/Chrome\/(\d+)/))&&(Z0=+_i[1]);var a0,w6=Z0,E6=!!Object.getOwnPropertySymbols&&!At(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&w6&&w6<41}),vD=E6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vf=hD("wks"),Iu=we.Symbol,VB=Iu&&Iu.for,pue=vD?Iu:Iu&&Iu.withoutSetter||gD,hn=function(e){if(!Qt(vf,e)||!E6&&typeof vf[e]!="string"){var t="Symbol."+e;E6&&Qt(Iu,e)?vf[e]=Iu[e]:vf[e]=vD&&VB?VB(t):pue(t)}return vf[e]},kt=function(e){return typeof e=="object"?e!==null:Tt(e)},hue=we.String,gue=we.TypeError,qn=function(e){if(kt(e))return e;throw gue(hue(e)+" is not an object")},Aa=!At(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),D6=we.document,vue=kt(D6)&&kt(D6.createElement),mD=function(e){return vue?D6.createElement(e):{}},NR=!Aa&&!At(function(){return Object.defineProperty(mD("div"),"a",{get:function(){return 7}}).a!=7}),mf=Function.prototype.call,an=mf.bind?mf.bind(mf):function(){return mf.apply(mf,arguments)},kv=Pe({}.isPrototypeOf),mue=we.Object,p2=vD?function(e){return typeof e=="symbol"}:function(e){var t=rh("Symbol");return Tt(t)&&kv(t.prototype,mue(e))},yue=we.String,C6=function(e){try{return yue(e)}catch{return"Object"}},bue=we.TypeError,yD=function(e){if(Tt(e))return e;throw bue(C6(e)+" is not a function")},np=function(e,t){var n=e[t];return n==null?void 0:yD(n)},wue=we.TypeError,Eue=we.TypeError,Due=hn("toPrimitive"),bD=function(e){var t=function(n,r){if(!kt(n)||p2(n))return n;var o,i=np(n,Due);if(i){if(o=an(i,n,r),!kt(o)||p2(o))return o;throw Eue("Can't convert object to primitive value")}return function(a,u){var s,l;if(Tt(s=a.toString)&&!kt(l=an(s,a))||Tt(s=a.valueOf)&&!kt(l=an(s,a))||u!=="string")return l;throw wue("Can't convert object to primitive value")}(n,r)}(e,"string");return p2(t)?t:t+""},Cue=we.TypeError,WB=Object.defineProperty,ms={f:Aa?WB:function(e,t,n){if(qn(e),t=bD(t),qn(n),NR)try{return WB(e,t,n)}catch{}if("get"in n||"set"in n)throw Cue("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Sue=Math.ceil,xue=Math.floor,oh=function(e){var t=+e;return t!=t||t===0?0:(t>0?xue:Sue)(t)},Aue=Math.max,Oue=Math.min,S6=function(e,t){var n=oh(e);return n<0?Aue(n+t,0):Oue(n,t)},Bue=Math.min,RR=function(e){return e>0?Bue(oh(e),9007199254740991):0},wc=function(e){return RR(e.length)},GB=function(e){return function(t,n,r){var o,i=bc(t),a=wc(i),u=S6(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},LR={includes:GB(!0),indexOf:GB(!1)},dm={},kue=LR.indexOf,qB=Pe([].push),MR=function(e,t){var n,r=bc(e),o=0,i=[];for(n in r)!Qt(dm,n)&&Qt(r,n)&&qB(i,n);for(;t.length>o;)Qt(r,n=t[o++])&&(~kue(i,n)||qB(i,n));return i},Fv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fue=Object.keys||function(e){return MR(e,Fv)},Tue=Aa?Object.defineProperties:function(e,t){qn(e);for(var n,r=bc(t),o=Fue(t),i=o.length,a=0;i>a;)ms.f(e,n=o[a++],r[n]);return e},_ue=rh("document","documentElement"),KB=hD("keys"),wD=function(e){return KB[e]||(KB[e]=gD(e))},zR=wD("IE_PROTO"),h2=function(){},$R=function(e){return"<script>"+e+"<\/script>"},YB=function(e){e.write($R("")),e.close();var t=e.parentWindow.Object;return e=null,t},Q0=function(){try{a0=new ActiveXObject("htmlfile")}catch{}var e,t;Q0=typeof document<"u"?document.domain&&a0?YB(a0):((t=mD("iframe")).style.display="none",_ue.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write($R("document.F=Object")),e.close(),e.F):YB(a0);for(var n=Fv.length;n--;)delete Q0.prototype[Fv[n]];return Q0()};dm[zR]=!0;var ED=Object.create||function(e,t){var n;return e!==null?(h2.prototype=qn(e),n=new h2,h2.prototype=null,n[zR]=e):n=Q0(),t===void 0?n:Tue(n,t)},x6=hn("unscopables"),A6=Array.prototype;A6[x6]==null&&ms.f(A6,x6,{configurable:!0,value:ED(null)});var gd=function(e){A6[x6][e]=!0},Kl={},jue=Pe(Function.toString);Tt(la.inspectSource)||(la.inspectSource=function(e){return jue(e)});var Tv,vd,_v,DD=la.inspectSource,XB=we.WeakMap,HR=Tt(XB)&&/native code/.test(DD(XB)),pm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ca=Aa?function(e,t,n){return ms.f(e,t,pm(1,n))}:function(e,t,n){return e[t]=n,e},O6=we.TypeError,Pue=we.WeakMap;if(HR||la.state){var Qa=la.state||(la.state=new Pue),Iue=Pe(Qa.get),JB=Pe(Qa.has),Nue=Pe(Qa.set);Tv=function(e,t){if(JB(Qa,e))throw new O6("Object already initialized");return t.facade=e,Nue(Qa,e,t),t},vd=function(e){return Iue(Qa,e)||{}},_v=function(e){return JB(Qa,e)}}else{var $s=wD("state");dm[$s]=!0,Tv=function(e,t){if(Qt(e,$s))throw new O6("Object already initialized");return t.facade=e,ca(e,$s,t),t},vd=function(e){return Qt(e,$s)?e[$s]:{}},_v=function(e){return Qt(e,$s)}}var Nu,ZB,QB,Bo={set:Tv,get:vd,has:_v,enforce:function(e){return _v(e)?vd(e):Tv(e,{})},getterFor:function(e){return function(t){var n;if(!kt(t)||(n=vd(t)).type!==e)throw O6("Incompatible receiver, "+e+" required");return n}}},ek={}.propertyIsEnumerable,tk=Object.getOwnPropertyDescriptor,Rue={f:tk&&!ek.call({1:2},1)?function(e){var t=tk(this,e);return!!t&&t.enumerable}:ek},nk=Object.getOwnPropertyDescriptor,UR={f:Aa?nk:function(e,t){if(e=bc(e),t=bD(t),NR)try{return nk(e,t)}catch{}if(Qt(e,t))return pm(!an(Rue.f,e,t),e[t])}},VR=Function.prototype,Lue=Aa&&Object.getOwnPropertyDescriptor,g2=Qt(VR,"name"),CD={EXISTS:g2,PROPER:g2&&(function(){}).name==="something",CONFIGURABLE:g2&&(!Aa||Aa&&Lue(VR,"name").configurable)},ui=dD(function(e){var t=CD.CONFIGURABLE,n=Bo.get,r=Bo.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Tt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qt(u,"name")||t&&u.name!==p)&&ca(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==we?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ca(i,a,u)):f?i[a]=u:pD(a,u)})(Function.prototype,"toString",function(){return Tt(this)&&n(this).source||DD(this)})}),Mue=Fv.concat("length","prototype"),jv={f:Object.getOwnPropertyNames||function(e){return MR(e,Mue)}},zue={f:Object.getOwnPropertySymbols},$ue=Pe([].concat),Hue=rh("Reflect","ownKeys")||function(e){var t=jv.f(qn(e)),n=zue.f;return n?$ue(t,n(e)):t},Uue=function(e,t){for(var n=Hue(t),r=ms.f,o=UR.f,i=0;i<n.length;i++){var a=n[i];Qt(e,a)||r(e,a,o(t,a))}},Vue=/#|\.prototype\./,ih=function(e,t){var n=Gue[Wue(e)];return n==Kue||n!=que&&(Tt(t)?At(t):!!t)},Wue=ih.normalize=function(e){return String(e).replace(Vue,".").toLowerCase()},Gue=ih.data={},que=ih.NATIVE="N",Kue=ih.POLYFILL="P",B6=ih,Yue=UR.f,Oa=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?we:l?we[u]||pD(u,{}):(we[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Yue(n,r))&&a.value:n[r],!B6(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Uue(i,o)}(e.sham||o&&o.sham)&&ca(i,"sham",!0),ui(n,r,i,e)}},Xue=!At(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),rk=wD("IE_PROTO"),k6=we.Object,Jue=k6.prototype,Pv=Xue?k6.getPrototypeOf:function(e){var t=nh(e);if(Qt(t,rk))return t[rk];var n=t.constructor;return Tt(n)&&t instanceof n?n.prototype:t instanceof k6?Jue:null},F6=hn("iterator"),WR=!1;[].keys&&("next"in(QB=[].keys())?(ZB=Pv(Pv(QB)))!==Object.prototype&&(Nu=ZB):WR=!0);var Zue=Nu==null||At(function(){var e={};return Nu[F6].call(e)!==e});Zue&&(Nu={}),Tt(Nu[F6])||ui(Nu,F6,function(){return this});var SD={IteratorPrototype:Nu,BUGGY_SAFARI_ITERATORS:WR},Que=ms.f,ok=hn("toStringTag"),T6=function(e,t,n){e&&!Qt(e=n?e:e.prototype,ok)&&Que(e,ok,{configurable:!0,value:t})},ese=SD.IteratorPrototype,tse=function(){return this},nse=we.String,rse=we.TypeError,Iv=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Pe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return qn(r),function(i){if(typeof i=="object"||Tt(i))return i;throw rse("Can't set "+nse(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),ose=CD.PROPER,ise=CD.CONFIGURABLE,ik=SD.IteratorPrototype,v2=SD.BUGGY_SAFARI_ITERATORS,yf=hn("iterator"),ase=function(){return this},GR=function(e,t,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=ED(ese,{next:pm(1,h)}),T6(g,w,!1),Kl[w]=tse})(n,t,r);var u,s,l=function(g){if(g===o&&v)return v;if(!v2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[yf]||d["@@iterator"]||o&&d[o],v=!v2&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=Pv(m.call(new e)))!==Object.prototype&&u.next&&(Pv(u)!==ik&&(Iv?Iv(u,ik):Tt(u[yf])||ui(u,yf,ase)),T6(u,c,!0)),ose&&o=="values"&&p&&p.name!=="values"&&(ise?ca(d,"name","values"):(f=!0,v=function(){return an(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Oa({target:t,proto:!0,forced:v2||f},s)),d[yf]!==v&&ui(d,yf,v,{name:o}),Kl[t]=v,s},use=Bo.set,sse=Bo.getterFor("Array Iterator"),ed=GR(Array,"Array",function(e,t){use(this,{type:"Array Iterator",target:bc(e),index:0,kind:t})},function(){var e=sse(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Kl.Arguments=Kl.Array,gd("keys"),gd("values"),gd("entries");var qR={};qR[hn("toStringTag")]="z";var xD=String(qR)==="[object z]",lse=hn("toStringTag"),cse=we.Object,fse=ti(function(){return arguments}())=="Arguments",hm=xD?ti:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=cse(e),lse))=="string"?n:fse?ti(t):(r=ti(t))=="Object"&&Tt(t.callee)?"Arguments":r},dse=xD?{}.toString:function(){return"[object "+hm(this)+"]"};xD||ui(Object.prototype,"toString",dse,{unsafe:!0});var pse=we.String,qo=function(e){if(hm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return pse(e)},hse=Pe("".charAt),ak=Pe("".charCodeAt),gse=Pe("".slice),uk=function(e){return function(t,n){var r,o,i=qo(fm(t)),a=oh(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ak(i,a))<55296||r>56319||a+1===u||(o=ak(i,a+1))<56320||o>57343?e?hse(i,a):r:e?gse(i,a,a+2):o-56320+(r-55296<<10)+65536}},KR={codeAt:uk(!1),charAt:uk(!0)},vse=KR.charAt,mse=Bo.set,yse=Bo.getterFor("String Iterator");GR(String,"String",function(e){mse(this,{type:"String Iterator",string:qo(e),index:0})},function(){var e,t=yse(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vse(n,r),t.index+=e.length,{value:e,done:!1})});var _6=function(e,t,n){for(var r in t)ui(e,r,t[r],n);return e},bse=we.Array,wse=Math.max,sk=jv.f,lk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ese={f:function(e){return lk&&ti(e)=="Window"?function(t){try{return sk(t)}catch{return function(n,r,o){for(var i,a,u,s,l=wc(n),c=S6(void 0,l),f=S6(l,l),d=bse(wse(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=n[c],(s=bD(a))in i?ms.f(i,s,pm(0,u)):i[s]=u;return d.length=p,d}(lk)}}(e):sk(bc(e))}},ck=At(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),u0=Object.isExtensible,mu=At(function(){u0(1)})||ck?function(e){return!!kt(e)&&(!ck||ti(e)!="ArrayBuffer")&&(!u0||u0(e))}:u0,Dse=!At(function(){return Object.isExtensible(Object.preventExtensions({}))}),AD=dD(function(e){var t=ms.f,n=!1,r=gD("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=jv.f,s=Pe([].splice),l={};l[r]=1,u(l).length&&(jv.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},Oa({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ese.f}))},fastKey:function(u,s){if(!kt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Qt(u,r)){if(!mu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Qt(u,r)){if(!mu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Dse&&n&&mu(u)&&!Qt(u,r)&&i(u),u}};dm[r]=!0}),fk=Pe(Pe.bind),OD=function(e,t){return yD(e),t===void 0?e:fk?fk(e,t):function(){return e.apply(t,arguments)}},Cse=hn("iterator"),Sse=Array.prototype,xse=hn("iterator"),dk=function(e){if(e!=null)return np(e,xse)||np(e,"@@iterator")||Kl[hm(e)]},Ase=we.TypeError,pk=function(e,t,n){var r,o;qn(e);try{if(!(r=np(e,"return"))){if(t==="throw")throw n;return n}r=an(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return qn(r),n},Ose=we.TypeError,eg=function(e,t){this.stopped=e,this.result=t},hk=eg.prototype,YR=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=OD(t,f),g=function(h){return r&&pk(r,"normal",h),new eg(!0,h)},y=function(h){return d?(qn(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=e;else{if(!(o=dk(e)))throw Ose(C6(e)+" is not iterable");if((c=o)!==void 0&&(Kl.Array===c||Sse[Cse]===c)){for(i=0,a=wc(e);a>i;i++)if((u=y(e[i]))&&kv(hk,u))return u;return new eg(!1)}r=function(h,b){var w=arguments.length<2?dk(h):b;if(yD(w))return qn(an(w,h));throw Ase(C6(h)+" is not iterable")}(e,o)}for(s=r.next;!(l=an(s,r)).done;){try{u=y(l.value)}catch(h){pk(r,"throw",h)}if(typeof u=="object"&&u&&kv(hk,u))return u}return new eg(!1)},Bse=we.TypeError,XR=function(e,t){if(kv(t,e))return e;throw Bse("Incorrect invocation")},JR=hn("iterator"),ZR=!1;try{var kse=0,gk={next:function(){return{done:!!kse++}},return:function(){ZR=!0}};gk[JR]=function(){return this},Array.from(gk,function(){throw 2})}catch{}var j6=Array.isArray||function(e){return ti(e)=="Array"},QR=function(){},Fse=[],eL=rh("Reflect","construct"),BD=/^\s*(?:class|function)\b/,Tse=Pe(BD.exec),_se=!BD.exec(QR),bf=function(e){if(!Tt(e))return!1;try{return eL(QR,Fse,e),!0}catch{return!1}},jse=!eL||At(function(){var e;return bf(bf.call)||!bf(Object)||!bf(function(){e=!0})||e})?function(e){if(!Tt(e))return!1;switch(hm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _se||!!Tse(BD,DD(e))}:bf,Pse=hn("species"),vk=we.Array,tL=function(e,t){return new(function(n){var r;return j6(n)&&(r=n.constructor,(jse(r)&&(r===vk||j6(r.prototype))||kt(r)&&(r=r[Pse])===null)&&(r=void 0)),r===void 0?vk:r}(e))(t===0?0:t)},mk=Pe([].push),ji=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=nh(s),m=IR(v),g=OD(l,c),y=wc(m),h=0,b=f||tL,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:mk(w,d)}else switch(e){case 4:return!1;case 7:mk(w,d)}return i?-1:r||o?o:w}},kD={forEach:ji(0),map:ji(1),filter:ji(2),some:ji(3),every:ji(4),find:ji(5),findIndex:ji(6),filterReject:ji(7)},s0=AD.getWeakData,Ise=Bo.set,Nse=Bo.getterFor,Rse=kD.find,Lse=kD.findIndex,Mse=Pe([].splice),zse=0,l0=function(e){return e.frozen||(e.frozen=new nL)},nL=function(){this.entries=[]},m2=function(e,t){return Rse(e.entries,function(n){return n[0]===t})};nL.prototype={get:function(e){var t=m2(this,e);if(t)return t[1]},has:function(e){return!!m2(this,e)},set:function(e,t){var n=m2(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Lse(this.entries,function(n){return n[0]===e});return~t&&Mse(this.entries,t,1),!!~t}};var wf,rL={getConstructor:function(e,t,n,r){var o=e(function(s,l){XR(s,i),Ise(s,{type:t,id:zse++,frozen:void 0}),l!=null&&YR(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Nse(t),u=function(s,l,c){var f=a(s),d=s0(qn(l),!0);return d===!0?l0(f).set(l,c):d[f.id]=c,s};return _6(i,{delete:function(s){var l=a(this);if(!kt(s))return!1;var c=s0(s);return c===!0?l0(l).delete(s):c&&Qt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!kt(s))return!1;var c=s0(s);return c===!0?l0(l).has(s):c&&Qt(c,l.id)}}),_6(i,n?{get:function(s){var l=a(this);if(kt(s)){var c=s0(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}},c0=Bo.enforce,$se=!we.ActiveXObject&&"ActiveXObject"in we,oL=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Hse=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=we[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Pe(u[g]);ui(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!kt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!kt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!kt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(B6(e,!Tt(a)||!(o||u.forEach&&!At(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),AD.enable();else if(B6(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=At(function(){f.has(1)}),v=function(g,y){if(!ZR)return!1;var h=!1;try{var b={};b[JR]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch{}return h}(),m=!o&&At(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){XR(g,u);var h=function(b,w,D){var S,C;return Iv&&Tt(S=w.constructor)&&S!==D&&kt(C=S.prototype)&&C!==D.prototype&&Iv(b,C),b}(new a,g,s);return y!=null&&YR(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Oa({global:!0,forced:s!=a},l),T6(s,e),o||n.setStrong(s,e,r),s}("WeakMap",oL,rL);if(HR&&$se){wf=rL.getConstructor(oL,"WeakMap",!0),AD.enable();var Ef=Hse.prototype,yk=Pe(Ef.delete),f0=Pe(Ef.has),bk=Pe(Ef.get),wk=Pe(Ef.set);_6(Ef,{delete:function(e){if(kt(e)&&!mu(e)){var t=c0(this);return t.frozen||(t.frozen=new wf),yk(this,e)||t.frozen.delete(e)}return yk(this,e)},has:function(e){if(kt(e)&&!mu(e)){var t=c0(this);return t.frozen||(t.frozen=new wf),f0(this,e)||t.frozen.has(e)}return f0(this,e)},get:function(e){if(kt(e)&&!mu(e)){var t=c0(this);return t.frozen||(t.frozen=new wf),f0(this,e)?bk(this,e):t.frozen.get(e)}return bk(this,e)},set:function(e,t){if(kt(e)&&!mu(e)){var n=c0(this);n.frozen||(n.frozen=new wf),f0(this,e)?wk(this,e,t):n.frozen.set(e,t)}else wk(this,e,t);return this}})}var iL={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},y2=mD("span").classList,Ek=y2&&y2.constructor&&y2.constructor.prototype,Use=Ek===Object.prototype?void 0:Ek,b2=hn("iterator"),Dk=hn("toStringTag"),w2=ed.values,aL=function(e,t){if(e){if(e[b2]!==w2)try{ca(e,b2,w2)}catch{e[b2]=w2}if(e[Dk]||ca(e,Dk,t),iL[t]){for(var n in ed)if(e[n]!==ed[n])try{ca(e,n,ed[n])}catch{e[n]=ed[n]}}}};for(var E2 in iL)aL(we[E2]&&we[E2].prototype,E2);aL(Use,"DOMTokenList");var P6=new WeakMap,Vse={type:"list-item",renderElem:function(e,t,n){P6.set(e,n);var r=e,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,d){var p=d,v=p.type,m=p.level,g=m===void 0?0:m,y=p.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,w=d,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var S=P.previous(D),C=E.node(f,S);if(C==null)break;var O=C[0],F=O.level,L=F===void 0?0:F,H=O.type,M=O.ordered;if(H!==v||L<g)break;if(L===g){if(M!==h)break;b++}w=O,D=S}return b}(n,e);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var m=0;m<v&&!d;m++){var g=p[m];oe.isText(g)&&(d=g)}return d==null?"":d.color||""}(e);return be("div",{style:u},be("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),be("span",null,t))}},I6=function(e,t){return I6=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])},I6(e,t);/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */};function uL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}I6(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Ck(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function md(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Sk(e){return E.nodes(e,{at:e.selection||void 0,match:function(t){return A.findPath(e,t).length===1}})}var Wse=LR.includes;Oa({target:"Array",proto:!0},{includes:function(e){return Wse(this,e,arguments.length>1?arguments[1]:void 0)}}),gd("includes");var xk,D2,Gse=function(){var e=qn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},FD=we.RegExp,N6=At(function(){var e=FD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),qse=N6||At(function(){return!FD("a","y").sticky}),Kse={BROKEN_CARET:N6||At(function(){var e=FD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:qse,UNSUPPORTED_Y:N6},Yse=we.RegExp,Xse=At(function(){var e=Yse(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Jse=we.RegExp,Zse=At(function(){var e=Jse("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Qse=Bo.get,ele=hD("native-string-replace",String.prototype.replace),Nv=RegExp.prototype.exec,R6=Nv,tle=Pe("".charAt),nle=Pe("".indexOf),rle=Pe("".replace),C2=Pe("".slice),S2=(D2=/b*/g,an(Nv,xk=/a/,"a"),an(Nv,D2,"a"),xk.lastIndex!==0||D2.lastIndex!==0),Ak=Kse.BROKEN_CARET,x2=/()??/.exec("")[1]!==void 0;(S2||x2||Ak||Xse||Zse)&&(R6=function(e){var t,n,r,o,i,a,u,s=this,l=Qse(s),c=qo(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=an(R6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Ak&&s.sticky,v=an(Gse,s),m=s.source,g=0,y=c;if(p&&(v=rle(v,"y",""),nle(v,"g")===-1&&(v+="g"),y=C2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&tle(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),x2&&(n=new RegExp("^"+m+"$(?!\\s)",v)),S2&&(r=s.lastIndex),o=an(Nv,p?n:s,y),p?o?(o.input=C2(o.input,g),o[0]=C2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:S2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),x2&&o&&o.length>1&&an(ele,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=ED(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Rv=R6;Oa({target:"RegExp",proto:!0,forced:/./.exec!==Rv},{exec:Rv});var sL=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var n=this.type;return A.getSelectedNodeByType(t,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var n=this.getListNode(t);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!A.getSelectedElems(t).some(function(n){if(E.isVoid(t,n)&&E.isBlock(t,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},e.prototype.exec=function(t,n){this.isActive(t)?I.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):I.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),ole='<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>',ile='<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>',ale=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!1,n.title=Q("listModule.unOrderedList"),n.iconSvg=ole,n}return uL(t,e),t}(sL),ule=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ordered=!0,n.title=Q("listModule.orderedList"),n.iconSvg=ile,n}return uL(t,e),t}(sL),sle={key:"bulletedList",factory:function(){return new ale}},lle={key:"numberedList",factory:function(){return new ule}},Ok=[],cle={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=P6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,m=f.level,g=m===void 0?0:m,y=A.findPath(c,l);if(y[0]===0)return g+1;var h=P.previous(y),b=E.node(c,h);if(!b)return 0;var w=md(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,S=D.ordered,C=S!==void 0&&S,O=D.level,F=O===void 0?0:O;return F<g?g-F:F>g?0:F===g?C===v?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",Ok.push(i);var s=function(l){var c=P6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,m=f.level,g=m===void 0?0:m,y=A.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=P.next(y),b=E.node(c,h);if(!b)return 0;var w=md(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,S=D.ordered,C=S!==void 0&&S,O=D.level,F=O===void 0?0:O;return F<g?g-F:F>g?0:F===g?C===v?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+Ok.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},fle=hn("species"),dle=kD.filter,ple=w6>=51||!At(function(){var e=[];return(e.constructor={})[fle]=function(){return{foo:1}},e.filter(Boolean).foo!==1});Oa({target:"Array",proto:!0,forced:!ple},{filter:function(e){return dle(this,e,arguments.length>1?arguments[1]:void 0)}});var TD=Function.prototype,Bk=TD.apply,hle=TD.bind,kk=TD.call,gle=typeof Reflect=="object"&&Reflect.apply||(hle?kk.bind(Bk):function(){return kk.apply(Bk,arguments)}),Fk=(hn("species"),RegExp.prototype),vle=KR.charAt,mle=function(e,t,n){return t+(n?vle(e,t).length:1)},yle=Math.floor,A2=Pe("".charAt),ble=Pe("".replace),O2=Pe("".slice),wle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ele=/\$([$&'`]|\d{1,2})/g,Dle=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Ele;return o!==void 0&&(o=nh(o),s=wle),ble(i,s,function(l,c){var f;switch(A2(c,0)){case"$":return"$";case"&":return e;case"`":return O2(t,0,n);case"'":return O2(t,a);case"<":f=o[O2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=yle(d/10);return p===0?l:p<=u?r[p-1]===void 0?A2(c,1):r[p-1]+A2(c,1):l}f=r[d-1]}return f===void 0?"":f})},Cle=we.TypeError,Sle=function(e,t){var n=e.exec;if(Tt(n)){var r=an(n,e,t);return r!==null&&qn(r),r}if(ti(e)==="RegExp")return an(Rv,e,t);throw Cle("RegExp#exec called on incompatible receiver")},L6=hn("replace"),xle=Math.max,Ale=Math.min,Ole=Pe([].concat),B2=Pe([].push),Tk=Pe("".indexOf),_k=Pe("".slice),Ble="a".replace(/./,"$0")==="$0",jk=!!/./[L6]&&/./[L6]("a","$0")==="";(function(e,t,n,r){var o=hn(e),i=!At(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!At(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Pe(/./[o]),s=function(l,c,f){var d=jk?"$":"$0";return[function(p,v){var m=fm(this),g=p==null?void 0:np(p,L6);return g?an(g,p,m,v):an(c,qo(m),p,v)},function(p,v){var m=qn(this),g=qo(p);if(typeof v=="string"&&Tk(v,d)===-1&&Tk(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=Tt(v);h||(v=qo(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var D=[];;){var S=Sle(m,g);if(S===null||(B2(D,S),!b))break;qo(S[0])===""&&(m.lastIndex=mle(g,RR(m.lastIndex),w))}for(var C,O="",F=0,L=0;L<D.length;L++){for(var H=qo((S=D[L])[0]),M=xle(Ale(oh(S.index),g.length),0),K=[],V=1;V<S.length;V++)B2(K,(C=S[V])===void 0?C:String(C));var G=S.groups;if(h){var q=Ole([H],K,M,g);G!==void 0&&B2(q,G);var ne=qo(gle(v,void 0,q))}else ne=Dle(H,g,M,K,G,v);M>=F&&(O+=_k(g,F,M)+ne,F=M+H.length)}return O+_k(g,F)}]}(0,""[e],function(l,c,f,d,p){var v=Pe(l),m=c.exec;return m===Rv||m===Fk.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});ui(String.prototype,e,s[0]),ui(Fk,o,s[1])}})("replace",0,!!At(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Ble||jk);var kle=we.TypeError,lL=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&OD(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&j6(s))l=wc(s),c=lL(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw kle("Exceed the acceptable array length");e[c]=s}c++}f++}return c},Fle=lL;function k2(e){return e.length?e[0].tagName.toLowerCase():""}Oa({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=nh(this),n=wc(t),r=tL(t,0);return r.length=Fle(r,t,t,n,0,e===void 0?1:oh(e)),r}}),gd("flat"),Oa({global:!0},{globalThis:we}),Ar&&(k.fn.append=Ar),xr&&(k.fn.attr=xr),Il&&(k.fn.parent=Il);var Tle={renderElems:[Vse],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(R.isExpanded(a))t(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)t(i);else{var s=u.level,l=s===void 0?0:s;l>0?I.setNodes(o,{level:l-1}):I.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(R.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void I.setNodes(o,{level:d+1})}}if(R.isExpanded(l)){var p=0,v=!1;try{for(var m=Ck(Sk(o)),g=m.next();!g.done;g=m.next()){var y=md(g.value,1)[0];A.getNodeType(y)==="list-item"?p++:v=!0}}catch(C){i={error:C}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}if(v||p<=1)return void n();try{for(var h=Ck(Sk(o)),b=h.next();!b.done;b=h.next()){var w=md(b.value,2),D=(y=w[0],w[1]),S=y.level;d=S===void 0?0:S,I.setNodes(o,{level:d+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=md(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||I.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[sle,lle],elemsToHtml:[cle],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(a){return!!oe.isText(a)||!!n.isInline(a)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return k2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=k2(s);l==="ul"||l==="ol";)l=k2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},cL=as(function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[d]=C[v]=C[m]=C[g]=C[h]=!1;var O=typeof at=="object"&&at&&at.Object===Object&&at,F=typeof self=="object"&&self&&self.Object===Object&&self,L=O||F||Function("return this")(),H=t&&!t.nodeType&&t,M=H&&e&&!e.nodeType&&e,K=M&&M.exports===H,V=K&&O.process,G=function(){try{return V&&V.binding&&V.binding("util")}catch{}}(),q=G&&G.isTypedArray;function ne(_,N){for(var J=-1,he=_==null?0:_.length;++J<he;)if(N(_[J],J,_))return!0;return!1}function se(_){var N=-1,J=Array(_.size);return _.forEach(function(he,et){J[++N]=[et,he]}),J}function ue(_){var N=-1,J=Array(_.size);return _.forEach(function(he){J[++N]=he}),J}var ae=Array.prototype,B=Function.prototype,x=Object.prototype,j=L["__core-js_shared__"],$=B.toString,Y=x.hasOwnProperty,U=function(){var _=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),ie=x.toString,ge=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=K?L.Buffer:void 0,De=L.Symbol,W=L.Uint8Array,Ne=x.propertyIsEnumerable,Ae=ae.splice,de=De?De.toStringTag:void 0,Oe=Object.getOwnPropertySymbols,Ot=ve?ve.isBuffer:void 0,$e=function(_,N){return function(J){return _(N(J))}}(Object.keys,Object),Qe=pi(L,"DataView"),gt=pi(L,"Map"),gn=pi(L,"Promise"),Me=pi(L,"Set"),In=pi(L,"WeakMap"),jr=pi(Object,"create"),to=Lo(Qe),ys=Lo(gt),$a=Lo(gn),Pr=Lo(Me),no=Lo(In),Io=De?De.prototype:void 0,vn=Io?Io.valueOf:void 0;function mn(_){var N=-1,J=_==null?0:_.length;for(this.clear();++N<J;){var he=_[N];this.set(he[0],he[1])}}function yn(_){var N=-1,J=_==null?0:_.length;for(this.clear();++N<J;){var he=_[N];this.set(he[0],he[1])}}function kn(_){var N=-1,J=_==null?0:_.length;for(this.clear();++N<J;){var he=_[N];this.set(he[0],he[1])}}function tn(_){var N=-1,J=_==null?0:_.length;for(this.__data__=new kn;++N<J;)this.add(_[N])}function fr(_){var N=this.__data__=new yn(_);this.size=N.size}function Dc(_,N){var J=Mo(_),he=!J&&bh(_),et=!J&&!he&&ro(_),je=!J&&!he&&!et&&io(_),T=J||he||et||je,z=T?function(ze,vt){for(var st=-1,Ve=Array(ze);++st<ze;)Ve[st]=vt(st);return Ve}(_.length,String):[],re=z.length;for(var le in _)!Y.call(_,le)||T&&(le=="length"||et&&(le=="offset"||le=="parent")||je&&(le=="buffer"||le=="byteLength"||le=="byteOffset")||Cc(le,re))||z.push(le);return z}function di(_,N){for(var J=_.length;J--;)if(Es(_[J][0],N))return J;return-1}function No(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":de&&de in Object(_)?function(N){var J=Y.call(N,de),he=N[de];try{N[de]=void 0;var et=!0}catch{}var je=ie.call(N);return et&&(J?N[de]=he:delete N[de]),je}(_):function(N){return ie.call(N)}(_)}function bs(_){return hi(_)&&No(_)==o}function Ha(_,N,J,he,et){return _===N||(_==null||N==null||!hi(_)&&!hi(N)?_!=_&&N!=N:function(je,T,z,re,le,ze){var vt=Mo(je),st=Mo(T),Ve=vt?i:Kn(je),Yt=st?i:Kn(T),bn=(Ve=Ve==o?d:Ve)==d,Ua=(Yt=Yt==o?d:Yt)==d,zo=Ve==Yt;if(zo&&ro(je)){if(!ro(T))return!1;vt=!0,bn=!1}if(zo&&!bn)return ze||(ze=new fr),vt||io(je)?dr(je,T,z,re,le,ze):function(Re,We,Ge,Bt,Fn,Nn,Rr){switch(Ge){case w:if(Re.byteLength!=We.byteLength||Re.byteOffset!=We.byteOffset)return!1;Re=Re.buffer,We=We.buffer;case b:return!(Re.byteLength!=We.byteLength||!Nn(new W(Re),new W(We)));case a:case u:case f:return Es(+Re,+We);case s:return Re.name==We.name&&Re.message==We.message;case v:case g:return Re==We+"";case c:var vi=se;case m:var xc=1&Bt;if(vi||(vi=ue),Re.size!=We.size&&!xc)return!1;var Dh=Rr.get(Re);if(Dh)return Dh==We;Bt|=2,Rr.set(Re,We);var Ds=dr(vi(Re),vi(We),Bt,Fn,Nn,Rr);return Rr.delete(Re),Ds;case y:if(vn)return vn.call(Re)==vn.call(We)}return!1}(je,T,Ve,z,re,le,ze);if(!(1&z)){var gi=bn&&Y.call(je,"__wrapped__"),ye=Ua&&Y.call(T,"__wrapped__");if(gi||ye){var Xe=gi?je.value():je,_t=ye?T.value():T;return ze||(ze=new fr),le(Xe,_t,z,re,ze)}}return zo?(ze||(ze=new fr),function(Re,We,Ge,Bt,Fn,Nn){var Rr=1&Ge,vi=Ro(Re),xc=vi.length,Dh=Ro(We).length;if(xc!=Dh&&!Rr)return!1;for(var Ds=xc;Ds--;){var Va=vi[Ds];if(!(Rr?Va in We:Y.call(We,Va)))return!1}var fS=Nn.get(Re);if(fS&&Nn.get(We))return fS==We;var Ch=!0;Nn.set(Re,We),Nn.set(We,Re);for(var Pm=Rr;++Ds<xc;){var Sh=Re[Va=vi[Ds]],xh=We[Va];if(Bt)var dS=Rr?Bt(xh,Sh,Va,We,Re,Nn):Bt(Sh,xh,Va,Re,We,Nn);if(!(dS===void 0?Sh===xh||Fn(Sh,xh,Ge,Bt,Nn):dS)){Ch=!1;break}Pm||(Pm=Va=="constructor")}if(Ch&&!Pm){var Ah=Re.constructor,Oh=We.constructor;Ah==Oh||!("constructor"in Re)||!("constructor"in We)||typeof Ah=="function"&&Ah instanceof Ah&&typeof Oh=="function"&&Oh instanceof Oh||(Ch=!1)}return Nn.delete(Re),Nn.delete(We),Ch}(je,T,z,re,le,ze)):!1}(_,N,J,he,Ha,et))}function ws(_){return!(!wh(_)||function(N){return!!U&&U in N}(_))&&(Sc(_)?ge:D).test(Lo(_))}function Ir(_){if(J=(N=_)&&N.constructor,he=typeof J=="function"&&J.prototype||x,N!==he)return $e(_);var N,J,he,et=[];for(var je in Object(_))Y.call(_,je)&&je!="constructor"&&et.push(je);return et}function dr(_,N,J,he,et,je){var T=1&J,z=_.length,re=N.length;if(z!=re&&!(T&&re>z))return!1;var le=je.get(_);if(le&&je.get(N))return le==N;var ze=-1,vt=!0,st=2&J?new tn:void 0;for(je.set(_,N),je.set(N,_);++ze<z;){var Ve=_[ze],Yt=N[ze];if(he)var bn=T?he(Yt,Ve,ze,N,_,je):he(Ve,Yt,ze,_,N,je);if(bn!==void 0){if(bn)continue;vt=!1;break}if(st){if(!ne(N,function(Ua,zo){if(gi=zo,!st.has(gi)&&(Ve===Ua||et(Ve,Ua,J,he,je)))return st.push(zo);var gi})){vt=!1;break}}else if(Ve!==Yt&&!et(Ve,Yt,J,he,je)){vt=!1;break}}return je.delete(_),je.delete(N),vt}function Ro(_){return function(N,J,he){var et=J(N);return Mo(N)?et:function(je,T){for(var z=-1,re=T.length,le=je.length;++z<re;)je[le+z]=T[z];return je}(et,he(N))}(_,Eh,yh)}function Nr(_,N){var J,he,et=_.__data__;return((he=typeof(J=N))=="string"||he=="number"||he=="symbol"||he=="boolean"?J!=="__proto__":J===null)?et[typeof N=="string"?"string":"hash"]:et.map}function pi(_,N){var J=function(he,et){return he==null?void 0:he[et]}(_,N);return ws(J)?J:void 0}mn.prototype.clear=function(){this.__data__=jr?jr(null):{},this.size=0},mn.prototype.delete=function(_){var N=this.has(_)&&delete this.__data__[_];return this.size-=N?1:0,N},mn.prototype.get=function(_){var N=this.__data__;if(jr){var J=N[_];return J===n?void 0:J}return Y.call(N,_)?N[_]:void 0},mn.prototype.has=function(_){var N=this.__data__;return jr?N[_]!==void 0:Y.call(N,_)},mn.prototype.set=function(_,N){var J=this.__data__;return this.size+=this.has(_)?0:1,J[_]=jr&&N===void 0?n:N,this},yn.prototype.clear=function(){this.__data__=[],this.size=0},yn.prototype.delete=function(_){var N=this.__data__,J=di(N,_);return!(J<0)&&(J==N.length-1?N.pop():Ae.call(N,J,1),--this.size,!0)},yn.prototype.get=function(_){var N=this.__data__,J=di(N,_);return J<0?void 0:N[J][1]},yn.prototype.has=function(_){return di(this.__data__,_)>-1},yn.prototype.set=function(_,N){var J=this.__data__,he=di(J,_);return he<0?(++this.size,J.push([_,N])):J[he][1]=N,this},kn.prototype.clear=function(){this.size=0,this.__data__={hash:new mn,map:new(gt||yn),string:new mn}},kn.prototype.delete=function(_){var N=Nr(this,_).delete(_);return this.size-=N?1:0,N},kn.prototype.get=function(_){return Nr(this,_).get(_)},kn.prototype.has=function(_){return Nr(this,_).has(_)},kn.prototype.set=function(_,N){var J=Nr(this,_),he=J.size;return J.set(_,N),this.size+=J.size==he?0:1,this},tn.prototype.add=tn.prototype.push=function(_){return this.__data__.set(_,n),this},tn.prototype.has=function(_){return this.__data__.has(_)},fr.prototype.clear=function(){this.__data__=new yn,this.size=0},fr.prototype.delete=function(_){var N=this.__data__,J=N.delete(_);return this.size=N.size,J},fr.prototype.get=function(_){return this.__data__.get(_)},fr.prototype.has=function(_){return this.__data__.has(_)},fr.prototype.set=function(_,N){var J=this.__data__;if(J instanceof yn){var he=J.__data__;if(!gt||he.length<199)return he.push([_,N]),this.size=++J.size,this;J=this.__data__=new kn(he)}return J.set(_,N),this.size=J.size,this};var yh=Oe?function(_){return _==null?[]:(_=Object(_),function(N,J){for(var he=-1,et=N==null?0:N.length,je=0,T=[];++he<et;){var z=N[he];J(z,he,N)&&(T[je++]=z)}return T}(Oe(_),function(N){return Ne.call(_,N)}))}:function(){return[]},Kn=No;function Cc(_,N){return!!(N=N??r)&&(typeof _=="number"||S.test(_))&&_>-1&&_%1==0&&_<N}function Lo(_){if(_!=null){try{return $.call(_)}catch{}try{return _+""}catch{}}return""}function Es(_,N){return _===N||_!=_&&N!=N}(Qe&&Kn(new Qe(new ArrayBuffer(1)))!=w||gt&&Kn(new gt)!=c||gn&&Kn(gn.resolve())!=p||Me&&Kn(new Me)!=m||In&&Kn(new In)!=h)&&(Kn=function(_){var N=No(_),J=N==d?_.constructor:void 0,he=J?Lo(J):"";if(he)switch(he){case to:return w;case ys:return c;case $a:return p;case Pr:return m;case no:return h}return N});var bh=bs(function(){return arguments}())?bs:function(_){return hi(_)&&Y.call(_,"callee")&&!Ne.call(_,"callee")},Mo=Array.isArray,ro=Ot||function(){return!1};function Sc(_){if(!wh(_))return!1;var N=No(_);return N==l||N=="[object GeneratorFunction]"||N=="[object AsyncFunction]"||N=="[object Proxy]"}function oo(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function wh(_){var N=typeof _;return _!=null&&(N=="object"||N=="function")}function hi(_){return _!=null&&typeof _=="object"}var io=q?function(_){return function(N){return _(N)}}(q):function(_){return hi(_)&&oo(_.length)&&!!C[No(_)]};function Eh(_){return(N=_)!=null&&oo(N.length)&&!Sc(N)?Dc(_):Ir(_);var N}e.exports=function(_,N){return Ha(_,N)}});Gn("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"}}),Gn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var Pk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fL(e){var t={exports:{}};return e(t,t.exports),t.exports}var Pi,tg,d0=function(e){return e&&e.Math==Math&&e},_e=d0(typeof globalThis=="object"&&globalThis)||d0(typeof window=="object"&&window)||d0(typeof self=="object"&&self)||d0(typeof Pk=="object"&&Pk)||function(){return this}()||Function("return this")(),qt=function(e){try{return!!e()}catch{return!0}},Ba=!qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Df=Function.prototype.call,Jt=Df.bind?Df.bind(Df):function(){return Df.apply(Df,arguments)},Ik={}.propertyIsEnumerable,Nk=Object.getOwnPropertyDescriptor,_le={f:Nk&&!Ik.call({1:2},1)?function(e){var t=Nk(this,e);return!!t&&t.enumerable}:Ik},_D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dL=Function.prototype,M6=dL.bind,z6=dL.call,jle=M6&&M6.bind(z6),Le=M6?function(e){return e&&jle(z6,e)}:function(e){return e&&function(){return z6.apply(e,arguments)}},Ple=Le({}.toString),Ile=Le("".slice),fa=function(e){return Ile(Ple(e),8,-1)},F2=_e.Object,Nle=Le("".split),pL=qt(function(){return!F2("z").propertyIsEnumerable(0)})?function(e){return fa(e)=="String"?Nle(e,""):F2(e)}:F2,Rle=_e.TypeError,ka=function(e){if(e==null)throw Rle("Can't call method on "+e);return e},ah=function(e){return pL(ka(e))},On=function(e){return typeof e=="function"},Wr=function(e){return typeof e=="object"?e!==null:On(e)},Lle=function(e){return On(e)?e:void 0},uh=function(e,t){return arguments.length<2?Lle(_e[e]):_e[e]&&_e[e][t]},hL=Le({}.isPrototypeOf),T2=uh("navigator","userAgent")||"",Rk=_e.process,Lk=_e.Deno,Mk=Rk&&Rk.versions||Lk&&Lk.version,zk=Mk&&Mk.v8;zk&&(tg=(Pi=zk.split("."))[0]>0&&Pi[0]<4?1:+(Pi[0]+Pi[1])),!tg&&T2&&(!(Pi=T2.match(/Edge\/(\d+)/))||Pi[1]>=74)&&(Pi=T2.match(/Chrome\/(\d+)/))&&(tg=+Pi[1]);var $6=tg,H6=!!Object.getOwnPropertySymbols&&!qt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$6&&$6<41}),jD=H6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Mle=_e.Object,_2=jD?function(e){return typeof e=="symbol"}:function(e){var t=uh("Symbol");return On(t)&&hL(t.prototype,Mle(e))},zle=_e.String,gL=function(e){try{return zle(e)}catch{return"Object"}},$le=_e.TypeError,vL=function(e){if(On(e))return e;throw $le(gL(e)+" is not a function")},PD=function(e,t){var n=e[t];return n==null?void 0:vL(n)},Hle=_e.TypeError,Ule=Object.defineProperty,ID=function(e,t){try{Ule(_e,e,{value:t,configurable:!0,writable:!0})}catch{_e[e]=t}return t},da=_e["__core-js_shared__"]||ID("__core-js_shared__",{}),ND=fL(function(e){(e.exports=function(t,n){return da[t]||(da[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Vle=_e.Object,RD=function(e){return Vle(ka(e))},Wle=Le({}.hasOwnProperty),Dr=Object.hasOwn||function(e,t){return Wle(RD(e),t)},Gle=0,qle=Math.random(),Kle=Le(1 .toString),mL=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Kle(++Gle+qle,36)},Cf=ND("wks"),Ru=_e.Symbol,$k=Ru&&Ru.for,Yle=jD?Ru:Ru&&Ru.withoutSetter||mL,_r=function(e){if(!Dr(Cf,e)||!H6&&typeof Cf[e]!="string"){var t="Symbol."+e;H6&&Dr(Ru,e)?Cf[e]=Ru[e]:Cf[e]=jD&&$k?$k(t):Yle(t)}return Cf[e]},Xle=_e.TypeError,Jle=_r("toPrimitive"),LD=function(e){var t=function(n,r){if(!Wr(n)||_2(n))return n;var o,i=PD(n,Jle);if(i){if(o=Jt(i,n,r),!Wr(o)||_2(o))return o;throw Xle("Can't convert object to primitive value")}return function(a,u){var s,l;if(On(s=a.toString)&&!Wr(l=Jt(s,a))||On(s=a.valueOf)&&!Wr(l=Jt(s,a))||u!=="string")return l;throw Hle("Can't convert object to primitive value")}(n,r)}(e,"string");return _2(t)?t:t+""},U6=_e.document,Zle=Wr(U6)&&Wr(U6.createElement),MD=function(e){return Zle?U6.createElement(e):{}},yL=!Ba&&!qt(function(){return Object.defineProperty(MD("div"),"a",{get:function(){return 7}}).a!=7}),Hk=Object.getOwnPropertyDescriptor,bL={f:Ba?Hk:function(e,t){if(e=ah(e),t=LD(t),yL)try{return Hk(e,t)}catch{}if(Dr(e,t))return _D(!Jt(_le.f,e,t),e[t])}},Qle=_e.String,ece=_e.TypeError,Cr=function(e){if(Wr(e))return e;throw ece(Qle(e)+" is not an object")},tce=_e.TypeError,Uk=Object.defineProperty,sh={f:Ba?Uk:function(e,t,n){if(Cr(e),t=LD(t),Cr(n),yL)try{return Uk(e,t,n)}catch{}if("get"in n||"set"in n)throw tce("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yl=Ba?function(e,t,n){return sh.f(e,t,_D(1,n))}:function(e,t,n){return e[t]=n,e},nce=Le(Function.toString);On(da.inspectSource)||(da.inspectSource=function(e){return nce(e)});var Lv,yd,Mv,zD=da.inspectSource,Vk=_e.WeakMap,rce=On(Vk)&&/native code/.test(zD(Vk)),Wk=ND("keys"),wL=function(e){return Wk[e]||(Wk[e]=mL(e))},$D={},V6=_e.TypeError,oce=_e.WeakMap;if(rce||da.state){var eu=da.state||(da.state=new oce),ice=Le(eu.get),Gk=Le(eu.has),ace=Le(eu.set);Lv=function(e,t){if(Gk(eu,e))throw new V6("Object already initialized");return t.facade=e,ace(eu,e,t),t},yd=function(e){return ice(eu,e)||{}},Mv=function(e){return Gk(eu,e)}}else{var Hs=wL("state");$D[Hs]=!0,Lv=function(e,t){if(Dr(e,Hs))throw new V6("Object already initialized");return t.facade=e,Yl(e,Hs,t),t},yd=function(e){return Dr(e,Hs)?e[Hs]:{}},Mv=function(e){return Dr(e,Hs)}}var W6={set:Lv,get:yd,has:Mv,enforce:function(e){return Mv(e)?yd(e):Lv(e,{})},getterFor:function(e){return function(t){var n;if(!Wr(t)||(n=yd(t)).type!==e)throw V6("Incompatible receiver, "+e+" required");return n}}},EL=Function.prototype,uce=Ba&&Object.getOwnPropertyDescriptor,j2=Dr(EL,"name"),HD={EXISTS:j2,PROPER:j2&&(function(){}).name==="something",CONFIGURABLE:j2&&(!Ba||Ba&&uce(EL,"name").configurable)},rp=fL(function(e){var t=HD.CONFIGURABLE,n=W6.get,r=W6.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;On(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dr(u,"name")||t&&u.name!==p)&&Yl(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==_e?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Yl(i,a,u)):f?i[a]=u:ID(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||zD(this)})}),sce=Math.ceil,lce=Math.floor,gm=function(e){var t=+e;return t!=t||t===0?0:(t>0?lce:sce)(t)},cce=Math.max,fce=Math.min,op=function(e,t){var n=gm(e);return n<0?cce(n+t,0):fce(n,t)},dce=Math.min,UD=function(e){return e>0?dce(gm(e),9007199254740991):0},vm=function(e){return UD(e.length)},pce=function(e){return function(t,n,r){for(var o=ah(t),i=vm(o),a=op(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},hce=pce(),qk=Le([].push),DL=function(e,t){var n,r=ah(e),o=0,i=[];for(n in r)!Dr($D,n)&&Dr(r,n)&&qk(i,n);for(;t.length>o;)Dr(r,n=t[o++])&&(~hce(i,n)||qk(i,n));return i},zv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gce=zv.concat("length","prototype"),vce={f:Object.getOwnPropertyNames||function(e){return DL(e,gce)}},mce={f:Object.getOwnPropertySymbols},yce=Le([].concat),bce=uh("Reflect","ownKeys")||function(e){var t=vce.f(Cr(e)),n=mce.f;return n?yce(t,n(e)):t},wce=function(e,t){for(var n=bce(t),r=sh.f,o=bL.f,i=0;i<n.length;i++){var a=n[i];Dr(e,a)||r(e,a,o(t,a))}},Ece=/#|\.prototype\./,lh=function(e,t){var n=Cce[Dce(e)];return n==xce||n!=Sce&&(On(t)?qt(t):!!t)},Dce=lh.normalize=function(e){return String(e).replace(Ece,".").toLowerCase()},Cce=lh.data={},Sce=lh.NATIVE="N",xce=lh.POLYFILL="P",Ace=lh,Oce=bL.f,Fa=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?_e:l?_e[u]||ID(u,{}):(_e[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Oce(n,r))&&a.value:n[r],!Ace(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;wce(i,o)}(e.sham||o&&o.sham)&&Yl(i,"sham",!0),rp(n,r,i,e)}},CL={};CL[_r("toStringTag")]="z";var VD=String(CL)==="[object z]",Bce=_r("toStringTag"),kce=_e.Object,Fce=fa(function(){return arguments}())=="Arguments",WD=VD?fa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=kce(e),Bce))=="string"?n:Fce?fa(t):(r=fa(t))=="Object"&&On(t.callee)?"Arguments":r},Tce=_e.String,Cn=function(e){if(WD(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Tce(e)},_ce=/"/g,jce=Le("".replace);Fa({target:"String",proto:!0,forced:qt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=Cn(ka(this)),r="<a",(r+=' name="'+jce(Cn(t),_ce,""")+'"')+">"+n+"</a>";var t,n,r}});var p0,SL=function(){var e=Cr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},GD=_e.RegExp,G6=qt(function(){var e=GD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),Pce=G6||qt(function(){return!GD("a","y").sticky}),xL={BROKEN_CARET:G6||qt(function(){var e=GD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:Pce,UNSUPPORTED_Y:G6},Ice=Object.keys||function(e){return DL(e,zv)},Nce=Ba?Object.defineProperties:function(e,t){Cr(e);for(var n,r=ah(t),o=Ice(t),i=o.length,a=0;i>a;)sh.f(e,n=o[a++],r[n]);return e},Rce=uh("document","documentElement"),AL=wL("IE_PROTO"),P2=function(){},OL=function(e){return"<script>"+e+"<\/script>"},Kk=function(e){e.write(OL("")),e.close();var t=e.parentWindow.Object;return e=null,t},ng=function(){try{p0=new ActiveXObject("htmlfile")}catch{}var e,t;ng=typeof document<"u"?document.domain&&p0?Kk(p0):((t=MD("iframe")).style.display="none",Rce.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(OL("document.F=Object")),e.close(),e.F):Kk(p0);for(var n=zv.length;n--;)delete ng.prototype[zv[n]];return ng()};$D[AL]=!0;var Yk,I2,BL=Object.create||function(e,t){var n;return e!==null?(P2.prototype=Cr(e),n=new P2,P2.prototype=null,n[AL]=e):n=ng(),t===void 0?n:Nce(n,t)},Lce=_e.RegExp,Mce=qt(function(){var e=Lce(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),zce=_e.RegExp,$ce=qt(function(){var e=zce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Hce=W6.get,Uce=ND("native-string-replace",String.prototype.replace),$v=RegExp.prototype.exec,q6=$v,Vce=Le("".charAt),Wce=Le("".indexOf),Gce=Le("".replace),N2=Le("".slice),R2=(I2=/b*/g,Jt($v,Yk=/a/,"a"),Jt($v,I2,"a"),Yk.lastIndex!==0||I2.lastIndex!==0),Xk=xL.BROKEN_CARET,L2=/()??/.exec("")[1]!==void 0;(R2||L2||Xk||Mce||$ce)&&(q6=function(e){var t,n,r,o,i,a,u,s=this,l=Hce(s),c=Cn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Jt(q6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Xk&&s.sticky,v=Jt(SL,s),m=s.source,g=0,y=c;if(p&&(v=Gce(v,"y",""),Wce(v,"g")===-1&&(v+="g"),y=N2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Vce(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),L2&&(n=new RegExp("^"+m+"$(?!\\s)",v)),R2&&(r=s.lastIndex),o=Jt($v,p?n:s,y),p?o?(o.input=N2(o.input,g),o[0]=N2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:R2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),L2&&o&&o.length>1&&Jt(Uce,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=BL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ip=q6;Fa({target:"RegExp",proto:!0,forced:/./.exec!==ip},{exec:ip});var Hv=Array.isArray||function(e){return fa(e)=="Array"},kL=function(){},qce=[],FL=uh("Reflect","construct"),qD=/^\s*(?:class|function)\b/,Kce=Le(qD.exec),Yce=!qD.exec(kL),Sf=function(e){if(!On(e))return!1;try{return FL(kL,qce,e),!0}catch{return!1}},KD=!FL||qt(function(){var e;return Sf(Sf.call)||!Sf(Object)||!Sf(function(){e=!0})||e})?function(e){if(!On(e))return!1;switch(WD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Yce||!!Kce(qD,zD(e))}:Sf,TL=function(e,t,n){var r=LD(t);r in e?sh.f(e,r,_D(0,n)):e[r]=n},Xce=_r("species"),YD=function(e){return $6>=51||!qt(function(){var t=[];return(t.constructor={})[Xce]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Jce=Le([].slice),Zce=YD("slice"),Qce=_r("species"),M2=_e.Array,efe=Math.max;function Qr(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Jk(e){var t=e.selection;if(t==null)return!1;var n=Qr(E.nodes(e,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=Qr(n,2)[1],o=E.start(e,r);if(ke.equals(t.anchor,o))return!0}return!1}function Zk(e,t){var n,r,o=E.nodes(e,{at:t,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}Fa({target:"Array",proto:!0,forced:!Zce},{slice:function(e,t){var n,r,o,i=ah(this),a=vm(i),u=op(e,a),s=op(t===void 0?a:t,a);if(Hv(i)&&(n=i.constructor,(KD(n)&&(n===M2||Hv(n.prototype))||Wr(n)&&(n=n[Qce])===null)&&(n=void 0),n===M2||n===void 0))return Jce(i,u,s);for(r=new(n===void 0?M2:n)(efe(s-u,0)),o=0;u<s;u++,o++)u in i&&TL(r,o,i[u]);return r.length=o,r}});var Qk=Le(Le.bind),tfe=_r("species"),eF=_e.Array,nfe=function(e,t){return new(function(n){var r;return Hv(n)&&(r=n.constructor,(KD(r)&&(r===eF||Hv(r.prototype))||Wr(r)&&(r=r[tfe])===null)&&(r=void 0)),r===void 0?eF:r}(e))(t===0?0:t)},tF=Le([].push),Ii=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=RD(s),m=pL(v),g=function(D,S){return vL(D),S===void 0?D:Qk?Qk(D,S):function(){return D.apply(S,arguments)}}(l,c),y=vm(m),h=0,b=f||nfe,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:tF(w,d)}else switch(e){case 4:return!1;case 7:tF(w,d)}return i?-1:r||o?o:w}},mm={forEach:Ii(0),map:Ii(1),filter:Ii(2),some:Ii(3),every:Ii(4),find:Ii(5),findIndex:Ii(6),filterReject:Ii(7)},rfe=mm.map;Fa({target:"Array",proto:!0,forced:!YD("map")},{map:function(e){return rfe(this,e,arguments.length>1?arguments[1]:void 0)}});var ofe=VD?{}.toString:function(){return"[object "+WD(this)+"]"};function ym(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function _L(e){return ym(e).every(function(t){return!!t.isHeader})}VD||rp(Object.prototype,"toString",ofe,{unsafe:!0});var ife=HD.PROPER,K6=RegExp.prototype,jL=K6.toString,afe=Le(SL),ufe=qt(function(){return jL.call({source:"a",flags:"b"})!="/a/b"}),sfe=ife&&jL.name!="toString";(ufe||sfe)&&rp(RegExp.prototype,"toString",function(){var e=Cr(this),t=Cn(e.source),n=e.flags;return"/"+t+"/"+Cn(n===void 0&&hL(K6,e)&&!("flags"in K6)?afe(e):n)},{unsafe:!0});var Y6=_r("unscopables"),X6=Array.prototype;X6[Y6]==null&&sh.f(X6,Y6,{configurable:!0,value:BL(null)});var lfe=mm.find,nF=!0;"find"in[]&&Array(1).find(function(){nF=!1}),Fa({target:"Array",proto:!0,forced:nF},{find:function(e){return lfe(this,e,arguments.length>1?arguments[1]:void 0)}}),X6[Y6].find=!0;var XD=Function.prototype,rF=XD.apply,cfe=XD.bind,oF=XD.call,PL=typeof Reflect=="object"&&Reflect.apply||(cfe?oF.bind(rF):function(){return oF.apply(rF,arguments)}),ffe=_r("species"),z2=RegExp.prototype,IL=function(e,t,n,r){var o=_r(e),i=!qt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!qt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[ffe]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Le(/./[o]),s=t(o,""[e],function(l,c,f,d,p){var v=Le(l),m=c.exec;return m===ip||m===z2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});rp(String.prototype,e,s[0]),rp(z2,o,s[1])}r&&Yl(z2[o],"sham",!0)},dfe=_r("match"),pfe=_e.TypeError,hfe=_r("species"),gfe=Le("".charAt),iF=Le("".charCodeAt),vfe=Le("".slice),mfe=function(e){return function(t,n){var r,o,i=Cn(ka(t)),a=gm(n),u=i.length;return a<0||a>=u?"":(r=iF(i,a))<55296||r>56319||a+1===u||(o=iF(i,a+1))<56320||o>57343?gfe(i,a):vfe(i,a,a+2)}},yfe=mfe(),NL=function(e,t,n){return t+(n?yfe(e,t).length:1)},bfe=_e.Array,wfe=Math.max,aF=function(e,t,n){for(var r=vm(e),o=op(t,r),i=op(n===void 0?r:n,r),a=bfe(wfe(i-o,0)),u=0;o<i;o++,u++)TL(a,u,e[o]);return a.length=u,a},Efe=_e.TypeError,J6=function(e,t){var n=e.exec;if(On(n)){var r=Jt(n,e,t);return r!==null&&Cr(r),r}if(fa(e)==="RegExp")return Jt(ip,e,t);throw Efe("RegExp#exec called on incompatible receiver")},Us=xL.UNSUPPORTED_Y,Dfe=Math.min,RL=[].push,Cfe=Le(/./.exec),Vs=Le(RL),xf=Le("".slice);IL("split",function(e,t,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=Cn(ka(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Wr(a=o)||!((u=a[dfe])!==void 0?u:fa(a)=="RegExp"))return Jt(t,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),m=0,g=new RegExp(o.source,v+"g");(c=Jt(ip,g,s))&&!((f=g.lastIndex)>m&&(Vs(p,xf(s,m,c.index)),c.length>1&&c.index<s.length&&PL(RL,p,aF(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&Cfe(g,"")||Vs(p,""):Vs(p,xf(s,m)),p.length>l?aF(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Jt(t,this,o,i)}:t,[function(o,i){var a=ka(this),u=o==null?void 0:PD(o,e);return u?Jt(u,o,a,i):Jt(r,Cn(a),o,i)},function(o,i){var a=Cr(this),u=Cn(o),s=n(r,a,u,i,r!==t);if(s.done)return s.value;var l=function(w,D){var S,C=Cr(w).constructor;return C===void 0||(S=Cr(C)[hfe])==null?D:function(O){if(KD(O))return O;throw pfe(gL(O)+" is not a constructor")}(S)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Us?"g":"y"),d=new l(Us?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return J6(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=Us?0:m;var y,h=J6(d,Us?xf(u,m):u);if(h===null||(y=Dfe(UD(d.lastIndex+(Us?m:0)),u.length))===v)m=NL(u,m,c);else{if(Vs(g,xf(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Vs(g,h[b]),g.length===p)return g;m=v=y}}return Vs(g,xf(u,v)),g}]},!!qt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Us);var Z6=`
- \v\f\r \u2028\u2029\uFEFF`,uF=Le("".replace),Uv="["+Z6+"]",Sfe=RegExp("^"+Uv+Uv+"*"),xfe=RegExp(Uv+Uv+"*$"),$2=function(e){return function(t){var n=Cn(ka(t));return 1&e&&(n=uF(n,Sfe,"")),2&e&&(n=uF(n,xfe,"")),n}},Afe={start:$2(1),end:$2(2),trim:$2(3)},Ofe=HD.PROPER,Bfe=Afe.trim;function LL(e){return e.length?e[0].tagName.toLowerCase():""}Fa({target:"String",proto:!0,forced:function(e){return qt(function(){return!!Z6[e]()||"
"[e]()!=="
"||Ofe&&Z6[e].name!==e})}("trim")},{trim:function(){return Bfe(this)}}),Fa({global:!0},{globalThis:_e}),Ar&&(k.fn.append=Ar),Oo&&(k.fn.on=Oo),Da&&(k.fn.focus=Da),xr&&(k.fn.attr=xr),Ao&&(k.fn.val=Ao),Ea&&(k.fn.html=Ea),jl&&(k.fn.dataset=jl),Fl&&(k.fn.addClass=Fl),Tl&&(k.fn.removeClass=Tl),Rl&&(k.fn.children=Rl),Vg&&(k.fn.each=Vg),Nl&&(k.fn.find=Nl);var ap=!1,ML=0,zL=0,up=null,sp=null,bd=k("body");function $L(e){ap=!1,sp=null,up=null,bd.off("mousemove",HL),bd.off("mouseup",$L)}bd.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),ap=!0;var n=e.clientX;ML=n;var r=t.getBoundingClientRect().width;zL=r,bd.on("mousemove",HL),bd.on("mouseup",$L)}});var HL=Ku(function(e){if(ap&&sp!=null&&up!=null){e.preventDefault();var t=e.clientX,n=zL+(t-ML);(n=Math.floor(100*n)/100)<30&&(n=30),I.setNodes(sp,{width:n.toString()},{at:up})}},100),kfe={type:"table",renderElem:function(e,t,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||R.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=A.findPath(u,s),p=E.start(u,d),v=E.end(u,d),m=ke.compare(c,v)<=0&&ke.compare(c,p)>=0,g=ke.compare(f,v)<=0&&ke.compare(f,p)>=0;return!!(m&&g&&P.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,e),o=e.width,i=o===void 0?"auto":o,a=be("div",{className:"table-container","data-selected":A.isNodeSelected(n,e),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,e),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},be("table",{width:i,contentEditable:r},be("colgroup",null,ym(e).map(function(u){var s=u.width;return be("col",{width:s===void 0?"auto":s})})),be("tbody",null,t)));return a}},Ffe={type:"table-row",renderElem:function(e,t,n){return be("tr",null,t)}},Tfe={type:"table-cell",renderElem:function(e,t,n){var r=function(d,p){var v=A.getParentNode(d,p);if(v==null)return!1;var m=A.getParentNode(d,v);return m!=null&&ym(m).some(function(g){return g===p})}(n,e),o=e,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 be("td",{colSpan:a,rowSpan:s},t);var f=be(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Ku(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),m=v.left,g=v.width,y=v.top,h=v.height,b=d.clientX,w=d.clientY;ap||(b>m+g-5&&b<m+g&&w>y&&w<y+h?(p.style.cursor="col-resize",sp=n,up=A.findPath(n,e)):ap||(p.style.cursor="auto",sp=null,up=null))}},100)}},t);return f}},_fe={selector:"table",preParseHtml:function(e){var t=k(e);if(LL(t)!=="table")return e;var n=t.find("tbody");if(n.length===0)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},jfe=mm.filter;Fa({target:"Array",proto:!0,forced:!YD("filter")},{filter:function(e){return jfe(this,e,arguments.length>1?arguments[1]:void 0)}});var Pfe=Math.floor,H2=Le("".charAt),Ife=Le("".replace),U2=Le("".slice),Nfe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Rfe=/\$([$&'`]|\d{1,2})/g,Lfe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Rfe;return o!==void 0&&(o=RD(o),s=Nfe),Ife(i,s,function(l,c){var f;switch(H2(c,0)){case"$":return"$";case"&":return e;case"`":return U2(t,0,n);case"'":return U2(t,a);case"<":f=o[U2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Pfe(d/10);return p===0?l:p<=u?r[p-1]===void 0?H2(c,1):r[p-1]+H2(c,1):l}f=r[d-1]}return f===void 0?"":f})},Q6=_r("replace"),Mfe=Math.max,zfe=Math.min,$fe=Le([].concat),V2=Le([].push),sF=Le("".indexOf),lF=Le("".slice),Hfe="a".replace(/./,"$0")==="$0",cF=!!/./[Q6]&&/./[Q6]("a","$0")==="";IL("replace",function(e,t,n){var r=cF?"$":"$0";return[function(o,i){var a=ka(this),u=o==null?void 0:PD(o,Q6);return u?Jt(u,o,a,i):Jt(t,Cn(a),o,i)},function(o,i){var a=Cr(this),u=Cn(o);if(typeof i=="string"&&sF(i,r)===-1&&sF(i,"$<")===-1){var s=n(t,a,u,i);if(s.done)return s.value}var l=On(i);l||(i=Cn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=J6(a,u);if(p===null||(V2(d,p),!c))break;Cn(p[0])===""&&(a.lastIndex=NL(u,UD(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Cn((p=d[y])[0]),b=Mfe(zfe(gm(p.index),u.length),0),w=[],D=1;D<p.length;D++)V2(w,(v=p[D])===void 0?v:String(v));var S=p.groups;if(l){var C=$fe([h],w,b,u);S!==void 0&&V2(C,S);var O=Cn(PL(i,void 0,C))}else O=Lfe(h,u,b,w,S,i);b>=g&&(m+=lF(u,g,b)+O,g=b+h.length)}return m+lF(u,g)}]},!!qt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Hfe||cF);var Ufe={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e);(t=t.filter(function(u){return!!oe.isText(u)||!!n.isInline(u)})).length===0&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:LL(r)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},Vfe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Wfe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=k(e),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u}(r)==="100%"&&(o="100%"),r.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(i){return A.getNodeType(i)==="table-row"})}}},Gfe=function(){function e(){this.title=Q("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getPanelContentElem=function(t){var n=this;if(this.$content)return this.$content[0];for(var r=k('<div class="w-e-panel-content-table"></div>'),o=k("<span>0 × 0</span>"),i=k("<table></table>"),a=0;a<10;a++){for(var u=k("<tr></tr>"),s=0;s<10;s++){var l=k("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=k(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" × "+(v+1),i.children().each(function(m){k(m).children().each(function(g){var y=k(g),h=y.dataset(),b=h.x,w=h.y;b<=p&&w<=v?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=k(f).dataset(),p=d.x,v=d.y;n.insertTable(t,v+1,p+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},e.prototype.insertTable=function(t,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(t)&&I.removeNodes(t,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);I.insertNodes(t,a,{mode:"highest"})}},e}(),qfe=function(){function e(){this.title=Q("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){this.isDisabled(t)||I.removeNodes(t,{mode:"highest"})},e}(),Kfe=function(){function e(){this.title=Q("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Qr(E.nodes(t,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),o=Qr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,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=P.parent(a),d=P.next(f);I.insertNodes(t,l,{at:d})}}},e}(),Yfe=function(){function e(){this.title=Q("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Qr(E.nodes(t,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=Qr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);((u==null?void 0:u.children.length)||0)<=1?I.removeNodes(t,{mode:"highest"}):I.removeNodes(t,{at:a})}},e}(),fF={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},W2=MD("span").classList,dF=W2&&W2.constructor&&W2.constructor.prototype,Xfe=dF===Object.prototype?void 0:dF,Jfe=mm.forEach,Zfe=function(e,t){var n=[].forEach;return!!n&&qt(function(){n.call(null,function(){throw 1},1)})}(),G2=Zfe?[].forEach:function(e){return Jfe(this,e,arguments.length>1?arguments[1]:void 0)},UL=function(e){if(e&&e.forEach!==G2)try{Yl(e,"forEach",G2)}catch{e.forEach=G2}};for(var q2 in fF)fF[q2]&&UL(_e[q2]&&_e[q2].prototype);UL(Xfe);var Qfe=function(){function e(){this.title=Q("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Qr(E.nodes(t,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=Qr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i);if(u!=null){var s=A.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){ce.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(t,f);if(d.length===a.length&&cL(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&_L(s)&&(p.isHeader=!0),I.insertNodes(t,p,{at:d})}})})}}},e}(),ede=function(){function e(){this.title=Q("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=Qr(E.nodes(t,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=Qr(r[0],2),i=o[0],a=o[1],u=A.getParentNode(t,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)I.removeNodes(t,{mode:"highest"});else{var l=A.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){ce.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(t,f);d.length===a.length&&cL(d.slice(-1),a.slice(-1))&&I.removeNodes(t,{at:d})})})}}},e}(),tde=function(){function e(){this.title=Q("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&_L(n)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r=!n,o=A.getSelectedNodeByType(t,"table");o!=null&&ym(o).forEach(function(i){return I.setNodes(t,{isHeader:r},{at:A.findPath(t,i)})})}},e}(),nde=function(){function e(){this.title=Q("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var n=A.getSelectedNodeByType(t,"table");return n!=null&&n.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||A.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,n){if(!this.isDisabled(t)){var r={width:n?"auto":"100%"};I.setNodes(t,r,{mode:"highest"})}},e}(),rde={renderElems:[kfe,Ffe,Tfe],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=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)+'">'+t+"</"+c+">"}}],preParseHtml:[_fe],parseElemsHtml:[Ufe,Vfe,Wfe],menus:[{key:"insertTable",factory:function(){return new Gfe}},{key:"deleteTable",factory:function(){return new qfe}},{key:"insertTableRow",factory:function(){return new Kfe}},{key:"deleteTableRow",factory:function(){return new Yfe}},{key:"insertTableCol",factory:function(){return new Qfe}},{key:"deleteTableCol",factory:function(){return new ede}},{key:"tableHeader",factory:function(){return new tde}},{key:"tableFullWidth",factory:function(){return new nde}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
- `)},s.deleteBackward=function(l){if(!Jk(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=Zk(s,f),p=Zk(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(e);A.checkNodeType(c[0],"table-cell")&&I.select(e,c[1]);var f=E.next(e);if(f)f[0]&&f[0].text&&(f=(l=E.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),I.select(e,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var v=A.genEmptyParagraph();I.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){Jk(s)||r(l)},s.normalizeNode=function(l){var c=Qr(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return o([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();I.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
- `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(P.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Z.string(c).length!==0){var p=A.findPath(s,c),v={anchor:E.start(s,p),focus:E.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};Gn("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"}}),Gn("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 Vv=function(){return Vv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vv.apply(this,arguments)};function bm(e,t,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(e,[])).next())})}function wm(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},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=t.call(e,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 Lu(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ode(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(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.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var pF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function JD(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ni,rg,h0=function(e){return e&&e.Math==Math&&e},te=h0(typeof globalThis=="object"&&globalThis)||h0(typeof window=="object"&&window)||h0(typeof self=="object"&&self)||h0(typeof pF=="object"&&pF)||function(){return this}()||Function("return this")(),ct=function(e){try{return!!e()}catch{return!0}},ko=!ct(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Af=Function.prototype.call,lt=Af.bind?Af.bind(Af):function(){return Af.apply(Af,arguments)},hF={}.propertyIsEnumerable,gF=Object.getOwnPropertyDescriptor,ide={f:gF&&!hF.call({1:2},1)?function(e){var t=gF(this,e);return!!t&&t.enumerable}:hF},Em=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},VL=Function.prototype,e3=VL.bind,t3=VL.call,ade=e3&&e3.bind(t3),Ce=e3?function(e){return e&&ade(t3,e)}:function(e){return e&&function(){return t3.apply(e,arguments)}},ude=Ce({}.toString),sde=Ce("".slice),Co=function(e){return sde(ude(e),8,-1)},K2=te.Object,lde=Ce("".split),ZD=ct(function(){return!K2("z").propertyIsEnumerable(0)})?function(e){return Co(e)=="String"?lde(e,""):K2(e)}:K2,cde=te.TypeError,ch=function(e){if(e==null)throw cde("Can't call method on "+e);return e},La=function(e){return ZD(ch(e))},ot=function(e){return typeof e=="function"},yt=function(e){return typeof e=="object"?e!==null:ot(e)},fde=function(e){return ot(e)?e:void 0},os=function(e,t){return arguments.length<2?fde(te[e]):te[e]&&te[e][t]},lp=Ce({}.isPrototypeOf),El=os("navigator","userAgent")||"",vF=te.process,mF=te.Deno,yF=vF&&vF.versions||mF&&mF.version,bF=yF&&yF.v8;bF&&(rg=(Ni=bF.split("."))[0]>0&&Ni[0]<4?1:+(Ni[0]+Ni[1])),!rg&&El&&(!(Ni=El.match(/Edge\/(\d+)/))||Ni[1]>=74)&&(Ni=El.match(/Chrome\/(\d+)/))&&(rg=+Ni[1]);var cp=rg,n3=!!Object.getOwnPropertySymbols&&!ct(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cp&&cp<41}),QD=n3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",dde=te.Object,Y2=QD?function(e){return typeof e=="symbol"}:function(e){var t=os("Symbol");return ot(t)&&lp(t.prototype,dde(e))},pde=te.String,Wv=function(e){try{return pde(e)}catch{return"Object"}},hde=te.TypeError,Ta=function(e){if(ot(e))return e;throw hde(Wv(e)+" is not a function")},fp=function(e,t){var n=e[t];return n==null?void 0:Ta(n)},gde=te.TypeError,vde=Object.defineProperty,eC=function(e,t){try{vde(te,e,{value:t,configurable:!0,writable:!0})}catch{te[e]=t}return t},pa=te["__core-js_shared__"]||eC("__core-js_shared__",{}),tC=JD(function(e){(e.exports=function(t,n){return pa[t]||(pa[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),mde=te.Object,Dm=function(e){return mde(ch(e))},yde=Ce({}.hasOwnProperty),Wt=Object.hasOwn||function(e,t){return yde(Dm(e),t)},bde=0,wde=Math.random(),Ede=Ce(1 .toString),nC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Ede(++bde+wde,36)},Of=tC("wks"),Mu=te.Symbol,wF=Mu&&Mu.for,Dde=QD?Mu:Mu&&Mu.withoutSetter||nC,Lt=function(e){if(!Wt(Of,e)||!n3&&typeof Of[e]!="string"){var t="Symbol."+e;n3&&Wt(Mu,e)?Of[e]=Mu[e]:Of[e]=QD&&wF?wF(t):Dde(t)}return Of[e]},Cde=te.TypeError,Sde=Lt("toPrimitive"),rC=function(e){var t=function(n,r){if(!yt(n)||Y2(n))return n;var o,i=fp(n,Sde);if(i){if(o=lt(i,n,r),!yt(o)||Y2(o))return o;throw Cde("Can't convert object to primitive value")}return function(a,u){var s,l;if(ot(s=a.toString)&&!yt(l=lt(s,a))||ot(s=a.valueOf)&&!yt(l=lt(s,a))||u!=="string")return l;throw gde("Can't convert object to primitive value")}(n,r)}(e,"string");return Y2(t)?t:t+""},r3=te.document,xde=yt(r3)&&yt(r3.createElement),dp=function(e){return xde?r3.createElement(e):{}},WL=!ko&&!ct(function(){return Object.defineProperty(dp("div"),"a",{get:function(){return 7}}).a!=7}),EF=Object.getOwnPropertyDescriptor,oC={f:ko?EF:function(e,t){if(e=La(e),t=rC(t),WL)try{return EF(e,t)}catch{}if(Wt(e,t))return Em(!lt(ide.f,e,t),e[t])}},Ade=te.String,Ode=te.TypeError,ln=function(e){if(yt(e))return e;throw Ode(Ade(e)+" is not an object")},Bde=te.TypeError,DF=Object.defineProperty,ci={f:ko?DF:function(e,t,n){if(ln(e),t=rC(t),ln(n),WL)try{return DF(e,t,n)}catch{}if("get"in n||"set"in n)throw Bde("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ha=ko?function(e,t,n){return ci.f(e,t,Em(1,n))}:function(e,t,n){return e[t]=n,e},kde=Ce(Function.toString);ot(pa.inspectSource)||(pa.inspectSource=function(e){return kde(e)});var Gv,wd,qv,Cm=pa.inspectSource,CF=te.WeakMap,GL=ot(CF)&&/native code/.test(Cm(CF)),SF=tC("keys"),iC=function(e){return SF[e]||(SF[e]=nC(e))},Sm={},o3=te.TypeError,Fde=te.WeakMap;if(GL||pa.state){var tu=pa.state||(pa.state=new Fde),Tde=Ce(tu.get),xF=Ce(tu.has),_de=Ce(tu.set);Gv=function(e,t){if(xF(tu,e))throw new o3("Object already initialized");return t.facade=e,_de(tu,e,t),t},wd=function(e){return Tde(tu,e)||{}},qv=function(e){return xF(tu,e)}}else{var Ws=iC("state");Sm[Ws]=!0,Gv=function(e,t){if(Wt(e,Ws))throw new o3("Object already initialized");return t.facade=e,ha(e,Ws,t),t},wd=function(e){return Wt(e,Ws)?e[Ws]:{}},qv=function(e){return Wt(e,Ws)}}var ur={set:Gv,get:wd,has:qv,enforce:function(e){return qv(e)?wd(e):Gv(e,{})},getterFor:function(e){return function(t){var n;if(!yt(t)||(n=wd(t)).type!==e)throw o3("Incompatible receiver, "+e+" required");return n}}},qL=Function.prototype,jde=ko&&Object.getOwnPropertyDescriptor,X2=Wt(qL,"name"),Ec={EXISTS:X2,PROPER:X2&&(function(){}).name==="something",CONFIGURABLE:X2&&(!ko||ko&&jde(qL,"name").configurable)},Fr=JD(function(e){var t=Ec.CONFIGURABLE,n=ur.get,r=ur.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ot(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Wt(u,"name")||t&&u.name!==p)&&ha(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==te?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ha(i,a,u)):f?i[a]=u:eC(a,u)})(Function.prototype,"toString",function(){return ot(this)&&n(this).source||Cm(this)})}),Pde=Math.ceil,Ide=Math.floor,xm=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ide:Pde)(t)},Nde=Math.max,Rde=Math.min,pp=function(e,t){var n=xm(e);return n<0?Nde(n+t,0):Rde(n,t)},Lde=Math.min,KL=function(e){return e>0?Lde(xm(e),9007199254740991):0},fh=function(e){return KL(e.length)},AF=function(e){return function(t,n,r){var o,i=La(t),a=fh(i),u=pp(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},YL={includes:AF(!0),indexOf:AF(!1)},Mde=YL.indexOf,OF=Ce([].push),XL=function(e,t){var n,r=La(e),o=0,i=[];for(n in r)!Wt(Sm,n)&&Wt(r,n)&&OF(i,n);for(;t.length>o;)Wt(r,n=t[o++])&&(~Mde(i,n)||OF(i,n));return i},Kv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zde=Kv.concat("length","prototype"),Yv={f:Object.getOwnPropertyNames||function(e){return XL(e,zde)}},$de={f:Object.getOwnPropertySymbols},Hde=Ce([].concat),Ude=os("Reflect","ownKeys")||function(e){var t=Yv.f(ln(e)),n=$de.f;return n?Hde(t,n(e)):t},Vde=function(e,t){for(var n=Ude(t),r=ci.f,o=oC.f,i=0;i<n.length;i++){var a=n[i];Wt(e,a)||r(e,a,o(t,a))}},Wde=/#|\.prototype\./,dh=function(e,t){var n=qde[Gde(e)];return n==Yde||n!=Kde&&(ot(t)?ct(t):!!t)},Gde=dh.normalize=function(e){return String(e).replace(Wde,".").toLowerCase()},qde=dh.data={},Kde=dh.NATIVE="N",Yde=dh.POLYFILL="P",Xv=dh,Xde=oC.f,zn=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?te:l?te[u]||eC(u,{}):(te[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xde(n,r))&&a.value:n[r],!Xv(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Vde(i,o)}(e.sham||o&&o.sham)&&ha(i,"sham",!0),Fr(n,r,i,e)}},JL={};JL[Lt("toStringTag")]="z";var aC=String(JL)==="[object z]",Jde=Lt("toStringTag"),Zde=te.Object,Qde=Co(function(){return arguments}())=="Arguments",Am=aC?Co:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=Zde(e),Jde))=="string"?n:Qde?Co(t):(r=Co(t))=="Object"&&ot(t.callee)?"Arguments":r},epe=te.String,mr=function(e){if(Am(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return epe(e)},i3=`
- \v\f\r \u2028\u2029\uFEFF`,BF=Ce("".replace),Jv="["+i3+"]",tpe=RegExp("^"+Jv+Jv+"*"),npe=RegExp(Jv+Jv+"*$"),J2=function(e){return function(t){var n=mr(ch(t));return 1&e&&(n=BF(n,tpe,"")),2&e&&(n=BF(n,npe,"")),n}},rpe={start:J2(1),end:J2(2),trim:J2(3)},ope=Ec.PROPER,ipe=rpe.trim;function kF(e){return e.length?e[0].tagName.toLowerCase():""}function ZL(e,t,n){t===void 0&&(t="auto"),n===void 0&&(n="auto");var r=k(e);return r.attr("width",t),r.attr("height",n),r[0].outerHTML}zn({target:"String",proto:!0,forced:ct(function(){return!!i3.trim()||"
".trim()!=="
"||ope&&i3.trim.name!=="trim"})},{trim:function(){return ipe(this)}}),zn({global:!0},{globalThis:te}),Ar&&(k.fn.append=Ar),Oo&&(k.fn.on=Oo),Da&&(k.fn.focus=Da),xr&&(k.fn.attr=xr),Ao&&(k.fn.val=Ao),Ea&&(k.fn.html=Ea),Il&&(k.fn.parent=Il),_l&&(k.fn.hasClass=_l),Ml&&(k.fn.empty=Ml);var g0,ape={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=A.isNodeSelected(n,e);if(a.trim().indexOf("<iframe ")===0)r=be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:ZL(a,c,d)});else{var v=be("video",{poster:s,controls:!0},be("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
- 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),r=be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return zl("div",{props:{contentEditable:!1},on:{mousedown:function(m){return m.preventDefault()}}},r)}},upe={type:"video",elemToHtml:function(e,t){var n=e,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+=ZL(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
- </div>`}},spe=Object.keys||function(e){return XL(e,Kv)},lpe=ko?Object.defineProperties:function(e,t){ln(e);for(var n,r=La(t),o=spe(t),i=o.length,a=0;i>a;)ci.f(e,n=o[a++],r[n]);return e},a3=os("document","documentElement"),QL=iC("IE_PROTO"),Z2=function(){},eM=function(e){return"<script>"+e+"<\/script>"},FF=function(e){e.write(eM("")),e.close();var t=e.parentWindow.Object;return e=null,t},og=function(){try{g0=new ActiveXObject("htmlfile")}catch{}var e,t;og=typeof document<"u"?document.domain&&g0?FF(g0):((t=dp("iframe")).style.display="none",a3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(eM("document.F=Object")),e.close(),e.F):FF(g0);for(var n=Kv.length;n--;)delete og.prototype[Kv[n]];return og()};Sm[QL]=!0;var uC=Object.create||function(e,t){var n;return e!==null?(Z2.prototype=ln(e),n=new Z2,Z2.prototype=null,n[QL]=e):n=og(),t===void 0?n:lpe(n,t)},u3=Lt("unscopables"),s3=Array.prototype;s3[u3]==null&&ci.f(s3,u3,{configurable:!0,value:uC(null)});var Ed=function(e){s3[u3][e]=!0},cpe=YL.includes;zn({target:"Array",proto:!0},{includes:function(e){return cpe(this,e,arguments.length>1?arguments[1]:void 0)}}),Ed("includes");var fpe={selector:"iframe,video,p",preParseHtml:function(e){var t=k(e),n=t;if(kF(t)==="p"){var r=t.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=k(o))}}var a=kF(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=k('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},TF=Ce(Ce.bind),hp=function(e,t){return Ta(e),t===void 0?e:TF?TF(e,t):function(){return e.apply(t,arguments)}},Zv=Array.isArray||function(e){return Co(e)=="Array"},tM=function(){},dpe=[],nM=os("Reflect","construct"),sC=/^\s*(?:class|function)\b/,ppe=Ce(sC.exec),hpe=!sC.exec(tM),Bf=function(e){if(!ot(e))return!1;try{return nM(tM,dpe,e),!0}catch{return!1}},lC=!nM||ct(function(){var e;return Bf(Bf.call)||!Bf(Object)||!Bf(function(){e=!0})||e})?function(e){if(!ot(e))return!1;switch(Am(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return hpe||!!ppe(sC,Cm(e))}:Bf,gpe=Lt("species"),_F=te.Array,vpe=function(e,t){return new(function(n){var r;return Zv(n)&&(r=n.constructor,(lC(r)&&(r===_F||Zv(r.prototype))||yt(r)&&(r=r[gpe])===null)&&(r=void 0)),r===void 0?_F:r}(e))(t===0?0:t)},jF=Ce([].push),Ri=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Dm(s),m=ZD(v),g=hp(l,c),y=fh(m),h=0,b=f||vpe,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:jF(w,d)}else switch(e){case 4:return!1;case 7:jF(w,d)}return i?-1:r||o?o:w}},cC={forEach:Ri(0),map:Ri(1),filter:Ri(2),some:Ri(3),every:Ri(4),find:Ri(5),findIndex:Ri(6),filterReject:Ri(7)},mpe=cC.find,PF=!0;"find"in[]&&Array(1).find(function(){PF=!1}),zn({target:"Array",proto:!0,forced:PF},{find:function(e){return mpe(this,e,arguments.length>1?arguments[1]:void 0)}}),Ed("find");var ype=aC?{}.toString:function(){return"[object "+Am(this)+"]"};function IF(e,t,n,r){return t===void 0&&(t=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:e,poster:t,width:n,height:r,children:[{text:""}]}}aC||Fr(Object.prototype,"toString",ype,{unsafe:!0});var NF,Q2,bpe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=k(e),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",IF(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",IF(o,i=l.attr("poster")||"",a,u)}},rM=function(){var e=ln(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fC=te.RegExp,l3=ct(function(){var e=fC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),wpe=l3||ct(function(){return!fC("a","y").sticky}),Epe={BROKEN_CARET:l3||ct(function(){var e=fC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:wpe,UNSUPPORTED_Y:l3},Dpe=te.RegExp,Cpe=ct(function(){var e=Dpe(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Spe=te.RegExp,xpe=ct(function(){var e=Spe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ape=ur.get,Ope=tC("native-string-replace",String.prototype.replace),Qv=RegExp.prototype.exec,c3=Qv,Bpe=Ce("".charAt),kpe=Ce("".indexOf),Fpe=Ce("".replace),ew=Ce("".slice),tw=(Q2=/b*/g,lt(Qv,NF=/a/,"a"),lt(Qv,Q2,"a"),NF.lastIndex!==0||Q2.lastIndex!==0),RF=Epe.BROKEN_CARET,nw=/()??/.exec("")[1]!==void 0;(tw||nw||RF||Cpe||xpe)&&(c3=function(e){var t,n,r,o,i,a,u,s=this,l=Ape(s),c=mr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=lt(c3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=RF&&s.sticky,v=lt(rM,s),m=s.source,g=0,y=c;if(p&&(v=Fpe(v,"y",""),kpe(v,"g")===-1&&(v+="g"),y=ew(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Bpe(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),nw&&(n=new RegExp("^"+m+"$(?!\\s)",v)),tw&&(r=s.lastIndex),o=lt(Qv,p?n:s,y),p?o?(o.input=ew(o.input,g),o[0]=ew(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:tw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),nw&&o&&o.length>1&<(Ope,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=uC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var e1=c3;zn({target:"RegExp",proto:!0,forced:/./.exec!==e1},{exec:e1});var dC=Function.prototype,LF=dC.apply,Tpe=dC.bind,MF=dC.call,oM=typeof Reflect=="object"&&Reflect.apply||(Tpe?MF.bind(LF):function(){return MF.apply(LF,arguments)}),zF=(Lt("species"),RegExp.prototype),_pe=Ce("".charAt),$F=Ce("".charCodeAt),jpe=Ce("".slice),HF=function(e){return function(t,n){var r,o,i=mr(ch(t)),a=xm(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$F(i,a))<55296||r>56319||a+1===u||(o=$F(i,a+1))<56320||o>57343?e?_pe(i,a):r:e?jpe(i,a,a+2):o-56320+(r-55296<<10)+65536}},iM={codeAt:HF(!1),charAt:HF(!0)},Ppe=iM.charAt,Ipe=function(e,t,n){return t+(n?Ppe(e,t).length:1)},Npe=Math.floor,rw=Ce("".charAt),Rpe=Ce("".replace),ow=Ce("".slice),Lpe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Mpe=/\$([$&'`]|\d{1,2})/g,zpe=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Mpe;return o!==void 0&&(o=Dm(o),s=Lpe),Rpe(i,s,function(l,c){var f;switch(rw(c,0)){case"$":return"$";case"&":return e;case"`":return ow(t,0,n);case"'":return ow(t,a);case"<":f=o[ow(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Npe(d/10);return p===0?l:p<=u?r[p-1]===void 0?rw(c,1):r[p-1]+rw(c,1):l}f=r[d-1]}return f===void 0?"":f})},$pe=te.TypeError,Hpe=function(e,t){var n=e.exec;if(ot(n)){var r=lt(n,e,t);return r!==null&&ln(r),r}if(Co(e)==="RegExp")return lt(e1,e,t);throw $pe("RegExp#exec called on incompatible receiver")},f3=Lt("replace"),Upe=Math.max,Vpe=Math.min,Wpe=Ce([].concat),iw=Ce([].push),UF=Ce("".indexOf),VF=Ce("".slice),Gpe="a".replace(/./,"$0")==="$0",WF=!!/./[f3]&&/./[f3]("a","$0")==="";function aM(e){return e+"-"+vP()}(function(e,t,n,r){var o=Lt(e),i=!ct(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ct(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ce(/./[o]),s=function(l,c,f){var d=WF?"$":"$0";return[function(p,v){var m=ch(this),g=p==null?void 0:fp(p,f3);return g?lt(g,p,m,v):lt(c,mr(m),p,v)},function(p,v){var m=ln(this),g=mr(p);if(typeof v=="string"&&UF(v,d)===-1&&UF(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=ot(v);h||(v=mr(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var D=[];;){var S=Hpe(m,g);if(S===null||(iw(D,S),!b))break;mr(S[0])===""&&(m.lastIndex=Ipe(g,KL(m.lastIndex),w))}for(var C,O="",F=0,L=0;L<D.length;L++){for(var H=mr((S=D[L])[0]),M=Upe(Vpe(xm(S.index),g.length),0),K=[],V=1;V<S.length;V++)iw(K,(C=S[V])===void 0?C:String(C));var G=S.groups;if(h){var q=Wpe([H],K,M,g);G!==void 0&&iw(q,G);var ne=mr(oM(v,void 0,q))}else ne=zpe(H,g,M,K,G,v);M>=F&&(O+=VF(g,F,M)+ne,F=M+H.length)}return O+VF(g,F)}]}(0,""[e],function(l,c,f,d,p){var v=Ce(l),m=c.exec;return m===e1||m===zF.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Fr(String.prototype,e,s[0]),Fr(zF,o,s[1])}})("replace",0,!!ct(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Gpe||WF);var t1=te.Promise,n1=function(e,t,n){for(var r in t)Fr(e,r,t[r],n);return e},qpe=te.String,Kpe=te.TypeError,Xl=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Ce(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return ln(r),function(i){if(typeof i=="object"||ot(i))return i;throw Kpe("Can't set "+qpe(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Ype=ci.f,GF=Lt("toStringTag"),r1=function(e,t,n){e&&!Wt(e=n?e:e.prototype,GF)&&Ype(e,GF,{configurable:!0,value:t})},qF=Lt("species"),Xpe=te.TypeError,pC=function(e,t){if(lp(t,e))return e;throw Xpe("Incorrect invocation")},Jl={},Jpe=Lt("iterator"),Zpe=Array.prototype,Qpe=Lt("iterator"),KF=function(e){if(e!=null)return fp(e,Qpe)||fp(e,"@@iterator")||Jl[Am(e)]},ehe=te.TypeError,YF=function(e,t,n){var r,o;ln(e);try{if(!(r=fp(e,"return"))){if(t==="throw")throw n;return n}r=lt(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return ln(r),n},the=te.TypeError,ig=function(e,t){this.stopped=e,this.result=t},XF=ig.prototype,o1=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=hp(t,f),g=function(h){return r&&YF(r,"normal",h),new ig(!0,h)},y=function(h){return d?(ln(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=e;else{if(!(o=KF(e)))throw the(Wv(e)+" is not iterable");if((c=o)!==void 0&&(Jl.Array===c||Zpe[Jpe]===c)){for(i=0,a=fh(e);a>i;i++)if((u=y(e[i]))&&lp(XF,u))return u;return new ig(!1)}r=function(h,b){var w=arguments.length<2?KF(h):b;if(Ta(w))return ln(lt(w,h));throw ehe(Wv(h)+" is not iterable")}(e,o)}for(s=r.next;!(l=lt(s,r)).done;){try{u=y(l.value)}catch(h){YF(r,"throw",h)}if(typeof u=="object"&&u&&lp(XF,u))return u}return new ig(!1)},uM=Lt("iterator"),sM=!1;try{var nhe=0,JF={next:function(){return{done:!!nhe++}},return:function(){sM=!0}};JF[uM]=function(){return this},Array.from(JF,function(){throw 2})}catch{}var gp,Gs,ZF,aw,lM=function(e,t){if(!sM)return!1;var n=!1;try{var r={};r[uM]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},rhe=te.TypeError,ohe=Lt("species"),cM=Ce([].slice),fM=/(?:ipad|iphone|ipod).*applewebkit/i.test(El),ga=Co(te.process)=="process",d3=te.setImmediate,p3=te.clearImmediate,ihe=te.process,uw=te.Dispatch,ahe=te.Function,QF=te.MessageChannel,uhe=te.String,sw=0,Dd={};try{gp=te.location}catch{}var hC=function(e){if(Wt(Dd,e)){var t=Dd[e];delete Dd[e],t()}},lw=function(e){return function(){hC(e)}},eT=function(e){hC(e.data)},tT=function(e){te.postMessage(uhe(e),gp.protocol+"//"+gp.host)};d3&&p3||(d3=function(e){var t=cM(arguments,1);return Dd[++sw]=function(){oM(ot(e)?e:ahe(e),void 0,t)},Gs(sw),sw},p3=function(e){delete Dd[e]},ga?Gs=function(e){ihe.nextTick(lw(e))}:uw&&uw.now?Gs=function(e){uw.now(lw(e))}:QF&&!fM?(aw=(ZF=new QF).port2,ZF.port1.onmessage=eT,Gs=hp(aw.postMessage,aw)):te.addEventListener&&ot(te.postMessage)&&!te.importScripts&&gp&&gp.protocol!=="file:"&&!ct(tT)?(Gs=tT,te.addEventListener("message",eT,!1)):Gs="onreadystatechange"in dp("script")?function(e){a3.appendChild(dp("script")).onreadystatechange=function(){a3.removeChild(this),hC(e)}}:function(e){setTimeout(lw(e),0)});var kf,pu,Cd,il,cw,fw,dw,nT,dM={set:d3,clear:p3},she=/ipad|iphone|ipod/i.test(El)&&te.Pebble!==void 0,lhe=/web0s(?!.*chrome)/i.test(El),che=oC.f,pw=dM.set,rT=te.MutationObserver||te.WebKitMutationObserver,oT=te.document,iT=te.process,v0=te.Promise,aT=che(te,"queueMicrotask"),pM=aT&&aT.value;pM||(kf=function(){var e,t;for(ga&&(e=iT.domain)&&e.exit();pu;){t=pu.fn,pu=pu.next;try{t()}catch(n){throw pu?il():Cd=void 0,n}}Cd=void 0,e&&e.enter()},fM||ga||lhe||!rT||!oT?!she&&v0&&v0.resolve?((dw=v0.resolve(void 0)).constructor=v0,nT=hp(dw.then,dw),il=function(){nT(kf)}):ga?il=function(){iT.nextTick(kf)}:(pw=hp(pw,te),il=function(){pw(kf)}):(cw=!0,fw=oT.createTextNode(""),new rT(kf).observe(fw,{characterData:!0}),il=function(){fw.data=cw=!cw}));var hw,uT,hM,sT,gM=pM||function(e){var t={fn:e,next:void 0};Cd&&(Cd.next=t),pu||(pu=t,il()),Cd=t},fhe=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=Ta(t),this.reject=Ta(n)},gC={f:function(e){return new fhe(e)}},h3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},dhe=typeof window=="object",vM=dM.set,phe=Lt("species"),Yo="Promise",lT=ur.getterFor(Yo),hhe=ur.set,ghe=ur.getterFor(Yo),uu=t1&&t1.prototype,yo=t1,Ff=uu,mM=te.TypeError,g3=te.document,vC=te.process,Dl=gC.f,vhe=Dl,mhe=!!(g3&&g3.createEvent&&te.dispatchEvent),yM=ot(te.PromiseRejectionEvent),bM=!1,Sd=Xv(Yo,function(){var e=Cm(yo),t=e!==String(yo);if(!t&&cp===66)return!0;if(cp>=51&&/native code/.test(e))return!1;var n=new yo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[phe]=r,!(bM=n.then(function(){})instanceof r)||!t&&dhe&&!yM}),yhe=Sd||!lM(function(e){yo.all(e).catch(function(){})}),wM=function(e){var t;return!(!yt(e)||!ot(t=e.then))&&t},mC=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;gM(function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&whe(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(mM("Promise-chain cycle")):(u=wM(a))?lt(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&bhe(e)})}},EM=function(e,t,n){var r,o;mhe?((r=g3.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),te.dispatchEvent(r)):r={promise:t,reason:n},!yM&&(o=te["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=te.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},bhe=function(e){lt(vM,te,function(){var t,n=e.facade,r=e.value;if(cT(e)&&(t=h3(function(){ga?vC.emit("unhandledRejection",r,n):EM("unhandledrejection",n,r)}),e.rejection=ga||cT(e)?2:1,t.error))throw t.value})},cT=function(e){return e.rejection!==1&&!e.parent},whe=function(e){lt(vM,te,function(){var t=e.facade;ga?vC.emit("rejectionHandled",t):EM("rejectionhandled",t,e.value)})},fl=function(e,t,n){return function(r){e(t,r,n)}},Cl=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,mC(e,!0))},v3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw mM("Promise can't be resolved itself");var r=wM(t);r?gM(function(){var o={done:!1};try{lt(r,t,fl(v3,o,e),fl(Cl,o,e))}catch(i){Cl(o,i,e)}}):(e.value=t,e.state=1,mC(e,!1))}catch(o){Cl({done:!1},o,e)}}};if(Sd&&(Ff=(yo=function(e){pC(this,Ff),Ta(e),lt(hw,this);var t=lT(this);try{e(fl(v3,t),fl(Cl,t))}catch(n){Cl(t,n)}}).prototype,(hw=function(e){hhe(this,{type:Yo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n1(Ff,{then:function(e,t){var n=ghe(this),r=n.reactions,o=Dl(function(i,a){var u,s=ln(i).constructor;return s===void 0||(u=ln(s)[ohe])==null?a:function(l){if(lC(l))return l;throw rhe(Wv(l)+" is not a constructor")}(u)}(this,yo));return o.ok=!ot(e)||e,o.fail=ot(t)&&t,o.domain=ga?vC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&mC(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),uT=function(){var e=new hw,t=lT(e);this.promise=e,this.resolve=fl(v3,t),this.reject=fl(Cl,t)},gC.f=Dl=function(e){return e===yo||e===hM?new uT(e):vhe(e)},ot(t1)&&uu!==Object.prototype)){sT=uu.then,bM||(Fr(uu,"then",function(e,t){var n=this;return new yo(function(r,o){lt(sT,n,r,o)}).then(e,t)},{unsafe:!0}),Fr(uu,"catch",Ff.catch,{unsafe:!0}));try{delete uu.constructor}catch{}Xl&&Xl(uu,Ff)}function vp(e,t,n){return n===void 0&&(n=""),bm(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return wm(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(t,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];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(){I.insertNodes(e,l)}),o(l),[2]}})})}function gw(){return aM("w-e-insert-video")}zn({global:!0,wrap:!0,forced:Sd},{Promise:yo}),r1(yo,Yo,!1),function(e){var t=os("Promise"),n=ci.f;ko&&t&&!t[qF]&&n(t,qF,{configurable:!0,get:function(){return this}})}(),hM=os(Yo),zn({target:Yo,stat:!0,forced:Sd},{reject:function(e){var t=Dl(this);return lt(t.reject,void 0,e),t.promise}}),zn({target:Yo,stat:!0,forced:Sd},{resolve:function(e){return function(t,n){if(ln(t),yt(n)&&n.constructor===t)return n;var r=gC.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),zn({target:Yo,stat:!0,forced:yhe},{all:function(e){var t=this,n=Dl(t),r=n.resolve,o=n.reject,i=h3(function(){var a=Ta(t.resolve),u=[],s=0,l=1;o1(e,function(c){var f=s++,d=!1;l++,lt(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Dl(t),r=n.reject,o=h3(function(){var i=Ta(t.resolve);o1(e,function(a){lt(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ehe=function(){function e(){this.title=Q("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=gw(),this.posterInputId=gw(),this.buttonId=gw()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=Lu(tr(Q("videoModule.videoSrc"),o,Q("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Lu(tr(Q("videoModule.videoPoster"),i,Q("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=k(l),v=k(d),m=Lu(fc(a,Q("videoModule.ok")),1)[0];if(this.$content==null){var g=k("<div></div>");g.on("click","#"+a,function(h){return bm(n,void 0,void 0,function(){var b,w;return wm(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,vp(t,b,w)];case 1:return D.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(m),p.val(""),v.val(""),setTimeout(function(){p.focus()}),y[0]},e}(),Dhe=Ce([].join),Che=ZD!=Object,She=function(e,t){var n=[].join;return!!n&&ct(function(){n.call(null,",",1)})}();zn({target:"Array",proto:!0,forced:Che||!She},{join:function(e){return Dhe(La(this),e===void 0?",":e)}});var zu,fT,dT,xhe=!ct(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),pT=iC("IE_PROTO"),m3=te.Object,Ahe=m3.prototype,i1=xhe?m3.getPrototypeOf:function(e){var t=Dm(e);if(Wt(t,pT))return t[pT];var n=t.constructor;return ot(n)&&t instanceof n?n.prototype:t instanceof m3?Ahe:null},y3=Lt("iterator"),DM=!1;[].keys&&("next"in(dT=[].keys())?(fT=i1(i1(dT)))!==Object.prototype&&(zu=fT):DM=!0);var Ohe=zu==null||ct(function(){var e={};return zu[y3].call(e)!==e});Ohe&&(zu={}),ot(zu[y3])||Fr(zu,y3,function(){return this});var yC={IteratorPrototype:zu,BUGGY_SAFARI_ITERATORS:DM},Bhe=yC.IteratorPrototype,khe=function(){return this},Fhe=Ec.PROPER,The=Ec.CONFIGURABLE,hT=yC.IteratorPrototype,vw=yC.BUGGY_SAFARI_ITERATORS,Tf=Lt("iterator"),_he=function(){return this},CM=function(e,t,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=uC(Bhe,{next:Em(1,h)}),r1(g,w,!1),Jl[w]=khe})(n,t,r);var u,s,l=function(g){if(g===o&&v)return v;if(!vw&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Tf]||d["@@iterator"]||o&&d[o],v=!vw&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=i1(m.call(new e)))!==Object.prototype&&u.next&&(i1(u)!==hT&&(Xl?Xl(u,hT):ot(u[Tf])||Fr(u,Tf,_he)),r1(u,c,!0)),Fhe&&o=="values"&&p&&p.name!=="values"&&(The?ha(d,"name","values"):(f=!0,v=function(){return lt(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||zn({target:t,proto:!0,forced:vw||f},s)),d[Tf]!==v&&Fr(d,Tf,v,{name:o}),Jl[t]=v,s},jhe=ur.set,Phe=ur.getterFor("Array Iterator"),td=CM(Array,"Array",function(e,t){jhe(this,{type:"Array Iterator",target:La(e),index:0,kind:t})},function(){var e=Phe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Jl.Arguments=Jl.Array,Ed("keys"),Ed("values"),Ed("entries");var Ihe=iM.charAt,Nhe=ur.set,Rhe=ur.getterFor("String Iterator");CM(String,"String",function(e){Nhe(this,{type:"String Iterator",string:mr(e),index:0})},function(){var e,t=Rhe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ihe(n,r),t.index+=e.length,{value:e,done:!1})});var SM=function(e,t,n){var r=rC(t);r in e?ci.f(e,r,Em(0,n)):e[r]=n},Lhe=te.Array,Mhe=Math.max,gT=Yv.f,vT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zhe={f:function(e){return vT&&Co(e)=="Window"?function(t){try{return gT(t)}catch{return function(n,r,o){for(var i=fh(n),a=pp(void 0,i),u=pp(i,i),s=Lhe(Mhe(u-a,0)),l=0;a<u;a++,l++)SM(s,l,n[a]);return s.length=l,s}(vT)}}(e):gT(La(e))}},mT=ct(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),m0=Object.isExtensible,yu=ct(function(){m0(1)})||mT?function(e){return!!yt(e)&&(!mT||Co(e)!="ArrayBuffer")&&(!m0||m0(e))}:m0,$he=!ct(function(){return Object.isExtensible(Object.preventExtensions({}))}),bC=JD(function(e){var t=ci.f,n=!1,r=nC("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=Yv.f,s=Ce([].splice),l={};l[r]=1,u(l).length&&(Yv.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},zn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:zhe.f}))},fastKey:function(u,s){if(!yt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Wt(u,r)){if(!yu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Wt(u,r)){if(!yu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return $he&&n&&yu(u)&&!Wt(u,r)&&i(u),u}};Sm[r]=!0}),y0=bC.getWeakData,Hhe=ur.set,Uhe=ur.getterFor,Vhe=cC.find,Whe=cC.findIndex,Ghe=Ce([].splice),qhe=0,b0=function(e){return e.frozen||(e.frozen=new xM)},xM=function(){this.entries=[]},mw=function(e,t){return Vhe(e.entries,function(n){return n[0]===t})};xM.prototype={get:function(e){var t=mw(this,e);if(t)return t[1]},has:function(e){return!!mw(this,e)},set:function(e,t){var n=mw(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Whe(this.entries,function(n){return n[0]===e});return~t&&Ghe(this.entries,t,1),!!~t}};var _f,AM={getConstructor:function(e,t,n,r){var o=e(function(s,l){pC(s,i),Hhe(s,{type:t,id:qhe++,frozen:void 0}),l!=null&&o1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Uhe(t),u=function(s,l,c){var f=a(s),d=y0(ln(l),!0);return d===!0?b0(f).set(l,c):d[f.id]=c,s};return n1(i,{delete:function(s){var l=a(this);if(!yt(s))return!1;var c=y0(s);return c===!0?b0(l).delete(s):c&&Wt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!yt(s))return!1;var c=y0(s);return c===!0?b0(l).has(s):c&&Wt(c,l.id)}}),n1(i,n?{get:function(s){var l=a(this);if(yt(s)){var c=y0(s);return c===!0?b0(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}},w0=ur.enforce,Khe=!te.ActiveXObject&&"ActiveXObject"in te,OM=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Yhe=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=te[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ce(u[g]);Fr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!yt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!yt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!yt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Xv(e,!ot(a)||!(o||u.forEach&&!ct(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),bC.enable();else if(Xv(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ct(function(){f.has(1)}),v=lM(function(g){new a(g)}),m=!o&&ct(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){pC(g,u);var h=function(b,w,D){var S,C;return Xl&&ot(S=w.constructor)&&S!==D&&yt(C=S.prototype)&&C!==D.prototype&&Xl(b,C),b}(new a,g,s);return y!=null&&o1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,zn({global:!0,forced:s!=a},l),r1(s,e),o||n.setStrong(s,e,r),s}("WeakMap",OM,AM);if(GL&&Khe){_f=AM.getConstructor(OM,"WeakMap",!0),bC.enable();var jf=Yhe.prototype,yT=Ce(jf.delete),E0=Ce(jf.has),bT=Ce(jf.get),wT=Ce(jf.set);n1(jf,{delete:function(e){if(yt(e)&&!yu(e)){var t=w0(this);return t.frozen||(t.frozen=new _f),yT(this,e)||t.frozen.delete(e)}return yT(this,e)},has:function(e){if(yt(e)&&!yu(e)){var t=w0(this);return t.frozen||(t.frozen=new _f),E0(this,e)||t.frozen.has(e)}return E0(this,e)},get:function(e){if(yt(e)&&!yu(e)){var t=w0(this);return t.frozen||(t.frozen=new _f),E0(this,e)?bT(this,e):t.frozen.get(e)}return bT(this,e)},set:function(e,t){if(yt(e)&&!yu(e)){var n=w0(this);n.frozen||(n.frozen=new _f),E0(this,e)?wT(this,e,t):n.frozen.set(e,t)}else wT(this,e,t);return this}})}var BM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yw=dp("span").classList,ET=yw&&yw.constructor&&yw.constructor.prototype,Xhe=ET===Object.prototype?void 0:ET,bw=Lt("iterator"),DT=Lt("toStringTag"),ww=td.values,kM=function(e,t){if(e){if(e[bw]!==ww)try{ha(e,bw,ww)}catch{e[bw]=ww}if(e[DT]||ha(e,DT,t),BM[t]){for(var n in td)if(e[n]!==td[n])try{ha(e,n,td[n])}catch{e[n]=td[n]}}}};for(var Ew in BM)kM(te[Ew]&&te[Ew].prototype,Ew);kM(Xhe,"DOMTokenList");var Jhe=Ec.EXISTS,Zhe=ci.f,FM=Function.prototype,Qhe=Ce(FM.toString),TM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,e0e=Ce(TM.exec);ko&&!Jhe&&Zhe(FM,"name",{configurable:!0,get:function(){try{return e0e(TM,Qhe(this))[1]}catch{return""}}});var t0e=Lt("species"),n0e=cp>=51||!ct(function(){var e=[];return(e.constructor={})[t0e]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),r0e=Lt("species"),Dw=te.Array,o0e=Math.max;function _M(e){return e.getMenuConfig("uploadVideo")}zn({target:"Array",proto:!0,forced:!n0e},{slice:function(e,t){var n,r,o,i=La(this),a=fh(i),u=pp(e,a),s=pp(t===void 0?a:t,a);if(Zv(i)&&(n=i.constructor,(lC(n)&&(n===Dw||Zv(n.prototype))||yt(n)&&(n=n[r0e])===null)&&(n=void 0),n===Dw||n===void 0))return cM(i,u,s);for(r=new(n===void 0?Dw:n)(o0e(s-u,0)),o=0;u<s;u++,o++)u in i&&SM(r,o,i[u]);return r.length=o,r}});var CT=new WeakMap;function i0e(e,t){return bm(this,void 0,void 0,function(){var n,r,o,i;return wm(this,function(a){switch(a.label){case 0:return n=function(u){var s=CT.get(u);if(s!=null)return s;var l=_M(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=oN(Vv(Vv({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,function(O,F){return vp(u,O,F)}),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){var D=w.url,S=D===void 0?"":D,C=w.poster;vp(u,S,C===void 0?"":C),c(m,g)}else d(m,g)},onError:function(m,g,y){v(m,g,y)}})),CT.set(u,s),s}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var a0e=function(){function e(){this.title=Q("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return vp(t,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;bm(this,void 0,void 0,function(){var m,g,y,h,b,w;return wm(this,function(D){switch(D.label){case 0:if(d==null)return[2];m=Array.prototype.slice.call(d),g=_M(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),y=ode(m),D.label=2;case 2:return[4,y.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(S,C){return vp(f,S,C)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,i0e(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),p={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var n=t.selection;return n==null||!R.isCollapsed(n)||!!A.getSelectedElems(t).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!t.isVoid(r)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e}(),u0e=Ec.PROPER,b3=RegExp.prototype,jM=b3.toString,s0e=Ce(rM),l0e=ct(function(){return jM.call({source:"a",flags:"b"})!="/a/b"}),c0e=u0e&&jM.name!="toString";function Cw(){return aM("w-e-insert-video")}(l0e||c0e)&&Fr(RegExp.prototype,"toString",function(){var e=ln(this),t=mr(e.source),n=e.flags;return"/"+t+"/"+mr(n===void 0&&lp(b3,e)&&!("flags"in b3)?s0e(e):n)},{unsafe:!0});var f0e=function(){function e(){this.title=Q("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Cw(),this.heightInputId=Cw(),this.buttonId=Cw()}return e.prototype.getSelectedVideoNode=function(t){return A.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,n){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=Lu(tr(Q("videoModule.width"),r,"auto"),2),u=a[0],s=k(a[1]),l=Lu(tr(Q("videoModule.height"),o,"auto"),2),c=l[0],f=k(l[1]),d=Lu(fc(i,Q("videoModule.ok")),1)[0];if(this.$content==null){var p=k("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var D=p.find("#"+r).val().trim(),S=p.find("#"+o).val().trim(),C=parseInt(D),O=parseInt(S),F=C?C.toString():"auto",L=O?O.toString():"auto";t.restoreSelection(),I.setNodes(t,{width:F,height:L},{match:function(H){return A.checkNodeType(H,"video")}}),t.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var m=this.getSelectedVideoNode(t);if(m==null)return v[0];var g=m.width,y=g===void 0?"auto":g,h=m.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),v[0]},e}(),d0e={renderElems:[ape],elemsToHtml:[upe],preParseHtml:[fpe],parseElemsHtml:[bpe],menus:[{key:"insertVideo",factory:function(){return new Ehe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new a0e},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){}}},{key:"editVideoSize",factory:function(){return new f0e}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(o){return o.type==="video"||t(o)},r.normalizeNode=function(o){var i=Lu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&I.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Gn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Gn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var ST=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wC(e){var t={exports:{}};return e(t,t.exports),t.exports}var Li,ag,D0=function(e){return e&&e.Math==Math&&e},ee=D0(typeof globalThis=="object"&&globalThis)||D0(typeof window=="object"&&window)||D0(typeof self=="object"&&self)||D0(typeof ST=="object"&&ST)||function(){return this}()||Function("return this")(),ht=function(e){try{return!!e()}catch{return!0}},Fo=!ht(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Pf=Function.prototype.call,tt=Pf.bind?Pf.bind(Pf):function(){return Pf.apply(Pf,arguments)},xT={}.propertyIsEnumerable,AT=Object.getOwnPropertyDescriptor,p0e={f:AT&&!xT.call({1:2},1)?function(e){var t=AT(this,e);return!!t&&t.enumerable}:xT},Om=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},PM=Function.prototype,w3=PM.bind,E3=PM.call,h0e=w3&&w3.bind(E3),Te=w3?function(e){return e&&h0e(E3,e)}:function(e){return e&&function(){return E3.apply(e,arguments)}},g0e=Te({}.toString),v0e=Te("".slice),Xr=function(e){return v0e(g0e(e),8,-1)},Sw=ee.Object,m0e=Te("".split),EC=ht(function(){return!Sw("z").propertyIsEnumerable(0)})?function(e){return Xr(e)=="String"?m0e(e,""):Sw(e)}:Sw,y0e=ee.TypeError,mp=function(e){if(e==null)throw y0e("Can't call method on "+e);return e},Ma=function(e){return EC(mp(e))},ut=function(e){return typeof e=="function"},dt=function(e){return typeof e=="object"?e!==null:ut(e)},b0e=function(e){return ut(e)?e:void 0},is=function(e,t){return arguments.length<2?b0e(ee[e]):ee[e]&&ee[e][t]},yp=Te({}.isPrototypeOf),Sl=is("navigator","userAgent")||"",OT=ee.process,BT=ee.Deno,kT=OT&&OT.versions||BT&&BT.version,FT=kT&&kT.v8;FT&&(ag=(Li=FT.split("."))[0]>0&&Li[0]<4?1:+(Li[0]+Li[1])),!ag&&Sl&&(!(Li=Sl.match(/Edge\/(\d+)/))||Li[1]>=74)&&(Li=Sl.match(/Chrome\/(\d+)/))&&(ag=+Li[1]);var bp=ag,D3=!!Object.getOwnPropertySymbols&&!ht(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bp&&bp<41}),DC=D3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",w0e=ee.Object,xw=DC?function(e){return typeof e=="symbol"}:function(e){var t=is("Symbol");return ut(t)&&yp(t.prototype,w0e(e))},E0e=ee.String,a1=function(e){try{return E0e(e)}catch{return"Object"}},D0e=ee.TypeError,_a=function(e){if(ut(e))return e;throw D0e(a1(e)+" is not a function")},wp=function(e,t){var n=e[t];return n==null?void 0:_a(n)},C0e=ee.TypeError,S0e=Object.defineProperty,CC=function(e,t){try{S0e(ee,e,{value:t,configurable:!0,writable:!0})}catch{ee[e]=t}return t},va=ee["__core-js_shared__"]||CC("__core-js_shared__",{}),SC=wC(function(e){(e.exports=function(t,n){return va[t]||(va[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),x0e=ee.Object,xC=function(e){return x0e(mp(e))},A0e=Te({}.hasOwnProperty),Gt=Object.hasOwn||function(e,t){return A0e(xC(e),t)},O0e=0,B0e=Math.random(),k0e=Te(1 .toString),AC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+k0e(++O0e+B0e,36)},If=SC("wks"),$u=ee.Symbol,TT=$u&&$u.for,F0e=DC?$u:$u&&$u.withoutSetter||AC,Mt=function(e){if(!Gt(If,e)||!D3&&typeof If[e]!="string"){var t="Symbol."+e;D3&&Gt($u,e)?If[e]=$u[e]:If[e]=DC&&TT?TT(t):F0e(t)}return If[e]},T0e=ee.TypeError,_0e=Mt("toPrimitive"),OC=function(e){var t=function(n,r){if(!dt(n)||xw(n))return n;var o,i=wp(n,_0e);if(i){if(o=tt(i,n,r),!dt(o)||xw(o))return o;throw T0e("Can't convert object to primitive value")}return function(a,u){var s,l;if(ut(s=a.toString)&&!dt(l=tt(s,a))||ut(s=a.valueOf)&&!dt(l=tt(s,a))||u!=="string")return l;throw C0e("Can't convert object to primitive value")}(n,r)}(e,"string");return xw(t)?t:t+""},C3=ee.document,j0e=dt(C3)&&dt(C3.createElement),Ep=function(e){return j0e?C3.createElement(e):{}},IM=!Fo&&!ht(function(){return Object.defineProperty(Ep("div"),"a",{get:function(){return 7}}).a!=7}),_T=Object.getOwnPropertyDescriptor,BC={f:Fo?_T:function(e,t){if(e=Ma(e),t=OC(t),IM)try{return _T(e,t)}catch{}if(Gt(e,t))return Om(!tt(p0e.f,e,t),e[t])}},P0e=ee.String,I0e=ee.TypeError,cn=function(e){if(dt(e))return e;throw I0e(P0e(e)+" is not an object")},N0e=ee.TypeError,jT=Object.defineProperty,fi={f:Fo?jT:function(e,t,n){if(cn(e),t=OC(t),cn(n),IM)try{return jT(e,t,n)}catch{}if("get"in n||"set"in n)throw N0e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},So=Fo?function(e,t,n){return fi.f(e,t,Om(1,n))}:function(e,t,n){return e[t]=n,e},R0e=Te(Function.toString);ut(va.inspectSource)||(va.inspectSource=function(e){return R0e(e)});var u1,xd,s1,Bm=va.inspectSource,PT=ee.WeakMap,NM=ut(PT)&&/native code/.test(Bm(PT)),IT=SC("keys"),kC=function(e){return IT[e]||(IT[e]=AC(e))},km={},S3=ee.TypeError,L0e=ee.WeakMap;if(NM||va.state){var nu=va.state||(va.state=new L0e),M0e=Te(nu.get),NT=Te(nu.has),z0e=Te(nu.set);u1=function(e,t){if(NT(nu,e))throw new S3("Object already initialized");return t.facade=e,z0e(nu,e,t),t},xd=function(e){return M0e(nu,e)||{}},s1=function(e){return NT(nu,e)}}else{var qs=kC("state");km[qs]=!0,u1=function(e,t){if(Gt(e,qs))throw new S3("Object already initialized");return t.facade=e,So(e,qs,t),t},xd=function(e){return Gt(e,qs)?e[qs]:{}},s1=function(e){return Gt(e,qs)}}var sr={set:u1,get:xd,has:s1,enforce:function(e){return s1(e)?xd(e):u1(e,{})},getterFor:function(e){return function(t){var n;if(!dt(t)||(n=xd(t)).type!==e)throw S3("Incompatible receiver, "+e+" required");return n}}},RM=Function.prototype,$0e=Fo&&Object.getOwnPropertyDescriptor,Aw=Gt(RM,"name"),ph={EXISTS:Aw,PROPER:Aw&&(function(){}).name==="something",CONFIGURABLE:Aw&&(!Fo||Fo&&$0e(RM,"name").configurable)},Tr=wC(function(e){var t=ph.CONFIGURABLE,n=sr.get,r=sr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ut(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Gt(u,"name")||t&&u.name!==p)&&So(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ee?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:So(i,a,u)):f?i[a]=u:CC(a,u)})(Function.prototype,"toString",function(){return ut(this)&&n(this).source||Bm(this)})}),H0e=Math.ceil,U0e=Math.floor,FC=function(e){var t=+e;return t!=t||t===0?0:(t>0?U0e:H0e)(t)},V0e=Math.max,W0e=Math.min,Dp=function(e,t){var n=FC(e);return n<0?V0e(n+t,0):W0e(n,t)},G0e=Math.min,LM=function(e){return e>0?G0e(FC(e),9007199254740991):0},hh=function(e){return LM(e.length)},q0e=function(e){return function(t,n,r){for(var o=Ma(t),i=hh(o),a=Dp(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},K0e=q0e(),RT=Te([].push),MM=function(e,t){var n,r=Ma(e),o=0,i=[];for(n in r)!Gt(km,n)&&Gt(r,n)&&RT(i,n);for(;t.length>o;)Gt(r,n=t[o++])&&(~K0e(i,n)||RT(i,n));return i},l1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Y0e=l1.concat("length","prototype"),c1={f:Object.getOwnPropertyNames||function(e){return MM(e,Y0e)}},X0e={f:Object.getOwnPropertySymbols},J0e=Te([].concat),Z0e=is("Reflect","ownKeys")||function(e){var t=c1.f(cn(e)),n=X0e.f;return n?J0e(t,n(e)):t},Q0e=function(e,t){for(var n=Z0e(t),r=fi.f,o=BC.f,i=0;i<n.length;i++){var a=n[i];Gt(e,a)||r(e,a,o(t,a))}},ege=/#|\.prototype\./,gh=function(e,t){var n=nge[tge(e)];return n==oge||n!=rge&&(ut(t)?ht(t):!!t)},tge=gh.normalize=function(e){return String(e).replace(ege,".").toLowerCase()},nge=gh.data={},rge=gh.NATIVE="N",oge=gh.POLYFILL="P",f1=gh,ige=BC.f,bo=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?ee:l?ee[u]||CC(u,{}):(ee[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ige(n,r))&&a.value:n[r],!f1(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Q0e(i,o)}(e.sham||o&&o.sham)&&So(i,"sham",!0),Tr(n,r,i,e)}},d1=Array.isArray||function(e){return Xr(e)=="Array"},zM={};zM[Mt("toStringTag")]="z";var TC=String(zM)==="[object z]",age=Mt("toStringTag"),uge=ee.Object,sge=Xr(function(){return arguments}())=="Arguments",Fm=TC?Xr:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=uge(e),age))=="string"?n:sge?Xr(t):(r=Xr(t))=="Object"&&ut(t.callee)?"Arguments":r},$M=function(){},lge=[],HM=is("Reflect","construct"),_C=/^\s*(?:class|function)\b/,cge=Te(_C.exec),fge=!_C.exec($M),Nf=function(e){if(!ut(e))return!1;try{return HM($M,lge,e),!0}catch{return!1}},jC=!HM||ht(function(){var e;return Nf(Nf.call)||!Nf(Object)||!Nf(function(){e=!0})||e})?function(e){if(!ut(e))return!1;switch(Fm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return fge||!!cge(_C,Bm(e))}:Nf,UM=function(e,t,n){var r=OC(t);r in e?fi.f(e,r,Om(0,n)):e[r]=n},dge=Mt("species"),VM=Te([].slice),pge=bp>=51||!ht(function(){var e=[];return(e.constructor={})[dge]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),hge=Mt("species"),Ow=ee.Array,gge=Math.max;bo({target:"Array",proto:!0,forced:!pge},{slice:function(e,t){var n,r,o,i=Ma(this),a=hh(i),u=Dp(e,a),s=Dp(t===void 0?a:t,a);if(d1(i)&&(n=i.constructor,(jC(n)&&(n===Ow||d1(n.prototype))||dt(n)&&(n=n[hge])===null)&&(n=void 0),n===Ow||n===void 0))return VM(i,u,s);for(r=new(n===void 0?Ow:n)(gge(s-u,0)),o=0;u<s;u++,o++)u in i&&UM(r,o,i[u]);return r.length=o,r}});var vge=TC?{}.toString:function(){return"[object "+Fm(this)+"]"};TC||Tr(Object.prototype,"toString",vge,{unsafe:!0});var C0,mge=ee.String,ma=function(e){if(Fm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mge(e)},WM=function(){var e=cn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},PC=ee.RegExp,x3=ht(function(){var e=PC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),yge=x3||ht(function(){return!PC("a","y").sticky}),GM={BROKEN_CARET:x3||ht(function(){var e=PC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:yge,UNSUPPORTED_Y:x3},bge=Object.keys||function(e){return MM(e,l1)},wge=Fo?Object.defineProperties:function(e,t){cn(e);for(var n,r=Ma(t),o=bge(t),i=o.length,a=0;i>a;)fi.f(e,n=o[a++],r[n]);return e},A3=is("document","documentElement"),qM=kC("IE_PROTO"),Bw=function(){},KM=function(e){return"<script>"+e+"<\/script>"},LT=function(e){e.write(KM("")),e.close();var t=e.parentWindow.Object;return e=null,t},ug=function(){try{C0=new ActiveXObject("htmlfile")}catch{}var e,t;ug=typeof document<"u"?document.domain&&C0?LT(C0):((t=Ep("iframe")).style.display="none",A3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(KM("document.F=Object")),e.close(),e.F):LT(C0);for(var n=l1.length;n--;)delete ug.prototype[l1[n]];return ug()};km[qM]=!0;var MT,kw,IC=Object.create||function(e,t){var n;return e!==null?(Bw.prototype=cn(e),n=new Bw,Bw.prototype=null,n[qM]=e):n=ug(),t===void 0?n:wge(n,t)},Ege=ee.RegExp,Dge=ht(function(){var e=Ege(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),Cge=ee.RegExp,Sge=ht(function(){var e=Cge("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),xge=sr.get,Age=SC("native-string-replace",String.prototype.replace),p1=RegExp.prototype.exec,O3=p1,Oge=Te("".charAt),Bge=Te("".indexOf),kge=Te("".replace),Fw=Te("".slice),Tw=(kw=/b*/g,tt(p1,MT=/a/,"a"),tt(p1,kw,"a"),MT.lastIndex!==0||kw.lastIndex!==0),zT=GM.BROKEN_CARET,_w=/()??/.exec("")[1]!==void 0;(Tw||_w||zT||Dge||Sge)&&(O3=function(e){var t,n,r,o,i,a,u,s=this,l=xge(s),c=ma(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=tt(O3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=zT&&s.sticky,v=tt(WM,s),m=s.source,g=0,y=c;if(p&&(v=kge(v,"y",""),Bge(v,"g")===-1&&(v+="g"),y=Fw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Oge(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),_w&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Tw&&(r=s.lastIndex),o=tt(p1,p?n:s,y),p?o?(o.input=Fw(o.input,g),o[0]=Fw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Tw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),_w&&o&&o.length>1&&tt(Age,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=IC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Cp=O3;bo({target:"RegExp",proto:!0,forced:/./.exec!==Cp},{exec:Cp});var NC=Function.prototype,$T=NC.apply,Fge=NC.bind,HT=NC.call,YM=typeof Reflect=="object"&&Reflect.apply||(Fge?HT.bind($T):function(){return HT.apply($T,arguments)}),Tge=Mt("species"),jw=RegExp.prototype,_ge=Mt("match"),jge=ee.TypeError,Pge=Mt("species"),XM=function(e,t){var n,r=cn(e).constructor;return r===void 0||(n=cn(r)[Pge])==null?t:function(o){if(jC(o))return o;throw jge(a1(o)+" is not a constructor")}(n)},Ige=Te("".charAt),UT=Te("".charCodeAt),Nge=Te("".slice),VT=function(e){return function(t,n){var r,o,i=ma(mp(t)),a=FC(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=UT(i,a))<55296||r>56319||a+1===u||(o=UT(i,a+1))<56320||o>57343?e?Ige(i,a):r:e?Nge(i,a,a+2):o-56320+(r-55296<<10)+65536}},JM={codeAt:VT(!1),charAt:VT(!0)},Rge=JM.charAt,Lge=function(e,t,n){return t+(n?Rge(e,t).length:1)},Mge=ee.Array,zge=Math.max,B3=function(e,t,n){for(var r=hh(e),o=Dp(t,r),i=Dp(n===void 0?r:n,r),a=Mge(zge(i-o,0)),u=0;o<i;o++,u++)UM(a,u,e[o]);return a.length=u,a},$ge=ee.TypeError,WT=function(e,t){var n=e.exec;if(ut(n)){var r=tt(n,e,t);return r!==null&&cn(r),r}if(Xr(e)==="RegExp")return tt(Cp,e,t);throw $ge("RegExp#exec called on incompatible receiver")},Ks=GM.UNSUPPORTED_Y,Hge=Math.min,ZM=[].push,Uge=Te(/./.exec),Ys=Te(ZM),Rf=Te("".slice);(function(e,t,n,r){var o=Mt(e),i=!ht(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ht(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Tge]=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 d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var m,g,y=ma(mp(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!dt(m=p)||!((g=m[_ge])!==void 0?g:Xr(m)=="RegExp"))return tt(c,y,p,h);for(var b,w,D,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,F=new RegExp(p.source,C+"g");(b=tt(Cp,F,y))&&!((w=F.lastIndex)>O&&(Ys(S,Rf(y,O,b.index)),b.length>1&&b.index<y.length&&YM(ZM,S,B3(b,1)),D=b[0].length,O=w,S.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&Uge(F,"")||Ys(S,""):Ys(S,Rf(y,O)),S.length>h?B3(S,0,h):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:tt(c,this,p,v)}:c,[function(p,v){var m=mp(this),g=p==null?void 0:wp(p,l);return g?tt(g,p,m,v):tt(d,ma(m),p,v)},function(p,v){var m=cn(this),g=ma(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=XM(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(Ks?"g":"y"),D=new h(Ks?"^(?:"+m.source+")":m,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return WT(D,g)===null?[g]:[];for(var C=0,O=0,F=[];O<g.length;){D.lastIndex=Ks?0:O;var L,H=WT(D,Ks?Rf(g,O):g);if(H===null||(L=Hge(LM(D.lastIndex+(Ks?O:0)),g.length))===C)O=Lge(g,O,b);else{if(Ys(F,Rf(g,C,O)),F.length===S)return F;for(var M=1;M<=H.length-1;M++)if(Ys(F,H[M]),F.length===S)return F;O=C=L}}return Ys(F,Rf(g,C)),F}]}(o,""[e],function(l,c,f,d,p){var v=Te(l),m=c.exec;return m===Cp||m===jw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Tr(String.prototype,e,s[0]),Tr(jw,o,s[1])}r&&So(jw[o],"sham",!0)})("split",0,!!ht(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ks);/*! *****************************************************************************
- 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 h1=function(){return h1=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},h1.apply(this,arguments)};function RC(e,t,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(e,[])).next())})}function LC(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},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=t.call(e,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 Vge(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(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.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var k3=Mt("unscopables"),F3=Array.prototype;F3[k3]==null&&fi.f(F3,k3,{configurable:!0,value:IC(null)});var Hu,GT,qT,Pw=function(e){F3[k3][e]=!0},Zl={},Wge=!ht(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),KT=kC("IE_PROTO"),T3=ee.Object,Gge=T3.prototype,g1=Wge?T3.getPrototypeOf:function(e){var t=xC(e);if(Gt(t,KT))return t[KT];var n=t.constructor;return ut(n)&&t instanceof n?n.prototype:t instanceof T3?Gge:null},_3=Mt("iterator"),QM=!1;[].keys&&("next"in(qT=[].keys())?(GT=g1(g1(qT)))!==Object.prototype&&(Hu=GT):QM=!0);var qge=Hu==null||ht(function(){var e={};return Hu[_3].call(e)!==e});qge&&(Hu={}),ut(Hu[_3])||Tr(Hu,_3,function(){return this});var MC={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:QM},Kge=fi.f,YT=Mt("toStringTag"),v1=function(e,t,n){e&&!Gt(e=n?e:e.prototype,YT)&&Kge(e,YT,{configurable:!0,value:t})},Yge=MC.IteratorPrototype,Xge=function(){return this},Jge=ee.String,Zge=ee.TypeError,Ql=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Te(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch{}return function(r,o){return cn(r),function(i){if(typeof i=="object"||ut(i))return i;throw Zge("Can't set "+Jge(i)+" as a prototype")}(o),t?e(r,o):r.__proto__=o,r}}():void 0),Qge=ph.PROPER,eve=ph.CONFIGURABLE,XT=MC.IteratorPrototype,Iw=MC.BUGGY_SAFARI_ITERATORS,Lf=Mt("iterator"),tve=function(){return this},ez=function(e,t,n,r,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=IC(Yge,{next:Om(1,h)}),v1(g,w,!1),Zl[w]=Xge})(n,t,r);var u,s,l=function(g){if(g===o&&v)return v;if(!Iw&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Lf]||d["@@iterator"]||o&&d[o],v=!Iw&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=g1(m.call(new e)))!==Object.prototype&&u.next&&(g1(u)!==XT&&(Ql?Ql(u,XT):ut(u[Lf])||Tr(u,Lf,tve)),v1(u,c,!0)),Qge&&o=="values"&&p&&p.name!=="values"&&(eve?So(d,"name","values"):(f=!0,v=function(){return tt(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||bo({target:t,proto:!0,forced:Iw||f},s)),d[Lf]!==v&&Tr(d,Lf,v,{name:o}),Zl[t]=v,s},nve=sr.set,rve=sr.getterFor("Array Iterator"),nd=ez(Array,"Array",function(e,t){nve(this,{type:"Array Iterator",target:Ma(e),index:0,kind:t})},function(){var e=rve(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values");Zl.Arguments=Zl.Array,Pw("keys"),Pw("values"),Pw("entries");var ove=JM.charAt,ive=sr.set,ave=sr.getterFor("String Iterator");ez(String,"String",function(e){ive(this,{type:"String Iterator",string:ma(e),index:0})},function(){var e,t=ave(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ove(n,r),t.index+=e.length,{value:e,done:!1})});var m1=function(e,t,n){for(var r in t)Tr(e,r,t[r],n);return e},JT=c1.f,ZT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uve={f:function(e){return ZT&&Xr(e)=="Window"?function(t){try{return JT(t)}catch{return B3(ZT)}}(e):JT(Ma(e))}},QT=ht(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),S0=Object.isExtensible,bu=ht(function(){S0(1)})||QT?function(e){return!!dt(e)&&(!QT||Xr(e)!="ArrayBuffer")&&(!S0||S0(e))}:S0,sve=!ht(function(){return Object.isExtensible(Object.preventExtensions({}))}),zC=wC(function(e){var t=fi.f,n=!1,r=AC("meta"),o=0,i=function(u){t(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var u=c1.f,s=Te([].splice),l={};l[r]=1,u(l).length&&(c1.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===r){s(f,d,1);break}return f},bo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:uve.f}))},fastKey:function(u,s){if(!dt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Gt(u,r)){if(!bu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Gt(u,r)){if(!bu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return sve&&n&&bu(u)&&!Gt(u,r)&&i(u),u}};km[r]=!0}),e_=Te(Te.bind),Sp=function(e,t){return _a(e),t===void 0?e:e_?e_(e,t):function(){return e.apply(t,arguments)}},lve=Mt("iterator"),cve=Array.prototype,fve=Mt("iterator"),t_=function(e){if(e!=null)return wp(e,fve)||wp(e,"@@iterator")||Zl[Fm(e)]},dve=ee.TypeError,n_=function(e,t,n){var r,o;cn(e);try{if(!(r=wp(e,"return"))){if(t==="throw")throw n;return n}r=tt(r,e)}catch(i){o=!0,r=i}if(t==="throw")throw n;if(o)throw r;return cn(r),n},pve=ee.TypeError,sg=function(e,t){this.stopped=e,this.result=t},r_=sg.prototype,y1=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),m=Sp(t,f),g=function(h){return r&&n_(r,"normal",h),new sg(!0,h)},y=function(h){return d?(cn(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)r=e;else{if(!(o=t_(e)))throw pve(a1(e)+" is not iterable");if((c=o)!==void 0&&(Zl.Array===c||cve[lve]===c)){for(i=0,a=hh(e);a>i;i++)if((u=y(e[i]))&&yp(r_,u))return u;return new sg(!1)}r=function(h,b){var w=arguments.length<2?t_(h):b;if(_a(w))return cn(tt(w,h));throw dve(a1(h)+" is not iterable")}(e,o)}for(s=r.next;!(l=tt(s,r)).done;){try{u=y(l.value)}catch(h){n_(r,"throw",h)}if(typeof u=="object"&&u&&yp(r_,u))return u}return new sg(!1)},hve=ee.TypeError,$C=function(e,t){if(yp(t,e))return e;throw hve("Incorrect invocation")},tz=Mt("iterator"),nz=!1;try{var gve=0,o_={next:function(){return{done:!!gve++}},return:function(){nz=!0}};o_[tz]=function(){return this},Array.from(o_,function(){throw 2})}catch{}var rz=function(e,t){if(!nz)return!1;var n=!1;try{var r={};r[tz]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},vve=Mt("species"),i_=ee.Array,mve=function(e,t){return new(function(n){var r;return d1(n)&&(r=n.constructor,(jC(r)&&(r===i_||d1(r.prototype))||dt(r)&&(r=r[vve])===null)&&(r=void 0)),r===void 0?i_:r}(e))(t===0?0:t)},a_=Te([].push),Mi=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=xC(s),m=EC(v),g=Sp(l,c),y=hh(m),h=0,b=f||mve,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:a_(w,d)}else switch(e){case 4:return!1;case 7:a_(w,d)}return i?-1:r||o?o:w}},HC={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},x0=zC.getWeakData,yve=sr.set,bve=sr.getterFor,wve=HC.find,Eve=HC.findIndex,Dve=Te([].splice),Cve=0,A0=function(e){return e.frozen||(e.frozen=new oz)},oz=function(){this.entries=[]},Nw=function(e,t){return wve(e.entries,function(n){return n[0]===t})};oz.prototype={get:function(e){var t=Nw(this,e);if(t)return t[1]},has:function(e){return!!Nw(this,e)},set:function(e,t){var n=Nw(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Eve(this.entries,function(n){return n[0]===e});return~t&&Dve(this.entries,t,1),!!~t}};var Mf,iz={getConstructor:function(e,t,n,r){var o=e(function(s,l){$C(s,i),yve(s,{type:t,id:Cve++,frozen:void 0}),l!=null&&y1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=bve(t),u=function(s,l,c){var f=a(s),d=x0(cn(l),!0);return d===!0?A0(f).set(l,c):d[f.id]=c,s};return m1(i,{delete:function(s){var l=a(this);if(!dt(s))return!1;var c=x0(s);return c===!0?A0(l).delete(s):c&&Gt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!dt(s))return!1;var c=x0(s);return c===!0?A0(l).has(s):c&&Gt(c,l.id)}}),m1(i,n?{get:function(s){var l=a(this);if(dt(s)){var c=x0(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=sr.enforce,Sve=!ee.ActiveXObject&&"ActiveXObject"in ee,az=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},xve=function(e,t,n){var r=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=r?"set":"add",a=ee[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Te(u[g]);Tr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!dt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!dt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!dt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(f1(e,!ut(a)||!(o||u.forEach&&!ht(function(){new a().entries().next()}))))s=n.getConstructor(t,e,r,i),zC.enable();else if(f1(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ht(function(){f.has(1)}),v=rz(function(g){new a(g)}),m=!o&&ht(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){$C(g,u);var h=function(b,w,D){var S,C;return Ql&&ut(S=w.constructor)&&S!==D&&dt(C=S.prototype)&&C!==D.prototype&&Ql(b,C),b}(new a,g,s);return y!=null&&y1(y,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),r&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,bo({global:!0,forced:s!=a},l),v1(s,e),o||n.setStrong(s,e,r),s}("WeakMap",az,iz);if(NM&&Sve){Mf=iz.getConstructor(az,"WeakMap",!0),zC.enable();var zf=xve.prototype,u_=Te(zf.delete),B0=Te(zf.has),s_=Te(zf.get),l_=Te(zf.set);m1(zf,{delete:function(e){if(dt(e)&&!bu(e)){var t=O0(this);return t.frozen||(t.frozen=new Mf),u_(this,e)||t.frozen.delete(e)}return u_(this,e)},has:function(e){if(dt(e)&&!bu(e)){var t=O0(this);return t.frozen||(t.frozen=new Mf),B0(this,e)||t.frozen.has(e)}return B0(this,e)},get:function(e){if(dt(e)&&!bu(e)){var t=O0(this);return t.frozen||(t.frozen=new Mf),B0(this,e)?s_(this,e):t.frozen.get(e)}return s_(this,e)},set:function(e,t){if(dt(e)&&!bu(e)){var n=O0(this);n.frozen||(n.frozen=new Mf),B0(this,e)?l_(this,e,t):n.frozen.set(e,t)}else l_(this,e,t);return this}})}var b1={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},Rw=Ep("span").classList,c_=Rw&&Rw.constructor&&Rw.constructor.prototype,uz=c_===Object.prototype?void 0:c_,Lw=Mt("iterator"),f_=Mt("toStringTag"),Mw=nd.values,sz=function(e,t){if(e){if(e[Lw]!==Mw)try{So(e,Lw,Mw)}catch{e[Lw]=Mw}if(e[f_]||So(e,f_,t),b1[t]){for(var n in nd)if(e[n]!==nd[n])try{So(e,n,nd[n])}catch{e[n]=nd[n]}}}};for(var zw in b1)sz(ee[zw]&&ee[zw].prototype,zw);sz(uz,"DOMTokenList");var lz=function(e,t){var n=[][e];return!!n&&ht(function(){n.call(null,t||function(){throw 1},1)})},Ave=HC.forEach,$w=lz("forEach")?[].forEach:function(e){return Ave(this,e,arguments.length>1?arguments[1]:void 0)},cz=function(e){if(e&&e.forEach!==$w)try{So(e,"forEach",$w)}catch{e.forEach=$w}};for(var Hw in b1)b1[Hw]&&cz(ee[Hw]&&ee[Hw].prototype);cz(uz);var xp,Xs,d_,Uw,w1=ee.Promise,p_=Mt("species"),fz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Sl),ya=Xr(ee.process)=="process",j3=ee.setImmediate,P3=ee.clearImmediate,Ove=ee.process,Vw=ee.Dispatch,Bve=ee.Function,h_=ee.MessageChannel,kve=ee.String,Ww=0,Ad={};try{xp=ee.location}catch{}var UC=function(e){if(Gt(Ad,e)){var t=Ad[e];delete Ad[e],t()}},Gw=function(e){return function(){UC(e)}},g_=function(e){UC(e.data)},v_=function(e){ee.postMessage(kve(e),xp.protocol+"//"+xp.host)};j3&&P3||(j3=function(e){var t=VM(arguments,1);return Ad[++Ww]=function(){YM(ut(e)?e:Bve(e),void 0,t)},Xs(Ww),Ww},P3=function(e){delete Ad[e]},ya?Xs=function(e){Ove.nextTick(Gw(e))}:Vw&&Vw.now?Xs=function(e){Vw.now(Gw(e))}:h_&&!fz?(Uw=(d_=new h_).port2,d_.port1.onmessage=g_,Xs=Sp(Uw.postMessage,Uw)):ee.addEventListener&&ut(ee.postMessage)&&!ee.importScripts&&xp&&xp.protocol!=="file:"&&!ht(v_)?(Xs=v_,ee.addEventListener("message",g_,!1)):Xs="onreadystatechange"in Ep("script")?function(e){A3.appendChild(Ep("script")).onreadystatechange=function(){A3.removeChild(this),UC(e)}}:function(e){setTimeout(Gw(e),0)});var $f,hu,Od,al,qw,Kw,Yw,m_,dz={set:j3,clear:P3},Fve=/ipad|iphone|ipod/i.test(Sl)&&ee.Pebble!==void 0,Tve=/web0s(?!.*chrome)/i.test(Sl),_ve=BC.f,Xw=dz.set,y_=ee.MutationObserver||ee.WebKitMutationObserver,b_=ee.document,w_=ee.process,k0=ee.Promise,E_=_ve(ee,"queueMicrotask"),pz=E_&&E_.value;pz||($f=function(){var e,t;for(ya&&(e=w_.domain)&&e.exit();hu;){t=hu.fn,hu=hu.next;try{t()}catch(n){throw hu?al():Od=void 0,n}}Od=void 0,e&&e.enter()},fz||ya||Tve||!y_||!b_?!Fve&&k0&&k0.resolve?((Yw=k0.resolve(void 0)).constructor=k0,m_=Sp(Yw.then,Yw),al=function(){m_($f)}):ya?al=function(){w_.nextTick($f)}:(Xw=Sp(Xw,ee),al=function(){Xw($f)}):(qw=!0,Kw=b_.createTextNode(""),new y_($f).observe(Kw,{characterData:!0}),al=function(){Kw.data=qw=!qw}));var Jw,D_,hz,C_,gz=pz||function(e){var t={fn:e,next:void 0};Od&&(Od.next=t),hu||(hu=t,al()),Od=t},jve=function(e){var t,n;this.promise=new e(function(r,o){if(t!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");t=r,n=o}),this.resolve=_a(t),this.reject=_a(n)},VC={f:function(e){return new jve(e)}},I3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Pve=typeof window=="object",vz=dz.set,Ive=Mt("species"),Xo="Promise",S_=sr.getterFor(Xo),Nve=sr.set,Rve=sr.getterFor(Xo),su=w1&&w1.prototype,wo=w1,Hf=su,mz=ee.TypeError,N3=ee.document,WC=ee.process,xl=VC.f,Lve=xl,Mve=!!(N3&&N3.createEvent&&ee.dispatchEvent),yz=ut(ee.PromiseRejectionEvent),bz=!1,Bd=f1(Xo,function(){var e=Bm(wo),t=e!==String(wo);if(!t&&bp===66)return!0;if(bp>=51&&/native code/.test(e))return!1;var n=new wo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Ive]=r,!(bz=n.then(function(){})instanceof r)||!t&&Pve&&!yz}),zve=Bd||!rz(function(e){wo.all(e).catch(function(){})}),wz=function(e){var t;return!(!dt(e)||!ut(t=e.then))&&t},GC=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;gz(function(){for(var r=e.value,o=e.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&Hve(e),e.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(mz("Promise-chain cycle")):(u=wz(a))?tt(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&$ve(e)})}},Ez=function(e,t,n){var r,o;Mve?((r=N3.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),ee.dispatchEvent(r)):r={promise:t,reason:n},!yz&&(o=ee["on"+e])?o(r):e==="unhandledrejection"&&function(i,a){var u=ee.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},$ve=function(e){tt(vz,ee,function(){var t,n=e.facade,r=e.value;if(x_(e)&&(t=I3(function(){ya?WC.emit("unhandledRejection",r,n):Ez("unhandledrejection",n,r)}),e.rejection=ya||x_(e)?2:1,t.error))throw t.value})},x_=function(e){return e.rejection!==1&&!e.parent},Hve=function(e){tt(vz,ee,function(){var t=e.facade;ya?WC.emit("rejectionHandled",t):Ez("rejectionhandled",t,e.value)})},dl=function(e,t,n){return function(r){e(t,r,n)}},Al=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,GC(e,!0))},R3=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw mz("Promise can't be resolved itself");var r=wz(t);r?gz(function(){var o={done:!1};try{tt(r,t,dl(R3,o,e),dl(Al,o,e))}catch(i){Al(o,i,e)}}):(e.value=t,e.state=1,GC(e,!1))}catch(o){Al({done:!1},o,e)}}};if(Bd&&(Hf=(wo=function(e){$C(this,Hf),_a(e),tt(Jw,this);var t=S_(this);try{e(dl(R3,t),dl(Al,t))}catch(n){Al(t,n)}}).prototype,(Jw=function(e){Nve(this,{type:Xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=m1(Hf,{then:function(e,t){var n=Rve(this),r=n.reactions,o=xl(XM(this,wo));return o.ok=!ut(e)||e,o.fail=ut(t)&&t,o.domain=ya?WC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&GC(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),D_=function(){var e=new Jw,t=S_(e);this.promise=e,this.resolve=dl(R3,t),this.reject=dl(Al,t)},VC.f=xl=function(e){return e===wo||e===hz?new D_(e):Lve(e)},ut(w1)&&su!==Object.prototype)){C_=su.then,bz||(Tr(su,"then",function(e,t){var n=this;return new wo(function(r,o){tt(C_,n,r,o)}).then(e,t)},{unsafe:!0}),Tr(su,"catch",Hf.catch,{unsafe:!0}));try{delete su.constructor}catch{}Ql&&Ql(su,Hf)}bo({global:!0,wrap:!0,forced:Bd},{Promise:wo}),v1(wo,Xo,!1),function(e){var t=is("Promise"),n=fi.f;Fo&&t&&!t[p_]&&n(t,p_,{configurable:!0,get:function(){return this}})}(),hz=is(Xo),bo({target:Xo,stat:!0,forced:Bd},{reject:function(e){var t=xl(this);return tt(t.reject,void 0,e),t.promise}}),bo({target:Xo,stat:!0,forced:Bd},{resolve:function(e){return function(t,n){if(cn(t),dt(n)&&n.constructor===t)return n;var r=VC.f(t);return(0,r.resolve)(n),r.promise}(this,e)}}),bo({target:Xo,stat:!0,forced:zve},{all:function(e){var t=this,n=xl(t),r=n.resolve,o=n.reject,i=I3(function(){var a=_a(t.resolve),u=[],s=0,l=1;y1(e,function(c){var f=s++,d=!1;l++,tt(a,t,c).then(function(p){d||(d=!0,u[f]=p,--l||r(u))},o)}),--l||r(u)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=xl(t),r=n.reject,o=I3(function(){var i=_a(t.resolve);y1(e,function(a){tt(i,t,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Uve=ph.PROPER,L3=RegExp.prototype,Dz=L3.toString,Vve=Te(WM),Wve=ht(function(){return Dz.call({source:"a",flags:"b"})!="/a/b"}),Gve=Uve&&Dz.name!="toString";(Wve||Gve)&&Tr(RegExp.prototype,"toString",function(){var e=cn(this),t=ma(e.source),n=e.flags;return"/"+t+"/"+ma(n===void 0&&yp(L3,e)&&!("flags"in L3)?Vve(e):n)},{unsafe:!0});var qve=ph.EXISTS,Kve=fi.f,Cz=Function.prototype,Yve=Te(Cz.toString),Sz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Xve=Te(Sz.exec);Fo&&!qve&&Kve(Cz,"name",{configurable:!0,get:function(){try{return Xve(Sz,Yve(this))[1]}catch{return""}}});var A_=new WeakMap;function xz(e){return e.getMenuConfig("uploadImage")}function Jve(e,t){return RC(this,void 0,void 0,function(){return LC(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Tu(e,a,t.name,u),r("ok")}}})]})})}function Zve(e,t){return RC(this,void 0,void 0,function(){var n,r,o,i;return LC(this,function(a){switch(a.label){case 0:return n=function(u){var s=A_.get(u);if(s!=null)return s;var l=xz(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=oN(h1(h1({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,function(L,H,M){return Tu(u,L,H,M)}),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(L){var H=L.url,M=H===void 0?"":H,K=L.alt,V=K===void 0?"":K,G=L.href;Tu(u,M,V,G===void 0?"":G)});else{var D=w.url,S=D===void 0?"":D,C=w.alt,O=C===void 0?"":C,F=w.href;Tu(u,S,O,F===void 0?"":F)}c(m,g)}else d(m,g)},onError:function(m,g,y){v(m,g,y)}})),A_.set(u,s),s}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function Az(e,t){var n,r;return RC(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return LC(this,function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=xz(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Vge(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Jve(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,m,g){return Tu(e,v,m,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Zve(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}})})}var Qve=Te([].join),e1e=EC!=Object,t1e=lz("join",",");bo({target:"Array",proto:!0,forced:e1e||!t1e},{join:function(e){return Qve(Ma(this),e===void 0?",":e)}}),Ar&&(k.fn.append=Ar),Oo&&(k.fn.on=Oo),Ll&&(k.fn.remove=Ll),Ao&&(k.fn.val=Ao),kA&&(k.fn.click=kA),Pl&&(k.fn.hide=Pl);var n1e=function(){function e(){this.title=Q("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return im(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,n){var r=this.getMenuConfig(t),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,d){return Tu(t,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=k("body"),l=k('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;Az(t,c)})}},e}(),r1e={menus:[{key:"uploadImage",factory:function(){return new n1e},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(im(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d}(i.type.split("/"),1)[0]==="image"})?Az(e,o):t(r)}},n}};Gn("en",{highLightModule:{selectLang:"Language"}}),Gn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var E1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qC(e){var t={exports:{}};return e(t,t.exports),t.exports}var zi,lg,F0=function(e){return e&&e.Math==Math&&e},Ie=F0(typeof globalThis=="object"&&globalThis)||F0(typeof window=="object"&&window)||F0(typeof self=="object"&&self)||F0(typeof E1=="object"&&E1)||function(){return this}()||Function("return this")(),o1e=Object.defineProperty,KC=function(e,t){try{o1e(Ie,e,{value:t,configurable:!0,writable:!0})}catch{Ie[e]=t}return t},ba=Ie["__core-js_shared__"]||KC("__core-js_shared__",{}),YC=qC(function(e){(e.exports=function(t,n){return ba[t]||(ba[t]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Oz=Function.prototype,M3=Oz.bind,z3=Oz.call,i1e=M3&&M3.bind(z3),Ze=M3?function(e){return e&&i1e(z3,e)}:function(e){return e&&function(){return z3.apply(e,arguments)}},a1e=Ie.TypeError,ec=function(e){if(e==null)throw a1e("Can't call method on "+e);return e},u1e=Ie.Object,XC=function(e){return u1e(ec(e))},s1e=Ze({}.hasOwnProperty),Sr=Object.hasOwn||function(e,t){return s1e(XC(e),t)},l1e=0,c1e=Math.random(),f1e=Ze(1 .toString),Bz=function(e){return"Symbol("+(e===void 0?"":e)+")_"+f1e(++l1e+c1e,36)},jn=function(e){return typeof e=="function"},d1e=function(e){return jn(e)?e:void 0},vh=function(e,t){return arguments.length<2?d1e(Ie[e]):Ie[e]&&Ie[e][t]},Zw=vh("navigator","userAgent")||"",O_=Ie.process,B_=Ie.Deno,k_=O_&&O_.versions||B_&&B_.version,F_=k_&&k_.v8;F_&&(lg=(zi=F_.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!lg&&Zw&&(!(zi=Zw.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=Zw.match(/Chrome\/(\d+)/))&&(lg=+zi[1]);var T_=lg,un=function(e){try{return!!e()}catch{return!0}},$3=!!Object.getOwnPropertySymbols&&!un(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&T_&&T_<41}),JC=$3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uf=YC("wks"),Uu=Ie.Symbol,__=Uu&&Uu.for,p1e=JC?Uu:Uu&&Uu.withoutSetter||Bz,za=function(e){if(!Sr(Uf,e)||!$3&&typeof Uf[e]!="string"){var t="Symbol."+e;$3&&Sr(Uu,e)?Uf[e]=Uu[e]:Uf[e]=JC&&__?__(t):p1e(t)}return Uf[e]},kz={};kz[za("toStringTag")]="z";var ZC=String(kz)==="[object z]",To=!un(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Eo=function(e){return typeof e=="object"?e!==null:jn(e)},H3=Ie.document,h1e=Eo(H3)&&Eo(H3.createElement),QC=function(e){return h1e?H3.createElement(e):{}},Fz=!To&&!un(function(){return Object.defineProperty(QC("div"),"a",{get:function(){return 7}}).a!=7}),g1e=Ie.String,v1e=Ie.TypeError,Jr=function(e){if(Eo(e))return e;throw v1e(g1e(e)+" is not an object")},Vf=Function.prototype.call,on=Vf.bind?Vf.bind(Vf):function(){return Vf.apply(Vf,arguments)},Tz=Ze({}.isPrototypeOf),m1e=Ie.Object,Qw=JC?function(e){return typeof e=="symbol"}:function(e){var t=vh("Symbol");return jn(t)&&Tz(t.prototype,m1e(e))},y1e=Ie.String,_z=function(e){try{return y1e(e)}catch{return"Object"}},b1e=Ie.TypeError,jz=function(e){if(jn(e))return e;throw b1e(_z(e)+" is not a function")},Pz=function(e,t){var n=e[t];return n==null?void 0:jz(n)},w1e=Ie.TypeError,E1e=Ie.TypeError,D1e=za("toPrimitive"),eS=function(e){var t=function(n,r){if(!Eo(n)||Qw(n))return n;var o,i=Pz(n,D1e);if(i){if(o=on(i,n,r),!Eo(o)||Qw(o))return o;throw E1e("Can't convert object to primitive value")}return function(a,u){var s,l;if(jn(s=a.toString)&&!Eo(l=on(s,a))||jn(s=a.valueOf)&&!Eo(l=on(s,a))||u!=="string")return l;throw w1e("Can't convert object to primitive value")}(n,r)}(e,"string");return Qw(t)?t:t+""},C1e=Ie.TypeError,j_=Object.defineProperty,Tm={f:To?j_:function(e,t,n){if(Jr(e),t=eS(t),Jr(n),Fz)try{return j_(e,t,n)}catch{}if("get"in n||"set"in n)throw C1e("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tS=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tc=To?function(e,t,n){return Tm.f(e,t,tS(1,n))}:function(e,t,n){return e[t]=n,e},S1e=Ze(Function.toString);jn(ba.inspectSource)||(ba.inspectSource=function(e){return S1e(e)});var D1,kd,C1,nS=ba.inspectSource,P_=Ie.WeakMap,x1e=jn(P_)&&/native code/.test(nS(P_)),I_=YC("keys"),Iz=function(e){return I_[e]||(I_[e]=Bz(e))},rS={},U3=Ie.TypeError,A1e=Ie.WeakMap;if(x1e||ba.state){var ru=ba.state||(ba.state=new A1e),O1e=Ze(ru.get),N_=Ze(ru.has),B1e=Ze(ru.set);D1=function(e,t){if(N_(ru,e))throw new U3("Object already initialized");return t.facade=e,B1e(ru,e,t),t},kd=function(e){return O1e(ru,e)||{}},C1=function(e){return N_(ru,e)}}else{var Js=Iz("state");rS[Js]=!0,D1=function(e,t){if(Sr(e,Js))throw new U3("Object already initialized");return t.facade=e,tc(e,Js,t),t},kd=function(e){return Sr(e,Js)?e[Js]:{}},C1=function(e){return Sr(e,Js)}}var V3={set:D1,get:kd,has:C1,enforce:function(e){return C1(e)?kd(e):D1(e,{})},getterFor:function(e){return function(t){var n;if(!Eo(t)||(n=kd(t)).type!==e)throw U3("Incompatible receiver, "+e+" required");return n}}},Nz=Function.prototype,k1e=To&&Object.getOwnPropertyDescriptor,e4=Sr(Nz,"name"),Rz={EXISTS:e4,PROPER:e4&&(function(){}).name==="something",CONFIGURABLE:e4&&(!To||To&&k1e(Nz,"name").configurable)},Ap=qC(function(e){var t=Rz.CONFIGURABLE,n=V3.get,r=V3.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;jn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Sr(u,"name")||t&&u.name!==p)&&tc(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ie?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:tc(i,a,u)):f?i[a]=u:KC(a,u)})(Function.prototype,"toString",function(){return jn(this)&&n(this).source||nS(this)})}),F1e=Ze({}.toString),T1e=Ze("".slice),wa=function(e){return T1e(F1e(e),8,-1)},_1e=za("toStringTag"),j1e=Ie.Object,P1e=wa(function(){return arguments}())=="Arguments",oS=ZC?wa:function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=function(o,i){try{return o[i]}catch{}}(t=j1e(e),_1e))=="string"?n:P1e?wa(t):(r=wa(t))=="Object"&&jn(t.callee)?"Arguments":r},I1e=ZC?{}.toString:function(){return"[object "+oS(this)+"]"};ZC||Ap(Object.prototype,"toString",I1e,{unsafe:!0});var R_,L_={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},t4=QC("span").classList,M_=t4&&t4.constructor&&t4.constructor.prototype,N1e=M_===Object.prototype?void 0:M_,z_=Ze(Ze.bind),n4=Ie.Object,R1e=Ze("".split),iS=un(function(){return!n4("z").propertyIsEnumerable(0)})?function(e){return wa(e)=="String"?R1e(e,""):n4(e)}:n4,L1e=Math.ceil,M1e=Math.floor,aS=function(e){var t=+e;return t!=t||t===0?0:(t>0?M1e:L1e)(t)},z1e=Math.min,Lz=function(e){return e>0?z1e(aS(e),9007199254740991):0},uS=function(e){return Lz(e.length)},$_=Array.isArray||function(e){return wa(e)=="Array"},Mz=function(){},$1e=[],zz=vh("Reflect","construct"),sS=/^\s*(?:class|function)\b/,H1e=Ze(sS.exec),U1e=!sS.exec(Mz),Wf=function(e){if(!jn(e))return!1;try{return zz(Mz,$1e,e),!0}catch{return!1}},$z=!zz||un(function(){var e;return Wf(Wf.call)||!Wf(Object)||!Wf(function(){e=!0})||e})?function(e){if(!jn(e))return!1;switch(oS(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return U1e||!!H1e(sS,nS(e))}:Wf,V1e=za("species"),H_=Ie.Array,W1e=function(e,t){return new(function(n){var r;return $_(n)&&(r=n.constructor,($z(r)&&(r===H_||$_(r.prototype))||Eo(r)&&(r=r[V1e])===null)&&(r=void 0)),r===void 0?H_:r}(e))(t===0?0:t)},U_=Ze([].push),$i=function(e){var t=e==1,n=e==2,r=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=XC(s),m=iS(v),g=function(D,S){return jz(D),S===void 0?D:z_?z_(D,S):function(){return D.apply(S,arguments)}}(l,c),y=uS(m),h=0,b=f||W1e,w=t?b(s,y):n||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:U_(w,d)}else switch(e){case 4:return!1;case 7:U_(w,d)}return i?-1:r||o?o:w}},G1e=[$i(0),$i(1),$i(2),$i(3),$i(4),$i(5),$i(6),$i(7)][0],r4=(R_=[].forEach)&&un(function(){R_.call(null,function(){throw 1},1)})?[].forEach:function(e){return G1e(this,e,arguments.length>1?arguments[1]:void 0)},Hz=function(e){if(e&&e.forEach!==r4)try{tc(e,"forEach",r4)}catch{e.forEach=r4}};for(var o4 in L_)L_[o4]&&Hz(Ie[o4]&&Ie[o4].prototype);Hz(N1e);var V_={}.propertyIsEnumerable,W_=Object.getOwnPropertyDescriptor,Uz={f:W_&&!V_.call({1:2},1)?function(e){var t=W_(this,e);return!!t&&t.enumerable}:V_},_m=function(e){return iS(ec(e))},G_=Object.getOwnPropertyDescriptor,Vz={f:To?G_:function(e,t){if(e=_m(e),t=eS(t),Fz)try{return G_(e,t)}catch{}if(Sr(e,t))return tS(!on(Uz.f,e,t),e[t])}},q1e=Math.max,K1e=Math.min,W3=function(e,t){var n=aS(e);return n<0?q1e(n+t,0):K1e(n,t)},Y1e=function(e){return function(t,n,r){for(var o=_m(t),i=uS(o),a=W3(r,i);i>a;a++)if(a in o&&o[a]===n)return a||0;return-1}},X1e=Y1e(),q_=Ze([].push),Wz=function(e,t){var n,r=_m(e),o=0,i=[];for(n in r)!Sr(rS,n)&&Sr(r,n)&&q_(i,n);for(;t.length>o;)Sr(r,n=t[o++])&&(~X1e(i,n)||q_(i,n));return i},S1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],J1e=S1.concat("length","prototype"),Z1e={f:Object.getOwnPropertyNames||function(e){return Wz(e,J1e)}},Gz={f:Object.getOwnPropertySymbols},Q1e=Ze([].concat),eme=vh("Reflect","ownKeys")||function(e){var t=Z1e.f(Jr(e)),n=Gz.f;return n?Q1e(t,n(e)):t},tme=function(e,t){for(var n=eme(t),r=Tm.f,o=Vz.f,i=0;i<n.length;i++){var a=n[i];Sr(e,a)||r(e,a,o(t,a))}},nme=/#|\.prototype\./,mh=function(e,t){var n=ome[rme(e)];return n==ame||n!=ime&&(jn(t)?un(t):!!t)},rme=mh.normalize=function(e){return String(e).replace(nme,".").toLowerCase()},ome=mh.data={},ime=mh.NATIVE="N",ame=mh.POLYFILL="P",ume=mh,sme=Vz.f,jm=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ie:l?Ie[u]||KC(u,{}):(Ie[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=sme(n,r))&&a.value:n[r],!ume(s?r:u+(l?".":"#")+r,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;tme(i,o)}(e.sham||o&&o.sham)&&tc(i,"sham",!0),Ap(n,r,i,e)}},cg=Object.keys||function(e){return Wz(e,S1)},Zs=Object.assign,K_=Object.defineProperty,lme=Ze([].concat),Y_=!Zs||un(function(){if(To&&Zs({b:1},Zs(K_({},"a",{enumerable:!0,get:function(){K_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(o){t[o]=o}),Zs({},e)[n]!=7||cg(Zs({},t)).join("")!=r})?function(e,t){for(var n=XC(e),r=arguments.length,o=1,i=Gz.f,a=Uz.f;r>o;)for(var u,s=iS(arguments[o++]),l=i?lme(cg(s),i(s)):cg(s),c=l.length,f=0;c>f;)u=l[f++],To&&!on(a,s,u)||(n[u]=s[u]);return n}:Zs;jm({target:"Object",stat:!0,forced:Object.assign!==Y_},{assign:Y_});var X_=qC(function(e){var t=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 g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(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]=g(y[D],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach(function(S,C){b[C]=g(S,h)}),b);default:return y}},getLanguage:function(g){for(;g&&!r.test(g.className);)g=g.parentElement;return g?(g.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 g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var b="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var b in y)h[b]=y[b];return h},insertBefore:function(g,y,h,b){var w=(b=b||a.languages)[g],D={};for(var S in w)if(w.hasOwnProperty(S)){if(S==y)for(var C in h)h.hasOwnProperty(C)&&(D[C]=h[C]);h.hasOwnProperty(S)||(D[S]=w[S])}var O=b[g];return b[g]=D,a.languages.DFS(a.languages,function(F,L){L===O&&F!=g&&(this[F]=D)}),D},DFS:function g(y,h,b,w){w=w||{};var D=a.util.objId;for(var S in y)if(y.hasOwnProperty(S)){h.call(y,S,y[S],b||S);var C=y[S],O=a.util.type(C);O!=="Object"||w[D(C)]?O!=="Array"||w[D(C)]||(w[D(C)]=!0,g(C,h,S,w)):(w[D(C)]=!0,g(C,h,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,D=0;w=b.elements[D++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(g,y,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(r,"").replace(/\s+/g," ")+" language-"+b;var D=g.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&(D.className=D.className.replace(r,"").replace(/\s+/g," ")+" language-"+b);var S={element:g,language:b,grammar:w,code:g.textContent};function C(F){S.highlightedCode=F,a.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,a.hooks.run("after-highlight",S),a.hooks.run("complete",S),h&&h.call(S.element)}if(a.hooks.run("before-sanity-check",S),(D=S.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!S.code)return a.hooks.run("complete",S),void(h&&h.call(S.element));if(a.hooks.run("before-highlight",S),S.grammar)if(y&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(F){C(F.data)},O.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else C(a.highlight(S.code,S.grammar,S.language));else C(a.util.encode(S.code))},highlight:function(g,y,h){var b={code:g,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(g,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,g),l(g,w,y,w.head,0),function(D){for(var S=[],C=D.head.next;C!==D.tail;)S.push(C.value),C=C.next;return S}(w)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(g,y,h,b){this.type=g,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(g,y,h,b){g.lastIndex=y;var w=g.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(g,y,h,b,w,D){for(var S in h)if(h.hasOwnProperty(S)&&h[S]){var C=h[S];C=Array.isArray(C)?C:[C];for(var O=0;O<C.length;++O){if(D&&D.cause==S+","+O)return;var F=C[O],L=F.inside,H=!!F.lookbehind,M=!!F.greedy,K=F.alias;if(M&&!F.pattern.global){var V=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,V+"g")}for(var G=F.pattern||F,q=b.next,ne=w;q!==y.tail&&!(D&&ne>=D.reach);ne+=q.value.length,q=q.next){var se=q.value;if(y.length>g.length)return;if(!(se instanceof u)){var ue,ae=1;if(M){if(!(ue=s(G,ne,g,H)))break;var B=ue.index,x=ue.index+ue[0].length,j=ne;for(j+=q.value.length;B>=j;)j+=(q=q.next).value.length;if(ne=j-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==y.tail&&(j<x||typeof $.value=="string");$=$.next)ae++,j+=$.value.length;ae--,se=g.slice(ne,j),ue.index-=ne}else if(!(ue=s(G,0,se,H)))continue;B=ue.index;var Y=ue[0],U=se.slice(0,B),ie=se.slice(B+Y.length),ge=ne+se.length;D&&ge>D.reach&&(D.reach=ge);var ve=q.prev;if(U&&(ve=f(y,ve,U),ne+=U.length),d(y,ve,ae),q=f(y,ve,new u(S,L?a.tokenize(Y,L):Y,K,Y)),ie&&f(y,q,ie),ae>1){var De={cause:S+","+O,reach:ge};l(g,y,h,q.prev,ne,De),D&&De.reach>D.reach&&(D.reach=De.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,g.length++,w}function d(g,y,h){for(var b=y.next,w=0;w<h&&b!==g.tail;w++)b=b.next;y.next=b,b.prev=y,g.length-=w}if(n.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(O){b+=g(O,h)}),b}var w={type:y.type,content:g(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 S="";for(var C in w.attributes)S+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+S+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(g){var y=JSON.parse(g.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 p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var m=document.readyState;m==="loading"||m==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});/**
- * Prism: Lightweight, robust, elegant syntax highlighting
- *
- * @license MIT <https://opensource.org/licenses/MIT>
- * @author Lea Verou <https://lea.verou.me>
- * @namespace
- * @public
- */e.exports&&(e.exports=t),E1!==void 0&&(E1.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:t.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},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(n,r){t.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:t.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(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"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(t!==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;t.hooks.add("before-highlightall",function(u){u.selector+=", "+o}),t.hooks.add("before-sanity-check",function(u){var s=u.element;if(s.matches(o)){u.code="",s.setAttribute(r,"loading");var l=s.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=s.getAttribute("data-src"),f=u.language;if(f==="none"){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];f=n[d]||d}a(l,f),a(s,f);var p=t.plugins.autoloader;p&&p.loadLanguages(f);var v=new XMLHttpRequest;v.open("GET",c,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?(s.setAttribute(r,"loaded"),l.textContent=v.responseText,t.highlightElement(l)):(s.setAttribute(r,"failed"),v.status>=400?l.textContent="✖ Error "+v.status+" while fetching file: "+v.statusText:l.textContent="✖ Error: File does not exist or is empty"))},v.send(null)}}),t.plugins.fileHighlight={highlight:function(u){for(var s,l=(u||document).querySelectorAll(o),c=0;s=l[c++];)t.highlightElement(s)}},t.fileHighlight=function(){t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(u,s){var l=u.className;l=l.replace(i," ")+" language-"+s,u.className=l.replace(/\s+/g," ").trim()}}()});(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(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,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.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(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(x,j){return x.replace(/<<(\d+)>>/g,function($,Y){return"(?:"+j[+Y]+")"})}function n(x,j,$){return RegExp(t(x,j),"")}function r(x,j){for(var $=0;$<j;$++)x=x.replace(/<<self>>/g,function(){return"(?:"+x+")"});return x.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(x){return"\\b(?:"+x.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),D=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),S=t(/(?:<<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,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[L]),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,[m,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[m]),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,[S,d,m]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),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,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,p]),inside:{function:n(/^<<0>>/.source,[m]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,m,S,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),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=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,G=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,K]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,G]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,ne=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),se=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ne,q]),ue=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),ae=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ue,q]);function B(x,j){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[x]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[j,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[se]),lookbehind:!0,greedy:!0,inside:B(se,ne)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ae]),lookbehind:!0,greedy:!0,inside:B(ae,ue)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return t}),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;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var m=v.content[1],g=v.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var y=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}}(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var m=e.languages[c];if(m)l.content=e.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),m,c);else if(c&&c!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var cme=["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 qz(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,n){return t+qz(n)},0)}var T0,fme=Ie.String,ni=function(e){if(oS(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fme(e)},Kz=function(){var e=Jr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},lS=Ie.RegExp,G3=un(function(){var e=lS("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),dme=G3||un(function(){return!lS("a","y").sticky}),Yz={BROKEN_CARET:G3||un(function(){var e=lS("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:dme,UNSUPPORTED_Y:G3},pme=To?Object.defineProperties:function(e,t){Jr(e);for(var n,r=_m(t),o=cg(t),i=o.length,a=0;i>a;)Tm.f(e,n=o[a++],r[n]);return e},hme=vh("document","documentElement"),Xz=Iz("IE_PROTO"),i4=function(){},Jz=function(e){return"<script>"+e+"<\/script>"},J_=function(e){e.write(Jz("")),e.close();var t=e.parentWindow.Object;return e=null,t},fg=function(){try{T0=new ActiveXObject("htmlfile")}catch{}var e,t;fg=typeof document<"u"?document.domain&&T0?J_(T0):((t=QC("iframe")).style.display="none",hme.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Jz("document.F=Object")),e.close(),e.F):J_(T0);for(var n=S1.length;n--;)delete fg.prototype[S1[n]];return fg()};rS[Xz]=!0;var Z_,a4,gme=Object.create||function(e,t){var n;return e!==null?(i4.prototype=Jr(e),n=new i4,i4.prototype=null,n[Xz]=e):n=fg(),t===void 0?n:pme(n,t)},vme=Ie.RegExp,mme=un(function(){var e=vme(".","s");return!(e.dotAll&&e.exec(`
- `)&&e.flags==="s")}),yme=Ie.RegExp,bme=un(function(){var e=yme("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),wme=V3.get,Eme=YC("native-string-replace",String.prototype.replace),x1=RegExp.prototype.exec,q3=x1,Dme=Ze("".charAt),Cme=Ze("".indexOf),Sme=Ze("".replace),u4=Ze("".slice),s4=(a4=/b*/g,on(x1,Z_=/a/,"a"),on(x1,a4,"a"),Z_.lastIndex!==0||a4.lastIndex!==0),Q_=Yz.BROKEN_CARET,l4=/()??/.exec("")[1]!==void 0;(s4||l4||Q_||mme||bme)&&(q3=function(e){var t,n,r,o,i,a,u,s=this,l=wme(s),c=ni(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=on(q3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Q_&&s.sticky,v=on(Kz,s),m=s.source,g=0,y=c;if(p&&(v=Sme(v,"y",""),Cme(v,"g")===-1&&(v+="g"),y=u4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Dme(c,s.lastIndex-1)!==`
- `)&&(m="(?: "+m+")",y=" "+y,g++),n=new RegExp("^(?:"+m+")",v)),l4&&(n=new RegExp("^"+m+"$(?!\\s)",v)),s4&&(r=s.lastIndex),o=on(x1,p?n:s,y),p?o?(o.input=u4(o.input,g),o[0]=u4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:s4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),l4&&o&&o.length>1&&on(Eme,o[0],n,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&d)for(o.groups=a=gme(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Op=q3;jm({target:"RegExp",proto:!0,forced:/./.exec!==Op},{exec:Op});var cS=Function.prototype,ej=cS.apply,xme=cS.bind,tj=cS.call,Ame=typeof Reflect=="object"&&Reflect.apply||(xme?tj.bind(ej):function(){return tj.apply(ej,arguments)}),Ome=za("species"),c4=RegExp.prototype,Bme=za("match"),kme=Ie.TypeError,Fme=za("species"),Tme=Ze("".charAt),nj=Ze("".charCodeAt),_me=Ze("".slice),jme=function(e){return function(t,n){var r,o,i=ni(ec(t)),a=aS(n),u=i.length;return a<0||a>=u?"":(r=nj(i,a))<55296||r>56319||a+1===u||(o=nj(i,a+1))<56320||o>57343?Tme(i,a):_me(i,a,a+2)}},Pme=jme(),Ime=function(e,t,n){return t+(n?Pme(e,t).length:1)},Nme=Ie.Array,Rme=Math.max,rj=function(e,t,n){for(var r,o,i,a,u=uS(e),s=W3(t,u),l=W3(n===void 0?u:n,u),c=Nme(Rme(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=eS(o))in r?Tm.f(r,a,tS(0,i)):r[a]=i;return c.length=f,c},Lme=Ie.TypeError,oj=function(e,t){var n=e.exec;if(jn(n)){var r=on(n,e,t);return r!==null&&Jr(r),r}if(wa(e)==="RegExp")return on(Op,e,t);throw Lme("RegExp#exec called on incompatible receiver")},Qs=Yz.UNSUPPORTED_Y,Mme=Math.min,Zz=[].push,zme=Ze(/./.exec),el=Ze(Zz),Gf=Ze("".slice);(function(e,t,n,r){var o=za(e),i=!un(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!un(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Ome]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Ze(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var m,g,y=ni(ec(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!Eo(m=p)||!((g=m[Bme])!==void 0?g:wa(m)=="RegExp"))return on(c,y,p,h);for(var b,w,D,S=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,F=new RegExp(p.source,C+"g");(b=on(Op,F,y))&&!((w=F.lastIndex)>O&&(el(S,Gf(y,O,b.index)),b.length>1&&b.index<y.length&&Ame(Zz,S,rj(b,1)),D=b[0].length,O=w,S.length>=h));)F.lastIndex===b.index&&F.lastIndex++;return O===y.length?!D&&zme(F,"")||el(S,""):el(S,Gf(y,O)),S.length>h?rj(S,0,h):S}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:on(c,this,p,v)}:c,[function(p,v){var m=ec(this),g=p==null?void 0:Pz(p,l);return g?on(g,p,m,v):on(d,ni(m),p,v)},function(p,v){var m=Jr(this),g=ni(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=function(K,V){var G,q=Jr(K).constructor;return q===void 0||(G=Jr(q)[Fme])==null?V:function(ne){if($z(ne))return ne;throw kme(_z(ne)+" is not a constructor")}(G)}(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(Qs?"g":"y"),D=new h(Qs?"^(?:"+m.source+")":m,w),S=v===void 0?4294967295:v>>>0;if(S===0)return[];if(g.length===0)return oj(D,g)===null?[g]:[];for(var C=0,O=0,F=[];O<g.length;){D.lastIndex=Qs?0:O;var L,H=oj(D,Qs?Gf(g,O):g);if(H===null||(L=Mme(Lz(D.lastIndex+(Qs?O:0)),g.length))===C)O=Ime(g,O,b);else{if(el(F,Gf(g,C,O)),F.length===S)return F;for(var M=1;M<=H.length-1;M++)if(el(F,H[M]),F.length===S)return F;O=C=L}}return el(F,Gf(g,C)),F}]}(o,""[e],function(l,c,f,d,p){var v=Ze(l),m=c.exec;return m===Op||m===c4.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Ap(String.prototype,e,s[0]),Ap(c4,o,s[1])}r&&tc(c4[o],"sham",!0)})("split",0,!!un(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Qs),jm({global:!0},{globalThis:Ie}),xr&&(k.fn.attr=xr);var $me=Rz.PROPER,K3=RegExp.prototype,Qz=K3.toString,Hme=Ze(Kz),Ume=un(function(){return Qz.call({source:"a",flags:"b"})!="/a/b"}),Vme=$me&&Qz.name!="toString";(Ume||Vme)&&Ap(RegExp.prototype,"toString",function(){var e=Jr(this),t=ni(e.source),n=e.flags;return"/"+t+"/"+ni(n===void 0&&Tz(K3,e)&&!("flags"in K3)?Hme(e):n)},{unsafe:!0});var Wme=function(){function e(){this.title=Q("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var n=[],r=t.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(t);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var n=this.getSelectCodeElem(t);if(n==null||!ce.isElement(n))return"";var r=n.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,n){if(this.getSelectCodeElem(t)!=null){var r={language:n.toString()};I.setNodes(t,r,{match:function(o){return A.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var n=A.getSelectedNodeByType(t,"code");if(n==null)return null;var r=A.getParentNode(t,n);return ce.isElement(r)?r.type!=="pre"?null:n:null},e}(),Gme={renderStyle:function(e,t){var n=e,r=t,o="";return cme.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(e,t,n){var r=k(e);if(!ce.isElement(t)||A.getNodeType(t)!=="code")return t;var o=t,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 Wme},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},qme=/"/g,Kme=Ze("".replace);jm({target:"String",proto:!0,forced:un(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,n=ni(ec(this)),r="<a",(r+=' name="'+Kme(ni(t),qme,""")+'"')+">"+n+"</a>";var t,n,r}});var e$=function(e){var t,n,r,o=function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,D,S=b.call(y),C=[];try{for(;(h===void 0||h-- >0)&&!(w=S.next()).done;)C.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=S.return)&&b.call(S)}finally{if(D)throw D.error}}return C}(e,2),i=o[0],a=o[1],u=[],s=function(y){if(!oe.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=X_.languages[h];return b?X_.tokenize(y.text,b):[]}(i,c),d=0;try{for(var p=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=p.next();!v.done;v=p.next()){var m=v.value,g=d+qz(m);typeof m!="string"&&u.push(((r={})[m.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},xt=function(){return xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xt.apply(this,arguments)},nn=function(){function e(){throw new Error(`不能实例化
- Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=xt(xt({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=xt(xt({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=xt(xt({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=xt(xt({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=yr(yr({},u),o||{});if(Yd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Yd[i]=a,function(l,c){c!=null&&(xI[l]=c)}(i,s)})(t,n)},e.registerRenderElem=function(t){(function(n){var r=n.type,o=n.renderElem;XI[r||""]=o})(t)},e.registerRenderStyle=function(t){(function(n){HE.push(n)})(t)},e.registerElemToHtml=function(t){(function(n){var r=n.type,o=n.elemToHtml;AI[r||""]=o})(t)},e.registerStyleToHtml=function(t){(function(n){IE.push(n)})(t)},e.registerPreParseHtml=function(t){(function(n){VI.push(n)})(t)},e.registerParseElemHtml=function(t){(function(n){var r=n.selector,o=n.parseElemHtml;sv[r]=o})(t)},e.registerParseStyleHtml=function(t){(function(n){D8.push(n)})(t)},e.registerModule=function(t){lu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();/*! *****************************************************************************
- Copyright (c) Microsoft Corporation.
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted.
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */function lu(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return nn.registerMenu(c)}),n&&n.forEach(function(c){return nn.registerRenderElem(c)}),r&&nn.registerRenderStyle(r),o&&o.forEach(function(c){return nn.registerElemToHtml(c)}),i&&nn.registerStyleToHtml(i),a&&a.forEach(function(c){return nn.registerPreParseHtml(c)}),u&&u.forEach(function(c){return nn.registerParseElemHtml(c)}),s&&nn.registerParseStyleHtml(s),l&&nn.registerPlugin(l)}eue.forEach(function(e){return lu(e)}),lu(Tle),lu(rde),lu(d0e),lu(r1e),lu(Gme);var t$='<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>',n$={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"]}},Yme={hoverbarKeys:xt(xt({},n$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};nn.setEditorConfig(xt(xt({},Yme),{decorate:e$}));var Xme={hoverbarKeys:n$};nn.setSimpleEditorConfig(xt(xt({},Xme),{decorate:e$}));var Jme={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Q("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:Q("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Q("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Q("editor.image"),iconSvg:t$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:Q("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};nn.setToolbarConfig(Jme);var Zme={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Q("editor.image"),iconSvg:t$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Qme(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?"":t,r=e.content,o=r===void 0?[]:r,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=(s===void 0?"default":s)==="simple"?nn.simpleEditorConfig:nn.editorConfig,c=xt(xt({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return iee({selector:n,config:xt(xt(xt({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:nn.plugins})}function eye(e){var t=e.selector,n=e.editor,r=e.config,o=r===void 0?{}:r,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?nn.simpleToolbarConfig:nn.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(g,y){return qI(g,"data-w-e-toolbar",y)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=yr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),m=new cee(f,v);return p8.set(m,l),Y1.set(l,m),m}(n,{selector:t,config:xt(xt({},u),o)});return s}nn.setSimpleToolbarConfig(Zme);var tye=Object.defineProperty,nye=Object.defineProperties,rye=Object.getOwnPropertyDescriptors,ij=Object.getOwnPropertySymbols,oye=Object.prototype.hasOwnProperty,iye=Object.prototype.propertyIsEnumerable,aj=(e,t,n)=>t in e?tye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,aye=(e,t)=>{for(var n in t||(t={}))oye.call(t,n)&&aj(e,n,t[n]);if(ij)for(var n of ij(t))iye.call(t,n)&&aj(e,n,t[n]);return e},uye=(e,t)=>nye(e,rye(t));function Hi(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
- Please use '@${e}' event instead of props`,t}var r$=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};const sye=Y3({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const n=pl(null),r=uj(null),o=pl(""),i=()=>{if(!n.value)return;const u=l$(e.defaultContent);Qme({selector:n.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:uye(aye({},e.defaultConfig),{onCreated(s){if(r.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Hi("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Hi("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Hi("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Hi("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Hi("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Hi("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Hi("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Hi("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return sj(()=>{i()}),f4(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),lye={ref:"box",style:{height:"100%"}};function cye(e,t,n,r,o,i){return X3(),J3("div",lye,null,512)}var fye=r$(sye,[["render",cye]]);const dye=Y3({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=pl(null),n=r=>{if(t.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||eye({editor:r,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return s$(()=>{const{editor:r}=e;r!=null&&n(r)}),{selector:t}}}),pye={ref:"selector"};function hye(e,t,n,r,o,i){return X3(),J3("div",pye,null,512)}var gye=r$(dye,[["render",hye]]);const vye=Y3({name:"FsEditorWang5",components:{Editor:fye,Toolbar:gye},inheritAttrs:!1,props:{container:{type:Object},mode:{type:String},toolbarConfig:{type:Object},toolbarAttrs:{type:Object},editorConfig:{type:Object},uploader:{type:Object},readonly:{type:Boolean},disabled:{type:Boolean}},emits:["ready"],setup(e,t){const n=uj(),r=pl(),o=pl(),i=pl("");function a(g){n.value&&(g?n.value.enable():n.value.disable())}f4(()=>e.readonly,g=>{a(!g)},{immediate:!0}),f4(()=>e.disabled,g=>{a(!g)},{immediate:!0});const u=gS(()=>hS.merge({},pS.wangEditor5.toolbarConfig,e.toolbarConfig)),s={};if(e.uploader){async function g(h){h.options=e.uploader;const{getUploaderImpl:b}=a$();let w=await b(h.options.type);if(w==null)throw p.message.warn("Sorry,The uploader component is not ready yet"),new Error("Sorry,The component is not ready yet");return await(w==null?void 0:w.upload(h))}async function y(h,b){var w;const D={status:"uploading",progress:0,message:void 0},S=H=>{D.progress=H.percent},C=H=>{D.status="error",D.message="文件上传出错:"+H.message,console.error(D.message,H)},O={file:h,fileName:h.name,onProgress:S,onError:C},F=await g(O);let L=F==null?void 0:F.url;(w=e.uploader)!=null&&w.buildUrl&&(L=await e.uploader.buildUrl(F)),b(L)}s.uploadImage={customUpload:y},s.uploadVideo={customUpload:y}}const l=gS(()=>hS.merge({placeholder:"请输入内容...",MENU_CONF:s},pS.wangEditor5.editorConfig,e.editorConfig));u$(()=>{const g=n.value;g!=null&&g.destroy()});const c=g=>{n.value=g,a(!e.readonly&&!e.disabled),t.emit("ready")};function f(){return n}function d(){return r}const{ui:p}=i$();let v=p.formItem.injectFormItemContext();function m(){v.onChange()}return sj(()=>{}),{uploaderImplRef:o,getToolRef:d,getEditorRef:f,toolbarRef:r,editorRef:n,valueHtml:i,toolbarConfigRef:u,editorConfigRef:l,handleCreated:c,onChange:m}}});function mye(e,t,n,r,o,i){const a=vS("Toolbar"),u=vS("Editor");return X3(),J3("div",Im({class:"fs-editor-wang5"},e.container),[mS(a,Im({ref:e.toolbarRef,style:{"border-bottom":"1px solid #ccc"},editor:e.editorRef,"default-config":e.toolbarConfigRef,mode:e.mode},e.toolbarAttrs),null,16,["editor","default-config","mode"]),mS(u,Im({style:{height:"500px","overflow-y":"hidden"},"default-config":e.editorConfigRef,mode:e.mode},e.$attrs,{onOnChange:e.onChange,onOnCreated:e.handleCreated}),null,16,["default-config","mode","onOnChange","onOnCreated"])],16)}const Eye=o$(vye,[["render",mye]]);export{Eye as default};
|