vue-pure-admin/static/js/index.esm-CzGYsa7n.js

187 lines
795 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var a$=Object.defineProperty,u$=Object.defineProperties;var s$=Object.getOwnPropertyDescriptors;var gx=Object.getOwnPropertySymbols;var l$=Object.prototype.hasOwnProperty,c$=Object.prototype.propertyIsEnumerable;var Ly=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),f$=t=>{throw TypeError(t)};var vx=(t,e,n)=>e in t?a$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Z=(t,e)=>{for(var n in e||(e={}))l$.call(e,n)&&vx(t,n,e[n]);if(gx)for(var n of gx(e))c$.call(e,n)&&vx(t,n,e[n]);return t},Zt=(t,e)=>u$(t,s$(e));var Ry=(t,e,n)=>new Promise((r,o)=>{var i=s=>{try{u(n.next(s))}catch(l){o(l)}},a=s=>{try{u(n.throw(s))}catch(l){o(l)}},u=s=>s.done?r(s.value):Promise.resolve(s.value).then(i,a);u((n=n.apply(t,e)).next())}),d$=function(t,e){this[0]=t,this[1]=e};var My=t=>{var e=t[Ly("asyncIterator")],n=!1,r,o={};return e==null?(e=t[Ly("iterator")](),r=i=>o[i]=a=>e[i](a)):(e=e.call(t),r=i=>o[i]=a=>{if(n){if(n=!1,i==="throw")throw a;return a}return n=!0,{done:!1,value:new d$(new Promise(u=>{var s=e[i](a);s instanceof Object||f$("Object expected"),u(s)}),1)}}),o[Ly("iterator")]=()=>o,r("next"),"throw"in e?r("throw"):o.throw=i=>{throw i},"return"in e&&r("return"),o};import{d as sP,a as v4,M as p$,m as h$,n as g$,f as lP,k as cP,N as v$,bo as y$}from"./index-DR0XdFJ5.js";var se=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function m$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ss(t){var e={exports:{}};return t(e,e.exports),e.exports}var bi,j0,Bh=function(t){return t&&t.Math==Math&&t},Bt=Bh(typeof globalThis=="object"&&globalThis)||Bh(typeof window=="object"&&window)||Bh(typeof self=="object"&&self)||Bh(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),t5=Function.prototype,yx=t5.apply,b$=t5.bind,mx=t5.call,fP=typeof Reflect=="object"&&Reflect.apply||(b$?mx.bind(yx):function(){return mx.apply(yx,arguments)}),dP=Function.prototype,y4=dP.bind,m4=dP.call,w$=y4&&y4.bind(m4),ge=y4?function(t){return t&&w$(m4,t)}:function(t){return t&&function(){return m4.apply(t,arguments)}},gn=function(t){return typeof t=="function"},qn=function(t){try{return!!t()}catch(e){return!0}},Vn=!qn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Oc=Function.prototype.call,nr=Oc.bind?Oc.bind(Oc):function(){return Oc.apply(Oc,arguments)},bx={}.propertyIsEnumerable,wx=Object.getOwnPropertyDescriptor,E$=wx&&!bx.call({1:2},1)?function(t){var e=wx(this,t);return!!e&&e.enumerable}:bx,e5={f:E$},Kr=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},D$=ge({}.toString),C$=ge("".slice),Du=function(t){return C$(D$(t),8,-1)},zy=Bt.Object,x$=ge("".split),pP=qn(function(){return!zy("z").propertyIsEnumerable(0)})?function(t){return Du(t)=="String"?x$(t,""):zy(t)}:zy,S$=Bt.TypeError,n5=function(t){if(t==null)throw S$("Can't call method on "+t);return t},jo=function(t){return pP(n5(t))},Dr=function(t){return typeof t=="object"?t!==null:gn(t)},tr={},Ex=function(t){return gn(t)?t:void 0},rc=function(t,e){return arguments.length<2?Ex(tr[t])||Ex(Bt[t]):tr[t]&&tr[t][e]||Bt[t]&&Bt[t][e]},Td=ge({}.isPrototypeOf),$y=rc("navigator","userAgent")||"",Dx=Bt.process,Cx=Bt.Deno,xx=Dx&&Dx.versions||Cx&&Cx.version,Sx=xx&&xx.v8;Sx&&(j0=(bi=Sx.split("."))[0]>0&&bi[0]<4?1:+(bi[0]+bi[1])),!j0&&$y&&(!(bi=$y.match(/Edge\/(\d+)/))||bi[1]>=74)&&(bi=$y.match(/Chrome\/(\d+)/))&&(j0=+bi[1]);var Fh,hg=j0,fo=!!Object.getOwnPropertySymbols&&!qn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&hg&&hg<41}),r5=fo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",A$=Bt.Object,gl=r5?function(t){return typeof t=="symbol"}:function(t){var e=rc("Symbol");return gn(e)&&Td(e.prototype,A$(t))},O$=Bt.String,b4=function(t){try{return O$(t)}catch(e){return"Object"}},k$=Bt.TypeError,o5=function(t){if(gn(t))return t;throw k$(b4(t)+" is not a function")},gg=function(t,e){var n=t[e];return n==null?void 0:o5(n)},B$=Bt.TypeError,F$=Object.defineProperty,na=Bt["__core-js_shared__"]||function(t,e){try{F$(Bt,t,{value:e,configurable:!0,writable:!0})}catch(n){Bt[t]=e}return e}("__core-js_shared__",{}),ls=ss(function(t){(t.exports=function(e,n){return na[e]||(na[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),T$=Bt.Object,Bp=function(t){return T$(n5(t))},_$=ge({}.hasOwnProperty),Ut=Object.hasOwn||function(t,e){return _$(Bp(t),e)},P$=0,j$=Math.random(),N$=ge(1 .toString),vg=function(t){return"Symbol("+(t===void 0?"":t)+")_"+N$(++P$+j$,36)},kc=ls("wks"),Cu=Bt.Symbol,Ax=Cu&&Cu.for,I$=r5?Cu:Cu&&Cu.withoutSetter||vg,Fn=function(t){if(!Ut(kc,t)||!fo&&typeof kc[t]!="string"){var e="Symbol."+t;fo&&Ut(Cu,t)?kc[t]=Cu[t]:kc[t]=r5&&Ax?Ax(e):I$(e)}return kc[t]},L$=Bt.TypeError,R$=Fn("toPrimitive"),M$=function(t,e){if(!Dr(t)||gl(t))return t;var n,r=gg(t,R$);if(r){if(n=nr(r,t,e),!Dr(n)||gl(n))return n;throw L$("Can't convert object to primitive value")}return function(o,i){var a,u;if(gn(a=o.toString)&&!Dr(u=nr(a,o))||gn(a=o.valueOf)&&!Dr(u=nr(a,o)))return u;throw B$("Can't convert object to primitive value")}(t)},oc=function(t){var e=M$(t,"string");return gl(e)?e:e+""},w4=Bt.document,z$=Dr(w4)&&Dr(w4.createElement),hP=function(t){return z$?w4.createElement(t):{}},gP=!Vn&&!qn(function(){return Object.defineProperty(hP("div"),"a",{get:function(){return 7}}).a!=7}),Ox=Object.getOwnPropertyDescriptor,$$=Vn?Ox:function(t,e){if(t=jo(t),e=oc(e),gP)try{return Ox(t,e)}catch(n){}if(Ut(t,e))return Kr(!nr(e5.f,t,e),t[e])},k1={f:$$},H$=/#|\.prototype\./,Fp=function(t,e){var n=U$[V$(t)];return n==G$||n!=W$&&(gn(e)?qn(e):!!e)},V$=Fp.normalize=function(t){return String(t).replace(H$,".").toLowerCase()},U$=Fp.data={},W$=Fp.NATIVE="N",G$=Fp.POLYFILL="P",q$=Fp,kx=ge(ge.bind),i5=function(t,e){return o5(t),e===void 0?t:kx?kx(t,e):function(){return t.apply(e,arguments)}},K$=Bt.String,Y$=Bt.TypeError,ir=function(t){if(Dr(t))return t;throw Y$(K$(t)+" is not an object")},X$=Bt.TypeError,Bx=Object.defineProperty,Z$=Vn?Bx:function(t,e,n){if(ir(t),e=oc(e),ir(n),gP)try{return Bx(t,e,n)}catch(r){}if("get"in n||"set"in n)throw X$("Accessors not supported");return"value"in n&&(t[e]=n.value),t},Na={f:Z$},Pn=Vn?function(t,e,n){return Na.f(t,e,Kr(1,n))}:function(t,e,n){return t[e]=n,t},J$=k1.f,Q$=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return fP(t,this,arguments)};return e.prototype=t.prototype,e},Ko=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Bt:d?Bt[c]:(Bt[c]||{}).prototype,y=f?tr:tr[c]||Pn(tr,c,{})[c],g=y.prototype;for(o in e)n=!q$(f?o:c+(d?".":"#")+o,t.forced)&&v&&Ut(v,o),a=y[o],n&&(u=t.noTargetGet?(l=J$(v,o))&&l.value:v[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?i5(i,Bt):t.wrap&&n?Q$(i):p&&gn(i)?ge(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Pn(s,"sham",!0),Pn(y,o,s),p&&(Ut(tr,r=c+"Prototype")||Pn(tr,r,{}),Pn(tr[r],o,i),t.real&&g&&!g[o]&&Pn(g,o,i)))},Fx=ls("keys"),B1=function(t){return Fx[t]||(Fx[t]=vg(t))},tH=!qn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Tx=B1("IE_PROTO"),E4=Bt.Object,eH=E4.prototype,yg=tH?E4.getPrototypeOf:function(t){var e=Bp(t);if(Ut(e,Tx))return e[Tx];var n=e.constructor;return gn(n)&&e instanceof n?n.prototype:e instanceof E4?eH:null},nH=Bt.String,rH=Bt.TypeError,mg=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return ir(r),function(i){if(typeof i=="object"||gn(i))return i;throw rH("Can't set "+nH(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),oH=Math.ceil,iH=Math.floor,a5=function(t){var e=+t;return e!=e||e===0?0:(e>0?iH:oH)(e)},aH=Math.max,uH=Math.min,D4=function(t,e){var n=a5(t);return n<0?aH(n+e,0):uH(n,e)},sH=Math.min,Tp=function(t){return(e=t.length)>0?sH(a5(e),9007199254740991):0;var e},_x=function(t){return function(e,n,r){var o,i=jo(e),a=Tp(i),u=D4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},lH={includes:_x(!0),indexOf:_x(!1)},_p={},cH=lH.indexOf,Px=ge([].push),vP=function(t,e){var n,r=jo(t),o=0,i=[];for(n in r)!Ut(_p,n)&&Ut(r,n)&&Px(i,n);for(;e.length>o;)Ut(r,n=e[o++])&&(~cH(i,n)||Px(i,n));return i},bg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fH=bg.concat("length","prototype"),dH=Object.getOwnPropertyNames||function(t){return vP(t,fH)},u5={f:dH},N0={f:Object.getOwnPropertySymbols},pH=ge([].concat),hH=rc("Reflect","ownKeys")||function(t){var e=u5.f(ir(t)),n=N0.f;return n?pH(e,n(t)):e},s5=Object.keys||function(t){return vP(t,bg)},gH=Vn?Object.defineProperties:function(t,e){ir(t);for(var n,r=jo(e),o=s5(e),i=o.length,a=0;i>a;)Na.f(t,n=o[a++],r[n]);return t},vH=rc("document","documentElement"),yP=B1("IE_PROTO"),Hy=function(){},mP=function(t){return"<script>"+t+"<\/script>"},jx=function(t){t.write(mP("")),t.close();var e=t.parentWindow.Object;return t=null,e},I0=function(){try{Fh=new ActiveXObject("htmlfile")}catch(r){}var t,e;I0=typeof document!="undefined"?document.domain&&Fh?jx(Fh):((e=hP("iframe")).style.display="none",vH.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(mP("document.F=Object")),t.close(),t.F):jx(Fh);for(var n=bg.length;n--;)delete I0.prototype[bg[n]];return I0()};_p[yP]=!0;var ii=Object.create||function(t,e){var n;return t!==null?(Hy.prototype=ir(t),n=new Hy,Hy.prototype=null,n[yP]=t):n=I0(),e===void 0?n:gH(n,e)},C4=function(t,e,n){var r=oc(e);r in t?Na.f(t,r,Kr(0,n)):t[r]=n},yH=Bt.Array,mH=Math.max,bP=function(t,e,n){for(var r=Tp(t),o=D4(e,r),i=D4(r,r),a=yH(mH(i-o,0)),u=0;o<i;o++,u++)C4(a,u,t[o]);return a.length=u,a},bH=ge("".replace),wH=ge("".split),EH=ge([].join),x4=String(Error("zxcasd").stack),wP=/\n\s*at [^:]*:[^\n]*/,DH=wP.test(x4),CH=/@[^\n]*\n/.test(x4)&&!/zxcasd/.test(x4),xH=function(t,e){if(typeof t!="string")return t;if(DH)for(;e--;)t=bH(t,wP,"");else if(CH)return EH(bP(wH(t,`
`),e),`
`);return t},SH=function(t,e){Dr(e)&&"cause"in e&&Pn(t,"cause",e.cause)},ei={},AH=Fn("iterator"),OH=Array.prototype,EP={};EP[Fn("toStringTag")]="z";var l5=String(EP)==="[object z]",kH=Fn("toStringTag"),BH=Bt.Object,FH=Du(function(){return arguments}())=="Arguments",Pp=l5?Du:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=BH(t),kH))=="string"?n:FH?Du(e):(r=Du(e))=="Object"&&gn(e.callee)?"Arguments":r},TH=Fn("iterator"),Nx=function(t){if(t!=null)return gg(t,TH)||gg(t,"@@iterator")||ei[Pp(t)]},_H=Bt.TypeError,Ix=function(t,e,n){var r,o;ir(t);try{if(!(r=gg(t,"return"))){if(e==="throw")throw n;return n}r=nr(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return ir(r),n},PH=Bt.TypeError,L0=function(t,e){this.stopped=t,this.result=e},Lx=L0.prototype,jH=function(t,e,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=i5(e,c),y=function(m){return r&&Ix(r,"normal",m),new L0(!0,m)},g=function(m){return f?(ir(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)r=t;else{if(!(o=Nx(t)))throw PH(b4(t)+" is not iterable");if(function(m){return m!==void 0&&(ei.Array===m||OH[AH]===m)}(o)){for(i=0,a=Tp(t);a>i;i++)if((u=g(t[i]))&&Td(Lx,u))return u;return new L0(!1)}r=function(m,h){var b=arguments.length<2?Nx(m):h;if(o5(b))return ir(nr(b,m));throw _H(b4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=nr(s,r)).done;){try{u=g(l.value)}catch(m){Ix(r,"throw",m)}if(typeof u=="object"&&u&&Td(Lx,u))return u}return new L0(!1)},NH=Bt.String,_d=function(t){if(Pp(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return NH(t)},IH=function(t,e){return t===void 0?arguments.length<2?"":e:_d(t)},LH=!qn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",Kr(1,7)),t.stack!==7)}),RH=Fn("toStringTag"),wg=Bt.Error,MH=[].push,Pd=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Td(Vy,this);mg?n=mg(new wg(void 0),o?yg(this):Vy):(n=o?this:ii(Vy),Pn(n,RH,"Error")),Pn(n,"message",IH(e,"")),LH&&Pn(n,"stack",xH(n.stack,1)),SH(n,r);var i=[];return jH(t,MH,{that:i}),Pn(n,"errors",i),n};mg?mg(Pd,wg):function(t,e){for(var n=hH(e),r=Na.f,o=k1.f,i=0;i<n.length;i++){var a=n[i];Ut(t,a)||r(t,a,o(e,a))}}(Pd,wg);var Vy=Pd.prototype=ii(wg.prototype,{constructor:Kr(1,Pd),message:Kr(1,""),name:Kr(1,"AggregateError")});Ko({global:!0},{AggregateError:Pd});var zH=ge(Function.toString);gn(na.inspectSource)||(na.inspectSource=function(t){return zH(t)});var Eg,od,Dg,DP=na.inspectSource,Rx=Bt.WeakMap,$H=gn(Rx)&&/native code/.test(DP(Rx)),S4=Bt.TypeError,HH=Bt.WeakMap;if($H||na.state){var qa=na.state||(na.state=new HH),VH=ge(qa.get),Mx=ge(qa.has),UH=ge(qa.set);Eg=function(t,e){if(Mx(qa,t))throw new S4("Object already initialized");return e.facade=t,UH(qa,t,e),e},od=function(t){return VH(qa,t)||{}},Dg=function(t){return Mx(qa,t)}}else{var Ss=B1("state");_p[Ss]=!0,Eg=function(t,e){if(Ut(t,Ss))throw new S4("Object already initialized");return e.facade=t,Pn(t,Ss,e),e},od=function(t){return Ut(t,Ss)?t[Ss]:{}},Dg=function(t){return Ut(t,Ss)}}var Xi,zx,$x,ic={set:Eg,get:od,has:Dg,enforce:function(t){return Dg(t)?od(t):Eg(t,{})},getterFor:function(t){return function(e){var n;if(!Dr(e)||(n=od(e)).type!==t)throw S4("Incompatible receiver, "+t+" required");return n}}},CP=Function.prototype,WH=Vn&&Object.getOwnPropertyDescriptor,Uy=Ut(CP,"name"),GH={EXISTS:Uy,PROPER:Uy&&function(){}.name==="something",CONFIGURABLE:Uy&&(!Vn||Vn&&WH(CP,"name").configurable)},Cg=function(t,e,n,r){Pn(t,e,n)},A4=Fn("iterator"),xP=!1;[].keys&&("next"in($x=[].keys())?(zx=yg(yg($x)))!==Object.prototype&&(Xi=zx):xP=!0);var qH=Xi==null||qn(function(){var t={};return Xi[A4].call(t)!==t});Xi=qH?{}:ii(Xi),gn(Xi[A4])||Cg(Xi,A4,function(){return this});var SP={IteratorPrototype:Xi,BUGGY_SAFARI_ITERATORS:xP},KH=l5?{}.toString:function(){return"[object "+Pp(this)+"]"},YH=Na.f,Hx=Fn("toStringTag"),xg=function(t,e,n,r){if(t){var o=n?t:t.prototype;Ut(o,Hx)||YH(o,Hx,{configurable:!0,value:e}),r&&!l5&&Pn(o,"toString",KH)}},XH=SP.IteratorPrototype,ZH=function(){return this},JH=GH.PROPER,Wy=SP.BUGGY_SAFARI_ITERATORS,QH=Fn("iterator"),tV=function(){return this},AP=function(t,e,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=ii(XH,{next:Kr(+!b,h)}),xg(g,w,!1,!0),ei[w]=ZH})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!Wy&&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=e+" Iterator",f=!1,d=t.prototype,p=d[QH]||d["@@iterator"]||o&&d[o],v=!Wy&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=yg(y.call(new t)))!==Object.prototype&&u.next&&(xg(u,c,!0,!0),ei[c]=tV),JH&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return nr(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ko({target:e,proto:!0,forced:Wy||f},s)),ei[e]=v,s},eV=ic.set,nV=ic.getterFor("Array Iterator");AP(Array,"Array",function(t,e){eV(this,{type:"Array Iterator",target:jo(t),index:0,kind:e})},function(){var t=nV(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),ei.Arguments=ei.Array;var rV=ge("".charAt),Vx=ge("".charCodeAt),oV=ge("".slice),Ux=function(t){return function(e,n){var r,o,i=_d(n5(e)),a=a5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Vx(i,a))<55296||r>56319||a+1===u||(o=Vx(i,a+1))<56320||o>57343?t?rV(i,a):r:t?oV(i,a,a+2):o-56320+(r-55296<<10)+65536}},iV={codeAt:Ux(!1),charAt:Ux(!0)}.charAt,aV=ic.set,uV=ic.getterFor("String Iterator");AP(String,"String",function(t){aV(this,{type:"String Iterator",string:_d(t),index:0})},function(){var t,e=uV(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=iV(n,r),e.index+=t.length,{value:t,done:!1})});var sV=tr.AggregateError,Wx=Fn("toStringTag");for(var Gy 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 Gx=Bt[Gy],qy=Gx&&Gx.prototype;qy&&Pp(qy)!==Wx&&Pn(qy,Wx,Gy),ei[Gy]=ei.Array}var wi,R0,lV=sV,Th=function(t){return t&&t.Math==Math&&t},Dt=Th(typeof globalThis=="object"&&globalThis)||Th(typeof window=="object"&&window)||Th(typeof self=="object"&&self)||Th(typeof se=="object"&&se)||function(){return this}()||Function("return this")(),cn=function(t){try{return!!t()}catch(e){return!0}},Oo=!cn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Bc=Function.prototype.call,hn=Bc.bind?Bc.bind(Bc):function(){return Bc.apply(Bc,arguments)},qx={}.propertyIsEnumerable,Kx=Object.getOwnPropertyDescriptor,cV=Kx&&!qx.call({1:2},1)?function(t){var e=Kx(this,t);return!!e&&e.enumerable}:qx,fV={f:cV},ra=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},OP=Function.prototype,O4=OP.bind,k4=OP.call,dV=O4&&O4.bind(k4),oe=O4?function(t){return t&&dV(k4,t)}:function(t){return t&&function(){return k4.apply(t,arguments)}},pV=oe({}.toString),hV=oe("".slice),xu=function(t){return hV(pV(t),8,-1)},Ky=Dt.Object,gV=oe("".split),kP=cn(function(){return!Ky("z").propertyIsEnumerable(0)})?function(t){return xu(t)=="String"?gV(t,""):Ky(t)}:Ky,vV=Dt.TypeError,F1=function(t){if(t==null)throw vV("Can't call method on "+t);return t},ac=function(t){return kP(F1(t))},nn=function(t){return typeof t=="function"},mo=function(t){return typeof t=="object"?t!==null:nn(t)},yV=function(t){return nn(t)?t:void 0},jp=function(t,e){return arguments.length<2?yV(Dt[t]):Dt[t]&&Dt[t][e]},Sg=oe({}.isPrototypeOf),Yy=jp("navigator","userAgent")||"",Yx=Dt.process,Xx=Dt.Deno,Zx=Yx&&Yx.versions||Xx&&Xx.version,Jx=Zx&&Zx.v8;Jx&&(R0=(wi=Jx.split("."))[0]>0&&wi[0]<4?1:+(wi[0]+wi[1])),!R0&&Yy&&(!(wi=Yy.match(/Edge\/(\d+)/))||wi[1]>=74)&&(wi=Yy.match(/Chrome\/(\d+)/))&&(R0=+wi[1]);var Qx=R0,B4=!!Object.getOwnPropertySymbols&&!cn(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Qx&&Qx<41}),c5=B4&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mV=Dt.Object,F4=c5?function(t){return typeof t=="symbol"}:function(t){var e=jp("Symbol");return nn(e)&&Sg(e.prototype,mV(t))},bV=Dt.String,T4=function(t){try{return bV(t)}catch(e){return"Object"}},wV=Dt.TypeError,f5=function(t){if(nn(t))return t;throw wV(T4(t)+" is not a function")},jd=function(t,e){var n=t[e];return n==null?void 0:f5(n)},EV=Dt.TypeError,DV=Object.defineProperty,d5=function(t,e){try{DV(Dt,t,{value:e,configurable:!0,writable:!0})}catch(n){Dt[t]=e}return e},oa=Dt["__core-js_shared__"]||d5("__core-js_shared__",{}),p5=ss(function(t){(t.exports=function(e,n){return oa[e]||(oa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),CV=Dt.Object,h5=function(t){return CV(F1(t))},xV=oe({}.hasOwnProperty),Un=Object.hasOwn||function(t,e){return xV(h5(t),e)},SV=0,AV=Math.random(),OV=oe(1 .toString),BP=function(t){return"Symbol("+(t===void 0?"":t)+")_"+OV(++SV+AV,36)},Fc=p5("wks"),Su=Dt.Symbol,tS=Su&&Su.for,kV=c5?Su:Su&&Su.withoutSetter||BP,In=function(t){if(!Un(Fc,t)||!B4&&typeof Fc[t]!="string"){var e="Symbol."+t;B4&&Un(Su,t)?Fc[t]=Su[t]:Fc[t]=c5&&tS?tS(e):kV(e)}return Fc[t]},BV=Dt.TypeError,FV=In("toPrimitive"),TV=function(t,e){if(!mo(t)||F4(t))return t;var n,r=jd(t,FV);if(r){if(n=hn(r,t,e),!mo(n)||F4(n))return n;throw BV("Can't convert object to primitive value")}return function(o,i){var a,u;if(nn(a=o.toString)&&!mo(u=hn(a,o))||nn(a=o.valueOf)&&!mo(u=hn(a,o)))return u;throw EV("Can't convert object to primitive value")}(t)},g5=function(t){var e=TV(t,"string");return F4(e)?e:e+""},_4=Dt.document,_V=mo(_4)&&mo(_4.createElement),v5=function(t){return _V?_4.createElement(t):{}},FP=!Oo&&!cn(function(){return Object.defineProperty(v5("div"),"a",{get:function(){return 7}}).a!=7}),eS=Object.getOwnPropertyDescriptor,PV=Oo?eS:function(t,e){if(t=ac(t),e=g5(e),FP)try{return eS(t,e)}catch(n){}if(Un(t,e))return ra(!hn(fV.f,t,e),t[e])},y5={f:PV},jV=Dt.String,NV=Dt.TypeError,ar=function(t){if(mo(t))return t;throw NV(jV(t)+" is not an object")},IV=Dt.TypeError,nS=Object.defineProperty,LV=Oo?nS:function(t,e,n){if(ar(t),e=g5(e),ar(n),FP)try{return nS(t,e,n)}catch(r){}if("get"in n||"set"in n)throw IV("Accessors not supported");return"value"in n&&(t[e]=n.value),t},uc={f:LV},$n=Oo?function(t,e,n){return uc.f(t,e,ra(1,n))}:function(t,e,n){return t[e]=n,t},RV=oe(Function.toString);nn(oa.inspectSource)||(oa.inspectSource=function(t){return RV(t)});var Ag,id,Og,m5=oa.inspectSource,rS=Dt.WeakMap,MV=nn(rS)&&/native code/.test(m5(rS)),oS=p5("keys"),b5=function(t){return oS[t]||(oS[t]=BP(t))},w5={},P4=Dt.TypeError,zV=Dt.WeakMap;if(MV||oa.state){var Ka=oa.state||(oa.state=new zV),$V=oe(Ka.get),iS=oe(Ka.has),HV=oe(Ka.set);Ag=function(t,e){if(iS(Ka,t))throw new P4("Object already initialized");return e.facade=t,HV(Ka,t,e),e},id=function(t){return $V(Ka,t)||{}},Og=function(t){return iS(Ka,t)}}else{var As=b5("state");w5[As]=!0,Ag=function(t,e){if(Un(t,As))throw new P4("Object already initialized");return e.facade=t,$n(t,As,e),e},id=function(t){return Un(t,As)?t[As]:{}},Og=function(t){return Un(t,As)}}var Gu={set:Ag,get:id,has:Og,enforce:function(t){return Og(t)?id(t):Ag(t,{})},getterFor:function(t){return function(e){var n;if(!mo(e)||(n=id(e)).type!==t)throw P4("Incompatible receiver, "+t+" required");return n}}},TP=Function.prototype,VV=Oo&&Object.getOwnPropertyDescriptor,Xy=Un(TP,"name"),E5={EXISTS:Xy,PROPER:Xy&&function(){}.name==="something",CONFIGURABLE:Xy&&(!Oo||Oo&&VV(TP,"name").configurable)},qu=ss(function(t){var e=E5.CONFIGURABLE,n=Gu.get,r=Gu.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;nn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Un(u,"name")||e&&u.name!==p)&&$n(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Dt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:$n(i,a,u)):f?i[a]=u:d5(a,u)})(Function.prototype,"toString",function(){return nn(this)&&n(this).source||m5(this)})}),UV=Math.ceil,WV=Math.floor,D5=function(t){var e=+t;return e!=e||e===0?0:(e>0?WV:UV)(e)},GV=Math.max,qV=Math.min,j4=function(t,e){var n=D5(t);return n<0?GV(n+e,0):qV(n,e)},KV=Math.min,_P=function(t){return t>0?KV(D5(t),9007199254740991):0},T1=function(t){return _P(t.length)},aS=function(t){return function(e,n,r){var o,i=ac(e),a=T1(i),u=j4(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},YV={includes:aS(!0),indexOf:aS(!1)}.indexOf,uS=oe([].push),PP=function(t,e){var n,r=ac(t),o=0,i=[];for(n in r)!Un(w5,n)&&Un(r,n)&&uS(i,n);for(;e.length>o;)Un(r,n=e[o++])&&(~YV(i,n)||uS(i,n));return i},kg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XV=kg.concat("length","prototype"),ZV=Object.getOwnPropertyNames||function(t){return PP(t,XV)},JV={f:ZV},QV={f:Object.getOwnPropertySymbols},tU=oe([].concat),eU=jp("Reflect","ownKeys")||function(t){var e=JV.f(ar(t)),n=QV.f;return n?tU(e,n(t)):e},jP=function(t,e){for(var n=eU(e),r=uc.f,o=y5.f,i=0;i<n.length;i++){var a=n[i];Un(t,a)||r(t,a,o(e,a))}},nU=/#|\.prototype\./,Np=function(t,e){var n=oU[rU(t)];return n==aU||n!=iU&&(nn(e)?cn(e):!!e)},rU=Np.normalize=function(t){return String(t).replace(nU,".").toLowerCase()},oU=Np.data={},iU=Np.NATIVE="N",aU=Np.POLYFILL="P",uU=Np,sU=y5.f,Ip=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Dt:l?Dt[u]||d5(u,{}):(Dt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=sU(n,r))&&a.value:n[r],!uU(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;jP(i,o)}(t.sham||o&&o.sham)&&$n(i,"sham",!0),qu(n,r,i,t)}},NP={};NP[In("toStringTag")]="z";var _h,C5=String(NP)==="[object z]",lU=In("toStringTag"),cU=Dt.Object,fU=xu(function(){return arguments}())=="Arguments",_1=C5?xu:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=cU(t),lU))=="string"?n:fU?xu(e):(r=xu(e))=="Object"&&nn(e.callee)?"Arguments":r},dU=Dt.String,Au=function(t){if(_1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return dU(t)},pU=function(){var t=ar(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},x5=Dt.RegExp,S5=cn(function(){var t=x5("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),hU=S5||cn(function(){return!x5("a","y").sticky}),gU=S5||cn(function(){var t=x5("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),vU={BROKEN_CARET:gU,MISSED_STICKY:hU,UNSUPPORTED_Y:S5},yU=Object.keys||function(t){return PP(t,kg)},mU=Oo?Object.defineProperties:function(t,e){ar(t);for(var n,r=ac(e),o=yU(e),i=o.length,a=0;i>a;)uc.f(t,n=o[a++],r[n]);return t},bU=jp("document","documentElement"),IP=b5("IE_PROTO"),Zy=function(){},LP=function(t){return"<script>"+t+"<\/script>"},sS=function(t){t.write(LP("")),t.close();var e=t.parentWindow.Object;return t=null,e},M0=function(){try{_h=new ActiveXObject("htmlfile")}catch(r){}var t,e;M0=typeof document!="undefined"?document.domain&&_h?sS(_h):((e=v5("iframe")).style.display="none",bU.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(LP("document.F=Object")),t.close(),t.F):sS(_h);for(var n=kg.length;n--;)delete M0.prototype[kg[n]];return M0()};w5[IP]=!0;var lS,Jy,Lp=Object.create||function(t,e){var n;return t!==null?(Zy.prototype=ar(t),n=new Zy,Zy.prototype=null,n[IP]=t):n=M0(),e===void 0?n:mU(n,e)},wU=Dt.RegExp,EU=cn(function(){var t=wU(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),DU=Dt.RegExp,CU=cn(function(){var t=DU("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),xU=Gu.get,SU=p5("native-string-replace",String.prototype.replace),Bg=RegExp.prototype.exec,N4=Bg,AU=oe("".charAt),OU=oe("".indexOf),kU=oe("".replace),Qy=oe("".slice),tm=(Jy=/b*/g,hn(Bg,lS=/a/,"a"),hn(Bg,Jy,"a"),lS.lastIndex!==0||Jy.lastIndex!==0),cS=vU.BROKEN_CARET,em=/()??/.exec("")[1]!==void 0;(tm||em||cS||EU||CU)&&(N4=function(t){var e,n,r,o,i,a,u,s=this,l=xU(s),c=Au(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=hn(N4,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=cS&&s.sticky,v=hn(pU,s),y=s.source,g=0,m=c;if(p&&(v=kU(v,"y",""),OU(v,"g")===-1&&(v+="g"),m=Qy(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&AU(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),em&&(n=new RegExp("^"+y+"$(?!\\s)",v)),tm&&(r=s.lastIndex),o=hn(Bg,p?n:s,m),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:tm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),em&&o&&o.length>1&&hn(SU,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=Lp(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Fg=N4;Ip({target:"RegExp",proto:!0,forced:/./.exec!==Fg},{exec:Fg});var BU=In("species"),fS=RegExp.prototype,FU=oe("".charAt),dS=oe("".charCodeAt),TU=oe("".slice),pS=function(t){return function(e,n){var r,o,i=Au(F1(e)),a=D5(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=dS(i,a))<55296||r>56319||a+1===u||(o=dS(i,a+1))<56320||o>57343?t?FU(i,a):r:t?TU(i,a,a+2):o-56320+(r-55296<<10)+65536}},RP={codeAt:pS(!1),charAt:pS(!0)},_U=RP.charAt,PU=function(t,e,n){return e+(n?_U(t,e).length:1)},jU=Dt.TypeError,hS=function(t,e){var n=t.exec;if(nn(n)){var r=hn(n,t,e);return r!==null&&ar(r),r}if(xu(t)==="RegExp")return hn(Fg,t,e);throw jU("RegExp#exec called on incompatible receiver")};(function(t,e,n,r){var o=In(t),i=!cn(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!cn(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[BU]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=oe(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=oe(l),y=c.exec;return y===Fg||y===fS.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});qu(String.prototype,t,s[0]),qu(fS,o,s[1])}})("match",function(t,e,n){return[function(r){var o=F1(this),i=r==null?void 0:jd(r,t);return i?hn(i,r,o):new RegExp(r)[t](Au(o))},function(r){var o=ar(this),i=Au(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return hS(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=hS(o,i))!==null;){var f=Au(s[0]);l[c]=f,f===""&&(o.lastIndex=PU(i,_P(o.lastIndex),u)),c++}return c===0?null:l}]}),Ip({global:!0},{globalThis:Dt});var NU=!cn(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),gS=b5("IE_PROTO"),I4=Dt.Object,IU=I4.prototype,Nd=NU?I4.getPrototypeOf:function(t){var e=h5(t);if(Un(e,gS))return e[gS];var n=e.constructor;return nn(n)&&e instanceof n?n.prototype:e instanceof I4?IU:null},LU=Dt.String,RU=Dt.TypeError,kl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=oe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return ar(r),function(i){if(typeof i=="object"||nn(i))return i;throw RU("Can't set "+LU(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),MU=Dt.Array,zU=Math.max,$U=oe("".replace),HU=oe("".split),VU=oe([].join),L4=String(Error("zxcasd").stack),MP=/\n\s*at [^:]*:[^\n]*/,UU=MP.test(L4),WU=/@[^\n]*\n/.test(L4)&&!/zxcasd/.test(L4),GU=function(t,e){if(typeof t!="string")return t;if(UU)for(;e--;)t=$U(t,MP,"");else if(WU)return VU(function(n,r,o){for(var i,a,u,s,l=T1(n),c=j4(r,l),f=j4(l,l),d=MU(zU(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=n[c],s=void 0,(s=g5(a))in i?uc.f(i,s,ra(0,u)):i[s]=u;return d.length=p,d}(HU(t,`
`),e),`
`);return t},qU=function(t,e){mo(e)&&"cause"in e&&$n(t,"cause",e.cause)},vS=oe(oe.bind),zP=function(t,e){return f5(t),e===void 0?t:vS?vS(t,e):function(){return t.apply(e,arguments)}},Bl={},KU=In("iterator"),YU=Array.prototype,XU=In("iterator"),yS=function(t){if(t!=null)return jd(t,XU)||jd(t,"@@iterator")||Bl[_1(t)]},ZU=Dt.TypeError,mS=function(t,e,n){var r,o;ar(t);try{if(!(r=jd(t,"return"))){if(e==="throw")throw n;return n}r=hn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return ar(r),n},JU=Dt.TypeError,z0=function(t,e){this.stopped=t,this.result=e},bS=z0.prototype,QU=function(t,e,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=zP(e,c),y=function(m){return r&&mS(r,"normal",m),new z0(!0,m)},g=function(m){return f?(ar(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)r=t;else{if(!(o=yS(t)))throw JU(T4(t)+" is not iterable");if(function(m){return m!==void 0&&(Bl.Array===m||YU[KU]===m)}(o)){for(i=0,a=T1(t);a>i;i++)if((u=g(t[i]))&&Sg(bS,u))return u;return new z0(!1)}r=function(m,h){var b=arguments.length<2?yS(m):h;if(f5(b))return ar(hn(b,m));throw ZU(T4(m)+" is not iterable")}(t,o)}for(s=r.next;!(l=hn(s,r)).done;){try{u=g(l.value)}catch(m){mS(r,"throw",m)}if(typeof u=="object"&&u&&Sg(bS,u))return u}return new z0(!1)},tW=function(t,e){return t===void 0?arguments.length<2?"":e:Au(t)},eW=!cn(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",ra(1,7)),t.stack!==7)}),nW=In("toStringTag"),Tg=Dt.Error,rW=[].push,Id=function(t,e){var n,r=arguments.length>2?arguments[2]:void 0,o=Sg(nm,this);kl?n=kl(new Tg(void 0),o?Nd(this):nm):(n=o?this:Lp(nm),$n(n,nW,"Error")),$n(n,"message",tW(e,"")),eW&&$n(n,"stack",GU(n.stack,1)),qU(n,r);var i=[];return QU(t,rW,{that:i}),$n(n,"errors",i),n};kl?kl(Id,Tg):jP(Id,Tg);var nm=Id.prototype=Lp(Tg.prototype,{constructor:ra(1,Id),message:ra(1,""),name:ra(1,"AggregateError")});Ip({global:!0},{AggregateError:Id});var R4=In("unscopables"),M4=Array.prototype;M4[R4]==null&&uc.f(M4,R4,{configurable:!0,value:Lp(null)});var Ou,wS,ES,rm=function(t){M4[R4][t]=!0},z4=In("iterator"),$P=!1;[].keys&&("next"in(ES=[].keys())?(wS=Nd(Nd(ES)))!==Object.prototype&&(Ou=wS):$P=!0);var oW=Ou==null||cn(function(){var t={};return Ou[z4].call(t)!==t});oW&&(Ou={}),nn(Ou[z4])||qu(Ou,z4,function(){return this});var A5={IteratorPrototype:Ou,BUGGY_SAFARI_ITERATORS:$P},iW=uc.f,DS=In("toStringTag"),CS=function(t,e,n){t&&!Un(t=n?t:t.prototype,DS)&&iW(t,DS,{configurable:!0,value:e})},aW=A5.IteratorPrototype,uW=function(){return this},sW=E5.PROPER,lW=E5.CONFIGURABLE,xS=A5.IteratorPrototype,om=A5.BUGGY_SAFARI_ITERATORS,Tc=In("iterator"),cW=function(){return this},HP=function(t,e,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=Lp(aW,{next:ra(+!b,h)}),CS(g,w,!1),Bl[w]=uW})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!om&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new n(this,g)}}return function(){return new n(this)}},c=e+" Iterator",f=!1,d=t.prototype,p=d[Tc]||d["@@iterator"]||o&&d[o],v=!om&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=Nd(y.call(new t)))!==Object.prototype&&u.next&&(Nd(u)!==xS&&(kl?kl(u,xS):nn(u[Tc])||qu(u,Tc,cW)),CS(u,c,!0)),sW&&o=="values"&&p&&p.name!=="values"&&(lW?$n(d,"name","values"):(f=!0,v=function(){return hn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ip({target:e,proto:!0,forced:om||f},s)),d[Tc]!==v&&qu(d,Tc,v,{name:o}),Bl[e]=v,s},fW=Gu.set,dW=Gu.getterFor("Array Iterator"),Kf=HP(Array,"Array",function(t,e){fW(this,{type:"Array Iterator",target:ac(t),index:0,kind:e})},function(){var t=dW(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Bl.Arguments=Bl.Array,rm("keys"),rm("values"),rm("entries");var pW=RP.charAt,hW=Gu.set,gW=Gu.getterFor("String Iterator");HP(String,"String",function(t){hW(this,{type:"String Iterator",string:Au(t),index:0})},function(){var t,e=gW(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=pW(n,r),e.index+=t.length,{value:t,done:!1})});var im,_g={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},am=v5("span").classList,SS=am&&am.constructor&&am.constructor.prototype,VP=SS===Object.prototype?void 0:SS,um=In("iterator"),AS=In("toStringTag"),sm=Kf.values,UP=function(t,e){if(t){if(t[um]!==sm)try{$n(t,um,sm)}catch(r){t[um]=sm}if(t[AS]||$n(t,AS,e),_g[e]){for(var n in Kf)if(t[n]!==Kf[n])try{$n(t,n,Kf[n])}catch(r){t[n]=Kf[n]}}}};for(var lm in _g)UP(Dt[lm]&&Dt[lm].prototype,lm);UP(VP,"DOMTokenList"),typeof global=="undefined"?("ActiveXObject"in window&&console.error(`抱歉wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),OS(),kS()):global&&(!((im=global.navigator)===null||im===void 0)&&im.userAgent.match("QQBrowser"))&&(OS(),kS());function OS(){typeof globalThis=="undefined"&&(window.globalThis=window)}function kS(){lV===void 0&&(window.AggregateError=function(t,e){var n=new Error(e);return n.errors=t,n})}var BS,Pg=Array.isArray||function(t){return Du(t)=="Array"},WP=function(){},vW=[],GP=rc("Reflect","construct"),O5=/^\s*(?:class|function)\b/,yW=ge(O5.exec),mW=!O5.exec(WP),_c=function(t){if(!gn(t))return!1;try{return GP(WP,vW,t),!0}catch(e){return!1}},bW=!GP||qn(function(){var t;return _c(_c.call)||!_c(Object)||!_c(function(){t=!0})||t})?function(t){if(!gn(t))return!1;switch(Pp(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mW||!!yW(O5,DP(t))}:_c,wW=Fn("species"),FS=Bt.Array,qP=function(t,e){return new(function(n){var r;return Pg(n)&&(r=n.constructor,(bW(r)&&(r===FS||Pg(r.prototype))||Dr(r)&&(r=r[wW])===null)&&(r=void 0)),r===void 0?FS:r}(t))(e===0?0:e)},EW=Fn("species"),KP=Fn("isConcatSpreadable"),TS=Bt.TypeError,DW=hg>=51||!qn(function(){var t=[];return t[KP]=!1,t.concat()[0]!==t}),CW=(BS="concat",hg>=51||!qn(function(){var t=[];return(t.constructor={})[EW]=function(){return{foo:1}},t[BS](Boolean).foo!==1})),xW=function(t){if(!Dr(t))return!1;var e=t[KP];return e!==void 0?!!e:Pg(t)};Ko({target:"Array",proto:!0,forced:!DW||!CW},{concat:function(t){var e,n,r,o,i,a=Bp(this),u=qP(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(xW(i=e===-1?a:arguments[e])){if(s+(o=Tp(i))>9007199254740991)throw TS("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&C4(u,s,i[n])}else{if(s>=9007199254740991)throw TS("Maximum allowed index exceeded");C4(u,s++,i)}return u.length=s,u}});var _S=u5.f,PS=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],YP={f:function(t){return PS&&Du(t)=="Window"?function(e){try{return _S(e)}catch(n){return bP(PS)}}(t):_S(jo(t))}},SW=ge([].slice),k5={f:Fn},AW=Na.f,Ne=function(t){var e=tr.Symbol||(tr.Symbol={});Ut(e,t)||AW(e,t,{value:k5.f(t)})},jS=ge([].push),Ei=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Bp(s),y=pP(v),g=i5(l,c),m=Tp(y),h=0,b=f||qP,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:jS(w,d)}else switch(t){case 4:return!1;case 7:jS(w,d)}return i?-1:r||o?o:w}},P1={forEach:Ei(0),map:Ei(1),filter:Ei(2),some:Ei(3),every:Ei(4),find:Ei(5),findIndex:Ei(6),filterReject:Ei(7)}.forEach,Mn=B1("hidden"),NS=Fn("toPrimitive"),OW=ic.set,IS=ic.getterFor("Symbol"),Vr=Object.prototype,Gi=Bt.Symbol,Zi=Gi&&Gi.prototype,LS=Bt.TypeError,cm=Bt.QObject,Pc=rc("JSON","stringify"),XP=k1.f,qi=Na.f,ZP=YP.f,kW=e5.f,JP=ge([].push),ai=ls("symbols"),Rp=ls("op-symbols"),fm=ls("string-to-symbol-registry"),dm=ls("symbol-to-string-registry"),BW=ls("wks"),pm=!cm||!cm.prototype||!cm.prototype.findChild,$4=Vn&&qn(function(){return ii(qi({},"a",{get:function(){return qi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=XP(Vr,e);r&&delete Vr[e],qi(t,e,n),r&&t!==Vr&&qi(Vr,e,r)}:qi,hm=function(t,e){var n=ai[t]=ii(Zi);return OW(n,{type:"Symbol",tag:t,description:e}),Vn||(n.description=e),n},jg=function(t,e,n){t===Vr&&jg(Rp,e,n),ir(t);var r=oc(e);return ir(n),Ut(ai,r)?(n.enumerable?(Ut(t,Mn)&&t[Mn][r]&&(t[Mn][r]=!1),n=ii(n,{enumerable:Kr(0,!1)})):(Ut(t,Mn)||qi(t,Mn,Kr(1,{})),t[Mn][r]=!0),$4(t,r,n)):qi(t,r,n)},RS=function(t,e){ir(t);var n=jo(e),r=s5(n).concat(H4(n));return P1(r,function(o){Vn&&!nr(QP,n,o)||jg(t,o,n[o])}),t},QP=function(t){var e=oc(t),n=nr(kW,this,e);return!(this===Vr&&Ut(ai,e)&&!Ut(Rp,e))&&(!(n||!Ut(this,e)||!Ut(ai,e)||Ut(this,Mn)&&this[Mn][e])||n)},MS=function(t,e){var n=jo(t),r=oc(e);if(n!==Vr||!Ut(ai,r)||Ut(Rp,r)){var o=XP(n,r);return!o||!Ut(ai,r)||Ut(n,Mn)&&n[Mn][r]||(o.enumerable=!0),o}},zS=function(t){var e=ZP(jo(t)),n=[];return P1(e,function(r){Ut(ai,r)||Ut(_p,r)||JP(n,r)}),n},H4=function(t){var e=t===Vr,n=ZP(e?Rp:jo(t)),r=[];return P1(n,function(o){!Ut(ai,o)||e&&!Ut(Vr,o)||JP(r,ai[o])}),r};if(fo||(Zi=(Gi=function(){if(Td(Zi,this))throw LS("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?_d(arguments[0]):void 0,e=vg(t),n=function(r){this===Vr&&nr(n,Rp,r),Ut(this,Mn)&&Ut(this[Mn],e)&&(this[Mn][e]=!1),$4(this,e,Kr(1,r))};return Vn&&pm&&$4(Vr,e,{configurable:!0,set:n}),hm(e,t)}).prototype,Cg(Zi,"toString",function(){return IS(this).tag}),Cg(Gi,"withoutSetter",function(t){return hm(vg(t),t)}),e5.f=QP,Na.f=jg,k1.f=MS,u5.f=YP.f=zS,N0.f=H4,k5.f=function(t){return hm(Fn(t),t)},Vn&&qi(Zi,"description",{configurable:!0,get:function(){return IS(this).description}})),Ko({global:!0,wrap:!0,forced:!fo,sham:!fo},{Symbol:Gi}),P1(s5(BW),function(t){Ne(t)}),Ko({target:"Symbol",stat:!0,forced:!fo},{for:function(t){var e=_d(t);if(Ut(fm,e))return fm[e];var n=Gi(e);return fm[e]=n,dm[n]=e,n},keyFor:function(t){if(!gl(t))throw LS(t+" is not a symbol");if(Ut(dm,t))return dm[t]},useSetter:function(){pm=!0},useSimple:function(){pm=!1}}),Ko({target:"Object",stat:!0,forced:!fo,sham:!Vn},{create:function(t,e){return e===void 0?ii(t):RS(ii(t),e)},defineProperty:jg,defineProperties:RS,getOwnPropertyDescriptor:MS}),Ko({target:"Object",stat:!0,forced:!fo},{getOwnPropertyNames:zS,getOwnPropertySymbols:H4}),Ko({target:"Object",stat:!0,forced:qn(function(){N0.f(1)})},{getOwnPropertySymbols:function(t){return N0.f(Bp(t))}}),Pc){var FW=!fo||qn(function(){var t=Gi();return Pc([t])!="[null]"||Pc({a:t})!="{}"||Pc(Object(t))!="{}"});Ko({target:"JSON",stat:!0,forced:FW},{stringify:function(t,e,n){var r=SW(arguments),o=e;if((Dr(e)||t!==void 0)&&!gl(t))return Pg(e)||(e=function(i,a){if(gn(o)&&(a=nr(o,this,i,a)),!gl(a))return a}),r[1]=e,fP(Pc,null,r)}})}if(!Zi[NS]){var TW=Zi.valueOf;Cg(Zi,NS,function(t){return nr(TW,this)})}xg(Gi,"Symbol"),_p[Mn]=!0,Ne("asyncIterator"),Ne("hasInstance"),Ne("isConcatSpreadable"),Ne("iterator"),Ne("match"),Ne("matchAll"),Ne("replace"),Ne("search"),Ne("species"),Ne("split"),Ne("toPrimitive"),Ne("toStringTag"),Ne("unscopables"),xg(Bt.JSON,"JSON",!0);var _W=tr.Symbol;Ne("asyncDispose"),Ne("dispose"),Ne("matcher"),Ne("metadata"),Ne("observable"),Ne("patternMatch"),Ne("replaceAll");var Ph=_W,PW=k5.f("iterator"),jW=ss(function(t){function e(n){return typeof Ph=="function"&&typeof PW=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof Ph=="function"&&r.constructor===Ph&&r!==Ph.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),NW=m$(jW),tj=y5.f,IW=cn(function(){tj(1)});if(Ip({target:"Object",stat:!0,forced:!Oo||IW,sham:!Oo},{getOwnPropertyDescriptor:function(t,e){return tj(ac(t),e)}}),(typeof global=="undefined"?"undefined":NW(global))==="object"){var LW=Object.getOwnPropertyDescriptor(global,"window");global.window&&!LW.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(t){return nodeCrypto.randomFillSync(t)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function $S(t){return Object.prototype.toString.call(t)==="[object Object]"}function xn(t){var e,n;return $S(t)!==!1&&((e=t.constructor)===void 0||$S(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)}function Hr(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ku(t){return!!t&&!!t[ur]}function Yu(t){return!!t&&(function(e){if(!e||typeof e!="object")return!1;var n=Object.getPrototypeOf(e);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===VW}(t)||Array.isArray(t)||!!t[YS]||!!t.constructor[YS]||B5(t)||F5(t))}function Ld(t,e,n){n===void 0&&(n=!1),Fl(t)===0?(n?Object.keys:N5)(t).forEach(function(r){n&&typeof r=="symbol"||e(r,t[r],t)}):t.forEach(function(r,o){return e(o,r,t)})}function Fl(t){var e=t[ur];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:B5(t)?2:F5(t)?3:0}function V4(t,e){return Fl(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ej(t,e,n){var r=Fl(t);r===2?t.set(e,n):r===3?(t.delete(e),t.add(n)):t[e]=n}function B5(t){return $W&&t instanceof Map}function F5(t){return HW&&t instanceof Set}function au(t){return t.o||t.t}function T5(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=UW(t);delete e[ur];for(var n=N5(e),r=0;r<n.length;r++){var o=n[r],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function _5(t,e){return e===void 0&&(e=!1),P5(t)||Ku(t)||!Yu(t)||(Fl(t)>1&&(t.set=t.add=t.clear=t.delete=RW),Object.freeze(t),e&&Ld(t,function(n,r){return _5(r,!0)},!0)),t}function RW(){Hr(2)}function P5(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ni(t){var e=WW[t];return e||Hr(18,t),e}function HS(){return Rd}function gm(t,e){e&&(ni("Patches"),t.u=[],t.s=[],t.v=e)}function Ng(t){U4(t),t.p.forEach(MW),t.p=null}function U4(t){t===Rd&&(Rd=t.l)}function VS(t){return Rd={p:[],l:Rd,h:t,m:!0,_:0}}function MW(t){var e=t[ur];e.i===0||e.i===1?e.j():e.O=!0}function vm(t,e){e._=e.p.length;var n=e.p[0],r=t!==void 0&&t!==n;return e.h.g||ni("ES5").S(e,t,r),r?(n[ur].P&&(Ng(e),Hr(4)),Yu(t)&&(t=Ig(e,t),e.l||Lg(e,t)),e.u&&ni("Patches").M(n[ur],t,e.u,e.s)):t=Ig(e,n,[]),Ng(e),e.u&&e.v(e.u,e.s),t!==nj?t:void 0}function Ig(t,e,n){if(P5(e))return e;var r=e[ur];if(!r)return Ld(e,function(i,a){return US(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return Lg(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=T5(r.k):r.o;Ld(r.i===3?new Set(o):o,function(i,a){return US(t,r,o,i,a,n)}),Lg(t,o,!1),n&&t.u&&ni("Patches").R(r,n,t.u,t.s)}return r.o}function US(t,e,n,r,o,i){if(Ku(o)){var a=Ig(t,o,i&&e&&e.i!==3&&!V4(e.D,r)?i.concat(r):void 0);if(ej(n,r,a),!Ku(a))return;t.m=!1}if(Yu(o)&&!P5(o)){if(!t.h.F&&t._<1)return;Ig(t,o),e&&e.A.l||Lg(t,o)}}function Lg(t,e,n){n===void 0&&(n=!1),t.h.F&&t.m&&_5(e,n)}function ym(t,e){var n=t[ur];return(n?au(n):t)[e]}function WS(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function W4(t){t.P||(t.P=!0,t.l&&W4(t.l))}function mm(t){t.o||(t.o=T5(t.t))}function G4(t,e,n){var r=B5(e)?ni("MapSet").N(e,n):F5(e)?ni("MapSet").T(e,n):t.g?function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:HS(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=$0;a&&(s=[u],l=H0);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d}(e,n):ni("ES5").J(e,n);return(n?n.A:HS()).p.push(r),r}function zW(t){return Ku(t)||Hr(22,t),function e(n){if(!Yu(n))return n;var r,o=n[ur],i=Fl(n);if(o){if(!o.P&&(o.i<4||!ni("ES5").K(o)))return o.t;o.I=!0,r=GS(n,i),o.I=!1}else r=GS(n,i);return Ld(r,function(a,u){o&&function(s,l){return Fl(s)===2?s.get(l):s[l]}(o.t,a)===u||ej(r,a,e(u))}),i===3?new Set(r):r}(t)}function GS(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return T5(t)}var qS,Rd,j5=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",$W=typeof Map!="undefined",HW=typeof Set!="undefined",KS=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",nj=j5?Symbol.for("immer-nothing"):((qS={})["immer-nothing"]=!0,qS),YS=j5?Symbol.for("immer-draftable"):"__$immer_draftable",ur=j5?Symbol.for("immer-state"):"__$immer_state",VW=""+Object.prototype.constructor,N5=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,UW=Object.getOwnPropertyDescriptors||function(t){var e={};return N5(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},WW={},$0={get:function(t,e){if(e===ur)return t;var n=au(t);if(!V4(n,e))return function(o,i,a){var u,s=WS(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0}(t,n,e);var r=n[e];return t.I||!Yu(r)?r:r===ym(t.t,e)?(mm(t),t.o[e]=G4(t.A.h,r,t)):r},has:function(t,e){return e in au(t)},ownKeys:function(t){return Reflect.ownKeys(au(t))},set:function(t,e,n){var r=WS(au(t),e);if(r!=null&&r.set)return r.set.call(t.k,n),!0;if(!t.P){var o=ym(au(t),e),i=o==null?void 0:o[ur];if(i&&i.t===n)return t.o[e]=n,t.D[e]=!1,!0;if(function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u}(n,o)&&(n!==void 0||V4(t.t,e)))return!0;mm(t),W4(t)}return t.o[e]===n&&typeof n!="number"&&(n!==void 0||e in t.o)||(t.o[e]=n,t.D[e]=!0,!0)},deleteProperty:function(t,e){return ym(t.t,e)!==void 0||e in t.t?(t.D[e]=!1,mm(t),W4(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=au(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty:function(){Hr(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Hr(12)}},H0={};Ld($0,function(t,e){H0[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),H0.deleteProperty=function(t,e){return $0.deleteProperty.call(this,t[0],e)},H0.set=function(t,e,n){return $0.set.call(this,t[0],e,n,t[0])};var GW=function(){function t(n){var r=this;this.g=KS,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 y=arguments.length,g=Array(y>1?y-1:0),m=1;m<y;m++)g[m-1]=arguments[m];return s.produce(p,function(h){var b;return(b=i).call.apply(b,[v,h].concat(g))})}}var l;if(typeof i!="function"&&Hr(6),a!==void 0&&typeof a!="function"&&Hr(7),Yu(o)){var c=VS(r),f=G4(r,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?Ng(c):U4(c)}return typeof Promise!="undefined"&&l instanceof Promise?l.then(function(p){return gm(c,a),vm(p,c)},function(p){throw Ng(c),p}):(gm(c,a),vm(l,c))}if(!o||typeof o!="object")return(l=i(o))===nj?void 0:(l===void 0&&(l=o),r.F&&_5(l,!0),l);Hr(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 e=t.prototype;return e.createDraft=function(n){Yu(n)||Hr(8),Ku(n)&&(n=zW(n));var r=VS(this),o=G4(this,n,void 0);return o[ur].C=!0,U4(r),o},e.finishDraft=function(n,r){var o=(n&&n[ur]).A;return gm(o,r),vm(void 0,o)},e.setAutoFreeze=function(n){this.F=n},e.setUseProxies=function(n){n&&!KS&&Hr(20),this.g=n},e.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=ni("Patches").$;return Ku(n)?a(n,r):this.produce(n,function(u){return a(u,r)})},t}(),Jn=new GW,j1=Jn.produce;Jn.produceWithPatches.bind(Jn),Jn.setAutoFreeze.bind(Jn),Jn.setUseProxies.bind(Jn),Jn.applyPatches.bind(Jn);var XS=Jn.createDraft.bind(Jn),ZS=Jn.finishDraft.bind(Jn);function No(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rg=new WeakMap,jc=new WeakMap,JS=new WeakMap,QS=new WeakMap,tA=new WeakMap,eA=new WeakMap;function nA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function jh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var qW=()=>{var t={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:e=>{for(var n of E.pathRefs(t))CG.transform(n,e);for(var r of E.pointRefs(t))xG.transform(r,e);for(var o of E.rangeRefs(t))AG.transform(o,e);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=Rg.get(t)||[],l=KW(e);for(var c of s)u(j.transform(c,e));for(var f of l)u(f);Rg.set(t,a),N.transform(t,e),t.operations.push(e),E.normalize(t),e.type==="set_selection"&&(t.marks=null),jc.get(t)||(jc.set(t,!0),Promise.resolve().then(()=>{jc.set(t,!1),t.onChange(),t.operations=[]}))},addMark:(e,n)=>{var{selection:r}=t;if(r)if(L.isExpanded(r))N.setNodes(t,{[e]:n},{match:it.isText,split:!0});else{var o=jh(jh({},E.marks(t)||{}),{},{[e]:n});t.marks=o,jc.get(t)||t.onChange()}},deleteBackward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e,reverse:!0})},deleteForward:e=>{var{selection:n}=t;n&&L.isCollapsed(n)&&N.delete(t,{unit:e})},deleteFragment:e=>{var{selection:n}=t;n&&L.isExpanded(n)&&N.delete(t,{reverse:e==="backward"})},getFragment:()=>{var{selection:e}=t;return e?Q.fragment(t,e):[]},insertBreak:()=>{N.splitNodes(t,{always:!0})},insertFragment:e=>{N.insertFragment(t,e)},insertNode:e=>{N.insertNodes(t,e)},insertText:e=>{var{selection:n,marks:r}=t;if(n){if(r){var o=jh({text:e},r);N.insertNodes(t,o)}else N.insertText(t,e);t.marks=null}},normalizeNode:e=>{var[n,r]=e;if(!it.isText(n))if(ft.isElement(n)&&n.children.length===0)N.insertNodes(t,{text:""},{at:r.concat(0),voids:!0});else for(var o=!E.isEditor(n)&&ft.isElement(n)&&(t.isInline(n)||n.children.length===0||it.isText(n.children[0])||t.isInline(n.children[0])),i=0,a=0;a<n.children.length;a++,i++){var u=Q.get(t,r);if(!it.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;(it.isText(s)||ft.isElement(s)&&t.isInline(s))!==o?(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--):ft.isElement(s)?t.isInline(s)&&(l!=null&&it.isText(l)?c&&(N.insertNodes(t,{text:""},{at:r.concat(i+1),voids:!0}),i++):(N.insertNodes(t,{text:""},{at:r.concat(i),voids:!0}),i++)):l!=null&&it.isText(l)&&(it.equals(s,l,{loose:!0})?(N.mergeNodes(t,{at:r.concat(i),voids:!0}),i--):l.text===""?(N.removeNodes(t,{at:r.concat(i-1),voids:!0}),i--):s.text===""&&(N.removeNodes(t,{at:r.concat(i),voids:!0}),i--))}}},removeMark:e=>{var{selection:n}=t;if(n)if(L.isExpanded(n))N.unsetNodes(t,e,{match:it.isText,split:!0});else{var r=jh({},E.marks(t)||{});delete r[e],t.marks=r,jc.get(t)||t.onChange()}}};return t},KW=t=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":var{path:e}=t;return j.levels(e);case"insert_node":var{node:n,path:r}=t,o=j.levels(r),i=it.isText(n)?[]:Array.from(Q.nodes(n),w=>{var[,D]=w;return r.concat(D)});return[...o,...i];case"merge_node":var{path:a}=t;return[...j.ancestors(a),j.previous(a)];case"move_node":var{path:u,newPath:s}=t;if(j.equals(u,s))return[];var l=[],c=[];for(var f of j.ancestors(u)){var d=j.transform(f,t);l.push(d)}for(var p of j.ancestors(s)){var v=j.transform(p,t);c.push(v)}var y=c[c.length-1],g=s[s.length-1],m=y.concat(g);return[...l,...c,m];case"remove_node":var{path:h}=t;return[...j.ancestors(h)];case"split_node":var{path:b}=t;return[...j.levels(b),j.next(b)];default:return[]}};function ui(t,e){if(t==null)return{};var n,r,o=function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var St,q4=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!e,r=e?QW(t):t,o=St.None,i=St.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=fG(s,l);if([o,i]=n?[i,c]:[c,o],ll(o,St.ZWJ)&&ll(i,St.ExtPict)&&!gG(n?t.substring(0,a):t.substring(0,t.length-a))||ll(o,St.RI)&&ll(i,St.RI)&&!(u=u!==null?!u:!!n||yG(t.substring(0,t.length-a)))||o!==St.None&&i!==St.None&&pG(o,i))break;a+=s.length}return a||1},YW=/\s/,XW=/[\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]/,ZW=/['\u2018\u2019]/,K4=(t,e,n)=>{if(n){var r=t.length-e;return[t.slice(r,t.length),t.slice(0,r)]}return[t.slice(0,e),t.slice(e)]},JW=function t(e,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(YW.test(e))return!1;if(ZW.test(e)){var o=q4(n,r),[i,a]=K4(n,o,r);if(t(i,a,r))return!0}return!XW.test(e)},QW=function*(t){for(var e=t.length-1,n=0;n<t.length;n++){var r=t.charAt(e-n);if(eG(r.charCodeAt(0))){var o=t.charAt(e-n-1);if(tG(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},tG=t=>t>=55296&&t<=56319,eG=t=>t>=56320&&t<=57343;(function(t){t[t.None=0]="None",t[t.Extend=1]="Extend",t[t.ZWJ=2]="ZWJ",t[t.RI=4]="RI",t[t.Prepend=8]="Prepend",t[t.SpacingMark=16]="SpacingMark",t[t.L=32]="L",t[t.V=64]="V",t[t.T=128]="T",t[t.LV=256]="LV",t[t.LVT=512]="LVT",t[t.ExtPict=1024]="ExtPict",t[t.Any=2048]="Any"})(St||(St={}));var nG=/^(?:[\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])$/,rG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,oG=/^(?:[\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])$/,iG=/^[\u1100-\u115F\uA960-\uA97C]$/,aG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,uG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,sG=/^[\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]$/,lG=/^[\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]$/,cG=/^(?:[\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])$/,fG=(t,e)=>{var n=St.Any;return t.search(nG)!==-1&&(n|=St.Extend),e===8205&&(n|=St.ZWJ),e>=127462&&e<=127487&&(n|=St.RI),t.search(rG)!==-1&&(n|=St.Prepend),t.search(oG)!==-1&&(n|=St.SpacingMark),t.search(iG)!==-1&&(n|=St.L),t.search(aG)!==-1&&(n|=St.V),t.search(uG)!==-1&&(n|=St.T),t.search(sG)!==-1&&(n|=St.LV),t.search(lG)!==-1&&(n|=St.LVT),t.search(cG)!==-1&&(n|=St.ExtPict),n};function ll(t,e){return(t&e)!=0}var dG=[[St.L,St.L|St.V|St.LV|St.LVT],[St.LV|St.V,St.V|St.T],[St.LVT|St.T,St.T],[St.Any,St.Extend|St.ZWJ],[St.Any,St.SpacingMark],[St.Prepend,St.Any],[St.ZWJ,St.ExtPict],[St.RI,St.RI]];function pG(t,e){return dG.findIndex(n=>ll(t,n[0])&&ll(e,n[1]))===-1}var hG=/(?:[\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$/,gG=t=>t.search(hG)!==-1,vG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,yG=t=>{var e=t.match(vG);return e!==null&&e[0].length/2%2==1},rA=t=>xn(t)&&Q.isNodeList(t.children)&&!E.isEditor(t),ft={isAncestor:t=>xn(t)&&Q.isNodeList(t.children),isElement:rA,isElementList:t=>Array.isArray(t)&&t.every(e=>ft.isElement(e)),isElementProps:t=>t.children!==void 0,isElementType:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return rA(t)&&t[n]===e},matches(t,e){for(var n in e)if(n!=="children"&&t[n]!==e[n])return!1;return!0}},mG=["text"],bG=["text"];function oA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Os(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var iA=new WeakMap,E={above(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=t.selection,match:i}=e;if(o){var a=E.path(t,o),u=r==="lowest";for(var[s,l]of E.levels(t,{at:a,voids:n,match:i,reverse:u}))if(!it.isText(s)&&!j.equals(a,l))return[s,l]}},addMark(t,e,n){t.addMark(e,n)},after(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.point(t,e,{edge:"end"}),focus:E.end(t,[])},{distance:i=1}=r,a=0;for(var u of E.positions(t,Os(Os({},r),{},{at:o}))){if(a>i)break;a!==0&&(n=u),a++}return n},before(t,e){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:E.start(t,[]),focus:E.point(t,e,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of E.positions(t,Os(Os({},r),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(n=u),a++}return n},deleteBackward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteBackward(n)},deleteForward(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=e;t.deleteForward(n)},deleteFragment(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:n="forward"}=e;t.deleteFragment(n)},edges:(t,e)=>[E.start(t,e),E.end(t,e)],end:(t,e)=>E.point(t,e,{edge:"end"}),first(t,e){var n=E.path(t,e,{edge:"start"});return E.node(t,n)},fragment(t,e){var n=E.range(t,e);return Q.fragment(t,n)},hasBlocks:(t,e)=>e.children.some(n=>E.isBlock(t,n)),hasInlines:(t,e)=>e.children.some(n=>it.isText(n)||E.isInline(t,n)),hasTexts:(t,e)=>e.children.every(n=>it.isText(n)),insertBreak(t){t.insertBreak()},insertFragment(t,e){t.insertFragment(e)},insertNode(t,e){t.insertNode(e)},insertText(t,e){t.insertText(e)},isBlock:(t,e)=>ft.isElement(e)&&!t.isInline(e),isEditor(t){if(!xn(t))return!1;var e=iA.get(t);if(e!==void 0)return e;var n=typeof t.addMark=="function"&&typeof t.apply=="function"&&typeof t.deleteBackward=="function"&&typeof t.deleteForward=="function"&&typeof t.deleteFragment=="function"&&typeof t.insertBreak=="function"&&typeof t.insertFragment=="function"&&typeof t.insertNode=="function"&&typeof t.insertText=="function"&&typeof t.isInline=="function"&&typeof t.isVoid=="function"&&typeof t.normalizeNode=="function"&&typeof t.onChange=="function"&&typeof t.removeMark=="function"&&(t.marks===null||xn(t.marks))&&(t.selection===null||L.isRange(t.selection))&&Q.isNodeList(t.children)&&Ji.isOperationList(t.operations);return iA.set(t,n),n},isEnd(t,e,n){var r=E.end(t,n);return Ft.equals(e,r)},isEdge:(t,e,n)=>E.isStart(t,e,n)||E.isEnd(t,e,n),isEmpty(t,e){var{children:n}=e,[r]=n;return n.length===0||n.length===1&&it.isText(r)&&r.text===""&&!t.isVoid(e)},isInline:(t,e)=>ft.isElement(e)&&t.isInline(e),isNormalizing(t){var e=JS.get(t);return e===void 0||e},isStart(t,e,n){if(e.offset!==0)return!1;var r=E.start(t,n);return Ft.equals(e,r)},isVoid:(t,e)=>ft.isElement(e)&&t.isVoid(e),last(t,e){var n=E.path(t,e,{edge:"end"});return E.node(t,n)},leaf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.leaf(t,r),r]},*levels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,reverse:r=!1,voids:o=!1}=e,{match:i}=e;if(i==null&&(i=()=>!0),n){var a=[],u=E.path(t,n);for(var[s,l]of Q.levels(t,u))if(i(s,l)&&(a.push([s,l]),!o&&E.isVoid(t,s)))break;r&&a.reverse(),yield*My(a)}},marks(t){var{marks:e,selection:n}=t;if(!n)return null;if(e)return e;if(L.isExpanded(n)){var[r]=E.nodes(t,{match:it.isText});if(r){var[o]=r;return ui(o,mG)}return{}}var{anchor:i}=n,{path:a}=i,[u]=E.leaf(t,a);if(i.offset===0){var s=E.previous(t,{at:a,match:it.isText}),l=E.above(t,{match:p=>E.isBlock(t,p)});if(s&&l){var[c,f]=s,[,d]=l;j.isAncestor(d,f)&&(u=c)}}return ui(u,bG)},next(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.after(t,i,{voids:r});if(a){var[,u]=E.last(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{at:s,match:o,mode:n,voids:r});return c}}},node(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n);return[Q.get(t,r),r]},*nodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=e,{match:u}=e;if(u||(u=()=>!0),n){var s,l;if(wG.isSpan(n))s=n[0],l=n[1];else{var c=E.path(t,n,{edge:"start"}),f=E.path(t,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Q.nodes(t,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&E.isVoid(t,w)}}),v=[];for(var[y,g]of p){var m=d&&j.compare(g,d[1])===0;if(r!=="highest"||!m){if(u(y,g))if(r==="lowest"&&m)d=[y,g];else{var h=r==="lowest"?d:[y,g];h&&(o?v.push(h):yield h),d=[y,g]}else if(o&&!m&&it.isText(y))return}}r==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*My(v))}},normalize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1}=e,r=i=>Rg.get(i)||[];if(E.isNormalizing(t)){if(n){var o=Array.from(Q.nodes(t),i=>{var[,a]=i;return a});Rg.set(t,o)}r(t).length!==0&&E.withoutNormalizing(t,()=>{for(var i of r(t))if(Q.has(t,i)){var a=E.node(t,i),[u,s]=a;ft.isElement(u)&&u.children.length===0&&t.normalizeNode(a)}for(var l=42*r(t).length,c=0;r(t).length!==0;){if(c>l)throw new Error(`
Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
`));var f=r(t).pop();if(Q.has(t,f)){var d=E.node(t,f);t.normalizeNode(d)}c++}})}},parent(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.path(t,e,n),o=j.parent(r);return E.node(t,o)},path(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:r,edge:o}=n;if(j.isPath(e)){if(o==="start"){var[,i]=Q.first(t,e);e=i}else if(o==="end"){var[,a]=Q.last(t,e);e=a}}return L.isRange(e)&&(e=o==="start"?L.start(e):o==="end"?L.end(e):j.common(e.anchor.path,e.focus.path)),Ft.isPoint(e)&&(e=e.path),r!=null&&(e=e.slice(0,r)),e},hasPath:(t,e)=>Q.has(t,e),pathRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pathRefs(t).delete(o),o.current=null,i}};return E.pathRefs(t).add(o),o},pathRefs(t){var e=QS.get(t);return e||(e=new Set,QS.set(t,e)),e},point(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:r="start"}=n;if(j.isPath(e)){var o;if(r==="end"){var[,i]=Q.last(t,e);o=i}else{var[,a]=Q.first(t,e);o=a}var u=Q.get(t,o);if(!it.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(e,"] because it has no ").concat(r," text node."));return{path:o,offset:r==="end"?u.text.length:0}}if(L.isRange(e)){var[s,l]=L.edges(e);return r==="start"?s:l}return e},pointRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.pointRefs(t).delete(o),o.current=null,i}};return E.pointRefs(t).add(o),o},pointRefs(t){var e=tA.get(t);return e||(e=new Set,tA.set(t,e)),e},*positions(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=t.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=e;if(n){var a=E.range(t,n),[u,s]=L.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[y,g]of E.nodes(t,{at:n,reverse:o,voids:i})){if(ft.isElement(y)){if(!i&&t.isVoid(y)){yield E.start(t,g);continue}if(t.isInline(y))continue;if(E.hasInlines(t,y)){var m=j.isAncestor(g,s.path)?s:E.end(t,g),h=j.isAncestor(g,u.path)?u:E.start(t,g);f=E.string(t,{anchor:h,focus:m},{voids:i}),c=!0}}if(it.isText(y)){var b=j.equals(g,l.path);for(b?(p=o?l.offset:y.text.length-l.offset,v=l.offset):(p=y.text.length,v=o?p:0),(b||c||r==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,r,o),f=K4(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,x,C){return x==="character"?q4(D,C):x==="word"?function(O){for(var T=arguments.length>1&&arguments[1]!==void 0&&arguments[1],R=0,H=!1;O.length>0;){var M=q4(O,T),[K,U]=K4(O,M,T);if(JW(K,U,T))H=!0,R+=M;else{if(H)break;R+=M}O=U}return R}(D,C):x==="line"||x==="block"?D.length:1}},previous(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection}=e;if(i){var a=E.before(t,i,{voids:r});if(a){var[,u]=E.first(t,[]),s=[a.path,u];if(j.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(j.isPath(i)){var[l]=E.parent(t,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=E.nodes(t,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(t,e,n)=>L.isRange(e)&&!n?e:{anchor:E.start(t,e),focus:E.end(t,n||e)},rangeRef(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:r="forward"}=n,o={current:e,affinity:r,unref(){var{current:i}=o;return E.rangeRefs(t).delete(o),o.current=null,i}};return E.rangeRefs(t).add(o),o},rangeRefs(t){var e=eA.get(t);return e||(e=new Set,eA.set(t,e)),e},removeMark(t,e){t.removeMark(e)},setNormalizing(t,e){JS.set(t,e)},start:(t,e)=>E.point(t,e,{edge:"start"}),string(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,o=E.range(t,e),[i,a]=L.edges(o),u="";for(var[s,l]of E.nodes(t,{at:o,match:it.isText,voids:r})){var c=s.text;j.equals(l,a.path)&&(c=c.slice(0,a.offset)),j.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:r=!1}=n,[o,i]=L.edges(e);if(o.offset!==0||i.offset!==0||L.isCollapsed(e))return e;var a=E.above(t,{at:i,match:d=>E.isBlock(t,d)}),u=a?a[1]:[],s={anchor:E.start(t,[]),focus:i},l=!0;for(var[c,f]of E.nodes(t,{at:s,match:it.isText,reverse:!0,voids:r}))if(l)l=!1;else if(c.text!==""||j.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E.above(t,Os(Os({},e),{},{match:n=>E.isVoid(t,n)}))},withoutNormalizing(t,e){var n=E.isNormalizing(t);E.setNormalizing(t,!1);try{e()}finally{E.setNormalizing(t,n)}E.normalize(t)}},wG={isSpan:t=>Array.isArray(t)&&t.length===2&&t.every(j.isPath)},EG=["children"],DG=["text"],aA=new WeakMap,Q={ancestor(t,e){var n=Q.get(t,e);if(it.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(e,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.ancestors(e,n)){var o=[Q.ancestor(t,r),r];yield o}},child(t,e){if(it.isText(t))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(t)));var n=t.children[e];if(n==null)throw new Error("Cannot get child at index `".concat(e,"` in node: ").concat(JSON.stringify(t)));return n},*children(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:r=!1}=n,o=Q.ancestor(t,e),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Q.child(o,a),s=e.concat(a);yield[u,s],a=r?a-1:a+1}},common(t,e,n){var r=j.common(e,n);return[Q.get(t,r),r]},descendant(t,e){var n=Q.get(t,e);if(E.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(e,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))r.length!==0&&(yield[n,r])},*elements(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))ft.isElement(n)&&(yield[n,r])},extractProps:t=>ft.isAncestor(t)?ui(t,EG):ui(t,DG),first(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!it.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(t,e){if(it.isText(t))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(t)));var n=j1({children:t.children},r=>{var[o,i]=L.edges(e),a=Q.nodes(r,{reverse:!0,pass:d=>{var[,p]=d;return!L.includes(e,p)}});for(var[,u]of a){if(!L.includes(e,u)){var s=Q.parent(r,u),l=u[u.length-1];s.children.splice(l,1)}if(j.equals(u,i.path)){var c=Q.leaf(r,u);c.text=c.text.slice(0,i.offset)}if(j.equals(u,o.path)){var f=Q.leaf(r,u);f.text=f.text.slice(o.offset)}}E.isEditor(r)&&(r.selection=null)});return n.children},get(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(it.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(e,"] in node: ").concat(JSON.stringify(t)));n=n.children[o]}return n},has(t,e){for(var n=t,r=0;r<e.length;r++){var o=e[r];if(it.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:t=>it.isText(t)||ft.isElement(t)||E.isEditor(t),isNodeList(t){if(!Array.isArray(t))return!1;var e=aA.get(t);if(e!==void 0)return e;var n=t.every(r=>Q.isNode(r));return aA.set(t,n),n},last(t,e){for(var n=e.slice(),r=Q.get(t,n);r&&!it.isText(r)&&r.children.length!==0;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(t,e){var n=Q.get(t,e);if(!it.isText(n))throw new Error("Cannot get the leaf node at path [".concat(e,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of j.levels(e,n)){var o=Q.get(t,r);yield[o,r]}},matches:(t,e)=>ft.isElement(t)&&ft.isElementProps(e)&&ft.matches(t,e)||it.isText(t)&&it.isTextProps(e)&&it.matches(t,e),*nodes(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=e,{from:o=[],to:i}=e,a=new Set,u=[],s=t;!i||!(r?j.isBefore(u,i):j.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||it.isText(s)||s.children.length===0||n!=null&&n([s,u])!==!1){if(u.length===0)break;if(!r){var l=j.next(u);if(Q.has(t,l)){u=l,s=Q.get(t,u);continue}}r&&u[u.length-1]!==0?(u=j.previous(u),s=Q.get(t,u)):(u=j.parent(u),s=Q.get(t,u),a.add(s))}else{a.add(s);var c=r?s.children.length-1:0;j.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Q.get(t,u)}},parent(t,e){var n=j.parent(e),r=Q.get(t,n);if(it.isText(r))throw new Error("Cannot get the parent of path [".concat(e,"] because it does not exist in the root."));return r},string:t=>it.isText(t)?t.text:t.children.map(Q.string).join(""),*texts(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of Q.nodes(t,e))it.isText(n)&&(yield[n,r])}};function uA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function He(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?uA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ji={isNodeOperation:t=>Ji.isOperation(t)&&t.type.endsWith("_node"),isOperation(t){if(!xn(t))return!1;switch(t.type){case"insert_node":case"remove_node":return j.isPath(t.path)&&Q.isNode(t.node);case"insert_text":case"remove_text":return typeof t.offset=="number"&&typeof t.text=="string"&&j.isPath(t.path);case"merge_node":return typeof t.position=="number"&&j.isPath(t.path)&&xn(t.properties);case"move_node":return j.isPath(t.path)&&j.isPath(t.newPath);case"set_node":return j.isPath(t.path)&&xn(t.properties)&&xn(t.newProperties);case"set_selection":return t.properties===null&&L.isRange(t.newProperties)||t.newProperties===null&&L.isRange(t.properties)||xn(t.properties)&&xn(t.newProperties);case"split_node":return j.isPath(t.path)&&typeof t.position=="number"&&xn(t.properties);default:return!1}},isOperationList:t=>Array.isArray(t)&&t.every(e=>Ji.isOperation(e)),isSelectionOperation:t=>Ji.isOperation(t)&&t.type.endsWith("_selection"),isTextOperation:t=>Ji.isOperation(t)&&t.type.endsWith("_text"),inverse(t){switch(t.type){case"insert_node":return He(He({},t),{},{type:"remove_node"});case"insert_text":return He(He({},t),{},{type:"remove_text"});case"merge_node":return He(He({},t),{},{type:"split_node",path:j.previous(t.path)});case"move_node":var{newPath:e,path:n}=t;if(j.equals(e,n))return t;if(j.isSibling(n,e))return He(He({},t),{},{path:e,newPath:n});var r=j.transform(n,t),o=j.transform(j.next(n),t);return He(He({},t),{},{path:r,newPath:o});case"remove_node":return He(He({},t),{},{type:"insert_node"});case"remove_text":return He(He({},t),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=t;return He(He({},t),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=t;return He(He({},t),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return He(He({},t),{},{type:"merge_node",path:j.next(t.path)})}}},j={ancestors(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=j.levels(t,e);return r=n?r.slice(1):r.slice(0,-1)},common(t,e){for(var n=[],r=0;r<t.length&&r<e.length;r++){var o=t[r];if(o!==e[r])break;n.push(o)}return n},compare(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0},endsAfter(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i>a},endsAt(t,e){var n=t.length,r=t.slice(0,n),o=e.slice(0,n);return j.equals(r,o)},endsBefore(t,e){var n=t.length-1,r=t.slice(0,n),o=e.slice(0,n),i=t[n],a=e[n];return j.equals(r,o)&&i<a},equals:(t,e)=>t.length===e.length&&t.every((n,r)=>n===e[r]),hasPrevious:t=>t[t.length-1]>0,isAfter:(t,e)=>j.compare(t,e)===1,isAncestor:(t,e)=>t.length<e.length&&j.compare(t,e)===0,isBefore:(t,e)=>j.compare(t,e)===-1,isChild:(t,e)=>t.length===e.length+1&&j.compare(t,e)===0,isCommon:(t,e)=>t.length<=e.length&&j.compare(t,e)===0,isDescendant:(t,e)=>t.length>e.length&&j.compare(t,e)===0,isParent:(t,e)=>t.length+1===e.length&&j.compare(t,e)===0,isPath:t=>Array.isArray(t)&&(t.length===0||typeof t[0]=="number"),isSibling(t,e){if(t.length!==e.length)return!1;var n=t.slice(0,-1),r=e.slice(0,-1);return t[t.length-1]!==e[e.length-1]&&j.equals(n,r)},levels(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,r=[],o=0;o<=t.length;o++)r.push(t.slice(0,o));return n&&r.reverse(),r},next(t){if(t.length===0)throw new Error("Cannot get the next path of a root path [".concat(t,"], because it has no next index."));var e=t[t.length-1];return t.slice(0,-1).concat(e+1)},parent(t){if(t.length===0)throw new Error("Cannot get the parent path of the root path [".concat(t,"]."));return t.slice(0,-1)},previous(t){if(t.length===0)throw new Error("Cannot get the previous path of a root path [".concat(t,"], because it has no previous index."));var e=t[t.length-1];if(e<=0)throw new Error("Cannot get the previous path of a first child path [".concat(t,"] because it would result in a negative index."));return t.slice(0,-1).concat(e-1)},relative(t,e){if(!j.isAncestor(e,t)&&!j.equals(t,e))throw new Error("Cannot get the relative path of [".concat(t,"] inside ancestor [").concat(e,"], because it is not above or equal to the path."));return t.slice(e.length)},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j1(t,r=>{var{affinity:o="forward"}=n;if(t&&(t==null?void 0:t.length)!==0){if(r===null)return null;switch(e.type){case"insert_node":var{path:i}=e;(j.equals(i,r)||j.endsBefore(i,r)||j.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=e;if(j.equals(a,r)||j.isAncestor(a,r))return null;j.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=e;j.equals(u,r)||j.endsBefore(u,r)?r[u.length-1]-=1:j.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=e;if(j.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else j.endsBefore(l,r)?r[l.length-1]+=1:j.isAncestor(l,r)&&t[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=e;if(j.equals(f,d))return;if(j.isAncestor(f,r)||j.equals(f,r)){var p=d.slice();return j.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}j.isSibling(f,d)&&(j.isAncestor(d,r)||j.equals(d,r))?j.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:j.endsBefore(d,r)||j.equals(d,r)||j.isAncestor(d,r)?(j.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):j.endsBefore(f,r)&&(j.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}})}},CG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=j.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}};function sA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function lA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Ft={compare(t,e){var n=j.compare(t.path,e.path);return n===0?t.offset<e.offset?-1:t.offset>e.offset?1:0:n},isAfter:(t,e)=>Ft.compare(t,e)===1,isBefore:(t,e)=>Ft.compare(t,e)===-1,equals:(t,e)=>t.offset===e.offset&&j.equals(t.path,e.path),isPoint:t=>xn(t)&&typeof t.offset=="number"&&j.isPath(t.path),transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j1(t,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:i,offset:a}=r;switch(e.type){case"insert_node":case"move_node":r.path=j.transform(i,e,n);break;case"insert_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset+=e.text.length);break;case"merge_node":j.equals(e.path,i)&&(r.offset+=e.position),r.path=j.transform(i,e,n);break;case"remove_text":j.equals(e.path,i)&&e.offset<=a&&(r.offset-=Math.min(a-e.offset,e.text.length));break;case"remove_node":if(j.equals(e.path,i)||j.isAncestor(e.path,i))return null;r.path=j.transform(i,e,n);break;case"split_node":if(j.equals(e.path,i)){if(e.position===a&&o==null)return null;(e.position<a||e.position===a&&o==="forward")&&(r.offset-=e.position,r.path=j.transform(i,e,lA(lA({},n),{},{affinity:"forward"})))}else r.path=j.transform(i,e,n)}})}},xG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=Ft.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},SG=["anchor","focus"];function cA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}var L={edges(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=e,{anchor:r,focus:o}=t;return L.isBackward(t)===n?[r,o]:[o,r]},end(t){var[,e]=L.edges(t);return e},equals:(t,e)=>Ft.equals(t.anchor,e.anchor)&&Ft.equals(t.focus,e.focus),includes(t,e){if(L.isRange(e)){if(L.includes(t,e.anchor)||L.includes(t,e.focus))return!0;var[n,r]=L.edges(t),[o,i]=L.edges(e);return Ft.isBefore(n,o)&&Ft.isAfter(r,i)}var[a,u]=L.edges(t),s=!1,l=!1;return Ft.isPoint(e)?(s=Ft.compare(e,a)>=0,l=Ft.compare(e,u)<=0):(s=j.compare(e,a.path)>=0,l=j.compare(e,u.path)<=0),s&&l},intersection(t,e){var n=ui(t,SG),[r,o]=L.edges(t),[i,a]=L.edges(e),u=Ft.isBefore(r,i)?i:r,s=Ft.isBefore(o,a)?o:a;return Ft.isBefore(s,u)?null:function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?cA(Object(f),!0).forEach(function(d){No(l,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):cA(Object(f)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))})}return l}({anchor:u,focus:s},n)},isBackward(t){var{anchor:e,focus:n}=t;return Ft.isAfter(e,n)},isCollapsed(t){var{anchor:e,focus:n}=t;return Ft.equals(e,n)},isExpanded:t=>!L.isCollapsed(t),isForward:t=>!L.isBackward(t),isRange:t=>xn(t)&&Ft.isPoint(t.anchor)&&Ft.isPoint(t.focus),*points(t){yield[t.anchor,"anchor"],yield[t.focus,"focus"]},start(t){var[e]=L.edges(t);return e},transform(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j1(t,r=>{if(r===null)return null;var o,i,{affinity:a="inward"}=n;if(a==="inward"){var u=L.isCollapsed(r);L.isForward(r)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?L.isForward(r)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=Ft.transform(r.anchor,e,{affinity:o}),l=Ft.transform(r.focus,e,{affinity:i});if(!s||!l)return null;r.anchor=s,r.focus=l})}},AG={transform(t,e){var{current:n,affinity:r}=t;if(n!=null){var o=L.transform(n,e,{affinity:r});t.current=o,o==null&&t.unref()}}},rj=(t,e)=>{for(var n in t){var r=t[n],o=e[n];if(xn(r)&&xn(o)){if(!rj(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in e)if(t[a]===void 0&&e[a]!==void 0)return!1;return!0},OG=["text"],kG=["anchor","focus"];function fA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Vo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var it={equals(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(i){return ui(i,OG)}return rj(r?o(t):t,r?o(e):e)},isText:t=>xn(t)&&typeof t.text=="string",isTextList:t=>Array.isArray(t)&&t.every(e=>it.isText(e)),isTextProps:t=>t.text!==void 0,matches(t,e){for(var n in e)if(n!=="text"&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;return!0},decorations(t,e){var n=[Vo({},t)];for(var r of e){var o=ui(r,kG),[i,a]=L.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,v=void 0;if(a.offset<s){var y=a.offset-f;v=Vo(Vo({},d),{},{text:d.text.slice(y)}),d=Vo(Vo({},d),{},{text:d.text.slice(0,y)})}if(i.offset>f){var g=i.offset-f;p=Vo(Vo({},d),{},{text:d.text.slice(0,g)}),d=Vo(Vo({},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 dA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Nc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var BG={transform(t,e){t.children=XS(t.children);var n=t.selection&&XS(t.selection);try{n=((r,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=Q.parent(r,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of L.points(o))o[f]=Ft.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var y=Q.leaf(r,d),g=y.text.slice(0,p),m=y.text.slice(p);if(y.text=g+v+m,o)for(var[h,b]of L.points(o))o[b]=Ft.transform(h,i);break;case"merge_node":var{path:w}=i,D=Q.get(r,w),x=j.previous(w),C=Q.get(r,x),O=Q.parent(r,w),T=w[w.length-1];if(it.isText(D)&&it.isText(C))C.text+=D.text;else{if(it.isText(D)||it.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(T,1),o)for(var[R,H]of L.points(o))o[H]=Ft.transform(R,i);break;case"move_node":var{path:M,newPath:K}=i;if(j.isAncestor(M,K))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(K,"] because the destination is inside itself."));var U=Q.get(r,M),W=Q.parent(r,M),q=M[M.length-1];W.children.splice(q,1);var nt=j.transform(M,i),lt=Q.get(r,j.parent(nt)),st=nt[nt.length-1];if(lt.children.splice(st,0,U),o)for(var[ut,k]of L.points(o))o[k]=Ft.transform(ut,i);break;case"remove_node":var{path:S}=i,P=S[S.length-1];if(Q.parent(r,S).children.splice(P,1),o)for(var[$,Y]of L.points(o)){var V=Ft.transform($,i);if(o!=null&&V!=null)o[Y]=V;else{var at=void 0,vt=void 0;for(var[yt,Ct]of Q.texts(r)){if(j.compare(Ct,S)!==-1){vt=[yt,Ct];break}at=[yt,Ct]}var G=!1;at&&vt&&(G=j.equals(vt[1],S)?!j.hasPrevious(vt[1]):j.common(at[1],S).length<j.common(vt[1],S).length),at&&!G?($.path=at[1],$.offset=at[0].text.length):vt?($.path=vt[1],$.offset=0):o=null}}break;case"remove_text":var{path:Lt,offset:Ot,text:pt}=i;if(pt.length===0)break;var kt=Q.leaf(r,Lt),Be=kt.text.slice(0,Ot),Ht=kt.text.slice(Ot+pt.length);if(kt.text=Be+Ht,o)for(var[ee,ye]of L.points(o))o[ye]=Ft.transform(ee,i);break;case"set_node":var{path:yn,properties:zt,newProperties:Ln}=i;if(yn.length===0)throw new Error("Cannot set properties on the root node!");var Nr=Q.get(r,yn);for(var ro in Ln){if(ro==="children"||ro==="text")throw new Error('Cannot set the "'.concat(ro,'" property of nodes!'));var ws=Ln[ro];ws==null?delete Nr[ro]:Nr[ro]=ws}for(var Va in zt)Ln.hasOwnProperty(Va)||delete Nr[Va];break;case"set_selection":var{newProperties:Ir}=i;if(Ir==null)o=Ir;else{if(o==null){if(!L.isRange(Ir))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Ir)," when there is no current selection."));o=Nc({},Ir)}for(var oo in Ir){var Lo=Ir[oo];if(Lo==null){if(oo==="anchor"||oo==="focus")throw new Error('Cannot remove the "'.concat(oo,'" selection property'));delete o[oo]}else o[oo]=Lo}}break;case"split_node":var{path:mn,position:bn,properties:wn}=i;if(mn.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(mn,"] because the root node cannot be split."));var Tn,rn=Q.get(r,mn),pr=Q.parent(r,mn),Cc=mn[mn.length-1];if(it.isText(rn)){var hi=rn.text.slice(0,bn),Ro=rn.text.slice(bn);rn.text=hi,Tn=Nc(Nc({},wn),{},{text:Ro})}else{var Es=rn.children.slice(0,bn),Ua=rn.children.slice(bn);rn.children=Es,Tn=Nc(Nc({},wn),{},{children:Ua})}if(pr.children.splice(Cc+1,0,Tn),o)for(var[Ds,Lr]of L.points(o))o[Lr]=Ft.transform(Ds,i)}return o})(t,n,e)}finally{t.children=ZS(t.children),t.selection=n?Ku(n)?ZS(n):n:null}}},FG=["text"],TG=["children"];function pA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function hA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _G={insertNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Q.isNode(e)&&(e=[e]),e.length!==0){var[l]=e;if(a||(a=t.selection?t.selection:t.children.length>0?E.end(t,[]):[0],s=!0),s==null&&(s=!1),L.isRange(a))if(r||(a=E.unhangRange(t,a)),L.isCollapsed(a))a=a.anchor;else{var[,c]=L.edges(a),f=E.pointRef(t,c);N.delete(t,{at:a}),a=f.unref()}if(Ft.isPoint(a)){u==null&&(u=it.isText(l)?x=>it.isText(x):t.isInline(l)?x=>it.isText(x)||E.isInline(t,x):x=>E.isBlock(t,x));var[d]=E.nodes(t,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=E.pathRef(t,p),y=E.isEnd(t,a,p);N.splitNodes(t,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=y?j.next(g):g}var m=j.parent(a),h=a[a.length-1];if(o||!E.void(t,{at:m})){for(var b of e){var w=m.concat(h);h++,t.apply({type:"insert_node",path:w,node:b}),a=j.next(a)}if(a=j.previous(a),s){var D=E.end(t,a);D&&N.select(t,D)}}}})},liftNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:r="lowest",voids:o=!1}=e,{match:i}=e;if(i==null&&(i=j.isPath(n)?ks(t,n):b=>E.isBlock(t,b)),n){var a=E.nodes(t,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,b=>{var[,w]=b;return E.pathRef(t,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=E.node(t,j.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var y=j.next(d);N.moveNodes(t,{at:l,to:y,voids:o}),N.removeNodes(t,{at:d,voids:o})}else if(p===0)N.moveNodes(t,{at:l,to:d,voids:o});else if(p===v-1){var g=j.next(d);N.moveNodes(t,{at:l,to:g,voids:o})}else{var m=j.next(l),h=j.next(d);N.splitNodes(t,{at:m,voids:o}),N.moveNodes(t,{at:l,to:h,voids:o})}}}})},mergeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{match:n,at:r=t.selection}=e,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=e;if(r){if(n==null)if(j.isPath(r)){var[u]=E.parent(t,r);n=T=>u.children.includes(T)}else n=T=>E.isBlock(t,T);if(!o&&L.isRange(r)&&(r=E.unhangRange(t,r)),L.isRange(r))if(L.isCollapsed(r))r=r.anchor;else{var[,s]=L.edges(r),l=E.pointRef(t,s);N.delete(t,{at:r}),r=l.unref(),e.at==null&&N.select(t,r)}var[c]=E.nodes(t,{at:r,match:n,voids:i,mode:a}),f=E.previous(t,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,y]=f;if(p.length!==0&&y.length!==0){var g,m,h=j.next(y),b=j.common(p,y),w=j.isSibling(p,y),D=Array.from(E.levels(t,{at:p}),T=>{var[R]=T;return R}).slice(b.length).slice(0,-1),x=E.above(t,{at:p,mode:"highest",match:T=>D.includes(T)&&oj(t,T)}),C=x&&E.pathRef(t,x[1]);if(it.isText(d)&&it.isText(v)){var O=ui(d,FG);m=v.text.length,g=O}else{if(!ft.isElement(d)||!ft.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=ui(d,TG),m=v.children.length,g=O}w||N.moveNodes(t,{at:p,to:h,voids:i}),C&&N.removeNodes(t,{at:C.current,voids:i}),ft.isElement(v)&&E.isEmpty(t,v)||it.isText(v)&&v.text===""&&y[y.length-1]!==0?N.removeNodes(t,{at:y,voids:i}):t.apply({type:"merge_node",path:h,position:m,properties:g}),C&&C.unref()}}}})},moveNodes(t,e){E.withoutNormalizing(t,()=>{var{to:n,at:r=t.selection,mode:o="lowest",voids:i=!1}=e,{match:a}=e;if(r){a==null&&(a=j.isPath(r)?ks(t,r):p=>E.isBlock(t,p));var u=E.pathRef(t,n),s=E.nodes(t,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,p=>{var[,v]=p;return E.pathRef(t,v)});for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&t.apply({type:"move_node",path:f,newPath:d}),u.current&&j.isSibling(d,f)&&j.isAfter(d,f)&&(u.current=j.next(u.current))}u.unref()}})},removeNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?ks(t,i):d=>E.isBlock(t,d)),!n&&L.isRange(i)&&(i=E.unhangRange(t,i));var u=E.nodes(t,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,d=>{var[,p]=d;return E.pathRef(t,p)});for(var l of s){var c=l.unref();if(c){var[f]=E.node(t,c);t.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(r==null&&(r=j.isPath(o)?ks(t,o):D=>E.isBlock(t,D)),!i&&L.isRange(o)&&(o=E.unhangRange(t,o)),u&&L.isRange(o)){if(L.isCollapsed(o)&&E.leaf(t,o.anchor)[0].text.length>0)return;var l=E.rangeRef(t,o,{affinity:"inward"}),[c,f]=L.edges(o),d=a==="lowest"?"lowest":"highest",p=E.isEnd(t,f,f.path);N.splitNodes(t,{at:f,match:r,mode:d,voids:s,always:!p});var v=E.isStart(t,c,c.path);N.splitNodes(t,{at:c,match:r,mode:d,voids:s,always:!v}),o=l.unref(),n.at==null&&N.select(t,o)}for(var[y,g]of E.nodes(t,{at:o,match:r,mode:a,voids:s})){var m={},h={};if(g.length!==0){var b=!1;for(var w in e)w!=="children"&&w!=="text"&&e[w]!==y[w]&&(b=!0,y.hasOwnProperty(w)&&(m[w]=y[w]),e[w]!=null&&(h[w]=e[w]));b&&t.apply({type:"set_node",path:g,properties:m,newProperties:h})}}}})},splitNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:r=!1}=e,{match:o,at:i=t.selection,height:a=0,always:u=!1}=e;if(o==null&&(o=U=>E.isBlock(t,U)),L.isRange(i)&&(i=PG(t,i)),j.isPath(i)){var s=i,l=E.point(t,s),[c]=E.parent(t,s);o=U=>U===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=E.pointRef(t,i,{affinity:"backward"}),[d]=E.nodes(t,{at:i,match:o,mode:n,voids:r});if(d){var p=E.void(t,{at:i,mode:"highest"});if(!r&&p){var[v,y]=p;if(ft.isElement(v)&&t.isInline(v)){var g=E.after(t,y);if(!g){var m=j.next(y);N.insertNodes(t,{text:""},{at:m,voids:r}),g=E.point(t,m)}i=g,u=!0}a=i.path.length-y.length+1,u=!0}var h=E.pointRef(t,i),b=i.path.length-a,[,w]=d,D=i.path.slice(0,b),x=a===0?i.offset:i.path[b]+0;for(var[C,O]of E.levels(t,{at:D,reverse:!0,voids:r})){var T=!1;if(O.length<w.length||O.length===0||!r&&E.isVoid(t,C))break;var R=f.current,H=E.isEnd(t,R,O);if(u||!f||!E.isEdge(t,R,O)){T=!0;var M=Q.extractProps(C);t.apply({type:"split_node",path:O,position:x,properties:M})}x=O[O.length-1]+(T||H?1:0)}if(e.at==null){var K=h.current||E.end(t,[]);N.select(t,K)}f.unref(),h.unref()}}})},unsetNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(e)||(e=[e]);var r={};for(var o of e)r[o]=null;N.setNodes(t,r,n)},unwrapNodes(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=e,{at:i=t.selection,match:a}=e;if(i){a==null&&(a=j.isPath(i)?ks(t,i):d=>E.isBlock(t,d)),j.isPath(i)&&(i=E.range(t,i));var u=L.isRange(i)?E.rangeRef(t,i):null,s=E.nodes(t,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,d=>{var[,p]=d;return E.pathRef(t,p)}).reverse(),c=function(d){var p=d.unref(),[v]=E.node(t,p),y=E.range(t,p);r&&u&&(y=L.intersection(u.current,y)),N.liftNodes(t,{at:y,match:g=>ft.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=t.selection}=n;if(u){if(a==null&&(a=j.isPath(u)?ks(t,u):t.isInline(e)?g=>E.isInline(t,g)||it.isText(g):g=>E.isBlock(t,g)),o&&L.isRange(u)){var[s,l]=L.edges(u),c=E.rangeRef(t,u,{affinity:"inward"});N.splitNodes(t,{at:l,match:a,voids:i}),N.splitNodes(t,{at:s,match:a,voids:i}),u=c.unref(),n.at==null&&N.select(t,u)}var f=Array.from(E.nodes(t,{at:u,match:t.isInline(e)?g=>E.isBlock(t,g):g=>E.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=L.isRange(u)?L.intersection(u,E.range(t,d)):u;if(p){var v=Array.from(E.nodes(t,{at:p,match:a,mode:r,voids:i}));if(v.length>0){var y=function(){var[g]=v,m=v[v.length-1],[,h]=g,[,b]=m;if(h.length===0&&b.length===0)return"continue";var w=j.equals(h,b)?j.parent(h):j.common(h,b),D=E.range(t,h,b),x=E.node(t,w),[C]=x,O=w.length+1,T=j.next(b.slice(0,O)),R=hA(hA({},e),{},{children:[]});N.insertNodes(t,R,{at:T,voids:i}),N.moveNodes(t,{at:D,match:H=>ft.isAncestor(C)&&C.children.includes(H),to:T.concat(0),voids:i})}();if(y==="continue")continue}}}}})}},oj=(t,e)=>{if(ft.isElement(e)){var n=e;return!!E.isVoid(t,e)||n.children.length===1&&oj(t,n.children[0])}return!E.isEditor(e)},PG=(t,e)=>{if(L.isCollapsed(e))return e.anchor;var[,n]=L.edges(e),r=E.pointRef(t,n);return N.delete(t,{at:e}),r.unref()},ks=(t,e)=>{var[n]=E.node(t,e);return r=>r===n};function gA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var jG={collapse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=e,{selection:r}=t;if(r){if(n==="anchor")N.select(t,r.anchor);else if(n==="focus")N.select(t,r.focus);else if(n==="start"){var[o]=L.edges(r);N.select(t,o)}else if(n==="end"){var[,i]=L.edges(r);N.select(t,i)}}},deselect(t){var{selection:e}=t;e&&t.apply({type:"set_selection",properties:e,newProperties:null})},move(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:r=1,unit:o="character",reverse:i=!1}=e,{edge:a=null}=e;if(n){a==="start"&&(a=L.isBackward(n)?"focus":"anchor"),a==="end"&&(a=L.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(a==null||a==="anchor"){var f=i?E.before(t,u,l):E.after(t,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?E.before(t,s,l):E.after(t,s,l);d&&(c.focus=d)}N.setSelection(t,c)}},select(t,e){var{selection:n}=t;if(e=E.range(t,e),n)N.setSelection(t,e);else{if(!L.isRange(e))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(e)));t.apply({type:"set_selection",properties:n,newProperties:e})}},setPoint(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=t,{edge:o="both"}=n;if(r){o==="start"&&(o=L.isBackward(r)?"focus":"anchor"),o==="end"&&(o=L.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u=o==="anchor"?i:a;N.setSelection(t,{[o==="anchor"?"anchor":"focus"]:vA(vA({},u),e)})}},setSelection(t,e){var{selection:n}=t,r={},o={};if(n){for(var i in e)(i==="anchor"&&e.anchor!=null&&!Ft.equals(e.anchor,n.anchor)||i==="focus"&&e.focus!=null&&!Ft.equals(e.focus,n.focus)||i!=="anchor"&&i!=="focus"&&e[i]!==n[i])&&(r[i]=n[i],o[i]=e[i]);Object.keys(r).length>0&&t.apply({type:"set_selection",properties:r,newProperties:o})}}},NG={delete(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E.withoutNormalizing(t,()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=e,{at:a=t.selection,hanging:u=!1}=e;if(a){if(L.isRange(a)&&L.isCollapsed(a)&&(a=a.anchor),Ft.isPoint(a)){var s=E.void(t,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?E.before(t,a,c)||E.start(t,[]):E.after(t,a,c)||E.end(t,[])},u=!0}}if(j.isPath(a))N.removeNodes(t,{at:a,voids:i});else if(!L.isCollapsed(a)){if(!u){var[,f]=L.edges(a),d=E.end(t,[]);Ft.equals(f,d)||(a=E.unhangRange(t,a,{voids:i}))}var[p,v]=L.edges(a),y=E.above(t,{match:vt=>E.isBlock(t,vt),at:p,voids:i}),g=E.above(t,{match:vt=>E.isBlock(t,vt),at:v,voids:i}),m=y&&g&&!j.equals(y[1],g[1]),h=j.equals(p.path,v.path),b=i?null:E.void(t,{at:p,mode:"highest"}),w=i?null:E.void(t,{at:v,mode:"highest"});if(b){var D=E.before(t,p);D&&y&&j.isAncestor(y[1],D.path)&&(p=D)}if(w){var x=E.after(t,v);x&&g&&j.isAncestor(g[1],x.path)&&(v=x)}var C,O=[];for(var T of E.nodes(t,{at:a,voids:i})){var[R,H]=T;C&&j.compare(H,C)===0||(!i&&E.isVoid(t,R)||!j.isCommon(H,p.path)&&!j.isCommon(H,v.path))&&(O.push(T),C=H)}var M=Array.from(O,vt=>{var[,yt]=vt;return E.pathRef(t,yt)}),K=E.pointRef(t,p),U=E.pointRef(t,v);if(!h&&!b){var W=K.current,[q]=E.leaf(t,W),{path:nt}=W,{offset:lt}=p,st=q.text.slice(lt);st.length>0&&t.apply({type:"remove_text",path:nt,offset:lt,text:st})}for(var ut of M){var k=ut.unref();N.removeNodes(t,{at:k,voids:i})}if(!w){var S=U.current,[P]=E.leaf(t,S),{path:$}=S,Y=h?p.offset:0,V=P.text.slice(Y,v.offset);V.length>0&&t.apply({type:"remove_text",path:$,offset:Y,text:V})}!h&&m&&U.current&&K.current&&N.mergeNodes(t,{at:U.current,hanging:!0,voids:i});var at=n?K.unref()||U.unref():U.unref()||K.unref();e.at==null&&at&&N.select(t,at)}}})},insertFragment(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=t.selection}=n;if(e.length&&i){if(L.isRange(i))if(r||(i=E.unhangRange(t,i)),L.isCollapsed(i))i=i.anchor;else{var[,a]=L.edges(i);if(!o&&E.void(t,{at:a}))return;var u=E.pointRef(t,a);N.delete(t,{at:i}),i=u.unref()}else j.isPath(i)&&(i=E.start(t,i));if(o||!E.void(t,{at:i})){var s=E.above(t,{at:i,match:S=>E.isInline(t,S),mode:"highest",voids:o});if(s){var[,l]=s;E.isEnd(t,i,l)?i=E.after(t,l):E.isStart(t,i,l)&&(i=E.before(t,l))}var c=E.above(t,{match:S=>E.isBlock(t,S),at:i,voids:o}),[,f]=c,d=E.isStart(t,i,f),p=E.isEnd(t,i,f),v=d&&p,y=!d||d&&p,g=!p,[,m]=Q.first({children:e},[]),[,h]=Q.last({children:e},[]),b=[],w=S=>{var[P,$]=S;return $.length!==0&&(!!v||!(y&&j.isAncestor($,m)&&ft.isElement(P)&&!t.isVoid(P)&&!t.isInline(P))&&!(g&&j.isAncestor($,h)&&ft.isElement(P)&&!t.isVoid(P)&&!t.isInline(P)))};for(var D of Q.nodes({children:e},{pass:w}))w(D)&&b.push(D);var x=[],C=[],O=[],T=!0,R=!1;for(var[H]of b)ft.isElement(H)&&!t.isInline(H)?(T=!1,R=!0,C.push(H)):T?x.push(H):O.push(H);var[M]=E.nodes(t,{at:i,match:S=>it.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),[,K]=M,U=E.isStart(t,i,K),W=E.isEnd(t,i,K),q=E.pathRef(t,p?j.next(f):f),nt=E.pathRef(t,W?j.next(K):K),lt=E.pathRef(t,f);N.splitNodes(t,{at:i,match:S=>R?E.isBlock(t,S):it.isText(S)||E.isInline(t,S),mode:R?"lowest":"highest",voids:o});var st=E.pathRef(t,!U||U&&W?j.next(K):K);if(N.insertNodes(t,x,{at:st.current,match:S=>it.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),v&&C.length&&N.delete(t,{at:lt.unref(),voids:o}),N.insertNodes(t,C,{at:q.current,match:S=>E.isBlock(t,S),mode:"lowest",voids:o}),N.insertNodes(t,O,{at:nt.current,match:S=>it.isText(S)||E.isInline(t,S),mode:"highest",voids:o}),!n.at){var ut;ut=O.length>0?j.previous(nt.current):C.length>0?j.previous(q.current):j.previous(st.current);var k=E.end(t,ut);N.select(t,k)}st.unref(),q.unref(),nt.unref()}}})},insertText(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};E.withoutNormalizing(t,()=>{var{voids:r=!1}=n,{at:o=t.selection}=n;if(o){if(j.isPath(o)&&(o=E.range(t,o)),L.isRange(o))if(L.isCollapsed(o))o=o.anchor;else{var i=L.end(o);if(!r&&E.void(t,{at:i}))return;var a=E.pointRef(t,i);N.delete(t,{at:o,voids:r}),o=a.unref(),N.setSelection(t,{anchor:o,focus:o})}if(r||!E.void(t,{at:o})){var{path:u,offset:s}=o;e.length>0&&t.apply({type:"insert_text",path:u,offset:s,text:e})}}})}};function yA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Nh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yA(Object(n),!0).forEach(function(r){No(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var N=Nh(Nh(Nh(Nh({},BG),_G),jG),NG),Y4="[object Map]",X4="[object Set]",IG=/^\[object .+?Constructor\]$/,LG=/^(?:0|[1-9]\d*)$/,RG="[\\ud800-\\udfff]",Z4="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",J4="\\ud83c[\\udffb-\\udfff]",ij="[^\\ud800-\\udfff]",aj="(?:\\ud83c[\\udde6-\\uddff]){2}",uj="[\\ud800-\\udbff][\\udc00-\\udfff]",mA="(?:"+Z4+"|"+J4+")?",MG="[\\ufe0e\\ufe0f]?"+mA+("(?:\\u200d(?:"+[ij,aj,uj].join("|")+")[\\ufe0e\\ufe0f]?"+mA+")*"),zG="(?:"+[ij+Z4+"?",Z4,aj,uj,RG].join("|")+")",$G=RegExp(J4+"(?="+J4+")|"+zG+MG,"g"),HG=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),VG=typeof se=="object"&&se&&se.Object===Object&&se,UG=typeof self=="object"&&self&&self.Object===Object&&self,cs=VG||UG||Function("return this")();function WG(t,e){return function(n,r){for(var o=-1,i=n?n.length:0,a=Array(i);++o<i;)a[o]=r(n[o],o,n);return a}(e,function(n){return t[n]})}function GG(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function qG(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}function KG(t){return function(e){return HG.test(e)}(t)?function(e){return e.match($G)||[]}(t):function(e){return e.split("")}(t)}var bA,wA,YG=Function.prototype,N1=Object.prototype,bm=cs["__core-js_shared__"],EA=function(){var t=/[^.]+$/.exec(bm&&bm.keys&&bm.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),sj=YG.toString,Mg=N1.hasOwnProperty,Mp=N1.toString,XG=RegExp("^"+sj.call(Mg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),DA=cs.Symbol,wm=DA?DA.iterator:void 0,ZG=N1.propertyIsEnumerable,JG=(bA=Object.keys,wA=Object,function(t){return bA(wA(t))}),Q4=zp(cs,"DataView"),tE=zp(cs,"Map"),eE=zp(cs,"Promise"),nE=zp(cs,"Set"),rE=zp(cs,"WeakMap"),QG=fs(Q4),tq=fs(tE),eq=fs(eE),nq=fs(nE),rq=fs(rE);function oq(t,e){var n=lj(t)||function(a){return function(u){return dj(u)&&I5(u)}(a)&&Mg.call(a,"callee")&&(!ZG.call(a,"callee")||Mp.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!Mg.call(t,i)||o&&(i=="length"||uq(i,r))||n.push(i);return n}function iq(t){if(!fj(t)||function(n){return!!EA&&EA in n}(t))return!1;var e=cj(t)||function(n){var r=!1;if(n!=null&&typeof n.toString!="function")try{r=!!(n+"")}catch(o){}return r}(t)?XG:IG;return e.test(fs(t))}function aq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||N1,e!==r)return JG(t);var e,n,r,o=[];for(var i in Object(t))Mg.call(t,i)&&i!="constructor"&&o.push(i);return o}function zp(t,e){var n=function(r,o){return r==null?void 0:r[o]}(t,e);return iq(n)?n:void 0}var uu=function(t){return Mp.call(t)};function uq(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||LG.test(t))&&t>-1&&t%1==0&&t<e}function fs(t){if(t!=null){try{return sj.call(t)}catch(e){}try{return t+""}catch(e){}}return""}(Q4&&uu(new Q4(new ArrayBuffer(1)))!="[object DataView]"||tE&&uu(new tE)!=Y4||eE&&uu(eE.resolve())!="[object Promise]"||nE&&uu(new nE)!=X4||rE&&uu(new rE)!="[object WeakMap]")&&(uu=function(t){var e=Mp.call(t),n=e=="[object Object]"?t.constructor:void 0,r=n?fs(n):void 0;if(r)switch(r){case QG:return"[object DataView]";case tq:return Y4;case eq:return"[object Promise]";case nq:return X4;case rq:return"[object WeakMap]"}return e});var lj=Array.isArray;function I5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!cj(t)}function cj(t){var e=fj(t)?Mp.call(t):"";return e=="[object Function]"||e=="[object GeneratorFunction]"}function fj(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function dj(t){return!!t&&typeof t=="object"}function sq(t){return t?WG(t,function(e){return I5(e)?oq(e):aq(e)}(t)):[]}var CA=function(t){if(!t)return[];if(I5(t))return function(n){return typeof n=="string"||!lj(n)&&dj(n)&&Mp.call(n)=="[object String]"}(t)?KG(t):function(n,r){var o=-1,i=n.length;for(r||(r=Array(i));++o<i;)r[o]=n[o];return r}(t);if(wm&&t[wm])return function(n){for(var r,o=[];!(r=n.next()).done;)o.push(r.value);return o}(t[wm]());var e=uu(t);return(e==Y4?GG:e==X4?qG:sq)(t)};function xA(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function L5(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(function(n){t[n]===void 0?t[n]=e[n]:xA(e[n])&&xA(t[n])&&Object.keys(e[n]).length>0&&L5(t[n],e[n])})}var pj={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 $p(){var t=typeof document!="undefined"?document:{};return L5(t,pj),t}var lq={document:pj,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(t){return typeof setTimeout=="undefined"?(t(),null):setTimeout(t,0)},cancelAnimationFrame:function(t){typeof setTimeout!="undefined"&&clearTimeout(t)}};function ds(){var t=typeof window!="undefined"?window:{};return L5(t,lq),t}function oE(t){return oE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oE(t)}function zg(t,e){return zg=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},zg(t,e)}function cq(){if(typeof Reflect=="undefined"||!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(t){return!1}}function iE(t,e,n){return iE=cq()?Reflect.construct:function(r,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(r,a));return i&&zg(u,i.prototype),u},iE.apply(null,arguments)}function aE(t){var e=typeof Map=="function"?new Map:void 0;return aE=function(n){if(n===null||!function(o){return Function.toString.call(o).indexOf("[native code]")!==-1}(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return iE(n,arguments,oE(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),zg(r,n)},aE(t)}var Qi=function(t){var e,n;function r(o){var i,a,u;return i=t.call.apply(t,[this].concat(o))||this,a=function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r}(aE(Array));function I1(t){t===void 0&&(t=[]);var e=[];return t.forEach(function(n){Array.isArray(n)?e.push.apply(e,I1(n)):e.push(n)}),e}function hj(t,e){return Array.prototype.filter.call(t,e)}function B(t,e){var n=ds(),r=$p(),o=[];if(!e&&t instanceof Qi)return t;if(!t)return new Qi(o);if(typeof t=="string"){var i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f}(t.trim(),e||r)}else if(t.nodeType||t===n||t===r)o.push(t);else if(Array.isArray(t)){if(t instanceof Qi)return t;o=t}return new Qi(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 Tl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=I1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,r)}),this}function _l(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=I1(e.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,r)}),this}function Pl(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=I1(e.map(function(o){return o.split(" ")}));return hj(this,function(o){return r.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function Or(t,e){if(arguments.length===1&&typeof t=="string")return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this}function $g(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this}function jl(){var t=this[0];if(t){var e,n={};if(t.dataset)for(var r in t.dataset)n[r]=t.dataset[r];else for(var o=0;o<t.attributes.length;o+=1){var i=t.attributes[o];i.name.indexOf("data-")>=0&&(n[e=i.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in n)n[a]==="false"?n[a]=!1:n[a]==="true"?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function ko(t){if(t===void 0){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var n=[],r=0;r<e.selectedOptions.length;r+=1)n.push(e.selectedOptions[r].value);return n}return e.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(t)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=t.indexOf(i.options[a].value)>=0;else i.value=t}return this}function Bo(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];function u(y){var g=y.target;if(g){var m=y.target.dom7EventData||[];if(m.indexOf(y)<0&&m.unshift(y),B(g).is(o))i.apply(g,m);else for(var h=B(g).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],m)}}function s(y){var g=y&&y.target&&y.target.dom7EventData||[];g.indexOf(y)<0&&g.unshift(y),i.apply(this,g)}typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var 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 t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=e[2],a=e[3];typeof e[1]=="function"&&(r=e[0],i=e[1],a=e[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],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 Hg(){var t=ds();return this[0]===t?t.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Vg(){var t=ds();return this[0]===t?t.innerHeight:this.length>0?parseFloat(this.css("height")):null}function AA(){if(this.length>0){var t=ds(),e=$p(),n=this[0],r=n.getBoundingClientRect(),o=e.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===t?t.scrollY:n.scrollTop,s=n===t?t.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Nl(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this}function Ug(){for(var t=ds(),e=0;e<this.length;e+=1){var n=this[e];n.style.display==="none"&&(n.style.display=""),t.getComputedStyle(n,null).getPropertyValue("display")==="none"&&(n.style.display="block")}return this}function Wg(t,e){var n,r=ds();if(arguments.length===1){if(typeof t!="string"){for(n=0;n<this.length;n+=1)for(var o in t)this[n].style[o]=t[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(t)}if(arguments.length===2&&typeof t=="string"){for(n=0;n<this.length;n+=1)this[n].style[t]=e;return this}return this}function Gg(t){return t?(this.forEach(function(e,n){t.apply(e,[e,n])}),this):this}function OA(t){return B(hj(this,t))}function Ca(t){if(t===void 0)return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this}function qg(t){if(t===void 0)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this}function kA(t){var e,n,r=ds(),o=$p(),i=this[0];if(!i||t===void 0)return!1;if(typeof t=="string"){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(e=B(t),n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}if(t===o)return i===o;if(t===r)return i===r;if(t.nodeType||t instanceof Qi){for(e=t.nodeType?[t]:t,n=0;n<e.length;n+=1)if(e[n]===i)return!0;return!1}return!1}function kr(){for(var t,e=$p(),n=0;n<arguments.length;n+=1){t=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof t=="string"){var o=e.createElement("div");for(o.innerHTML=t;o.firstChild;)this[r].appendChild(o.firstChild)}else if(t instanceof Qi)for(var i=0;i<t.length;i+=1)this[r].appendChild(t[i]);else this[r].appendChild(t)}return this}function BA(t){var e,n,r=$p();for(e=0;e<this.length;e+=1)if(typeof t=="string"){var o=r.createElement("div");for(o.innerHTML=t,n=o.childNodes.length-1;n>=0;n-=1)this[e].insertBefore(o.childNodes[n],this[e].childNodes[0])}else if(t instanceof Qi)for(n=0;n<t.length;n+=1)this[e].insertBefore(t[n],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this}function Il(t){for(var e=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(t?B(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return B(e)}function Kg(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)t?B(r).is(t)&&e.push(r):e.push(r),r=r.parentNode;return B(e)}function Ll(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return B(e)}function Rl(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)t&&!B(r[o]).is(t)||e.push(r[o]);return B(e)}function Ml(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}function zl(){for(var t=0;t<this.length;t+=1){var e=this[t];if(e.nodeType===1){for(var n=0;n<e.childNodes.length;n+=1)e.childNodes[n].parentNode&&e.childNodes[n].parentNode.removeChild(e.childNodes[n]);e.textContent=""}}return this}B.fn=Qi.prototype;var fq="resize scroll".split(" ");function gj(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(n[0]===void 0){for(var o=0;o<this.length;o+=1)fq.indexOf(t)<0&&(t in this[o]?this[o][t]():B(this[o]).trigger(t));return this}return this.on.apply(this,[t].concat(n))}}var FA=gj("click"),xa=gj("focus"),dq="[object GeneratorFunction]",pq=/^(?:0|[1-9]\d*)$/;function hq(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}var L1=Object.prototype,uE=L1.hasOwnProperty,vj=L1.toString,gq=L1.propertyIsEnumerable,vq=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object);function yq(t,e){var n=yj(t)||function(a){return function(u){return function(s){return!!s&&typeof s=="object"}(u)&&R5(u)}(a)&&uE.call(a,"callee")&&(!gq.call(a,"callee")||vj.call(a)=="[object Arguments]")}(t)?function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l}(t.length,String):[],r=n.length,o=!!r;for(var i in t)!uE.call(t,i)||o&&(i=="length"||Eq(i,r))||n.push(i);return n}var TA,mq=(TA=function(t,e){return t&&bq(t,e,Dq)},function(t,e){if(t==null)return t;if(!R5(t))return TA(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&e(o[r],r,o)!==!1;);return t}),bq=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var s=a[++o];if(n(i[s],s,i)===!1)break}return e}}();function wq(t){if(n=(e=t)&&e.constructor,r=typeof n=="function"&&n.prototype||L1,e!==r)return vq(t);var e,n,r,o=[];for(var i in Object(t))uE.call(t,i)&&i!="constructor"&&o.push(i);return o}function Eq(t,e){return!!(e=e==null?9007199254740991:e)&&(typeof t=="number"||pq.test(t))&&t>-1&&t%1==0&&t<e}var yj=Array.isArray;function R5(t){return t!=null&&function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991}(t.length)&&!function(e){var n=function(r){var o=typeof r;return!!r&&(o=="object"||o=="function")}(e)?vj.call(e):"";return n=="[object Function]"||n==dq}(t)}function Dq(t){return R5(t)?yq(t):wq(t)}function Cq(t){return t}var M5=function(t,e){return(yj(t)?hq:mq)(t,typeof e=="function"?e:Cq)};let mj=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e};var xq=/^\s+|\s+$/g,Sq=/^[-+]0x[0-9a-f]+$/i,Aq=/^0b[01]+$/i,Oq=/^0o[0-7]+$/i,kq=parseInt,Bq=typeof se=="object"&&se&&se.Object===Object&&se,Fq=typeof self=="object"&&self&&self.Object===Object&&self,Tq=Bq||Fq||Function("return this")(),_q=Object.prototype.toString,Pq=Math.max,jq=Math.min,Em=function(){return Tq.Date.now()};function Nq(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function y(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=Em();if(y(b))return m(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?jq(D,i-(w-l)):D}(b))}function m(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=Em(),w=y(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=_A(e)||0,Yg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Pq(_A(n.maxWait)||0,e):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:m(Em())},h}function Yg(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function _A(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&_q.call(r)=="[object Symbol]"}(t))return NaN;if(Yg(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Yg(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(xq,"");var n=Aq.test(t);return n||Oq.test(t)?kq(t.slice(2),n?2:8):Sq.test(t)?NaN:+t}var Xu=function(t,e,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError("Expected a function");return Yg(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Nq(t,e,{leading:r,maxWait:e,trailing:o})};const Iq={createElement:function(t,e){return document.createElement(t,e)},createElementNS:function(t,e,n){return document.createElementNS(t,e,n)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},getTextContent:function(t){return t.textContent},isElement:function(t){return t.nodeType===1},isText:function(t){return t.nodeType===3},isComment:function(t){return t.nodeType===8}};function Md(t,e,n,r,o){return{sel:t,data:e,children:n,text:r,elm:o,key:e===void 0?void 0:e.key}}const sE=Array.isArray;function V0(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Dm(t){return t===void 0}function Zn(t){return t!==void 0}const PA=Md("",{},[],void 0,void 0);function Ic(t,e){var n,r;const o=t.key===e.key,i=((n=t.data)===null||n===void 0?void 0:n.is)===((r=e.data)===null||r===void 0?void 0:r.is);return t.sel===e.sel&&o&&i}function Lq(t,e,n){var r;const o={};for(let i=e;i<=n;++i){const a=(r=t[i])===null||r===void 0?void 0:r.key;a!==void 0&&(o[a]=i)}return o}const Rq=["create","update","remove","destroy","pre","post"];function Mq(t,e){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=Iq;for(const f of Rq)for(const d of t){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 Md(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 y,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;Zn(b)&&(b(f),g=f.data)}const m=f.children,h=f.sel;if(h==="!")Dm(f.text)&&(f.text=""),f.elm=r.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),D=b>0?b:h.length,x=w>0?w:h.length,C=b!==-1||w!==-1?h.slice(0,Math.min(D,x)):h,O=f.elm=Zn(g)&&Zn(y=g.ns)?r.createElementNS(y,C,g):r.createElement(C,g);for(D<x&&O.setAttribute("id",h.slice(D+1,x)),w>0&&O.setAttribute("class",h.slice(x+1).replace(/\./g," ")),y=0;y<n.create.length;++y)n.create[y](PA,f);if(sE(m))for(y=0;y<m.length;++y){const R=m[y];R!=null&&r.appendChild(O,a(R,d))}else V0(f.text)&&r.appendChild(O,r.createTextNode(f.text));const T=f.data.hook;Zn(T)&&((v=T.create)===null||v===void 0||v.call(T,PA,f),T.insert&&d.push(f))}else f.elm=r.createTextNode(f.text);return f.elm}function u(f,d,p,v,y,g){for(;v<=y;++v){const m=p[v];m!=null&&r.insertBefore(f,a(m,g),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v==null?void 0:v.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let y=0;y<n.destroy.length;++y)n.destroy[y](f);if(f.children!==void 0)for(let y=0;y<f.children.length;++y){const g=f.children[y];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,v){for(var y,g;p<=v;++p){let m,h;const b=d[p];if(b!=null)if(Zn(b.sel)){s(b),m=n.remove.length+1,h=i(b.elm,m);for(let D=0;D<n.remove.length;++D)n.remove[D](b,h);const w=(g=(y=b==null?void 0:b.data)===null||y===void 0?void 0:y.hook)===null||g===void 0?void 0:g.remove;Zn(w)?w(b,h):h()}else r.removeChild(f,b.elm)}}function c(f,d,p){var v,y,g,m,h;const b=(v=d.data)===null||v===void 0?void 0:v.hook;(y=b==null?void 0:b.prepatch)===null||y===void 0||y.call(b,f,d);const w=d.elm=f.elm,D=f.children,x=d.children;if(f!==d){if(d.data!==void 0){for(let C=0;C<n.update.length;++C)n.update[C](f,d);(m=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||m===void 0||m.call(g,f,d)}Dm(d.text)?Zn(D)&&Zn(x)?D!==x&&function(C,O,T,R){let H,M,K,U,W=0,q=0,nt=O.length-1,lt=O[0],st=O[nt],ut=T.length-1,k=T[0],S=T[ut];for(;W<=nt&&q<=ut;)lt==null?lt=O[++W]:st==null?st=O[--nt]:k==null?k=T[++q]:S==null?S=T[--ut]:Ic(lt,k)?(c(lt,k,R),lt=O[++W],k=T[++q]):Ic(st,S)?(c(st,S,R),st=O[--nt],S=T[--ut]):Ic(lt,S)?(c(lt,S,R),r.insertBefore(C,lt.elm,r.nextSibling(st.elm)),lt=O[++W],S=T[--ut]):Ic(st,k)?(c(st,k,R),r.insertBefore(C,st.elm,lt.elm),st=O[--nt],k=T[++q]):(H===void 0&&(H=Lq(O,W,nt)),M=H[k.key],Dm(M)?r.insertBefore(C,a(k,R),lt.elm):(K=O[M],K.sel!==k.sel?r.insertBefore(C,a(k,R),lt.elm):(c(K,k,R),O[M]=void 0,r.insertBefore(C,K.elm,lt.elm))),k=T[++q]);(W<=nt||q<=ut)&&(W>nt?(U=T[ut+1]==null?null:T[ut+1].elm,u(C,U,T,q,ut,R)):l(C,O,W,nt))}(w,D,x,p):Zn(x)?(Zn(f.text)&&r.setTextContent(w,""),u(w,null,x,0,x.length-1,p)):Zn(D)?l(w,D,0,D.length-1):Zn(f.text)&&r.setTextContent(w,""):f.text!==d.text&&(Zn(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,y;const g=[];for(p=0;p<n.pre.length;++p)n.pre[p]();for(function(m){return m.sel!==void 0}(f)||(f=o(f)),Ic(f,d)?c(f,d,g):(v=f.elm,y=r.parentNode(v),a(d,g),y!==null&&(r.insertBefore(y,d.elm,r.nextSibling(v)),l(y,[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 bj(t,e,n){if(t.ns="http://www.w3.org/2000/svg",n!=="foreignObject"&&e!==void 0)for(let r=0;r<e.length;++r){const o=e[r].data;o!==void 0&&bj(o,e[r].children,e[r].sel)}}function $l(t,e,n){let r,o,i,a={};if(n!==void 0?(e!==null&&(a=e),sE(n)?r=n:V0(n)?o=n.toString():n&&n.sel&&(r=[n])):e!=null&&(sE(e)?r=e:V0(e)?o=e.toString():e&&e.sel?r=[e]:a=e),r!==void 0)for(i=0;i<r.length;++i)V0(r[i])&&(r[i]=Md(void 0,void 0,void 0,r[i],void 0));return t[0]!=="s"||t[1]!=="v"||t[2]!=="g"||t.length!==3&&t[3]!=="."&&t[3]!=="#"||bj(a,r,t),Md(t,a,r,o,void 0)}function jA(t,e){let n;const r=e.elm;let o=t.data.attrs,i=e.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const a=i[n];o[n]!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n.charCodeAt(0)!==120?r.setAttribute(n,a):n.charCodeAt(3)===58?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):n.charCodeAt(5)===58?r.setAttributeNS("http://www.w3.org/1999/xlink",n,a):r.setAttribute(n,a))}for(n in o)n in i||r.removeAttribute(n)}}const zq={create:jA,update:jA};function NA(t,e){let n,r;const o=e.elm;let i=t.data.class,a=e.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const $q={create:NA,update:NA},IA=/[A-Z]/g;function LA(t,e){const n=e.elm;let r,o=t.data.dataset,i=e.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(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 Hq={create:LA,update:LA};function wj(t,e,n){if(typeof t=="function")t.call(e,n,e);else if(typeof t=="object")for(let r=0;r<t.length;r++)wj(t[r],e,n)}function Vq(t,e){const n=t.type,r=e.data.on;r&&r[n]&&wj(r[n],e,t)}function Cm(t,e){const n=t.data.on,r=t.listener,o=t.elm,i=e&&e.data.on,a=e&&e.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const s=e.listener=t.listener||function l(c){Vq(c,l.vnode)};if(s.vnode=e,n)for(u in i)n[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const Uq={create:Cm,update:Cm,destroy:Cm};function RA(t,e){let n,r,o;const i=e.elm;let a=t.data.props,u=e.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||n==="value"&&i[n]===r||(i[n]=r)}const Wq={create:RA,update:RA},MA=typeof window!="undefined"&&window.requestAnimationFrame.bind(window)||setTimeout;let xm=!1;function Gq(t,e,n){(function(r){MA(function(){MA(r)})})(function(){t[e]=n})}function zA(t,e){let n,r;const o=e.elm;let i=t.data.style,a=e.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||(r[0]==="-"&&r[1]==="-"?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],r==="delayed"&&a.delayed)for(const s in a.delayed)n=a.delayed[s],u&&n===i.delayed[s]||Gq(o.style,s,n);else r!=="remove"&&n!==i[r]&&(r[0]==="-"&&r[1]==="-"?o.style.setProperty(r,n):o.style[r]=n)}const qq={pre:function(){xm=!1},create:zA,update:zA,destroy:function(t){let e,n;const r=t.elm,o=t.data.style;if(o&&(e=o.destroy))for(n in e)r.style[n]=e[n]},remove:function(t,e){const n=t.data.style;if(!n||!n.remove)return void e();let r;xm||(t.elm.offsetLeft,xm=!0);const o=t.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&e()})}};function Ej(t,e){for(const n of t)n!=null&&n!==!1&&n!==""&&(Array.isArray(n)?Ej(n,e):typeof n=="string"||typeof n=="number"||typeof n=="boolean"?e.push(Md(void 0,void 0,void 0,String(n),void 0)):e.push(n));return e}function wt(t,e,...n){const r=Ej(n,[]);return typeof t=="function"?t(e,r):r.length===1&&!r[0].sel&&r[0].text?$l(t,e,r[0].text):$l(t,e,r)}wt||(wt={});var Kq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Dj="\\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",Xq="[\\ud800-\\udfff]",$A="["+Dj+"]",Xg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Cj="\\d+",Zq="[\\u2700-\\u27bf]",xj="[a-z\\xdf-\\xf6\\xf8-\\xff]",Sj="[^\\ud800-\\udfff"+Dj+Cj+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",lE="\\ud83c[\\udffb-\\udfff]",Aj="[^\\ud800-\\udfff]",z5="(?:\\ud83c[\\udde6-\\uddff]){2}",$5="[\\ud800-\\udbff][\\udc00-\\udfff]",rl="[A-Z\\xc0-\\xd6\\xd8-\\xde]",HA="(?:"+xj+"|"+Sj+")",Jq="(?:"+rl+"|"+Sj+")",VA="(?:"+Xg+"|"+lE+")?",Oj="[\\ufe0e\\ufe0f]?"+VA+("(?:\\u200d(?:"+[Aj,z5,$5].join("|")+")[\\ufe0e\\ufe0f]?"+VA+")*"),Qq="(?:"+[Zq,z5,$5].join("|")+")"+Oj,tK="(?:"+[Aj+Xg+"?",Xg,z5,$5,Xq].join("|")+")",eK=RegExp("[']","g"),nK=RegExp(Xg,"g"),rK=RegExp(lE+"(?="+lE+")|"+tK+Oj,"g"),oK=RegExp([rl+"?"+xj+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[$A,rl,"$"].join("|")+")",Jq+"+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[$A,rl+HA,"$"].join("|")+")",rl+"?"+HA+"+(?:['](?:d|ll|m|re|s|t|ve))?",rl+"+(?:['](?:D|LL|M|RE|S|T|VE))?",Cj,Qq].join("|"),"g"),iK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),aK=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uK=typeof se=="object"&&se&&se.Object===Object&&se,sK=typeof self=="object"&&self&&self.Object===Object&&self,lK=uK||sK||Function("return this")(),Sm,cK=(Sm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(t){return Sm==null?void 0:Sm[t]});function kj(t){return iK.test(t)}function fK(t){return kj(t)?function(e){return e.match(rK)||[]}(t):function(e){return e.split("")}(t)}var dK=Object.prototype.toString,UA=lK.Symbol,WA=UA?UA.prototype:void 0,GA=WA?WA.toString:void 0;function pK(t){if(typeof t=="string")return t;if(function(n){return typeof n=="symbol"||function(r){return!!r&&typeof r=="object"}(n)&&dK.call(n)=="[object Symbol]"}(t))return GA?GA.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function hK(t,e,n){var r=t.length;return n=n===void 0?r:n,!e&&n>=r?t:function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l}(t,e,n)}function U0(t){return t==null?"":pK(t)}var qA,gK=(qA=function(t,e,n){return e=e.toLowerCase(),t+(n?vK(U0(e).toLowerCase()):e)},function(t){return function(e,n,r,o){var i=-1,a=e?e.length:0;for(o;++i<a;)r=n(r,e[i],i,e);return r}(function(e,n,r){return e=U0(e),(n=n)===void 0?function(o){return aK.test(o)}(e)?function(o){return o.match(oK)||[]}(e):function(o){return o.match(Kq)||[]}(e):e.match(n)||[]}(function(e){return(e=U0(e))&&e.replace(Yq,cK).replace(nK,"")}(t).replace(eK,"")),qA,"")}),KA,vK=(KA="toUpperCase",function(t){var e=kj(t=U0(t))?fK(t):void 0,n=e?e[0]:t.charAt(0),r=e?hK(e,1).join(""):t.slice(1);return n[KA]()+r});for(var yK=gK,mK=typeof window!="undefined"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Am={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Bj={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:mK?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},H5={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++)H5["f"+Ih]=111+Ih;function Fj(t,e,n){e&&!("byKey"in e)&&(n=e,e=null),Array.isArray(t)||(t=[t]);var r=t.map(function(i){return function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in Am)l[Am[d]]=!1;var p=!0,v=!1,y=void 0;try{for(var g,m=c[Symbol.iterator]();!(p=(g=m.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=Tj(h),D=Am[w];if(h.length>1&&!D&&!Bj[h]&&!H5[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&D||(s?l.key=w:l.which=bK(h)),D&&(l[D]=!b||null)}}catch(x){v=!0,y=x}finally{try{!p&&m.return&&m.return()}finally{if(v)throw y}}return l}(i,e)}),o=function(i){return r.some(function(a){return function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0}(a,i)})};return n==null?o:o(n)}function bK(t){return t=Tj(t),H5[t]||t.toUpperCase().charCodeAt(0)}function Tj(t){return t=t.toLowerCase(),t=Bj[t]||t}var wK=Fj,Om=function(t,e){return Fj(t,{byKey:!0},e)},EK=/^\s+|\s+$/g,DK=/^[-+]0x[0-9a-f]+$/i,CK=/^0b[01]+$/i,xK=/^0o[0-7]+$/i,SK=parseInt,AK=typeof se=="object"&&se&&se.Object===Object&&se,OK=typeof self=="object"&&self&&self.Object===Object&&self,kK=AK||OK||Function("return this")(),BK=Object.prototype.toString,FK=Math.max,TK=Math.min,km=function(){return kK.Date.now()};function cE(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function YA(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return!!o&&typeof o=="object"}(r)&&BK.call(r)=="[object Symbol]"}(t))return NaN;if(cE(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=cE(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(EK,"");var n=CK.test(t);return n||xK.test(t)?SK(t.slice(2),n?2:8):DK.test(t)?NaN:+t}var Bs,_j=function(t,e,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError("Expected a function");function p(b){var w=r,D=o;return r=o=void 0,l=b,a=t.apply(D,w)}function v(b){return l=b,u=setTimeout(g,e),c?p(b):a}function y(b){var w=b-s;return s===void 0||w>=e||w<0||f&&b-l>=i}function g(){var b=km();if(y(b))return m(b);u=setTimeout(g,function(w){var D=e-(w-s);return f?TK(D,i-(w-l)):D}(b))}function m(b){return u=void 0,d&&r?p(b):(r=o=void 0,a)}function h(){var b=km(),w=y(b);if(r=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,e),p(s)}return u===void 0&&(u=setTimeout(g,e)),a}return e=YA(e)||0,cE(n)&&(c=!!n.leading,i=(f="maxWait"in n)?FK(YA(n.maxWait)||0,e):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:m(km())},h},Pj=ss(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",y="[object String]",g="[object Symbol]",m="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",D="[object Float64Array]",x="[object Int8Array]",C="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",R="[object Uint8ClampedArray]",H="[object Uint16Array]",M="[object Uint32Array]",K=/\w*$/,U=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,q={};q[o]=q["[object Array]"]=q[h]=q[b]=q[i]=q[a]=q[w]=q[D]=q[x]=q[C]=q[O]=q[l]=q[c]=q[f]=q[p]=q[v]=q[y]=q[g]=q[T]=q[R]=q[H]=q[M]=!0,q["[object Error]"]=q[u]=q[m]=!1;var nt=typeof se=="object"&&se&&se.Object===Object&&se,lt=typeof self=="object"&&self&&self.Object===Object&&self,st=nt||lt||Function("return this")(),ut=e&&!e.nodeType&&e,k=ut&&t&&!t.nodeType&&t,S=k&&k.exports===ut;function P(F,z){return F.set(z[0],z[1]),F}function $(F,z){return F.add(z),F}function Y(F,z,ot,ct){var $t=-1,me=F?F.length:0;for(ct;++$t<me;)ot=z(ot,F[$t],$t,F);return ot}function V(F){var z=!1;if(F!=null&&typeof F.toString!="function")try{z=!!(F+"")}catch(ot){}return z}function at(F){var z=-1,ot=Array(F.size);return F.forEach(function(ct,$t){ot[++z]=[$t,ct]}),ot}function vt(F,z){return function(ot){return F(z(ot))}}function yt(F){var z=-1,ot=Array(F.size);return F.forEach(function(ct){ot[++z]=ct}),ot}var Ct=Array.prototype,G=Function.prototype,Lt=Object.prototype,Ot=st["__core-js_shared__"],pt=function(){var F=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||"");return F?"Symbol(src)_1."+F:""}(),kt=G.toString,Be=Lt.hasOwnProperty,Ht=Lt.toString,ee=RegExp("^"+kt.call(Be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ye=S?st.Buffer:void 0,yn=st.Symbol,zt=st.Uint8Array,Ln=vt(Object.getPrototypeOf,Object),Nr=Object.create,ro=Lt.propertyIsEnumerable,ws=Ct.splice,Va=Object.getOwnPropertySymbols,Ir=ye?ye.isBuffer:void 0,oo=vt(Object.keys,Object),Lo=io(st,"DataView"),mn=io(st,"Map"),bn=io(st,"Promise"),wn=io(st,"Set"),Tn=io(st,"WeakMap"),rn=io(Object,"create"),pr=uo(Lo),Cc=uo(mn),hi=uo(bn),Ro=uo(wn),Es=uo(Tn),Ua=yn?yn.prototype:void 0,Ds=Ua?Ua.valueOf:void 0;function Lr(F){var z=-1,ot=F?F.length:0;for(this.clear();++z<ot;){var ct=F[z];this.set(ct[0],ct[1])}}function hr(F){var z=-1,ot=F?F.length:0;for(this.clear();++z<ot;){var ct=F[z];this.set(ct[0],ct[1])}}function Mo(F){var z=-1,ot=F?F.length:0;for(this.clear();++z<ot;){var ct=F[z];this.set(ct[0],ct[1])}}function Rr(F){this.__data__=new hr(F)}function gi(F,z){var ot=_(F)||function(ce){return function(Wt){return function(Ze){return!!Ze&&typeof Ze=="object"}(Wt)&&I(Wt)}(ce)&&Be.call(ce,"callee")&&(!ro.call(ce,"callee")||Ht.call(ce)==o)}(F)?function(ce,Wt){for(var Ze=-1,En=Array(ce);++Ze<ce;)En[Ze]=Wt(Ze);return En}(F.length,String):[],ct=ot.length,$t=!!ct;for(var me in F)!Be.call(F,me)||$t&&(me=="length"||Eh(me,ct))||ot.push(me);return ot}function bh(F,z,ot){var ct=F[z];Be.call(F,z)&&Dh(ct,ot)&&(ot!==void 0||z in F)||(F[z]=ot)}function Xn(F,z){for(var ot=F.length;ot--;)if(Dh(F[ot][0],z))return ot;return-1}function xc(F,z,ot,ct,$t,me,ce){var Wt;if(ct&&(Wt=me?ct(F,$t,me,ce):ct(F)),Wt!==void 0)return Wt;if(!ne(F))return F;var Ze=_(F);if(Ze){if(Wt=function(bt){var Jt=bt.length,je=bt.constructor(Jt);return Jt&&typeof bt[0]=="string"&&Be.call(bt,"index")&&(je.index=bt.index,je.input=bt.input),je}(F),!z)return function(bt,Jt){var je=-1,Rt=bt.length;for(Jt||(Jt=Array(Rt));++je<Rt;)Jt[je]=bt[je];return Jt}(F,Wt)}else{var En=ao(F),Wa=En==u||En==s;if(J(F))return function(bt,Jt){if(Jt)return bt.slice();var je=new bt.constructor(bt.length);return bt.copy(je),je}(F,z);if(En==f||En==o||Wa&&!me){if(V(F))return me?F:{};if(Wt=function(bt){return typeof bt.constructor!="function"||vi(bt)?{}:(Jt=Ln(bt),ne(Jt)?Nr(Jt):{});var Jt}(Wa?{}:F),!z)return function(bt,Jt){return wh(bt,Sc(bt),Jt)}(F,function(bt,Jt){return bt&&wh(Jt,jt(Jt),bt)}(Wt,F))}else{if(!q[En])return me?F:{};Wt=function(bt,Jt,je,Rt){var Gt=bt.constructor;switch(Jt){case h:return Cs(bt);case i:case a:return new Gt(+bt);case b:return function(qt,Fe){var _n=Fe?Cs(qt.buffer):qt.buffer;return new qt.constructor(_n,qt.byteOffset,qt.byteLength)}(bt,Rt);case w:case D:case x:case C:case O:case T:case R:case H:case M:return function(qt,Fe){var _n=Fe?Cs(qt.buffer):qt.buffer;return new qt.constructor(_n,qt.byteOffset,qt.length)}(bt,Rt);case l:return function(qt,Fe,_n){return Y(Fe?_n(at(qt),!0):at(qt),P,new qt.constructor)}(bt,Rt,je);case c:case y:return new Gt(bt);case p:return function(qt){var Fe=new qt.constructor(qt.source,K.exec(qt));return Fe.lastIndex=qt.lastIndex,Fe}(bt);case v:return function(qt,Fe,_n){return Y(Fe?_n(yt(qt),!0):yt(qt),$,new qt.constructor)}(bt,Rt,je);case g:return function(qt){return Ds?Object(Ds.call(qt)):{}}(bt)}}(F,En,xc,z)}}ce||(ce=new Rr);var Ho=ce.get(F);if(Ho)return Ho;if(ce.set(F,Wt),!Ze)var yi=ot?function(bt){return function(Jt,je,Rt){var Gt=je(Jt);return _(Jt)?Gt:function(qt,Fe){for(var _n=-1,Rn=Fe.length,Mr=qt.length;++_n<Rn;)qt[Mr+_n]=Fe[_n];return qt}(Gt,Rt(Jt))}(bt,jt,Sc)}(F):jt(F);return function(bt,Jt){for(var je=-1,Rt=bt?bt.length:0;++je<Rt&&Jt(bt[je],je,bt)!==!1;);}(yi||F,function(bt,Jt){yi&&(bt=F[Jt=bt]),bh(Wt,Jt,xc(bt,z,ot,ct,Jt,F,ce))}),Wt}function zo(F){return!(!ne(F)||function(z){return!!pt&&pt in z}(F))&&(gt(F)||V(F)?ee:U).test(uo(F))}function Cs(F){var z=new F.constructor(F.byteLength);return new zt(z).set(new zt(F)),z}function wh(F,z,ot,ct){ot||(ot={});for(var $t=-1,me=z.length;++$t<me;){var ce=z[$t],Wt=void 0;bh(ot,ce,Wt===void 0?F[ce]:Wt)}return ot}function $o(F,z){var ot,ct,$t=F.__data__;return((ct=typeof(ot=z))=="string"||ct=="number"||ct=="symbol"||ct=="boolean"?ot!=="__proto__":ot===null)?$t[typeof z=="string"?"string":"hash"]:$t.map}function io(F,z){var ot=function(ct,$t){return ct==null?void 0:ct[$t]}(F,z);return zo(ot)?ot:void 0}Lr.prototype.clear=function(){this.__data__=rn?rn(null):{}},Lr.prototype.delete=function(F){return this.has(F)&&delete this.__data__[F]},Lr.prototype.get=function(F){var z=this.__data__;if(rn){var ot=z[F];return ot===n?void 0:ot}return Be.call(z,F)?z[F]:void 0},Lr.prototype.has=function(F){var z=this.__data__;return rn?z[F]!==void 0:Be.call(z,F)},Lr.prototype.set=function(F,z){return this.__data__[F]=rn&&z===void 0?n:z,this},hr.prototype.clear=function(){this.__data__=[]},hr.prototype.delete=function(F){var z=this.__data__,ot=Xn(z,F);return!(ot<0)&&(ot==z.length-1?z.pop():ws.call(z,ot,1),!0)},hr.prototype.get=function(F){var z=this.__data__,ot=Xn(z,F);return ot<0?void 0:z[ot][1]},hr.prototype.has=function(F){return Xn(this.__data__,F)>-1},hr.prototype.set=function(F,z){var ot=this.__data__,ct=Xn(ot,F);return ct<0?ot.push([F,z]):ot[ct][1]=z,this},Mo.prototype.clear=function(){this.__data__={hash:new Lr,map:new(mn||hr),string:new Lr}},Mo.prototype.delete=function(F){return $o(this,F).delete(F)},Mo.prototype.get=function(F){return $o(this,F).get(F)},Mo.prototype.has=function(F){return $o(this,F).has(F)},Mo.prototype.set=function(F,z){return $o(this,F).set(F,z),this},Rr.prototype.clear=function(){this.__data__=new hr},Rr.prototype.delete=function(F){return this.__data__.delete(F)},Rr.prototype.get=function(F){return this.__data__.get(F)},Rr.prototype.has=function(F){return this.__data__.has(F)},Rr.prototype.set=function(F,z){var ot=this.__data__;if(ot instanceof hr){var ct=ot.__data__;if(!mn||ct.length<199)return ct.push([F,z]),this;ot=this.__data__=new Mo(ct)}return ot.set(F,z),this};var Sc=Va?vt(Va,Object):function(){return[]},ao=function(F){return Ht.call(F)};function Eh(F,z){return!!(z=z==null?r:z)&&(typeof F=="number"||W.test(F))&&F>-1&&F%1==0&&F<z}function vi(F){var z=F&&F.constructor;return F===(typeof z=="function"&&z.prototype||Lt)}function uo(F){if(F!=null){try{return kt.call(F)}catch(z){}try{return F+""}catch(z){}}return""}function Dh(F,z){return F===z||F!=F&&z!=z}(Lo&&ao(new Lo(new ArrayBuffer(1)))!=b||mn&&ao(new mn)!=l||bn&&ao(bn.resolve())!=d||wn&&ao(new wn)!=v||Tn&&ao(new Tn)!=m)&&(ao=function(F){var z=Ht.call(F),ot=z==f?F.constructor:void 0,ct=ot?uo(ot):void 0;if(ct)switch(ct){case pr:return b;case Cc:return l;case hi:return d;case Ro:return v;case Es:return m}return z});var _=Array.isArray;function I(F){return F!=null&&function(z){return typeof z=="number"&&z>-1&&z%1==0&&z<=r}(F.length)&&!gt(F)}var J=Ir||function(){return!1};function gt(F){var z=ne(F)?Ht.call(F):"";return z==u||z==s}function ne(F){var z=typeof F;return!!F&&(z=="object"||z=="function")}function jt(F){return I(F)?gi(F):function(z){if(!vi(z))return oo(z);var ot=[];for(var ct in Object(z))Be.call(z,ct)&&ct!="constructor"&&ot.push(ct);return ot}(F)}t.exports=function(F){return xc(F,!0,!0)}});function XA(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var _K=0;function PK(t){return"__private_"+_K+++"_"+t}function jK(t,e,n){const r=[];return t.forEach(o=>typeof o!="string"?r.push(o):e[Symbol.split](o).forEach((i,a,u)=>{i!==""&&r.push(i),a<u.length-1&&r.push(n)})),r}/**
* Takes a string with placeholder variables like `%{smart_count} file selected`
* and replaces it with values from options `{smart_count: 5}`
*
* @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
* taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
*
* @param {string} phrase that needs interpolation, with placeholders
* @param {object} options with values that will be used to replace placeholders
* @returns {any[]} interpolated
*/function ZA(t,e){const n=/\$/g;let r=[t];if(e==null)return r;for(const o of Object.keys(e))if(o!=="_"){let i=e[o];typeof i=="string"&&(i=n[Symbol.replace](i,"$$$$")),r=jK(r,new RegExp(`%\\{${o}\\}`,"g"),i)}return r}var jj=(Bs=PK("apply"),class{constructor(t){Object.defineProperty(this,Bs,{value:NK}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(t)?t.forEach(XA(this,Bs)[Bs],this):XA(this,Bs)[Bs](t)}translate(t,e){return this.translateArray(t,e).join("")}translateArray(t,e){if(!function(r,o){return Object.prototype.hasOwnProperty.call(r,o)}(this.locale.strings,t))throw new Error(`missing string: ${t}`);const n=this.locale.strings[t];if(typeof n=="object"){if(e&&e.smart_count!==void 0)return ZA(n[this.locale.pluralize(e.smart_count)],e);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ZA(n,e)}});function NK(t){if(t==null||!t.strings)return;const e=this.locale;this.locale=Zt(Z({},e),{strings:Z(Z({},e.strings),t.strings)}),this.locale.pluralize=t.pluralize||e.pluralize}var Nj=function(){var t={},e=t._fns={};return t.emit=function(n,r,o,i,a,u,s){var l=function(c){for(var f=e[c]?e[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(e),y=0,g=v.length;y<g;y++){var m=v[y];if(m==="*"&&(f=f.concat(e[m])),p.length===2&&p[0]===m){f=f.concat(e[m]);break}}return f}(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])},t.on=function(n,r){e[n]||(e[n]=[]),e[n].push(r)},t.once=function(n,r){this.on(n,function o(){r.apply(this,arguments),t.off(n,o)})},t.off=function(n,r){var o=[];if(n&&r)for(var i=this._fns[n],a=0,u=i?i.length:0;a<u;a++)i[a]!==r&&o.push(i[a]);o.length?this._fns[n]=o:delete this._fns[n]},t},IK={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:LK}=IK,JA=t=>crypto.getRandomValues(new Uint8Array(t)),QA=(t,e,n)=>{let r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*e/t.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=t[a[u]&r]||"",i.length===e)return i}}};var RK={nanoid:(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let r=63&n[t];e+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return e},customAlphabet:(t,e)=>QA(t,e,JA),customRandom:QA,urlAlphabet:LK,random:JA},Bm=function(t){if(typeof t!="number"||isNaN(t))throw new TypeError("Expected a number, got "+typeof t);var e=t<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e&&(t=-t),t<1)return(e?"-":"")+t+" B";var r=Math.min(Math.floor(Math.log(t)/Math.log(1024)),n.length-1);t=Number(t/Math.pow(1024,r));var o=n[r];return t>=10||t%1==0?(e?"-":"")+t.toFixed(0)+" "+o:(e?"-":"")+t.toFixed(1)+" "+o};function Ij(t,e){this.text=t=t||"",this.hasWild=~t.indexOf("*"),this.separator=e,this.parts=t.split(e)}Ij.prototype.match=function(t){var e,n,r=!0,o=this.parts,i=o.length;if(typeof t=="string"||t instanceof String)if(this.hasWild||this.text==t){for(n=(t||"").split(this.separator),e=0;r&&e<i;e++)o[e]!=="*"&&(r=e<n.length&&o[e]===n[e]);r=r&&n}else r=!1;else if(typeof t.splice=="function")for(r=[],e=t.length;e--;)this.match(t[e])&&(r[r.length]=t[e]);else if(typeof t=="object")for(var a in r={},t)this.match(a)&&(r[a]=t[a]);return r};var MK=/[\/\+\.]/,zK=function(t,e){function n(r){var o=function(i,a,u){var s=new Ij(i,u||/[\/\.]/);return a!==void 0?s.match(a):s}(r,t,MK);return o&&o.length>=2}return e?n(e.split(";")[0]):n},$K=0;function HK(t){return"__private_"+$K+++"_"+t}var Fm=HK("publish");class Lj{constructor(){Object.defineProperty(this,Fm,{value:VK}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const n=Z({},this.state),r=Z(Z({},this.state),e);this.state=r,function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o}(this,Fm)[Fm](n,r,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function VK(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.callbacks.forEach(r=>{r(...e)})}Lj.VERSION="2.0.3";var t7=function(t){const e=t.lastIndexOf(".");return e===-1||e===t.length-1?{name:t,extension:void 0}:{name:t.slice(0,e),extension:t.slice(e+1)}},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 n7(t){let e="";return t.replace(/[^A-Z0-9]/gi,n=>(e+=`-${function(r){return r.charCodeAt(0).toString(32)}(n)}`,"/"))+e}var UK=function(t){if(t==null&&(t=typeof navigator!="undefined"?navigator.userAgent:null),!t)return!0;const e=/Edge\/(\d+\.\d+)/.exec(t);if(!e)return!0;const n=e[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||r===15&&o<15063||r>18||r===18&&o>=18218};function Tm(t){return t<10?`0${t}`:t.toString()}var Lh=function(){const t=new Date;return`${Tm(t.getHours())}:${Tm(t.getMinutes())}:${Tm(t.getSeconds())}`},Rj={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Lh()}]`,...e)}},debugLogger:{debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.debug(`[Uppy] [${Lh()}]`,...e)},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.warn(`[Uppy] [${Lh()}]`,...e)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return console.error(`[Uppy] [${Lh()}]`,...e)}}},WK={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}"}}},Mj=RK;let zj,$j;function dt(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var GK=0;function Xe(t){return"__private_"+GK+++"_"+t}const{nanoid:qK}=Mj,{justErrorsLogger:KK,debugLogger:YK}=Rj;class vo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError=="undefined"&&(globalThis.AggregateError=class extends Error{constructor(t,e){super(e),this.errors=t}});class XK extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var pn=Xe("plugins"),Lc=Xe("storeUnsubscribe"),Uo=Xe("emitter"),du=Xe("preProcessors"),pu=Xe("uploaders"),Xo=Xe("postProcessors"),ad=Xe("checkRestrictions"),_m=Xe("checkMinNumberOfFiles"),zd=Xe("checkRequiredMetaFieldsOnFile"),Pm=Xe("checkRequiredMetaFields"),Je=Xe("showOrLogErrorAndThrow"),Rc=Xe("assertNewUploadAllowed"),Mc=Xe("checkAndCreateFileStateObject"),zc=Xe("startIfAutoProceed"),jm=Xe("addListeners"),$r=Xe("updateOnlineStatus"),Wo=Xe("createUpload"),Nm=Xe("getUpload"),yu=Xe("removeUpload"),Go=Xe("runUpload");zj=Symbol.for("uppy test: getPlugins"),$j=Symbol.for("uppy test: createUpload");class Hj{constructor(e){Object.defineProperty(this,Go,{value:lY}),Object.defineProperty(this,yu,{value:sY}),Object.defineProperty(this,Nm,{value:uY}),Object.defineProperty(this,Wo,{value:aY}),Object.defineProperty(this,jm,{value:iY}),Object.defineProperty(this,zc,{value:oY}),Object.defineProperty(this,Mc,{value:rY}),Object.defineProperty(this,Rc,{value:nY}),Object.defineProperty(this,Je,{value:eY}),Object.defineProperty(this,Pm,{value:tY}),Object.defineProperty(this,zd,{value:QK}),Object.defineProperty(this,_m,{value:JK}),Object.defineProperty(this,ad,{value:ZK}),Object.defineProperty(this,pn,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Lc,{writable:!0,value:void 0}),Object.defineProperty(this,Uo,{writable:!0,value:Nj()}),Object.defineProperty(this,du,{writable:!0,value:new Set}),Object.defineProperty(this,pu,{writable:!0,value:new Set}),Object.defineProperty(this,Xo,{writable:!0,value:new Set}),Object.defineProperty(this,$r,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=WK;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 Lj,logger:KK,infoTimeout:5e3};if(this.opts=Zt(Z(Z({},n),e),{restrictions:Z(Z({},n.restrictions),e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=YK),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=Xu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:UK(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:Z({},this.opts.meta),info:[],recoveredState:null}),dt(this,Lc)[Lc]=this.store.subscribe((r,o,i)=>{this.emit("state-update",r,o,i),this.updateAll(o)}),this.opts.debug&&typeof window!="undefined"&&(window[this.opts.id]=this),dt(this,jm)[jm]()}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];dt(this,Uo)[Uo].emit(e,...r)}on(e,n){return dt(this,Uo)[Uo].on(e,n),this}once(e,n){return dt(this,Uo)[Uo].once(e,n),this}off(e,n){return dt(this,Uo)[Uo].off(e,n),this}updateAll(e){this.iteratePlugins(n=>{n.update(e)})}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,n){if(!this.getState().files[e])throw new Error(`Cant set state for ${e} (the file could have been removed)`);this.setState({files:Zt(Z({},this.getState().files),{[e]:Z(Z({},this.getState().files[e]),n)})})}i18nInit(){const e=new jj([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts=Zt(Z(Z({},this.opts),e),{restrictions:Z(Z({},this.opts.restrictions),e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins(n=>{n.setOptions()}),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},n=Z({},this.getState().files),r={};Object.keys(n).forEach(o=>{const i=Z({},n[o]);i.progress=Z(Z({},i.progress),e),r[o]=i}),this.setState({files:r,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){dt(this,du)[du].add(e)}removePreProcessor(e){return dt(this,du)[du].delete(e)}addPostProcessor(e){dt(this,Xo)[Xo].add(e)}removePostProcessor(e){return dt(this,Xo)[Xo].delete(e)}addUploader(e){dt(this,pu)[pu].add(e)}removeUploader(e){return dt(this,pu)[pu].delete(e)}setMeta(e){const n=Z(Z({},this.getState().meta),e),r=Z({},this.getState().files);Object.keys(r).forEach(o=>{r[o]=Zt(Z({},r[o]),{meta:Z(Z({},r[o].meta),e)})}),this.log("Adding metadata:"),this.log(e),this.setState({meta:n,files:r})}setFileMeta(e,n){const r=Z({},this.getState().files);if(!r[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const o=Z(Z({},r[e].meta),n);r[e]=Zt(Z({},r[e]),{meta:o}),this.setState({files:r})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:n,error:r}=this.getState(),o=Object.values(e),i=o.filter(v=>{let{progress:y}=v;return!y.uploadComplete&&y.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),d=i.filter(v=>!v.isPaused),p=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete: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(e,n){try{return dt(this,ad)[ad](e,n),{result:!0}}catch(r){return{result:!1,reason:r.message}}}checkIfFileAlreadyExists(e){const{files:n}=this.getState();return!(!n[e]||n[e].isGhost)}addFile(e){dt(this,Rc)[Rc](e);const{files:n}=this.getState();let r=dt(this,Mc)[Mc](n,e);return n[r.id]&&n[r.id].isGhost&&(r=Zt(Z({},n[r.id]),{data:e.data,isGhost:!1}),this.log(`Replaced the blob in the restored ghost file: ${r.name}, ${r.id}`)),this.setState({files:Zt(Z({},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}`),dt(this,zc)[zc](),r.id}addFiles(e){dt(this,Rc)[Rc]();const n=Z({},this.getState().files),r=[],o=[];for(let i=0;i<e.length;i++)try{let a=dt(this,Mc)[Mc](n,e[i]);n[a.id]&&n[a.id].isGhost&&(a=Zt(Z({},n[a.id]),{data:e[i].data,isGhost:!1}),this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),n[a.id]=a,r.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:n}),r.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",r),r.length>5?this.log(`Added batch of ${r.length} files`):Object.keys(r).forEach(i=>{this.log(`Added file: ${r[i].name}
id: ${r[i].id}
type: ${r[i].type}`)}),r.length>0&&dt(this,zc)[zc](),o.length>0){let i=`Multiple errors occurred while adding files:
`;if(o.forEach(a=>{i+=`
* ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(e,n){const{files:r,currentUploads:o}=this.getState(),i=Z({},r),a=Z({},o),u=Object.create(null);function s(f){return u[f]===void 0}e.forEach(f=>{r[f]&&(u[f]=r[f],delete i[f])}),Object.keys(a).forEach(f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]=Zt(Z({},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(e,n){n===void 0&&(n=null),this.removeFiles([e],n)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const n=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:n}),this.emit("upload-pause",e,n),n}pauseAll(){const e=Z({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=Zt(Z({},e[n]),{isPaused:!0});e[n]=r}),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e=Z({},this.getState().files);Object.keys(e).filter(n=>!e[n].progress.uploadComplete&&e[n].progress.uploadStarted).forEach(n=>{const r=Zt(Z({},e[n]),{isPaused:!1,error:null});e[n]=r}),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e=Z({},this.getState().files),n=Object.keys(e).filter(o=>e[o].error);if(n.forEach(o=>{const i=Zt(Z({},e[o]),{isPaused:!1,error:null});e[o]=i}),this.setState({files:e,error:null}),this.emit("retry-all",n),n.length===0)return Promise.resolve({successful:[],failed:[]});const r=dt(this,Wo)[Wo](n,{forceAllowNewUpload:!0});return dt(this,Go)[Go](r)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),n=Object.keys(e);n.length&&this.removeFiles(n,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const n=dt(this,Wo)[Wo]([e],{forceAllowNewUpload:!0});return dt(this,Go)[Go](n)}reset(){this.cancelAll()}logout(){this.iteratePlugins(e=>{e.provider&&e.provider.logout&&e.provider.logout()})}calculateProgress(e,n){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=Number.isFinite(n.bytesTotal)&&n.bytesTotal>0;this.setFileState(e.id,{progress:Zt(Z({},this.getFile(e.id).progress),{bytesUploaded:n.bytesUploaded,bytesTotal:n.bytesTotal,percentage:r?Math.round(n.bytesUploaded/n.bytesTotal*100):0})}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(e.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const n=e.filter(s=>s.progress.bytesTotal!=null),r=e.filter(s=>s.progress.bytesTotal==null);if(n.length===0){const s=100*e.length,l=r.reduce((f,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(e,n){if(typeof e!="function")throw new TypeError(`Expected a plugin class, but got ${e===null?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`);const r=new e(this,n),o=r.id;if(!o)throw new Error("Your plugin must have an id");if(!r.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return e.VERSION&&this.log(`Using ${o} v${e.VERSION}`),r.type in dt(this,pn)[pn]?dt(this,pn)[pn][r.type].push(r):dt(this,pn)[pn][r.type]=[r],r.install(),this}getPlugin(e){for(const n of Object.values(dt(this,pn)[pn])){const r=n.find(o=>o.id===e);if(r!=null)return r}}[zj](e){return dt(this,pn)[pn][e]}iteratePlugins(e){Object.values(dt(this,pn)[pn]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const n=dt(this,pn)[pn][e.type],r=n.findIndex(i=>i.id===e.id);r!==-1&&n.splice(r,1);const o={plugins:Zt(Z({},this.getState().plugins),{[e.id]:void 0})};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),dt(this,Lc)[Lc](),this.iteratePlugins(e=>{this.removePlugin(e)}),typeof window!="undefined"&&window.removeEventListener&&(window.removeEventListener("online",dt(this,$r)[$r]),window.removeEventListener("offline",dt(this,$r)[$r]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,n,r){n===void 0&&(n="info"),r===void 0&&(r=3e3);const o=typeof e=="object";this.setState({info:[...this.getState().info,{type:n,message:o?e.message:e,details:o?e.details:null}]}),setTimeout(()=>this.hideInfo(),r),this.emit("info-visible")}log(e,n){const{logger:r}=this.opts;switch(n){case"error":r.error(e);break;case"warning":r.warn(e);break;default:r.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?dt(this,Go)[Go](e):(dt(this,yu)[yu](e),Promise.reject(new Error("Nonexistent upload")))}[$j](){return dt(this,Wo)[Wo](...arguments)}addResultData(e,n){if(!dt(this,Nm)[Nm](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:r}=this.getState(),o=Zt(Z({},r[e]),{result:Z(Z({},r[e].result),n)});this.setState({currentUploads:Zt(Z({},r),{[e]:o})})}upload(){var e;(e=dt(this,pn)[pn].uploader)!=null&&e.length||this.log("No uploader type plugins are used","warning");let{files:n}=this.getState();const r=this.opts.onBeforeUpload(n);return r===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(r&&typeof r=="object"&&(n=r,this.setState({files:n})),Promise.resolve().then(()=>{dt(this,_m)[_m](n),dt(this,Pm)[Pm](n)}).catch(o=>{dt(this,Je)[Je](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=dt(this,Wo)[Wo](a);return dt(this,Go)[Go](u)}).catch(o=>{dt(this,Je)[Je](o,{showInformer:!1})}))}}function ZK(t,e){e===void 0&&(e=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&e.length+1>i)throw new vo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!t.type&&zK(t.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!t.extension)&&t.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new vo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&t.size!=null){let u=0;if(u+=t.size,e.forEach(s=>{u+=s.size}),u>o)throw new vo(this.i18n("exceedsSize",{size:Bm(o),file:t.name}))}if(n&&t.size!=null&&t.size>n)throw new vo(this.i18n("exceedsSize",{size:Bm(n),file:t.name}));if(r&&t.size!=null&&t.size<r)throw new vo(this.i18n("inferiorSize",{size:Bm(r)}))}function JK(t){const{minNumberOfFiles:e}=this.opts.restrictions;if(Object.keys(t).length<e)throw new vo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:e})}`)}function QK(t){const{requiredMetaFields:e}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<e.length;i++)if(!n.call(t.meta,e[i])||t.meta[e[i]]===""){const a=new vo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:t.name})}`);r.push(a),o.push(e[i]),dt(this,Je)[Je](a,{file:t,showInformer:!1,throwErr:!1})}return this.setFileState(t.id,{missingRequiredMetaFields:o}),r}function tY(t){const e=Object.keys(t).flatMap(n=>{const r=this.getFile(n);return dt(this,zd)[zd](r)});if(e.length)throw new XK(e,`${this.i18n("missingRequiredMetaField")}`)}function eY(t,e){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=e===void 0?{}:e;const i=typeof t=="object"?t.message:t,a=typeof t=="object"&&t.details?t.details:"";let u=i;if(a&&(u+=` ${a}`),t.isRestriction?(this.log(u),this.emit("restriction-failed",r,t)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof t=="object"?t:new Error(t)}function nY(t){const{allowNewUpload:e}=this.getState();e===!1&&dt(this,Je)[Je](new vo(this.i18n("noMoreFilesAllowed")),{file:t})}function rY(t,e){const n=function(f){var d;if(f.type)return f.type;const p=f.name?(d=t7(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in e7?e7[p]:"application/octet-stream"}(e),r=function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"}(n,e),o=t7(r).extension,i=!!e.isRemote,a=function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${n7(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${n7(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d}(Zt(Z({},e),{type:n}));if(this.checkIfFileAlreadyExists(a)){const f=new vo(this.i18n("noDuplicates",{fileName:r}));dt(this,Je)[Je](f,{file:e})}const u=e.meta||{};u.name=r,u.type=n;const s=Number.isFinite(e.data.size)?e.data.size:null;let l={source:e.source||"",id:a,name:r,extension:o||"",meta:Z(Z({},this.getState().meta),u),type:n,data:e.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:e.remote||"",preview:e.preview};const c=this.opts.onBeforeFileAdded(l,t);c===!1?dt(this,Je)[Je](new vo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:e}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(t).map(d=>t[d]);dt(this,ad)[ad](l,f)}catch(f){dt(this,Je)[Je](f,{file:l})}return l}function oY(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(t=>{t.isRestriction||this.log(t.stack||t.message||t)})},4))}function iY(){const t=(e,n,r)=>{let o=e.message||"Unknown error";e.details&&(o+=` ${e.details}`),this.setState({error:o}),n!=null&&n.id in this.getState().files&&this.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(e,n,r)=>{if(t(n,e,r),typeof n=="object"&&n.message){const o=new Error(n.message);o.details=n.message,n.details&&(o.details+=` ${n.details}`),o.message=this.i18n("failedToUpload",{file:e.name}),dt(this,Je)[Je](o,{throwErr:!1})}else dt(this,Je)[Je](n,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(e,n)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const r=this.getFile(e.id).progress;this.setFileState(e.id,{progress:Zt(Z({},r),{postprocess:dt(this,Xo)[Xo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),e.size==null&&this.setFileState(e.id,{size:n.bytesUploaded||r.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:Zt(Z({},this.getFile(e.id).progress),{preprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("preprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Z({},this.getState().files);n[e.id]=Zt(Z({},n[e.id]),{progress:Z({},n[e.id].progress)}),delete n[e.id].progress.preprocess,this.setState({files:n})}),this.on("postprocess-progress",(e,n)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:Zt(Z({},this.getState().files[e.id].progress),{postprocess:n})}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)}),this.on("postprocess-complete",e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Z({},this.getState().files);n[e.id]=Zt(Z({},n[e.id]),{progress:Z({},n[e.id].progress)}),delete n[e.id].progress.postprocess,this.setState({files:n})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",e=>{e&&dt(this,zd)[zd](e)}),typeof window!="undefined"&&window.addEventListener&&(window.addEventListener("online",dt(this,$r)[$r]),window.addEventListener("offline",dt(this,$r)[$r]),setTimeout(dt(this,$r)[$r],3e3))}function aY(t,e){e===void 0&&(e={});const{forceAllowNewUpload:n=!1}=e,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=qK();return this.emit("upload",{id:i,fileIDs:t}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:Zt(Z({},o),{[i]:{fileIDs:t,step:0,result:{}}})}),i}function uY(t){const{currentUploads:e}=this.getState();return e[t]}function sY(t){const e=Z({},this.getState().currentUploads);delete e[t],this.setState({currentUploads:e})}function lY(t){return Ry(this,null,function*(){let{currentUploads:e}=this.getState(),n=e[t];const r=n.step||0,o=[...dt(this,du)[du],...dt(this,pu)[pu],...dt(this,Xo)[Xo]];try{for(let a=r;a<o.length&&n;a++){const u=o[a],s=Zt(Z({},n),{step:a});this.setState({currentUploads:Zt(Z({},e),{[t]:s})}),yield u(s.fileIDs,t),e=this.getState().currentUploads,n=e[t]}}catch(a){throw this.emit("error",a),dt(this,yu)[yu](t),a}if(n){n.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=n.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);yield this.addResultData(t,{successful:u,failed:s,uploadID:t}),e=this.getState().currentUploads,n=e[t]}let i;return n&&(i=n.result,this.emit("complete",i),dt(this,yu)[yu](t)),i==null&&this.log(`Not setting result for an upload that has been removed: ${t}`),i})}Hj.VERSION="2.1.3";var Vj=Hj,cY=ss(function(t,e){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(k,S){for(var P in S)k[P]=S[P];return k}function v(k){var S=k.parentNode;S&&S.removeChild(k)}function y(k,S,P){var $,Y,V,at={};for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:at[V]=S[V];if(arguments.length>2&&(at.children=arguments.length>3?n.call(arguments,2):P),typeof k=="function"&&k.defaultProps!=null)for(V in k.defaultProps)at[V]===void 0&&(at[V]=k.defaultProps[V]);return g(k,at,$,Y,null)}function g(k,S,P,$,Y){var V={type:k,props:S,key:P,ref:$,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Y==null?++o:Y};return Y==null&&r.vnode!=null&&r.vnode(V),V}function m(k){return k.children}function h(k,S){this.props=k,this.context=S}function b(k,S){if(S==null)return k.__?b(k.__,k.__.__k.indexOf(k)+1):null;for(var P;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null)return P.__e;return typeof k.type=="function"?b(k):null}function w(k){var S,P;if((k=k.__)!=null&&k.__c!=null){for(k.__e=k.__c.base=null,S=0;S<k.__k.length;S++)if((P=k.__k[S])!=null&&P.__e!=null){k.__e=k.__c.base=P.__e;break}return w(k)}}function D(k){(!k.__d&&(k.__d=!0)&&a.push(k)&&!x.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(x)}function x(){for(var k;x.__r=a.length;)k=a.sort(function(S,P){return S.__v.__b-P.__v.__b}),a=[],k.some(function(S){var P,$,Y,V,at,vt;S.__d&&(at=(V=(P=S).__v).__e,(vt=P.__P)&&($=[],(Y=p({},V)).__v=V.__v+1,U(vt,V,Y,P.__n,vt.ownerSVGElement!==void 0,V.__h!=null?[at]:null,$,at==null?b(V):at,V.__h),W($,V),V.__e!=at&&w(V)))})}function C(k,S,P,$,Y,V,at,vt,yt,Ct){var G,Lt,Ot,pt,kt,Be,Ht,ee=$&&$.__k||f,ye=ee.length;for(P.__k=[],G=0;G<S.length;G++)if((pt=P.__k[G]=(pt=S[G])==null||typeof pt=="boolean"?null:typeof pt=="string"||typeof pt=="number"||typeof pt=="bigint"?g(null,pt,null,null,pt):Array.isArray(pt)?g(m,{children:pt},null,null,null):pt.__b>0?g(pt.type,pt.props,pt.key,null,pt.__v):pt)!=null){if(pt.__=P,pt.__b=P.__b+1,(Ot=ee[G])===null||Ot&&pt.key==Ot.key&&pt.type===Ot.type)ee[G]=void 0;else for(Lt=0;Lt<ye;Lt++){if((Ot=ee[Lt])&&pt.key==Ot.key&&pt.type===Ot.type){ee[Lt]=void 0;break}Ot=null}U(k,pt,Ot=Ot||c,Y,V,at,vt,yt,Ct),kt=pt.__e,(Lt=pt.ref)&&Ot.ref!=Lt&&(Ht||(Ht=[]),Ot.ref&&Ht.push(Ot.ref,null,pt),Ht.push(Lt,pt.__c||kt,pt)),kt!=null?(Be==null&&(Be=kt),typeof pt.type=="function"&&pt.__k===Ot.__k?pt.__d=yt=O(pt,yt,k):yt=T(k,pt,Ot,ee,kt,yt),typeof P.type=="function"&&(P.__d=yt)):yt&&Ot.__e==yt&&yt.parentNode!=k&&(yt=b(Ot))}for(P.__e=Be,G=ye;G--;)ee[G]!=null&&(typeof P.type=="function"&&ee[G].__e!=null&&ee[G].__e==P.__d&&(P.__d=b($,G+1)),lt(ee[G],ee[G]));if(Ht)for(G=0;G<Ht.length;G++)nt(Ht[G],Ht[++G],Ht[++G])}function O(k,S,P){for(var $,Y=k.__k,V=0;Y&&V<Y.length;V++)($=Y[V])&&($.__=k,S=typeof $.type=="function"?O($,S,P):T(P,$,$,Y,$.__e,S));return S}function T(k,S,P,$,Y,V){var at,vt,yt;if(S.__d!==void 0)at=S.__d,S.__d=void 0;else if(P==null||Y!=V||Y.parentNode==null)t:if(V==null||V.parentNode!==k)k.appendChild(Y),at=null;else{for(vt=V,yt=0;(vt=vt.nextSibling)&&yt<$.length;yt+=2)if(vt==Y)break t;k.insertBefore(Y,V),at=V}return at!==void 0?at:Y.nextSibling}function R(k,S,P){S[0]==="-"?k.setProperty(S,P):k[S]=P==null?"":typeof P!="number"||d.test(S)?P:P+"px"}function H(k,S,P,$,Y){var V;t:if(S==="style")if(typeof P=="string")k.style.cssText=P;else{if(typeof $=="string"&&(k.style.cssText=$=""),$)for(S in $)P&&S in P||R(k.style,S,"");if(P)for(S in P)$&&P[S]===$[S]||R(k.style,S,P[S])}else if(S[0]==="o"&&S[1]==="n")V=S!==(S=S.replace(/Capture$/,"")),S=S.toLowerCase()in k?S.toLowerCase().slice(2):S.slice(2),k.l||(k.l={}),k.l[S+V]=P,P?$||k.addEventListener(S,V?K:M,V):k.removeEventListener(S,V?K:M,V);else if(S!=="dangerouslySetInnerHTML"){if(Y)S=S.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(S!=="href"&&S!=="list"&&S!=="form"&&S!=="tabIndex"&&S!=="download"&&S in k)try{k[S]=P==null?"":P;break t}catch(at){}typeof P=="function"||(P!=null&&(P!==!1||S[0]==="a"&&S[1]==="r")?k.setAttribute(S,P):k.removeAttribute(S))}}function M(k){this.l[k.type+!1](r.event?r.event(k):k)}function K(k){this.l[k.type+!0](r.event?r.event(k):k)}function U(k,S,P,$,Y,V,at,vt,yt){var Ct,G,Lt,Ot,pt,kt,Be,Ht,ee,ye,yn,zt=S.type;if(S.constructor!==void 0)return null;P.__h!=null&&(yt=P.__h,vt=S.__e=P.__e,S.__h=null,V=[vt]),(Ct=r.__b)&&Ct(S);try{t:if(typeof zt=="function"){if(Ht=S.props,ee=(Ct=zt.contextType)&&$[Ct.__c],ye=Ct?ee?ee.props.value:Ct.__:$,P.__c?Be=(G=S.__c=P.__c).__=G.__E:("prototype"in zt&&zt.prototype.render?S.__c=G=new zt(Ht,ye):(S.__c=G=new h(Ht,ye),G.constructor=zt,G.render=st),ee&&ee.sub(G),G.props=Ht,G.state||(G.state={}),G.context=ye,G.__n=$,Lt=G.__d=!0,G.__h=[]),G.__s==null&&(G.__s=G.state),zt.getDerivedStateFromProps!=null&&(G.__s==G.state&&(G.__s=p({},G.__s)),p(G.__s,zt.getDerivedStateFromProps(Ht,G.__s))),Ot=G.props,pt=G.state,Lt)zt.getDerivedStateFromProps==null&&G.componentWillMount!=null&&G.componentWillMount(),G.componentDidMount!=null&&G.__h.push(G.componentDidMount);else{if(zt.getDerivedStateFromProps==null&&Ht!==Ot&&G.componentWillReceiveProps!=null&&G.componentWillReceiveProps(Ht,ye),!G.__e&&G.shouldComponentUpdate!=null&&G.shouldComponentUpdate(Ht,G.__s,ye)===!1||S.__v===P.__v){G.props=Ht,G.state=G.__s,S.__v!==P.__v&&(G.__d=!1),G.__v=S,S.__e=P.__e,S.__k=P.__k,S.__k.forEach(function(Ln){Ln&&(Ln.__=S)}),G.__h.length&&at.push(G);break t}G.componentWillUpdate!=null&&G.componentWillUpdate(Ht,G.__s,ye),G.componentDidUpdate!=null&&G.__h.push(function(){G.componentDidUpdate(Ot,pt,kt)})}G.context=ye,G.props=Ht,G.state=G.__s,(Ct=r.__r)&&Ct(S),G.__d=!1,G.__v=S,G.__P=k,Ct=G.render(G.props,G.state,G.context),G.state=G.__s,G.getChildContext!=null&&($=p(p({},$),G.getChildContext())),Lt||G.getSnapshotBeforeUpdate==null||(kt=G.getSnapshotBeforeUpdate(Ot,pt)),yn=Ct!=null&&Ct.type===m&&Ct.key==null?Ct.props.children:Ct,C(k,Array.isArray(yn)?yn:[yn],S,P,$,Y,V,at,vt,yt),G.base=S.__e,S.__h=null,G.__h.length&&at.push(G),Be&&(G.__E=G.__=null),G.__e=!1}else V==null&&S.__v===P.__v?(S.__k=P.__k,S.__e=P.__e):S.__e=q(P.__e,S,P,$,Y,V,at,yt);(Ct=r.diffed)&&Ct(S)}catch(Ln){S.__v=null,(yt||V!=null)&&(S.__e=vt,S.__h=!!yt,V[V.indexOf(vt)]=null),r.__e(Ln,S,P)}}function W(k,S){r.__c&&r.__c(S,k),k.some(function(P){try{k=P.__h,P.__h=[],k.some(function($){$.call(P)})}catch($){r.__e($,P.__v)}})}function q(k,S,P,$,Y,V,at,vt){var yt,Ct,G,Lt=P.props,Ot=S.props,pt=S.type,kt=0;if(pt==="svg"&&(Y=!0),V!=null){for(;kt<V.length;kt++)if((yt=V[kt])&&"setAttribute"in yt==!!pt&&(pt?yt.localName===pt:yt.nodeType===3)){k=yt,V[kt]=null;break}}if(k==null){if(pt===null)return document.createTextNode(Ot);k=Y?document.createElementNS("http://www.w3.org/2000/svg",pt):document.createElement(pt,Ot.is&&Ot),V=null,vt=!1}if(pt===null)Lt===Ot||vt&&k.data===Ot||(k.data=Ot);else{if(V=V&&n.call(k.childNodes),Ct=(Lt=P.props||c).dangerouslySetInnerHTML,G=Ot.dangerouslySetInnerHTML,!vt){if(V!=null)for(Lt={},kt=0;kt<k.attributes.length;kt++)Lt[k.attributes[kt].name]=k.attributes[kt].value;(G||Ct)&&(G&&(Ct&&G.__html==Ct.__html||G.__html===k.innerHTML)||(k.innerHTML=G&&G.__html||""))}if(function(Be,Ht,ee,ye,yn){var zt;for(zt in ee)zt==="children"||zt==="key"||zt in Ht||H(Be,zt,null,ee[zt],ye);for(zt in Ht)yn&&typeof Ht[zt]!="function"||zt==="children"||zt==="key"||zt==="value"||zt==="checked"||ee[zt]===Ht[zt]||H(Be,zt,Ht[zt],ee[zt],ye)}(k,Ot,Lt,Y,vt),G)S.__k=[];else if(kt=S.props.children,C(k,Array.isArray(kt)?kt:[kt],S,P,$,Y&&pt!=="foreignObject",V,at,V?V[0]:P.__k&&b(P,0),vt),V!=null)for(kt=V.length;kt--;)V[kt]!=null&&v(V[kt]);vt||("value"in Ot&&(kt=Ot.value)!==void 0&&(kt!==Lt.value||kt!==k.value||pt==="progress"&&!kt)&&H(k,"value",kt,Lt.value,!1),"checked"in Ot&&(kt=Ot.checked)!==void 0&&kt!==k.checked&&H(k,"checked",kt,Lt.checked,!1))}return k}function nt(k,S,P){try{typeof k=="function"?k(S):k.current=S}catch($){r.__e($,P)}}function lt(k,S,P){var $,Y;if(r.unmount&&r.unmount(k),($=k.ref)&&($.current&&$.current!==k.__e||nt($,null,S)),($=k.__c)!=null){if($.componentWillUnmount)try{$.componentWillUnmount()}catch(V){r.__e(V,S)}$.base=$.__P=null}if($=k.__k)for(Y=0;Y<$.length;Y++)$[Y]&&lt($[Y],S,typeof k.type!="function");P||k.__e==null||v(k.__e),k.__e=k.__d=void 0}function st(k,S,P){return this.constructor(k,P)}function ut(k,S,P){var $,Y,V;r.__&&r.__(k,S),Y=($=typeof P=="function")?null:P&&P.__k||S.__k,V=[],U(S,k=(!$&&P||S).__k=y(m,null,[k]),Y||c,c,S.ownerSVGElement!==void 0,!$&&P?[P]:Y?null:S.firstChild?n.call(S.childNodes):null,V,!$&&P?P:Y?Y.__e:S.firstChild,$),W(V,k)}n=f.slice,r={__e:function(k,S){for(var P,$,Y;S=S.__;)if((P=S.__c)&&!P.__)try{if(($=P.constructor)&&$.getDerivedStateFromError!=null&&(P.setState($.getDerivedStateFromError(k)),Y=P.__d),P.componentDidCatch!=null&&(P.componentDidCatch(k),Y=P.__d),Y)return P.__E=P}catch(V){k=V}throw k}},o=0,i=function(k){return k!=null&&k.constructor===void 0},h.prototype.setState=function(k,S){var P;P=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof k=="function"&&(k=k(p({},P),this.props)),k&&p(P,k),k!=null&&this.__v&&(S&&this.__h.push(S),D(this))},h.prototype.forceUpdate=function(k){this.__v&&(this.__e=!0,k&&this.__h.push(k),D(this))},h.prototype.render=m,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0,l=0,e.Component=h,e.Fragment=m,e.cloneElement=function(k,S,P){var $,Y,V,at=p({},k.props);for(V in S)V=="key"?$=S[V]:V=="ref"?Y=S[V]:at[V]=S[V];return arguments.length>2&&(at.children=arguments.length>3?n.call(arguments,2):P),g(k.type,at,$||k.key,Y||k.ref,null)},e.createContext=function(k,S){var P={__c:S="__cC"+l++,__:k,Consumer:function($,Y){return $.children(Y)},Provider:function($){var Y,V;return this.getChildContext||(Y=[],(V={})[S]=this,this.getChildContext=function(){return V},this.shouldComponentUpdate=function(at){this.props.value!==at.value&&Y.some(D)},this.sub=function(at){Y.push(at);var vt=at.componentWillUnmount;at.componentWillUnmount=function(){Y.splice(Y.indexOf(at),1),vt&&vt.call(at)}}),$.children}};return P.Provider.__=P.Consumer.contextType=P},e.createElement=y,e.createRef=function(){return{current:null}},e.h=y,e.hydrate=function k(S,P){ut(S,P,k)},e.isValidElement=i,e.options=r,e.render=ut,e.toChildArray=function k(S,P){return P=P||[],S==null||typeof S=="boolean"||(Array.isArray(S)?S.some(function($){k($,P)}):P.push(S)),P}}),fY=function(t,e){return e===void 0&&(e=document),typeof t=="string"?e.querySelector(t):((n=t)==null?void 0:n.nodeType)===Node.ELEMENT_NODE?t:null;var n},V5=class{constructor(t,e){e===void 0&&(e={}),this.uppy=t,this.opts=e}getPluginState(){const{plugins:t}=this.uppy.getState();return t[this.id]||{}}setPluginState(t){const{plugins:e}=this.uppy.getState();this.uppy.setState({plugins:Zt(Z({},e),{[this.id]:Z(Z({},e[this.id]),t)})})}setOptions(t){this.opts=Z(Z({},this.opts),t),this.setPluginState(),this.i18nInit()}i18nInit(){const t=new jj([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function r7(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var dY=0;function pY(t){return"__private_"+dY+++"_"+t}const{render:o7}=cY;var $c=pY("updateUI");class U5 extends V5{constructor(){super(...arguments),Object.defineProperty(this,$c,{writable:!0,value:void 0})}mount(e,n){const r=n.id,o=fY(e);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return r7(this,$c)[$c]=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)&&(o7(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${r} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),o7(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof e=="object"&&e instanceof U5)i=e;else if(typeof e=="function"){const u=e;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${r} to ${i.id}`),this.parent=i,this.el=i.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let a=`Invalid target option given to ${r}.`;throw a+=typeof e=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(e){var n,r;this.el!=null&&((n=(r=r7(this,$c))[$c])==null||n.call(r,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var hY=U5;const{debugLogger:gY}=Rj;var Yf=Vj,vY=Vj,yY=hY,mY=V5,bY=gY;Yf.Uppy=vY,Yf.UIPlugin=yY,Yf.BasePlugin=mY,Yf.debugLogger=bY;class wY extends Error{constructor(e,n){n===void 0&&(n=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=n}}var W5=wY,Im=function(){return fetch(...arguments).catch(t=>{throw t.name==="AbortError"?t:new W5(t)})};class EY extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Rh,Di,co,Ci,i7,DY=EY;function lo(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var CY=0;function Lm(t){return"__private_"+CY+++"_"+t}function Rm(t){return Ry(this,null,function*(){if(t.status===401)throw new DY;const e=t.json();if(t.status<200||t.status>300){let n=`Failed request with status: ${t.status}. ${t.statusText}`;try{const r=yield e;n=r.message?`${n} message: ${r.message}`:n,n=r.requestId?`${n} request-Id: ${r.requestId}`:n}finally{throw new Error(n)}}return e})}var Mm=(Di=Lm("getPostResponseFunc"),co=Lm("getUrl"),Ci=Lm("errorHandler"),i7=Rh=class Uj{constructor(e,n){Object.defineProperty(this,Ci,{value:SY}),Object.defineProperty(this,co,{value:xY}),Object.defineProperty(this,Di,{writable:!0,value:r=>o=>r?o:this.onReceiveResponse(o)}),this.uppy=e,this.opts=n,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),n=this.opts.companionUrl;return(e&&e[n]?e[n]:n).replace(/\/$/,"")}headers(){const e=this.opts.companionHeaders||{};return Promise.resolve(Z(Z({},Uj.defaultHeaders),e))}onReceiveResponse(e){const n=this.uppy.getState().companion||{},r=this.opts.companionUrl,{headers:o}=e;return o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:Zt(Z({},n),{[r]:o.get("i-am")})}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(lo(this,co)[co](e),{method:"OPTIONS"}).then(n=>(n.headers.has("access-control-allow-headers")&&(this.allowedHeaders=n.headers.get("access-control-allow-headers").split(",").map(r=>r.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(n=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${n}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then(n=>{let[r,o]=n;return Object.keys(o).forEach(i=>{r.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(e,n){return this.preflightAndHeaders(e).then(r=>Im(lo(this,co)[co](e),{method:"get",headers:r,credentials:this.opts.companionCookiesRule||"same-origin"})).then(lo(this,Di)[Di](n)).then(Rm).catch(lo(this,Ci)[Ci]("get",e))}post(e,n,r){const o="post";return this.preflightAndHeaders(e).then(i=>Im(lo(this,co)[co](e),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(n)})).then(lo(this,Di)[Di](r)).then(Rm).catch(lo(this,Ci)[Ci](o,e))}delete(e,n,r){const o="delete";return this.preflightAndHeaders(e).then(i=>Im(`${this.hostname}/${e}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:n?JSON.stringify(n):null})).then(lo(this,Di)[Di](r)).then(Rm).catch(lo(this,Ci)[Ci](o,e))}},Rh.VERSION="2.0.4",Rh.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Rh.VERSION}`},i7);function xY(t){return/^(https?:|)\/\//.test(t)?t:`${this.hostname}/${t}`}function SY(t,e){return n=>{var r;if((r=n)==null||!r.isAuthError){const o=new Error(`Could not ${t} ${lo(this,co)[co](e)}`);o.cause=n,n=o}return Promise.reject(n)}}var AY={setItem:(t,e)=>new Promise(n=>{localStorage.setItem(t,e),n()}),getItem:t=>Promise.resolve(localStorage.getItem(t)),removeItem:t=>new Promise(e=>{localStorage.removeItem(t),e()})},so,xi,gr,Dn,Mh;let a7,u7;function Ve(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var OY=0;function Hc(t){return"__private_"+OY+++"_"+t}var kY=(so=Hc("queued"),xi=Hc("emitter"),gr=Hc("isOpen"),Dn=Hc("socket"),Mh=Hc("handleMessage"),a7=Symbol.for("uppy test: getSocket"),u7=Symbol.for("uppy test: getQueued"),class{constructor(t){Object.defineProperty(this,so,{writable:!0,value:[]}),Object.defineProperty(this,xi,{writable:!0,value:Nj()}),Object.defineProperty(this,gr,{writable:!0,value:!1}),Object.defineProperty(this,Dn,{writable:!0,value:void 0}),Object.defineProperty(this,Mh,{writable:!0,value:e=>{try{const n=JSON.parse(e.data);this.emit(n.action,n.payload)}catch(n){console.log(n)}}}),this.opts=t,t&&t.autoOpen===!1||this.open()}get isOpen(){return Ve(this,gr)[gr]}[a7](){return Ve(this,Dn)[Dn]}[u7](){return Ve(this,so)[so]}open(){Ve(this,Dn)[Dn]=new WebSocket(this.opts.target),Ve(this,Dn)[Dn].onopen=()=>{for(Ve(this,gr)[gr]=!0;Ve(this,so)[so].length>0&&Ve(this,gr)[gr];){const t=Ve(this,so)[so].shift();this.send(t.action,t.payload)}},Ve(this,Dn)[Dn].onclose=()=>{Ve(this,gr)[gr]=!1},Ve(this,Dn)[Dn].onmessage=Ve(this,Mh)[Mh]}close(){var t;(t=Ve(this,Dn)[Dn])==null||t.close()}send(t,e){Ve(this,gr)[gr]?Ve(this,Dn)[Dn].send(JSON.stringify({action:t,payload:e})):Ve(this,so)[so].push({action:t,payload:e})}on(t,e){Ve(this,xi)[xi].on(t,e)}emit(t,e){Ve(this,xi)[xi].emit(t,e)}once(t,e){Ve(this,xi)[xi].once(t,e)}}),BY={RequestClient:Mm,Provider:class extends Mm{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(t=>{let[e,n]=t;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),Z(Z({},e),r)})}onReceiveResponse(t){t=super.onReceiveResponse(t);const e=this.uppy.getPlugin(this.pluginId),n=e.getPluginState().authenticated?t.status!==401:t.status<400;return e.setPluginState({authenticated:n}),t}setAuthToken(t){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,t)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(t){return t===void 0&&(t={}),this.preAuthToken&&(t.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(t)}`}fileUrl(t){return`${this.hostname}/${this.id}/get/${t}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(t=>{this.preAuthToken=t.token}).catch(t=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${t}`,"warning")}):Promise.resolve()}list(t){return this.get(`${this.id}/list/${t||""}`)}logout(){return this.get(`${this.id}/logout`).then(t=>Promise.all([t,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(t=>{let[e]=t;return e})}static initPlugin(t,e,n){if(t.type="acquirer",t.files=[],n&&(t.opts=Z(Z({},n),e)),e.serverUrl||e.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(e.companionAllowedHosts){const r=e.companionAllowedHosts;if(!(typeof r=="string"||Array.isArray(r)||r instanceof RegExp))throw new TypeError(`${t.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);t.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(e.companionUrl)?t.opts.companionAllowedHosts=`https://${e.companionUrl.replace(/^\/\//,"")}`:t.opts.companionAllowedHosts=new URL(e.companionUrl).origin;t.storage=t.opts.storage||AY}},SearchProvider:class extends Mm{constructor(t,e){super(t,e),this.provider=e.provider,this.id=this.provider,this.name=this.opts.name||(n=>n.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(t){return`${this.hostname}/search/${this.id}/get/${t}`}search(t,e){return e=e?`&${e}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(t)}${e}`)}},Socket:kY},Si,Fs,FY=Xu(function(t,e,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=e;r&&(t.uppy.log(`Upload progress: ${r}`),t.uppy.emit("upload-progress",n,{uploader:t,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function Vc(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var TY=0;function s7(t){return"__private_"+TY+++"_"+t}var l7=(Si=s7("emitter"),Fs=s7("events"),class{constructor(t){Object.defineProperty(this,Si,{writable:!0,value:void 0}),Object.defineProperty(this,Fs,{writable:!0,value:[]}),Vc(this,Si)[Si]=t}on(t,e){return Vc(this,Fs)[Fs].push([t,e]),Vc(this,Si)[Si].on(t,e)}remove(){for(const[t,e]of Vc(this,Fs)[Fs].splice(0))Vc(this,Si)[Si].off(t,e)}});function vr(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var _Y=0;function R1(t){return"__private_"+_Y+++"_"+t}var qo=R1("aliveTimer"),Ya=R1("isDone"),Uc=R1("onTimedOut"),Xa=R1("timeout"),c7=class{constructor(t,e){Object.defineProperty(this,qo,{writable:!0,value:void 0}),Object.defineProperty(this,Ya,{writable:!0,value:!1}),Object.defineProperty(this,Uc,{writable:!0,value:void 0}),Object.defineProperty(this,Xa,{writable:!0,value:void 0}),vr(this,Xa)[Xa]=t,vr(this,Uc)[Uc]=e}progress(){vr(this,Ya)[Ya]||vr(this,Xa)[Xa]>0&&(clearTimeout(vr(this,qo)[qo]),vr(this,qo)[qo]=setTimeout(vr(this,Uc)[Uc],vr(this,Xa)[Xa]))}done(){vr(this,Ya)[Ya]||(clearTimeout(vr(this,qo)[qo]),vr(this,qo)[qo]=null,vr(this,Ya)[Ya]=!0)}};function Ge(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var PY=0;function ps(t){return"__private_"+PY+++"_"+t}function jY(){return new Error("Cancelled")}var Qn=ps("activeRequests"),jn=ps("queuedHandlers"),ud=ps("call"),Xf=ps("queueNext"),fE=ps("next"),zm=ps("queue"),dE=ps("dequeue");function NY(t){Ge(this,Qn)[Qn]+=1;let e,n=!1;try{e=t()}catch(r){throw Ge(this,Qn)[Qn]-=1,r}return{abort:()=>{n||(n=!0,Ge(this,Qn)[Qn]-=1,e(),Ge(this,Xf)[Xf]())},done:()=>{n||(n=!0,Ge(this,Qn)[Qn]-=1,Ge(this,Xf)[Xf]())}}}function IY(){queueMicrotask(()=>Ge(this,fE)[fE]())}function LY(){if(Ge(this,Qn)[Qn]>=this.limit||Ge(this,jn)[jn].length===0)return;const t=Ge(this,jn)[jn].shift(),e=Ge(this,ud)[ud](t.fn);t.abort=e.abort,t.done=e.done}function RY(t,e){e===void 0&&(e={});const n={fn:t,priority:e.priority||0,abort:()=>{Ge(this,dE)[dE](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Ge(this,jn)[jn].findIndex(o=>n.priority>o.priority);return r===-1?Ge(this,jn)[jn].push(n):Ge(this,jn)[jn].splice(r,0,n),n}function MY(t){const e=Ge(this,jn)[jn].indexOf(t);e!==-1&&Ge(this,jn)[jn].splice(e,1)}var zY={RateLimitedQueue:class{constructor(t){Object.defineProperty(this,dE,{value:MY}),Object.defineProperty(this,zm,{value:RY}),Object.defineProperty(this,fE,{value:LY}),Object.defineProperty(this,Xf,{value:IY}),Object.defineProperty(this,ud,{value:NY}),Object.defineProperty(this,Qn,{writable:!0,value:0}),Object.defineProperty(this,jn,{writable:!0,value:[]}),this.limit=typeof t!="number"||t===0?1/0:t}run(t,e){return Ge(this,Qn)[Qn]<this.limit?Ge(this,ud)[ud](t):Ge(this,zm)[zm](t,e)}wrapPromiseFunction(t,e){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=n.run(()=>{let c,f;try{f=Promise.resolve(t(...o))}catch(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=jY()}},e)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},f7,d7,Wj=function(t){return!!t&&(t.readyState!==0&&t.readyState!==4||t.status===0)},$Y={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:HY}=Mj,{Provider:VY,RequestClient:UY,Socket:WY}=BY,{RateLimitedQueue:GY,internalRateLimitedQueue:$m}=zY;function p7(t,e){let n=e;return n||(n=new Error("Upload error")),typeof n=="string"&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),Wj(t)?(n=new W5(n,t),n):(n.request=t,n)}function h7(t){return t.data.slice(0,t.data.size,t.meta.type)}var qY=(d7=f7=class extends V5{constructor(t,e){super(t,e),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=$Y;const n={formData:!0,fieldName:e.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(r){let o={};try{o=JSON.parse(r)}catch(i){t.log(i)}return o},getResponseError(r,o){let i=new Error("Upload error");return Wj(o)&&(i=new W5(i,o)),i},validateStatus:r=>r>=200&&r<300};if(this.opts=Z(Z({},n),e),this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),$m in this.opts?this.requests=this.opts[$m]:this.requests=new GY(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(t){const e=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r=Zt(Z(Z(Z({},this.opts),e||{}),t.xhrUpload||{}),{headers:{}});return typeof n=="function"?r.headers=n(t):Object.assign(r.headers,this.opts.headers),e&&Object.assign(r.headers,e.headers),t.xhrUpload&&Object.assign(r.headers,t.xhrUpload.headers),r}addMetadata(t,e,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(e)).forEach(r=>{t.append(r,e[r])})}createFormDataUpload(t,e){const n=new FormData;this.addMetadata(n,t.meta,e);const r=h7(t);return t.name?n.append(e.fieldName,r,t.meta.name):n.append(e.fieldName,r),n}createBundledUpload(t,e){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,e),t.forEach(o=>{const i=this.getOptions(o),a=h7(o);o.name?n.append(i.fieldName,a,o.name):n.append(i.fieldName,a)}),n}upload(t,e,n){const r=this.getOptions(t);return this.uppy.log(`uploading ${e} of ${n}`),new Promise((o,i)=>{this.uppy.emit("upload-started",t);const a=r.formData?this.createFormDataUpload(t,r):t.data,u=new XMLHttpRequest;this.uploaderEvents[t.id]=new l7(this.uppy);const s=new c7(r.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",t,f),i(f)}),l=HY();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",t,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r.validateStatus(f.target.status,u.responseText,u)){const y=r.getResponseData(u.responseText,u),g=y[r.responseUrlFieldName],m={status:f.target.status,body:y,uploadURL:g};return this.uppy.emit("upload-success",t,m),g&&this.uppy.log(`Download ${t.name} from ${g}`),o(t)}const d=r.getResponseData(u.responseText,u),p=p7(u,r.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",t,p,v),i(p)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null);const f=p7(u,r.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",t,f),i(f)}),u.open(r.method.toUpperCase(),r.endpoint,!0),u.withCredentials=r.withCredentials,r.responseType!==""&&(u.responseType=r.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",t);const f=this.getOptions(t);return Object.keys(f.headers).forEach(d=>{u.setRequestHeader(d,f.headers[d])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(t.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(t.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(t){const e=this.getOptions(t);return new Promise((n,r)=>{this.uppy.emit("upload-started",t);const o={};(Array.isArray(e.metaFields)?e.metaFields:Object.keys(t.meta)).forEach(i=>{o[i]=t.meta[i]}),new(t.remote.providerOptions.provider?VY:UY)(this.uppy,t.remote.providerOptions).post(t.remote.url,Zt(Z({},t.remote.body),{endpoint:e.endpoint,size:t.data.size,fieldname:e.fieldName,metadata:o,httpMethod:e.method,useFormData:e.formData,headers:e.headers})).then(i=>{const{token:a}=i,u=function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`}(t.remote.companionUrl),s=new WY({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[t.id]=new l7(this.uppy),this.onFileRemove(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was removed`)}),this.onCancelAll(t.id,()=>{s.send("cancel",{}),l.abort(),n(`upload ${t.id} was canceled`)}),this.onRetry(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(t.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>FY(this,c,t)),s.on("success",c=>{const f=e.getResponseData(c.response.responseText,c.response),d=f[e.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",t,p),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),n()}),s.on("error",c=>{const f=c.response,d=f?e.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",t,d),l.done(),this.uploaderEvents[t.id]&&(this.uploaderEvents[t.id].remove(),this.uploaderEvents[t.id]=null),r(d)});const l=this.requests.run(()=>(s.open(),t.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",t,i),r(i)})})}uploadBundle(t){return new Promise((e,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(t,Z(Z({},this.opts),i||{})),u=new XMLHttpRequest,s=new c7(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),n(c)}),l=c=>{t.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&t.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return t.forEach(v=>{this.uppy.emit("upload-success",v,p)}),e()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),n(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),n(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),t.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(t){const e=t.map((n,r)=>{const o=parseInt(r,10)+1,i=t.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?this.uploadRemote(n,o,i):this.upload(n,o,i)});return function(n){const r=[],o=[];function i(u){r.push(u)}function a(u){o.push(u)}return Promise.all(n.map(u=>u.then(i,a))).then(()=>({successful:r,failed:o}))}(e)}onFileRemove(t,e){this.uploaderEvents[t].on("file-removed",n=>{t===n.id&&e(n.id)})}onRetry(t,e){this.uploaderEvents[t].on("upload-retry",n=>{t===n&&e()})}onRetryAll(t,e){this.uploaderEvents[t].on("retry-all",()=>{this.uppy.getFile(t)&&e()})}onCancelAll(t,e){this.uploaderEvents[t].on("cancel-all",()=>{this.uppy.getFile(t)&&e()})}handleUpload(t){if(t.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[$m]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const e=t.map(n=>this.uppy.getFile(n));if(this.opts.bundle){if(e.some(n=>n.isRemote))throw new Error("Cant upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(e)}return this.uploadFiles(e).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:Zt(Z({},t),{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:t}=this.uppy.getState();this.uppy.setState({capabilities:Zt(Z({},t),{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)}},f7.VERSION="2.0.6",d7),g7=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Hp(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ai,W0,zh=function(t){return t&&t.Math==Math&&t},X=zh(typeof globalThis=="object"&&globalThis)||zh(typeof window=="object"&&window)||zh(typeof self=="object"&&self)||zh(typeof g7=="object"&&g7)||function(){return this}()||Function("return this")(),KY=Object.defineProperty,G5=function(t,e){try{KY(X,t,{value:e,configurable:!0,writable:!0})}catch(n){X[t]=e}return e},ia=X["__core-js_shared__"]||G5("__core-js_shared__",{}),q5=Hp(function(t){(t.exports=function(e,n){return ia[e]||(ia[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Gj=Function.prototype,pE=Gj.bind,hE=Gj.call,YY=pE&&pE.bind(hE),ht=pE?function(t){return t&&YY(hE,t)}:function(t){return t&&function(){return hE.apply(t,arguments)}},XY=X.TypeError,Br=function(t){if(t==null)throw XY("Can't call method on "+t);return t},ZY=X.Object,Ia=function(t){return ZY(Br(t))},JY=ht({}.hasOwnProperty),Re=Object.hasOwn||function(t,e){return JY(Ia(t),e)},QY=0,tX=Math.random(),eX=ht(1 .toString),K5=function(t){return"Symbol("+(t===void 0?"":t)+")_"+eX(++QY+tX,36)},ie=function(t){return typeof t=="function"},nX=function(t){return ie(t)?t:void 0},hs=function(t,e){return arguments.length<2?nX(X[t]):X[t]&&X[t][e]},vl=hs("navigator","userAgent")||"",v7=X.process,y7=X.Deno,m7=v7&&v7.versions||y7&&y7.version,b7=m7&&m7.v8;b7&&(W0=(Ai=b7.split("."))[0]>0&&Ai[0]<4?1:+(Ai[0]+Ai[1])),!W0&&vl&&(!(Ai=vl.match(/Edge\/(\d+)/))||Ai[1]>=74)&&(Ai=vl.match(/Chrome\/(\d+)/))&&(W0=+Ai[1]);var $d=W0,Qt=function(t){try{return!!t()}catch(e){return!0}},gE=!!Object.getOwnPropertySymbols&&!Qt(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&$d&&$d<41}),Y5=gE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Wc=q5("wks"),ku=X.Symbol,w7=ku&&ku.for,rX=Y5?ku:ku&&ku.withoutSetter||K5,Ae=function(t){if(!Re(Wc,t)||!gE&&typeof Wc[t]!="string"){var e="Symbol."+t;gE&&Re(ku,t)?Wc[t]=ku[t]:Wc[t]=Y5&&w7?w7(e):rX(e)}return Wc[t]},qj={};qj[Ae("toStringTag")]="z";var X5=String(qj)==="[object z]",an=!Qt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pe=function(t){return typeof t=="object"?t!==null:ie(t)},vE=X.document,oX=pe(vE)&&pe(vE.createElement),Hd=function(t){return oX?vE.createElement(t):{}},Kj=!an&&!Qt(function(){return Object.defineProperty(Hd("div"),"a",{get:function(){return 7}}).a!=7}),iX=X.String,aX=X.TypeError,Me=function(t){if(pe(t))return t;throw aX(iX(t)+" is not an object")},Gc=Function.prototype.call,Kt=Gc.bind?Gc.bind(Gc):function(){return Gc.apply(Gc,arguments)},Zu=ht({}.isPrototypeOf),uX=X.Object,Hm=Y5?function(t){return typeof t=="symbol"}:function(t){var e=hs("Symbol");return ie(e)&&Zu(e.prototype,uX(t))},sX=X.String,M1=function(t){try{return sX(t)}catch(e){return"Object"}},lX=X.TypeError,Sa=function(t){if(ie(t))return t;throw lX(M1(t)+" is not a function")},Ju=function(t,e){var n=t[e];return n==null?void 0:Sa(n)},cX=X.TypeError,fX=X.TypeError,dX=Ae("toPrimitive"),Z5=function(t){var e=function(n,r){if(!pe(n)||Hm(n))return n;var o,i=Ju(n,dX);if(i){if(o=Kt(i,n,r),!pe(o)||Hm(o))return o;throw fX("Can't convert object to primitive value")}return function(a,u){var s,l;if(ie(s=a.toString)&&!pe(l=Kt(s,a))||ie(s=a.valueOf)&&!pe(l=Kt(s,a)))return l;throw cX("Can't convert object to primitive value")}(n)}(t,"string");return Hm(e)?e:e+""},pX=X.TypeError,E7=Object.defineProperty,no={f:an?E7:function(t,e,n){if(Me(t),e=Z5(e),Me(n),Kj)try{return E7(t,e,n)}catch(r){}if("get"in n||"set"in n)throw pX("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},z1=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Yr=an?function(t,e,n){return no.f(t,e,z1(1,n))}:function(t,e,n){return t[e]=n,t},hX=ht(Function.toString);ie(ia.inspectSource)||(ia.inspectSource=function(t){return hX(t)});var Zg,sd,Jg,$1=ia.inspectSource,D7=X.WeakMap,Yj=ie(D7)&&/native code/.test($1(D7)),C7=q5("keys"),J5=function(t){return C7[t]||(C7[t]=K5(t))},H1={},yE=X.TypeError,gX=X.WeakMap;if(Yj||ia.state){var Za=ia.state||(ia.state=new gX),vX=ht(Za.get),x7=ht(Za.has),yX=ht(Za.set);Zg=function(t,e){if(x7(Za,t))throw new yE("Object already initialized");return e.facade=t,yX(Za,t,e),e},sd=function(t){return vX(Za,t)||{}},Jg=function(t){return x7(Za,t)}}else{var Ts=J5("state");H1[Ts]=!0,Zg=function(t,e){if(Re(t,Ts))throw new yE("Object already initialized");return e.facade=t,Yr(t,Ts,e),e},sd=function(t){return Re(t,Ts)?t[Ts]:{}},Jg=function(t){return Re(t,Ts)}}var An={set:Zg,get:sd,has:Jg,enforce:function(t){return Jg(t)?sd(t):Zg(t,{})},getterFor:function(t){return function(e){var n;if(!pe(e)||(n=sd(e)).type!==t)throw yE("Incompatible receiver, "+t+" required");return n}}},Xj=Function.prototype,mX=an&&Object.getOwnPropertyDescriptor,Vm=Re(Xj,"name"),sc={EXISTS:Vm,PROPER:Vm&&function(){}.name==="something",CONFIGURABLE:Vm&&(!an||an&&mX(Xj,"name").configurable)},Wn=Hp(function(t){var e=sc.CONFIGURABLE,n=An.get,r=An.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ie(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Re(u,"name")||e&&u.name!==p)&&Yr(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:Yr(i,a,u)):f?i[a]=u:G5(a,u)})(Function.prototype,"toString",function(){return ie(this)&&n(this).source||$1(this)})}),bX=ht({}.toString),wX=ht("".slice),Xr=function(t){return wX(bX(t),8,-1)},EX=Ae("toStringTag"),DX=X.Object,CX=Xr(function(){return arguments}())=="Arguments",V1=X5?Xr:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=DX(t),EX))=="string"?n:CX?Xr(e):(r=Xr(e))=="Object"&&ie(e.callee)?"Arguments":r},xX=X5?{}.toString:function(){return"[object "+V1(this)+"]"};X5||Wn(Object.prototype,"toString",xX,{unsafe:!0});var Qg={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},Um=Hd("span").classList,S7=Um&&Um.constructor&&Um.constructor.prototype,Zj=S7===Object.prototype?void 0:S7,A7=ht(ht.bind),Qu=function(t,e){return Sa(t),e===void 0?t:A7?A7(t,e):function(){return t.apply(e,arguments)}},Wm=X.Object,SX=ht("".split),U1=Qt(function(){return!Wm("z").propertyIsEnumerable(0)})?function(t){return Xr(t)=="String"?SX(t,""):Wm(t)}:Wm,AX=Math.ceil,OX=Math.floor,Vp=function(t){var e=+t;return e!=e||e===0?0:(e>0?OX:AX)(e)},kX=Math.min,lc=function(t){return t>0?kX(Vp(t),9007199254740991):0},gs=function(t){return lc(t.length)},tv=Array.isArray||function(t){return Xr(t)=="Array"},Jj=function(){},BX=[],Qj=hs("Reflect","construct"),Q5=/^\s*(?:class|function)\b/,FX=ht(Q5.exec),TX=!Q5.exec(Jj),qc=function(t){if(!ie(t))return!1;try{return Qj(Jj,BX,t),!0}catch(e){return!1}},W1=!Qj||Qt(function(){var t;return qc(qc.call)||!qc(Object)||!qc(function(){t=!0})||t})?function(t){if(!ie(t))return!1;switch(V1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return TX||!!FX(Q5,$1(t))}:qc,_X=Ae("species"),O7=X.Array,tN=function(t,e){return new(function(n){var r;return tv(n)&&(r=n.constructor,(W1(r)&&(r===O7||tv(r.prototype))||pe(r)&&(r=r[_X])===null)&&(r=void 0)),r===void 0?O7:r}(t))(e===0?0:e)},k7=ht([].push),Oi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Ia(s),y=U1(v),g=Qu(l,c),m=gs(y),h=0,b=f||tN,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:k7(w,d)}else switch(t){case 4:return!1;case 7:k7(w,d)}return i?-1:r||o?o:w}},cc={forEach:Oi(0),map:Oi(1),filter:Oi(2),some:Oi(3),every:Oi(4),find:Oi(5),findIndex:Oi(6),filterReject:Oi(7)},eN=function(t,e){var n=[][t];return!!n&&Qt(function(){n.call(null,e||function(){throw 1},1)})},PX=cc.forEach,Gm=eN("forEach")?[].forEach:function(t){return PX(this,t,arguments.length>1?arguments[1]:void 0)},nN=function(t){if(t&&t.forEach!==Gm)try{Yr(t,"forEach",Gm)}catch(e){t.forEach=Gm}};for(var qm in Qg)Qg[qm]&&nN(X[qm]&&X[qm].prototype);nN(Zj);var B7={}.propertyIsEnumerable,F7=Object.getOwnPropertyDescriptor,jX=F7&&!B7.call({1:2},1)?function(t){var e=F7(this,t);return!!e&&e.enumerable}:B7,rN={f:jX},La=function(t){return U1(Br(t))},T7=Object.getOwnPropertyDescriptor,Up={f:an?T7:function(t,e){if(t=La(t),e=Z5(e),Kj)try{return T7(t,e)}catch(n){}if(Re(t,e))return z1(!Kt(rN.f,t,e),t[e])}},NX=Math.max,IX=Math.min,Hl=function(t,e){var n=Vp(t);return n<0?NX(n+e,0):IX(n,e)},_7=function(t){return function(e,n,r){var o,i=La(e),a=gs(i),u=Hl(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},oN={includes:_7(!0),indexOf:_7(!1)},LX=oN.indexOf,P7=ht([].push),iN=function(t,e){var n,r=La(t),o=0,i=[];for(n in r)!Re(H1,n)&&Re(r,n)&&P7(i,n);for(;e.length>o;)Re(r,n=e[o++])&&(~LX(i,n)||P7(i,n));return i},ev=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],RX=ev.concat("length","prototype"),Vd={f:Object.getOwnPropertyNames||function(t){return iN(t,RX)}},aN={f:Object.getOwnPropertySymbols},MX=ht([].concat),zX=hs("Reflect","ownKeys")||function(t){var e=Vd.f(Me(t)),n=aN.f;return n?MX(e,n(t)):e},$X=function(t,e){for(var n=zX(e),r=no.f,o=Up.f,i=0;i<n.length;i++){var a=n[i];Re(t,a)||r(t,a,o(e,a))}},HX=/#|\.prototype\./,Wp=function(t,e){var n=UX[VX(t)];return n==GX||n!=WX&&(ie(e)?Qt(e):!!e)},VX=Wp.normalize=function(t){return String(t).replace(HX,".").toLowerCase()},UX=Wp.data={},WX=Wp.NATIVE="N",GX=Wp.POLYFILL="P",Ud=Wp,qX=Up.f,xe=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?X:l?X[u]||G5(u,{}):(X[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=qX(n,r))&&a.value:n[r],!Ud(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;$X(i,o)}(t.sham||o&&o.sham)&&Yr(i,"sham",!0),Wn(n,r,i,t)}},yl=Object.keys||function(t){return iN(t,ev)},KX=Qt(function(){yl(1)});/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function j7(t){return Object.prototype.toString.call(t)==="[object Object]"}xe({target:"Object",stat:!0,forced:KX},{keys:function(t){return yl(Ia(t))}});var YX={isHistory(t){return j7(e=t)!==!1&&((n=e.constructor)===void 0||j7(r=n.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(t.redos)&&Array.isArray(t.undos)&&(t.redos.length===0||Ji.isOperationList(t.redos[0]))&&(t.undos.length===0||Ji.isOperationList(t.undos[0]));var e,n,r}},Km=new WeakMap,Ym=new WeakMap,cl={isHistoryEditor:t=>YX.isHistory(t.history)&&E.isEditor(t),isMerging:t=>Ym.get(t),isSaving:t=>Km.get(t),redo(t){t.redo()},undo(t){t.undo()},withoutMerging(t,e){var n=cl.isMerging(t);Ym.set(t,!1),e(),Ym.set(t,n)},withoutSaving(t,e){var n=cl.isSaving(t);Km.set(t,!1),e(),Km.set(t,n)}},XX=X.String,ue=function(t){if(V1(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return XX(t)},tD=function(){var t=Me(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},ZX=sc.PROPER,mE=RegExp.prototype,uN=mE.toString,JX=ht(tD),QX=Qt(function(){return uN.call({source:"a",flags:"b"})!="/a/b"}),tZ=ZX&&uN.name!="toString";(QX||tZ)&&Wn(RegExp.prototype,"toString",function(){var t=Me(this),e=ue(t.source),n=t.flags;return"/"+e+"/"+ue(n===void 0&&Zu(mE,t)&&!("flags"in mE)?JX(t):n)},{unsafe:!0});var $h,eZ=an?Object.defineProperties:function(t,e){Me(t);for(var n,r=La(e),o=yl(e),i=o.length,a=0;i>a;)no.f(t,n=o[a++],r[n]);return t},bE=hs("document","documentElement"),sN=J5("IE_PROTO"),Xm=function(){},lN=function(t){return"<script>"+t+"<\/script>"},N7=function(t){t.write(lN("")),t.close();var e=t.parentWindow.Object;return t=null,e},G0=function(){try{$h=new ActiveXObject("htmlfile")}catch(r){}var t,e;G0=typeof document!="undefined"?document.domain&&$h?N7($h):((e=Hd("iframe")).style.display="none",bE.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(lN("document.F=Object")),t.close(),t.F):N7($h);for(var n=ev.length;n--;)delete G0.prototype[ev[n]];return G0()};H1[sN]=!0;var G1=Object.create||function(t,e){var n;return t!==null?(Xm.prototype=Me(t),n=new Xm,Xm.prototype=null,n[sN]=t):n=G0(),e===void 0?n:eZ(n,e)},wE=Ae("unscopables"),EE=Array.prototype;EE[wE]==null&&no.f(EE,wE,{configurable:!0,value:G1(null)});var ld=function(t){EE[wE][t]=!0},nZ=oN.includes;xe({target:"Array",proto:!0},{includes:function(t){return nZ(this,t,arguments.length>1?arguments[1]:void 0)}}),ld("includes");var rZ=Ae("match"),eD=function(t){var e;return pe(t)&&((e=t[rZ])!==void 0?!!e:Xr(t)=="RegExp")},oZ=X.TypeError,nD=function(t){if(eD(t))throw oZ("The method doesn't accept regular expressions");return t},iZ=Ae("match"),rD=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[iZ]=!1,"/./"[t](e)}catch(r){}}return!1},aZ=ht("".indexOf);xe({target:"String",proto:!0,forced:!rD("includes")},{includes:function(t){return!!~aZ(ue(Br(this)),ue(nD(t)),arguments.length>1?arguments[1]:void 0)}});var uZ=/"/g,sZ=ht("".replace);xe({target:"String",proto:!0,forced:Qt(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=ue(Br(this)),r="<a",(r+=' name="'+sZ(ue(e),uZ,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var DE=function(t,e,n){var r,o;Me(t);try{if(!(r=Ju(t,"return"))){if(e==="throw")throw n;return n}r=Kt(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Me(r),n},lZ=function(t,e,n,r){try{return r?e(Me(n)[0],n[1]):e(n)}catch(o){DE(t,"throw",o)}},Vl={},cZ=Ae("iterator"),fZ=Array.prototype,cN=function(t){return t!==void 0&&(Vl.Array===t||fZ[cZ]===t)},Wd=function(t,e,n){var r=Z5(e);r in t?no.f(t,r,z1(0,n)):t[r]=n},dZ=Ae("iterator"),oD=function(t){if(t!=null)return Ju(t,dZ)||Ju(t,"@@iterator")||Vl[V1(t)]},pZ=X.TypeError,fN=function(t,e){var n=arguments.length<2?oD(t):e;if(Sa(n))return Me(Kt(n,t));throw pZ(M1(t)+" is not iterable")},I7=X.Array,dN=Ae("iterator"),pN=!1;try{var hZ=0,L7={next:function(){return{done:!!hZ++}},return:function(){pN=!0}};L7[dN]=function(){return this},Array.from(L7,function(){throw 2})}catch(t){}var iD=function(t,e){if(!pN)return!1;var n=!1;try{var r={};r[dN]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},gZ=!iD(function(t){Array.from(t)});xe({target:"Array",stat:!0,forced:gZ},{from:function(t){var e=Ia(t),n=W1(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=o!==void 0;i&&(o=Qu(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=oD(e),p=0;if(!d||this==I7&&cN(d))for(a=gs(e),u=n?new this(a):I7(a);a>p;p++)f=i?o(e[p],p):e[p],Wd(u,p,f);else for(c=(l=fN(e,d)).next,u=n?new this:[];!(s=Kt(c,l)).done;p++)f=i?lZ(l,o,[s.value,p],!0):s.value,Wd(u,p,f);return u.length=p,u}});var Bu,R7,M7,vZ=ht("".charAt),z7=ht("".charCodeAt),yZ=ht("".slice),$7=function(t){return function(e,n){var r,o,i=ue(Br(e)),a=Vp(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=z7(i,a))<55296||r>56319||a+1===u||(o=z7(i,a+1))<56320||o>57343?t?vZ(i,a):r:t?yZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},hN={codeAt:$7(!1),charAt:$7(!0)},mZ=!Qt(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),H7=J5("IE_PROTO"),CE=X.Object,bZ=CE.prototype,nv=mZ?CE.getPrototypeOf:function(t){var e=Ia(t);if(Re(e,H7))return e[H7];var n=e.constructor;return ie(n)&&e instanceof n?n.prototype:e instanceof CE?bZ:null},xE=Ae("iterator"),gN=!1;[].keys&&("next"in(M7=[].keys())?(R7=nv(nv(M7)))!==Object.prototype&&(Bu=R7):gN=!0);var wZ=Bu==null||Qt(function(){var t={};return Bu[xE].call(t)!==t});wZ&&(Bu={}),ie(Bu[xE])||Wn(Bu,xE,function(){return this});var aD={IteratorPrototype:Bu,BUGGY_SAFARI_ITERATORS:gN},EZ=no.f,V7=Ae("toStringTag"),rv=function(t,e,n){t&&!Re(t=n?t:t.prototype,V7)&&EZ(t,V7,{configurable:!0,value:e})},DZ=aD.IteratorPrototype,CZ=function(){return this},xZ=X.String,SZ=X.TypeError,Ul=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=ht(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Me(r),function(i){if(typeof i=="object"||ie(i))return i;throw SZ("Can't set "+xZ(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),AZ=sc.PROPER,OZ=sc.CONFIGURABLE,U7=aD.IteratorPrototype,Hh=aD.BUGGY_SAFARI_ITERATORS,Kc=Ae("iterator"),kZ=function(){return this},uD=function(t,e,n,r,o,i,a){(function(m,h,b,w){var D=h+" Iterator";m.prototype=G1(DZ,{next:z1(1,b)}),rv(m,D,!1),Vl[D]=CZ})(n,e,r);var u,s,l,c=function(m){if(m===o&&y)return y;if(!Hh&&m in p)return p[m];switch(m){case"keys":case"values":case"entries":return function(){return new n(this,m)}}return function(){return new n(this)}},f=e+" Iterator",d=!1,p=t.prototype,v=p[Kc]||p["@@iterator"]||o&&p[o],y=!Hh&&v||c(o),g=e=="Array"&&p.entries||v;if(g&&(u=nv(g.call(new t)))!==Object.prototype&&u.next&&(nv(u)!==U7&&(Ul?Ul(u,U7):ie(u[Kc])||Wn(u,Kc,kZ)),rv(u,f,!0)),AZ&&o=="values"&&v&&v.name!=="values"&&(OZ?Yr(p,"name","values"):(d=!0,y=function(){return Kt(v,this)})),o)if(s={values:c("values"),keys:i?y:c("keys"),entries:c("entries")},a)for(l in s)(Hh||d||!(l in p))&&Wn(p,l,s[l]);else xe({target:e,proto:!0,forced:Hh||d},s);return p[Kc]!==y&&Wn(p,Kc,y,{name:o}),Vl[e]=y,s},BZ=hN.charAt,FZ=An.set,TZ=An.getterFor("String Iterator");uD(String,"String",function(t){FZ(this,{type:"String Iterator",string:ue(t),index:0})},function(){var t,e=TZ(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=BZ(n,r),e.index+=t.length,{value:t,done:!1})});var Zm,_Z=Up.f,W7=ht("".endsWith),PZ=ht("".slice),jZ=Math.min,vN=rD("endsWith"),NZ=!(vN||(Zm=_Z(String.prototype,"endsWith"),!Zm||Zm.writable));xe({target:"String",proto:!0,forced:!NZ&&!vN},{endsWith:function(t){var e=ue(Br(this));nD(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=n===void 0?r:jZ(lc(n),r),i=ue(t);return W7?W7(e,i,o):PZ(e,o-i.length,o)===i}});var IZ=ht([].join),LZ=U1!=Object,RZ=eN("join",",");xe({target:"Array",proto:!0,forced:LZ||!RZ},{join:function(t){return IZ(La(this),t===void 0?",":t)}});var MZ=Ae("species"),q1=function(t){return $d>=51||!Qt(function(){var e=[];return(e.constructor={})[MZ]=function(){return{foo:1}},e[t](Boolean).foo!==1})},zZ=cc.map,$Z=q1("map");xe({target:"Array",proto:!0,forced:!$Z},{map:function(t){return zZ(this,t,arguments.length>1?arguments[1]:void 0)}});var sD=X.RegExp,SE=Qt(function(){var t=sD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),HZ=SE||Qt(function(){return!sD("a","y").sticky}),K1={BROKEN_CARET:SE||Qt(function(){var t=sD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:HZ,UNSUPPORTED_Y:SE},VZ=X.RegExp,lD=Qt(function(){var t=VZ(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),UZ=X.RegExp,cD=Qt(function(){var t=UZ("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),WZ=An.get,GZ=q5("native-string-replace",String.prototype.replace),ov=RegExp.prototype.exec,AE=ov,qZ=ht("".charAt),KZ=ht("".indexOf),YZ=ht("".replace),Jm=ht("".slice),Qm=function(){var t=/a/,e=/b*/g;return Kt(ov,t,"a"),Kt(ov,e,"a"),t.lastIndex!==0||e.lastIndex!==0}(),G7=K1.BROKEN_CARET,tb=/()??/.exec("")[1]!==void 0;(Qm||tb||G7||lD||cD)&&(AE=function(t){var e,n,r,o,i,a,u,s=this,l=WZ(s),c=ue(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Kt(AE,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=G7&&s.sticky,v=Kt(tD,s),y=s.source,g=0,m=c;if(p&&(v=YZ(v,"y",""),KZ(v,"g")===-1&&(v+="g"),m=Jm(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&qZ(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),tb&&(n=new RegExp("^"+y+"$(?!\\s)",v)),Qm&&(r=s.lastIndex),o=Kt(ov,p?n:s,m),p?o?(o.input=Jm(o.input,g),o[0]=Jm(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Qm&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),tb&&o&&o.length>1&&Kt(GZ,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=G1(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Gd=AE;xe({target:"RegExp",proto:!0,forced:/./.exec!==Gd},{exec:Gd});var fD=Function.prototype,q7=fD.apply,XZ=fD.bind,K7=fD.call,dD=typeof Reflect=="object"&&Reflect.apply||(XZ?K7.bind(q7):function(){return K7.apply(q7,arguments)}),ZZ=Ae("species"),eb=RegExp.prototype,pD=function(t,e,n,r){var o=Ae(t),i=!Qt(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Qt(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[ZZ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=ht(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=ht(l),y=c.exec;return y===Gd||y===eb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Wn(String.prototype,t,s[0]),Wn(eb,o,s[1])}r&&Yr(eb[o],"sham",!0)},JZ=hN.charAt,hD=function(t,e,n){return e+(n?JZ(t,e).length:1)},QZ=Math.floor,nb=ht("".charAt),tJ=ht("".replace),rb=ht("".slice),eJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nJ=/\$([$&'`]|\d{1,2})/g,rJ=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=nJ;return o!==void 0&&(o=Ia(o),s=eJ),tJ(i,s,function(l,c){var f;switch(nb(c,0)){case"$":return"$";case"&":return t;case"`":return rb(e,0,n);case"'":return rb(e,a);case"<":f=o[rb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=QZ(d/10);return p===0?l:p<=u?r[p-1]===void 0?nb(c,1):r[p-1]+nb(c,1):l}f=r[d-1]}return f===void 0?"":f})},oJ=X.TypeError,qd=function(t,e){var n=t.exec;if(ie(n)){var r=Kt(n,t,e);return r!==null&&Me(r),r}if(Xr(t)==="RegExp")return Kt(Gd,t,e);throw oJ("RegExp#exec called on incompatible receiver")},OE=Ae("replace"),iJ=Math.max,aJ=Math.min,uJ=ht([].concat),ob=ht([].push),Y7=ht("".indexOf),X7=ht("".slice),sJ="a".replace(/./,"$0")==="$0",Z7=!!/./[OE]&&/./[OE]("a","$0")==="";pD("replace",function(t,e,n){var r=Z7?"$":"$0";return[function(o,i){var a=Br(this),u=o==null?void 0:Ju(o,OE);return u?Kt(u,o,a,i):Kt(e,ue(a),o,i)},function(o,i){var a=Me(this),u=ue(o);if(typeof i=="string"&&Y7(i,r)===-1&&Y7(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=ie(i);l||(i=ue(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=qd(a,u);if(p===null||(ob(d,p),!c))break;ue(p[0])===""&&(a.lastIndex=hD(u,lc(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=ue((p=d[m])[0]),b=iJ(aJ(Vp(p.index),u.length),0),w=[],D=1;D<p.length;D++)ob(w,(v=p[D])===void 0?v:String(v));var x=p.groups;if(l){var C=uJ([h],w,b,u);x!==void 0&&ob(C,x);var O=ue(dD(i,void 0,C))}else O=rJ(h,u,b,w,x,i);b>=g&&(y+=X7(u,g,b)+O,g=b+h.length)}return y+X7(u,g)}]},!!Qt(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!sJ||Z7);/*! *****************************************************************************
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 kE=function(t,e){return kE=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])},kE(t,e)};function fc(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}kE(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var wr=function(){return wr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wr.apply(this,arguments)};function Er(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function BE(t,e){for(var n=0,r=e.length,o=t.length;n<r;n++,o++)t[o]=e[n];return t}var lJ=0,J7=function(){this.id=""+lJ++},cJ=An.set,fJ=An.getterFor("Array Iterator"),Zf=uD(Array,"Array",function(t,e){cJ(this,{type:"Array Iterator",target:La(t),index:0,kind:e})},function(){var t=fJ(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Vl.Arguments=Vl.Array,ld("keys"),ld("values"),ld("entries");var Wl=function(t,e,n){for(var r in e)Wn(t,r,e[r],n);return t},dJ=X.Array,pJ=Math.max,FE=function(t,e,n){for(var r=gs(t),o=Hl(e,r),i=Hl(n===void 0?r:n,r),a=dJ(pJ(i-o,0)),u=0;o<i;o++,u++)Wd(a,u,t[o]);return a.length=u,a},Q7=Vd.f,t9=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hJ={f:function(t){return t9&&Xr(t)=="Window"?function(e){try{return Q7(e)}catch(n){return FE(t9)}}(t):Q7(La(t))}},e9=Qt(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),Vh=Object.isExtensible,mu=Qt(function(){Vh(1)})||e9?function(t){return!!pe(t)&&(!e9||Xr(t)!="ArrayBuffer")&&(!Vh||Vh(t))}:Vh,gJ=!Qt(function(){return Object.isExtensible(Object.preventExtensions({}))}),Y1=Hp(function(t){var e=no.f,n=!1,r=K5("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Vd.f,s=ht([].splice),l={};l[r]=1,u(l).length&&(Vd.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},xe({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:hJ.f}))},fastKey:function(u,s){if(!pe(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Re(u,r)){if(!mu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Re(u,r)){if(!mu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return gJ&&n&&mu(u)&&!Re(u,r)&&i(u),u}};H1[r]=!0}),vJ=X.TypeError,q0=function(t,e){this.stopped=t,this.result=e},n9=q0.prototype,Kd=function(t,e,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=Qu(e,c),y=function(m){return r&&DE(r,"normal",m),new q0(!0,m)},g=function(m){return f?(Me(m),p?v(m[0],m[1],y):v(m[0],m[1])):p?v(m,y):v(m)};if(d)r=t;else{if(!(o=oD(t)))throw vJ(M1(t)+" is not iterable");if(cN(o)){for(i=0,a=gs(t);a>i;i++)if((u=g(t[i]))&&Zu(n9,u))return u;return new q0(!1)}r=fN(t,o)}for(s=r.next;!(l=Kt(s,r)).done;){try{u=g(l.value)}catch(m){DE(r,"throw",m)}if(typeof u=="object"&&u&&Zu(n9,u))return u}return new q0(!1)},yJ=X.TypeError,X1=function(t,e){if(Zu(e,t))return t;throw yJ("Incorrect invocation")},yN=function(t,e,n){var r,o;return Ul&&ie(r=e.constructor)&&r!==n&&pe(o=r.prototype)&&o!==n.prototype&&Ul(t,o),t},mN=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=X[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=ht(u[g]);Wn(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!pe(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!pe(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!pe(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(Ud(t,!ie(a)||!(o||u.forEach&&!Qt(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),Y1.enable();else if(Ud(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Qt(function(){f.has(1)}),v=iD(function(g){new a(g)}),y=!o&&Qt(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){X1(g,u);var h=yN(new a,g,s);return m!=null&&Kd(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),r&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,xe({global:!0,forced:s!=a},l),rv(s,t),o||n.setStrong(s,t,r),s},Uh=Y1.getWeakData,mJ=An.set,bJ=An.getterFor,wJ=cc.find,EJ=cc.findIndex,DJ=ht([].splice),CJ=0,Wh=function(t){return t.frozen||(t.frozen=new bN)},bN=function(){this.entries=[]},ib=function(t,e){return wJ(t.entries,function(n){return n[0]===e})};bN.prototype={get:function(t){var e=ib(this,t);if(e)return e[1]},has:function(t){return!!ib(this,t)},set:function(t,e){var n=ib(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=EJ(this.entries,function(n){return n[0]===t});return~e&&DJ(this.entries,e,1),!!~e}};var Yc,wN={getConstructor:function(t,e,n,r){var o=t(function(s,l){X1(s,i),mJ(s,{type:e,id:CJ++,frozen:void 0}),l!=null&&Kd(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=bJ(e),u=function(s,l,c){var f=a(s),d=Uh(Me(l),!0);return d===!0?Wh(f).set(l,c):d[f.id]=c,s};return Wl(i,{delete:function(s){var l=a(this);if(!pe(s))return!1;var c=Uh(s);return c===!0?Wh(l).delete(s):c&&Re(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pe(s))return!1;var c=Uh(s);return c===!0?Wh(l).has(s):c&&Re(c,l.id)}}),Wl(i,n?{get:function(s){var l=a(this);if(pe(s)){var c=Uh(s);return c===!0?Wh(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}},Gh=An.enforce,xJ=!X.ActiveXObject&&"ActiveXObject"in X,EN=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},SJ=mN("WeakMap",EN,wN);if(Yj&&xJ){Yc=wN.getConstructor(EN,"WeakMap",!0),Y1.enable();var Xc=SJ.prototype,r9=ht(Xc.delete),qh=ht(Xc.has),o9=ht(Xc.get),i9=ht(Xc.set);Wl(Xc,{delete:function(t){if(pe(t)&&!mu(t)){var e=Gh(this);return e.frozen||(e.frozen=new Yc),r9(this,t)||e.frozen.delete(t)}return r9(this,t)},has:function(t){if(pe(t)&&!mu(t)){var e=Gh(this);return e.frozen||(e.frozen=new Yc),qh(this,t)||e.frozen.has(t)}return qh(this,t)},get:function(t){if(pe(t)&&!mu(t)){var e=Gh(this);return e.frozen||(e.frozen=new Yc),qh(this,t)?o9(this,t):e.frozen.get(t)}return o9(this,t)},set:function(t,e){if(pe(t)&&!mu(t)){var n=Gh(this);n.frozen||(n.frozen=new Yc),qh(this,t)?i9(this,t,e):n.frozen.set(t,e)}else i9(this,t,e);return this}})}var ab=Ae("iterator"),a9=Ae("toStringTag"),ub=Zf.values,DN=function(t,e){if(t){if(t[ab]!==ub)try{Yr(t,ab,ub)}catch(r){t[ab]=ub}if(t[a9]||Yr(t,a9,e),Qg[e]){for(var n in Zf)if(t[n]!==Zf[n])try{Yr(t,n,Zf[n])}catch(r){t[n]=Zf[n]}}}};for(var sb in Qg)DN(X[sb]&&X[sb].prototype,sb);DN(Zj,"DOMTokenList");var TE=new WeakMap,_E=new WeakMap,gD=new WeakMap,Z1=new WeakMap,PE=new WeakMap,iv=new WeakMap,vD=new WeakMap,jE=new WeakMap,K0=new WeakMap,u9=new WeakMap,s9=new WeakMap,l9=new WeakMap,c9=new WeakMap,Yd=new WeakMap,Gl=new WeakMap,yD=new WeakMap,av=new WeakMap,NE=new WeakMap,uv=new WeakMap,Y0=new WeakMap,CN=new WeakMap,Fu=new WeakMap,lb=new WeakMap,f9=new WeakMap,cb=new WeakMap,AJ=cc.find,d9=!0;"find"in[]&&Array(1).find(function(){d9=!1}),xe({target:"Array",proto:!0,forced:d9},{find:function(t){return AJ(this,t,arguments.length>1?arguments[1]:void 0)}}),ld("find"),xe({global:!0},{globalThis:X});const OJ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Wg&&(B.fn.css=Wg),kr&&(B.fn.append=kr),Tl&&(B.fn.addClass=Tl),_l&&(B.fn.removeClass=_l),Pl&&(B.fn.hasClass=Pl),Bo&&(B.fn.on=Bo),xa&&(B.fn.focus=xa),Or&&(B.fn.attr=Or),$g&&(B.fn.removeAttr=$g),Nl&&(B.fn.hide=Nl),Ug&&(B.fn.show=Ug),AA&&(B.fn.offset=AA),Hg&&(B.fn.width=Hg),Vg&&(B.fn.height=Vg),Il&&(B.fn.parent=Il),Kg&&(B.fn.parents=Kg),kA&&(B.fn.is=kA),jl&&(B.fn.dataset=jl),ko&&(B.fn.val=ko),qg&&(B.fn.text=qg),Ca&&(B.fn.html=Ca),Rl&&(B.fn.children=Rl),Ml&&(B.fn.remove=Ml),Ll&&(B.fn.find=Ll),Gg&&(B.fn.each=Gg),zl&&(B.fn.empty=zl);var yo,Cn,mD=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||null},zr=function(t){return ts(t)&&t.nodeType===1},ts=function(t){var e=mD(t);return!!e&&t instanceof e.Node},p9=function(t){var e=t&&t.anchorNode&&mD(t.anchorNode);return!!e&&t instanceof e.Selection},xN=function(t){return ts(t)&&t.nodeType===3},IE=function(t){var e,n,r;return(e=window.document.getElementById(t))!==null&&e!==void 0?e:((r=(n=window.document.activeElement)===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.getElementById(t))||null},SN=function(t,e,n){for(var r,o=t.childNodes,i=o[e],a=e,u=!1,s=!1;(ts(r=i)&&r.nodeType===8||zr(i)&&i.childNodes.length===0||zr(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=e-1,n="backward"):a<0?(s=!0,a=e+1,n="forward"):(i=o[a],e=a,a+=n==="forward"?1:-1);return[i,e]},kJ=function(t,e,n){return Vt(SN(t,e,n),1)[0]},BJ=function t(e){var n,r,o="";if(xN(e)&&e.nodeValue)return e.nodeValue;if(zr(e)){try{for(var i=Er(Array.from(e.childNodes)),a=i.next();!a.done;a=i.next())o+=t(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(e).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&e.tagName!=="BR"||(o+=`
`)}return o};function AN(t,e){if(!(t instanceof HTMLElement&&t.dataset.slateVoid==="true"))for(var n=t.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;i==3?e(o,t):i!=1&&i!=9&&i!=11||AN(o,e)}}function h9(t){if(t.length===0)return"";var e=t[0];return e.nodeType!==yo.ELEMENT_NODE?"":e.tagName.toLowerCase()}(Cn=yo||(yo={}))[Cn.ELEMENT_NODE=1]="ELEMENT_NODE",Cn[Cn.TEXT_NODE=3]="TEXT_NODE",Cn[Cn.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Cn[Cn.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Cn[Cn.COMMENT_NODE=8]="COMMENT_NODE",Cn[Cn.DOCUMENT_NODE=9]="DOCUMENT_NODE",Cn[Cn.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Cn[Cn.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var LE=typeof navigator!="undefined"&&/Mac OS X/.test(navigator.userAgent),cd=typeof navigator!="undefined"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Zc=typeof navigator!="undefined"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),FJ=typeof navigator!="undefined"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),TJ=typeof navigator!="undefined"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),RE=typeof navigator!="undefined"&&/Chrome/i.test(navigator.userAgent),Jc=!TJ&&!FJ&&typeof globalThis!="undefined"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",A={getWindow:function(t){var e=CN.get(t);if(!e)throw new Error("Unable to find a host window element for this editor");return e},findKey:function(t,e){var n=Y0.get(e);return n||(n=new J7,Y0.set(e,n)),n},setNewKey:function(t){var e=new J7;Y0.set(t,e)},findPath:function(t,e){for(var n=[],r=e;;){var o=Gl.get(r);if(o==null){if(E.isEditor(r))return n;break}var i=Yd.get(r);if(i==null)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(e))},findDocumentOrShadowRoot:function(t){if(t.isDestroyed)return window.document;var e=A.toDOMNode(t,t),n=e.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:e.ownerDocument},getParentNode:function(t,e){return Gl.get(e)||null},getParentsNodes:function(t,e){for(var n=[],r=e;r!==t&&r!=null;){var o=A.getParentNode(t,r);if(o==null)break;n.push(o),r=o}return n},getTopNode:function(t,e){var n=[A.findPath(t,e)[0]];return Q.get(t,n)},toDOMNode:function(t,e){var n;if(E.isEditor(e))n=yD.get(t);else{var r=A.findKey(t,e);n=NE.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(e));return n},hasDOMNode:function(t,e,n){n===void 0&&(n={});var r,o=n.editable,i=o!==void 0&&o,a=A.toDOMNode(t,t);try{r=zr(e)?e:e.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(t,e){var n=e.anchor,r=e.focus,o=L.isBackward(e),i=A.toDOMPoint(t,n),a=L.isCollapsed(e)?i:A.toDOMPoint(t,r),u=A.getWindow(t).document.createRange(),s=Vt(o?a:i,2),l=s[0],c=s[1],f=Vt(o?i:a,2),d=f[0],p=f[1],v=!!(zr(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),y=!!(zr(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,y?1:p),u},toDOMPoint:function(t,e){var n,r,o,i=Vt(E.node(t,e.path),1)[0],a=A.toDOMNode(t,i);E.void(t,{at:e})&&(e={path:e.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Er(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),y=s+(v==null?p:parseInt(v,10));if(e.offset<=y){o=[d,Math.min(p,Math.max(0,e.offset-s))];break}s=y}}}catch(g){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(e));return o},toSlateNode:function(t,e){var n=zr(e)?e:e.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?av.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(t,e){"nativeEvent"in e&&(e=e.nativeEvent);var n=e.clientX,r=e.clientY,o=e.target;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+e);var i,a=A.toSlateNode(t,e.target),u=A.findPath(t,a);if(E.isVoid(t,a)){var s=o.getBoundingClientRect(),l=t.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=E.point(t,u,{edge:l?"start":"end"}),f=l?E.before(t,c):E.after(t,c);if(f)return E.range(t,f)}var d=this.getWindow(t).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: "+e);return A.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(t,e,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((p9(e)?e.anchorNode:e.startContainer)&&(p9(e)?(r=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=RE&&window.document.activeElement&&window.document.activeElement.shadowRoot?e.anchorNode===e.focusNode&&e.anchorOffset===e.focusOffset:e.isCollapsed):(r=e.startContainer,o=e.startOffset,i=e.endContainer,a=e.endOffset,u=e.collapsed)),r==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+e);var c=A.toSlatePoint(t,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:A.toSlatePoint(t,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return L.isExpanded(d)&&L.isForward(d)&&zr(i)&&E.void(t,{at:d.focus,mode:"highest"})&&(d=E.unhangRange(t,d,{voids:!0})),d},toSlatePoint:function(t,e,n){var r,o=n.exactMatch,i=n.suppressThrow,a=Vt(o?e:function(h){var b,w=Vt(h,2),D=w[0],x=w[1];if(zr(D)&&D.childNodes.length){var C=x===D.childNodes.length,O=C?x-1:x;for(D=(b=Vt(SN(D,O,C?"backward":"forward"),2))[0],C=(O=b[1])<x;zr(D)&&D.childNodes.length;){var T=C?D.childNodes.length-1:0;D=kJ(D,T,C?"backward":"forward")}x=C&&D.textContent!=null?D.textContent.length:0}return[D,x]}(e),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var y=A.getWindow(t).document.createRange();y.setStart(c,0),y.setEnd(u,s);var g=y.cloneContents();BE(BE([],Vt(CA(g.querySelectorAll("[data-slate-zero-width]")))),Vt(CA(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")||cd&&(!((r=v.textContent)===null||r===void 0)&&r.endsWith(`
`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+e)}var m=A.toSlateNode(t,c);return{path:A.findPath(t,m),offset:f}},hasRange:function(t,e){var n=e.anchor,r=e.focus;return E.hasPath(t,n.path)&&E.hasPath(t,r.path)},getNodeType:function(t){return ft.isElement(t)?t.type:""},checkNodeType:function(t,e){return this.getNodeType(t)===e},getNodesStr:function(t){return t.map(function(e){return Q.string(e)}).join("")},getSelectedElems:function(t){var e,n,r=[],o=E.nodes(t,{universal:!0});try{for(var i=Er(o),a=i.next();!a.done;a=i.next()){var u=Vt(a.value,1)[0];ft.isElement(u)&&r.push(u)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},getSelectedNodeByType:function(t,e){var n=this,r=Vt(E.nodes(t,{match:function(i){return n.checkNodeType(i,e)},universal:!0}),1),o=r[0];return o==null?null:o[0]},getSelectedTextNode:function(t){var e=Vt(E.nodes(t,{match:function(r){return it.isText(r)},universal:!0}),1),n=e[0];return n==null?null:n[0]},isNodeSelected:function(t,e){var n=Vt(E.nodes(t,{match:function(o){return o===e},universal:!0}),1),r=n[0];return r!=null&&Vt(r,1)[0]===e},isSelectionAtLineEnd:function(t,e){var n=t.selection;return!!n&&(E.isEnd(t,n.anchor,e)||E.isEnd(t,n.focus,e))},getTextarea:function(t){var e=TE.get(t);if(e==null)throw new Error("Cannot find textarea instance by editor");return e},getToolbar:function(t){return Z1.get(t)||null},getHoverbar:function(t){return iv.get(t)||null},normalizeContent:function(t){t.children.forEach(function(e,n){t.normalizeNode([e,[n]])})},getLeftLengthOfMaxLength:function(t){var e=t.getConfig(),n=e.maxLength,r=e.onMaxLength;if(typeof n!="number"||n<=0)return 1/0;var o=n-t.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(t),o},cleanExposedTexNodeInSelectionBlock:function(t){var e,n,r,o,i=A.getTextarea(t).$textArea,a=i==null?void 0:i[0].childNodes;if(a)try{for(var u=Er(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(y){e={error:y}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var c=E.nodes(t,{match:function(y){return!(!ft.isElement(y)||t.isInline(y))},universal:!0});try{for(var f=Er(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];AN(A.toDOMNode(t,v),function(y,g){var m=B(g);m.attr("data-slate-string")||m.attr("data-slate-zero-width")||m.attr("data-w-e-reserve")||g.removeChild(y)})}}}catch(y){r={error:y}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(t,e){var n=t.children||[];return n[n.length-1]===e},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(t){var e,n,r=E.nodes(t,{match:function(u){return t.isVoid(u)}}),o=0;try{for(var i=Er(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return o>0},isSelectedEmptyParagraph:function(t){var e=t.selection;if(e==null||L.isExpanded(e))return!1;var n=A.getSelectedNodeByType(t,"paragraph");if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===""||void 0)},isEmptyPath:function(t,e){var n=E.node(t,e);if(n==null)return!1;var r=Vt(n,1)[0].children;return r.length===1&&r[0].text===""}},_J=1,ON={},Xd={},PJ=cc.filter,jJ=q1("filter");xe({target:"Array",proto:!0,forced:!jJ},{filter:function(t){return PJ(this,t,arguments.length>1?arguments[1]:void 0)}});var ME=`
\v\f\r    \u2028\u2029\uFEFF`,g9=ht("".replace),sv="["+ME+"]",NJ=RegExp("^"+sv+sv+"*"),IJ=RegExp(sv+sv+"*$"),fb=function(t){return function(e){var n=ue(Br(e));return 1&t&&(n=g9(n,NJ,"")),2&t&&(n=g9(n,IJ,"")),n}},LJ={start:fb(1),end:fb(2),trim:fb(3)},RJ=sc.PROPER,MJ=LJ.trim;xe({target:"String",proto:!0,forced:function(t){return Qt(function(){return!!ME[t]()||"…"[t]()!=="…"||RJ&&ME[t].name!==t})}("trim")},{trim:function(){return MJ(this)}});var zE=[],kN={};function zJ(t,e,n){var r=n.isInline(t)?"span":"div";return"<"+r+">"+e+"</"+r+">"}var Zd,_s,v9,db,lv=X.Promise,y9=Ae("species"),bD=function(t){var e=hs(t),n=no.f;an&&e&&!e[y9]&&n(e,y9,{configurable:!0,get:function(){return this}})},$J=X.TypeError,HJ=Ae("species"),BN=function(t,e){var n,r=Me(t).constructor;return r===void 0||(n=Me(r)[HJ])==null?e:function(o){if(W1(o))return o;throw $J(M1(o)+" is not a constructor")}(n)},FN=ht([].slice),TN=/(?:ipad|iphone|ipod).*applewebkit/i.test(vl),aa=Xr(X.process)=="process",$E=X.setImmediate,HE=X.clearImmediate,VJ=X.process,pb=X.Dispatch,UJ=X.Function,m9=X.MessageChannel,WJ=X.String,hb=0,fd={};try{Zd=X.location}catch(t){}var wD=function(t){if(Re(fd,t)){var e=fd[t];delete fd[t],e()}},gb=function(t){return function(){wD(t)}},b9=function(t){wD(t.data)},w9=function(t){X.postMessage(WJ(t),Zd.protocol+"//"+Zd.host)};$E&&HE||($E=function(t){var e=FN(arguments,1);return fd[++hb]=function(){dD(ie(t)?t:UJ(t),void 0,e)},_s(hb),hb},HE=function(t){delete fd[t]},aa?_s=function(t){VJ.nextTick(gb(t))}:pb&&pb.now?_s=function(t){pb.now(gb(t))}:m9&&!TN?(db=(v9=new m9).port2,v9.port1.onmessage=b9,_s=Qu(db.postMessage,db)):X.addEventListener&&ie(X.postMessage)&&!X.importScripts&&Zd&&Zd.protocol!=="file:"&&!Qt(w9)?(_s=w9,X.addEventListener("message",b9,!1)):_s="onreadystatechange"in Hd("script")?function(t){bE.appendChild(Hd("script")).onreadystatechange=function(){bE.removeChild(this),wD(t)}}:function(t){setTimeout(gb(t),0)});var Qc,hu,dd,ol,vb,yb,mb,E9,_N={set:$E,clear:HE},GJ=/ipad|iphone|ipod/i.test(vl)&&X.Pebble!==void 0,qJ=/web0s(?!.*chrome)/i.test(vl),KJ=Up.f,bb=_N.set,D9=X.MutationObserver||X.WebKitMutationObserver,C9=X.document,x9=X.process,Kh=X.Promise,S9=KJ(X,"queueMicrotask"),PN=S9&&S9.value;PN||(Qc=function(){var t,e;for(aa&&(t=x9.domain)&&t.exit();hu;){e=hu.fn,hu=hu.next;try{e()}catch(n){throw hu?ol():dd=void 0,n}}dd=void 0,t&&t.enter()},TN||aa||qJ||!D9||!C9?!GJ&&Kh&&Kh.resolve?((mb=Kh.resolve(void 0)).constructor=Kh,E9=Qu(mb.then,mb),ol=function(){E9(Qc)}):aa?ol=function(){x9.nextTick(Qc)}:(bb=Qu(bb,X),ol=function(){bb(Qc)}):(vb=!0,yb=C9.createTextNode(""),new D9(Qc).observe(yb,{characterData:!0}),ol=function(){yb.data=vb=!vb}));var wb,A9,jN,O9,NN=PN||function(t){var e={fn:t,next:void 0};dd&&(dd.next=e),hu||(hu=e,ol()),dd=e},YJ=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Sa(e),this.reject=Sa(n)},ED={f:function(t){return new YJ(t)}},VE=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},XJ=typeof window=="object",IN=_N.set,ZJ=Ae("species"),ho="Promise",k9=An.getterFor(ho),JJ=An.set,QJ=An.getterFor(ho),su=lv&&lv.prototype,bo=lv,tf=su,LN=X.TypeError,UE=X.document,DD=X.process,ml=ED.f,tQ=ml,eQ=!!(UE&&UE.createEvent&&X.dispatchEvent),RN=ie(X.PromiseRejectionEvent),MN=!1,pd=Ud(ho,function(){var t=$1(bo),e=t!==String(bo);if(!e&&$d===66)return!0;if($d>=51&&/native code/.test(t))return!1;var n=new bo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[ZJ]=r,!(MN=n.then(function(){})instanceof r)||!e&&XJ&&!RN}),nQ=pd||!iD(function(t){bo.all(t).catch(function(){})}),zN=function(t){var e;return!(!pe(t)||!ie(e=t.then))&&e},CD=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;NN(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&oQ(t),t.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(LN("Promise-chain cycle")):(u=zN(a))?Kt(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&rQ(t)})}},$N=function(t,e,n){var r,o;eQ?((r=UE.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),X.dispatchEvent(r)):r={promise:e,reason:n},!RN&&(o=X["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=X.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},rQ=function(t){Kt(IN,X,function(){var e,n=t.facade,r=t.value;if(B9(t)&&(e=VE(function(){aa?DD.emit("unhandledRejection",r,n):$N("unhandledrejection",n,r)}),t.rejection=aa||B9(t)?2:1,e.error))throw e.value})},B9=function(t){return t.rejection!==1&&!t.parent},oQ=function(t){Kt(IN,X,function(){var e=t.facade;aa?DD.emit("rejectionHandled",e):$N("rejectionhandled",e,t.value)})},fl=function(t,e,n){return function(r){t(e,r,n)}},bl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,CD(t,!0))},WE=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw LN("Promise can't be resolved itself");var r=zN(e);r?NN(function(){var o={done:!1};try{Kt(r,e,fl(WE,o,t),fl(bl,o,t))}catch(i){bl(o,i,t)}}):(t.value=e,t.state=1,CD(t,!1))}catch(o){bl({done:!1},o,t)}}};if(pd&&(tf=(bo=function(t){X1(this,tf),Sa(t),Kt(wb,this);var e=k9(this);try{t(fl(WE,e),fl(bl,e))}catch(n){bl(e,n)}}).prototype,(wb=function(t){JJ(this,{type:ho,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Wl(tf,{then:function(t,e){var n=QJ(this),r=n.reactions,o=ml(BN(this,bo));return o.ok=!ie(t)||t,o.fail=ie(e)&&e,o.domain=aa?DD.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&CD(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),A9=function(){var t=new wb,e=k9(t);this.promise=t,this.resolve=fl(WE,e),this.reject=fl(bl,e)},ED.f=ml=function(t){return t===bo||t===jN?new A9(t):tQ(t)},ie(lv)&&su!==Object.prototype)){O9=su.then,MN||(Wn(su,"then",function(t,e){var n=this;return new bo(function(r,o){Kt(O9,n,r,o)}).then(t,e)},{unsafe:!0}),Wn(su,"catch",tf.catch,{unsafe:!0}));try{delete su.constructor}catch(t){}Ul&&Ul(su,tf)}xe({global:!0,wrap:!0,forced:pd},{Promise:bo}),rv(bo,ho,!1),bD(ho),jN=hs(ho),xe({target:ho,stat:!0,forced:pd},{reject:function(t){var e=ml(this);return Kt(e.reject,void 0,t),e.promise}}),xe({target:ho,stat:!0,forced:pd},{resolve:function(t){return function(e,n){if(Me(e),pe(n)&&n.constructor===e)return n;var r=ED.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),xe({target:ho,stat:!0,forced:nQ},{all:function(t){var e=this,n=ml(e),r=n.resolve,o=n.reject,i=VE(function(){var a=Sa(e.resolve),u=[],s=0,l=1;Kd(t,function(c){var f=s++,d=!1;l++,Kt(a,e,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(t){var e=this,n=ml(e),r=n.reject,o=VE(function(){var i=Sa(e.resolve);Kd(t,function(a){Kt(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Ps=K1.UNSUPPORTED_Y,iQ=Math.min,HN=[].push,aQ=ht(/./.exec),js=ht(HN),ef=ht("".slice);function Fr(t){Promise.resolve().then(t)}function VN(t,e){return ft.isElement(t)?function(n,r){var o=n.type,i=o===void 0?"":o,a=n.children,u=a===void 0?[]:a,s=E.isVoid(r,n),l="";s||(l=u.map(function(m){return VN(m,r)}).join(""));var c=function(m){return kN[m]||zJ}(i),f=c(n,l,r),d="";if(d=typeof f=="string"?f:f.html||"",s||zE.forEach(function(m){return d=m(n,d)}),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,y=f.suffix,g=y===void 0?"":y;return v&&(d=v+d),g&&(d+=g),d}(t,e):function(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," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(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(/&nbsp;/g," ")),i===""){var u=A.getParentNode(null,n);if(!u||u.children.length!==0)return i;i="<br>"}return zE.forEach(function(s){return i=s(n,i)}),i}(t,e)}function UN(t){return"w-e-element-"+t}pD("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ue(Br(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!eD(o))return Kt(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Kt(Gd,v,a))&&!((l=v.lastIndex)>p&&(js(f,ef(a,p,s.index)),s.length>1&&s.index<a.length&&dD(HN,f,FE(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&aQ(v,"")||js(f,""):js(f,ef(a,p)),f.length>u?FE(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Kt(e,this,o,i)}:e,[function(o,i){var a=Br(this),u=o==null?void 0:Ju(o,t);return u?Kt(u,o,a,i):Kt(r,ue(a),o,i)},function(o,i){var a=Me(this),u=ue(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=BN(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ps?"g":"y"),d=new l(Ps?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return qd(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=Ps?0:y;var m,h=qd(d,Ps?ef(u,y):u);if(h===null||(m=iQ(lc(d.lastIndex+(Ps?y:0)),u.length))===v)y=hD(u,y,c);else{if(js(g,ef(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(js(g,h[b]),g.length===p)return g;y=v=m}}return js(g,ef(u,v)),g}]},!!Qt(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ps);var F9=function(t,e){var n=(e.top+e.bottom)/2;return t.top<=n&&t.bottom>=n},T9=function(t,e,n){var r=A.toDOMRange(t,e).getBoundingClientRect(),o=A.toDOMRange(t,n).getBoundingClientRect();return F9(r,o)&&F9(o,r)},WN=["span","b","strong","i","em","s","strike","u","font","sub","sup"],GN=[],xD=[],cv={},uQ=no.f,sQ=Vd.f,lQ=An.enforce,cQ=Ae("match"),Qo=X.RegExp,il=Qo.prototype,fQ=X.SyntaxError,dQ=ht(tD),pQ=ht(il.exec),Yh=ht("".charAt),_9=ht("".replace),P9=ht("".indexOf),hQ=ht("".slice),gQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Tu=/a/g,Eb=/a/g,vQ=new Qo(Tu)!==Tu,qN=K1.MISSED_STICKY,yQ=K1.UNSUPPORTED_Y,mQ=an&&(!vQ||qN||lD||cD||Qt(function(){return Eb[cQ]=!1,Qo(Tu)!=Tu||Qo(Eb)==Eb||Qo(Tu,"i")!="/a/i"}));if(Ud("RegExp",mQ)){for(var ki=function(t,e){var n,r,o,i,a,u,s=Zu(il,this),l=eD(t),c=e===void 0,f=[],d=t;if(!s&&l&&c&&t.constructor===ki)return t;if((l||Zu(il,t))&&(t=t.source,c&&(e="flags"in d?d.flags:dQ(d))),t=t===void 0?"":ue(t),e=e===void 0?"":ue(e),d=t,lD&&"dotAll"in Tu&&(r=!!e&&P9(e,"s")>-1)&&(e=_9(e,/s/g,"")),n=e,qN&&"sticky"in Tu&&(o=!!e&&P9(e,"y")>-1)&&yQ&&(e=_9(e,/y/g,"")),cD&&(i=function(p){for(var v,y=p.length,g=0,m="",h=[],b={},w=!1,D=!1,x=0,C="";g<=y;g++){if((v=Yh(p,g))==="\\")v+=Yh(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":pQ(gQ,hQ(p,g+1))&&(g+=2,D=!0),m+=v,x++;continue;case(v===">"&&D):if(C===""||Re(b,C))throw new fQ("Invalid capture group name");b[C]=!0,h[h.length]=[C,x],D=!1,C="";continue}D?C+=v:m+=v}return[m,h]}(t),t=i[0],f=i[1]),a=yN(Qo(t,e),s?this:il,ki),(r||o||f.length)&&(u=lQ(a),r&&(u.dotAll=!0,u.raw=ki(function(p){for(var v,y=p.length,g=0,m="",h=!1;g<=y;g++)(v=Yh(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),m+=v):m+="[\\s\\S]":m+=v+Yh(p,++g);return m}(t),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),t!==d)try{Yr(a,"source",d===""?"(?:)":d)}catch(p){}return a},bQ=function(t){t in ki||uQ(ki,t,{configurable:!0,get:function(){return Qo[t]},set:function(e){Qo[t]=e}})},j9=sQ(Qo),N9=0;j9.length>N9;)bQ(j9[N9++]);il.constructor=ki,ki.prototype=il,Wn(X,"RegExp",ki)}bD("RegExp");var wQ=new RegExp(" ","g");function KN(t){return t.replace(wQ," ")}function I9(t,e){var n=t.length;if(n){var r=t[n-1];if(it.isText(r)){var o=Object.keys(r);if(o.length===1&&o[0]==="text")return r.text=r.text+e,!0}}return!1}function EQ(t,e,n){return{type:"paragraph",children:[{text:B(t).text().replace(/\s+/gm," ")}]}}function Db(t,e){var n=function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==yo.ELEMENT_NODE){if(l.nodeType===yo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
`)>=0)return;c&&(c=KN(c),I9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(I9(u,`
`)||u.push({text:`
`}));var f=SD(B(l),a);Array.isArray(f)?f.forEach(function(d){return u.push(d)}):u.push(f)}}),u)}(t,e),r=function(i){for(var a in cv)if(i[0].matches(a))return cv[a];return EQ}(t),o=r(t[0],n,e);return Array.isArray(o)||(o=[o]),o.forEach(function(i){E.isVoid(e,i)||(n.length===0&&(i.children=[{text:t.text().replace(/\s+/gm," ")}]),xD.forEach(function(a){i=a(t[0],i,e)}))}),o}function Cb(t,e){t.parents("pre").length===0&&(t[0].innerHTML=t[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
`));var n=t[0].textContent||"";n=function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')}(n);var r={text:n=KN(n)};return xD.forEach(function(o){r=o(t[0],r,e)}),r}function SD(t,e){GN.forEach(function(r){var o=r.selector,i=r.preParseHtml;t[0].matches(o)&&(t=B(i(t[0])))});var n=h9(t);return n==="span"?t.attr("data-w-e-type")?Db(t,e):Cb(t,e):n==="code"?h9(t.parent())==="pre"?Db(t,e):Cb(t,e):WN.includes(n)?Cb(t,e):Db(t,e)}function YN(t,e,n){var r=B(n);return!!r.attr(e)||(r.attr(e,"true"),t.on("destroyed",function(){r.removeAttr(e)}),!1)}function L9(t,e){e===void 0&&(e="");var n=[];e===""&&(e="<p><br></p>"),e.indexOf("<")!==0&&(e=e.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var r=B("<div>"+e+"</div>");return Array.from(r.children()).forEach(function(o){var i=SD(B(o),t);Array.isArray(i)?i.forEach(function(a){return n.push(a)}):n.push(i)}),n}var DQ=no.f,R9=Y1.fastKey,M9=An.set,xb=An.getterFor,CQ={getConstructor:function(t,e,n,r){var o=t(function(l,c){X1(l,i),M9(l,{type:e,index:G1(null),first:void 0,last:void 0,size:0}),an||(l.size=0),c!=null&&Kd(c,l[r],{that:l,AS_ENTRIES:n})}),i=o.prototype,a=xb(e),u=function(l,c,f){var d,p,v=a(l),y=s(l,c);return y?y.value=f:(v.last=y={index:p=R9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=y),d&&(d.next=y),an?v.size++:l.size++,p!=="F"&&(v.index[p]=y)),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 Wl(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,an?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),an?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=Qu(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)}}),Wl(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)}}),an&&DQ(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=xb(e),i=xb(r);uD(t,e,function(a,u){M9(this,{type:r,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),bD(e)}};mN("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},CQ);var z9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function $9(t,e){t.isInline(e)?(t.insertNode(e),e.type==="link"&&t.insertFragment([{text:""}])):N.insertNodes(t,e,{mode:"highest"})}var xQ=function(t){var e=t,n=e.insertText;return e.insertFragment,e.setFragmentData=function(r){var o=e.selection;if(o){var i=Vt(L.edges(o),2),a=i[0],u=i[1],s=E.void(e,{at:a.path}),l=E.void(e,{at:u.path});if(!L.isCollapsed(o)||s){var c=A.toDOMRange(e,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach(function(D){D.textContent&&D.textContent.trim()!==""&&(d=D)}),l){var p=Vt(l,1)[0],v=c.cloneRange(),y=A.toDOMNode(e,p);v.setEndAfter(y),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(D){var x=D.getAttribute("data-slate-zero-width")==="n";D.textContent=x?`
`:""}),xN(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var m=e.getFragment(),h=JSON.stringify(m),b=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",b),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",BJ(w)),f.ownerDocument.body.removeChild(w),r}}},e.insertData=function(r){var o,i,a=r.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);e.insertFragment(s)}else{var l=r.getData("text/plain"),c=r.getData("text/html");if(c)e.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Er(f),v=p.next();!v.done;v=p.next()){var y=v.value;d&&N.splitNodes(e,{always:!0}),n(y),d=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},e},Jf=function(t){return t!=null},SQ={object:!0,function:!0,undefined:!0},AQ=/^\s*class[\s{/}]/,OQ=Function.prototype.toString,H9=function(t){return!!function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch(n){return!1}return!function(n){if(!function(r){return!!Jf(r)&&hasOwnProperty.call(SQ,typeof r)}(n))return!1;try{return!!n.constructor&&n.constructor.prototype===n}catch(r){return!1}}(e)}(t)&&!AQ.test(OQ.call(t))},AD=function(t){return t!=null},kQ=Object.keys,BQ=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return kQ(AD(t)?Object(t):t)},FQ=function(t){if(!AD(t))throw new TypeError("Cannot use null or undefined");return t},TQ=Math.max,V9=function(){var t,e=Object.assign;return typeof e=="function"&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}()?Object.assign:function(t,e){var n,r,o,i=TQ(arguments.length,2);for(t=Object(FQ(t)),o=function(a){try{t[a]=e[a]}catch(u){n||(n=u)}},r=1;r<i;++r)BQ(e=arguments[r]).forEach(o);if(n!==void 0)throw n;return t},_Q=Array.prototype.forEach,PQ=Object.create,jQ=function(t,e){var n;for(n in t)e[n]=t[n]},U9=function(t){var e=PQ(null);return _Q.call(arguments,function(n){AD(n)&&jQ(Object(n),e)}),e},Sb="razdwatrzy",NQ=String.prototype.indexOf,nf=typeof Sb.contains=="function"&&Sb.contains("dwa")===!0&&Sb.contains("foo")===!1?String.prototype.contains:function(t){return NQ.call(this,t,arguments[1])>-1},Xh=Hp(function(t){var e=t.exports=function(n,r){var o,i,a,u,s;return arguments.length<2||typeof n!="string"?(u=r,r=n,n=null):u=arguments[2],Jf(n)?(o=nf.call(n,"c"),i=nf.call(n,"e"),a=nf.call(n,"w")):(o=a=!0,i=!1),s={value:r,configurable:o,enumerable:i,writable:a},u?V9(U9(u),s):s};e.gs=function(n,r,o){var i,a,u,s;return typeof n!="string"?(u=o,o=r,r=n,n=null):u=arguments[3],Jf(r)?H9(r)?Jf(o)?H9(o)||(u=o,o=void 0):o=void 0:(u=r,r=o=void 0):r=void 0,Jf(n)?(i=nf.call(n,"c"),a=nf.call(n,"e")):(i=!0,a=!1),s={get:r,set:o,configurable:i,enumerable:a},u?V9(U9(u),s):s}}),Ab=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},IQ=Hp(function(t,e){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,y={configurable:!0,enumerable:!1,writable:!0};n=function(g,m){var h;return Ab(m),v.call(this,"__ee__")?h=this.__ee__:(h=y.value=f(null),d(this,"__ee__",y),y.value=null),h[g]?typeof h[g]=="object"?h[g].push(m):h[g]=[h[g],m]:h[g]=m,this},r=function(g,m){var h,b;return Ab(m),b=this,n.call(this,g,h=function(){o.call(b,g,h),l.call(m,this,arguments)}),h.__eeOnceListener__=m,this},o=function(g,m){var h,b,w,D;if(Ab(m),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(D=0;w=b[D];++D)w!==m&&w.__eeOnceListener__!==m||(b.length===2?h[g]=b[D?0:1]:b.splice(D,1));else b!==m&&b.__eeOnceListener__!==m||delete h[g];return this},i=function(g){var m,h,b,w,D;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];for(w=w.slice(),m=0;b=w[m];++m)l.call(b,this,D)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,D=new Array(h-1),m=1;m<h;++m)D[m-1]=arguments[m];l.call(w,this,D)}},a={on:n,once:r,off:o,emit:i},u={on:Xh(n),once:Xh(r),off:Xh(o),emit:Xh(i)},s=p({},u),t.exports=e=function(g){return g==null?f(s):p(Object(g),u)},e.methods=a});function Zh(t){var e=f9.get(t);return e==null&&(e=IQ(),f9.set(t,e)),e}var fv=new WeakMap;function W9(t,e){var n=fv.get(t);n==null&&(n=new Set,fv.set(t,n)),n.add(e)}function LQ(t){return fv.get(t)||new Set}function RQ(t){fv.set(t,new Set)}function OD(t){var e=A.getTextarea(t).$textAreaContainer,n=e.width(),r=e.height(),o=e.offset();return{top:o.top,left:o.left,width:n,height:r}}function kD(t){var e={top:"0",left:"0"},n=t.selection;if(n==null)return e;var r=OD(t);if(r==null)return e;var o=r.top,i=r.left,a=r.width,u=r.height,s=A.toDOMRange(t,n).getClientRects()[0];if(s==null)return e;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var y=f+l;y<0&&(y=0),c.top=y+5+"px"}return c}function BD(t,e,n){n===void 0&&(n="modal");var r={top:"0",left:"0"};if(t.selection==null)return r;var o=ft.isElement(e)&&t.isVoid(e),i=ft.isElement(e)&&t.isInline(e),a=uv.get(e);if(a==null)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(C){var O=[];O.push(C);for(var T=0;O.length>0;){var R=O.pop();if(R==null||++T>1e4)break;var H=R.nodeName;if(R.nodeType===1){var M=H.toLowerCase();if(OJ.includes(M)||M==="iframe"||M==="video")return R;var K=R.children||[],U=K.length;if(U)for(var W=U-1;W>=0;W--)O.push(K[W])}}return null}(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=OD(t);if(v==null)return r;var y,g=v.top,m=v.left,h=v.width,b=v.height,w={},D=s-g,x=l-m;if(n==="bar")return w.left=x+"px",D>40?w.bottom=b-D+5+"px":w.top=D+c+5+"px",w;if(n==="modal")return o?i?x>(h-f)/2?w.right=h-x+5+"px":w.left=x+f+5+"px":w.left="20px":w.left=x+"px",o?((y=D)<0&&(y=0),w.top=y+"px"):D>(b-c)/2?w.bottom=b-D+5+"px":((y=D+c)<0&&(y=0),w.top=y+5+"px"),w;throw new Error("type '"+n+"' is invalid")}function GE(t,e){Fr(function(){var n=OD(t);if(n!=null){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=e.offset(),l=s.top,c=s.left,f=e.width(),d=e.height(),p=l-o,v=c-i,y=e.attr("style");if(y.indexOf("top")>=0&&(r=p+d-u)>0){var g=e.css("top"),m=parseInt(g.toString())-r;m<0&&(m=0),e.css("top",m+"px")}if(y.indexOf("bottom")>=0&&l<0){var h=e.css("bottom"),b=parseInt(h.toString())-Math.abs(l);e.css("bottom",b+"px")}if(y.indexOf("left")>=0&&(r=v+f-a)>0){var w=e.css("left"),D=parseInt(w.toString())-r;D<0&&(D=0),e.css("left",D+"px")}if(y.indexOf("right")>=0&&c<0){var x=e.css("right"),C=parseInt(x.toString())-Math.abs(c);e.css("right",C+"px")}}})}var MQ=q1("slice"),zQ=Ae("species"),Ob=X.Array,$Q=Math.max;xe({target:"Array",proto:!0,forced:!MQ},{slice:function(t,e){var n,r,o,i=La(this),a=gs(i),u=Hl(t,a),s=Hl(e===void 0?a:e,a);if(tv(i)&&(n=i.constructor,(W1(n)&&(n===Ob||tv(n.prototype))||pe(n)&&(n=n[zQ])===null)&&(n=void 0),n===Ob||n===void 0))return FN(i,u,s);for(r=new(n===void 0?Ob:n)($Q(s-u,0)),o=0;u<s;u++,o++)u in i&&Wd(r,o,i[u]);return r.length=o,r}});var HQ=Up.f,G9=ht("".startsWith),VQ=ht("".slice),UQ=Math.min,XN=rD("startsWith"),WQ=!XN&&!!function(){var t=HQ(String.prototype,"startsWith");return t&&!t.writable}();xe({target:"String",proto:!0,forced:!WQ&&!XN},{startsWith:function(t){var e=ue(Br(this));nD(t);var n=lc(UQ(arguments.length>1?arguments[1]:void 0,e.length)),r=ue(t);return G9?G9(e,r,n):VQ(e,n,n+r.length)===r}});var Ns=Object.assign,q9=Object.defineProperty,GQ=ht([].concat),K9=!Ns||Qt(function(){if(an&&Ns({b:1},Ns(q9({},"a",{enumerable:!0,get:function(){q9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),Ns({},t)[n]!=7||yl(Ns({},e)).join("")!=r})?function(t,e){for(var n=Ia(t),r=arguments.length,o=1,i=aN.f,a=rN.f;r>o;)for(var u,s=U1(arguments[o++]),l=i?GQ(yl(s),i(s)):yl(s),c=l.length,f=0;c>f;)u=l[f++],an&&!Kt(a,s,u)||(n[u]=s[u]);return n}:Ns;xe({target:"Object",stat:!0,forced:Object.assign!==K9},{assign:K9});var qQ=["props","attrs","style","dataset","on","hook"];function ZN(t){var e=t.data,n=e===void 0?{}:e,r=t.children,o=r===void 0?[]:r;Object.keys(n).forEach(function(i){var a,u,s=n[i];if(i!=="key"){if(!qQ.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=yK(l),function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)}(t,((a={})[l]=s,a)),void delete n[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(t,(u={},u[i]=s,u)),delete n[i]}}else t.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&ZN(i)})}var qE=[],JN={};function KQ(t,e,n){return wt(n.isInline(t)?"span":"div",null,e)}function Y9(t,e){return e===void 0&&(e=!1),wt("span",{"data-slate-string":!0},e?t+`
`:t)}function kb(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),wt("span",{"data-slate-zero-width":e?"n":"z","data-slate-length":t},"\uFEFF",e?wt("br",null):null)}function KE(t,e,n,r){return Yd.set(t,e),Gl.set(t,n),ft.isElement(t)?function(o,i){var a,u=A.findKey(i,o),s=i.isInline(o),l=E.isVoid(i,o),c=UN(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,y=function(D){return JN[D]||KQ}(d);a=l?null:v.map(function(D,x){return KE(D,x,o,i)});var g=y(o,a,i);if(l){f["data-slate-void"]=!0;var m=s?"span":"div",h=Vt(Q.texts(o),1),b=Vt(h[0],1)[0],w=wt(m,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},KE(b,0,o,i));g=wt(m,{style:{position:"relative"}},g,w),Yd.set(b,0),Gl.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=function(D,x){var C=x;return qE.forEach(function(O){C=O(D,x)}),C}(o,g)),Fr(function(){var D=IE(c);D!=null&&(NE.set(u,D),uv.set(o,D),av.set(D,o))}),g}(t,r):function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=A.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=A.findPath(a,o),c=s([o,l]),f=it.decorations(o,c),d=f.map(function(y,g){var m=function(h,b,w,D,x){b===void 0&&(b=!1);var C=h.text,O=A.findPath(x,w),T=j.parent(O);if(E.isEditor(D))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return x.isVoid(D)?kb(Q.string(D).length):C!==""||D.children[D.children.length-1]!==w||x.isInline(D)||E.string(x,T)!==""?C===""?kb():b&&C.slice(-1)===`
`?Y9(C,!0):Y9(C):kb(0,!0)}(y,g===f.length-1,o,i,a);return m=function(h,b){var w=b;return qE.forEach(function(D){w=D(h,w)}),w}(y,m),wt("span",{"data-slate-leaf":!0},m)}),p=function(y){return"w-e-text-"+y}(u.id),v=wt("span",{"data-slate-node":"text",id:p,key:u.id},d);return Fr(function(){var y=IE(p);y!=null&&(NE.set(u,y),uv.set(o,y),av.set(y,o))}),v}(t,n,r)}function YQ(t,e){var n,r=t.$scroll,o=function(y){return"w-e-textarea-"+y}(t.id),i=e.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(y,g){return g===void 0&&(g=!1),$l("div#"+y,{props:{contentEditable:!g}})}(o,a),l=e.children||[];s.children=l.map(function(y,g){var m=KE(y,g,e,e);return ZN(m),m});var c=s9.get(t);if(c==null&&(c=!0),c){var f=function(y,g){return B(`<div
id="`+y+`"
data-slate-editor
data-slate-node="value"
suppressContentEditableWarning
role="textarea"
spellCheck="true"
autoCorrect="true"
autoCapitalize="true"
></div>`)}(o);r.append(f),t.$textArea=f,n=f[0],(p=Mq([$q,Wq,qq,Hq,Uq,zq]))(n,s),s9.set(t,!1),l9.set(t,p)}else{var d=c9.get(t),p=l9.get(t);if(d==null||p==null)return;n=d.elm,p(d,s)}if(n!=null||(n=IE(o))!=null){if((c?u:e.isFocused())&&n.focus({preventScroll:!0}),c){var v=mD(n);v&&CN.set(e,v)}yD.set(e,n),uv.set(e,n),av.set(n,e),c9.set(t,s)}}function X9(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function Z9(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function Bb(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return Z9(n.overflowY,e)||Z9(n.overflowX,e)||function(r){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(t)}return!1}function Jh(t,e,n,r,o,i,a,u){return i<t&&a>e||i>t&&a<e?0:i<=t&&u<=n||a>=e&&u>=n?i-t-r:a>e&&u<n||i<t&&u>n?a-e+o:0}function J9(t,e){var n=window,r=e.scrollMode,o=e.block,i=e.inline,a=e.boundary,u=e.skipOverflowHiddenElements,s=typeof a=="function"?a:function(Ct){return Ct!==a};if(!X9(t))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=t;X9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&Bb(f)&&!Bb(document.documentElement)||f!=null&&Bb(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,y=window.scrollY||pageYOffset,g=t.getBoundingClientRect(),m=g.height,h=g.width,b=g.top,w=g.right,D=g.bottom,x=g.left,C=o==="start"||o==="nearest"?b:o==="end"?D:b+m/2,O=i==="center"?x+h/2:i==="end"?w:x,T=[],R=0;R<c.length;R++){var H=c[R],M=H.getBoundingClientRect(),K=M.height,U=M.width,W=M.top,q=M.right,nt=M.bottom,lt=M.left;if(r==="if-needed"&&b>=0&&x>=0&&D<=p&&w<=d&&b>=W&&D<=nt&&x>=lt&&w<=q)return T;var st=getComputedStyle(H),ut=parseInt(st.borderLeftWidth,10),k=parseInt(st.borderTopWidth,10),S=parseInt(st.borderRightWidth,10),P=parseInt(st.borderBottomWidth,10),$=0,Y=0,V="offsetWidth"in H?H.offsetWidth-H.clientWidth-ut-S:0,at="offsetHeight"in H?H.offsetHeight-H.clientHeight-k-P:0;if(l===H)$=o==="start"?C:o==="end"?C-p:o==="nearest"?Jh(y,y+p,p,k,P,y+C,y+C+m,m):C-p/2,Y=i==="start"?O:i==="center"?O-d/2:i==="end"?O-d:Jh(v,v+d,d,ut,S,v+O,v+O+h,h),$=Math.max(0,$+y),Y=Math.max(0,Y+v);else{$=o==="start"?C-W-k:o==="end"?C-nt+P+at:o==="nearest"?Jh(W,nt,K,k,P+at,C,C+m,m):C-(W+K/2)+at/2,Y=i==="start"?O-lt-ut:i==="center"?O-(lt+U/2)+V/2:i==="end"?O-q+S+V:Jh(lt,q,U,ut,S+V,O,O+h,h);var vt=H.scrollLeft,yt=H.scrollTop;C+=yt-($=Math.max(0,Math.min(yt+$,H.scrollHeight-K+at))),O+=vt-(Y=Math.max(0,Math.min(vt+Y,H.scrollWidth-U+V)))}T.push({el:H,top:$,left:Y})}return T}function Q9(t){return t===Object(t)&&Object.keys(t).length!==0}function yr(t,e){return ts(e)&&A.hasDOMNode(t,e,{editable:!0})}function tO(t,e){if(t.getConfig().readOnly)return!1;var n=al(t,e)&&A.toSlateNode(t,e);return E.isVoid(t,n)}function al(t,e){return ts(e)&&A.hasDOMNode(t,e)}function QN(t,e,n){n===void 0&&(n=!1);var r=e.selection,o=e.getConfig(),i=A.findDocumentOrShadowRoot(e).getSelection();if(i&&(!t.isComposing||n)&&e.isFocused()){var a=i.type!=="None";if(r||a){var u=yD.get(e),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=A.toSlateRange(e,i,{exactMatch:!0,suppressThrow:!0});if(l&&L.equals(l,r)){var c=!0;if(L.isCollapsed(r)){var f=i.anchorNode,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(e,r)){t.isUpdatingSelection=!0;var y=r&&A.toDOMRange(e,r);if(y){L.isBackward(r)?i.setBaseAndExtent(y.endContainer,y.endOffset,y.startContainer,y.startOffset):i.setBaseAndExtent(y.startContainer,y.startOffset,y.endContainer,y.endOffset);var g=y.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=y.getBoundingClientRect.bind(y);var m=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(Q9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:J9(h,b));if(!w){var D=function(x){return x===!1?{block:"end",inline:"nearest"}:Q9(x)?x:{block:"start",inline:"nearest"}}(b);(function(x,C){C===void 0&&(C="auto");var O="scrollBehavior"in document.body.style;x.forEach(function(T){var R=T.el,H=T.top,M=T.left;R.scroll&&O?R.scroll({top:H,left:M,behavior:C}):(R.scrollTop=H,R.scrollLeft=M)})})(J9(h,D),D.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:m,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){y&&cd&&u.focus(),t.isUpdatingSelection=!1})}else e.selection=A.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})}}}var Fb=new WeakMap,eO=new WeakMap,XQ={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"},ZQ={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"},JQ={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},be=function(t){var e=XQ[t],n=ZQ[t],r=JQ[t],o=e&&Om(e),i=n&&Om(n),a=r&&Om(r);return function(u){return!(!o||!o(u))||!!(LE&&i&&i(u))||!(LE||!a||!a(u))}},De={isBold:be("bold"),isCompose:be("compose"),isMoveBackward:be("moveBackward"),isMoveForward:be("moveForward"),isDeleteBackward:be("deleteBackward"),isDeleteForward:be("deleteForward"),isDeleteLineBackward:be("deleteLineBackward"),isDeleteLineForward:be("deleteLineForward"),isDeleteWordBackward:be("deleteWordBackward"),isDeleteWordForward:be("deleteWordForward"),isExtendBackward:be("extendBackward"),isExtendForward:be("extendForward"),isExtendLineBackward:be("extendLineBackward"),isExtendLineForward:be("extendLineForward"),isItalic:be("italic"),isMoveLineBackward:be("moveLineBackward"),isMoveLineForward:be("moveLineForward"),isMoveWordBackward:be("moveWordBackward"),isMoveWordForward:be("moveWordForward"),isRedo:be("redo"),isSplitBlock:be("splitBlock"),isTransposeCharacter:be("transposeCharacter"),isUndo:be("undo"),isTab:be("tab"),isSelectAll:be("selectAll")};function Ue(t){t.preventDefault()}var QQ={beforeinput:function(t,e,n){var r=t,o=n.getConfig().readOnly;if(Jc&&!o&&yr(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=Vt(r.getTargetRanges(),1)[0];if(s){var l=A.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&L.equals(i,l)||N.select(n,l)}}if(i&&L.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";E.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":E.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":E.deleteForward(n);break;case"deleteContentBackward":E.deleteBackward(n);break;case"deleteEntireSoftLine":E.deleteBackward(n,{unit:"line"}),E.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":E.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":E.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":E.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":E.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":E.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":E.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":E.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!cb.get(n))break;u instanceof DataTransfer?n.insertData(u):typeof u=="string"&&E.insertText(n,u)}}}},blur:function(t,e,n){var r=t,o=e.isUpdatingSelection,i=e.latestElement;if(!n.getConfig().readOnly&&!o&&yr(n,r.target)){var a=A.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===A.toDOMNode(n,n)||zr(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ts(u)&&A.hasDOMNode(n,u)){var s=A.toSlateNode(n,u);if(ft.isElement(s)&&!n.isVoid(s))return}if(Zc){var l=a.getSelection();l==null||l.removeAllRanges()}Fu.delete(n)}}}},focus:function(t,e,n){var r=A.toDOMNode(n,n),o=A.findDocumentOrShadowRoot(n);e.latestElement=o.activeElement,cd&&t.target!==r?r.focus():Fu.set(n,!0)},click:function(t,e,n){if(!n.getConfig().readOnly&&al(n,t.target)&&ts(t.target)){var r=A.toSlateNode(n,t.target),o=A.findPath(n,r);if(E.hasPath(n,o)&&Q.get(n,o)===r){var i=E.start(n,o),a=E.end(n,o),u=E.void(n,{at:i}),s=E.void(n,{at:a});if(u&&s&&j.equals(u[1],s[1])){var l=E.range(n,i);N.select(n,l)}}}},compositionstart:function(t,e,n){if(yr(n,t.target)){var r=n.selection;if(r&&L.isExpanded(r)&&(E.deleteFragment(n),Promise.resolve().then(function(){QN(e,n,!0)})),r&&L.isCollapsed(r)){var o=A.toDOMRange(n,r).startContainer,i=o.textContent||"";Fb.set(n,i),eO.set(n,o)}e.isComposing=!0,function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)}(e,n)}},compositionend:function(t,e,n){var r=t;if(yr(n,r.target)){e.isComposing=!1;var o=n.selection;if(o!=null){(RE||cd)&&A.cleanExposedTexNodeInSelectionBlock(n);for(var i=L.isBackward(o)?o.focus:o.anchor,a=Vt(E.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Vt(E.node(n,i.path.slice(0,u+1)),1)[0];if(ft.isElement(s)&&((Zc||cd)&&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=Fb.get(n)||"",c>0&&E.insertText(n,l.slice(0,c)),e.changeViewState()):E.insertText(n,l)}else E.insertText(n,l);Zc||setTimeout(function(){var f=n.selection;if(f!=null){var d=eO.get(n);d!=null&&A.toDOMRange(n,f).startContainer!==d&&(d.textContent=Fb.get(n)||"")}})}}}},compositionupdate:function(t,e,n){yr(n,t.target)&&(e.isComposing=!0)},keydown:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&!e.isComposing&&yr(n,r.target)){if(function(a,u){var s=Z1.get(a),l=s&&s.getMenus(),c=iv.get(a),f=c&&c.getMenus(),d=wr(wr({},l),f);for(var p in d){var v=d[p],y=v.hotkey;if(y&&wK(y,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}}(n,r),De.isTab(r))return Ue(r),void n.handleTab();if(De.isRedo(r))return Ue(r),void(typeof n.redo=="function"&&n.redo());if(De.isUndo(r))return Ue(r),void(typeof n.undo=="function"&&n.undo());if(De.isMoveLineBackward(r))return Ue(r),void N.move(n,{unit:"line",reverse:!0});if(De.isMoveLineForward(r))return Ue(r),void N.move(n,{unit:"line"});if(De.isExtendLineBackward(r))return Ue(r),void N.move(n,{unit:"line",edge:"focus",reverse:!0});if(De.isExtendLineForward(r))return Ue(r),void N.move(n,{unit:"line",edge:"focus"});if(De.isMoveBackward(r))return Ue(r),void(o&&L.isCollapsed(o)?N.move(n,{reverse:!0}):N.collapse(n,{edge:"start"}));if(De.isMoveForward(r))return Ue(r),void(o&&L.isCollapsed(o)?N.move(n):N.collapse(n,{edge:"end"}));if(De.isMoveWordBackward(r))return Ue(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word",reverse:!0});if(De.isMoveWordForward(r))return Ue(r),o&&L.isExpanded(o)&&N.collapse(n,{edge:"focus"}),void N.move(n,{unit:"word"});if(De.isSelectAll(r))return Ue(r),void n.selectAll();if(Jc){if((RE||Zc)&&o&&(De.isDeleteBackward(r)||De.isDeleteForward(r))&&L.isCollapsed(o)){var i=Q.parent(n,o.anchor.path);if(ft.isElement(i)&&E.isVoid(n,i)&&E.isInline(n,i))return r.preventDefault(),void N.delete(n,{unit:"block"})}}else{if(De.isBold(r)||De.isItalic(r)||De.isTransposeCharacter(r))return void Ue(r);if(De.isSplitBlock(r))return Ue(r),void E.insertBreak(n);if(De.isDeleteBackward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n));if(De.isDeleteForward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n));if(De.isDeleteLineBackward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"line"}));if(De.isDeleteLineForward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"line"}));if(De.isDeleteWordBackward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"backward"}):E.deleteBackward(n,{unit:"word"}));if(De.isDeleteWordForward(r))return Ue(r),void(o&&L.isExpanded(o)?E.deleteFragment(n,{direction:"forward"}):E.deleteForward(n,{unit:"word"}))}}},keypress:function(t,e,n){if(!Jc&&!n.getConfig().readOnly&&yr(n,t.target)){t.preventDefault();var r=t.key;E.insertText(n,r)}},copy:function(t,e,n){var r=t;if(yr(n,r.target)){r.preventDefault();var o=r.clipboardData;o!=null&&n.setFragmentData(o)}},cut:function(t,e,n){var r=t,o=n.selection;if(!n.getConfig().readOnly&&yr(n,r.target)){r.preventDefault();var i=r.clipboardData;if(i!=null&&(n.setFragmentData(i),o))if(L.isExpanded(o))E.deleteFragment(n);else{var a=Q.parent(n,o.anchor.path);E.isVoid(n,a)&&N.delete(n)}}},paste:function(t,e,n){cb.set(n,!0);var r=t;if(!n.getConfig().readOnly&&yr(n,r.target)){var o=n.getConfig().customPaste;if(o&&o(n,r)===!1)return void cb.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(t,e,n){if(al(n,t.target)){var r=A.toSlateNode(n,t.target);E.isVoid(n,r)&&t.preventDefault()}},dragstart:function(t,e,n){var r=t;if(al(n,r.target)&&!n.getConfig().readOnly){var o=A.toSlateNode(n,r.target),i=A.findPath(n,o);if(E.isVoid(n,o)||E.void(n,{at:i,voids:!0})){var a=E.range(n,i);N.select(n,a)}var u=r.dataTransfer;u!=null&&(e.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(t,e,n){var r=t;n.getConfig().readOnly||e.isDraggingInternally&&al(n,r.target)&&(e.isDraggingInternally=!1)},drop:function(t,e,n){var r=t,o=r.dataTransfer;if(!n.getConfig().readOnly&&al(n,r.target)&&o!=null&&!(Jc&&Zc&&o.files.length>0)){r.preventDefault();var i=n.selection,a=A.findEventRange(n,r);N.select(n,a),e.isDraggingInternally&&(i&&N.delete(n,{at:i}),e.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},ttt=1,ett=function(){function t(e){var n=this;this.id=ttt++,this.$textArea=null,this.$progressBar=B('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=B('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Xu(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),y=d.getSelection();if(p===v?(u.latestElement=p,Fu.set(s,!0)):Fu.delete(s),!y)return N.deselect(s);var g=y.anchorNode,m=y.focusNode,h=yr(s,g)||tO(s,g),b=yr(s,m)||tO(s,m);if(h&&b){var w=A.toSlateRange(s,y,{exactMatch:!1,suppressThrow:!1});N.select(s,w)}else N.deselect(s)}})(n,a)},100);var r=B(e);if(r.length===0)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=r;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),r.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,Fr(function(){var a=n.editorInstance,u=A.getWindow(a);u.document.addEventListener("selectionchange",n.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",n.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",n.changeViewState.bind(n));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),n.onFocusAndOnBlur(),a.on("change",n.changeMaxLengthInfo.bind(n)),n.bindEvent()})}return Object.defineProperty(t.prototype,"editorInstance",{get:function(){var e=_E.get(this);if(e==null)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),t.prototype.bindEvent=function(){var e=this,n=this.$textArea,r=this.$scroll,o=this.editorInstance;n!=null&&(M5(QQ,function(i,a){n.on(a,function(u){i(u,e,o)})}),o.getConfig().scroll&&(r.css("overflow-y","auto"),r.on("scroll",Xu(function(){o.emit("scroll")},100))))},t.prototype.onFocusAndOnBlur=function(){var e=this,n=this.editorInstance,r=n.getConfig(),o=r.onBlur,i=r.onFocus;this.latestEditorSelection=n.selection,n.on("change",function(){e.latestEditorSelection==null&&n.selection!=null?setTimeout(function(){return i&&i(n)}):e.latestEditorSelection!=null&&n.selection==null&&setTimeout(function(){return o&&o(n)}),e.latestEditorSelection=n.selection})},t.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,n=e.getConfig().maxLength;if(n){var r=n-A.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=r+"/"+n}},t.prototype.changeProgress=function(e){var n=this.$progressBar;n.css("width",e+"%"),e>=100&&setTimeout(function(){n.hide(),n.css("width","0"),n.show()},1e3)},t.prototype.changeViewState=function(){var e=this,n=this.editorInstance;YQ(this,n),function(r,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!r.showPlaceholder&&!r.isComposing){if(r.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");r.$textAreaContainer.append(s),r.$placeholder=s}return r.$placeholder.show(),void(r.showPlaceholder=!0)}!u&&r.showPlaceholder&&((i=r.$placeholder)===null||i===void 0||i.hide(),r.showPlaceholder=!1)}}(this,n),Fr(function(){QN(e,n)})},t.prototype.destroy=function(){this.$textAreaContainer.remove()},t}();function FD(t){t.removeAttr("width"),t.removeAttr("height"),t.removeAttr("fill"),t.removeAttr("class"),t.removeAttr("t"),t.removeAttr("p-id");var e=t.children();e.length&&FD(e)}function TD(){return B('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function tI(){return B('<div class="w-e-bar-divider"></div>')}function eI(t,e,n,r,o){if(o===void 0&&(o=!1),e){if(r){var i=LE?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(t.attr("data-tooltip",r),t.addClass("w-e-menu-tooltip-v5"),t.addClass("tooltip-right"));else{var a=r?n+`
`+r:n;t.attr("data-tooltip",a),t.addClass("w-e-menu-tooltip-v5")}}}pD("match",function(t,e,n){return[function(r){var o=Br(this),i=r==null?void 0:Ju(r,t);return i?Kt(i,r,o):new RegExp(r)[t](ue(o))},function(r){var o=Me(this),i=ue(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return qd(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=qd(o,i))!==null;){var f=ue(s[0]);l[c]=f,f===""&&(o.lastIndex=hD(i,lc(o.lastIndex),u)),c++}return c===0?null:l}]});var _D=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=n;var i=n.tag,a=n.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=n.title,s=n.hotkey,l=s===void 0?"":s,c=n.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=B(f);FD(p),d.append(p)}else d.text(u);eI(d,f,u,l,r),r&&f&&d.append(B('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",e),this.$elem.append(d),Fr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(n){n.preventDefault(),er(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())})},t.prototype.exec=function(){var e=er(this),n=this.menu,r=n.getValue(e);n.exec(e,r)},t.prototype.setActive=function(){var e=er(this),n=this.$button,r="active";this.menu.isActive(e)?n.addClass(r):n.removeClass(r)},t.prototype.setDisabled=function(){var e=er(this),n=this.$button,r=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(r=!0),this.menu.alwaysEnable&&(r=!1);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},t.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},t}(),ntt=function(t){function e(n,r,o){return o===void 0&&(o=!1),t.call(this,n,r,o)||this}return fc(e,t),e.prototype.onButtonClick=function(){},e}(_D),PD=function(){function t(e){this.isShow=!1,this.showTime=0,this.record(e)}return t.prototype.record=function(e){var n=jE.get(e);n==null&&(n=new Set,jE.set(e,n)),n.add(this),K0.set(this,e)},t.prototype.renderContent=function(e){var n=this.$elem;n.empty(),n.append(e);var r=this.genSelfElem();r&&n.append(r)},t.prototype.appendTo=function(e){var n=this.$elem;e.append(n)},t.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=K0.get(this);e&&e.emit("modalOrPanelShow",this)}},t.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=K0.get(this);e&&e.emit("modalOrPanelHide")}},t}(),rtt=function(t){function e(n){var r=t.call(this,n)||this;return r.type="dropPanel",r.$elem=B('<div class="w-e-drop-panel"></div>'),r}return fc(e,t),e.prototype.genSelfElem=function(){return null},e}(PD),ott=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;if(i.dropPanel=null,i.menu=r,r.showDropPanel){var a=TD();i.$button.append(a)}return i}return fc(e,t),e.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},e.prototype.handleDropPanel=function(){var n=this.menu;if(n.getPanelContentElem!=null){var r=er(this);if(this.dropPanel==null){var o=new rtt(r),i=n.getPanelContentElem(r);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=n.getPanelContentElem(r),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},e}(_D),itt=function(t){function e(n,r){r===void 0&&(r=0);var o=t.call(this,n)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,r&&(o.width=r);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),n.restoreSelection())}),o}return fc(e,t),e.prototype.genSelfElem=function(){var n=this,r=B('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=K0.get(this);return r.on("click",function(){n.hide(),o==null||o.restoreSelection()}),r},e.prototype.setStyle=function(n){var r=this.width,o=this.$elem;o.attr("style",""),r&&o.css("width",r+"px"),o.css(n)},e}(PD);function rr(t,e,n){var r=B('<label class="babel-container"></label>');r.append("<span>"+t+"</span>");var o=B('<input type="text" id="'+e+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function dc(t,e){var n=B('<div class="button-container"></div>'),r=B('<button type="button" id="'+t+'">'+e+"</button>");return n.append(r),[n[0],r[0]]}var att=function(t){function e(n,r,o){o===void 0&&(o=!1);var i=t.call(this,n,r,o)||this;return i.$body=B("body"),i.modal=null,i.menu=r,i}return fc(e,t),e.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},e.prototype.getPosition=function(){var n=er(this),r=this.menu.getModalPositionNode(n);return ft.isElement(r)?BD(n,r,"modal"):kD(n)},e.prototype.handleModal=function(){var n=er(this),r=this.menu;if(this.modal==null){var o=new itt(n,r.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},e.prototype.renderAndShowModal=function(n,r){r===void 0&&(r=!1);var o=er(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||GE(o,n.$elem),setTimeout(function(){o.blur()})}},e}(_D),utt=function(t){function e(n,r){var o=t.call(this,n)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),r&&o.$elem.css("width",r+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return fc(e,t),e.prototype.renderList=function(n){var r=this.$elem;r.empty();var o=B("<ul></ul>");n.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=B('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(B('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),r.append(o)},e.prototype.genSelfElem=function(){return null},e}(PD),stt=function(){function t(e,n,r){var o=this;r===void 0&&(r=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=n.tag,a=n.title,u=n.width,s=n.iconSvg,l=s===void 0?"":s,c=n.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",e),eI(d,l,a,f,r),this.$elem.append(d),this.menu=n,Fr(function(){return o.init()})}return t.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",function(n){n.preventDefault(),er(e).hidePanelOrModal(),e.trigger()})},t.prototype.trigger=function(){var e=this,n=er(this);if(!n.isDisabled()&&!this.disabled){var r=this.menu;if(this.selectList==null){this.selectList=new utt(n,r.selectPanelWidth);var o=this.selectList,i=r.getOptions(n);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");e.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=r.getOptions(n),o.renderList(i),o.show())}},t.prototype.onChange=function(e){var n=er(this),r=this.menu;r.exec&&r.exec(n,e)},t.prototype.setSelectedValue=function(){var e=er(this),n=this.menu,r=n.getValue(e),o=function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c}(n.getOptions(e),r.toString()),i=this.$button,a=TD();i.empty(),i.text(o),i.append(a)},t.prototype.setDisabled=function(){var e=er(this),n=this.menu.isDisabled(e),r=this.$button;(e.selection==null||e.isDisabled())&&(n=!0);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},t.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},t}(),nO=function(){function t(e){this.$elem=B('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=B('<div class="w-e-bar-item-menus-container"></div>'),this.$button=B('<button type="button"></button>');var n=e.key,r=e.iconSvg,o=e.title,i=this.$elem,a=this.$button;if(r){var u=B(r);FD(u),a.append(u)}else a.text(o);a.attr("data-menu-key",n);var s=TD();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return t.prototype.appendBarItem=function(e){var n=e.$elem;this.$container.append(n)},t.prototype.observe=function(e){var n=this.$container;e.observe(n[0],{childList:!0,subtree:!0,attributes:!0})},t.prototype.createObserver=function(){var e=this,n=this.$container,r=this.$button,o=new MutationObserver(function(){var i=n.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){B(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?r.addClass("disabled"):r.removeClass("disabled"),e.observe(o)}});return o},t}(),rO=new WeakMap;function er(t){var e=vD.get(t);if(e==null)throw new Error("Can not get editor instance");return e}function nI(t,e,n){n===void 0&&(n=!1);var r=rO.get(e);if(r)return r;var o=e.tag;if(o==="button"){var i=e.showDropPanel,a=e.showModal;r=i?new ott(t,e,n):a?new att(t,e,n):new ntt(t,e,n)}if(o==="select"&&(r=new stt(t,e,n)),r==null)throw new Error("Invalid tag in menu "+JSON.stringify(e));return rO.set(e,r),r}function ltt(t,e){var n=t.selection;return n!=null&&!L.isCollapsed(n)&&!A.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var o=r.type;return!!["pre","code","table"].includes(o)||void 0})&&!!it.isText(e)}var ctt=function(){function t(){var e=this;this.$elem=B('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=_j(function(){var n=e.isShow,r=e.getSelectedNodeAndMenuKeys()||{},o=r.node,i=o===void 0?null:o,a=r.menuKeys,u=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&ft.isElement(i)&&n&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(u),e.setPosition(i),e.show()),e.prevSelectedNode=i)},200),Fr(function(){var n=e.getEditorInstance(),r=e.$elem;r.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),A.getTextarea(n).$textAreaContainer.append(r),n.on("change",e.changeHoverbarState);var o=e.hideAndClean.bind(e);n.on("scroll",o),n.on("fullScreen",o),n.on("unFullScreen",o)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},t.prototype.checkPositionBottom=function(){var e=this.$elem,n=!1,r=window.innerHeight;r&&r>=360&&r-e[0].getBoundingClientRect().bottom<360&&(n=!0),n?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},t.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},t.prototype.changeItemsState=function(){var e=this;Fr(function(){e.hoverbarItems.forEach(function(n){n.changeMenuState()})})},t.prototype.registerItems=function(e){var n=this,r=this.$elem;e.forEach(function(o){if(o!=="|")n.registerSingleItem(o);else{var i=tI();r.append(i)}})},t.prototype.registerSingleItem=function(e){var n=this.getEditorInstance(),r=this.menus,o=r[e];if(o==null){var i=Xd[e];if(i==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");o=i(),r[e]=o}var a=nI(e,o);this.hoverbarItems.push(a),vD.set(a,n),this.$elem.append(a.$elem)},t.prototype.setPosition=function(e){var n=this.getEditorInstance(),r=this.$elem;if(r.attr("style",""),ft.isElement(e)){var o=BD(n,e,"bar");return r.css(o),void GE(n,r)}if(it.isText(e))return o=kD(n),r.css(o),void GE(n,r);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},t.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var n=this.getHoverbarKeysConf(),r=null,o=[],i=function(u){var s=n[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(y,g){return A.checkNodeType(g,u)},p=Vt(E.nodes(e,{match:function(y){return d(e,y)},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}},t.prototype.getEditorInstance=function(){var e=PE.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,n=e===void 0?{}:e,r=n.text;return r&&r.match==null&&(r.match=ltt),n},t.prototype.isSamePath=function(e,n){if(e==null||n==null)return!1;var r=A.findPath(null,e),o=A.findPath(null,n);return j.equals(r,o)},t.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},t}();function rI(t,e,n,r){if(Yd.set(t,e),Gl.set(t,n),ft.isElement(t)){var o=t.children;if((o===void 0?[]:o).forEach(function(u,s){return rI(u,s,t,r)}),E.isVoid(r,t)){var i=Vt(Q.texts(t),1),a=Vt(i[0],1)[0];Yd.set(a,0),Gl.set(a,t)}}}function ftt(t){var e=t.selector,n=e===void 0?"":e,r=t.config,o=r===void 0?{}:r,i=t.content,a=t.html,u=t.plugins,s=u===void 0?[]:u,l=(m=>{var h=m,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:D}=w;if(D.length>0){var x=D[D.length-1];cl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{for(var C of x)h.apply(C)})}),w.redos.pop(),w.undos.push(x)}},h.undo=()=>{var{history:w}=h,{undos:D}=w;if(D.length>0){var x=D[D.length-1];cl.withoutSaving(h,()=>{E.withoutNormalizing(h,()=>{var C=x.map(Ji.inverse).reverse();for(var O of C)h.apply(O)})}),w.redos.push(x),w.undos.pop()}},h.apply=w=>{var{operations:D,history:x}=h,{undos:C}=x,O=C[C.length-1],T=O&&O[O.length-1],R=((U,W)=>!(!W||U.type!=="set_selection"||W.type!=="set_selection"))(w,T),H=cl.isSaving(h),M=cl.isMerging(h);if(H==null&&(H=((U,W)=>U.type!=="set_selection"||U.properties!=null&&U.newProperties!=null)(w)),H){if(M==null&&(M=O!=null&&(D.length!==0||((U,W)=>U.type==="set_selection"||!(!W||U.type!=="insert_text"||W.type!=="insert_text"||U.offset!==W.offset+W.text.length||!j.equals(U.path,W.path))||!(!W||U.type!=="remove_text"||W.type!=="remove_text"||U.offset+U.text.length!==W.offset||!j.equals(U.path,W.path)))(w,T)||R)),O&&M)R&&O.pop(),O.push(w);else{var K=[w];C.push(K)}for(;C.length>100;)C.shift();(U=>U.type!=="set_selection")(w)&&(x.redos=[])}b(w)},h})(function(m){var h=m,b=h.insertText,w=h.insertNode,D=h.insertFragment,x=h.dangerouslyInsertHtml;return h.insertText=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||(O<C.length?b(C.slice(0,O)):b(C))}else b(C)},h.insertNode=function(C){if(h.getConfig().maxLength){var O=A.getLeftLengthOfMaxLength(h);O<=0||O<Q.string(C).length||w(C)}else w(C)},h.insertFragment=function(C){if(h.getConfig().maxLength)if(C.length!==1)C.forEach(function(T){h.insertNode(T)});else{var O=C[0];if(A.getLeftLengthOfMaxLength(h)<Q.string(O).length)return;D(C)}else D(C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C)if(h.getConfig().maxLength){var T=A.getLeftLengthOfMaxLength(h);if(!(T<=0)){var R=document.createElement("div");R.innerHTML=C;var H=Array.from(R.childNodes).reduce(function(M,K){var U=K.nodeType,W=K.nodeName;return K?U===yo.TEXT_NODE?M+(K.textContent||""):U===yo.ELEMENT_NODE?z9.has(W.toLowerCase())?M:M+(K.textContent||""):M:M},"");T<H.length||x(C,O)}}else x(C,O)},h}(function(m){var h=m;return h.on=function(b,w){var D=Zh(h);if(D.on(b,w),b==="destroyed"&&W9(h,w),b!=="destroyed"){var x=function(){return D.off(b,w)};D.on("destroyed",x),W9(h,x)}},h.once=function(b,w){Zh(h).once(b,w)},h.off=function(b,w){Zh(h).off(b,w)},h.emit=function(b){for(var w=[],D=1;D<arguments.length;D++)w[D-1]=arguments[D];var x=Zh(h);x.emit.apply(x,BE([b],Vt(w))),b==="destroyed"&&(LQ(h).forEach(function(C){return x.off("destroyed",C)}),RQ(h))},h}(function(m){var h=m;return h.select=function(b){N.select(h,b)},h.deselect=function(){var b=h.selection,w=A.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&N.deselect(m)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||N.move(m,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=lb.get(h);b!=null&&(h.focus(),N.select(h,b))},h.getSelectionPosition=function(){return kD(h)},h.getNodePosition=function(b){return BD(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Vt(L.edges(b),2),D=w[0],x=w[1],C=Vt(E.edges(h,[]),2),O=C[0],T=C[1];return!(!Ft.equals(D,O)||!Ft.equals(x,T))},h.selectAll=function(){var b=E.start(h,[]),w=E.end(h,[]);N.select(h,{anchor:b,focus:w})},h}(function(m){var h=m,b=h.onChange,w=h.insertText,D=h.apply,x=h.deleteBackward;return h.insertText=function(C){h.getConfig().readOnly||w(C)},h.apply=function(C){var O,T,R,H,M,K,U,W,q=[];switch(C.type){case"insert_text":case"remove_text":case"set_node":try{for(var nt=Er(E.levels(h,{at:C.path})),lt=nt.next();!lt.done;lt=nt.next()){var st=Vt(lt.value,2),ut=st[0],k=st[1],S=A.findKey(h,ut);q.push([k,S])}}catch(Lt){O={error:Lt}}finally{try{lt&&!lt.done&&(T=nt.return)&&T.call(nt)}finally{if(O)throw O.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var P=Er(E.levels(h,{at:j.parent(C.path)})),$=P.next();!$.done;$=P.next()){var Y=Vt($.value,2);ut=Y[0],k=Y[1],S=A.findKey(h,ut),q.push([k,S])}}catch(Lt){R={error:Lt}}finally{try{$&&!$.done&&(H=P.return)&&H.call(P)}finally{if(R)throw R.error}}break;case"move_node":try{for(var V=Er(E.levels(h,{at:j.common(j.parent(C.path),j.parent(C.newPath))})),at=V.next();!at.done;at=V.next()){var vt=Vt(at.value,2);ut=vt[0],k=vt[1],S=A.findKey(h,ut),q.push([k,S])}}catch(Lt){M={error:Lt}}finally{try{at&&!at.done&&(K=V.return)&&K.call(V)}finally{if(M)throw M.error}}}D(C);try{for(var yt=Er(q),Ct=yt.next();!Ct.done;Ct=yt.next()){var G=Vt(Ct.value,2);k=G[0],S=G[1],ut=Vt(E.node(h,k),1)[0],Y0.set(ut,S)}}catch(Lt){U={error:Lt}}finally{try{Ct&&!Ct.done&&(W=yt.return)&&W.call(yt)}finally{if(U)throw U.error}}},h.deleteBackward=function(C){if(C!=="line")return x(C);if(m.selection&&L.isCollapsed(m.selection)){var O=E.above(m,{match:function(M){return E.isBlock(m,M)},at:m.selection});if(O){var T=Vt(O,2)[1],R=E.range(m,T,m.selection.anchor),H=function(M,K){var U=E.range(M,L.end(K)),W=Array.from(E.positions(M,{at:K})),q=0,nt=W.length,lt=Math.floor(nt/2);if(T9(M,E.range(M,W[q]),U))return E.range(M,W[q],U);if(W.length<2)return E.range(M,W[W.length-1],U);for(;lt!==W.length&&lt!==q;)T9(M,E.range(M,W[lt]),U)?nt=lt:q=lt,lt=Math.floor((q+nt)/2);return E.range(M,W[nt],U)}(h,R);L.isCollapsed(H)||N.delete(m,{at:H})}}},h.onChange=function(){var C=h.selection;C!=null&&lb.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 VN(O,h)}).join("")},h.getText=function(){var C=h.children;return(C===void 0?[]:C).map(function(O){return Q.string(O)}).join(`
`)},h.getSelectionText=function(){var C=h.selection;return C==null?"":E.string(m,C)},h.getElemsByType=function(C,O){var T,R;O===void 0&&(O=!1);var H=[],M=E.nodes(h,{at:[],universal:!0});try{for(var K=Er(M),U=K.next();!U.done;U=K.next()){var W=Vt(U.value,1)[0];if(ft.isElement(W)&&(O?W.type.indexOf(C)>=0:W.type===C)){var q=UN(A.findKey(h,W).id);H.push(wr(wr({},W),{id:q}))}}}catch(nt){T={error:nt}}finally{try{U&&!U.done&&(R=K.return)&&R.call(K)}finally{if(T)throw T.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 T=O[0];if(T==null)return!0;if(ft.isElement(T)&&T.type==="paragraph"){var R=T.children,H=R===void 0?[]:R;if(H.length>1)return!1;var M=H[0];if(M==null||it.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){N.delete(h,{at:{anchor:E.start(h,[]),focus:E.end(h,[])}}),h.children.length===0&&N.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(C){return A.getParentNode(h,C)},h.dangerouslyInsertHtml=function(C,O){if(C===void 0&&(C=""),O===void 0&&(O=!1),C){var T=document.createElement("div");T.innerHTML=C;var R=Array.from(T.childNodes);if(R=R.filter(function(U){var W=U.nodeType,q=U.nodeName;return W===yo.TEXT_NODE||W===yo.ELEMENT_NODE&&!z9.has(q.toLowerCase())}),R.length!==0){var H=h.selection;if(H!=null){var M=null;A.isSelectedEmptyParagraph(h)&&!O&&(M=[H.focus.path[0]]),T.setAttribute("hidden","true"),document.body.appendChild(T);var K=0;R.forEach(function(U){var W=U.nodeType,q=U.nodeName,nt=U.textContent,lt=nt===void 0?"":nt;if(W!==yo.TEXT_NODE)if(q!=="BR"){var st=U,ut=!1;if(WN.includes(q.toLowerCase()))ut=!0;else for(var k in cv)if(st.matches(k)){ut=!0;break}if(ut){var S=SD(B(st),h);return Array.isArray(S)?(S.forEach(function($){return $9(h,$)}),K++):($9(h,S),K++),void(A.isSelectedVoidNode(h)&&h.move(1))}var P=window.getComputedStyle(st).display;A.isSelectedEmptyParagraph(h)||P.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(st.innerHTML,!0)}else h.insertText(`
`);else{if(!lt||!lt.trim())return;h.insertNode({text:lt})}}),K&&M&&A.isEmptyPath(h,M)&&N.removeNodes(h,{at:M}),T.remove()}}}},h.setHtml=function(C){C===void 0&&(C="");var O=h.isDisabled(),T=h.isFocused(),R=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var H=L9(h,C);if(N.insertFragment(h,H),T||(h.deselect(),h.blur()),O&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(R))}catch(M){h.select(E.start(h,[]))}},h}(function(m){var h=m;return h.getAllMenuKeys=function(){var b=[];for(var w in Xd)b.push(w);return b},h.getConfig=function(){var b=u9.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var D=h.getConfig().customAlert;D&&D(b,w)},h}(function(m){var h=xQ(qW());return h.id="wangEditor-"+_J++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(A.toDOMNode(h,h).focus({preventScroll:!0}),Fu.set(h,!0),b){var w=E.end(h,[]);N.select(h,w)}else{var D=lb.get(h);D?N.select(h,D):N.select(h,E.start(h,[]))}},h.isFocused=function(){return!!Fu.get(h)},h.blur=function(){A.toDOMNode(h,h).blur(),N.deselect(h),Fu.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(),TE.delete(h),_E.delete(b);var w=A.getToolbar(h);w&&(w.destroy(),Z1.delete(h),gD.delete(w));var D=A.getHoverbar(h);D&&(D.destroy(),iv.delete(h),PE.delete(D)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
You has disabled editor scroll, please do this yourself`,void console.warn(w)}var D=B("#"+b);if(D.length!==0){var x=D[0];if(!A.hasDOMNode(h,x))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,x);var C=A.getTextarea(h),O=C.$textAreaContainer,T=C.$scroll,R=D.offset().top,H=O.offset().top;T[0].scrollBy({top:R-H,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||A.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=jE.get(h);b!=null&&b.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return A.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=A.getToolbar(h);w&&(b=w.$box);var D=A.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==D[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);D.addClass("w-e-full-screen-container");var x=D.css("z-index");D.attr("data-z-index",x.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=A.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return A.getTextarea(h).$textAreaContainer[0]},h}()))))));if(n&&function(m,h){return YN(m,"data-w-e-textarea",h)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(m){m===void 0&&(m={});var h=Pj(ON),b={},w=m.MENU_CONF,D=w===void 0?{}:w;return M5(h,function(x,C){b[C]=wr(wr({},x),D[C]||{})}),delete m.MENU_CONF,wr({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(x,C){window.alert(C+`:
`+x)}},m)}(o);u9.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach(function(m){l=m(l)}),a!=null&&(l.children=L9(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 ett(n);TE.set(l,p),_E.set(p,l),p.changeViewState(),Fr(function(){var m=p.$scroll;m!=null&&m.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,m)});var v=void 0;Object.keys(d).length>0&&(v=new ctt,PE.set(v,l),iv.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(m,h){return rI(m,h,l,l)});var y=c.onCreated,g=c.onDestroyed;return y&&l.on("created",function(){return y(l)}),g&&l.on("destroyed",function(){return g(l)}),Fr(function(){return l.emit("created")}),l}var dtt=q1("splice"),ptt=X.TypeError,htt=Math.max,gtt=Math.min;xe({target:"Array",proto:!0,forced:!dtt},{splice:function(t,e){var n,r,o,i,a,u,s=Ia(this),l=gs(s),c=Hl(t,l),f=arguments.length;if(f===0?n=r=0:f===1?(n=0,r=l-c):(n=f-2,r=gtt(htt(Vp(e),0),l-c)),l+n-r>9007199254740991)throw ptt("Maximum allowed length exceeded");for(o=tN(s,r),i=0;i<r;i++)(a=c+i)in s&&Wd(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 vtt=function(){function t(e,n){var r=this;this.$toolbar=B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=_j(function(){r.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=n;var o=B(e);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),Fr(function(){r.registerItems(),r.changeToolbarState(),r.getEditorInstance().on("change",r.changeToolbarState)})}return t.prototype.getMenus=function(){return this.menus},t.prototype.getConfig=function(){return this.config},t.prototype.registerItems=function(){var e=this,n="",r=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=Pj(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,y){f.splice(s.index+y,0,v)}));var d=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),p=d.length;d.forEach(function(v,y){if(v==="|"){if(y===0||y+1===p||n==="|")return;var g=tI();return r.append(g),void(n=v)}if(typeof v=="string")return e.registerSingleItem(v,e),void(n=v);e.registerGroup(v),n="group"})},t.prototype.registerGroup=function(e){var n=this,r=this.$toolbar,o=function(l){return new nO(l)}(e),i=e.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||n.registerSingleItem(l,o)}),r.append(o.$elem)},t.prototype.registerSingleItem=function(e,n){var r=this.getEditorInstance(),o=n instanceof nO,i=this.menus,a=i[e];if(a==null){var u=Xd[e];if(u==null)throw new Error("Not found menu item factory by key '"+e+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+e+"') is not a function");a=u(),i[e]=a}else console.warn("Duplicated toolbar menu key '"+e+`'
重复注册了菜单栏 menu '`+e+"'");var s=nI(e,a,o);this.toolbarItems.push(s),vD.set(s,r),o?n.appendBarItem(s):n.$toolbar.append(s.$elem)},t.prototype.getEditorInstance=function(){var e=gD.get(this);if(e==null)throw new Error("Can not get editor instance");return e},t.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},t}(),ytt=sc.EXISTS,mtt=no.f,oI=Function.prototype,btt=ht(oI.toString),iI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,wtt=ht(iI.exec);function aI(t){var e=t.server,n=e===void 0?"":e,r=t.fieldName,o=r===void 0?"":r,i=t.maxFileSize,a=i===void 0?10485760:i,u=t.maxNumberOfFiles,s=u===void 0?100:u,l=t.meta,c=l===void 0?{}:l,f=t.metaWithUrl,d=f!==void 0&&f,p=t.headers,v=p===void 0?{}:p,y=t.withCredentials,g=y!==void 0&&y,m=t.timeout,h=m===void 0?1e4:m,b=t.onBeforeUpload,w=b===void 0?function(K){return K}:b,D=t.onSuccess,x=D===void 0?function(K,U){}:D,C=t.onError,O=C===void 0?function(K,U,W){console.error(K.name+" upload error",U,W)}:C,T=t.onProgress,R=T===void 0?function(K){}:T;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,U){var W=Vt(K.split("#"),2),q=W[0],nt=W[1],lt=[];M5(U,function(ut,k){lt.push(k+"="+ut)});var st=lt.join("&");return q=q.indexOf("?")>0?q+"&"+st:q+"?"+st,nt?q+"#"+nt:q}(H,c));var M=new Yf({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(qY,{endpoint:H,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return M.on("upload-success",function(K,U){var W=U.body,q=W===void 0?{}:W;try{x(K,q)}catch(nt){console.error("wangEditor upload file - onSuccess error",nt)}M.removeFile(K.id)}),M.on("progress",function(K){K<1||R(K)}),M.on("upload-error",function(K,U,W){try{O(K,U,W)}catch(q){console.error("wangEditor upload file - onError error",q)}M.removeFile(K.id)}),M.on("restriction-failed",function(K,U){try{O(K,U)}catch(W){console.error("wangEditor upload file - onError error",W)}M.removeFile(K.id)}),M}function ua(t){return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ua(t)}function Ett(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function We(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.forEach(function(o){Ett(t,o,n[o])})}return t}function ci(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fi(t,e,n){return e&&oO(t.prototype,e),n&&oO(t,n),t}function es(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jd(t,e){if(e&&(ua(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return es(t)}function ql(t){return ql=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ql(t)}function YE(t,e){return YE=Object.setPrototypeOf||function(n,r){return n.__proto__=r,n},YE(t,e)}function J1(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&YE(t,e)}an&&!ytt&&mtt(oI,"name",{configurable:!0,get:function(){try{return wtt(iI,btt(this))[1]}catch(t){return""}}});var Dtt={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},ti=new(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ci(this,t),this.init(e,n)}return fi(t,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||Dtt,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,n,r,o){return o&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(r).concat(this.prefix," ").concat(e[0])),this.logger[n](e))}},{key:"create",value:function(e){return new t(this.logger,We({},{prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}}]),t}()),Aa=function(){function t(){ci(this,t),this.observers={}}return fi(t,[{key:"on",value:function(e,n){var r=this;return e.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(n)}),this}},{key:"off",value:function(e,n){this.observers[e]&&(n?this.observers[e]=this.observers[e].filter(function(r){return r!==n}):delete this.observers[e])}},{key:"emit",value:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[e].concat(r))})}}}]),t}();function rf(){var t,e,n=new Promise(function(r,o){t=r,e=o});return n.resolve=t,n.reject=e,n}function iO(t){return t==null?"":""+t}function Ctt(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function jD(t,e,n){function r(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!t||typeof t=="string"}for(var i=typeof e!="string"?[].concat(e):e.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!t[a]&&n&&(t[a]=new n),t=Object.prototype.hasOwnProperty.call(t,a)?t[a]:{}}return o()?{}:{obj:t,k:r(i.shift())}}function aO(t,e,n){var r=jD(t,e,Object);r.obj[r.k]=n}function dv(t,e){var n=jD(t,e),r=n.obj,o=n.k;if(r)return r[o]}function uO(t,e,n){var r=dv(t,n);return r!==void 0?r:dv(e,n)}function uI(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):uI(t[r],e[r],n):t[r]=e[r]);return t}function Is(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var xtt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Stt(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return xtt[e]}):t}var Q1=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function sI(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),o=t,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];s===void 0&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=r.slice(i+a).join(n);return l?sI(s,l,n):void 0}o=o[r[i]]}return o}}var Att=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ci(this,e),r=Jd(this,ql(e).call(this)),Q1&&Aa.call(es(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 J1(e,Aa),fi(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var r=this.options.ns.indexOf(n);r>-1&&this.options.ns.splice(r,1)}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[n,r];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),n.indexOf(".")>-1&&(s=n.split("."));var l=dv(this.data,s);return l||!u||typeof o!="string"?l:sI(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),aO(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=dv(this.data,s)||{};i?uI(l,o,a):l=We({},l,o),aO(this.data,s,l),u.silent||this.emit("added",n,r,o)}},{key:"removeResourceBundle",value:function(n,r){this.hasResourceBundle(n,r)&&delete this.data[n][r],this.removeNamespaces(r),this.emit("removed",n,r)}},{key:"hasResourceBundle",value:function(n,r){return this.getResource(n,r)!==void 0}},{key:"getResourceBundle",value:function(n,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?We({},{},this.getResource(n,r)):this.getResource(n,r)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),e}(),lI={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,o){var i=this;return t.forEach(function(a){i.processors[a]&&(e=i.processors[a].process(e,n,r,o))}),e}},sO={},lO=function(t){function e(n){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ci(this,e),r=Jd(this,ql(e).call(this)),Q1&&Aa.call(es(r)),Ctt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,es(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=ti.create("translator"),r}return J1(e,Aa),fi(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var o=this.resolve(n,r);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(n,r){var o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ns||this.options.defaultNS;if(o&&n.indexOf(o)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:a};var s=n.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),n=s.join(i)}return typeof a=="string"&&(a=[a]),{key:n,namespaces:a}}},{key:"translate",value:function(n,r,o){var i=this;if(ua(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),y=v&&v.res,g=v&&v.usedKey||s,m=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(y),b=["[object Number]","[object Function]","[object RegExp]"],w=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,x=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(D&&y&&x&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,We({},r,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var C=h==="[object Array]",O=C?[]:{},T=C?m:g;for(var R in y)if(Object.prototype.hasOwnProperty.call(y,R)){var H="".concat(T).concat(a).concat(R);O[R]=this.translate(H,We({},r,{joinArrays:!1,ns:l})),O[R]===H&&(O[R]=y[R])}y=O}}else if(D&&typeof w=="string"&&h==="[object Array]")(y=y.join(w))&&(y=this.extendTranslation(y,n,r,o));else{var M=!1,K=!1,U=r.count!==void 0&&typeof r.count!="string",W=e.hasDefaultValue(r),q=U?this.pluralResolver.getSuffix(f,r.count):"",nt=r["defaultValue".concat(q)]||r.defaultValue;!this.isValidLookup(y)&&W&&(M=!0,y=nt),this.isValidLookup(y)||(K=!0,y=s);var lt=r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,st=lt&&K?void 0:y,ut=W&&nt!==y&&this.options.updateMissing;if(K||M||ut){if(this.logger.log(ut?"updateKey":"missingKey",f,c,s,ut?nt:y),a){var k=this.resolve(s,We({},r,{keySeparator:!1}));k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var S=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(var $=0;$<P.length;$++)S.push(P[$]);else this.options.saveMissingTo==="all"?S=this.languageUtils.toResolveHierarchy(r.lng||this.language):S.push(r.lng||this.language);var Y=function(V,at,vt){i.options.missingKeyHandler?i.options.missingKeyHandler(V,c,at,ut?vt:st,ut,r):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(V,c,at,ut?vt:st,ut,r),i.emit("missingKey",V,c,at,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?S.forEach(function(V){i.pluralResolver.getSuffixes(V).forEach(function(at){Y([V],s+at,r["defaultValue".concat(at)]||nt)})}):Y(S,s,nt))}y=this.extendTranslation(y,n,r,v,o),K&&y===s&&this.options.appendNamespaceToMissingKey&&(y="".concat(c,":").concat(s)),(K||M)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(n,r,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(We({},o,{interpolation:We({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=n.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=We({},this.options.interpolation.defaultVariables,f)),n=this.interpolator.interpolate(n,f,o.lng||this.language,o),l){var d=n.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(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=lI.handle(v,n,r,this.options&&this.options.postProcessPassResolved?We({i18nResolved:i},o):o,this)),n}},{key:"resolve",value:function(n){var r,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!s.isValidLookup(r)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",y=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach(function(m){s.isValidLookup(r)||(u=m,!sO["".concat(g[0],"-").concat(m)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(sO["".concat(g[0],"-").concat(m)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(function(h){if(!s.isValidLookup(r)){a=h;var b,w,D=d,x=[D];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(x,d,h,m,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&y&&x.push(D+b),y&&x.push(D+="".concat(s.options.contextSeparator).concat(l.context)),v&&x.push(D+=b));w=x.pop();)s.isValidLookup(r)||(i=w,r=s.getResource(h,m,w,l))}}))})}}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(n){return!(n===void 0||!this.options.returnNull&&n===null||!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,r,o,i):this.resourceStore.getResource(n,r,o,i)}}],[{key:"hasDefaultValue",value:function(n){var r="defaultValue";for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r===o.substring(0,r.length)&&n[o]!==void 0)return!0;return!1}}]),e}();function Tb(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Ott=function(){function t(e){ci(this,t),this.options=e,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ti.create("languageUtils")}return fi(t,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2?null:(n.pop(),n[n.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(n.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Tb(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]=Tb(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Tb(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n,r=this;return e?(e.forEach(function(o){if(!n){var i=r.formatLanguageCode(o);r.options.supportedLngs&&!r.isSupportedCode(i)||(n=i)}}),!n&&this.options.supportedLngs&&e.forEach(function(o){if(!n){var i=r.getLanguagePartFromCode(o);if(r.isSupportedCode(i))return n=i;n=r.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n):null}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],a=function(u){u&&(r.isSupportedCode(u)?i.push(u):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):typeof e=="string"&&a(this.formatLanguageCode(e)),o.forEach(function(u){i.indexOf(u)<0&&a(r.formatLanguageCode(u))}),i}}]),t}(),ktt=[{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}],Btt={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};function Ftt(){var t={};return ktt.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:Btt[e.fc]}})}),t}var Ttt=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ci(this,t),this.languageUtils=e,this.options=n,this.logger=ti.create("pluralResolver"),this.rules=Ftt()}return fi(t,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=this.getRule(e);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){return this.getSuffixes(e).map(function(r){return n+r})}},{key:"getSuffixes",value:function(e){var n=this,r=this.getRule(e);return r?r.numbers.map(function(o){return n.getSuffix(e,o)}):[]}},{key:"getSuffix",value:function(e,n){var r=this,o=this.getRule(e);if(o){var i=o.noAbs?o.plurals(n):o.plurals(Math.abs(n)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return r.options.prepend&&a.toString()?r.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),t}(),_tt=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ci(this,t),this.logger=ti.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return fi(t,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Stt,this.escapeValue=n.escapeValue===void 0||n.escapeValue,this.useRawValueToEscape=n.useRawValueToEscape!==void 0&&n.useRawValueToEscape,this.prefix=n.prefix?Is(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Is(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?Is(n.nestingPrefix):n.nestingPrefixEscaped||Is("$t("),this.nestingSuffix=n.nestingSuffix?Is(n.nestingSuffix):n.nestingSuffixEscaped||Is(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0&&n.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(y){return y.replace(/\$/g,"$$$$")}var f=function(y){if(y.indexOf(s.formatSeparator)<0){var g=uO(n,l,y);return s.alwaysFormat?s.format(g,void 0,r,We({},o,n,{interpolationkey:y})):g}var m=y.split(s.formatSeparator),h=m.shift().trim(),b=m.join(s.formatSeparator).trim();return s.format(uO(n,l,h),b,r,We({},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(y){return c(y)}},{regex:this.regexp,safeValue:function(y){return s.escapeValue?c(s.escape(y)):c(y)}}];return v.forEach(function(y){for(u=0;i=y.regex.exec(e);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(e,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=iO(a));var m=y.safeValue(a);if(e=e.replace(i[0],m),p?(y.regex.lastIndex+=m.length,y.regex.lastIndex-=i[0].length):y.regex.lastIndex=0,++u>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=We({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var y=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(y[1]);d=y[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=We({},p,u))}catch(m){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),m),"".concat(d).concat(v).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){var f=r[1].split(this.formatSeparator).map(function(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]===e&&typeof o!="string")return o;typeof o!="string"&&(o=iO(o)),o||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce(function(d,p){return i.format(d,p,a.lng,We({},a,{interpolationkey:r[1].trim()}))},o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}]),t}(),Ptt=function(t){function e(n,r,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ci(this,e),i=Jd(this,ql(e).call(this)),Q1&&Aa.call(es(i)),i.backend=n,i.store=r,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=ti.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return J1(e,Aa),fi(e,[{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=jD(c,f,Object),y=v.obj,g=v.k;y[g]=y[g]||[],y[g].push(d)})(l.loaded,[a],u),function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)}(l.pending,n),r&&l.errors.push(r),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[o](n,r,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,n,r,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof r=="string"&&(r=[r]);var u=this.queueLoad(n,r,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(n,r,o){this.prepareLoading(n,r,{},o)}},{key:"reload",value:function(n,r,o){this.prepareLoading(n,r,{reload:!0},o)}},{key:"loadOne",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=n.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&r.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&r.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),r.loaded(n,s,l)})}},{key:"saveMissing",value:function(n,r,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(n,r,o,i,null,We({},u,{isUpdate:a})),n&&n[0]&&this.store.addResource(n[0],r,o,i))}}]),e}();function jtt(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(ua(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),ua(t[2])==="object"||ua(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function cO(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&(t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t.supportedLngs=t.whitelist),t.nonExplicitWhitelist&&(t.nonExplicitSupportedLngs=t.nonExplicitWhitelist),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Qh(){}var Ntt=function(t){function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ci(this,e),n=Jd(this,ql(e).call(this)),Q1&&Aa.call(es(n)),n.options=cO(r),n.services={},n.logger=ti,n.modules={external:[]},o&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,o),Jd(n,es(n));setTimeout(function(){n.init(r,o)},0)}return n}return J1(e,Aa),fi(e,[{key:"init",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(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=We({},jtt(),this.options,cO(r)),this.format=this.options.interpolation.format,o||(o=Qh),!this.options.isClone){this.modules.logger?ti.init(i(this.modules.logger),this.options):ti.init(null,this.options);var a=new Ott(this.options);this.store=new Att(this.options.resources,this.options);var u=this.services;u.logger=ti,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new Ttt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new _tt(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Ptt(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(p){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];n.emit.apply(n,[p].concat(y))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new lO(this.services,this.options),this.translator.on("*",function(p){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];n.emit.apply(n,[p].concat(y))}),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=rf(),d=function(){var p=function(v,y){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(y),o(v,y)};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]:Qh,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=rf();return n||(n=this.languages),r||(r=this.options.ns),o||(o=Qh),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"&&lI.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=rf();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(ua(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=We({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",y=o?"".concat(o).concat(v).concat(s):s;return i.t(y,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=rf();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=rf();typeof n=="string"&&(n=[n]);var i=this.options.preload||[],a=n.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}},{key:"dir",value:function(n){return n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),n?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new e(n,r)}},{key:"cloneInstance",value:function(){var n=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qh,i=We({},this.options,r,{isClone:!0}),a=new e(i),u=["store","services","language"];return u.forEach(function(s){a[s]=n[s]}),a.services=We({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new lO(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),e}(),pv=new Ntt;function Kn(t,e){pv.addResourceBundle(t,"translation",e,!0,!0)}pv.init({lng:"zh-CN",resources:{}});var tt=pv.t.bind(pv);Kn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Kn("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var Itt=C5?{}.toString:function(){return"[object "+_1(this)+"]"};C5||qu(Object.prototype,"toString",Itt,{unsafe:!0});var fO=Array.isArray||function(t){return xu(t)=="Array"},cI=function(){},Ltt=[],fI=jp("Reflect","construct"),ND=/^\s*(?:class|function)\b/,Rtt=oe(ND.exec),Mtt=!ND.exec(cI),of=function(t){if(!nn(t))return!1;try{return fI(cI,Ltt,t),!0}catch(e){return!1}},ztt=!fI||cn(function(){var t;return of(of.call)||!of(Object)||!of(function(){t=!0})||t})?function(t){if(!nn(t))return!1;switch(_1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Mtt||!!Rtt(ND,m5(t))}:of,$tt=In("species"),dO=Dt.Array,Htt=function(t,e){return new(function(n){var r;return fO(n)&&(r=n.constructor,(ztt(r)&&(r===dO||fO(r.prototype))||mo(r)&&(r=r[$tt])===null)&&(r=void 0)),r===void 0?dO:r}(t))(e===0?0:e)},pO=oe([].push),Bi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=h5(s),y=kP(v),g=zP(l,c),m=T1(y),h=0,b=f||Htt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:pO(w,d)}else switch(t){case 4:return!1;case 7:pO(w,d)}return i?-1:r||o?o:w}},Vtt={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,Utt=function(t,e){var n=[][t];return!!n&&cn(function(){n.call(null,e||function(){throw 1},1)})}("forEach"),_b=Utt?[].forEach:function(t){return Vtt(this,t,arguments.length>1?arguments[1]:void 0)},dI=function(t){if(t&&t.forEach!==_b)try{$n(t,"forEach",_b)}catch(e){t.forEach=_b}};for(var Pb in _g)_g[Pb]&&dI(Dt[Pb]&&Dt[Pb].prototype);dI(VP),Kn("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"}}),Kn("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 Wtt={type:"paragraph",renderElem:function(t,e,n){return wt("p",null,e)}},hv=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ty(t){var e={exports:{}};return t(e,e.exports),e.exports}var Fi,X0,t0=function(t){return t&&t.Math==Math&&t},At=t0(typeof globalThis=="object"&&globalThis)||t0(typeof window=="object"&&window)||t0(typeof self=="object"&&self)||t0(typeof hv=="object"&&hv)||function(){return this}()||Function("return this")(),Se=function(t){try{return!!t()}catch(e){return!0}},to=!Se(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),af=Function.prototype.call,Le=af.bind?af.bind(af):function(){return af.apply(af,arguments)},hO={}.propertyIsEnumerable,gO=Object.getOwnPropertyDescriptor,Gtt=gO&&!hO.call({1:2},1)?function(t){var e=gO(this,t);return!!e&&e.enumerable}:hO,pI={f:Gtt},ID=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},hI=Function.prototype,XE=hI.bind,ZE=hI.call,qtt=XE&&XE.bind(ZE),mt=XE?function(t){return t&&qtt(ZE,t)}:function(t){return t&&function(){return ZE.apply(t,arguments)}},Ktt=mt({}.toString),Ytt=mt("".slice),sa=function(t){return Ytt(Ktt(t),8,-1)},jb=At.Object,Xtt=mt("".split),ey=Se(function(){return!jb("z").propertyIsEnumerable(0)})?function(t){return sa(t)=="String"?Xtt(t,""):jb(t)}:jb,Ztt=At.TypeError,Tr=function(t){if(t==null)throw Ztt("Can't call method on "+t);return t},pc=function(t){return ey(Tr(t))},On=function(t){return typeof t=="function"},Ur=function(t){return typeof t=="object"?t!==null:On(t)},Jtt=function(t){return On(t)?t:void 0},Gp=function(t,e){return arguments.length<2?Jtt(At[t]):At[t]&&At[t][e]},gI=mt({}.isPrototypeOf),Nb=Gp("navigator","userAgent")||"",vO=At.process,yO=At.Deno,mO=vO&&vO.versions||yO&&yO.version,bO=mO&&mO.v8;bO&&(X0=(Fi=bO.split("."))[0]>0&&Fi[0]<4?1:+(Fi[0]+Fi[1])),!X0&&Nb&&(!(Fi=Nb.match(/Edge\/(\d+)/))||Fi[1]>=74)&&(Fi=Nb.match(/Chrome\/(\d+)/))&&(X0=+Fi[1]);var JE=X0,QE=!!Object.getOwnPropertySymbols&&!Se(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&JE&&JE<41}),LD=QE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qtt=At.Object,Ib=LD?function(t){return typeof t=="symbol"}:function(t){var e=Gp("Symbol");return On(e)&&gI(e.prototype,Qtt(t))},tet=At.String,vI=function(t){try{return tet(t)}catch(e){return"Object"}},eet=At.TypeError,yI=function(t){if(On(t))return t;throw eet(vI(t)+" is not a function")},ny=function(t,e){var n=t[e];return n==null?void 0:yI(n)},net=At.TypeError,ret=Object.defineProperty,RD=function(t,e){try{ret(At,t,{value:e,configurable:!0,writable:!0})}catch(n){At[t]=e}return e},la=At["__core-js_shared__"]||RD("__core-js_shared__",{}),MD=ty(function(t){(t.exports=function(e,n){return la[e]||(la[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),oet=At.Object,qp=function(t){return oet(Tr(t))},iet=mt({}.hasOwnProperty),Cr=Object.hasOwn||function(t,e){return iet(qp(t),e)},aet=0,uet=Math.random(),set=mt(1 .toString),mI=function(t){return"Symbol("+(t===void 0?"":t)+")_"+set(++aet+uet,36)},uf=MD("wks"),_u=At.Symbol,wO=_u&&_u.for,cet=LD?_u:_u&&_u.withoutSetter||mI,fr=function(t){if(!Cr(uf,t)||!QE&&typeof uf[t]!="string"){var e="Symbol."+t;QE&&Cr(_u,t)?uf[t]=_u[t]:uf[t]=LD&&wO?wO(e):cet(e)}return uf[t]},fet=At.TypeError,det=fr("toPrimitive"),zD=function(t){var e=function(n,r){if(!Ur(n)||Ib(n))return n;var o,i=ny(n,det);if(i){if(o=Le(i,n,r),!Ur(o)||Ib(o))return o;throw fet("Can't convert object to primitive value")}return function(a,u){var s,l;if(On(s=a.toString)&&!Ur(l=Le(s,a))||On(s=a.valueOf)&&!Ur(l=Le(s,a)))return l;throw net("Can't convert object to primitive value")}(n)}(t,"string");return Ib(e)?e:e+""},t6=At.document,pet=Ur(t6)&&Ur(t6.createElement),$D=function(t){return pet?t6.createElement(t):{}},bI=!to&&!Se(function(){return Object.defineProperty($D("div"),"a",{get:function(){return 7}}).a!=7}),EO=Object.getOwnPropertyDescriptor,HD={f:to?EO:function(t,e){if(t=pc(t),e=zD(e),bI)try{return EO(t,e)}catch(n){}if(Cr(t,e))return ID(!Le(pI.f,t,e),t[e])}},het=At.String,get=At.TypeError,or=function(t){if(Ur(t))return t;throw get(het(t)+" is not an object")},vet=At.TypeError,DO=Object.defineProperty,hc={f:to?DO:function(t,e,n){if(or(t),e=zD(e),or(n),bI)try{return DO(t,e,n)}catch(r){}if("get"in n||"set"in n)throw vet("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Kl=to?function(t,e,n){return hc.f(t,e,ID(1,n))}:function(t,e,n){return t[e]=n,t},yet=mt(Function.toString);On(la.inspectSource)||(la.inspectSource=function(t){return yet(t)});var gv,hd,vv,VD=la.inspectSource,CO=At.WeakMap,met=On(CO)&&/native code/.test(VD(CO)),xO=MD("keys"),wI=function(t){return xO[t]||(xO[t]=mI(t))},UD={},e6=At.TypeError,bet=At.WeakMap;if(met||la.state){var Ja=la.state||(la.state=new bet),wet=mt(Ja.get),SO=mt(Ja.has),Eet=mt(Ja.set);gv=function(t,e){if(SO(Ja,t))throw new e6("Object already initialized");return e.facade=t,Eet(Ja,t,e),e},hd=function(t){return wet(Ja,t)||{}},vv=function(t){return SO(Ja,t)}}else{var Ls=wI("state");UD[Ls]=!0,gv=function(t,e){if(Cr(t,Ls))throw new e6("Object already initialized");return e.facade=t,Kl(t,Ls,e),e},hd=function(t){return Cr(t,Ls)?t[Ls]:{}},vv=function(t){return Cr(t,Ls)}}var n6={set:gv,get:hd,has:vv,enforce:function(t){return vv(t)?hd(t):gv(t,{})},getterFor:function(t){return function(e){var n;if(!Ur(e)||(n=hd(e)).type!==t)throw e6("Incompatible receiver, "+t+" required");return n}}},EI=Function.prototype,Det=to&&Object.getOwnPropertyDescriptor,Lb=Cr(EI,"name"),ry={EXISTS:Lb,PROPER:Lb&&function(){}.name==="something",CONFIGURABLE:Lb&&(!to||to&&Det(EI,"name").configurable)},Qd=ty(function(t){var e=ry.CONFIGURABLE,n=n6.get,r=n6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;On(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Cr(u,"name")||e&&u.name!==p)&&Kl(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==At?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Kl(i,a,u)):f?i[a]=u:RD(a,u)})(Function.prototype,"toString",function(){return On(this)&&n(this).source||VD(this)})}),Cet=Math.ceil,xet=Math.floor,gc=function(t){var e=+t;return e!=e||e===0?0:(e>0?xet:Cet)(e)},Aet=Math.max,Oet=Math.min,tp=function(t,e){var n=gc(t);return n<0?Aet(n+e,0):Oet(n,e)},ket=Math.min,Kp=function(t){return t>0?ket(gc(t),9007199254740991):0},oy=function(t){return Kp(t.length)},AO=function(t){return function(e,n,r){var o,i=pc(e),a=oy(i),u=tp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},DI={includes:AO(!0),indexOf:AO(!1)},Bet=DI.indexOf,OO=mt([].push),CI=function(t,e){var n,r=pc(t),o=0,i=[];for(n in r)!Cr(UD,n)&&Cr(r,n)&&OO(i,n);for(;e.length>o;)Cr(r,n=e[o++])&&(~Bet(i,n)||OO(i,n));return i},yv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fet=yv.concat("length","prototype"),Tet={f:Object.getOwnPropertyNames||function(t){return CI(t,Fet)}},xI={f:Object.getOwnPropertySymbols},_et=mt([].concat),Pet=Gp("Reflect","ownKeys")||function(t){var e=Tet.f(or(t)),n=xI.f;return n?_et(e,n(t)):e},jet=function(t,e){for(var n=Pet(e),r=hc.f,o=HD.f,i=0;i<n.length;i++){var a=n[i];Cr(t,a)||r(t,a,o(e,a))}},Net=/#|\.prototype\./,Yp=function(t,e){var n=Let[Iet(t)];return n==Met||n!=Ret&&(On(e)?Se(e):!!e)},Iet=Yp.normalize=function(t){return String(t).replace(Net,".").toLowerCase()},Let=Yp.data={},Ret=Yp.NATIVE="N",Met=Yp.POLYFILL="P",zet=Yp,$et=HD.f,tn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?At:l?At[u]||RD(u,{}):(At[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=$et(n,r))&&a.value:n[r],!zet(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;jet(i,o)}(t.sham||o&&o.sham)&&Kl(i,"sham",!0),Qd(n,r,i,t)}},kO=mt(mt.bind),mv=Array.isArray||function(t){return sa(t)=="Array"},SI={};SI[fr("toStringTag")]="z";var WD=String(SI)==="[object z]",Het=fr("toStringTag"),Vet=At.Object,Uet=sa(function(){return arguments}())=="Arguments",GD=WD?sa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Vet(t),Het))=="string"?n:Uet?sa(e):(r=sa(e))=="Object"&&On(e.callee)?"Arguments":r},AI=function(){},Wet=[],OI=Gp("Reflect","construct"),qD=/^\s*(?:class|function)\b/,Get=mt(qD.exec),qet=!qD.exec(AI),sf=function(t){if(!On(t))return!1;try{return OI(AI,Wet,t),!0}catch(e){return!1}},KD=!OI||Se(function(){var t;return sf(sf.call)||!sf(Object)||!sf(function(){t=!0})||t})?function(t){if(!On(t))return!1;switch(GD(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return qet||!!Get(qD,VD(t))}:sf,Ket=fr("species"),BO=At.Array,Yet=function(t,e){return new(function(n){var r;return mv(n)&&(r=n.constructor,(KD(r)&&(r===BO||mv(r.prototype))||Ur(r)&&(r=r[Ket])===null)&&(r=void 0)),r===void 0?BO:r}(t))(e===0?0:e)},FO=mt([].push),Ti=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=qp(s),y=ey(v),g=function(D,x){return yI(D),x===void 0?D:kO?kO(D,x):function(){return D.apply(x,arguments)}}(l,c),m=oy(y),h=0,b=f||Yet,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:FO(w,d)}else switch(t){case 4:return!1;case 7:FO(w,d)}return i?-1:r||o?o:w}},iy={forEach:Ti(0),map:Ti(1),filter:Ti(2),some:Ti(3),every:Ti(4),find:Ti(5),findIndex:Ti(6),filterReject:Ti(7)},Xet=fr("species"),YD=function(t){return JE>=51||!Se(function(){var e=[];return(e.constructor={})[Xet]=function(){return{foo:1}},e[t](Boolean).foo!==1})},Zet=iy.filter;tn({target:"Array",proto:!0,forced:!YD("filter")},{filter:function(t){return Zet(this,t,arguments.length>1?arguments[1]:void 0)}});var Jet=WD?{}.toString:function(){return"[object "+GD(this)+"]"};WD||Qd(Object.prototype,"toString",Jet,{unsafe:!0});var e0,Qet=At.String,Ce=function(t){if(GD(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Qet(t)},kI=function(){var t=or(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},XD=At.RegExp,r6=Se(function(){var t=XD("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),tnt=r6||Se(function(){return!XD("a","y").sticky}),BI={BROKEN_CARET:r6||Se(function(){var t=XD("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:tnt,UNSUPPORTED_Y:r6},wl=Object.keys||function(t){return CI(t,yv)},ent=to?Object.defineProperties:function(t,e){or(t);for(var n,r=pc(e),o=wl(e),i=o.length,a=0;i>a;)hc.f(t,n=o[a++],r[n]);return t},nnt=Gp("document","documentElement"),FI=wI("IE_PROTO"),Rb=function(){},TI=function(t){return"<script>"+t+"<\/script>"},TO=function(t){t.write(TI("")),t.close();var e=t.parentWindow.Object;return t=null,e},Z0=function(){try{e0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Z0=typeof document!="undefined"?document.domain&&e0?TO(e0):((e=$D("iframe")).style.display="none",nnt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(TI("document.F=Object")),t.close(),t.F):TO(e0);for(var n=yv.length;n--;)delete Z0.prototype[yv[n]];return Z0()};UD[FI]=!0;var _O,Mb,_I=Object.create||function(t,e){var n;return t!==null?(Rb.prototype=or(t),n=new Rb,Rb.prototype=null,n[FI]=t):n=Z0(),e===void 0?n:ent(n,e)},rnt=At.RegExp,ont=Se(function(){var t=rnt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),int=At.RegExp,ant=Se(function(){var t=int("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),unt=n6.get,snt=MD("native-string-replace",String.prototype.replace),bv=RegExp.prototype.exec,o6=bv,lnt=mt("".charAt),cnt=mt("".indexOf),fnt=mt("".replace),zb=mt("".slice),$b=(Mb=/b*/g,Le(bv,_O=/a/,"a"),Le(bv,Mb,"a"),_O.lastIndex!==0||Mb.lastIndex!==0),PO=BI.BROKEN_CARET,Hb=/()??/.exec("")[1]!==void 0;($b||Hb||PO||ont||ant)&&(o6=function(t){var e,n,r,o,i,a,u,s=this,l=unt(s),c=Ce(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Le(o6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=PO&&s.sticky,v=Le(kI,s),y=s.source,g=0,m=c;if(p&&(v=fnt(v,"y",""),cnt(v,"g")===-1&&(v+="g"),m=zb(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&lnt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),Hb&&(n=new RegExp("^"+y+"$(?!\\s)",v)),$b&&(r=s.lastIndex),o=Le(bv,p?n:s,m),p?o?(o.input=zb(o.input,g),o[0]=zb(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:$b&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Hb&&o&&o.length>1&&Le(snt,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=_I(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ep=o6;tn({target:"RegExp",proto:!0,forced:/./.exec!==ep},{exec:ep});var ZD=Function.prototype,jO=ZD.apply,dnt=ZD.bind,NO=ZD.call,PI=typeof Reflect=="object"&&Reflect.apply||(dnt?NO.bind(jO):function(){return NO.apply(jO,arguments)}),pnt=fr("species"),Vb=RegExp.prototype,JD=function(t,e,n,r){var o=fr(t),i=!Se(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Se(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[pnt]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=mt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=mt(l),y=c.exec;return y===ep||y===Vb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Qd(String.prototype,t,s[0]),Qd(Vb,o,s[1])}r&&Kl(Vb[o],"sham",!0)},hnt=mt("".charAt),IO=mt("".charCodeAt),gnt=mt("".slice),vnt=function(t){return function(e,n){var r,o,i=Ce(Tr(e)),a=gc(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=IO(i,a))<55296||r>56319||a+1===u||(o=IO(i,a+1))<56320||o>57343?t?hnt(i,a):r:t?gnt(i,a,a+2):o-56320+(r-55296<<10)+65536}},ynt=vnt(!0),QD=function(t,e,n){return e+(n?ynt(t,e).length:1)},mnt=Math.floor,Ub=mt("".charAt),bnt=mt("".replace),Wb=mt("".slice),wnt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ent=/\$([$&'`]|\d{1,2})/g,Dnt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Ent;return o!==void 0&&(o=qp(o),s=wnt),bnt(i,s,function(l,c){var f;switch(Ub(c,0)){case"$":return"$";case"&":return t;case"`":return Wb(e,0,n);case"'":return Wb(e,a);case"<":f=o[Wb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=mnt(d/10);return p===0?l:p<=u?r[p-1]===void 0?Ub(c,1):r[p-1]+Ub(c,1):l}f=r[d-1]}return f===void 0?"":f})},Cnt=At.TypeError,np=function(t,e){var n=t.exec;if(On(n)){var r=Le(n,t,e);return r!==null&&or(r),r}if(sa(t)==="RegExp")return Le(ep,t,e);throw Cnt("RegExp#exec called on incompatible receiver")},i6=fr("replace"),xnt=Math.max,Snt=Math.min,Ant=mt([].concat),Gb=mt([].push),LO=mt("".indexOf),RO=mt("".slice),Ont="a".replace(/./,"$0")==="$0",MO=!!/./[i6]&&/./[i6]("a","$0")==="";JD("replace",function(t,e,n){var r=MO?"$":"$0";return[function(o,i){var a=Tr(this),u=o==null?void 0:ny(o,i6);return u?Le(u,o,a,i):Le(e,Ce(a),o,i)},function(o,i){var a=or(this),u=Ce(o);if(typeof i=="string"&&LO(i,r)===-1&&LO(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=On(i);l||(i=Ce(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=np(a,u);if(p===null||(Gb(d,p),!c))break;Ce(p[0])===""&&(a.lastIndex=QD(u,Kp(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=Ce((p=d[m])[0]),b=xnt(Snt(gc(p.index),u.length),0),w=[],D=1;D<p.length;D++)Gb(w,(v=p[D])===void 0?v:String(v));var x=p.groups;if(l){var C=Ant([h],w,b,u);x!==void 0&&Gb(C,x);var O=Ce(PI(i,void 0,C))}else O=Dnt(h,u,b,w,x,i);b>=g&&(y+=RO(u,g,b)+O,g=b+h.length)}return y+RO(u,g)}]},!!Se(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Ont||MO);var a6=fr("unscopables"),u6=Array.prototype;u6[a6]==null&&hc.f(u6,a6,{configurable:!0,value:_I(null)});var jI=function(t){u6[a6][t]=!0},knt=iy.find,zO=!0;"find"in[]&&Array(1).find(function(){zO=!1}),tn({target:"Array",proto:!0,forced:zO},{find:function(t){return knt(this,t,arguments.length>1?arguments[1]:void 0)}}),jI("find");var Bnt=fr("match"),NI=function(t){var e;return Ur(t)&&((e=t[Bnt])!==void 0?!!e:sa(t)=="RegExp")},Fnt=At.TypeError,Tnt=fr("species"),II=function(t,e,n){var r=zD(e);r in t?hc.f(t,r,ID(0,n)):t[r]=n},_nt=At.Array,Pnt=Math.max,$O=function(t,e,n){for(var r=oy(t),o=tp(e,r),i=tp(n===void 0?r:n,r),a=_nt(Pnt(i-o,0)),u=0;o<i;o++,u++)II(a,u,t[o]);return a.length=u,a},Rs=BI.UNSUPPORTED_Y,jnt=Math.min,LI=[].push,Nnt=mt(/./.exec),Ms=mt(LI),lf=mt("".slice);JD("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Ce(Tr(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!NI(o))return Le(e,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Le(ep,v,a))&&!((l=v.lastIndex)>p&&(Ms(f,lf(a,p,s.index)),s.length>1&&s.index<a.length&&PI(LI,f,$O(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&Nnt(v,"")||Ms(f,""):Ms(f,lf(a,p)),f.length>u?$O(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Le(e,this,o,i)}:e,[function(o,i){var a=Tr(this),u=o==null?void 0:ny(o,t);return u?Le(u,o,a,i):Le(r,Ce(a),o,i)},function(o,i){var a=or(this),u=Ce(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var x,C=or(w).constructor;return C===void 0||(x=or(C)[Tnt])==null?D:function(O){if(KD(O))return O;throw Fnt(vI(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Rs?"g":"y"),d=new l(Rs?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return np(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=Rs?0:y;var m,h=np(d,Rs?lf(u,y):u);if(h===null||(m=jnt(Kp(d.lastIndex+(Rs?y:0)),u.length))===v)y=QD(u,y,c);else{if(Ms(g,lf(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Ms(g,h[b]),g.length===p)return g;y=v=m}}return Ms(g,lf(u,v)),g}]},!!Se(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Rs);var s6=`
\v\f\r    \u2028\u2029\uFEFF`,HO=mt("".replace),wv="["+s6+"]",Int=RegExp("^"+wv+wv+"*"),Lnt=RegExp(wv+wv+"*$"),qb=function(t){return function(e){var n=Ce(Tr(e));return 1&t&&(n=HO(n,Int,"")),2&t&&(n=HO(n,Lnt,"")),n}},Rnt={start:qb(1),end:qb(2),trim:qb(3)},Mnt=ry.PROPER,znt=Rnt.trim;function t8(t){return B("<div>"+t+"</div>").children().filter(function(e){return e.tagName!=="BR"}).length===0}function vc(t){return t.length===0?"":t[0].outerHTML}function yc(t){return t.length?t[0].tagName.toLowerCase():""}function Zr(t,e){for(var n="",r=(t.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===e&&(n=u[1].trim())}}return n}tn({target:"String",proto:!0,forced:Se(function(){return!!s6.trim()||"…".trim()!=="…"||Mnt&&s6.trim.name!=="trim"})},{trim:function(){return znt(this)}}),tn({global:!0},{globalThis:At}),Wg&&(B.fn.css=Wg),kr&&(B.fn.append=kr),BA&&(B.fn.prepend=BA),Tl&&(B.fn.addClass=Tl),_l&&(B.fn.removeClass=_l),Pl&&(B.fn.hasClass=Pl),Bo&&(B.fn.on=Bo),SA&&(B.fn.off=SA),xa&&(B.fn.focus=xa),Or&&(B.fn.attr=Or),$g&&(B.fn.removeAttr=$g),Nl&&(B.fn.hide=Nl),Ug&&(B.fn.show=Ug),Kg&&(B.fn.parents=Kg),jl&&(B.fn.dataset=jl),ko&&(B.fn.val=ko),qg&&(B.fn.text=qg),Ca&&(B.fn.html=Ca),Rl&&(B.fn.children=Rl),Ml&&(B.fn.remove=Ml),Ll&&(B.fn.find=Ll),Hg&&(B.fn.width=Hg),Vg&&(B.fn.height=Vg),OA&&(B.fn.filter=OA),zl&&(B.fn.empty=zl);var $nt={selector:"p:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:e}}},l6=function(t,e){return l6=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])},l6(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function Ee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Oa=function(){return Oa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Oa.apply(this,arguments)};function Ra(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,[])).next())})}function Ma(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function RI(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xt(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function VO(t){var e=Xt(E.nodes(t,{match:function(i){return t.children[0]===i},mode:"highest"}),1)[0];if(e==null)return!1;var n=e[0];if(!ft.isElement(n)||n.type==="paragraph"||Q.string(n)!=="")return!1;var r=n.children,o=r===void 0?[]:r;return!!it.isText(o[0])&&(N.setNodes(t,{type:"paragraph"}),!0)}var Hnt={renderElems:[Wtt],elemsToHtml:[{type:"paragraph",elemToHtml:function(t,e){return e===""?"<p><br></p>":"<p>"+e+"</p>"}}],parseElemsHtml:[$nt],editorPlugin:function(t){var e=t.deleteBackward,n=t.deleteForward;t.insertText,t.insertBreak;var r=t;return r.deleteBackward=function(o){VO(r)||e(o)},r.deleteForward=function(o){VO(r)||n(o)},r}},Vnt=/"/g,Unt=mt("".replace),Qf=function(t,e,n,r){var o=Ce(Tr(t)),i="<"+e;return n!==""&&(i+=" "+n+'="'+Unt(Ce(r),Vnt,"&quot;")+'"'),i+">"+o+"</"+e+">"},td=function(t){return Se(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})};function Kb(t,e){var n=e,r=t,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function Qa(t,e){return t.length!==0&&(!!t[0].matches(e)||t.find(e).length>0)}tn({target:"String",proto:!0,forced:td("bold")},{bold:function(){return Qf(this,"b","","")}}),tn({target:"String",proto:!0,forced:td("italics")},{italics:function(){return Qf(this,"i","","")}}),tn({target:"String",proto:!0,forced:td("sub")},{sub:function(){return Qf(this,"sub","","")}}),tn({target:"String",proto:!0,forced:td("sup")},{sup:function(){return Qf(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},Yb=$D("span").classList,WO=Yb&&Yb.constructor&&Yb.constructor.prototype,Wnt=WO===Object.prototype?void 0:WO,MI=function(t,e){var n=[][t];return!!n&&Se(function(){n.call(null,e||function(){throw 1},1)})},Gnt=iy.forEach,Xb=MI("forEach")?[].forEach:function(t){return Gnt(this,t,arguments.length>1?arguments[1]:void 0)},zI=function(t){if(t&&t.forEach!==Xb)try{Kl(t,"forEach",Xb)}catch(e){t.forEach=Xb}};for(var Zb in UO)UO[Zb]&&zI(At[Zb]&&At[Zb].prototype);function $I(t,e){return t.selection==null||!!Xt(E.nodes(t,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function qnt(t,e){Object.keys(e).forEach(function(n){n!=="text"&&E.removeMark(t,n)})}zI(Wnt),tn({target:"Object",stat:!0,forced:Se(function(){wl(1)})},{keys:function(t){return wl(qp(t))}});var vs=function(){function t(){this.marksNeedToRemove=[],this.tag="button"}return t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r?r[n]:!!Xt(E.nodes(e,{match:function(o){return o[n]===!0}}),1)[0]},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return $I(e,this.mark)},t.prototype.exec=function(e,n){var r=this.mark,o=this.marksNeedToRemove;n?e.removeMark(r):(e.addMark(r,!0),o&&o.forEach(function(i){return e.removeMark(i)}))},t}(),Knt='<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>',Ynt='<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>',Xnt='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Znt='<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>',Jnt='<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>',HI='<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>',VI='<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>',Qnt='<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>',trt='<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>',ert='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',nrt='<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>',rrt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',ort='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',irt='<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>',art='<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>',urt='<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>',srt='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',lrt='<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>',crt='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',frt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="bold",n.title=tt("textStyle.bold"),n.iconSvg=Knt,n.hotkey="mod+b",n}return Ee(e,t),e}(vs),drt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="code",n.title=tt("textStyle.code"),n.iconSvg=Jnt,n.hotkey="mod+e",n}return Ee(e,t),e}(vs),prt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="italic",n.title=tt("textStyle.italic"),n.iconSvg=Xnt,n.hotkey="mod+i",n}return Ee(e,t),e}(vs),hrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="through",n.title=tt("textStyle.through"),n.iconSvg=Znt,n.hotkey="mod+shift+x",n}return Ee(e,t),e}(vs),grt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="underline",n.title=tt("textStyle.underline"),n.iconSvg=Ynt,n.hotkey="mod+u",n}return Ee(e,t),e}(vs),vrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sub",n.marksNeedToRemove=["sup"],n.title=tt("textStyle.sub"),n.iconSvg=crt,n.hotkey="",n}return Ee(e,t),e}(vs),yrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mark="sup",n.marksNeedToRemove=["sub"],n.title=tt("textStyle.sup"),n.iconSvg=lrt,n.hotkey="",n}return Ee(e,t),e}(vs),mrt=function(){function t(){this.title=tt("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return $I(e)},t.prototype.exec=function(e,n){var r,o,i=E.nodes(e,{match:function(s){return it.isText(s)},universal:!0});try{for(var a=RI(i),u=a.next();!u.done;u=a.next())qnt(e,u.value[0])}catch(s){r={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},t}(),brt={renderStyle:function(t,e){var n=t,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=e;return r&&(c=wt("strong",null,c)),a&&(c=wt("code",null,c)),o&&(c=wt("em",null,c)),i&&(c=wt("u",null,c)),u&&(c=wt("s",null,c)),s&&(c=wt("sub",null,c)),l&&(c=wt("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new frt}},{key:"underline",factory:function(){return new grt}},{key:"italic",factory:function(){return new prt}},{key:"through",factory:function(){return new hrt}},{key:"code",factory:function(){return new drt}},{key:"sub",factory:function(){return new vrt}},{key:"sup",factory:function(){return new yrt}},{key:"clearStyle",factory:function(){return new mrt}}],styleToHtml:function(t,e){if(!it.isText(t))return e;if(t8(e))return Kb(t,e);var n=B(e);if(yc(n)==="br")return Kb(t,"<br>");var r=n.html();return r=Kb(t,r),n.html(r),vc(n)},parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e;return Qa(r,"b,strong")&&(o.bold=!0),Qa(r,"i,em")&&(o.italic=!0),Qa(r,"u")&&(o.underline=!0),Qa(r,"s,strike")&&(o.through=!0),Qa(r,"sub")&&(o.sub=!0),Qa(r,"sup")&&(o.sup=!0),Qa(r,"code")&&(o.code=!0),o}};function Xp(t){return function(e,n,r){return wt("h"+t,null,n)}}var wrt={type:"header1",renderElem:Xp(1)},Ert={type:"header2",renderElem:Xp(2)},Drt={type:"header3",renderElem:Xp(3)},Crt={type:"header4",renderElem:Xp(4)},xrt={type:"header5",renderElem:Xp(5)},Srt=ry.PROPER,c6=RegExp.prototype,UI=c6.toString,Art=mt(kI),Ort=Se(function(){return UI.call({source:"a",flags:"b"})!="/a/b"}),krt=Srt&&UI.name!="toString";(Ort||krt)&&Qd(RegExp.prototype,"toString",function(){var t=or(this),e=Ce(t.source),n=t.flags;return"/"+e+"/"+Ce(n===void 0&&gI(c6,t)&&!("flags"in c6)?Art(t):n)},{unsafe:!0});var Jb,Brt=At.TypeError,WI=function(t){if(NI(t))throw Brt("The method doesn't accept regular expressions");return t},Frt=fr("match"),GI=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Frt]=!1,"/./"[t](e)}catch(r){}}return!1},Trt=HD.f,GO=mt("".startsWith),_rt=mt("".slice),Prt=Math.min,qO=GI("startsWith");function qI(t){var e=Xt(E.nodes(t,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1),n=e[0];if(n==null)return"paragraph";var r=Xt(n,1)[0];return A.getNodeType(r)}function KI(t){return t.selection==null||!Xt(E.nodes(t,{match:function(e){var n=A.getNodeType(e);return n==="paragraph"||!!n.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function YI(t,e){e&&N.setNodes(t,{type:e})}tn({target:"String",proto:!0,forced:!(!qO&&(Jb=Trt(String.prototype,"startsWith"),Jb&&!Jb.writable)||qO)},{startsWith:function(t){var e=Ce(Tr(this));WI(t);var n=Kp(Prt(arguments.length>1?arguments[1]:void 0,e.length)),r=Ce(t);return GO?GO(e,r,n):_rt(e,n,n+r.length)===r}});var jrt=function(){function t(){this.title=tt("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return t.prototype.getOptions=function(e){var n=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:tt("header.text")}],r=this.getValue(e).toString();return n.forEach(function(o){o.value===r?o.selected=!0:delete o.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){return qI(e)},t.prototype.isDisabled=function(e){return KI(e)},t.prototype.exec=function(e,n){YI(e,n.toString())},t}(),Zp=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return qI(e)},t.prototype.isActive=function(e){return this.getValue(e)===this.type},t.prototype.isDisabled=function(e){return KI(e)},t.prototype.exec=function(e,n){var r=this.type;YI(e,n===r?"paragraph":r)},t}(),Nrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H1",n.type="header1",n}return Ee(e,t),e}(Zp),Irt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H2",n.type="header2",n}return Ee(e,t),e}(Zp),Lrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H3",n.type="header3",n}return Ee(e,t),e}(Zp),Rrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H4",n.type="header4",n}return Ee(e,t),e}(Zp),Mrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="H5",n.type="header5",n}return Ee(e,t),e}(Zp),zrt={key:"headerSelect",factory:function(){return new jrt}},$rt={key:"header1",factory:function(){return new Nrt}},Hrt={key:"header2",factory:function(){return new Irt}},Vrt={key:"header3",factory:function(){return new Lrt}},Urt={key:"header4",factory:function(){return new Rrt}},Wrt={key:"header5",factory:function(){return new Mrt}};function cf(t){return function(e,n){return"<h"+t+">"+n+"</h"+t+">"}}function ff(t){return function(e,n,r){var o=B(e);return(n=n.filter(function(i){return!!it.isText(i)||!!r.isInline(i)})).length===0&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+t,children:n}}}var Grt={renderElems:[wrt,Ert,Drt,Crt,xrt],elemsToHtml:[{type:"header1",elemToHtml:cf(1)},{type:"header2",elemToHtml:cf(2)},{type:"header3",elemToHtml:cf(3)},{type:"header4",elemToHtml:cf(4)},{type:"header5",elemToHtml:cf(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:ff(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:ff(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:ff(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:ff(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:ff(5)}],menus:[zrt,$rt,Hrt,Vrt,Urt,Wrt],editorPlugin:function(t){var e=t.insertBreak;t.insertNode;var n=t;return n.insertBreak=function(){var r=Xt(E.nodes(n,{match:function(o){return A.getNodeType(o).startsWith("header")},universal:!0}),1)[0];r&&A.isSelectionAtLineEnd(t,r[1])?N.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):e()},n}},zs=Object.assign,KO=Object.defineProperty,qrt=mt([].concat),YO=!zs||Se(function(){if(to&&zs({b:1},zs(KO({},"a",{enumerable:!0,get:function(){KO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),zs({},t)[n]!=7||wl(zs({},e)).join("")!=r})?function(t,e){for(var n=qp(t),r=arguments.length,o=1,i=xI.f,a=pI.f;r>o;)for(var u,s=ey(arguments[o++]),l=i?qrt(wl(s),i(s)):wl(s),c=l.length,f=0;c>f;)u=l[f++],to&&!Le(a,s,u)||(n[u]=s[u]);return n}:zs;function ns(t,e){t.data==null&&(t.data={});var n=t.data;n.style==null&&(n.style={}),Object.assign(n.style,e)}tn({target:"Object",stat:!0,forced:Object.assign!==YO},{assign:YO});var Krt={selector:"font",preParseHtml:function(t){var e=B(t);if(yc(e)!=="font")return t;var n=e.attr("color")||"";return n&&(e.removeAttr("color"),e.css("color",n)),e[0]}},XI=function(){function t(){this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){var n=this.mark;if(this.$content==null){var r=B('<ul class="w-e-panel-content-color"></ul>');r.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),e.selection!=null)){var f=B(c).attr("data-value");f==="0"?E.removeMark(e,n):E.addMark(e,n,f)}}),this.$content=r}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(e),a=e.getMenuConfig(n).colors;(a===void 0?[]:a).forEach(function(l){var c=B('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=B('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";n==="color"&&(u=tt("color.default")),n==="bgColor"&&(u=tt("color.clear"));var s=B(`
<li data-value="0" class="clear">
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
`+u+`
</li>
`);return o.prepend(s),o[0]},t}(),Yrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.color"),n.iconSvg=Qnt,n.mark="color",n}return Ee(e,t),e}(XI),Xrt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("color.bgColor"),n.iconSvg=trt,n.mark="bgColor",n}return Ee(e,t),e}(XI),XO=["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)"],Zrt={renderStyle:function(t,e){var n=t,r=n.color,o=n.bgColor,i=e;return r&&ns(i,{color:r}),o&&ns(i,{backgroundColor:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.color,i=r.bgColor;return o||i?((t8(e)||yc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),vc(n)):e},preParseHtml:[Krt],parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e,i=Zr(r,"color");i&&(o.color=i);var a=Zr(r,"background-color");return a||(a=Zr(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Yrt},config:{colors:XO}},{key:"bgColor",factory:function(){return new Xrt},config:{colors:XO}}]},Jrt=/^(?:\w+:)?\/\/(\S+)$/,Qrt=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,tot=/^[^\s\.]+\.\S{2,}$/,eot=DI.includes;function ay(t){return t===void 0&&(t="r"),t+"-"+mj()}function e8(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ZI(t,e,n,r){return Ra(this,void 0,void 0,function(){var o,i;return Ma(this,function(a){switch(a.label){case 0:return(o=e.getMenuConfig(t).checkLink)?[4,o(n,r)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return e.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function JI(t,e,n){return Ra(this,void 0,void 0,function(){var r;return Ma(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function n8(t){return t.selection==null||!!A.getSelectedElems(t).some(function(e){var n=e.type;return!!t.isVoid(e)||!!["pre","code","link"].includes(n)||void 0})}function Qb(t,e){return{type:"link",url:e8(t),children:e?[{text:e}]:[]}}function QI(t,e,n){return Ra(this,void 0,void 0,function(){var r,o,i;return Ma(this,function(a){switch(a.label){case 0:return n?(e||(e=n),t.restoreSelection(),n8(t)?[2]:[4,ZI("insertLink",t,e,n)]):[2];case 1:return a.sent()?[4,JI("insertLink",t,n)]:[2];case 2:return r=a.sent(),(o=t.selection)==null||(L.isCollapsed(o)?(t.insertText(" "),i=Qb(r,e),N.insertNodes(t,i),t.insertFragment([{text:" "}])):E.string(t,o)!==e?(t.deleteFragment(),i=Qb(r,e),N.insertNodes(t,i)):(i=Qb(r),N.wrapNodes(t,i,{split:!0}),N.collapse(t,{edge:"end"}))),[2]}})})}tn({target:"Array",proto:!0},{includes:function(t){return eot(this,t,arguments.length>1?arguments[1]:void 0)}}),jI("includes");var not={type:"link",renderElem:function(t,e,n){var r=t,o=r.url,i=r.target;return wt("a",{href:o,target:i===void 0?"_blank":i},e)}},rot={selector:"a:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:e}}};function t2(){return ay("w-e-insert-link")}var oot=function(){function t(){this.title=tt("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=t2(),this.urlInputId=t2(),this.buttonId=t2()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return n8(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=e.selection,r=this,o=r.textInputId,i=r.urlInputId,a=r.buttonId,u=Xt(rr(tt("link.text"),o),2),s=u[0],l=B(u[1]),c=Xt(rr(tt("link.url"),i),2),f=c[0],d=B(c[1]),p=Xt(dc(a,tt("common.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,function(m){m.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();QI(e,h,b),e.hidePanelOrModal()}),this.$content=v}var y=this.$content;if(y.empty(),y.append(s),y.append(f),y.append(p),n==null||L.isCollapsed(n))l.val("");else{var g=E.string(e,n);l.val(g)}return d.val(""),setTimeout(function(){l.focus()}),y[0]},t}();function ZO(){return ay("w-e-update-link")}var iot=function(){function t(){this.title=tt("link.edit"),this.iconSvg=HI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=ZO(),this.buttonId=ZO()}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.getModalPositionNode=function(e){return A.getSelectedNodeByType(e,"link")},t.prototype.getModalContentElem=function(e){var n=this.urlInputId,r=this.buttonId,o=Xt(rr(tt("link.url"),n),2),i=o[0],a=B(o[1]),u=Xt(dc(r,tt("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",function(f){f.preventDefault(),e.restoreSelection();var d=A.getSelectedNodeByType(e,"link"),p=d?Q.string(d):"",v=s.find("#"+n).val();(function(y,g,m){Ra(this,void 0,void 0,function(){var h,b;return Ma(this,function(w){switch(w.label){case 0:return m?[4,ZI("editLink",y,g,m)]:[2];case 1:return w.sent()?[4,JI("editLink",y,m)]:[2];case 2:return h=w.sent(),b={url:e8(h)},N.setNodes(y,b,{match:function(D){return A.checkNodeType(D,"link")}}),[2]}})})})(e,p,v),e.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(e);return a.val(c),setTimeout(function(){a.focus()}),l[0]},t}(),aot=function(){function t(){this.title=tt("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"link")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.unwrapNodes(e,{match:function(r){return A.checkNodeType(r,"link")}})},t}(),uot=function(){function t(){this.title=tt("link.view"),this.iconSvg=VI,this.tag="button"}return t.prototype.getSelectedLinkElem=function(e){var n=A.getSelectedNodeByType(e,"link");return n==null?null:n},t.prototype.getValue=function(e){var n=this.getSelectedLinkElem(e);return n&&n.url||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View link failed, link url is '"+n+"'");window.open(n,"_blank")}},t}(),JO={checkLink:function(t,e){return!0},parseLinkUrl:function(t){return t}},sot={renderElems:[not],elemsToHtml:[{type:"link",elemToHtml:function(t,e){var n=t,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(o===void 0?"_blank":o)+'">'+e+"</a>"}}],parseElemsHtml:[rot],menus:[{key:"insertLink",factory:function(){return new oot},config:JO},{key:"editLink",factory:function(){return new iot},config:JO},{key:"unLink",factory:function(){return new aot}},{key:"viewLink",factory:function(){return new uot}}],editorPlugin:function(t){var e=t.isInline,n=t.insertData,r=t.normalizeNode;t.insertNode,t.insertText;var o=t;return o.isInline=function(i){return i.type==="link"||e(i)},o.insertData=function(i){var a=i.getData("text/plain");if(function(l){if(typeof l!="string")return!1;var c=l.match(Jrt);if(!c)return!1;var f=c[1];return!(!f||!Qrt.test(f)&&!tot.test(f))}(a)){if(!n8(o)){var u=o.selection;if(u!=null){var s=E.string(o,u);QI(o,s,a)}}}else n(i)},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1];return A.getNodeType(u)!=="link"?r([u,s]):Q.string(u)===""?N.removeNodes(o,{at:s}):r([u,s])},o}},lot=mt(1 .valueOf),cot=At.RangeError,fot=At.RangeError,tL=At.String,eL=Math.floor,f6=mt(function(t){var e=Ce(Tr(this)),n="",r=gc(t);if(r<0||r==1/0)throw cot("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(n+=e);return n}),QO=mt("".slice),df=mt(1 .toFixed),dl=function(t,e,n){return e===0?n:e%2==1?dl(t,e-1,n*t):dl(t*t,e/2,n)},$s=function(t,e,n){for(var r=-1,o=n;++r<6;)o+=e*t[r],t[r]=o%1e7,o=eL(o/1e7)},e2=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=eL(r/e),r=r%e*1e7},tk=function(t){for(var e=6,n="";--e>=0;)if(n!==""||e===0||t[e]!==0){var r=tL(t[e]);n=n===""?r:n+f6("0",7-r.length)+r}return n};function ek(t,e){return"w-e-image-container-"+A.findKey(t,e).id}tn({target:"Number",proto:!0,forced:Se(function(){return df(8e-5,3)!=="0.000"||df(.9,0)!=="1"||df(1.255,2)!=="1.25"||df(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Se(function(){df({})})},{toFixed:function(t){var e,n,r,o,i=lot(this),a=gc(t),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw fot("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return tL(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(e=function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f}(i*dl(2,69,1))-69)<0?i*dl(2,-e,1):i/dl(2,e,1),n*=4503599627370496,(e=52-e)>0){for($s(u,0,n),r=a;r>=7;)$s(u,1e7,0),r-=7;for($s(u,dl(10,r,1),0),r=e-1;r>=23;)e2(u,1<<23),r-=23;e2(u,1<<r),$s(u,1,1),e2(u,2),l=tk(u)}else $s(u,0,n),$s(u,1<<-e,0),l=tk(u)+f6("0",a);return a>0?s+((o=l.length)<=a?"0."+f6("0",a-o)+l:QO(l,0,o-a)+"."+QO(l,o-a)):s+l}});var dot={type:"image",renderElem:function(t,e,n){var r=t,o=r.src,i=r.alt,a=i===void 0?"":i,u=r.href,s=u===void 0?"":u,l=r.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,y=A.isNodeSelected(n,t),g={};d&&(g.width="100%"),v&&(g.height="100%");var m=wt("img",{style:g,src:o,alt:a,"data-href":s}),h=n.isDisabled();return y&&!h?function(b,w,D,x){var C=B("body"),O=ek(b,w),T=x.width,R=x.height,H=0,M=0,K=0,U=!1,W=null;function q(ut){W=function(){var P=B("#"+O);if(P.length===0)throw new Error("Cannot find image container elem");return P}(),H=ut;var k=W.find("img");if(k.length===0)throw new Error("Cannot find image elem");M=k.width(),K=k.height(),C.on("mousemove",nt),C.on("mouseup",lt);var S=A.getHoverbar(b);S&&S.hideAndClean()}var nt=Xu(function(ut){ut.preventDefault();var k=ut.clientX,S=M+(U?H-k:k-H),P=K*(S/M);W!=null&&(S<=15||P<=15||(W.css("width",S+"px"),W.css("height",P+"px")))},100);function lt(ut){if(C.off("mousemove",nt),W!=null){var k=W.width().toFixed(2),S=W.height().toFixed(2),P={style:Oa(Oa({},w.style),{width:k+"px",height:S+"px"})};N.setNodes(b,P,{at:A.findPath(b,w)}),C.off("mouseup",lt)}}var st={};return T&&(st.width=T),R&&(st.height=R),wt("div",{id:O,style:st,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(ut){var k=B(ut.target);k.hasClass("w-e-image-dragger")&&(ut.preventDefault(),(k.hasClass("left-top")||k.hasClass("left-bottom"))&&(U=!0),q(ut.clientX))}}},D,wt("div",{className:"w-e-image-dragger left-top"}),wt("div",{className:"w-e-image-dragger right-top"}),wt("div",{className:"w-e-image-dragger left-bottom"}),wt("div",{className:"w-e-image-dragger right-bottom"}))}(n,t,m,{width:d,height:v}):function(b,w,D,x){var C=x.width,O=x.height,T={};return C&&(T.width=C),O&&(T.height=O),wt("div",{id:ek(b,w),style:T,className:"w-e-image-container"},D)}(n,t,m,{width:d,height:v})}},pot={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:Zr(r,"width"),height:Zr(r,"height")},children:[{text:""}]}}};function nL(t,e,n,r,o){return r===void 0&&(r=""),o===void 0&&(o=""),Ra(this,void 0,void 0,function(){var i,a;return Ma(this,function(u){switch(u.label){case 0:return(i=e.getMenuConfig(t).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return e.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function rL(t,e,n){return Ra(this,void 0,void 0,function(){var r;return Ma(this,function(o){switch(o.label){case 0:return(r=e.getMenuConfig(t).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}})})}function Pu(t,e,n,r){return n===void 0&&(n=""),r===void 0&&(r=""),Ra(this,void 0,void 0,function(){var o,i,a;return Ma(this,function(u){switch(u.label){case 0:return[4,nL("insertImage",t,e,n,r)];case 1:return u.sent()?[4,rL("insertImage",t,e)]:[2];case 2:return o=u.sent(),i={type:"image",src:e8(o),href:r,alt:n,style:{},children:[{text:""}]},t.selection===null&&t.restoreSelection(),A.getSelectedNodeByType(t,"image")&&t.move(1),uy(t)||(N.insertNodes(t,i),(a=t.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function uy(t){var e=t.selection;return e==null||!L.isCollapsed(e)||!!Xt(E.nodes(t,{match:function(n){var r=A.getNodeType(n);return r==="code"||r==="pre"||r==="link"||r==="list-item"||!!r.startsWith("header")||r==="blockquote"||!!E.isVoid(t,n)},universal:!0}),1)[0]}function n0(){return ay("w-e-insert-image")}var hot=function(){function t(){this.title=tt("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=n0(),this.altInputId=n0(),this.hrefInputId=n0(),this.buttonId=n0()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return uy(e)},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=Xt(rr(tt("image.src"),o),2),l=s[0],c=B(s[1]),f=Xt(rr(tt("image.desc"),i),2),d=f[0],p=B(f[1]),v=Xt(rr(tt("image.link"),a),2),y=v[0],g=B(v[1]),m=Xt(dc(u,tt("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var D=h.find("#"+o).val().trim(),x=h.find("#"+i).val().trim(),C=h.find("#"+a).val().trim();n.insertImage(e,D,x,C),e.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(y),b.append(m),c.val(""),p.val(""),g.val(""),setTimeout(function(){c.focus()}),b[0]},t.prototype.insertImage=function(e,n,r,o){r===void 0&&(r=""),o===void 0&&(o=""),n&&(e.restoreSelection(),this.isDisabled(e)||Pu(e,n,r,o))},t}(),got=function(){function t(){this.title=tt("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"image")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{match:function(r){return A.checkNodeType(r,"image")}})},t}();function r0(){return ay("w-e-edit-image")}var vot=function(){function t(){this.title=tt("image.edit"),this.iconSvg=HI,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=r0(),this.altInputId=r0(),this.hrefInputId=r0(),this.buttonId=r0()}return t.prototype.getValue=function(e){return""},t.prototype.getImageNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"image")==null},t.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.altInputId,a=r.hrefInputId,u=r.buttonId,s=this.getImageNode(e);if(s==null)throw new Error("Not found selected image node");var l=Xt(rr(tt("image.src"),o),2),c=l[0],f=B(l[1]),d=Xt(rr(tt("image.desc"),i),2),p=d[0],v=B(d[1]),y=Xt(rr(tt("image.link"),a),2),g=y[0],m=B(y[1]),h=Xt(dc(u,tt("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,function(H){H.preventDefault();var M=b.find("#"+o).val(),K=b.find("#"+i).val(),U=b.find("#"+a).val();n.updateImage(e,M,K,U),e.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var D=s,x=D.src,C=D.alt,O=C===void 0?"":C,T=D.href,R=T===void 0?"":T;return f.val(x),v.val(O),m.val(R),setTimeout(function(){f.focus()}),w[0]},t.prototype.updateImage=function(e,n,r,o,i){r===void 0&&(r=""),o===void 0&&(o=""),i===void 0&&(i={}),n&&(e.restoreSelection(),this.isDisabled(e)||function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Ra(this,void 0,void 0,function(){var f,d,p,v,y,g;return Ma(this,function(m){switch(m.label){case 0:return[4,nL("editImage",a,u,s,l)];case 1:return m.sent()?[4,rL("editImage",a,u)]:[2];case 2:return f=m.sent(),(d=A.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:Oa(Oa({},p===void 0?{}:p),c)},N.setNodes(a,v,{match:function(h){return A.checkNodeType(h,"image")}}),y=A.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(y)),[2]}})})}(e,n,r,o,i))},t}(),yot=function(){function t(){this.title=tt("image.viewLink"),this.iconSvg=VI,this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"image");return n&&n.href||""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){if(!n||typeof n!="string")throw new Error("View image link failed, image.href is '"+n+"'");window.open(n,"_blank")}},t}(),r8=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getSelectedNode=function(e){return A.getSelectedNodeByType(e,"image")},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.getSelectedNode(e);if(r!=null){var o=A.getHoverbar(e);o&&o.hideAndClean();var i=r.style,a={style:Oa(Oa({},i===void 0?{}:i),{width:this.value,height:""})};N.setNodes(e,a,{match:function(u){return A.checkNodeType(u,"image")}})}}},t}(),mot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="30%",n.value="30%",n}return Ee(e,t),e}(r8),bot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="50%",n.value="50%",n}return Ee(e,t),e}(r8),wot=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title="100%",n.value="100%",n}return Ee(e,t),e}(r8),nk={onInsertedImage:function(t){},onUpdatedImage:function(t){},checkImage:function(t,e,n){return!0},parseImageSrc:function(t){return t}},Eot={renderElems:[dot],elemsToHtml:[{type:"image",elemToHtml:function(t,e){var n=t,r=n.src,o=n.alt,i=o===void 0?"":o,a=n.href,u=a===void 0?"":a,s=n.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,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:[pot],menus:[{key:"insertImage",factory:function(){return new hot},config:nk},{key:"deleteImage",factory:function(){return new got}},{key:"editImage",factory:function(){return new vot},config:nk},{key:"viewImageLink",factory:function(){return new yot}},{key:"imageWidth30",factory:function(){return new mot}},{key:"imageWidth50",factory:function(){return new bot}},{key:"imageWidth100",factory:function(){return new wot}}],editorPlugin:function(t){var e=t.isInline,n=t.isVoid;t.insertNode;var r=t;return r.isInline=function(o){return o.type==="image"||e(o)},r.isVoid=function(o){return o.type==="image"||n(o)},r}},Dot={type:"todo",renderElem:function(t,e,n){var r=!1;n.isDisabled()&&(r=!0);var o=wt("div",{style:{margin:"5px 0"}},wt("span",{contentEditable:!1,style:{marginRight:"0.5em"}},wt("input",{type:"checkbox",checked:t.checked,disabled:r,on:{change:function(i){var a=A.findPath(n,t),u={checked:i.target.checked};N.setNodes(n,u,{at:a})}}})),wt("span",null,e));return o}},Cot=function(){function t(){this.title=tt("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"todo")},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","table","list-item"].includes(r)||void 0})},t.prototype.exec=function(e,n){var r=this.isActive(e);N.setNodes(e,{type:r?"paragraph":"todo"})},t}(),xot={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(i){return!!it.isText(i)||!!n.isInline(i)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return r.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:e}}},Sot={renderElems:[Dot],elemsToHtml:[{type:"todo",elemToHtml:function(t,e){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(t.checked?"checked":"")+">"+e+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(t){var e=B(t).find("li"),n=B('<div data-w-e-type="todo"></div>'),r=e.find("input[type]");return n.append(r),e.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+e[0].innerHTML,n[0]}}],parseElemsHtml:[xot],menus:[{key:"todo",factory:function(){return new Cot}}],editorPlugin:function(t){var e=t.deleteBackward,n=t;return n.deleteBackward=function(r){var o=t.selection;if(o&&L.isCollapsed(o)){var i=A.getSelectedNodeByType(t,"todo");if(i&&Q.string(i).length===0)return void N.setNodes(t,{type:"paragraph"},{mode:"highest"})}e(r)},n}},Aot={type:"blockquote",renderElem:function(t,e,n){return wt("blockquote",null,e)}},Oot={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return!!it.isText(o)||!!n.isInline(o)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:e}}},kot=function(){function t(){this.title=tt("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!!A.getSelectedNodeByType(e,"blockquote")},t.prototype.isDisabled=function(e){return e.selection==null||!Xt(E.nodes(e,{match:function(n){var r=A.getNodeType(n);return r==="paragraph"||r==="blockquote"},universal:!0,mode:"highest"}),1)[0]},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=this.isActive(e)?"paragraph":"blockquote";N.setNodes(e,{type:r},{mode:"highest"})}},t}(),Bot={key:"blockquote",factory:function(){return new kot}},Fot=mt([].slice),Tot=YD("slice"),_ot=fr("species"),n2=At.Array,Pot=Math.max;tn({target:"Array",proto:!0,forced:!Tot},{slice:function(t,e){var n,r,o,i=pc(this),a=oy(i),u=tp(t,a),s=tp(e===void 0?a:e,a);if(mv(i)&&(n=i.constructor,(KD(n)&&(n===n2||mv(n.prototype))||Ur(n)&&(n=n[_ot])===null)&&(n=void 0),n===n2||n===void 0))return Fot(i,u,s);for(r=new(n===void 0?n2:n)(Pot(s-u,0)),o=0;u<s;u++,o++)u in i&&II(r,o,i[u]);return r.length=o,r}});var jot={renderElems:[Aot],elemsToHtml:[{type:"blockquote",elemToHtml:function(t,e){return"<blockquote>"+e+"</blockquote>"}}],parseElemsHtml:[Oot],menus:[Bot],editorPlugin:function(t){var e=t.insertBreak,n=t.insertText,r=t;return r.insertBreak=function(){var o=r.selection;if(o==null)return e();var i=Xt(E.nodes(t,{match:function(c){return A.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return e();var a=i[0],u=A.findPath(t,a),s=E.end(t,u);if(Ft.equals(s,o.focus)){var l=Q.string(a);if(l&&l.slice(-1)===`
`)return t.deleteBackward("character"),void N.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n(`
`)},r}},Not=function(){function t(){this.title=tt("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.exec=function(e,n){},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!Xt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0]},t.prototype.getPanelContentElem=function(e){if(this.$content==null){var n=B('<ul class="w-e-panel-content-emotion"></ul>');n.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();e.insertText(u)}}),this.$content=n}var r=this.$content;if(r==null)return document.createElement("ul");r.empty();var o=e.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=B("<li>"+i+"</li>");r.append(a)}),r[0]},t}(),Iot={menus:[{key:"emotion",factory:function(){return new Not},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Lot={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},Rot={selector:"font",preParseHtml:function(t){var e=B(t);if(yc(e)!=="font")return t;var n=e.attr("size")||"";n&&(e.removeAttr("size"),e.css("font-size",Lot[n]));var r=e.attr("face")||"";return r&&(e.removeAttr("face"),e.css("font-family",r)),e[0]}},Mot=mt("".indexOf);tn({target:"String",proto:!0,forced:!GI("includes")},{includes:function(t){return!!~Mot(Ce(Tr(this)),Ce(WI(t)),arguments.length>1?arguments[1]:void 0)}});var _i,J0,o0=function(t){return t&&t.Math==Math&&t},Tt=o0(typeof globalThis=="object"&&globalThis)||o0(typeof window=="object"&&window)||o0(typeof self=="object"&&self)||o0(typeof hv=="object"&&hv)||function(){return this}()||Function("return this")(),o8=Function.prototype,rk=o8.apply,zot=o8.bind,ok=o8.call,oL=typeof Reflect=="object"&&Reflect.apply||(zot?ok.bind(rk):function(){return ok.apply(rk,arguments)}),iL=Function.prototype,d6=iL.bind,p6=iL.call,$ot=d6&&d6.bind(p6),_e=d6?function(t){return t&&$ot(p6,t)}:function(t){return t&&function(){return p6.apply(t,arguments)}},kn=function(t){return typeof t=="function"},sr=function(t){try{return!!t()}catch(e){return!0}},Gn=!sr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pf=Function.prototype.call,xo=pf.bind?pf.bind(pf):function(){return pf.apply(pf,arguments)},ik={}.propertyIsEnumerable,ak=Object.getOwnPropertyDescriptor,Hot=ak&&!ik.call({1:2},1)?function(t){var e=ak(this,t);return!!e&&e.enumerable}:ik,i8={f:Hot},rs=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Vot=_e({}.toString),Uot=_e("".slice),ju=function(t){return Uot(Vot(t),8,-1)},r2=Tt.Object,Wot=_e("".split),aL=sr(function(){return!r2("z").propertyIsEnumerable(0)})?function(t){return ju(t)=="String"?Wot(t,""):r2(t)}:r2,Got=Tt.TypeError,a8=function(t){if(t==null)throw Got("Can't call method on "+t);return t},Io=function(t){return aL(a8(t))},Wr=function(t){return typeof t=="object"?t!==null:kn(t)},mr={},uk=function(t){return kn(t)?t:void 0},Jp=function(t,e){return arguments.length<2?uk(mr[t])||uk(Tt[t]):mr[t]&&mr[t][e]||Tt[t]&&Tt[t][e]},uL=_e({}.isPrototypeOf),o2=Jp("navigator","userAgent")||"",sk=Tt.process,lk=Tt.Deno,ck=sk&&sk.versions||lk&&lk.version,fk=ck&&ck.v8;fk&&(J0=(_i=fk.split("."))[0]>0&&_i[0]<4?1:+(_i[0]+_i[1])),!J0&&o2&&(!(_i=o2.match(/Edge\/(\d+)/))||_i[1]>=74)&&(_i=o2.match(/Chrome\/(\d+)/))&&(J0=+_i[1]);var Ev=J0,po=!!Object.getOwnPropertySymbols&&!sr(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ev&&Ev<41}),u8=po&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qot=Tt.Object,El=u8?function(t){return typeof t=="symbol"}:function(t){var e=Jp("Symbol");return kn(e)&&uL(e.prototype,qot(t))},Kot=Tt.String,Yot=Tt.TypeError,sL=function(t){if(kn(t))return t;throw Yot(function(e){try{return Kot(e)}catch(n){return"Object"}}(t)+" is not a function")},Xot=Tt.TypeError,Zot=Object.defineProperty,ca=Tt["__core-js_shared__"]||function(t,e){try{Zot(Tt,t,{value:e,configurable:!0,writable:!0})}catch(n){Tt[t]=e}return e}("__core-js_shared__",{}),ys=ty(function(t){(t.exports=function(e,n){return ca[e]||(ca[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Jot=Tt.Object,Qp=function(t){return Jot(a8(t))},Qot=_e({}.hasOwnProperty),Yt=Object.hasOwn||function(t,e){return Qot(Qp(t),e)},tit=0,eit=Math.random(),nit=_e(1 .toString),Dv=function(t){return"Symbol("+(t===void 0?"":t)+")_"+nit(++tit+eit,36)},hf=ys("wks"),Nu=Tt.Symbol,dk=Nu&&Nu.for,rit=u8?Nu:Nu&&Nu.withoutSetter||Dv,dr=function(t){if(!Yt(hf,t)||!po&&typeof hf[t]!="string"){var e="Symbol."+t;po&&Yt(Nu,t)?hf[t]=Nu[t]:hf[t]=u8&&dk?dk(e):rit(e)}return hf[t]},oit=Tt.TypeError,iit=dr("toPrimitive"),mc=function(t){var e=function(n,r){if(!Wr(n)||El(n))return n;var o,i,a=(o=n[iit])==null?void 0:sL(o);if(a){if(i=xo(a,n,r),!Wr(i)||El(i))return i;throw oit("Can't convert object to primitive value")}return function(u,s){var l,c;if(kn(l=u.toString)&&!Wr(c=xo(l,u))||kn(l=u.valueOf)&&!Wr(c=xo(l,u)))return c;throw Xot("Can't convert object to primitive value")}(n)}(t,"string");return El(e)?e:e+""},h6=Tt.document,ait=Wr(h6)&&Wr(h6.createElement),lL=function(t){return ait?h6.createElement(t):{}},cL=!Gn&&!sr(function(){return Object.defineProperty(lL("div"),"a",{get:function(){return 7}}).a!=7}),pk=Object.getOwnPropertyDescriptor,s8={f:Gn?pk:function(t,e){if(t=Io(t),e=mc(e),cL)try{return pk(t,e)}catch(n){}if(Yt(t,e))return rs(!xo(i8.f,t,e),t[e])}},uit=/#|\.prototype\./,th=function(t,e){var n=lit[sit(t)];return n==fit||n!=cit&&(kn(e)?sr(e):!!e)},sit=th.normalize=function(t){return String(t).replace(uit,".").toLowerCase()},lit=th.data={},cit=th.NATIVE="N",fit=th.POLYFILL="P",dit=th,hk=_e(_e.bind),fL=function(t,e){return sL(t),e===void 0?t:hk?hk(t,e):function(){return t.apply(e,arguments)}},pit=Tt.String,hit=Tt.TypeError,os=function(t){if(Wr(t))return t;throw hit(pit(t)+" is not an object")},git=Tt.TypeError,gk=Object.defineProperty,ms={f:Gn?gk:function(t,e,n){if(os(t),e=mc(e),os(n),cL)try{return gk(t,e,n)}catch(r){}if("get"in n||"set"in n)throw git("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},go=Gn?function(t,e,n){return ms.f(t,e,rs(1,n))}:function(t,e,n){return t[e]=n,t},vit=s8.f,yit=function(t){var e=function(n,r,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,o)}return oL(t,this,arguments)};return e.prototype=t.prototype,e},Wi=function(t,e){var n,r,o,i,a,u,s,l,c=t.target,f=t.global,d=t.stat,p=t.proto,v=f?Tt:d?Tt[c]:(Tt[c]||{}).prototype,y=f?mr:mr[c]||go(mr,c,{})[c],g=y.prototype;for(o in e)n=!dit(f?o:c+(d?".":"#")+o,t.forced)&&v&&Yt(v,o),a=y[o],n&&(u=t.noTargetGet?(l=vit(v,o))&&l.value:v[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(s=t.bind&&n?fL(i,Tt):t.wrap&&n?yit(i):p&&kn(i)?_e(i):i,(t.sham||i&&i.sham||a&&a.sham)&&go(s,"sham",!0),go(y,o,s),p&&(Yt(mr,r=c+"Prototype")||go(mr,r,{}),go(mr[r],o,i),t.real&&g&&!g[o]&&go(g,o,i)))},Cv=Array.isArray||function(t){return ju(t)=="Array"},mit=Math.ceil,bit=Math.floor,l8=function(t){var e=+t;return e!=e||e===0?0:(e>0?bit:mit)(e)},wit=Math.min,sy=function(t){return(e=t.length)>0?wit(l8(e),9007199254740991):0;var e},g6=function(t,e,n){var r=mc(e);r in t?ms.f(t,r,rs(0,n)):t[r]=n},dL={};dL[dr("toStringTag")]="z";var c8=String(dL)==="[object z]",Eit=dr("toStringTag"),Dit=Tt.Object,Cit=ju(function(){return arguments}())=="Arguments",ly=c8?ju:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Dit(t),Eit))=="string"?n:Cit?ju(e):(r=ju(e))=="Object"&&kn(e.callee)?"Arguments":r},xit=_e(Function.toString);kn(ca.inspectSource)||(ca.inspectSource=function(t){return xit(t)});var pL=ca.inspectSource,hL=function(){},Sit=[],gL=Jp("Reflect","construct"),f8=/^\s*(?:class|function)\b/,Ait=_e(f8.exec),Oit=!f8.exec(hL),gf=function(t){if(!kn(t))return!1;try{return gL(hL,Sit,t),!0}catch(e){return!1}},kit=!gL||sr(function(){var t;return gf(gf.call)||!gf(Object)||!gf(function(){t=!0})||t})?function(t){if(!kn(t))return!1;switch(ly(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Oit||!!Ait(f8,pL(t))}:gf,Bit=dr("species"),vk=Tt.Array,vL=function(t,e){return new(function(n){var r;return Cv(n)&&(r=n.constructor,(kit(r)&&(r===vk||Cv(r.prototype))||Wr(r)&&(r=r[Bit])===null)&&(r=void 0)),r===void 0?vk:r}(t))(e===0?0:e)},Fit=dr("species"),yL=dr("isConcatSpreadable"),yk=Tt.TypeError,Tit=Ev>=51||!sr(function(){var t=[];return t[yL]=!1,t.concat()[0]!==t}),_it=Ev>=51||!sr(function(){var t=[];return(t.constructor={})[Fit]=function(){return{foo:1}},t.concat(Boolean).foo!==1}),Pit=function(t){if(!Wr(t))return!1;var e=t[yL];return e!==void 0?!!e:Cv(t)};Wi({target:"Array",proto:!0,forced:!Tit||!_it},{concat:function(t){var e,n,r,o,i,a=Qp(this),u=vL(a,0),s=0;for(e=-1,r=arguments.length;e<r;e++)if(Pit(i=e===-1?a:arguments[e])){if(s+(o=sy(i))>9007199254740991)throw yk("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&g6(u,s,i[n])}else{if(s>=9007199254740991)throw yk("Maximum allowed index exceeded");g6(u,s++,i)}return u.length=s,u}});var i0,jit=Tt.String,xv=function(t){if(ly(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return jit(t)},Nit=Math.max,Iit=Math.min,v6=function(t,e){var n=l8(t);return n<0?Nit(n+e,0):Iit(n,e)},mk=function(t){return function(e,n,r){var o,i=Io(e),a=sy(i),u=v6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Lit={includes:mk(!0),indexOf:mk(!1)},eh={},Rit=Lit.indexOf,bk=_e([].push),mL=function(t,e){var n,r=Io(t),o=0,i=[];for(n in r)!Yt(eh,n)&&Yt(r,n)&&bk(i,n);for(;e.length>o;)Yt(r,n=e[o++])&&(~Rit(i,n)||bk(i,n));return i},Sv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],d8=Object.keys||function(t){return mL(t,Sv)},Mit=Gn?Object.defineProperties:function(t,e){os(t);for(var n,r=Io(e),o=d8(e),i=o.length,a=0;i>a;)ms.f(t,n=o[a++],r[n]);return t},zit=Jp("document","documentElement"),wk=ys("keys"),cy=function(t){return wk[t]||(wk[t]=Dv(t))},bL=cy("IE_PROTO"),i2=function(){},wL=function(t){return"<script>"+t+"<\/script>"},Ek=function(t){t.write(wL("")),t.close();var e=t.parentWindow.Object;return t=null,e},Q0=function(){try{i0=new ActiveXObject("htmlfile")}catch(r){}var t,e;Q0=typeof document!="undefined"?document.domain&&i0?Ek(i0):((e=lL("iframe")).style.display="none",zit.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(wL("document.F=Object")),t.close(),t.F):Ek(i0);for(var n=Sv.length;n--;)delete Q0.prototype[Sv[n]];return Q0()};eh[bL]=!0;var Av,gd,Ov,is=Object.create||function(t,e){var n;return t!==null?(i2.prototype=os(t),n=new i2,i2.prototype=null,n[bL]=t):n=Q0(),e===void 0?n:Mit(n,e)},$it=Sv.concat("length","prototype"),EL={f:Object.getOwnPropertyNames||function(t){return mL(t,$it)}},Hit=Tt.Array,Vit=Math.max,Dk=EL.f,Ck=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],DL={f:function(t){return Ck&&ju(t)=="Window"?function(e){try{return Dk(e)}catch(n){return function(r,o,i){for(var a=sy(r),u=v6(void 0,a),s=v6(a,a),l=Hit(Vit(s-u,0)),c=0;u<s;u++,c++)g6(l,c,r[u]);return l.length=c,l}(Ck)}}(t):Dk(Io(t))}},a2={f:Object.getOwnPropertySymbols},Uit=_e([].slice),kv=function(t,e,n,r){go(t,e,n)},p8={f:dr},Wit=ms.f,Ie=function(t){var e=mr.Symbol||(mr.Symbol={});Yt(e,t)||Wit(e,t,{value:p8.f(t)})},Git=c8?{}.toString:function(){return"[object "+ly(this)+"]"},qit=ms.f,xk=dr("toStringTag"),Bv=function(t,e,n,r){if(t){var o=n?t:t.prototype;Yt(o,xk)||qit(o,xk,{configurable:!0,value:e}),r&&!c8&&go(o,"toString",Git)}},Sk=Tt.WeakMap,Kit=kn(Sk)&&/native code/.test(pL(Sk)),y6=Tt.TypeError,Yit=Tt.WeakMap;if(Kit||ca.state){var tu=ca.state||(ca.state=new Yit),Xit=_e(tu.get),Ak=_e(tu.has),Zit=_e(tu.set);Av=function(t,e){if(Ak(tu,t))throw new y6("Object already initialized");return e.facade=t,Zit(tu,t,e),e},gd=function(t){return Xit(tu,t)||{}},Ov=function(t){return Ak(tu,t)}}else{var Hs=cy("state");eh[Hs]=!0,Av=function(t,e){if(Yt(t,Hs))throw new y6("Object already initialized");return e.facade=t,go(t,Hs,e),e},gd=function(t){return Yt(t,Hs)?t[Hs]:{}},Ov=function(t){return Yt(t,Hs)}}var bc={set:Av,get:gd,has:Ov,enforce:function(t){return Ov(t)?gd(t):Av(t,{})},getterFor:function(t){return function(e){var n;if(!Wr(e)||(n=gd(e)).type!==t)throw y6("Incompatible receiver, "+t+" required");return n}}},Ok=_e([].push),Pi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=Qp(s),y=aL(v),g=fL(l,c),m=sy(y),h=0,b=f||vL,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:Ok(w,d)}else switch(t){case 4:return!1;case 7:Ok(w,d)}return i?-1:r||o?o:w}},fy=[Pi(0),Pi(1),Pi(2),Pi(3),Pi(4),Pi(5),Pi(6),Pi(7)][0],zn=cy("hidden"),kk=dr("toPrimitive"),Jit=bc.set,Bk=bc.getterFor("Symbol"),Gr=Object.prototype,Ki=Tt.Symbol,ta=Ki&&Ki.prototype,Fk=Tt.TypeError,u2=Tt.QObject,vf=Jp("JSON","stringify"),CL=s8.f,Yi=ms.f,xL=DL.f,Qit=i8.f,SL=_e([].push),si=ys("symbols"),nh=ys("op-symbols"),s2=ys("string-to-symbol-registry"),l2=ys("symbol-to-string-registry"),tat=ys("wks"),c2=!u2||!u2.prototype||!u2.prototype.findChild,m6=Gn&&sr(function(){return is(Yi({},"a",{get:function(){return Yi(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=CL(Gr,e);r&&delete Gr[e],Yi(t,e,n),r&&t!==Gr&&Yi(Gr,e,r)}:Yi,f2=function(t,e){var n=si[t]=is(ta);return Jit(n,{type:"Symbol",tag:t,description:e}),Gn||(n.description=e),n},Fv=function(t,e,n){t===Gr&&Fv(nh,e,n),os(t);var r=mc(e);return os(n),Yt(si,r)?(n.enumerable?(Yt(t,zn)&&t[zn][r]&&(t[zn][r]=!1),n=is(n,{enumerable:rs(0,!1)})):(Yt(t,zn)||Yi(t,zn,rs(1,{})),t[zn][r]=!0),m6(t,r,n)):Yi(t,r,n)},Tk=function(t,e){os(t);var n=Io(e),r=d8(n).concat(b6(n));return fy(r,function(o){Gn&&!xo(AL,n,o)||Fv(t,o,n[o])}),t},AL=function(t){var e=mc(t),n=xo(Qit,this,e);return!(this===Gr&&Yt(si,e)&&!Yt(nh,e))&&(!(n||!Yt(this,e)||!Yt(si,e)||Yt(this,zn)&&this[zn][e])||n)},_k=function(t,e){var n=Io(t),r=mc(e);if(n!==Gr||!Yt(si,r)||Yt(nh,r)){var o=CL(n,r);return!o||!Yt(si,r)||Yt(n,zn)&&n[zn][r]||(o.enumerable=!0),o}},Pk=function(t){var e=xL(Io(t)),n=[];return fy(e,function(r){Yt(si,r)||Yt(eh,r)||SL(n,r)}),n},b6=function(t){var e=t===Gr,n=xL(e?nh:Io(t)),r=[];return fy(n,function(o){!Yt(si,o)||e&&!Yt(Gr,o)||SL(r,si[o])}),r};if(po||(ta=(Ki=function(){if(uL(ta,this))throw Fk("Symbol is not a constructor");var t=arguments.length&&arguments[0]!==void 0?xv(arguments[0]):void 0,e=Dv(t),n=function(r){this===Gr&&xo(n,nh,r),Yt(this,zn)&&Yt(this[zn],e)&&(this[zn][e]=!1),m6(this,e,rs(1,r))};return Gn&&c2&&m6(Gr,e,{configurable:!0,set:n}),f2(e,t)}).prototype,kv(ta,"toString",function(){return Bk(this).tag}),kv(Ki,"withoutSetter",function(t){return f2(Dv(t),t)}),i8.f=AL,ms.f=Fv,s8.f=_k,EL.f=DL.f=Pk,a2.f=b6,p8.f=function(t){return f2(dr(t),t)},Gn&&Yi(ta,"description",{configurable:!0,get:function(){return Bk(this).description}})),Wi({global:!0,wrap:!0,forced:!po,sham:!po},{Symbol:Ki}),fy(d8(tat),function(t){Ie(t)}),Wi({target:"Symbol",stat:!0,forced:!po},{for:function(t){var e=xv(t);if(Yt(s2,e))return s2[e];var n=Ki(e);return s2[e]=n,l2[n]=e,n},keyFor:function(t){if(!El(t))throw Fk(t+" is not a symbol");if(Yt(l2,t))return l2[t]},useSetter:function(){c2=!0},useSimple:function(){c2=!1}}),Wi({target:"Object",stat:!0,forced:!po,sham:!Gn},{create:function(t,e){return e===void 0?is(t):Tk(is(t),e)},defineProperty:Fv,defineProperties:Tk,getOwnPropertyDescriptor:_k}),Wi({target:"Object",stat:!0,forced:!po},{getOwnPropertyNames:Pk,getOwnPropertySymbols:b6}),Wi({target:"Object",stat:!0,forced:sr(function(){a2.f(1)})},{getOwnPropertySymbols:function(t){return a2.f(Qp(t))}}),vf){var eat=!po||sr(function(){var t=Ki();return vf([t])!="[null]"||vf({a:t})!="{}"||vf(Object(t))!="{}"});Wi({target:"JSON",stat:!0,forced:eat},{stringify:function(t,e,n){var r=Uit(arguments),o=e;if((Wr(e)||t!==void 0)&&!El(t))return Cv(e)||(e=function(i,a){if(kn(o)&&(a=xo(o,this,i,a)),!El(a))return a}),r[1]=e,oL(vf,null,r)}})}if(!ta[kk]){var nat=ta.valueOf;kv(ta,kk,function(t){return xo(nat,this)})}Bv(Ki,"Symbol"),eh[zn]=!0,Ie("asyncIterator"),Ie("hasInstance"),Ie("isConcatSpreadable"),Ie("iterator"),Ie("match"),Ie("matchAll"),Ie("replace"),Ie("search"),Ie("species"),Ie("split"),Ie("toPrimitive"),Ie("toStringTag"),Ie("unscopables"),Bv(Tt.JSON,"JSON",!0);var ea,jk,Nk,rat=mr.Symbol,Iu={},OL=Function.prototype,oat=Gn&&Object.getOwnPropertyDescriptor,d2=Yt(OL,"name"),iat={EXISTS:d2,PROPER:d2&&function(){}.name==="something",CONFIGURABLE:d2&&(!Gn||Gn&&oat(OL,"name").configurable)},aat=!sr(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Ik=cy("IE_PROTO"),w6=Tt.Object,uat=w6.prototype,E6=aat?w6.getPrototypeOf:function(t){var e=Qp(t);if(Yt(e,Ik))return e[Ik];var n=e.constructor;return kn(n)&&e instanceof n?n.prototype:e instanceof w6?uat:null},D6=dr("iterator"),kL=!1;[].keys&&("next"in(Nk=[].keys())?(jk=E6(E6(Nk)))!==Object.prototype&&(ea=jk):kL=!0);var sat=ea==null||sr(function(){var t={};return ea[D6].call(t)!==t});ea=sat?{}:is(ea),kn(ea[D6])||kv(ea,D6,function(){return this});var BL={IteratorPrototype:ea,BUGGY_SAFARI_ITERATORS:kL},lat=BL.IteratorPrototype,cat=function(){return this};Tt.String,Tt.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{_e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(t,[]),t instanceof Array}catch(e){}}();var fat=iat.PROPER,p2=BL.BUGGY_SAFARI_ITERATORS,dat=dr("iterator"),pat=function(){return this},FL=function(t,e,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=is(lat,{next:rs(1,h)}),Bv(g,w,!1,!0),Iu[w]=cat})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!p2&&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=e+" Iterator",f=!1,d=t.prototype,p=d[dat]||d["@@iterator"]||o&&d[o],v=!p2&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=E6(y.call(new t)))!==Object.prototype&&u.next&&(Bv(u,c,!0,!0),Iu[c]=pat),fat&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return xo(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Wi({target:e,proto:!0,forced:p2||f},s)),Iu[e]=v,s},hat=bc.set,gat=bc.getterFor("Array Iterator");FL(Array,"Array",function(t,e){hat(this,{type:"Array Iterator",target:Io(t),index:0,kind:e})},function(){var t=gat(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Iu.Arguments=Iu.Array;var Lk=dr("toStringTag");for(var h2 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 Rk=Tt[h2],g2=Rk&&Rk.prototype;g2&&ly(g2)!==Lk&&go(g2,Lk,h2),Iu[h2]=Iu.Array}var vat=rat;Ie("asyncDispose"),Ie("dispose"),Ie("matcher"),Ie("metadata"),Ie("observable"),Ie("patternMatch"),Ie("replaceAll");var a0=vat,yat=_e("".charAt),Mk=_e("".charCodeAt),mat=_e("".slice),bat=function(t){return function(e,n){var r,o,i=xv(a8(e)),a=l8(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=Mk(i,a))<55296||r>56319||a+1===u||(o=Mk(i,a+1))<56320||o>57343?t?yat(i,a):r:t?mat(i,a,a+2):o-56320+(r-55296<<10)+65536}},wat=bat(!0),Eat=bc.set,Dat=bc.getterFor("String Iterator");FL(String,"String",function(t){Eat(this,{type:"String Iterator",string:xv(t),index:0})},function(){var t,e=Dat(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=wat(n,r),e.index+=t.length,{value:t,done:!1})});var Cat=p8.f("iterator"),xat=ty(function(t){function e(n){return typeof a0=="function"&&typeof Cat=="symbol"?(t.exports=e=function(r){return typeof r},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(r){return r&&typeof a0=="function"&&r.constructor===a0&&r!==a0.prototype?"symbol":typeof r},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0}),TL=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(xat),Sat=ry.EXISTS,Aat=hc.f,_L=Function.prototype,Oat=mt(_L.toString),PL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,kat=mt(PL.exec);to&&!Sat&&Aat(_L,"name",{configurable:!0,get:function(){try{return kat(PL,Oat(this))[1]}catch(t){return""}}});var jL=function(){function t(){this.tag="select",this.width=80}return t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.mark,r=E.marks(e);return r&&r[n]?r[n]:""},t.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!Xt(E.nodes(e,{match:function(n){return A.getNodeType(n)==="pre"||!!E.isVoid(e,n)},universal:!0}),1)[0])},t.prototype.exec=function(e,n){var r=this.mark;n?e.addMark(r,n):e.removeMark(r)},t}(),Bat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontSize.title"),n.iconSvg=ert,n.mark="fontSize",n}return Ee(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;r.push({text:tt("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u});else if(TL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(jL),Fat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("fontFamily.title"),n.iconSvg=nrt,n.mark="fontFamily",n.selectPanelWidth=150,n}return Ee(e,t),e.prototype.getOptions=function(n){var r=[],o=n.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;r.push({text:tt("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")r.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(TL(u)==="object"){var s=u.name,l=u.value;r.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(n);return r.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),r},e}(jL),Tat={renderStyle:function(t,e){var n=t,r=n.fontSize,o=n.fontFamily,i=e;return r&&ns(i,{fontSize:r}),o&&ns(i,{fontFamily:o}),i},styleToHtml:function(t,e){if(!it.isText(t))return e;var n,r=t,o=r.fontSize,i=r.fontFamily;return o||i?((t8(e)||yc(n=B(e))!=="span")&&(n=B("<span>"+e+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),vc(n)):e},preParseHtml:[Rot],parseStyleHtml:function(t,e,n){var r=B(t);if(!it.isText(e))return e;var o=e,i=n.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=Zr(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=Zr(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 Bat},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 Fat},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},_at={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(t){var e=B(t),n=Zr(e,"padding-left");return/\dem/.test(n)&&e.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&e.css("text-indent","2em"),e[0]}},NL=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){var n=Xt(E.nodes(e,{match:function(o){return!!o.indent},universal:!0}),1),r=n[0];return r==null?"":Xt(r,1)[0].indent||""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Xt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t}(),Pat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.decrease"),n.iconSvg=rrt,n}return Ee(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:null},{match:function(o){return ft.isElement(o)}})},e}(NL),jat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("indent.increase"),n.iconSvg=ort,n}return Ee(e,t),e.prototype.isDisabled=function(n){var r=this.getMatchNode(n);return r==null||!!r.indent},e.prototype.exec=function(n,r){N.setNodes(n,{indent:"2em"},{match:function(o){return ft.isElement(o)},mode:"highest"})},e}(NL),Nat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.indent,r=e;return n&&ns(r,{textIndent:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.indent;if(!n)return e;var r=B(e);return r.css("text-indent",n),vc(r)},preParseHtml:[_at],parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e))return e;var o=e,i=Zr(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new jat}},{key:"delIndent",factory:function(){return new Pat}}]},dy=function(){function t(){this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.getMatchNode=function(e){var n=Xt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code"].includes(r)||void 0})},t}(),Iat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.left"),n.iconSvg=irt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"left"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(dy),Lat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.right"),n.iconSvg=art,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"right"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(dy),Rat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.center"),n.iconSvg=urt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"center"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(dy),Mat=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.title=tt("justify.justify"),n.iconSvg=srt,n}return Ee(e,t),e.prototype.exec=function(n,r){N.setNodes(n,{textAlign:"justify"},{match:function(o){return ft.isElement(o)&&!n.isInline(o)}})},e}(dy),zat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.textAlign,r=e;return n&&ns(r,{textAlign:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.textAlign;if(!n)return e;var r=B(e);return r.css("text-align",n),vc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e))return e;var o=e,i=Zr(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Iat}},{key:"justifyRight",factory:function(){return new Lat}},{key:"justifyCenter",factory:function(){return new Rat}},{key:"justifyJustify",factory:function(){return new Mat}}]},$at=function(){function t(){this.title=tt("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("lineHeight").lineHeightList,o=r===void 0?[]:r;n.push({text:tt("lineHeight.default"),value:""}),o.forEach(function(a){n.push({text:a,value:a})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.getMatchNode=function(e){var n=Xt(E.nodes(e,{match:function(r){var o=A.getNodeType(r);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return n==null?null:n[0]},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getMatchNode(e);return n==null?"":ft.isElement(n)&&n.lineHeight||""},t.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},t.prototype.exec=function(e,n){N.setNodes(e,{lineHeight:n.toString()},{mode:"highest"})},t}(),Hat={renderStyle:function(t,e){if(!ft.isElement(t))return e;var n=t.lineHeight,r=e;return n&&ns(r,{lineHeight:n}),r},styleToHtml:function(t,e){if(!ft.isElement(t))return e;var n=t.lineHeight;if(!n)return e;var r=B(e);return r.css("line-height",n),vc(r)},parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e))return e;var o=e,i=n.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=Zr(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new $at},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Vat=function(){function t(){this.title=tt("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.redo=="function"&&e.redo()},t}(),Uat=function(){function t(){this.title=tt("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null},t.prototype.exec=function(e,n){typeof e.undo=="function"&&e.undo()},t}(),Wat={menus:[{key:"redo",factory:function(){return new Vat}},{key:"undo",factory:function(){return new Uat}}]},Gat={type:"divider",renderElem:function(t,e,n){return $l("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:A.isNodeSelected(n,t)?"true":""},style:{},on:{mousedown:function(r){return r.preventDefault()}}},[$l("hr")])}},qat=function(){function t(){this.title=tt("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var r=A.getNodeType(n);return r==="table"||r==="pre"||void 0})},t.prototype.exec=function(e,n){N.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},t}(),Kat={renderElems:[Gat],elemsToHtml:[{type:"divider",elemToHtml:function(t,e){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new qat}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="divider"||e(o)},r.normalizeNode=function(o){var i=Xt(o,2),a=i[0],u=i[1];if(A.getNodeType(a)!=="divider")return n([a,u]);A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]})},r}},Yat=iy.map;tn({target:"Array",proto:!0,forced:!YD("map")},{map:function(t){return Yat(this,t,arguments.length>1?arguments[1]:void 0)}});var Xat=mt([].join),Zat=ey!=Object,Jat=MI("join",",");tn({target:"Array",proto:!0,forced:Zat||!Jat},{join:function(t){return Xat(pc(this),t===void 0?",":t)}});var Qat=function(){function t(){this.title=tt("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return r==null||A.getNodeType(r)!=="pre"?null:n},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);return n==null?"":n.language||""},t.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},t.prototype.isDisabled=function(e){if(e.selection==null)return!0;var n=A.getSelectedElems(e);return!!n.some(function(r){return e.isVoid(r)})||!n.some(function(r){var o=A.getNodeType(r);if(o==="pre"||o==="paragraph")return!0})},t.prototype.exec=function(e,n){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,n.toString())},t.prototype.changeToPlainText=function(e){var n=this.getSelectCodeElem(e);if(n!=null){var r=Q.string(n);N.removeNodes(e,{mode:"highest"});var o=r.split(`
`).map(function(i){return{type:"paragraph",children:[{text:i}]}});N.insertNodes(e,o,{mode:"highest"})}},t.prototype.changeToCodeBlock=function(e,n){var r,o,i=[],a=E.nodes(e,{match:function(f){return e.children.includes(f)},universal:!0});try{for(var u=RI(a),s=u.next();!s.done;s=u.next()){var l=Xt(s.value,1)[0];l&&i.push(Q.string(l))}}catch(f){r={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}N.removeNodes(e,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:n,children:[{text:i.join(`
`)}]}]};N.insertNodes(e,c,{mode:"highest"})},t}(),tut={key:"codeBlock",factory:function(){return new Qat}};tn({target:"String",proto:!0,forced:td("anchor")},{anchor:function(t){return Qf(this,"a","name",t)}}),JD("match",function(t,e,n){return[function(r){var o=Tr(this),i=r==null?void 0:ny(r,t);return i?Le(i,r,o):new RegExp(r)[t](Ce(o))},function(r){var o=or(this),i=Ce(r),a=n(e,o,i);if(a.done)return a.value;if(!o.global)return np(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=np(o,i))!==null;){var f=Ce(s[0]);l[c]=f,f===""&&(o.lastIndex=QD(i,Kp(o.lastIndex),u)),c++}return c===0?null:l}]});var eut={type:"pre",renderElem:function(t,e,n){return wt("pre",null,e)}},nut={type:"code",renderElem:function(t,e,n){return wt("code",null,e)}},rut={selector:"pre:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);return(e=e.filter(function(o){return A.getNodeType(o)==="code"})).length===0&&(e=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:e.filter(function(o){return A.getNodeType(o)==="code"})}}},out={menus:[tut],editorPlugin:function(t){var e=t.insertBreak,n=t.normalizeNode,r=t.insertData;t.insertNode;var o=t;return o.insertBreak=function(){var i=A.getSelectedNodeByType(o,"code");if(i!=null){var a=function(l,c){var f=c.selection;if(f==null)return"";var d=Q.string(l),p=f.anchor.offset,v=d.slice(0,p).split(`
`),y=v.length;return y===0?"":v[y-1]}(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
`+s)}}o.insertText(`
`)}else e()},o.normalizeNode=function(i){var a=Xt(i,2),u=a[0],s=a[1],l=A.getNodeType(u);return l==="code"&&s.length<=1&&N.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(A.isLastNode(o,u)&&N.insertNodes(o,A.genEmptyParagraph(),{at:[s[0]+1]}),A.getNodeType(u.children[0])!=="code"&&(N.unwrapNodes(o),N.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([u,s])},o.insertData=function(i){if(A.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");E.insertText(o,a)}else r(i)},o},renderElems:[eut,nut],elemsToHtml:[{type:"code",elemToHtml:function(t,e){return"<code>"+e+"</code>"}},{type:"pre",elemToHtml:function(t,e){return"<pre>"+e+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(t){var e=B(t);if(yc(e)!=="code")return t;var n=e.find("xmp");if(n.length===0)return t;var r=n.text();return n.remove(),e.text(r),e[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(t,e,n){return{type:"code",language:"",children:[{text:B(t)[0].textContent||""}]}}},rut]},iut=function(){function t(){this.title=tt("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return e.isFullScreen},t.prototype.isDisabled=function(e){return!1},t.prototype.exec=function(e,n){e.isFullScreen?e.unFullScreen():e.fullScreen()},t}(),aut={menus:[{key:"fullScreen",factory:function(){return new iut}}]},uut=function(){function t(){this.title=tt("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!!L.isExpanded(n)},t.prototype.exec=function(e,n){var r=e.selection;if(r!=null){var o=[r.anchor.path[0]];N.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:o}),e.select(E.start(e,o))}},t}(),sut=[brt,Zrt,Tat,Nat,zat,Hat,Eot,Kat,Iot,sot,out,jot,Grt,Hnt,Sot,Wat,aut,{menus:[{key:"enter",factory:function(){return new uut}}]}];Kn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Kn("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var zk=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function h8(t){var e={exports:{}};return t(e,e.exports),e.exports}var ji,tg,u0=function(t){return t&&t.Math==Math&&t},Et=u0(typeof globalThis=="object"&&globalThis)||u0(typeof window=="object"&&window)||u0(typeof self=="object"&&self)||u0(typeof zk=="object"&&zk)||function(){return this}()||Function("return this")(),IL=Function.prototype,C6=IL.bind,x6=IL.call,lut=C6&&C6.bind(x6),Nt=C6?function(t){return t&&lut(x6,t)}:function(t){return t&&function(){return x6.apply(t,arguments)}},ke=function(t){try{return!!t()}catch(e){return!0}},cut=Nt({}.toString),fut=Nt("".slice),ri=function(t){return fut(cut(t),8,-1)},v2=Et.Object,dut=Nt("".split),LL=ke(function(){return!v2("z").propertyIsEnumerable(0)})?function(t){return ri(t)=="String"?dut(t,""):v2(t)}:v2,put=Et.TypeError,py=function(t){if(t==null)throw put("Can't call method on "+t);return t},wc=function(t){return LL(py(t))},hut=Object.defineProperty,g8=function(t,e){try{hut(Et,t,{value:e,configurable:!0,writable:!0})}catch(n){Et[t]=e}return e},fa=Et["__core-js_shared__"]||g8("__core-js_shared__",{}),v8=h8(function(t){(t.exports=function(e,n){return fa[e]||(fa[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),gut=Et.Object,rh=function(t){return gut(py(t))},vut=Nt({}.hasOwnProperty),en=Object.hasOwn||function(t,e){return vut(rh(t),e)},yut=0,mut=Math.random(),but=Nt(1 .toString),y8=function(t){return"Symbol("+(t===void 0?"":t)+")_"+but(++yut+mut,36)},Pe=function(t){return typeof t=="function"},wut=function(t){return Pe(t)?t:void 0},oh=function(t,e){return arguments.length<2?wut(Et[t]):Et[t]&&Et[t][e]},y2=oh("navigator","userAgent")||"",$k=Et.process,Hk=Et.Deno,Vk=$k&&$k.versions||Hk&&Hk.version,Uk=Vk&&Vk.v8;Uk&&(tg=(ji=Uk.split("."))[0]>0&&ji[0]<4?1:+(ji[0]+ji[1])),!tg&&y2&&(!(ji=y2.match(/Edge\/(\d+)/))||ji[1]>=74)&&(ji=y2.match(/Chrome\/(\d+)/))&&(tg=+ji[1]);var s0,S6=tg,A6=!!Object.getOwnPropertySymbols&&!ke(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&S6&&S6<41}),m8=A6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",yf=v8("wks"),Lu=Et.Symbol,Wk=Lu&&Lu.for,Eut=m8?Lu:Lu&&Lu.withoutSetter||y8,vn=function(t){if(!en(yf,t)||!A6&&typeof yf[t]!="string"){var e="Symbol."+t;A6&&en(Lu,t)?yf[t]=Lu[t]:yf[t]=m8&&Wk?Wk(e):Eut(e)}return yf[t]},Te=function(t){return typeof t=="object"?t!==null:Pe(t)},Dut=Et.String,Cut=Et.TypeError,Yn=function(t){if(Te(t))return t;throw Cut(Dut(t)+" is not an object")},ka=!ke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),O6=Et.document,xut=Te(O6)&&Te(O6.createElement),b8=function(t){return xut?O6.createElement(t):{}},RL=!ka&&!ke(function(){return Object.defineProperty(b8("div"),"a",{get:function(){return 7}}).a!=7}),mf=Function.prototype.call,sn=mf.bind?mf.bind(mf):function(){return mf.apply(mf,arguments)},Tv=Nt({}.isPrototypeOf),Sut=Et.Object,m2=m8?function(t){return typeof t=="symbol"}:function(t){var e=oh("Symbol");return Pe(e)&&Tv(e.prototype,Sut(t))},Aut=Et.String,k6=function(t){try{return Aut(t)}catch(e){return"Object"}},Out=Et.TypeError,w8=function(t){if(Pe(t))return t;throw Out(k6(t)+" is not a function")},rp=function(t,e){var n=t[e];return n==null?void 0:w8(n)},kut=Et.TypeError,But=Et.TypeError,Fut=vn("toPrimitive"),E8=function(t){var e=function(n,r){if(!Te(n)||m2(n))return n;var o,i=rp(n,Fut);if(i){if(o=sn(i,n,r),!Te(o)||m2(o))return o;throw But("Can't convert object to primitive value")}return function(a,u){var s,l;if(Pe(s=a.toString)&&!Te(l=sn(s,a))||Pe(s=a.valueOf)&&!Te(l=sn(s,a)))return l;throw kut("Can't convert object to primitive value")}(n)}(t,"string");return m2(e)?e:e+""},Tut=Et.TypeError,Gk=Object.defineProperty,bs={f:ka?Gk:function(t,e,n){if(Yn(t),e=E8(e),Yn(n),RL)try{return Gk(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Tut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},_ut=Math.ceil,Put=Math.floor,ih=function(t){var e=+t;return e!=e||e===0?0:(e>0?Put:_ut)(e)},jut=Math.max,Nut=Math.min,B6=function(t,e){var n=ih(t);return n<0?jut(n+e,0):Nut(n,e)},Iut=Math.min,ML=function(t){return t>0?Iut(ih(t),9007199254740991):0},Ec=function(t){return ML(t.length)},qk=function(t){return function(e,n,r){var o,i=wc(e),a=Ec(i),u=B6(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},zL={includes:qk(!0),indexOf:qk(!1)},hy={},Lut=zL.indexOf,Kk=Nt([].push),$L=function(t,e){var n,r=wc(t),o=0,i=[];for(n in r)!en(hy,n)&&en(r,n)&&Kk(i,n);for(;e.length>o;)en(r,n=e[o++])&&(~Lut(i,n)||Kk(i,n));return i},_v=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rut=Object.keys||function(t){return $L(t,_v)},Mut=ka?Object.defineProperties:function(t,e){Yn(t);for(var n,r=wc(e),o=Rut(e),i=o.length,a=0;i>a;)bs.f(t,n=o[a++],r[n]);return t},zut=oh("document","documentElement"),Yk=v8("keys"),D8=function(t){return Yk[t]||(Yk[t]=y8(t))},HL=D8("IE_PROTO"),b2=function(){},VL=function(t){return"<script>"+t+"<\/script>"},Xk=function(t){t.write(VL("")),t.close();var e=t.parentWindow.Object;return t=null,e},eg=function(){try{s0=new ActiveXObject("htmlfile")}catch(r){}var t,e;eg=typeof document!="undefined"?document.domain&&s0?Xk(s0):((e=b8("iframe")).style.display="none",zut.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(VL("document.F=Object")),t.close(),t.F):Xk(s0);for(var n=_v.length;n--;)delete eg.prototype[_v[n]];return eg()};hy[HL]=!0;var C8=Object.create||function(t,e){var n;return t!==null?(b2.prototype=Yn(t),n=new b2,b2.prototype=null,n[HL]=t):n=eg(),e===void 0?n:Mut(n,e)},F6=vn("unscopables"),T6=Array.prototype;T6[F6]==null&&bs.f(T6,F6,{configurable:!0,value:C8(null)});var vd=function(t){T6[F6][t]=!0},Yl={},$ut=Nt(Function.toString);Pe(fa.inspectSource)||(fa.inspectSource=function(t){return $ut(t)});var Pv,yd,jv,x8=fa.inspectSource,Zk=Et.WeakMap,UL=Pe(Zk)&&/native code/.test(x8(Zk)),gy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},da=ka?function(t,e,n){return bs.f(t,e,gy(1,n))}:function(t,e,n){return t[e]=n,t},_6=Et.TypeError,Hut=Et.WeakMap;if(UL||fa.state){var eu=fa.state||(fa.state=new Hut),Vut=Nt(eu.get),Jk=Nt(eu.has),Uut=Nt(eu.set);Pv=function(t,e){if(Jk(eu,t))throw new _6("Object already initialized");return e.facade=t,Uut(eu,t,e),e},yd=function(t){return Vut(eu,t)||{}},jv=function(t){return Jk(eu,t)}}else{var Vs=D8("state");hy[Vs]=!0,Pv=function(t,e){if(en(t,Vs))throw new _6("Object already initialized");return e.facade=t,da(t,Vs,e),e},yd=function(t){return en(t,Vs)?t[Vs]:{}},jv=function(t){return en(t,Vs)}}var Ru,Qk,tB,Fo={set:Pv,get:yd,has:jv,enforce:function(t){return jv(t)?yd(t):Pv(t,{})},getterFor:function(t){return function(e){var n;if(!Te(e)||(n=yd(e)).type!==t)throw _6("Incompatible receiver, "+t+" required");return n}}},eB={}.propertyIsEnumerable,nB=Object.getOwnPropertyDescriptor,Wut={f:nB&&!eB.call({1:2},1)?function(t){var e=nB(this,t);return!!e&&e.enumerable}:eB},rB=Object.getOwnPropertyDescriptor,WL={f:ka?rB:function(t,e){if(t=wc(t),e=E8(e),RL)try{return rB(t,e)}catch(n){}if(en(t,e))return gy(!sn(Wut.f,t,e),t[e])}},GL=Function.prototype,Gut=ka&&Object.getOwnPropertyDescriptor,w2=en(GL,"name"),S8={EXISTS:w2,PROPER:w2&&function(){}.name==="something",CONFIGURABLE:w2&&(!ka||ka&&Gut(GL,"name").configurable)},li=h8(function(t){var e=S8.CONFIGURABLE,n=Fo.get,r=Fo.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Pe(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!en(u,"name")||e&&u.name!==p)&&da(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:da(i,a,u)):f?i[a]=u:g8(a,u)})(Function.prototype,"toString",function(){return Pe(this)&&n(this).source||x8(this)})}),qut=_v.concat("length","prototype"),Nv={f:Object.getOwnPropertyNames||function(t){return $L(t,qut)}},Kut={f:Object.getOwnPropertySymbols},Yut=Nt([].concat),Xut=oh("Reflect","ownKeys")||function(t){var e=Nv.f(Yn(t)),n=Kut.f;return n?Yut(e,n(t)):e},Zut=function(t,e){for(var n=Xut(e),r=bs.f,o=WL.f,i=0;i<n.length;i++){var a=n[i];en(t,a)||r(t,a,o(e,a))}},Jut=/#|\.prototype\./,ah=function(t,e){var n=tst[Qut(t)];return n==nst||n!=est&&(Pe(e)?ke(e):!!e)},Qut=ah.normalize=function(t){return String(t).replace(Jut,".").toLowerCase()},tst=ah.data={},est=ah.NATIVE="N",nst=ah.POLYFILL="P",P6=ah,rst=WL.f,Ba=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Et:l?Et[u]||g8(u,{}):(Et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=rst(n,r))&&a.value:n[r],!P6(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Zut(i,o)}(t.sham||o&&o.sham)&&da(i,"sham",!0),li(n,r,i,t)}},ost=!ke(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),oB=D8("IE_PROTO"),j6=Et.Object,ist=j6.prototype,Iv=ost?j6.getPrototypeOf:function(t){var e=rh(t);if(en(e,oB))return e[oB];var n=e.constructor;return Pe(n)&&e instanceof n?n.prototype:e instanceof j6?ist:null},N6=vn("iterator"),qL=!1;[].keys&&("next"in(tB=[].keys())?(Qk=Iv(Iv(tB)))!==Object.prototype&&(Ru=Qk):qL=!0);var ast=Ru==null||ke(function(){var t={};return Ru[N6].call(t)!==t});ast&&(Ru={}),Pe(Ru[N6])||li(Ru,N6,function(){return this});var A8={IteratorPrototype:Ru,BUGGY_SAFARI_ITERATORS:qL},ust=bs.f,iB=vn("toStringTag"),I6=function(t,e,n){t&&!en(t=n?t:t.prototype,iB)&&ust(t,iB,{configurable:!0,value:e})},sst=A8.IteratorPrototype,lst=function(){return this},cst=Et.String,fst=Et.TypeError,Lv=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return Yn(r),function(i){if(typeof i=="object"||Pe(i))return i;throw fst("Can't set "+cst(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),dst=S8.PROPER,pst=S8.CONFIGURABLE,aB=A8.IteratorPrototype,E2=A8.BUGGY_SAFARI_ITERATORS,bf=vn("iterator"),hst=function(){return this},KL=function(t,e,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=C8(sst,{next:gy(1,h)}),I6(g,w,!1),Yl[w]=lst})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!E2&&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=e+" Iterator",f=!1,d=t.prototype,p=d[bf]||d["@@iterator"]||o&&d[o],v=!E2&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=Iv(y.call(new t)))!==Object.prototype&&u.next&&(Iv(u)!==aB&&(Lv?Lv(u,aB):Pe(u[bf])||li(u,bf,hst)),I6(u,c,!0)),dst&&o=="values"&&p&&p.name!=="values"&&(pst?da(d,"name","values"):(f=!0,v=function(){return sn(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ba({target:e,proto:!0,forced:E2||f},s)),d[bf]!==v&&li(d,bf,v,{name:o}),Yl[e]=v,s},gst=Fo.set,vst=Fo.getterFor("Array Iterator"),ed=KL(Array,"Array",function(t,e){gst(this,{type:"Array Iterator",target:wc(t),index:0,kind:e})},function(){var t=vst(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Yl.Arguments=Yl.Array,vd("keys"),vd("values"),vd("entries");var YL={};YL[vn("toStringTag")]="z";var O8=String(YL)==="[object z]",yst=vn("toStringTag"),mst=Et.Object,bst=ri(function(){return arguments}())=="Arguments",vy=O8?ri:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=mst(t),yst))=="string"?n:bst?ri(e):(r=ri(e))=="Object"&&Pe(e.callee)?"Arguments":r},wst=O8?{}.toString:function(){return"[object "+vy(this)+"]"};O8||li(Object.prototype,"toString",wst,{unsafe:!0});var Est=Et.String,Yo=function(t){if(vy(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Est(t)},Dst=Nt("".charAt),uB=Nt("".charCodeAt),Cst=Nt("".slice),sB=function(t){return function(e,n){var r,o,i=Yo(py(e)),a=ih(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=uB(i,a))<55296||r>56319||a+1===u||(o=uB(i,a+1))<56320||o>57343?t?Dst(i,a):r:t?Cst(i,a,a+2):o-56320+(r-55296<<10)+65536}},XL={codeAt:sB(!1),charAt:sB(!0)},xst=XL.charAt,Sst=Fo.set,Ast=Fo.getterFor("String Iterator");KL(String,"String",function(t){Sst(this,{type:"String Iterator",string:Yo(t),index:0})},function(){var t,e=Ast(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=xst(n,r),e.index+=t.length,{value:t,done:!1})});var L6=function(t,e,n){for(var r in e)li(t,r,e[r],n);return t},Ost=Et.Array,kst=Math.max,lB=Nv.f,cB=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bst={f:function(t){return cB&&ri(t)=="Window"?function(e){try{return lB(e)}catch(n){return function(r,o,i){for(var a,u,s,l,c=Ec(r),f=B6(void 0,c),d=B6(c,c),p=Ost(kst(d-f,0)),v=0;f<d;f++,v++)a=p,u=v,s=r[f],(l=E8(u))in a?bs.f(a,l,gy(0,s)):a[l]=s;return p.length=v,p}(cB)}}(t):lB(wc(t))}},fB=ke(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),l0=Object.isExtensible,bu=ke(function(){l0(1)})||fB?function(t){return!!Te(t)&&(!fB||ri(t)!="ArrayBuffer")&&(!l0||l0(t))}:l0,Fst=!ke(function(){return Object.isExtensible(Object.preventExtensions({}))}),k8=h8(function(t){var e=bs.f,n=!1,r=y8("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Nv.f,s=Nt([].splice),l={};l[r]=1,u(l).length&&(Nv.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},Ba({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Bst.f}))},fastKey:function(u,s){if(!Te(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!en(u,r)){if(!bu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!en(u,r)){if(!bu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Fst&&n&&bu(u)&&!en(u,r)&&i(u),u}};hy[r]=!0}),dB=Nt(Nt.bind),B8=function(t,e){return w8(t),e===void 0?t:dB?dB(t,e):function(){return t.apply(e,arguments)}},Tst=vn("iterator"),_st=Array.prototype,Pst=vn("iterator"),pB=function(t){if(t!=null)return rp(t,Pst)||rp(t,"@@iterator")||Yl[vy(t)]},jst=Et.TypeError,hB=function(t,e,n){var r,o;Yn(t);try{if(!(r=rp(t,"return"))){if(e==="throw")throw n;return n}r=sn(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return Yn(r),n},Nst=Et.TypeError,ng=function(t,e){this.stopped=t,this.result=e},gB=ng.prototype,ZL=function(t,e,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),y=B8(e,f),g=function(h){return r&&hB(r,"normal",h),new ng(!0,h)},m=function(h){return d?(Yn(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)r=t;else{if(!(o=pB(t)))throw Nst(k6(t)+" is not iterable");if((c=o)!==void 0&&(Yl.Array===c||_st[Tst]===c)){for(i=0,a=Ec(t);a>i;i++)if((u=m(t[i]))&&Tv(gB,u))return u;return new ng(!1)}r=function(h,b){var w=arguments.length<2?pB(h):b;if(w8(w))return Yn(sn(w,h));throw jst(k6(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=sn(s,r)).done;){try{u=m(l.value)}catch(h){hB(r,"throw",h)}if(typeof u=="object"&&u&&Tv(gB,u))return u}return new ng(!1)},Ist=Et.TypeError,JL=function(t,e){if(Tv(e,t))return t;throw Ist("Incorrect invocation")},QL=vn("iterator"),tR=!1;try{var Lst=0,vB={next:function(){return{done:!!Lst++}},return:function(){tR=!0}};vB[QL]=function(){return this},Array.from(vB,function(){throw 2})}catch(t){}var R6=Array.isArray||function(t){return ri(t)=="Array"},eR=function(){},Rst=[],nR=oh("Reflect","construct"),F8=/^\s*(?:class|function)\b/,Mst=Nt(F8.exec),zst=!F8.exec(eR),wf=function(t){if(!Pe(t))return!1;try{return nR(eR,Rst,t),!0}catch(e){return!1}},$st=!nR||ke(function(){var t;return wf(wf.call)||!wf(Object)||!wf(function(){t=!0})||t})?function(t){if(!Pe(t))return!1;switch(vy(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return zst||!!Mst(F8,x8(t))}:wf,Hst=vn("species"),yB=Et.Array,rR=function(t,e){return new(function(n){var r;return R6(n)&&(r=n.constructor,($st(r)&&(r===yB||R6(r.prototype))||Te(r)&&(r=r[Hst])===null)&&(r=void 0)),r===void 0?yB:r}(t))(e===0?0:e)},mB=Nt([].push),Ni=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=rh(s),y=LL(v),g=B8(l,c),m=Ec(y),h=0,b=f||rR,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:mB(w,d)}else switch(t){case 4:return!1;case 7:mB(w,d)}return i?-1:r||o?o:w}},T8={forEach:Ni(0),map:Ni(1),filter:Ni(2),some:Ni(3),every:Ni(4),find:Ni(5),findIndex:Ni(6),filterReject:Ni(7)},c0=k8.getWeakData,Vst=Fo.set,Ust=Fo.getterFor,Wst=T8.find,Gst=T8.findIndex,qst=Nt([].splice),Kst=0,f0=function(t){return t.frozen||(t.frozen=new oR)},oR=function(){this.entries=[]},D2=function(t,e){return Wst(t.entries,function(n){return n[0]===e})};oR.prototype={get:function(t){var e=D2(this,t);if(e)return e[1]},has:function(t){return!!D2(this,t)},set:function(t,e){var n=D2(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Gst(this.entries,function(n){return n[0]===t});return~e&&qst(this.entries,e,1),!!~e}};var Ef,iR={getConstructor:function(t,e,n,r){var o=t(function(s,l){JL(s,i),Vst(s,{type:e,id:Kst++,frozen:void 0}),l!=null&&ZL(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Ust(e),u=function(s,l,c){var f=a(s),d=c0(Yn(l),!0);return d===!0?f0(f).set(l,c):d[f.id]=c,s};return L6(i,{delete:function(s){var l=a(this);if(!Te(s))return!1;var c=c0(s);return c===!0?f0(l).delete(s):c&&en(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Te(s))return!1;var c=c0(s);return c===!0?f0(l).has(s):c&&en(c,l.id)}}),L6(i,n?{get:function(s){var l=a(this);if(Te(s)){var c=c0(s);return c===!0?f0(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}},d0=Fo.enforce,Yst=!Et.ActiveXObject&&"ActiveXObject"in Et,aR=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xst=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=Et[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=Nt(u[g]);li(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Te(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!Te(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Te(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(P6(t,!Pe(a)||!(o||u.forEach&&!ke(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),k8.enable();else if(P6(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ke(function(){f.has(1)}),v=function(g,m){if(!tR)return!1;var h=!1;try{var b={};b[QL]=function(){return{next:function(){return{done:h=!0}}}},function(w){new a(w)}(b)}catch(w){}return h}(),y=!o&&ke(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){JL(g,u);var h=function(b,w,D){var x,C;return Lv&&Pe(x=w.constructor)&&x!==D&&Te(C=x.prototype)&&C!==D.prototype&&Lv(b,C),b}(new a,g,s);return m!=null&&ZL(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),r&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Ba({global:!0,forced:s!=a},l),I6(s,t),o||n.setStrong(s,t,r),s}("WeakMap",aR,iR);if(UL&&Yst){Ef=iR.getConstructor(aR,"WeakMap",!0),k8.enable();var Df=Xst.prototype,bB=Nt(Df.delete),p0=Nt(Df.has),wB=Nt(Df.get),EB=Nt(Df.set);L6(Df,{delete:function(t){if(Te(t)&&!bu(t)){var e=d0(this);return e.frozen||(e.frozen=new Ef),bB(this,t)||e.frozen.delete(t)}return bB(this,t)},has:function(t){if(Te(t)&&!bu(t)){var e=d0(this);return e.frozen||(e.frozen=new Ef),p0(this,t)||e.frozen.has(t)}return p0(this,t)},get:function(t){if(Te(t)&&!bu(t)){var e=d0(this);return e.frozen||(e.frozen=new Ef),p0(this,t)?wB(this,t):e.frozen.get(t)}return wB(this,t)},set:function(t,e){if(Te(t)&&!bu(t)){var n=d0(this);n.frozen||(n.frozen=new Ef),p0(this,t)?EB(this,t,e):n.frozen.set(t,e)}else EB(this,t,e);return this}})}var uR={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},C2=b8("span").classList,DB=C2&&C2.constructor&&C2.constructor.prototype,Zst=DB===Object.prototype?void 0:DB,x2=vn("iterator"),CB=vn("toStringTag"),S2=ed.values,sR=function(t,e){if(t){if(t[x2]!==S2)try{da(t,x2,S2)}catch(r){t[x2]=S2}if(t[CB]||da(t,CB,e),uR[e]){for(var n in ed)if(t[n]!==ed[n])try{da(t,n,ed[n])}catch(r){t[n]=ed[n]}}}};for(var A2 in uR)sR(Et[A2]&&Et[A2].prototype,A2);sR(Zst,"DOMTokenList");var M6=new WeakMap,Jst={type:"list-item",renderElem:function(t,e,n){M6.set(t,n);var r=t,o=r.level,i=o===void 0?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=function(f,d){var p=d,v=p.type,y=p.level,g=y===void 0?0:y,m=p.ordered,h=m!==void 0&&m;if(!h)return-1;var b=1,w=d,D=A.findPath(f,w);if(D[0]===0)return 1;for(;D[0]>0;){var x=j.previous(D),C=E.node(f,x);if(C==null)break;var O=C[0],T=O.level,R=T===void 0?0:T,H=O.type,M=O.ordered;if(H!==v||R<g)break;if(R===g){if(M!==h)break;b++}w=O,D=x}return b}(n,t);s=l+"."}else s=function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="•";break;case 1:d="◦";break;default:d="▪"}return d}(i);var c=function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var y=0;y<v&&!d;y++){var g=p[y];it.isText(g)&&(d=g)}return d==null?"":d.color||""}(t);return wt("div",{style:u},wt("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),wt("span",null,e))}},z6=function(t,e){return z6=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])},z6(t,e);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */};function lR(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}z6(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}function xB(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function md(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function SB(t){return E.nodes(t,{at:t.selection||void 0,match:function(e){return A.findPath(t,e).length===1}})}var Qst=zL.includes;Ba({target:"Array",proto:!0},{includes:function(t){return Qst(this,t,arguments.length>1?arguments[1]:void 0)}}),vd("includes");var AB,O2,tlt=function(){var t=Yn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},_8=Et.RegExp,$6=ke(function(){var t=_8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),elt=$6||ke(function(){return!_8("a","y").sticky}),nlt={BROKEN_CARET:$6||ke(function(){var t=_8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:elt,UNSUPPORTED_Y:$6},rlt=Et.RegExp,olt=ke(function(){var t=rlt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),ilt=Et.RegExp,alt=ke(function(){var t=ilt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),ult=Fo.get,slt=v8("native-string-replace",String.prototype.replace),Rv=RegExp.prototype.exec,H6=Rv,llt=Nt("".charAt),clt=Nt("".indexOf),flt=Nt("".replace),k2=Nt("".slice),B2=(O2=/b*/g,sn(Rv,AB=/a/,"a"),sn(Rv,O2,"a"),AB.lastIndex!==0||O2.lastIndex!==0),OB=nlt.BROKEN_CARET,F2=/()??/.exec("")[1]!==void 0;(B2||F2||OB||olt||alt)&&(H6=function(t){var e,n,r,o,i,a,u,s=this,l=ult(s),c=Yo(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=sn(H6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=OB&&s.sticky,v=sn(tlt,s),y=s.source,g=0,m=c;if(p&&(v=flt(v,"y",""),clt(v,"g")===-1&&(v+="g"),m=k2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&llt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),F2&&(n=new RegExp("^"+y+"$(?!\\s)",v)),B2&&(r=s.lastIndex),o=sn(Rv,p?n:s,m),p?o?(o.input=k2(o.input,g),o[0]=k2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:B2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),F2&&o&&o.length>1&&sn(slt,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=C8(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Mv=H6;Ba({target:"RegExp",proto:!0,forced:/./.exec!==Mv},{exec:Mv});var cR=function(){function t(){this.type="list-item",this.tag="button"}return t.prototype.getListNode=function(e){var n=this.type;return A.getSelectedNodeByType(e,n)},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){var n=this.getListNode(e);if(n==null)return!1;var r=n.ordered;return(r!==void 0&&r)===this.ordered},t.prototype.isDisabled=function(e){return e.selection==null||!!A.getSelectedElems(e).some(function(n){if(E.isVoid(e,n)&&E.isBlock(e,n))return!0;var r=n.type;return!!["pre","code","table"].includes(r)||void 0})},t.prototype.exec=function(e,n){this.isActive(e)?N.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):N.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},t}(),dlt='<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>',plt='<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>',hlt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!1,n.title=tt("listModule.unOrderedList"),n.iconSvg=dlt,n}return lR(e,t),e}(cR),glt=function(t){function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ordered=!0,n.title=tt("listModule.orderedList"),n.iconSvg=plt,n}return lR(e,t),e}(cR),vlt={key:"bulletedList",factory:function(){return new hlt}},ylt={key:"numberedList",factory:function(){return new glt}},kB=[],mlt={type:"list-item",elemToHtml:function(t,e){var n="",r="",o=t.ordered,i=o!==void 0&&o?"ol":"ul",a=function(l){var c=M6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,y=f.level,g=y===void 0?0:y,m=A.findPath(c,l);if(m[0]===0)return g+1;var h=j.previous(m),b=E.node(c,h);if(!b)return 0;var w=md(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,T=O===void 0?0:O;return T<g?g-T:T>g?0:T===g?C===v?0:1:0}(t);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",kB.push(i);var s=function(l){var c=M6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,y=f.level,g=y===void 0?0:y,m=A.findPath(c,l);if(m[0]===c.children.length-1)return g+1;var h=j.next(m),b=E.node(c,h);if(!b)return 0;var w=md(b,1)[0];if(A.getNodeType(w)!==d)return g+1;var D=w,x=D.ordered,C=x!==void 0&&x,O=D.level,T=O===void 0?0:O;return T<g?g-T:T>g?0:T===g?C===v?0:1:0}(t);if(s>0)for(u=0;u<s;u++)r+="</"+kB.pop()+">";return{html:"<li>"+e+"</li>",prefix:n,suffix:r}}},blt=vn("species"),wlt=T8.filter,Elt=S6>=51||!ke(function(){var t=[];return(t.constructor={})[blt]=function(){return{foo:1}},t.filter(Boolean).foo!==1});Ba({target:"Array",proto:!0,forced:!Elt},{filter:function(t){return wlt(this,t,arguments.length>1?arguments[1]:void 0)}});var P8=Function.prototype,BB=P8.apply,Dlt=P8.bind,FB=P8.call,Clt=typeof Reflect=="object"&&Reflect.apply||(Dlt?FB.bind(BB):function(){return FB.apply(BB,arguments)}),TB=(vn("species"),RegExp.prototype),xlt=XL.charAt,Slt=function(t,e,n){return e+(n?xlt(t,e).length:1)},Alt=Math.floor,T2=Nt("".charAt),Olt=Nt("".replace),_2=Nt("".slice),klt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Blt=/\$([$&'`]|\d{1,2})/g,Flt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Blt;return o!==void 0&&(o=rh(o),s=klt),Olt(i,s,function(l,c){var f;switch(T2(c,0)){case"$":return"$";case"&":return t;case"`":return _2(e,0,n);case"'":return _2(e,a);case"<":f=o[_2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Alt(d/10);return p===0?l:p<=u?r[p-1]===void 0?T2(c,1):r[p-1]+T2(c,1):l}f=r[d-1]}return f===void 0?"":f})},Tlt=Et.TypeError,_lt=function(t,e){var n=t.exec;if(Pe(n)){var r=sn(n,t,e);return r!==null&&Yn(r),r}if(ri(t)==="RegExp")return sn(Mv,t,e);throw Tlt("RegExp#exec called on incompatible receiver")},V6=vn("replace"),Plt=Math.max,jlt=Math.min,Nlt=Nt([].concat),P2=Nt([].push),_B=Nt("".indexOf),PB=Nt("".slice),Ilt="a".replace(/./,"$0")==="$0",jB=!!/./[V6]&&/./[V6]("a","$0")==="";(function(t,e,n,r){var o=vn(t),i=!ke(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ke(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Nt(/./[o]),s=function(l,c,f){var d=jB?"$":"$0";return[function(p,v){var y=py(this),g=p==null?void 0:rp(p,V6);return g?sn(g,p,y,v):sn(c,Yo(y),p,v)},function(p,v){var y=Yn(this),g=Yo(p);if(typeof v=="string"&&_B(v,d)===-1&&_B(v,"$<")===-1){var m=f(c,y,g,v);if(m.done)return m.value}var h=Pe(v);h||(v=Yo(v));var b=y.global;if(b){var w=y.unicode;y.lastIndex=0}for(var D=[];;){var x=_lt(y,g);if(x===null||(P2(D,x),!b))break;Yo(x[0])===""&&(y.lastIndex=Slt(g,ML(y.lastIndex),w))}for(var C,O="",T=0,R=0;R<D.length;R++){for(var H=Yo((x=D[R])[0]),M=Plt(jlt(ih(x.index),g.length),0),K=[],U=1;U<x.length;U++)P2(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=Nlt([H],K,M,g);W!==void 0&&P2(q,W);var nt=Yo(Clt(v,void 0,q))}else nt=Flt(H,g,M,K,W,v);M>=T&&(O+=PB(g,T,M)+nt,T=M+H.length)}return O+PB(g,T)}]}(0,""[t],function(l,c,f,d,p){var v=Nt(l),y=c.exec;return y===Mv||y===TB.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});li(String.prototype,t,s[0]),li(TB,o,s[1])}})("replace",0,!!ke(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Ilt||jB);var Llt=Et.TypeError,fR=function(t,e,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&B8(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,e):n[f],i>0&&R6(s))l=Ec(s),c=fR(t,e,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw Llt("Exceed the acceptable array length");t[c]=s}c++}f++}return c},Rlt=fR;function j2(t){return t.length?t[0].tagName.toLowerCase():""}Ba({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=rh(this),n=Ec(e),r=rR(e,0);return r.length=Rlt(r,e,e,n,0,t===void 0?1:ih(t)),r}}),vd("flat"),Ba({global:!0},{globalThis:Et}),kr&&(B.fn.append=kr),Or&&(B.fn.attr=Or),Il&&(B.fn.parent=Il);var Mlt={renderElems:[Jst],editorPlugin:function(t){var e=t.deleteBackward,n=t.handleTab,r=t.normalizeNode,o=t;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(L.isExpanded(a))e(i);else{var u=A.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)e(i);else{var s=u.level,l=s===void 0?0:s;l>0?N.setNodes(o,{level:l-1}):N.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else e(i)}else e(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(L.isCollapsed(l)){var c=A.getSelectedNodeByType(o,"list-item");if(c==null)return void n();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void N.setNodes(o,{level:d+1})}}if(L.isExpanded(l)){var p=0,v=!1;try{for(var y=xB(SB(o)),g=y.next();!g.done;g=y.next()){var m=md(g.value,1)[0];A.getNodeType(m)==="list-item"?p++:v=!0}}catch(C){i={error:C}}finally{try{g&&!g.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}if(v||p<=1)return void n();try{for(var h=xB(SB(o)),b=h.next();!b.done;b=h.next()){var w=md(b.value,2),D=(m=w[0],w[1]),x=m.level;d=x===void 0?0:x,N.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"||N.unwrapNodes(o,{at:s}),r([u,s])},o},menus:[vlt,ylt],elemsToHtml:[mlt],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,n){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(a){return!!it.isText(a)||!!n.isInline(a)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(a){return j2(a.parent())==="ol"}(r),i=function(a){for(var u=0,s=a.parent(),l=j2(s);l==="ul"||l==="ol";)l=j2(s=s.parent()),u++;return u-1}(r);return{type:"list-item",ordered:o,level:i,children:e}}}]},dR=ss(function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",y="[object Set]",g="[object String]",m="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",D=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[o]=C[i]=C[b]=C[a]=C[w]=C[u]=C[s]=C[l]=C[c]=C[f]=C[d]=C[v]=C[y]=C[g]=C[h]=!1;var O=typeof se=="object"&&se&&se.Object===Object&&se,T=typeof self=="object"&&self&&self.Object===Object&&self,R=O||T||Function("return this")(),H=e&&!e.nodeType&&e,M=H&&t&&!t.nodeType&&t,K=M&&M.exports===H,U=K&&O.process,W=function(){try{return U&&U.binding&&U.binding("util")}catch(_){}}(),q=W&&W.isTypedArray;function nt(_,I){for(var J=-1,gt=_==null?0:_.length;++J<gt;)if(I(_[J],J,_))return!0;return!1}function lt(_){var I=-1,J=Array(_.size);return _.forEach(function(gt,ne){J[++I]=[ne,gt]}),J}function st(_){var I=-1,J=Array(_.size);return _.forEach(function(gt){J[++I]=gt}),J}var ut=Array.prototype,k=Function.prototype,S=Object.prototype,P=R["__core-js_shared__"],$=k.toString,Y=S.hasOwnProperty,V=function(){var _=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),at=S.toString,vt=RegExp("^"+$.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=K?R.Buffer:void 0,Ct=R.Symbol,G=R.Uint8Array,Lt=S.propertyIsEnumerable,Ot=ut.splice,pt=Ct?Ct.toStringTag:void 0,kt=Object.getOwnPropertySymbols,Be=yt?yt.isBuffer:void 0,Ht=function(_,I){return function(J){return _(I(J))}}(Object.keys,Object),ee=gi(R,"DataView"),ye=gi(R,"Map"),yn=gi(R,"Promise"),zt=gi(R,"Set"),Ln=gi(R,"WeakMap"),Nr=gi(Object,"create"),ro=zo(ee),ws=zo(ye),Va=zo(yn),Ir=zo(zt),oo=zo(Ln),Lo=Ct?Ct.prototype:void 0,mn=Lo?Lo.valueOf:void 0;function bn(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var gt=_[I];this.set(gt[0],gt[1])}}function wn(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var gt=_[I];this.set(gt[0],gt[1])}}function Tn(_){var I=-1,J=_==null?0:_.length;for(this.clear();++I<J;){var gt=_[I];this.set(gt[0],gt[1])}}function rn(_){var I=-1,J=_==null?0:_.length;for(this.__data__=new Tn;++I<J;)this.add(_[I])}function pr(_){var I=this.__data__=new wn(_);this.size=I.size}function Cc(_,I){var J=$o(_),gt=!J&&wh(_),ne=!J&&!gt&&io(_),jt=!J&&!gt&&!ne&&uo(_),F=J||gt||ne||jt,z=F?function($t,me){for(var ce=-1,Wt=Array($t);++ce<$t;)Wt[ce]=me(ce);return Wt}(_.length,String):[],ot=z.length;for(var ct in _)!Y.call(_,ct)||F&&(ct=="length"||ne&&(ct=="offset"||ct=="parent")||jt&&(ct=="buffer"||ct=="byteLength"||ct=="byteOffset")||xc(ct,ot))||z.push(ct);return z}function hi(_,I){for(var J=_.length;J--;)if(Cs(_[J][0],I))return J;return-1}function Ro(_){return _==null?_===void 0?"[object Undefined]":"[object Null]":pt&&pt in Object(_)?function(I){var J=Y.call(I,pt),gt=I[pt];try{I[pt]=void 0;var ne=!0}catch(F){}var jt=at.call(I);return ne&&(J?I[pt]=gt:delete I[pt]),jt}(_):function(I){return at.call(I)}(_)}function Es(_){return vi(_)&&Ro(_)==o}function Ua(_,I,J,gt,ne){return _===I||(_==null||I==null||!vi(_)&&!vi(I)?_!=_&&I!=I:function(jt,F,z,ot,ct,$t){var me=$o(jt),ce=$o(F),Wt=me?i:Xn(jt),Ze=ce?i:Xn(F),En=(Wt=Wt==o?d:Wt)==d,Wa=(Ze=Ze==o?d:Ze)==d,Ho=Wt==Ze;if(Ho&&io(jt)){if(!io(F))return!1;me=!0,En=!1}if(Ho&&!En)return $t||($t=new pr),me||uo(jt)?hr(jt,F,z,ot,ct,$t):function(Rt,Gt,qt,Fe,_n,Rn,Mr){switch(qt){case w:if(Rt.byteLength!=Gt.byteLength||Rt.byteOffset!=Gt.byteOffset)return!1;Rt=Rt.buffer,Gt=Gt.buffer;case b:return!(Rt.byteLength!=Gt.byteLength||!Rn(new G(Rt),new G(Gt)));case a:case u:case f:return Cs(+Rt,+Gt);case s:return Rt.name==Gt.name&&Rt.message==Gt.message;case v:case g:return Rt==Gt+"";case c:var mi=lt;case y:var Ac=1&Fe;if(mi||(mi=st),Rt.size!=Gt.size&&!Ac)return!1;var Ch=Mr.get(Rt);if(Ch)return Ch==Gt;Fe|=2,Mr.set(Rt,Gt);var xs=hr(mi(Rt),mi(Gt),Fe,_n,Rn,Mr);return Mr.delete(Rt),xs;case m:if(mn)return mn.call(Rt)==mn.call(Gt)}return!1}(jt,F,Wt,z,ot,ct,$t);if(!(1&z)){var yi=En&&Y.call(jt,"__wrapped__"),bt=Wa&&Y.call(F,"__wrapped__");if(yi||bt){var Jt=yi?jt.value():jt,je=bt?F.value():F;return $t||($t=new pr),ct(Jt,je,z,ot,$t)}}return Ho?($t||($t=new pr),function(Rt,Gt,qt,Fe,_n,Rn){var Mr=1&qt,mi=Mo(Rt),Ac=mi.length,Ch=Mo(Gt).length;if(Ac!=Ch&&!Mr)return!1;for(var xs=Ac;xs--;){var Ga=mi[xs];if(!(Mr?Ga in Gt:Y.call(Gt,Ga)))return!1}var px=Rn.get(Rt);if(px&&Rn.get(Gt))return px==Gt;var xh=!0;Rn.set(Rt,Gt),Rn.set(Gt,Rt);for(var Iy=Mr;++xs<Ac;){var Sh=Rt[Ga=mi[xs]],Ah=Gt[Ga];if(Fe)var hx=Mr?Fe(Ah,Sh,Ga,Gt,Rt,Rn):Fe(Sh,Ah,Ga,Rt,Gt,Rn);if(!(hx===void 0?Sh===Ah||_n(Sh,Ah,qt,Fe,Rn):hx)){xh=!1;break}Iy||(Iy=Ga=="constructor")}if(xh&&!Iy){var Oh=Rt.constructor,kh=Gt.constructor;Oh==kh||!("constructor"in Rt)||!("constructor"in Gt)||typeof Oh=="function"&&Oh instanceof Oh&&typeof kh=="function"&&kh instanceof kh||(xh=!1)}return Rn.delete(Rt),Rn.delete(Gt),xh}(jt,F,z,ot,ct,$t)):!1}(_,I,J,gt,Ua,ne))}function Ds(_){return!(!Eh(_)||function(I){return!!V&&V in I}(_))&&(Sc(_)?vt:D).test(zo(_))}function Lr(_){if(J=(I=_)&&I.constructor,gt=typeof J=="function"&&J.prototype||S,I!==gt)return Ht(_);var I,J,gt,ne=[];for(var jt in Object(_))Y.call(_,jt)&&jt!="constructor"&&ne.push(jt);return ne}function hr(_,I,J,gt,ne,jt){var F=1&J,z=_.length,ot=I.length;if(z!=ot&&!(F&&ot>z))return!1;var ct=jt.get(_);if(ct&&jt.get(I))return ct==I;var $t=-1,me=!0,ce=2&J?new rn:void 0;for(jt.set(_,I),jt.set(I,_);++$t<z;){var Wt=_[$t],Ze=I[$t];if(gt)var En=F?gt(Ze,Wt,$t,I,_,jt):gt(Wt,Ze,$t,_,I,jt);if(En!==void 0){if(En)continue;me=!1;break}if(ce){if(!nt(I,function(Wa,Ho){if(yi=Ho,!ce.has(yi)&&(Wt===Wa||ne(Wt,Wa,J,gt,jt)))return ce.push(Ho);var yi})){me=!1;break}}else if(Wt!==Ze&&!ne(Wt,Ze,J,gt,jt)){me=!1;break}}return jt.delete(_),jt.delete(I),me}function Mo(_){return function(I,J,gt){var ne=J(I);return $o(I)?ne:function(jt,F){for(var z=-1,ot=F.length,ct=jt.length;++z<ot;)jt[ct+z]=F[z];return jt}(ne,gt(I))}(_,Dh,bh)}function Rr(_,I){var J,gt,ne=_.__data__;return((gt=typeof(J=I))=="string"||gt=="number"||gt=="symbol"||gt=="boolean"?J!=="__proto__":J===null)?ne[typeof I=="string"?"string":"hash"]:ne.map}function gi(_,I){var J=function(gt,ne){return gt==null?void 0:gt[ne]}(_,I);return Ds(J)?J:void 0}bn.prototype.clear=function(){this.__data__=Nr?Nr(null):{},this.size=0},bn.prototype.delete=function(_){var I=this.has(_)&&delete this.__data__[_];return this.size-=I?1:0,I},bn.prototype.get=function(_){var I=this.__data__;if(Nr){var J=I[_];return J===n?void 0:J}return Y.call(I,_)?I[_]:void 0},bn.prototype.has=function(_){var I=this.__data__;return Nr?I[_]!==void 0:Y.call(I,_)},bn.prototype.set=function(_,I){var J=this.__data__;return this.size+=this.has(_)?0:1,J[_]=Nr&&I===void 0?n:I,this},wn.prototype.clear=function(){this.__data__=[],this.size=0},wn.prototype.delete=function(_){var I=this.__data__,J=hi(I,_);return!(J<0)&&(J==I.length-1?I.pop():Ot.call(I,J,1),--this.size,!0)},wn.prototype.get=function(_){var I=this.__data__,J=hi(I,_);return J<0?void 0:I[J][1]},wn.prototype.has=function(_){return hi(this.__data__,_)>-1},wn.prototype.set=function(_,I){var J=this.__data__,gt=hi(J,_);return gt<0?(++this.size,J.push([_,I])):J[gt][1]=I,this},Tn.prototype.clear=function(){this.size=0,this.__data__={hash:new bn,map:new(ye||wn),string:new bn}},Tn.prototype.delete=function(_){var I=Rr(this,_).delete(_);return this.size-=I?1:0,I},Tn.prototype.get=function(_){return Rr(this,_).get(_)},Tn.prototype.has=function(_){return Rr(this,_).has(_)},Tn.prototype.set=function(_,I){var J=Rr(this,_),gt=J.size;return J.set(_,I),this.size+=J.size==gt?0:1,this},rn.prototype.add=rn.prototype.push=function(_){return this.__data__.set(_,n),this},rn.prototype.has=function(_){return this.__data__.has(_)},pr.prototype.clear=function(){this.__data__=new wn,this.size=0},pr.prototype.delete=function(_){var I=this.__data__,J=I.delete(_);return this.size=I.size,J},pr.prototype.get=function(_){return this.__data__.get(_)},pr.prototype.has=function(_){return this.__data__.has(_)},pr.prototype.set=function(_,I){var J=this.__data__;if(J instanceof wn){var gt=J.__data__;if(!ye||gt.length<199)return gt.push([_,I]),this.size=++J.size,this;J=this.__data__=new Tn(gt)}return J.set(_,I),this.size=J.size,this};var bh=kt?function(_){return _==null?[]:(_=Object(_),function(I,J){for(var gt=-1,ne=I==null?0:I.length,jt=0,F=[];++gt<ne;){var z=I[gt];J(z,gt,I)&&(F[jt++]=z)}return F}(kt(_),function(I){return Lt.call(_,I)}))}:function(){return[]},Xn=Ro;function xc(_,I){return!!(I=I==null?r:I)&&(typeof _=="number"||x.test(_))&&_>-1&&_%1==0&&_<I}function zo(_){if(_!=null){try{return $.call(_)}catch(I){}try{return _+""}catch(I){}}return""}function Cs(_,I){return _===I||_!=_&&I!=I}(ee&&Xn(new ee(new ArrayBuffer(1)))!=w||ye&&Xn(new ye)!=c||yn&&Xn(yn.resolve())!=p||zt&&Xn(new zt)!=y||Ln&&Xn(new Ln)!=h)&&(Xn=function(_){var I=Ro(_),J=I==d?_.constructor:void 0,gt=J?zo(J):"";if(gt)switch(gt){case ro:return w;case ws:return c;case Va:return p;case Ir:return y;case oo:return h}return I});var wh=Es(function(){return arguments}())?Es:function(_){return vi(_)&&Y.call(_,"callee")&&!Lt.call(_,"callee")},$o=Array.isArray,io=Be||function(){return!1};function Sc(_){if(!Eh(_))return!1;var I=Ro(_);return I==l||I=="[object GeneratorFunction]"||I=="[object AsyncFunction]"||I=="[object Proxy]"}function ao(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=r}function Eh(_){var I=typeof _;return _!=null&&(I=="object"||I=="function")}function vi(_){return _!=null&&typeof _=="object"}var uo=q?function(_){return function(I){return _(I)}}(q):function(_){return vi(_)&&ao(_.length)&&!!C[Ro(_)]};function Dh(_){return(I=_)!=null&&ao(I.length)&&!Sc(I)?Cc(_):Lr(_);var I}t.exports=function(_,I){return Ua(_,I)}});Kn("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"}}),Kn("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var NB=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function pR(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ii,rg,h0=function(t){return t&&t.Math==Math&&t},Pt=h0(typeof globalThis=="object"&&globalThis)||h0(typeof window=="object"&&window)||h0(typeof self=="object"&&self)||h0(typeof NB=="object"&&NB)||function(){return this}()||Function("return this")(),Ye=function(t){try{return!!t()}catch(e){return!0}},Fa=!Ye(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Cf=Function.prototype.call,Qe=Cf.bind?Cf.bind(Cf):function(){return Cf.apply(Cf,arguments)},IB={}.propertyIsEnumerable,LB=Object.getOwnPropertyDescriptor,zlt={f:LB&&!IB.call({1:2},1)?function(t){var e=LB(this,t);return!!e&&e.enumerable}:IB},j8=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},hR=Function.prototype,U6=hR.bind,W6=hR.call,$lt=U6&&U6.bind(W6),Mt=U6?function(t){return t&&$lt(W6,t)}:function(t){return t&&function(){return W6.apply(t,arguments)}},Hlt=Mt({}.toString),Vlt=Mt("".slice),pa=function(t){return Vlt(Hlt(t),8,-1)},N2=Pt.Object,Ult=Mt("".split),gR=Ye(function(){return!N2("z").propertyIsEnumerable(0)})?function(t){return pa(t)=="String"?Ult(t,""):N2(t)}:N2,Wlt=Pt.TypeError,Ta=function(t){if(t==null)throw Wlt("Can't call method on "+t);return t},uh=function(t){return gR(Ta(t))},Bn=function(t){return typeof t=="function"},qr=function(t){return typeof t=="object"?t!==null:Bn(t)},Glt=function(t){return Bn(t)?t:void 0},sh=function(t,e){return arguments.length<2?Glt(Pt[t]):Pt[t]&&Pt[t][e]},vR=Mt({}.isPrototypeOf),I2=sh("navigator","userAgent")||"",RB=Pt.process,MB=Pt.Deno,zB=RB&&RB.versions||MB&&MB.version,$B=zB&&zB.v8;$B&&(rg=(Ii=$B.split("."))[0]>0&&Ii[0]<4?1:+(Ii[0]+Ii[1])),!rg&&I2&&(!(Ii=I2.match(/Edge\/(\d+)/))||Ii[1]>=74)&&(Ii=I2.match(/Chrome\/(\d+)/))&&(rg=+Ii[1]);var G6=rg,q6=!!Object.getOwnPropertySymbols&&!Ye(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&G6&&G6<41}),N8=q6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",qlt=Pt.Object,L2=N8?function(t){return typeof t=="symbol"}:function(t){var e=sh("Symbol");return Bn(e)&&vR(e.prototype,qlt(t))},Klt=Pt.String,yR=function(t){try{return Klt(t)}catch(e){return"Object"}},Ylt=Pt.TypeError,mR=function(t){if(Bn(t))return t;throw Ylt(yR(t)+" is not a function")},I8=function(t,e){var n=t[e];return n==null?void 0:mR(n)},Xlt=Pt.TypeError,Zlt=Object.defineProperty,L8=function(t,e){try{Zlt(Pt,t,{value:e,configurable:!0,writable:!0})}catch(n){Pt[t]=e}return e},ha=Pt["__core-js_shared__"]||L8("__core-js_shared__",{}),R8=pR(function(t){(t.exports=function(e,n){return ha[e]||(ha[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Jlt=Pt.Object,M8=function(t){return Jlt(Ta(t))},Qlt=Mt({}.hasOwnProperty),xr=Object.hasOwn||function(t,e){return Qlt(M8(t),e)},tct=0,ect=Math.random(),nct=Mt(1 .toString),bR=function(t){return"Symbol("+(t===void 0?"":t)+")_"+nct(++tct+ect,36)},xf=R8("wks"),Mu=Pt.Symbol,HB=Mu&&Mu.for,rct=N8?Mu:Mu&&Mu.withoutSetter||bR,jr=function(t){if(!xr(xf,t)||!q6&&typeof xf[t]!="string"){var e="Symbol."+t;q6&&xr(Mu,t)?xf[t]=Mu[t]:xf[t]=N8&&HB?HB(e):rct(e)}return xf[t]},oct=Pt.TypeError,ict=jr("toPrimitive"),z8=function(t){var e=function(n,r){if(!qr(n)||L2(n))return n;var o,i=I8(n,ict);if(i){if(o=Qe(i,n,r),!qr(o)||L2(o))return o;throw oct("Can't convert object to primitive value")}return function(a,u){var s,l;if(Bn(s=a.toString)&&!qr(l=Qe(s,a))||Bn(s=a.valueOf)&&!qr(l=Qe(s,a)))return l;throw Xlt("Can't convert object to primitive value")}(n)}(t,"string");return L2(e)?e:e+""},K6=Pt.document,act=qr(K6)&&qr(K6.createElement),$8=function(t){return act?K6.createElement(t):{}},wR=!Fa&&!Ye(function(){return Object.defineProperty($8("div"),"a",{get:function(){return 7}}).a!=7}),VB=Object.getOwnPropertyDescriptor,ER={f:Fa?VB:function(t,e){if(t=uh(t),e=z8(e),wR)try{return VB(t,e)}catch(n){}if(xr(t,e))return j8(!Qe(zlt.f,t,e),t[e])}},uct=Pt.String,sct=Pt.TypeError,Sr=function(t){if(qr(t))return t;throw sct(uct(t)+" is not an object")},lct=Pt.TypeError,UB=Object.defineProperty,lh={f:Fa?UB:function(t,e,n){if(Sr(t),e=z8(e),Sr(n),wR)try{return UB(t,e,n)}catch(r){}if("get"in n||"set"in n)throw lct("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Xl=Fa?function(t,e,n){return lh.f(t,e,j8(1,n))}:function(t,e,n){return t[e]=n,t},cct=Mt(Function.toString);Bn(ha.inspectSource)||(ha.inspectSource=function(t){return cct(t)});var zv,bd,$v,H8=ha.inspectSource,WB=Pt.WeakMap,fct=Bn(WB)&&/native code/.test(H8(WB)),GB=R8("keys"),DR=function(t){return GB[t]||(GB[t]=bR(t))},V8={},Y6=Pt.TypeError,dct=Pt.WeakMap;if(fct||ha.state){var nu=ha.state||(ha.state=new dct),pct=Mt(nu.get),qB=Mt(nu.has),hct=Mt(nu.set);zv=function(t,e){if(qB(nu,t))throw new Y6("Object already initialized");return e.facade=t,hct(nu,t,e),e},bd=function(t){return pct(nu,t)||{}},$v=function(t){return qB(nu,t)}}else{var Us=DR("state");V8[Us]=!0,zv=function(t,e){if(xr(t,Us))throw new Y6("Object already initialized");return e.facade=t,Xl(t,Us,e),e},bd=function(t){return xr(t,Us)?t[Us]:{}},$v=function(t){return xr(t,Us)}}var X6={set:zv,get:bd,has:$v,enforce:function(t){return $v(t)?bd(t):zv(t,{})},getterFor:function(t){return function(e){var n;if(!qr(e)||(n=bd(e)).type!==t)throw Y6("Incompatible receiver, "+t+" required");return n}}},CR=Function.prototype,gct=Fa&&Object.getOwnPropertyDescriptor,R2=xr(CR,"name"),U8={EXISTS:R2,PROPER:R2&&function(){}.name==="something",CONFIGURABLE:R2&&(!Fa||Fa&&gct(CR,"name").configurable)},op=pR(function(t){var e=U8.CONFIGURABLE,n=X6.get,r=X6.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Bn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!xr(u,"name")||e&&u.name!==p)&&Xl(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Pt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Xl(i,a,u)):f?i[a]=u:L8(a,u)})(Function.prototype,"toString",function(){return Bn(this)&&n(this).source||H8(this)})}),vct=Math.ceil,yct=Math.floor,yy=function(t){var e=+t;return e!=e||e===0?0:(e>0?yct:vct)(e)},mct=Math.max,bct=Math.min,ip=function(t,e){var n=yy(t);return n<0?mct(n+e,0):bct(n,e)},wct=Math.min,W8=function(t){return t>0?wct(yy(t),9007199254740991):0},my=function(t){return W8(t.length)},Ect=function(t){return function(e,n,r){var o,i=uh(e),a=my(i),u=ip(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},Dct=Ect(!1),KB=Mt([].push),xR=function(t,e){var n,r=uh(t),o=0,i=[];for(n in r)!xr(V8,n)&&xr(r,n)&&KB(i,n);for(;e.length>o;)xr(r,n=e[o++])&&(~Dct(i,n)||KB(i,n));return i},Hv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cct=Hv.concat("length","prototype"),xct={f:Object.getOwnPropertyNames||function(t){return xR(t,Cct)}},Sct={f:Object.getOwnPropertySymbols},Act=Mt([].concat),Oct=sh("Reflect","ownKeys")||function(t){var e=xct.f(Sr(t)),n=Sct.f;return n?Act(e,n(t)):e},kct=function(t,e){for(var n=Oct(e),r=lh.f,o=ER.f,i=0;i<n.length;i++){var a=n[i];xr(t,a)||r(t,a,o(e,a))}},Bct=/#|\.prototype\./,ch=function(t,e){var n=Tct[Fct(t)];return n==Pct||n!=_ct&&(Bn(e)?Ye(e):!!e)},Fct=ch.normalize=function(t){return String(t).replace(Bct,".").toLowerCase()},Tct=ch.data={},_ct=ch.NATIVE="N",Pct=ch.POLYFILL="P",jct=ch,Nct=ER.f,_a=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?Pt:l?Pt[u]||L8(u,{}):(Pt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=Nct(n,r))&&a.value:n[r],!jct(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;kct(i,o)}(t.sham||o&&o.sham)&&Xl(i,"sham",!0),op(n,r,i,t)}},SR={};SR[jr("toStringTag")]="z";var G8=String(SR)==="[object z]",Ict=jr("toStringTag"),Lct=Pt.Object,Rct=pa(function(){return arguments}())=="Arguments",q8=G8?pa:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=Lct(t),Ict))=="string"?n:Rct?pa(e):(r=pa(e))=="Object"&&Bn(e.callee)?"Arguments":r},Mct=Pt.String,Sn=function(t){if(q8(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Mct(t)},zct=/"/g,$ct=Mt("".replace);_a({target:"String",proto:!0,forced:Ye(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=Sn(Ta(this)),r="<a",(r+=' name="'+$ct(Sn(e),zct,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var g0,AR=function(){var t=Sr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},K8=Pt.RegExp,Z6=Ye(function(){var t=K8("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Hct=Z6||Ye(function(){return!K8("a","y").sticky}),OR={BROKEN_CARET:Z6||Ye(function(){var t=K8("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Hct,UNSUPPORTED_Y:Z6},Vct=Object.keys||function(t){return xR(t,Hv)},Uct=Fa?Object.defineProperties:function(t,e){Sr(t);for(var n,r=uh(e),o=Vct(e),i=o.length,a=0;i>a;)lh.f(t,n=o[a++],r[n]);return t},Wct=sh("document","documentElement"),kR=DR("IE_PROTO"),M2=function(){},BR=function(t){return"<script>"+t+"<\/script>"},YB=function(t){t.write(BR("")),t.close();var e=t.parentWindow.Object;return t=null,e},og=function(){try{g0=new ActiveXObject("htmlfile")}catch(r){}var t,e;og=typeof document!="undefined"?document.domain&&g0?YB(g0):((e=$8("iframe")).style.display="none",Wct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(BR("document.F=Object")),t.close(),t.F):YB(g0);for(var n=Hv.length;n--;)delete og.prototype[Hv[n]];return og()};V8[kR]=!0;var XB,z2,FR=Object.create||function(t,e){var n;return t!==null?(M2.prototype=Sr(t),n=new M2,M2.prototype=null,n[kR]=t):n=og(),e===void 0?n:Uct(n,e)},Gct=Pt.RegExp,qct=Ye(function(){var t=Gct(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Kct=Pt.RegExp,Yct=Ye(function(){var t=Kct("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Xct=X6.get,Zct=R8("native-string-replace",String.prototype.replace),Vv=RegExp.prototype.exec,J6=Vv,Jct=Mt("".charAt),Qct=Mt("".indexOf),tft=Mt("".replace),$2=Mt("".slice),H2=(z2=/b*/g,Qe(Vv,XB=/a/,"a"),Qe(Vv,z2,"a"),XB.lastIndex!==0||z2.lastIndex!==0),ZB=OR.BROKEN_CARET,V2=/()??/.exec("")[1]!==void 0;(H2||V2||ZB||qct||Yct)&&(J6=function(t){var e,n,r,o,i,a,u,s=this,l=Xct(s),c=Sn(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=Qe(J6,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=ZB&&s.sticky,v=Qe(AR,s),y=s.source,g=0,m=c;if(p&&(v=tft(v,"y",""),Qct(v,"g")===-1&&(v+="g"),m=$2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Jct(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),V2&&(n=new RegExp("^"+y+"$(?!\\s)",v)),H2&&(r=s.lastIndex),o=Qe(Vv,p?n:s,m),p?o?(o.input=$2(o.input,g),o[0]=$2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:H2&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),V2&&o&&o.length>1&&Qe(Zct,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=FR(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var ap=J6;_a({target:"RegExp",proto:!0,forced:/./.exec!==ap},{exec:ap});var Uv=Array.isArray||function(t){return pa(t)=="Array"},TR=function(){},eft=[],_R=sh("Reflect","construct"),Y8=/^\s*(?:class|function)\b/,nft=Mt(Y8.exec),rft=!Y8.exec(TR),Sf=function(t){if(!Bn(t))return!1;try{return _R(TR,eft,t),!0}catch(e){return!1}},X8=!_R||Ye(function(){var t;return Sf(Sf.call)||!Sf(Object)||!Sf(function(){t=!0})||t})?function(t){if(!Bn(t))return!1;switch(q8(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rft||!!nft(Y8,H8(t))}:Sf,PR=function(t,e,n){var r=z8(e);r in t?lh.f(t,r,j8(0,n)):t[r]=n},oft=jr("species"),Z8=function(t){return G6>=51||!Ye(function(){var e=[];return(e.constructor={})[oft]=function(){return{foo:1}},e[t](Boolean).foo!==1})},ift=Mt([].slice),aft=Z8("slice"),uft=jr("species"),U2=Pt.Array,sft=Math.max;function eo(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function JB(t){var e=t.selection;if(e==null)return!1;var n=eo(E.nodes(t,{match:function(i){return A.checkNodeType(i,"table-cell")}}),1)[0];if(n){var r=eo(n,2)[1],o=E.start(t,r);if(Ft.equals(e.anchor,o))return!0}return!1}function QB(t,e){var n,r,o=E.nodes(t,{at:e,match:function(s){return A.getNodeType(s)==="table"}}),i=!1;try{for(var a=function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){n={error:s}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}_a({target:"Array",proto:!0,forced:!aft},{slice:function(t,e){var n,r,o,i=uh(this),a=my(i),u=ip(t,a),s=ip(e===void 0?a:e,a);if(Uv(i)&&(n=i.constructor,(X8(n)&&(n===U2||Uv(n.prototype))||qr(n)&&(n=n[uft])===null)&&(n=void 0),n===U2||n===void 0))return ift(i,u,s);for(r=new(n===void 0?U2:n)(sft(s-u,0)),o=0;u<s;u++,o++)u in i&&PR(r,o,i[u]);return r.length=o,r}});var tF=Mt(Mt.bind),lft=jr("species"),eF=Pt.Array,cft=function(t,e){return new(function(n){var r;return Uv(n)&&(r=n.constructor,(X8(r)&&(r===eF||Uv(r.prototype))||qr(r)&&(r=r[lft])===null)&&(r=void 0)),r===void 0?eF:r}(t))(e===0?0:e)},nF=Mt([].push),Li=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=M8(s),y=gR(v),g=function(D,x){return mR(D),x===void 0?D:tF?tF(D,x):function(){return D.apply(x,arguments)}}(l,c),m=my(y),h=0,b=f||cft,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:nF(w,d)}else switch(t){case 4:return!1;case 7:nF(w,d)}return i?-1:r||o?o:w}},by={forEach:Li(0),map:Li(1),filter:Li(2),some:Li(3),every:Li(4),find:Li(5),findIndex:Li(6),filterReject:Li(7)},fft=by.map;_a({target:"Array",proto:!0,forced:!Z8("map")},{map:function(t){return fft(this,t,arguments.length>1?arguments[1]:void 0)}});var dft=G8?{}.toString:function(){return"[object "+q8(this)+"]"};function wy(t){var e=t.children||[];return e.length===0?[]:(e[0]||{}).children||[]}function jR(t){return wy(t).every(function(e){return!!e.isHeader})}G8||op(Object.prototype,"toString",dft,{unsafe:!0});var pft=U8.PROPER,Q6=RegExp.prototype,NR=Q6.toString,hft=Mt(AR),gft=Ye(function(){return NR.call({source:"a",flags:"b"})!="/a/b"}),vft=pft&&NR.name!="toString";(gft||vft)&&op(RegExp.prototype,"toString",function(){var t=Sr(this),e=Sn(t.source),n=t.flags;return"/"+e+"/"+Sn(n===void 0&&vR(Q6,t)&&!("flags"in Q6)?hft(t):n)},{unsafe:!0});var t3=jr("unscopables"),e3=Array.prototype;e3[t3]==null&&lh.f(e3,t3,{configurable:!0,value:FR(null)});var yft=by.find,rF=!0;"find"in[]&&Array(1).find(function(){rF=!1}),_a({target:"Array",proto:!0,forced:rF},{find:function(t){return yft(this,t,arguments.length>1?arguments[1]:void 0)}}),e3[t3].find=!0;var J8=Function.prototype,oF=J8.apply,mft=J8.bind,iF=J8.call,IR=typeof Reflect=="object"&&Reflect.apply||(mft?iF.bind(oF):function(){return iF.apply(oF,arguments)}),bft=jr("species"),W2=RegExp.prototype,LR=function(t,e,n,r){var o=jr(t),i=!Ye(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!Ye(function(){var l=!1,c=/a/;return t==="split"&&((c={}).constructor={},c.constructor[bft]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=Mt(/./[o]),s=e(o,""[t],function(l,c,f,d,p){var v=Mt(l),y=c.exec;return y===ap||y===W2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});op(String.prototype,t,s[0]),op(W2,o,s[1])}r&&Xl(W2[o],"sham",!0)},wft=jr("match"),Eft=Pt.TypeError,Dft=jr("species"),Cft=Mt("".charAt),aF=Mt("".charCodeAt),xft=Mt("".slice),Sft=function(t){return function(e,n){var r,o,i=Sn(Ta(e)),a=yy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=aF(i,a))<55296||r>56319||a+1===u||(o=aF(i,a+1))<56320||o>57343?t?Cft(i,a):r:t?xft(i,a,a+2):o-56320+(r-55296<<10)+65536}},Aft=Sft(!0),RR=function(t,e,n){return e+(n?Aft(t,e).length:1)},Oft=Pt.Array,kft=Math.max,uF=function(t,e,n){for(var r=my(t),o=ip(e,r),i=ip(n===void 0?r:n,r),a=Oft(kft(i-o,0)),u=0;o<i;o++,u++)PR(a,u,t[o]);return a.length=u,a},Bft=Pt.TypeError,n3=function(t,e){var n=t.exec;if(Bn(n)){var r=Qe(n,t,e);return r!==null&&Sr(r),r}if(pa(t)==="RegExp")return Qe(ap,t,e);throw Bft("RegExp#exec called on incompatible receiver")},Ws=OR.UNSUPPORTED_Y,Fft=Math.min,MR=[].push,Tft=Mt(/./.exec),Gs=Mt(MR),Af=Mt("".slice);LR("split",function(t,e,n){var r;return r="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Sn(Ta(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!qr(a=o)||!((u=a[wft])!==void 0?u:pa(a)=="RegExp"))return Qe(e,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),y=0,g=new RegExp(o.source,v+"g");(c=Qe(ap,g,s))&&!((f=g.lastIndex)>y&&(Gs(p,Af(s,y,c.index)),c.length>1&&c.index<s.length&&IR(MR,p,uF(c,1)),d=c[0].length,y=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return y===s.length?!d&&Tft(g,"")||Gs(p,""):Gs(p,Af(s,y)),p.length>l?uF(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Qe(e,this,o,i)}:e,[function(o,i){var a=Ta(this),u=o==null?void 0:I8(o,t);return u?Qe(u,o,a,i):Qe(r,Sn(a),o,i)},function(o,i){var a=Sr(this),u=Sn(o),s=n(r,a,u,i,r!==e);if(s.done)return s.value;var l=function(w,D){var x,C=Sr(w).constructor;return C===void 0||(x=Sr(C)[Dft])==null?D:function(O){if(X8(O))return O;throw Eft(yR(O)+" is not a constructor")}(x)}(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Ws?"g":"y"),d=new l(Ws?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return n3(d,u)===null?[u]:[];for(var v=0,y=0,g=[];y<u.length;){d.lastIndex=Ws?0:y;var m,h=n3(d,Ws?Af(u,y):u);if(h===null||(m=Fft(W8(d.lastIndex+(Ws?y:0)),u.length))===v)y=RR(u,y,c);else{if(Gs(g,Af(u,v,y)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(Gs(g,h[b]),g.length===p)return g;y=v=m}}return Gs(g,Af(u,v)),g}]},!!Ye(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Ws);var r3=`
\v\f\r    \u2028\u2029\uFEFF`,sF=Mt("".replace),Wv="["+r3+"]",_ft=RegExp("^"+Wv+Wv+"*"),Pft=RegExp(Wv+Wv+"*$"),G2=function(t){return function(e){var n=Sn(Ta(e));return 1&t&&(n=sF(n,_ft,"")),2&t&&(n=sF(n,Pft,"")),n}},jft={start:G2(1),end:G2(2),trim:G2(3)},Nft=U8.PROPER,Ift=jft.trim;function zR(t){return t.length?t[0].tagName.toLowerCase():""}_a({target:"String",proto:!0,forced:function(t){return Ye(function(){return!!r3[t]()||"…"[t]()!=="…"||Nft&&r3[t].name!==t})}("trim")},{trim:function(){return Ift(this)}}),_a({global:!0},{globalThis:Pt}),kr&&(B.fn.append=kr),Bo&&(B.fn.on=Bo),xa&&(B.fn.focus=xa),Or&&(B.fn.attr=Or),ko&&(B.fn.val=ko),Ca&&(B.fn.html=Ca),jl&&(B.fn.dataset=jl),Tl&&(B.fn.addClass=Tl),_l&&(B.fn.removeClass=_l),Rl&&(B.fn.children=Rl),Gg&&(B.fn.each=Gg),Ll&&(B.fn.find=Ll);var up=!1,$R=0,HR=0,sp=null,lp=null,wd=B("body");function VR(t){up=!1,lp=null,sp=null,wd.off("mousemove",UR),wd.off("mouseup",VR)}wd.on("mousedown",function(t){var e=t.target;if((e.tagName==="TH"||e.tagName==="TD")&&e.style.cursor==="col-resize"){e.style.cursor="auto",t.preventDefault(),up=!0;var n=t.clientX;$R=n;var r=e.getBoundingClientRect().width;HR=r,wd.on("mousemove",UR),wd.on("mouseup",VR)}});var UR=Xu(function(t){if(up&&lp!=null&&sp!=null){t.preventDefault();var e=t.clientX,n=HR+(e-$R);(n=Math.floor(100*n)/100)<30&&(n=30),N.setNodes(lp,{width:n.toString()},{at:sp})}},100),Lft={type:"table",renderElem:function(t,e,n){var r=function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||L.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=A.findPath(u,s),p=E.start(u,d),v=E.end(u,d),y=Ft.compare(c,v)<=0&&Ft.compare(c,p)>=0,g=Ft.compare(f,v)<=0&&Ft.compare(f,p)>=0;return!!(y&&g&&j.equals(c.path.slice(0,3),f.path.slice(0,3)))}(n,t),o=t.width,i=o===void 0?"auto":o,a=wt("div",{className:"table-container","data-selected":A.isNodeSelected(n,t),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!n.isDisabled()){var s=A.findPath(n,t),l=E.start(n,s),c=n.selection;c!=null?c.anchor.path[0]!==s[0]&&n.select(l):n.select(l)}}}},wt("table",{width:i,contentEditable:r},wt("colgroup",null,wy(t).map(function(u){var s=u.width;return wt("col",{width:s===void 0?"auto":s})})),wt("tbody",null,e)));return a}},Rft={type:"table-row",renderElem:function(t,e,n){return wt("tr",null,e)}},Mft={type:"table-cell",renderElem:function(t,e,n){var r=function(d,p){var v=A.getParentNode(d,p);if(v==null)return!1;var y=A.getParentNode(d,v);return y!=null&&wy(y).some(function(g){return g===p})}(n,t),o=t,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!r)return wt("td",{colSpan:a,rowSpan:s},e);var f=wt(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Xu(function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),y=v.left,g=v.width,m=v.top,h=v.height,b=d.clientX,w=d.clientY;up||(b>y+g-5&&b<y+g&&w>m&&w<m+h?(p.style.cursor="col-resize",lp=n,sp=A.findPath(n,t)):up||(p.style.cursor="auto",lp=null,sp=null))}},100)}},e);return f}},zft={selector:"table",preParseHtml:function(t){var e=B(t);if(zR(e)!=="table")return t;var n=e.find("tbody");if(n.length===0)return t;var r=e.find("tr");return e.append(r),n.remove(),e[0]}},$ft=by.filter;_a({target:"Array",proto:!0,forced:!Z8("filter")},{filter:function(t){return $ft(this,t,arguments.length>1?arguments[1]:void 0)}});var Hft=Math.floor,q2=Mt("".charAt),Vft=Mt("".replace),K2=Mt("".slice),Uft=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wft=/\$([$&'`]|\d{1,2})/g,Gft=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=Wft;return o!==void 0&&(o=M8(o),s=Uft),Vft(i,s,function(l,c){var f;switch(q2(c,0)){case"$":return"$";case"&":return t;case"`":return K2(e,0,n);case"'":return K2(e,a);case"<":f=o[K2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Hft(d/10);return p===0?l:p<=u?r[p-1]===void 0?q2(c,1):r[p-1]+q2(c,1):l}f=r[d-1]}return f===void 0?"":f})},o3=jr("replace"),qft=Math.max,Kft=Math.min,Yft=Mt([].concat),Y2=Mt([].push),lF=Mt("".indexOf),cF=Mt("".slice),Xft="a".replace(/./,"$0")==="$0",fF=!!/./[o3]&&/./[o3]("a","$0")==="";LR("replace",function(t,e,n){var r=fF?"$":"$0";return[function(o,i){var a=Ta(this),u=o==null?void 0:I8(o,o3);return u?Qe(u,o,a,i):Qe(e,Sn(a),o,i)},function(o,i){var a=Sr(this),u=Sn(o);if(typeof i=="string"&&lF(i,r)===-1&&lF(i,"$<")===-1){var s=n(e,a,u,i);if(s.done)return s.value}var l=Bn(i);l||(i=Sn(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=n3(a,u);if(p===null||(Y2(d,p),!c))break;Sn(p[0])===""&&(a.lastIndex=RR(u,W8(a.lastIndex),f))}for(var v,y="",g=0,m=0;m<d.length;m++){for(var h=Sn((p=d[m])[0]),b=qft(Kft(yy(p.index),u.length),0),w=[],D=1;D<p.length;D++)Y2(w,(v=p[D])===void 0?v:String(v));var x=p.groups;if(l){var C=Yft([h],w,b,u);x!==void 0&&Y2(C,x);var O=Sn(IR(i,void 0,C))}else O=Gft(h,u,b,w,x,i);b>=g&&(y+=cF(u,g,b)+O,g=b+h.length)}return y+cF(u,g)}]},!!Ye(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!Xft||fF);var Zft={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t);(e=e.filter(function(u){return!!it.isText(u)||!!n.isInline(u)})).length===0&&(e=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:zR(r)==="th",colSpan:o,rowSpan:i,width:a,children:e}}},Jft={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,e,n){return{type:"table-row",children:e.filter(function(r){return A.getNodeType(r)==="table-cell"})}}},Qft={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=B(t),o="auto";return function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var 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:e.filter(function(i){return A.getNodeType(i)==="table-row"})}}},tdt=function(){function t(){this.title=tt("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="table"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getPanelContentElem=function(e){var n=this;if(this.$content)return this.$content[0];for(var r=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 &times; 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" &times; "+(v+1),i.children().each(function(y){B(y).children().each(function(g){var m=B(g),h=m.dataset(),b=h.x,w=h.y;b<=p&&w<=v?m.addClass("active"):m.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;n.insertTable(e,v+1,p+1)}})}i.append(u)}return r.append(i),r.append(o),this.$content=r,r[0]},t.prototype.insertTable=function(e,n,r){var o=parseInt(n,10),i=parseInt(r,10);if(o&&i&&!(o<=0||i<=0)){A.isSelectedEmptyParagraph(e)&&N.removeNodes(e,{mode:"highest"});var a=function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}}(o,i);N.insertNodes(e,a,{mode:"highest"})}},t}(),edt=function(){function t(){this.title=tt("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return e.selection==null||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){this.isDisabled(e)||N.removeNodes(e,{mode:"highest"})},t}(),ndt=function(){function t(){this.title=tt("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=eo(E.nodes(e,{match:function(p){return A.checkNodeType(p,"table-cell")},universal:!0}),1),o=eo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=j.parent(a),d=j.next(f);N.insertNodes(e,l,{at:d})}}},t}(),rdt=function(){function t(){this.title=tt("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-row")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=eo(E.nodes(e,{match:function(s){return A.checkNodeType(s,"table-row")},universal:!0}),1),o=eo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);((u==null?void 0:u.children.length)||0)<=1?N.removeNodes(e,{mode:"highest"}):N.removeNodes(e,{at:a})}},t}(),dF={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},X2=$8("span").classList,pF=X2&&X2.constructor&&X2.constructor.prototype,odt=pF===Object.prototype?void 0:pF,idt=by.forEach,adt=function(t,e){var n=[].forEach;return!!n&&Ye(function(){n.call(null,function(){throw 1},1)})}(),Z2=adt?[].forEach:function(t){return idt(this,t,arguments.length>1?arguments[1]:void 0)},WR=function(t){if(t&&t.forEach!==Z2)try{Xl(t,"forEach",Z2)}catch(e){t.forEach=Z2}};for(var J2 in dF)dF[J2]&&WR(Pt[J2]&&Pt[J2].prototype);WR(odt);var udt=function(){function t(){this.title=tt("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=eo(E.nodes(e,{match:function(l){return A.checkNodeType(l,"table-cell")},universal:!0}),1),o=eo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i);if(u!=null){var s=A.getParentNode(e,u);s!=null&&(s.children||[]).forEach(function(l,c){ft.isElement(l)&&(l.children||[]).forEach(function(f){var d=A.findPath(e,f);if(d.length===a.length&&dR(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&jR(s)&&(p.isHeader=!0),N.insertNodes(e,p,{at:d})}})})}}},t}(),sdt=function(){function t(){this.title=tt("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table-cell")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=eo(E.nodes(e,{match:function(c){return A.checkNodeType(c,"table-cell")},universal:!0}),1),o=eo(r[0],2),i=o[0],a=o[1],u=A.getParentNode(e,i),s=(u==null?void 0:u.children.length)||0;if(!u||s<=1)N.removeNodes(e,{mode:"highest"});else{var l=A.getParentNode(e,u);l!=null&&(l.children||[]).forEach(function(c){ft.isElement(c)&&(c.children||[]).forEach(function(f){var d=A.findPath(e,f);d.length===a.length&&dR(d.slice(-1),a.slice(-1))&&N.removeNodes(e,{at:d})})})}}},t}(),ldt=function(){function t(){this.title=tt("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&jR(n)},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r=!n,o=A.getSelectedNodeByType(e,"table");o!=null&&wy(o).forEach(function(i){return N.setNodes(e,{isHeader:r},{at:A.findPath(e,i)})})}},t}(),cdt=function(){function t(){this.title=tt("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){var n=A.getSelectedNodeByType(e,"table");return n!=null&&n.width==="100%"},t.prototype.isActive=function(e){return!!this.getValue(e)},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||A.getSelectedNodeByType(e,"table")==null},t.prototype.exec=function(e,n){if(!this.isDisabled(e)){var r={width:n?"auto":"100%"};N.setNodes(e,r,{mode:"highest"})}},t}(),fdt={renderElems:[Lft,Rft,Mft],elemsToHtml:[{type:"table",elemToHtml:function(t,e){var n=t.width;return'<table style="width: '+(n===void 0?"auto":n)+';"><tbody>'+e+"</tbody></table>"}},{type:"table-row",elemToHtml:function(t,e){return"<tr>"+e+"</tr>"}},{type:"table-cell",elemToHtml:function(t,e){var n=t,r=n.colSpan,o=r===void 0?1:r,i=n.rowSpan,a=i===void 0?1:i,u=n.isHeader,s=u!==void 0&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+e+"</"+c+">"}}],preParseHtml:[zft],parseElemsHtml:[Zft,Jft,Qft],menus:[{key:"insertTable",factory:function(){return new tdt}},{key:"deleteTable",factory:function(){return new edt}},{key:"insertTableRow",factory:function(){return new ndt}},{key:"deleteTableRow",factory:function(){return new rdt}},{key:"insertTableCol",factory:function(){return new udt}},{key:"deleteTableCol",factory:function(){return new sdt}},{key:"tableHeader",factory:function(){return new ldt}},{key:"tableFullWidth",factory:function(){return new cdt}}],editorPlugin:function(t){var e=t.insertBreak,n=t.deleteBackward,r=t.deleteForward,o=t.normalizeNode,i=t.insertData,a=t.handleTab,u=t.selectAll,s=t;return s.insertBreak=function(){A.getSelectedNodeByType(s,"table")==null?e():s.insertText(`
`)},s.deleteBackward=function(l){if(!JB(s)){var c=s.selection;if(c){var f=E.before(s,c);if(f){var d=QB(s,f),p=QB(s,c);if(d&&!p)return}}n(l)}},s.handleTab=function(){var l;if(A.getSelectedNodeByType(s,"table")){var c=E.above(t);A.checkNodeType(c[0],"table-cell")&&N.select(t,c[1]);var f=E.next(t);if(f)f[0]&&f[0].text&&(f=(l=E.above(t,{at:f[1]}))!==null&&l!==void 0?l:f),N.select(t,f[1]);else{var d=s.children||[],p=d.length;if(A.checkNodeType(d[p-1],"table")){var v=A.genEmptyParagraph();N.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){JB(s)||r(l)},s.normalizeNode=function(l){var c=eo(l,2),f=c[0],d=c[1];if(A.getNodeType(f)!=="table")return o([f,d]);if(A.isLastNode(s,f)){var p=A.genEmptyParagraph();N.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(A.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):E.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=A.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(j.equals(f.path.slice(0,3),d.path.slice(0,3)))if(Q.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}};Kn("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"}}),Kn("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 Gv=function(){return Gv=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Gv.apply(this,arguments)};function Ey(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,[])).next())})}function Dy(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function zu(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ddt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var hF=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Q8(t){var e={exports:{}};return t(e,e.exports),e.exports}var Ri,ig,v0=function(t){return t&&t.Math==Math&&t},rt=v0(typeof globalThis=="object"&&globalThis)||v0(typeof window=="object"&&window)||v0(typeof self=="object"&&self)||v0(typeof hF=="object"&&hF)||function(){return this}()||Function("return this")(),de=function(t){try{return!!t()}catch(e){return!0}},To=!de(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Of=Function.prototype.call,fe=Of.bind?Of.bind(Of):function(){return Of.apply(Of,arguments)},gF={}.propertyIsEnumerable,vF=Object.getOwnPropertyDescriptor,pdt={f:vF&&!gF.call({1:2},1)?function(t){var e=vF(this,t);return!!e&&e.enumerable}:gF},Cy=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},GR=Function.prototype,i3=GR.bind,a3=GR.call,hdt=i3&&i3.bind(a3),xt=i3?function(t){return t&&hdt(a3,t)}:function(t){return t&&function(){return a3.apply(t,arguments)}},gdt=xt({}.toString),vdt=xt("".slice),So=function(t){return vdt(gdt(t),8,-1)},Q2=rt.Object,ydt=xt("".split),tC=de(function(){return!Q2("z").propertyIsEnumerable(0)})?function(t){return So(t)=="String"?ydt(t,""):Q2(t)}:Q2,mdt=rt.TypeError,fh=function(t){if(t==null)throw mdt("Can't call method on "+t);return t},za=function(t){return tC(fh(t))},ae=function(t){return typeof t=="function"},we=function(t){return typeof t=="object"?t!==null:ae(t)},bdt=function(t){return ae(t)?t:void 0},as=function(t,e){return arguments.length<2?bdt(rt[t]):rt[t]&&rt[t][e]},cp=xt({}.isPrototypeOf),Dl=as("navigator","userAgent")||"",yF=rt.process,mF=rt.Deno,bF=yF&&yF.versions||mF&&mF.version,wF=bF&&bF.v8;wF&&(ig=(Ri=wF.split("."))[0]>0&&Ri[0]<4?1:+(Ri[0]+Ri[1])),!ig&&Dl&&(!(Ri=Dl.match(/Edge\/(\d+)/))||Ri[1]>=74)&&(Ri=Dl.match(/Chrome\/(\d+)/))&&(ig=+Ri[1]);var fp=ig,u3=!!Object.getOwnPropertySymbols&&!de(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&fp&&fp<41}),eC=u3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wdt=rt.Object,tw=eC?function(t){return typeof t=="symbol"}:function(t){var e=as("Symbol");return ae(e)&&cp(e.prototype,wdt(t))},Edt=rt.String,qv=function(t){try{return Edt(t)}catch(e){return"Object"}},Ddt=rt.TypeError,Pa=function(t){if(ae(t))return t;throw Ddt(qv(t)+" is not a function")},dp=function(t,e){var n=t[e];return n==null?void 0:Pa(n)},Cdt=rt.TypeError,xdt=Object.defineProperty,nC=function(t,e){try{xdt(rt,t,{value:e,configurable:!0,writable:!0})}catch(n){rt[t]=e}return e},ga=rt["__core-js_shared__"]||nC("__core-js_shared__",{}),rC=Q8(function(t){(t.exports=function(e,n){return ga[e]||(ga[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Sdt=rt.Object,xy=function(t){return Sdt(fh(t))},Adt=xt({}.hasOwnProperty),qe=Object.hasOwn||function(t,e){return Adt(xy(t),e)},Odt=0,kdt=Math.random(),Bdt=xt(1 .toString),oC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+Bdt(++Odt+kdt,36)},kf=rC("wks"),$u=rt.Symbol,EF=$u&&$u.for,Fdt=eC?$u:$u&&$u.withoutSetter||oC,ze=function(t){if(!qe(kf,t)||!u3&&typeof kf[t]!="string"){var e="Symbol."+t;u3&&qe($u,t)?kf[t]=$u[t]:kf[t]=eC&&EF?EF(e):Fdt(e)}return kf[t]},Tdt=rt.TypeError,_dt=ze("toPrimitive"),iC=function(t){var e=function(n,r){if(!we(n)||tw(n))return n;var o,i=dp(n,_dt);if(i){if(o=fe(i,n,r),!we(o)||tw(o))return o;throw Tdt("Can't convert object to primitive value")}return function(a,u){var s,l;if(ae(s=a.toString)&&!we(l=fe(s,a))||ae(s=a.valueOf)&&!we(l=fe(s,a)))return l;throw Cdt("Can't convert object to primitive value")}(n)}(t,"string");return tw(e)?e:e+""},s3=rt.document,Pdt=we(s3)&&we(s3.createElement),pp=function(t){return Pdt?s3.createElement(t):{}},qR=!To&&!de(function(){return Object.defineProperty(pp("div"),"a",{get:function(){return 7}}).a!=7}),DF=Object.getOwnPropertyDescriptor,aC={f:To?DF:function(t,e){if(t=za(t),e=iC(e),qR)try{return DF(t,e)}catch(n){}if(qe(t,e))return Cy(!fe(pdt.f,t,e),t[e])}},jdt=rt.String,Ndt=rt.TypeError,fn=function(t){if(we(t))return t;throw Ndt(jdt(t)+" is not an object")},Idt=rt.TypeError,CF=Object.defineProperty,di={f:To?CF:function(t,e,n){if(fn(t),e=iC(e),fn(n),qR)try{return CF(t,e,n)}catch(r){}if("get"in n||"set"in n)throw Idt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},va=To?function(t,e,n){return di.f(t,e,Cy(1,n))}:function(t,e,n){return t[e]=n,t},Ldt=xt(Function.toString);ae(ga.inspectSource)||(ga.inspectSource=function(t){return Ldt(t)});var Kv,Ed,Yv,Sy=ga.inspectSource,xF=rt.WeakMap,KR=ae(xF)&&/native code/.test(Sy(xF)),SF=rC("keys"),uC=function(t){return SF[t]||(SF[t]=oC(t))},Ay={},l3=rt.TypeError,Rdt=rt.WeakMap;if(KR||ga.state){var ru=ga.state||(ga.state=new Rdt),Mdt=xt(ru.get),AF=xt(ru.has),zdt=xt(ru.set);Kv=function(t,e){if(AF(ru,t))throw new l3("Object already initialized");return e.facade=t,zdt(ru,t,e),e},Ed=function(t){return Mdt(ru,t)||{}},Yv=function(t){return AF(ru,t)}}else{var qs=uC("state");Ay[qs]=!0,Kv=function(t,e){if(qe(t,qs))throw new l3("Object already initialized");return e.facade=t,va(t,qs,e),e},Ed=function(t){return qe(t,qs)?t[qs]:{}},Yv=function(t){return qe(t,qs)}}var lr={set:Kv,get:Ed,has:Yv,enforce:function(t){return Yv(t)?Ed(t):Kv(t,{})},getterFor:function(t){return function(e){var n;if(!we(e)||(n=Ed(e)).type!==t)throw l3("Incompatible receiver, "+t+" required");return n}}},YR=Function.prototype,$dt=To&&Object.getOwnPropertyDescriptor,ew=qe(YR,"name"),Dc={EXISTS:ew,PROPER:ew&&function(){}.name==="something",CONFIGURABLE:ew&&(!To||To&&$dt(YR,"name").configurable)},_r=Q8(function(t){var e=Dc.CONFIGURABLE,n=lr.get,r=lr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;ae(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!qe(u,"name")||e&&u.name!==p)&&va(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==rt?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:va(i,a,u)):f?i[a]=u:nC(a,u)})(Function.prototype,"toString",function(){return ae(this)&&n(this).source||Sy(this)})}),Hdt=Math.ceil,Vdt=Math.floor,Oy=function(t){var e=+t;return e!=e||e===0?0:(e>0?Vdt:Hdt)(e)},Udt=Math.max,Wdt=Math.min,hp=function(t,e){var n=Oy(t);return n<0?Udt(n+e,0):Wdt(n,e)},Gdt=Math.min,XR=function(t){return t>0?Gdt(Oy(t),9007199254740991):0},dh=function(t){return XR(t.length)},OF=function(t){return function(e,n,r){var o,i=za(e),a=dh(i),u=hp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ZR={includes:OF(!0),indexOf:OF(!1)},qdt=ZR.indexOf,kF=xt([].push),JR=function(t,e){var n,r=za(t),o=0,i=[];for(n in r)!qe(Ay,n)&&qe(r,n)&&kF(i,n);for(;e.length>o;)qe(r,n=e[o++])&&(~qdt(i,n)||kF(i,n));return i},Xv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Kdt=Xv.concat("length","prototype"),Zv={f:Object.getOwnPropertyNames||function(t){return JR(t,Kdt)}},Ydt={f:Object.getOwnPropertySymbols},Xdt=xt([].concat),Zdt=as("Reflect","ownKeys")||function(t){var e=Zv.f(fn(t)),n=Ydt.f;return n?Xdt(e,n(t)):e},Jdt=function(t,e){for(var n=Zdt(e),r=di.f,o=aC.f,i=0;i<n.length;i++){var a=n[i];qe(t,a)||r(t,a,o(e,a))}},Qdt=/#|\.prototype\./,ph=function(t,e){var n=ept[tpt(t)];return n==rpt||n!=npt&&(ae(e)?de(e):!!e)},tpt=ph.normalize=function(t){return String(t).replace(Qdt,".").toLowerCase()},ept=ph.data={},npt=ph.NATIVE="N",rpt=ph.POLYFILL="P",Jv=ph,opt=aC.f,Hn=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?rt:l?rt[u]||nC(u,{}):(rt[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=opt(n,r))&&a.value:n[r],!Jv(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;Jdt(i,o)}(t.sham||o&&o.sham)&&va(i,"sham",!0),_r(n,r,i,t)}},QR={};QR[ze("toStringTag")]="z";var sC=String(QR)==="[object z]",ipt=ze("toStringTag"),apt=rt.Object,upt=So(function(){return arguments}())=="Arguments",ky=sC?So:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=apt(t),ipt))=="string"?n:upt?So(e):(r=So(e))=="Object"&&ae(e.callee)?"Arguments":r},spt=rt.String,br=function(t){if(ky(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return spt(t)},c3=`
\v\f\r    \u2028\u2029\uFEFF`,BF=xt("".replace),Qv="["+c3+"]",lpt=RegExp("^"+Qv+Qv+"*"),cpt=RegExp(Qv+Qv+"*$"),nw=function(t){return function(e){var n=br(fh(e));return 1&t&&(n=BF(n,lpt,"")),2&t&&(n=BF(n,cpt,"")),n}},fpt={start:nw(1),end:nw(2),trim:nw(3)},dpt=Dc.PROPER,ppt=fpt.trim;function FF(t){return t.length?t[0].tagName.toLowerCase():""}function tM(t,e,n){e===void 0&&(e="auto"),n===void 0&&(n="auto");var r=B(t);return r.attr("width",e),r.attr("height",n),r[0].outerHTML}Hn({target:"String",proto:!0,forced:de(function(){return!!c3.trim()||"…".trim()!=="…"||dpt&&c3.trim.name!=="trim"})},{trim:function(){return ppt(this)}}),Hn({global:!0},{globalThis:rt}),kr&&(B.fn.append=kr),Bo&&(B.fn.on=Bo),xa&&(B.fn.focus=xa),Or&&(B.fn.attr=Or),ko&&(B.fn.val=ko),Ca&&(B.fn.html=Ca),Il&&(B.fn.parent=Il),Pl&&(B.fn.hasClass=Pl),zl&&(B.fn.empty=zl);var y0,hpt={type:"video",renderElem:function(t,e,n){var r,o=t,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=A.isNodeSelected(n,t);if(a.trim().indexOf("<iframe ")===0)r=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:tM(a,c,d)});else{var v=wt("video",{poster:s,controls:!0},wt("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=wt("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return $l("div",{props:{contentEditable:!1},on:{mousedown:function(y){return y.preventDefault()}}},r)}},gpt={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=r===void 0?"":r,i=n.poster,a=i===void 0?"":i,u=n.width,s=u===void 0?"auto":u,l=n.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
`;return o.trim().indexOf("<iframe ")===0?f+=tM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
</div>`}},vpt=Object.keys||function(t){return JR(t,Xv)},ypt=To?Object.defineProperties:function(t,e){fn(t);for(var n,r=za(e),o=vpt(e),i=o.length,a=0;i>a;)di.f(t,n=o[a++],r[n]);return t},f3=as("document","documentElement"),eM=uC("IE_PROTO"),rw=function(){},nM=function(t){return"<script>"+t+"<\/script>"},TF=function(t){t.write(nM("")),t.close();var e=t.parentWindow.Object;return t=null,e},ag=function(){try{y0=new ActiveXObject("htmlfile")}catch(r){}var t,e;ag=typeof document!="undefined"?document.domain&&y0?TF(y0):((e=pp("iframe")).style.display="none",f3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(nM("document.F=Object")),t.close(),t.F):TF(y0);for(var n=Xv.length;n--;)delete ag.prototype[Xv[n]];return ag()};Ay[eM]=!0;var lC=Object.create||function(t,e){var n;return t!==null?(rw.prototype=fn(t),n=new rw,rw.prototype=null,n[eM]=t):n=ag(),e===void 0?n:ypt(n,e)},d3=ze("unscopables"),p3=Array.prototype;p3[d3]==null&&di.f(p3,d3,{configurable:!0,value:lC(null)});var Dd=function(t){p3[d3][t]=!0},mpt=ZR.includes;Hn({target:"Array",proto:!0},{includes:function(t){return mpt(this,t,arguments.length>1?arguments[1]:void 0)}}),Dd("includes");var bpt={selector:"iframe,video,p",preParseHtml:function(t){var e=B(t),n=e;if(FF(e)==="p"){var r=e.children();if(r.length===1){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=B(o))}}var a=FF(n);if(a!=="iframe"&&a!=="video"||n.parent().attr("data-w-e-type")==="video")return n[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(n),u[0]}},_F=xt(xt.bind),gp=function(t,e){return Pa(t),e===void 0?t:_F?_F(t,e):function(){return t.apply(e,arguments)}},t1=Array.isArray||function(t){return So(t)=="Array"},rM=function(){},wpt=[],oM=as("Reflect","construct"),cC=/^\s*(?:class|function)\b/,Ept=xt(cC.exec),Dpt=!cC.exec(rM),Bf=function(t){if(!ae(t))return!1;try{return oM(rM,wpt,t),!0}catch(e){return!1}},fC=!oM||de(function(){var t;return Bf(Bf.call)||!Bf(Object)||!Bf(function(){t=!0})||t})?function(t){if(!ae(t))return!1;switch(ky(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Dpt||!!Ept(cC,Sy(t))}:Bf,Cpt=ze("species"),PF=rt.Array,xpt=function(t,e){return new(function(n){var r;return t1(n)&&(r=n.constructor,(fC(r)&&(r===PF||t1(r.prototype))||we(r)&&(r=r[Cpt])===null)&&(r=void 0)),r===void 0?PF:r}(t))(e===0?0:e)},jF=xt([].push),Mi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=xy(s),y=tC(v),g=gp(l,c),m=dh(y),h=0,b=f||xpt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:jF(w,d)}else switch(t){case 4:return!1;case 7:jF(w,d)}return i?-1:r||o?o:w}},dC={forEach:Mi(0),map:Mi(1),filter:Mi(2),some:Mi(3),every:Mi(4),find:Mi(5),findIndex:Mi(6),filterReject:Mi(7)},Spt=dC.find,NF=!0;"find"in[]&&Array(1).find(function(){NF=!1}),Hn({target:"Array",proto:!0,forced:NF},{find:function(t){return Spt(this,t,arguments.length>1?arguments[1]:void 0)}}),Dd("find");var Apt=sC?{}.toString:function(){return"[object "+ky(this)+"]"};function IF(t,e,n,r){return e===void 0&&(e=""),n===void 0&&(n="auto"),r===void 0&&(r="auto"),{type:"video",src:t,poster:e,width:n,height:r,children:[{text:""}]}}sC||_r(Object.prototype,"toString",Apt,{unsafe:!0});var LF,ow,Opt={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=B(t),o="",i="",a="auto",u="auto",s=r.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",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)}},iM=function(){var t=fn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},pC=rt.RegExp,h3=de(function(){var t=pC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),kpt=h3||de(function(){return!pC("a","y").sticky}),Bpt={BROKEN_CARET:h3||de(function(){var t=pC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:kpt,UNSUPPORTED_Y:h3},Fpt=rt.RegExp,Tpt=de(function(){var t=Fpt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),_pt=rt.RegExp,Ppt=de(function(){var t=_pt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),jpt=lr.get,Npt=rC("native-string-replace",String.prototype.replace),e1=RegExp.prototype.exec,g3=e1,Ipt=xt("".charAt),Lpt=xt("".indexOf),Rpt=xt("".replace),iw=xt("".slice),aw=(ow=/b*/g,fe(e1,LF=/a/,"a"),fe(e1,ow,"a"),LF.lastIndex!==0||ow.lastIndex!==0),RF=Bpt.BROKEN_CARET,uw=/()??/.exec("")[1]!==void 0;(aw||uw||RF||Tpt||Ppt)&&(g3=function(t){var e,n,r,o,i,a,u,s=this,l=jpt(s),c=br(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=fe(g3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=RF&&s.sticky,v=fe(iM,s),y=s.source,g=0,m=c;if(p&&(v=Rpt(v,"y",""),Lpt(v,"g")===-1&&(v+="g"),m=iw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ipt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),uw&&(n=new RegExp("^"+y+"$(?!\\s)",v)),aw&&(r=s.lastIndex),o=fe(e1,p?n:s,m),p?o?(o.input=iw(o.input,g),o[0]=iw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:aw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),uw&&o&&o.length>1&&fe(Npt,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=lC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var n1=g3;Hn({target:"RegExp",proto:!0,forced:/./.exec!==n1},{exec:n1});var hC=Function.prototype,MF=hC.apply,Mpt=hC.bind,zF=hC.call,aM=typeof Reflect=="object"&&Reflect.apply||(Mpt?zF.bind(MF):function(){return zF.apply(MF,arguments)}),$F=(ze("species"),RegExp.prototype),zpt=xt("".charAt),HF=xt("".charCodeAt),$pt=xt("".slice),VF=function(t){return function(e,n){var r,o,i=br(fh(e)),a=Oy(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=HF(i,a))<55296||r>56319||a+1===u||(o=HF(i,a+1))<56320||o>57343?t?zpt(i,a):r:t?$pt(i,a,a+2):o-56320+(r-55296<<10)+65536}},uM={codeAt:VF(!1),charAt:VF(!0)},Hpt=uM.charAt,Vpt=function(t,e,n){return e+(n?Hpt(t,e).length:1)},Upt=Math.floor,sw=xt("".charAt),Wpt=xt("".replace),lw=xt("".slice),Gpt=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,qpt=/\$([$&'`]|\d{1,2})/g,Kpt=function(t,e,n,r,o,i){var a=n+t.length,u=r.length,s=qpt;return o!==void 0&&(o=xy(o),s=Gpt),Wpt(i,s,function(l,c){var f;switch(sw(c,0)){case"$":return"$";case"&":return t;case"`":return lw(e,0,n);case"'":return lw(e,a);case"<":f=o[lw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Upt(d/10);return p===0?l:p<=u?r[p-1]===void 0?sw(c,1):r[p-1]+sw(c,1):l}f=r[d-1]}return f===void 0?"":f})},Ypt=rt.TypeError,Xpt=function(t,e){var n=t.exec;if(ae(n)){var r=fe(n,t,e);return r!==null&&fn(r),r}if(So(t)==="RegExp")return fe(n1,t,e);throw Ypt("RegExp#exec called on incompatible receiver")},v3=ze("replace"),Zpt=Math.max,Jpt=Math.min,Qpt=xt([].concat),cw=xt([].push),UF=xt("".indexOf),WF=xt("".slice),tht="a".replace(/./,"$0")==="$0",GF=!!/./[v3]&&/./[v3]("a","$0")==="";function sM(t){return t+"-"+mj()}(function(t,e,n,r){var o=ze(t),i=!de(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!de(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=xt(/./[o]),s=function(l,c,f){var d=GF?"$":"$0";return[function(p,v){var y=fh(this),g=p==null?void 0:dp(p,v3);return g?fe(g,p,y,v):fe(c,br(y),p,v)},function(p,v){var y=fn(this),g=br(p);if(typeof v=="string"&&UF(v,d)===-1&&UF(v,"$<")===-1){var m=f(c,y,g,v);if(m.done)return m.value}var h=ae(v);h||(v=br(v));var b=y.global;if(b){var w=y.unicode;y.lastIndex=0}for(var D=[];;){var x=Xpt(y,g);if(x===null||(cw(D,x),!b))break;br(x[0])===""&&(y.lastIndex=Vpt(g,XR(y.lastIndex),w))}for(var C,O="",T=0,R=0;R<D.length;R++){for(var H=br((x=D[R])[0]),M=Zpt(Jpt(Oy(x.index),g.length),0),K=[],U=1;U<x.length;U++)cw(K,(C=x[U])===void 0?C:String(C));var W=x.groups;if(h){var q=Qpt([H],K,M,g);W!==void 0&&cw(q,W);var nt=br(aM(v,void 0,q))}else nt=Kpt(H,g,M,K,W,v);M>=T&&(O+=WF(g,T,M)+nt,T=M+H.length)}return O+WF(g,T)}]}(0,""[t],function(l,c,f,d,p){var v=xt(l),y=c.exec;return y===n1||y===$F.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});_r(String.prototype,t,s[0]),_r($F,o,s[1])}})("replace",0,!!de(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"})||!tht||GF);var r1=rt.Promise,o1=function(t,e,n){for(var r in e)_r(t,r,e[r],n);return t},eht=rt.String,nht=rt.TypeError,Zl=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=xt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return fn(r),function(i){if(typeof i=="object"||ae(i))return i;throw nht("Can't set "+eht(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),rht=di.f,qF=ze("toStringTag"),i1=function(t,e,n){t&&!qe(t=n?t:t.prototype,qF)&&rht(t,qF,{configurable:!0,value:e})},KF=ze("species"),oht=rt.TypeError,gC=function(t,e){if(cp(e,t))return t;throw oht("Incorrect invocation")},Jl={},iht=ze("iterator"),aht=Array.prototype,uht=ze("iterator"),YF=function(t){if(t!=null)return dp(t,uht)||dp(t,"@@iterator")||Jl[ky(t)]},sht=rt.TypeError,XF=function(t,e,n){var r,o;fn(t);try{if(!(r=dp(t,"return"))){if(e==="throw")throw n;return n}r=fe(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return fn(r),n},lht=rt.TypeError,ug=function(t,e){this.stopped=t,this.result=e},ZF=ug.prototype,a1=function(t,e,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),y=gp(e,f),g=function(h){return r&&XF(r,"normal",h),new ug(!0,h)},m=function(h){return d?(fn(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)r=t;else{if(!(o=YF(t)))throw lht(qv(t)+" is not iterable");if((c=o)!==void 0&&(Jl.Array===c||aht[iht]===c)){for(i=0,a=dh(t);a>i;i++)if((u=m(t[i]))&&cp(ZF,u))return u;return new ug(!1)}r=function(h,b){var w=arguments.length<2?YF(h):b;if(Pa(w))return fn(fe(w,h));throw sht(qv(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=fe(s,r)).done;){try{u=m(l.value)}catch(h){XF(r,"throw",h)}if(typeof u=="object"&&u&&cp(ZF,u))return u}return new ug(!1)},lM=ze("iterator"),cM=!1;try{var cht=0,JF={next:function(){return{done:!!cht++}},return:function(){cM=!0}};JF[lM]=function(){return this},Array.from(JF,function(){throw 2})}catch(t){}var vp,Ks,QF,fw,fM=function(t,e){if(!cM)return!1;var n=!1;try{var r={};r[lM]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},fht=rt.TypeError,dht=ze("species"),dM=xt([].slice),pM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Dl),ya=So(rt.process)=="process",y3=rt.setImmediate,m3=rt.clearImmediate,pht=rt.process,dw=rt.Dispatch,hht=rt.Function,tT=rt.MessageChannel,ght=rt.String,pw=0,Cd={};try{vp=rt.location}catch(t){}var vC=function(t){if(qe(Cd,t)){var e=Cd[t];delete Cd[t],e()}},hw=function(t){return function(){vC(t)}},eT=function(t){vC(t.data)},nT=function(t){rt.postMessage(ght(t),vp.protocol+"//"+vp.host)};y3&&m3||(y3=function(t){var e=dM(arguments,1);return Cd[++pw]=function(){aM(ae(t)?t:hht(t),void 0,e)},Ks(pw),pw},m3=function(t){delete Cd[t]},ya?Ks=function(t){pht.nextTick(hw(t))}:dw&&dw.now?Ks=function(t){dw.now(hw(t))}:tT&&!pM?(fw=(QF=new tT).port2,QF.port1.onmessage=eT,Ks=gp(fw.postMessage,fw)):rt.addEventListener&&ae(rt.postMessage)&&!rt.importScripts&&vp&&vp.protocol!=="file:"&&!de(nT)?(Ks=nT,rt.addEventListener("message",eT,!1)):Ks="onreadystatechange"in pp("script")?function(t){f3.appendChild(pp("script")).onreadystatechange=function(){f3.removeChild(this),vC(t)}}:function(t){setTimeout(hw(t),0)});var Ff,gu,xd,ul,gw,vw,yw,rT,hM={set:y3,clear:m3},vht=/ipad|iphone|ipod/i.test(Dl)&&rt.Pebble!==void 0,yht=/web0s(?!.*chrome)/i.test(Dl),mht=aC.f,mw=hM.set,oT=rt.MutationObserver||rt.WebKitMutationObserver,iT=rt.document,aT=rt.process,m0=rt.Promise,uT=mht(rt,"queueMicrotask"),gM=uT&&uT.value;gM||(Ff=function(){var t,e;for(ya&&(t=aT.domain)&&t.exit();gu;){e=gu.fn,gu=gu.next;try{e()}catch(n){throw gu?ul():xd=void 0,n}}xd=void 0,t&&t.enter()},pM||ya||yht||!oT||!iT?!vht&&m0&&m0.resolve?((yw=m0.resolve(void 0)).constructor=m0,rT=gp(yw.then,yw),ul=function(){rT(Ff)}):ya?ul=function(){aT.nextTick(Ff)}:(mw=gp(mw,rt),ul=function(){mw(Ff)}):(gw=!0,vw=iT.createTextNode(""),new oT(Ff).observe(vw,{characterData:!0}),ul=function(){vw.data=gw=!gw}));var bw,sT,vM,lT,yM=gM||function(t){var e={fn:t,next:void 0};xd&&(xd.next=e),gu||(gu=e,ul()),xd=e},bht=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=Pa(e),this.reject=Pa(n)},yC={f:function(t){return new bht(t)}},b3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},wht=typeof window=="object",mM=hM.set,Eht=ze("species"),Zo="Promise",cT=lr.getterFor(Zo),Dht=lr.set,Cht=lr.getterFor(Zo),lu=r1&&r1.prototype,wo=r1,Tf=lu,bM=rt.TypeError,w3=rt.document,mC=rt.process,Cl=yC.f,xht=Cl,Sht=!!(w3&&w3.createEvent&&rt.dispatchEvent),wM=ae(rt.PromiseRejectionEvent),EM=!1,Sd=Jv(Zo,function(){var t=Sy(wo),e=t!==String(wo);if(!e&&fp===66)return!0;if(fp>=51&&/native code/.test(t))return!1;var n=new wo(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Eht]=r,!(EM=n.then(function(){})instanceof r)||!e&&wht&&!wM}),Aht=Sd||!fM(function(t){wo.all(t).catch(function(){})}),DM=function(t){var e;return!(!we(t)||!ae(e=t.then))&&e},bC=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;yM(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&kht(t),t.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(bM("Promise-chain cycle")):(u=DM(a))?fe(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Oht(t)})}},CM=function(t,e,n){var r,o;Sht?((r=w3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),rt.dispatchEvent(r)):r={promise:e,reason:n},!wM&&(o=rt["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=rt.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Oht=function(t){fe(mM,rt,function(){var e,n=t.facade,r=t.value;if(fT(t)&&(e=b3(function(){ya?mC.emit("unhandledRejection",r,n):CM("unhandledrejection",n,r)}),t.rejection=ya||fT(t)?2:1,e.error))throw e.value})},fT=function(t){return t.rejection!==1&&!t.parent},kht=function(t){fe(mM,rt,function(){var e=t.facade;ya?mC.emit("rejectionHandled",e):CM("rejectionhandled",e,t.value)})},pl=function(t,e,n){return function(r){t(e,r,n)}},xl=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,bC(t,!0))},E3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw bM("Promise can't be resolved itself");var r=DM(e);r?yM(function(){var o={done:!1};try{fe(r,e,pl(E3,o,t),pl(xl,o,t))}catch(i){xl(o,i,t)}}):(t.value=e,t.state=1,bC(t,!1))}catch(o){xl({done:!1},o,t)}}};if(Sd&&(Tf=(wo=function(t){gC(this,Tf),Pa(t),fe(bw,this);var e=cT(this);try{t(pl(E3,e),pl(xl,e))}catch(n){xl(e,n)}}).prototype,(bw=function(t){Dht(this,{type:Zo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=o1(Tf,{then:function(t,e){var n=Cht(this),r=n.reactions,o=Cl(function(i,a){var u,s=fn(i).constructor;return s===void 0||(u=fn(s)[dht])==null?a:function(l){if(fC(l))return l;throw fht(qv(l)+" is not a constructor")}(u)}(this,wo));return o.ok=!ae(t)||t,o.fail=ae(e)&&e,o.domain=ya?mC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&bC(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),sT=function(){var t=new bw,e=cT(t);this.promise=t,this.resolve=pl(E3,e),this.reject=pl(xl,e)},yC.f=Cl=function(t){return t===wo||t===vM?new sT(t):xht(t)},ae(r1)&&lu!==Object.prototype)){lT=lu.then,EM||(_r(lu,"then",function(t,e){var n=this;return new wo(function(r,o){fe(lT,n,r,o)}).then(t,e)},{unsafe:!0}),_r(lu,"catch",Tf.catch,{unsafe:!0}));try{delete lu.constructor}catch(t){}Zl&&Zl(lu,Tf)}function yp(t,e,n){return n===void 0&&(n=""),Ey(this,void 0,void 0,function(){var r,o,i,a,u,s,l;return Dy(this,function(c){switch(c.label){case 0:return e?(t.restoreSelection(),r=t.getMenuConfig("insertVideo"),o=r.onInsertedVideo,i=r.checkVideo,a=r.parseVideoSrc,[4,i(e,n)]):[2];case 1:return typeof(u=c.sent())=="string"?(t.alert(u,"error"),[2]):u==null?[2]:[4,a(e)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:n,children:[{text:""}]},Promise.resolve().then(function(){N.insertNodes(t,l)}),o(l),[2]}})})}function ww(){return sM("w-e-insert-video")}Hn({global:!0,wrap:!0,forced:Sd},{Promise:wo}),i1(wo,Zo,!1),function(t){var e=as("Promise"),n=di.f;To&&e&&!e[KF]&&n(e,KF,{configurable:!0,get:function(){return this}})}(),vM=as(Zo),Hn({target:Zo,stat:!0,forced:Sd},{reject:function(t){var e=Cl(this);return fe(e.reject,void 0,t),e.promise}}),Hn({target:Zo,stat:!0,forced:Sd},{resolve:function(t){return function(e,n){if(fn(e),we(n)&&n.constructor===e)return n;var r=yC.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Hn({target:Zo,stat:!0,forced:Aht},{all:function(t){var e=this,n=Cl(e),r=n.resolve,o=n.reject,i=b3(function(){var a=Pa(e.resolve),u=[],s=0,l=1;a1(t,function(c){var f=s++,d=!1;l++,fe(a,e,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(t){var e=this,n=Cl(e),r=n.reject,o=b3(function(){var i=Pa(e.resolve);a1(t,function(a){fe(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Bht=function(){function t(){this.title=tt("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=ww(),this.posterInputId=ww(),this.buttonId=ww()}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getModalPositionNode=function(e){return null},t.prototype.getModalContentElem=function(e){var n=this,r=this,o=r.srcInputId,i=r.posterInputId,a=r.buttonId,u=zu(rr(tt("videoModule.videoSrc"),o,tt("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=zu(rr(tt("videoModule.videoPoster"),i,tt("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=B(l),v=B(d),y=zu(dc(a,tt("videoModule.ok")),1)[0];if(this.$content==null){var g=B("<div></div>");g.on("click","#"+a,function(h){return Ey(n,void 0,void 0,function(){var b,w;return Dy(this,function(D){switch(D.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,yp(e,b,w)];case 1:return D.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=g}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(y),p.val(""),v.val(""),setTimeout(function(){p.focus()}),m[0]},t}(),Fht=xt([].join),Tht=tC!=Object,_ht=function(t,e){var n=[].join;return!!n&&de(function(){n.call(null,",",1)})}();Hn({target:"Array",proto:!0,forced:Tht||!_ht},{join:function(t){return Fht(za(this),t===void 0?",":t)}});var Hu,dT,pT,Pht=!de(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),hT=uC("IE_PROTO"),D3=rt.Object,jht=D3.prototype,u1=Pht?D3.getPrototypeOf:function(t){var e=xy(t);if(qe(e,hT))return e[hT];var n=e.constructor;return ae(n)&&e instanceof n?n.prototype:e instanceof D3?jht:null},C3=ze("iterator"),xM=!1;[].keys&&("next"in(pT=[].keys())?(dT=u1(u1(pT)))!==Object.prototype&&(Hu=dT):xM=!0);var Nht=Hu==null||de(function(){var t={};return Hu[C3].call(t)!==t});Nht&&(Hu={}),ae(Hu[C3])||_r(Hu,C3,function(){return this});var wC={IteratorPrototype:Hu,BUGGY_SAFARI_ITERATORS:xM},Iht=wC.IteratorPrototype,Lht=function(){return this},Rht=Dc.PROPER,Mht=Dc.CONFIGURABLE,gT=wC.IteratorPrototype,Ew=wC.BUGGY_SAFARI_ITERATORS,_f=ze("iterator"),zht=function(){return this},SM=function(t,e,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=lC(Iht,{next:Cy(1,h)}),i1(g,w,!1),Jl[w]=Lht})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!Ew&&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=e+" Iterator",f=!1,d=t.prototype,p=d[_f]||d["@@iterator"]||o&&d[o],v=!Ew&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=u1(y.call(new t)))!==Object.prototype&&u.next&&(u1(u)!==gT&&(Zl?Zl(u,gT):ae(u[_f])||_r(u,_f,zht)),i1(u,c,!0)),Rht&&o=="values"&&p&&p.name!=="values"&&(Mht?va(d,"name","values"):(f=!0,v=function(){return fe(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Hn({target:e,proto:!0,forced:Ew||f},s)),d[_f]!==v&&_r(d,_f,v,{name:o}),Jl[e]=v,s},$ht=lr.set,Hht=lr.getterFor("Array Iterator"),nd=SM(Array,"Array",function(t,e){$ht(this,{type:"Array Iterator",target:za(t),index:0,kind:e})},function(){var t=Hht(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Jl.Arguments=Jl.Array,Dd("keys"),Dd("values"),Dd("entries");var Vht=uM.charAt,Uht=lr.set,Wht=lr.getterFor("String Iterator");SM(String,"String",function(t){Uht(this,{type:"String Iterator",string:br(t),index:0})},function(){var t,e=Wht(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Vht(n,r),e.index+=t.length,{value:t,done:!1})});var AM=function(t,e,n){var r=iC(e);r in t?di.f(t,r,Cy(0,n)):t[r]=n},Ght=rt.Array,qht=Math.max,vT=Zv.f,yT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kht={f:function(t){return yT&&So(t)=="Window"?function(e){try{return vT(e)}catch(n){return function(r,o,i){for(var a=dh(r),u=hp(void 0,a),s=hp(a,a),l=Ght(qht(s-u,0)),c=0;u<s;u++,c++)AM(l,c,r[u]);return l.length=c,l}(yT)}}(t):vT(za(t))}},mT=de(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),b0=Object.isExtensible,wu=de(function(){b0(1)})||mT?function(t){return!!we(t)&&(!mT||So(t)!="ArrayBuffer")&&(!b0||b0(t))}:b0,Yht=!de(function(){return Object.isExtensible(Object.preventExtensions({}))}),EC=Q8(function(t){var e=di.f,n=!1,r=oC("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=Zv.f,s=xt([].splice),l={};l[r]=1,u(l).length&&(Zv.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},Hn({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kht.f}))},fastKey:function(u,s){if(!we(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!qe(u,r)){if(!wu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!qe(u,r)){if(!wu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return Yht&&n&&wu(u)&&!qe(u,r)&&i(u),u}};Ay[r]=!0}),w0=EC.getWeakData,Xht=lr.set,Zht=lr.getterFor,Jht=dC.find,Qht=dC.findIndex,t0t=xt([].splice),e0t=0,E0=function(t){return t.frozen||(t.frozen=new OM)},OM=function(){this.entries=[]},Dw=function(t,e){return Jht(t.entries,function(n){return n[0]===e})};OM.prototype={get:function(t){var e=Dw(this,t);if(e)return e[1]},has:function(t){return!!Dw(this,t)},set:function(t,e){var n=Dw(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Qht(this.entries,function(n){return n[0]===t});return~e&&t0t(this.entries,e,1),!!~e}};var Pf,kM={getConstructor:function(t,e,n,r){var o=t(function(s,l){gC(s,i),Xht(s,{type:e,id:e0t++,frozen:void 0}),l!=null&&a1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Zht(e),u=function(s,l,c){var f=a(s),d=w0(fn(l),!0);return d===!0?E0(f).set(l,c):d[f.id]=c,s};return o1(i,{delete:function(s){var l=a(this);if(!we(s))return!1;var c=w0(s);return c===!0?E0(l).delete(s):c&&qe(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!we(s))return!1;var c=w0(s);return c===!0?E0(l).has(s):c&&qe(c,l.id)}}),o1(i,n?{get:function(s){var l=a(this);if(we(s)){var c=w0(s);return c===!0?E0(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}},D0=lr.enforce,n0t=!rt.ActiveXObject&&"ActiveXObject"in rt,BM=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r0t=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=rt[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=xt(u[g]);_r(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!we(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!we(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!we(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(Jv(t,!ae(a)||!(o||u.forEach&&!de(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),EC.enable();else if(Jv(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=de(function(){f.has(1)}),v=fM(function(g){new a(g)}),y=!o&&de(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){gC(g,u);var h=function(b,w,D){var x,C;return Zl&&ae(x=w.constructor)&&x!==D&&we(C=x.prototype)&&C!==D.prototype&&Zl(b,C),b}(new a,g,s);return m!=null&&a1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),r&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Hn({global:!0,forced:s!=a},l),i1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",BM,kM);if(KR&&n0t){Pf=kM.getConstructor(BM,"WeakMap",!0),EC.enable();var jf=r0t.prototype,bT=xt(jf.delete),C0=xt(jf.has),wT=xt(jf.get),ET=xt(jf.set);o1(jf,{delete:function(t){if(we(t)&&!wu(t)){var e=D0(this);return e.frozen||(e.frozen=new Pf),bT(this,t)||e.frozen.delete(t)}return bT(this,t)},has:function(t){if(we(t)&&!wu(t)){var e=D0(this);return e.frozen||(e.frozen=new Pf),C0(this,t)||e.frozen.has(t)}return C0(this,t)},get:function(t){if(we(t)&&!wu(t)){var e=D0(this);return e.frozen||(e.frozen=new Pf),C0(this,t)?wT(this,t):e.frozen.get(t)}return wT(this,t)},set:function(t,e){if(we(t)&&!wu(t)){var n=D0(this);n.frozen||(n.frozen=new Pf),C0(this,t)?ET(this,t,e):n.frozen.set(t,e)}else ET(this,t,e);return this}})}var FM={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},Cw=pp("span").classList,DT=Cw&&Cw.constructor&&Cw.constructor.prototype,o0t=DT===Object.prototype?void 0:DT,xw=ze("iterator"),CT=ze("toStringTag"),Sw=nd.values,TM=function(t,e){if(t){if(t[xw]!==Sw)try{va(t,xw,Sw)}catch(r){t[xw]=Sw}if(t[CT]||va(t,CT,e),FM[e]){for(var n in nd)if(t[n]!==nd[n])try{va(t,n,nd[n])}catch(r){t[n]=nd[n]}}}};for(var Aw in FM)TM(rt[Aw]&&rt[Aw].prototype,Aw);TM(o0t,"DOMTokenList");var i0t=Dc.EXISTS,a0t=di.f,_M=Function.prototype,u0t=xt(_M.toString),PM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s0t=xt(PM.exec);To&&!i0t&&a0t(_M,"name",{configurable:!0,get:function(){try{return s0t(PM,u0t(this))[1]}catch(t){return""}}});var l0t=ze("species"),c0t=fp>=51||!de(function(){var t=[];return(t.constructor={})[l0t]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),f0t=ze("species"),Ow=rt.Array,d0t=Math.max;function jM(t){return t.getMenuConfig("uploadVideo")}Hn({target:"Array",proto:!0,forced:!c0t},{slice:function(t,e){var n,r,o,i=za(this),a=dh(i),u=hp(t,a),s=hp(e===void 0?a:e,a);if(t1(i)&&(n=i.constructor,(fC(n)&&(n===Ow||t1(n.prototype))||we(n)&&(n=n[f0t])===null)&&(n=void 0),n===Ow||n===void 0))return dM(i,u,s);for(r=new(n===void 0?Ow:n)(d0t(s-u,0)),o=0;u<s;u++,o++)u in i&&AM(r,o,i[u]);return r.length=o,r}});var xT=new WeakMap;function p0t(t,e){return Ey(this,void 0,void 0,function(){var n,r,o,i;return Dy(this,function(a){switch(a.label){case 0:return n=function(u){var s=xT.get(u);if(s!=null)return s;var l=jM(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=aI(Gv(Gv({},l),{onProgress:function(y){u.showProgressBar(y),f&&f(y)},onSuccess:function(y,g){if(p)return p(g,function(O,T){return yp(u,O,T)}),void c(y,g);var m=g.errno,h=m===void 0?1:m,b=g.data,w=b===void 0?{}:b;if(h===0){var D=w.url,x=D===void 0?"":D,C=w.poster;yp(u,x,C===void 0?"":C),c(y,g)}else d(y,g)},onError:function(y,g,m){v(y,g,m)}})),xT.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}var h0t=function(){function t(){this.title=tt("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f){return yp(e,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,d){var p,v;Ey(this,void 0,void 0,function(){var y,g,m,h,b,w;return Dy(this,function(D){switch(D.label){case 0:if(d==null)return[2];y=Array.prototype.slice.call(d),g=jM(f).customUpload,D.label=1;case 1:D.trys.push([1,9,10,15]),m=ddt(y),D.label=2;case 2:return[4,m.next()];case 3:return(h=D.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(x,C){return yp(f,x,C)})]:[3,5]);case 4:return D.sent(),[3,7];case 5:return[4,p0t(f,b)];case 6:D.sent(),D.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=D.sent(),p={error:w},[3,15];case 10:return D.trys.push([10,,13,14]),h&&!h.done&&(v=m.return)?[4,v.call(m)]:[3,12];case 11:D.sent(),D.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];case 14:return[7];case 15:return[2]}})})})(e,c)})}},t.prototype.isDisabled=function(e){var n=e.selection;return n==null||!L.isCollapsed(n)||!!A.getSelectedElems(e).some(function(r){var o=A.getNodeType(r);return o==="pre"||o==="list-item"||!!e.isVoid(r)})},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},t}(),g0t=Dc.PROPER,x3=RegExp.prototype,NM=x3.toString,v0t=xt(iM),y0t=de(function(){return NM.call({source:"a",flags:"b"})!="/a/b"}),m0t=g0t&&NM.name!="toString";function kw(){return sM("w-e-insert-video")}(y0t||m0t)&&_r(RegExp.prototype,"toString",function(){var t=fn(this),e=br(t.source),n=t.flags;return"/"+e+"/"+br(n===void 0&&cp(x3,t)&&!("flags"in x3)?v0t(t):n)},{unsafe:!0});var b0t=function(){function t(){this.title=tt("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=kw(),this.heightInputId=kw(),this.buttonId=kw()}return t.prototype.getSelectedVideoNode=function(e){return A.getSelectedNodeByType(e,"video")},t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.exec=function(e,n){},t.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},t.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},t.prototype.getModalContentElem=function(e){var n=this,r=n.widthInputId,o=n.heightInputId,i=n.buttonId,a=zu(rr(tt("videoModule.width"),r,"auto"),2),u=a[0],s=B(a[1]),l=zu(rr(tt("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),d=zu(dc(i,tt("videoModule.ok")),1)[0];if(this.$content==null){var p=B("<div></div>");p.on("click","#"+i,function(w){w.preventDefault();var D=p.find("#"+r).val().trim(),x=p.find("#"+o).val().trim(),C=parseInt(D),O=parseInt(x),T=C?C.toString():"auto",R=O?O.toString():"auto";e.restoreSelection(),N.setNodes(e,{width:T,height:R},{match:function(H){return A.checkNodeType(H,"video")}}),e.hidePanelOrModal()}),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var y=this.getSelectedVideoNode(e);if(y==null)return v[0];var g=y.width,m=g===void 0?"auto":g,h=y.height,b=h===void 0?"auto":h;return s.val(m),f.val(b),setTimeout(function(){s.focus()}),v[0]},t}(),w0t={renderElems:[hpt],elemsToHtml:[gpt],preParseHtml:[bpt],parseElemsHtml:[Opt],menus:[{key:"insertVideo",factory:function(){return new Bht},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return!0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new h0t},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n)}}},{key:"editVideoSize",factory:function(){return new b0t}}],editorPlugin:function(t){var e=t.isVoid,n=t.normalizeNode,r=t;return r.isVoid=function(o){return o.type==="video"||e(o)},r.normalizeNode=function(o){var i=zu(o,2),a=i[0],u=i[1];return A.getNodeType(a)==="video"&&A.isLastNode(r,a)&&N.insertNodes(r,A.genEmptyParagraph(),{at:[u[0]+1]}),n([a,u])},r}};Kn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Kn("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var ST=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function DC(t){var e={exports:{}};return t(e,e.exports),e.exports}var zi,sg,x0=function(t){return t&&t.Math==Math&&t},et=x0(typeof globalThis=="object"&&globalThis)||x0(typeof window=="object"&&window)||x0(typeof self=="object"&&self)||x0(typeof ST=="object"&&ST)||function(){return this}()||Function("return this")(),ve=function(t){try{return!!t()}catch(e){return!0}},_o=!ve(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Nf=Function.prototype.call,re=Nf.bind?Nf.bind(Nf):function(){return Nf.apply(Nf,arguments)},AT={}.propertyIsEnumerable,OT=Object.getOwnPropertyDescriptor,E0t={f:OT&&!AT.call({1:2},1)?function(t){var e=OT(this,t);return!!e&&e.enumerable}:AT},By=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},IM=Function.prototype,S3=IM.bind,A3=IM.call,D0t=S3&&S3.bind(A3),_t=S3?function(t){return t&&D0t(A3,t)}:function(t){return t&&function(){return A3.apply(t,arguments)}},C0t=_t({}.toString),x0t=_t("".slice),Jr=function(t){return x0t(C0t(t),8,-1)},Bw=et.Object,S0t=_t("".split),CC=ve(function(){return!Bw("z").propertyIsEnumerable(0)})?function(t){return Jr(t)=="String"?S0t(t,""):Bw(t)}:Bw,A0t=et.TypeError,mp=function(t){if(t==null)throw A0t("Can't call method on "+t);return t},$a=function(t){return CC(mp(t))},le=function(t){return typeof t=="function"},he=function(t){return typeof t=="object"?t!==null:le(t)},O0t=function(t){return le(t)?t:void 0},us=function(t,e){return arguments.length<2?O0t(et[t]):et[t]&&et[t][e]},bp=_t({}.isPrototypeOf),Sl=us("navigator","userAgent")||"",kT=et.process,BT=et.Deno,FT=kT&&kT.versions||BT&&BT.version,TT=FT&&FT.v8;TT&&(sg=(zi=TT.split("."))[0]>0&&zi[0]<4?1:+(zi[0]+zi[1])),!sg&&Sl&&(!(zi=Sl.match(/Edge\/(\d+)/))||zi[1]>=74)&&(zi=Sl.match(/Chrome\/(\d+)/))&&(sg=+zi[1]);var wp=sg,O3=!!Object.getOwnPropertySymbols&&!ve(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wp&&wp<41}),xC=O3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",k0t=et.Object,Fw=xC?function(t){return typeof t=="symbol"}:function(t){var e=us("Symbol");return le(e)&&bp(e.prototype,k0t(t))},B0t=et.String,s1=function(t){try{return B0t(t)}catch(e){return"Object"}},F0t=et.TypeError,ja=function(t){if(le(t))return t;throw F0t(s1(t)+" is not a function")},Ep=function(t,e){var n=t[e];return n==null?void 0:ja(n)},T0t=et.TypeError,_0t=Object.defineProperty,SC=function(t,e){try{_0t(et,t,{value:e,configurable:!0,writable:!0})}catch(n){et[t]=e}return e},ma=et["__core-js_shared__"]||SC("__core-js_shared__",{}),AC=DC(function(t){(t.exports=function(e,n){return ma[e]||(ma[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),P0t=et.Object,OC=function(t){return P0t(mp(t))},j0t=_t({}.hasOwnProperty),Ke=Object.hasOwn||function(t,e){return j0t(OC(t),e)},N0t=0,I0t=Math.random(),L0t=_t(1 .toString),kC=function(t){return"Symbol("+(t===void 0?"":t)+")_"+L0t(++N0t+I0t,36)},If=AC("wks"),Vu=et.Symbol,_T=Vu&&Vu.for,R0t=xC?Vu:Vu&&Vu.withoutSetter||kC,$e=function(t){if(!Ke(If,t)||!O3&&typeof If[t]!="string"){var e="Symbol."+t;O3&&Ke(Vu,t)?If[t]=Vu[t]:If[t]=xC&&_T?_T(e):R0t(e)}return If[t]},M0t=et.TypeError,z0t=$e("toPrimitive"),BC=function(t){var e=function(n,r){if(!he(n)||Fw(n))return n;var o,i=Ep(n,z0t);if(i){if(o=re(i,n,r),!he(o)||Fw(o))return o;throw M0t("Can't convert object to primitive value")}return function(a,u){var s,l;if(le(s=a.toString)&&!he(l=re(s,a))||le(s=a.valueOf)&&!he(l=re(s,a)))return l;throw T0t("Can't convert object to primitive value")}(n)}(t,"string");return Fw(e)?e:e+""},k3=et.document,$0t=he(k3)&&he(k3.createElement),Dp=function(t){return $0t?k3.createElement(t):{}},LM=!_o&&!ve(function(){return Object.defineProperty(Dp("div"),"a",{get:function(){return 7}}).a!=7}),PT=Object.getOwnPropertyDescriptor,FC={f:_o?PT:function(t,e){if(t=$a(t),e=BC(e),LM)try{return PT(t,e)}catch(n){}if(Ke(t,e))return By(!re(E0t.f,t,e),t[e])}},H0t=et.String,V0t=et.TypeError,dn=function(t){if(he(t))return t;throw V0t(H0t(t)+" is not an object")},U0t=et.TypeError,jT=Object.defineProperty,pi={f:_o?jT:function(t,e,n){if(dn(t),e=BC(e),dn(n),LM)try{return jT(t,e,n)}catch(r){}if("get"in n||"set"in n)throw U0t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Ao=_o?function(t,e,n){return pi.f(t,e,By(1,n))}:function(t,e,n){return t[e]=n,t},W0t=_t(Function.toString);le(ma.inspectSource)||(ma.inspectSource=function(t){return W0t(t)});var l1,Ad,c1,Fy=ma.inspectSource,NT=et.WeakMap,RM=le(NT)&&/native code/.test(Fy(NT)),IT=AC("keys"),TC=function(t){return IT[t]||(IT[t]=kC(t))},Ty={},B3=et.TypeError,G0t=et.WeakMap;if(RM||ma.state){var ou=ma.state||(ma.state=new G0t),q0t=_t(ou.get),LT=_t(ou.has),K0t=_t(ou.set);l1=function(t,e){if(LT(ou,t))throw new B3("Object already initialized");return e.facade=t,K0t(ou,t,e),e},Ad=function(t){return q0t(ou,t)||{}},c1=function(t){return LT(ou,t)}}else{var Ys=TC("state");Ty[Ys]=!0,l1=function(t,e){if(Ke(t,Ys))throw new B3("Object already initialized");return e.facade=t,Ao(t,Ys,e),e},Ad=function(t){return Ke(t,Ys)?t[Ys]:{}},c1=function(t){return Ke(t,Ys)}}var cr={set:l1,get:Ad,has:c1,enforce:function(t){return c1(t)?Ad(t):l1(t,{})},getterFor:function(t){return function(e){var n;if(!he(e)||(n=Ad(e)).type!==t)throw B3("Incompatible receiver, "+t+" required");return n}}},MM=Function.prototype,Y0t=_o&&Object.getOwnPropertyDescriptor,Tw=Ke(MM,"name"),hh={EXISTS:Tw,PROPER:Tw&&function(){}.name==="something",CONFIGURABLE:Tw&&(!_o||_o&&Y0t(MM,"name").configurable)},Pr=DC(function(t){var e=hh.CONFIGURABLE,n=cr.get,r=cr.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;le(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ke(u,"name")||e&&u.name!==p)&&Ao(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==et?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ao(i,a,u)):f?i[a]=u:SC(a,u)})(Function.prototype,"toString",function(){return le(this)&&n(this).source||Fy(this)})}),X0t=Math.ceil,Z0t=Math.floor,_C=function(t){var e=+t;return e!=e||e===0?0:(e>0?Z0t:X0t)(e)},J0t=Math.max,Q0t=Math.min,Cp=function(t,e){var n=_C(t);return n<0?J0t(n+e,0):Q0t(n,e)},tgt=Math.min,zM=function(t){return t>0?tgt(_C(t),9007199254740991):0},gh=function(t){return zM(t.length)},egt=function(t){return function(e,n,r){var o,i=$a(e),a=gh(i),u=Cp(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},ngt=egt(!1),RT=_t([].push),$M=function(t,e){var n,r=$a(t),o=0,i=[];for(n in r)!Ke(Ty,n)&&Ke(r,n)&&RT(i,n);for(;e.length>o;)Ke(r,n=e[o++])&&(~ngt(i,n)||RT(i,n));return i},f1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rgt=f1.concat("length","prototype"),d1={f:Object.getOwnPropertyNames||function(t){return $M(t,rgt)}},ogt={f:Object.getOwnPropertySymbols},igt=_t([].concat),agt=us("Reflect","ownKeys")||function(t){var e=d1.f(dn(t)),n=ogt.f;return n?igt(e,n(t)):e},ugt=function(t,e){for(var n=agt(e),r=pi.f,o=FC.f,i=0;i<n.length;i++){var a=n[i];Ke(t,a)||r(t,a,o(e,a))}},sgt=/#|\.prototype\./,vh=function(t,e){var n=cgt[lgt(t)];return n==dgt||n!=fgt&&(le(e)?ve(e):!!e)},lgt=vh.normalize=function(t){return String(t).replace(sgt,".").toLowerCase()},cgt=vh.data={},fgt=vh.NATIVE="N",dgt=vh.POLYFILL="P",p1=vh,pgt=FC.f,Eo=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?et:l?et[u]||SC(u,{}):(et[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=pgt(n,r))&&a.value:n[r],!p1(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;ugt(i,o)}(t.sham||o&&o.sham)&&Ao(i,"sham",!0),Pr(n,r,i,t)}},h1=Array.isArray||function(t){return Jr(t)=="Array"},HM={};HM[$e("toStringTag")]="z";var PC=String(HM)==="[object z]",hgt=$e("toStringTag"),ggt=et.Object,vgt=Jr(function(){return arguments}())=="Arguments",_y=PC?Jr:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=ggt(t),hgt))=="string"?n:vgt?Jr(e):(r=Jr(e))=="Object"&&le(e.callee)?"Arguments":r},VM=function(){},ygt=[],UM=us("Reflect","construct"),jC=/^\s*(?:class|function)\b/,mgt=_t(jC.exec),bgt=!jC.exec(VM),Lf=function(t){if(!le(t))return!1;try{return UM(VM,ygt,t),!0}catch(e){return!1}},NC=!UM||ve(function(){var t;return Lf(Lf.call)||!Lf(Object)||!Lf(function(){t=!0})||t})?function(t){if(!le(t))return!1;switch(_y(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bgt||!!mgt(jC,Fy(t))}:Lf,WM=function(t,e,n){var r=BC(e);r in t?pi.f(t,r,By(0,n)):t[r]=n},wgt=$e("species"),GM=_t([].slice),Egt=wp>=51||!ve(function(){var t=[];return(t.constructor={})[wgt]=function(){return{foo:1}},t.slice(Boolean).foo!==1}),Dgt=$e("species"),_w=et.Array,Cgt=Math.max;Eo({target:"Array",proto:!0,forced:!Egt},{slice:function(t,e){var n,r,o,i=$a(this),a=gh(i),u=Cp(t,a),s=Cp(e===void 0?a:e,a);if(h1(i)&&(n=i.constructor,(NC(n)&&(n===_w||h1(n.prototype))||he(n)&&(n=n[Dgt])===null)&&(n=void 0),n===_w||n===void 0))return GM(i,u,s);for(r=new(n===void 0?_w:n)(Cgt(s-u,0)),o=0;u<s;u++,o++)u in i&&WM(r,o,i[u]);return r.length=o,r}});var xgt=PC?{}.toString:function(){return"[object "+_y(this)+"]"};PC||Pr(Object.prototype,"toString",xgt,{unsafe:!0});var S0,Sgt=et.String,ba=function(t){if(_y(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Sgt(t)},qM=function(){var t=dn(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},IC=et.RegExp,F3=ve(function(){var t=IC("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),Agt=F3||ve(function(){return!IC("a","y").sticky}),KM={BROKEN_CARET:F3||ve(function(){var t=IC("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:Agt,UNSUPPORTED_Y:F3},Ogt=Object.keys||function(t){return $M(t,f1)},kgt=_o?Object.defineProperties:function(t,e){dn(t);for(var n,r=$a(e),o=Ogt(e),i=o.length,a=0;i>a;)pi.f(t,n=o[a++],r[n]);return t},T3=us("document","documentElement"),YM=TC("IE_PROTO"),Pw=function(){},XM=function(t){return"<script>"+t+"<\/script>"},MT=function(t){t.write(XM("")),t.close();var e=t.parentWindow.Object;return t=null,e},lg=function(){try{S0=new ActiveXObject("htmlfile")}catch(r){}var t,e;lg=typeof document!="undefined"?document.domain&&S0?MT(S0):((e=Dp("iframe")).style.display="none",T3.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(XM("document.F=Object")),t.close(),t.F):MT(S0);for(var n=f1.length;n--;)delete lg.prototype[f1[n]];return lg()};Ty[YM]=!0;var zT,jw,LC=Object.create||function(t,e){var n;return t!==null?(Pw.prototype=dn(t),n=new Pw,Pw.prototype=null,n[YM]=t):n=lg(),e===void 0?n:kgt(n,e)},Bgt=et.RegExp,Fgt=ve(function(){var t=Bgt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Tgt=et.RegExp,_gt=ve(function(){var t=Tgt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),Pgt=cr.get,jgt=AC("native-string-replace",String.prototype.replace),g1=RegExp.prototype.exec,_3=g1,Ngt=_t("".charAt),Igt=_t("".indexOf),Lgt=_t("".replace),Nw=_t("".slice),Iw=(jw=/b*/g,re(g1,zT=/a/,"a"),re(g1,jw,"a"),zT.lastIndex!==0||jw.lastIndex!==0),$T=KM.BROKEN_CARET,Lw=/()??/.exec("")[1]!==void 0;(Iw||Lw||$T||Fgt||_gt)&&(_3=function(t){var e,n,r,o,i,a,u,s=this,l=Pgt(s),c=ba(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=re(_3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=$T&&s.sticky,v=re(qM,s),y=s.source,g=0,m=c;if(p&&(v=Lgt(v,"y",""),Igt(v,"g")===-1&&(v+="g"),m=Nw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ngt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),Lw&&(n=new RegExp("^"+y+"$(?!\\s)",v)),Iw&&(r=s.lastIndex),o=re(g1,p?n:s,m),p?o?(o.input=Nw(o.input,g),o[0]=Nw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Iw&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Lw&&o&&o.length>1&&re(jgt,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=LC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var xp=_3;Eo({target:"RegExp",proto:!0,forced:/./.exec!==xp},{exec:xp});var RC=Function.prototype,HT=RC.apply,Rgt=RC.bind,VT=RC.call,ZM=typeof Reflect=="object"&&Reflect.apply||(Rgt?VT.bind(HT):function(){return VT.apply(HT,arguments)}),Mgt=$e("species"),Rw=RegExp.prototype,zgt=$e("match"),$gt=et.TypeError,Hgt=$e("species"),JM=function(t,e){var n,r=dn(t).constructor;return r===void 0||(n=dn(r)[Hgt])==null?e:function(o){if(NC(o))return o;throw $gt(s1(o)+" is not a constructor")}(n)},Vgt=_t("".charAt),UT=_t("".charCodeAt),Ugt=_t("".slice),WT=function(t){return function(e,n){var r,o,i=ba(mp(e)),a=_C(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=UT(i,a))<55296||r>56319||a+1===u||(o=UT(i,a+1))<56320||o>57343?t?Vgt(i,a):r:t?Ugt(i,a,a+2):o-56320+(r-55296<<10)+65536}},QM={codeAt:WT(!1),charAt:WT(!0)},Wgt=QM.charAt,Ggt=function(t,e,n){return e+(n?Wgt(t,e).length:1)},qgt=et.Array,Kgt=Math.max,P3=function(t,e,n){for(var r=gh(t),o=Cp(e,r),i=Cp(n===void 0?r:n,r),a=qgt(Kgt(i-o,0)),u=0;o<i;o++,u++)WM(a,u,t[o]);return a.length=u,a},Ygt=et.TypeError,GT=function(t,e){var n=t.exec;if(le(n)){var r=re(n,t,e);return r!==null&&dn(r),r}if(Jr(t)==="RegExp")return re(xp,t,e);throw Ygt("RegExp#exec called on incompatible receiver")},Xs=KM.UNSUPPORTED_Y,Xgt=Math.min,tz=[].push,Zgt=_t(/./.exec),Zs=_t(tz),Rf=_t("".slice);(function(t,e,n,r){var o=$e(t),i=!ve(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ve(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Mgt]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||n){var u=_t(/./[o]),s=function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var y,g,m=ba(mp(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[m];if(!he(y=p)||!((g=y[zgt])!==void 0?g:Jr(y)=="RegExp"))return re(c,m,p,h);for(var b,w,D,x=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,T=new RegExp(p.source,C+"g");(b=re(xp,T,m))&&!((w=T.lastIndex)>O&&(Zs(x,Rf(m,O,b.index)),b.length>1&&b.index<m.length&&ZM(tz,x,P3(b,1)),D=b[0].length,O=w,x.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&Zgt(T,"")||Zs(x,""):Zs(x,Rf(m,O)),x.length>h?P3(x,0,h):x}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:re(c,this,p,v)}:c,[function(p,v){var y=mp(this),g=p==null?void 0:Ep(p,l);return g?re(g,p,y,v):re(d,ba(y),p,v)},function(p,v){var y=dn(this),g=ba(p),m=f(d,y,g,v,d!==c);if(m.done)return m.value;var h=JM(y,RegExp),b=y.unicode,w=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(Xs?"g":"y"),D=new h(Xs?"^(?:"+y.source+")":y,w),x=v===void 0?4294967295:v>>>0;if(x===0)return[];if(g.length===0)return GT(D,g)===null?[g]:[];for(var C=0,O=0,T=[];O<g.length;){D.lastIndex=Xs?0:O;var R,H=GT(D,Xs?Rf(g,O):g);if(H===null||(R=Xgt(zM(D.lastIndex+(Xs?O:0)),g.length))===C)O=Ggt(g,O,b);else{if(Zs(T,Rf(g,C,O)),T.length===x)return T;for(var M=1;M<=H.length-1;M++)if(Zs(T,H[M]),T.length===x)return T;O=C=R}}return Zs(T,Rf(g,C)),T}]}(o,""[t],function(l,c,f,d,p){var v=_t(l),y=c.exec;return y===xp||y===Rw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Pr(String.prototype,t,s[0]),Pr(Rw,o,s[1])}r&&Ao(Rw[o],"sham",!0)})("split",0,!!ve(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),Xs);/*! *****************************************************************************
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 v1=function(){return v1=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v1.apply(this,arguments)};function MC(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(l){try{s(r.next(l))}catch(c){i(c)}}function u(l){try{s(r.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof n?c:new n(function(f){f(c)})).then(a,u)}s((r=r.apply(t,[])).next())})}function zC(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(f){c=[6,f],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([s,l])}}}function Jgt(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(d){s({value:d,done:c})},l)})(a,u,(i=t[o](i)).done,i.value)})}}}var j3=$e("unscopables"),N3=Array.prototype;N3[j3]==null&&pi.f(N3,j3,{configurable:!0,value:LC(null)});var Uu,qT,KT,Mw=function(t){N3[j3][t]=!0},Ql={},Qgt=!ve(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),YT=TC("IE_PROTO"),I3=et.Object,tvt=I3.prototype,y1=Qgt?I3.getPrototypeOf:function(t){var e=OC(t);if(Ke(e,YT))return e[YT];var n=e.constructor;return le(n)&&e instanceof n?n.prototype:e instanceof I3?tvt:null},L3=$e("iterator"),ez=!1;[].keys&&("next"in(KT=[].keys())?(qT=y1(y1(KT)))!==Object.prototype&&(Uu=qT):ez=!0);var evt=Uu==null||ve(function(){var t={};return Uu[L3].call(t)!==t});evt&&(Uu={}),le(Uu[L3])||Pr(Uu,L3,function(){return this});var $C={IteratorPrototype:Uu,BUGGY_SAFARI_ITERATORS:ez},nvt=pi.f,XT=$e("toStringTag"),m1=function(t,e,n){t&&!Ke(t=n?t:t.prototype,XT)&&nvt(t,XT,{configurable:!0,value:e})},rvt=$C.IteratorPrototype,ovt=function(){return this},ivt=et.String,avt=et.TypeError,tc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=_t(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(r){}return function(r,o){return dn(r),function(i){if(typeof i=="object"||le(i))return i;throw avt("Can't set "+ivt(i)+" as a prototype")}(o),e?t(r,o):r.__proto__=o,r}}():void 0),uvt=hh.PROPER,svt=hh.CONFIGURABLE,ZT=$C.IteratorPrototype,zw=$C.BUGGY_SAFARI_ITERATORS,Mf=$e("iterator"),lvt=function(){return this},nz=function(t,e,n,r,o,i,a){(function(g,m,h,b){var w=m+" Iterator";g.prototype=LC(rvt,{next:By(1,h)}),m1(g,w,!1),Ql[w]=ovt})(n,e,r);var u,s,l=function(g){if(g===o&&v)return v;if(!zw&&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=e+" Iterator",f=!1,d=t.prototype,p=d[Mf]||d["@@iterator"]||o&&d[o],v=!zw&&p||l(o),y=e=="Array"&&d.entries||p;return y&&(u=y1(y.call(new t)))!==Object.prototype&&u.next&&(y1(u)!==ZT&&(tc?tc(u,ZT):le(u[Mf])||Pr(u,Mf,lvt)),m1(u,c,!0)),uvt&&o=="values"&&p&&p.name!=="values"&&(svt?Ao(d,"name","values"):(f=!0,v=function(){return re(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Eo({target:e,proto:!0,forced:zw||f},s)),d[Mf]!==v&&Pr(d,Mf,v,{name:o}),Ql[e]=v,s},cvt=cr.set,fvt=cr.getterFor("Array Iterator"),rd=nz(Array,"Array",function(t,e){cvt(this,{type:"Array Iterator",target:$a(t),index:0,kind:e})},function(){var t=fvt(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):n=="keys"?{value:r,done:!1}:n=="values"?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");Ql.Arguments=Ql.Array,Mw("keys"),Mw("values"),Mw("entries");var dvt=QM.charAt,pvt=cr.set,hvt=cr.getterFor("String Iterator");nz(String,"String",function(t){pvt(this,{type:"String Iterator",string:ba(t),index:0})},function(){var t,e=hvt(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=dvt(n,r),e.index+=t.length,{value:t,done:!1})});var b1=function(t,e,n){for(var r in e)Pr(t,r,e[r],n);return t},JT=d1.f,QT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gvt={f:function(t){return QT&&Jr(t)=="Window"?function(e){try{return JT(e)}catch(n){return P3(QT)}}(t):JT($a(t))}},t_=ve(function(){if(typeof ArrayBuffer=="function"){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}),A0=Object.isExtensible,Eu=ve(function(){A0(1)})||t_?function(t){return!!he(t)&&(!t_||Jr(t)!="ArrayBuffer")&&(!A0||A0(t))}:A0,vvt=!ve(function(){return Object.isExtensible(Object.preventExtensions({}))}),HC=DC(function(t){var e=pi.f,n=!1,r=kC("meta"),o=0,i=function(u){e(u,r,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},n=!0;var u=d1.f,s=_t([].splice),l={};l[r]=1,u(l).length&&(d1.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},Eo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gvt.f}))},fastKey:function(u,s){if(!he(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Ke(u,r)){if(!Eu(u))return"F";if(!s)return"E";i(u)}return u[r].objectID},getWeakData:function(u,s){if(!Ke(u,r)){if(!Eu(u))return!0;if(!s)return!1;i(u)}return u[r].weakData},onFreeze:function(u){return vvt&&n&&Eu(u)&&!Ke(u,r)&&i(u),u}};Ty[r]=!0}),e_=_t(_t.bind),Sp=function(t,e){return ja(t),e===void 0?t:e_?e_(t,e):function(){return t.apply(e,arguments)}},yvt=$e("iterator"),mvt=Array.prototype,bvt=$e("iterator"),n_=function(t){if(t!=null)return Ep(t,bvt)||Ep(t,"@@iterator")||Ql[_y(t)]},wvt=et.TypeError,r_=function(t,e,n){var r,o;dn(t);try{if(!(r=Ep(t,"return"))){if(e==="throw")throw n;return n}r=re(r,t)}catch(i){o=!0,r=i}if(e==="throw")throw n;if(o)throw r;return dn(r),n},Evt=et.TypeError,cg=function(t,e){this.stopped=t,this.result=e},o_=cg.prototype,w1=function(t,e,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),y=Sp(e,f),g=function(h){return r&&r_(r,"normal",h),new cg(!0,h)},m=function(h){return d?(dn(h),v?y(h[0],h[1],g):y(h[0],h[1])):v?y(h,g):y(h)};if(p)r=t;else{if(!(o=n_(t)))throw Evt(s1(t)+" is not iterable");if((c=o)!==void 0&&(Ql.Array===c||mvt[yvt]===c)){for(i=0,a=gh(t);a>i;i++)if((u=m(t[i]))&&bp(o_,u))return u;return new cg(!1)}r=function(h,b){var w=arguments.length<2?n_(h):b;if(ja(w))return dn(re(w,h));throw wvt(s1(h)+" is not iterable")}(t,o)}for(s=r.next;!(l=re(s,r)).done;){try{u=m(l.value)}catch(h){r_(r,"throw",h)}if(typeof u=="object"&&u&&bp(o_,u))return u}return new cg(!1)},Dvt=et.TypeError,VC=function(t,e){if(bp(e,t))return t;throw Dvt("Incorrect invocation")},rz=$e("iterator"),oz=!1;try{var Cvt=0,i_={next:function(){return{done:!!Cvt++}},return:function(){oz=!0}};i_[rz]=function(){return this},Array.from(i_,function(){throw 2})}catch(t){}var iz=function(t,e){if(!oz)return!1;var n=!1;try{var r={};r[rz]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(o){}return n},xvt=$e("species"),a_=et.Array,Svt=function(t,e){return new(function(n){var r;return h1(n)&&(r=n.constructor,(NC(r)&&(r===a_||h1(r.prototype))||he(r)&&(r=r[xvt])===null)&&(r=void 0)),r===void 0?a_:r}(t))(e===0?0:e)},u_=_t([].push),$i=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=OC(s),y=CC(v),g=Sp(l,c),m=gh(y),h=0,b=f||Svt,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:u_(w,d)}else switch(t){case 4:return!1;case 7:u_(w,d)}return i?-1:r||o?o:w}},UC={forEach:$i(0),map:$i(1),filter:$i(2),some:$i(3),every:$i(4),find:$i(5),findIndex:$i(6),filterReject:$i(7)},O0=HC.getWeakData,Avt=cr.set,Ovt=cr.getterFor,kvt=UC.find,Bvt=UC.findIndex,Fvt=_t([].splice),Tvt=0,k0=function(t){return t.frozen||(t.frozen=new az)},az=function(){this.entries=[]},$w=function(t,e){return kvt(t.entries,function(n){return n[0]===e})};az.prototype={get:function(t){var e=$w(this,t);if(e)return e[1]},has:function(t){return!!$w(this,t)},set:function(t,e){var n=$w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=Bvt(this.entries,function(n){return n[0]===t});return~e&&Fvt(this.entries,e,1),!!~e}};var zf,uz={getConstructor:function(t,e,n,r){var o=t(function(s,l){VC(s,i),Avt(s,{type:e,id:Tvt++,frozen:void 0}),l!=null&&w1(l,s[r],{that:s,AS_ENTRIES:n})}),i=o.prototype,a=Ovt(e),u=function(s,l,c){var f=a(s),d=O0(dn(l),!0);return d===!0?k0(f).set(l,c):d[f.id]=c,s};return b1(i,{delete:function(s){var l=a(this);if(!he(s))return!1;var c=O0(s);return c===!0?k0(l).delete(s):c&&Ke(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!he(s))return!1;var c=O0(s);return c===!0?k0(l).has(s):c&&Ke(c,l.id)}}),b1(i,n?{get:function(s){var l=a(this);if(he(s)){var c=O0(s);return c===!0?k0(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}},B0=cr.enforce,_vt=!et.ActiveXObject&&"ActiveXObject"in et,sz=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Pvt=function(t,e,n){var r=t.indexOf("Map")!==-1,o=t.indexOf("Weak")!==-1,i=r?"set":"add",a=et[t],u=a&&a.prototype,s=a,l={},c=function(g){var m=_t(u[g]);Pr(u,g,g=="add"?function(h){return m(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!he(h))&&m(this,h===0?0:h)}:g=="get"?function(h){return o&&!he(h)?void 0:m(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!he(h))&&m(this,h===0?0:h)}:function(h,b){return m(this,h===0?0:h,b),this})};if(p1(t,!le(a)||!(o||u.forEach&&!ve(function(){new a().entries().next()}))))s=n.getConstructor(e,t,r,i),HC.enable();else if(p1(t,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ve(function(){f.has(1)}),v=iz(function(g){new a(g)}),y=!o&&ve(function(){for(var g=new a,m=5;m--;)g[i](m,m);return!g.has(-0)});v||((s=e(function(g,m){VC(g,u);var h=function(b,w,D){var x,C;return tc&&le(x=w.constructor)&&x!==D&&he(C=x.prototype)&&C!==D.prototype&&tc(b,C),b}(new a,g,s);return m!=null&&w1(m,h[i],{that:h,AS_ENTRIES:r}),h})).prototype=u,u.constructor=s),(p||y)&&(c("delete"),c("has"),r&&c("get")),(y||d)&&c(i),o&&u.clear&&delete u.clear}return l[t]=s,Eo({global:!0,forced:s!=a},l),m1(s,t),o||n.setStrong(s,t,r),s}("WeakMap",sz,uz);if(RM&&_vt){zf=uz.getConstructor(sz,"WeakMap",!0),HC.enable();var $f=Pvt.prototype,s_=_t($f.delete),F0=_t($f.has),l_=_t($f.get),c_=_t($f.set);b1($f,{delete:function(t){if(he(t)&&!Eu(t)){var e=B0(this);return e.frozen||(e.frozen=new zf),s_(this,t)||e.frozen.delete(t)}return s_(this,t)},has:function(t){if(he(t)&&!Eu(t)){var e=B0(this);return e.frozen||(e.frozen=new zf),F0(this,t)||e.frozen.has(t)}return F0(this,t)},get:function(t){if(he(t)&&!Eu(t)){var e=B0(this);return e.frozen||(e.frozen=new zf),F0(this,t)?l_(this,t):e.frozen.get(t)}return l_(this,t)},set:function(t,e){if(he(t)&&!Eu(t)){var n=B0(this);n.frozen||(n.frozen=new zf),F0(this,t)?c_(this,t,e):n.frozen.set(t,e)}else c_(this,t,e);return this}})}var E1={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},Hw=Dp("span").classList,f_=Hw&&Hw.constructor&&Hw.constructor.prototype,lz=f_===Object.prototype?void 0:f_,Vw=$e("iterator"),d_=$e("toStringTag"),Uw=rd.values,cz=function(t,e){if(t){if(t[Vw]!==Uw)try{Ao(t,Vw,Uw)}catch(r){t[Vw]=Uw}if(t[d_]||Ao(t,d_,e),E1[e]){for(var n in rd)if(t[n]!==rd[n])try{Ao(t,n,rd[n])}catch(r){t[n]=rd[n]}}}};for(var Ww in E1)cz(et[Ww]&&et[Ww].prototype,Ww);cz(lz,"DOMTokenList");var fz=function(t,e){var n=[][t];return!!n&&ve(function(){n.call(null,e||function(){throw 1},1)})},jvt=UC.forEach,Gw=fz("forEach")?[].forEach:function(t){return jvt(this,t,arguments.length>1?arguments[1]:void 0)},dz=function(t){if(t&&t.forEach!==Gw)try{Ao(t,"forEach",Gw)}catch(e){t.forEach=Gw}};for(var qw in E1)E1[qw]&&dz(et[qw]&&et[qw].prototype);dz(lz);var Ap,Js,p_,Kw,D1=et.Promise,h_=$e("species"),pz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Sl),wa=Jr(et.process)=="process",R3=et.setImmediate,M3=et.clearImmediate,Nvt=et.process,Yw=et.Dispatch,Ivt=et.Function,g_=et.MessageChannel,Lvt=et.String,Xw=0,Od={};try{Ap=et.location}catch(t){}var WC=function(t){if(Ke(Od,t)){var e=Od[t];delete Od[t],e()}},Zw=function(t){return function(){WC(t)}},v_=function(t){WC(t.data)},y_=function(t){et.postMessage(Lvt(t),Ap.protocol+"//"+Ap.host)};R3&&M3||(R3=function(t){var e=GM(arguments,1);return Od[++Xw]=function(){ZM(le(t)?t:Ivt(t),void 0,e)},Js(Xw),Xw},M3=function(t){delete Od[t]},wa?Js=function(t){Nvt.nextTick(Zw(t))}:Yw&&Yw.now?Js=function(t){Yw.now(Zw(t))}:g_&&!pz?(Kw=(p_=new g_).port2,p_.port1.onmessage=v_,Js=Sp(Kw.postMessage,Kw)):et.addEventListener&&le(et.postMessage)&&!et.importScripts&&Ap&&Ap.protocol!=="file:"&&!ve(y_)?(Js=y_,et.addEventListener("message",v_,!1)):Js="onreadystatechange"in Dp("script")?function(t){T3.appendChild(Dp("script")).onreadystatechange=function(){T3.removeChild(this),WC(t)}}:function(t){setTimeout(Zw(t),0)});var Hf,vu,kd,sl,Jw,Qw,t4,m_,hz={set:R3,clear:M3},Rvt=/ipad|iphone|ipod/i.test(Sl)&&et.Pebble!==void 0,Mvt=/web0s(?!.*chrome)/i.test(Sl),zvt=FC.f,e4=hz.set,b_=et.MutationObserver||et.WebKitMutationObserver,w_=et.document,E_=et.process,T0=et.Promise,D_=zvt(et,"queueMicrotask"),gz=D_&&D_.value;gz||(Hf=function(){var t,e;for(wa&&(t=E_.domain)&&t.exit();vu;){e=vu.fn,vu=vu.next;try{e()}catch(n){throw vu?sl():kd=void 0,n}}kd=void 0,t&&t.enter()},pz||wa||Mvt||!b_||!w_?!Rvt&&T0&&T0.resolve?((t4=T0.resolve(void 0)).constructor=T0,m_=Sp(t4.then,t4),sl=function(){m_(Hf)}):wa?sl=function(){E_.nextTick(Hf)}:(e4=Sp(e4,et),sl=function(){e4(Hf)}):(Jw=!0,Qw=w_.createTextNode(""),new b_(Hf).observe(Qw,{characterData:!0}),sl=function(){Qw.data=Jw=!Jw}));var n4,C_,vz,x_,yz=gz||function(t){var e={fn:t,next:void 0};kd&&(kd.next=e),vu||(vu=e,sl()),kd=e},$vt=function(t){var e,n;this.promise=new t(function(r,o){if(e!==void 0||n!==void 0)throw TypeError("Bad Promise constructor");e=r,n=o}),this.resolve=ja(e),this.reject=ja(n)},GC={f:function(t){return new $vt(t)}},z3=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}},Hvt=typeof window=="object",mz=hz.set,Vvt=$e("species"),Jo="Promise",S_=cr.getterFor(Jo),Uvt=cr.set,Wvt=cr.getterFor(Jo),cu=D1&&D1.prototype,Do=D1,Vf=cu,bz=et.TypeError,$3=et.document,qC=et.process,Al=GC.f,Gvt=Al,qvt=!!($3&&$3.createEvent&&et.dispatchEvent),wz=le(et.PromiseRejectionEvent),Ez=!1,Bd=p1(Jo,function(){var t=Fy(Do),e=t!==String(Do);if(!e&&wp===66)return!0;if(wp>=51&&/native code/.test(t))return!1;var n=new Do(function(o){o(1)}),r=function(o){o(function(){},function(){})};return(n.constructor={})[Vvt]=r,!(Ez=n.then(function(){})instanceof r)||!e&&Hvt&&!wz}),Kvt=Bd||!iz(function(t){Do.all(t).catch(function(){})}),Dz=function(t){var e;return!(!he(t)||!le(e=t.then))&&e},KC=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;yz(function(){for(var r=t.value,o=t.state==1,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(t.rejection===2&&Xvt(t),t.rejection=1),c===!0?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(bz("Promise-chain cycle")):(u=Dz(a))?re(u,a,f,d):f(a)):d(r)}catch(v){p&&!s&&p.exit(),d(v)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Yvt(t)})}},Cz=function(t,e,n){var r,o;qvt?((r=$3.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),et.dispatchEvent(r)):r={promise:e,reason:n},!wz&&(o=et["on"+t])?o(r):t==="unhandledrejection"&&function(i,a){var u=et.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))}("Unhandled promise rejection",n)},Yvt=function(t){re(mz,et,function(){var e,n=t.facade,r=t.value;if(A_(t)&&(e=z3(function(){wa?qC.emit("unhandledRejection",r,n):Cz("unhandledrejection",n,r)}),t.rejection=wa||A_(t)?2:1,e.error))throw e.value})},A_=function(t){return t.rejection!==1&&!t.parent},Xvt=function(t){re(mz,et,function(){var e=t.facade;wa?qC.emit("rejectionHandled",e):Cz("rejectionhandled",e,t.value)})},hl=function(t,e,n){return function(r){t(e,r,n)}},Ol=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,KC(t,!0))},H3=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw bz("Promise can't be resolved itself");var r=Dz(e);r?yz(function(){var o={done:!1};try{re(r,e,hl(H3,o,t),hl(Ol,o,t))}catch(i){Ol(o,i,t)}}):(t.value=e,t.state=1,KC(t,!1))}catch(o){Ol({done:!1},o,t)}}};if(Bd&&(Vf=(Do=function(t){VC(this,Vf),ja(t),re(n4,this);var e=S_(this);try{t(hl(H3,e),hl(Ol,e))}catch(n){Ol(e,n)}}).prototype,(n4=function(t){Uvt(this,{type:Jo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=b1(Vf,{then:function(t,e){var n=Wvt(this),r=n.reactions,o=Al(JM(this,Do));return o.ok=!le(t)||t,o.fail=le(e)&&e,o.domain=wa?qC.domain:void 0,n.parent=!0,r[r.length]=o,n.state!=0&&KC(n,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),C_=function(){var t=new n4,e=S_(t);this.promise=t,this.resolve=hl(H3,e),this.reject=hl(Ol,e)},GC.f=Al=function(t){return t===Do||t===vz?new C_(t):Gvt(t)},le(D1)&&cu!==Object.prototype)){x_=cu.then,Ez||(Pr(cu,"then",function(t,e){var n=this;return new Do(function(r,o){re(x_,n,r,o)}).then(t,e)},{unsafe:!0}),Pr(cu,"catch",Vf.catch,{unsafe:!0}));try{delete cu.constructor}catch(t){}tc&&tc(cu,Vf)}Eo({global:!0,wrap:!0,forced:Bd},{Promise:Do}),m1(Do,Jo,!1),function(t){var e=us("Promise"),n=pi.f;_o&&e&&!e[h_]&&n(e,h_,{configurable:!0,get:function(){return this}})}(),vz=us(Jo),Eo({target:Jo,stat:!0,forced:Bd},{reject:function(t){var e=Al(this);return re(e.reject,void 0,t),e.promise}}),Eo({target:Jo,stat:!0,forced:Bd},{resolve:function(t){return function(e,n){if(dn(e),he(n)&&n.constructor===e)return n;var r=GC.f(e);return(0,r.resolve)(n),r.promise}(this,t)}}),Eo({target:Jo,stat:!0,forced:Kvt},{all:function(t){var e=this,n=Al(e),r=n.resolve,o=n.reject,i=z3(function(){var a=ja(e.resolve),u=[],s=0,l=1;w1(t,function(c){var f=s++,d=!1;l++,re(a,e,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(t){var e=this,n=Al(e),r=n.reject,o=z3(function(){var i=ja(e.resolve);w1(t,function(a){re(i,e,a).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}});var Zvt=hh.PROPER,V3=RegExp.prototype,xz=V3.toString,Jvt=_t(qM),Qvt=ve(function(){return xz.call({source:"a",flags:"b"})!="/a/b"}),t1t=Zvt&&xz.name!="toString";(Qvt||t1t)&&Pr(RegExp.prototype,"toString",function(){var t=dn(this),e=ba(t.source),n=t.flags;return"/"+e+"/"+ba(n===void 0&&bp(V3,t)&&!("flags"in V3)?Jvt(t):n)},{unsafe:!0});var e1t=hh.EXISTS,n1t=pi.f,Sz=Function.prototype,r1t=_t(Sz.toString),Az=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,o1t=_t(Az.exec);_o&&!e1t&&n1t(Sz,"name",{configurable:!0,get:function(){try{return o1t(Az,r1t(this))[1]}catch(t){return""}}});var O_=new WeakMap;function Oz(t){return t.getMenuConfig("uploadImage")}function i1t(t,e){return MC(this,void 0,void 0,function(){return zC(this,function(n){return[2,new Promise(function(r){var o=new FileReader;o.readAsDataURL(e),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Pu(t,a,e.name,u),r("ok")}}})]})})}function a1t(t,e){return MC(this,void 0,void 0,function(){var n,r,o,i;return zC(this,function(a){switch(a.label){case 0:return n=function(u){var s=O_.get(u);if(s!=null)return s;var l=Oz(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=aI(v1(v1({},l),{onProgress:function(y){u.showProgressBar(y),f&&f(y)},onSuccess:function(y,g){if(p)return p(g,function(R,H,M){return Pu(u,R,H,M)}),void c(y,g);var m=g.errno,h=m===void 0?1:m,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(R){var H=R.url,M=H===void 0?"":H,K=R.alt,U=K===void 0?"":K,W=R.href;Pu(u,M,U,W===void 0?"":W)});else{var D=w.url,x=D===void 0?"":D,C=w.alt,O=C===void 0?"":C,T=w.href;Pu(u,x,O,T===void 0?"":T)}c(y,g)}else d(y,g)},onError:function(y,g,m){v(y,g,m)}})),O_.set(u,s),s}(t),r=e.name,o=e.type,i=e.size,n.addFile({name:r,type:o,size:i,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}})})}function kz(t,e){var n,r;return MC(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,d;return zC(this,function(p){switch(p.label){case 0:if(e==null)return[2];o=Array.prototype.slice.call(e),i=Oz(t),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Jgt(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,i1t(t,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,function(v,y,g){return Pu(t,v,y,g)})]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,a1t(t,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),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 u1t=_t([].join),s1t=CC!=Object,l1t=fz("join",",");Eo({target:"Array",proto:!0,forced:s1t||!l1t},{join:function(t){return u1t($a(this),t===void 0?",":t)}}),kr&&(B.fn.append=kr),Bo&&(B.fn.on=Bo),Ml&&(B.fn.remove=Ml),ko&&(B.fn.val=ko),FA&&(B.fn.click=FA),Nl&&(B.fn.hide=Nl);var c1t=function(){function t(){this.title=tt("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return t.prototype.getValue=function(e){return""},t.prototype.isActive=function(e){return!1},t.prototype.isDisabled=function(e){return uy(e)},t.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},t.prototype.exec=function(e,n){var r=this.getMenuConfig(e),o=r.allowedFileTypes,i=o===void 0?[]:o,a=r.customBrowseAndUpload;if(a)a(function(c,f,d){return Pu(e,c,f,d)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;kz(e,c)})}},t}(),f1t={menus:[{key:"uploadImage",factory:function(){return new c1t},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e)},onError:function(t,e,n){console.error("'"+t.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(t){var e=t.insertData,n=t;return n.insertData=function(r){if(uy(n))e(r);else if(r.getData("text/plain"))e(r);else{var o=r.files;o.length<=0?e(r):Array.prototype.slice.call(o).some(function(i){return function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),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"})?kz(t,o):e(r)}},n}};Kn("en",{highLightModule:{selectLang:"Language"}}),Kn("zh-CN",{highLightModule:{selectLang:"选择语言"}});var C1=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function YC(t){var e={exports:{}};return t(e,e.exports),e.exports}var Hi,fg,_0=function(t){return t&&t.Math==Math&&t},It=_0(typeof globalThis=="object"&&globalThis)||_0(typeof window=="object"&&window)||_0(typeof self=="object"&&self)||_0(typeof C1=="object"&&C1)||function(){return this}()||Function("return this")(),d1t=Object.defineProperty,XC=function(t,e){try{d1t(It,t,{value:e,configurable:!0,writable:!0})}catch(n){It[t]=e}return e},Ea=It["__core-js_shared__"]||XC("__core-js_shared__",{}),ZC=YC(function(t){(t.exports=function(e,n){return Ea[e]||(Ea[e]=n!==void 0?n:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Bz=Function.prototype,U3=Bz.bind,W3=Bz.call,p1t=U3&&U3.bind(W3),te=U3?function(t){return t&&p1t(W3,t)}:function(t){return t&&function(){return W3.apply(t,arguments)}},h1t=It.TypeError,ec=function(t){if(t==null)throw h1t("Can't call method on "+t);return t},g1t=It.Object,JC=function(t){return g1t(ec(t))},v1t=te({}.hasOwnProperty),Ar=Object.hasOwn||function(t,e){return v1t(JC(t),e)},y1t=0,m1t=Math.random(),b1t=te(1 .toString),Fz=function(t){return"Symbol("+(t===void 0?"":t)+")_"+b1t(++y1t+m1t,36)},Nn=function(t){return typeof t=="function"},w1t=function(t){return Nn(t)?t:void 0},yh=function(t,e){return arguments.length<2?w1t(It[t]):It[t]&&It[t][e]},r4=yh("navigator","userAgent")||"",k_=It.process,B_=It.Deno,F_=k_&&k_.versions||B_&&B_.version,T_=F_&&F_.v8;T_&&(fg=(Hi=T_.split("."))[0]>0&&Hi[0]<4?1:+(Hi[0]+Hi[1])),!fg&&r4&&(!(Hi=r4.match(/Edge\/(\d+)/))||Hi[1]>=74)&&(Hi=r4.match(/Chrome\/(\d+)/))&&(fg=+Hi[1]);var __=fg,ln=function(t){try{return!!t()}catch(e){return!0}},G3=!!Object.getOwnPropertySymbols&&!ln(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&__&&__<41}),QC=G3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uf=ZC("wks"),Wu=It.Symbol,P_=Wu&&Wu.for,E1t=QC?Wu:Wu&&Wu.withoutSetter||Fz,Ha=function(t){if(!Ar(Uf,t)||!G3&&typeof Uf[t]!="string"){var e="Symbol."+t;G3&&Ar(Wu,t)?Uf[t]=Wu[t]:Uf[t]=QC&&P_?P_(e):E1t(e)}return Uf[t]},Tz={};Tz[Ha("toStringTag")]="z";var tx=String(Tz)==="[object z]",Po=!ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Co=function(t){return typeof t=="object"?t!==null:Nn(t)},q3=It.document,D1t=Co(q3)&&Co(q3.createElement),ex=function(t){return D1t?q3.createElement(t):{}},_z=!Po&&!ln(function(){return Object.defineProperty(ex("div"),"a",{get:function(){return 7}}).a!=7}),C1t=It.String,x1t=It.TypeError,Qr=function(t){if(Co(t))return t;throw x1t(C1t(t)+" is not an object")},Wf=Function.prototype.call,un=Wf.bind?Wf.bind(Wf):function(){return Wf.apply(Wf,arguments)},Pz=te({}.isPrototypeOf),S1t=It.Object,o4=QC?function(t){return typeof t=="symbol"}:function(t){var e=yh("Symbol");return Nn(e)&&Pz(e.prototype,S1t(t))},A1t=It.String,jz=function(t){try{return A1t(t)}catch(e){return"Object"}},O1t=It.TypeError,Nz=function(t){if(Nn(t))return t;throw O1t(jz(t)+" is not a function")},Iz=function(t,e){var n=t[e];return n==null?void 0:Nz(n)},k1t=It.TypeError,B1t=It.TypeError,F1t=Ha("toPrimitive"),nx=function(t){var e=function(n,r){if(!Co(n)||o4(n))return n;var o,i=Iz(n,F1t);if(i){if(o=un(i,n,r),!Co(o)||o4(o))return o;throw B1t("Can't convert object to primitive value")}return function(a,u){var s,l;if(Nn(s=a.toString)&&!Co(l=un(s,a))||Nn(s=a.valueOf)&&!Co(l=un(s,a)))return l;throw k1t("Can't convert object to primitive value")}(n)}(t,"string");return o4(e)?e:e+""},T1t=It.TypeError,j_=Object.defineProperty,Py={f:Po?j_:function(t,e,n){if(Qr(t),e=nx(e),Qr(n),_z)try{return j_(t,e,n)}catch(r){}if("get"in n||"set"in n)throw T1t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},rx=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},nc=Po?function(t,e,n){return Py.f(t,e,rx(1,n))}:function(t,e,n){return t[e]=n,t},_1t=te(Function.toString);Nn(Ea.inspectSource)||(Ea.inspectSource=function(t){return _1t(t)});var x1,Fd,S1,ox=Ea.inspectSource,N_=It.WeakMap,P1t=Nn(N_)&&/native code/.test(ox(N_)),I_=ZC("keys"),Lz=function(t){return I_[t]||(I_[t]=Fz(t))},ix={},K3=It.TypeError,j1t=It.WeakMap;if(P1t||Ea.state){var iu=Ea.state||(Ea.state=new j1t),N1t=te(iu.get),L_=te(iu.has),I1t=te(iu.set);x1=function(t,e){if(L_(iu,t))throw new K3("Object already initialized");return e.facade=t,I1t(iu,t,e),e},Fd=function(t){return N1t(iu,t)||{}},S1=function(t){return L_(iu,t)}}else{var Qs=Lz("state");ix[Qs]=!0,x1=function(t,e){if(Ar(t,Qs))throw new K3("Object already initialized");return e.facade=t,nc(t,Qs,e),e},Fd=function(t){return Ar(t,Qs)?t[Qs]:{}},S1=function(t){return Ar(t,Qs)}}var Y3={set:x1,get:Fd,has:S1,enforce:function(t){return S1(t)?Fd(t):x1(t,{})},getterFor:function(t){return function(e){var n;if(!Co(e)||(n=Fd(e)).type!==t)throw K3("Incompatible receiver, "+t+" required");return n}}},Rz=Function.prototype,L1t=Po&&Object.getOwnPropertyDescriptor,i4=Ar(Rz,"name"),Mz={EXISTS:i4,PROPER:i4&&function(){}.name==="something",CONFIGURABLE:i4&&(!Po||Po&&L1t(Rz,"name").configurable)},Op=YC(function(t){var e=Mz.CONFIGURABLE,n=Y3.get,r=Y3.enforce,o=String(String).split("String");(t.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Nn(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ar(u,"name")||e&&u.name!==p)&&nc(u,"name",p),(l=r(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==It?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:nc(i,a,u)):f?i[a]=u:XC(a,u)})(Function.prototype,"toString",function(){return Nn(this)&&n(this).source||ox(this)})}),R1t=te({}.toString),M1t=te("".slice),Da=function(t){return M1t(R1t(t),8,-1)},z1t=Ha("toStringTag"),$1t=It.Object,H1t=Da(function(){return arguments}())=="Arguments",ax=tx?Da:function(t){var e,n,r;return t===void 0?"Undefined":t===null?"Null":typeof(n=function(o,i){try{return o[i]}catch(a){}}(e=$1t(t),z1t))=="string"?n:H1t?Da(e):(r=Da(e))=="Object"&&Nn(e.callee)?"Arguments":r},V1t=tx?{}.toString:function(){return"[object "+ax(this)+"]"};tx||Op(Object.prototype,"toString",V1t,{unsafe:!0});var R_,M_={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},a4=ex("span").classList,z_=a4&&a4.constructor&&a4.constructor.prototype,U1t=z_===Object.prototype?void 0:z_,$_=te(te.bind),u4=It.Object,W1t=te("".split),ux=ln(function(){return!u4("z").propertyIsEnumerable(0)})?function(t){return Da(t)=="String"?W1t(t,""):u4(t)}:u4,G1t=Math.ceil,q1t=Math.floor,sx=function(t){var e=+t;return e!=e||e===0?0:(e>0?q1t:G1t)(e)},K1t=Math.min,zz=function(t){return t>0?K1t(sx(t),9007199254740991):0},lx=function(t){return zz(t.length)},H_=Array.isArray||function(t){return Da(t)=="Array"},$z=function(){},Y1t=[],Hz=yh("Reflect","construct"),cx=/^\s*(?:class|function)\b/,X1t=te(cx.exec),Z1t=!cx.exec($z),Gf=function(t){if(!Nn(t))return!1;try{return Hz($z,Y1t,t),!0}catch(e){return!1}},Vz=!Hz||ln(function(){var t;return Gf(Gf.call)||!Gf(Object)||!Gf(function(){t=!0})||t})?function(t){if(!Nn(t))return!1;switch(ax(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Z1t||!!X1t(cx,ox(t))}:Gf,J1t=Ha("species"),V_=It.Array,Q1t=function(t,e){return new(function(n){var r;return H_(n)&&(r=n.constructor,(Vz(r)&&(r===V_||H_(r.prototype))||Co(r)&&(r=r[J1t])===null)&&(r=void 0)),r===void 0?V_:r}(t))(e===0?0:e)},U_=te([].push),Vi=function(t){var e=t==1,n=t==2,r=t==3,o=t==4,i=t==6,a=t==7,u=t==5||i;return function(s,l,c,f){for(var d,p,v=JC(s),y=ux(v),g=function(D,x){return Nz(D),x===void 0?D:$_?$_(D,x):function(){return D.apply(x,arguments)}}(l,c),m=lx(y),h=0,b=f||Q1t,w=e?b(s,m):n||a?b(s,0):void 0;m>h;h++)if((u||h in y)&&(p=g(d=y[h],h,v),t))if(e)w[h]=p;else if(p)switch(t){case 3:return!0;case 5:return d;case 6:return h;case 2:U_(w,d)}else switch(t){case 4:return!1;case 7:U_(w,d)}return i?-1:r||o?o:w}},tyt=[Vi(0),Vi(1),Vi(2),Vi(3),Vi(4),Vi(5),Vi(6),Vi(7)][0],s4=(R_=[].forEach)&&ln(function(){R_.call(null,function(){throw 1},1)})?[].forEach:function(t){return tyt(this,t,arguments.length>1?arguments[1]:void 0)},Uz=function(t){if(t&&t.forEach!==s4)try{nc(t,"forEach",s4)}catch(e){t.forEach=s4}};for(var l4 in M_)M_[l4]&&Uz(It[l4]&&It[l4].prototype);Uz(U1t);var W_={}.propertyIsEnumerable,G_=Object.getOwnPropertyDescriptor,Wz={f:G_&&!W_.call({1:2},1)?function(t){var e=G_(this,t);return!!e&&e.enumerable}:W_},jy=function(t){return ux(ec(t))},q_=Object.getOwnPropertyDescriptor,Gz={f:Po?q_:function(t,e){if(t=jy(t),e=nx(e),_z)try{return q_(t,e)}catch(n){}if(Ar(t,e))return rx(!un(Wz.f,t,e),t[e])}},eyt=Math.max,nyt=Math.min,X3=function(t,e){var n=sx(t);return n<0?eyt(n+e,0):nyt(n,e)},ryt=function(t){return function(e,n,r){var o,i=jy(e),a=lx(i),u=X3(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},oyt=ryt(!1),K_=te([].push),qz=function(t,e){var n,r=jy(t),o=0,i=[];for(n in r)!Ar(ix,n)&&Ar(r,n)&&K_(i,n);for(;e.length>o;)Ar(r,n=e[o++])&&(~oyt(i,n)||K_(i,n));return i},A1=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],iyt=A1.concat("length","prototype"),ayt={f:Object.getOwnPropertyNames||function(t){return qz(t,iyt)}},Kz={f:Object.getOwnPropertySymbols},uyt=te([].concat),syt=yh("Reflect","ownKeys")||function(t){var e=ayt.f(Qr(t)),n=Kz.f;return n?uyt(e,n(t)):e},lyt=function(t,e){for(var n=syt(e),r=Py.f,o=Gz.f,i=0;i<n.length;i++){var a=n[i];Ar(t,a)||r(t,a,o(e,a))}},cyt=/#|\.prototype\./,mh=function(t,e){var n=dyt[fyt(t)];return n==hyt||n!=pyt&&(Nn(e)?ln(e):!!e)},fyt=mh.normalize=function(t){return String(t).replace(cyt,".").toLowerCase()},dyt=mh.data={},pyt=mh.NATIVE="N",hyt=mh.POLYFILL="P",gyt=mh,vyt=Gz.f,Ny=function(t,e){var n,r,o,i,a,u=t.target,s=t.global,l=t.stat;if(n=s?It:l?It[u]||XC(u,{}):(It[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=vyt(n,r))&&a.value:n[r],!gyt(s?r:u+(l?".":"#")+r,t.forced)&&o!==void 0){if(typeof i==typeof o)continue;lyt(i,o)}(t.sham||o&&o.sham)&&nc(i,"sham",!0),Op(n,r,i,t)}},dg=Object.keys||function(t){return qz(t,A1)},tl=Object.assign,Y_=Object.defineProperty,yyt=te([].concat),X_=!tl||ln(function(){if(Po&&tl({b:1},tl(Y_({},"a",{enumerable:!0,get:function(){Y_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(o){e[o]=o}),tl({},t)[n]!=7||dg(tl({},e)).join("")!=r})?function(t,e){for(var n=JC(t),r=arguments.length,o=1,i=Kz.f,a=Wz.f;r>o;)for(var u,s=ux(arguments[o++]),l=i?yyt(dg(s),i(s)):dg(s),c=l.length,f=0;c>f;)u=l[f++],Po&&!un(a,s,u)||(n[u]=s[u]);return n}:tl;Ny({target:"Object",stat:!0,forced:Object.assign!==X_},{assign:X_});var Z_=YC(function(t){var e=function(n){var r=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function g(m){return m instanceof u?new u(m.type,g(m.content),m.alias):Array.isArray(m)?m.map(g):m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(m,h){var b,w;switch(h=h||{},a.util.type(m)){case"Object":if(w=a.util.objId(m),h[w])return h[w];for(var D in b={},h[w]=b,m)m.hasOwnProperty(D)&&(b[D]=g(m[D],h));return b;case"Array":return w=a.util.objId(m),h[w]?h[w]:(b=[],h[w]=b,m.forEach(function(x,C){b[C]=g(x,h)}),b);default:return m}},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=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var m=document.getElementsByTagName("script");for(var h in m)if(m[h].src==g)return m[h]}return null}},isActive:function(g,m,h){for(var b="no-"+m;g;){var w=g.classList;if(w.contains(m))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,m){var h=a.util.clone(a.languages[g]);for(var b in m)h[b]=m[b];return h},insertBefore:function(g,m,h,b){var w=(b=b||a.languages)[g],D={};for(var x in w)if(w.hasOwnProperty(x)){if(x==m)for(var C in h)h.hasOwnProperty(C)&&(D[C]=h[C]);h.hasOwnProperty(x)||(D[x]=w[x])}var O=b[g];return b[g]=D,a.languages.DFS(a.languages,function(T,R){R===O&&T!=g&&(this[T]=D)}),D},DFS:function g(m,h,b,w){w=w||{};var D=a.util.objId;for(var x in m)if(m.hasOwnProperty(x)){h.call(m,x,m[x],b||x);var C=m[x],O=a.util.type(C);O!=="Object"||w[D(C)]?O!=="Array"||w[D(C)]||(w[D(C)]=!0,g(C,h,x,w)):(w[D(C)]=!0,g(C,h,null,w))}}},plugins:{},highlightAll:function(g,m){a.highlightAllUnder(document,g,m)},highlightAllUnder:function(g,m,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,D=0;w=b.elements[D++];)a.highlightElement(w,m===!0,b.callback)},highlightElement:function(g,m,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(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 x={element:g,language:b,grammar:w,code:g.textContent};function C(T){x.highlightedCode=T,a.hooks.run("before-insert",x),x.element.innerHTML=x.highlightedCode,a.hooks.run("after-highlight",x),a.hooks.run("complete",x),h&&h.call(x.element)}if(a.hooks.run("before-sanity-check",x),(D=x.element.parentElement)&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!x.code)return a.hooks.run("complete",x),void(h&&h.call(x.element));if(a.hooks.run("before-highlight",x),x.grammar)if(m&&n.Worker){var O=new Worker(a.filename);O.onmessage=function(T){C(T.data)},O.postMessage(JSON.stringify({language:x.language,code:x.code,immediateClose:!0}))}else C(a.highlight(x.code,x.grammar,x.language));else C(a.util.encode(x.code))},highlight:function(g,m,h){var b={code:g,grammar:m,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,m){var h=m.rest;if(h){for(var b in h)m[b]=h[b];delete m.rest}var w=new c;return f(w,w.head,g),l(g,w,m,w.head,0),function(D){for(var x=[],C=D.head.next;C!==D.tail;)x.push(C.value),C=C.next;return x}(w)},hooks:{all:{},add:function(g,m){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(m)},run:function(g,m){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(m)}},Token:u};function u(g,m,h,b){this.type=g,this.content=m,this.alias=h,this.length=0|(b||"").length}function s(g,m,h,b){g.lastIndex=m;var w=g.exec(h);if(w&&b&&w[1]){var D=w[1].length;w.index+=D,w[0]=w[0].slice(D)}return w}function l(g,m,h,b,w,D){for(var x in h)if(h.hasOwnProperty(x)&&h[x]){var C=h[x];C=Array.isArray(C)?C:[C];for(var O=0;O<C.length;++O){if(D&&D.cause==x+","+O)return;var T=C[O],R=T.inside,H=!!T.lookbehind,M=!!T.greedy,K=T.alias;if(M&&!T.pattern.global){var U=T.pattern.toString().match(/[imsuy]*$/)[0];T.pattern=RegExp(T.pattern.source,U+"g")}for(var W=T.pattern||T,q=b.next,nt=w;q!==m.tail&&!(D&&nt>=D.reach);nt+=q.value.length,q=q.next){var lt=q.value;if(m.length>g.length)return;if(!(lt instanceof u)){var st,ut=1;if(M){if(!(st=s(W,nt,g,H)))break;var k=st.index,S=st.index+st[0].length,P=nt;for(P+=q.value.length;k>=P;)P+=(q=q.next).value.length;if(nt=P-=q.value.length,q.value instanceof u)continue;for(var $=q;$!==m.tail&&(P<S||typeof $.value=="string");$=$.next)ut++,P+=$.value.length;ut--,lt=g.slice(nt,P),st.index-=nt}else if(!(st=s(W,0,lt,H)))continue;k=st.index;var Y=st[0],V=lt.slice(0,k),at=lt.slice(k+Y.length),vt=nt+lt.length;D&&vt>D.reach&&(D.reach=vt);var yt=q.prev;if(V&&(yt=f(m,yt,V),nt+=V.length),d(m,yt,ut),q=f(m,yt,new u(x,R?a.tokenize(Y,R):Y,K,Y)),at&&f(m,q,at),ut>1){var Ct={cause:x+","+O,reach:vt};l(g,m,h,q.prev,nt,Ct),D&&Ct.reach>D.reach&&(D.reach=Ct.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},m={value:null,prev:g,next:null};g.next=m,this.head=g,this.tail=m,this.length=0}function f(g,m,h){var b=m.next,w={value:h,prev:m,next:b};return m.next=w,b.prev=w,g.length++,w}function d(g,m,h){for(var b=m.next,w=0;w<h&&b!==g.tail;w++)b=b.next;m.next=b,b.prev=m,g.length-=w}if(n.Prism=a,u.stringify=function g(m,h){if(typeof m=="string")return m;if(Array.isArray(m)){var b="";return m.forEach(function(O){b+=g(O,h)}),b}var w={type:m.type,content:g(m.content,h),tag:"span",classes:["token",m.type],attributes:{},language:h},D=m.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(w.classes,D):w.classes.push(D)),a.hooks.run("wrap",w);var x="";for(var C in w.attributes)x+=" "+C+'="'+(w.attributes[C]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+x+">"+w.content+"</"+w.tag+">"},!n.document)return n.addEventListener&&(a.disableWorkerMessageHandler||n.addEventListener("message",function(g){var m=JSON.parse(g.data),h=m.language,b=m.code,w=m.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 y=document.readyState;y==="loading"||y==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{});/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/t.exports&&(t.exports=e),C1!==void 0&&(C1.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var o={};o["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var a={};a[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(n,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(n){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var o=n.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(e!==void 0&&typeof document!="undefined"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;e.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),e.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(r,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=n[p]||p}u(c,d),u(l,d);var v=e.plugins.autoloader;v&&v.loadLanguages(d);var y=new XMLHttpRequest;y.open("GET",f,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?(l.setAttribute(r,"loaded"),c.textContent=y.responseText,e.highlightElement(c)):(l.setAttribute(r,"failed"),y.status>=400?c.textContent="✖ Error "+y.status+" while fetching file: "+y.statusText:c.textContent="✖ Error: File does not exist or is empty"))},y.send(null)}}),e.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)e.highlightElement(l)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}}()});(function(t){var e=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,t.languages.jsx=t.languages.extend("markup",e),t.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=e.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx},alias:"language-javascript"}},t.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new t.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};t.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter;var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(t){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];t.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:e,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&t.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),t.hooks.add("after-tokenize",function(s){t.languages["markup-templating"].tokenizePlaceholders(s,"php")})}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism),function(t){function e(S,P){return S.replace(/<<(\d+)>>/g,function($,Y){return"(?:"+P[+Y]+")"})}function n(S,P,$){return RegExp(e(S,P),"")}function r(S,P){for(var $=0;$<P;$++)S=S.replace(/<<self>>/g,function(){return"(?:"+S+")"});return S.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(S){return"\\b(?:"+S.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=r(/\((?:[^()]|<<self>>)*\)/.source,2),y=/@?\b[A-Za-z_]\w*\b/.source,g=e(/<<0>>(?:\s*<<1>>)?/.source,[y,p]),m=e(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=e(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,h]),w=e(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),D=e(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=e(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[D,m,h]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,R=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[R]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[y,x]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[y]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[y]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,y]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[y]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[y]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,m]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[y,p]),inside:{function:n(/^<<0>>/.source,[y]),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,y,x,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:t.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var H=T+"|"+O,M=e(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[H]),K=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),U=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,W=e(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,K]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[U,W]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[U]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[K]),inside:t.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var q=/:[^}\r\n]+/.source,nt=r(e(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),lt=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[nt,q]),st=r(e(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[H]),2),ut=e(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[st,q]);function k(S,P){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[S]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[P,q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[lt]),lookbehind:!0,greedy:!0,inside:k(lt,nt)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[ut]),lookbehind:!0,greedy:!0,inside:k(ut,st)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:[']|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){t.languages.ruby=t.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var e={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:t.languages.ruby}};delete t.languages.ruby.function,t.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:e}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:e}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:t.languages.ruby}}}),t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),t.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:e}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:e}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:e}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],t.languages.rb=t.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=t.languages.bash[o[a]];t.languages.shell=t.languages.bash}(Prism),function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(l){return l=l.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(t.languages.markdown[l].inside.content.inside[c]=t.languages.markdown[c])})}),t.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var y=v.content[1],g=v.content[3];if(y&&g&&y.type==="code-language"&&g.type==="code-block"&&typeof y.content=="string"){var m=y.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(m=(/[a-z][\w-]*/i.exec(m)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}}(l.tokens)}),t.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var y=t.languages[c];if(y)l.content=t.highlight(function(m){var h=m.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var D;return(w=w.toLowerCase())[0]==="#"?(D=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(D)):u[w]||b})}(l.content),y,c);else if(c&&c!=="none"&&t.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,t.plugins.autoloader.loadLanguages(c,function(){var m=document.getElementById(g);m&&(m.innerHTML=t.highlight(m.textContent,t.languages[c],c))})}}});var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(t){if(t.language==="groovy"&&t.type==="string"){var e=t.content[0];if(e!="'"){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;e==="$"&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content=t.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),t.content=Prism.highlight(t.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),t.classes.push(e==="/"?"regex":"gstring")}}});var myt=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Yz(t){return typeof t=="string"?t.length:typeof t.content=="string"?t.content.length:t.content.reduce(function(e,n){return e+Yz(n)},0)}var P0,byt=It.String,oi=function(t){if(ax(t)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return byt(t)},Xz=function(){var t=Qr(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},fx=It.RegExp,Z3=ln(function(){var t=fx("a","y");return t.lastIndex=2,t.exec("abcd")!=null}),wyt=Z3||ln(function(){return!fx("a","y").sticky}),Zz={BROKEN_CARET:Z3||ln(function(){var t=fx("^r","gy");return t.lastIndex=2,t.exec("str")!=null}),MISSED_STICKY:wyt,UNSUPPORTED_Y:Z3},Eyt=Po?Object.defineProperties:function(t,e){Qr(t);for(var n,r=jy(e),o=dg(e),i=o.length,a=0;i>a;)Py.f(t,n=o[a++],r[n]);return t},Dyt=yh("document","documentElement"),Jz=Lz("IE_PROTO"),c4=function(){},Qz=function(t){return"<script>"+t+"<\/script>"},J_=function(t){t.write(Qz("")),t.close();var e=t.parentWindow.Object;return t=null,e},pg=function(){try{P0=new ActiveXObject("htmlfile")}catch(r){}var t,e;pg=typeof document!="undefined"?document.domain&&P0?J_(P0):((e=ex("iframe")).style.display="none",Dyt.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(Qz("document.F=Object")),t.close(),t.F):J_(P0);for(var n=A1.length;n--;)delete pg.prototype[A1[n]];return pg()};ix[Jz]=!0;var Q_,f4,Cyt=Object.create||function(t,e){var n;return t!==null?(c4.prototype=Qr(t),n=new c4,c4.prototype=null,n[Jz]=t):n=pg(),e===void 0?n:Eyt(n,e)},xyt=It.RegExp,Syt=ln(function(){var t=xyt(".","s");return!(t.dotAll&&t.exec(`
`)&&t.flags==="s")}),Ayt=It.RegExp,Oyt=ln(function(){var t=Ayt("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"}),kyt=Y3.get,Byt=ZC("native-string-replace",String.prototype.replace),O1=RegExp.prototype.exec,J3=O1,Fyt=te("".charAt),Tyt=te("".indexOf),_yt=te("".replace),d4=te("".slice),p4=(f4=/b*/g,un(O1,Q_=/a/,"a"),un(O1,f4,"a"),Q_.lastIndex!==0||f4.lastIndex!==0),tP=Zz.BROKEN_CARET,h4=/()??/.exec("")[1]!==void 0;(p4||h4||tP||Syt||Oyt)&&(J3=function(t){var e,n,r,o,i,a,u,s=this,l=kyt(s),c=oi(t),f=l.raw;if(f)return f.lastIndex=s.lastIndex,e=un(J3,f,c),s.lastIndex=f.lastIndex,e;var d=l.groups,p=tP&&s.sticky,v=un(Xz,s),y=s.source,g=0,m=c;if(p&&(v=_yt(v,"y",""),Tyt(v,"g")===-1&&(v+="g"),m=d4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Fyt(c,s.lastIndex-1)!==`
`)&&(y="(?: "+y+")",m=" "+m,g++),n=new RegExp("^(?:"+y+")",v)),h4&&(n=new RegExp("^"+y+"$(?!\\s)",v)),p4&&(r=s.lastIndex),o=un(O1,p?n:s,m),p?o?(o.input=d4(o.input,g),o[0]=d4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:p4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),h4&&o&&o.length>1&&un(Byt,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=Cyt(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var kp=J3;Ny({target:"RegExp",proto:!0,forced:/./.exec!==kp},{exec:kp});var dx=Function.prototype,eP=dx.apply,Pyt=dx.bind,nP=dx.call,jyt=typeof Reflect=="object"&&Reflect.apply||(Pyt?nP.bind(eP):function(){return nP.apply(eP,arguments)}),Nyt=Ha("species"),g4=RegExp.prototype,Iyt=Ha("match"),Lyt=It.TypeError,Ryt=Ha("species"),Myt=te("".charAt),rP=te("".charCodeAt),zyt=te("".slice),$yt=function(t){return function(e,n){var r,o,i=oi(ec(e)),a=sx(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=rP(i,a))<55296||r>56319||a+1===u||(o=rP(i,a+1))<56320||o>57343?t?Myt(i,a):r:t?zyt(i,a,a+2):o-56320+(r-55296<<10)+65536}},Hyt=$yt(!0),Vyt=function(t,e,n){return e+(n?Hyt(t,e).length:1)},Uyt=It.Array,Wyt=Math.max,oP=function(t,e,n){for(var r,o,i,a,u=lx(t),s=X3(e,u),l=X3(n===void 0?u:n,u),c=Uyt(Wyt(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=t[s],(a=nx(o))in r?Py.f(r,a,rx(0,i)):r[a]=i;return c.length=f,c},Gyt=It.TypeError,iP=function(t,e){var n=t.exec;if(Nn(n)){var r=un(n,t,e);return r!==null&&Qr(r),r}if(Da(t)==="RegExp")return un(kp,t,e);throw Gyt("RegExp#exec called on incompatible receiver")},el=Zz.UNSUPPORTED_Y,qyt=Math.min,t$=[].push,Kyt=te(/./.exec),nl=te(t$),qf=te("".slice);(function(t,e,n,r){var o=Ha(t),i=!ln(function(){var l={};return l[o]=function(){return 7},""[t](l)!=7}),a=i&&!ln(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[Nyt]=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 y,g,m=oi(ec(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[m];if(!Co(y=p)||!((g=y[Iyt])!==void 0?g:Da(y)=="RegExp"))return un(c,m,p,h);for(var b,w,D,x=[],C=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),O=0,T=new RegExp(p.source,C+"g");(b=un(kp,T,m))&&!((w=T.lastIndex)>O&&(nl(x,qf(m,O,b.index)),b.length>1&&b.index<m.length&&jyt(t$,x,oP(b,1)),D=b[0].length,O=w,x.length>=h));)T.lastIndex===b.index&&T.lastIndex++;return O===m.length?!D&&Kyt(T,"")||nl(x,""):nl(x,qf(m,O)),x.length>h?oP(x,0,h):x}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:un(c,this,p,v)}:c,[function(p,v){var y=ec(this),g=p==null?void 0:Iz(p,l);return g?un(g,p,y,v):un(d,oi(y),p,v)},function(p,v){var y=Qr(this),g=oi(p),m=f(d,y,g,v,d!==c);if(m.done)return m.value;var h=function(K,U){var W,q=Qr(K).constructor;return q===void 0||(W=Qr(q)[Ryt])==null?U:function(nt){if(Vz(nt))return nt;throw Lyt(jz(nt)+" is not a constructor")}(W)}(y,RegExp),b=y.unicode,w=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(el?"g":"y"),D=new h(el?"^(?:"+y.source+")":y,w),x=v===void 0?4294967295:v>>>0;if(x===0)return[];if(g.length===0)return iP(D,g)===null?[g]:[];for(var C=0,O=0,T=[];O<g.length;){D.lastIndex=el?0:O;var R,H=iP(D,el?qf(g,O):g);if(H===null||(R=qyt(zz(D.lastIndex+(el?O:0)),g.length))===C)O=Vyt(g,O,b);else{if(nl(T,qf(g,C,O)),T.length===x)return T;for(var M=1;M<=H.length-1;M++)if(nl(T,H[M]),T.length===x)return T;O=C=R}}return nl(T,qf(g,C)),T}]}(o,""[t],function(l,c,f,d,p){var v=te(l),y=c.exec;return y===kp||y===g4.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}});Op(String.prototype,t,s[0]),Op(g4,o,s[1])}r&&nc(g4[o],"sham",!0)})("split",0,!!ln(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length!==2||n[0]!=="a"||n[1]!=="b"}),el),Ny({global:!0},{globalThis:It}),Or&&(B.fn.attr=Or);var Yyt=Mz.PROPER,Q3=RegExp.prototype,e$=Q3.toString,Xyt=te(Xz),Zyt=ln(function(){return e$.call({source:"a",flags:"b"})!="/a/b"}),Jyt=Yyt&&e$.name!="toString";(Zyt||Jyt)&&Op(RegExp.prototype,"toString",function(){var t=Qr(this),e=oi(t.source),n=t.flags;return"/"+e+"/"+oi(n===void 0&&Pz(Q3,t)&&!("flags"in Q3)?Xyt(t):n)},{unsafe:!0});var Qyt=function(){function t(){this.title=tt("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return t.prototype.getOptions=function(e){var n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=r===void 0?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;n.push({text:u,value:s})});var i=this.getValue(e);return n.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),n},t.prototype.isActive=function(e){return!1},t.prototype.getValue=function(e){var n=this.getSelectCodeElem(e);if(n==null||!ft.isElement(n))return"";var r=n.language.toString(),o=e.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===r})?r:""},t.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},t.prototype.exec=function(e,n){if(this.getSelectCodeElem(e)!=null){var r={language:n.toString()};N.setNodes(e,r,{match:function(o){return A.checkNodeType(o,"code")}})}},t.prototype.getSelectCodeElem=function(e){var n=A.getSelectedNodeByType(e,"code");if(n==null)return null;var r=A.getParentNode(e,n);return ft.isElement(r)?r.type!=="pre"?null:n:null},t}(),tmt={renderStyle:function(t,e){var n=t,r=e,o="";return myt.forEach(function(i){n[i]&&(o=i)}),o&&function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})}(r,o="token "+o),r},parseStyleHtml:function(t,e,n){var r=B(t);if(!ft.isElement(e)||A.getNodeType(e)!=="code")return e;var o=e,i=r.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Qyt},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(t,e){var n=t.language,r=n===void 0?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+e+"</code>"}}]},emt=/"/g,nmt=te("".replace);Ny({target:"String",proto:!0,forced:ln(function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3})},{anchor:function(t){return e=t,n=oi(ec(this)),r="<a",(r+=' name="'+nmt(oi(e),emt,"&quot;")+'"')+">"+n+"</a>";var e,n,r}});var n$=function(t){var e,n,r,o=function(m,h){var b=typeof Symbol=="function"&&m[Symbol.iterator];if(!b)return m;var w,D,x=b.call(m),C=[];try{for(;(h===void 0||h-- >0)&&!(w=x.next()).done;)C.push(w.value)}catch(O){D={error:O}}finally{try{w&&!w.done&&(b=x.return)&&b.call(x)}finally{if(D)throw D.error}}return C}(t,2),i=o[0],a=o[1],u=[],s=function(m){if(!it.isText(m))return null;var h=A.getParentNode(null,m);if(h&&A.getNodeType(h)==="code"){var b=A.getParentNode(null,h);if(b&&A.getNodeType(b)==="pre")return h}return null}(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=function(m,h){if(!h)return[];var b=Z_.languages[h];return b?Z_.tokenize(m.text,b):[]}(i,c),d=0;try{for(var p=function(m){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&m[h],w=0;if(b)return b.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&w>=m.length&&(m=void 0),{value:m&&m[w++],done:!m}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),v=p.next();!v.done;v=p.next()){var y=v.value,g=d+Yz(y);typeof y!="string"&&u.push(((r={})[y.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(m){e={error:m}}finally{try{v&&!v.done&&(n=p.return)&&n.call(p)}finally{if(e)throw e.error}}return u},Oe=function(){return Oe=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Oe.apply(this,arguments)},on=function(){function t(){throw new Error(`不能实例化
Can not construct a instance`)}return t.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Oe(Oe({},this.editorConfig),e)},t.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Oe(Oe({},this.simpleEditorConfig),e)},t.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Oe(Oe({},this.toolbarConfig),e)},t.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Oe(Oe({},this.simpleToolbarConfig),e)},t.registerPlugin=function(e){this.plugins.push(e)},t.registerMenu=function(e,n){(function(r,o){var i=r.key,a=r.factory,u=r.config,s=wr(wr({},u),o||{});if(Xd[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Xd[i]=a,function(l,c){c!=null&&(ON[l]=c)}(i,s)})(e,n)},t.registerRenderElem=function(e){(function(n){var r=n.type,o=n.renderElem;JN[r||""]=o})(e)},t.registerRenderStyle=function(e){(function(n){qE.push(n)})(e)},t.registerElemToHtml=function(e){(function(n){var r=n.type,o=n.elemToHtml;kN[r||""]=o})(e)},t.registerStyleToHtml=function(e){(function(n){zE.push(n)})(e)},t.registerPreParseHtml=function(e){(function(n){GN.push(n)})(e)},t.registerParseElemHtml=function(e){(function(n){var r=n.selector,o=n.parseElemHtml;cv[r]=o})(e)},t.registerParseStyleHtml=function(e){(function(n){xD.push(n)})(e)},t.registerModule=function(e){fu(e)},t.editorConfig={},t.simpleEditorConfig={},t.toolbarConfig={},t.simpleToolbarConfig={},t.plugins=[],t}();/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function fu(t){var e=t.menus,n=t.renderElems,r=t.renderStyle,o=t.elemsToHtml,i=t.styleToHtml,a=t.preParseHtml,u=t.parseElemsHtml,s=t.parseStyleHtml,l=t.editorPlugin;e&&e.forEach(function(c){return on.registerMenu(c)}),n&&n.forEach(function(c){return on.registerRenderElem(c)}),r&&on.registerRenderStyle(r),o&&o.forEach(function(c){return on.registerElemToHtml(c)}),i&&on.registerStyleToHtml(i),a&&a.forEach(function(c){return on.registerPreParseHtml(c)}),u&&u.forEach(function(c){return on.registerParseElemHtml(c)}),s&&on.registerParseStyleHtml(s),l&&on.registerPlugin(l)}sut.forEach(function(t){return fu(t)}),fu(Mlt),fu(fdt),fu(w0t),fu(f1t),fu(tmt);var r$='<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>',o$={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"]}},rmt={hoverbarKeys:Oe(Oe({},o$),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};on.setEditorConfig(Oe(Oe({},rmt),{decorate:n$}));var omt={hoverbarKeys:o$};on.setSimpleEditorConfig(Oe(Oe({},omt),{decorate:n$}));var imt={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:tt("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:tt("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:tt("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:r$,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:tt("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};on.setToolbarConfig(imt);var amt={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:tt("editor.image"),iconSvg:r$,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function umt(t){t===void 0&&(t={});var e=t.selector,n=e===void 0?"":e,r=t.content,o=r===void 0?[]:r,i=t.html,a=t.config,u=a===void 0?{}:a,s=t.mode,l=(s===void 0?"default":s)==="simple"?on.simpleEditorConfig:on.editorConfig,c=Oe(Oe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return ftt({selector:n,config:Oe(Oe(Oe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:on.plugins})}function smt(t){var e=t.selector,n=t.editor,r=t.config,o=r===void 0?{}:r,i=t.mode,a=i===void 0?"default":i;if(!e)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?on.simpleToolbarConfig:on.toolbarConfig,s=function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if(function(g,m){return YN(g,"data-w-e-toolbar",m)}(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=wr({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),y=new vtt(f,v);return gD.set(y,l),Z1.set(l,y),y}(n,{selector:e,config:Oe(Oe({},u),o)});return s}on.setSimpleToolbarConfig(amt);var lmt=Object.defineProperty,cmt=Object.defineProperties,fmt=Object.getOwnPropertyDescriptors,aP=Object.getOwnPropertySymbols,dmt=Object.prototype.hasOwnProperty,pmt=Object.prototype.propertyIsEnumerable,uP=(t,e,n)=>e in t?lmt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,hmt=(t,e)=>{for(var n in e||(e={}))dmt.call(e,n)&&uP(t,n,e[n]);if(aP)for(var n of aP(e))pmt.call(e,n)&&uP(t,n,e[n]);return t},gmt=(t,e)=>cmt(t,fmt(e));function Ui(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`
Please use '@${t}' event instead of props`,e}var i$=(t,e)=>{for(const[n,r]of e)t[n]=r;return t};const vmt=sP({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const n=v4(null),r=p$(null),o=v4(""),i=()=>{if(!n.value)return;const u=y$(t.defaultContent);umt({selector:n.value,mode:t.mode,content:u||[],html:t.defaultHtml||t.modelValue||"",config:gmt(hmt({},t.defaultConfig),{onCreated(s){if(r.value=s,e.emit("onCreated",s),t.defaultConfig.onCreated){const l=Ui("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,e.emit("update:modelValue",l),e.emit("onChange",s),t.defaultConfig.onChange){const c=Ui("onChange");throw new Error(c)}},onDestroyed(s){if(e.emit("onDestroyed",s),t.defaultConfig.onDestroyed){const l=Ui("onDestroyed");throw new Error(l)}},onMaxLength(s){if(e.emit("onMaxLength",s),t.defaultConfig.onMaxLength){const l=Ui("onMaxLength");throw new Error(l)}},onFocus(s){if(e.emit("onFocus",s),t.defaultConfig.onFocus){const l=Ui("onFocus");throw new Error(l)}},onBlur(s){if(e.emit("onBlur",s),t.defaultConfig.onBlur){const l=Ui("onBlur");throw new Error(l)}},customAlert(s,l){if(e.emit("customAlert",s,l),t.defaultConfig.customAlert){const c=Ui("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(t.defaultConfig.customPaste){const f=Ui("customPaste");throw new Error(f)}let c;return e.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=r.value;s!=null&&s.setHtml(u)}return h$(()=>{i()}),g$(()=>t.modelValue,u=>{u!==o.value&&a(u)}),{box:n}}}),ymt={ref:"box",style:{height:"100%"}};function mmt(t,e,n,r,o,i){return lP(),cP("div",ymt,null,512)}var xmt=i$(vmt,[["render",mmt]]);const bmt=sP({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=v4(null),n=r=>{if(e.value){if(r==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");A.getToolbar(r)||smt({editor:r,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}};return v$(()=>{const{editor:r}=t;r!=null&&n(r)}),{selector:e}}}),wmt={ref:"selector"};function Emt(t,e,n,r,o,i){return lP(),cP("div",wmt,null,512)}var Smt=i$(bmt,[["render",Emt]]);export{xmt as E,Smt as T};