UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

77 lines 798 kB
var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,i,a=function(e){return e&&e.Math==Math&&e},o=a(typeof globalThis==`object`&&globalThis)||a(typeof window==`object`&&window)||a(typeof self==`object`&&self)||a(typeof e==`object`&&e)||function(){return this}()||Function(`return this`)(),s=Function.prototype,c=s.apply,l=s.bind,u=s.call,d=typeof Reflect==`object`&&Reflect.apply||(l?u.bind(c):function(){return u.apply(c,arguments)}),f=Function.prototype,p=f.bind,m=f.call,h=p&&p.bind(m),g=p?function(e){return e&&h(m,e)}:function(e){return e&&function(){return m.apply(e,arguments)}},_=function(e){return typeof e==`function`},v=function(e){try{return!!e()}catch{return!0}},y=!v((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),b=Function.prototype.call,x=b.bind?b.bind(b):function(){return b.apply(b,arguments)},S={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,w={f:C&&!S.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:S},T=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ee=g({}.toString),E=g(``.slice),D=function(e){return E(ee(e),8,-1)},te=o.Object,ne=g(``.split),re=v((function(){return!te(`z`).propertyIsEnumerable(0)}))?function(e){return D(e)==`String`?ne(e,``):te(e)}:te,ie=o.TypeError,O=function(e){if(e==null)throw ie(`Can't call method on `+e);return e},ae=function(e){return re(O(e))},k=function(e){return typeof e==`object`?e!==null:_(e)},oe={},se=function(e){return _(e)?e:void 0},ce=function(e,t){return arguments.length<2?se(oe[e])||se(o[e]):oe[e]&&oe[e][t]||o[e]&&o[e][t]},le=g({}.isPrototypeOf),ue=ce(`navigator`,`userAgent`)||``,de=o.process,fe=o.Deno,pe=de&&de.versions||fe&&fe.version,me=pe&&pe.v8;me&&(i=(r=me.split(`.`))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&ue&&(!(r=ue.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=ue.match(/Chrome\/(\d+)/))&&(i=+r[1]);var he,ge=i,_e=!!Object.getOwnPropertySymbols&&!v((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ge&&ge<41})),ve=_e&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,ye=o.Object,be=ve?function(e){return typeof e==`symbol`}:function(e){var t=ce(`Symbol`);return _(t)&&le(t.prototype,ye(e))},xe=o.String,Se=function(e){try{return xe(e)}catch{return`Object`}},Ce=o.TypeError,we=function(e){if(_(e))return e;throw Ce(Se(e)+` is not a function`)},Te=function(e,t){var n=e[t];return n==null?void 0:we(n)},Ee=o.TypeError,De=Object.defineProperty,Oe=o[`__core-js_shared__`]||function(e,t){try{De(o,e,{value:t,configurable:!0,writable:!0})}catch{o[e]=t}return t}(`__core-js_shared__`,{}),ke=n((function(e){(e.exports=function(e,t){return Oe[e]||(Oe[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ae=o.Object,je=function(e){return Ae(O(e))},Me=g({}.hasOwnProperty),A=Object.hasOwn||function(e,t){return Me(je(e),t)},Ne=0,Pe=Math.random(),Fe=g(1 .toString),Ie=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Fe(++Ne+Pe,36)},Le=ke(`wks`),Re=o.Symbol,ze=Re&&Re.for,Be=ve?Re:Re&&Re.withoutSetter||Ie,Ve=function(e){if(!A(Le,e)||!_e&&typeof Le[e]!=`string`){var t=`Symbol.`+e;_e&&A(Re,e)?Le[e]=Re[e]:Le[e]=ve&&ze?ze(t):Be(t)}return Le[e]},He=o.TypeError,Ue=Ve(`toPrimitive`),We=function(e,t){if(!k(e)||be(e))return e;var n,r=Te(e,Ue);if(r){if(t===void 0&&(t=`default`),n=x(r,e,t),!k(n)||be(n))return n;throw He(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&_(n=e.toString)&&!k(r=x(n,e))||_(n=e.valueOf)&&!k(r=x(n,e))||t!==`string`&&_(n=e.toString)&&!k(r=x(n,e)))return r;throw Ee(`Can't convert object to primitive value`)}(e,t)},Ge=function(e){var t=We(e,`string`);return be(t)?t:t+``},Ke=o.document,qe=k(Ke)&&k(Ke.createElement),Je=function(e){return qe?Ke.createElement(e):{}},Ye=!y&&!v((function(){return Object.defineProperty(Je(`div`),`a`,{get:function(){return 7}}).a!=7})),Xe=Object.getOwnPropertyDescriptor,Ze={f:y?Xe:function(e,t){if(e=ae(e),t=Ge(t),Ye)try{return Xe(e,t)}catch{}if(A(e,t))return T(!x(w.f,e,t),e[t])}},Qe=/#|\.prototype\./,$e=function(e,t){var n=tt[et(e)];return n==rt||n!=nt&&(_(t)?v(t):!!t)},et=$e.normalize=function(e){return String(e).replace(Qe,`.`).toLowerCase()},tt=$e.data={},nt=$e.NATIVE=`N`,rt=$e.POLYFILL=`P`,it=$e,at=g(g.bind),ot=function(e,t){return we(e),t===void 0?e:at?at(e,t):function(){return e.apply(t,arguments)}},st=o.String,ct=o.TypeError,lt=function(e){if(k(e))return e;throw ct(st(e)+` is not an object`)},ut=o.TypeError,dt=Object.defineProperty,ft={f:y?dt:function(e,t,n){if(lt(e),t=Ge(t),lt(n),Ye)try{return dt(e,t,n)}catch{}if(`get`in n||`set`in n)throw ut(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},pt=y?function(e,t,n){return ft.f(e,t,T(1,n))}:function(e,t,n){return e[t]=n,e},mt=Ze.f,ht=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return d(e,this,arguments)};return t.prototype=e.prototype,t},gt=function(e,t){var n,r,i,a,s,c,l,u,d=e.target,f=e.global,p=e.stat,m=e.proto,h=f?o:p?o[d]:(o[d]||{}).prototype,v=f?oe:oe[d]||pt(oe,d,{})[d],y=v.prototype;for(i in t)n=!it(f?i:d+(p?`.`:`#`)+i,e.forced)&&h&&A(h,i),s=v[i],n&&(c=e.noTargetGet?(u=mt(h,i))&&u.value:h[i]),a=n&&c?c:t[i],n&&typeof s==typeof a||(l=e.bind&&n?ot(a,o):e.wrap&&n?ht(a):m&&_(a)?g(a):a,(e.sham||a&&a.sham||s&&s.sham)&&pt(l,`sham`,!0),pt(v,i,l),m&&(A(oe,r=d+`Prototype`)||pt(oe,r,{}),pt(oe[r],i,a),e.real&&y&&!y[i]&&pt(y,i,a)))},_t=ke(`keys`),vt=function(e){return _t[e]||(_t[e]=Ie(e))},yt=!v((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),bt=vt(`IE_PROTO`),xt=o.Object,St=xt.prototype,Ct=yt?xt.getPrototypeOf:function(e){var t=je(e);if(A(t,bt))return t[bt];var n=t.constructor;return _(n)&&t instanceof n?n.prototype:t instanceof xt?St:null},wt=o.String,eee=o.TypeError,Tt=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=g(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return lt(n),function(e){if(typeof e==`object`||_(e))return e;throw eee(`Can't set `+wt(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tee=Math.ceil,nee=Math.floor,Et=function(e){var t=+e;return t!=t||t===0?0:(t>0?nee:tee)(t)},Dt=Math.max,Ot=Math.min,kt=function(e,t){var n=Et(e);return n<0?Dt(n+t,0):Ot(n,t)},At=Math.min,jt=function(e){return(t=e.length)>0?At(Et(t),9007199254740991):0;var t},Mt=function(e){return function(t,n,r){var i,a=ae(t),o=jt(a),s=kt(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Nt={includes:Mt(!0),indexOf:Mt(!1)},Pt={},Ft=Nt.indexOf,It=g([].push),Lt=function(e,t){var n,r=ae(e),i=0,a=[];for(n in r)!A(Pt,n)&&A(r,n)&&It(a,n);for(;t.length>i;)A(r,n=t[i++])&&(~Ft(a,n)||It(a,n));return a},Rt=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ree=Rt.concat(`length`,`prototype`),zt={f:Object.getOwnPropertyNames||function(e){return Lt(e,ree)}},Bt={f:Object.getOwnPropertySymbols},iee=g([].concat),aee=ce(`Reflect`,`ownKeys`)||function(e){var t=zt.f(lt(e)),n=Bt.f;return n?iee(t,n(e)):t},Vt=Object.keys||function(e){return Lt(e,Rt)},oee=y?Object.defineProperties:function(e,t){lt(e);for(var n,r=ae(t),i=Vt(t),a=i.length,o=0;a>o;)ft.f(e,n=i[o++],r[n]);return e},Ht=ce(`document`,`documentElement`),Ut=vt(`IE_PROTO`),Wt=function(){},Gt=function(e){return`<script>`+e+`<\/script>`},Kt=function(e){e.write(Gt(``)),e.close();var t=e.parentWindow.Object;return e=null,t},qt=function(){try{he=new ActiveXObject(`htmlfile`)}catch{}var e,t;qt=typeof document<`u`?document.domain&&he?Kt(he):((t=Je(`iframe`)).style.display=`none`,Ht.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Gt(`document.F=Object`)),e.close(),e.F):Kt(he);for(var n=Rt.length;n--;)delete qt.prototype[Rt[n]];return qt()};Pt[Ut]=!0;var Jt=Object.create||function(e,t){var n;return e===null?n=qt():(Wt.prototype=lt(e),n=new Wt,Wt.prototype=null,n[Ut]=e),t===void 0?n:oee(n,t)},Yt=function(e,t,n){var r=Ge(t);r in e?ft.f(e,r,T(0,n)):e[r]=n},Xt=o.Array,Zt=Math.max,Qt=function(e,t,n){for(var r=jt(e),i=kt(t,r),a=kt(n===void 0?r:n,r),o=Xt(Zt(a-i,0)),s=0;i<a;i++,s++)Yt(o,s,e[i]);return o.length=s,o},$t=g(``.replace),en=g(``.split),tn=g([].join),nn=String(Error(`zxcasd`).stack),rn=/\n\s*at [^:]*:[^\n]*/,an=rn.test(nn),on=/@[^\n]*\n/.test(nn)&&!/zxcasd/.test(nn),sn=function(e,t){if(typeof e!=`string`)return e;if(an)for(;t--;)e=$t(e,rn,``);else if(on)return tn(Qt(en(e,`
`),t),`
`);return e},cn=function(e,t){k(t)&&`cause`in t&&pt(e,`cause`,t.cause)},ln={},un=Ve(`iterator`),dn=Array.prototype,fn={};fn[Ve(`toStringTag`)]=`z`;var pn=String(fn)===`[object z]`,mn=Ve(`toStringTag`),hn=o.Object,gn=D(function(){return arguments}())==`Arguments`,_n=pn?D:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=hn(e),mn))==`string`?n:gn?D(t):(r=D(t))==`Object`&&_(t.callee)?`Arguments`:r},vn=Ve(`iterator`),yn=function(e){if(e!=null)return Te(e,vn)||Te(e,`@@iterator`)||ln[_n(e)]},bn=o.TypeError,xn=function(e,t,n){var r,i;lt(e);try{if(!(r=Te(e,`return`))){if(t===`throw`)throw n;return n}r=x(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return lt(r),n},Sn=o.TypeError,Cn=function(e,t){this.stopped=e,this.result=t},wn=Cn.prototype,Tn=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=ot(t,u),h=function(e){return r&&xn(r,`normal`,e),new Cn(!0,e)},g=function(e){return d?(lt(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=yn(e)))throw Sn(Se(e)+` is not iterable`);if(function(e){return e!==void 0&&(ln.Array===e||dn[un]===e)}(i)){for(a=0,o=jt(e);o>a;a++)if((s=g(e[a]))&&le(wn,s))return s;return new Cn(!1)}r=function(e,t){var n=arguments.length<2?yn(e):t;if(we(n))return lt(x(n,e));throw bn(Se(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=x(c,r)).done;){try{s=g(l.value)}catch(e){xn(r,`throw`,e)}if(typeof s==`object`&&s&&le(wn,s))return s}return new Cn(!1)},En=o.String,Dn=function(e){if(_n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return En(e)},On=function(e,t){return e===void 0?arguments.length<2?``:t:Dn(e)},see=!v((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,T(1,7)),e.stack!==7)})),cee=Ve(`toStringTag`),kn=o.Error,lee=[].push,An=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=le(jn,this);Tt?n=Tt(new kn(void 0),i?Ct(this):jn):(n=i?this:Jt(jn),pt(n,cee,`Error`)),pt(n,`message`,On(t,``)),see&&pt(n,`stack`,sn(n.stack,1)),cn(n,r);var a=[];return Tn(e,lee,{that:a}),pt(n,`errors`,a),n};Tt?Tt(An,kn):function(e,t){for(var n=aee(t),r=ft.f,i=Ze.f,a=0;a<n.length;a++){var o=n[a];A(e,o)||r(e,o,i(t,o))}}(An,kn);var jn=An.prototype=Jt(kn.prototype,{constructor:T(1,An),message:T(1,``),name:T(1,`AggregateError`)});gt({global:!0},{AggregateError:An});var uee=g(Function.toString);_(Oe.inspectSource)||(Oe.inspectSource=function(e){return uee(e)});var Mn,Nn,Pn,Fn=Oe.inspectSource,In=o.WeakMap,dee=_(In)&&/native code/.test(Fn(In)),Ln=o.TypeError,fee=o.WeakMap;if(dee||Oe.state){var Rn=Oe.state||=new fee,pee=g(Rn.get),zn=g(Rn.has),mee=g(Rn.set);Mn=function(e,t){if(zn(Rn,e))throw new Ln(`Object already initialized`);return t.facade=e,mee(Rn,e,t),t},Nn=function(e){return pee(Rn,e)||{}},Pn=function(e){return zn(Rn,e)}}else{var Bn=vt(`state`);Pt[Bn]=!0,Mn=function(e,t){if(A(e,Bn))throw new Ln(`Object already initialized`);return t.facade=e,pt(e,Bn,t),t},Nn=function(e){return A(e,Bn)?e[Bn]:{}},Pn=function(e){return A(e,Bn)}}var Vn,Hn,Un,Wn={set:Mn,get:Nn,has:Pn,enforce:function(e){return Pn(e)?Nn(e):Mn(e,{})},getterFor:function(e){return function(t){var n;if(!k(t)||(n=Nn(t)).type!==e)throw Ln(`Incompatible receiver, `+e+` required`);return n}}},Gn=Function.prototype,hee=y&&Object.getOwnPropertyDescriptor,Kn=A(Gn,`name`),qn={EXISTS:Kn,PROPER:Kn&&function(){}.name===`something`,CONFIGURABLE:Kn&&(!y||y&&hee(Gn,`name`).configurable)},Jn=function(e,t,n,r){r&&r.enumerable?e[t]=n:pt(e,t,n)},Yn=Ve(`iterator`),Xn=!1;[].keys&&(`next`in(Un=[].keys())?(Hn=Ct(Ct(Un)))!==Object.prototype&&(Vn=Hn):Xn=!0),Vn=Vn==null||v((function(){var e={};return Vn[Yn].call(e)!==e}))?{}:Jt(Vn),_(Vn[Yn])||Jn(Vn,Yn,(function(){return this}));var Zn={IteratorPrototype:Vn,BUGGY_SAFARI_ITERATORS:Xn},Qn=pn?{}.toString:function(){return`[object `+_n(this)+`]`},$n=ft.f,er=Ve(`toStringTag`),tr=function(e,t,n,r){if(e){var i=n?e:e.prototype;A(i,er)||$n(i,er,{configurable:!0,value:t}),r&&!pn&&pt(i,`toString`,Qn)}},gee=Zn.IteratorPrototype,_ee=function(){return this},vee=qn.PROPER,nr=Zn.BUGGY_SAFARI_ITERATORS,rr=Ve(`iterator`),ir=function(){return this},ar=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Jt(gee,{next:T(+!r,n)}),tr(e,i,!1,!0),ln[i]=_ee})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!nr&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[rr]||p[`@@iterator`]||i&&p[i],h=!nr&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=Ct(g.call(new e)))!==Object.prototype&&s.next&&(tr(s,d,!0,!0),ln[d]=ir),vee&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return x(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(nr||f||!(l in p))&&Jn(p,l,c[l]);else gt({target:t,proto:!0,forced:nr||f},c);return o&&p[rr]!==h&&Jn(p,rr,h,{name:i}),ln[t]=h,c},or=Wn.set,yee=Wn.getterFor(`Array Iterator`);ar(Array,`Array`,(function(e,t){or(this,{type:`Array Iterator`,target:ae(e),index:0,kind:t})}),(function(){var e=yee(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),ln.Arguments=ln.Array;var bee=g(``.charAt),sr=g(``.charCodeAt),xee=g(``.slice),cr=function(e){return function(t,n){var r,i,a=Dn(O(t)),o=Et(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=sr(a,o))<55296||r>56319||o+1===s||(i=sr(a,o+1))<56320||i>57343?e?bee(a,o):r:e?xee(a,o,o+2):i-56320+(r-55296<<10)+65536}},See={codeAt:cr(!1),charAt:cr(!0)}.charAt,Cee=Wn.set,wee=Wn.getterFor(`String Iterator`);ar(String,`String`,(function(e){Cee(this,{type:`String Iterator`,string:Dn(e),index:0})}),(function(){var e,t=wee(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=See(n,r),t.index+=e.length,{value:e,done:!1})}));var Tee=oe.AggregateError,lr=Ve(`toStringTag`);for(var ur 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 dr=o[ur],fr=dr&&dr.prototype;fr&&_n(fr)!==lr&&pt(fr,lr,ur),ln[ur]=ln.Array}var pr,mr,hr=Tee,gr=function(e){return e&&e.Math==Math&&e},j=gr(typeof globalThis==`object`&&globalThis)||gr(typeof window==`object`&&window)||gr(typeof self==`object`&&self)||gr(typeof e==`object`&&e)||function(){return this}()||Function(`return this`)(),_r=function(e){try{return!!e()}catch{return!0}},vr=!_r((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),yr=Function.prototype.call,br=yr.bind?yr.bind(yr):function(){return yr.apply(yr,arguments)},xr={}.propertyIsEnumerable,Sr=Object.getOwnPropertyDescriptor,Cr={f:Sr&&!xr.call({1:2},1)?function(e){var t=Sr(this,e);return!!t&&t.enumerable}:xr},wr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tr=Function.prototype,Er=Tr.bind,Dr=Tr.call,Or=Er&&Er.bind(Dr),kr=Er?function(e){return e&&Or(Dr,e)}:function(e){return e&&function(){return Dr.apply(e,arguments)}},Ar=kr({}.toString),jr=kr(``.slice),Mr=function(e){return jr(Ar(e),8,-1)},Nr=j.Object,Pr=kr(``.split),Fr=_r((function(){return!Nr(`z`).propertyIsEnumerable(0)}))?function(e){return Mr(e)==`String`?Pr(e,``):Nr(e)}:Nr,Ir=j.TypeError,Lr=function(e){if(e==null)throw Ir(`Can't call method on `+e);return e},Rr=function(e){return Fr(Lr(e))},zr=function(e){return typeof e==`function`},Br=function(e){return typeof e==`object`?e!==null:zr(e)},Vr=function(e){return zr(e)?e:void 0},Hr=function(e,t){return arguments.length<2?Vr(j[e]):j[e]&&j[e][t]},Ur=kr({}.isPrototypeOf),Wr=Hr(`navigator`,`userAgent`)||``,Gr=j.process,Kr=j.Deno,qr=Gr&&Gr.versions||Kr&&Kr.version,Jr=qr&&qr.v8;Jr&&(mr=(pr=Jr.split(`.`))[0]>0&&pr[0]<4?1:+(pr[0]+pr[1])),!mr&&Wr&&(!(pr=Wr.match(/Edge\/(\d+)/))||pr[1]>=74)&&(pr=Wr.match(/Chrome\/(\d+)/))&&(mr=+pr[1]);var Yr=mr,Xr=!!Object.getOwnPropertySymbols&&!_r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Yr&&Yr<41})),Zr=Xr&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Qr=j.Object,$r=Zr?function(e){return typeof e==`symbol`}:function(e){var t=Hr(`Symbol`);return zr(t)&&Ur(t.prototype,Qr(e))},ei=j.String,ti=function(e){try{return ei(e)}catch{return`Object`}},ni=j.TypeError,ri=function(e){if(zr(e))return e;throw ni(ti(e)+` is not a function`)},ii=function(e,t){var n=e[t];return n==null?void 0:ri(n)},ai=j.TypeError,oi=Object.defineProperty,si=function(e,t){try{oi(j,e,{value:t,configurable:!0,writable:!0})}catch{j[e]=t}return t},ci=j[`__core-js_shared__`]||si(`__core-js_shared__`,{}),li=n((function(e){(e.exports=function(e,t){return ci[e]||(ci[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),ui=j.Object,di=function(e){return ui(Lr(e))},Eee=kr({}.hasOwnProperty),fi=Object.hasOwn||function(e,t){return Eee(di(e),t)},Dee=0,Oee=Math.random(),kee=kr(1 .toString),pi=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+kee(++Dee+Oee,36)},mi=li(`wks`),hi=j.Symbol,gi=hi&&hi.for,Aee=Zr?hi:hi&&hi.withoutSetter||pi,_i=function(e){if(!fi(mi,e)||!Xr&&typeof mi[e]!=`string`){var t=`Symbol.`+e;Xr&&fi(hi,e)?mi[e]=hi[e]:mi[e]=Zr&&gi?gi(t):Aee(t)}return mi[e]},jee=j.TypeError,Mee=_i(`toPrimitive`),Nee=function(e,t){if(!Br(e)||$r(e))return e;var n,r=ii(e,Mee);if(r){if(t===void 0&&(t=`default`),n=br(r,e,t),!Br(n)||$r(n))return n;throw jee(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&zr(n=e.toString)&&!Br(r=br(n,e))||zr(n=e.valueOf)&&!Br(r=br(n,e))||t!==`string`&&zr(n=e.toString)&&!Br(r=br(n,e)))return r;throw ai(`Can't convert object to primitive value`)}(e,t)},vi=function(e){var t=Nee(e,`string`);return $r(t)?t:t+``},yi=j.document,Pee=Br(yi)&&Br(yi.createElement),bi=function(e){return Pee?yi.createElement(e):{}},xi=!vr&&!_r((function(){return Object.defineProperty(bi(`div`),`a`,{get:function(){return 7}}).a!=7})),Si=Object.getOwnPropertyDescriptor,Ci={f:vr?Si:function(e,t){if(e=Rr(e),t=vi(t),xi)try{return Si(e,t)}catch{}if(fi(e,t))return wr(!br(Cr.f,e,t),e[t])}},Fee=j.String,Iee=j.TypeError,wi=function(e){if(Br(e))return e;throw Iee(Fee(e)+` is not an object`)},Lee=j.TypeError,Ti=Object.defineProperty,Ei={f:vr?Ti:function(e,t,n){if(wi(e),t=vi(t),wi(n),xi)try{return Ti(e,t,n)}catch{}if(`get`in n||`set`in n)throw Lee(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Di=vr?function(e,t,n){return Ei.f(e,t,wr(1,n))}:function(e,t,n){return e[t]=n,e},Ree=kr(Function.toString);zr(ci.inspectSource)||(ci.inspectSource=function(e){return Ree(e)});var Oi,ki,Ai,ji=ci.inspectSource,Mi=j.WeakMap,zee=zr(Mi)&&/native code/.test(ji(Mi)),Ni=li(`keys`),Pi=function(e){return Ni[e]||(Ni[e]=pi(e))},Fi={},Ii=j.TypeError,Bee=j.WeakMap;if(zee||ci.state){var Li=ci.state||=new Bee,Vee=kr(Li.get),Ri=kr(Li.has),Hee=kr(Li.set);Oi=function(e,t){if(Ri(Li,e))throw new Ii(`Object already initialized`);return t.facade=e,Hee(Li,e,t),t},ki=function(e){return Vee(Li,e)||{}},Ai=function(e){return Ri(Li,e)}}else{var zi=Pi(`state`);Fi[zi]=!0,Oi=function(e,t){if(fi(e,zi))throw new Ii(`Object already initialized`);return t.facade=e,Di(e,zi,t),t},ki=function(e){return fi(e,zi)?e[zi]:{}},Ai=function(e){return fi(e,zi)}}var Bi={set:Oi,get:ki,has:Ai,enforce:function(e){return Ai(e)?ki(e):Oi(e,{})},getterFor:function(e){return function(t){var n;if(!Br(t)||(n=ki(t)).type!==e)throw Ii(`Incompatible receiver, `+e+` required`);return n}}},Vi=Function.prototype,Hi=vr&&Object.getOwnPropertyDescriptor,Ui=fi(Vi,`name`),Wi={EXISTS:Ui,PROPER:Ui&&function(){}.name===`something`,CONFIGURABLE:Ui&&(!vr||vr&&Hi(Vi,`name`).configurable)},Gi=n((function(e){var t=Wi.CONFIGURABLE,n=Bi.get,r=Bi.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;zr(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!fi(a,`name`)||t&&a.name!==d)&&Di(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===j?l?e[n]=a:si(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Di(e,n,a))})(Function.prototype,`toString`,(function(){return zr(this)&&n(this).source||ji(this)}))})),Ki=Math.ceil,qi=Math.floor,Ji=function(e){var t=+e;return t!=t||t===0?0:(t>0?qi:Ki)(t)},Yi=Math.max,Xi=Math.min,Zi=function(e,t){var n=Ji(e);return n<0?Yi(n+t,0):Xi(n,t)},Uee=Math.min,Qi=function(e){return e>0?Uee(Ji(e),9007199254740991):0},$i=function(e){return Qi(e.length)},ea=function(e){return function(t,n,r){var i,a=Rr(t),o=$i(a),s=Zi(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ta={includes:ea(!0),indexOf:ea(!1)}.indexOf,na=kr([].push),ra=function(e,t){var n,r=Rr(e),i=0,a=[];for(n in r)!fi(Fi,n)&&fi(r,n)&&na(a,n);for(;t.length>i;)fi(r,n=t[i++])&&(~ta(a,n)||na(a,n));return a},ia=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],aa=ia.concat(`length`,`prototype`),oa={f:Object.getOwnPropertyNames||function(e){return ra(e,aa)}},sa={f:Object.getOwnPropertySymbols},ca=kr([].concat),la=Hr(`Reflect`,`ownKeys`)||function(e){var t=oa.f(wi(e)),n=sa.f;return n?ca(t,n(e)):t},ua=function(e,t){for(var n=la(t),r=Ei.f,i=Ci.f,a=0;a<n.length;a++){var o=n[a];fi(e,o)||r(e,o,i(t,o))}},da=/#|\.prototype\./,fa=function(e,t){var n=ma[pa(e)];return n==ga||n!=ha&&(zr(t)?_r(t):!!t)},pa=fa.normalize=function(e){return String(e).replace(da,`.`).toLowerCase()},ma=fa.data={},ha=fa.NATIVE=`N`,ga=fa.POLYFILL=`P`,_a=fa,va=Ci.f,ya=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?j:l?j[s]||si(s,{}):(j[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=va(n,r))&&o.value:n[r],!_a(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;ua(a,i)}(e.sham||i&&i.sham)&&Di(a,`sham`,!0),Gi(n,r,a,e)}},ba={};ba[_i(`toStringTag`)]=`z`;var xa,Sa=String(ba)===`[object z]`,Ca=_i(`toStringTag`),wa=j.Object,Ta=Mr(function(){return arguments}())==`Arguments`,Ea=Sa?Mr:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=wa(e),Ca))==`string`?n:Ta?Mr(t):(r=Mr(t))==`Object`&&zr(t.callee)?`Arguments`:r},Da=j.String,Oa=function(e){if(Ea(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Da(e)},ka=function(){var e=wi(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},Aa=j.RegExp,ja=_r((function(){var e=Aa(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Wee=ja||_r((function(){return!Aa(`a`,`y`).sticky})),Gee={BROKEN_CARET:ja||_r((function(){var e=Aa(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Wee,UNSUPPORTED_Y:ja},Kee=Object.keys||function(e){return ra(e,ia)},qee=vr?Object.defineProperties:function(e,t){wi(e);for(var n,r=Rr(t),i=Kee(t),a=i.length,o=0;a>o;)Ei.f(e,n=i[o++],r[n]);return e},Jee=Hr(`document`,`documentElement`),Ma=Pi(`IE_PROTO`),Na=function(){},Pa=function(e){return`<script>`+e+`<\/script>`},Fa=function(e){e.write(Pa(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Ia=function(){try{xa=new ActiveXObject(`htmlfile`)}catch{}var e,t;Ia=typeof document<`u`?document.domain&&xa?Fa(xa):((t=bi(`iframe`)).style.display=`none`,Jee.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Pa(`document.F=Object`)),e.close(),e.F):Fa(xa);for(var n=ia.length;n--;)delete Ia.prototype[ia[n]];return Ia()};Fi[Ma]=!0;var La,Ra,za=Object.create||function(e,t){var n;return e===null?n=Ia():(Na.prototype=wi(e),n=new Na,Na.prototype=null,n[Ma]=e),t===void 0?n:qee(n,t)},Ba=j.RegExp,Va=_r((function(){var e=Ba(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Ha=j.RegExp,Ua=_r((function(){var e=Ha(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Wa=Bi.get,Ga=li(`native-string-replace`,String.prototype.replace),Ka=RegExp.prototype.exec,qa=Ka,Ja=kr(``.charAt),Ya=kr(``.indexOf),Xa=kr(``.replace),Za=kr(``.slice),Qa=(Ra=/b*/g,br(Ka,La=/a/,`a`),br(Ka,Ra,`a`),La.lastIndex!==0||Ra.lastIndex!==0),$a=Gee.BROKEN_CARET,eo=/()??/.exec(``)[1]!==void 0;(Qa||eo||$a||Va||Ua)&&(qa=function(e){var t,n,r,i,a,o,s,c=this,l=Wa(c),u=Oa(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=br(qa,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=$a&&c.sticky,m=br(ka,c),h=c.source,g=0,_=u;if(p&&(m=Xa(m,`y`,``),Ya(m,`g`)===-1&&(m+=`g`),_=Za(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Ja(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),eo&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),Qa&&(r=c.lastIndex),i=br(Ka,p?n:c,_),p?i?(i.input=Za(i.input,g),i[0]=Za(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Qa&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),eo&&i&&i.length>1&&br(Ga,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=za(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var to=qa;ya({target:`RegExp`,proto:!0,forced:/./.exec!==to},{exec:to});var Yee=_i(`species`),no=RegExp.prototype,Xee=kr(``.charAt),ro=kr(``.charCodeAt),Zee=kr(``.slice),io=function(e){return function(t,n){var r,i,a=Oa(Lr(t)),o=Ji(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=ro(a,o))<55296||r>56319||o+1===s||(i=ro(a,o+1))<56320||i>57343?e?Xee(a,o):r:e?Zee(a,o,o+2):i-56320+(r-55296<<10)+65536}},ao={codeAt:io(!1),charAt:io(!0)},Qee=ao.charAt,$ee=function(e,t,n){return t+(n?Qee(e,t).length:1)},ete=j.TypeError,oo=function(e,t){var n=e.exec;if(zr(n)){var r=br(n,e,t);return r!==null&&wi(r),r}if(Mr(e)===`RegExp`)return br(to,e,t);throw ete(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=_i(e),a=!_r((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!_r((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Yee]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=kr(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=kr(e),c=t.exec;return c===to||c===no.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Gi(String.prototype,e,c[0]),Gi(no,i,c[1])}r&&Di(no[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=Lr(this),r=t==null?void 0:ii(t,e);return r?br(r,t,n):new RegExp(t)[e](Oa(n))},function(e){var r=wi(this),i=Oa(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return oo(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=oo(r,i))!==null;){var u=Oa(s[0]);c[l]=u,u===``&&(r.lastIndex=$ee(i,Qi(r.lastIndex),o)),l++}return l===0?null:c}]})),ya({global:!0},{globalThis:j});var tte=!_r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),so=Pi(`IE_PROTO`),co=j.Object,nte=co.prototype,lo=tte?co.getPrototypeOf:function(e){var t=di(e);if(fi(t,so))return t[so];var n=t.constructor;return zr(n)&&t instanceof n?n.prototype:t instanceof co?nte:null},rte=j.String,ite=j.TypeError,uo=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=kr(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return wi(n),function(e){if(typeof e==`object`||zr(e))return e;throw ite(`Can't set `+rte(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ate=j.Array,ote=Math.max,ste=kr(``.replace),cte=kr(``.split),lte=kr([].join),fo=String(Error(`zxcasd`).stack),po=/\n\s*at [^:]*:[^\n]*/,ute=po.test(fo),dte=/@[^\n]*\n/.test(fo)&&!/zxcasd/.test(fo),fte=function(e,t){if(typeof e!=`string`)return e;if(ute)for(;t--;)e=ste(e,po,``);else if(dte)return lte(function(e,t,n){for(var r,i,a,o,s=$i(e),c=Zi(t,s),l=Zi(n===void 0?s:n,s),u=ate(ote(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=vi(i))in r?Ei.f(r,o,wr(0,a)):r[o]=a;return u.length=d,u}(cte(e,`
`),t),`
`);return e},pte=function(e,t){Br(t)&&`cause`in t&&Di(e,`cause`,t.cause)},mo=kr(kr.bind),ho=function(e,t){return ri(e),t===void 0?e:mo?mo(e,t):function(){return e.apply(t,arguments)}},go={},mte=_i(`iterator`),hte=Array.prototype,gte=_i(`iterator`),_o=function(e){if(e!=null)return ii(e,gte)||ii(e,`@@iterator`)||go[Ea(e)]},_te=j.TypeError,vo=function(e,t,n){var r,i;wi(e);try{if(!(r=ii(e,`return`))){if(t===`throw`)throw n;return n}r=br(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return wi(r),n},vte=j.TypeError,yo=function(e,t){this.stopped=e,this.result=t},bo=yo.prototype,yte=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=ho(t,u),h=function(e){return r&&vo(r,`normal`,e),new yo(!0,e)},g=function(e){return d?(wi(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=_o(e)))throw vte(ti(e)+` is not iterable`);if(function(e){return e!==void 0&&(go.Array===e||hte[mte]===e)}(i)){for(a=0,o=$i(e);o>a;a++)if((s=g(e[a]))&&Ur(bo,s))return s;return new yo(!1)}r=function(e,t){var n=arguments.length<2?_o(e):t;if(ri(n))return wi(br(n,e));throw _te(ti(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=br(c,r)).done;){try{s=g(l.value)}catch(e){vo(r,`throw`,e)}if(typeof s==`object`&&s&&Ur(bo,s))return s}return new yo(!1)},bte=function(e,t){return e===void 0?arguments.length<2?``:t:Oa(e)},xte=!_r((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,wr(1,7)),e.stack!==7)})),Ste=_i(`toStringTag`),xo=j.Error,Cte=[].push,So=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Ur(Co,this);uo?n=uo(new xo(void 0),i?lo(this):Co):(n=i?this:za(Co),Di(n,Ste,`Error`)),Di(n,`message`,bte(t,``)),xte&&Di(n,`stack`,fte(n.stack,1)),pte(n,r);var a=[];return yte(e,Cte,{that:a}),Di(n,`errors`,a),n};uo?uo(So,xo):ua(So,xo);var Co=So.prototype=za(xo.prototype,{constructor:wr(1,So),message:wr(1,``),name:wr(1,`AggregateError`)});ya({global:!0},{AggregateError:So});var wo=_i(`unscopables`),To=Array.prototype;To[wo]??Ei.f(To,wo,{configurable:!0,value:za(null)});var Eo,Do,Oo,ko=function(e){To[wo][e]=!0},Ao=_i(`iterator`),jo=!1;[].keys&&(`next`in(Oo=[].keys())?(Do=lo(lo(Oo)))!==Object.prototype&&(Eo=Do):jo=!0),(Eo==null||_r((function(){var e={};return Eo[Ao].call(e)!==e})))&&(Eo={}),zr(Eo[Ao])||Gi(Eo,Ao,(function(){return this}));var Mo={IteratorPrototype:Eo,BUGGY_SAFARI_ITERATORS:jo},No=Ei.f,Po=_i(`toStringTag`),Fo=function(e,t,n){e&&!fi(e=n?e:e.prototype,Po)&&No(e,Po,{configurable:!0,value:t})},Io=Mo.IteratorPrototype,Lo=function(){return this},Ro=Wi.PROPER,zo=Wi.CONFIGURABLE,Bo=Mo.IteratorPrototype,Vo=Mo.BUGGY_SAFARI_ITERATORS,Ho=_i(`iterator`),Uo=function(){return this},Wo=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=za(Io,{next:wr(+!r,n)}),Fo(e,i,!1),go[i]=Lo})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Vo&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[Ho]||p[`@@iterator`]||i&&p[i],h=!Vo&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=lo(g.call(new e)))!==Object.prototype&&s.next&&(lo(s)!==Bo&&(uo?uo(s,Bo):zr(s[Ho])||Gi(s,Ho,Uo)),Fo(s,d,!0)),Ro&&i==`values`&&m&&m.name!==`values`&&(zo?Di(p,`name`,`values`):(f=!0,h=function(){return br(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Vo||f||!(l in p))&&Gi(p,l,c[l]);else ya({target:t,proto:!0,forced:Vo||f},c);return p[Ho]!==h&&Gi(p,Ho,h,{name:i}),go[t]=h,c},Go=Bi.set,Ko=Bi.getterFor(`Array Iterator`),qo=Wo(Array,`Array`,(function(e,t){Go(this,{type:`Array Iterator`,target:Rr(e),index:0,kind:t})}),(function(){var e=Ko(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);go.Arguments=go.Array,ko(`keys`),ko(`values`),ko(`entries`);var Jo=ao.charAt,Yo=Bi.set,Xo=Bi.getterFor(`String Iterator`);Wo(String,`String`,(function(e){Yo(this,{type:`String Iterator`,string:Oa(e),index:0})}),(function(){var e,t=Xo(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Jo(n,r),t.index+=e.length,{value:e,done:!1})}));var Zo,Qo={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},$o=bi(`span`).classList,es=$o&&$o.constructor&&$o.constructor.prototype,ts=es===Object.prototype?void 0:es,ns=_i(`iterator`),rs=_i(`toStringTag`),is=qo.values,as=function(e,t){if(e){if(e[ns]!==is)try{Di(e,ns,is)}catch{e[ns]=is}if(e[rs]||Di(e,rs,t),Qo[t]){for(var n in qo)if(e[n]!==qo[n])try{Di(e,n,qo[n])}catch{e[n]=qo[n]}}}};for(var os in Qo)as(j[os]&&j[os].prototype,os);as(ts,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
 Sorry, wangEditor V5+ versions do not support IE browser.`),ss(),cs()):global&&(Zo=global.navigator)!=null&&Zo.userAgent.match(`QQBrowser`)&&(ss(),cs());function ss(){typeof globalThis>`u`&&(window.globalThis=window)}function cs(){hr===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var ls,us=Array.isArray||function(e){return D(e)==`Array`},ds=function(){},fs=[],ps=ce(`Reflect`,`construct`),ms=/^\s*(?:class|function)\b/,hs=g(ms.exec),gs=!ms.exec(ds),_s=function(e){if(!_(e))return!1;try{return ps(ds,fs,e),!0}catch{return!1}},vs=!ps||v((function(){var e;return _s(_s.call)||!_s(Object)||!_s((function(){e=!0}))||e}))?function(e){if(!_(e))return!1;switch(_n(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return gs||!!hs(ms,Fn(e))}:_s,ys=Ve(`species`),bs=o.Array,xs=function(e,t){return new(function(e){var t;return us(e)&&(t=e.constructor,(vs(t)&&(t===bs||us(t.prototype))||k(t)&&(t=t[ys])===null)&&(t=void 0)),t===void 0?bs:t}(e))(t===0?0:t)},Ss=Ve(`species`),Cs=Ve(`isConcatSpreadable`),ws=o.TypeError,Ts=ge>=51||!v((function(){var e=[];return e[Cs]=!1,e.concat()[0]!==e})),Es=(ls=`concat`,ge>=51||!v((function(){var e=[];return(e.constructor={})[Ss]=function(){return{foo:1}},e[ls](Boolean).foo!==1}))),Ds=function(e){if(!k(e))return!1;var t=e[Cs];return t===void 0?us(e):!!t};gt({target:`Array`,proto:!0,forced:!Ts||!Es},{concat:function(e){var t,n,r,i,a,o=je(this),s=xs(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Ds(a=t===-1?o:arguments[t])){if(c+(i=jt(a))>9007199254740991)throw ws(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Yt(s,c,a[n])}else{if(c>=9007199254740991)throw ws(`Maximum allowed index exceeded`);Yt(s,c++,a)}return s.length=c,s}});var Os=zt.f,ks=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],As={f:function(e){return ks&&D(e)==`Window`?function(e){try{return Os(e)}catch{return Qt(ks)}}(e):Os(ae(e))}},js=g([].slice),Ms={f:Ve},Ns=ft.f,Ps=function(e){var t=oe.Symbol||={};A(t,e)||Ns(t,e,{value:Ms.f(e)})},Fs=g([].push),Is=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=je(c),h=re(m),g=ot(l,u),_=jt(h),v=0,y=d||xs,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:Fs(b,f)}else switch(e){case 4:return!1;case 7:Fs(b,f)}return a?-1:r||i?i:b}},Ls={forEach:Is(0),map:Is(1),filter:Is(2),some:Is(3),every:Is(4),find:Is(5),findIndex:Is(6),filterReject:Is(7)}.forEach,Rs=vt(`hidden`),zs=Ve(`toPrimitive`),Bs=Wn.set,Vs=Wn.getterFor(`Symbol`),Hs=Object.prototype,Us=o.Symbol,Ws=Us&&Us.prototype,Gs=o.TypeError,Ks=o.QObject,qs=ce(`JSON`,`stringify`),Js=Ze.f,Ys=ft.f,Xs=As.f,Zs=w.f,Qs=g([].push),$s=ke(`symbols`),ec=ke(`op-symbols`),tc=ke(`string-to-symbol-registry`),nc=ke(`symbol-to-string-registry`),rc=ke(`wks`),ic=!Ks||!Ks.prototype||!Ks.prototype.findChild,ac=y&&v((function(){return Jt(Ys({},`a`,{get:function(){return Ys(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=Js(Hs,t);r&&delete Hs[t],Ys(e,t,n),r&&e!==Hs&&Ys(Hs,t,r)}:Ys,oc=function(e,t){var n=$s[e]=Jt(Ws);return Bs(n,{type:`Symbol`,tag:e,description:t}),y||(n.description=t),n},sc=function(e,t,n){e===Hs&&sc(ec,t,n),lt(e);var r=Ge(t);return lt(n),A($s,r)?(n.enumerable?(A(e,Rs)&&e[Rs][r]&&(e[Rs][r]=!1),n=Jt(n,{enumerable:T(0,!1)})):(A(e,Rs)||Ys(e,Rs,T(1,{})),e[Rs][r]=!0),ac(e,r,n)):Ys(e,r,n)},cc=function(e,t){lt(e);var n=ae(t);return Ls(Vt(n).concat(fc(n)),(function(t){y&&!x(lc,n,t)||sc(e,t,n[t])})),e},lc=function(e){var t=Ge(e),n=x(Zs,this,t);return!(this===Hs&&A($s,t)&&!A(ec,t))&&(!(n||!A(this,t)||!A($s,t)||A(this,Rs)&&this[Rs][t])||n)},uc=function(e,t){var n=ae(e),r=Ge(t);if(n!==Hs||!A($s,r)||A(ec,r)){var i=Js(n,r);return!i||!A($s,r)||A(n,Rs)&&n[Rs][r]||(i.enumerable=!0),i}},dc=function(e){var t=Xs(ae(e)),n=[];return Ls(t,(function(e){A($s,e)||A(Pt,e)||Qs(n,e)})),n},fc=function(e){var t=e===Hs,n=Xs(t?ec:ae(e)),r=[];return Ls(n,(function(e){!A($s,e)||t&&!A(Hs,e)||Qs(r,$s[e])})),r};if(_e||(Ws=(Us=function(){if(le(Ws,this))throw Gs(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Dn(arguments[0]):void 0,t=Ie(e),n=function(e){this===Hs&&x(n,ec,e),A(this,Rs)&&A(this[Rs],t)&&(this[Rs][t]=!1),ac(this,t,T(1,e))};return y&&ic&&ac(Hs,t,{configurable:!0,set:n}),oc(t,e)}).prototype,Jn(Ws,`toString`,(function(){return Vs(this).tag})),Jn(Us,`withoutSetter`,(function(e){return oc(Ie(e),e)})),w.f=lc,ft.f=sc,Ze.f=uc,zt.f=As.f=dc,Bt.f=fc,Ms.f=function(e){return oc(Ve(e),e)},y&&Ys(Ws,`description`,{configurable:!0,get:function(){return Vs(this).description}})),gt({global:!0,wrap:!0,forced:!_e,sham:!_e},{Symbol:Us}),Ls(Vt(rc),(function(e){Ps(e)})),gt({target:`Symbol`,stat:!0,forced:!_e},{for:function(e){var t=Dn(e);if(A(tc,t))return tc[t];var n=Us(t);return tc[t]=n,nc[n]=t,n},keyFor:function(e){if(!be(e))throw Gs(e+` is not a symbol`);if(A(nc,e))return nc[e]},useSetter:function(){ic=!0},useSimple:function(){ic=!1}}),gt({target:`Object`,stat:!0,forced:!_e,sham:!y},{create:function(e,t){return t===void 0?Jt(e):cc(Jt(e),t)},defineProperty:sc,defineProperties:cc,getOwnPropertyDescriptor:uc}),gt({target:`Object`,stat:!0,forced:!_e},{getOwnPropertyNames:dc,getOwnPropertySymbols:fc}),gt({target:`Object`,stat:!0,forced:v((function(){Bt.f(1)}))},{getOwnPropertySymbols:function(e){return Bt.f(je(e))}}),qs&&gt({target:`JSON`,stat:!0,forced:!_e||v((function(){var e=Us();return qs([e])!=`[null]`||qs({a:e})!=`{}`||qs(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=js(arguments),i=t;if((k(t)||e!==void 0)&&!be(e))return us(t)||(t=function(e,t){if(_(i)&&(t=x(i,this,e,t)),!be(t))return t}),r[1]=t,d(qs,null,r)}}),!Ws[zs]){var pc=Ws.valueOf;Jn(Ws,zs,(function(e){return x(pc,this)}))}tr(Us,`Symbol`),Pt[Rs]=!0,Ps(`asyncIterator`),Ps(`hasInstance`),Ps(`isConcatSpreadable`),Ps(`iterator`),Ps(`match`),Ps(`matchAll`),Ps(`replace`),Ps(`search`),Ps(`species`),Ps(`split`),Ps(`toPrimitive`),Ps(`toStringTag`),Ps(`unscopables`),tr(o.JSON,`JSON`,!0);var mc=oe.Symbol;Ps(`asyncDispose`),Ps(`dispose`),Ps(`matcher`),Ps(`metadata`),Ps(`observable`),Ps(`patternMatch`),Ps(`replaceAll`);var hc=mc,gc=Ms.f(`iterator`),_c=t(n((function(e){function t(n){return typeof hc==`function`&&typeof gc==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof hc==`function`&&e.constructor===hc&&e!==hc.prototype?`symbol`:typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),vc=Ci.f,yc=_r((function(){vc(1)}));if(ya({target:`Object`,stat:!0,forced:!vr||yc,sham:!vr},{getOwnPropertyDescriptor:function(e,t){return vc(Rr(e),t)}}),(typeof global>`u`?`undefined`:_c(global))===`object`){var bc=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!bc.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:``},global.location={hostname:`0.0.0.0`,port:0,protocol:`http:`},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function xc(e){return Object.prototype.toString.call(e)===`[object Object]`}function Sc(e){var t,n;return!1!==xc(e)&&((t=e.constructor)===void 0||!1!==xc(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function Cc(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error(`[Immer] minified error nr: `+e+(n.length?` `+n.map((function(e){return`'`+e+`'`})).join(`,`):``)+`. Find the full error at: https://bit.ly/3cXEKWf`)}function wc(e){return!!e&&!!e[al]}function Tc(e){return!!e&&(function(e){if(!e||typeof e!=`object`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return n===Object||typeof n==`function`&&Function.toString.call(n)===Ote}(e)||Array.isArray(e)||!!e[il]||!!e.constructor[il]||Ac(e)||jc(e))}function Ec(e,t,n){n===void 0&&(n=!1),Dc(e)===0?(n?Object.keys:ol)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Dc(e){var t=e[al];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ac(e)?2:jc(e)?3:0}function Oc(e,t){return Dc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function kc(e,t,n){var r=Dc(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Ac(e){return Ete&&e instanceof Map}function jc(e){return Dte&&e instanceof Set}function Mc(e){return e.o||e.t}function Nc(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=kte(e);delete t[al];for(var n=ol(t),r=0;r<n.length;r++){var i=n[r],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Pc(e,t){return t===void 0&&(t=!1),Ic(e)||wc(e)||!Tc(e)||(Dc(e)>1&&(e.set=e.add=e.clear=e.delete=Fc),Object.freeze(e),t&&Ec(e,(function(e,t){return Pc(t,!0)}),!0)),e}function Fc(){Cc(2)}function Ic(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Lc(e){var t=Ate[e];return t||Cc(18,e),t}function Rc(){return el}function zc(e,t){t&&(Lc(`Patches`),e.u=[],e.s=[],e.v=t)}function Bc(e){Vc(e),e.p.forEach(wte),e.p=null}function Vc(e){e===el&&(el=e.l)}function Hc(e){return el={p:[],l:el,h:e,m:!0,_:0}}function wte(e){var t=e[al];t.i===0||t.i===1?t.j():t.O=!0}function Uc(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Lc(`ES5`).S(t,e,r),r?(n[al].P&&(Bc(t),Cc(4)),Tc(e)&&(e=Wc(t,e),t.l||Kc(t,e)),t.u&&Lc(`Patches`).M(n[al],e,t.u,t.s)):e=Wc(t,n,[]),Bc(t),t.u&&t.v(t.u,t.s),e===rl?void 0:e}function Wc(e,t,n){if(Ic(t))return t;var r=t[al];if(!r)return Ec(t,(function(i,a){return Gc(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Kc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Nc(r.k):r.o;Ec(r.i===3?new Set(i):i,(function(t,a){return Gc(e,r,i,t,a,n)})),Kc(e,i,!1),n&&e.u&&Lc(`Patches`).R(r,n,e.u,e.s)}return r.o}function Gc(e,t,n,r,i,a){if(wc(i)){var o=Wc(e,i,a&&t&&t.i!==3&&!Oc(t.D,r)?a.concat(r):void 0);if(kc(n,r,o),!wc(o))return;e.m=!1}if(Tc(i)&&!Ic(i)){if(!e.h.F&&e._<1)return;Wc(e,i),t&&t.A.l||Kc(e,i)}}function Kc(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Pc(t,n)}function qc(e,t){var n=e[al];return(n?Mc(n):e)[t]}function Jc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Yc(e){e.P||(e.P=!0,e.l&&Yc(e.l))}function Xc(e){e.o||=Nc(e.t)}function Zc(e,t,n){var r=Ac(t)?Lc(`MapSet`).N(t,n):jc(t)?Lc(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Rc(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=sl;n&&(i=[r],a=cl);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Lc(`ES5`).J(t,n);return(n?n.A:Rc()).p.push(r),r}function Tte(e){return wc(e)||Cc(22,e),function e(t){if(!Tc(t))return t;var n,r=t[al],i=Dc(t);if(r){if(!r.P&&(r.i<4||!Lc(`ES5`).K(r)))return r.t;r.I=!0,n=Qc(t,i),r.I=!1}else n=Qc(t,i);return Ec(n,(function(t,i){r&&function(e,t){return Dc(e)===2?e.get(t):e[t]}(r.t,t)===i||kc(n,t,e(i))})),i===3?new Set(n):n}(e)}function Qc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nc(e)}var $c,el,tl=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Ete=typeof Map<`u`,Dte=typeof Set<`u`,nl=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,rl=tl?Symbol.for(`immer-nothing`):(($c={})[`immer-nothing`]=!0,$c),il=tl?Symbol.for(`immer-draftable`):`__$immer_draftable`,al=tl?Symbol.for(`immer-state`):`__$immer_state`,Ote=``+Object.prototype.constructor,ol=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},kte=Object.getOwnPropertyDescriptors||function(e){var t={};return ol(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Ate={},sl={get:function(e,t){if(t===al)return e;var n=Mc(e);if(!Oc(n,t))return function(e,t,n){var r=Jc(t,n);return r?`value`in r?r.value:r.get?.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!Tc(r)?r:r===qc(e.t,t)?(Xc(e),e.o[t]=Zc(e.A.h,r,e)):r},has:function(e,t){return t in Mc(e)},ownKeys:function(e){return Reflect.ownKeys(Mc(e))},set:function(e,t,n){var r=Jc(Mc(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=qc(Mc(e),t),a=i?.[al];if(a&&a.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}(n,i)&&(n!==void 0||Oc(e.t,t)))return!0;Xc(e),Yc(e)}return e.o[t]===n&&typeof n!=`number`&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return qc(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Xc(e),Yc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Mc(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Cc(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Cc(12)}},cl={};Ec(sl,(function(e,t){cl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),cl.deleteProperty=function(e,t){return sl.deleteProperty.call(this,e[0],t)},cl.set=function(e,t,n){return sl.set.call(this,e[0],t,n,e[0])};var ll=new(function(){function e(e){var t=this;this.g=nl,this.F=!0,this.produce=function(e,n,r){if(typeof e==`function`&&typeof n!=`function`){var i=n;n=e;var a=t;return function(e){var t=this;e===void 0&&(e=i);for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return a.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var o;if(typeof n!=`function`&&Cc(6),r!==void 0&&typeof r!=`function`&&Cc(7),Tc(e)){var s=Hc(t),c=Zc(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Bc(s):Vc(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return zc(s,r),Uc(e,s)}),(function(e){throw Bc(s),e})):(zc(s,r),Uc(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===rl?void 0:(o===void 0&&(o=e),t.F&&Pc(o,!0),o);Cc(21,e)},this.produceWithPatches=function(e,n){return typeof e==`function`?function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(i))}))}:[t.produce(e,n,(function(e,t){r=e,i=t})),r,i];var r,i},typeof e?.useProxies==`boolean`&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){Tc(e)||Cc(8),wc(e)&&(e=Tte(e));var t=Hc(this),n=Zc(this,e,void 0);return n[al].C=!0,Vc(t),n},t.finishDraft=function(e,t){var n=(e&&e[al]).A;return zc(n,t),Uc(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!nl&&Cc(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=Lc(`Patches`).$;return wc(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),ul=ll.produce;ll.produceWithPatches.bind(ll),ll.setAutoFreeze.bind(ll),ll.setUseProxies.bind(ll),ll.applyPatches.bind(ll);var dl=ll.createDraft.bind(ll),fl=ll.finishDraft.bind(ll);function pl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ml=new WeakMap,hl=new WeakMap,gl=new WeakMap,_l=new WeakMap,vl=new WeakMap,yl=new WeakMap;function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jte=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of P.pathRefs(e))cne.transform(n,t);for(var r of P.pointRefs(e))lne.transform(r,t);for(var i of P.rangeRefs(e))dne.transform(i,t);var a=new Set,o=[],s=e=>{if(e){var t=e.join(`,`);a.has(t)||(a.add(t),o.push(e))}},c=ml.get(e)||[],l=Mte(t);for(var u of c)s(I.transform(u,t));for(var d of l)s(d);ml.set(e,o),B.transform(e,t),e.operations.push(t),P.normalize(e),t.type===`set_selection`&&(e.marks=null),hl.get(e)||(hl.set(e,!0),Promise.resolve().then((()=>{hl.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(R.isExpanded(r)?B.setNodes(e,{[t]:n},{match:z.isText,split:!0}):(e.marks=xl(xl({},P.marks(e)||{}),{},{[t]:n}),hl.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&B.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&R.isCollapsed(n)&&B.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&R.isExpanded(n)&&B.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?F.fragment(e,t):[]},insertBreak:()=>{B.splitNodes(e,{always:!0})},insertFragment:t=>{B.insertFragment(e,t)},insertNode:t=>{B.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=xl({text:t},r);B.insertNodes(e,i)}else B.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!z.isText(n))if(N.isElement(n)&&n.children.length===0)B.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!P.isEditor(n)&&N.isElement(n)&&(e.isInline(n)||n.children.length===0||z.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=F.get(e,r);if(!z.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(z.isText(c)||N.isElement(c)&&e.isInline(c))===i?N.isElement(c)?e.isInline(c)&&(l!=null&&z.isText(l)?u&&(B.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(B.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&z.isText(l)&&(z.equals(c,l,{loose:!0})?(B.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(B.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(B.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(B.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}},removeMark:t=>{var{selection:n}=e;if(n)if(R.isExpanded(n))B.unsetNodes(e,t,{match:z.isText,split:!0});else{var r=xl({},P.marks(e)||{});delete r[t],e.marks=r,hl.get(e)||e.onChange()}}};return e},Mte=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return I.levels(t);case`insert_node`:var{node:n,path:r}=e,i=I.levels(r),a=z.isText(n)?[]:Array.from(F.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...I.ancestors(o),I.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(I.equals(s,c))return[];var l=[],u=[];for(var d of I.ancestors(s)){var f=I.transform(d,e);l.push(f)}for(var p of I.ancestors(c)){var m=I.transform(p,e);u.push(m)}var h=u[u.length-1],g=c[c.length-1],_=h.concat(g);return[...l,...u,_];case`remove_node`:var{path:v}=e;return[...I.ancestors(v)];case`split_node`:var{path:y}=e;return[...I.levels(y),I.next(y)];default:return[]}};function Sl(e,t){if(e==null)return{};var n,r,i=function(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var M,Cl=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Lte(e):e,i=M.None,a=M.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=Yte(c,l);if([i,a]=n?[a,u]:[u,i],Tl(i,M.ZWJ)&&Tl(a,M.ExtPict)&&!$te(n?e.substring(0,o):e.substring(0,e.length-o))||Tl(i,M.RI)&&Tl(a,M.RI)&&!(s=s===null?!!n||tne(e.substring(0,e.length-o)):!s)||i!==M.None&&a!==M.None&&Zte(i,a))break;o+=c.length}return o||1},Nte=/\s/,Pte=/[\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]/,Fte=/['\u2018\u2019]/,wl=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},Ite=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Nte.test(t))return!1;if(Fte.test(t)){var[i,a]=wl(n,Cl(n,r),r);if(e(i,a,r))return!0}return!Pte.test(t)},Lte=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(zte(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(Rte(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},Rte=e=>e>=55296&&e<=56319,zte=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]=`None`,e[e.Extend=1]=`Extend`,e[e.ZWJ=2]=`ZWJ`,e[e.RI=4]=`RI`,e[e.Prepend=8]=`Prepend`,e[e.SpacingMark=16]=`SpacingMark`,e[e.L=32]=`L`,e[e.V=64]=`V`,e[e.T=128]=`T`,e[e.LV=256]=`LV`,e[e.LVT=512]=`LVT`,e[e.ExtPict=1024]=`ExtPict`,e[e.Any=2048]=`Any`})(M||={});var Bte=/^(?:[\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])$/,Vte=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Hte=/^(?:[\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])$/,Ute=/^[\u1100-\u115F\uA960-\uA97C]$/,Wte=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Gte=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Kte=/^[\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]$/,qte=/^[\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]$/,Jte=/^(?:[\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])$/,Yte=(e,t)=>{var n=M.Any;return e.search(Bte)!==-1&&(n|=M.Extend),t===8205&&(n|=M.ZWJ),t>=127462&&t<=127487&&(n|=M.RI),e.search(Vte)!==-1&&(n|=M.Prepend),e.search(Hte)!==-1&&(n|=M.SpacingMark),e.search(Ute)!==-1&&(n|=M.L),e.search(Wte)!==-1&&(n|=M.V),e.search(Gte)!==-1&&(n|=M.T),e.search(Kte)!==-1&&(n|=M.LV),e.search(qte)!==-1&&(n|=M.LVT),e.search(Jte)!==-1&&(n|=M.ExtPict),n};function Tl(e,t){return(e&t)!=0}var Xte=[[M.L,M.L|M.V|M.LV|M.LVT],[M.LV|M.V,M.V|M.T],[M.LVT|M.T,M.T],[M.Any,M.Extend|M.ZWJ],[M.Any,M.SpacingMark],[M.Prepend,M.Any],[M.ZWJ,M.ExtPict],[M.RI,M.RI]];function Zte(e,t){return Xte.findIndex((n=>Tl(e,n[0])&&Tl(t,n[1])))===-1}var Qte=/(?:[\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$/,$te=e=>e.search(Qte)!==-1,ene=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,tne=e=>{var t=e.match(ene);return t!==null&&t[0].length/2%2==1},El=e=>Sc(e)&&F.isNodeList(e.children)&&!P.isEditor(e),N={isAncestor:e=>Sc(e)&&F.isNodeList(e.children),isElement:El,isElementList:e=>Array.isArray(e)&&e.every((e=>N.isElement(e))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`type`;return El(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},nne=[`text`],rne=[`text`];function Dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Dl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kl=new WeakMap,P={above(e){var{voids:t=!1,mode:n=`lowest`,at:r=e.selection,match:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r){var a=P.path(e,r),o=n===`lowest`;for(var[s,c]of P.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!z.isText(s)&&!I.equals(a,c))return[s,c]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:P.point(e,t,{edge:`end`}),focus:P.end(e,[])},{distance:a=1}=r,o=0;for(var s of P.positions(e,Ol(Ol({},r),{},{at:i}))){if(o>a)break;o!==0&&(n=s),o++}return n},before(e,t){var n,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i={anchor:P.start(e,[]),focus:P.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of P.positions(e,Ol(Ol({},r),{},{at:i,reverse:!0}))){if(o>a)break;o!==0&&(n=s),o++}return n},deleteBackward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteBackward(t)},deleteForward(e){var{unit:t=`character`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteForward(t)},deleteFragment(e){var{direction:t=`forward`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.deleteFragment(t)},edges:(e,t)=>[P.start(e,t),P.end(e,t)],end:(e,t)=>P.point(e,t,{edge:`end`}),first(e,t){var n=P.path(e,t,{edge:`start`});return P.node(e,n)},fragment(e,t){var n=P.range(e,t);return F.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>P.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>z.isText(t)||P.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>z.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>N.isElement(t)&&!e.isInline(t),isEditor(e){if(!Sc(e))return!1;var t=kl.get(e);if(t!==void 0)return t;var n=typeof e.addMark==`function`&&typeof e.apply==`function`&&typeof e.deleteBackward==`function`&&typeof e.deleteForward==`function`&&typeof e.deleteFragment==`function`&&typeof e.insertBreak==`function`&&typeof e.insertFragment==`function`&&typeof e.insertNode==`function`&&typeof e.insertText==`function`&&typeof e.isInline==`function`&&typeof e.isVoid==`function`&&typeof e.normalizeNode==`function`&&typeof e.onChange==`function`&&typeof e.removeMark==`function`&&(e.marks===null||Sc(e.marks))&&(e.selection===null||R.isRange(e.selection))&&F.isNodeList(e.children)&&Nl.isOperationList(e.operations);return kl.set(e,n),n},isEnd(e,t,n){var r=P.end(e,n);return L.equals(t,r)},isEdge:(e,t,n)=>P.isStart(e,t,n)||P.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&z.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>N.isElement(t)&&e.isInline(t),isNormalizing(e){var t=gl.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=P.start(e,n);return L.equals(t,r)},isVoid:(e,t)=>N.isElement(t)&&e.isVoid(t),last(e,t){var n=P.path(e,t,{edge:`end`});return P.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=P.path(e,t,n);return[F.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:i=!1}=t,{match:a}=t;if(a??=()=>!0,n){var o=[],s=P.path(e,n);for(var[c,l]of F.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&P.isVoid(e,c)))break;r&&o.reverse(),yield*o}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(R.isExpanded(n)){var[r]=P.nodes(e,{match:z.isText});if(r){var[i]=r;return Sl(i,nne)}return{}}var{anchor:a}=n,{path:o}=a,[s]=P.leaf(e,o);if(a.offset===0){var c=P.previous(e,{at:o,match:z.isText}),l=P.above(e,{match:t=>P.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;I.isAncestor(f,d)&&(s=u)}}return Sl(s,rne)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=P.after(e,a,{voids:r});if(o){var[,s]=P.last(e,[]),c=[o.path,s];if(I.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null)if(I.isPath(a)){var[l]=P.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=P.nodes(e,{at:c,match:i,mode:n,voids:r});return u}}},node(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=P.path(e,t,n);return[F.get(e,r),r]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:n=e.selection,mode:r=`all`,universal:i=!1,reverse:a=!1,voids:o=!1}=t,{match:s}=t;if(s||=()=>!0,n){var c,l;if(ane.isSpan(n))c=n[0],l=n[1];else{var u=P.path(e,n,{edge:`start`}),d=P.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=F.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&P.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&I.compare(g,f[1])===0;if(r!==`highest`||!_){if(s(h,g))if(r===`lowest`&&_)f=[h,g];else{var v=r===`lowest`?f:[h,g];v&&(i?m.push(v):yield v),f=[h,g]}else if(i&&!_&&z.isText(h))return}}r===`lowest`&&f&&(i?m.push(f):yield f),i&&(yield*m)}},normalize(e){var{force:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e=>ml.get(e)||[];if(P.isNormalizing(e)){if(t){var r=Array.from(F.nodes(e),(e=>{var[,t]=e;return t}));ml.set(e,r)}n(e).length!==0&&P.withoutNormalizing(e,(()=>{for(var t of n(e))if(F.has(e,t)){var r=P.node(e,t),[i,a]=r;N.isElement(i)&&i.children.length===0&&e.normalizeNode(r)}for(var o=42*n(e).length,s=0;n(e).length!==0;){if(s>o)throw Error(`
            Could not completely normalize the editor after ${o} iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
          `);var c=n(e).pop();if(F.has(e,c)){var l=P.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=P.path(e,t,n),i=I.parent(r);return P.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(I.isPath(t)){if(r===`start`){var[,i]=F.first(e,t);t=i}else if(r===`end`){var[,a]=F.last(e,t);t=a}}return R.isRange(t)&&(t=r===`start`?R.start(t):r===`end`?R.end(t):I.common(t.anchor.path,t.focus.path)),L.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>F.has(e,t),pathRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return P.pathRefs(e).delete(r),r.current=null,t}};return P.pathRefs(e).add(r),r},pathRefs(e){var t=_l.get(e);return t||(t=new Set,_l.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(I.isPath(t)){var r;if(n===`end`){var[,i]=F.last(e,t);r=i}else{var[,a]=F.first(e,t);r=a}var o=F.get(e,r);if(!z.isText(o))throw Error(`Cannot get the ${n} point in the node at path [${t}] because it has no ${n} text node.`);return{path:r,offset:n===`end`?o.text.length:0}}if(R.isRange(t)){var[s,c]=R.edges(t);return n===`start`?s:c}return t},pointRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return P.pointRefs(e).delete(r),r.current=null,t}};return P.pointRefs(e).add(r),r},pointRefs(e){var t=vl.get(e);return t||(t=new Set,vl.set(e,t)),t},*positions(e){var{at:t=e.selection,unit:n=`offset`,reverse:r=!1,voids:i=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t){var a=P.range(e,t),[o,s]=R.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of P.nodes(e,{at:t,reverse:r,voids:i})){if(N.isElement(m)){if(!i&&e.isVoid(m)){yield P.start(e,h);continue}if(e.isInline(m))continue;if(P.hasInlines(e,m)){var g=I.isAncestor(h,s.path)?s:P.end(e,h),_=I.isAncestor(h,o.path)?o:P.start(e,h);u=P.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(z.isText(m)){var v=I.equals(h,c.path);for(v?(f=r?c.offset:m.text.length-c.offset,p=c.offset):(f=m.text.length,p=r?f:0),(v||l||n===`offset`)&&(yield{path:h,offset:p},l=!1);;){if(d===0){if(u===``)break;d=y(u,n,r),u=wl(u,d,r)[1]}if(p=r?p-d:p+d,(f-=d)<0){d=-f;break}d=0,yield{path:h,offset:p}}}}}function y(e,t,n){return t===`character`?Cl(e,n):t===`word`?function(e){for(var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=0,r=!1;e.length>0;){var i=Cl(e,t),[a,o]=wl(e,i,t);if(Ite(a,o,t))r=!0,n+=i;else{if(r)break;n+=i}e=o}return n}(e,n):t===`line`||t===`block`?e.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection}=t;if(a){var o=P.before(e,a,{voids:r});if(o){var[,s]=P.first(e,[]),c=[o.path,s];if(I.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null)if(I.isPath(a)){var[l]=P.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=P.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>R.isRange(t)&&!n?t:{anchor:P.start(e,t),focus:P.end(e,n||t)},rangeRef(e,t){var{affinity:n=`forward`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r={current:t,affinity:n,unref(){var{current:t}=r;return P.rangeRefs(e).delete(r),r.current=null,t}};return P.rangeRefs(e).add(r),r},rangeRefs(e){var t=yl.get(e);return t||(t=new Set,yl.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){gl.set(e,t)},start:(e,t)=>P.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=P.range(e,t),[i,a]=R.edges(r),o=``;for(var[s,c]of P.nodes(e,{at:r,match:z.isText,voids:n})){var l=s.text;I.equals(c,a.path)&&(l=l.slice(0,a.offset)),I.equals(c,i.path)&&(l=l.slice(i.offset)),o+=l}return o},unhangRange(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},[r,i]=R.edges(t);if(r.offset!==0||i.offset!==0||R.isCollapsed(t))return t;var a=P.above(e,{at:i,match:t=>P.isBlock(e,t)}),o=a?a[1]:[],s={anchor:P.start(e,[]),focus:i},c=!0;for(var[l,u]of P.nodes(e,{at:s,match:z.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||I.isBefore(u,o)){i={path:u,offset:l.text.length};break}return{anchor:r,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return P.above(e,Ol(Ol({},t),{},{match:t=>P.isVoid(e,t)}))},withoutNormalizing(e,t){var n=P.isNormalizing(e);P.setNormalizing(e,!1);try{t()}finally{P.setNormalizing(e,n)}P.normalize(e)}},ine={isLocation:e=>I.isPath(e)||L.isPoint(e)||R.isRange(e)},ane={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(I.isPath)},one=[`children`],sne=[`text`],Al=new WeakMap,F={ancestor(e,t){var n=F.get(e,t);if(z.isText(n))throw Error(`Cannot get the ancestor node at path [${t}] because it refers to a text node instead: ${n}`);return n},*ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of I.ancestors(t,n))yield[F.ancestor(e,r),r]},child(e,t){if(z.isText(e))throw Error(`Cannot get the child of a text node: ${JSON.stringify(e)}`);var n=e.children[t];if(n==null)throw Error(`Cannot get child at index \`${t}\` in node: ${JSON.stringify(e)}`);return n},*children(e,t){for(var{reverse:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=F.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[F.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=I.common(t,n);return[F.get(e,r),r]},descendant(e,t){var n=F.get(e,t);if(P.isEditor(n))throw Error(`Cannot get the descendant node at path [${t}] because it refers to the root editor node instead: ${n}`);return n},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of F.nodes(e,t))r.length!==0&&(yield[n,r])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of F.nodes(e,t))N.isElement(n)&&(yield[n,r])},extractProps:e=>N.isAncestor(e)?Sl(e,one):Sl(e,sne),first(e,t){for(var n=t.slice(),r=F.get(e,n);r&&!z.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(z.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return ul({children:e.children},(e=>{var[n,r]=R.edges(t);for(var[,i]of F.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!R.includes(t,n)}})){if(!R.includes(t,i)){var a=F.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(I.equals(i,r.path)){var s=F.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(I.equals(i,n.path)){var c=F.leaf(e,i);c.text=c.text.slice(n.offset)}}P.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(z.isText(n)||!n.children[i])throw Error(`Cannot find a descendant at path [${t}] in node: ${JSON.stringify(e)}`);n=n.children[i]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(z.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>z.isText(e)||N.isElement(e)||P.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Al.get(e);if(t!==void 0)return t;var n=e.every((e=>F.isNode(e)));return Al.set(e,n),n},last(e,t){for(var n=t.slice(),r=F.get(e,n);r&&!z.isText(r)&&r.children.length!==0;){var i=r.children.length-1;r=r.children[i],n.push(i)}return[r,n]},leaf(e,t){var n=F.get(e,t);if(!z.isText(n))throw Error(`Cannot get the leaf node at path [${t}] because it refers to a non-leaf node: ${n}`);return n},*levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var r of I.levels(t,n))yield[F.get(e,r),r]},matches:(e,t)=>N.isElement(e)&&N.isElementProps(t)&&N.matches(e,t)||z.isText(e)&&z.isTextProps(t)&&z.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:i=[],to:a}=t,o=new Set,s=[],c=e;!a||!(r?I.isBefore(s,a):I.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||z.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=I.next(s);if(F.has(e,l)){s=l,c=F.get(e,s);continue}}r&&s[s.length-1]!==0?(s=I.previous(s),c=F.get(e,s)):(s=I.parent(s),c=F.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;I.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=F.get(e,s)}},parent(e,t){var n=I.parent(t),r=F.get(e,n);if(z.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>z.isText(e)?e.text:e.children.map(F.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of F.nodes(e,t))z.isText(n)&&(yield[n,r])}};function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ml(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nl={isNodeOperation:e=>Nl.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!Sc(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return I.isPath(e.path)&&F.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&I.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&I.isPath(e.path)&&Sc(e.properties);case`move_node`:return I.isPath(e.path)&&I.isPath(e.newPath);case`set_node`:return I.isPath(e.path)&&Sc(e.properties)&&Sc(e.newProperties);case`set_selection`:return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||Sc(e.properties)&&Sc(e.newProperties);case`split_node`:return I.isPath(e.path)&&typeof e.position==`number`&&Sc(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Nl.isOperation(e))),isSelectionOperation:e=>Nl.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>Nl.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return Ml(Ml({},e),{},{type:`remove_node`});case`insert_text`:return Ml(Ml({},e),{},{type:`remove_text`});case`merge_node`:return Ml(Ml({},e),{},{type:`split_node`,path:I.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(I.equals(t,n))return e;if(I.isSibling(n,t))return Ml(Ml({},e),{},{path:t,newPath:n});var r=I.transform(n,e),i=I.transform(I.next(n),e);return Ml(Ml({},e),{},{path:r,newPath:i});case`remove_node`:return Ml(Ml({},e),{},{type:`insert_node`});case`remove_text`:return Ml(Ml({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return Ml(Ml({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return Ml(Ml({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return Ml(Ml({},e),{},{type:`merge_node`,path:I.next(e.path)})}}},I={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=I.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var i=e[r];if(i!==t[r])break;n.push(i)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return I.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return I.equals(r,i)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),i=t.slice(0,n),a=e[n],o=t[n];return I.equals(r,i)&&a<o},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>I.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&I.compare(e,t)===0,isBefore:(e,t)=>I.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&I.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&I.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&I.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&I.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]==`number`),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&I.equals(n,r)},levels(e){for(var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=0;r<=e.length;r++)n.push(e.slice(0,r));return t&&n.reverse(),n},next(e){if(e.length===0)throw Error(`Cannot get the next path of a root path [${e}], because it has no next index.`);var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw Error(`Cannot get the parent path of the root path [${e}].`);return e.slice(0,-1)},previous(e){if(e.length===0)throw Error(`Cannot get the previous path of a root path [${e}], because it has no previous index.`);var t=e[e.length-1];if(t<=0)throw Error(`Cannot get the previous path of a first child path [${e}] because it would result in a negative index.`);return e.slice(0,-1).concat(t-1)},relative(e,t){if(!I.isAncestor(t,e)&&!I.equals(e,t))throw Error(`Cannot get the relative path of [${e}] inside ancestor [${t}], because it is not above or equal to the path.`);return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ul(e,(r=>{var{affinity:i=`forward`}=n;if(e&&e?.length!==0){if(r===null)return null;switch(t.type){case`insert_node`:var{path:a}=t;(I.equals(a,r)||I.endsBefore(a,r)||I.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(I.equals(o,r)||I.isAncestor(o,r))return null;I.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;I.equals(s,r)||I.endsBefore(s,r)?--r[s.length-1]:I.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(I.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else I.endsBefore(l,r)?r[l.length-1]+=1:I.isAncestor(l,r)&&e[l.length]>=u&&(r[l.length-1]+=1,r[l.length]-=u);break;case`move_node`:var{path:d,newPath:f}=t;if(I.equals(d,f))return;if(I.isAncestor(d,r)||I.equals(d,r)){var p=f.slice();return I.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}I.isSibling(d,f)&&(I.isAncestor(f,r)||I.equals(f,r))?I.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:I.endsBefore(f,r)||I.equals(f,r)||I.isAncestor(f,r)?(I.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):I.endsBefore(d,r)&&(I.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},cne={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=I.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}};function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var L={compare(e,t){var n=I.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>L.compare(e,t)===1,isBefore:(e,t)=>L.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&I.equals(e.path,t.path),isPoint:e=>Sc(e)&&typeof e.offset==`number`&&I.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ul(e,(e=>{if(e===null)return null;var{affinity:r=`forward`}=n,{path:i,offset:a}=e;switch(t.type){case`insert_node`:case`move_node`:e.path=I.transform(i,t,n);break;case`insert_text`:I.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:I.equals(t.path,i)&&(e.offset+=t.position),e.path=I.transform(i,t,n);break;case`remove_text`:I.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(I.equals(t.path,i)||I.isAncestor(t.path,i))return null;e.path=I.transform(i,t,n);break;case`split_node`:if(I.equals(t.path,i)){if(t.position===a&&r==null)return null;(t.position<a||t.position===a&&r===`forward`)&&(e.offset-=t.position,e.path=I.transform(i,t,Fl(Fl({},n),{},{affinity:`forward`})))}else e.path=I.transform(i,t,n)}}))}},lne={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=L.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},une=[`anchor`,`focus`];function Il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var R={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return R.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=R.edges(e);return t},equals:(e,t)=>L.equals(e.anchor,t.anchor)&&L.equals(e.focus,t.focus),includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[n,r]=R.edges(e),[i,a]=R.edges(t);return L.isBefore(n,i)&&L.isAfter(r,a)}var[o,s]=R.edges(e),c=!1,l=!1;return L.isPoint(t)?(c=L.compare(t,o)>=0,l=L.compare(t,s)<=0):(c=I.compare(t,o.path)>=0,l=I.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=Sl(e,une),[r,i]=R.edges(e),[a,o]=R.edges(t),s=L.isBefore(r,a)?a:r,c=L.isBefore(i,o)?i:o;return L.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Il(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:c},n)},isBackward(e){var{anchor:t,focus:n}=e;return L.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return L.equals(t,n)},isExpanded:e=>!R.isCollapsed(e),isForward:e=>!R.isBackward(e),isRange:e=>Sc(e)&&L.isPoint(e.anchor)&&L.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=R.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ul(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=R.isCollapsed(e);R.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?R.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=L.transform(e.anchor,t,{affinity:r}),c=L.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},dne={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=R.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},Ll=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(Sc(r)&&Sc(i)){if(!Ll(r,i))return!1}else if(Array.isArray(r)&&Array.isArray(i)){if(r.length!==i.length)return!1;for(var a=0;a<r.length;a++)if(r[a]!==i[a])return!1}else if(r!==i)return!1}for(var o in t)if(e[o]===void 0&&t[o]!==void 0)return!1;return!0},fne=[`text`],pne=[`anchor`,`focus`];function Rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Rl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return Sl(e,fne)}return Ll(n?r(e):e,n?r(t):t)},isText:e=>Sc(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>z.isText(e))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var n in t)if(n!==`text`&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[zl({},e)];for(var r of t){var i=Sl(r,pne),[a,o]=R.edges(r),s=[],c=0;for(var l of n){var{length:u}=l.text,d=c;if(c+=u,a.offset<=d&&o.offset>=c)Object.assign(l,i),s.push(l);else if(a.offset!==o.offset&&(a.offset===c||o.offset===d)||a.offset>c||o.offset<d||o.offset===d&&d!==0)s.push(l);else{var f=l,p=void 0,m=void 0;if(o.offset<c){var h=o.offset-d;m=zl(zl({},f),{},{text:f.text.slice(h)}),f=zl(zl({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=zl(zl({},f),{},{text:f.text.slice(0,g)}),f=zl(zl({},f),{},{text:f.text.slice(g)})}Object.assign(f,i),p&&s.push(p),s.push(f),m&&s.push(m)}}n=s}return n}};function Bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mne={transform(e,t){e.children=dl(e.children);var n=e.selection&&dl(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=F.parent(e,r),o=r[r.length-1];if(o>a.children.length)throw Error(`Cannot apply an "insert_node" operation at path [${r}] because the destination is past the end of the node.`);if(a.children.splice(o,0,i),t)for(var[s,c]of R.points(t))t[c]=L.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=F.leaf(e,l),p=f.text.slice(0,u),m=f.text.slice(u);if(f.text=p+d+m,t)for(var[h,g]of R.points(t))t[g]=L.transform(h,n);break;case`merge_node`:var{path:_}=n,v=F.get(e,_),y=I.previous(_),b=F.get(e,y),x=F.parent(e,_),S=_[_.length-1];if(z.isText(v)&&z.isText(b))b.text+=v.text;else{if(z.isText(v)||z.isText(b))throw Error(`Cannot apply a "merge_node" operation at path [${_}] to nodes of different interfaces: ${v} ${b}`);b.children.push(...v.children)}if(x.children.splice(S,1),t)for(var[C,w]of R.points(t))t[w]=L.transform(C,n);break;case`move_node`:var{path:T,newPath:ee}=n;if(I.isAncestor(T,ee))throw Error(`Cannot move a path [${T}] to new path [${ee}] because the destination is inside itself.`);var E=F.get(e,T),D=F.parent(e,T),te=T[T.length-1];D.children.splice(te,1);var ne=I.transform(T,n),re=F.get(e,I.parent(ne)),ie=ne[ne.length-1];if(re.children.splice(ie,0,E),t)for(var[O,ae]of R.points(t))t[ae]=L.transform(O,n);break;case`remove_node`:var{path:k}=n,oe=k[k.length-1];if(F.parent(e,k).children.splice(oe,1),t)for(var[se,ce]of R.points(t)){var le=L.transform(se,n);if(t!=null&&le!=null)t[ce]=le;else{var ue=void 0,de=void 0;for(var[fe,pe]of F.texts(e)){if(I.compare(pe,k)!==-1){de=[fe,pe];break}ue=[fe,pe]}var me=!1;ue&&de&&(me=I.equals(de[1],k)?!I.hasPrevious(de[1]):I.common(ue[1],k).length<I.common(de[1],k).length),ue&&!me?(se.path=ue[1],se.offset=ue[0].text.length):de?(se.path=de[1],se.offset=0):t=null}}break;case`remove_text`:var{path:he,offset:ge,text:_e}=n;if(_e.length===0)break;var ve=F.leaf(e,he);if(ve.text=ve.text.slice(0,ge)+ve.text.slice(ge+_e.length),t)for(var[ye,be]of R.points(t))t[be]=L.transform(ye,n);break;case`set_node`:var{path:xe,properties:Se,newProperties:Ce}=n;if(xe.length===0)throw Error(`Cannot set properties on the root node!`);var we=F.get(e,xe);for(var Te in Ce){if(Te===`children`||Te===`text`)throw Error(`Cannot set the "${Te}" property of nodes!`);var Ee=Ce[Te];Ee==null?delete we[Te]:we[Te]=Ee}for(var De in Se)Ce.hasOwnProperty(De)||delete we[De];break;case`set_selection`:var{newProperties:Oe}=n;if(Oe==null)t=Oe;else{if(t==null){if(!R.isRange(Oe))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(Oe)} when there is no current selection.`);t=Vl({},Oe)}for(var ke in Oe){var Ae=Oe[ke];if(Ae==null){if(ke===`anchor`||ke===`focus`)throw Error(`Cannot remove the "${ke}" selection property`);delete t[ke]}else t[ke]=Ae}}break;case`split_node`:var{path:je,position:Me,properties:A}=n;if(je.length===0)throw Error(`Cannot apply a "split_node" operation at path [${je}] because the root node cannot be split.`);var Ne,Pe=F.get(e,je),Fe=F.parent(e,je),Ie=je[je.length-1];if(z.isText(Pe)){var Le=Pe.text.slice(0,Me),Re=Pe.text.slice(Me);Pe.text=Le,Ne=Vl(Vl({},A),{},{text:Re})}else{var ze=Pe.children.slice(0,Me),Be=Pe.children.slice(Me);Pe.children=ze,Ne=Vl(Vl({},A),{},{children:Be})}if(Fe.children.splice(Ie+1,0,Ne),t)for(var[Ve,He]of R.points(t))t[He]=L.transform(Ve,n)}return t})(e,n,t)}finally{e.children=fl(e.children),e.selection=n?wc(n)?fl(n):n:null}}},hne=[`text`],gne=[`children`];function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ul(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _ne={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(F.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?P.end(e,[]):[0],c=!0),c??=!1,R.isRange(o))if(r||(o=P.unhangRange(e,o)),R.isCollapsed(o))o=o.anchor;else{var[,u]=R.edges(o),d=P.pointRef(e,u);B.delete(e,{at:o}),o=d.unref()}if(L.isPoint(o)){s??=z.isText(l)?e=>z.isText(e):e.isInline(l)?t=>z.isText(t)||P.isInline(e,t):t=>P.isBlock(e,t);var[f]=P.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=P.pathRef(e,p),h=P.isEnd(e,o,p);B.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?I.next(g):g}var _=I.parent(o),v=o[o.length-1];if(i||!P.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=I.next(o)}if(o=I.previous(o),c){var x=P.end(e,o);x&&B.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=I.isPath(n)?Gl(e,n):t=>P.isBlock(e,t),n){var o=P.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return P.pathRef(e,n)}))){var c=s.unref();if(c.length<2)throw Error(`Cannot lift node at a path [${c}] because it has a depth of less than \`2\`.`);var[l,u]=P.node(e,I.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=I.next(u);B.moveNodes(e,{at:c,to:p,voids:i}),B.removeNodes(e,{at:u,voids:i})}else if(d===0)B.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=I.next(u);B.moveNodes(e,{at:c,to:m,voids:i})}else{var h=I.next(c),g=I.next(u);B.splitNodes(e,{at:h,voids:i}),B.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:i=!1,voids:a=!1,mode:o=`lowest`}=t;if(r){if(n==null)if(I.isPath(r)){var[s]=P.parent(e,r);n=e=>s.children.includes(e)}else n=t=>P.isBlock(e,t);if(!i&&R.isRange(r)&&(r=P.unhangRange(e,r)),R.isRange(r))if(R.isCollapsed(r))r=r.anchor;else{var[,c]=R.edges(r),l=P.pointRef(e,c);B.delete(e,{at:r}),r=l.unref(),t.at??B.select(e,r)}var[u]=P.nodes(e,{at:r,match:n,voids:a,mode:o}),d=P.previous(e,{at:r,match:n,voids:a,mode:o});if(u&&d){var[f,p]=u,[m,h]=d;if(p.length!==0&&h.length!==0){var g,_,v=I.next(h),y=I.common(p,h),b=I.isSibling(p,h),x=Array.from(P.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=P.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&Wl(e,t)}),C=S&&P.pathRef(e,S[1]);if(z.isText(f)&&z.isText(m)){var w=Sl(f,hne);_=m.text.length,g=w}else{if(!N.isElement(f)||!N.isElement(m))throw Error(`Cannot merge the node at path [${p}] with the previous sibling because it is not the same kind: ${JSON.stringify(f)} ${JSON.stringify(m)}`);w=Sl(f,gne),_=m.children.length,g=w}b||B.moveNodes(e,{at:p,to:v,voids:a}),C&&B.removeNodes(e,{at:C.current,voids:a}),N.isElement(m)&&P.isEmpty(e,m)||z.isText(m)&&m.text===``&&h[h.length-1]!==0?B.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){P.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=I.isPath(r)?Gl(e,r):t=>P.isBlock(e,t);var s=P.pathRef(e,n),c=P.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return P.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&I.isSibling(d,u)&&I.isAfter(d,u)&&(s.current=I.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=I.isPath(a)?Gl(e,a):t=>P.isBlock(e,t),!n&&R.isRange(a)&&(a=P.unhangRange(e,a));var s=P.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return P.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=P.node(e,l);e.apply({type:`remove_node`,path:l,node:u})}}}}))},setNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(e,(()=>{var{match:r,at:i=e.selection}=n,{hanging:a=!1,mode:o=`lowest`,split:s=!1,voids:c=!1}=n;if(i){if(r??=I.isPath(i)?Gl(e,i):t=>P.isBlock(e,t),!a&&R.isRange(i)&&(i=P.unhangRange(e,i)),s&&R.isRange(i)){if(R.isCollapsed(i)&&P.leaf(e,i.anchor)[0].text.length>0)return;var l=P.rangeRef(e,i,{affinity:`inward`}),[u,d]=R.edges(i),f=o===`lowest`?`lowest`:`highest`,p=P.isEnd(e,d,d.path);B.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=P.isStart(e,u,u.path);B.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??B.select(e,i)}for(var[h,g]of P.nodes(e,{at:i,match:r,mode:o,voids:c})){var _={},v={};if(g.length!==0){var y=!1;for(var b in t)b!==`children`&&b!==`text`&&t[b]!==h[b]&&(y=!0,h.hasOwnProperty(b)&&(_[b]=h[b]),t[b]!=null&&(v[b]=t[b]));y&&e.apply({type:`set_node`,path:g,properties:_,newProperties:v})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,voids:r=!1}=t,{match:i,at:a=e.selection,height:o=0,always:s=!1}=t;if(i??=t=>P.isBlock(e,t),R.isRange(a)&&(a=vne(e,a)),I.isPath(a)){var c=a,l=P.point(e,c),[u]=P.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=P.pointRef(e,a,{affinity:`backward`}),[f]=P.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=P.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(N.isElement(m)&&e.isInline(m)){var g=P.after(e,h);if(!g){var _=I.next(h);B.insertNodes(e,{text:``},{at:_,voids:r}),g=P.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=P.pointRef(e,a),y=a.path.length-o,[,b]=f,x=a.path.slice(0,y),S=o===0?a.offset:a.path[y]+0;for(var[C,w]of P.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&P.isVoid(e,C))break;var ee=d.current,E=P.isEnd(e,ee,w);if(s||!d||!P.isEdge(e,ee,w)){T=!0;var D=F.extractProps(C);e.apply({type:`split_node`,path:w,position:S,properties:D})}S=w[w.length-1]+(T||E?1:0)}if(t.at==null){var te=v.current||P.end(e,[]);B.select(e,te)}d.unref(),v.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;B.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=I.isPath(a)?Gl(e,a):t=>P.isBlock(e,t),I.isPath(a)&&(a=P.range(e,a));var s=R.isRange(a)?P.rangeRef(e,a):null,c=P.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return P.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=P.node(e,n),o=P.range(e,n);r&&s&&(o=R.intersection(s.current,o)),B.liftNodes(e,{at:o,match:e=>N.isAncestor(a)&&a.children.includes(e),voids:i})};for(var d of l)u(d);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=I.isPath(s)?Gl(e,s):e.isInline(t)?t=>P.isInline(e,t)||z.isText(t):t=>P.isBlock(e,t),i&&R.isRange(s)){var[c,l]=R.edges(s),u=P.rangeRef(e,s,{affinity:`inward`});B.splitNodes(e,{at:l,match:o,voids:a}),B.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??B.select(e,s)}for(var[,d]of Array.from(P.nodes(e,{at:s,match:e.isInline(t)?t=>P.isBlock(e,t):e=>P.isEditor(e),mode:`lowest`,voids:a}))){var f=R.isRange(s)?R.intersection(s,P.range(e,d)):s;if(f){var p=Array.from(P.nodes(e,{at:f,match:o,mode:r,voids:a}));if(p.length>0&&function(){var[n]=p,r=p[p.length-1],[,i]=n,[,o]=r;if(i.length===0&&o.length===0)return`continue`;var s=I.equals(i,o)?I.parent(i):I.common(i,o),c=P.range(e,i,o),[l]=P.node(e,s),u=s.length+1,d=I.next(o.slice(0,u)),f=Ul(Ul({},t),{},{children:[]});B.insertNodes(e,f,{at:d,voids:a}),B.moveNodes(e,{at:c,match:e=>N.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},Wl=(e,t)=>{if(N.isElement(t)){var n=t;return!!P.isVoid(e,t)||n.children.length===1&&Wl(e,n.children[0])}return!P.isEditor(t)},vne=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,n]=R.edges(t),r=P.pointRef(e,n);return B.delete(e,{at:t}),r.unref()},Gl=(e,t)=>{var[n]=P.node(e,t);return e=>e===n};function Kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var yne={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)B.select(e,n.anchor);else if(t===`focus`)B.select(e,n.focus);else if(t===`start`){var[r]=R.edges(n);B.select(e,r)}else if(t===`end`){var[,i]=R.edges(n);B.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:`set_selection`,properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:i=`character`,reverse:a=!1}=t,{edge:o=null}=t;if(n){o===`start`&&(o=R.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=R.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?P.before(e,s,l):P.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?P.before(e,c,l):P.after(e,c,l);f&&(u.focus=f)}B.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=P.range(e,t),n)B.setSelection(e,t);else{if(!R.isRange(t))throw Error(`When setting the selection and the current selection is \`null\` you must provide at least an \`anchor\` and \`focus\`, but you passed: ${JSON.stringify(t)}`);e.apply({type:`set_selection`,properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:r}=e,{edge:i=`both`}=n;if(r){i===`start`&&(i=R.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=R.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;B.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:ql(ql({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!L.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!L.equals(t.focus,n.focus)||a!==`anchor`&&a!==`focus`&&t[a]!==n[a])&&(r[a]=n[a],i[a]=t[a]);Object.keys(r).length>0&&e.apply({type:`set_selection`,properties:r,newProperties:i})}}},bne={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};P.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r=`character`,distance:i=1,voids:a=!1}=t,{at:o=e.selection,hanging:s=!1}=t;if(o){if(R.isRange(o)&&R.isCollapsed(o)&&(o=o.anchor),L.isPoint(o)){var c=P.void(e,{at:o,mode:`highest`});if(!a&&c){var[,l]=c;o=l}else{var u={unit:r,distance:i};o={anchor:o,focus:n?P.before(e,o,u)||P.start(e,[]):P.after(e,o,u)||P.end(e,[])},s=!0}}if(I.isPath(o))B.removeNodes(e,{at:o,voids:a});else if(!R.isCollapsed(o)){if(!s){var[,d]=R.edges(o),f=P.end(e,[]);L.equals(d,f)||(o=P.unhangRange(e,o,{voids:a}))}var[p,m]=R.edges(o),h=P.above(e,{match:t=>P.isBlock(e,t),at:p,voids:a}),g=P.above(e,{match:t=>P.isBlock(e,t),at:m,voids:a}),_=h&&g&&!I.equals(h[1],g[1]),v=I.equals(p.path,m.path),y=a?null:P.void(e,{at:p,mode:`highest`}),b=a?null:P.void(e,{at:m,mode:`highest`});if(y){var x=P.before(e,p);x&&h&&I.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=P.after(e,m);S&&g&&I.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of P.nodes(e,{at:o,voids:a})){var[ee,E]=T;C&&I.compare(E,C)===0||(!a&&P.isVoid(e,ee)||!I.isCommon(E,p.path)&&!I.isCommon(E,m.path))&&(w.push(T),C=E)}var D=Array.from(w,(t=>{var[,n]=t;return P.pathRef(e,n)})),te=P.pointRef(e,p),ne=P.pointRef(e,m);if(!v&&!y){var re=te.current,[ie]=P.leaf(e,re),{path:O}=re,{offset:ae}=p,k=ie.text.slice(ae);k.length>0&&e.apply({type:`remove_text`,path:O,offset:ae,text:k})}for(var oe of D){var se=oe.unref();B.removeNodes(e,{at:se,voids:a})}if(!b){var ce=ne.current,[le]=P.leaf(e,ce),{path:ue}=ce,de=v?p.offset:0,fe=le.text.slice(de,m.offset);fe.length>0&&e.apply({type:`remove_text`,path:ue,offset:de,text:fe})}!v&&_&&ne.current&&te.current&&B.mergeNodes(e,{at:ne.current,hanging:!0,voids:a});var pe=n?te.unref()||ne.unref():ne.unref()||te.unref();t.at==null&&pe&&B.select(e,pe)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(R.isRange(a))if(r||(a=P.unhangRange(e,a)),R.isCollapsed(a))a=a.anchor;else{var[,o]=R.edges(a);if(!i&&P.void(e,{at:o}))return;var s=P.pointRef(e,o);B.delete(e,{at:a}),a=s.unref()}else I.isPath(a)&&(a=P.start(e,a));if(i||!P.void(e,{at:a})){var c=P.above(e,{at:a,match:t=>P.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;P.isEnd(e,a,l)?a=P.after(e,l):P.isStart(e,a,l)&&(a=P.before(e,l))}var[,u]=P.above(e,{match:t=>P.isBlock(e,t),at:a,voids:i}),d=P.isStart(e,a,u),f=P.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=F.first({children:t},[]),[,_]=F.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&I.isAncestor(r,g)&&N.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&I.isAncestor(r,_)&&N.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of F.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[ee]of v)N.isElement(ee)&&!e.isInline(ee)?(w=!1,T=!0,S.push(ee)):w?x.push(ee):C.push(ee);var[E]=P.nodes(e,{at:a,match:t=>z.isText(t)||P.isInline(e,t),mode:`highest`,voids:i}),[,D]=E,te=P.isStart(e,a,D),ne=P.isEnd(e,a,D),re=P.pathRef(e,f?I.next(u):u),ie=P.pathRef(e,ne?I.next(D):D),O=P.pathRef(e,u);B.splitNodes(e,{at:a,match:t=>T?P.isBlock(e,t):z.isText(t)||P.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var ae=P.pathRef(e,!te||te&&ne?I.next(D):D);if(B.insertNodes(e,x,{at:ae.current,match:t=>z.isText(t)||P.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&B.delete(e,{at:O.unref(),voids:i}),B.insertNodes(e,S,{at:re.current,match:t=>P.isBlock(e,t),mode:`lowest`,voids:i}),B.insertNodes(e,C,{at:ie.current,match:t=>z.isText(t)||P.isInline(e,t),mode:`highest`,voids:i}),!n.at){var k=C.length>0?I.previous(ie.current):S.length>0?I.previous(re.current):I.previous(ae.current),oe=P.end(e,k);B.select(e,oe)}ae.unref(),re.unref(),ie.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};P.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(I.isPath(i)&&(i=P.range(e,i)),R.isRange(i))if(R.isCollapsed(i))i=i.anchor;else{var a=R.end(i);if(!r&&P.void(e,{at:a}))return;var o=P.pointRef(e,a);B.delete(e,{at:i,voids:r}),i=o.unref(),B.setSelection(e,{anchor:i,focus:i})}if(r||!P.void(e,{at:i})){var{path:s,offset:c}=i;t.length>0&&e.apply({type:`insert_text`,path:s,offset:c,text:t})}}}))}};function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Jl(Object(n),!0).forEach((function(t){pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var B=Yl(Yl(Yl(Yl({},mne),_ne),yne),bne),Xl=`[object Map]`,Zl=`[object Set]`,xne=/^\[object .+?Constructor\]$/,Sne=/^(?:0|[1-9]\d*)$/,Cne=`[\\ud800-\\udfff]`,Ql=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,$l=`\\ud83c[\\udffb-\\udfff]`,eu=`[^\\ud800-\\udfff]`,tu=`(?:\\ud83c[\\udde6-\\uddff]){2}`,nu=`[\\ud800-\\udbff][\\udc00-\\udfff]`,ru=`(?:`+Ql+`|`+$l+`)?`,wne=`[\\ufe0e\\ufe0f]?`+ru+(`(?:\\u200d(?:`+[eu,tu,nu].join(`|`)+`)[\\ufe0e\\ufe0f]?`+ru+`)*`),Tne=`(?:`+[eu+Ql+`?`,Ql,tu,nu,Cne].join(`|`)+`)`,Ene=RegExp($l+`(?=`+$l+`)|`+Tne+wne,`g`),Dne=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),One=typeof e==`object`&&e&&e.Object===Object&&e,kne=typeof self==`object`&&self&&self.Object===Object&&self,iu=One||kne||Function(`return this`)();function Ane(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,(function(t){return e[t]}))}function jne(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Mne(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Nne(e){return function(e){return Dne.test(e)}(e)?function(e){return e.match(Ene)||[]}(e):function(e){return e.split(``)}(e)}var au,ou,Pne=Function.prototype,su=Object.prototype,cu=iu[`__core-js_shared__`],lu=function(){var e=/[^.]+$/.exec(cu&&cu.keys&&cu.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),uu=Pne.toString,du=su.hasOwnProperty,fu=su.toString,pu=RegExp(`^`+uu.call(du).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),mu=iu.Symbol,hu=mu?mu.iterator:void 0,Fne=su.propertyIsEnumerable,Ine=(au=Object.keys,ou=Object,function(e){return au(ou(e))}),gu=ku(iu,`DataView`),_u=ku(iu,`Map`),vu=ku(iu,`Promise`),yu=ku(iu,`Set`),bu=ku(iu,`WeakMap`),xu=ju(gu),Su=ju(_u),Cu=ju(vu),wu=ju(yu),Tu=ju(bu);function Eu(e,t){var n=Mu(e)||function(e){return function(e){return Iu(e)&&Nu(e)}(e)&&du.call(e,`callee`)&&(!Fne.call(e,`callee`)||fu.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!du.call(e,a)||i&&(a==`length`||Lne(a,r))||n.push(a);return n}function Du(e){return!Fu(e)||function(e){return!!lu&&lu in e}(e)?!1:(Pu(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?pu:xne).test(ju(e))}function Ou(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||su,t!==r)return Ine(e);var t,n,r,i=[];for(var a in Object(e))du.call(e,a)&&a!=`constructor`&&i.push(a);return i}function ku(e,t){var n=function(e,t){return e?.[t]}(e,t);return Du(n)?n:void 0}var Au=function(e){return fu.call(e)};function Lne(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Sne.test(e))&&e>-1&&e%1==0&&e<t}function ju(e){if(e!=null){try{return uu.call(e)}catch{}try{return e+``}catch{}}return``}(gu&&Au(new gu(new ArrayBuffer(1)))!=`[object DataView]`||_u&&Au(new _u)!=Xl||vu&&Au(vu.resolve())!=`[object Promise]`||yu&&Au(new yu)!=Zl||bu&&Au(new bu)!=`[object WeakMap]`)&&(Au=function(e){var t=fu.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?ju(n):void 0;if(r)switch(r){case xu:return`[object DataView]`;case Su:return Xl;case Cu:return`[object Promise]`;case wu:return Zl;case Tu:return`[object WeakMap]`}return t});var Mu=Array.isArray;function Nu(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Pu(e)}function Pu(e){var t=Fu(e)?fu.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function Fu(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Iu(e){return!!e&&typeof e==`object`}function Rne(e){return e?Ane(e,function(e){return Nu(e)?Eu(e):Ou(e)}(e)):[]}var Lu=function(e){if(!e)return[];if(Nu(e))return function(e){return typeof e==`string`||!Mu(e)&&Iu(e)&&fu.call(e)==`[object String]`}(e)?Nne(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(hu&&e[hu])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[hu]());var t=Au(e);return(t==Xl?jne:t==Zl?Mne:Rne)(e)};function Ru(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function zu(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:Ru(t[n])&&Ru(e[n])&&Object.keys(t[n]).length>0&&zu(e[n],t[n])}))}var Bu={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 Vu(){var e=typeof document<`u`?document:{};return zu(e,Bu),e}var zne={document:Bu,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return``}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<`u`&&clearTimeout(e)}};function Hu(){var e=typeof window<`u`?window:{};return zu(e,zne),e}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uu(e)}function Wu(e,t){return Wu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wu(e,t)}function Gu(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}function Ku(e,t,n){return Ku=Gu()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Wu(i,n.prototype),i},Ku.apply(null,arguments)}function qu(e){var t=typeof Map==`function`?new Map:void 0;return qu=function(e){if(e===null||!function(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ku(e,arguments,Uu(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Wu(n,e)},qu(e)}var Ju=function(e){var t,n;function r(t){var n,r,i;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}(n),i=r.__proto__,Object.defineProperty(r,`__proto__`,{get:function(){return i},set:function(e){i.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(qu(Array));function Yu(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Yu(e)):t.push(e)})),t}function Xu(e,t){return Array.prototype.filter.call(e,t)}function V(e,t){var n=Hu(),r=Vu(),i=[];if(!t&&e instanceof Ju)return e;if(!e)return new Ju(i);if(typeof e==`string`){var a=e.trim();if(a.indexOf(`<`)>=0&&a.indexOf(`>`)>=0){var o=`div`;a.indexOf(`<li`)===0&&(o=`ul`),a.indexOf(`<tr`)===0&&(o=`tbody`),a.indexOf(`<td`)!==0&&a.indexOf(`<th`)!==0||(o=`tr`),a.indexOf(`<tbody`)===0&&(o=`table`),a.indexOf(`<option`)===0&&(o=`select`);var s=r.createElement(o);s.innerHTML=a;for(var c=0;c<s.childNodes.length;c+=1)i.push(s.childNodes[c])}else i=function(e,t){if(typeof e!=`string`)return[e];for(var n=[],r=t.querySelectorAll(e),i=0;i<r.length;i+=1)n.push(r[i]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)i.push(e);else if(Array.isArray(e)){if(e instanceof Ju)return e;i=e}return new Ju(function(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}(i))}function Zu(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Yu(t.map((function(e){return e.split(` `)})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Qu(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Yu(t.map((function(e){return e.split(` `)})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function $u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Yu(t.map((function(e){return e.split(` `)})));return Xu(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function ed(e,t){if(arguments.length===1&&typeof e==`string`)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(arguments.length===2)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function td(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function nd(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var i=0;i<e.attributes.length;i+=1){var a=e.attributes[i];a.name.indexOf(`data-`)>=0&&(n[t=a.name.split(`data-`)[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))]=a.value)}for(var o in n)n[o]===`false`?n[o]=!1:n[o]===`true`?n[o]=!0:parseFloat(n[o])===1*n[o]&&(n[o]*=1);return n}}function rd(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()===`select`){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var i=0;i<this.length;i+=1){var a=this[i];if(Array.isArray(e)&&a.multiple&&a.nodeName.toLowerCase()===`select`)for(var o=0;o<a.options.length;o+=1)a.options[o].selected=e.indexOf(a.options[o].value)>=0;else a.value=e}return this}function id(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),V(t).is(i))a.apply(t,n);else for(var r=V(t).parents(),o=0;o<r.length;o+=1)V(r[o]).is(i)&&a.apply(r[o],n)}}function c(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),a.apply(this,t)}typeof t[1]==`function`&&(r=t[0],a=t[1],o=t[2],i=void 0),o||=!1;for(var l,u=r.split(` `),d=0;d<this.length;d+=1){var f=this[d];if(i)for(l=0;l<u.length;l+=1){var p=u[l];f.dom7LiveListeners||={},f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:a,proxyListener:s}),f.addEventListener(p,s,o)}else for(l=0;l<u.length;l+=1){var m=u[l];f.dom7Listeners||={},f.dom7Listeners[m]||(f.dom7Listeners[m]=[]),f.dom7Listeners[m].push({listener:a,proxyListener:c}),f.addEventListener(m,c,o)}}return this}function ad(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];typeof t[1]==`function`&&(r=t[0],a=t[1],o=t[2],i=void 0),o||=!1;for(var s=r.split(` `),c=0;c<s.length;c+=1)for(var l=s[c],u=0;u<this.length;u+=1){var d=this[u],f=void 0;if(!i&&d.dom7Listeners?f=d.dom7Listeners[l]:i&&d.dom7LiveListeners&&(f=d.dom7LiveListeners[l]),f&&f.length)for(var p=f.length-1;p>=0;--p){var m=f[p];a&&m.listener===a||a&&m.listener&&m.listener.dom7proxy&&m.listener.dom7proxy===a?(d.removeEventListener(l,m.proxyListener,o),f.splice(p,1)):a||(d.removeEventListener(l,m.proxyListener,o),f.splice(p,1))}}return this}function od(){var e=Hu();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function sd(){var e=Hu();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function cd(){if(this.length>0){var e=Hu(),t=Vu(),n=this[0],r=n.getBoundingClientRect(),i=t.body,a=n.clientTop||i.clientTop||0,o=n.clientLeft||i.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,c=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-a,left:r.left+c-o}}return null}function ld(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function ud(){for(var e=Hu(),t=0;t<this.length;t+=1){var n=this[t];n.style.display===`none`&&(n.style.display=``),e.getComputedStyle(n,null).getPropertyValue(`display`)===`none`&&(n.style.display=`block`)}return this}function dd(e,t){var n,r=Hu();if(arguments.length===1){if(typeof e!=`string`){for(n=0;n<this.length;n+=1)for(var i in e)this[n].style[i]=e[i];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e==`string`){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function fd(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function pd(e){return V(Xu(this,e))}function md(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function hd(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function gd(e){var t,n,r=Hu(),i=Vu(),a=this[0];if(!a||e===void 0)return!1;if(typeof e==`string`){if(a.matches)return a.matches(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);for(t=V(e),n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}if(e===i)return a===i;if(e===r)return a===r;if(e.nodeType||e instanceof Ju){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function _d(){for(var e,t=Vu(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if(typeof e==`string`){var i=t.createElement(`div`);for(i.innerHTML=e;i.firstChild;)this[r].appendChild(i.firstChild)}else if(e instanceof Ju)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function vd(e){var t,n,r=Vu();for(t=0;t<this.length;t+=1)if(typeof e==`string`){var i=r.createElement(`div`);for(i.innerHTML=e,n=i.childNodes.length-1;n>=0;--n)this[t].insertBefore(i.childNodes[n],this[t].childNodes[0])}else if(e instanceof Ju)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function yd(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?V(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return V(t)}function bd(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?V(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return V(t)}function xd(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return V(t)}function Sd(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,i=0;i<r.length;i+=1)e&&!V(r[i]).is(e)||t.push(r[i]);return V(t)}function Cd(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function wd(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=``}}return this}V.fn=Ju.prototype;var Td=`resize scroll`.split(` `);function Ed(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n[0]===void 0){for(var i=0;i<this.length;i+=1)Td.indexOf(e)<0&&(e in this[i]?this[i][e]():V(this[i]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var Dd=Ed(`click`),Od=Ed(`focus`),Bne=`[object GeneratorFunction]`,Vne=/^(?:0|[1-9]\d*)$/;function Hne(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var kd=Object.prototype,Ad=kd.hasOwnProperty,jd=kd.toString,Une=kd.propertyIsEnumerable,Wne=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Gne(e,t){var n=Pd(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&Fd(e)}(e)&&Ad.call(e,`callee`)&&(!Une.call(e,`callee`)||jd.call(e)==`[object Arguments]`)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!Ad.call(e,a)||i&&(a==`length`||Yne(a,r))||n.push(a);return n}var Md,Nd,Kne=(Md=function(e,t){return e&&qne(e,t,Xne)},function(e,t){if(e==null)return e;if(!Fd(e))return Md(e,t);for(var n=e.length,r=Nd?n:-1,i=Object(e);(Nd?r--:++r<n)&&!1!==t(i[r],r,i););return e}),qne=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}();function Jne(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||kd,t!==r)return Wne(e);var t,n,r,i=[];for(var a in Object(e))Ad.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Yne(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Vne.test(e))&&e>-1&&e%1==0&&e<t}var Pd=Array.isArray;function Fd(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}(e)?jd.call(e):``;return t==`[object Function]`||t==Bne}(e)}function Xne(e){return Fd(e)?Gne(e):Jne(e)}function Zne(e){return e}var Id=function(e,t){return(Pd(e)?Hne:Kne)(e,typeof t==`function`?t:Zne)},Ld=(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?`_`:`-`}return t},Qne=/^\s+|\s+$/g,$ne=/^[-+]0x[0-9a-f]+$/i,ere=/^0b[01]+$/i,tre=/^0o[0-7]+$/i,nre=parseInt,rre=typeof e==`object`&&e&&e.Object===Object&&e,ire=typeof self==`object`&&self&&self.Object===Object&&self,are=rre||ire||Function(`return this`)(),ore=Object.prototype.toString,sre=Math.max,cre=Math.min,Rd=function(){return are.Date.now()};function lre(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=Rd();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?cre(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=Rd(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=Bd(t)||0,zd(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?sre(Bd(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(Rd())},v}function zd(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Bd(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&ore.call(e)==`[object Symbol]`}(e))return NaN;if(zd(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=zd(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Qne,``);var n=ere.test(e);return n||tre.test(e)?nre(e.slice(2),n?2:8):$ne.test(e)?NaN:+e}var Vd=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return zd(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),lre(e,t,{leading:r,maxWait:t,trailing:i})},ure={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function Hd(e,t,n,r,i){return{sel:e,data:t,children:n,text:r,elm:i,key:t===void 0?void 0:t.key}}var Ud=Array.isArray;function Wd(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function Gd(e){return e===void 0}function Kd(e){return e!==void 0}var qd=Hd(``,{},[],void 0,void 0);function Jd(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function Yd(e,t,n){let r={};for(let i=t;i<=n;++i){let t=e[i]?.key;t!==void 0&&(r[t]=i)}return r}var Xd=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function Zd(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?ure:t;for(let t of Xd)for(let r of e){let e=r[t];e!==void 0&&n[t].push(e)}function i(e){let t=e.id?`#`+e.id:``,n=e.getAttribute(`class`),i=n?`.`+n.split(` `).join(`.`):``;return Hd(r.tagName(e).toLowerCase()+t+i,{},[],void 0,e)}function a(e,t){return function(){if(--t==0){let t=r.parentNode(e);r.removeChild(t,e)}}}function o(e,t){var i;let a,s=e.data;if(s!==void 0){let t=s.hook?.init;Kd(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)Gd(e.text)&&(e.text=``),e.elm=r.createComment(e.text);else if(l!==void 0){let u=l.indexOf(`#`),d=l.indexOf(`.`,u),f=u>0?u:l.length,p=d>0?d:l.length,m=u!==-1||d!==-1?l.slice(0,Math.min(f,p)):l,h=e.elm=Kd(s)&&Kd(a=s.ns)?r.createElementNS(a,m,s):r.createElement(m,s);for(f<p&&h.setAttribute(`id`,l.slice(f+1,p)),d>0&&h.setAttribute(`class`,l.slice(p+1).replace(/\./g,` `)),a=0;a<n.create.length;++a)n.create[a](qd,e);if(Ud(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else Wd(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;Kd(g)&&((i=g.create)==null||i.call(g,qd,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function s(e,t,n,i,a,s){for(;i<=a;++i){let a=n[i];a!=null&&r.insertBefore(e,o(a,s),t)}}function c(e){var t,r;let i=e.data;if(i!==void 0){(r=(t=i?.hook)?.destroy)==null||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(e.children!==void 0)for(let t=0;t<e.children.length;++t){let n=e.children[t];n!=null&&typeof n!=`string`&&c(n)}}}function l(e,t,i,o){for(;i<=o;++i){let o,s,l=t[i];if(l!=null)if(Kd(l.sel)){c(l),o=n.remove.length+1,s=a(l.elm,o);for(let e=0;e<n.remove.length;++e)n.remove[e](l,s);let e=l?.data?.hook?.remove;Kd(e)?e(l,s):s()}else r.removeChild(e,l.elm)}}function u(e,t,i){var a,c,d,f;let p=t.data?.hook;(a=p?.prepatch)==null||a.call(p,e,t);let m=t.elm=e.elm,h=e.children,g=t.children;if(e!==t){if(t.data!==void 0){for(let r=0;r<n.update.length;++r)n.update[r](e,t);(d=(c=t.data.hook)?.update)==null||d.call(c,e,t)}Gd(t.text)?Kd(h)&&Kd(g)?h!==g&&function(e,t,n,i){let a,c,d,f,p=0,m=0,h=t.length-1,g=t[0],_=t[h],v=n.length-1,y=n[0],b=n[v];for(;p<=h&&m<=v;)g==null?g=t[++p]:_==null?_=t[--h]:y==null?y=n[++m]:b==null?b=n[--v]:Jd(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):Jd(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):Jd(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):Jd(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=Yd(t,p,h)),c=a[y.key],Gd(c)?r.insertBefore(e,o(y,i),g.elm):(d=t[c],d.sel===y.sel?(u(d,y,i),t[c]=void 0,r.insertBefore(e,d.elm,g.elm)):r.insertBefore(e,o(y,i),g.elm)),y=n[++m]);(p<=h||m<=v)&&(p>h?(f=n[v+1]==null?null:n[v+1].elm,s(e,f,n,m,v,i)):l(e,t,p,h))}(m,h,g,i):Kd(g)?(Kd(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):Kd(h)?l(m,h,0,h.length-1):Kd(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(Kd(h)&&l(m,h,0,h.length-1),r.setTextContent(m,t.text)),(f=p?.postpatch)==null||f.call(p,e,t)}}return function(e,t){let a,s,c,d=[];for(a=0;a<n.pre.length;++a)n.pre[a]();for(function(e){return e.sel!==void 0}(e)||(e=i(e)),Jd(e,t)?u(e,t,d):(s=e.elm,c=r.parentNode(s),o(t,d),c!==null&&(r.insertBefore(c,t.elm,r.nextSibling(s)),l(c,[e],0,0))),a=0;a<d.length;++a)d[a].data.hook.insert(d[a]);for(a=0;a<n.post.length;++a)n.post[a]();return t}}function Qd(e,t,n){if(e.ns=`http://www.w3.org/2000/svg`,n!==`foreignObject`&&t!==void 0)for(let e=0;e<t.length;++e){let n=t[e].data;n!==void 0&&Qd(n,t[e].children,t[e].sel)}}function $d(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(Ud(t)?r=t:Wd(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),Ud(n)?r=n:Wd(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)Wd(r[a])&&(r[a]=Hd(void 0,void 0,void 0,r[a],void 0));return e[0]!==`s`||e[1]!==`v`||e[2]!==`g`||e.length!==3&&e[3]!==`.`&&e[3]!==`#`||Qd(o,r,e),Hd(e,o,r,i,void 0)}function ef(e,t){let n,r=t.elm,i=e.data.attrs,a=t.data.attrs;if((i||a)&&i!==a){for(n in i||={},a||={},a){let e=a[n];i[n]!==e&&(!0===e?r.setAttribute(n,``):!1===e?r.removeAttribute(n):n.charCodeAt(0)===120?n.charCodeAt(3)===58?r.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,n,e):n.charCodeAt(5)===58?r.setAttributeNS(`http://www.w3.org/1999/xlink`,n,e):r.setAttribute(n,e):r.setAttribute(n,e))}for(n in i)n in a||r.removeAttribute(n)}}var tf={create:ef,update:ef};function nf(e,t){let n,r,i=t.elm,a=e.data.class,o=t.data.class;if((a||o)&&a!==o){for(r in a||={},o||={},a)a[r]&&!Object.prototype.hasOwnProperty.call(o,r)&&i.classList.remove(r);for(r in o)n=o[r],n!==a[r]&&i.classList[n?`add`:`remove`](r)}}var rf={create:nf,update:nf},af=/[A-Z]/g;function of(e,t){let n=t.elm,r,i=e.data.dataset,a=t.data.dataset;if(!i&&!a||i===a)return;i||={},a||={};let o=n.dataset;for(r in i)a[r]||(o?r in o&&delete o[r]:n.removeAttribute(`data-`+r.replace(af,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(af,`-$&`).toLowerCase(),a[r]))}var sf={create:of,update:of};function cf(e,t,n){if(typeof e==`function`)e.call(t,n,t);else if(typeof e==`object`)for(let r=0;r<e.length;r++)cf(e[r],t,n)}function lf(e,t){let n=e.type,r=t.data.on;r&&r[n]&&cf(r[n],t,e)}function uf(e,t){let n=e.data.on,r=e.listener,i=e.elm,a=t&&t.data.on,o=t&&t.elm,s;if(n!==a){if(n&&r)if(a)for(s in n)a[s]||i.removeEventListener(s,r,!1);else for(s in n)i.removeEventListener(s,r,!1);if(a){let r=t.listener=e.listener||function e(t){lf(t,e.vnode)};if(r.vnode=t,n)for(s in a)n[s]||o.addEventListener(s,r,!1);else for(s in a)o.addEventListener(s,r,!1)}}}var df={create:uf,update:uf,destroy:uf};function ff(e,t){let n,r,i,a=t.elm,o=e.data.props,s=t.data.props;if((o||s)&&o!==s)for(n in o||={},s||={},s)r=s[n],i=o[n],i===r||n===`value`&&a[n]===r||(a[n]=r)}var pf={create:ff,update:ff},mf=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,hf=!1;function gf(e,t,n){(function(e){mf((function(){mf(e)}))})((function(){e[t]=n}))}function _f(e,t){let n,r,i=t.elm,a=e.data.style,o=t.data.style;if(!a&&!o||a===o)return;a||={},o||={};let s=`delayed`in a;for(r in a)o[r]||(r[0]===`-`&&r[1]===`-`?i.style.removeProperty(r):i.style[r]=``);for(r in o)if(n=o[r],r===`delayed`&&o.delayed)for(let e in o.delayed)n=o.delayed[e],s&&n===a.delayed[e]||gf(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var vf={pre:function(){hf=!1},create:_f,update:_f,destroy:function(e){let t,n,r=e.elm,i=e.data.style;if(i&&(t=i.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){let n=e.data.style;if(!n||!n.remove)return void t();let r;hf||=(e.elm.offsetLeft,!0);let i=e.elm,a=0,o=n.remove,s=0,c=[];for(r in o)c.push(r),i.style[r]=o[r];let l=getComputedStyle(i)[`transition-property`].split(`, `);for(;a<l.length;++a)c.indexOf(l[a])!==-1&&s++;i.addEventListener(`transitionend`,(function(e){e.target===i&&--s,s===0&&t()}))}};function yf(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?yf(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(Hd(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function H(e,t,...n){let r=yf(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?$d(e,t,r[0].text):$d(e,t,r)}H||={};var bf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Sf=`\\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`,Cf=`[\\ud800-\\udfff]`,wf=`[`+Sf+`]`,Tf=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Ef=`\\d+`,Df=`[\\u2700-\\u27bf]`,Of=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,kf=`[^\\ud800-\\udfff`+Sf+Ef+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,Af=`\\ud83c[\\udffb-\\udfff]`,jf=`[^\\ud800-\\udfff]`,Mf=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Nf=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Pf=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,Ff=`(?:`+Of+`|`+kf+`)`,If=`(?:`+Pf+`|`+kf+`)`,Lf=`(?:`+Tf+`|`+Af+`)?`,Rf=`[\\ufe0e\\ufe0f]?`+Lf+(`(?:\\u200d(?:`+[jf,Mf,Nf].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Lf+`)*`),zf=`(?:`+[Df,Mf,Nf].join(`|`)+`)`+Rf,Bf=`(?:`+[jf+Tf+`?`,Tf,Mf,Nf,Cf].join(`|`)+`)`,Vf=RegExp(`['’]`,`g`),Hf=RegExp(Tf,`g`),Uf=RegExp(Af+`(?=`+Af+`)|`+Bf+Rf,`g`),Wf=RegExp([Pf+`?`+Of+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[wf,Pf,`$`].join(`|`)+`)`,If+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[wf,Pf+Ff,`$`].join(`|`)+`)`,Pf+`?`+Ff+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,Pf+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,Ef,zf].join(`|`),`g`),Gf=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),Kf=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qf=typeof e==`object`&&e&&e.Object===Object&&e,Jf=typeof self==`object`&&self&&self.Object===Object&&self,Yf=qf||Jf||Function(`return this`)(),Xf,Zf=(Xf={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},function(e){return Xf?.[e]});function Qf(e){return Gf.test(e)}function $f(e){return Qf(e)?function(e){return e.match(Uf)||[]}(e):function(e){return e.split(``)}(e)}var ep=Object.prototype.toString,tp=Yf.Symbol,np=tp?tp.prototype:void 0,rp=np?np.toString:void 0;function ip(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&ep.call(e)==`[object Symbol]`}(e))return rp?rp.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ap(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}(e,t,n)}function op(e){return e==null?``:ip(e)}for(var sp,cp=(sp=function(e,t,n){return t=t.toLowerCase(),e+(n?up(op(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}(function(e,t,n){return e=op(e),(t=n?void 0:t)===void 0?function(e){return Kf.test(e)}(e)?function(e){return e.match(Wf)||[]}(e):function(e){return e.match(bf)||[]}(e):e.match(t)||[]}(function(e){return(e=op(e))&&e.replace(xf,Zf).replace(Hf,``)}(e).replace(Vf,``)),sp,``)}),lp,up=(lp=`toUpperCase`,function(e){var t=Qf(e=op(e))?$f(e):void 0,n=t?t[0]:e.charAt(0),r=t?ap(t,1).join(``):e.slice(1);return n[lp]()+r}),dp=cp,fp=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),pp={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},mp={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:fp?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},hp={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},gp=1;gp<20;gp++)hp[`f`+gp]=111+gp;function _p(e,t,n){t&&!(`byKey`in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},i=(e=e.replace(`++`,`+add`)).split(`+`),a=i.length;for(var o in pp)r[pp[o]]=!1;var s=!0,c=!1,l=void 0;try{for(var u,d=i[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value,p=f.endsWith(`?`)&&f.length>1;p&&(f=f.slice(0,-1));var m=yp(f),h=pp[m];if(f.length>1&&!h&&!mp[f]&&!hp[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=vp(f)),h&&(r[h]=!p||null)}}catch(e){c=!0,l=e}finally{try{!s&&d.return&&d.return()}finally{if(c)throw l}}return r}(e,t)})),i=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],i=void 0;if(r!=null&&((i=n===`key`&&t.key!=null?t.key.toLowerCase():n===`which`?r===91&&t.which===93?91:t.which:t[n])!=null||!1!==r)&&i!==r)return!1}return!0}(t,e)}))};return n==null?i:i(n)}function vp(e){return e=yp(e),hp[e]||e.toUpperCase().charCodeAt(0)}function yp(e){return e=e.toLowerCase(),e=mp[e]||e}var bp=_p,xp=function(e,t){return _p(e,{byKey:!0},t)},Sp=/^\s+|\s+$/g,Cp=/^[-+]0x[0-9a-f]+$/i,wp=/^0b[01]+$/i,Tp=/^0o[0-7]+$/i,Ep=parseInt,dre=typeof e==`object`&&e&&e.Object===Object&&e,fre=typeof self==`object`&&self&&self.Object===Object&&self,pre=dre||fre||Function(`return this`)(),mre=Object.prototype.toString,hre=Math.max,gre=Math.min,Dp=function(){return pre.Date.now()};function Op(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function kp(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&mre.call(e)==`[object Symbol]`}(e))return NaN;if(Op(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Op(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Sp,``);var n=wp.test(e);return n||Tp.test(e)?Ep(e.slice(2),n?2:8):Cp.test(e)?NaN:+e}var Ap,jp=function(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=Dp();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?gre(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=Dp(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=kp(t)||0,Op(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?hre(kp(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(Dp())},v},Mp=n((function(t,n){var r=`__lodash_hash_undefined__`,i=9007199254740991,a=`[object Arguments]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Function]`,l=`[object GeneratorFunction]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,ee=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,te=`[object Uint32Array]`,ne=/\w*$/,re=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,O={};O[a]=O[`[object Array]`]=O[y]=O[b]=O[o]=O[s]=O[x]=O[S]=O[C]=O[w]=O[T]=O[u]=O[d]=O[f]=O[m]=O[h]=O[g]=O[_]=O[ee]=O[E]=O[D]=O[te]=!0,O[`[object Error]`]=O[c]=O[v]=!1;var ae=typeof e==`object`&&e&&e.Object===Object&&e,k=typeof self==`object`&&self&&self.Object===Object&&self,oe=ae||k||Function(`return this`)(),se=n&&!n.nodeType&&n,ce=se&&t&&!t.nodeType&&t,le=ce&&ce.exports===se;function ue(e,t){return e.set(t[0],t[1]),e}function de(e,t){return e.add(t),e}function fe(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function pe(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function me(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function he(e,t){return function(n){return e(t(n))}}function ge(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var _e=Array.prototype,ve=Function.prototype,ye=Object.prototype,be=oe[`__core-js_shared__`],xe=function(){var e=/[^.]+$/.exec(be&&be.keys&&be.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Se=ve.toString,Ce=ye.hasOwnProperty,we=ye.toString,Te=RegExp(`^`+Se.call(Ce).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),Ee=le?oe.Buffer:void 0,De=oe.Symbol,Oe=oe.Uint8Array,ke=he(Object.getPrototypeOf,Object),Ae=Object.create,je=ye.propertyIsEnumerable,Me=_e.splice,A=Object.getOwnPropertySymbols,Ne=Ee?Ee.isBuffer:void 0,Pe=he(Object.keys,Object),Fe=ot(oe,`DataView`),Ie=ot(oe,`Map`),Le=ot(oe,`Promise`),Re=ot(oe,`Set`),ze=ot(oe,`WeakMap`),Be=ot(Object,`create`),Ve=dt(Fe),He=dt(Ie),Ue=dt(Le),We=dt(Re),Ge=dt(ze),Ke=De?De.prototype:void 0,qe=Ke?Ke.valueOf:void 0;function Je(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ye(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ze(e){this.__data__=new Ye(e)}function Qe(e,t){var n=pt(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&mt(e)}(e)&&Ce.call(e,`callee`)&&(!je.call(e,`callee`)||we.call(e)==a)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!Ce.call(e,o)||i&&(o==`length`||lt(o,r))||n.push(o);return n}function $e(e,t,n){var r=e[t];Ce.call(e,t)&&ft(r,n)&&(n!==void 0||t in e)||(e[t]=n)}function et(e,t){for(var n=e.length;n--;)if(ft(e[n][0],t))return n;return-1}function tt(e,t,n,r,i,p,v){var re;if(r&&(re=p?r(e,i,p,v):r(e)),re!==void 0)return re;if(!_t(e))return e;var ie=pt(e);if(ie){if(re=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&Ce.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}(e),!t)return function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e,re)}else{var ae=ct(e),k=ae==c||ae==l;if(ht(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(ae==f||ae==a||k&&!p){if(pe(e))return p?e:{};if(re=function(e){return typeof e.constructor!=`function`||ut(e)?{}:(t=ke(e),_t(t)?Ae(t):{});var t}(k?{}:e),!t)return function(e,t){return it(e,st(e),t)}(e,function(e,t){return e&&it(t,vt(t),e)}(re,e))}else{if(!O[ae])return p?e:{};re=function(e,t,n,r){var i=e.constructor;switch(t){case y:return rt(e);case o:case s:return new i(+e);case b:return function(e,t){var n=t?rt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case x:case S:case C:case w:case T:case ee:case E:case D:case te:return function(e,t){var n=t?rt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){return fe(t?n(me(e),!0):me(e),ue,new e.constructor)}(e,r,n);case d:case g:return new i(e);case m:return function(e){var t=new e.constructor(e.source,ne.exec(e));return t.lastIndex=e.lastIndex,t}(e);case h:return function(e,t,n){return fe(t?n(ge(e),!0):ge(e),de,new e.constructor)}(e,r,n);case _:return function(e){return qe?Object(qe.call(e)):{}}(e)}}(e,ae,tt,t)}}v||=new Ze;var oe=v.get(e);if(oe)return oe;if(v.set(e,re),!ie)var se=n?function(e){return function(e,t,n){var r=t(e);return pt(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,vt,st)}(e):vt(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(se||e,(function(i,a){se&&(i=e[a=i]),$e(re,a,tt(i,t,n,r,a,e,v))})),re}function nt(e){return!(!_t(e)||function(e){return!!xe&&xe in e}(e))&&(gt(e)||pe(e)?Te:re).test(dt(e))}function rt(e){var t=new e.constructor(e.byteLength);return new Oe(t).set(new Oe(e)),t}function it(e,t,n,r){n||={};for(var i=-1,a=t.length;++i<a;){var o=t[i],s=r?r(n[o],e[o],o,n,e):void 0;$e(n,o,s===void 0?e[o]:s)}return n}function at(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function ot(e,t){var n=function(e,t){return e?.[t]}(e,t);return nt(n)?n:void 0}Je.prototype.clear=function(){this.__data__=Be?Be(null):{}},Je.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Je.prototype.get=function(e){var t=this.__data__;if(Be){var n=t[e];return n===r?void 0:n}return Ce.call(t,e)?t[e]:void 0},Je.prototype.has=function(e){var t=this.__data__;return Be?t[e]!==void 0:Ce.call(t,e)},Je.prototype.set=function(e,t){return this.__data__[e]=Be&&t===void 0?r:t,this},Ye.prototype.clear=function(){this.__data__=[]},Ye.prototype.delete=function(e){var t=this.__data__,n=et(t,e);return!(n<0)&&(n==t.length-1?t.pop():Me.call(t,n,1),!0)},Ye.prototype.get=function(e){var t=this.__data__,n=et(t,e);return n<0?void 0:t[n][1]},Ye.prototype.has=function(e){return et(this.__data__,e)>-1},Ye.prototype.set=function(e,t){var n=this.__data__,r=et(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Xe.prototype.clear=function(){this.__data__={hash:new Je,map:new(Ie||Ye),string:new Je}},Xe.prototype.delete=function(e){return at(this,e).delete(e)},Xe.prototype.get=function(e){return at(this,e).get(e)},Xe.prototype.has=function(e){return at(this,e).has(e)},Xe.prototype.set=function(e,t){return at(this,e).set(e,t),this},Ze.prototype.clear=function(){this.__data__=new Ye},Ze.prototype.delete=function(e){return this.__data__.delete(e)},Ze.prototype.get=function(e){return this.__data__.get(e)},Ze.prototype.has=function(e){return this.__data__.has(e)},Ze.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ye){var r=n.__data__;if(!Ie||r.length<199)return r.push([e,t]),this;n=this.__data__=new Xe(r)}return n.set(e,t),this};var st=A?he(A,Object):function(){return[]},ct=function(e){return we.call(e)};function lt(e,t){return!!(t??=i)&&(typeof e==`number`||ie.test(e))&&e>-1&&e%1==0&&e<t}function ut(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ye)}function dt(e){if(e!=null){try{return Se.call(e)}catch{}try{return e+``}catch{}}return``}function ft(e,t){return e===t||e!=e&&t!=t}(Fe&&ct(new Fe(new ArrayBuffer(1)))!=b||Ie&&ct(new Ie)!=u||Le&&ct(Le.resolve())!=p||Re&&ct(new Re)!=h||ze&&ct(new ze)!=v)&&(ct=function(e){var t=we.call(e),n=t==f?e.constructor:void 0,r=n?dt(n):void 0;if(r)switch(r){case Ve:return b;case He:return u;case Ue:return p;case We:return h;case Ge:return v}return t});var pt=Array.isArray;function mt(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=i}(e.length)&&!gt(e)}var ht=Ne||function(){return!1};function gt(e){var t=_t(e)?we.call(e):``;return t==c||t==l}function _t(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function vt(e){return mt(e)?Qe(e):function(e){if(!ut(e))return Pe(e);var t=[];for(var n in Object(e))Ce.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}t.exports=function(e){return tt(e,!0,!0)}}));function Np(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var _re=0;function vre(e){return`__private_`+ _re+++`_`+e}function yre(e,t,n){let r=[];return e.forEach((e=>typeof e==`string`?t[Symbol.split](e).forEach(((e,t,i)=>{e!==``&&r.push(e),t<i.length-1&&r.push(n)})):r.push(e))),r}function Pp(e,t){let n=/\$/g,r=[e];if(t==null)return r;for(let e of Object.keys(t))if(e!==`_`){let i=t[e];typeof i==`string`&&(i=n[Symbol.replace](i,`$$$$`)),r=yre(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var Fp=(Ap=vre(`apply`),class{constructor(e){Object.defineProperty(this,Ap,{value:bre}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(Np(this,Ap)[Ap],this):Np(this,Ap)[Ap](e)}translate(e,t){return this.translateArray(e,t).join(``)}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw Error(`missing string: ${e}`);let n=this.locale.strings[e];if(typeof n==`object`){if(t&&t.smart_count!==void 0)return Pp(n[this.locale.pluralize(t.smart_count)],t);throw Error(`Attempted to use a string with plural forms, but no value was given for %{smart_count}`)}return Pp(n,t)}});function bre(e){if(e==null||!e.strings)return;let t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var Ip=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,i,a,o,s){var c=function(e){for(var n=t[e]?t[e]:[],r=e.indexOf(`:`),i=r===-1?[e]:[e.substring(0,r),e.substring(r+1)],a=Object.keys(t),o=0,s=a.length;o<s;o++){var c=a[o];if(c===`*`&&(n=n.concat(t[c])),i.length===2&&i[0]===c){n=n.concat(t[c]);break}}return n}(e);c.length&&function(e,t,n){for(var r=0,i=t.length;r<i&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,c,[n,r,i,a,o,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],i=0,a=r?r.length:0;i<a;i++)r[i]!==t&&n.push(r[i]);n.length?this._fns[e]=n:delete this._fns[e]},e},{urlAlphabet:xre}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},Lp=e=>crypto.getRandomValues(new Uint8Array(e)),Rp=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length);return()=>{let a=``;for(;;){let o=n(i),s=i;for(;s--;)if(a+=e[o[s]&r]||``,a.length===t)return a}}},Sre={nanoid:(e=21)=>{let t=``,n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?`_`:`-`}return t},customAlphabet:(e,t)=>Rp(e,t,Lp),customRandom:Rp,urlAlphabet:xre,random:Lp},zp=function(e){if(typeof e!=`number`||isNaN(e))throw TypeError(`Expected a number, got `+typeof e);var t=e<0,n=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`];if(t&&(e=-e),e<1)return(t?`-`:``)+e+` B`;var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/1024**r);var i=n[r];return e>=10||e%1==0?(t?`-`:``)+e.toFixed(0)+` `+i:(t?`-`:``)+e.toFixed(1)+` `+i};function Bp(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}Bp.prototype.match=function(e){var t,n,r=!0,i=this.parts,a=i.length;if(typeof e==`string`||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||``).split(this.separator),t=0;r&&t<a;t++)i[t]!==`*`&&(r=t<n.length&&i[t]===n[t]);r&&=n}else r=!1;else if(typeof e.splice==`function`)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if(typeof e==`object`)for(var o in r={},e)this.match(o)&&(r[o]=e[o]);return r};var Cre=/[\/\+\.]/,wre=function(e,t){function n(t){var n=function(e,t,n){var r=new Bp(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,Cre);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},Tre=0;function Ere(e){return`__private_`+ Tre+++`_`+e}var Vp=Ere(`publish`),Hp=class{constructor(){Object.defineProperty(this,Vp,{value:Dre}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){let t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}(this,Vp)[Vp](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function Dre(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}Hp.VERSION=`2.0.3`;var Up=function(e){let t=e.lastIndexOf(`.`);return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Wp={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 Gp(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var Ore=function(e){if(e??=typeof navigator<`u`?navigator.userAgent:null,!e)return!0;let t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;let[n,r]=t[1].split(`.`);return n=parseInt(n,10),r=parseInt(r,10),n<15||n===15&&r<15063||n>18||n===18&&r>=18218};function Kp(e){return e<10?`0${e}`:e.toString()}var qp=function(){let e=new Date;return`${Kp(e.getHours())}:${Kp(e.getMinutes())}:${Kp(e.getSeconds())}`},Jp={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${qp()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${qp()}]`,...t)},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${qp()}]`,...t)},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${qp()}]`,...t)}}},kre={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}`}}},Yp=Sre,Xp,Zp;function U(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Are=0;function Qp(e){return`__private_`+ Are+++`_`+e}var{nanoid:jre}=Yp,{justErrorsLogger:Mre,debugLogger:Nre}=Jp,$p=class extends Error{constructor(){super(...arguments),this.isRestriction=!0}};typeof AggregateError>`u`&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});var Pre=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},em=Qp(`plugins`),tm=Qp(`storeUnsubscribe`),nm=Qp(`emitter`),rm=Qp(`preProcessors`),im=Qp(`uploaders`),am=Qp(`postProcessors`),om=Qp(`checkRestrictions`),sm=Qp(`checkMinNumberOfFiles`),cm=Qp(`checkRequiredMetaFieldsOnFile`),lm=Qp(`checkRequiredMetaFields`),um=Qp(`showOrLogErrorAndThrow`),dm=Qp(`assertNewUploadAllowed`),fm=Qp(`checkAndCreateFileStateObject`),pm=Qp(`startIfAutoProceed`),mm=Qp(`addListeners`),hm=Qp(`updateOnlineStatus`),gm=Qp(`createUpload`),_m=Qp(`getUpload`),vm=Qp(`removeUpload`),ym=Qp(`runUpload`);Xp=Symbol.for(`uppy test: getPlugins`),Zp=Symbol.for(`uppy test: createUpload`);var bm=class{constructor(e){Object.defineProperty(this,ym,{value:qre}),Object.defineProperty(this,vm,{value:Kre}),Object.defineProperty(this,_m,{value:Gre}),Object.defineProperty(this,gm,{value:Wre}),Object.defineProperty(this,mm,{value:Ure}),Object.defineProperty(this,pm,{value:Hre}),Object.defineProperty(this,fm,{value:Vre}),Object.defineProperty(this,dm,{value:Bre}),Object.defineProperty(this,um,{value:zre}),Object.defineProperty(this,lm,{value:Rre}),Object.defineProperty(this,cm,{value:Lre}),Object.defineProperty(this,sm,{value:Ire}),Object.defineProperty(this,om,{value:Fre}),Object.defineProperty(this,em,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,tm,{writable:!0,value:void 0}),Object.defineProperty(this,nm,{writable:!0,value:Ip()}),Object.defineProperty(this,rm,{writable:!0,value:new Set}),Object.defineProperty(this,im,{writable:!0,value:new Set}),Object.defineProperty(this,am,{writable:!0,value:new Set}),Object.defineProperty(this,hm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=kre;let t={id:`uppy`,autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new Hp,logger:Mre,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.",`warning`):e&&e.debug&&(this.opts.logger=Nre),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Vd(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Ore(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),U(this,tm)[tm]=this.store.subscribe(((e,t,n)=>{this.emit(`state-update`,e,t,n),this.updateAll(t)})),this.opts.debug&&typeof window<`u`&&(window[this.opts.id]=this),U(this,mm)[mm]()}emit(e){var t=[...arguments].slice(1);U(this,nm)[nm].emit(e,...t)}on(e,t){return U(this,nm)[nm].on(e,t),this}once(e,t){return U(this,nm)[nm].once(e,t),this}off(e,t){return U(this,nm)[nm].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new Fp([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){let e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{let i={...t[r]};i.progress={...i.progress,...e},n[r]=i})),this.setState({files:n,totalProgress:0}),this.emit(`reset-progress`)}addPreProcessor(e){U(this,rm)[rm].add(e)}removePreProcessor(e){return U(this,rm)[rm].delete(e)}addPostProcessor(e){U(this,am)[am].add(e)}removePostProcessor(e){return U(this,am)[am].delete(e)}addUploader(e){U(this,im)[im].add(e)}removeUploader(e){return U(this,im)[im].delete(e)}setMeta(e){let t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log(`Adding metadata:`),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){let n={...this.getState().files};if(!n[e])return void this.log(`Was trying to set metadata for a file that has been removed: `,e);let r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){let{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){let{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),i=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),a=r.filter((e=>!e.progress.uploadStarted)),o=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),s=r.filter((e=>e.progress.uploadStarted)),c=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),u=r.filter((e=>e.error)),d=i.filter((e=>!e.isPaused)),f=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:a,startedFiles:o,uploadStartedFiles:s,pausedFiles:c,completeFiles:l,erroredFiles:u,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:f,isUploadStarted:s.length>0,isAllComplete:t===100&&l.length===r.length&&f.length===0,isAllErrored:!!n&&u.length===r.length,isAllPaused:i.length!==0&&c.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return U(this,om)[om](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){let{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){U(this,dm)[dm](e);let{files:t}=this.getState(),n=U(this,fm)[fm](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit(`file-added`,n),this.emit(`files-added`,[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),U(this,pm)[pm](),n.id}addFiles(e){U(this,dm)[dm]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=U(this,fm)[fm](t,e[i]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit(`file-added`,e)})),this.emit(`files-added`,n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&U(this,pm)[pm](),r.length>0){let e=`Multiple errors occurred while adding files:
`;if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n(`addBulkFilesFailed`,{smart_count:r.length}),details:e},`error`,this.opts.infoTimeout),typeof AggregateError==`function`)throw AggregateError(r,e);{let t=Error(e);throw t.errors=r,t}}}removeFiles(e,t){let{files:n,currentUploads:r}=this.getState(),i={...n},a={...r},o=Object.create(null);function s(e){return o[e]===void 0}e.forEach((e=>{n[e]&&(o[e]=n[e],delete i[e])})),Object.keys(a).forEach((e=>{let t=r[e].fileIDs.filter(s);t.length===0?delete a[e]:a[e]={...r[e],fileIDs:t}}));let c={currentUploads:a,files:i};Object.keys(i).length===0&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();let l=Object.keys(o);l.forEach((e=>{this.emit(`file-removed`,o[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(`, `)}`)}removeFile(e,t){t===void 0&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;let t=!this.getFile(e).isPaused;return this.setFileState(e,{isPaused:t}),this.emit(`upload-pause`,e,t),t}pauseAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!0}})),this.setState({files:e}),this.emit(`pause-all`)}resumeAll(){let e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e}),this.emit(`resume-all`)}retryAll(){let e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{e[t]={...e[t],isPaused:!1,error:null}})),this.setState({files:e,error:null}),this.emit(`retry-all`,t),t.length===0)return Promise.resolve({successful:[],failed:[]});let n=U(this,gm)[gm](t,{forceAllowNewUpload:!0});return U(this,ym)[ym](n)}cancelAll(){this.emit(`cancel-all`);let{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,`cancel-all`),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit(`upload-retry`,e);let t=U(this,gm)[gm]([e],{forceAllowNewUpload:!0});return U(this,ym)[ym](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){let e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(e.length===0)return this.emit(`progress`,0),void this.setState({totalProgress:0});let t=e.filter((e=>e.progress.bytesTotal!=null)),n=e.filter((e=>e.progress.bytesTotal==null));if(t.length===0){let t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),i=Math.round(r/t*100);this.setState({totalProgress:i});return}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0),i=r/t.length;r+=i*n.length;let a=0;t.forEach((e=>{a+=e.progress.bytesUploaded})),n.forEach((e=>{a+=i*(e.progress.percentage||0)/100}));let o=r===0?0:Math.round(a/r*100);o>100&&(o=100),this.setState({totalProgress:o}),this.emit(`progress`,o)}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),!1)):(this.emit(`is-offline`),this.info(this.i18n(`noInternetConnection`),`error`,0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if(typeof e!=`function`)throw TypeError(`Expected a plugin class, but got ${e===null?`null`:typeof e}. Please verify that the plugin was imported and spelled correctly.`);let n=new e(this,t),r=n.id;if(!r)throw Error(`Your plugin must have an id`);if(!n.type)throw Error(`Your plugin must have a type`);let i=this.getPlugin(r);if(i){let e=`Already found a plugin named '${i.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in U(this,em)[em]?U(this,em)[em][n.type].push(n):U(this,em)[em][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(U(this,em)[em])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[Xp](e){return U(this,em)[em][e]}iteratePlugins(e){Object.values(U(this,em)[em]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=U(this,em)[em][e.type],n=t.findIndex((t=>t.id===e.id));n!==-1&&t.splice(n,1);let r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),U(this,tm)[tm](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,U(this,hm)[hm]),window.removeEventListener(`offline`,U(this,hm)[hm]))}hideInfo(){let{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit(`info-hidden`)}info(e,t,n){t===void 0&&(t=`info`),n===void 0&&(n=3e3);let r=typeof e==`object`;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit(`info-visible`)}log(e,t){let{logger:n}=this.opts;switch(t){case`error`:n.error(e);break;case`warning`:n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?U(this,ym)[ym](e):(U(this,vm)[vm](e),Promise.reject(Error(`Nonexistent upload`)))}[Zp](){return U(this,gm)[gm](...arguments)}addResultData(e,t){if(!U(this,_m)[_m](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);let{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;(e=U(this,em)[em].uploader)!=null&&e.length||this.log(`No uploader type plugins are used`,`warning`);let{files:t}=this.getState(),n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(Error(`Not starting the upload because onBeforeUpload returned false`)):(n&&typeof n==`object`&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{U(this,sm)[sm](t),U(this,lm)[lm](t)})).catch((e=>{U(this,um)[um](e)})).then((()=>{let{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{let t=this.getFile(e);t.progress.uploadStarted||n.indexOf(e)!==-1||r.push(t.id)}));let i=U(this,gm)[gm](r);return U(this,ym)[ym](i)})).catch((e=>{U(this,um)[um](e,{showInformer:!1})})))}};function Fre(e,t){t===void 0&&(t=this.getFiles());let{maxFileSize:n,minFileSize:r,maxTotalFileSize:i,maxNumberOfFiles:a,allowedFileTypes:o}=this.opts.restrictions;if(a&&t.length+1>a)throw new $p(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&wre(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new $p(this.i18n(`youCanOnlyUploadFileTypes`,{types:e}))}if(i&&e.size!=null){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>i)throw new $p(this.i18n(`exceedsSize`,{size:zp(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new $p(this.i18n(`exceedsSize`,{size:zp(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new $p(this.i18n(`inferiorSize`,{size:zp(r)}))}function Ire(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new $p(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function Lre(e){let{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],i=[];for(let a=0;a<t.length;a++)if(!n.call(e.meta,t[a])||e.meta[t[a]]===``){let n=new $p(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),U(this,um)[um](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function Rre(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return U(this,cm)[cm](t)}));if(t.length)throw new Pre(t,`${this.i18n(`missingRequiredMetaField`)}`)}function zre(e,t){let{showInformer:n=!0,file:r=null,throwErr:i=!0}=t===void 0?{}:t,a=typeof e==`object`?e.message:e,o=typeof e==`object`&&e.details?e.details:``,s=a;if(o&&(s+=` ${o}`),e.isRestriction?(this.log(s),this.emit(`restriction-failed`,r,e)):this.log(s,`error`),n&&this.info({message:a,details:o},`error`,this.opts.infoTimeout),i)throw typeof e==`object`?e:Error(e)}function Bre(e){let{allowNewUpload:t}=this.getState();!1===t&&U(this,um)[um](new $p(this.i18n(`noMoreFilesAllowed`)),{file:e})}function Vre(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?Up(e.name).extension?.toLowerCase():null;return t&&t in Wp?Wp[t]:`application/octet-stream`}(t),r=function(e,t){return t.name?t.name:e.split(`/`)[0]===`image`?`${e.split(`/`)[0]}.${e.split(`/`)[1]}`:`noname`}(n,t),i=Up(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${Gp(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${Gp(e.meta.relativePath.toLowerCase())}`),e.data.size!==void 0&&(t+=`-${e.data.size}`),e.data.lastModified!==void 0&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(o)){let e=new $p(this.i18n(`noDuplicates`,{fileName:r}));U(this,um)[um](e,{file:t})}let s=t.meta||{};s.name=r,s.type=n;let c=Number.isFinite(t.data.size)?t.data.size:null,l={source:t.source||``,id:o,name:r,extension:i||``,meta:{...this.getState().meta,...s},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:a,remote:t.remote||``,preview:t.preview},u=this.opts.onBeforeFileAdded(l,e);!1===u?U(this,um)[um](new $p(`Cannot add the file because onBeforeFileAdded returned false.`),{showInformer:!1,fileDescriptor:t}):typeof u==`object`&&u&&(l=u);try{let t=Object.keys(e).map((t=>e[t]));U(this,om)[om](l,t)}catch(e){U(this,um)[um](e,{file:l})}return l}function Hre(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function Ure(){let e=(e,t,n)=>{let r=e.message||`Unknown error`;e.details&&(r+=` ${e.details}`),this.setState({error:r}),t!=null&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on(`error`,e),this.on(`upload-error`,((t,n,r)=>{if(e(n,t,r),typeof n==`object`&&n.message){let e=Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n(`failedToUpload`,{file:t.name}),U(this,um)[um](e,{throwErr:!1})}else U(this,um)[um](n,{throwErr:!1})})),this.on(`upload`,(()=>{this.setState({error:null})})),this.on(`upload-started`,(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on(`upload-progress`,this.calculateProgress),this.on(`upload-success`,((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:U(this,am)[am].size>0?{mode:`indeterminate`}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),e.size??this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on(`preprocess-progress`,((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on(`preprocess-complete`,(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on(`postprocess-progress`,((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on(`postprocess-complete`,(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);let t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on(`restored`,(()=>{this.calculateTotalProgress()})),this.on(`dashboard:file-edit-complete`,(e=>{e&&U(this,cm)[cm](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,U(this,hm)[hm]),window.addEventListener(`offline`,U(this,hm)[hm]),setTimeout(U(this,hm)[hm],3e3))}function Wre(e,t){t===void 0&&(t={});let{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:i}=this.getState();if(!r&&!n)throw Error(`Cannot create a new upload: already uploading.`);let a=jre();return this.emit(`upload`,{id:a,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...i,[a]:{fileIDs:e,step:0,result:{}}}}),a}function Gre(e){let{currentUploads:t}=this.getState();return t[e]}function Kre(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function qre(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...U(this,rm)[rm],...U(this,im)[im],...U(this,am)[am]];try{for(let a=r;a<i.length&&n;a++){let r=i[a],o={...n,step:a};this.setState({currentUploads:{...t,[e]:o}}),await r(o.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit(`error`,t),U(this,vm)[vm](e),t}if(n){n.fileIDs.forEach((e=>{let t=this.getFile(e);t&&t.progress.postprocess&&this.emit(`postprocess-complete`,t)}));let r=n.fileIDs.map((e=>this.getFile(e))),i=r.filter((e=>!e.error)),a=r.filter((e=>e.error));await this.addResultData(e,{successful:i,failed:a,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let a;return n&&(a=n.result,this.emit(`complete`,a),U(this,vm)[vm](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}bm.VERSION=`2.1.3`;var xm=bm,Jre=n((function(e,t){var n,r,i,a,o,s,c,l,u={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,r){var i,a,o,s={};for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),typeof e==`function`&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return g(e,s,i,a,null)}function g(e,t,n,a,o){var s={type:e,props:t,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++i};return o==null&&r.vnode!=null&&r.vnode(s),s}function _(e){return e.children}function v(e,t){this.props=e,this.context=t}function y(e,t){if(t==null)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?y(e):null}function b(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return b(e)}}function x(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!S.__r++||c!==r.debounceRendering)&&((c=r.debounceRendering)||s)(S)}function S(){for(var e;S.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,i,a,o;e.__d&&(a=(i=(t=e).__v).__e,(o=t.__P)&&(n=[],(r=p({},i)).__v=i.__v+1,ne(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),re(n,i),i.__e!=a&&b(i)))}))}function C(e,t,n,r,i,a,o,s,c,l){var f,p,m,h,v,b,x,S=r&&r.__k||d,C=S.length;for(n.__k=[],f=0;f<t.length;f++)if((h=n.__k[f]=(h=t[f])==null||typeof h==`boolean`?null:typeof h==`string`||typeof h==`number`||typeof h==`bigint`?g(null,h,null,null,h):Array.isArray(h)?g(_,{children:h},null,null,null):h.__b>0?g(h.type,h.props,h.key,null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(m=S[f])===null||m&&h.key==m.key&&h.type===m.type)S[f]=void 0;else for(p=0;p<C;p++){if((m=S[p])&&h.key==m.key&&h.type===m.type){S[p]=void 0;break}m=null}ne(e,h,m||=u,i,a,o,s,c,l),v=h.__e,(p=h.ref)&&m.ref!=p&&(x||=[],m.ref&&x.push(m.ref,null,h),x.push(p,h.__c||v,h)),v==null?c&&m.__e==c&&c.parentNode!=e&&(c=y(m)):(b??=v,typeof h.type==`function`&&h.__k===m.__k?h.__d=c=w(h,c,e):c=T(e,h,m,S,v,c),typeof n.type==`function`&&(n.__d=c))}for(n.__e=b,f=C;f--;)S[f]!=null&&(typeof n.type==`function`&&S[f].__e!=null&&S[f].__e==n.__d&&(n.__d=y(r,f+1)),ae(S[f],S[f]));if(x)for(f=0;f<x.length;f++)O(x[f],x[++f],x[++f])}function w(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?w(r,t,n):T(n,r,r,i,r.__e,t));return t}function T(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function ee(e,t,n){t[0]===`-`?e.setProperty(t,n):e[t]=n==null?``:typeof n!=`number`||f.test(t)?n:n+`px`}function E(e,t,n,r,i){var a;e:if(t===`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||ee(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||ee(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?te:D,a):e.removeEventListener(t,a?te:D,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink[H:h]/,`h`).replace(/sName$/,`s`);else if(t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break e}catch{}typeof n==`function`||(n!=null&&(!1!==n||t[0]===`a`&&t[1]===`r`)?e.setAttribute(t,n):e.removeAttribute(t))}}function D(e){this.l[e.type+!1](r.event?r.event(e):e)}function te(e){this.l[e.type+!0](r.event?r.event(e):e)}function ne(e,t,n,i,a,o,s,c,l){var u,d,f,m,h,g,y,b,x,S,w,T=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(u=r.__b)&&u(t);try{e:if(typeof T==`function`){if(b=t.props,x=(u=T.contextType)&&i[u.__c],S=u?x?x.props.value:u.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(b,S):(t.__c=d=new v(b,S),d.constructor=T,d.render=k),x&&x.sub(d),d.props=b,d.state||={},d.context=S,d.__n=i,f=d.__d=!0,d.__h=[]),d.__s??=d.state,T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=p({},d.__s)),p(d.__s,T.getDerivedStateFromProps(b,d.__s))),m=d.props,h=d.state,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&b!==m&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,S),!d.__e&&d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(b,d.__s,S)||t.__v===n.__v){d.props=b,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,S),d.componentDidUpdate!=null&&d.__h.push((function(){d.componentDidUpdate(m,h,g)}))}d.context=S,d.props=b,d.state=d.__s,(u=r.__r)&&u(t),d.__d=!1,d.__v=t,d.__P=e,u=d.render(d.props,d.state,d.context),d.state=d.__s,d.getChildContext!=null&&(i=p(p({},i),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(m,h)),w=u!=null&&u.type===_&&u.key==null?u.props.children:u,C(e,Array.isArray(w)?w:[w],t,n,i,a,o,s,c,l),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ie(n.__e,t,n,i,a,o,s,l);(u=r.diffed)&&u(t)}catch(e){t.__v=null,(l||o!=null)&&(t.__e=c,t.__h=!!l,o[o.indexOf(c)]=null),r.__e(e,t,n)}}function re(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function ie(e,t,r,i,a,o,s,c){var l,d,f,p=r.props,h=t.props,g=t.type,_=0;if(g===`svg`&&(a=!0),o!=null){for(;_<o.length;_++)if((l=o[_])&&`setAttribute`in l==!!g&&(g?l.localName===g:l.nodeType===3)){e=l,o[_]=null;break}}if(e==null){if(g===null)return document.createTextNode(h);e=a?document.createElementNS(`http://www.w3.org/2000/svg`,g):document.createElement(g,h.is&&h),o=null,c=!1}if(g===null)p===h||c&&e.data===h||(e.data=h);else{if(o&&=n.call(e.childNodes),d=(p=r.props||u).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!c){if(o!=null)for(p={},_=0;_<e.attributes.length;_++)p[e.attributes[_].name]=e.attributes[_].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||``))}if(function(e,t,n,r,i){for(var a in n)a===`children`||a===`key`||a in t||E(e,a,null,n[a],r);for(a in t)i&&typeof t[a]!=`function`||a===`children`||a===`key`||a===`value`||a===`checked`||n[a]===t[a]||E(e,a,t[a],n[a],r)}(e,h,p,a,c),f)t.__k=[];else if(_=t.props.children,C(e,Array.isArray(_)?_:[_],t,r,i,a&&g!==`foreignObject`,o,s,o?o[0]:r.__k&&y(r,0),c),o!=null)for(_=o.length;_--;)o[_]!=null&&m(o[_]);c||(`value`in h&&(_=h.value)!==void 0&&(_!==p.value||_!==e.value||g===`progress`&&!_)&&E(e,`value`,_,p.value,!1),`checked`in h&&(_=h.checked)!==void 0&&_!==e.checked&&E(e,`checked`,_,p.checked,!1))}return e}function O(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function ae(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||O(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&ae(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function k(e,t,n){return this.constructor(e,n)}function oe(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],ne(t,e=(!a&&i||t).__k=h(_,null,[e]),o||u,u,t.ownerSVGElement!==void 0,!a&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,s,!a&&i?i:o?o.__e:t.firstChild,a),re(s,e)}n=d.slice,r={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e}},i=0,a=function(e){return e!=null&&e.constructor===void 0},v.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state);typeof e==`function`&&(e=e(p({},n),this.props)),e&&p(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),x(this))},v.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},v.prototype.render=_,o=[],s=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=v,t.Fragment=_,t.cloneElement=function(e,t,r){var i,a,o,s=p({},e.props);for(o in t)o==`key`?i=t[o]:o==`ref`?a=t[o]:s[o]=t[o];return arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),g(e.type,s,i||e.key,a||e.ref,null)},t.createContext=function(e,t){var n={__c:t=`__cC`+ l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(x)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=h,t.createRef=function(){return{current:null}},t.h=h,t.hydrate=function e(t,n){oe(t,n,e)},t.isValidElement=a,t.options=r,t.render=oe,t.toChildArray=function e(t,n){return n||=[],t==null||typeof t==`boolean`||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Yre=function(e,t){return t===void 0&&(t=document),typeof e==`string`?t.querySelector(e):(n=e)?.nodeType===Node.ELEMENT_NODE?e:null;var n},Sm=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){let{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){let{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){let e=new Fp([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw Error(`Extend the addTarget method to add your plugin to another plugin's target`)}install(){}uninstall(){}render(){throw Error(`Extend the render method to add your plugin to a DOM element`)}update(){}afterUpdate(){}};function Cm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Xre=0;function Zre(e){return`__private_`+ Xre+++`_`+e}var{render:wm}=Jre,Tm=Zre(`updateUI`),Qre=class e extends Sm{constructor(){super(...arguments),Object.defineProperty(this,Tm,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Yre(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return Cm(this,Tm)[Tm]=function(e){let t=null,n=null;return function(){return n=[...arguments],t||=Promise.resolve().then((()=>(t=null,e(...n)))),t}}((t=>{this.uppy.getPlugin(this.id)&&(wm(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),wm(this.render(this.uppy.getState()),e),this.el=e.firstElementChild,i.appendChild(e),this.onMount(),this.el}let a;if(typeof t==`object`&&t instanceof e)a=t;else if(typeof t==`function`){let e=t;this.uppy.iteratePlugins((t=>{if(t instanceof e)return a=t,!1}))}if(a)return this.uppy.log(`Installing ${r} to ${a.id}`),this.parent=a,this.el=a.addTarget(n),this.onMount(),this.el;this.uppy.log(`Not installing ${r}`);let o=`Invalid target option given to ${r}.`;throw o+=typeof t==`function`?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",Error(o)}update(e){var t,n;this.el!=null&&((t=(n=Cm(this,Tm))[Tm])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},$re=Qre,{debugLogger:eie}=Jp,Em=xm,tie=xm,nie=$re,rie=Sm,iie=eie;Em.Uppy=tie,Em.UIPlugin=nie,Em.BasePlugin=rie,Em.debugLogger=iie;var aie=class extends Error{constructor(e,t){t===void 0&&(t=null),super(`This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.`),this.cause=e,this.isNetworkError=!0,this.request=t}},Dm=aie,Om=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new Dm(e)}))},oie=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},km,Am,jm,Mm,Nm,sie=oie;function Pm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var cie=0;function Fm(e){return`__private_`+ cie+++`_`+e}async function Im(e){if(e.status===401)throw new sie;let t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{let e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw Error(n)}}return t}var Lm=(Am=Fm(`getPostResponseFunc`),jm=Fm(`getUrl`),Mm=Fm(`errorHandler`),Nm=km=class e{constructor(e,t){Object.defineProperty(this,Mm,{value:uie}),Object.defineProperty(this,jm,{value:lie}),Object.defineProperty(this,Am,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=[`accept`,`content-type`,`uppy-auth-token`],this.preflightDone=!1}get hostname(){let{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,``)}headers(){let t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){let t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has(`i-am`)&&r.get(`i-am`)!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get(`i-am`)}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Pm(this,jm)[jm](e),{method:`OPTIONS`}).then((e=>(e.headers.has(`access-control-allow-headers`)&&(this.allowedHeaders=e.headers.get(`access-control-allow-headers`).split(`,`).map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,`warning`),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Om(Pm(this,jm)[jm](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(Pm(this,Am)[Am](t)).then(Im).catch(Pm(this,Mm)[Mm](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>Om(Pm(this,jm)[jm](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(Pm(this,Am)[Am](n)).then(Im).catch(Pm(this,Mm)[Mm](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>Om(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(Pm(this,Am)[Am](n)).then(Im).catch(Pm(this,Mm)[Mm](r,e))}},km.VERSION=`2.0.4`,km.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${km.VERSION}`},Nm);function lie(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function uie(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${Pm(this,jm)[jm](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var die={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},Rm,zm,Bm,Vm,Hm,Um,Wm;function Gm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var fie=0;function Km(e){return`__private_`+ fie+++`_`+e}var pie=(Rm=Km(`queued`),zm=Km(`emitter`),Bm=Km(`isOpen`),Vm=Km(`socket`),Hm=Km(`handleMessage`),Um=Symbol.for(`uppy test: getSocket`),Wm=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,Rm,{writable:!0,value:[]}),Object.defineProperty(this,zm,{writable:!0,value:Ip()}),Object.defineProperty(this,Bm,{writable:!0,value:!1}),Object.defineProperty(this,Vm,{writable:!0,value:void 0}),Object.defineProperty(this,Hm,{writable:!0,value:e=>{try{let t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return Gm(this,Bm)[Bm]}[Um](){return Gm(this,Vm)[Vm]}[Wm](){return Gm(this,Rm)[Rm]}open(){Gm(this,Vm)[Vm]=new WebSocket(this.opts.target),Gm(this,Vm)[Vm].onopen=()=>{for(Gm(this,Bm)[Bm]=!0;Gm(this,Rm)[Rm].length>0&&Gm(this,Bm)[Bm];){let e=Gm(this,Rm)[Rm].shift();this.send(e.action,e.payload)}},Gm(this,Vm)[Vm].onclose=()=>{Gm(this,Bm)[Bm]=!1},Gm(this,Vm)[Vm].onmessage=Gm(this,Hm)[Hm]}close(){var e;(e=Gm(this,Vm)[Vm])==null||e.close()}send(e,t){Gm(this,Bm)[Bm]?Gm(this,Vm)[Vm].send(JSON.stringify({action:e,payload:t})):Gm(this,Rm)[Rm].push({action:e,payload:t})}on(e,t){Gm(this,zm)[zm].on(e,t)}emit(e,t){Gm(this,zm)[zm].emit(e,t)}once(e,t){Gm(this,zm)[zm].once(e,t)}}),mie={RequestClient:Lm,Provider:class extends Lm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e,r={};return n&&(r[`uppy-auth-token`]=n),this.companionKeysParams&&(r[`uppy-credentials-params`]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);let t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,`warning`)})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||``}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type=`acquirer`,e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){let n=t.companionAllowedHosts;if(!(typeof n==`string`||Array.isArray(n)||n instanceof RegExp))throw TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else /^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,``)}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||die}},SearchProvider:class extends Lm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split(`-`).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(` `))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:``,this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:pie},qm,Jm,Ym=Vd((function(e,t,n){let{progress:r,bytesUploaded:i,bytesTotal:a}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit(`upload-progress`,n,{uploader:e,bytesUploaded:i,bytesTotal:a}))}),300,{leading:!0,trailing:!0});function Xm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Zm=0;function Qm(e){return`__private_`+ Zm+++`_`+e}var $m=(qm=Qm(`emitter`),Jm=Qm(`events`),class{constructor(e){Object.defineProperty(this,qm,{writable:!0,value:void 0}),Object.defineProperty(this,Jm,{writable:!0,value:[]}),Xm(this,qm)[qm]=e}on(e,t){return Xm(this,Jm)[Jm].push([e,t]),Xm(this,qm)[qm].on(e,t)}remove(){for(let[e,t]of Xm(this,Jm)[Jm].splice(0))Xm(this,qm)[qm].off(e,t)}});function eh(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var th=0;function nh(e){return`__private_`+ th+++`_`+e}var rh=nh(`aliveTimer`),ih=nh(`isDone`),ah=nh(`onTimedOut`),oh=nh(`timeout`),sh=class{constructor(e,t){Object.defineProperty(this,rh,{writable:!0,value:void 0}),Object.defineProperty(this,ih,{writable:!0,value:!1}),Object.defineProperty(this,ah,{writable:!0,value:void 0}),Object.defineProperty(this,oh,{writable:!0,value:void 0}),eh(this,oh)[oh]=e,eh(this,ah)[ah]=t}progress(){eh(this,ih)[ih]||eh(this,oh)[oh]>0&&(clearTimeout(eh(this,rh)[rh]),eh(this,rh)[rh]=setTimeout(eh(this,ah)[ah],eh(this,oh)[oh]))}done(){eh(this,ih)[ih]||(clearTimeout(eh(this,rh)[rh]),eh(this,rh)[rh]=null,eh(this,ih)[ih]=!0)}};function ch(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var lh=0;function uh(e){return`__private_`+ lh+++`_`+e}function dh(){return Error(`Cancelled`)}var fh=uh(`activeRequests`),ph=uh(`queuedHandlers`),mh=uh(`call`),hh=uh(`queueNext`),gh=uh(`next`),_h=uh(`queue`),vh=uh(`dequeue`);function yh(e){ch(this,fh)[fh]+=1;let t,n=!1;try{t=e()}catch(e){throw--ch(this,fh)[fh],e}return{abort:()=>{n||(n=!0,--ch(this,fh)[fh],t(),ch(this,hh)[hh]())},done:()=>{n||(n=!0,--ch(this,fh)[fh],ch(this,hh)[hh]())}}}function bh(){queueMicrotask((()=>ch(this,gh)[gh]()))}function xh(){if(ch(this,fh)[fh]>=this.limit||ch(this,ph)[ph].length===0)return;let e=ch(this,ph)[ph].shift(),t=ch(this,mh)[mh](e.fn);e.abort=t.abort,e.done=t.done}function Sh(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{ch(this,vh)[vh](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=ch(this,ph)[ph].findIndex((e=>n.priority>e.priority));return r===-1?ch(this,ph)[ph].push(n):ch(this,ph)[ph].splice(r,0,n),n}function Ch(e){let t=ch(this,ph)[ph].indexOf(e);t!==-1&&ch(this,ph)[ph].splice(t,1)}var wh={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,vh,{value:Ch}),Object.defineProperty(this,_h,{value:Sh}),Object.defineProperty(this,gh,{value:xh}),Object.defineProperty(this,hh,{value:bh}),Object.defineProperty(this,mh,{value:yh}),Object.defineProperty(this,fh,{writable:!0,value:0}),Object.defineProperty(this,ph,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return ch(this,fh)[fh]<this.limit?ch(this,mh)[mh](e):ch(this,_h)[_h](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){var r=[...arguments];let i,a=new Promise(((a,o)=>{i=n.run((()=>{let t,n;try{n=Promise.resolve(e(...r))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?o(t):(i.done(),a(e))}),(e=>{t?o(t):(i.done(),o(e))})),()=>{t=dh()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},Th,Eh,Dh=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},Oh={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:kh}=Yp,{Provider:Ah,RequestClient:jh,Socket:Mh}=mie,{RateLimitedQueue:Nh,internalRateLimitedQueue:Ph}=wh;function Fh(e,t){let n=t;return n||=Error(`Upload error`),typeof n==`string`&&(n=Error(n)),n instanceof Error||(n=Object.assign(Error(`Upload error`),{data:n})),Dh(e)?(n=new Dm(n,e),n):(n.request=e,n)}function Ih(e){return e.data.slice(0,e.data.size,e.meta.type)}var Lh=(Eh=Th=class extends Sm{constructor(e,t){if(super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=Oh,this.opts={formData:!0,fieldName:t.bundle?`files[]`:`file`,method:`post`,metaFields:null,responseUrlFieldName:`url`,bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:``,getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=Error(`Upload error`);return Dh(t)&&(n=new Dm(n,t)),n},validateStatus:e=>e>=200&&e<300,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Ph in this.opts?this.requests=this.opts[Ph]:this.requests=new Nh(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){let t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof n==`function`?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){let n=new FormData;this.addMetadata(n,e.meta,t);let r=Ih(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){let n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{let t=this.getOptions(e),r=Ih(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){let r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit(`upload-started`,e);let i=r.formData?this.createFormDataUpload(e,r):e.data,a=new XMLHttpRequest;this.uploaderEvents[e.id]=new $m(this.uppy);let o=new sh(r.timeout,(()=>{a.abort(),c.done();let t=Error(this.i18n(`timedOut`,{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit(`upload-error`,e,t),n(t)})),s=kh();a.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] ${s} started`)})),a.upload.addEventListener(`progress`,(t=>{this.uppy.log(`[XHRUpload] ${s} progress: ${t.loaded} / ${t.total}`),o.progress(),t.lengthComputable&&this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),a.addEventListener(`load`,(i=>{if(this.uppy.log(`[XHRUpload] ${s} finished`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(i.target.status,a.responseText,a)){let n=r.getResponseData(a.responseText,a),o=n[r.responseUrlFieldName],s={status:i.target.status,body:n,uploadURL:o};return this.uppy.emit(`upload-success`,e,s),o&&this.uppy.log(`Download ${e.name} from ${o}`),t(e)}let l=r.getResponseData(a.responseText,a),u=Fh(a,r.getResponseError(a.responseText,a)),d={status:i.target.status,body:l};return this.uppy.emit(`upload-error`,e,u,d),n(u)})),a.addEventListener(`error`,(()=>{this.uppy.log(`[XHRUpload] ${s} errored`),o.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);let t=Fh(a,r.getResponseError(a.responseText,a));return this.uppy.emit(`upload-error`,e,t),n(t)})),a.open(r.method.toUpperCase(),r.endpoint,!0),a.withCredentials=r.withCredentials,r.responseType!==``&&(a.responseType=r.responseType);let c=this.requests.run((()=>{this.uppy.emit(`upload-started`,e);let t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{a.setRequestHeader(e,t.headers[e])})),a.send(i),()=>{o.done(),a.abort()}}));this.onFileRemove(e.id,(()=>{c.abort(),n(Error(`File removed`))})),this.onCancelAll(e.id,(()=>{c.abort(),n(Error(`Upload cancelled`))}))}))}uploadRemote(e){let t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit(`upload-started`,e);let i={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{i[t]=e.meta[t]})),new(e.remote.providerOptions.provider?Ah:jh)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:i,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{let{token:a}=i,o=new Mh({target:`${function(e){let t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?`ws`:`wss`}://${t}`}(e.remote.companionUrl)}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new $m(this.uppy),this.onFileRemove(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{o.send(`cancel`,{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),this.onRetryAll(e.id,(()=>{o.send(`pause`,{}),o.send(`resume`,{})})),o.on(`progress`,(t=>Ym(this,t,e))),o.on(`success`,(r=>{let i=t.getResponseData(r.response.responseText,r.response),a=i[t.responseUrlFieldName],o={status:r.response.status,body:i,uploadURL:a};return this.uppy.emit(`upload-success`,e,o),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),o.on(`error`,(n=>{let i=n.response,a=i?t.getResponseError(i.responseText,i):Object.assign(Error(n.error.message),{cause:n.error});this.uppy.emit(`upload-error`,e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(a)}));let s=this.requests.run((()=>(o.open(),e.isPaused&&o.send(`pause`,{}),()=>o.close())))})).catch((t=>{this.uppy.emit(`upload-error`,e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{let{endpoint:r}=this.opts,{method:i}=this.opts,a=this.uppy.getState().xhrUpload,o=this.createBundledUpload(e,{...this.opts,...a||{}}),s=new XMLHttpRequest,c=new sh(this.opts.timeout,(()=>{s.abort();let e=Error(this.i18n(`timedOut`,{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit(`upload-error`,e,t)}))};s.upload.addEventListener(`loadstart`,(()=>{this.uppy.log(`[XHRUpload] started uploading bundle`),c.progress()})),s.upload.addEventListener(`progress`,(t=>{c.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit(`upload-progress`,e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),s.addEventListener(`load`,(r=>{if(c.done(),this.opts.validateStatus(r.target.status,s.responseText,s)){let n=this.opts.getResponseData(s.responseText,s),i={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit(`upload-success`,e,i)})),t()}let i=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return i.request=s,l(i),n(i)})),s.addEventListener(`error`,(()=>{c.done();let e=this.opts.getResponseError(s.responseText,s)||Error(`Upload error`);return l(e),n(e)})),this.uppy.on(`cancel-all`,(()=>{c.done(),s.abort()})),s.open(i.toUpperCase(),r,!0),s.withCredentials=this.opts.withCredentials,this.opts.responseType!==``&&(s.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{s.setRequestHeader(e,this.opts.headers[e])})),s.send(o),e.forEach((e=>{this.uppy.emit(`upload-started`,e)}))}))}uploadFiles(e){return function(e){let t=[],n=[];function r(e){t.push(e)}function i(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,i)))).then((()=>({successful:t,failed:n})))}(e.map(((t,n)=>{let r=parseInt(n,10)+1,i=e.length;return t.error?Promise.reject(Error(t.error)):t.isRemote?this.uploadRemote(t,r,i):this.upload(t,r,i)})))}onFileRemove(e,t){this.uploaderEvents[e].on(`file-removed`,(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on(`upload-retry`,(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on(`retry-all`,(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on(`cancel-all`,(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(e.length===0)return this.uppy.log(`[XHRUpload] No files to upload!`),Promise.resolve();this.opts.limit!==0||this.opts[Ph]||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...`);let t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers==`function`)throw TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Th.VERSION=`2.0.6`,Eh),Rh=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function zh(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bh,Vh,Hh=function(e){return e&&e.Math==Math&&e},W=Hh(typeof globalThis==`object`&&globalThis)||Hh(typeof window==`object`&&window)||Hh(typeof self==`object`&&self)||Hh(typeof Rh==`object`&&Rh)||function(){return this}()||Function(`return this`)(),Uh=Object.defineProperty,Wh=function(e,t){try{Uh(W,e,{value:t,configurable:!0,writable:!0})}catch{W[e]=t}return t},Gh=W[`__core-js_shared__`]||Wh(`__core-js_shared__`,{}),Kh=zh((function(e){(e.exports=function(e,t){return Gh[e]||(Gh[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),qh=Function.prototype,Jh=qh.bind,Yh=qh.call,Xh=Jh&&Jh.bind(Yh),G=Jh?function(e){return e&&Xh(Yh,e)}:function(e){return e&&function(){return Yh.apply(e,arguments)}},Zh=W.TypeError,Qh=function(e){if(e==null)throw Zh(`Can't call method on `+e);return e},$h=W.Object,eg=function(e){return $h(Qh(e))},tg=G({}.hasOwnProperty),ng=Object.hasOwn||function(e,t){return tg(eg(e),t)},rg=0,ig=Math.random(),ag=G(1 .toString),og=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+ag(++rg+ig,36)},sg=function(e){return typeof e==`function`},cg=function(e){return sg(e)?e:void 0},lg=function(e,t){return arguments.length<2?cg(W[e]):W[e]&&W[e][t]},ug=lg(`navigator`,`userAgent`)||``,dg=W.process,fg=W.Deno,pg=dg&&dg.versions||fg&&fg.version,mg=pg&&pg.v8;mg&&(Vh=(Bh=mg.split(`.`))[0]>0&&Bh[0]<4?1:+(Bh[0]+Bh[1])),!Vh&&ug&&(!(Bh=ug.match(/Edge\/(\d+)/))||Bh[1]>=74)&&(Bh=ug.match(/Chrome\/(\d+)/))&&(Vh=+Bh[1]);var hg=Vh,gg=function(e){try{return!!e()}catch{return!0}},_g=!!Object.getOwnPropertySymbols&&!gg((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&hg&&hg<41})),vg=_g&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,yg=Kh(`wks`),bg=W.Symbol,xg=bg&&bg.for,Sg=vg?bg:bg&&bg.withoutSetter||og,Cg=function(e){if(!ng(yg,e)||!_g&&typeof yg[e]!=`string`){var t=`Symbol.`+e;_g&&ng(bg,e)?yg[e]=bg[e]:yg[e]=vg&&xg?xg(t):Sg(t)}return yg[e]},wg={};wg[Cg(`toStringTag`)]=`z`;var Tg=String(wg)===`[object z]`,Eg=!gg((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Dg=function(e){return typeof e==`object`?e!==null:sg(e)},Og=W.document,kg=Dg(Og)&&Dg(Og.createElement),Ag=function(e){return kg?Og.createElement(e):{}},jg=!Eg&&!gg((function(){return Object.defineProperty(Ag(`div`),`a`,{get:function(){return 7}}).a!=7})),Mg=W.String,Ng=W.TypeError,Pg=function(e){if(Dg(e))return e;throw Ng(Mg(e)+` is not an object`)},Fg=Function.prototype.call,Ig=Fg.bind?Fg.bind(Fg):function(){return Fg.apply(Fg,arguments)},Lg=G({}.isPrototypeOf),Rg=W.Object,zg=vg?function(e){return typeof e==`symbol`}:function(e){var t=lg(`Symbol`);return sg(t)&&Lg(t.prototype,Rg(e))},Bg=W.String,Vg=function(e){try{return Bg(e)}catch{return`Object`}},Hg=W.TypeError,Ug=function(e){if(sg(e))return e;throw Hg(Vg(e)+` is not a function`)},Wg=function(e,t){var n=e[t];return n==null?void 0:Ug(n)},Gg=W.TypeError,Kg=W.TypeError,qg=Cg(`toPrimitive`),Jg=function(e){var t=function(e,t){if(!Dg(e)||zg(e))return e;var n,r=Wg(e,qg);if(r){if(t===void 0&&(t=`default`),n=Ig(r,e,t),!Dg(n)||zg(n))return n;throw Kg(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&sg(n=e.toString)&&!Dg(r=Ig(n,e))||sg(n=e.valueOf)&&!Dg(r=Ig(n,e))||t!==`string`&&sg(n=e.toString)&&!Dg(r=Ig(n,e)))return r;throw Gg(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return zg(t)?t:t+``},Yg=W.TypeError,Xg=Object.defineProperty,Zg={f:Eg?Xg:function(e,t,n){if(Pg(e),t=Jg(t),Pg(n),jg)try{return Xg(e,t,n)}catch{}if(`get`in n||`set`in n)throw Yg(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Qg=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$g=Eg?function(e,t,n){return Zg.f(e,t,Qg(1,n))}:function(e,t,n){return e[t]=n,e},e_=G(Function.toString);sg(Gh.inspectSource)||(Gh.inspectSource=function(e){return e_(e)});var t_,n_,r_,i_=Gh.inspectSource,a_=W.WeakMap,o_=sg(a_)&&/native code/.test(i_(a_)),s_=Kh(`keys`),c_=function(e){return s_[e]||(s_[e]=og(e))},l_={},u_=W.TypeError,d_=W.WeakMap;if(o_||Gh.state){var f_=Gh.state||=new d_,p_=G(f_.get),m_=G(f_.has),h_=G(f_.set);t_=function(e,t){if(m_(f_,e))throw new u_(`Object already initialized`);return t.facade=e,h_(f_,e,t),t},n_=function(e){return p_(f_,e)||{}},r_=function(e){return m_(f_,e)}}else{var g_=c_(`state`);l_[g_]=!0,t_=function(e,t){if(ng(e,g_))throw new u_(`Object already initialized`);return t.facade=e,$g(e,g_,t),t},n_=function(e){return ng(e,g_)?e[g_]:{}},r_=function(e){return ng(e,g_)}}var __={set:t_,get:n_,has:r_,enforce:function(e){return r_(e)?n_(e):t_(e,{})},getterFor:function(e){return function(t){var n;if(!Dg(t)||(n=n_(t)).type!==e)throw u_(`Incompatible receiver, `+e+` required`);return n}}},v_=Function.prototype,y_=Eg&&Object.getOwnPropertyDescriptor,b_=ng(v_,`name`),x_={EXISTS:b_,PROPER:b_&&function(){}.name===`something`,CONFIGURABLE:b_&&(!Eg||Eg&&y_(v_,`name`).configurable)},S_=zh((function(e){var t=x_.CONFIGURABLE,n=__.get,r=__.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;sg(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!ng(a,`name`)||t&&a.name!==d)&&$g(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===W?l?e[n]=a:Wh(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:$g(e,n,a))})(Function.prototype,`toString`,(function(){return sg(this)&&n(this).source||i_(this)}))})),C_=G({}.toString),w_=G(``.slice),T_=function(e){return w_(C_(e),8,-1)},E_=Cg(`toStringTag`),D_=W.Object,O_=T_(function(){return arguments}())==`Arguments`,k_=Tg?T_:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=D_(e),E_))==`string`?n:O_?T_(t):(r=T_(t))==`Object`&&sg(t.callee)?`Arguments`:r},A_=Tg?{}.toString:function(){return`[object `+k_(this)+`]`};Tg||S_(Object.prototype,`toString`,A_,{unsafe:!0});var j_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},M_=Ag(`span`).classList,N_=M_&&M_.constructor&&M_.constructor.prototype,P_=N_===Object.prototype?void 0:N_,F_=G(G.bind),I_=function(e,t){return Ug(e),t===void 0?e:F_?F_(e,t):function(){return e.apply(t,arguments)}},L_=W.Object,R_=G(``.split),z_=gg((function(){return!L_(`z`).propertyIsEnumerable(0)}))?function(e){return T_(e)==`String`?R_(e,``):L_(e)}:L_,B_=Math.ceil,V_=Math.floor,H_=function(e){var t=+e;return t!=t||t===0?0:(t>0?V_:B_)(t)},U_=Math.min,W_=function(e){return e>0?U_(H_(e),9007199254740991):0},G_=function(e){return W_(e.length)},K_=Array.isArray||function(e){return T_(e)==`Array`},q_=function(){},J_=[],Y_=lg(`Reflect`,`construct`),X_=/^\s*(?:class|function)\b/,Z_=G(X_.exec),Q_=!X_.exec(q_),$_=function(e){if(!sg(e))return!1;try{return Y_(q_,J_,e),!0}catch{return!1}},ev=!Y_||gg((function(){var e;return $_($_.call)||!$_(Object)||!$_((function(){e=!0}))||e}))?function(e){if(!sg(e))return!1;switch(k_(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Q_||!!Z_(X_,i_(e))}:$_,tv=Cg(`species`),nv=W.Array,rv=function(e,t){return new(function(e){var t;return K_(e)&&(t=e.constructor,(ev(t)&&(t===nv||K_(t.prototype))||Dg(t)&&(t=t[tv])===null)&&(t=void 0)),t===void 0?nv:t}(e))(t===0?0:t)},iv=G([].push),av=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=eg(c),h=z_(m),g=I_(l,u),_=G_(h),v=0,y=d||rv,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:iv(b,f)}else switch(e){case 4:return!1;case 7:iv(b,f)}return a?-1:r||i?i:b}},ov={forEach:av(0),map:av(1),filter:av(2),some:av(3),every:av(4),find:av(5),findIndex:av(6),filterReject:av(7)},sv=function(e,t){var n=[][e];return!!n&&gg((function(){n.call(null,t||function(){throw 1},1)}))},cv=ov.forEach,lv=sv(`forEach`)?[].forEach:function(e){return cv(this,e,arguments.length>1?arguments[1]:void 0)},uv=function(e){if(e&&e.forEach!==lv)try{$g(e,`forEach`,lv)}catch{e.forEach=lv}};for(var dv in j_)j_[dv]&&uv(W[dv]&&W[dv].prototype);uv(P_);var fv={}.propertyIsEnumerable,pv=Object.getOwnPropertyDescriptor,mv={f:pv&&!fv.call({1:2},1)?function(e){var t=pv(this,e);return!!t&&t.enumerable}:fv},hv=function(e){return z_(Qh(e))},gv=Object.getOwnPropertyDescriptor,_v={f:Eg?gv:function(e,t){if(e=hv(e),t=Jg(t),jg)try{return gv(e,t)}catch{}if(ng(e,t))return Qg(!Ig(mv.f,e,t),e[t])}},vv=Math.max,yv=Math.min,bv=function(e,t){var n=H_(e);return n<0?vv(n+t,0):yv(n,t)},xv=function(e){return function(t,n,r){var i,a=hv(t),o=G_(a),s=bv(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},Sv={includes:xv(!0),indexOf:xv(!1)},Cv=Sv.indexOf,wv=G([].push),Tv=function(e,t){var n,r=hv(e),i=0,a=[];for(n in r)!ng(l_,n)&&ng(r,n)&&wv(a,n);for(;t.length>i;)ng(r,n=t[i++])&&(~Cv(a,n)||wv(a,n));return a},Ev=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Dv=Ev.concat(`length`,`prototype`),Ov={f:Object.getOwnPropertyNames||function(e){return Tv(e,Dv)}},kv={f:Object.getOwnPropertySymbols},Av=G([].concat),jv=lg(`Reflect`,`ownKeys`)||function(e){var t=Ov.f(Pg(e)),n=kv.f;return n?Av(t,n(e)):t},Mv=function(e,t){for(var n=jv(t),r=Zg.f,i=_v.f,a=0;a<n.length;a++){var o=n[a];ng(e,o)||r(e,o,i(t,o))}},Nv=/#|\.prototype\./,Pv=function(e,t){var n=Iv[Fv(e)];return n==Rv||n!=Lv&&(sg(t)?gg(t):!!t)},Fv=Pv.normalize=function(e){return String(e).replace(Nv,`.`).toLowerCase()},Iv=Pv.data={},Lv=Pv.NATIVE=`N`,Rv=Pv.POLYFILL=`P`,zv=Pv,Bv=_v.f,Vv=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?W:l?W[s]||Wh(s,{}):(W[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Bv(n,r))&&o.value:n[r],!zv(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Mv(a,i)}(e.sham||i&&i.sham)&&$g(a,`sham`,!0),S_(n,r,a,e)}},Hv=Object.keys||function(e){return Tv(e,Ev)},Uv=gg((function(){Hv(1)}));function Wv(e){return Object.prototype.toString.call(e)===`[object Object]`}Vv({target:`Object`,stat:!0,forced:Uv},{keys:function(e){return Hv(eg(e))}});var Gv={isHistory(e){return!1!==Wv(t=e)&&((n=t.constructor)===void 0||!1!==Wv(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Nl.isOperationList(e.redos[0]))&&(e.undos.length===0||Nl.isOperationList(e.undos[0]));var t,n,r}},Kv=new WeakMap,qv=new WeakMap,Jv={isHistoryEditor:e=>Gv.isHistory(e.history)&&P.isEditor(e),isMerging:e=>qv.get(e),isSaving:e=>Kv.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Jv.isMerging(e);qv.set(e,!1),t(),qv.set(e,n)},withoutSaving(e,t){var n=Jv.isSaving(e);Kv.set(e,!1),t(),Kv.set(e,n)}},Yv=W.String,Xv=function(e){if(k_(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Yv(e)},Zv=function(){var e=Pg(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},Qv=x_.PROPER,$v=RegExp.prototype,ey=$v.toString,ty=G(Zv),ny=gg((function(){return ey.call({source:`a`,flags:`b`})!=`/a/b`})),ry=Qv&&ey.name!=`toString`;(ny||ry)&&S_(RegExp.prototype,`toString`,(function(){var e=Pg(this),t=Xv(e.source),n=e.flags;return`/`+t+`/`+Xv(n===void 0&&Lg($v,e)&&!(`flags`in $v)?ty(e):n)}),{unsafe:!0});var iy,ay=Eg?Object.defineProperties:function(e,t){Pg(e);for(var n,r=hv(t),i=Hv(t),a=i.length,o=0;a>o;)Zg.f(e,n=i[o++],r[n]);return e},oy=lg(`document`,`documentElement`),sy=c_(`IE_PROTO`),cy=function(){},ly=function(e){return`<script>`+e+`<\/script>`},uy=function(e){e.write(ly(``)),e.close();var t=e.parentWindow.Object;return e=null,t},dy=function(){try{iy=new ActiveXObject(`htmlfile`)}catch{}var e,t;dy=typeof document<`u`?document.domain&&iy?uy(iy):((t=Ag(`iframe`)).style.display=`none`,oy.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(ly(`document.F=Object`)),e.close(),e.F):uy(iy);for(var n=Ev.length;n--;)delete dy.prototype[Ev[n]];return dy()};l_[sy]=!0;var fy=Object.create||function(e,t){var n;return e===null?n=dy():(cy.prototype=Pg(e),n=new cy,cy.prototype=null,n[sy]=e),t===void 0?n:ay(n,t)},py=Cg(`unscopables`),my=Array.prototype;my[py]??Zg.f(my,py,{configurable:!0,value:fy(null)});var hy=function(e){my[py][e]=!0},gy=Sv.includes;Vv({target:`Array`,proto:!0},{includes:function(e){return gy(this,e,arguments.length>1?arguments[1]:void 0)}}),hy(`includes`);var _y=Cg(`match`),vy=function(e){var t;return Dg(e)&&((t=e[_y])===void 0?T_(e)==`RegExp`:!!t)},yy=W.TypeError,by=function(e){if(vy(e))throw yy(`The method doesn't accept regular expressions`);return e},xy=Cg(`match`),Sy=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[xy]=!1,`/./`[e](t)}catch{}}return!1},Cy=G(``.indexOf);Vv({target:`String`,proto:!0,forced:!Sy(`includes`)},{includes:function(e){return!!~Cy(Xv(Qh(this)),Xv(by(e)),arguments.length>1?arguments[1]:void 0)}});var wy=/"/g,Ty=G(``.replace);Vv({target:`String`,proto:!0,forced:gg((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=Xv(Qh(this)),r=`<a`,(r+=` name="`+Ty(Xv(t),wy,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var Ey=function(e,t,n){var r,i;Pg(e);try{if(!(r=Wg(e,`return`))){if(t===`throw`)throw n;return n}r=Ig(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Pg(r),n},Dy=function(e,t,n,r){try{return r?t(Pg(n)[0],n[1]):t(n)}catch(t){Ey(e,`throw`,t)}},Oy={},ky=Cg(`iterator`),Ay=Array.prototype,jy=function(e){return e!==void 0&&(Oy.Array===e||Ay[ky]===e)},My=function(e,t,n){var r=Jg(t);r in e?Zg.f(e,r,Qg(0,n)):e[r]=n},Ny=Cg(`iterator`),Py=function(e){if(e!=null)return Wg(e,Ny)||Wg(e,`@@iterator`)||Oy[k_(e)]},Fy=W.TypeError,Iy=function(e,t){var n=arguments.length<2?Py(e):t;if(Ug(n))return Pg(Ig(n,e));throw Fy(Vg(e)+` is not iterable`)},Ly=W.Array,Ry=Cg(`iterator`),zy=!1;try{var By=0,Vy={next:function(){return{done:!!By++}},return:function(){zy=!0}};Vy[Ry]=function(){return this},Array.from(Vy,(function(){throw 2}))}catch{}var Hy=function(e,t){if(!t&&!zy)return!1;var n=!1;try{var r={};r[Ry]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};Vv({target:`Array`,stat:!0,forced:!Hy((function(e){Array.from(e)}))},{from:function(e){var t=eg(e),n=ev(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=I_(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=Py(t),p=0;if(!f||this==Ly&&jy(f))for(o=G_(t),s=n?new this(o):Ly(o);o>p;p++)d=a?i(t[p],p):t[p],My(s,p,d);else for(u=(l=Iy(t,f)).next,s=n?new this:[];!(c=Ig(u,l)).done;p++)d=a?Dy(l,i,[c.value,p],!0):c.value,My(s,p,d);return s.length=p,s}});var Uy,Wy,Gy,Ky=G(``.charAt),qy=G(``.charCodeAt),Jy=G(``.slice),Yy=function(e){return function(t,n){var r,i,a=Xv(Qh(t)),o=H_(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=qy(a,o))<55296||r>56319||o+1===s||(i=qy(a,o+1))<56320||i>57343?e?Ky(a,o):r:e?Jy(a,o,o+2):i-56320+(r-55296<<10)+65536}},Xy={codeAt:Yy(!1),charAt:Yy(!0)},Zy=!gg((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qy=c_(`IE_PROTO`),$y=W.Object,eb=$y.prototype,tb=Zy?$y.getPrototypeOf:function(e){var t=eg(e);if(ng(t,Qy))return t[Qy];var n=t.constructor;return sg(n)&&t instanceof n?n.prototype:t instanceof $y?eb:null},nb=Cg(`iterator`),rb=!1;[].keys&&(`next`in(Gy=[].keys())?(Wy=tb(tb(Gy)))!==Object.prototype&&(Uy=Wy):rb=!0),(Uy==null||gg((function(){var e={};return Uy[nb].call(e)!==e})))&&(Uy={}),sg(Uy[nb])||S_(Uy,nb,(function(){return this}));var ib={IteratorPrototype:Uy,BUGGY_SAFARI_ITERATORS:rb},ab=Zg.f,ob=Cg(`toStringTag`),sb=function(e,t,n){e&&!ng(e=n?e:e.prototype,ob)&&ab(e,ob,{configurable:!0,value:t})},cb=ib.IteratorPrototype,lb=function(){return this},ub=W.String,db=W.TypeError,fb=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=G(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Pg(n),function(e){if(typeof e==`object`||sg(e))return e;throw db(`Can't set `+ub(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),pb=x_.PROPER,mb=x_.CONFIGURABLE,hb=ib.IteratorPrototype,gb=ib.BUGGY_SAFARI_ITERATORS,_b=Cg(`iterator`),hie=function(){return this},vb=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=fy(cb,{next:Qg(1,n)}),sb(e,i,!1),Oy[i]=lb})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!gb&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[_b]||p[`@@iterator`]||i&&p[i],h=!gb&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=tb(g.call(new e)))!==Object.prototype&&s.next&&(tb(s)!==hb&&(fb?fb(s,hb):sg(s[_b])||S_(s,_b,hie)),sb(s,d,!0)),pb&&i==`values`&&m&&m.name!==`values`&&(mb?$g(p,`name`,`values`):(f=!0,h=function(){return Ig(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(gb||f||!(l in p))&&S_(p,l,c[l]);else Vv({target:t,proto:!0,forced:gb||f},c);return p[_b]!==h&&S_(p,_b,h,{name:i}),Oy[t]=h,c},gie=Xy.charAt,_ie=__.set,vie=__.getterFor(`String Iterator`);vb(String,`String`,(function(e){_ie(this,{type:`String Iterator`,string:Xv(e),index:0})}),(function(){var e,t=vie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=gie(n,r),t.index+=e.length,{value:e,done:!1})}));var yb,yie=_v.f,bb=G(``.endsWith),bie=G(``.slice),xie=Math.min,xb=Sy(`endsWith`);Vv({target:`String`,proto:!0,forced:!!(xb||(yb=yie(String.prototype,`endsWith`),!yb||yb.writable))&&!xb},{endsWith:function(e){var t=Xv(Qh(this));by(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:xie(W_(n),r),a=Xv(e);return bb?bb(t,a,i):bie(t,i-a.length,i)===a}});var Sie=G([].join),Cie=z_!=Object,wie=sv(`join`,`,`);Vv({target:`Array`,proto:!0,forced:Cie||!wie},{join:function(e){return Sie(hv(this),e===void 0?`,`:e)}});var Tie=Cg(`species`),Sb=function(e){return hg>=51||!gg((function(){var t=[];return(t.constructor={})[Tie]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Eie=ov.map;Vv({target:`Array`,proto:!0,forced:!Sb(`map`)},{map:function(e){return Eie(this,e,arguments.length>1?arguments[1]:void 0)}});var Cb=W.RegExp,wb=gg((function(){var e=Cb(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Die=wb||gg((function(){return!Cb(`a`,`y`).sticky})),Tb={BROKEN_CARET:wb||gg((function(){var e=Cb(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Die,UNSUPPORTED_Y:wb},Oie=W.RegExp,Eb=gg((function(){var e=Oie(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),kie=W.RegExp,Db=gg((function(){var e=kie(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Aie=__.get,jie=Kh(`native-string-replace`,String.prototype.replace),Ob=RegExp.prototype.exec,kb=Ob,Mie=G(``.charAt),Nie=G(``.indexOf),Pie=G(``.replace),Ab=G(``.slice),jb=function(){var e=/a/,t=/b*/g;return Ig(Ob,e,`a`),Ig(Ob,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),Mb=Tb.BROKEN_CARET,Nb=/()??/.exec(``)[1]!==void 0;(jb||Nb||Mb||Eb||Db)&&(kb=function(e){var t,n,r,i,a,o,s,c=this,l=Aie(c),u=Xv(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Ig(kb,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=Mb&&c.sticky,m=Ig(Zv,c),h=c.source,g=0,_=u;if(p&&(m=Pie(m,`y`,``),Nie(m,`g`)===-1&&(m+=`g`),_=Ab(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Mie(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),Nb&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),jb&&(r=c.lastIndex),i=Ig(Ob,p?n:c,_),p?i?(i.input=Ab(i.input,g),i[0]=Ab(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:jb&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Nb&&i&&i.length>1&&Ig(jie,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=fy(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Pb=kb;Vv({target:`RegExp`,proto:!0,forced:/./.exec!==Pb},{exec:Pb});var Fb=Function.prototype,Ib=Fb.apply,Fie=Fb.bind,Lb=Fb.call,Rb=typeof Reflect==`object`&&Reflect.apply||(Fie?Lb.bind(Ib):function(){return Lb.apply(Ib,arguments)}),Iie=Cg(`species`),zb=RegExp.prototype,Bb=function(e,t,n,r){var i=Cg(e),a=!gg((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!gg((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Iie]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=G(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=G(e),c=t.exec;return c===Pb||c===zb.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));S_(String.prototype,e,c[0]),S_(zb,i,c[1])}r&&$g(zb[i],`sham`,!0)},Lie=Xy.charAt,Vb=function(e,t,n){return t+(n?Lie(e,t).length:1)},Rie=Math.floor,Hb=G(``.charAt),zie=G(``.replace),Ub=G(``.slice),Bie=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Vie=/\$([$&'`]|\d{1,2})/g,Hie=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Vie;return i!==void 0&&(i=eg(i),c=Bie),zie(a,c,(function(a,c){var l;switch(Hb(c,0)){case`$`:return`$`;case`&`:return e;case"`":return Ub(t,0,n);case`'`:return Ub(t,o);case`<`:l=i[Ub(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Rie(u/10);return d===0?a:d<=s?r[d-1]===void 0?Hb(c,1):r[d-1]+Hb(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Uie=W.TypeError,Wb=function(e,t){var n=e.exec;if(sg(n)){var r=Ig(n,e,t);return r!==null&&Pg(r),r}if(T_(e)===`RegExp`)return Ig(Pb,e,t);throw Uie(`RegExp#exec called on incompatible receiver`)},Gb=Cg(`replace`),Wie=Math.max,Gie=Math.min,Kie=G([].concat),Kb=G([].push),qb=G(``.indexOf),Jb=G(``.slice),qie=`a`.replace(/./,`$0`)===`$0`,Yb=!!/./[Gb]&&/./[Gb](`a`,`$0`)===``;Bb(`replace`,(function(e,t,n){var r=Yb?`$`:`$0`;return[function(e,n){var r=Qh(this),i=e==null?void 0:Wg(e,Gb);return i?Ig(i,e,r,n):Ig(t,Xv(r),e,n)},function(e,i){var a=Pg(this),o=Xv(e);if(typeof i==`string`&&qb(i,r)===-1&&qb(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=sg(i);c||(i=Xv(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Wb(a,o);if(f===null||(Kb(d,f),!l))break;Xv(f[0])===``&&(a.lastIndex=Vb(o,W_(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=Xv((f=d[g])[0]),v=Wie(Gie(H_(f.index),o.length),0),y=[],b=1;b<f.length;b++)Kb(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Kie([_],y,v,o);x!==void 0&&Kb(S,x);var C=Xv(Rb(i,void 0,S))}else C=Hie(_,o,v,y,x,i);v>=h&&(m+=Jb(o,h,v)+C,h=v+_.length)}return m+Jb(o,h)}]}),!!gg((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!qie||Yb);var Xb=function(e,t){return Xb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Xb(e,t)};function Zb(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}Xb(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Qb=function(){return Qb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qb.apply(this,arguments)};function $b(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function ex(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function tx(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var Jie=0,nx=function(){this.id=``+ Jie++},Yie=__.set,Xie=__.getterFor(`Array Iterator`),rx=vb(Array,`Array`,(function(e,t){Yie(this,{type:`Array Iterator`,target:hv(e),index:0,kind:t})}),(function(){var e=Xie(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);Oy.Arguments=Oy.Array,hy(`keys`),hy(`values`),hy(`entries`);var ix=function(e,t,n){for(var r in t)S_(e,r,t[r],n);return e},Zie=W.Array,Qie=Math.max,ax=function(e,t,n){for(var r=G_(e),i=bv(t,r),a=bv(n===void 0?r:n,r),o=Zie(Qie(a-i,0)),s=0;i<a;i++,s++)My(o,s,e[i]);return o.length=s,o},ox=Ov.f,sx=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$ie={f:function(e){return sx&&T_(e)==`Window`?function(e){try{return ox(e)}catch{return ax(sx)}}(e):ox(hv(e))}},cx=gg((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),lx=Object.isExtensible,ux=gg((function(){lx(1)}))||cx?function(e){return!!Dg(e)&&(!cx||T_(e)!=`ArrayBuffer`)&&(!lx||lx(e))}:lx,eae=!gg((function(){return Object.isExtensible(Object.preventExtensions({}))})),dx=zh((function(e){var t=Zg.f,n=!1,r=og(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Ov.f,t=G([].splice),i={};i[r]=1,e(i).length&&(Ov.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},Vv({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:$ie.f}))},fastKey:function(e,t){if(!Dg(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!ng(e,r)){if(!ux(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!ng(e,r)){if(!ux(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return eae&&n&&ux(e)&&!ng(e,r)&&a(e),e}};l_[r]=!0})),tae=W.TypeError,fx=function(e,t){this.stopped=e,this.result=t},px=fx.prototype,mx=function(e,t,n){var r,i,a,o,s,c,l,u=n&&n.that,d=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),m=I_(t,u),h=function(e){return r&&Ey(r,`normal`,e),new fx(!0,e)},g=function(e){return d?(Pg(e),p?m(e[0],e[1],h):m(e[0],e[1])):p?m(e,h):m(e)};if(f)r=e;else{if(!(i=Py(e)))throw tae(Vg(e)+` is not iterable`);if(jy(i)){for(a=0,o=G_(e);o>a;a++)if((s=g(e[a]))&&Lg(px,s))return s;return new fx(!1)}r=Iy(e,i)}for(c=r.next;!(l=Ig(c,r)).done;){try{s=g(l.value)}catch(e){Ey(r,`throw`,e)}if(typeof s==`object`&&s&&Lg(px,s))return s}return new fx(!1)},nae=W.TypeError,hx=function(e,t){if(Lg(t,e))return e;throw nae(`Incorrect invocation`)},gx=function(e,t,n){var r,i;return fb&&sg(r=t.constructor)&&r!==n&&Dg(i=r.prototype)&&i!==n.prototype&&fb(e,i),e},_x=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=W[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=G(s[e]);S_(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!Dg(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!Dg(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!Dg(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(zv(e,!sg(o)||!(i||s.forEach&&!gg((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),dx.enable();else if(zv(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=gg((function(){d.has(1)})),m=Hy((function(e){new o(e)})),h=!i&&gg((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){hx(e,s);var n=gx(new o,e,c);return t!=null&&mx(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,Vv({global:!0,forced:c!=o},l),sb(c,e),i||n.setStrong(c,e,r),c},vx=dx.getWeakData,rae=__.set,iae=__.getterFor,aae=ov.find,oae=ov.findIndex,sae=G([].splice),cae=0,yx=function(e){return e.frozen||=new bx},bx=function(){this.entries=[]},xx=function(e,t){return aae(e.entries,(function(e){return e[0]===t}))};bx.prototype={get:function(e){var t=xx(this,e);if(t)return t[1]},has:function(e){return!!xx(this,e)},set:function(e,t){var n=xx(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=oae(this.entries,(function(t){return t[0]===e}));return~t&&sae(this.entries,t,1),!!~t}};var Sx,Cx={getConstructor:function(e,t,n,r){var i=e((function(e,i){hx(e,a),rae(e,{type:t,id:cae++,frozen:void 0}),i!=null&&mx(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=iae(t),s=function(e,t,n){var r=o(e),i=vx(Pg(t),!0);return!0===i?yx(r).set(t,n):i[r.id]=n,e};return ix(a,{delete:function(e){var t=o(this);if(!Dg(e))return!1;var n=vx(e);return!0===n?yx(t).delete(e):n&&ng(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!Dg(e))return!1;var n=vx(e);return!0===n?yx(t).has(e):n&&ng(n,t.id)}}),ix(a,n?{get:function(e){var t=o(this);if(Dg(e)){var n=vx(e);return!0===n?yx(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},wx=__.enforce,lae=!W.ActiveXObject&&`ActiveXObject`in W,Tx=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},uae=_x(`WeakMap`,Tx,Cx);if(o_&&lae){Sx=Cx.getConstructor(Tx,`WeakMap`,!0),dx.enable();var Ex=uae.prototype,Dx=G(Ex.delete),Ox=G(Ex.has),kx=G(Ex.get),Ax=G(Ex.set);ix(Ex,{delete:function(e){if(Dg(e)&&!ux(e)){var t=wx(this);return t.frozen||=new Sx,Dx(this,e)||t.frozen.delete(e)}return Dx(this,e)},has:function(e){if(Dg(e)&&!ux(e)){var t=wx(this);return t.frozen||=new Sx,Ox(this,e)||t.frozen.has(e)}return Ox(this,e)},get:function(e){if(Dg(e)&&!ux(e)){var t=wx(this);return t.frozen||=new Sx,Ox(this,e)?kx(this,e):t.frozen.get(e)}return kx(this,e)},set:function(e,t){if(Dg(e)&&!ux(e)){var n=wx(this);n.frozen||=new Sx,Ox(this,e)?Ax(this,e,t):n.frozen.set(e,t)}else Ax(this,e,t);return this}})}var jx=Cg(`iterator`),Mx=Cg(`toStringTag`),Nx=rx.values,Px=function(e,t){if(e){if(e[jx]!==Nx)try{$g(e,jx,Nx)}catch{e[jx]=Nx}if(e[Mx]||$g(e,Mx,t),j_[t]){for(var n in rx)if(e[n]!==rx[n])try{$g(e,n,rx[n])}catch{e[n]=rx[n]}}}};for(var Fx in j_)Px(W[Fx]&&W[Fx].prototype,Fx);Px(P_,`DOMTokenList`);var Ix=new WeakMap,Lx=new WeakMap,Rx=new WeakMap,zx=new WeakMap,Bx=new WeakMap,Vx=new WeakMap,Hx=new WeakMap,Ux=new WeakMap,Wx=new WeakMap,Gx=new WeakMap,Kx=new WeakMap,qx=new WeakMap,Jx=new WeakMap,Yx=new WeakMap,Xx=new WeakMap,Zx=new WeakMap,Qx=new WeakMap,$x=new WeakMap,eS=new WeakMap,tS=new WeakMap,nS=new WeakMap,rS=new WeakMap,iS=new WeakMap,aS=new WeakMap,oS=new WeakMap,dae=ov.find,sS=!0;`find`in[]&&[,].find((function(){sS=!1})),Vv({target:`Array`,proto:!0,forced:sS},{find:function(e){return dae(this,e,arguments.length>1?arguments[1]:void 0)}}),hy(`find`),Vv({global:!0},{globalThis:W});var fae=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];dd&&(V.fn.css=dd),_d&&(V.fn.append=_d),Zu&&(V.fn.addClass=Zu),Qu&&(V.fn.removeClass=Qu),$u&&(V.fn.hasClass=$u),id&&(V.fn.on=id),Od&&(V.fn.focus=Od),ed&&(V.fn.attr=ed),td&&(V.fn.removeAttr=td),ld&&(V.fn.hide=ld),ud&&(V.fn.show=ud),cd&&(V.fn.offset=cd),od&&(V.fn.width=od),sd&&(V.fn.height=sd),yd&&(V.fn.parent=yd),bd&&(V.fn.parents=bd),gd&&(V.fn.is=gd),nd&&(V.fn.dataset=nd),rd&&(V.fn.val=rd),hd&&(V.fn.text=hd),md&&(V.fn.html=md),Sd&&(V.fn.children=Sd),Cd&&(V.fn.remove=Cd),xd&&(V.fn.find=xd),fd&&(V.fn.each=fd),wd&&(V.fn.empty=wd);var cS,lS,uS=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},dS=function(e){return fS(e)&&e.nodeType===1},fS=function(e){var t=uS(e);return!!t&&e instanceof t.Node},pS=function(e){var t=e&&e.anchorNode&&uS(e.anchorNode);return!!t&&e instanceof t.Selection},mS=function(e){return fS(e)&&e.nodeType===3},hS=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},gS=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(fS(r=a)&&r.nodeType===8||dS(a)&&a.childNodes.length===0||dS(a)&&a.getAttribute(`contenteditable`)===`false`)&&(!s||!c);)o>=i.length?(s=!0,o=t-1,n=`backward`):o<0?(c=!0,o=t+1,n=`forward`):(a=i[o],t=o,o+=n===`forward`?1:-1);return[a,t]},pae=function(e,t,n){return ex(gS(e,t,n),1)[0]},mae=function e(t){var n,r,i=``;if(mS(t)&&t.nodeValue)return t.nodeValue;if(dS(t)){try{for(var a=$b(Array.from(t.childNodes)),o=a.next();!o.done;o=a.next())i+=e(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue(`display`);s!==`block`&&s!==`list`&&s!==`table-row`&&t.tagName!==`BR`||(i+=`
`)}return i};function _S(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid===`true`))for(var n=e.childNodes,r=n.length;r--;){var i=n[r],a=i.nodeType;a==3?t(i,e):a!=1&&a!=9&&a!=11||_S(i,t)}}function vS(e){if(e.length===0)return``;var t=e[0];return t.nodeType===cS.ELEMENT_NODE?t.tagName.toLowerCase():``}(lS=cS||={})[lS.ELEMENT_NODE=1]=`ELEMENT_NODE`,lS[lS.TEXT_NODE=3]=`TEXT_NODE`,lS[lS.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,lS[lS.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,lS[lS.COMMENT_NODE=8]=`COMMENT_NODE`,lS[lS.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,lS[lS.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,lS[lS.DOCUMENT_FRAGMENT_NODE=11]=`DOCUMENT_FRAGMENT_NODE`,globalThis.navigator!==void 0&&globalThis.window!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var yS=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),bS=typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);typeof navigator<`u`&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var xS=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),hae=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),gae=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),SS=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var CS=!gae&&!hae&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,K={getWindow:function(e){var t=nS.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=tS.get(t);return n||(n=new nx,tS.set(t,n)),n},setNewKey:function(e){var t=new nx;tS.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=Xx.get(r);if(i==null){if(P.isEditor(r))return n;break}var a=Yx.get(r);if(a==null)break;n.unshift(a),r=i}throw Error(`Unable to find the path for Slate node: `+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=K.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return Xx.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=K.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[K.findPath(e,t)[0]];return F.get(e,n)},toDOMNode:function(e,t){var n;if(P.isEditor(t))n=Zx.get(e);else{var r=K.findKey(e,t);n=$x.get(r)}if(!n)throw Error(`Cannot resolve a DOM node from Slate node: `+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){n===void 0&&(n={});var r,i=n.editable,a=i!==void 0&&i,o=K.toDOMNode(e,e);try{r=dS(t)?t:t.parentElement}catch(e){if(!e.message.includes(`Permission denied to access property "nodeType"`))throw e}return!!r&&r.closest(`[data-slate-editor]`)===o&&(!a||r.isContentEditable||!!r.getAttribute(`data-slate-zero-width`))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,i=R.isBackward(t),a=K.toDOMPoint(e,n),o=R.isCollapsed(t)?a:K.toDOMPoint(e,r),s=K.getWindow(e).document.createRange(),c=ex(i?o:a,2),l=c[0],u=c[1],d=ex(i?a:o,2),f=d[0],p=d[1],m=!!(dS(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(dS(f)?f:f.parentElement).getAttribute(`data-slate-zero-width`);return s.setStart(l,m?1:u),s.setEnd(f,h?1:p),s},toDOMPoint:function(e,t){var n,r,i,a=ex(P.node(e,t.path),1)[0],o=K.toDOMNode(e,a);P.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(o.querySelectorAll(`[data-slate-string], [data-slate-zero-width]`)),c=0;try{for(var l=$b(s),u=l.next();!u.done;u=l.next()){var d=u.value,f=d.childNodes[0];if(f!=null&&f.textContent!=null){var p=f.textContent.length,m=d.getAttribute(`data-slate-length`),h=c+(m==null?p:parseInt(m,10));if(t.offset<=h){i=[f,Math.min(p,Math.max(0,t.offset-c))];break}c=h}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!i)throw Error(`Cannot resolve a DOM point from Slate point: `+JSON.stringify(t));return i},toSlateNode:function(e,t){var n=dS(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?Qx.get(n):null;if(!r)throw Error(`Cannot resolve a Slate node from DOM node: `+n);return r},findEventRange:function(e,t){`nativeEvent`in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,i=t.target;if(n==null||r==null)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);var a,o=K.toSlateNode(e,t.target),s=K.findPath(e,o);if(P.isVoid(e,o)){var c=i.getBoundingClientRect(),l=e.isInline(o)?n-c.left<c.left+c.width-n:r-c.top<c.top+c.height-r,u=P.point(e,s,{edge:l?`start`:`end`}),d=l?P.before(e,u):P.after(e,u);if(d)return P.range(e,d)}var f=this.getWindow(e).document;if(f.caretRangeFromPoint)a=f.caretRangeFromPoint(n,r);else{var p=f.caretPositionFromPoint(n,r);p&&((a=f.createRange()).setStart(p.offsetNode,p.offset),a.setEnd(p.offsetNode,p.offset))}if(!a)throw Error(`Cannot resolve a Slate range from a DOM event: `+t);return K.toSlateRange(e,a,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,i,a,o,s,c=n.exactMatch,l=n.suppressThrow;if((pS(t)?t.anchorNode:t.startContainer)&&(pS(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=SS&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,i=t.startOffset,a=t.endContainer,o=t.endOffset,s=t.collapsed)),r==null||a==null||i==null||o==null)throw Error(`Cannot resolve a Slate range from DOM range: `+t);var u=K.toSlatePoint(e,[r,i],{exactMatch:c,suppressThrow:l});if(!u)return null;var d=s?u:K.toSlatePoint(e,[a,o],{exactMatch:c,suppressThrow:l});if(!d)return null;var f={anchor:u,focus:d};return R.isExpanded(f)&&R.isForward(f)&&dS(a)&&P.void(e,{at:f.focus,mode:`highest`})&&(f=P.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=ex(i?t:function(e){var t,n=ex(e,2),r=n[0],i=n[1];if(dS(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=ex(gS(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;dS(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=pae(r,s,a?`backward`:`forward`)}i=a&&r.textContent!=null?r.textContent.length:0}return[r,i]}(t),2),s=o[0],c=o[1],l=s.parentNode,u=null,d=0;if(l){var f=l.closest(`[data-slate-void="true"]`),p=l.closest(`[data-slate-leaf]`),m=null;if(p){u=p.closest(`[data-slate-node="text"]`);var h=K.getWindow(e).document.createRange();h.setStart(u,0),h.setEnd(s,c);var g=h.cloneContents();tx(tx([],ex(Lu(g.querySelectorAll(`[data-slate-zero-width]`)))),ex(Lu(g.querySelectorAll(`[contenteditable=false]`)))).forEach((function(e){e.parentNode.removeChild(e)})),d=g.textContent.length,m=u}else f&&((p=f.querySelector(`[data-slate-leaf]`))?(u=p.closest(`[data-slate-node="text"]`),d=(m=p).textContent.length,m.querySelectorAll(`[data-slate-zero-width]`).forEach((function(e){d-=e.textContent.length}))):d=1);m&&d===m.textContent.length&&(l.hasAttribute(`data-slate-zero-width`)||bS&&(r=m.textContent)!=null&&r.endsWith(`
`))&&d--}if(!u){if(a)return null;throw Error(`Cannot resolve a Slate point from DOM point: `+t)}var _=K.toSlateNode(e,u);return{path:K.findPath(e,_),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return P.hasPath(e,n.path)&&P.hasPath(e,r.path)},getNodeType:function(e){return N.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return F.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=P.nodes(e,{universal:!0});try{for(var a=$b(i),o=a.next();!o.done;o=a.next()){var s=ex(o.value,1)[0];N.isElement(s)&&r.push(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=ex(P.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return r==null?null:r[0]},getSelectedTextNode:function(e){var t=ex(P.nodes(e,{match:function(e){return z.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=ex(P.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&ex(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(P.isEnd(e,n.anchor,t)||P.isEnd(e,n.focus,t))},getTextarea:function(e){var t=Ix.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return zx.get(e)||null},getHoverbar:function(e){return Vx.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if(typeof n!=`number`||n<=0)return 1/0;var i=n-e.getText().replace(/\r|\n|(\r\n)/g,``).length;return i<=0&&r&&r(e),i},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,i,a=K.getTextarea(e).$textArea?.[0].childNodes;if(a)try{for(var o=$b(Array.from(a)),s=o.next();!s.done;s=o.next()){var c=s.value;if(c.nodeType!==3)break;c.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}var l=P.nodes(e,{match:function(t){return!(!N.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=$b(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];_S(K.toDOMNode(e,p),(function(e,t){var n=V(t);n.attr(`data-slate-string`)||n.attr(`data-slate-zero-width`)||n.attr(`data-w-e-reserve`)||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:`paragraph`,children:[{text:``}]}},isSelectedVoidNode:function(e){var t,n,r=P.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=$b(r),o=a.next();!o.done;o=a.next())o.value,i++}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||R.isExpanded(t))return!1;var n=K.getSelectedNodeByType(e,`paragraph`);if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===``||void 0)},isEmptyPath:function(e,t){var n=P.node(e,t);if(n==null)return!1;var r=ex(n,1)[0].children;return r.length===1&&r[0].text===``}},_ae=1,wS={},TS={},vae=ov.filter;Vv({target:`Array`,proto:!0,forced:!Sb(`filter`)},{filter:function(e){return vae(this,e,arguments.length>1?arguments[1]:void 0)}});var ES=`	
\v\f\r \xA0               \u2028\u2029`,DS=G(``.replace),OS=`[`+ES+`]`,yae=RegExp(`^`+OS+OS+`*`),bae=RegExp(OS+OS+`*$`),kS=function(e){return function(t){var n=Xv(Qh(t));return 1&e&&(n=DS(n,yae,``)),2&e&&(n=DS(n,bae,``)),n}},xae={start:kS(1),end:kS(2),trim:kS(3)},Sae=x_.PROPER,Cae=xae.trim;Vv({target:`String`,proto:!0,forced:function(e){return gg((function(){return!!ES[e]()||`​…᠎`[e]()!==`​…᠎`||Sae&&ES[e].name!==e}))}(`trim`)},{trim:function(){return Cae(this)}});var AS=[],jS={};function wae(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var MS,NS,PS,FS,IS=W.Promise,LS=Cg(`species`),RS=function(e){var t=lg(e),n=Zg.f;Eg&&t&&!t[LS]&&n(t,LS,{configurable:!0,get:function(){return this}})},Tae=W.TypeError,Eae=Cg(`species`),zS=function(e,t){var n,r=Pg(e).constructor;return r===void 0||(n=Pg(r)[Eae])==null?t:function(e){if(ev(e))return e;throw Tae(Vg(e)+` is not a constructor`)}(n)},BS=G([].slice),VS=/(?:ipad|iphone|ipod).*applewebkit/i.test(ug),HS=T_(W.process)==`process`,US=W.setImmediate,WS=W.clearImmediate,Dae=W.process,GS=W.Dispatch,Oae=W.Function,KS=W.MessageChannel,kae=W.String,qS=0,JS={};try{MS=W.location}catch{}var YS=function(e){if(ng(JS,e)){var t=JS[e];delete JS[e],t()}},XS=function(e){return function(){YS(e)}},ZS=function(e){YS(e.data)},QS=function(e){W.postMessage(kae(e),MS.protocol+`//`+MS.host)};US&&WS||(US=function(e){var t=BS(arguments,1);return JS[++qS]=function(){Rb(sg(e)?e:Oae(e),void 0,t)},NS(qS),qS},WS=function(e){delete JS[e]},HS?NS=function(e){Dae.nextTick(XS(e))}:GS&&GS.now?NS=function(e){GS.now(XS(e))}:KS&&!VS?(FS=(PS=new KS).port2,PS.port1.onmessage=ZS,NS=I_(FS.postMessage,FS)):W.addEventListener&&sg(W.postMessage)&&!W.importScripts&&MS&&MS.protocol!==`file:`&&!gg(QS)?(NS=QS,W.addEventListener(`message`,ZS,!1)):NS=`onreadystatechange`in Ag(`script`)?function(e){oy.appendChild(Ag(`script`)).onreadystatechange=function(){oy.removeChild(this),YS(e)}}:function(e){setTimeout(XS(e),0)});var $S,eC,tC,nC,rC,iC,aC,oC,sC={set:US,clear:WS},Aae=/ipad|iphone|ipod/i.test(ug)&&W.Pebble!==void 0,jae=/web0s(?!.*chrome)/i.test(ug),Mae=_v.f,cC=sC.set,lC=W.MutationObserver||W.WebKitMutationObserver,uC=W.document,dC=W.process,fC=W.Promise,pC=Mae(W,`queueMicrotask`),mC=pC&&pC.value;mC||($S=function(){var e,t;for(HS&&(e=dC.domain)&&e.exit();eC;){t=eC.fn,eC=eC.next;try{t()}catch(e){throw eC?nC():tC=void 0,e}}tC=void 0,e&&e.enter()},VS||HS||jae||!lC||!uC?!Aae&&fC&&fC.resolve?((aC=fC.resolve(void 0)).constructor=fC,oC=I_(aC.then,aC),nC=function(){oC($S)}):HS?nC=function(){dC.nextTick($S)}:(cC=I_(cC,W),nC=function(){cC($S)}):(rC=!0,iC=uC.createTextNode(``),new lC($S).observe(iC,{characterData:!0}),nC=function(){iC.data=rC=!rC}));var hC,gC,_C,vC,yC=mC||function(e){var t={fn:e,next:void 0};tC&&(tC.next=t),eC||(eC=t,nC()),tC=t},Nae=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=Ug(t),this.reject=Ug(n)},bC={f:function(e){return new Nae(e)}},xC=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Pae=typeof window==`object`,SC=sC.set,Fae=Cg(`species`),CC=`Promise`,wC=__.getterFor(CC),Iae=__.set,Lae=__.getterFor(CC),TC=IS&&IS.prototype,EC=IS,DC=TC,OC=W.TypeError,kC=W.document,AC=W.process,jC=bC.f,Rae=jC,zae=!!(kC&&kC.createEvent&&W.dispatchEvent),MC=sg(W.PromiseRejectionEvent),NC=!1,PC=zv(CC,(function(){var e=i_(EC),t=e!==String(EC);if(!t&&hg===66)return!0;if(hg>=51&&/native code/.test(e))return!1;var n=new EC((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Fae]=r,!(NC=n.then((function(){}))instanceof r)||!t&&Pae&&!MC})),Bae=PC||!Hy((function(e){EC.all(e).catch((function(){}))})),FC=function(e){var t;return!(!Dg(e)||!sg(t=e.then))&&t},IC=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;yC((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&Hae(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(OC(`Promise-chain cycle`)):(s=FC(o))?Ig(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Vae(e)}))}},LC=function(e,t,n){var r,i;zae?((r=kC.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),W.dispatchEvent(r)):r={promise:t,reason:n},!MC&&(i=W[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=W.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Vae=function(e){Ig(SC,W,(function(){var t,n=e.facade,r=e.value;if(RC(e)&&(t=xC((function(){HS?AC.emit(`unhandledRejection`,r,n):LC(`unhandledrejection`,n,r)})),e.rejection=HS||RC(e)?2:1,t.error))throw t.value}))},RC=function(e){return e.rejection!==1&&!e.parent},Hae=function(e){Ig(SC,W,(function(){var t=e.facade;HS?AC.emit(`rejectionHandled`,t):LC(`rejectionhandled`,t,e.value)}))},zC=function(e,t,n){return function(r){e(t,r,n)}},BC=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,IC(e,!0))},VC=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw OC(`Promise can't be resolved itself`);var r=FC(t);r?yC((function(){var n={done:!1};try{Ig(r,t,zC(VC,n,e),zC(BC,n,e))}catch(t){BC(n,t,e)}})):(e.value=t,e.state=1,IC(e,!1))}catch(t){BC({done:!1},t,e)}}};if(PC&&(DC=(EC=function(e){hx(this,DC),Ug(e),Ig(hC,this);var t=wC(this);try{e(zC(VC,t),zC(BC,t))}catch(e){BC(t,e)}}).prototype,(hC=function(e){Iae(this,{type:CC,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ix(DC,{then:function(e,t){var n=Lae(this),r=n.reactions,i=jC(zS(this,EC));return i.ok=!sg(e)||e,i.fail=sg(t)&&t,i.domain=HS?AC.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&IC(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),gC=function(){var e=new hC,t=wC(e);this.promise=e,this.resolve=zC(VC,t),this.reject=zC(BC,t)},bC.f=jC=function(e){return e===EC||e===_C?new gC(e):Rae(e)},sg(IS)&&TC!==Object.prototype)){vC=TC.then,NC||(S_(TC,`then`,(function(e,t){var n=this;return new EC((function(e,t){Ig(vC,n,e,t)})).then(e,t)}),{unsafe:!0}),S_(TC,`catch`,DC.catch,{unsafe:!0}));try{delete TC.constructor}catch{}fb&&fb(TC,DC)}Vv({global:!0,wrap:!0,forced:PC},{Promise:EC}),sb(EC,CC,!1),RS(CC),_C=lg(CC),Vv({target:CC,stat:!0,forced:PC},{reject:function(e){var t=jC(this);return Ig(t.reject,void 0,e),t.promise}}),Vv({target:CC,stat:!0,forced:PC},{resolve:function(e){return function(e,t){if(Pg(e),Dg(t)&&t.constructor===e)return t;var n=bC.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Vv({target:CC,stat:!0,forced:Bae},{all:function(e){var t=this,n=jC(t),r=n.resolve,i=n.reject,a=xC((function(){var n=Ug(t.resolve),a=[],o=0,s=1;mx(e,(function(e){var c=o++,l=!1;s++,Ig(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=jC(t),r=n.reject,i=xC((function(){var i=Ug(t.resolve);mx(e,(function(e){Ig(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var HC=Tb.UNSUPPORTED_Y,Uae=Math.min,UC=[].push,Wae=G(/./.exec),WC=G(UC),GC=G(``.slice);function KC(e){Promise.resolve().then(e)}function qC(e,t){return N.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=P.isVoid(t,e),s=``;o||(s=a.map((function(e){return qC(e,t)})).join(``));var c=function(e){return jS[e]||wae}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||AS.forEach((function(t){return l=t(e,l)})),typeof c==`string`)return l;var u=c.prefix,d=u===void 0?``:u,f=c.suffix,p=f===void 0?``:f;return d&&(l=d+l),p&&(l+=p),l}(e,t):function(e,t){var n=e.text;if(n==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g,` &nbsp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/®/g,`&reg;`).replace(/©/g,`&copy;`).replace(/™/g,`&trade;`)}(r);var i=K.getParentsNodes(t,e).some((function(e){return K.getNodeType(e)===`pre`}));if(i||(r=r.replace(/\r\n|\r|\n/g,`<br>`)),i&&(r=r.replace(/&nbsp;/g,` `)),r===``){var a=K.getParentNode(null,e);if(!a||a.children.length!==0)return r;r=`<br>`}return AS.forEach((function(t){return r=t(e,r)})),r}(e,t)}function JC(e){return`w-e-element-`+e}Bb(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=Xv(Qh(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!vy(e))return Ig(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=Ig(Pb,d,r))&&!((o=d.lastIndex)>u&&(WC(c,GC(r,u,a.index)),a.length>1&&a.index<r.length&&Rb(UC,c,ax(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&Wae(d,``)||WC(c,``):WC(c,GC(r,u)),c.length>i?ax(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Ig(t,this,e,n)}:t,[function(t,n){var i=Qh(this),a=t==null?void 0:Wg(t,e);return a?Ig(a,t,i,n):Ig(r,Xv(i),t,n)},function(e,i){var a=Pg(this),o=Xv(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=zS(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(HC?`g`:`y`),d=new c(HC?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return Wb(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=HC?0:m;var g,_=Wb(d,HC?GC(o,m):o);if(_===null||(g=Uae(W_(d.lastIndex+(HC?m:0)),o.length))===p)m=Vb(o,m,l);else{if(WC(h,GC(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(WC(h,_[v]),h.length===f)return h;m=p=g}}return WC(h,GC(o,p)),h}]}),!!gg((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),HC);var YC=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},XC=function(e,t,n){var r=K.toDOMRange(e,t).getBoundingClientRect(),i=K.toDOMRange(e,n).getBoundingClientRect();return YC(r,i)&&YC(i,r)},ZC=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],QC=[],$C=[],ew={},Gae=Zg.f,Kae=Ov.f,qae=__.enforce,Jae=Cg(`match`),tw=W.RegExp,nw=tw.prototype,Yae=W.SyntaxError,Xae=G(Zv),Zae=G(nw.exec),rw=G(``.charAt),iw=G(``.replace),aw=G(``.indexOf),Qae=G(``.slice),$ae=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ow=/a/g,sw=/a/g,eoe=new tw(ow)!==ow,cw=Tb.MISSED_STICKY,toe=Tb.UNSUPPORTED_Y;if(zv(`RegExp`,Eg&&(!eoe||cw||Eb||Db||gg((function(){return sw[Jae]=!1,tw(ow)!=ow||tw(sw)==sw||tw(ow,`i`)!=`/a/i`}))))){for(var lw=function(e,t){var n,r,i,a,o,s,c=Lg(nw,this),l=vy(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===lw)return e;if((l||Lg(nw,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:Xae(f))),e=e===void 0?``:Xv(e),t=t===void 0?``:Xv(t),f=e,Eb&&`dotAll`in ow&&(r=!!t&&aw(t,`s`)>-1)&&(t=iw(t,/s/g,``)),n=t,cw&&`sticky`in ow&&(i=!!t&&aw(t,`y`)>-1)&&toe&&(t=iw(t,/y/g,``)),Db&&(a=function(e){for(var t,n=e.length,r=0,i=``,a=[],o={},s=!1,c=!1,l=0,u=``;r<=n;r++){if((t=rw(e,r))===`\\`)t+=rw(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:Zae($ae,Qae(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||ng(o,u))throw new Yae(`Invalid capture group name`);o[u]=!0,a[a.length]=[u,l],c=!1,u=``;continue}c?u+=t:i+=t}return[i,a]}(e),e=a[0],d=a[1]),o=gx(tw(e,t),c?this:nw,lw),(r||i||d.length)&&(s=qae(o),r&&(s.dotAll=!0,s.raw=lw(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=rw(e,r))===`\\`?i+=t+rw(e,++r):a||t!==`.`?(t===`[`?a=!0:t===`]`&&(a=!1),i+=t):i+=`[\\s\\S]`;return i}(e),n)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==f)try{$g(o,`source`,f===``?`(?:)`:f)}catch{}return o},noe=function(e){e in lw||Gae(lw,e,{configurable:!0,get:function(){return tw[e]},set:function(t){tw[e]=t}})},uw=Kae(tw),dw=0;uw.length>dw;)noe(uw[dw++]);nw.constructor=lw,lw.prototype=nw,S_(W,`RegExp`,lw)}RS(`RegExp`);var roe=RegExp(`\xA0`,`g`);function fw(e){return e.replace(roe,` `)}function pw(e,t){var n=e.length;if(n){var r=e[n-1];if(z.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function ioe(e,t,n){return{type:`paragraph`,children:[{text:V(e).text().replace(/\s+/gm,` `)}]}}function mw(e,t){var n=function(e,t){var n=[];if(e.attr(`data-w-e-is-void`)!=null)return n;var r=e[0].childNodes;return r.length===1&&r[0].nodeName===`BR`?(n.push({text:``}),n):(r.forEach((function(e){if(e.nodeType!==cS.ELEMENT_NODE){if(e.nodeType===cS.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
`)>=0)return;r&&(r=fw(r),pw(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(pw(n,`
`)||n.push({text:`
`}));var i=gw(V(e),t);Array.isArray(i)?i.forEach((function(e){return n.push(e)})):n.push(i)}})),n)}(e,t),r=function(e){for(var t in ew)if(e[0].matches(t))return ew[t];return ioe}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){P.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),$C.forEach((function(n){r=n(e[0],r,t)})))})),r}function hw(e,t){e.parents(`pre`).length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm,` `).replace(/<br>/g,`
`));var n=e[0].textContent||``;n=function(e){return e.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=fw(n)};return $C.forEach((function(n){r=n(e[0],r,t)})),r}function gw(e,t){QC.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=V(r(e[0])))}));var n=vS(e);return n===`span`?e.attr(`data-w-e-type`)?mw(e,t):hw(e,t):n===`code`?vS(e.parent())===`pre`?mw(e,t):hw(e,t):ZC.includes(n)?hw(e,t):mw(e,t)}function _w(e,t,n){var r=V(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function vw(e,t){t===void 0&&(t=``);var n=[];t===``&&(t=`<p><br></p>`),t.indexOf(`<`)!==0&&(t=t.split(/\n/).map((function(e){return`<p>`+e+`</p>`})).join(``));var r=V(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=gw(V(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var aoe=Zg.f,yw=dx.fastKey,bw=__.set,xw=__.getterFor;_x(`Set`,(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var i=e((function(e,i){hx(e,a),bw(e,{type:t,index:fy(null),first:void 0,last:void 0,size:0}),Eg||(e.size=0),i!=null&&mx(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=xw(t),s=function(e,t,n){var r,i,a=o(e),s=c(e,t);return s?s.value=n:(a.last=s={index:i=yw(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),Eg?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=yw(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return ix(a,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&=n.previous.next=void 0,delete t[n.index],n=n.next;e.first=e.last=void 0,Eg?e.size=0:this.size=0},delete:function(e){var t=this,n=o(t),r=c(t,e);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),Eg?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=I_(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),ix(a,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,e===0?0:e,t)}}:{add:function(e){return s(this,e=e===0?0:e,e)}}),Eg&&aoe(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=xw(t),a=xw(r);vb(e,t,(function(e,t){bw(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?t==`keys`?{value:n.key,done:!1}:t==`values`?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?`entries`:`values`,!n,!0),RS(t)}});var Sw=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function Cw(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):B.insertNodes(e,t,{mode:`highest`})}var ooe=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=ex(R.edges(n),2),i=r[0],a=r[1],o=P.void(t,{at:i.path}),s=P.void(t,{at:a.path});if(!R.isCollapsed(n)||o){var c=K.toDOMRange(t,n),l=c.cloneContents(),u=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&e.textContent.trim()!==``&&(u=e)})),s){var d=ex(s,1)[0],f=c.cloneRange(),p=K.toDOMNode(t,d);f.setEndAfter(p),l=f.cloneContents()}if(o&&(u=l.querySelector(`[data-slate-spacer]`)),Array.from(l.querySelectorAll(`[data-slate-zero-width]`)).forEach((function(e){e.textContent=e.getAttribute(`data-slate-zero-width`)===`n`?`
`:``})),mS(u)){var m=u.ownerDocument.createElement(`span`);m.style.whiteSpace=`pre`,m.appendChild(u),l.appendChild(m),u=m}var h=t.getFragment(),g=JSON.stringify(h),_=window.btoa(encodeURIComponent(g));u.setAttribute(`data-slate-fragment`,_),e.setData(`application/x-slate-fragment`,_);var v=l.ownerDocument.createElement(`div`);return v.appendChild(l),v.setAttribute(`hidden`,`true`),l.ownerDocument.body.appendChild(v),e.setData(`text/html`,v.innerHTML),e.setData(`text/plain`,mae(v)),l.ownerDocument.body.removeChild(v),e}}},t.insertData=function(e){var r,i,a=e.getData(`application/x-slate-fragment`);if(a){var o=decodeURIComponent(window.atob(a)),s=JSON.parse(o);t.insertFragment(s)}else{var c=e.getData(`text/plain`),l=e.getData(`text/html`);if(l)t.dangerouslyInsertHtml(l);else if(c){var u=c.split(/\r\n|\r|\n/),d=!1;try{for(var f=$b(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&B.splitNodes(t,{always:!0}),n(m),d=!0}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}},t},ww=function(e){return e!=null},soe={object:!0,function:!0,undefined:!0},coe=/^\s*class[\s{/}]/,loe=Function.prototype.toString,Tw=function(e){return!!function(e){if(typeof e!=`function`||!hasOwnProperty.call(e,`length`))return!1;try{if(typeof e.length!=`number`||typeof e.call!=`function`||typeof e.apply!=`function`)return!1}catch{return!1}return!function(e){if(!function(e){return!!ww(e)&&hasOwnProperty.call(soe,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!coe.test(loe.call(e))},Ew=function(e){return e!=null},uoe=Object.keys,Dw=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return uoe(Ew(e)?Object(e):e)},doe=function(e){if(!Ew(e))throw TypeError(`Cannot use null or undefined`);return e},foe=Math.max,Ow=function(){var e,t=Object.assign;return typeof t==`function`&&(t(e={foo:`raz`},{bar:`dwa`},{trzy:`trzy`}),e.foo+e.bar+e.trzy===`razdwatrzy`)}()?Object.assign:function(e,t){var n,r,i,a=foe(arguments.length,2);for(e=Object(doe(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)Dw(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},kw=Array.prototype.forEach,Aw=Object.create,jw=function(e,t){for(var n in e)t[n]=e[n]},Mw=function(e){var t=Aw(null);return kw.call(arguments,(function(e){Ew(e)&&jw(Object(e),t)})),t},Nw=`razdwatrzy`,poe=String.prototype.indexOf,Pw=typeof Nw.contains==`function`&&!0===Nw.contains(`dwa`)&&!1===Nw.contains(`foo`)?String.prototype.contains:function(e){return poe.call(this,e,arguments[1])>-1},Fw=zh((function(e){var t=e.exports=function(e,t){var n,r,i,a,o;return arguments.length<2||typeof e!=`string`?(a=t,t=e,e=null):a=arguments[2],ww(e)?(n=Pw.call(e,`c`),r=Pw.call(e,`e`),i=Pw.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?Ow(Mw(a),o):o};t.gs=function(e,t,n){var r,i,a,o;return typeof e==`string`?a=arguments[3]:(a=n,n=t,t=e,e=null),ww(t)?Tw(t)?ww(n)?Tw(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,ww(e)?(r=Pw.call(e,`c`),i=Pw.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?Ow(Mw(a),o):o}})),Iw=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},moe=zh((function(e,t){var n,r,i,a,o,s,c,l=Function.prototype.apply,u=Function.prototype.call,d=Object.create,f=Object.defineProperty,p=Object.defineProperties,m=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return Iw(t),m.call(this,`__ee__`)?n=this.__ee__:(n=h.value=d(null),f(this,`__ee__`,h),h.value=null),n[e]?typeof n[e]==`object`?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,a;return Iw(t),a=this,n.call(this,e,r=function(){i.call(a,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},i=function(e,t){var n,r,i,a;if(Iw(t),!m.call(this,`__ee__`)||!(n=this.__ee__)[e])return this;if(typeof(r=n[e])==`object`)for(a=0;i=r[a];++a)i!==t&&i.__eeOnceListener__!==t||(r.length===2?n[e]=r[a?0:1]:r.splice(a,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},a=function(e){var t,n,r,i,a;if(m.call(this,`__ee__`)&&(i=this.__ee__[e]))if(typeof i==`object`){for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)l.call(r,this,a)}else switch(arguments.length){case 1:u.call(i,this);break;case 2:u.call(i,this,arguments[1]);break;case 3:u.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,a=Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];l.call(i,this,a)}},o={on:n,once:r,off:i,emit:a},s={on:Fw(n),once:Fw(r),off:Fw(i),emit:Fw(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function Lw(e){var t=aS.get(e);return t??(t=moe(),aS.set(e,t)),t}var Rw=new WeakMap;function zw(e,t){var n=Rw.get(e);n??(n=new Set,Rw.set(e,n)),n.add(t)}function hoe(e){return Rw.get(e)||new Set}function Bw(e){Rw.set(e,new Set)}function Vw(e){var t=K.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function Hw(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=Vw(e);if(r==null)return t;var i=r.top,a=r.left,o=r.width,s=r.height,c=K.toDOMRange(e,n).getClientRects()[0];if(c==null)return t;c.width;var l=c.height,u={},d=c.top-i,f=c.left-a;if(f>o/2?u.right=o-f+5+`px`:u.left=f+5+`px`,d>s/2)u.bottom=s-d+5+`px`;else{var p=d+l;p<0&&(p=0),u.top=p+5+`px`}return u}function Uw(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=N.isElement(t)&&e.isVoid(t),a=N.isElement(t)&&e.isInline(t),o=eS.get(t);if(o==null)return r;var s=o.getBoundingClientRect(),c=s.top,l=s.left,u=s.height,d=s.width;if(i){var f=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(r==null||++n>1e4)break;var i=r.nodeName;if(r.nodeType===1){var a=i.toLowerCase();if(fae.includes(a)||a===`iframe`||a===`video`)return r;var o=r.children||[],s=o.length;if(s)for(var c=s-1;c>=0;c--)t.push(o[c])}}return null}(o);if(f!=null){var p=f.getBoundingClientRect();c=p.top,u=p.height}}var m=Vw(e);if(m==null)return r;var h,g=m.top,_=m.left,v=m.width,y=m.height,b={},x=c-g,S=l-_;if(n===`bar`)return b.left=S+`px`,x>40?b.bottom=y-x+5+`px`:b.top=x+u+5+`px`,b;if(n===`modal`)return i?a?S>(v-d)/2?b.right=v-S+5+`px`:b.left=S+d+5+`px`:b.left=`20px`:b.left=S+`px`,i?((h=x)<0&&(h=0),b.top=h+`px`):x>(y-u)/2?b.bottom=y-x+5+`px`:((h=x+u)<0&&(h=0),b.top=h+5+`px`),b;throw Error(`type '`+n+`' is invalid`)}function Ww(e,t){KC((function(){var n=Vw(e);if(n!=null){var r,i=n.top,a=n.left,o=n.width,s=n.height,c=t.offset(),l=c.top,u=c.left,d=t.width(),f=t.height(),p=l-i,m=u-a,h=t.attr(`style`);if(h.indexOf(`top`)>=0&&(r=p+f-s)>0){var g=t.css(`top`),_=parseInt(g.toString())-r;_<0&&(_=0),t.css(`top`,_+`px`)}if(h.indexOf(`bottom`)>=0&&l<0){var v=t.css(`bottom`),y=parseInt(v.toString())-Math.abs(l);t.css(`bottom`,y+`px`)}if(h.indexOf(`left`)>=0&&(r=m+d-o)>0){var b=t.css(`left`),x=parseInt(b.toString())-r;x<0&&(x=0),t.css(`left`,x+`px`)}if(h.indexOf(`right`)>=0&&u<0){var S=t.css(`right`),C=parseInt(S.toString())-Math.abs(u);t.css(`right`,C+`px`)}}}))}var Gw=Sb(`slice`),Kw=Cg(`species`),qw=W.Array,Jw=Math.max;Vv({target:`Array`,proto:!0,forced:!Gw},{slice:function(e,t){var n,r,i,a=hv(this),o=G_(a),s=bv(e,o),c=bv(t===void 0?o:t,o);if(K_(a)&&(n=a.constructor,(ev(n)&&(n===qw||K_(n.prototype))||Dg(n)&&(n=n[Kw])===null)&&(n=void 0),n===qw||n===void 0))return BS(a,s,c);for(r=new(n===void 0?qw:n)(Jw(c-s,0)),i=0;s<c;s++,i++)s in a&&My(r,i,a[s]);return r.length=i,r}});var Yw=_v.f,Xw=G(``.startsWith),Zw=G(``.slice),goe=Math.min,Qw=Sy(`startsWith`);Vv({target:`String`,proto:!0,forced:!(!Qw&&function(){var e=Yw(String.prototype,`startsWith`);return e&&!e.writable}())&&!Qw},{startsWith:function(e){var t=Xv(Qh(this));by(e);var n=W_(goe(arguments.length>1?arguments[1]:void 0,t.length)),r=Xv(e);return Xw?Xw(t,r,n):Zw(t,n,n+r.length)===r}});var $w=Object.assign,eT=Object.defineProperty,_oe=G([].concat),tT=!$w||gg((function(){if(Eg&&$w({b:1},$w(eT({},`a`,{enumerable:!0,get:function(){eT(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),$w({},e)[n]!=7||Hv($w({},t)).join(``)!=r}))?function(e,t){for(var n=eg(e),r=arguments.length,i=1,a=kv.f,o=mv.f;r>i;)for(var s,c=z_(arguments[i++]),l=a?_oe(Hv(c),a(c)):Hv(c),u=l.length,d=0;u>d;)s=l[d++],Eg&&!Ig(o,c,s)||(n[s]=c[s]);return n}:$w;Vv({target:`Object`,stat:!0,forced:Object.assign!==tT},{assign:tT});var voe=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function nT(e){var t=e.data,n=t===void 0?{}:t,r=e.children,i=r===void 0?[]:r;Object.keys(n).forEach((function(t){var r,i,a=n[t];if(t!==`key`){if(!voe.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=dp(o),function(e,t){e.data??={};var n=e.data;n.dataset??={},Object.assign(n.dataset,t)}(e,((r={})[o]=a,r)),delete n[t];return}(function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,t)})(e,(i={},i[t]=a,i)),delete n[t]}}else e.key=a})),i.length>0&&i.forEach((function(e){typeof e!=`string`&&nT(e)}))}var rT=[],iT={};function yoe(e,t,n){return H(n.isInline(e)?`span`:`div`,null,t)}function aT(e,t){return t===void 0&&(t=!1),H(`span`,{"data-slate-string":!0},t?e+`
`:e)}function oT(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),H(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?H(`br`,null):null)}function sT(e,t,n,r){return Yx.set(e,t),Xx.set(e,n),N.isElement(e)?function(e,t){var n,r=K.findKey(t,e),i=t.isInline(e),a=P.isVoid(t,e),o=JC(r.id),s={id:o,key:r.id,"data-slate-node":`element`,"data-slate-inline":i},c=e.type,l=e.children,u=l===void 0?[]:l,d=function(e){return iT[e]||yoe}(c);n=a?null:u.map((function(n,r){return sT(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=ex(ex(F.texts(e),1)[0],1)[0],h=H(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},sT(m,0,e,t));f=H(p,{style:{position:`relative`}},f,h),Yx.set(m,0),Xx.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return rT.forEach((function(r){n=r(e,t)})),n}(e,f)),KC((function(){var t=hS(o);t!=null&&($x.set(r,t),eS.set(e,t),Qx.set(t,e))})),f}(e,r):function(e,t,n){if(e.text==null)throw Error(`Current node is not slate Text `+JSON.stringify(e));var r=K.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw Error(`Can not get config.decorate`);var a=i([e,K.findPath(n,e)]),o=z.decorations(e,a),s=o.map((function(r,i){var a=function(e,t,n,r,i){t===void 0&&(t=!1);var a=e.text,o=K.findPath(i,n),s=I.parent(o);if(P.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?oT(F.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||P.string(i,s)!==``?a===``?oT():t&&a.slice(-1)===`
`?aT(a,!0):aT(a):oT(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return rT.forEach((function(t){n=t(e,n)})),n}(r,a),H(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=H(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return KC((function(){var t=hS(c);t!=null&&($x.set(r,t),eS.set(e,t),Qx.set(t,e))})),l}(e,n,r)}function boe(e,t){var n,r=e.$scroll,i=function(e){return`w-e-textarea-`+e}(e.id),a=t.getConfig(),o=a.readOnly,s=a.autoFocus,c=function(e,t){return t===void 0&&(t=!1),$d(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=sT(e,n,t,t);return nT(r),r}));var l=Kx.get(e);if(l??=!0,l){var u=function(e,t){return V(`<div
        id="`+e+`"
        data-slate-editor
        data-slate-node="value"
        suppressContentEditableWarning
        role="textarea"
        spellCheck="true"
        autoCorrect="true"
        autoCapitalize="true"
    ></div>`)}(i);r.append(u),e.$textArea=u,n=u[0],(f=Zd([rf,pf,vf,sf,df,tf]))(n,c),Kx.set(e,!1),qx.set(e,f)}else{var d=Jx.get(e),f=qx.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=hS(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=uS(n);p&&nS.set(t,p)}Zx.set(t,n),eS.set(t,n),Qx.set(n,t),Jx.set(e,c)}}function cT(e){return typeof e==`object`&&!!e&&e.nodeType===1}function lT(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function uT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return lT(n.overflowY,t)||lT(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch{return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function dT(e,t,n,r,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0}function fT(e,t){var n=window,r=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,c=typeof o==`function`?o:function(e){return e!==o};if(!cT(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;cT(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&uT(d)&&!uT(document.documentElement)||d!=null&&uT(d,s)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),_=g.height,v=g.width,y=g.top,b=g.right,x=g.bottom,S=g.left,C=i===`start`||i===`nearest`?y:i===`end`?x:y+_/2,w=a===`center`?S+v/2:a===`end`?b:S,T=[],ee=0;ee<u.length;ee++){var E=u[ee],D=E.getBoundingClientRect(),te=D.height,ne=D.width,re=D.top,ie=D.right,O=D.bottom,ae=D.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=re&&x<=O&&S>=ae&&b<=ie)return T;var k=getComputedStyle(E),oe=parseInt(k.borderLeftWidth,10),se=parseInt(k.borderTopWidth,10),ce=parseInt(k.borderRightWidth,10),le=parseInt(k.borderBottomWidth,10),ue=0,de=0,fe=`offsetWidth`in E?E.offsetWidth-E.clientWidth-oe-ce:0,pe=`offsetHeight`in E?E.offsetHeight-E.clientHeight-se-le:0;if(l===E)ue=i===`start`?C:i===`end`?C-p:i===`nearest`?dT(h,h+p,p,se,le,h+C,h+C+_,_):C-p/2,de=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:dT(m,m+f,f,oe,ce,m+w,m+w+v,v),ue=Math.max(0,ue+h),de=Math.max(0,de+m);else{ue=i===`start`?C-re-se:i===`end`?C-O+le+pe:i===`nearest`?dT(re,O,te,se,le+pe,C,C+_,_):C-(re+te/2)+pe/2,de=a===`start`?w-ae-oe:a===`center`?w-(ae+ne/2)+fe/2:a===`end`?w-ie+ce+fe:dT(ae,ie,ne,oe,ce+fe,w,w+v,v);var me=E.scrollLeft,he=E.scrollTop;C+=he-(ue=Math.max(0,Math.min(he+ue,E.scrollHeight-te+pe))),w+=me-(de=Math.max(0,Math.min(me+de,E.scrollWidth-ne+fe)))}T.push({el:E,top:ue,left:de})}return T}function pT(e){return e===Object(e)&&Object.keys(e).length!==0}function mT(e,t){return fS(t)&&K.hasDOMNode(e,t,{editable:!0})}function hT(e,t){if(e.getConfig().readOnly)return!1;var n=gT(e,t)&&K.toSlateNode(e,t);return P.isVoid(e,n)}function gT(e,t){return fS(t)&&K.hasDOMNode(e,t)}function _T(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),a=K.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var o=a.type!==`None`;if(r||o){var s=Zx.get(t),c=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(c=!0),o&&c&&r){var l=K.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(l&&R.equals(l,r)){var u=!0;if(R.isCollapsed(r)){var d=a.anchorNode,f=a.anchorOffset;if(d===s){var p=s.childNodes,m=void 0;(m=p[f])&&m.matches(`table`)&&(u=!1),(m=p[f-1])&&m.matches(`table`)&&(u=!1)}}if(u)return}}if(!r||K.hasRange(t,r)){e.isUpdatingSelection=!0;var h=r&&K.toDOMRange(t,r);if(h){R.isBackward(r)?a.setBaseAndExtent(h.endContainer,h.endOffset,h.startContainer,h.startOffset):a.setBaseAndExtent(h.startContainer,h.startOffset,h.endContainer,h.endOffset);var g=h.startContainer.parentElement;if(!g.closest(`[data-slate-spacer]`)){g.getBoundingClientRect=h.getBoundingClientRect.bind(h);var _=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(pT(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:fT(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:pT(e)?e:{block:`start`,inline:`nearest`}}(t);(function(e,t){t===void 0&&(t=`auto`);var n=`scrollBehavior`in document.body.style;e.forEach((function(e){var r=e.el,i=e.top,a=e.left;r.scroll&&n?r.scroll({top:i,left:a,behavior:t}):(r.scrollTop=i,r.scrollLeft=a)}))})(fT(e,r),r.behavior)}})(g,{scrollMode:`if-needed`,boundary:i.scroll?s.parentElement:_,block:`end`,behavior:`smooth`}),delete g.getBoundingClientRect}}else a.removeAllRanges();setTimeout((function(){h&&bS&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=K.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var vT=new WeakMap,yT=new WeakMap,bT={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`},xT={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`},ST={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},CT=function(e){var t=bT[e],n=xT[e],r=ST[e],i=t&&xp(t),a=n&&xp(n),o=r&&xp(r);return function(e){return!(!i||!i(e))||!!(yS&&a&&a(e))||!(yS||!o||!o(e))}},wT={isBold:CT(`bold`),isCompose:CT(`compose`),isMoveBackward:CT(`moveBackward`),isMoveForward:CT(`moveForward`),isDeleteBackward:CT(`deleteBackward`),isDeleteForward:CT(`deleteForward`),isDeleteLineBackward:CT(`deleteLineBackward`),isDeleteLineForward:CT(`deleteLineForward`),isDeleteWordBackward:CT(`deleteWordBackward`),isDeleteWordForward:CT(`deleteWordForward`),isExtendBackward:CT(`extendBackward`),isExtendForward:CT(`extendForward`),isExtendLineBackward:CT(`extendLineBackward`),isExtendLineForward:CT(`extendLineForward`),isItalic:CT(`italic`),isMoveLineBackward:CT(`moveLineBackward`),isMoveLineForward:CT(`moveLineForward`),isMoveWordBackward:CT(`moveWordBackward`),isMoveWordForward:CT(`moveWordForward`),isRedo:CT(`redo`),isSplitBlock:CT(`splitBlock`),isTransposeCharacter:CT(`transposeCharacter`),isUndo:CT(`undo`),isTab:CT(`tab`),isSelectAll:CT(`selectAll`)};function TT(e){e.preventDefault()}var ET={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(CS&&!i&&mT(n,r.target)){var a=n.selection,o=r.inputType,s=r.dataTransfer||r.data||void 0;if(o!==`insertCompositionText`&&o!==`deleteCompositionText`){if(r.preventDefault(),!o.startsWith(`delete`)||o.startsWith(`deleteBy`)){var c=ex(r.getTargetRanges(),1)[0];if(c){var l=K.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&R.equals(a,l)||B.select(n,l)}}if(a&&R.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;P.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:P.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:P.deleteForward(n);break;case`deleteContentBackward`:P.deleteBackward(n);break;case`deleteEntireSoftLine`:P.deleteBackward(n,{unit:`line`}),P.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:P.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:P.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:P.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:P.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:P.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:P.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:P.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!oS.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&P.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&mT(n,r.target)){var o=K.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===K.toDOMNode(n,n)||dS(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&fS(s)&&K.hasDOMNode(n,s)){var c=K.toSlateNode(n,s);if(N.isElement(c)&&!n.isVoid(c))return}xS&&o.getSelection()?.removeAllRanges(),rS.delete(n)}}}},focus:function(e,t,n){var r=K.toDOMNode(n,n);t.latestElement=K.findDocumentOrShadowRoot(n).activeElement,bS&&e.target!==r?r.focus():rS.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&gT(n,e.target)&&fS(e.target)){var r=K.toSlateNode(n,e.target),i=K.findPath(n,r);if(P.hasPath(n,i)&&F.get(n,i)===r){var a=P.start(n,i),o=P.end(n,i),s=P.void(n,{at:a}),c=P.void(n,{at:o});if(s&&c&&I.equals(s[1],c[1])){var l=P.range(n,a);B.select(n,l)}}}},compositionstart:function(e,t,n){if(mT(n,e.target)){var r=n.selection;if(r&&R.isExpanded(r)&&(P.deleteFragment(n),Promise.resolve().then((function(){_T(t,n,!0)}))),r&&R.isCollapsed(r)){var i=K.toDOMRange(n,r).startContainer,a=i.textContent||``;vT.set(n,a),yT.set(n,i)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(mT(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(SS||bS)&&K.cleanExposedTexNodeInSelectionBlock(n);for(var a=R.isBackward(i)?i.focus:i.anchor,o=ex(P.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=ex(P.node(n,a.path.slice(0,s+1)),1)[0];if(N.isElement(c)&&((xS||bS)&&c.type===`link`||c.type===`code`)){K.setNewKey(o);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var u=K.getLeftLengthOfMaxLength(n);u<l.length?(K.toDOMRange(n,i).startContainer.textContent=vT.get(n)||``,u>0&&P.insertText(n,l.slice(0,u)),t.changeViewState()):P.insertText(n,l)}else P.insertText(n,l);xS||setTimeout((function(){var e=n.selection;if(e!=null){var t=yT.get(n);t!=null&&K.toDOMRange(n,e).startContainer!==t&&(t.textContent=vT.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){mT(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&mT(n,r.target)){if(function(e,t){var n=zx.get(e),r=n&&n.getMenus(),i=Vx.get(e),a=i&&i.getMenus(),o=Qb(Qb({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&bp(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),wT.isTab(r))return TT(r),void n.handleTab();if(wT.isRedo(r))return TT(r),void(typeof n.redo==`function`&&n.redo());if(wT.isUndo(r))return TT(r),void(typeof n.undo==`function`&&n.undo());if(wT.isMoveLineBackward(r))return TT(r),void B.move(n,{unit:`line`,reverse:!0});if(wT.isMoveLineForward(r))return TT(r),void B.move(n,{unit:`line`});if(wT.isExtendLineBackward(r))return TT(r),void B.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(wT.isExtendLineForward(r))return TT(r),void B.move(n,{unit:`line`,edge:`focus`});if(wT.isMoveBackward(r))return TT(r),void(i&&R.isCollapsed(i)?B.move(n,{reverse:!0}):B.collapse(n,{edge:`start`}));if(wT.isMoveForward(r))return TT(r),void(i&&R.isCollapsed(i)?B.move(n):B.collapse(n,{edge:`end`}));if(wT.isMoveWordBackward(r))return TT(r),i&&R.isExpanded(i)&&B.collapse(n,{edge:`focus`}),void B.move(n,{unit:`word`,reverse:!0});if(wT.isMoveWordForward(r))return TT(r),i&&R.isExpanded(i)&&B.collapse(n,{edge:`focus`}),void B.move(n,{unit:`word`});if(wT.isSelectAll(r))return TT(r),void n.selectAll();if(CS){if((SS||xS)&&i&&(wT.isDeleteBackward(r)||wT.isDeleteForward(r))&&R.isCollapsed(i)){var a=F.parent(n,i.anchor.path);if(N.isElement(a)&&P.isVoid(n,a)&&P.isInline(n,a))return r.preventDefault(),void B.delete(n,{unit:`block`})}}else{if(wT.isBold(r)||wT.isItalic(r)||wT.isTransposeCharacter(r))return void TT(r);if(wT.isSplitBlock(r))return TT(r),void P.insertBreak(n);if(wT.isDeleteBackward(r))return TT(r),void(i&&R.isExpanded(i)?P.deleteFragment(n,{direction:`backward`}):P.deleteBackward(n));if(wT.isDeleteForward(r))return TT(r),void(i&&R.isExpanded(i)?P.deleteFragment(n,{direction:`forward`}):P.deleteForward(n));if(wT.isDeleteLineBackward(r))return TT(r),void(i&&R.isExpanded(i)?P.deleteFragment(n,{direction:`backward`}):P.deleteBackward(n,{unit:`line`}));if(wT.isDeleteLineForward(r))return TT(r),void(i&&R.isExpanded(i)?P.deleteFragment(n,{direction:`forward`}):P.deleteForward(n,{unit:`line`}));if(wT.isDeleteWordBackward(r))return TT(r),void(i&&R.isExpanded(i)?P.deleteFragment(n,{direction:`backward`}):P.deleteBackward(n,{unit:`word`}));if(wT.isDeleteWordForward(r))return TT(r),void(i&&R.isExpanded(i)?P.deleteFragment(n,{direction:`forward`}):P.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!CS&&!n.getConfig().readOnly&&mT(n,e.target)){e.preventDefault();var r=e.key;P.insertText(n,r)}},copy:function(e,t,n){var r=e;if(mT(n,r.target)){r.preventDefault();var i=r.clipboardData;i!=null&&n.setFragmentData(i)}},cut:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&mT(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(R.isExpanded(i))P.deleteFragment(n);else{var o=F.parent(n,i.anchor.path);P.isVoid(n,o)&&B.delete(n)}}},paste:function(e,t,n){oS.set(n,!0);var r=e;if(!n.getConfig().readOnly&&mT(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void oS.set(n,!1);if(!CS||function(e){return e.clipboardData&&e.clipboardData.getData(`text/plain`)!==``&&e.clipboardData.types.length===1}(r)){r.preventDefault();var a=r.clipboardData;a!=null&&n.insertData(a)}}},dragover:function(e,t,n){if(gT(n,e.target)){var r=K.toSlateNode(n,e.target);P.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(gT(n,r.target)&&!n.getConfig().readOnly){var i=K.toSlateNode(n,r.target),a=K.findPath(n,i);if(P.isVoid(n,i)||P.void(n,{at:a,voids:!0})){var o=P.range(n,a);B.select(n,o)}var s=r.dataTransfer;s!=null&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&gT(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&gT(n,r.target)&&i!=null&&!(CS&&xS&&i.files.length>0)){r.preventDefault();var a=n.selection,o=K.findEventRange(n,r);B.select(n,o),t.isDraggingInternally&&=(a&&B.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},DT=1,OT=function(){function e(e){var t=this;this.id=DT++,this.$textArea=null,this.$progressBar=V(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=V(`<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=Vd((function(){(function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||i)){var a=K.findDocumentOrShadowRoot(t),o=a.activeElement,s=K.toDOMNode(t,t),c=a.getSelection();if(o===s?(e.latestElement=o,rS.set(t,!0)):rS.delete(t),!c)return B.deselect(t);var l=c.anchorNode,u=c.focusNode,d=mT(t,l)||hT(t,l),f=mT(t,u)||hT(t,u);if(d&&f){var p=K.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});B.select(t,p)}else B.deselect(t)}})(t,t.editorInstance)}),100);var n=V(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=V(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=V(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,KC((function(){var e=t.editorInstance,n=K.getWindow(e);n.document.addEventListener(`selectionchange`,t.onDOMSelectionChange),e.on(`destroyed`,(function(){n.document.removeEventListener(`selectionchange`,t.onDOMSelectionChange)})),r.on(`click`,(function(){return e.hidePanelOrModal()})),e.on(`change`,t.changeViewState.bind(t));var i=e.getConfig().onChange;i&&e.on(`change`,(function(){return i(e)})),t.onFocusAndOnBlur(),e.on(`change`,t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,`editorInstance`,{get:function(){var e=Lx.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;t!=null&&(Id(ET,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,Vd((function(){r.emit(`scroll`)}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,i=n.onFocus;this.latestEditorSelection=t.selection,t.on(`change`,(function(){e.latestEditorSelection==null&&t.selection!=null?setTimeout((function(){return i&&i(t)})):e.latestEditorSelection!=null&&t.selection==null&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-K.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+`/`+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css(`width`,e+`%`),e>=100&&setTimeout((function(){t.hide(),t.css(`width`,`0`),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;boe(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var i=t.isEmpty();if(i&&!e.showPlaceholder&&!e.isComposing){if(e.$placeholder==null){var a=V(`<div class="w-e-text-placeholder">`+r+`</div>`);e.$textAreaContainer.append(a),e.$placeholder=a}e.$placeholder.show(),e.showPlaceholder=!0;return}!i&&e.showPlaceholder&&((n=e.$placeholder)==null||n.hide(),e.showPlaceholder=!1)}}(this,t),KC((function(){_T(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function kT(e){e.removeAttr(`width`),e.removeAttr(`height`),e.removeAttr(`fill`),e.removeAttr(`class`),e.removeAttr(`t`),e.removeAttr(`p-id`);var t=e.children();t.length&&kT(t)}function AT(){return V(`<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 jT(){return V(`<div class="w-e-bar-divider"></div>`)}function MT(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=yS?`cmd`:`ctrl`;r=r.replace(`mod`,a)}if(i)r&&(e.attr(`data-tooltip`,r),e.addClass(`w-e-menu-tooltip-v5`),e.addClass(`tooltip-right`));else{var o=r?n+`
`+r:n;e.attr(`data-tooltip`,o),e.addClass(`w-e-menu-tooltip-v5`)}}}Bb(`match`,(function(e,t,n){return[function(t){var n=Qh(this),r=t==null?void 0:Wg(t,e);return r?Ig(r,t,n):new RegExp(t)[e](Xv(n))},function(e){var r=Pg(this),i=Xv(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return Wb(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=Wb(r,i))!==null;){var u=Xv(s[0]);c[l]=u,u===``&&(r.lastIndex=Vb(i,W_(r.lastIndex),o)),l++}return l===0?null:c}]}));var NT=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=V(`<div class="w-e-bar-item"></div>`),this.$button=V(`<button type="button"></button>`),this.disabled=!1,this.menu=t;var i=t.tag,a=t.width;if(i!==`button`)throw Error(`Invalid tag '`+i+`', expected 'button'`);var o=t.title,s=t.hotkey,c=s===void 0?``:s,l=t.iconSvg,u=l===void 0?``:l,d=this.$button;if(u){var f=V(u);kT(f),d.append(f)}else d.text(o);MT(d,u,o,c,n),n&&u&&d.append(V(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),KC((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),KT(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=KT(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=KT(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=KT(this),t=this.$button,n=this.menu.isDisabled(e);(e.selection==null||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r=`disabled`;n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),PT=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return Zb(t,e),t.prototype.onButtonClick=function(){},t}(NT),FT=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Ux.get(e);t??(t=new Set,Ux.set(e,t)),t.add(this),Wx.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=Wx.get(this);e&&e.emit(`modalOrPanelShow`,this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=Wx.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),IT=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=V(`<div class="w-e-drop-panel"></div>`),n}return Zb(t,e),t.prototype.genSelfElem=function(){return null},t}(FT),LT=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=AT();i.$button.append(a)}return i}return Zb(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(e.getPanelContentElem!=null){var t=KT(this);if(this.dropPanel==null){var n=new IT(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var i=this.dropPanel;i.isShow?i.hide():(r=e.getPanelContentElem(t),i.renderContent(r),i.show())}var a=this.dropPanel;if(a.isShow){var o=this.$elem,s=o.offset().left,c=o.parents(`.w-e-bar`);s-c.offset().left>=c.width()/2?a.$elem.css({left:`none`,right:`0`}):a.$elem.css({left:`0`,right:`none`})}}},t}(NT),RT=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=V(`<div class="w-e-modal"></div>`),r.width=0,n&&(r.width=n);var i=r.$elem;return i.on(`click`,(function(e){return e.stopPropagation()})),i.on(`keyup`,(function(e){e.code===`Escape`&&(r.hide(),t.restoreSelection())})),r}return Zb(t,e),t.prototype.genSelfElem=function(){var e=this,t=V(`<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>`),n=Wx.get(this);return t.on(`click`,(function(){e.hide(),n?.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr(`style`,``),t&&n.css(`width`,t+`px`),n.css(e)},t}(FT);function zT(e,t,n){var r=V(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=V(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function BT(e,t){var n=V(`<div class="button-container"></div>`),r=V(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var VT=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=V(`body`),i.modal=null,i.menu=n,i}return Zb(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=KT(this),t=this.menu.getModalPositionNode(e);return N.isElement(t)?Uw(e,t,`modal`):Hw(e)},t.prototype.handleModal=function(){var e=KT(this),t=this.menu;if(this.modal==null){var n=new RT(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else (n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){t===void 0&&(t=!1);var n=KT(this),r=this.menu;if(r.getModalContentElem!=null){var i=K.getTextarea(n),a=(K.getToolbar(n)?.getConfig()||{}).modalAppendToBody,o=r.getModalContentElem(n);if(e.renderContent(o),a)e.setStyle({left:`0`,right:`0`});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(i.$textAreaContainer)),e.show(),a||Ww(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(NT),HT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=V(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return Zb(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=V(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=V(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=V(`<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>`);o.append(s),o.addClass(`selected`)}o.append(V(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(FT),UT=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=V(`<div class="w-e-bar-item"></div>`),this.$button=V(`<button type="button" class="select-button"></button>`),this.disabled=!1,this.selectList=null;var i=t.tag,a=t.title,o=t.width,s=t.iconSvg,c=s===void 0?``:s,l=t.hotkey,u=l===void 0?``:l;if(i!==`select`)throw Error(`Invalid tag '`+i+`', expected 'select'`);var d=this.$button;o&&d.css(`width`,o+`px`),d.attr(`data-menu-key`,e),MT(d,c,a,u,n),this.$elem.append(d),this.menu=t,KC((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),KT(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=KT(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new HT(t,n.selectPanelWidth);var r=this.selectList,i=n.getOptions(t);r.renderList(i),r.appendTo(this.$elem),r.show(),r.$elem.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=V(n).attr(`data-value`);e.onChange(r)}}))}else (r=this.selectList).isShow?r.hide():(i=n.getOptions(t),r.renderList(i),r.show())}},e.prototype.onChange=function(e){var t=KT(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=KT(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r=``,i=0;i<n;i++){var a=e[i];if(a.value===t){r=a.text;break}}return r}(t.getOptions(e),n.toString()),i=this.$button,a=AT();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=KT(this),t=this.menu.isDisabled(e),n=this.$button;(e.selection==null||e.isDisabled())&&(t=!0);var r=`disabled`;t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),WT=function(){function e(e){this.$elem=V(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=V(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=V(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=V(n);kT(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=AT();a.append(s),i.append(a);var c=this.$container;i.append(c);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var i=t.find(`button`),a=i.length;if(a!==0){var o=0;i.each((function(e){V(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),GT=new WeakMap;function KT(e){var t=Hx.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function qT(e,t,n){n===void 0&&(n=!1);var r=GT.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new LT(e,t,n):o?new VT(e,t,n):new PT(e,t,n)}if(i===`select`&&(r=new UT(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return GT.set(t,r),r}function JT(e,t){var n=e.selection;return n!=null&&!R.isCollapsed(n)&&!K.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))&&!!z.isText(t)}var YT=function(){function e(){var e=this;this.$elem=V(`<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=jp((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,i=r===void 0?null:r,a=n.menuKeys,o=a===void 0?[]:a;i!=null&&e.changeItemsState(),i&&N.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),KC((function(){var t=e.getEditorInstance(),n=e.$elem;n.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),K.getTextarea(t).$textAreaContainer.append(n),t.on(`change`,e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on(`scroll`,r),t.on(`fullScreen`,r),t.on(`unFullScreen`,r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass(`w-e-bar-show`).addClass(`w-e-bar-hidden`),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass(`w-e-bar-bottom`):e.removeClass(`w-e-bar-bottom`)},e.prototype.show=function(){this.$elem.removeClass(`w-e-bar-hidden`).addClass(`w-e-bar-show`),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;KC((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if(e!==`|`)t.registerSingleItem(e);else{var r=jT();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=TS[e];if(i==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof i!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);r=i(),n[e]=r}var a=qT(e,r);this.hoverbarItems.push(a),Hx.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),N.isElement(e)){var r=Uw(t,e,`bar`);n.css(r),Ww(t,n);return}if(z.isText(e))return r=Hw(t),n.css(r),void Ww(t,n);throw Error(`hoverbar.setPosition error, current selected node is not elem nor text`)},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(e.selection==null)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],i=function(i){var a=t[i],o=a.match,s=a.menuKeys,c=s===void 0?[]:s,l=o||function(e,t){return K.checkNodeType(t,i)},u=ex(P.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1)[0];if(u!=null)return n=u[0],r=c,`break`};for(var a in t)if(i(a)===`break`)break;return n==null||r.length===0?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=Bx.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=e===void 0?{}:e,n=t.text;return n&&n.match==null&&(n.match=JT),t},e.prototype.isSamePath=function(e,t){if(e==null||t==null)return!1;var n=K.findPath(null,e),r=K.findPath(null,t);return I.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function XT(e,t,n,r){if(Yx.set(e,t),Xx.set(e,n),N.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return XT(t,n,e,r)})),P.isVoid(r,e)){var a=ex(ex(F.texts(e),1)[0],1)[0];Yx.set(a,0),Xx.set(a,e)}}}function xoe(e){var t=e.selector,n=t===void 0?``:t,r=e.config,i=r===void 0?{}:r,a=e.content,o=e.html,s=e.plugins,c=s===void 0?[]:s,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];Jv.withoutSaving(t,(()=>{P.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];Jv.withoutSaving(t,(()=>{P.withoutNormalizing(t,(()=>{for(var e of r.map(Nl.inverse).reverse())t.apply(e)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:i}=t,{undos:a}=i,o=a[a.length-1],s=o&&o[o.length-1],c=((e,t)=>!(!t||e.type!==`set_selection`||t.type!==`set_selection`))(e,s),l=Jv.isSaving(t),u=Jv.isMerging(t);if(l??=((e,t)=>e.type!==`set_selection`||e.properties!=null&&e.newProperties!=null)(e),l){if(u??=o!=null&&(r.length!==0||((e,t)=>e.type===`set_selection`||!(!t||e.type!==`insert_text`||t.type!==`insert_text`||e.offset!==t.offset+t.text.length||!I.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!I.equals(e.path,t.path)))(e,s)||c),o&&u)c&&o.pop(),o.push(e);else{var d=[e];a.push(d)}for(;a.length>100;)a.shift();(e=>e.type!==`set_selection`)(e)&&(i.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,i=t.insertFragment,a=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=K.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=K.getLeftLengthOfMaxLength(t);n<=0||n<F.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength)if(e.length!==1)e.forEach((function(e){t.insertNode(e)}));else{var n=e[0];if(K.getLeftLengthOfMaxLength(t)<F.string(n).length)return;i(e)}else i(e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e)if(t.getConfig().maxLength){var r=K.getLeftLengthOfMaxLength(t);if(!(r<=0)){var i=document.createElement(`div`);i.innerHTML=e,r<Array.from(i.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===cS.TEXT_NODE?e+(t.textContent||``):n===cS.ELEMENT_NODE?Sw.has(r.toLowerCase())?e:e+(t.textContent||``):e:e}),``).length||a(e,n)}}else a(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=Lw(t);if(r.on(e,n),e===`destroyed`&&zw(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),zw(t,i)}},t.once=function(e,n){Lw(t).once(e,n)},t.off=function(e,n){Lw(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=Lw(t);i.emit.apply(i,tx([e],ex(n))),e===`destroyed`&&(hoe(t).forEach((function(e){return i.off(`destroyed`,e)})),Bw(t))},t}(function(e){var t=e;return t.select=function(e){B.select(t,e)},t.deselect=function(){var n=t.selection,r=K.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&B.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||B.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=iS.get(t);e!=null&&(t.focus(),B.select(t,e))},t.getSelectionPosition=function(){return Hw(t)},t.getNodePosition=function(e){return Uw(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=ex(R.edges(e),2),r=n[0],i=n[1],a=ex(P.edges(t,[]),2),o=a[0],s=a[1];return!(!L.equals(r,o)||!L.equals(i,s))},t.selectAll=function(){var e=P.start(t,[]),n=P.end(t,[]);B.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,i=t.apply,a=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,a,o,s,c,l,u,d=[];switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:try{for(var f=$b(P.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=ex(p.value,2),h=m[0],g=m[1],_=K.findKey(t,h);d.push([g,_])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}break;case`insert_node`:case`remove_node`:case`merge_node`:case`split_node`:try{for(var v=$b(P.levels(t,{at:I.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=ex(y.value,2);h=b[0],g=b[1],_=K.findKey(t,h),d.push([g,_])}}catch(e){a={error:e}}finally{try{y&&!y.done&&(o=v.return)&&o.call(v)}finally{if(a)throw a.error}}break;case`move_node`:try{for(var x=$b(P.levels(t,{at:I.common(I.parent(e.path),I.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=ex(S.value,2);h=C[0],g=C[1],_=K.findKey(t,h),d.push([g,_])}}catch(e){s={error:e}}finally{try{S&&!S.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}}i(e);try{for(var w=$b(d),T=w.next();!T.done;T=w.next()){var ee=ex(T.value,2);g=ee[0],_=ee[1],h=ex(P.node(t,g),1)[0],tS.set(h,_)}}catch(e){l={error:e}}finally{try{T&&!T.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if(n!==`line`)return a(n);if(e.selection&&R.isCollapsed(e.selection)){var r=P.above(e,{match:function(t){return P.isBlock(e,t)},at:e.selection});if(r){var i=ex(r,2)[1],o=function(e,t){var n=P.range(e,R.end(t)),r=Array.from(P.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(XC(e,P.range(e,r[i]),n))return P.range(e,r[i],n);if(r.length<2)return P.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)XC(e,P.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return P.range(e,r[a],n)}(t,P.range(e,i,e.selection.anchor));R.isCollapsed(o)||B.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&iS.set(t,e),t.emit(`change`),n()},t.handleTab=function(){t.insertText(`    `)},t.getHtml=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return qC(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return F.string(e)})).join(`
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:P.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=P.nodes(t,{at:[],universal:!0});try{for(var s=$b(o),c=s.next();!c.done;c=s.next()){var l=ex(c.value,1)[0];if(N.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=JC(K.findKey(t,l).id);a.push(Qb(Qb({},l),{id:u}))}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=e===void 0?[]:e;if(n.length>1)return!1;var r=n[0];if(r==null)return!0;if(N.isElement(r)&&r.type===`paragraph`){var i=r.children,a=i===void 0?[]:i;if(a.length>1)return!1;var o=a[0];if(o==null||z.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){B.delete(t,{at:{anchor:P.start(t,[]),focus:P.end(t,[])}}),t.children.length===0&&B.insertNodes(t,[{type:`paragraph`,children:[{text:``}]}])},t.getParentNode=function(e){return K.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(e===void 0&&(e=``),n===void 0&&(n=!1),e){var r=document.createElement(`div`);r.innerHTML=e;var i=Array.from(r.childNodes);if(i=i.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===cS.TEXT_NODE||t===cS.ELEMENT_NODE&&!Sw.has(n.toLowerCase())})),i.length!==0){var a=t.selection;if(a!=null){var o=null;K.isSelectedEmptyParagraph(t)&&!n&&(o=[a.focus.path[0]]),r.setAttribute(`hidden`,`true`),document.body.appendChild(r);var s=0;i.forEach((function(e){var n=e.nodeType,r=e.nodeName,i=e.textContent,a=i===void 0?``:i;if(n!==cS.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(ZC.includes(r.toLowerCase()))c=!0;else for(var l in ew)if(o.matches(l)){c=!0;break}if(c){var u=gw(V(o),t);Array.isArray(u)?(u.forEach((function(e){return Cw(t,e)})),s++):(Cw(t,u),s++),K.isSelectedVoidNode(t)&&t.move(1);return}var d=window.getComputedStyle(o).display;K.isSelectedEmptyParagraph(t)||d.indexOf(`inline`)<0&&t.insertBreak(),t.dangerouslyInsertHtml(o.innerHTML,!0)}else t.insertText(`
`);else{if(!a||!a.trim())return;t.insertNode({text:a})}})),s&&o&&K.isEmptyPath(t,o)&&B.removeNodes(t,{at:o}),r.remove()}}}},t.setHtml=function(e){e===void 0&&(e=``);var n=t.isDisabled(),r=t.isFocused(),i=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var a=vw(t,e);if(B.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(P.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in TS)e.push(t);return e},t.getConfig=function(){var e=Gx.get(t);if(e==null)throw Error(`Can not get editor config`);return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(n===void 0?{}:n)[e]||{}},t.alert=function(e,n){n===void 0&&(n=`info`);var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=ooe(jte());return t.id=`wangEditor-`+ _ae++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(K.toDOMNode(t,t).focus({preventScroll:!0}),rS.set(t,!0),e){var n=P.end(t,[]);B.select(t,n)}else{var r=iS.get(t);r?B.select(t,r):B.select(t,P.start(t,[]))}},t.isFocused=function(){return!!rS.get(t)},t.blur=function(){K.toDOMNode(t,t).blur(),B.deselect(t),rS.set(t,!1)},t.updateView=function(){K.getTextarea(t).changeViewState();var e=K.getToolbar(t);e&&e.changeToolbarState();var n=K.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=K.getTextarea(t);e.destroy(),Ix.delete(t),Lx.delete(e);var n=K.getToolbar(t);n&&(n.destroy(),zx.delete(t),Rx.delete(n));var r=K.getHoverbar(t);r&&(r.destroy(),Vx.delete(t),Bx.delete(r)),t.isDestroyed=!0,t.emit(`destroyed`)}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n=`编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能`;n+=`
You has disabled editor scroll, please do this yourself`,console.warn(n);return}var r=V(`#`+e);if(r.length!==0){var i=r[0];if(!K.hasDOMNode(t,i))return n=`Element (found by id is '`+e+`') is not in editor DOM`,n+=`
 通过 id '`+e+`' 找到的 element 不在 editor DOM 之内`,void console.error(n,i);var a=K.getTextarea(t),o=a.$textAreaContainer,s=a.$scroll,c=r.offset().top,l=o.offset().top;s[0].scrollBy({top:c-l,behavior:`smooth`})}},t.showProgressBar=function(e){e<1||K.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){Ux.get(t)?.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return K.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=K.getToolbar(t);n&&(e=n.$box);var r=K.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);r.addClass(`w-e-full-screen-container`);var i=r.css(`z-index`);r.attr(`data-z-index`,i.toString()),t.isFullScreen=!0,t.emit(`fullScreen`)}},t.unFullScreen=function(){if(t.isFullScreen){var e=K.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass(`w-e-full-screen-container`),t.isFullScreen=!1,t.emit(`unFullScreen`)}),200)}},t.getEditableContainer=function(){return K.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return _w(e,`data-w-e-textarea`,t)}(l,n))throw Error(`Repeated create editor by selector '`+n+`'`);var u=function(e){e===void 0&&(e={});var t=Mp(wS),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return Id(t,(function(e,t){n[t]=Qb(Qb({},e),i[t]||{})})),delete e.MENU_CONF,Qb({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+`:
`+e)}},e)}(i);Gx.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=vw(l,o)),a&&a.length&&(l.children=a),l.children.length===0&&(l.children=[{type:`paragraph`,children:[{text:``}]}]),K.normalizeContent(l),n){var p=new OT(n);Ix.set(l,p),Lx.set(p,l),p.changeViewState(),KC((function(){var e=p.$scroll;e!=null&&e.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
Textarea height < 300px . This may be cause modal and hoverbar position error`,e)}));var m=void 0;Object.keys(f).length>0&&(m=new YT,Bx.set(m,l),Vx.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return XT(e,t,l,l)}));var h=u.onCreated,g=u.onDestroyed;return h&&l.on(`created`,(function(){return h(l)})),g&&l.on(`destroyed`,(function(){return g(l)})),KC((function(){return l.emit(`created`)})),l}var Soe=Sb(`splice`),Coe=W.TypeError,woe=Math.max,Toe=Math.min;Vv({target:`Array`,proto:!0,forced:!Soe},{splice:function(e,t){var n,r,i,a,o,s,c=eg(this),l=G_(c),u=bv(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=Toe(woe(H_(t),0),l-u)),l+n-r>9007199254740991)throw Coe(`Maximum allowed length exceeded`);for(i=rv(c,r),a=0;a<r;a++)(o=u+a)in c&&My(i,a,c[o]);if(i.length=r,n<r){for(a=u;a<l-r;a++)s=a+n,(o=a+r)in c?c[s]=c[o]:delete c[s];for(a=l;a>l-r+n;a--)delete c[a-1]}else if(n>r)for(a=l-r;a>u;a--)s=a+n-1,(o=a+r-1)in c?c[s]=c[o]:delete c[s];for(a=0;a<n;a++)c[a+u]=arguments[a+2];return c.length=l-r+n,i}});var Eoe=function(){function e(e,t){var n=this;this.$toolbar=V(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=jp((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=V(e);if(r.length===0)throw Error(`Cannot find toolbar DOM by selector '`+e+`'`);this.$box=r;var i=this.$toolbar;i.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),r.append(i),KC((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on(`change`,n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t=``,n=this.$toolbar,r=this.config,i=r.toolbarKeys,a=i===void 0?[]:i,o=r.insertKeys,s=o===void 0?{index:0,keys:[]}:o,c=r.excludeKeys,l=c===void 0?[]:c,u=Mp(a);s.keys.length>0&&(typeof s.keys==`string`&&(s.keys=[s.keys]),s.keys.forEach((function(e,t){u.splice(s.index+t,0,e)})));var d=u.filter((function(e){if(typeof e==`string`){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),f=d.length;d.forEach((function(r,i){if(r===`|`){if(i===0||i+1===f||t===`|`)return;var a=jT();n.append(a),t=r;return}if(typeof r==`string`)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t=`group`}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new WT(e)}(e),i=e.menuKeys,a=i===void 0?[]:i,o=this.config.excludeKeys,s=o===void 0?[]:o;a.forEach((function(e){s.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof WT,i=this.menus,a=i[e];if(a==null){var o=TS[e];if(o==null)throw Error(`Not found menu item factory by key '`+e+`'`);if(typeof o!=`function`)throw Error(`Menu item factory (key='`+e+`') is not a function`);a=o(),i[e]=a}else console.warn(`Duplicated toolbar menu key '`+e+`'
重复注册了菜单栏 menu '`+e+`'`);var s=qT(e,a,r);this.toolbarItems.push(s),Hx.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=Rx.get(this);if(e==null)throw Error(`Can not get editor instance`);return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}(),Doe=x_.EXISTS,Ooe=Zg.f,ZT=Function.prototype,koe=G(ZT.toString),QT=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Aoe=G(QT.exec);function $T(e){var t=e.server,n=t===void 0?``:t,r=e.fieldName,i=r===void 0?``:r,a=e.maxFileSize,o=a===void 0?10485760:a,s=e.maxNumberOfFiles,c=s===void 0?100:s,l=e.meta,u=l===void 0?{}:l,d=e.metaWithUrl,f=d!==void 0&&d,p=e.headers,m=p===void 0?{}:p,h=e.withCredentials,g=h!==void 0&&h,_=e.timeout,v=_===void 0?1e4:_,y=e.onBeforeUpload,b=y===void 0?function(e){return e}:y,x=e.onSuccess,S=x===void 0?function(e,t){}:x,C=e.onError,w=C===void 0?function(e,t,n){console.error(e.name+` upload error`,t,n)}:C,T=e.onProgress,ee=T===void 0?function(e){}:T;if(!n)throw Error(`Cannot get upload server address
没有配置上传地址`);if(!i)throw Error(`Cannot get fieldName
没有配置 fieldName`);var E=n;f&&(E=function(e,t){var n=ex(e.split(`#`),2),r=n[0],i=n[1],a=[];Id(t,(function(e,t){a.push(t+`=`+e)}));var o=a.join(`&`);return r=r.indexOf(`?`)>0?r+`&`+o:r+`?`+o,i?r+`#`+i:r}(E,u));var D=new Em({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(Lh,{endpoint:E,headers:m,formData:!0,fieldName:i,bundle:!0,withCredentials:g,timeout:v});return D.on(`upload-success`,(function(e,t){var n=t.body,r=n===void 0?{}:n;try{S(e,r)}catch(e){console.error(`wangEditor upload file - onSuccess error`,e)}D.removeFile(e.id)})),D.on(`progress`,(function(e){e<1||ee(e)})),D.on(`upload-error`,(function(e,t,n){try{w(e,t,n)}catch(e){console.error(`wangEditor upload file - onError error`,e)}D.removeFile(e.id)})),D.on(`restriction-failed`,(function(e,t){try{w(e,t)}catch(e){console.error(`wangEditor upload file - onError error`,e)}D.removeFile(e.id)})),D}function eE(e){return eE=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},eE(e)}function joe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:Object(arguments[t]),r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){joe(e,t,n[t])}))}return e}function nE(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function rE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iE(e,t,n){return t&&rE(e.prototype,t),n&&rE(e,n),e}function aE(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function oE(e,t){if(t&&(eE(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return aE(e)}function sE(e){return sE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sE(e)}function cE(e,t){return cE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cE(e,t)}function lE(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cE(e,t)}Eg&&!Doe&&Ooe(ZT,`name`,{configurable:!0,get:function(){try{return Aoe(QT,koe(this))[1]}catch{return``}}});var Moe={type:`logger`,log:function(e){this.output(`log`,e)},warn:function(e){this.output(`warn`,e)},error:function(e){this.output(`error`,e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},uE=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nE(this,e),this.init(t,n)}return iE(e,[{key:`init`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Moe,this.options=t,this.debug=t.debug}},{key:`setDebug`,value:function(e){this.debug=e}},{key:`log`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`log`,``,!0)}},{key:`warn`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`warn`,``,!0)}},{key:`error`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`error`,``)}},{key:`deprecate`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,`warn`,`WARNING DEPRECATED: `,!0)}},{key:`forward`,value:function(e,t,n,r){return r&&!this.debug?null:(typeof e[0]==`string`&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}},{key:`create`,value:function(t){return new e(this.logger,tE({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),dE=function(){function e(){nE(this,e),this.observers={}}return iE(e,[{key:`on`,value:function(e,t){var n=this;return e.split(` `).forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:`off`,value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:`emit`,value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function fE(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function pE(e){return e==null?``:``+e}function Noe(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function mE(e,t,n){function r(e){return e&&e.indexOf(`###`)>-1?e.replace(/###/g,`.`):e}function i(){return!e||typeof e==`string`}for(var a=typeof t==`string`?t.split(`.`):[].concat(t);a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),e=Object.prototype.hasOwnProperty.call(e,o)?e[o]:{}}return i()?{}:{obj:e,k:r(a.shift())}}function hE(e,t,n){var r=mE(e,t,Object);r.obj[r.k]=n}function gE(e,t){var n=mE(e,t),r=n.obj,i=n.k;if(r)return r[i]}function _E(e,t,n){var r=gE(e,n);return r===void 0?gE(t,n):r}function vE(e,t,n){for(var r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?typeof e[r]==`string`||e[r]instanceof String||typeof t[r]==`string`||t[r]instanceof String?n&&(e[r]=t[r]):vE(e[r],t[r],n):e[r]=t[r]);return e}function yE(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var bE={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function xE(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return bE[e]})):e}var SE=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function CE(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i||typeof i[r[a]]==`string`&&a+1<r.length)return;if(i[r[a]]===void 0){for(var o=2,s=r.slice(a,a+o).join(n),c=i[s];c===void 0&&r.length>a+o;)o++,c=i[s=r.slice(a,a+o).join(n)];if(c===void 0)return;if(typeof c==`string`)return c;if(s&&typeof c[s]==`string`)return c[s];var l=r.slice(a+o).join(n);return l?CE(c,l,n):void 0}i=i[r[a]]}return i}}var wE=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return nE(this,t),n=oE(this,sE(t).call(this)),SE&&dE.call(aE(n)),n.data=e||{},n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return lE(t,dE),iE(t,[{key:`addNamespaces`,value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:`removeNamespaces`,value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o=[e,t];n&&typeof n!=`string`&&(o=o.concat(n)),n&&typeof n==`string`&&(o=o.concat(i?n.split(i):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`));var s=gE(this.data,o);return s||!a||typeof n!=`string`?s:CE(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:`addResource`,value:function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=this.options.keySeparator;a===void 0&&(a=`.`);var o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(r=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t),hE(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}},{key:`addResources`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var i in n)typeof n[i]!=`string`&&Object.prototype.toString.apply(n[i])!==`[object Array]`||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit(`added`,e,t,n)}},{key:`addResourceBundle`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(`.`)>-1&&(r=n,n=t,t=(o=e.split(`.`))[1]),this.addNamespaces(t);var s=gE(this.data,o)||{};r?vE(s,n,i):s=tE({},s,n),hE(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}},{key:`removeResourceBundle`,value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}},{key:`hasResourceBundle`,value:function(e,t){return this.getResource(e,t)!==void 0}},{key:`getResourceBundle`,value:function(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?tE({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:`getDataByLanguage`,value:function(e){return this.data[e]}},{key:`toJSON`,value:function(){return this.data}}]),t}(),TE={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,i))})),t}},EE={},DE=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return nE(this,t),n=oE(this,sE(t).call(this)),SE&&dE.call(aE(n)),Noe([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,aE(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=uE.create(`translator`),n}return lE(t,dE),iE(t,[{key:`changeLanguage`,value:function(e){e&&(this.language=e)}},{key:`exists`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var n=this.resolve(e,t);return n&&n.res!==void 0}},{key:`extractFromKey`,value:function(e,t){var n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);var r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:i};var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return typeof i==`string`&&(i=[i]),{key:e,namespaces:i}}},{key:`translate`,value:function(e,n,r){var i=this;if(eE(n)!==`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||={},e==null)return``;Array.isArray(e)||(e=[String(e)]);var a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,o=this.extractFromKey(e[e.length-1],n),s=o.key,c=o.namespaces,l=c[c.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()===`cimode`)return d?l+(n.nsSeparator||this.options.nsSeparator)+s:s;var f=this.resolve(e,n),p=f&&f.res,m=f&&f.usedKey||s,h=f&&f.exactUsedKey||s,g=Object.prototype.toString.apply(p),_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(y&&p&&typeof p!=`string`&&typeof p!=`boolean`&&typeof p!=`number`&&_.indexOf(g)<0&&(typeof v!=`string`||g!==`[object Array]`)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,p,tE({},n,{ns:c})):`key '${s} (${this.language})' returned an object instead of string.`;if(a){var b=g===`[object Array]`,x=b?[]:{},S=b?h:m;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var w=`${S}${a}${C}`;x[C]=this.translate(w,tE({},n,{joinArrays:!1,ns:c})),x[C]===w&&(x[C]=p[C])}p=x}}else if(y&&typeof v==`string`&&g===`[object Array]`)(p=p.join(v))&&(p=this.extendTranslation(p,e,n,r));else{var T=!1,ee=!1,E=n.count!==void 0&&typeof n.count!=`string`,D=t.hasDefaultValue(n),te=E?this.pluralResolver.getSuffix(u,n.count):``,ne=n[`defaultValue${te}`]||n.defaultValue;!this.isValidLookup(p)&&D&&(T=!0,p=ne),this.isValidLookup(p)||(ee=!0,p=s);var re=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ee?void 0:p,ie=D&&ne!==p&&this.options.updateMissing;if(ee||T||ie){if(this.logger.log(ie?`updateKey`:`missingKey`,u,l,s,ie?ne:p),a){var O=this.resolve(s,tE({},n,{keySeparator:!1}));O&&O.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 ae=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&k&&k[0])for(var oe=0;oe<k.length;oe++)ae.push(k[oe]);else this.options.saveMissingTo===`all`?ae=this.languageUtils.toResolveHierarchy(n.lng||this.language):ae.push(n.lng||this.language);var se=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,ie?r:re,ie,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,ie?r:re,ie,n),i.emit(`missingKey`,e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?ae.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){se([e],s+t,n[`defaultValue${t}`]||ne)}))})):se(ae,s,ne))}p=this.extendTranslation(p,e,n,f,r),ee&&p===s&&this.options.appendNamespaceToMissingKey&&(p=`${l}:${s}`),(ee||T)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:`extendTranslation`,value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(tE({},n,{interpolation:tE({},this.options.interpolation,n.interpolation)}));var o,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);o=c&&c.length}var l=n.replace&&typeof n.replace!=`string`?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=tE({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);o<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,f=typeof d==`string`?[d]:d;return e!=null&&f&&f.length&&!1!==n.applyPostProcessor&&(e=TE.handle(f,e,t,this.options&&this.options.postProcessPassResolved?tE({i18nResolved:r},n):n,this)),e}},{key:`resolve`,value:function(e){var t,n,r,i,a,o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof e==`string`&&(e=[e]),e.forEach((function(e){if(!o.isValidLookup(t)){var c=o.extractFromKey(e,s),l=c.key;n=l;var u=c.namespaces;o.options.fallbackNS&&(u=u.concat(o.options.fallbackNS));var d=s.count!==void 0&&typeof s.count!=`string`,f=s.context!==void 0&&(typeof s.context==`string`||typeof s.context==`number`)&&s.context!==``,p=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);u.forEach((function(e){o.isValidLookup(t)||(a=e,!EE[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(EE[`${p[0]}-${e}`]=!0,o.logger.warn(`key "${n}" for languages "${p.join(`, `)}" won't get resolved as namespace "${a}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach((function(n){if(!o.isValidLookup(t)){i=n;var a,c,u=l,p=[u];for(o.i18nFormat&&o.i18nFormat.addLookupKeys?o.i18nFormat.addLookupKeys(p,l,n,e,s):(d&&(a=o.pluralResolver.getSuffix(n,s.count)),d&&f&&p.push(u+a),f&&p.push(u+=`${o.options.contextSeparator}${s.context}`),d&&p.push(u+=a));c=p.pop();)o.isValidLookup(t)||(r=c,t=o.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:a}}},{key:`isValidLookup`,value:function(e){return!(e===void 0||!this.options.returnNull&&e===null||!this.options.returnEmptyString&&e===``)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:`hasDefaultValue`,value:function(e){var t=`defaultValue`;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}]),t}();function OE(e){return e.charAt(0).toUpperCase()+e.slice(1)}var kE=function(){function e(t){nE(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uE.create(`languageUtils`)}return iE(e,[{key:`getScriptPartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return null;var t=e.split(`-`);return t.length===2?null:(t.pop(),t[t.length-1].toLowerCase()===`x`?null:this.formatLanguageCode(t.join(`-`)))}},{key:`getLanguagePartFromCode`,value:function(e){if(!e||e.indexOf(`-`)<0)return e;var t=e.split(`-`);return this.formatLanguageCode(t[0])}},{key:`formatLanguageCode`,value:function(e){if(typeof e==`string`&&e.indexOf(`-`)>-1){var t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=OE(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=OE(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=OE(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:`isWhitelisted`,value:function(e){return this.logger.deprecate(`languageUtils.isWhitelisted`,`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(e)}},{key:`isSupportedCode`,value:function(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:`getBestMatchFromCodes`,value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(e.indexOf(r)===0)return e}))}})),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t):null}},{key:`getFallbackCodes`,value:function(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),typeof e==`string`&&(e=[e]),Object.prototype.toString.apply(e)===`[object Array]`)return e;if(!t)return e.default||[];var n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}},{key:`toResolveHierarchy`,value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};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)),r.forEach((function(e){i.indexOf(e)<0&&a(n.formatLanguageCode(e))})),i}}]),e}(),AE=[{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`.split(`.`),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}],jE={1:function(e){return Number(e>1)},2:function(e){return Number(e!=1)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(e==1?0:e>=2&&e<=4?1:2)},7:function(e){return Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(e==1?0:e==2?1:e!=8&&e!=11?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(e==1?0:e==2?1:e<7?2:e<11?3:4)},11:function(e){return Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(e!==0)},14:function(e){return Number(e==1?0:e==2?1:e==3?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:e===0?2:1)},17:function(e){return Number(e==1||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(e==0?0:e==1?1:2)},19:function(e){return Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(e==1?0:e==0||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)}};function ME(){var e={};return AE.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:jE[t.fc]}}))})),e}var NE=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nE(this,e),this.languageUtils=t,this.options=n,this.logger=uE.create(`pluralResolver`),this.rules=ME()}return iE(e,[{key:`addRule`,value:function(e,t){this.rules[e]=t}},{key:`getRule`,value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:`needsPlural`,value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:`getPluralFormsOfKey`,value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:`getSuffixes`,value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:`getSuffix`,value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),a=r.numbers[i];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(a===2?a=`plural`:a===1&&(a=``));var o=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON===`v1`?a===1?``:typeof a==`number`?`_plural_${a.toString()}`:o():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn(`no plural rule found for: ${e}`),``}}]),e}(),PE=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};nE(this,e),this.logger=uE.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return iE(e,[{key:`init`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};var t=e.interpolation;this.escape=t.escape===void 0?xE:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?yE(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?yE(t.suffix):t.suffixEscaped||`}}`,this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||`,`,this.unescapePrefix=t.unescapeSuffix?``:t.unescapePrefix||`-`,this.unescapeSuffix=this.unescapePrefix?``:t.unescapeSuffix||``,this.nestingPrefix=t.nestingPrefix?yE(t.nestingPrefix):t.nestingPrefixEscaped||yE(`$t(`),this.nestingSuffix=t.nestingSuffix?yE(t.nestingSuffix):t.nestingSuffixEscaped||yE(`)`),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||`,`,this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0&&t.alwaysFormat,this.resetRegExp()}},{key:`reset`,value:function(){this.options&&this.init(this.options)}},{key:`resetRegExp`,value:function(){var e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,`g`);var t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,`g`);var n=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(n,`g`)}},{key:`interpolate`,value:function(e,t,n,r){var i,a,o,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,`$$$$`)}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var i=_E(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,tE({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(_E(t,c,o),l,n,tE({},r,t,{interpolationkey:o}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(o=0;i=t.regex.exec(e);){if((a=u(i[1].trim()))===void 0)if(typeof d==`function`){var n=d(e,i,r);a=typeof n==`string`?n:``}else{if(f){a=i[0];continue}s.logger.warn(`missed to pass in variable ${i[1]} for interpolating ${e}`),a=``}else typeof a==`string`||s.useRawValueToEscape||(a=pE(a));var c=t.safeValue(a);if(e=e.replace(i[0],c),f?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++o>=s.maxReplaces)break}})),e}},{key:`nest`,value:function(e,t){var n,r,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=tE({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=(i=this.interpolate(i,o)).replace(/'/g,`"`);try{o=JSON.parse(i),t&&(o=tE({},t,o))}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),c=u,l=!0}if((r=t(s.call(this,n[1].trim(),o),o))&&n[0]===e&&typeof r!=`string`)return r;typeof r!=`string`&&(r=pE(r)),r||=(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),``),l&&(r=c.reduce((function(e,t){return i.format(e,t,a.lng,tE({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),FE=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return nE(this,t),i=oE(this,sE(t).call(this)),SE&&dE.call(aE(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=uE.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return lE(t,dE),iE(t,[{key:`queueLoad`,value:function(e,t,n,r){var i=this,a=[],o=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s=`${e}|${t}`;!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(i.state[s]===1?o.indexOf(s)<0&&o.push(s):(i.state[s]=1,r=!1,o.indexOf(s)<0&&o.push(s),a.indexOf(s)<0&&a.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(a.length||o.length)&&this.queue.push({pending:o,loaded:{},errors:[],callback:r}),{toLoad:a,pending:o,toLoadLanguages:s,toLoadNamespaces:c}}},{key:`loaded`,value:function(e,t,n){var r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var o={};this.queue.forEach((function(n){(function(e,t,n,r){var i=mE(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],a[o].push(n)})(n.loaded,[i],a),function(e,t){for(var n=e.indexOf(t);n!==-1;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),n.pending.length!==0||n.done||(Object.keys(n.loaded).forEach((function(e){o[e]||(o[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){o[e].indexOf(t)<0&&o[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit(`loaded`,o),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:`read`,value:function(e,t,n){var r=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,o=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*a,o)}),a):o(s,c)})):o(null,{})}},{key:`prepareLoading`,value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=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.`),i&&i();typeof e==`string`&&(e=this.languageUtils.toResolveHierarchy(e)),typeof t==`string`&&(t=[t]);var a=this.queueLoad(e,t,r,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:`load`,value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:`reload`,value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:`loadOne`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,r=e.split(`|`),i=r[0],a=r[1];this.read(i,a,`read`,void 0,void 0,(function(r,o){r&&t.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,r),!r&&o&&t.logger.log(`${n}loaded namespace ${a} for language ${i}`,o),t.loaded(e,r,o)}))}},{key:`saveMissing`,value:function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`):n!=null&&n!==``&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,tE({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function IE(){return{debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(eE(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),eE(e[2])===`object`||eE(e[3])===`object`){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!1}}}function LE(e){return typeof e.ns==`string`&&(e.ns=[e.ns]),typeof e.fallbackLng==`string`&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS==`string`&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf(`cimode`)<0&&(e.whitelist=e.whitelist.concat([`cimode`])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e}function RE(){}var zE=new(function(e){function t(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(nE(this,t),e=oE(this,sE(t).call(this)),SE&&dE.call(aE(e)),e.options=LE(n),e.services={},e.logger=uE,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),oE(e,aE(e));setTimeout((function(){e.init(n,r)}),0)}return e}return lE(t,dE),iE(t,[{key:`init`,value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?typeof e==`function`?new e:e:null}if(typeof t==`function`&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate(`whitelist`,`option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.`),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate(`whitelist`,`options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.`),this.options=tE({},IE(),this.options,LE(t)),this.format=this.options.interpolation.format,n||=RE,!this.options.isClone){this.modules.logger?uE.init(r(this.modules.logger),this.options):uE.init(null,this.options);var i=new kE(this.options);this.store=new wE(this.options.resources,this.options);var a=this.services;a.logger=uE,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new NE(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new PE(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new FE(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new DE(this.services,this.options),this.translator.on(`*`,(function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var o=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);o.length>0&&o[0]!==`dev`&&(this.options.lng=o[0])}this.services.languageDetector||this.options.lng||this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var s=fE(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn(`init: i18next is already initialized. You should call init just once!`),e.isInitialized=!0,e.options.isClone||e.logger.log(`initialized`,e.options),e.emit(`initialized`,e.options),s.resolve(r),n(t,r)};if(e.languages&&e.options.compatibilityAPI!==`v1`&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),s}},{key:`loadResources`,value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:RE,r=typeof e==`string`?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()===`cimode`)return n();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return a(e)})),this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,n)}else n(null)}},{key:`reloadResources`,value:function(e,t,n){var r=fE();return e||=this.languages,t||=this.options.ns,n||=RE,this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:`use`,value:function(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&TE.addPostProcessor(e),e.type===`3rdParty`&&this.modules.external.push(e),this}},{key:`changeLanguage`,value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=fE();this.emit(`languageChanging`,e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var a=typeof i==`string`?i:n.services.languageUtils.getBestMatchFromCodes(i);a&&(n.language||(n.language=a,n.languages=n.services.languageUtils.toResolveHierarchy(a)),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){(function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit(`languageChanged`,i),n.logger.log(`languageChanged`,i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))})(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:`getFixedT`,value:function(e,t,n){var r=this,i=function e(t,i){var a;if(eE(i)!==`object`){for(var o=arguments.length,s=Array(o>2?o-2:0),c=2;c<o;c++)s[c-2]=arguments[c];a=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else a=tE({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var l=r.options.keySeparator||`.`,u=n?`${n}${l}${t}`:t;return r.t(u,a)};return typeof e==`string`?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:`t`,value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:`exists`,value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:`setDefaultNamespace`,value:function(e){this.options.defaultNS=e}},{key:`hasLoadedNamespace`,value:function(e){var t=this,n=arguments.length>1&&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 r=this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if(r.toLowerCase()===`cimode`)return!0;var o=function(e,n){var r=t.services.backendConnector.state[`${e}|${n}`];return r===-1||r===2};if(n.precheck){var s=n.precheck(this,o);if(s!==void 0)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!o(r,e)||i&&!o(a,e))}},{key:`loadNamespaces`,value:function(e,t){var n=this,r=fE();return this.options.ns?(typeof e==`string`&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:`loadLanguages`,value:function(e,t){var n=fE();typeof e==`string`&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:`dir`,value:function(e){return e||=this.languages&&this.languages.length>0?this.languages[0]:this.language,e?`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam`.split(`.`).indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?`rtl`:`ltr`:`rtl`}},{key:`createInstance`,value:function(){return new t(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:`cloneInstance`,value:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:RE,i=tE({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=tE({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new DE(a.services,a.options),a.translator.on(`*`,(function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:`toJSON`,value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function BE(e,t){zE.addResourceBundle(e,`translation`,t,!0,!0)}zE.init({lng:`zh-CN`,resources:{}});var q=zE.t.bind(zE);BE(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),BE(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var VE=Sa?{}.toString:function(){return`[object `+Ea(this)+`]`};Sa||Gi(Object.prototype,`toString`,VE,{unsafe:!0});var HE=Array.isArray||function(e){return Mr(e)==`Array`},UE=function(){},WE=[],GE=Hr(`Reflect`,`construct`),KE=/^\s*(?:class|function)\b/,qE=kr(KE.exec),JE=!KE.exec(UE),YE=function(e){if(!zr(e))return!1;try{return GE(UE,WE,e),!0}catch{return!1}},XE=!GE||_r((function(){var e;return YE(YE.call)||!YE(Object)||!YE((function(){e=!0}))||e}))?function(e){if(!zr(e))return!1;switch(Ea(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return JE||!!qE(KE,ji(e))}:YE,ZE=_i(`species`),QE=j.Array,$E=function(e,t){return new(function(e){var t;return HE(e)&&(t=e.constructor,(XE(t)&&(t===QE||HE(t.prototype))||Br(t)&&(t=t[ZE])===null)&&(t=void 0)),t===void 0?QE:t}(e))(t===0?0:t)},eD=kr([].push),tD=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=di(c),h=Fr(m),g=ho(l,u),_=$i(h),v=0,y=d||$E,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:eD(b,f)}else switch(e){case 4:return!1;case 7:eD(b,f)}return a?-1:r||i?i:b}},nD={forEach:tD(0),map:tD(1),filter:tD(2),some:tD(3),every:tD(4),find:tD(5),findIndex:tD(6),filterReject:tD(7)}.forEach,rD=function(e,t){var n=[][e];return!!n&&_r((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return nD(this,e,arguments.length>1?arguments[1]:void 0)},iD=function(e){if(e&&e.forEach!==rD)try{Di(e,`forEach`,rD)}catch{e.forEach=rD}};for(var aD in Qo)Qo[aD]&&iD(j[aD]&&j[aD].prototype);iD(ts),BE(`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`}}),BE(`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 oD={type:`paragraph`,renderElem:function(e,t,n){return H(`p`,null,t)}},sD=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function cD(e){var t={exports:{}};return e(t,t.exports),t.exports}var lD,uD,dD=function(e){return e&&e.Math==Math&&e},J=dD(typeof globalThis==`object`&&globalThis)||dD(typeof window==`object`&&window)||dD(typeof self==`object`&&self)||dD(typeof sD==`object`&&sD)||function(){return this}()||Function(`return this`)(),fD=function(e){try{return!!e()}catch{return!0}},pD=!fD((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),mD=Function.prototype.call,hD=mD.bind?mD.bind(mD):function(){return mD.apply(mD,arguments)},gD={}.propertyIsEnumerable,_D=Object.getOwnPropertyDescriptor,vD={f:_D&&!gD.call({1:2},1)?function(e){var t=_D(this,e);return!!t&&t.enumerable}:gD},yD=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},bD=Function.prototype,xD=bD.bind,SD=bD.call,CD=xD&&xD.bind(SD),Y=xD?function(e){return e&&CD(SD,e)}:function(e){return e&&function(){return SD.apply(e,arguments)}},wD=Y({}.toString),TD=Y(``.slice),ED=function(e){return TD(wD(e),8,-1)},DD=J.Object,OD=Y(``.split),kD=fD((function(){return!DD(`z`).propertyIsEnumerable(0)}))?function(e){return ED(e)==`String`?OD(e,``):DD(e)}:DD,AD=J.TypeError,jD=function(e){if(e==null)throw AD(`Can't call method on `+e);return e},MD=function(e){return kD(jD(e))},ND=function(e){return typeof e==`function`},PD=function(e){return typeof e==`object`?e!==null:ND(e)},FD=function(e){return ND(e)?e:void 0},ID=function(e,t){return arguments.length<2?FD(J[e]):J[e]&&J[e][t]},LD=Y({}.isPrototypeOf),RD=ID(`navigator`,`userAgent`)||``,zD=J.process,BD=J.Deno,VD=zD&&zD.versions||BD&&BD.version,HD=VD&&VD.v8;HD&&(uD=(lD=HD.split(`.`))[0]>0&&lD[0]<4?1:+(lD[0]+lD[1])),!uD&&RD&&(!(lD=RD.match(/Edge\/(\d+)/))||lD[1]>=74)&&(lD=RD.match(/Chrome\/(\d+)/))&&(uD=+lD[1]);var UD=uD,WD=!!Object.getOwnPropertySymbols&&!fD((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&UD&&UD<41})),GD=WD&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,KD=J.Object,qD=GD?function(e){return typeof e==`symbol`}:function(e){var t=ID(`Symbol`);return ND(t)&&LD(t.prototype,KD(e))},JD=J.String,YD=function(e){try{return JD(e)}catch{return`Object`}},XD=J.TypeError,ZD=function(e){if(ND(e))return e;throw XD(YD(e)+` is not a function`)},QD=function(e,t){var n=e[t];return n==null?void 0:ZD(n)},Poe=J.TypeError,Foe=Object.defineProperty,$D=function(e,t){try{Foe(J,e,{value:t,configurable:!0,writable:!0})}catch{J[e]=t}return t},eO=J[`__core-js_shared__`]||$D(`__core-js_shared__`,{}),tO=cD((function(e){(e.exports=function(e,t){return eO[e]||(eO[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ioe=J.Object,nO=function(e){return Ioe(jD(e))},Loe=Y({}.hasOwnProperty),rO=Object.hasOwn||function(e,t){return Loe(nO(e),t)},Roe=0,zoe=Math.random(),Boe=Y(1 .toString),iO=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Boe(++Roe+zoe,36)},aO=tO(`wks`),oO=J.Symbol,sO=oO&&oO.for,Voe=GD?oO:oO&&oO.withoutSetter||iO,cO=function(e){if(!rO(aO,e)||!WD&&typeof aO[e]!=`string`){var t=`Symbol.`+e;WD&&rO(oO,e)?aO[e]=oO[e]:aO[e]=GD&&sO?sO(t):Voe(t)}return aO[e]},Hoe=J.TypeError,Uoe=cO(`toPrimitive`),lO=function(e){var t=function(e,t){if(!PD(e)||qD(e))return e;var n,r=QD(e,Uoe);if(r){if(t===void 0&&(t=`default`),n=hD(r,e,t),!PD(n)||qD(n))return n;throw Hoe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ND(n=e.toString)&&!PD(r=hD(n,e))||ND(n=e.valueOf)&&!PD(r=hD(n,e))||t!==`string`&&ND(n=e.toString)&&!PD(r=hD(n,e)))return r;throw Poe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return qD(t)?t:t+``},uO=J.document,Woe=PD(uO)&&PD(uO.createElement),dO=function(e){return Woe?uO.createElement(e):{}},fO=!pD&&!fD((function(){return Object.defineProperty(dO(`div`),`a`,{get:function(){return 7}}).a!=7})),pO=Object.getOwnPropertyDescriptor,mO={f:pD?pO:function(e,t){if(e=MD(e),t=lO(t),fO)try{return pO(e,t)}catch{}if(rO(e,t))return yD(!hD(vD.f,e,t),e[t])}},Goe=J.String,Koe=J.TypeError,hO=function(e){if(PD(e))return e;throw Koe(Goe(e)+` is not an object`)},qoe=J.TypeError,gO=Object.defineProperty,_O={f:pD?gO:function(e,t,n){if(hO(e),t=lO(t),hO(n),fO)try{return gO(e,t,n)}catch{}if(`get`in n||`set`in n)throw qoe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},vO=pD?function(e,t,n){return _O.f(e,t,yD(1,n))}:function(e,t,n){return e[t]=n,e},Joe=Y(Function.toString);ND(eO.inspectSource)||(eO.inspectSource=function(e){return Joe(e)});var yO,bO,xO,SO=eO.inspectSource,CO=J.WeakMap,Yoe=ND(CO)&&/native code/.test(SO(CO)),wO=tO(`keys`),TO=function(e){return wO[e]||(wO[e]=iO(e))},EO={},DO=J.TypeError,Xoe=J.WeakMap;if(Yoe||eO.state){var OO=eO.state||=new Xoe,Zoe=Y(OO.get),kO=Y(OO.has),Qoe=Y(OO.set);yO=function(e,t){if(kO(OO,e))throw new DO(`Object already initialized`);return t.facade=e,Qoe(OO,e,t),t},bO=function(e){return Zoe(OO,e)||{}},xO=function(e){return kO(OO,e)}}else{var AO=TO(`state`);EO[AO]=!0,yO=function(e,t){if(rO(e,AO))throw new DO(`Object already initialized`);return t.facade=e,vO(e,AO,t),t},bO=function(e){return rO(e,AO)?e[AO]:{}},xO=function(e){return rO(e,AO)}}var jO={set:yO,get:bO,has:xO,enforce:function(e){return xO(e)?bO(e):yO(e,{})},getterFor:function(e){return function(t){var n;if(!PD(t)||(n=bO(t)).type!==e)throw DO(`Incompatible receiver, `+e+` required`);return n}}},MO=Function.prototype,$oe=pD&&Object.getOwnPropertyDescriptor,NO=rO(MO,`name`),PO={EXISTS:NO,PROPER:NO&&function(){}.name===`something`,CONFIGURABLE:NO&&(!pD||pD&&$oe(MO,`name`).configurable)},FO=cD((function(e){var t=PO.CONFIGURABLE,n=jO.get,r=jO.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;ND(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!rO(a,`name`)||t&&a.name!==d)&&vO(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===J?l?e[n]=a:$D(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:vO(e,n,a))})(Function.prototype,`toString`,(function(){return ND(this)&&n(this).source||SO(this)}))})),ese=Math.ceil,tse=Math.floor,IO=function(e){var t=+e;return t!=t||t===0?0:(t>0?tse:ese)(t)},nse=Math.max,rse=Math.min,LO=function(e,t){var n=IO(e);return n<0?nse(n+t,0):rse(n,t)},ise=Math.min,RO=function(e){return e>0?ise(IO(e),9007199254740991):0},zO=function(e){return RO(e.length)},BO=function(e){return function(t,n,r){var i,a=MD(t),o=zO(a),s=LO(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},VO={includes:BO(!0),indexOf:BO(!1)},ase=VO.indexOf,HO=Y([].push),UO=function(e,t){var n,r=MD(e),i=0,a=[];for(n in r)!rO(EO,n)&&rO(r,n)&&HO(a,n);for(;t.length>i;)rO(r,n=t[i++])&&(~ase(a,n)||HO(a,n));return a},WO=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ose=WO.concat(`length`,`prototype`),sse={f:Object.getOwnPropertyNames||function(e){return UO(e,ose)}},GO={f:Object.getOwnPropertySymbols},cse=Y([].concat),lse=ID(`Reflect`,`ownKeys`)||function(e){var t=sse.f(hO(e)),n=GO.f;return n?cse(t,n(e)):t},use=function(e,t){for(var n=lse(t),r=_O.f,i=mO.f,a=0;a<n.length;a++){var o=n[a];rO(e,o)||r(e,o,i(t,o))}},dse=/#|\.prototype\./,KO=function(e,t){var n=pse[fse(e)];return n==hse||n!=mse&&(ND(t)?fD(t):!!t)},fse=KO.normalize=function(e){return String(e).replace(dse,`.`).toLowerCase()},pse=KO.data={},mse=KO.NATIVE=`N`,hse=KO.POLYFILL=`P`,gse=KO,_se=mO.f,qO=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?J:l?J[s]||$D(s,{}):(J[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=_se(n,r))&&o.value:n[r],!gse(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;use(a,i)}(e.sham||i&&i.sham)&&vO(a,`sham`,!0),FO(n,r,a,e)}},JO=Y(Y.bind),YO=Array.isArray||function(e){return ED(e)==`Array`},XO={};XO[cO(`toStringTag`)]=`z`;var ZO=String(XO)===`[object z]`,vse=cO(`toStringTag`),yse=J.Object,bse=ED(function(){return arguments}())==`Arguments`,QO=ZO?ED:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=yse(e),vse))==`string`?n:bse?ED(t):(r=ED(t))==`Object`&&ND(t.callee)?`Arguments`:r},$O=function(){},xse=[],ek=ID(`Reflect`,`construct`),tk=/^\s*(?:class|function)\b/,Sse=Y(tk.exec),Cse=!tk.exec($O),nk=function(e){if(!ND(e))return!1;try{return ek($O,xse,e),!0}catch{return!1}},rk=!ek||fD((function(){var e;return nk(nk.call)||!nk(Object)||!nk((function(){e=!0}))||e}))?function(e){if(!ND(e))return!1;switch(QO(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Cse||!!Sse(tk,SO(e))}:nk,wse=cO(`species`),ik=J.Array,Tse=function(e,t){return new(function(e){var t;return YO(e)&&(t=e.constructor,(rk(t)&&(t===ik||YO(t.prototype))||PD(t)&&(t=t[wse])===null)&&(t=void 0)),t===void 0?ik:t}(e))(t===0?0:t)},ak=Y([].push),ok=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=nO(c),h=kD(m),g=function(e,t){return ZD(e),t===void 0?e:JO?JO(e,t):function(){return e.apply(t,arguments)}}(l,u),_=zO(h),v=0,y=d||Tse,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:ak(b,f)}else switch(e){case 4:return!1;case 7:ak(b,f)}return a?-1:r||i?i:b}},sk={forEach:ok(0),map:ok(1),filter:ok(2),some:ok(3),every:ok(4),find:ok(5),findIndex:ok(6),filterReject:ok(7)},Ese=cO(`species`),ck=function(e){return UD>=51||!fD((function(){var t=[];return(t.constructor={})[Ese]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Dse=sk.filter;qO({target:`Array`,proto:!0,forced:!ck(`filter`)},{filter:function(e){return Dse(this,e,arguments.length>1?arguments[1]:void 0)}});var Ose=ZO?{}.toString:function(){return`[object `+QO(this)+`]`};ZO||FO(Object.prototype,`toString`,Ose,{unsafe:!0});var lk,kse=J.String,uk=function(e){if(QO(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return kse(e)},dk=function(){var e=hO(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},fk=J.RegExp,pk=fD((function(){var e=fk(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),mk=pk||fD((function(){return!fk(`a`,`y`).sticky})),hk={BROKEN_CARET:pk||fD((function(){var e=fk(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:mk,UNSUPPORTED_Y:pk},gk=Object.keys||function(e){return UO(e,WO)},_k=pD?Object.defineProperties:function(e,t){hO(e);for(var n,r=MD(t),i=gk(t),a=i.length,o=0;a>o;)_O.f(e,n=i[o++],r[n]);return e},vk=ID(`document`,`documentElement`),yk=TO(`IE_PROTO`),bk=function(){},xk=function(e){return`<script>`+e+`<\/script>`},Sk=function(e){e.write(xk(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Ck=function(){try{lk=new ActiveXObject(`htmlfile`)}catch{}var e,t;Ck=typeof document<`u`?document.domain&&lk?Sk(lk):((t=dO(`iframe`)).style.display=`none`,vk.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(xk(`document.F=Object`)),e.close(),e.F):Sk(lk);for(var n=WO.length;n--;)delete Ck.prototype[WO[n]];return Ck()};EO[yk]=!0;var wk,Tk,Ek=Object.create||function(e,t){var n;return e===null?n=Ck():(bk.prototype=hO(e),n=new bk,bk.prototype=null,n[yk]=e),t===void 0?n:_k(n,t)},Dk=J.RegExp,Ok=fD((function(){var e=Dk(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),kk=J.RegExp,Ak=fD((function(){var e=kk(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),jk=jO.get,Mk=tO(`native-string-replace`,String.prototype.replace),Nk=RegExp.prototype.exec,Pk=Nk,Fk=Y(``.charAt),Ik=Y(``.indexOf),Lk=Y(``.replace),Rk=Y(``.slice),zk=(Tk=/b*/g,hD(Nk,wk=/a/,`a`),hD(Nk,Tk,`a`),wk.lastIndex!==0||Tk.lastIndex!==0),Bk=hk.BROKEN_CARET,Vk=/()??/.exec(``)[1]!==void 0;(zk||Vk||Bk||Ok||Ak)&&(Pk=function(e){var t,n,r,i,a,o,s,c=this,l=jk(c),u=uk(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=hD(Pk,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=Bk&&c.sticky,m=hD(dk,c),h=c.source,g=0,_=u;if(p&&(m=Lk(m,`y`,``),Ik(m,`g`)===-1&&(m+=`g`),_=Rk(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Fk(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),Vk&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),zk&&(r=c.lastIndex),i=hD(Nk,p?n:c,_),p?i?(i.input=Rk(i.input,g),i[0]=Rk(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:zk&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Vk&&i&&i.length>1&&hD(Mk,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=Ek(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Hk=Pk;qO({target:`RegExp`,proto:!0,forced:/./.exec!==Hk},{exec:Hk});var Uk=Function.prototype,Wk=Uk.apply,Gk=Uk.bind,Kk=Uk.call,qk=typeof Reflect==`object`&&Reflect.apply||(Gk?Kk.bind(Wk):function(){return Kk.apply(Wk,arguments)}),Jk=cO(`species`),Yk=RegExp.prototype,Xk=function(e,t,n,r){var i=cO(e),a=!fD((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!fD((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Jk]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Y(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Y(e),c=t.exec;return c===Hk||c===Yk.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));FO(String.prototype,e,c[0]),FO(Yk,i,c[1])}r&&vO(Yk[i],`sham`,!0)},Zk=Y(``.charAt),Qk=Y(``.charCodeAt),$k=Y(``.slice),eA=function(e){return function(t,n){var r,i,a=uk(jD(t)),o=IO(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Qk(a,o))<55296||r>56319||o+1===s||(i=Qk(a,o+1))<56320||i>57343?e?Zk(a,o):r:e?$k(a,o,o+2):i-56320+(r-55296<<10)+65536}},tA=eA(!0),nA=function(e,t,n){return t+(n?tA(e,t).length:1)},rA=Math.floor,iA=Y(``.charAt),aA=Y(``.replace),oA=Y(``.slice),sA=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cA=/\$([$&'`]|\d{1,2})/g,lA=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=cA;return i!==void 0&&(i=nO(i),c=sA),aA(a,c,(function(a,c){var l;switch(iA(c,0)){case`$`:return`$`;case`&`:return e;case"`":return oA(t,0,n);case`'`:return oA(t,o);case`<`:l=i[oA(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=rA(u/10);return d===0?a:d<=s?r[d-1]===void 0?iA(c,1):r[d-1]+iA(c,1):a}l=r[u-1]}return l===void 0?``:l}))},uA=J.TypeError,dA=function(e,t){var n=e.exec;if(ND(n)){var r=hD(n,e,t);return r!==null&&hO(r),r}if(ED(e)===`RegExp`)return hD(Hk,e,t);throw uA(`RegExp#exec called on incompatible receiver`)},fA=cO(`replace`),pA=Math.max,mA=Math.min,hA=Y([].concat),gA=Y([].push),_A=Y(``.indexOf),vA=Y(``.slice),yA=`a`.replace(/./,`$0`)===`$0`,bA=!!/./[fA]&&/./[fA](`a`,`$0`)===``;Xk(`replace`,(function(e,t,n){var r=bA?`$`:`$0`;return[function(e,n){var r=jD(this),i=e==null?void 0:QD(e,fA);return i?hD(i,e,r,n):hD(t,uk(r),e,n)},function(e,i){var a=hO(this),o=uk(e);if(typeof i==`string`&&_A(i,r)===-1&&_A(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=ND(i);c||(i=uk(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=dA(a,o);if(f===null||(gA(d,f),!l))break;uk(f[0])===``&&(a.lastIndex=nA(o,RO(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=uk((f=d[g])[0]),v=pA(mA(IO(f.index),o.length),0),y=[],b=1;b<f.length;b++)gA(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=hA([_],y,v,o);x!==void 0&&gA(S,x);var C=uk(qk(i,void 0,S))}else C=lA(_,o,v,y,x,i);v>=h&&(m+=vA(o,h,v)+C,h=v+_.length)}return m+vA(o,h)}]}),!!fD((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!yA||bA);var xA=cO(`unscopables`),SA=Array.prototype;SA[xA]??_O.f(SA,xA,{configurable:!0,value:Ek(null)});var CA=function(e){SA[xA][e]=!0},wA=sk.find,TA=!0;`find`in[]&&[,].find((function(){TA=!1})),qO({target:`Array`,proto:!0,forced:TA},{find:function(e){return wA(this,e,arguments.length>1?arguments[1]:void 0)}}),CA(`find`);var EA=cO(`match`),DA=function(e){var t;return PD(e)&&((t=e[EA])===void 0?ED(e)==`RegExp`:!!t)},OA=J.TypeError,kA=cO(`species`),AA=function(e,t,n){var r=lO(t);r in e?_O.f(e,r,yD(0,n)):e[r]=n},jA=J.Array,MA=Math.max,NA=function(e,t,n){for(var r=zO(e),i=LO(t,r),a=LO(n===void 0?r:n,r),o=jA(MA(a-i,0)),s=0;i<a;i++,s++)AA(o,s,e[i]);return o.length=s,o},PA=hk.UNSUPPORTED_Y,FA=Math.min,IA=[].push,LA=Y(/./.exec),RA=Y(IA),zA=Y(``.slice);Xk(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r=uk(jD(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!DA(e))return hD(t,r,e,i);for(var a,o,s,c=[],l=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),u=0,d=new RegExp(e.source,l+`g`);(a=hD(Hk,d,r))&&!((o=d.lastIndex)>u&&(RA(c,zA(r,u,a.index)),a.length>1&&a.index<r.length&&qk(IA,c,NA(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&LA(d,``)||RA(c,``):RA(c,zA(r,u)),c.length>i?NA(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:hD(t,this,e,n)}:t,[function(t,n){var i=jD(this),a=t==null?void 0:QD(t,e);return a?hD(a,t,i,n):hD(r,uk(i),t,n)},function(e,i){var a=hO(this),o=uk(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=hO(e).constructor;return r===void 0||(n=hO(r)[kA])==null?t:function(e){if(rk(e))return e;throw OA(YD(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(PA?`g`:`y`),d=new c(PA?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return dA(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=PA?0:m;var g,_=dA(d,PA?zA(o,m):o);if(_===null||(g=FA(RO(d.lastIndex+(PA?m:0)),o.length))===p)m=nA(o,m,l);else{if(RA(h,zA(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(RA(h,_[v]),h.length===f)return h;m=p=g}}return RA(h,zA(o,p)),h}]}),!!fD((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),PA);var BA=`	
\v\f\r \xA0               \u2028\u2029`,VA=Y(``.replace),HA=`[`+BA+`]`,UA=RegExp(`^`+HA+HA+`*`),WA=RegExp(HA+HA+`*$`),GA=function(e){return function(t){var n=uk(jD(t));return 1&e&&(n=VA(n,UA,``)),2&e&&(n=VA(n,WA,``)),n}},KA={start:GA(1),end:GA(2),trim:GA(3)},qA=PO.PROPER,JA=KA.trim;function YA(e){return V(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function XA(e){return e.length===0?``:e[0].outerHTML}function ZA(e){return e.length?e[0].tagName.toLowerCase():``}function QA(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===t&&(n=s[1].trim())}}return n}qO({target:`String`,proto:!0,forced:fD((function(){return!!BA.trim()||qA&&BA.trim.name!==`trim`}))},{trim:function(){return JA(this)}}),qO({global:!0},{globalThis:J}),dd&&(V.fn.css=dd),_d&&(V.fn.append=_d),vd&&(V.fn.prepend=vd),Zu&&(V.fn.addClass=Zu),Qu&&(V.fn.removeClass=Qu),$u&&(V.fn.hasClass=$u),id&&(V.fn.on=id),ad&&(V.fn.off=ad),Od&&(V.fn.focus=Od),ed&&(V.fn.attr=ed),td&&(V.fn.removeAttr=td),ld&&(V.fn.hide=ld),ud&&(V.fn.show=ud),bd&&(V.fn.parents=bd),nd&&(V.fn.dataset=nd),rd&&(V.fn.val=rd),hd&&(V.fn.text=hd),md&&(V.fn.html=md),Sd&&(V.fn.children=Sd),Cd&&(V.fn.remove=Cd),xd&&(V.fn.find=xd),od&&(V.fn.width=od),sd&&(V.fn.height=sd),pd&&(V.fn.filter=pd),wd&&(V.fn.empty=wd);var $A={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},ej=function(e,t){return ej=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ej(e,t)};function tj(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}ej(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var nj=function(){return nj=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},nj.apply(this,arguments)};function rj(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function ij(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function aj(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function oj(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function sj(e){var t=oj(P.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!N.isElement(n)||n.type===`paragraph`||F.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!z.isText(i[0])&&(B.setNodes(e,{type:`paragraph`}),!0)}var cj={renderElems:[oD],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[$A],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){sj(r)||t(e)},r.deleteForward=function(e){sj(r)||n(e)},r}},lj=/"/g,uj=Y(``.replace),dj=function(e,t,n,r){var i=uk(jD(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+uj(uk(r),lj,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},fj=function(e){return fD((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function pj(e,t){var n=t,r=e,i=r.bold,a=r.italic,o=r.underline;return i&&(n=`<strong>`+n+`</strong>`),r.code&&(n=`<code>`+n+`</code>`),a&&(n=`<em>`+n+`</em>`),o&&(n=`<u>`+n+`</u>`),r.through&&(n=`<s>`+n+`</s>`),r.sub&&(n=`<sub>`+n+`</sub>`),r.sup&&(n=`<sup>`+n+`</sup>`),n}function mj(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}qO({target:`String`,proto:!0,forced:fj(`bold`)},{bold:function(){return dj(this,`b`,``,``)}}),qO({target:`String`,proto:!0,forced:fj(`italics`)},{italics:function(){return dj(this,`i`,``,``)}}),qO({target:`String`,proto:!0,forced:fj(`sub`)},{sub:function(){return dj(this,`sub`,``,``)}}),qO({target:`String`,proto:!0,forced:fj(`sup`)},{sup:function(){return dj(this,`sup`,``,``)}});var hj={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},gj=dO(`span`).classList,_j=gj&&gj.constructor&&gj.constructor.prototype,vj=_j===Object.prototype?void 0:_j,yj=function(e,t){var n=[][e];return!!n&&fD((function(){n.call(null,t||function(){throw 1},1)}))},bj=sk.forEach,xj=yj(`forEach`)?[].forEach:function(e){return bj(this,e,arguments.length>1?arguments[1]:void 0)},Sj=function(e){if(e&&e.forEach!==xj)try{vO(e,`forEach`,xj)}catch{e.forEach=xj}};for(var Cj in hj)hj[Cj]&&Sj(J[Cj]&&J[Cj].prototype);function wj(e,t){return e.selection==null||!!oj(P.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!P.isVoid(e,t)},universal:!0}),1)[0]}function Tj(e,t){Object.keys(t).forEach((function(t){t!==`text`&&P.removeMark(e,t)}))}Sj(vj),qO({target:`Object`,stat:!0,forced:fD((function(){gk(1)}))},{keys:function(e){return gk(nO(e))}});var Ej=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=P.marks(e);return n?n[t]:!!oj(P.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return wj(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),Dj=`<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>`,Oj=`<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>`,kj=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Aj=`<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>`,jj=`<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>`,Mj=`<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>`,Nj=`<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>`,Pj=`<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>`,Fj=`<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>`,Ij=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,Lj=`<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>`,Rj=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,zj=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,Bj=`<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>`,Vj=`<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>`,Hj=`<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>`,Uj=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,Wj=`<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>`,Gj=`<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>`,Kj=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=q(`textStyle.bold`),t.iconSvg=Dj,t.hotkey=`mod+b`,t}return tj(t,e),t}(Ej),qj=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=q(`textStyle.code`),t.iconSvg=jj,t.hotkey=`mod+e`,t}return tj(t,e),t}(Ej),Jj=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=q(`textStyle.italic`),t.iconSvg=kj,t.hotkey=`mod+i`,t}return tj(t,e),t}(Ej),Yj=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=q(`textStyle.through`),t.iconSvg=Aj,t.hotkey=`mod+shift+x`,t}return tj(t,e),t}(Ej),Xj=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=q(`textStyle.underline`),t.iconSvg=Oj,t.hotkey=`mod+u`,t}return tj(t,e),t}(Ej),Zj=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sub`,t.marksNeedToRemove=[`sup`],t.title=q(`textStyle.sub`),t.iconSvg=Gj,t.hotkey=``,t}return tj(t,e),t}(Ej),Qj=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sup`,t.marksNeedToRemove=[`sub`],t.title=q(`textStyle.sup`),t.iconSvg=Wj,t.hotkey=``,t}return tj(t,e),t}(Ej),$j=function(){function e(){this.title=q(`textStyle.clear`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return wj(e)},e.prototype.exec=function(e,t){var n,r,i=P.nodes(e,{match:function(e){return z.isText(e)},universal:!0});try{for(var a=aj(i),o=a.next();!o.done;o=a.next())Tj(e,o.value[0])}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}},e}(),eM={renderStyle:function(e,t){var n=e,r=n.bold,i=n.italic,a=n.underline,o=n.code,s=n.through,c=n.sub,l=n.sup,u=t;return r&&(u=H(`strong`,null,u)),o&&(u=H(`code`,null,u)),i&&(u=H(`em`,null,u)),a&&(u=H(`u`,null,u)),s&&(u=H(`s`,null,u)),c&&(u=H(`sub`,null,u)),l&&(u=H(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new Kj}},{key:`underline`,factory:function(){return new Xj}},{key:`italic`,factory:function(){return new Jj}},{key:`through`,factory:function(){return new Yj}},{key:`code`,factory:function(){return new qj}},{key:`sub`,factory:function(){return new Zj}},{key:`sup`,factory:function(){return new Qj}},{key:`clearStyle`,factory:function(){return new $j}}],styleToHtml:function(e,t){if(!z.isText(e))return t;if(YA(t))return pj(e,t);var n=V(t);if(ZA(n)===`br`)return pj(e,`<br>`);var r=n.html();return r=pj(e,r),n.html(r),XA(n)},parseStyleHtml:function(e,t,n){var r=V(e);if(!z.isText(t))return t;var i=t;return mj(r,`b,strong`)&&(i.bold=!0),mj(r,`i,em`)&&(i.italic=!0),mj(r,`u`)&&(i.underline=!0),mj(r,`s,strike`)&&(i.through=!0),mj(r,`sub`)&&(i.sub=!0),mj(r,`sup`)&&(i.sup=!0),mj(r,`code`)&&(i.code=!0),i}};function tM(e){return function(t,n,r){return H(`h`+e,null,n)}}var nM={type:`header1`,renderElem:tM(1)},rM={type:`header2`,renderElem:tM(2)},iM={type:`header3`,renderElem:tM(3)},aM={type:`header4`,renderElem:tM(4)},oM={type:`header5`,renderElem:tM(5)},sM=PO.PROPER,cM=RegExp.prototype,lM=cM.toString,uM=Y(dk),dM=fD((function(){return lM.call({source:`a`,flags:`b`})!=`/a/b`})),fM=sM&&lM.name!=`toString`;(dM||fM)&&FO(RegExp.prototype,`toString`,(function(){var e=hO(this),t=uk(e.source),n=e.flags;return`/`+t+`/`+uk(n===void 0&&LD(cM,e)&&!(`flags`in cM)?uM(e):n)}),{unsafe:!0});var pM,mM=J.TypeError,hM=function(e){if(DA(e))throw mM(`The method doesn't accept regular expressions`);return e},gM=cO(`match`),_M=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[gM]=!1,`/./`[e](t)}catch{}}return!1},vM=mO.f,yM=Y(``.startsWith),bM=Y(``.slice),xM=Math.min,SM=_M(`startsWith`);function CM(e){var t=oj(P.nodes(e,{match:function(e){return K.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=oj(t,1)[0];return K.getNodeType(n)}function wM(e){return e.selection==null||!oj(P.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function TM(e,t){t&&B.setNodes(e,{type:t})}qO({target:`String`,proto:!0,forced:!(!SM&&(pM=vM(String.prototype,`startsWith`),pM&&!pM.writable)||SM)},{startsWith:function(e){var t=uk(jD(this));hM(e);var n=RO(xM(arguments.length>1?arguments[1]:void 0,t.length)),r=uk(e);return yM?yM(t,r,n):bM(t,n,n+r.length)===r}});var EM=function(){function e(){this.title=q(`header.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>`,this.tag=`select`,this.width=60}return e.prototype.getOptions=function(e){var t=[{value:`header1`,text:`H1`,styleForRenderMenuList:{"font-size":`32px`,"font-weight":`bold`}},{value:`header2`,text:`H2`,styleForRenderMenuList:{"font-size":`24px`,"font-weight":`bold`}},{value:`header3`,text:`H3`,styleForRenderMenuList:{"font-size":`18px`,"font-weight":`bold`}},{value:`header4`,text:`H4`,styleForRenderMenuList:{"font-size":`16px`,"font-weight":`bold`}},{value:`header5`,text:`H5`,styleForRenderMenuList:{"font-size":`13px`,"font-weight":`bold`}},{value:`paragraph`,text:q(`header.text`)}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return CM(e)},e.prototype.isDisabled=function(e){return wM(e)},e.prototype.exec=function(e,t){TM(e,t.toString())},e}(),DM=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return CM(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return wM(e)},e.prototype.exec=function(e,t){var n=this.type;TM(e,t===n?`paragraph`:n)},e}(),OM=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return tj(t,e),t}(DM),kM=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return tj(t,e),t}(DM),AM=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return tj(t,e),t}(DM),jM=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return tj(t,e),t}(DM),MM=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return tj(t,e),t}(DM),NM={key:`headerSelect`,factory:function(){return new EM}},PM={key:`header1`,factory:function(){return new OM}},FM={key:`header2`,factory:function(){return new kM}},IM={key:`header3`,factory:function(){return new AM}},LM={key:`header4`,factory:function(){return new jM}},RM={key:`header5`,factory:function(){return new MM}};function zM(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function BM(e){return function(t,n,r){var i=V(t);return(n=n.filter((function(e){return!!z.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var VM={renderElems:[nM,rM,iM,aM,oM],elemsToHtml:[{type:`header1`,elemToHtml:zM(1)},{type:`header2`,elemToHtml:zM(2)},{type:`header3`,elemToHtml:zM(3)},{type:`header4`,elemToHtml:zM(4)},{type:`header5`,elemToHtml:zM(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:BM(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:BM(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:BM(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:BM(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:BM(5)}],menus:[NM,PM,FM,IM,LM,RM],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=oj(P.nodes(n,{match:function(e){return K.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&K.isSelectionAtLineEnd(e,r[1])?B.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},HM=Object.assign,UM=Object.defineProperty,WM=Y([].concat),GM=!HM||fD((function(){if(pD&&HM({b:1},HM(UM({},`a`,{enumerable:!0,get:function(){UM(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),HM({},e)[n]!=7||gk(HM({},t)).join(``)!=r}))?function(e,t){for(var n=nO(e),r=arguments.length,i=1,a=GO.f,o=vD.f;r>i;)for(var s,c=kD(arguments[i++]),l=a?WM(gk(c),a(c)):gk(c),u=l.length,d=0;u>d;)s=l[d++],pD&&!hD(o,c,s)||(n[s]=c[s]);return n}:HM;function KM(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}qO({target:`Object`,stat:!0,forced:Object.assign!==GM},{assign:GM});var qM={selector:`font`,preParseHtml:function(e){var t=V(e);if(ZA(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},JM=function(){function e(){this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=P.marks(e);return n&&n[t]?n[t]:``},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return e.selection==null||!!oj(P.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!P.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=V(`<ul class="w-e-panel-content-color"></ul>`);n.on(`click`,`li`,(function(n){var r=n.target;if(r!=null&&(n.preventDefault(),e.selection!=null)){var i=V(r).attr(`data-value`);i===`0`?P.removeMark(e,t):P.addMark(e,t,i)}})),this.$content=n}var r=this.$content;if(r==null)return document.createElement(`ul`);r.empty();var i=this.getValue(e),a=e.getMenuConfig(t).colors;(a===void 0?[]:a).forEach((function(e){var t=V(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=V(`<li data-value="`+e+`"></li>`);i===e&&n.addClass(`active`),n.append(t),r.append(n)}));var o=``;t===`color`&&(o=q(`color.default`)),t===`bgColor`&&(o=q(`color.clear`));var s=V(`
      <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>
        `+o+`
      </li>
    `);return r.prepend(s),r[0]},e}(),YM=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`color.color`),t.iconSvg=Pj,t.mark=`color`,t}return tj(t,e),t}(JM),XM=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`color.bgColor`),t.iconSvg=Fj,t.mark=`bgColor`,t}return tj(t,e),t}(JM),ZM=`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)`.split(`.`),QM={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&KM(a,{color:r}),i&&KM(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!z.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((YA(t)||ZA(n=V(t))!==`span`)&&(n=V(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),XA(n)):t},preParseHtml:[qM],parseStyleHtml:function(e,t,n){var r=V(e);if(!z.isText(t))return t;var i=t,a=QA(r,`color`);a&&(i.color=a);var o=QA(r,`background-color`);return o||=QA(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new YM},config:{colors:ZM}},{key:`bgColor`,factory:function(){return new XM},config:{colors:ZM}}]},$M=/^(?:\w+:)?\/\/(\S+)$/,eN=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,tN=/^[^\s\.]+\.\S{2,}$/,nN=VO.includes;function rN(e){return e===void 0&&(e=`r`),e+`-`+Ld()}function iN(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function aN(e,t,n,r){return rj(this,void 0,void 0,(function(){var i,a;return ij(this,(function(o){switch(o.label){case 0:return(i=t.getMenuConfig(e).checkLink)?[4,i(n,r)]:[3,2];case 1:if(typeof(a=o.sent())==`string`)return t.alert(a,`error`),[2,!1];if(a==null)return[2,!1];o.label=2;case 2:return[2,!0]}}))}))}function oN(e,t,n){return rj(this,void 0,void 0,(function(){var r;return ij(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function sN(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!![`pre`,`code`,`link`].includes(n)||void 0}))}function cN(e,t){return{type:`link`,url:iN(e),children:t?[{text:t}]:[]}}function lN(e,t,n){return rj(this,void 0,void 0,(function(){var r,i,a;return ij(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),sN(e)?[2]:[4,aN(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,oN(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(R.isCollapsed(i)?(e.insertText(` `),a=cN(r,t),B.insertNodes(e,a),e.insertFragment([{text:` `}])):P.string(e,i)===t?(a=cN(r),B.wrapNodes(e,a,{split:!0}),B.collapse(e,{edge:`end`})):(e.deleteFragment(),a=cN(r,t),B.insertNodes(e,a))),[2]}}))}))}qO({target:`Array`,proto:!0},{includes:function(e){return nN(this,e,arguments.length>1?arguments[1]:void 0)}}),CA(`includes`);var uN={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return H(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},dN={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`link`,url:r.attr(`href`)||``,target:r.attr(`target`)||``,children:t}}};function fN(){return rN(`w-e-insert-link`)}var pN=function(){function e(){this.title=q(`link.insert`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=fN(),this.urlInputId=fN(),this.buttonId=fN()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return sN(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,i=n.urlInputId,a=n.buttonId,o=oj(zT(q(`link.text`),r),2),s=o[0],c=V(o[1]),l=oj(zT(q(`link.url`),i),2),u=l[0],d=V(l[1]),f=oj(BT(a,q(`common.ok`)),1)[0];if(this.$content==null){var p=V(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),lN(e,p.find(`#`+r).val(),p.find(`#`+i).val()),e.hidePanelOrModal()})),this.$content=p}var m=this.$content;if(m.empty(),m.append(s),m.append(u),m.append(f),t==null||R.isCollapsed(t))c.val(``);else{var h=P.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function mN(){return rN(`w-e-update-link`)}var hN=function(){function e(){this.title=q(`link.edit`),this.iconSvg=Mj,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=mN(),this.buttonId=mN()}return e.prototype.getSelectedLinkElem=function(e){return K.getSelectedNodeByType(e,`link`)??null},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.getModalPositionNode=function(e){return K.getSelectedNodeByType(e,`link`)},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=oj(zT(q(`link.url`),t),2),i=r[0],a=V(r[1]),o=oj(BT(n,q(`common.ok`)),1)[0];if(this.$content==null){var s=V(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=K.getSelectedNodeByType(e,`link`);(function(e,t,n){rj(this,void 0,void 0,(function(){var r,i;return ij(this,(function(a){switch(a.label){case 0:return n?[4,aN(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,oN(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:iN(r)},B.setNodes(e,i,{match:function(e){return K.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?F.string(r):``,s.find(`#`+t).val()),e.hidePanelOrModal()})),this.$content=s}var c=this.$content;c.empty(),c.append(i),c.append(o);var l=this.getValue(e);return a.val(l),setTimeout((function(){a.focus()})),c[0]},e}(),gN=function(){function e(){this.title=q(`link.unLink`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||K.getSelectedNodeByType(e,`link`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||B.unwrapNodes(e,{match:function(e){return K.checkNodeType(e,`link`)}})},e}(),_N=function(){function e(){this.title=q(`link.view`),this.iconSvg=Nj,this.tag=`button`}return e.prototype.getSelectedLinkElem=function(e){return K.getSelectedNodeByType(e,`link`)??null},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedLinkElem(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View link failed, link url is '`+t+`'`);window.open(t,`_blank`)}},e}(),vN={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},yN={renderElems:[uN],elemsToHtml:[{type:`link`,elemToHtml:function(e,t){var n=e,r=n.url,i=n.target;return`<a href="`+r+`" target="`+(i===void 0?`_blank`:i)+`">`+t+`</a>`}}],parseElemsHtml:[dN],menus:[{key:`insertLink`,factory:function(){return new pN},config:vN},{key:`editLink`,factory:function(){return new hN},config:vN},{key:`unLink`,factory:function(){return new gN}},{key:`viewLink`,factory:function(){return new _N}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var i=e;return i.isInline=function(e){return e.type===`link`||t(e)},i.insertData=function(e){var t=e.getData(`text/plain`);if(function(e){if(typeof e!=`string`)return!1;var t=e.match($M);if(!t)return!1;var n=t[1];return!(!n||!eN.test(n)&&!tN.test(n))}(t)){if(!sN(i)){var r=i.selection;r!=null&&lN(i,P.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=oj(e,2),n=t[0],a=t[1];return K.getNodeType(n)===`link`&&F.string(n)===``?B.removeNodes(i,{at:a}):r([n,a])},i}},bN=Y(1 .valueOf),xN=J.RangeError,SN=J.RangeError,CN=J.String,wN=Math.floor,TN=Y((function(e){var t=uk(jD(this)),n=``,r=IO(e);if(r<0||r==1/0)throw xN(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),EN=Y(``.slice),DN=Y(1 .toFixed),ON=function(e,t,n){return t===0?n:t%2==1?ON(e,t-1,n*e):ON(e*e,t/2,n)},kN=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=wN(i/1e7)},AN=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=wN(r/t),r=r%t*1e7},jN=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=CN(e[t]);n=n===``?r:n+TN(`0`,7-r.length)+r}return n};function MN(e,t){return`w-e-image-container-`+K.findKey(e,t).id}qO({target:`Number`,proto:!0,forced:fD((function(){return DN(8e-5,3)!==`0.000`||DN(.9,0)!==`1`||DN(1.255,2)!==`1.25`||DN(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!fD((function(){DN({})}))},{toFixed:function(e){var t,n,r,i,a=bN(this),o=IO(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw SN(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return CN(a);if(a<0&&(c=`-`,a=-a),a>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(a*ON(2,69,1))-69)<0?a*ON(2,-t,1):a/ON(2,t,1),n*=4503599627370496,(t=52-t)>0){for(kN(s,0,n),r=o;r>=7;)kN(s,1e7,0),r-=7;for(kN(s,ON(10,r,1),0),r=t-1;r>=23;)AN(s,1<<23),r-=23;AN(s,1<<r),kN(s,1,1),AN(s,2),l=jN(s)}else kN(s,0,n),kN(s,1<<-t,0),l=jN(s)+TN(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+TN(`0`,o-i)+l:EN(l,0,i-o)+`.`+EN(l,i-o)):c+l}});var NN={type:`image`,renderElem:function(e,t,n){var r=e,i=r.src,a=r.alt,o=a===void 0?``:a,s=r.href,c=s===void 0?``:s,l=r.style,u=l===void 0?{}:l,d=u.width,f=d===void 0?``:d,p=u.height,m=p===void 0?``:p,h=K.isNodeSelected(n,e),g={};f&&(g.width=`100%`),m&&(g.height=`100%`);var _=H(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=V(`body`),a=MN(e,t),o=r.width,s=r.height,c=0,l=0,u=0,d=!1,f=null;function p(t){f=function(){var e=V(`#`+a);if(e.length===0)throw Error(`Cannot find image container elem`);return e}(),c=t;var n=f.find(`img`);if(n.length===0)throw Error(`Cannot find image elem`);l=n.width(),u=n.height(),i.on(`mousemove`,m),i.on(`mouseup`,h);var r=K.getHoverbar(e);r&&r.hideAndClean()}var m=Vd((function(e){e.preventDefault();var t=e.clientX,n=l+(d?c-t:t-c),r=n/l*u;f!=null&&(n<=15||r<=15||(f.css(`width`,n+`px`),f.css(`height`,r+`px`)))}),100);function h(n){if(i.off(`mousemove`,m),f!=null){var r=f.width().toFixed(2),a=f.height().toFixed(2),o={style:nj(nj({},t.style),{width:r+`px`,height:a+`px`})};B.setNodes(e,o,{at:K.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),H(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=V(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,H(`div`,{className:`w-e-image-dragger left-top`}),H(`div`,{className:`w-e-image-dragger right-top`}),H(`div`,{className:`w-e-image-dragger left-bottom`}),H(`div`,{className:`w-e-image-dragger right-bottom`}))}(n,e,_,{width:f,height:m}):function(e,t,n,r){var i=r.width,a=r.height,o={};return i&&(o.width=i),a&&(o.height=a),H(`div`,{id:MN(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},PN={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:QA(r,`width`),height:QA(r,`height`)},children:[{text:``}]}}};function FN(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),rj(this,void 0,void 0,(function(){var a,o;return ij(this,(function(s){switch(s.label){case 0:return(a=t.getMenuConfig(e).checkImage)?[4,a(n,r,i)]:[3,2];case 1:if(typeof(o=s.sent())==`string`)return t.alert(o,`error`),[2,!1];if(o==null)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function IN(e,t,n){return rj(this,void 0,void 0,(function(){var r;return ij(this,(function(i){switch(i.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,n]}}))}))}function LN(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),rj(this,void 0,void 0,(function(){var i,a,o;return ij(this,(function(s){switch(s.label){case 0:return[4,FN(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,IN(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:iN(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),K.getSelectedNodeByType(e,`image`)&&e.move(1),RN(e)||(B.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function RN(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!oj(P.nodes(e,{match:function(t){var n=K.getNodeType(t);return n===`code`||n===`pre`||n===`link`||n===`list-item`||!!n.startsWith(`header`)||n===`blockquote`||!!P.isVoid(e,t)},universal:!0}),1)[0]}function zN(){return rN(`w-e-insert-image`)}var BN=function(){function e(){this.title=q(`image.netImage`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=zN(),this.altInputId=zN(),this.hrefInputId=zN(),this.buttonId=zN()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return RN(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=oj(zT(q(`image.src`),r),2),c=s[0],l=V(s[1]),u=oj(zT(q(`image.desc`),i),2),d=u[0],f=V(u[1]),p=oj(zT(q(`image.link`),a),2),m=p[0],h=V(p[1]),g=oj(BT(o,q(`common.ok`)),1)[0];if(this.$content==null){var _=V(`<div></div>`);_.on(`click`,`#`+o,(function(n){n.preventDefault();var o=_.find(`#`+r).val().trim(),s=_.find(`#`+i).val().trim(),c=_.find(`#`+a).val().trim();t.insertImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=_}var v=this.$content;return v.empty(),v.append(c),v.append(d),v.append(m),v.append(g),l.val(``),f.val(``),h.val(``),setTimeout((function(){l.focus()})),v[0]},e.prototype.insertImage=function(e,t,n,r){n===void 0&&(n=``),r===void 0&&(r=``),t&&(e.restoreSelection(),this.isDisabled(e)||LN(e,t,n,r))},e}(),VN=function(){function e(){this.title=q(`image.delete`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||K.getSelectedNodeByType(e,`image`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||B.removeNodes(e,{match:function(e){return K.checkNodeType(e,`image`)}})},e}();function HN(){return rN(`w-e-edit-image`)}var UN=function(){function e(){this.title=q(`image.edit`),this.iconSvg=Mj,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=HN(),this.altInputId=HN(),this.hrefInputId=HN(),this.buttonId=HN()}return e.prototype.getValue=function(e){return``},e.prototype.getImageNode=function(e){return K.getSelectedNodeByType(e,`image`)},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`image`)==null},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.altInputId,a=n.hrefInputId,o=n.buttonId,s=this.getImageNode(e);if(s==null)throw Error(`Not found selected image node`);var c=oj(zT(q(`image.src`),r),2),l=c[0],u=V(c[1]),d=oj(zT(q(`image.desc`),i),2),f=d[0],p=V(d[1]),m=oj(zT(q(`image.link`),a),2),h=m[0],g=V(m[1]),_=oj(BT(o,q(`common.ok`)),1)[0];if(this.$content==null){var v=V(`<div></div>`);v.on(`click`,`#`+o,(function(n){n.preventDefault();var o=v.find(`#`+r).val(),s=v.find(`#`+i).val(),c=v.find(`#`+a).val();t.updateImage(e,o,s,c),e.hidePanelOrModal()})),this.$content=v}var y=this.$content;y.empty(),y.append(l),y.append(f),y.append(h),y.append(_);var b=s,x=b.src,S=b.alt,C=S===void 0?``:S,w=b.href,T=w===void 0?``:w;return u.val(x),p.val(C),g.val(T),setTimeout((function(){u.focus()})),y[0]},e.prototype.updateImage=function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,i){n===void 0&&(n=``),r===void 0&&(r=``),i===void 0&&(i={}),rj(this,void 0,void 0,(function(){var a,o,s,c,l,u;return ij(this,(function(d){switch(d.label){case 0:return[4,FN(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,IN(`editImage`,e,t)]:[2];case 2:return a=d.sent(),(o=K.getSelectedNodeByType(e,`image`))==null||(s=o.style,c={src:a,alt:n,href:r,style:nj(nj({},s===void 0?{}:s),i)},B.setNodes(e,c,{match:function(e){return K.checkNodeType(e,`image`)}}),l=K.getSelectedNodeByType(e,`image`),(u=e.getMenuConfig(`editImage`).onUpdatedImage)&&u(l)),[2]}}))}))}(e,t,n,r,i))},e}(),WN=function(){function e(){this.title=q(`image.viewLink`),this.iconSvg=Nj,this.tag=`button`}return e.prototype.getValue=function(e){var t=K.getSelectedNodeByType(e,`image`);return t&&t.href||``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||typeof t!=`string`)throw Error(`View image link failed, image.href is '`+t+`'`);window.open(t,`_blank`)}},e}(),GN=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return K.getSelectedNodeByType(e,`image`)},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedNode(e)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(n!=null){var r=K.getHoverbar(e);r&&r.hideAndClean();var i=n.style,a={style:nj(nj({},i===void 0?{}:i),{width:this.value,height:``})};B.setNodes(e,a,{match:function(e){return K.checkNodeType(e,`image`)}})}}},e}(),KN=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return tj(t,e),t}(GN),qN=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return tj(t,e),t}(GN),JN=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return tj(t,e),t}(GN),YN={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},XN={renderElems:[NN],elemsToHtml:[{type:`image`,elemToHtml:function(e,t){var n=e,r=n.src,i=n.alt,a=i===void 0?``:i,o=n.href,s=o===void 0?``:o,c=n.style,l=c===void 0?{}:c,u=l.width,d=u===void 0?``:u,f=l.height,p=f===void 0?``:f,m=``;return d&&(m+=`width: `+d+`;`),p&&(m+=`height: `+p+`;`),`<img src="`+r+`" alt="`+a+`" data-href="`+s+`" style="`+m+`"/>`}}],parseElemsHtml:[PN],menus:[{key:`insertImage`,factory:function(){return new BN},config:YN},{key:`deleteImage`,factory:function(){return new VN}},{key:`editImage`,factory:function(){return new UN},config:YN},{key:`viewImageLink`,factory:function(){return new WN}},{key:`imageWidth30`,factory:function(){return new KN}},{key:`imageWidth50`,factory:function(){return new qN}},{key:`imageWidth100`,factory:function(){return new JN}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return e.type===`image`||t(e)},r.isVoid=function(e){return e.type===`image`||n(e)},r}},ZN={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),H(`div`,{style:{margin:`5px 0`}},H(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},H(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=K.findPath(n,e),i={checked:t.target.checked};B.setNodes(n,i,{at:r})}}})),H(`span`,null,t))}},QN=function(){function e(){this.title=q(`todo.todo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!!K.getSelectedNodeByType(e,`todo`)},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(P.isVoid(e,t)&&P.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`table`,`list-item`].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);B.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),$N={renderElems:[ZN],elemsToHtml:[{type:`todo`,elemToHtml:function(e,t){return`<div data-w-e-type="todo"><input type="checkbox" disabled `+(e.checked?`checked`:``)+`>`+t+`</div>`}}],preParseHtml:[{selector:`ul.w-e-todo`,preParseHtml:function(e){var t=V(e).find(`li`),n=V(`<div data-w-e-type="todo"></div>`),r=t.find(`input[type]`);return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[{selector:`div[data-w-e-type="todo"]`,parseElemHtml:function(e,t,n){var r=V(e);(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=!1;return r.find(`input[type="checkbox"]`).attr(`checked`)!=null&&(i=!0),{type:`todo`,checked:i,children:t}}}],menus:[{key:`todo`,factory:function(){return new QN}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&R.isCollapsed(r)){var i=K.getSelectedNodeByType(e,`todo`);if(i&&F.string(i).length===0)return void B.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},eP={type:`blockquote`,renderElem:function(e,t,n){return H(`blockquote`,null,t)}},tP={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},nP=function(){function e(){this.title=q(`blockQuote.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!!K.getSelectedNodeByType(e,`blockquote`)},e.prototype.isDisabled=function(e){return e.selection==null||!oj(P.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||t===`blockquote`},universal:!0,mode:`highest`}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?`paragraph`:`blockquote`;B.setNodes(e,{type:n},{mode:`highest`})}},e}(),rP={key:`blockquote`,factory:function(){return new nP}},iP=Y([].slice),aP=ck(`slice`),oP=cO(`species`),sP=J.Array,cP=Math.max;qO({target:`Array`,proto:!0,forced:!aP},{slice:function(e,t){var n,r,i,a=MD(this),o=zO(a),s=LO(e,o),c=LO(t===void 0?o:t,o);if(YO(a)&&(n=a.constructor,(rk(n)&&(n===sP||YO(n.prototype))||PD(n)&&(n=n[oP])===null)&&(n=void 0),n===sP||n===void 0))return iP(a,s,c);for(r=new(n===void 0?sP:n)(cP(c-s,0)),i=0;s<c;s++,i++)s in a&&AA(r,i,a[s]);return r.length=i,r}});var lP={renderElems:[eP],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[tP],menus:[rP],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var i=r.selection;if(i==null)return t();var a=oj(P.nodes(e,{match:function(e){return K.checkNodeType(e,`blockquote`)},universal:!0}),1)[0];if(!a)return t();var o=a[0],s=K.findPath(e,o),c=P.end(e,s);if(L.equals(c,i.focus)){var l=F.string(o);if(l&&l.slice(-1)===`
`)return e.deleteBackward(`character`),void B.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
`)},r}},uP=function(){function e(){this.title=q(`emotion.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>`,this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!!oj(P.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!P.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=V(`<ul class="w-e-panel-content-emotion"></ul>`);t.on(`click`,`li`,(function(t){var n=t.target;if(n!=null){t.preventDefault();var r=V(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(n==null)return document.createElement(`ul`);n.empty();var r=e.getMenuConfig(`emotion`).emotions;return(r===void 0?[]:r).forEach((function(e){var t=V(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),dP={menus:[{key:`emotion`,factory:function(){return new uP},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},fP={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},pP={selector:`font`,preParseHtml:function(e){var t=V(e);if(ZA(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,fP[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},mP=Y(``.indexOf);qO({target:`String`,proto:!0,forced:!_M(`includes`)},{includes:function(e){return!!~mP(uk(jD(this)),uk(hM(e)),arguments.length>1?arguments[1]:void 0)}});var hP,gP,_P=function(e){return e&&e.Math==Math&&e},vP=_P(typeof globalThis==`object`&&globalThis)||_P(typeof window==`object`&&window)||_P(typeof self==`object`&&self)||_P(typeof sD==`object`&&sD)||function(){return this}()||Function(`return this`)(),yP=Function.prototype,bP=yP.apply,xP=yP.bind,SP=yP.call,CP=typeof Reflect==`object`&&Reflect.apply||(xP?SP.bind(bP):function(){return SP.apply(bP,arguments)}),wP=Function.prototype,TP=wP.bind,EP=wP.call,DP=TP&&TP.bind(EP),OP=TP?function(e){return e&&DP(EP,e)}:function(e){return e&&function(){return EP.apply(e,arguments)}},kP=function(e){return typeof e==`function`},AP=function(e){try{return!!e()}catch{return!0}},jP=!AP((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),MP=Function.prototype.call,NP=MP.bind?MP.bind(MP):function(){return MP.apply(MP,arguments)},PP={}.propertyIsEnumerable,FP=Object.getOwnPropertyDescriptor,IP={f:FP&&!PP.call({1:2},1)?function(e){var t=FP(this,e);return!!t&&t.enumerable}:PP},LP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},RP=OP({}.toString),zP=OP(``.slice),BP=function(e){return zP(RP(e),8,-1)},VP=vP.Object,HP=OP(``.split),UP=AP((function(){return!VP(`z`).propertyIsEnumerable(0)}))?function(e){return BP(e)==`String`?HP(e,``):VP(e)}:VP,Ase=vP.TypeError,WP=function(e){if(e==null)throw Ase(`Can't call method on `+e);return e},GP=function(e){return UP(WP(e))},KP=function(e){return typeof e==`object`?e!==null:kP(e)},qP={},JP=function(e){return kP(e)?e:void 0},YP=function(e,t){return arguments.length<2?JP(qP[e])||JP(vP[e]):qP[e]&&qP[e][t]||vP[e]&&vP[e][t]},XP=OP({}.isPrototypeOf),ZP=YP(`navigator`,`userAgent`)||``,QP=vP.process,$P=vP.Deno,eF=QP&&QP.versions||$P&&$P.version,tF=eF&&eF.v8;tF&&(gP=(hP=tF.split(`.`))[0]>0&&hP[0]<4?1:+(hP[0]+hP[1])),!gP&&ZP&&(!(hP=ZP.match(/Edge\/(\d+)/))||hP[1]>=74)&&(hP=ZP.match(/Chrome\/(\d+)/))&&(gP=+hP[1]);var nF=gP,rF=!!Object.getOwnPropertySymbols&&!AP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nF&&nF<41})),iF=rF&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,jse=vP.Object,aF=iF?function(e){return typeof e==`symbol`}:function(e){var t=YP(`Symbol`);return kP(t)&&XP(t.prototype,jse(e))},Mse=vP.String,Nse=vP.TypeError,oF=function(e){if(kP(e))return e;throw Nse(function(e){try{return Mse(e)}catch{return`Object`}}(e)+` is not a function`)},Pse=vP.TypeError,Fse=Object.defineProperty,sF=vP[`__core-js_shared__`]||function(e,t){try{Fse(vP,e,{value:t,configurable:!0,writable:!0})}catch{vP[e]=t}return t}(`__core-js_shared__`,{}),cF=cD((function(e){(e.exports=function(e,t){return sF[e]||(sF[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ise=vP.Object,lF=function(e){return Ise(WP(e))},Lse=OP({}.hasOwnProperty),uF=Object.hasOwn||function(e,t){return Lse(lF(e),t)},Rse=0,zse=Math.random(),Bse=OP(1 .toString),dF=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Bse(++Rse+zse,36)},fF=cF(`wks`),pF=vP.Symbol,mF=pF&&pF.for,Vse=iF?pF:pF&&pF.withoutSetter||dF,hF=function(e){if(!uF(fF,e)||!rF&&typeof fF[e]!=`string`){var t=`Symbol.`+e;rF&&uF(pF,e)?fF[e]=pF[e]:fF[e]=iF&&mF?mF(t):Vse(t)}return fF[e]},Hse=vP.TypeError,Use=hF(`toPrimitive`),gF=function(e){var t=function(e,t){if(!KP(e)||aF(e))return e;var n,r,i=(n=e[Use])==null?void 0:oF(n);if(i){if(t===void 0&&(t=`default`),r=NP(i,e,t),!KP(r)||aF(r))return r;throw Hse(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&kP(n=e.toString)&&!KP(r=NP(n,e))||kP(n=e.valueOf)&&!KP(r=NP(n,e))||t!==`string`&&kP(n=e.toString)&&!KP(r=NP(n,e)))return r;throw Pse(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return aF(t)?t:t+``},_F=vP.document,Wse=KP(_F)&&KP(_F.createElement),vF=function(e){return Wse?_F.createElement(e):{}},yF=!jP&&!AP((function(){return Object.defineProperty(vF(`div`),`a`,{get:function(){return 7}}).a!=7})),bF=Object.getOwnPropertyDescriptor,xF={f:jP?bF:function(e,t){if(e=GP(e),t=gF(t),yF)try{return bF(e,t)}catch{}if(uF(e,t))return LP(!NP(IP.f,e,t),e[t])}},Gse=/#|\.prototype\./,SF=function(e,t){var n=qse[Kse(e)];return n==Yse||n!=Jse&&(kP(t)?AP(t):!!t)},Kse=SF.normalize=function(e){return String(e).replace(Gse,`.`).toLowerCase()},qse=SF.data={},Jse=SF.NATIVE=`N`,Yse=SF.POLYFILL=`P`,Xse=SF,CF=OP(OP.bind),wF=function(e,t){return oF(e),t===void 0?e:CF?CF(e,t):function(){return e.apply(t,arguments)}},Zse=vP.String,Qse=vP.TypeError,TF=function(e){if(KP(e))return e;throw Qse(Zse(e)+` is not an object`)},$se=vP.TypeError,EF=Object.defineProperty,DF={f:jP?EF:function(e,t,n){if(TF(e),t=gF(t),TF(n),yF)try{return EF(e,t,n)}catch{}if(`get`in n||`set`in n)throw $se(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},OF=jP?function(e,t,n){return DF.f(e,t,LP(1,n))}:function(e,t,n){return e[t]=n,e},ece=xF.f,tce=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return CP(e,this,arguments)};return t.prototype=e.prototype,t},kF=function(e,t){var n,r,i,a,o,s,c,l,u=e.target,d=e.global,f=e.stat,p=e.proto,m=d?vP:f?vP[u]:(vP[u]||{}).prototype,h=d?qP:qP[u]||OF(qP,u,{})[u],g=h.prototype;for(i in t)n=!Xse(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&uF(m,i),o=h[i],n&&(s=e.noTargetGet?(l=ece(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?wF(a,vP):e.wrap&&n?tce(a):p&&kP(a)?OP(a):a,(e.sham||a&&a.sham||o&&o.sham)&&OF(c,`sham`,!0),OF(h,i,c),p&&(uF(qP,r=u+`Prototype`)||OF(qP,r,{}),OF(qP[r],i,a),e.real&&g&&!g[i]&&OF(g,i,a)))},AF=Array.isArray||function(e){return BP(e)==`Array`},nce=Math.ceil,rce=Math.floor,jF=function(e){var t=+e;return t!=t||t===0?0:(t>0?rce:nce)(t)},ice=Math.min,MF=function(e){return(t=e.length)>0?ice(jF(t),9007199254740991):0;var t},NF=function(e,t,n){var r=gF(t);r in e?DF.f(e,r,LP(0,n)):e[r]=n},PF={};PF[hF(`toStringTag`)]=`z`;var FF=String(PF)===`[object z]`,ace=hF(`toStringTag`),oce=vP.Object,sce=BP(function(){return arguments}())==`Arguments`,IF=FF?BP:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=oce(e),ace))==`string`?n:sce?BP(t):(r=BP(t))==`Object`&&kP(t.callee)?`Arguments`:r},cce=OP(Function.toString);kP(sF.inspectSource)||(sF.inspectSource=function(e){return cce(e)});var LF=sF.inspectSource,RF=function(){},lce=[],zF=YP(`Reflect`,`construct`),BF=/^\s*(?:class|function)\b/,uce=OP(BF.exec),dce=!BF.exec(RF),VF=function(e){if(!kP(e))return!1;try{return zF(RF,lce,e),!0}catch{return!1}},fce=!zF||AP((function(){var e;return VF(VF.call)||!VF(Object)||!VF((function(){e=!0}))||e}))?function(e){if(!kP(e))return!1;switch(IF(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return dce||!!uce(BF,LF(e))}:VF,pce=hF(`species`),HF=vP.Array,UF=function(e,t){return new(function(e){var t;return AF(e)&&(t=e.constructor,(fce(t)&&(t===HF||AF(t.prototype))||KP(t)&&(t=t[pce])===null)&&(t=void 0)),t===void 0?HF:t}(e))(t===0?0:t)},mce=hF(`species`),WF=hF(`isConcatSpreadable`),GF=vP.TypeError,hce=nF>=51||!AP((function(){var e=[];return e[WF]=!1,e.concat()[0]!==e})),gce=nF>=51||!AP((function(){var e=[];return(e.constructor={})[mce]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),_ce=function(e){if(!KP(e))return!1;var t=e[WF];return t===void 0?AF(e):!!t};kF({target:`Array`,proto:!0,forced:!hce||!gce},{concat:function(e){var t,n,r,i,a,o=lF(this),s=UF(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(_ce(a=t===-1?o:arguments[t])){if(c+(i=MF(a))>9007199254740991)throw GF(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&NF(s,c,a[n])}else{if(c>=9007199254740991)throw GF(`Maximum allowed index exceeded`);NF(s,c++,a)}return s.length=c,s}});var KF,vce=vP.String,qF=function(e){if(IF(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return vce(e)},yce=Math.max,bce=Math.min,JF=function(e,t){var n=jF(e);return n<0?yce(n+t,0):bce(n,t)},YF=function(e){return function(t,n,r){var i,a=GP(t),o=MF(a),s=JF(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},xce={includes:YF(!0),indexOf:YF(!1)},XF={},Sce=xce.indexOf,ZF=OP([].push),QF=function(e,t){var n,r=GP(e),i=0,a=[];for(n in r)!uF(XF,n)&&uF(r,n)&&ZF(a,n);for(;t.length>i;)uF(r,n=t[i++])&&(~Sce(a,n)||ZF(a,n));return a},$F=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],eI=Object.keys||function(e){return QF(e,$F)},Cce=jP?Object.defineProperties:function(e,t){TF(e);for(var n,r=GP(t),i=eI(t),a=i.length,o=0;a>o;)DF.f(e,n=i[o++],r[n]);return e},wce=YP(`document`,`documentElement`),tI=cF(`keys`),nI=function(e){return tI[e]||(tI[e]=dF(e))},rI=nI(`IE_PROTO`),iI=function(){},aI=function(e){return`<script>`+e+`<\/script>`},oI=function(e){e.write(aI(``)),e.close();var t=e.parentWindow.Object;return e=null,t},sI=function(){try{KF=new ActiveXObject(`htmlfile`)}catch{}var e,t;sI=typeof document<`u`?document.domain&&KF?oI(KF):((t=vF(`iframe`)).style.display=`none`,wce.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(aI(`document.F=Object`)),e.close(),e.F):oI(KF);for(var n=$F.length;n--;)delete sI.prototype[$F[n]];return sI()};XF[rI]=!0;var cI,lI,uI,dI=Object.create||function(e,t){var n;return e===null?n=sI():(iI.prototype=TF(e),n=new iI,iI.prototype=null,n[rI]=e),t===void 0?n:Cce(n,t)},Tce=$F.concat(`length`,`prototype`),fI={f:Object.getOwnPropertyNames||function(e){return QF(e,Tce)}},Ece=vP.Array,Dce=Math.max,pI=fI.f,mI=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hI={f:function(e){return mI&&BP(e)==`Window`?function(e){try{return pI(e)}catch{return function(e,t,n){for(var r=MF(e),i=JF(void 0,r),a=JF(r,r),o=Ece(Dce(a-i,0)),s=0;i<a;i++,s++)NF(o,s,e[i]);return o.length=s,o}(mI)}}(e):pI(GP(e))}},gI={f:Object.getOwnPropertySymbols},Oce=OP([].slice),_I=function(e,t,n,r){r&&r.enumerable?e[t]=n:OF(e,t,n)},vI={f:hF},kce=DF.f,yI=function(e){var t=qP.Symbol||={};uF(t,e)||kce(t,e,{value:vI.f(e)})},Ace=FF?{}.toString:function(){return`[object `+IF(this)+`]`},jce=DF.f,bI=hF(`toStringTag`),xI=function(e,t,n,r){if(e){var i=n?e:e.prototype;uF(i,bI)||jce(i,bI,{configurable:!0,value:t}),r&&!FF&&OF(i,`toString`,Ace)}},SI=vP.WeakMap,Mce=kP(SI)&&/native code/.test(LF(SI)),CI=vP.TypeError,Nce=vP.WeakMap;if(Mce||sF.state){var wI=sF.state||=new Nce,Pce=OP(wI.get),TI=OP(wI.has),Fce=OP(wI.set);cI=function(e,t){if(TI(wI,e))throw new CI(`Object already initialized`);return t.facade=e,Fce(wI,e,t),t},lI=function(e){return Pce(wI,e)||{}},uI=function(e){return TI(wI,e)}}else{var EI=nI(`state`);XF[EI]=!0,cI=function(e,t){if(uF(e,EI))throw new CI(`Object already initialized`);return t.facade=e,OF(e,EI,t),t},lI=function(e){return uF(e,EI)?e[EI]:{}},uI=function(e){return uF(e,EI)}}var DI={set:cI,get:lI,has:uI,enforce:function(e){return uI(e)?lI(e):cI(e,{})},getterFor:function(e){return function(t){var n;if(!KP(t)||(n=lI(t)).type!==e)throw CI(`Incompatible receiver, `+e+` required`);return n}}},OI=OP([].push),kI=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=lF(c),h=UP(m),g=wF(l,u),_=MF(h),v=0,y=d||UF,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:OI(b,f)}else switch(e){case 4:return!1;case 7:OI(b,f)}return a?-1:r||i?i:b}},AI=[kI(0),kI(1),kI(2),kI(3),kI(4),kI(5),kI(6),kI(7)][0],jI=nI(`hidden`),MI=hF(`toPrimitive`),Ice=DI.set,NI=DI.getterFor(`Symbol`),PI=Object.prototype,FI=vP.Symbol,II=FI&&FI.prototype,LI=vP.TypeError,RI=vP.QObject,zI=YP(`JSON`,`stringify`),BI=xF.f,VI=DF.f,HI=hI.f,Lce=IP.f,UI=OP([].push),WI=cF(`symbols`),GI=cF(`op-symbols`),KI=cF(`string-to-symbol-registry`),qI=cF(`symbol-to-string-registry`),Rce=cF(`wks`),JI=!RI||!RI.prototype||!RI.prototype.findChild,YI=jP&&AP((function(){return dI(VI({},`a`,{get:function(){return VI(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=BI(PI,t);r&&delete PI[t],VI(e,t,n),r&&e!==PI&&VI(PI,t,r)}:VI,XI=function(e,t){var n=WI[e]=dI(II);return Ice(n,{type:`Symbol`,tag:e,description:t}),jP||(n.description=t),n},ZI=function(e,t,n){e===PI&&ZI(GI,t,n),TF(e);var r=gF(t);return TF(n),uF(WI,r)?(n.enumerable?(uF(e,jI)&&e[jI][r]&&(e[jI][r]=!1),n=dI(n,{enumerable:LP(0,!1)})):(uF(e,jI)||VI(e,jI,LP(1,{})),e[jI][r]=!0),YI(e,r,n)):VI(e,r,n)},QI=function(e,t){TF(e);var n=GP(t);return AI(eI(n).concat(nL(n)),(function(t){jP&&!NP($I,n,t)||ZI(e,t,n[t])})),e},$I=function(e){var t=gF(e),n=NP(Lce,this,t);return!(this===PI&&uF(WI,t)&&!uF(GI,t))&&(!(n||!uF(this,t)||!uF(WI,t)||uF(this,jI)&&this[jI][t])||n)},eL=function(e,t){var n=GP(e),r=gF(t);if(n!==PI||!uF(WI,r)||uF(GI,r)){var i=BI(n,r);return!i||!uF(WI,r)||uF(n,jI)&&n[jI][r]||(i.enumerable=!0),i}},tL=function(e){var t=HI(GP(e)),n=[];return AI(t,(function(e){uF(WI,e)||uF(XF,e)||UI(n,e)})),n},nL=function(e){var t=e===PI,n=HI(t?GI:GP(e)),r=[];return AI(n,(function(e){!uF(WI,e)||t&&!uF(PI,e)||UI(r,WI[e])})),r};if(rF||(II=(FI=function(){if(XP(II,this))throw LI(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?qF(arguments[0]):void 0,t=dF(e),n=function(e){this===PI&&NP(n,GI,e),uF(this,jI)&&uF(this[jI],t)&&(this[jI][t]=!1),YI(this,t,LP(1,e))};return jP&&JI&&YI(PI,t,{configurable:!0,set:n}),XI(t,e)}).prototype,_I(II,`toString`,(function(){return NI(this).tag})),_I(FI,`withoutSetter`,(function(e){return XI(dF(e),e)})),IP.f=$I,DF.f=ZI,xF.f=eL,fI.f=hI.f=tL,gI.f=nL,vI.f=function(e){return XI(hF(e),e)},jP&&VI(II,`description`,{configurable:!0,get:function(){return NI(this).description}})),kF({global:!0,wrap:!0,forced:!rF,sham:!rF},{Symbol:FI}),AI(eI(Rce),(function(e){yI(e)})),kF({target:`Symbol`,stat:!0,forced:!rF},{for:function(e){var t=qF(e);if(uF(KI,t))return KI[t];var n=FI(t);return KI[t]=n,qI[n]=t,n},keyFor:function(e){if(!aF(e))throw LI(e+` is not a symbol`);if(uF(qI,e))return qI[e]},useSetter:function(){JI=!0},useSimple:function(){JI=!1}}),kF({target:`Object`,stat:!0,forced:!rF,sham:!jP},{create:function(e,t){return t===void 0?dI(e):QI(dI(e),t)},defineProperty:ZI,defineProperties:QI,getOwnPropertyDescriptor:eL}),kF({target:`Object`,stat:!0,forced:!rF},{getOwnPropertyNames:tL,getOwnPropertySymbols:nL}),kF({target:`Object`,stat:!0,forced:AP((function(){gI.f(1)}))},{getOwnPropertySymbols:function(e){return gI.f(lF(e))}}),zI&&kF({target:`JSON`,stat:!0,forced:!rF||AP((function(){var e=FI();return zI([e])!=`[null]`||zI({a:e})!=`{}`||zI(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Oce(arguments),i=t;if((KP(t)||e!==void 0)&&!aF(e))return AF(t)||(t=function(e,t){if(kP(i)&&(t=NP(i,this,e,t)),!aF(t))return t}),r[1]=t,CP(zI,null,r)}}),!II[MI]){var zce=II.valueOf;_I(II,MI,(function(e){return NP(zce,this)}))}xI(FI,`Symbol`),XF[jI]=!0,yI(`asyncIterator`),yI(`hasInstance`),yI(`isConcatSpreadable`),yI(`iterator`),yI(`match`),yI(`matchAll`),yI(`replace`),yI(`search`),yI(`species`),yI(`split`),yI(`toPrimitive`),yI(`toStringTag`),yI(`unscopables`),xI(vP.JSON,`JSON`,!0);var rL,iL,aL,Bce=qP.Symbol,oL={},sL=Function.prototype,Vce=jP&&Object.getOwnPropertyDescriptor,cL=uF(sL,`name`),Hce={EXISTS:cL,PROPER:cL&&function(){}.name===`something`,CONFIGURABLE:cL&&(!jP||jP&&Vce(sL,`name`).configurable)},Uce=!AP((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lL=nI(`IE_PROTO`),uL=vP.Object,Wce=uL.prototype,dL=Uce?uL.getPrototypeOf:function(e){var t=lF(e);if(uF(t,lL))return t[lL];var n=t.constructor;return kP(n)&&t instanceof n?n.prototype:t instanceof uL?Wce:null},fL=hF(`iterator`),pL=!1;[].keys&&(`next`in(aL=[].keys())?(iL=dL(dL(aL)))!==Object.prototype&&(rL=iL):pL=!0),rL=rL==null||AP((function(){var e={};return rL[fL].call(e)!==e}))?{}:dI(rL),kP(rL[fL])||_I(rL,fL,(function(){return this}));var mL={IteratorPrototype:rL,BUGGY_SAFARI_ITERATORS:pL},Gce=mL.IteratorPrototype,Kce=function(){return this};vP.String,vP.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{OP(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var qce=Hce.PROPER,hL=mL.BUGGY_SAFARI_ITERATORS,gL=hF(`iterator`),Jce=function(){return this},_L=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=dI(Gce,{next:LP(1,n)}),xI(e,i,!1,!0),oL[i]=Kce})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!hL&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[gL]||p[`@@iterator`]||i&&p[i],h=!hL&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=dL(g.call(new e)))!==Object.prototype&&s.next&&(xI(s,d,!0,!0),oL[d]=Jce),qce&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return NP(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(hL||f||!(l in p))&&_I(p,l,c[l]);else kF({target:t,proto:!0,forced:hL||f},c);return o&&p[gL]!==h&&_I(p,gL,h,{name:i}),oL[t]=h,c},Yce=DI.set,Xce=DI.getterFor(`Array Iterator`);_L(Array,`Array`,(function(e,t){Yce(this,{type:`Array Iterator`,target:GP(e),index:0,kind:t})}),(function(){var e=Xce(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),oL.Arguments=oL.Array;var vL=hF(`toStringTag`);for(var yL 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 bL=vP[yL],xL=bL&&bL.prototype;xL&&IF(xL)!==vL&&OF(xL,vL,yL),oL[yL]=oL.Array}var Zce=Bce;yI(`asyncDispose`),yI(`dispose`),yI(`matcher`),yI(`metadata`),yI(`observable`),yI(`patternMatch`),yI(`replaceAll`);var SL=Zce,Qce=OP(``.charAt),CL=OP(``.charCodeAt),$ce=OP(``.slice),ele=function(e){return function(t,n){var r,i,a=qF(WP(t)),o=jF(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=CL(a,o))<55296||r>56319||o+1===s||(i=CL(a,o+1))<56320||i>57343?e?Qce(a,o):r:e?$ce(a,o,o+2):i-56320+(r-55296<<10)+65536}},tle=ele(!0),nle=DI.set,rle=DI.getterFor(`String Iterator`);_L(String,`String`,(function(e){nle(this,{type:`String Iterator`,string:qF(e),index:0})}),(function(){var e,t=rle(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=tle(n,r),t.index+=e.length,{value:e,done:!1})}));var ile=vI.f(`iterator`),wL=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(cD((function(e){function t(n){return typeof SL==`function`&&typeof ile==`symbol`?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&typeof SL==`function`&&e.constructor===SL&&e!==SL.prototype?`symbol`:typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),ale=PO.EXISTS,ole=_O.f,TL=Function.prototype,sle=Y(TL.toString),EL=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,cle=Y(EL.exec);pD&&!ale&&ole(TL,`name`,{configurable:!0,get:function(){try{return cle(EL,sle(this))[1]}catch{return``}}});var DL=function(){function e(){this.tag=`select`,this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=P.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!oj(P.nodes(e,{match:function(t){return K.getNodeType(t)===`pre`||!!P.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),lle=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`fontSize.title`),t.iconSvg=Ij,t.mark=`fontSize`,t}return tj(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=n===void 0?[]:n;t.push({text:q(`fontSize.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e});else if(wL(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(DL),ule=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`fontFamily.title`),t.iconSvg=Lj,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return tj(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=n===void 0?[]:n;t.push({text:q(`fontFamily.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if(wL(e)===`object`){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},t}(DL),dle={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&KM(a,{fontSize:r}),i&&KM(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!z.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((YA(t)||ZA(n=V(t))!==`span`)&&(n=V(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),XA(n)):t},preParseHtml:[pP],parseStyleHtml:function(e,t,n){var r=V(e);if(!z.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=QA(r,`font-size`),c=o.find((function(e){return e.value&&e.value===s}))||o.includes(s);s&&c&&(i.fontSize=s);var l=n.getMenuConfig(`fontFamily`).fontFamilyList,u=l===void 0?[]:l,d=QA(r,`font-family`).replace(/"/g,``),f=u.find((function(e){return e.value&&e.value===d}))||u.includes(d);return d&&f&&(i.fontFamily=d),i},menus:[{key:`fontSize`,factory:function(){return new lle},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 ule},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},fle={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=V(e),n=QA(t,`padding-left`);return/\dem/.test(n)&&t.css(`text-indent`,`2em`),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css(`text-indent`,`2em`),t[0]}},OL=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=oj(P.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:oj(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=oj(P.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e}(),ple=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`indent.decrease`),t.iconSvg=Rj,t}return tj(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){B.setNodes(e,{indent:null},{match:function(e){return N.isElement(e)}})},t}(OL),mle=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`indent.increase`),t.iconSvg=zj,t}return tj(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){B.setNodes(e,{indent:`2em`},{match:function(e){return N.isElement(e)},mode:`highest`})},t}(OL),hle={renderStyle:function(e,t){if(!N.isElement(e))return t;var n=e.indent,r=t;return n&&KM(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!N.isElement(e))return t;var n=e.indent;if(!n)return t;var r=V(t);return r.css(`text-indent`,n),XA(r)},preParseHtml:[fle],parseStyleHtml:function(e,t,n){var r=V(e);if(!N.isElement(t))return t;var i=t,a=QA(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new mle}},{key:`delIndent`,factory:function(){return new ple}}]},kL=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=oj(P.nodes(e,{match:function(e){var t=K.getNodeType(e);return t===`paragraph`||t===`blockquote`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(P.isVoid(e,t)&&P.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),gle=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.left`),t.iconSvg=Bj,t}return tj(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`left`},{match:function(t){return N.isElement(t)&&!e.isInline(t)}})},t}(kL),_le=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.right`),t.iconSvg=Vj,t}return tj(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`right`},{match:function(t){return N.isElement(t)&&!e.isInline(t)}})},t}(kL),vle=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.center`),t.iconSvg=Hj,t}return tj(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`center`},{match:function(t){return N.isElement(t)&&!e.isInline(t)}})},t}(kL),yle=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=q(`justify.justify`),t.iconSvg=Uj,t}return tj(t,e),t.prototype.exec=function(e,t){B.setNodes(e,{textAlign:`justify`},{match:function(t){return N.isElement(t)&&!e.isInline(t)}})},t}(kL),ble={renderStyle:function(e,t){if(!N.isElement(e))return t;var n=e.textAlign,r=t;return n&&KM(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!N.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=V(t);return r.css(`text-align`,n),XA(r)},parseStyleHtml:function(e,t,n){var r=V(e);if(!N.isElement(t))return t;var i=t,a=QA(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new gle}},{key:`justifyRight`,factory:function(){return new _le}},{key:`justifyCenter`,factory:function(){return new vle}},{key:`justifyJustify`,factory:function(){return new yle}}]},xle=function(){function e(){this.title=q(`lineHeight.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>`,this.tag=`select`,this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(`lineHeight`).lineHeightList,r=n===void 0?[]:n;t.push({text:q(`lineHeight.default`),value:``}),r.forEach((function(e){t.push({text:e,value:e})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=oj(P.nodes(e,{match:function(e){var t=K.getNodeType(e);return!!t.startsWith(`header`)||!![`paragraph`,`blockquote`,`list-item`].includes(t)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return t==null?``:N.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){B.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),Sle={renderStyle:function(e,t){if(!N.isElement(e))return t;var n=e.lineHeight,r=t;return n&&KM(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!N.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=V(t);return r.css(`line-height`,n),XA(r)},parseStyleHtml:function(e,t,n){var r=V(e);if(!N.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=QA(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new xle},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},Cle=function(){function e(){this.title=q(`undo.redo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null},e.prototype.exec=function(e,t){typeof e.redo==`function`&&e.redo()},e}(),wle=function(){function e(){this.title=q(`undo.undo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null},e.prototype.exec=function(e,t){typeof e.undo==`function`&&e.undo()},e}(),Tle={menus:[{key:`redo`,factory:function(){return new Cle}},{key:`undo`,factory:function(){return new wle}}]},Ele={type:`divider`,renderElem:function(e,t,n){return $d(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:K.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[$d(`hr`)])}},Dle=function(){function e(){this.title=q(`divider.title`),this.iconSvg=`<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=K.getNodeType(t);return n===`table`||n===`pre`||void 0}))},e.prototype.exec=function(e,t){B.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),Ole={renderElems:[Ele],elemsToHtml:[{type:`divider`,elemToHtml:function(e,t){return`<hr/>`}}],parseElemsHtml:[{selector:`hr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`divider`,children:[{text:``}]}}}],menus:[{key:`divider`,factory:function(){return new Dle}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`divider`||t(e)},r.normalizeNode=function(e){var t=oj(e,2),i=t[0],a=t[1];if(K.getNodeType(i)!==`divider`)return n([i,a]);K.isLastNode(r,i)&&B.insertNodes(r,K.genEmptyParagraph(),{at:[a[0]+1]})},r}},kle=sk.map;qO({target:`Array`,proto:!0,forced:!ck(`map`)},{map:function(e){return kle(this,e,arguments.length>1?arguments[1]:void 0)}});var Ale=Y([].join),jle=kD!=Object,Mle=yj(`join`,`,`);qO({target:`Array`,proto:!0,forced:jle||!Mle},{join:function(e){return Ale(MD(this),e===void 0?`,`:e)}});var Nle=function(){function e(){this.title=q(`codeBlock.title`),this.iconSvg=`<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>`,this.tag=`button`}return e.prototype.getSelectCodeElem=function(e){var t=K.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=K.getParentNode(e,t);return n==null||K.getNodeType(n)!==`pre`?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return t==null?``:t.language||``},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(e.selection==null)return!0;var t=K.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=K.getNodeType(e);if(t===`pre`||t===`paragraph`)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(t!=null){var n=F.string(t);B.removeNodes(e,{mode:`highest`});var r=n.split(`
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));B.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=P.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=aj(a),s=o.next();!s.done;s=o.next()){var c=oj(s.value,1)[0];c&&i.push(F.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}B.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
`)}]}]};B.insertNodes(e,l,{mode:`highest`})},e}(),Ple={key:`codeBlock`,factory:function(){return new Nle}};qO({target:`String`,proto:!0,forced:fj(`anchor`)},{anchor:function(e){return dj(this,`a`,`name`,e)}}),Xk(`match`,(function(e,t,n){return[function(t){var n=jD(this),r=t==null?void 0:QD(t,e);return r?hD(r,t,n):new RegExp(t)[e](uk(n))},function(e){var r=hO(this),i=uk(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return dA(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=dA(r,i))!==null;){var u=uk(s[0]);c[l]=u,u===``&&(r.lastIndex=nA(i,RO(r.lastIndex),o)),l++}return l===0?null:c}]}));var Fle={menus:[Ple],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var e=K.getSelectedNodeByType(i,`code`);if(e!=null){var n=function(e,t){var n=t.selection;if(n==null)return``;var r=F.string(e),i=n.anchor.offset,a=r.slice(0,i).split(`
`),o=a.length;return o===0?``:a[o-1]}(e,i);if(n){var r=n.match(/^\s+/);if(r!=null&&r[0]!=null){var a=r[0];i.insertText(`
`+a);return}}i.insertText(`
`)}else t()},i.normalizeNode=function(e){var t=oj(e,2),r=t[0],a=t[1],o=K.getNodeType(r);return o===`code`&&a.length<=1&&B.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(K.isLastNode(i,r)&&B.insertNodes(i,K.genEmptyParagraph(),{at:[a[0]+1]}),K.getNodeType(r.children[0])!==`code`&&(B.unwrapNodes(i),B.setNodes(i,{type:`paragraph`},{mode:`highest`}))),n([r,a])},i.insertData=function(e){if(K.getSelectedNodeByType(i,`code`)!=null){var t=e.getData(`text/plain`);P.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return H(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return H(`code`,null,t)}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){return`<code>`+t+`</code>`}},{type:`pre`,elemToHtml:function(e,t){return`<pre>`+t+`</pre>`}}],preParseHtml:[{selector:`pre>code`,preParseHtml:function(e){var t=V(e);if(ZA(t)!==`code`)return e;var n=t.find(`xmp`);if(n.length===0)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:`pre:not([data-w-e-type])>code`,parseElemHtml:function(e,t,n){return{type:`code`,language:``,children:[{text:V(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return K.getNodeType(e)===`code`}))).length===0&&(t=[{type:`code`,language:``,children:[{text:r[0].textContent||``}]}]),{type:`pre`,children:t.filter((function(e){return K.getNodeType(e)===`code`}))}}}]},Ile=function(){function e(){this.title=q(`fullScreen.title`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>`,this.tag=`button`,this.alwaysEnable=!0}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Lle={menus:[{key:`fullScreen`,factory:function(){return new Ile}}]},Rle=function(){function e(){this.title=q(`common.enter`),this.iconSvg=`<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!!R.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];B.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(P.start(e,r))}},e}(),zle=[eM,QM,dle,hle,ble,Sle,XN,Ole,dP,yN,Fle,lP,VM,cj,$N,Tle,Lle,{menus:[{key:`enter`,factory:function(){return new Rle}}]}];BE(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),BE(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var AL=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function jL(e){var t={exports:{}};return e(t,t.exports),t.exports}var ML,NL,PL=function(e){return e&&e.Math==Math&&e},X=PL(typeof globalThis==`object`&&globalThis)||PL(typeof window==`object`&&window)||PL(typeof self==`object`&&self)||PL(typeof AL==`object`&&AL)||function(){return this}()||Function(`return this`)(),FL=Function.prototype,IL=FL.bind,LL=FL.call,Ble=IL&&IL.bind(LL),RL=IL?function(e){return e&&Ble(LL,e)}:function(e){return e&&function(){return LL.apply(e,arguments)}},zL=function(e){try{return!!e()}catch{return!0}},Vle=RL({}.toString),Hle=RL(``.slice),BL=function(e){return Hle(Vle(e),8,-1)},VL=X.Object,Ule=RL(``.split),HL=zL((function(){return!VL(`z`).propertyIsEnumerable(0)}))?function(e){return BL(e)==`String`?Ule(e,``):VL(e)}:VL,Wle=X.TypeError,UL=function(e){if(e==null)throw Wle(`Can't call method on `+e);return e},WL=function(e){return HL(UL(e))},Gle=Object.defineProperty,GL=function(e,t){try{Gle(X,e,{value:t,configurable:!0,writable:!0})}catch{X[e]=t}return t},KL=X[`__core-js_shared__`]||GL(`__core-js_shared__`,{}),qL=jL((function(e){(e.exports=function(e,t){return KL[e]||(KL[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Kle=X.Object,JL=function(e){return Kle(UL(e))},qle=RL({}.hasOwnProperty),YL=Object.hasOwn||function(e,t){return qle(JL(e),t)},Jle=0,Yle=Math.random(),Xle=RL(1 .toString),XL=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Xle(++Jle+Yle,36)},ZL=function(e){return typeof e==`function`},Zle=function(e){return ZL(e)?e:void 0},QL=function(e,t){return arguments.length<2?Zle(X[e]):X[e]&&X[e][t]},$L=QL(`navigator`,`userAgent`)||``,eR=X.process,tR=X.Deno,nR=eR&&eR.versions||tR&&tR.version,rR=nR&&nR.v8;rR&&(NL=(ML=rR.split(`.`))[0]>0&&ML[0]<4?1:+(ML[0]+ML[1])),!NL&&$L&&(!(ML=$L.match(/Edge\/(\d+)/))||ML[1]>=74)&&(ML=$L.match(/Chrome\/(\d+)/))&&(NL=+ML[1]);var iR,aR=NL,oR=!!Object.getOwnPropertySymbols&&!zL((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aR&&aR<41})),sR=oR&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,cR=qL(`wks`),lR=X.Symbol,uR=lR&&lR.for,Qle=sR?lR:lR&&lR.withoutSetter||XL,dR=function(e){if(!YL(cR,e)||!oR&&typeof cR[e]!=`string`){var t=`Symbol.`+e;oR&&YL(lR,e)?cR[e]=lR[e]:cR[e]=sR&&uR?uR(t):Qle(t)}return cR[e]},fR=function(e){return typeof e==`object`?e!==null:ZL(e)},$le=X.String,eue=X.TypeError,pR=function(e){if(fR(e))return e;throw eue($le(e)+` is not an object`)},mR=!zL((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),hR=X.document,tue=fR(hR)&&fR(hR.createElement),gR=function(e){return tue?hR.createElement(e):{}},_R=!mR&&!zL((function(){return Object.defineProperty(gR(`div`),`a`,{get:function(){return 7}}).a!=7})),vR=Function.prototype.call,yR=vR.bind?vR.bind(vR):function(){return vR.apply(vR,arguments)},bR=RL({}.isPrototypeOf),nue=X.Object,xR=sR?function(e){return typeof e==`symbol`}:function(e){var t=QL(`Symbol`);return ZL(t)&&bR(t.prototype,nue(e))},rue=X.String,SR=function(e){try{return rue(e)}catch{return`Object`}},iue=X.TypeError,CR=function(e){if(ZL(e))return e;throw iue(SR(e)+` is not a function`)},wR=function(e,t){var n=e[t];return n==null?void 0:CR(n)},aue=X.TypeError,oue=X.TypeError,sue=dR(`toPrimitive`),TR=function(e){var t=function(e,t){if(!fR(e)||xR(e))return e;var n,r=wR(e,sue);if(r){if(t===void 0&&(t=`default`),n=yR(r,e,t),!fR(n)||xR(n))return n;throw oue(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ZL(n=e.toString)&&!fR(r=yR(n,e))||ZL(n=e.valueOf)&&!fR(r=yR(n,e))||t!==`string`&&ZL(n=e.toString)&&!fR(r=yR(n,e)))return r;throw aue(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return xR(t)?t:t+``},cue=X.TypeError,ER=Object.defineProperty,DR={f:mR?ER:function(e,t,n){if(pR(e),t=TR(t),pR(n),_R)try{return ER(e,t,n)}catch{}if(`get`in n||`set`in n)throw cue(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},lue=Math.ceil,uue=Math.floor,OR=function(e){var t=+e;return t!=t||t===0?0:(t>0?uue:lue)(t)},due=Math.max,fue=Math.min,kR=function(e,t){var n=OR(e);return n<0?due(n+t,0):fue(n,t)},pue=Math.min,AR=function(e){return e>0?pue(OR(e),9007199254740991):0},jR=function(e){return AR(e.length)},MR=function(e){return function(t,n,r){var i,a=WL(t),o=jR(a),s=kR(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},NR={includes:MR(!0),indexOf:MR(!1)},PR={},mue=NR.indexOf,FR=RL([].push),IR=function(e,t){var n,r=WL(e),i=0,a=[];for(n in r)!YL(PR,n)&&YL(r,n)&&FR(a,n);for(;t.length>i;)YL(r,n=t[i++])&&(~mue(a,n)||FR(a,n));return a},LR=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],RR=Object.keys||function(e){return IR(e,LR)},zR=mR?Object.defineProperties:function(e,t){pR(e);for(var n,r=WL(t),i=RR(t),a=i.length,o=0;a>o;)DR.f(e,n=i[o++],r[n]);return e},BR=QL(`document`,`documentElement`),VR=qL(`keys`),HR=function(e){return VR[e]||(VR[e]=XL(e))},UR=HR(`IE_PROTO`),WR=function(){},GR=function(e){return`<script>`+e+`<\/script>`},KR=function(e){e.write(GR(``)),e.close();var t=e.parentWindow.Object;return e=null,t},qR=function(){try{iR=new ActiveXObject(`htmlfile`)}catch{}var e,t;qR=typeof document<`u`?document.domain&&iR?KR(iR):((t=gR(`iframe`)).style.display=`none`,BR.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(GR(`document.F=Object`)),e.close(),e.F):KR(iR);for(var n=LR.length;n--;)delete qR.prototype[LR[n]];return qR()};PR[UR]=!0;var JR=Object.create||function(e,t){var n;return e===null?n=qR():(WR.prototype=pR(e),n=new WR,WR.prototype=null,n[UR]=e),t===void 0?n:zR(n,t)},YR=dR(`unscopables`),XR=Array.prototype;XR[YR]??DR.f(XR,YR,{configurable:!0,value:JR(null)});var ZR=function(e){XR[YR][e]=!0},QR={},$R=RL(Function.toString);ZL(KL.inspectSource)||(KL.inspectSource=function(e){return $R(e)});var ez,tz,nz,rz=KL.inspectSource,iz=X.WeakMap,az=ZL(iz)&&/native code/.test(rz(iz)),oz=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},sz=mR?function(e,t,n){return DR.f(e,t,oz(1,n))}:function(e,t,n){return e[t]=n,e},cz=X.TypeError,lz=X.WeakMap;if(az||KL.state){var uz=KL.state||=new lz,dz=RL(uz.get),fz=RL(uz.has),pz=RL(uz.set);ez=function(e,t){if(fz(uz,e))throw new cz(`Object already initialized`);return t.facade=e,pz(uz,e,t),t},tz=function(e){return dz(uz,e)||{}},nz=function(e){return fz(uz,e)}}else{var mz=HR(`state`);PR[mz]=!0,ez=function(e,t){if(YL(e,mz))throw new cz(`Object already initialized`);return t.facade=e,sz(e,mz,t),t},tz=function(e){return YL(e,mz)?e[mz]:{}},nz=function(e){return YL(e,mz)}}var hz,gz,_z,vz={set:ez,get:tz,has:nz,enforce:function(e){return nz(e)?tz(e):ez(e,{})},getterFor:function(e){return function(t){var n;if(!fR(t)||(n=tz(t)).type!==e)throw cz(`Incompatible receiver, `+e+` required`);return n}}},yz={}.propertyIsEnumerable,bz=Object.getOwnPropertyDescriptor,xz={f:bz&&!yz.call({1:2},1)?function(e){var t=bz(this,e);return!!t&&t.enumerable}:yz},Sz=Object.getOwnPropertyDescriptor,Cz={f:mR?Sz:function(e,t){if(e=WL(e),t=TR(t),_R)try{return Sz(e,t)}catch{}if(YL(e,t))return oz(!yR(xz.f,e,t),e[t])}},wz=Function.prototype,Tz=mR&&Object.getOwnPropertyDescriptor,Ez=YL(wz,`name`),Dz={EXISTS:Ez,PROPER:Ez&&function(){}.name===`something`,CONFIGURABLE:Ez&&(!mR||mR&&Tz(wz,`name`).configurable)},Oz=jL((function(e){var t=Dz.CONFIGURABLE,n=vz.get,r=vz.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;ZL(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!YL(a,`name`)||t&&a.name!==d)&&sz(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===X?l?e[n]=a:GL(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:sz(e,n,a))})(Function.prototype,`toString`,(function(){return ZL(this)&&n(this).source||rz(this)}))})),kz=LR.concat(`length`,`prototype`),Az={f:Object.getOwnPropertyNames||function(e){return IR(e,kz)}},jz={f:Object.getOwnPropertySymbols},Mz=RL([].concat),Nz=QL(`Reflect`,`ownKeys`)||function(e){var t=Az.f(pR(e)),n=jz.f;return n?Mz(t,n(e)):t},Pz=function(e,t){for(var n=Nz(t),r=DR.f,i=Cz.f,a=0;a<n.length;a++){var o=n[a];YL(e,o)||r(e,o,i(t,o))}},Fz=/#|\.prototype\./,Iz=function(e,t){var n=Rz[Lz(e)];return n==Bz||n!=zz&&(ZL(t)?zL(t):!!t)},Lz=Iz.normalize=function(e){return String(e).replace(Fz,`.`).toLowerCase()},Rz=Iz.data={},zz=Iz.NATIVE=`N`,Bz=Iz.POLYFILL=`P`,Vz=Iz,Hz=Cz.f,Uz=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?X:l?X[s]||GL(s,{}):(X[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Hz(n,r))&&o.value:n[r],!Vz(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Pz(a,i)}(e.sham||i&&i.sham)&&sz(a,`sham`,!0),Oz(n,r,a,e)}},Wz=!zL((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Gz=HR(`IE_PROTO`),Kz=X.Object,qz=Kz.prototype,Jz=Wz?Kz.getPrototypeOf:function(e){var t=JL(e);if(YL(t,Gz))return t[Gz];var n=t.constructor;return ZL(n)&&t instanceof n?n.prototype:t instanceof Kz?qz:null},Yz=dR(`iterator`),Xz=!1;[].keys&&(`next`in(_z=[].keys())?(gz=Jz(Jz(_z)))!==Object.prototype&&(hz=gz):Xz=!0),(hz==null||zL((function(){var e={};return hz[Yz].call(e)!==e})))&&(hz={}),ZL(hz[Yz])||Oz(hz,Yz,(function(){return this}));var Zz={IteratorPrototype:hz,BUGGY_SAFARI_ITERATORS:Xz},Qz=DR.f,$z=dR(`toStringTag`),eB=function(e,t,n){e&&!YL(e=n?e:e.prototype,$z)&&Qz(e,$z,{configurable:!0,value:t})},tB=Zz.IteratorPrototype,nB=function(){return this},rB=X.String,iB=X.TypeError,aB=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=RL(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return pR(n),function(e){if(typeof e==`object`||ZL(e))return e;throw iB(`Can't set `+rB(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),oB=Dz.PROPER,sB=Dz.CONFIGURABLE,cB=Zz.IteratorPrototype,lB=Zz.BUGGY_SAFARI_ITERATORS,uB=dR(`iterator`),dB=function(){return this},fB=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=JR(tB,{next:oz(1,n)}),eB(e,i,!1),QR[i]=nB})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!lB&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[uB]||p[`@@iterator`]||i&&p[i],h=!lB&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=Jz(g.call(new e)))!==Object.prototype&&s.next&&(Jz(s)!==cB&&(aB?aB(s,cB):ZL(s[uB])||Oz(s,uB,dB)),eB(s,d,!0)),oB&&i==`values`&&m&&m.name!==`values`&&(sB?sz(p,`name`,`values`):(f=!0,h=function(){return yR(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(lB||f||!(l in p))&&Oz(p,l,c[l]);else Uz({target:t,proto:!0,forced:lB||f},c);return p[uB]!==h&&Oz(p,uB,h,{name:i}),QR[t]=h,c},pB=vz.set,mB=vz.getterFor(`Array Iterator`),hB=fB(Array,`Array`,(function(e,t){pB(this,{type:`Array Iterator`,target:WL(e),index:0,kind:t})}),(function(){var e=mB(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);QR.Arguments=QR.Array,ZR(`keys`),ZR(`values`),ZR(`entries`);var gB={};gB[dR(`toStringTag`)]=`z`;var _B=String(gB)===`[object z]`,vB=dR(`toStringTag`),yB=X.Object,bB=BL(function(){return arguments}())==`Arguments`,xB=_B?BL:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=yB(e),vB))==`string`?n:bB?BL(t):(r=BL(t))==`Object`&&ZL(t.callee)?`Arguments`:r},SB=_B?{}.toString:function(){return`[object `+xB(this)+`]`};_B||Oz(Object.prototype,`toString`,SB,{unsafe:!0});var CB=X.String,wB=function(e){if(xB(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return CB(e)},TB=RL(``.charAt),EB=RL(``.charCodeAt),DB=RL(``.slice),OB=function(e){return function(t,n){var r,i,a=wB(UL(t)),o=OR(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=EB(a,o))<55296||r>56319||o+1===s||(i=EB(a,o+1))<56320||i>57343?e?TB(a,o):r:e?DB(a,o,o+2):i-56320+(r-55296<<10)+65536}},kB={codeAt:OB(!1),charAt:OB(!0)},AB=kB.charAt,jB=vz.set,MB=vz.getterFor(`String Iterator`);fB(String,`String`,(function(e){jB(this,{type:`String Iterator`,string:wB(e),index:0})}),(function(){var e,t=MB(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=AB(n,r),t.index+=e.length,{value:e,done:!1})}));var NB=function(e,t,n){for(var r in t)Oz(e,r,t[r],n);return e},PB=X.Array,FB=Math.max,IB=Az.f,LB=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],RB={f:function(e){return LB&&BL(e)==`Window`?function(e){try{return IB(e)}catch{return function(e,t,n){for(var r,i,a,o,s=jR(e),c=kR(void 0,s),l=kR(s,s),u=PB(FB(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=TR(i))in r?DR.f(r,o,oz(0,a)):r[o]=a;return u.length=d,u}(LB)}}(e):IB(WL(e))}},zB=zL((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),BB=Object.isExtensible,VB=zL((function(){BB(1)}))||zB?function(e){return!!fR(e)&&(!zB||BL(e)!=`ArrayBuffer`)&&(!BB||BB(e))}:BB,HB=!zL((function(){return Object.isExtensible(Object.preventExtensions({}))})),UB=jL((function(e){var t=DR.f,n=!1,r=XL(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=Az.f,t=RL([].splice),i={};i[r]=1,e(i).length&&(Az.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},Uz({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:RB.f}))},fastKey:function(e,t){if(!fR(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!YL(e,r)){if(!VB(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!YL(e,r)){if(!VB(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return HB&&n&&VB(e)&&!YL(e,r)&&a(e),e}};PR[r]=!0})),WB=RL(RL.bind),GB=function(e,t){return CR(e),t===void 0?e:WB?WB(e,t):function(){return e.apply(t,arguments)}},KB=dR(`iterator`),qB=Array.prototype,JB=dR(`iterator`),YB=function(e){if(e!=null)return wR(e,JB)||wR(e,`@@iterator`)||QR[xB(e)]},XB=X.TypeError,ZB=function(e,t,n){var r,i;pR(e);try{if(!(r=wR(e,`return`))){if(t===`throw`)throw n;return n}r=yR(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return pR(r),n},QB=X.TypeError,$B=function(e,t){this.stopped=e,this.result=t},eV=$B.prototype,tV=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=GB(t,d),g=function(e){return r&&ZB(r,`normal`,e),new $B(!0,e)},_=function(e){return f?(pR(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=YB(e)))throw QB(SR(e)+` is not iterable`);if((u=i)!==void 0&&(QR.Array===u||qB[KB]===u)){for(a=0,o=jR(e);o>a;a++)if((s=_(e[a]))&&bR(eV,s))return s;return new $B(!1)}r=function(e,t){var n=arguments.length<2?YB(e):t;if(CR(n))return pR(yR(n,e));throw XB(SR(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=yR(c,r)).done;){try{s=_(l.value)}catch(e){ZB(r,`throw`,e)}if(typeof s==`object`&&s&&bR(eV,s))return s}return new $B(!1)},nV=X.TypeError,rV=function(e,t){if(bR(t,e))return e;throw nV(`Incorrect invocation`)},iV=dR(`iterator`),aV=!1;try{var oV=0,sV={next:function(){return{done:!!oV++}},return:function(){aV=!0}};sV[iV]=function(){return this},Array.from(sV,(function(){throw 2}))}catch{}var cV=Array.isArray||function(e){return BL(e)==`Array`},lV=function(){},uV=[],dV=QL(`Reflect`,`construct`),fV=/^\s*(?:class|function)\b/,pV=RL(fV.exec),mV=!fV.exec(lV),hV=function(e){if(!ZL(e))return!1;try{return dV(lV,uV,e),!0}catch{return!1}},gV=!dV||zL((function(){var e;return hV(hV.call)||!hV(Object)||!hV((function(){e=!0}))||e}))?function(e){if(!ZL(e))return!1;switch(xB(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return mV||!!pV(fV,rz(e))}:hV,_V=dR(`species`),vV=X.Array,yV=function(e,t){return new(function(e){var t;return cV(e)&&(t=e.constructor,(gV(t)&&(t===vV||cV(t.prototype))||fR(t)&&(t=t[_V])===null)&&(t=void 0)),t===void 0?vV:t}(e))(t===0?0:t)},bV=RL([].push),xV=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=JL(c),h=HL(m),g=GB(l,u),_=jR(h),v=0,y=d||yV,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:bV(b,f)}else switch(e){case 4:return!1;case 7:bV(b,f)}return a?-1:r||i?i:b}},SV={forEach:xV(0),map:xV(1),filter:xV(2),some:xV(3),every:xV(4),find:xV(5),findIndex:xV(6),filterReject:xV(7)},CV=UB.getWeakData,wV=vz.set,TV=vz.getterFor,EV=SV.find,DV=SV.findIndex,OV=RL([].splice),kV=0,AV=function(e){return e.frozen||=new jV},jV=function(){this.entries=[]},MV=function(e,t){return EV(e.entries,(function(e){return e[0]===t}))};jV.prototype={get:function(e){var t=MV(this,e);if(t)return t[1]},has:function(e){return!!MV(this,e)},set:function(e,t){var n=MV(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=DV(this.entries,(function(t){return t[0]===e}));return~t&&OV(this.entries,t,1),!!~t}};var NV,PV={getConstructor:function(e,t,n,r){var i=e((function(e,i){rV(e,a),wV(e,{type:t,id:kV++,frozen:void 0}),i!=null&&tV(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=TV(t),s=function(e,t,n){var r=o(e),i=CV(pR(t),!0);return!0===i?AV(r).set(t,n):i[r.id]=n,e};return NB(a,{delete:function(e){var t=o(this);if(!fR(e))return!1;var n=CV(e);return!0===n?AV(t).delete(e):n&&YL(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!fR(e))return!1;var n=CV(e);return!0===n?AV(t).has(e):n&&YL(n,t.id)}}),NB(a,n?{get:function(e){var t=o(this);if(fR(e)){var n=CV(e);return!0===n?AV(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},FV=vz.enforce,IV=!X.ActiveXObject&&`ActiveXObject`in X,LV=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},RV=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=X[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=RL(s[e]);Oz(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!fR(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!fR(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!fR(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(Vz(e,!ZL(o)||!(i||s.forEach&&!zL((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),UB.enable();else if(Vz(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=zL((function(){d.has(1)})),m=function(e,t){if(!aV)return!1;var n=!1;try{var r={};r[iV]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&zL((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){rV(e,s);var n=function(e,t,n){var r,i;return aB&&ZL(r=t.constructor)&&r!==n&&fR(i=r.prototype)&&i!==n.prototype&&aB(e,i),e}(new o,e,c);return t!=null&&tV(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,Uz({global:!0,forced:c!=o},l),eB(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,LV,PV);if(az&&IV){NV=PV.getConstructor(LV,`WeakMap`,!0),UB.enable();var zV=RV.prototype,BV=RL(zV.delete),VV=RL(zV.has),HV=RL(zV.get),UV=RL(zV.set);NB(zV,{delete:function(e){if(fR(e)&&!VB(e)){var t=FV(this);return t.frozen||=new NV,BV(this,e)||t.frozen.delete(e)}return BV(this,e)},has:function(e){if(fR(e)&&!VB(e)){var t=FV(this);return t.frozen||=new NV,VV(this,e)||t.frozen.has(e)}return VV(this,e)},get:function(e){if(fR(e)&&!VB(e)){var t=FV(this);return t.frozen||=new NV,VV(this,e)?HV(this,e):t.frozen.get(e)}return HV(this,e)},set:function(e,t){if(fR(e)&&!VB(e)){var n=FV(this);n.frozen||=new NV,VV(this,e)?UV(this,e,t):n.frozen.set(e,t)}else UV(this,e,t);return this}})}var WV={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},GV=gR(`span`).classList,KV=GV&&GV.constructor&&GV.constructor.prototype,qV=KV===Object.prototype?void 0:KV,JV=dR(`iterator`),YV=dR(`toStringTag`),XV=hB.values,ZV=function(e,t){if(e){if(e[JV]!==XV)try{sz(e,JV,XV)}catch{e[JV]=XV}if(e[YV]||sz(e,YV,t),WV[t]){for(var n in hB)if(e[n]!==hB[n])try{sz(e,n,hB[n])}catch{e[n]=hB[n]}}}};for(var QV in WV)ZV(X[QV]&&X[QV].prototype,QV);ZV(qV,`DOMTokenList`);var $V=new WeakMap,eH={type:`list-item`,renderElem:function(e,t,n){$V.set(e,n);var r=e,i=r.level,a=i===void 0?0:i,o=r.ordered,s={margin:`5px 0 5px `+20*a+`px`},c=``;c=o!==void 0&&o?function(e,t){var n=t,r=n.type,i=n.level,a=i===void 0?0:i,o=n.ordered,s=o!==void 0&&o;if(!s)return-1;var c=1,l=t,u=K.findPath(e,l);if(u[0]===0)return 1;for(;u[0]>0;){var d=I.previous(u),f=P.node(e,d);if(f==null)break;var p=f[0],m=p.level,h=m===void 0?0:m,g=p.type,_=p.ordered;if(g!==r||h<a)break;if(h===a){if(_!==s)break;c++}l=p,u=d}return c}(n,e)+`.`:function(e){e===void 0&&(e=0);var t=``;switch(e){case 0:t=`•`;break;case 1:t=`◦`;break;default:t=`▪`}return t}(a);var l=function(e){var t,n=e.children||[],r=n.length;if(r===0)return``;for(var i=0;i<r&&!t;i++){var a=n[i];z.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return H(`div`,{style:s},H(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),H(`span`,null,t))}},tH=function(e,t){return tH=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},tH(e,t)};function nH(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}tH(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function rH(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function iH(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function aH(e){return P.nodes(e,{at:e.selection||void 0,match:function(t){return K.findPath(e,t).length===1}})}var oH=NR.includes;Uz({target:`Array`,proto:!0},{includes:function(e){return oH(this,e,arguments.length>1?arguments[1]:void 0)}}),ZR(`includes`);var sH,cH,lH=function(){var e=pR(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},uH=X.RegExp,dH=zL((function(){var e=uH(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),fH=dH||zL((function(){return!uH(`a`,`y`).sticky})),pH={BROKEN_CARET:dH||zL((function(){var e=uH(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:fH,UNSUPPORTED_Y:dH},mH=X.RegExp,hH=zL((function(){var e=mH(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),gH=X.RegExp,_H=zL((function(){var e=gH(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),vH=vz.get,yH=qL(`native-string-replace`,String.prototype.replace),bH=RegExp.prototype.exec,xH=bH,SH=RL(``.charAt),CH=RL(``.indexOf),wH=RL(``.replace),TH=RL(``.slice),EH=(cH=/b*/g,yR(bH,sH=/a/,`a`),yR(bH,cH,`a`),sH.lastIndex!==0||cH.lastIndex!==0),DH=pH.BROKEN_CARET,OH=/()??/.exec(``)[1]!==void 0;(EH||OH||DH||hH||_H)&&(xH=function(e){var t,n,r,i,a,o,s,c=this,l=vH(c),u=wB(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=yR(xH,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=DH&&c.sticky,m=yR(lH,c),h=c.source,g=0,_=u;if(p&&(m=wH(m,`y`,``),CH(m,`g`)===-1&&(m+=`g`),_=TH(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&SH(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),OH&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),EH&&(r=c.lastIndex),i=yR(bH,p?n:c,_),p?i?(i.input=TH(i.input,g),i[0]=TH(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:EH&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),OH&&i&&i.length>1&&yR(yH,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=JR(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var kH=xH;Uz({target:`RegExp`,proto:!0,forced:/./.exec!==kH},{exec:kH});var AH=function(){function e(){this.type=`list-item`,this.tag=`button`}return e.prototype.getListNode=function(e){var t=this.type;return K.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){var t=this.getListNode(e);if(t==null)return!1;var n=t.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(e){return e.selection==null||!!K.getSelectedElems(e).some((function(t){if(P.isVoid(e,t)&&P.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?B.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):B.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),jH=`<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>`,MH=`<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>`,NH=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=q(`listModule.unOrderedList`),t.iconSvg=jH,t}return nH(t,e),t}(AH),PH=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=q(`listModule.orderedList`),t.iconSvg=MH,t}return nH(t,e),t}(AH),FH={key:`bulletedList`,factory:function(){return new NH}},IH={key:`numberedList`,factory:function(){return new PH}},LH=[],RH={type:`list-item`,elemToHtml:function(e,t){var n=``,r=``,i=e.ordered,a=i!==void 0&&i?`ol`:`ul`,o=function(e){var t=$V.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=K.findPath(t,e);if(c[0]===0)return s+1;var l=I.previous(c),u=P.node(t,l);if(!u)return 0;var d=iH(u,1)[0];if(K.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(o>0)for(var s=0;s<o;s++)n+=`<`+a+`>`,LH.push(a);var c=function(e){var t=$V.get(e);if(t==null)return 0;var n=e,r=n.type,i=n.ordered,a=i!==void 0&&i,o=n.level,s=o===void 0?0:o,c=K.findPath(t,e);if(c[0]===t.children.length-1)return s+1;var l=I.next(c),u=P.node(t,l);if(!u)return 0;var d=iH(u,1)[0];if(K.getNodeType(d)!==r)return s+1;var f=d,p=f.ordered,m=p!==void 0&&p,h=f.level,g=h===void 0?0:h;return g<s?s-g:g>s?0:g===s?m===a?0:1:0}(e);if(c>0)for(s=0;s<c;s++)r+=`</`+LH.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},zH=dR(`species`),BH=SV.filter;Uz({target:`Array`,proto:!0,forced:!(aR>=51||!zL((function(){var e=[];return(e.constructor={})[zH]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return BH(this,e,arguments.length>1?arguments[1]:void 0)}});var VH=Function.prototype,HH=VH.apply,UH=VH.bind,WH=VH.call,GH=typeof Reflect==`object`&&Reflect.apply||(UH?WH.bind(HH):function(){return WH.apply(HH,arguments)}),KH=(dR(`species`),RegExp.prototype),qH=kB.charAt,JH=function(e,t,n){return t+(n?qH(e,t).length:1)},YH=Math.floor,XH=RL(``.charAt),ZH=RL(``.replace),QH=RL(``.slice),$H=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,eU=/\$([$&'`]|\d{1,2})/g,tU=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=eU;return i!==void 0&&(i=JL(i),c=$H),ZH(a,c,(function(a,c){var l;switch(XH(c,0)){case`$`:return`$`;case`&`:return e;case"`":return QH(t,0,n);case`'`:return QH(t,o);case`<`:l=i[QH(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=YH(u/10);return d===0?a:d<=s?r[d-1]===void 0?XH(c,1):r[d-1]+XH(c,1):a}l=r[u-1]}return l===void 0?``:l}))},nU=X.TypeError,rU=function(e,t){var n=e.exec;if(ZL(n)){var r=yR(n,e,t);return r!==null&&pR(r),r}if(BL(e)===`RegExp`)return yR(kH,e,t);throw nU(`RegExp#exec called on incompatible receiver`)},iU=dR(`replace`),aU=Math.max,oU=Math.min,sU=RL([].concat),cU=RL([].push),lU=RL(``.indexOf),uU=RL(``.slice),dU=`a`.replace(/./,`$0`)===`$0`,fU=!!/./[iU]&&/./[iU](`a`,`$0`)===``;(function(e,t,n,r){var i=dR(e),a=!zL((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!zL((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=RL(/./[i]),c=function(e,t,n){var r=fU?`$`:`$0`;return[function(e,n){var r=UL(this),i=e==null?void 0:wR(e,iU);return i?yR(i,e,r,n):yR(t,wB(r),e,n)},function(e,i){var a=pR(this),o=wB(e);if(typeof i==`string`&&lU(i,r)===-1&&lU(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=ZL(i);c||(i=wB(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=rU(a,o);if(f===null||(cU(d,f),!l))break;wB(f[0])===``&&(a.lastIndex=JH(o,AR(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=wB((f=d[g])[0]),v=aU(oU(OR(f.index),o.length),0),y=[],b=1;b<f.length;b++)cU(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=sU([_],y,v,o);x!==void 0&&cU(S,x);var C=wB(GH(i,void 0,S))}else C=tU(_,o,v,y,x,i);v>=h&&(m+=uU(o,h,v)+C,h=v+_.length)}return m+uU(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=RL(e),c=t.exec;return c===kH||c===KH.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Oz(String.prototype,e,c[0]),Oz(KH,i,c[1])}})(`replace`,0,!!zL((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!dU||fU);var pU=X.TypeError,mU=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&GB(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&cV(c))l=jR(c),u=mU(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw pU(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},hU=mU;function gU(e){return e.length?e[0].tagName.toLowerCase():``}Uz({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=JL(this),n=jR(t),r=yV(t,0);return r.length=hU(r,t,t,n,0,e===void 0?1:OR(e)),r}}),ZR(`flat`),Uz({global:!0},{globalThis:X}),_d&&(V.fn.append=_d),ed&&(V.fn.attr=ed),yd&&(V.fn.parent=yd);var _U={renderElems:[eH],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,i=e;return i.deleteBackward=function(e){var n=i.selection;if(n!=null)if(R.isExpanded(n))t(e);else{var r=K.getSelectedNodeByType(i,`list-item`);if(r!=null)if(n.focus.offset!==0)t(e);else{var a=r.level,o=a===void 0?0:a;o>0?B.setNodes(i,{level:o-1}):B.setNodes(i,{type:`paragraph`,ordered:void 0,level:void 0})}else t(e)}else t(e)},i.handleTab=function(){var e,t,r,a,o=i.selection;if(o!=null){if(R.isCollapsed(o)){var s=K.getSelectedNodeByType(i,`list-item`);if(s==null)return void n();if(o.focus.offset===0){var c=s.level,l=c===void 0?0:c;B.setNodes(i,{level:l+1});return}}if(R.isExpanded(o)){var u=0,d=!1;try{for(var f=rH(aH(i)),p=f.next();!p.done;p=f.next()){var m=iH(p.value,1)[0];K.getNodeType(m)===`list-item`?u++:d=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}if(d||u<=1)return void n();try{for(var h=rH(aH(i)),g=h.next();!g.done;g=h.next()){var _=iH(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,B.setNodes(i,{level:l+1},{at:v})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}else n()}else n()},i.normalizeNode=function(e){var t=iH(e,2),n=t[0],a=t[1],o=K.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||B.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[FH,IH],elemsToHtml:[RH],parseElemsHtml:[{selector:`ul:not([data-w-e-type]),ol:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:`li:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);return(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return gU(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=gU(n);r===`ul`||r===`ol`;)r=gU(n=n.parent()),t++;return t-1}(r),children:t}}}]},vU=n((function(t,n){var r=`__lodash_hash_undefined__`,i=9007199254740991,a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object Promise]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object WeakMap]`,b=`[object ArrayBuffer]`,x=`[object DataView]`,S=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,w={};w[`[object Float32Array]`]=w[`[object Float64Array]`]=w[`[object Int8Array]`]=w[`[object Int16Array]`]=w[`[object Int32Array]`]=w[`[object Uint8Array]`]=w[`[object Uint8ClampedArray]`]=w[`[object Uint16Array]`]=w[`[object Uint32Array]`]=!0,w[a]=w[o]=w[b]=w[s]=w[x]=w[c]=w[l]=w[u]=w[d]=w[f]=w[p]=w[h]=w[g]=w[_]=w[y]=!1;var T=typeof e==`object`&&e&&e.Object===Object&&e,ee=typeof self==`object`&&self&&self.Object===Object&&self,E=T||ee||Function(`return this`)(),D=n&&!n.nodeType&&n,te=D&&t&&!t.nodeType&&t,ne=te&&te.exports===D,re=ne&&T.process,ie=function(){try{return re&&re.binding&&re.binding(`util`)}catch{}}(),O=ie&&ie.isTypedArray;function ae(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function k(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var se=Array.prototype,ce=Function.prototype,le=Object.prototype,ue=E[`__core-js_shared__`],de=ce.toString,fe=le.hasOwnProperty,pe=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),me=le.toString,he=RegExp(`^`+de.call(fe).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ge=ne?E.Buffer:void 0,_e=E.Symbol,ve=E.Uint8Array,ye=le.propertyIsEnumerable,be=se.splice,xe=_e?_e.toStringTag:void 0,Se=Object.getOwnPropertySymbols,Ce=ge?ge.isBuffer:void 0,we=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Te=Qe(E,`DataView`),Ee=Qe(E,`Map`),De=Qe(E,`Promise`),Oe=Qe(E,`Set`),ke=Qe(E,`WeakMap`),Ae=Qe(Object,`create`),je=nt(Te),Me=nt(Ee),A=nt(De),Ne=nt(Oe),Pe=nt(ke),Fe=_e?_e.prototype:void 0,Ie=Fe?Fe.valueOf:void 0;function Le(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Re(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ze(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Be(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ze;++t<n;)this.add(e[t])}function Ve(e){this.size=(this.__data__=new Re(e)).size}function He(e,t){var n=at(e),r=!n&&it(e),i=!n&&!r&&ot(e),a=!n&&!r&&!i&&dt(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!fe.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||tt(l,c))||s.push(l);return s}function Ue(e,t){for(var n=e.length;n--;)if(rt(e[n][0],t))return n;return-1}function We(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:xe&&xe in Object(e)?function(e){var t=fe.call(e,xe),n=e[xe];try{e[xe]=void 0;var r=!0}catch{}var i=me.call(e);return r&&(t?e[xe]=n:delete e[xe]),i}(e):function(e){return me.call(e)}(e)}function Ge(e){return ut(e)&&We(e)==a}function Ke(e,t,n,r,i){return e===t||(e==null||t==null||!ut(e)&&!ut(t)?e!=e&&t!=t:function(e,t,n,r,i,u){var m=at(e),y=at(t),S=m?o:et(e),C=y?o:et(t),w=(S=S==a?p:S)==p,T=(C=C==a?p:C)==p,ee=S==C;if(ee&&ot(e)){if(!ot(t))return!1;m=!0,w=!1}if(ee&&!w)return u||=new Ve,m||dt(e)?Ye(e,t,n,r,i,u):function(e,t,n,r,i,a,o){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!a(new ve(e),new ve(t)));case s:case c:case f:return rt(+e,+t);case l:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case d:var u=k;case g:var p=1&r;if(u||=oe,e.size!=t.size&&!p)return!1;var m=o.get(e);if(m)return m==t;r|=2,o.set(e,t);var y=Ye(u(e),u(t),r,i,a,o);return o.delete(e),y;case v:if(Ie)return Ie.call(e)==Ie.call(t)}return!1}(e,t,S,n,r,i,u);if(!(1&n)){var E=w&&fe.call(e,`__wrapped__`),D=T&&fe.call(t,`__wrapped__`);if(E||D){var te=E?e.value():e,ne=D?t.value():t;return u||=new Ve,i(te,ne,n,r,u)}}return ee?(u||=new Ve,function(e,t,n,r,i,a){var o=1&n,s=Xe(e),c=s.length;if(c!=Xe(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:fe.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);for(var p=o;++l<c;){var m=e[u=s[l]],h=t[u];if(r)var g=o?r(h,m,u,t,e,a):r(m,h,u,e,t,a);if(!(g===void 0?m===h||i(m,h,n,r,a):g)){f=!1;break}p||=u==`constructor`}if(f&&!p){var _=e.constructor,v=t.constructor;_==v||!(`constructor`in e)||!(`constructor`in t)||typeof _==`function`&&_ instanceof _&&typeof v==`function`&&v instanceof v||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,i,u)):!1}(e,t,n,r,Ke,i))}function qe(e){return!(!lt(e)||function(e){return!!pe&&pe in e}(e))&&(st(e)?he:S).test(nt(e))}function Je(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||le,t!==r)return we(e);var t,n,r,i=[];for(var a in Object(e))fe.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Ye(e,t,n,r,i,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=2&n?new Be:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var p=e[u],m=t[u];if(r)var h=o?r(m,p,u,t,e,a):r(p,m,u,e,t,a);if(h!==void 0){if(h)continue;d=!1;break}if(f){if(!ae(t,(function(e,t){if(o=t,!f.has(o)&&(p===e||i(p,e,n,r,a)))return f.push(t);var o}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function Xe(e){return function(e,t,n){var r=t(e);return at(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,ft,$e)}function Ze(e,t){var n,r,i=e.__data__;return((r=typeof(n=t))==`string`||r==`number`||r==`symbol`||r==`boolean`?n!==`__proto__`:n===null)?i[typeof t==`string`?`string`:`hash`]:i.map}function Qe(e,t){var n=function(e,t){return e?.[t]}(e,t);return qe(n)?n:void 0}Le.prototype.clear=function(){this.__data__=Ae?Ae(null):{},this.size=0},Le.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Le.prototype.get=function(e){var t=this.__data__;if(Ae){var n=t[e];return n===r?void 0:n}return fe.call(t,e)?t[e]:void 0},Le.prototype.has=function(e){var t=this.__data__;return Ae?t[e]!==void 0:fe.call(t,e)},Le.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ae&&t===void 0?r:t,this},Re.prototype.clear=function(){this.__data__=[],this.size=0},Re.prototype.delete=function(e){var t=this.__data__,n=Ue(t,e);return!(n<0)&&(n==t.length-1?t.pop():be.call(t,n,1),--this.size,!0)},Re.prototype.get=function(e){var t=this.__data__,n=Ue(t,e);return n<0?void 0:t[n][1]},Re.prototype.has=function(e){return Ue(this.__data__,e)>-1},Re.prototype.set=function(e,t){var n=this.__data__,r=Ue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ze.prototype.clear=function(){this.size=0,this.__data__={hash:new Le,map:new(Ee||Re),string:new Le}},ze.prototype.delete=function(e){var t=Ze(this,e).delete(e);return this.size-=t?1:0,t},ze.prototype.get=function(e){return Ze(this,e).get(e)},ze.prototype.has=function(e){return Ze(this,e).has(e)},ze.prototype.set=function(e,t){var n=Ze(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Be.prototype.add=Be.prototype.push=function(e){return this.__data__.set(e,r),this},Be.prototype.has=function(e){return this.__data__.has(e)},Ve.prototype.clear=function(){this.__data__=new Re,this.size=0},Ve.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ve.prototype.get=function(e){return this.__data__.get(e)},Ve.prototype.has=function(e){return this.__data__.has(e)},Ve.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Re){var r=n.__data__;if(!Ee||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ze(r)}return n.set(e,t),this.size=n.size,this};var $e=Se?function(e){return e==null?[]:(e=Object(e),function(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(Se(e),(function(t){return ye.call(e,t)})))}:function(){return[]},et=We;function tt(e,t){return!!(t??=i)&&(typeof e==`number`||C.test(e))&&e>-1&&e%1==0&&e<t}function nt(e){if(e!=null){try{return de.call(e)}catch{}try{return e+``}catch{}}return``}function rt(e,t){return e===t||e!=e&&t!=t}(Te&&et(new Te(new ArrayBuffer(1)))!=x||Ee&&et(new Ee)!=d||De&&et(De.resolve())!=m||Oe&&et(new Oe)!=g||ke&&et(new ke)!=y)&&(et=function(e){var t=We(e),n=t==p?e.constructor:void 0,r=n?nt(n):``;if(r)switch(r){case je:return x;case Me:return d;case A:return m;case Ne:return g;case Pe:return y}return t});var it=Ge(function(){return arguments}())?Ge:function(e){return ut(e)&&fe.call(e,`callee`)&&!ye.call(e,`callee`)},at=Array.isArray,ot=Ce||function(){return!1};function st(e){if(!lt(e))return!1;var t=We(e);return t==u||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function ct(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=i}function lt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function ut(e){return typeof e==`object`&&!!e}var dt=O?function(e){return function(t){return e(t)}}(O):function(e){return ut(e)&&ct(e.length)&&!!w[We(e)]};function ft(e){return(t=e)!=null&&ct(t.length)&&!st(t)?He(e):Je(e);var t}t.exports=function(e,t){return Ke(e,t)}}));BE(`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`}}),BE(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var yU=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function bU(e){var t={exports:{}};return e(t,t.exports),t.exports}var xU,SU,CU=function(e){return e&&e.Math==Math&&e},wU=CU(typeof globalThis==`object`&&globalThis)||CU(typeof window==`object`&&window)||CU(typeof self==`object`&&self)||CU(typeof yU==`object`&&yU)||function(){return this}()||Function(`return this`)(),TU=function(e){try{return!!e()}catch{return!0}},EU=!TU((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),DU=Function.prototype.call,OU=DU.bind?DU.bind(DU):function(){return DU.apply(DU,arguments)},kU={}.propertyIsEnumerable,AU=Object.getOwnPropertyDescriptor,jU={f:AU&&!kU.call({1:2},1)?function(e){var t=AU(this,e);return!!t&&t.enumerable}:kU},MU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},NU=Function.prototype,PU=NU.bind,FU=NU.call,IU=PU&&PU.bind(FU),LU=PU?function(e){return e&&IU(FU,e)}:function(e){return e&&function(){return FU.apply(e,arguments)}},RU=LU({}.toString),zU=LU(``.slice),BU=function(e){return zU(RU(e),8,-1)},VU=wU.Object,HU=LU(``.split),UU=TU((function(){return!VU(`z`).propertyIsEnumerable(0)}))?function(e){return BU(e)==`String`?HU(e,``):VU(e)}:VU,WU=wU.TypeError,GU=function(e){if(e==null)throw WU(`Can't call method on `+e);return e},KU=function(e){return UU(GU(e))},qU=function(e){return typeof e==`function`},JU=function(e){return typeof e==`object`?e!==null:qU(e)},YU=function(e){return qU(e)?e:void 0},XU=function(e,t){return arguments.length<2?YU(wU[e]):wU[e]&&wU[e][t]},ZU=LU({}.isPrototypeOf),QU=XU(`navigator`,`userAgent`)||``,$U=wU.process,eW=wU.Deno,tW=$U&&$U.versions||eW&&eW.version,nW=tW&&tW.v8;nW&&(SU=(xU=nW.split(`.`))[0]>0&&xU[0]<4?1:+(xU[0]+xU[1])),!SU&&QU&&(!(xU=QU.match(/Edge\/(\d+)/))||xU[1]>=74)&&(xU=QU.match(/Chrome\/(\d+)/))&&(SU=+xU[1]);var rW=SU,iW=!!Object.getOwnPropertySymbols&&!TU((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rW&&rW<41})),aW=iW&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,oW=wU.Object,sW=aW?function(e){return typeof e==`symbol`}:function(e){var t=XU(`Symbol`);return qU(t)&&ZU(t.prototype,oW(e))},cW=wU.String,lW=function(e){try{return cW(e)}catch{return`Object`}},uW=wU.TypeError,dW=function(e){if(qU(e))return e;throw uW(lW(e)+` is not a function`)},fW=function(e,t){var n=e[t];return n==null?void 0:dW(n)},pW=wU.TypeError,mW=Object.defineProperty,hW=function(e,t){try{mW(wU,e,{value:t,configurable:!0,writable:!0})}catch{wU[e]=t}return t},gW=wU[`__core-js_shared__`]||hW(`__core-js_shared__`,{}),_W=bU((function(e){(e.exports=function(e,t){return gW[e]||(gW[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),vW=wU.Object,yW=function(e){return vW(GU(e))},bW=LU({}.hasOwnProperty),xW=Object.hasOwn||function(e,t){return bW(yW(e),t)},SW=0,CW=Math.random(),wW=LU(1 .toString),TW=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+wW(++SW+CW,36)},EW=_W(`wks`),DW=wU.Symbol,OW=DW&&DW.for,kW=aW?DW:DW&&DW.withoutSetter||TW,AW=function(e){if(!xW(EW,e)||!iW&&typeof EW[e]!=`string`){var t=`Symbol.`+e;iW&&xW(DW,e)?EW[e]=DW[e]:EW[e]=aW&&OW?OW(t):kW(t)}return EW[e]},jW=wU.TypeError,MW=AW(`toPrimitive`),NW=function(e){var t=function(e,t){if(!JU(e)||sW(e))return e;var n,r=fW(e,MW);if(r){if(t===void 0&&(t=`default`),n=OU(r,e,t),!JU(n)||sW(n))return n;throw jW(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&qU(n=e.toString)&&!JU(r=OU(n,e))||qU(n=e.valueOf)&&!JU(r=OU(n,e))||t!==`string`&&qU(n=e.toString)&&!JU(r=OU(n,e)))return r;throw pW(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return sW(t)?t:t+``},PW=wU.document,FW=JU(PW)&&JU(PW.createElement),IW=function(e){return FW?PW.createElement(e):{}},LW=!EU&&!TU((function(){return Object.defineProperty(IW(`div`),`a`,{get:function(){return 7}}).a!=7})),RW=Object.getOwnPropertyDescriptor,zW={f:EU?RW:function(e,t){if(e=KU(e),t=NW(t),LW)try{return RW(e,t)}catch{}if(xW(e,t))return MU(!OU(jU.f,e,t),e[t])}},BW=wU.String,VW=wU.TypeError,HW=function(e){if(JU(e))return e;throw VW(BW(e)+` is not an object`)},UW=wU.TypeError,WW=Object.defineProperty,GW={f:EU?WW:function(e,t,n){if(HW(e),t=NW(t),HW(n),LW)try{return WW(e,t,n)}catch{}if(`get`in n||`set`in n)throw UW(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},KW=EU?function(e,t,n){return GW.f(e,t,MU(1,n))}:function(e,t,n){return e[t]=n,e},qW=LU(Function.toString);qU(gW.inspectSource)||(gW.inspectSource=function(e){return qW(e)});var JW,YW,XW,ZW=gW.inspectSource,QW=wU.WeakMap,$W=qU(QW)&&/native code/.test(ZW(QW)),eG=_W(`keys`),tG=function(e){return eG[e]||(eG[e]=TW(e))},nG={},rG=wU.TypeError,iG=wU.WeakMap;if($W||gW.state){var aG=gW.state||=new iG,oG=LU(aG.get),sG=LU(aG.has),cG=LU(aG.set);JW=function(e,t){if(sG(aG,e))throw new rG(`Object already initialized`);return t.facade=e,cG(aG,e,t),t},YW=function(e){return oG(aG,e)||{}},XW=function(e){return sG(aG,e)}}else{var lG=tG(`state`);nG[lG]=!0,JW=function(e,t){if(xW(e,lG))throw new rG(`Object already initialized`);return t.facade=e,KW(e,lG,t),t},YW=function(e){return xW(e,lG)?e[lG]:{}},XW=function(e){return xW(e,lG)}}var uG={set:JW,get:YW,has:XW,enforce:function(e){return XW(e)?YW(e):JW(e,{})},getterFor:function(e){return function(t){var n;if(!JU(t)||(n=YW(t)).type!==e)throw rG(`Incompatible receiver, `+e+` required`);return n}}},dG=Function.prototype,fG=EU&&Object.getOwnPropertyDescriptor,pG=xW(dG,`name`),mG={EXISTS:pG,PROPER:pG&&function(){}.name===`something`,CONFIGURABLE:pG&&(!EU||EU&&fG(dG,`name`).configurable)},hG=bU((function(e){var t=mG.CONFIGURABLE,n=uG.get,r=uG.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;qU(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!xW(a,`name`)||t&&a.name!==d)&&KW(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===wU?l?e[n]=a:hW(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:KW(e,n,a))})(Function.prototype,`toString`,(function(){return qU(this)&&n(this).source||ZW(this)}))})),gG=Math.ceil,_G=Math.floor,vG=function(e){var t=+e;return t!=t||t===0?0:(t>0?_G:gG)(t)},yG=Math.max,bG=Math.min,xG=function(e,t){var n=vG(e);return n<0?yG(n+t,0):bG(n,t)},SG=Math.min,CG=function(e){return e>0?SG(vG(e),9007199254740991):0},wG=function(e){return CG(e.length)},TG=function(e){return function(t,n,r){var i,a=KU(t),o=wG(a),s=xG(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},EG=TG(!1),DG=LU([].push),OG=function(e,t){var n,r=KU(e),i=0,a=[];for(n in r)!xW(nG,n)&&xW(r,n)&&DG(a,n);for(;t.length>i;)xW(r,n=t[i++])&&(~EG(a,n)||DG(a,n));return a},kG=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],AG=kG.concat(`length`,`prototype`),jG={f:Object.getOwnPropertyNames||function(e){return OG(e,AG)}},MG={f:Object.getOwnPropertySymbols},NG=LU([].concat),PG=XU(`Reflect`,`ownKeys`)||function(e){var t=jG.f(HW(e)),n=MG.f;return n?NG(t,n(e)):t},FG=function(e,t){for(var n=PG(t),r=GW.f,i=zW.f,a=0;a<n.length;a++){var o=n[a];xW(e,o)||r(e,o,i(t,o))}},IG=/#|\.prototype\./,LG=function(e,t){var n=zG[RG(e)];return n==VG||n!=BG&&(qU(t)?TU(t):!!t)},RG=LG.normalize=function(e){return String(e).replace(IG,`.`).toLowerCase()},zG=LG.data={},BG=LG.NATIVE=`N`,VG=LG.POLYFILL=`P`,HG=LG,UG=zW.f,WG=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?wU:l?wU[s]||hW(s,{}):(wU[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=UG(n,r))&&o.value:n[r],!HG(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;FG(a,i)}(e.sham||i&&i.sham)&&KW(a,`sham`,!0),hG(n,r,a,e)}},GG={};GG[AW(`toStringTag`)]=`z`;var KG=String(GG)===`[object z]`,qG=AW(`toStringTag`),JG=wU.Object,YG=BU(function(){return arguments}())==`Arguments`,XG=KG?BU:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=JG(e),qG))==`string`?n:YG?BU(t):(r=BU(t))==`Object`&&qU(t.callee)?`Arguments`:r},ZG=wU.String,QG=function(e){if(XG(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ZG(e)},$G=/"/g,eK=LU(``.replace);WG({target:`String`,proto:!0,forced:TU((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=QG(GU(this)),r=`<a`,(r+=` name="`+eK(QG(t),$G,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var tK,nK=function(){var e=HW(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},rK=wU.RegExp,iK=TU((function(){var e=rK(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),aK=iK||TU((function(){return!rK(`a`,`y`).sticky})),oK={BROKEN_CARET:iK||TU((function(){var e=rK(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:aK,UNSUPPORTED_Y:iK},sK=Object.keys||function(e){return OG(e,kG)},cK=EU?Object.defineProperties:function(e,t){HW(e);for(var n,r=KU(t),i=sK(t),a=i.length,o=0;a>o;)GW.f(e,n=i[o++],r[n]);return e},lK=XU(`document`,`documentElement`),uK=tG(`IE_PROTO`),dK=function(){},fK=function(e){return`<script>`+e+`<\/script>`},pK=function(e){e.write(fK(``)),e.close();var t=e.parentWindow.Object;return e=null,t},mK=function(){try{tK=new ActiveXObject(`htmlfile`)}catch{}var e,t;mK=typeof document<`u`?document.domain&&tK?pK(tK):((t=IW(`iframe`)).style.display=`none`,lK.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(fK(`document.F=Object`)),e.close(),e.F):pK(tK);for(var n=kG.length;n--;)delete mK.prototype[kG[n]];return mK()};nG[uK]=!0;var hK,gK,_K=Object.create||function(e,t){var n;return e===null?n=mK():(dK.prototype=HW(e),n=new dK,dK.prototype=null,n[uK]=e),t===void 0?n:cK(n,t)},vK=wU.RegExp,yK=TU((function(){var e=vK(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),bK=wU.RegExp,xK=TU((function(){var e=bK(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),SK=uG.get,CK=_W(`native-string-replace`,String.prototype.replace),wK=RegExp.prototype.exec,TK=wK,EK=LU(``.charAt),DK=LU(``.indexOf),OK=LU(``.replace),kK=LU(``.slice),AK=(gK=/b*/g,OU(wK,hK=/a/,`a`),OU(wK,gK,`a`),hK.lastIndex!==0||gK.lastIndex!==0),jK=oK.BROKEN_CARET,MK=/()??/.exec(``)[1]!==void 0;(AK||MK||jK||yK||xK)&&(TK=function(e){var t,n,r,i,a,o,s,c=this,l=SK(c),u=QG(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=OU(TK,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=jK&&c.sticky,m=OU(nK,c),h=c.source,g=0,_=u;if(p&&(m=OK(m,`y`,``),DK(m,`g`)===-1&&(m+=`g`),_=kK(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&EK(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),MK&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),AK&&(r=c.lastIndex),i=OU(wK,p?n:c,_),p?i?(i.input=kK(i.input,g),i[0]=kK(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:AK&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),MK&&i&&i.length>1&&OU(CK,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=_K(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var NK=TK;WG({target:`RegExp`,proto:!0,forced:/./.exec!==NK},{exec:NK});var PK=Array.isArray||function(e){return BU(e)==`Array`},FK=function(){},IK=[],LK=XU(`Reflect`,`construct`),RK=/^\s*(?:class|function)\b/,zK=LU(RK.exec),BK=!RK.exec(FK),VK=function(e){if(!qU(e))return!1;try{return LK(FK,IK,e),!0}catch{return!1}},HK=!LK||TU((function(){var e;return VK(VK.call)||!VK(Object)||!VK((function(){e=!0}))||e}))?function(e){if(!qU(e))return!1;switch(XG(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return BK||!!zK(RK,ZW(e))}:VK,UK=function(e,t,n){var r=NW(t);r in e?GW.f(e,r,MU(0,n)):e[r]=n},WK=AW(`species`),GK=function(e){return rW>=51||!TU((function(){var t=[];return(t.constructor={})[WK]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},KK=LU([].slice),qK=GK(`slice`),JK=AW(`species`),YK=wU.Array,XK=Math.max;function ZK(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function QK(e){var t=e.selection;if(t==null)return!1;var n=ZK(P.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=ZK(n,2)[1],i=P.start(e,r);if(L.equals(t.anchor,i))return!0}return!1}function $K(e,t){var n,r,i=P.nodes(e,{at:t,match:function(e){return K.getNodeType(e)===`table`}}),a=!1;try{for(var o=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(i),s=o.next();!s.done;s=o.next())s.value,a=!0}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}WG({target:`Array`,proto:!0,forced:!qK},{slice:function(e,t){var n,r,i,a=KU(this),o=wG(a),s=xG(e,o),c=xG(t===void 0?o:t,o);if(PK(a)&&(n=a.constructor,(HK(n)&&(n===YK||PK(n.prototype))||JU(n)&&(n=n[JK])===null)&&(n=void 0),n===YK||n===void 0))return KK(a,s,c);for(r=new(n===void 0?YK:n)(XK(c-s,0)),i=0;s<c;s++,i++)s in a&&UK(r,i,a[s]);return r.length=i,r}});var eq=LU(LU.bind),tq=AW(`species`),nq=wU.Array,rq=function(e,t){return new(function(e){var t;return PK(e)&&(t=e.constructor,(HK(t)&&(t===nq||PK(t.prototype))||JU(t)&&(t=t[tq])===null)&&(t=void 0)),t===void 0?nq:t}(e))(t===0?0:t)},iq=LU([].push),aq=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=yW(c),h=UU(m),g=function(e,t){return dW(e),t===void 0?e:eq?eq(e,t):function(){return e.apply(t,arguments)}}(l,u),_=wG(h),v=0,y=d||rq,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:iq(b,f)}else switch(e){case 4:return!1;case 7:iq(b,f)}return a?-1:r||i?i:b}},oq={forEach:aq(0),map:aq(1),filter:aq(2),some:aq(3),every:aq(4),find:aq(5),findIndex:aq(6),filterReject:aq(7)},sq=oq.map;WG({target:`Array`,proto:!0,forced:!GK(`map`)},{map:function(e){return sq(this,e,arguments.length>1?arguments[1]:void 0)}});var cq=KG?{}.toString:function(){return`[object `+XG(this)+`]`};function lq(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function uq(e){return lq(e).every((function(e){return!!e.isHeader}))}KG||hG(Object.prototype,`toString`,cq,{unsafe:!0});var dq=mG.PROPER,fq=RegExp.prototype,pq=fq.toString,mq=LU(nK),hq=TU((function(){return pq.call({source:`a`,flags:`b`})!=`/a/b`})),gq=dq&&pq.name!=`toString`;(hq||gq)&&hG(RegExp.prototype,`toString`,(function(){var e=HW(this),t=QG(e.source),n=e.flags;return`/`+t+`/`+QG(n===void 0&&ZU(fq,e)&&!(`flags`in fq)?mq(e):n)}),{unsafe:!0});var _q=AW(`unscopables`),vq=Array.prototype;vq[_q]??GW.f(vq,_q,{configurable:!0,value:_K(null)});var yq=oq.find,bq=!0;`find`in[]&&[,].find((function(){bq=!1})),WG({target:`Array`,proto:!0,forced:bq},{find:function(e){return yq(this,e,arguments.length>1?arguments[1]:void 0)}}),vq[_q].find=!0;var xq=Function.prototype,Sq=xq.apply,Cq=xq.bind,wq=xq.call,Tq=typeof Reflect==`object`&&Reflect.apply||(Cq?wq.bind(Sq):function(){return wq.apply(Sq,arguments)}),Eq=AW(`species`),Dq=RegExp.prototype,Oq=function(e,t,n,r){var i=AW(e),a=!TU((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!TU((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Eq]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=LU(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=LU(e),c=t.exec;return c===NK||c===Dq.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));hG(String.prototype,e,c[0]),hG(Dq,i,c[1])}r&&KW(Dq[i],`sham`,!0)},kq=AW(`match`),Aq=wU.TypeError,jq=AW(`species`),Mq=LU(``.charAt),Nq=LU(``.charCodeAt),Pq=LU(``.slice),Fq=function(e){return function(t,n){var r,i,a=QG(GU(t)),o=vG(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Nq(a,o))<55296||r>56319||o+1===s||(i=Nq(a,o+1))<56320||i>57343?e?Mq(a,o):r:e?Pq(a,o,o+2):i-56320+(r-55296<<10)+65536}},Iq=Fq(!0),Lq=function(e,t,n){return t+(n?Iq(e,t).length:1)},Rq=wU.Array,zq=Math.max,Bq=function(e,t,n){for(var r=wG(e),i=xG(t,r),a=xG(n===void 0?r:n,r),o=Rq(zq(a-i,0)),s=0;i<a;i++,s++)UK(o,s,e[i]);return o.length=s,o},Vq=wU.TypeError,Hq=function(e,t){var n=e.exec;if(qU(n)){var r=OU(n,e,t);return r!==null&&HW(r),r}if(BU(e)===`RegExp`)return OU(NK,e,t);throw Vq(`RegExp#exec called on incompatible receiver`)},Uq=oK.UNSUPPORTED_Y,Wq=Math.min,Gq=[].push,Kq=LU(/./.exec),qq=LU(Gq),Jq=LU(``.slice);Oq(`split`,(function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=QG(GU(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!JU(r=e)||!((i=r[kq])===void 0?BU(r)==`RegExp`:i))return OU(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=OU(NK,p,a))&&!((c=p.lastIndex)>f&&(qq(u,Jq(a,f,s.index)),s.length>1&&s.index<a.length&&Tq(Gq,u,Bq(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&Kq(p,``)||qq(u,``):qq(u,Jq(a,f)),u.length>o?Bq(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:OU(t,this,e,n)}:t,[function(t,n){var i=GU(this),a=t==null?void 0:fW(t,e);return a?OU(a,t,i,n):OU(r,QG(i),t,n)},function(e,i){var a=HW(this),o=QG(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=HW(e).constructor;return r===void 0||(n=HW(r)[jq])==null?t:function(e){if(HK(e))return e;throw Aq(lW(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(Uq?`g`:`y`),d=new c(Uq?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return Hq(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=Uq?0:m;var g,_=Hq(d,Uq?Jq(o,m):o);if(_===null||(g=Wq(CG(d.lastIndex+(Uq?m:0)),o.length))===p)m=Lq(o,m,l);else{if(qq(h,Jq(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(qq(h,_[v]),h.length===f)return h;m=p=g}}return qq(h,Jq(o,p)),h}]}),!!TU((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),Uq);var Yq=`	
\v\f\r \xA0               \u2028\u2029`,Xq=LU(``.replace),Zq=`[`+Yq+`]`,Qq=RegExp(`^`+Zq+Zq+`*`),$q=RegExp(Zq+Zq+`*$`),eJ=function(e){return function(t){var n=QG(GU(t));return 1&e&&(n=Xq(n,Qq,``)),2&e&&(n=Xq(n,$q,``)),n}},tJ={start:eJ(1),end:eJ(2),trim:eJ(3)},nJ=mG.PROPER,rJ=tJ.trim;function iJ(e){return e.length?e[0].tagName.toLowerCase():``}WG({target:`String`,proto:!0,forced:function(e){return TU((function(){return!!Yq[e]()||`​…᠎`[e]()!==`​…᠎`||nJ&&Yq[e].name!==e}))}(`trim`)},{trim:function(){return rJ(this)}}),WG({global:!0},{globalThis:wU}),_d&&(V.fn.append=_d),id&&(V.fn.on=id),Od&&(V.fn.focus=Od),ed&&(V.fn.attr=ed),rd&&(V.fn.val=rd),md&&(V.fn.html=md),nd&&(V.fn.dataset=nd),Zu&&(V.fn.addClass=Zu),Qu&&(V.fn.removeClass=Qu),Sd&&(V.fn.children=Sd),fd&&(V.fn.each=fd),xd&&(V.fn.find=xd);var aJ=!1,oJ=0,sJ=0,cJ=null,lJ=null,uJ=V(`body`);function dJ(e){aJ=!1,lJ=null,cJ=null,uJ.off(`mousemove`,fJ),uJ.off(`mouseup`,dJ)}uJ.on(`mousedown`,(function(e){var t=e.target;(t.tagName===`TH`||t.tagName===`TD`)&&t.style.cursor===`col-resize`&&(t.style.cursor=`auto`,e.preventDefault(),aJ=!0,oJ=e.clientX,sJ=t.getBoundingClientRect().width,uJ.on(`mousemove`,fJ),uJ.on(`mouseup`,dJ))}));var fJ=Vd((function(e){if(aJ&&lJ!=null&&cJ!=null){e.preventDefault();var t=e.clientX,n=sJ+(t-oJ);(n=Math.floor(100*n)/100)<30&&(n=30),B.setNodes(lJ,{width:n.toString()},{at:cJ})}}),100),pJ={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||R.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=K.findPath(e,t),o=P.start(e,a),s=P.end(e,a),c=L.compare(r,s)<=0&&L.compare(r,o)>=0,l=L.compare(i,s)<=0&&L.compare(i,o)>=0;return!!(c&&l&&I.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return H(`div`,{className:`table-container`,"data-selected":K.isNodeSelected(n,e),on:{mousedown:function(t){if(t.target.tagName===`DIV`&&t.preventDefault(),!n.isDisabled()){var r=K.findPath(n,e),i=P.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},H(`table`,{width:a,contentEditable:r},H(`colgroup`,null,lq(e).map((function(e){var t=e.width;return H(`col`,{width:t===void 0?`auto`:t})}))),H(`tbody`,null,t)))}},mJ={type:`table-row`,renderElem:function(e,t,n){return H(`tr`,null,t)}},hJ={type:`table-cell`,renderElem:function(e,t,n){var r=function(e,t){var n=K.getParentNode(e,t);if(n==null)return!1;var r=K.getParentNode(e,n);return r!=null&&lq(r).some((function(e){return e===t}))}(n,e),i=e,a=i.colSpan,o=a===void 0?1:a,s=i.rowSpan,c=s===void 0?1:s,l=i.isHeader;return r?H(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:Vd((function(t){var r=this.elm;if(r!=null){var i=r.getBoundingClientRect(),a=i.left,o=i.width,s=i.top,c=i.height,l=t.clientX,u=t.clientY;aJ||(l>a+o-5&&l<a+o&&u>s&&u<s+c?(r.style.cursor=`col-resize`,lJ=n,cJ=K.findPath(n,e)):aJ||(r.style.cursor=`auto`,lJ=null,cJ=null))}}),100)}},t):H(`td`,{colSpan:o,rowSpan:c},t)}},gJ={selector:`table`,preParseHtml:function(e){var t=V(e);if(iJ(t)!==`table`)return e;var n=t.find(`tbody`);if(n.length===0)return e;var r=t.find(`tr`);return t.append(r),n.remove(),t[0]}},_J=oq.filter;WG({target:`Array`,proto:!0,forced:!GK(`filter`)},{filter:function(e){return _J(this,e,arguments.length>1?arguments[1]:void 0)}});var vJ=Math.floor,yJ=LU(``.charAt),bJ=LU(``.replace),xJ=LU(``.slice),SJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,CJ=/\$([$&'`]|\d{1,2})/g,wJ=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=CJ;return i!==void 0&&(i=yW(i),c=SJ),bJ(a,c,(function(a,c){var l;switch(yJ(c,0)){case`$`:return`$`;case`&`:return e;case"`":return xJ(t,0,n);case`'`:return xJ(t,o);case`<`:l=i[xJ(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=vJ(u/10);return d===0?a:d<=s?r[d-1]===void 0?yJ(c,1):r[d-1]+yJ(c,1):a}l=r[u-1]}return l===void 0?``:l}))},TJ=AW(`replace`),EJ=Math.max,DJ=Math.min,OJ=LU([].concat),kJ=LU([].push),AJ=LU(``.indexOf),jJ=LU(``.slice),MJ=`a`.replace(/./,`$0`)===`$0`,NJ=!!/./[TJ]&&/./[TJ](`a`,`$0`)===``;Oq(`replace`,(function(e,t,n){var r=NJ?`$`:`$0`;return[function(e,n){var r=GU(this),i=e==null?void 0:fW(e,TJ);return i?OU(i,e,r,n):OU(t,QG(r),e,n)},function(e,i){var a=HW(this),o=QG(e);if(typeof i==`string`&&AJ(i,r)===-1&&AJ(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=qU(i);c||(i=QG(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Hq(a,o);if(f===null||(kJ(d,f),!l))break;QG(f[0])===``&&(a.lastIndex=Lq(o,CG(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=QG((f=d[g])[0]),v=EJ(DJ(vG(f.index),o.length),0),y=[],b=1;b<f.length;b++)kJ(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=OJ([_],y,v,o);x!==void 0&&kJ(S,x);var C=QG(Tq(i,void 0,S))}else C=wJ(_,o,v,y,x,i);v>=h&&(m+=jJ(o,h,v)+C,h=v+_.length)}return m+jJ(o,h)}]}),!!TU((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!MJ||NJ);var PJ={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e);(t=t.filter((function(e){return!!z.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]);var i=parseInt(r.attr(`colSpan`)||`1`),a=parseInt(r.attr(`rowSpan`)||`1`),o=r.attr(`width`)||`auto`;return{type:`table-cell`,isHeader:iJ(r)===`th`,colSpan:i,rowSpan:a,width:o,children:t}}},FJ={selector:`tr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`table-row`,children:t.filter((function(e){return K.getNodeType(e)===`table-cell`}))}}},IJ={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=V(e),i=`auto`;return function(e,t){for(var n=``,r=(e.attr(`style`)||``).split(`;`),i=r.length,a=0;a<i;a++){var o=r[a];if(o){var s=o.split(`:`);s[0].trim()===`width`&&(n=s[1].trim())}}return n}(r)===`100%`&&(i=`100%`),r.attr(`width`)===`100%`&&(i=`100%`),{type:`table`,width:i,children:t.filter((function(e){return K.getNodeType(e)===`table-row`}))}}},LJ=function(){function e(){this.title=q(`tableModule.insertTable`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>`,this.tag=`button`,this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!K.getSelectedElems(e).some((function(t){var n=K.getNodeType(t);return n===`pre`||n===`table`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=V(`<div class="w-e-panel-content-table"></div>`),r=V(`<span>0 &times; 0</span>`),i=V(`<table></table>`),a=0;a<10;a++){for(var o=V(`<tr></tr>`),s=0;s<10;s++){var c=V(`<td></td>`);c.attr(`data-x`,s.toString()),c.attr(`data-y`,a.toString()),o.append(c),c.on(`mouseenter`,(function(e){var t=e.target;if(t!=null){var n=V(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` &times; `+(o+1),i.children().each((function(e){V(e).children().each((function(e){var t=V(e),n=t.dataset(),r=n.x,i=n.y;r<=a&&i<=o?t.addClass(`active`):t.removeClass(`active`)}))}))}})),c.on(`click`,(function(n){n.preventDefault();var r=n.target;if(r!=null){var i=V(r).dataset(),a=i.x,o=i.y;t.insertTable(e,o+1,a+1)}}))}i.append(o)}return n.append(i),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),i=parseInt(n,10);if(r&&i&&!(r<=0||i<=0)){K.isSelectedEmptyParagraph(e)&&B.removeNodes(e,{mode:`highest`});var a=function(e,t){for(var n=[],r=0;r<e;r++){for(var i=[],a=0;a<t;a++){var o={type:`table-cell`,children:[{text:``}]};r===0&&(o.isHeader=!0),i.push(o)}n.push({type:`table-row`,children:i})}return{type:`table`,width:`auto`,children:n}}(r,i);B.insertNodes(e,a,{mode:`highest`})}},e}(),RJ=function(){function e(){this.title=q(`tableModule.deleteTable`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return e.selection==null||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||B.removeNodes(e,{mode:`highest`})},e}(),zJ=function(){function e(){this.title=q(`tableModule.insertRow`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=ZK(ZK(P.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=K.getParentNode(e,r)?.children.length||0;if(a!==0){for(var o={type:`table-row`,children:[]},s=0;s<a;s++)o.children.push({type:`table-cell`,children:[{text:``}]});var c=I.parent(i),l=I.next(c);B.insertNodes(e,o,{at:l})}}},e}(),BJ=function(){function e(){this.title=q(`tableModule.deleteRow`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=ZK(ZK(P.nodes(e,{match:function(e){return K.checkNodeType(e,`table-row`)},universal:!0}),1)[0],2),r=n[0],i=n[1];(K.getParentNode(e,r)?.children.length||0)<=1?B.removeNodes(e,{mode:`highest`}):B.removeNodes(e,{at:i})}},e}(),VJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},HJ=IW(`span`).classList,UJ=HJ&&HJ.constructor&&HJ.constructor.prototype,WJ=UJ===Object.prototype?void 0:UJ,GJ=oq.forEach,KJ=function(e,t){var n=[].forEach;return!!n&&TU((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return GJ(this,e,arguments.length>1?arguments[1]:void 0)},qJ=function(e){if(e&&e.forEach!==KJ)try{KW(e,`forEach`,KJ)}catch{e.forEach=KJ}};for(var JJ in VJ)VJ[JJ]&&qJ(wU[JJ]&&wU[JJ].prototype);qJ(WJ);var YJ=function(){function e(){this.title=q(`tableModule.insertCol`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=ZK(ZK(P.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=K.getParentNode(e,r);if(a!=null){var o=K.getParentNode(e,a);o!=null&&(o.children||[]).forEach((function(t,n){N.isElement(t)&&(t.children||[]).forEach((function(t){var r=K.findPath(e,t);if(r.length===i.length&&vU(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&uq(o)&&(a.isHeader=!0),B.insertNodes(e,a,{at:r})}}))}))}}},e}(),XJ=function(){function e(){this.title=q(`tableModule.deleteCol`),this.iconSvg=`<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=ZK(ZK(P.nodes(e,{match:function(e){return K.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=K.getParentNode(e,r),o=a?.children.length||0;if(!a||o<=1)B.removeNodes(e,{mode:`highest`});else{var s=K.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){N.isElement(t)&&(t.children||[]).forEach((function(t){var n=K.findPath(e,t);n.length===i.length&&vU(n.slice(-1),i.slice(-1))&&B.removeNodes(e,{at:n})}))}))}}},e}(),ZJ=function(){function e(){this.title=q(`tableModule.header`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){var t=K.getSelectedNodeByType(e,`table`);return t!=null&&uq(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=K.getSelectedNodeByType(e,`table`);r!=null&&lq(r).forEach((function(t){return B.setNodes(e,{isHeader:n},{at:K.findPath(e,t)})}))}},e}(),QJ=function(){function e(){this.title=q(`tableModule.widthAuto`),this.iconSvg=`<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){var t=K.getSelectedNodeByType(e,`table`);return t!=null&&t.width===`100%`},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||K.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};B.setNodes(e,n,{mode:`highest`})}},e}(),$J={renderElems:[pJ,mJ,hJ],elemsToHtml:[{type:`table`,elemToHtml:function(e,t){var n=e.width;return`<table style="width: `+(n===void 0?`auto`:n)+`;"><tbody>`+t+`</tbody></table>`}},{type:`table-row`,elemToHtml:function(e,t){return`<tr>`+t+`</tr>`}},{type:`table-cell`,elemToHtml:function(e,t){var n=e,r=n.colSpan,i=r===void 0?1:r,a=n.rowSpan,o=a===void 0?1:a,s=n.isHeader,c=s!==void 0&&s,l=n.width,u=c?`th`:`td`;return`<`+u+` colSpan="`+i+`" rowSpan="`+o+`" width="`+(l===void 0?`auto`:l)+`">`+t+`</`+u+`>`}}],preParseHtml:[gJ],parseElemsHtml:[PJ,FJ,IJ],menus:[{key:`insertTable`,factory:function(){return new LJ}},{key:`deleteTable`,factory:function(){return new RJ}},{key:`insertTableRow`,factory:function(){return new zJ}},{key:`deleteTableRow`,factory:function(){return new BJ}},{key:`insertTableCol`,factory:function(){return new YJ}},{key:`deleteTableCol`,factory:function(){return new XJ}},{key:`tableHeader`,factory:function(){return new ZJ}},{key:`tableFullWidth`,factory:function(){return new QJ}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,i=e.normalizeNode,a=e.insertData,o=e.handleTab,s=e.selectAll,c=e;return c.insertBreak=function(){K.getSelectedNodeByType(c,`table`)==null?t():c.insertText(`
`)},c.deleteBackward=function(e){if(!QK(c)){var t=c.selection;if(t){var r=P.before(c,t);if(r){var i=$K(c,r),a=$K(c,t);if(i&&!a)return}}n(e)}},c.handleTab=function(){if(K.getSelectedNodeByType(c,`table`)){var t=P.above(e);K.checkNodeType(t[0],`table-cell`)&&B.select(e,t[1]);var n=P.next(e);if(n)n[0]&&n[0].text&&(n=P.above(e,{at:n[1]})??n),B.select(e,n[1]);else{var r=c.children||[],i=r.length;if(K.checkNodeType(r[i-1],`table`)){var a=K.genEmptyParagraph();B.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else o()},c.deleteForward=function(e){QK(c)||r(e)},c.normalizeNode=function(e){var t=ZK(e,2),n=t[0],r=t[1];if(K.getNodeType(n)!==`table`)return i([n,r]);if(K.isLastNode(c,n)){var a=K.genEmptyParagraph();B.insertNodes(c,a,{at:[r[0]+1]})}},c.insertData=function(e){if(K.getSelectedNodeByType(c,`table`)!=null){var t=e.getData(`text/plain`);t===`
`||/<img[^>]+>/.test(e.getData(`text/html`))?a(e):P.insertText(c,t)}else a(e)},c.selectAll=function(){var e=c.selection;if(e!=null){var t=K.getSelectedNodeByType(c,`table-cell`);if(t!=null){var n=e.anchor,r=e.focus;if(I.equals(n.path.slice(0,3),r.path.slice(0,3)))if(F.string(t).length!==0){var i=K.findPath(c,t),a={anchor:P.start(c,i),focus:P.end(c,i)};c.select(a)}else s();else s()}else s()}else s()},c}};BE(`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`}}),BE(`zh-CN`,{videoModule:{delete:`删除视频`,uploadVideo:`上传视频`,insertVideo:`插入视频`,videoSrc:`视频地址`,videoSrcPlaceHolder:`视频文件 url 或第三方 <iframe>`,videoPoster:`视频封面`,videoPosterPlaceHolder:`封面图片 url`,ok:`确定`,editSize:`修改尺寸`,width:`宽度`,height:`高度`}});var eY=function(){return eY=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},eY.apply(this,arguments)};function tY(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function nY(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function rY(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function iY(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var aY=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function oY(e){var t={exports:{}};return e(t,t.exports),t.exports}var sY,cY,lY=function(e){return e&&e.Math==Math&&e},Z=lY(typeof globalThis==`object`&&globalThis)||lY(typeof window==`object`&&window)||lY(typeof self==`object`&&self)||lY(typeof aY==`object`&&aY)||function(){return this}()||Function(`return this`)(),uY=function(e){try{return!!e()}catch{return!0}},dY=!uY((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),fY=Function.prototype.call,pY=fY.bind?fY.bind(fY):function(){return fY.apply(fY,arguments)},mY={}.propertyIsEnumerable,hY=Object.getOwnPropertyDescriptor,gY={f:hY&&!mY.call({1:2},1)?function(e){var t=hY(this,e);return!!t&&t.enumerable}:mY},_Y=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},vY=Function.prototype,yY=vY.bind,bY=vY.call,xY=yY&&yY.bind(bY),Q=yY?function(e){return e&&xY(bY,e)}:function(e){return e&&function(){return bY.apply(e,arguments)}},SY=Q({}.toString),CY=Q(``.slice),wY=function(e){return CY(SY(e),8,-1)},TY=Z.Object,EY=Q(``.split),DY=uY((function(){return!TY(`z`).propertyIsEnumerable(0)}))?function(e){return wY(e)==`String`?EY(e,``):TY(e)}:TY,OY=Z.TypeError,kY=function(e){if(e==null)throw OY(`Can't call method on `+e);return e},AY=function(e){return DY(kY(e))},jY=function(e){return typeof e==`function`},MY=function(e){return typeof e==`object`?e!==null:jY(e)},NY=function(e){return jY(e)?e:void 0},PY=function(e,t){return arguments.length<2?NY(Z[e]):Z[e]&&Z[e][t]},FY=Q({}.isPrototypeOf),IY=PY(`navigator`,`userAgent`)||``,LY=Z.process,RY=Z.Deno,zY=LY&&LY.versions||RY&&RY.version,BY=zY&&zY.v8;BY&&(cY=(sY=BY.split(`.`))[0]>0&&sY[0]<4?1:+(sY[0]+sY[1])),!cY&&IY&&(!(sY=IY.match(/Edge\/(\d+)/))||sY[1]>=74)&&(sY=IY.match(/Chrome\/(\d+)/))&&(cY=+sY[1]);var VY=cY,HY=!!Object.getOwnPropertySymbols&&!uY((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&VY&&VY<41})),UY=HY&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,WY=Z.Object,GY=UY?function(e){return typeof e==`symbol`}:function(e){var t=PY(`Symbol`);return jY(t)&&FY(t.prototype,WY(e))},KY=Z.String,qY=function(e){try{return KY(e)}catch{return`Object`}},JY=Z.TypeError,YY=function(e){if(jY(e))return e;throw JY(qY(e)+` is not a function`)},XY=function(e,t){var n=e[t];return n==null?void 0:YY(n)},ZY=Z.TypeError,QY=Object.defineProperty,$Y=function(e,t){try{QY(Z,e,{value:t,configurable:!0,writable:!0})}catch{Z[e]=t}return t},eX=Z[`__core-js_shared__`]||$Y(`__core-js_shared__`,{}),tX=oY((function(e){(e.exports=function(e,t){return eX[e]||(eX[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),nX=Z.Object,rX=function(e){return nX(kY(e))},iX=Q({}.hasOwnProperty),aX=Object.hasOwn||function(e,t){return iX(rX(e),t)},oX=0,sX=Math.random(),cX=Q(1 .toString),lX=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+cX(++oX+sX,36)},uX=tX(`wks`),dX=Z.Symbol,fX=dX&&dX.for,pX=UY?dX:dX&&dX.withoutSetter||lX,mX=function(e){if(!aX(uX,e)||!HY&&typeof uX[e]!=`string`){var t=`Symbol.`+e;HY&&aX(dX,e)?uX[e]=dX[e]:uX[e]=UY&&fX?fX(t):pX(t)}return uX[e]},hX=Z.TypeError,gX=mX(`toPrimitive`),_X=function(e){var t=function(e,t){if(!MY(e)||GY(e))return e;var n,r=XY(e,gX);if(r){if(t===void 0&&(t=`default`),n=pY(r,e,t),!MY(n)||GY(n))return n;throw hX(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&jY(n=e.toString)&&!MY(r=pY(n,e))||jY(n=e.valueOf)&&!MY(r=pY(n,e))||t!==`string`&&jY(n=e.toString)&&!MY(r=pY(n,e)))return r;throw ZY(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return GY(t)?t:t+``},vX=Z.document,yX=MY(vX)&&MY(vX.createElement),bX=function(e){return yX?vX.createElement(e):{}},xX=!dY&&!uY((function(){return Object.defineProperty(bX(`div`),`a`,{get:function(){return 7}}).a!=7})),SX=Object.getOwnPropertyDescriptor,CX={f:dY?SX:function(e,t){if(e=AY(e),t=_X(t),xX)try{return SX(e,t)}catch{}if(aX(e,t))return _Y(!pY(gY.f,e,t),e[t])}},wX=Z.String,TX=Z.TypeError,EX=function(e){if(MY(e))return e;throw TX(wX(e)+` is not an object`)},DX=Z.TypeError,OX=Object.defineProperty,kX={f:dY?OX:function(e,t,n){if(EX(e),t=_X(t),EX(n),xX)try{return OX(e,t,n)}catch{}if(`get`in n||`set`in n)throw DX(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},AX=dY?function(e,t,n){return kX.f(e,t,_Y(1,n))}:function(e,t,n){return e[t]=n,e},jX=Q(Function.toString);jY(eX.inspectSource)||(eX.inspectSource=function(e){return jX(e)});var MX,NX,PX,FX=eX.inspectSource,IX=Z.WeakMap,LX=jY(IX)&&/native code/.test(FX(IX)),RX=tX(`keys`),zX=function(e){return RX[e]||(RX[e]=lX(e))},BX={},VX=Z.TypeError,HX=Z.WeakMap;if(LX||eX.state){var UX=eX.state||=new HX,WX=Q(UX.get),GX=Q(UX.has),KX=Q(UX.set);MX=function(e,t){if(GX(UX,e))throw new VX(`Object already initialized`);return t.facade=e,KX(UX,e,t),t},NX=function(e){return WX(UX,e)||{}},PX=function(e){return GX(UX,e)}}else{var qX=zX(`state`);BX[qX]=!0,MX=function(e,t){if(aX(e,qX))throw new VX(`Object already initialized`);return t.facade=e,AX(e,qX,t),t},NX=function(e){return aX(e,qX)?e[qX]:{}},PX=function(e){return aX(e,qX)}}var JX={set:MX,get:NX,has:PX,enforce:function(e){return PX(e)?NX(e):MX(e,{})},getterFor:function(e){return function(t){var n;if(!MY(t)||(n=NX(t)).type!==e)throw VX(`Incompatible receiver, `+e+` required`);return n}}},YX=Function.prototype,XX=dY&&Object.getOwnPropertyDescriptor,ZX=aX(YX,`name`),QX={EXISTS:ZX,PROPER:ZX&&function(){}.name===`something`,CONFIGURABLE:ZX&&(!dY||dY&&XX(YX,`name`).configurable)},$X=oY((function(e){var t=QX.CONFIGURABLE,n=JX.get,r=JX.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;jY(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!aX(a,`name`)||t&&a.name!==d)&&AX(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Z?l?e[n]=a:$Y(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:AX(e,n,a))})(Function.prototype,`toString`,(function(){return jY(this)&&n(this).source||FX(this)}))})),eZ=Math.ceil,tZ=Math.floor,nZ=function(e){var t=+e;return t!=t||t===0?0:(t>0?tZ:eZ)(t)},rZ=Math.max,iZ=Math.min,aZ=function(e,t){var n=nZ(e);return n<0?rZ(n+t,0):iZ(n,t)},oZ=Math.min,sZ=function(e){return e>0?oZ(nZ(e),9007199254740991):0},cZ=function(e){return sZ(e.length)},lZ=function(e){return function(t,n,r){var i,a=AY(t),o=cZ(a),s=aZ(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},uZ={includes:lZ(!0),indexOf:lZ(!1)},dZ=uZ.indexOf,fZ=Q([].push),pZ=function(e,t){var n,r=AY(e),i=0,a=[];for(n in r)!aX(BX,n)&&aX(r,n)&&fZ(a,n);for(;t.length>i;)aX(r,n=t[i++])&&(~dZ(a,n)||fZ(a,n));return a},mZ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],hZ=mZ.concat(`length`,`prototype`),gZ={f:Object.getOwnPropertyNames||function(e){return pZ(e,hZ)}},_Z={f:Object.getOwnPropertySymbols},vZ=Q([].concat),yZ=PY(`Reflect`,`ownKeys`)||function(e){var t=gZ.f(EX(e)),n=_Z.f;return n?vZ(t,n(e)):t},bZ=function(e,t){for(var n=yZ(t),r=kX.f,i=CX.f,a=0;a<n.length;a++){var o=n[a];aX(e,o)||r(e,o,i(t,o))}},xZ=/#|\.prototype\./,SZ=function(e,t){var n=wZ[CZ(e)];return n==EZ||n!=TZ&&(jY(t)?uY(t):!!t)},CZ=SZ.normalize=function(e){return String(e).replace(xZ,`.`).toLowerCase()},wZ=SZ.data={},TZ=SZ.NATIVE=`N`,EZ=SZ.POLYFILL=`P`,DZ=SZ,OZ=CX.f,kZ=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Z:l?Z[s]||$Y(s,{}):(Z[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=OZ(n,r))&&o.value:n[r],!DZ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;bZ(a,i)}(e.sham||i&&i.sham)&&AX(a,`sham`,!0),$X(n,r,a,e)}},AZ={};AZ[mX(`toStringTag`)]=`z`;var jZ=String(AZ)===`[object z]`,MZ=mX(`toStringTag`),NZ=Z.Object,PZ=wY(function(){return arguments}())==`Arguments`,FZ=jZ?wY:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=NZ(e),MZ))==`string`?n:PZ?wY(t):(r=wY(t))==`Object`&&jY(t.callee)?`Arguments`:r},IZ=Z.String,LZ=function(e){if(FZ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return IZ(e)},RZ=`	
\v\f\r \xA0               \u2028\u2029`,zZ=Q(``.replace),BZ=`[`+RZ+`]`,VZ=RegExp(`^`+BZ+BZ+`*`),HZ=RegExp(BZ+BZ+`*$`),UZ=function(e){return function(t){var n=LZ(kY(t));return 1&e&&(n=zZ(n,VZ,``)),2&e&&(n=zZ(n,HZ,``)),n}},WZ={start:UZ(1),end:UZ(2),trim:UZ(3)},GZ=QX.PROPER,KZ=WZ.trim;function qZ(e){return e.length?e[0].tagName.toLowerCase():``}function JZ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=V(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}kZ({target:`String`,proto:!0,forced:uY((function(){return!!RZ.trim()||GZ&&RZ.trim.name!==`trim`}))},{trim:function(){return KZ(this)}}),kZ({global:!0},{globalThis:Z}),_d&&(V.fn.append=_d),id&&(V.fn.on=id),Od&&(V.fn.focus=Od),ed&&(V.fn.attr=ed),rd&&(V.fn.val=rd),md&&(V.fn.html=md),yd&&(V.fn.parent=yd),$u&&(V.fn.hasClass=$u),wd&&(V.fn.empty=wd);var YZ,XZ={type:`video`,renderElem:function(e,t,n){var r,i=e,a=i.src,o=a===void 0?``:a,s=i.poster,c=s===void 0?``:s,l=i.width,u=l===void 0?`auto`:l,d=i.height,f=d===void 0?`auto`:d,p=K.isNodeSelected(n,e);if(o.trim().indexOf(`<iframe `)===0)r=H(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:JZ(o,u,f)});else{var m=H(`video`,{poster:c,controls:!0},H(`source`,{src:o,type:`video/mp4`}),`Sorry, your browser doesn't support embedded videos.
 抱歉,浏览器不支持 video 视频`);u!==`auto`&&(m.data.width=u),f!==`auto`&&(m.data.height=f),r=H(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return $d(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},ZZ={type:`video`,elemToHtml:function(e,t){var n=e,r=n.src,i=r===void 0?``:r,a=n.poster,o=a===void 0?``:a,s=n.width,c=s===void 0?`auto`:s,l=n.height,u=l===void 0?`auto`:l,d=`<div data-w-e-type="video" data-w-e-is-void>
`;return i.trim().indexOf(`<iframe `)===0?d+=JZ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
</div>`}},QZ=Object.keys||function(e){return pZ(e,mZ)},$Z=dY?Object.defineProperties:function(e,t){EX(e);for(var n,r=AY(t),i=QZ(t),a=i.length,o=0;a>o;)kX.f(e,n=i[o++],r[n]);return e},eQ=PY(`document`,`documentElement`),tQ=zX(`IE_PROTO`),nQ=function(){},rQ=function(e){return`<script>`+e+`<\/script>`},iQ=function(e){e.write(rQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},aQ=function(){try{YZ=new ActiveXObject(`htmlfile`)}catch{}var e,t;aQ=typeof document<`u`?document.domain&&YZ?iQ(YZ):((t=bX(`iframe`)).style.display=`none`,eQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(rQ(`document.F=Object`)),e.close(),e.F):iQ(YZ);for(var n=mZ.length;n--;)delete aQ.prototype[mZ[n]];return aQ()};BX[tQ]=!0;var oQ=Object.create||function(e,t){var n;return e===null?n=aQ():(nQ.prototype=EX(e),n=new nQ,nQ.prototype=null,n[tQ]=e),t===void 0?n:$Z(n,t)},sQ=mX(`unscopables`),cQ=Array.prototype;cQ[sQ]??kX.f(cQ,sQ,{configurable:!0,value:oQ(null)});var lQ=function(e){cQ[sQ][e]=!0},uQ=uZ.includes;kZ({target:`Array`,proto:!0},{includes:function(e){return uQ(this,e,arguments.length>1?arguments[1]:void 0)}}),lQ(`includes`);var dQ={selector:`iframe,video,p`,preParseHtml:function(e){var t=V(e),n=t;if(qZ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=V(i))}}var o=qZ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=V(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},fQ=Q(Q.bind),pQ=function(e,t){return YY(e),t===void 0?e:fQ?fQ(e,t):function(){return e.apply(t,arguments)}},mQ=Array.isArray||function(e){return wY(e)==`Array`},hQ=function(){},gQ=[],_Q=PY(`Reflect`,`construct`),vQ=/^\s*(?:class|function)\b/,yQ=Q(vQ.exec),bQ=!vQ.exec(hQ),xQ=function(e){if(!jY(e))return!1;try{return _Q(hQ,gQ,e),!0}catch{return!1}},SQ=!_Q||uY((function(){var e;return xQ(xQ.call)||!xQ(Object)||!xQ((function(){e=!0}))||e}))?function(e){if(!jY(e))return!1;switch(FZ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return bQ||!!yQ(vQ,FX(e))}:xQ,CQ=mX(`species`),wQ=Z.Array,TQ=function(e,t){return new(function(e){var t;return mQ(e)&&(t=e.constructor,(SQ(t)&&(t===wQ||mQ(t.prototype))||MY(t)&&(t=t[CQ])===null)&&(t=void 0)),t===void 0?wQ:t}(e))(t===0?0:t)},EQ=Q([].push),DQ=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=rX(c),h=DY(m),g=pQ(l,u),_=cZ(h),v=0,y=d||TQ,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:EQ(b,f)}else switch(e){case 4:return!1;case 7:EQ(b,f)}return a?-1:r||i?i:b}},OQ={forEach:DQ(0),map:DQ(1),filter:DQ(2),some:DQ(3),every:DQ(4),find:DQ(5),findIndex:DQ(6),filterReject:DQ(7)},kQ=OQ.find,AQ=!0;`find`in[]&&[,].find((function(){AQ=!1})),kZ({target:`Array`,proto:!0,forced:AQ},{find:function(e){return kQ(this,e,arguments.length>1?arguments[1]:void 0)}}),lQ(`find`);var jQ=jZ?{}.toString:function(){return`[object `+FZ(this)+`]`};function MQ(e,t,n,r){return t===void 0&&(t=``),n===void 0&&(n=`auto`),r===void 0&&(r=`auto`),{type:`video`,src:e,poster:t,width:n,height:r,children:[{text:``}]}}jZ||$X(Object.prototype,`toString`,jQ,{unsafe:!0});var NQ,PQ,FQ={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=V(e),i=``,a=``,o=`auto`,s=`auto`,c=r.find(`iframe`);if(c.length>0)return o=c.attr(`width`)||`auto`,s=c.attr(`height`)||`auto`,MQ(i=c[0].outerHTML,a,o,s);var l=r.find(`video`);return(i=l.attr(`src`)||``)||l.length>0&&(i=l.find(`source`).attr(`src`)||``),o=l.attr(`width`)||`auto`,s=l.attr(`height`)||`auto`,MQ(i,a=l.attr(`poster`)||``,o,s)}},IQ=function(){var e=EX(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},LQ=Z.RegExp,RQ=uY((function(){var e=LQ(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),zQ=RQ||uY((function(){return!LQ(`a`,`y`).sticky})),BQ={BROKEN_CARET:RQ||uY((function(){var e=LQ(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:zQ,UNSUPPORTED_Y:RQ},VQ=Z.RegExp,HQ=uY((function(){var e=VQ(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),UQ=Z.RegExp,WQ=uY((function(){var e=UQ(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),GQ=JX.get,KQ=tX(`native-string-replace`,String.prototype.replace),qQ=RegExp.prototype.exec,JQ=qQ,YQ=Q(``.charAt),XQ=Q(``.indexOf),ZQ=Q(``.replace),QQ=Q(``.slice),$Q=(PQ=/b*/g,pY(qQ,NQ=/a/,`a`),pY(qQ,PQ,`a`),NQ.lastIndex!==0||PQ.lastIndex!==0),e$=BQ.BROKEN_CARET,t$=/()??/.exec(``)[1]!==void 0;($Q||t$||e$||HQ||WQ)&&(JQ=function(e){var t,n,r,i,a,o,s,c=this,l=GQ(c),u=LZ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=pY(JQ,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=e$&&c.sticky,m=pY(IQ,c),h=c.source,g=0,_=u;if(p&&(m=ZQ(m,`y`,``),XQ(m,`g`)===-1&&(m+=`g`),_=QQ(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&YQ(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),t$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),$Q&&(r=c.lastIndex),i=pY(qQ,p?n:c,_),p?i?(i.input=QQ(i.input,g),i[0]=QQ(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:$Q&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),t$&&i&&i.length>1&&pY(KQ,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=oQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var n$=JQ;kZ({target:`RegExp`,proto:!0,forced:/./.exec!==n$},{exec:n$});var r$=Function.prototype,i$=r$.apply,a$=r$.bind,o$=r$.call,s$=typeof Reflect==`object`&&Reflect.apply||(a$?o$.bind(i$):function(){return o$.apply(i$,arguments)}),c$=(mX(`species`),RegExp.prototype),l$=Q(``.charAt),u$=Q(``.charCodeAt),d$=Q(``.slice),f$=function(e){return function(t,n){var r,i,a=LZ(kY(t)),o=nZ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=u$(a,o))<55296||r>56319||o+1===s||(i=u$(a,o+1))<56320||i>57343?e?l$(a,o):r:e?d$(a,o,o+2):i-56320+(r-55296<<10)+65536}},p$={codeAt:f$(!1),charAt:f$(!0)},m$=p$.charAt,h$=function(e,t,n){return t+(n?m$(e,t).length:1)},g$=Math.floor,_$=Q(``.charAt),v$=Q(``.replace),y$=Q(``.slice),b$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,x$=/\$([$&'`]|\d{1,2})/g,S$=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=x$;return i!==void 0&&(i=rX(i),c=b$),v$(a,c,(function(a,c){var l;switch(_$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return y$(t,0,n);case`'`:return y$(t,o);case`<`:l=i[y$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=g$(u/10);return d===0?a:d<=s?r[d-1]===void 0?_$(c,1):r[d-1]+_$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},C$=Z.TypeError,w$=function(e,t){var n=e.exec;if(jY(n)){var r=pY(n,e,t);return r!==null&&EX(r),r}if(wY(e)===`RegExp`)return pY(n$,e,t);throw C$(`RegExp#exec called on incompatible receiver`)},T$=mX(`replace`),E$=Math.max,D$=Math.min,O$=Q([].concat),k$=Q([].push),A$=Q(``.indexOf),j$=Q(``.slice),M$=`a`.replace(/./,`$0`)===`$0`,N$=!!/./[T$]&&/./[T$](`a`,`$0`)===``;function P$(e){return e===void 0&&(e=`r`),e+`-`+Ld()}(function(e,t,n,r){var i=mX(e),a=!uY((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!uY((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=Q(/./[i]),c=function(e,t,n){var r=N$?`$`:`$0`;return[function(e,n){var r=kY(this),i=e==null?void 0:XY(e,T$);return i?pY(i,e,r,n):pY(t,LZ(r),e,n)},function(e,i){var a=EX(this),o=LZ(e);if(typeof i==`string`&&A$(i,r)===-1&&A$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=jY(i);c||(i=LZ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=w$(a,o);if(f===null||(k$(d,f),!l))break;LZ(f[0])===``&&(a.lastIndex=h$(o,sZ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=LZ((f=d[g])[0]),v=E$(D$(nZ(f.index),o.length),0),y=[],b=1;b<f.length;b++)k$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=O$([_],y,v,o);x!==void 0&&k$(S,x);var C=LZ(s$(i,void 0,S))}else C=S$(_,o,v,y,x,i);v>=h&&(m+=j$(o,h,v)+C,h=v+_.length)}return m+j$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=Q(e),c=t.exec;return c===n$||c===c$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));$X(String.prototype,e,c[0]),$X(c$,i,c[1])}})(`replace`,0,!!uY((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!M$||N$);var F$=Z.Promise,I$=function(e,t,n){for(var r in t)$X(e,r,t[r],n);return e},L$=Z.String,R$=Z.TypeError,z$=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Q(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return EX(n),function(e){if(typeof e==`object`||jY(e))return e;throw R$(`Can't set `+L$(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),B$=kX.f,V$=mX(`toStringTag`),H$=function(e,t,n){e&&!aX(e=n?e:e.prototype,V$)&&B$(e,V$,{configurable:!0,value:t})},U$=mX(`species`),hue=Z.TypeError,W$=function(e,t){if(FY(t,e))return e;throw hue(`Incorrect invocation`)},G$={},gue=mX(`iterator`),_ue=Array.prototype,vue=mX(`iterator`),K$=function(e){if(e!=null)return XY(e,vue)||XY(e,`@@iterator`)||G$[FZ(e)]},yue=Z.TypeError,q$=function(e,t,n){var r,i;EX(e);try{if(!(r=XY(e,`return`))){if(t===`throw`)throw n;return n}r=pY(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return EX(r),n},bue=Z.TypeError,J$=function(e,t){this.stopped=e,this.result=t},Y$=J$.prototype,X$=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=pQ(t,d),g=function(e){return r&&q$(r,`normal`,e),new J$(!0,e)},_=function(e){return f?(EX(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=K$(e)))throw bue(qY(e)+` is not iterable`);if((u=i)!==void 0&&(G$.Array===u||_ue[gue]===u)){for(a=0,o=cZ(e);o>a;a++)if((s=_(e[a]))&&FY(Y$,s))return s;return new J$(!1)}r=function(e,t){var n=arguments.length<2?K$(e):t;if(YY(n))return EX(pY(n,e));throw yue(qY(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=pY(c,r)).done;){try{s=_(l.value)}catch(e){q$(r,`throw`,e)}if(typeof s==`object`&&s&&FY(Y$,s))return s}return new J$(!1)},Z$=mX(`iterator`),Q$=!1;try{var xue=0,$$={next:function(){return{done:!!xue++}},return:function(){Q$=!0}};$$[Z$]=function(){return this},Array.from($$,(function(){throw 2}))}catch{}var e1,t1,n1,r1,i1=function(e,t){if(!t&&!Q$)return!1;var n=!1;try{var r={};r[Z$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Sue=Z.TypeError,Cue=mX(`species`),a1=Q([].slice),o1=/(?:ipad|iphone|ipod).*applewebkit/i.test(IY),s1=wY(Z.process)==`process`,c1=Z.setImmediate,l1=Z.clearImmediate,wue=Z.process,u1=Z.Dispatch,Tue=Z.Function,d1=Z.MessageChannel,Eue=Z.String,f1=0,p1={};try{e1=Z.location}catch{}var m1=function(e){if(aX(p1,e)){var t=p1[e];delete p1[e],t()}},h1=function(e){return function(){m1(e)}},g1=function(e){m1(e.data)},_1=function(e){Z.postMessage(Eue(e),e1.protocol+`//`+e1.host)};c1&&l1||(c1=function(e){var t=a1(arguments,1);return p1[++f1]=function(){s$(jY(e)?e:Tue(e),void 0,t)},t1(f1),f1},l1=function(e){delete p1[e]},s1?t1=function(e){wue.nextTick(h1(e))}:u1&&u1.now?t1=function(e){u1.now(h1(e))}:d1&&!o1?(r1=(n1=new d1).port2,n1.port1.onmessage=g1,t1=pQ(r1.postMessage,r1)):Z.addEventListener&&jY(Z.postMessage)&&!Z.importScripts&&e1&&e1.protocol!==`file:`&&!uY(_1)?(t1=_1,Z.addEventListener(`message`,g1,!1)):t1=`onreadystatechange`in bX(`script`)?function(e){eQ.appendChild(bX(`script`)).onreadystatechange=function(){eQ.removeChild(this),m1(e)}}:function(e){setTimeout(h1(e),0)});var v1,y1,b1,x1,S1,C1,w1,T1,E1={set:c1,clear:l1},Due=/ipad|iphone|ipod/i.test(IY)&&Z.Pebble!==void 0,Oue=/web0s(?!.*chrome)/i.test(IY),kue=CX.f,D1=E1.set,O1=Z.MutationObserver||Z.WebKitMutationObserver,k1=Z.document,A1=Z.process,j1=Z.Promise,M1=kue(Z,`queueMicrotask`),N1=M1&&M1.value;N1||(v1=function(){var e,t;for(s1&&(e=A1.domain)&&e.exit();y1;){t=y1.fn,y1=y1.next;try{t()}catch(e){throw y1?x1():b1=void 0,e}}b1=void 0,e&&e.enter()},o1||s1||Oue||!O1||!k1?!Due&&j1&&j1.resolve?((w1=j1.resolve(void 0)).constructor=j1,T1=pQ(w1.then,w1),x1=function(){T1(v1)}):s1?x1=function(){A1.nextTick(v1)}:(D1=pQ(D1,Z),x1=function(){D1(v1)}):(S1=!0,C1=k1.createTextNode(``),new O1(v1).observe(C1,{characterData:!0}),x1=function(){C1.data=S1=!S1}));var P1,F1,I1,L1,R1=N1||function(e){var t={fn:e,next:void 0};b1&&(b1.next=t),y1||(y1=t,x1()),b1=t},Aue=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=YY(t),this.reject=YY(n)},z1={f:function(e){return new Aue(e)}},B1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},jue=typeof window==`object`,V1=E1.set,Mue=mX(`species`),H1=`Promise`,U1=JX.getterFor(H1),Nue=JX.set,Pue=JX.getterFor(H1),W1=F$&&F$.prototype,G1=F$,K1=W1,q1=Z.TypeError,J1=Z.document,Y1=Z.process,X1=z1.f,Fue=X1,Iue=!!(J1&&J1.createEvent&&Z.dispatchEvent),Z1=jY(Z.PromiseRejectionEvent),Q1=!1,$1=DZ(H1,(function(){var e=FX(G1),t=e!==String(G1);if(!t&&VY===66)return!0;if(VY>=51&&/native code/.test(e))return!1;var n=new G1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Mue]=r,!(Q1=n.then((function(){}))instanceof r)||!t&&jue&&!Z1})),Lue=$1||!i1((function(e){G1.all(e).catch((function(){}))})),e0=function(e){var t;return!(!MY(e)||!jY(t=e.then))&&t},t0=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;R1((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&zue(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(q1(`Promise-chain cycle`)):(s=e0(o))?pY(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Rue(e)}))}},n0=function(e,t,n){var r,i;Iue?((r=J1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Z.dispatchEvent(r)):r={promise:t,reason:n},!Z1&&(i=Z[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=Z.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Rue=function(e){pY(V1,Z,(function(){var t,n=e.facade,r=e.value;if(r0(e)&&(t=B1((function(){s1?Y1.emit(`unhandledRejection`,r,n):n0(`unhandledrejection`,n,r)})),e.rejection=s1||r0(e)?2:1,t.error))throw t.value}))},r0=function(e){return e.rejection!==1&&!e.parent},zue=function(e){pY(V1,Z,(function(){var t=e.facade;s1?Y1.emit(`rejectionHandled`,t):n0(`rejectionhandled`,t,e.value)}))},i0=function(e,t,n){return function(r){e(t,r,n)}},a0=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,t0(e,!0))},o0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw q1(`Promise can't be resolved itself`);var r=e0(t);r?R1((function(){var n={done:!1};try{pY(r,t,i0(o0,n,e),i0(a0,n,e))}catch(t){a0(n,t,e)}})):(e.value=t,e.state=1,t0(e,!1))}catch(t){a0({done:!1},t,e)}}};if($1&&(K1=(G1=function(e){W$(this,K1),YY(e),pY(P1,this);var t=U1(this);try{e(i0(o0,t),i0(a0,t))}catch(e){a0(t,e)}}).prototype,(P1=function(e){Nue(this,{type:H1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=I$(K1,{then:function(e,t){var n=Pue(this),r=n.reactions,i=X1(function(e,t){var n,r=EX(e).constructor;return r===void 0||(n=EX(r)[Cue])==null?t:function(e){if(SQ(e))return e;throw Sue(qY(e)+` is not a constructor`)}(n)}(this,G1));return i.ok=!jY(e)||e,i.fail=jY(t)&&t,i.domain=s1?Y1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&t0(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),F1=function(){var e=new P1,t=U1(e);this.promise=e,this.resolve=i0(o0,t),this.reject=i0(a0,t)},z1.f=X1=function(e){return e===G1||e===I1?new F1(e):Fue(e)},jY(F$)&&W1!==Object.prototype)){L1=W1.then,Q1||($X(W1,`then`,(function(e,t){var n=this;return new G1((function(e,t){pY(L1,n,e,t)})).then(e,t)}),{unsafe:!0}),$X(W1,`catch`,K1.catch,{unsafe:!0}));try{delete W1.constructor}catch{}z$&&z$(W1,K1)}function s0(e,t,n){return n===void 0&&(n=``),tY(this,void 0,void 0,(function(){var r,i,a,o,s,c,l;return nY(this,(function(u){switch(u.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig(`insertVideo`),i=r.onInsertedVideo,a=r.checkVideo,o=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=u.sent())==`string`?(e.alert(s,`error`),[2]):s==null?[2]:[4,o(t)];case 2:return(c=u.sent()).trim().indexOf(`<iframe `)!==0&&(c=c.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)),l={type:`video`,src:c,poster:n,children:[{text:``}]},Promise.resolve().then((function(){B.insertNodes(e,l)})),i(l),[2]}}))}))}function c0(){return P$(`w-e-insert-video`)}kZ({global:!0,wrap:!0,forced:$1},{Promise:G1}),H$(G1,H1,!1),function(e){var t=PY(`Promise`),n=kX.f;dY&&t&&!t[U$]&&n(t,U$,{configurable:!0,get:function(){return this}})}(),I1=PY(H1),kZ({target:H1,stat:!0,forced:$1},{reject:function(e){var t=X1(this);return pY(t.reject,void 0,e),t.promise}}),kZ({target:H1,stat:!0,forced:$1},{resolve:function(e){return function(e,t){if(EX(e),MY(t)&&t.constructor===e)return t;var n=z1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),kZ({target:H1,stat:!0,forced:Lue},{all:function(e){var t=this,n=X1(t),r=n.resolve,i=n.reject,a=B1((function(){var n=YY(t.resolve),a=[],o=0,s=1;X$(e,(function(e){var c=o++,l=!1;s++,pY(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=X1(t),r=n.reject,i=B1((function(){var i=YY(t.resolve);X$(e,(function(e){pY(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Bue=function(){function e(){this.title=q(`videoModule.insertVideo`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=c0(),this.posterInputId=c0(),this.buttonId=c0()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!K.getSelectedElems(e).some((function(t){var n=K.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,i=n.posterInputId,a=n.buttonId,o=rY(zT(q(`videoModule.videoSrc`),r,q(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=rY(zT(q(`videoModule.videoPoster`),i,q(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=V(c),p=V(d),m=rY(BT(a,q(`videoModule.ok`)),1)[0];if(this.$content==null){var h=V(`<div></div>`);h.on(`click`,`#`+a,(function(n){return tY(t,void 0,void 0,(function(){var t,a;return nY(this,(function(o){switch(o.label){case 0:return n.preventDefault(),t=h.find(`#`+r).val().trim(),a=h.find(`#`+i).val().trim(),[4,s0(e,t,a)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=h}var g=this.$content;return g.empty(),g.append(s),g.append(u),g.append(m),f.val(``),p.val(``),setTimeout((function(){f.focus()})),g[0]},e}(),Vue=Q([].join),Hue=DY!=Object,Uue=function(e,t){var n=[].join;return!!n&&uY((function(){n.call(null,`,`,1)}))}();kZ({target:`Array`,proto:!0,forced:Hue||!Uue},{join:function(e){return Vue(AY(this),e===void 0?`,`:e)}});var l0,u0,d0,Wue=!uY((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),f0=zX(`IE_PROTO`),p0=Z.Object,Gue=p0.prototype,m0=Wue?p0.getPrototypeOf:function(e){var t=rX(e);if(aX(t,f0))return t[f0];var n=t.constructor;return jY(n)&&t instanceof n?n.prototype:t instanceof p0?Gue:null},h0=mX(`iterator`),g0=!1;[].keys&&(`next`in(d0=[].keys())?(u0=m0(m0(d0)))!==Object.prototype&&(l0=u0):g0=!0),(l0==null||uY((function(){var e={};return l0[h0].call(e)!==e})))&&(l0={}),jY(l0[h0])||$X(l0,h0,(function(){return this}));var _0={IteratorPrototype:l0,BUGGY_SAFARI_ITERATORS:g0},Kue=_0.IteratorPrototype,que=function(){return this},Jue=QX.PROPER,Yue=QX.CONFIGURABLE,v0=_0.IteratorPrototype,y0=_0.BUGGY_SAFARI_ITERATORS,b0=mX(`iterator`),Xue=function(){return this},x0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=oQ(Kue,{next:_Y(1,n)}),H$(e,i,!1),G$[i]=que})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!y0&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[b0]||p[`@@iterator`]||i&&p[i],h=!y0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=m0(g.call(new e)))!==Object.prototype&&s.next&&(m0(s)!==v0&&(z$?z$(s,v0):jY(s[b0])||$X(s,b0,Xue)),H$(s,d,!0)),Jue&&i==`values`&&m&&m.name!==`values`&&(Yue?AX(p,`name`,`values`):(f=!0,h=function(){return pY(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(y0||f||!(l in p))&&$X(p,l,c[l]);else kZ({target:t,proto:!0,forced:y0||f},c);return p[b0]!==h&&$X(p,b0,h,{name:i}),G$[t]=h,c},Zue=JX.set,Que=JX.getterFor(`Array Iterator`),S0=x0(Array,`Array`,(function(e,t){Zue(this,{type:`Array Iterator`,target:AY(e),index:0,kind:t})}),(function(){var e=Que(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);G$.Arguments=G$.Array,lQ(`keys`),lQ(`values`),lQ(`entries`);var $ue=p$.charAt,ede=JX.set,tde=JX.getterFor(`String Iterator`);x0(String,`String`,(function(e){ede(this,{type:`String Iterator`,string:LZ(e),index:0})}),(function(){var e,t=tde(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$ue(n,r),t.index+=e.length,{value:e,done:!1})}));var C0=function(e,t,n){var r=_X(t);r in e?kX.f(e,r,_Y(0,n)):e[r]=n},nde=Z.Array,rde=Math.max,w0=gZ.f,T0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ide={f:function(e){return T0&&wY(e)==`Window`?function(e){try{return w0(e)}catch{return function(e,t,n){for(var r=cZ(e),i=aZ(void 0,r),a=aZ(r,r),o=nde(rde(a-i,0)),s=0;i<a;i++,s++)C0(o,s,e[i]);return o.length=s,o}(T0)}}(e):w0(AY(e))}},E0=uY((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),D0=Object.isExtensible,O0=uY((function(){D0(1)}))||E0?function(e){return!!MY(e)&&(!E0||wY(e)!=`ArrayBuffer`)&&(!D0||D0(e))}:D0,ade=!uY((function(){return Object.isExtensible(Object.preventExtensions({}))})),k0=oY((function(e){var t=kX.f,n=!1,r=lX(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=gZ.f,t=Q([].splice),i={};i[r]=1,e(i).length&&(gZ.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},kZ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:ide.f}))},fastKey:function(e,t){if(!MY(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!aX(e,r)){if(!O0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!aX(e,r)){if(!O0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return ade&&n&&O0(e)&&!aX(e,r)&&a(e),e}};BX[r]=!0})),A0=k0.getWeakData,ode=JX.set,sde=JX.getterFor,cde=OQ.find,lde=OQ.findIndex,ude=Q([].splice),dde=0,j0=function(e){return e.frozen||=new M0},M0=function(){this.entries=[]},N0=function(e,t){return cde(e.entries,(function(e){return e[0]===t}))};M0.prototype={get:function(e){var t=N0(this,e);if(t)return t[1]},has:function(e){return!!N0(this,e)},set:function(e,t){var n=N0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=lde(this.entries,(function(t){return t[0]===e}));return~t&&ude(this.entries,t,1),!!~t}};var P0,F0={getConstructor:function(e,t,n,r){var i=e((function(e,i){W$(e,a),ode(e,{type:t,id:dde++,frozen:void 0}),i!=null&&X$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=sde(t),s=function(e,t,n){var r=o(e),i=A0(EX(t),!0);return!0===i?j0(r).set(t,n):i[r.id]=n,e};return I$(a,{delete:function(e){var t=o(this);if(!MY(e))return!1;var n=A0(e);return!0===n?j0(t).delete(e):n&&aX(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!MY(e))return!1;var n=A0(e);return!0===n?j0(t).has(e):n&&aX(n,t.id)}}),I$(a,n?{get:function(e){var t=o(this);if(MY(e)){var n=A0(e);return!0===n?j0(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},I0=JX.enforce,fde=!Z.ActiveXObject&&`ActiveXObject`in Z,L0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},pde=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Z[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=Q(s[e]);$X(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!MY(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!MY(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!MY(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(DZ(e,!jY(o)||!(i||s.forEach&&!uY((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),k0.enable();else if(DZ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=uY((function(){d.has(1)})),m=i1((function(e){new o(e)})),h=!i&&uY((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){W$(e,s);var n=function(e,t,n){var r,i;return z$&&jY(r=t.constructor)&&r!==n&&MY(i=r.prototype)&&i!==n.prototype&&z$(e,i),e}(new o,e,c);return t!=null&&X$(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,kZ({global:!0,forced:c!=o},l),H$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,L0,F0);if(LX&&fde){P0=F0.getConstructor(L0,`WeakMap`,!0),k0.enable();var R0=pde.prototype,z0=Q(R0.delete),B0=Q(R0.has),V0=Q(R0.get),H0=Q(R0.set);I$(R0,{delete:function(e){if(MY(e)&&!O0(e)){var t=I0(this);return t.frozen||=new P0,z0(this,e)||t.frozen.delete(e)}return z0(this,e)},has:function(e){if(MY(e)&&!O0(e)){var t=I0(this);return t.frozen||=new P0,B0(this,e)||t.frozen.has(e)}return B0(this,e)},get:function(e){if(MY(e)&&!O0(e)){var t=I0(this);return t.frozen||=new P0,B0(this,e)?V0(this,e):t.frozen.get(e)}return V0(this,e)},set:function(e,t){if(MY(e)&&!O0(e)){var n=I0(this);n.frozen||=new P0,B0(this,e)?H0(this,e,t):n.frozen.set(e,t)}else H0(this,e,t);return this}})}var U0={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},W0=bX(`span`).classList,G0=W0&&W0.constructor&&W0.constructor.prototype,mde=G0===Object.prototype?void 0:G0,K0=mX(`iterator`),q0=mX(`toStringTag`),J0=S0.values,Y0=function(e,t){if(e){if(e[K0]!==J0)try{AX(e,K0,J0)}catch{e[K0]=J0}if(e[q0]||AX(e,q0,t),U0[t]){for(var n in S0)if(e[n]!==S0[n])try{AX(e,n,S0[n])}catch{e[n]=S0[n]}}}};for(var X0 in U0)Y0(Z[X0]&&Z[X0].prototype,X0);Y0(mde,`DOMTokenList`);var hde=QX.EXISTS,gde=kX.f,Z0=Function.prototype,_de=Q(Z0.toString),Q0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,vde=Q(Q0.exec);dY&&!hde&&gde(Z0,`name`,{configurable:!0,get:function(){try{return vde(Q0,_de(this))[1]}catch{return``}}});var yde=mX(`species`),bde=VY>=51||!uY((function(){var e=[];return(e.constructor={})[yde]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),xde=mX(`species`),$0=Z.Array,Sde=Math.max;function e2(e){return e.getMenuConfig(`uploadVideo`)}kZ({target:`Array`,proto:!0,forced:!bde},{slice:function(e,t){var n,r,i,a=AY(this),o=cZ(a),s=aZ(e,o),c=aZ(t===void 0?o:t,o);if(mQ(a)&&(n=a.constructor,(SQ(n)&&(n===$0||mQ(n.prototype))||MY(n)&&(n=n[xde])===null)&&(n=void 0),n===$0||n===void 0))return a1(a,s,c);for(r=new(n===void 0?$0:n)(Sde(c-s,0)),i=0;s<c;s++,i++)s in a&&C0(r,i,a[s]);return r.length=i,r}});var t2=new WeakMap;function Cde(e,t){return tY(this,void 0,void 0,(function(){var n,r,i,a;return nY(this,(function(o){switch(o.label){case 0:return n=function(e){var t=t2.get(e);if(t!=null)return t;var n=e2(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=$T(eY(eY({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n){return s0(e,t,n)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){var u=l.url,d=u===void 0?``:u,f=l.poster;s0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),t2.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}var wde=function(){function e(){this.title=q(`videoModule.uploadVideo`),this.iconSvg=`<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n){return s0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=V(`body`),c=V(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){(function(e,t){var n,r;tY(this,void 0,void 0,(function(){var i,a,o,s,c,l;return nY(this,(function(u){switch(u.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=e2(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=iY(i),u.label=2;case 2:return[4,o.next()];case 3:return(s=u.sent()).done?[3,8]:(c=s.value,a?[4,a(c,(function(t,n){return s0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,Cde(e,c)];case 6:u.sent(),u.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=u.sent(),n={error:l},[3,15];case 10:return u.trys.push([10,,13,14]),s&&!s.done&&(r=o.return)?[4,r.call(o)]:[3,12];case 11:u.sent(),u.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))})(e,c[0].files)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!R.isCollapsed(t)||!!K.getSelectedElems(e).some((function(t){var n=K.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadVideo`)},e}(),Tde=QX.PROPER,n2=RegExp.prototype,r2=n2.toString,Ede=Q(IQ),Dde=uY((function(){return r2.call({source:`a`,flags:`b`})!=`/a/b`})),Ode=Tde&&r2.name!=`toString`;function i2(){return P$(`w-e-insert-video`)}(Dde||Ode)&&$X(RegExp.prototype,`toString`,(function(){var e=EX(this),t=LZ(e.source),n=e.flags;return`/`+t+`/`+LZ(n===void 0&&FY(n2,e)&&!(`flags`in n2)?Ede(e):n)}),{unsafe:!0});var kde=function(){function e(){this.title=q(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=i2(),this.heightInputId=i2(),this.buttonId=i2()}return e.prototype.getSelectedVideoNode=function(e){return K.getSelectedNodeByType(e,`video`)},e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return e.selection==null||this.getSelectedVideoNode(e)==null},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,i=t.buttonId,a=rY(zT(q(`videoModule.width`),n,`auto`),2),o=a[0],s=V(a[1]),c=rY(zT(q(`videoModule.height`),r,`auto`),2),l=c[0],u=V(c[1]),d=rY(BT(i,q(`videoModule.ok`)),1)[0];if(this.$content==null){var f=V(`<div></div>`);f.on(`click`,`#`+i,(function(t){t.preventDefault();var i=f.find(`#`+n).val().trim(),a=f.find(`#`+r).val().trim(),o=parseInt(i),s=parseInt(a),c=o?o.toString():`auto`,l=s?s.toString():`auto`;e.restoreSelection(),B.setNodes(e,{width:c,height:l},{match:function(e){return K.checkNodeType(e,`video`)}}),e.hidePanelOrModal()})),this.$content=f}var p=this.$content;p.empty(),p.append(o),p.append(l),p.append(d);var m=this.getSelectedVideoNode(e);if(m==null)return p[0];var h=m.width,g=h===void 0?`auto`:h,_=m.height,v=_===void 0?`auto`:_;return s.val(g),u.val(v),setTimeout((function(){s.focus()})),p[0]},e}(),Ade={renderElems:[XZ],elemsToHtml:[ZZ],preParseHtml:[dQ],parseElemsHtml:[FQ],menus:[{key:`insertVideo`,factory:function(){return new Bue},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new wde},config:{server:``,fieldName:`wangeditor-uploaded-video`,maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:[`video/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+` upload error`,t,n)}}},{key:`editVideoSize`,factory:function(){return new kde}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`video`||t(e)},r.normalizeNode=function(e){var t=rY(e,2),i=t[0],a=t[1];return K.getNodeType(i)===`video`&&K.isLastNode(r,i)&&B.insertNodes(r,K.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};BE(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),BE(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var a2=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function o2(e){var t={exports:{}};return e(t,t.exports),t.exports}var s2,c2,l2=function(e){return e&&e.Math==Math&&e},$=l2(typeof globalThis==`object`&&globalThis)||l2(typeof window==`object`&&window)||l2(typeof self==`object`&&self)||l2(typeof a2==`object`&&a2)||function(){return this}()||Function(`return this`)(),u2=function(e){try{return!!e()}catch{return!0}},d2=!u2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),f2=Function.prototype.call,p2=f2.bind?f2.bind(f2):function(){return f2.apply(f2,arguments)},m2={}.propertyIsEnumerable,h2=Object.getOwnPropertyDescriptor,jde={f:h2&&!m2.call({1:2},1)?function(e){var t=h2(this,e);return!!t&&t.enumerable}:m2},g2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_2=Function.prototype,v2=_2.bind,y2=_2.call,Mde=v2&&v2.bind(y2),b2=v2?function(e){return e&&Mde(y2,e)}:function(e){return e&&function(){return y2.apply(e,arguments)}},Nde=b2({}.toString),Pde=b2(``.slice),x2=function(e){return Pde(Nde(e),8,-1)},S2=$.Object,Fde=b2(``.split),C2=u2((function(){return!S2(`z`).propertyIsEnumerable(0)}))?function(e){return x2(e)==`String`?Fde(e,``):S2(e)}:S2,Ide=$.TypeError,w2=function(e){if(e==null)throw Ide(`Can't call method on `+e);return e},T2=function(e){return C2(w2(e))},E2=function(e){return typeof e==`function`},D2=function(e){return typeof e==`object`?e!==null:E2(e)},Lde=function(e){return E2(e)?e:void 0},O2=function(e,t){return arguments.length<2?Lde($[e]):$[e]&&$[e][t]},k2=b2({}.isPrototypeOf),A2=O2(`navigator`,`userAgent`)||``,j2=$.process,M2=$.Deno,N2=j2&&j2.versions||M2&&M2.version,P2=N2&&N2.v8;P2&&(c2=(s2=P2.split(`.`))[0]>0&&s2[0]<4?1:+(s2[0]+s2[1])),!c2&&A2&&(!(s2=A2.match(/Edge\/(\d+)/))||s2[1]>=74)&&(s2=A2.match(/Chrome\/(\d+)/))&&(c2=+s2[1]);var F2=c2,I2=!!Object.getOwnPropertySymbols&&!u2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&F2&&F2<41})),L2=I2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Rde=$.Object,R2=L2?function(e){return typeof e==`symbol`}:function(e){var t=O2(`Symbol`);return E2(t)&&k2(t.prototype,Rde(e))},zde=$.String,z2=function(e){try{return zde(e)}catch{return`Object`}},Bde=$.TypeError,B2=function(e){if(E2(e))return e;throw Bde(z2(e)+` is not a function`)},V2=function(e,t){var n=e[t];return n==null?void 0:B2(n)},Vde=$.TypeError,Hde=Object.defineProperty,H2=function(e,t){try{Hde($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},U2=$[`__core-js_shared__`]||H2(`__core-js_shared__`,{}),W2=o2((function(e){(e.exports=function(e,t){return U2[e]||(U2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ude=$.Object,G2=function(e){return Ude(w2(e))},Wde=b2({}.hasOwnProperty),K2=Object.hasOwn||function(e,t){return Wde(G2(e),t)},Gde=0,Kde=Math.random(),qde=b2(1 .toString),q2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+qde(++Gde+Kde,36)},J2=W2(`wks`),Y2=$.Symbol,X2=Y2&&Y2.for,Jde=L2?Y2:Y2&&Y2.withoutSetter||q2,Z2=function(e){if(!K2(J2,e)||!I2&&typeof J2[e]!=`string`){var t=`Symbol.`+e;I2&&K2(Y2,e)?J2[e]=Y2[e]:J2[e]=L2&&X2?X2(t):Jde(t)}return J2[e]},Yde=$.TypeError,Xde=Z2(`toPrimitive`),Q2=function(e){var t=function(e,t){if(!D2(e)||R2(e))return e;var n,r=V2(e,Xde);if(r){if(t===void 0&&(t=`default`),n=p2(r,e,t),!D2(n)||R2(n))return n;throw Yde(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&E2(n=e.toString)&&!D2(r=p2(n,e))||E2(n=e.valueOf)&&!D2(r=p2(n,e))||t!==`string`&&E2(n=e.toString)&&!D2(r=p2(n,e)))return r;throw Vde(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return R2(t)?t:t+``},$2=$.document,Zde=D2($2)&&D2($2.createElement),e4=function(e){return Zde?$2.createElement(e):{}},t4=!d2&&!u2((function(){return Object.defineProperty(e4(`div`),`a`,{get:function(){return 7}}).a!=7})),n4=Object.getOwnPropertyDescriptor,r4={f:d2?n4:function(e,t){if(e=T2(e),t=Q2(t),t4)try{return n4(e,t)}catch{}if(K2(e,t))return g2(!p2(jde.f,e,t),e[t])}},Qde=$.String,$de=$.TypeError,i4=function(e){if(D2(e))return e;throw $de(Qde(e)+` is not an object`)},efe=$.TypeError,a4=Object.defineProperty,o4={f:d2?a4:function(e,t,n){if(i4(e),t=Q2(t),i4(n),t4)try{return a4(e,t,n)}catch{}if(`get`in n||`set`in n)throw efe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},s4=d2?function(e,t,n){return o4.f(e,t,g2(1,n))}:function(e,t,n){return e[t]=n,e},tfe=b2(Function.toString);E2(U2.inspectSource)||(U2.inspectSource=function(e){return tfe(e)});var c4,l4,u4,d4=U2.inspectSource,f4=$.WeakMap,p4=E2(f4)&&/native code/.test(d4(f4)),m4=W2(`keys`),h4=function(e){return m4[e]||(m4[e]=q2(e))},g4={},_4=$.TypeError,nfe=$.WeakMap;if(p4||U2.state){var v4=U2.state||=new nfe,rfe=b2(v4.get),y4=b2(v4.has),ife=b2(v4.set);c4=function(e,t){if(y4(v4,e))throw new _4(`Object already initialized`);return t.facade=e,ife(v4,e,t),t},l4=function(e){return rfe(v4,e)||{}},u4=function(e){return y4(v4,e)}}else{var b4=h4(`state`);g4[b4]=!0,c4=function(e,t){if(K2(e,b4))throw new _4(`Object already initialized`);return t.facade=e,s4(e,b4,t),t},l4=function(e){return K2(e,b4)?e[b4]:{}},u4=function(e){return K2(e,b4)}}var x4={set:c4,get:l4,has:u4,enforce:function(e){return u4(e)?l4(e):c4(e,{})},getterFor:function(e){return function(t){var n;if(!D2(t)||(n=l4(t)).type!==e)throw _4(`Incompatible receiver, `+e+` required`);return n}}},S4=Function.prototype,afe=d2&&Object.getOwnPropertyDescriptor,C4=K2(S4,`name`),w4={EXISTS:C4,PROPER:C4&&function(){}.name===`something`,CONFIGURABLE:C4&&(!d2||d2&&afe(S4,`name`).configurable)},T4=o2((function(e){var t=w4.CONFIGURABLE,n=x4.get,r=x4.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;E2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!K2(a,`name`)||t&&a.name!==d)&&s4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:H2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:s4(e,n,a))})(Function.prototype,`toString`,(function(){return E2(this)&&n(this).source||d4(this)}))})),ofe=Math.ceil,sfe=Math.floor,E4=function(e){var t=+e;return t!=t||t===0?0:(t>0?sfe:ofe)(t)},cfe=Math.max,lfe=Math.min,D4=function(e,t){var n=E4(e);return n<0?cfe(n+t,0):lfe(n,t)},ufe=Math.min,O4=function(e){return e>0?ufe(E4(e),9007199254740991):0},k4=function(e){return O4(e.length)},dfe=function(e){return function(t,n,r){var i,a=T2(t),o=k4(a),s=D4(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ffe=dfe(!1),A4=b2([].push),j4=function(e,t){var n,r=T2(e),i=0,a=[];for(n in r)!K2(g4,n)&&K2(r,n)&&A4(a,n);for(;t.length>i;)K2(r,n=t[i++])&&(~ffe(a,n)||A4(a,n));return a},M4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],pfe=M4.concat(`length`,`prototype`),N4={f:Object.getOwnPropertyNames||function(e){return j4(e,pfe)}},mfe={f:Object.getOwnPropertySymbols},hfe=b2([].concat),gfe=O2(`Reflect`,`ownKeys`)||function(e){var t=N4.f(i4(e)),n=mfe.f;return n?hfe(t,n(e)):t},_fe=function(e,t){for(var n=gfe(t),r=o4.f,i=r4.f,a=0;a<n.length;a++){var o=n[a];K2(e,o)||r(e,o,i(t,o))}},vfe=/#|\.prototype\./,P4=function(e,t){var n=bfe[yfe(e)];return n==Sfe||n!=xfe&&(E2(t)?u2(t):!!t)},yfe=P4.normalize=function(e){return String(e).replace(vfe,`.`).toLowerCase()},bfe=P4.data={},xfe=P4.NATIVE=`N`,Sfe=P4.POLYFILL=`P`,F4=P4,Cfe=r4.f,I4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||H2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Cfe(n,r))&&o.value:n[r],!F4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;_fe(a,i)}(e.sham||i&&i.sham)&&s4(a,`sham`,!0),T4(n,r,a,e)}},L4=Array.isArray||function(e){return x2(e)==`Array`},R4={};R4[Z2(`toStringTag`)]=`z`;var z4=String(R4)===`[object z]`,wfe=Z2(`toStringTag`),Tfe=$.Object,Efe=x2(function(){return arguments}())==`Arguments`,B4=z4?x2:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Tfe(e),wfe))==`string`?n:Efe?x2(t):(r=x2(t))==`Object`&&E2(t.callee)?`Arguments`:r},V4=function(){},Dfe=[],H4=O2(`Reflect`,`construct`),U4=/^\s*(?:class|function)\b/,Ofe=b2(U4.exec),kfe=!U4.exec(V4),W4=function(e){if(!E2(e))return!1;try{return H4(V4,Dfe,e),!0}catch{return!1}},G4=!H4||u2((function(){var e;return W4(W4.call)||!W4(Object)||!W4((function(){e=!0}))||e}))?function(e){if(!E2(e))return!1;switch(B4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return kfe||!!Ofe(U4,d4(e))}:W4,K4=function(e,t,n){var r=Q2(t);r in e?o4.f(e,r,g2(0,n)):e[r]=n},Afe=Z2(`species`),q4=b2([].slice),jfe=F2>=51||!u2((function(){var e=[];return(e.constructor={})[Afe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Mfe=Z2(`species`),J4=$.Array,Nfe=Math.max;I4({target:`Array`,proto:!0,forced:!jfe},{slice:function(e,t){var n,r,i,a=T2(this),o=k4(a),s=D4(e,o),c=D4(t===void 0?o:t,o);if(L4(a)&&(n=a.constructor,(G4(n)&&(n===J4||L4(n.prototype))||D2(n)&&(n=n[Mfe])===null)&&(n=void 0),n===J4||n===void 0))return q4(a,s,c);for(r=new(n===void 0?J4:n)(Nfe(c-s,0)),i=0;s<c;s++,i++)s in a&&K4(r,i,a[s]);return r.length=i,r}});var Pfe=z4?{}.toString:function(){return`[object `+B4(this)+`]`};z4||T4(Object.prototype,`toString`,Pfe,{unsafe:!0});var Y4,Ffe=$.String,X4=function(e){if(B4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Ffe(e)},Z4=function(){var e=i4(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},Q4=$.RegExp,$4=u2((function(){var e=Q4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Ife=$4||u2((function(){return!Q4(`a`,`y`).sticky})),e3={BROKEN_CARET:$4||u2((function(){var e=Q4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Ife,UNSUPPORTED_Y:$4},Lfe=Object.keys||function(e){return j4(e,M4)},Rfe=d2?Object.defineProperties:function(e,t){i4(e);for(var n,r=T2(t),i=Lfe(t),a=i.length,o=0;a>o;)o4.f(e,n=i[o++],r[n]);return e},t3=O2(`document`,`documentElement`),n3=h4(`IE_PROTO`),r3=function(){},i3=function(e){return`<script>`+e+`<\/script>`},a3=function(e){e.write(i3(``)),e.close();var t=e.parentWindow.Object;return e=null,t},o3=function(){try{Y4=new ActiveXObject(`htmlfile`)}catch{}var e,t;o3=typeof document<`u`?document.domain&&Y4?a3(Y4):((t=e4(`iframe`)).style.display=`none`,t3.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(i3(`document.F=Object`)),e.close(),e.F):a3(Y4);for(var n=M4.length;n--;)delete o3.prototype[M4[n]];return o3()};g4[n3]=!0;var s3,c3,l3=Object.create||function(e,t){var n;return e===null?n=o3():(r3.prototype=i4(e),n=new r3,r3.prototype=null,n[n3]=e),t===void 0?n:Rfe(n,t)},zfe=$.RegExp,Bfe=u2((function(){var e=zfe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Vfe=$.RegExp,Hfe=u2((function(){var e=Vfe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Ufe=x4.get,Wfe=W2(`native-string-replace`,String.prototype.replace),u3=RegExp.prototype.exec,d3=u3,Gfe=b2(``.charAt),Kfe=b2(``.indexOf),qfe=b2(``.replace),f3=b2(``.slice),p3=(c3=/b*/g,p2(u3,s3=/a/,`a`),p2(u3,c3,`a`),s3.lastIndex!==0||c3.lastIndex!==0),m3=e3.BROKEN_CARET,h3=/()??/.exec(``)[1]!==void 0;(p3||h3||m3||Bfe||Hfe)&&(d3=function(e){var t,n,r,i,a,o,s,c=this,l=Ufe(c),u=X4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=p2(d3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=m3&&c.sticky,m=p2(Z4,c),h=c.source,g=0,_=u;if(p&&(m=qfe(m,`y`,``),Kfe(m,`g`)===-1&&(m+=`g`),_=f3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Gfe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),h3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),p3&&(r=c.lastIndex),i=p2(u3,p?n:c,_),p?i?(i.input=f3(i.input,g),i[0]=f3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:p3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),h3&&i&&i.length>1&&p2(Wfe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=l3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var g3=d3;I4({target:`RegExp`,proto:!0,forced:/./.exec!==g3},{exec:g3});var _3=Function.prototype,v3=_3.apply,Jfe=_3.bind,y3=_3.call,b3=typeof Reflect==`object`&&Reflect.apply||(Jfe?y3.bind(v3):function(){return y3.apply(v3,arguments)}),Yfe=Z2(`species`),x3=RegExp.prototype,Xfe=Z2(`match`),Zfe=$.TypeError,Qfe=Z2(`species`),S3=function(e,t){var n,r=i4(e).constructor;return r===void 0||(n=i4(r)[Qfe])==null?t:function(e){if(G4(e))return e;throw Zfe(z2(e)+` is not a constructor`)}(n)},$fe=b2(``.charAt),C3=b2(``.charCodeAt),epe=b2(``.slice),w3=function(e){return function(t,n){var r,i,a=X4(w2(t)),o=E4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=C3(a,o))<55296||r>56319||o+1===s||(i=C3(a,o+1))<56320||i>57343?e?$fe(a,o):r:e?epe(a,o,o+2):i-56320+(r-55296<<10)+65536}},T3={codeAt:w3(!1),charAt:w3(!0)},tpe=T3.charAt,npe=function(e,t,n){return t+(n?tpe(e,t).length:1)},rpe=$.Array,ipe=Math.max,E3=function(e,t,n){for(var r=k4(e),i=D4(t,r),a=D4(n===void 0?r:n,r),o=rpe(ipe(a-i,0)),s=0;i<a;i++,s++)K4(o,s,e[i]);return o.length=s,o},ape=$.TypeError,D3=function(e,t){var n=e.exec;if(E2(n)){var r=p2(n,e,t);return r!==null&&i4(r),r}if(x2(e)===`RegExp`)return p2(g3,e,t);throw ape(`RegExp#exec called on incompatible receiver`)},O3=e3.UNSUPPORTED_Y,ope=Math.min,k3=[].push,spe=b2(/./.exec),A3=b2(k3),j3=b2(``.slice);(function(e,t,n,r){var i=Z2(e),a=!u2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!u2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Yfe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=b2(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=X4(w2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!D2(r=e)||!((i=r[Xfe])===void 0?x2(r)==`RegExp`:i))return p2(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=p2(g3,p,a))&&!((c=p.lastIndex)>f&&(A3(u,j3(a,f,s.index)),s.length>1&&s.index<a.length&&b3(k3,u,E3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&spe(p,``)||A3(u,``):A3(u,j3(a,f)),u.length>o?E3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:p2(t,this,e,n)}:t,[function(t,n){var i=w2(this),a=t==null?void 0:V2(t,e);return a?p2(a,t,i,n):p2(r,X4(i),t,n)},function(e,i){var a=i4(this),o=X4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=S3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(O3?`g`:`y`),d=new c(O3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return D3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=O3?0:m;var g,_=D3(d,O3?j3(o,m):o);if(_===null||(g=ope(O4(d.lastIndex+(O3?m:0)),o.length))===p)m=npe(o,m,l);else{if(A3(h,j3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(A3(h,_[v]),h.length===f)return h;m=p=g}}return A3(h,j3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=b2(e),c=t.exec;return c===g3||c===x3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));T4(String.prototype,e,c[0]),T4(x3,i,c[1])}r&&s4(x3[i],`sham`,!0)})(`split`,0,!!u2((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),O3);var M3=function(){return M3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},M3.apply(this,arguments)};function N3(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function P3(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function cpe(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var F3=Z2(`unscopables`),I3=Array.prototype;I3[F3]??o4.f(I3,F3,{configurable:!0,value:l3(null)});var L3,R3,z3,B3=function(e){I3[F3][e]=!0},V3={},lpe=!u2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),H3=h4(`IE_PROTO`),U3=$.Object,upe=U3.prototype,W3=lpe?U3.getPrototypeOf:function(e){var t=G2(e);if(K2(t,H3))return t[H3];var n=t.constructor;return E2(n)&&t instanceof n?n.prototype:t instanceof U3?upe:null},G3=Z2(`iterator`),K3=!1;[].keys&&(`next`in(z3=[].keys())?(R3=W3(W3(z3)))!==Object.prototype&&(L3=R3):K3=!0),(L3==null||u2((function(){var e={};return L3[G3].call(e)!==e})))&&(L3={}),E2(L3[G3])||T4(L3,G3,(function(){return this}));var q3={IteratorPrototype:L3,BUGGY_SAFARI_ITERATORS:K3},dpe=o4.f,J3=Z2(`toStringTag`),Y3=function(e,t,n){e&&!K2(e=n?e:e.prototype,J3)&&dpe(e,J3,{configurable:!0,value:t})},fpe=q3.IteratorPrototype,ppe=function(){return this},mpe=$.String,hpe=$.TypeError,X3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=b2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return i4(n),function(e){if(typeof e==`object`||E2(e))return e;throw hpe(`Can't set `+mpe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),gpe=w4.PROPER,_pe=w4.CONFIGURABLE,Z3=q3.IteratorPrototype,Q3=q3.BUGGY_SAFARI_ITERATORS,$3=Z2(`iterator`),vpe=function(){return this},e6=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=l3(fpe,{next:g2(1,n)}),Y3(e,i,!1),V3[i]=ppe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Q3&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[$3]||p[`@@iterator`]||i&&p[i],h=!Q3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=W3(g.call(new e)))!==Object.prototype&&s.next&&(W3(s)!==Z3&&(X3?X3(s,Z3):E2(s[$3])||T4(s,$3,vpe)),Y3(s,d,!0)),gpe&&i==`values`&&m&&m.name!==`values`&&(_pe?s4(p,`name`,`values`):(f=!0,h=function(){return p2(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Q3||f||!(l in p))&&T4(p,l,c[l]);else I4({target:t,proto:!0,forced:Q3||f},c);return p[$3]!==h&&T4(p,$3,h,{name:i}),V3[t]=h,c},ype=x4.set,bpe=x4.getterFor(`Array Iterator`),t6=e6(Array,`Array`,(function(e,t){ype(this,{type:`Array Iterator`,target:T2(e),index:0,kind:t})}),(function(){var e=bpe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);V3.Arguments=V3.Array,B3(`keys`),B3(`values`),B3(`entries`);var xpe=T3.charAt,Spe=x4.set,Cpe=x4.getterFor(`String Iterator`);e6(String,`String`,(function(e){Spe(this,{type:`String Iterator`,string:X4(e),index:0})}),(function(){var e,t=Cpe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=xpe(n,r),t.index+=e.length,{value:e,done:!1})}));var n6=function(e,t,n){for(var r in t)T4(e,r,t[r],n);return e},r6=N4.f,i6=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wpe={f:function(e){return i6&&x2(e)==`Window`?function(e){try{return r6(e)}catch{return E3(i6)}}(e):r6(T2(e))}},a6=u2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),o6=Object.isExtensible,s6=u2((function(){o6(1)}))||a6?function(e){return!!D2(e)&&(!a6||x2(e)!=`ArrayBuffer`)&&(!o6||o6(e))}:o6,Tpe=!u2((function(){return Object.isExtensible(Object.preventExtensions({}))})),c6=o2((function(e){var t=o4.f,n=!1,r=q2(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+ i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=N4.f,t=b2([].splice),i={};i[r]=1,e(i).length&&(N4.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},I4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:wpe.f}))},fastKey:function(e,t){if(!D2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!K2(e,r)){if(!s6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!K2(e,r)){if(!s6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Tpe&&n&&s6(e)&&!K2(e,r)&&a(e),e}};g4[r]=!0})),l6=b2(b2.bind),u6=function(e,t){return B2(e),t===void 0?e:l6?l6(e,t):function(){return e.apply(t,arguments)}},Epe=Z2(`iterator`),Dpe=Array.prototype,Ope=Z2(`iterator`),d6=function(e){if(e!=null)return V2(e,Ope)||V2(e,`@@iterator`)||V3[B4(e)]},kpe=$.TypeError,f6=function(e,t,n){var r,i;i4(e);try{if(!(r=V2(e,`return`))){if(t===`throw`)throw n;return n}r=p2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return i4(r),n},Ape=$.TypeError,p6=function(e,t){this.stopped=e,this.result=t},m6=p6.prototype,h6=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=u6(t,d),g=function(e){return r&&f6(r,`normal`,e),new p6(!0,e)},_=function(e){return f?(i4(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=d6(e)))throw Ape(z2(e)+` is not iterable`);if((u=i)!==void 0&&(V3.Array===u||Dpe[Epe]===u)){for(a=0,o=k4(e);o>a;a++)if((s=_(e[a]))&&k2(m6,s))return s;return new p6(!1)}r=function(e,t){var n=arguments.length<2?d6(e):t;if(B2(n))return i4(p2(n,e));throw kpe(z2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=p2(c,r)).done;){try{s=_(l.value)}catch(e){f6(r,`throw`,e)}if(typeof s==`object`&&s&&k2(m6,s))return s}return new p6(!1)},jpe=$.TypeError,g6=function(e,t){if(k2(t,e))return e;throw jpe(`Incorrect invocation`)},_6=Z2(`iterator`),v6=!1;try{var Mpe=0,y6={next:function(){return{done:!!Mpe++}},return:function(){v6=!0}};y6[_6]=function(){return this},Array.from(y6,(function(){throw 2}))}catch{}var b6=function(e,t){if(!t&&!v6)return!1;var n=!1;try{var r={};r[_6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Npe=Z2(`species`),x6=$.Array,Ppe=function(e,t){return new(function(e){var t;return L4(e)&&(t=e.constructor,(G4(t)&&(t===x6||L4(t.prototype))||D2(t)&&(t=t[Npe])===null)&&(t=void 0)),t===void 0?x6:t}(e))(t===0?0:t)},S6=b2([].push),C6=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=G2(c),h=C2(m),g=u6(l,u),_=k4(h),v=0,y=d||Ppe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:S6(b,f)}else switch(e){case 4:return!1;case 7:S6(b,f)}return a?-1:r||i?i:b}},w6={forEach:C6(0),map:C6(1),filter:C6(2),some:C6(3),every:C6(4),find:C6(5),findIndex:C6(6),filterReject:C6(7)},T6=c6.getWeakData,Fpe=x4.set,Ipe=x4.getterFor,Lpe=w6.find,Rpe=w6.findIndex,zpe=b2([].splice),Bpe=0,E6=function(e){return e.frozen||=new D6},D6=function(){this.entries=[]},O6=function(e,t){return Lpe(e.entries,(function(e){return e[0]===t}))};D6.prototype={get:function(e){var t=O6(this,e);if(t)return t[1]},has:function(e){return!!O6(this,e)},set:function(e,t){var n=O6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Rpe(this.entries,(function(t){return t[0]===e}));return~t&&zpe(this.entries,t,1),!!~t}};var k6,A6={getConstructor:function(e,t,n,r){var i=e((function(e,i){g6(e,a),Fpe(e,{type:t,id:Bpe++,frozen:void 0}),i!=null&&h6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Ipe(t),s=function(e,t,n){var r=o(e),i=T6(i4(t),!0);return!0===i?E6(r).set(t,n):i[r.id]=n,e};return n6(a,{delete:function(e){var t=o(this);if(!D2(e))return!1;var n=T6(e);return!0===n?E6(t).delete(e):n&&K2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!D2(e))return!1;var n=T6(e);return!0===n?E6(t).has(e):n&&K2(n,t.id)}}),n6(a,n?{get:function(e){var t=o(this);if(D2(e)){var n=T6(e);return!0===n?E6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},j6=x4.enforce,Vpe=!$.ActiveXObject&&`ActiveXObject`in $,M6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Hpe=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=$[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=b2(s[e]);T4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!D2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!D2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!D2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(F4(e,!E2(o)||!(i||s.forEach&&!u2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),c6.enable();else if(F4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=u2((function(){d.has(1)})),m=b6((function(e){new o(e)})),h=!i&&u2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){g6(e,s);var n=function(e,t,n){var r,i;return X3&&E2(r=t.constructor)&&r!==n&&D2(i=r.prototype)&&i!==n.prototype&&X3(e,i),e}(new o,e,c);return t!=null&&h6(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,I4({global:!0,forced:c!=o},l),Y3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,M6,A6);if(p4&&Vpe){k6=A6.getConstructor(M6,`WeakMap`,!0),c6.enable();var N6=Hpe.prototype,P6=b2(N6.delete),F6=b2(N6.has),I6=b2(N6.get),L6=b2(N6.set);n6(N6,{delete:function(e){if(D2(e)&&!s6(e)){var t=j6(this);return t.frozen||=new k6,P6(this,e)||t.frozen.delete(e)}return P6(this,e)},has:function(e){if(D2(e)&&!s6(e)){var t=j6(this);return t.frozen||=new k6,F6(this,e)||t.frozen.has(e)}return F6(this,e)},get:function(e){if(D2(e)&&!s6(e)){var t=j6(this);return t.frozen||=new k6,F6(this,e)?I6(this,e):t.frozen.get(e)}return I6(this,e)},set:function(e,t){if(D2(e)&&!s6(e)){var n=j6(this);n.frozen||=new k6,F6(this,e)?L6(this,e,t):n.frozen.set(e,t)}else L6(this,e,t);return this}})}var R6={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},z6=e4(`span`).classList,B6=z6&&z6.constructor&&z6.constructor.prototype,V6=B6===Object.prototype?void 0:B6,H6=Z2(`iterator`),U6=Z2(`toStringTag`),W6=t6.values,G6=function(e,t){if(e){if(e[H6]!==W6)try{s4(e,H6,W6)}catch{e[H6]=W6}if(e[U6]||s4(e,U6,t),R6[t]){for(var n in t6)if(e[n]!==t6[n])try{s4(e,n,t6[n])}catch{e[n]=t6[n]}}}};for(var K6 in R6)G6($[K6]&&$[K6].prototype,K6);G6(V6,`DOMTokenList`);var q6=function(e,t){var n=[][e];return!!n&&u2((function(){n.call(null,t||function(){throw 1},1)}))},Upe=w6.forEach,J6=q6(`forEach`)?[].forEach:function(e){return Upe(this,e,arguments.length>1?arguments[1]:void 0)},Y6=function(e){if(e&&e.forEach!==J6)try{s4(e,`forEach`,J6)}catch{e.forEach=J6}};for(var X6 in R6)R6[X6]&&Y6($[X6]&&$[X6].prototype);Y6(V6);var Z6,Q6,$6,e8,t8=$.Promise,n8=Z2(`species`),r8=/(?:ipad|iphone|ipod).*applewebkit/i.test(A2),i8=x2($.process)==`process`,a8=$.setImmediate,o8=$.clearImmediate,Wpe=$.process,s8=$.Dispatch,Gpe=$.Function,c8=$.MessageChannel,Kpe=$.String,l8=0,u8={};try{Z6=$.location}catch{}var d8=function(e){if(K2(u8,e)){var t=u8[e];delete u8[e],t()}},f8=function(e){return function(){d8(e)}},p8=function(e){d8(e.data)},m8=function(e){$.postMessage(Kpe(e),Z6.protocol+`//`+Z6.host)};a8&&o8||(a8=function(e){var t=q4(arguments,1);return u8[++l8]=function(){b3(E2(e)?e:Gpe(e),void 0,t)},Q6(l8),l8},o8=function(e){delete u8[e]},i8?Q6=function(e){Wpe.nextTick(f8(e))}:s8&&s8.now?Q6=function(e){s8.now(f8(e))}:c8&&!r8?(e8=($6=new c8).port2,$6.port1.onmessage=p8,Q6=u6(e8.postMessage,e8)):$.addEventListener&&E2($.postMessage)&&!$.importScripts&&Z6&&Z6.protocol!==`file:`&&!u2(m8)?(Q6=m8,$.addEventListener(`message`,p8,!1)):Q6=`onreadystatechange`in e4(`script`)?function(e){t3.appendChild(e4(`script`)).onreadystatechange=function(){t3.removeChild(this),d8(e)}}:function(e){setTimeout(f8(e),0)});var h8,g8,_8,v8,y8,b8,x8,S8,C8={set:a8,clear:o8},qpe=/ipad|iphone|ipod/i.test(A2)&&$.Pebble!==void 0,Jpe=/web0s(?!.*chrome)/i.test(A2),Ype=r4.f,w8=C8.set,T8=$.MutationObserver||$.WebKitMutationObserver,E8=$.document,D8=$.process,O8=$.Promise,k8=Ype($,`queueMicrotask`),A8=k8&&k8.value;A8||(h8=function(){var e,t;for(i8&&(e=D8.domain)&&e.exit();g8;){t=g8.fn,g8=g8.next;try{t()}catch(e){throw g8?v8():_8=void 0,e}}_8=void 0,e&&e.enter()},r8||i8||Jpe||!T8||!E8?!qpe&&O8&&O8.resolve?((x8=O8.resolve(void 0)).constructor=O8,S8=u6(x8.then,x8),v8=function(){S8(h8)}):i8?v8=function(){D8.nextTick(h8)}:(w8=u6(w8,$),v8=function(){w8(h8)}):(y8=!0,b8=E8.createTextNode(``),new T8(h8).observe(b8,{characterData:!0}),v8=function(){b8.data=y8=!y8}));var j8,M8,N8,P8,F8=A8||function(e){var t={fn:e,next:void 0};_8&&(_8.next=t),g8||(g8=t,v8()),_8=t},Xpe=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=B2(t),this.reject=B2(n)},I8={f:function(e){return new Xpe(e)}},L8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Zpe=typeof window==`object`,R8=C8.set,Qpe=Z2(`species`),z8=`Promise`,B8=x4.getterFor(z8),$pe=x4.set,eme=x4.getterFor(z8),V8=t8&&t8.prototype,H8=t8,U8=V8,W8=$.TypeError,G8=$.document,K8=$.process,q8=I8.f,tme=q8,nme=!!(G8&&G8.createEvent&&$.dispatchEvent),J8=E2($.PromiseRejectionEvent),Y8=!1,X8=F4(z8,(function(){var e=d4(H8),t=e!==String(H8);if(!t&&F2===66)return!0;if(F2>=51&&/native code/.test(e))return!1;var n=new H8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Qpe]=r,!(Y8=n.then((function(){}))instanceof r)||!t&&Zpe&&!J8})),rme=X8||!b6((function(e){H8.all(e).catch((function(){}))})),Z8=function(e){var t;return!(!D2(e)||!E2(t=e.then))&&t},Q8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;F8((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&ame(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(W8(`Promise-chain cycle`)):(s=Z8(o))?p2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ime(e)}))}},$8=function(e,t,n){var r,i;nme?((r=G8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!J8&&(i=$[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=$.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},ime=function(e){p2(R8,$,(function(){var t,n=e.facade,r=e.value;if(e5(e)&&(t=L8((function(){i8?K8.emit(`unhandledRejection`,r,n):$8(`unhandledrejection`,n,r)})),e.rejection=i8||e5(e)?2:1,t.error))throw t.value}))},e5=function(e){return e.rejection!==1&&!e.parent},ame=function(e){p2(R8,$,(function(){var t=e.facade;i8?K8.emit(`rejectionHandled`,t):$8(`rejectionhandled`,t,e.value)}))},t5=function(e,t,n){return function(r){e(t,r,n)}},n5=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Q8(e,!0))},r5=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw W8(`Promise can't be resolved itself`);var r=Z8(t);r?F8((function(){var n={done:!1};try{p2(r,t,t5(r5,n,e),t5(n5,n,e))}catch(t){n5(n,t,e)}})):(e.value=t,e.state=1,Q8(e,!1))}catch(t){n5({done:!1},t,e)}}};if(X8&&(U8=(H8=function(e){g6(this,U8),B2(e),p2(j8,this);var t=B8(this);try{e(t5(r5,t),t5(n5,t))}catch(e){n5(t,e)}}).prototype,(j8=function(e){$pe(this,{type:z8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n6(U8,{then:function(e,t){var n=eme(this),r=n.reactions,i=q8(S3(this,H8));return i.ok=!E2(e)||e,i.fail=E2(t)&&t,i.domain=i8?K8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Q8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),M8=function(){var e=new j8,t=B8(e);this.promise=e,this.resolve=t5(r5,t),this.reject=t5(n5,t)},I8.f=q8=function(e){return e===H8||e===N8?new M8(e):tme(e)},E2(t8)&&V8!==Object.prototype)){P8=V8.then,Y8||(T4(V8,`then`,(function(e,t){var n=this;return new H8((function(e,t){p2(P8,n,e,t)})).then(e,t)}),{unsafe:!0}),T4(V8,`catch`,U8.catch,{unsafe:!0}));try{delete V8.constructor}catch{}X3&&X3(V8,U8)}I4({global:!0,wrap:!0,forced:X8},{Promise:H8}),Y3(H8,z8,!1),function(e){var t=O2(`Promise`),n=o4.f;d2&&t&&!t[n8]&&n(t,n8,{configurable:!0,get:function(){return this}})}(),N8=O2(z8),I4({target:z8,stat:!0,forced:X8},{reject:function(e){var t=q8(this);return p2(t.reject,void 0,e),t.promise}}),I4({target:z8,stat:!0,forced:X8},{resolve:function(e){return function(e,t){if(i4(e),D2(t)&&t.constructor===e)return t;var n=I8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),I4({target:z8,stat:!0,forced:rme},{all:function(e){var t=this,n=q8(t),r=n.resolve,i=n.reject,a=L8((function(){var n=B2(t.resolve),a=[],o=0,s=1;h6(e,(function(e){var c=o++,l=!1;s++,p2(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=q8(t),r=n.reject,i=L8((function(){var i=B2(t.resolve);h6(e,(function(e){p2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var ome=w4.PROPER,i5=RegExp.prototype,a5=i5.toString,sme=b2(Z4),cme=u2((function(){return a5.call({source:`a`,flags:`b`})!=`/a/b`})),lme=ome&&a5.name!=`toString`;(cme||lme)&&T4(RegExp.prototype,`toString`,(function(){var e=i4(this),t=X4(e.source),n=e.flags;return`/`+t+`/`+X4(n===void 0&&k2(i5,e)&&!(`flags`in i5)?sme(e):n)}),{unsafe:!0});var ume=w4.EXISTS,dme=o4.f,o5=Function.prototype,fme=b2(o5.toString),s5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,pme=b2(s5.exec);d2&&!ume&&dme(o5,`name`,{configurable:!0,get:function(){try{return pme(s5,fme(this))[1]}catch{return``}}});var c5=new WeakMap;function l5(e){return e.getMenuConfig(`uploadImage`)}function mme(e,t){return N3(this,void 0,void 0,(function(){return P3(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var i=r.result;if(i){var a=i.toString(),o=a.indexOf(`data:image`)===0?``:a;LN(e,a,t.name,o),n(`ok`)}}}))]}))}))}function hme(e,t){return N3(this,void 0,void 0,(function(){var n,r,i,a;return P3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=c5.get(e);if(t!=null)return t;var n=l5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=$T(M3(M3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return LN(e,t,n,r)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=n===void 0?``:n,i=t.alt,a=i===void 0?``:i,o=t.href;LN(e,r,a,o===void 0?``:o)}));else{var u=l.url,d=u===void 0?``:u,f=l.alt,p=f===void 0?``:f,m=l.href;LN(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),c5.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}function u5(e,t){var n,r;return N3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return P3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=l5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=cpe(i),p.label=2;case 2:return[4,c.next()];case 3:return(l=p.sent()).done?[3,10]:(u=l.value,d=u.size,s&&d<=s?[4,mme(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return LN(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,hme(e,u)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return f=p.sent(),n={error:f},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=c.return)?[4,r.call(c)]:[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 gme=b2([].join),_me=C2!=Object,vme=q6(`join`,`,`);I4({target:`Array`,proto:!0,forced:_me||!vme},{join:function(e){return gme(T2(this),e===void 0?`,`:e)}}),_d&&(V.fn.append=_d),id&&(V.fn.on=id),Cd&&(V.fn.remove=Cd),rd&&(V.fn.val=rd),Dd&&(V.fn.click=Dd),ld&&(V.fn.hide=ld);var yme=function(){function e(){this.title=q(`uploadImgModule.uploadImage`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>`,this.tag=`button`}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return RN(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadImage`)},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,i=r===void 0?[]:r,a=n.customBrowseAndUpload;if(a)a((function(t,n,r){return LN(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=V(`body`),c=V(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;u5(e,t)}))}},e}(),bme={menus:[{key:`uploadImage`,factory:function(){return new yme},config:{server:``,fieldName:`wangeditor-uploaded-image`,maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:[`image/*`],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error(`'`+e.name+`' upload failed`,t)},onError:function(e,t,n){console.error(`'`+e.name+`' upload error`,n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(RN(n))t(r);else if(r.getData(`text/plain`))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some((function(e){return function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e.type.split(`/`),1)[0]===`image`}))?u5(e,i):t(r)}},n}};BE(`en`,{highLightModule:{selectLang:`Language`}}),BE(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var d5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function f5(e){var t={exports:{}};return e(t,t.exports),t.exports}var p5,m5,h5=function(e){return e&&e.Math==Math&&e},g5=h5(typeof globalThis==`object`&&globalThis)||h5(typeof window==`object`&&window)||h5(typeof self==`object`&&self)||h5(typeof d5==`object`&&d5)||function(){return this}()||Function(`return this`)(),xme=Object.defineProperty,_5=function(e,t){try{xme(g5,e,{value:t,configurable:!0,writable:!0})}catch{g5[e]=t}return t},v5=g5[`__core-js_shared__`]||_5(`__core-js_shared__`,{}),y5=f5((function(e){(e.exports=function(e,t){return v5[e]||(v5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),b5=Function.prototype,x5=b5.bind,S5=b5.call,Sme=x5&&x5.bind(S5),C5=x5?function(e){return e&&Sme(S5,e)}:function(e){return e&&function(){return S5.apply(e,arguments)}},Cme=g5.TypeError,w5=function(e){if(e==null)throw Cme(`Can't call method on `+e);return e},wme=g5.Object,T5=function(e){return wme(w5(e))},Tme=C5({}.hasOwnProperty),E5=Object.hasOwn||function(e,t){return Tme(T5(e),t)},Eme=0,Dme=Math.random(),Ome=C5(1 .toString),D5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Ome(++Eme+Dme,36)},O5=function(e){return typeof e==`function`},kme=function(e){return O5(e)?e:void 0},k5=function(e,t){return arguments.length<2?kme(g5[e]):g5[e]&&g5[e][t]},A5=k5(`navigator`,`userAgent`)||``,j5=g5.process,M5=g5.Deno,N5=j5&&j5.versions||M5&&M5.version,P5=N5&&N5.v8;P5&&(m5=(p5=P5.split(`.`))[0]>0&&p5[0]<4?1:+(p5[0]+p5[1])),!m5&&A5&&(!(p5=A5.match(/Edge\/(\d+)/))||p5[1]>=74)&&(p5=A5.match(/Chrome\/(\d+)/))&&(m5=+p5[1]);var F5=m5,I5=function(e){try{return!!e()}catch{return!0}},L5=!!Object.getOwnPropertySymbols&&!I5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&F5&&F5<41})),R5=L5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,z5=y5(`wks`),B5=g5.Symbol,V5=B5&&B5.for,Ame=R5?B5:B5&&B5.withoutSetter||D5,H5=function(e){if(!E5(z5,e)||!L5&&typeof z5[e]!=`string`){var t=`Symbol.`+e;L5&&E5(B5,e)?z5[e]=B5[e]:z5[e]=R5&&V5?V5(t):Ame(t)}return z5[e]},U5={};U5[H5(`toStringTag`)]=`z`;var W5=String(U5)===`[object z]`,G5=!I5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),K5=function(e){return typeof e==`object`?e!==null:O5(e)},q5=g5.document,jme=K5(q5)&&K5(q5.createElement),J5=function(e){return jme?q5.createElement(e):{}},Y5=!G5&&!I5((function(){return Object.defineProperty(J5(`div`),`a`,{get:function(){return 7}}).a!=7})),Mme=g5.String,Nme=g5.TypeError,X5=function(e){if(K5(e))return e;throw Nme(Mme(e)+` is not an object`)},Z5=Function.prototype.call,Q5=Z5.bind?Z5.bind(Z5):function(){return Z5.apply(Z5,arguments)},$5=C5({}.isPrototypeOf),Pme=g5.Object,e7=R5?function(e){return typeof e==`symbol`}:function(e){var t=k5(`Symbol`);return O5(t)&&$5(t.prototype,Pme(e))},Fme=g5.String,t7=function(e){try{return Fme(e)}catch{return`Object`}},Ime=g5.TypeError,n7=function(e){if(O5(e))return e;throw Ime(t7(e)+` is not a function`)},r7=function(e,t){var n=e[t];return n==null?void 0:n7(n)},Lme=g5.TypeError,Rme=g5.TypeError,zme=H5(`toPrimitive`),i7=function(e){var t=function(e,t){if(!K5(e)||e7(e))return e;var n,r=r7(e,zme);if(r){if(t===void 0&&(t=`default`),n=Q5(r,e,t),!K5(n)||e7(n))return n;throw Rme(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&O5(n=e.toString)&&!K5(r=Q5(n,e))||O5(n=e.valueOf)&&!K5(r=Q5(n,e))||t!==`string`&&O5(n=e.toString)&&!K5(r=Q5(n,e)))return r;throw Lme(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return e7(t)?t:t+``},Bme=g5.TypeError,a7=Object.defineProperty,o7={f:G5?a7:function(e,t,n){if(X5(e),t=i7(t),X5(n),Y5)try{return a7(e,t,n)}catch{}if(`get`in n||`set`in n)throw Bme(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},s7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c7=G5?function(e,t,n){return o7.f(e,t,s7(1,n))}:function(e,t,n){return e[t]=n,e},Vme=C5(Function.toString);O5(v5.inspectSource)||(v5.inspectSource=function(e){return Vme(e)});var l7,u7,d7,f7=v5.inspectSource,p7=g5.WeakMap,Hme=O5(p7)&&/native code/.test(f7(p7)),m7=y5(`keys`),h7=function(e){return m7[e]||(m7[e]=D5(e))},g7={},_7=g5.TypeError,Ume=g5.WeakMap;if(Hme||v5.state){var v7=v5.state||=new Ume,Wme=C5(v7.get),y7=C5(v7.has),Gme=C5(v7.set);l7=function(e,t){if(y7(v7,e))throw new _7(`Object already initialized`);return t.facade=e,Gme(v7,e,t),t},u7=function(e){return Wme(v7,e)||{}},d7=function(e){return y7(v7,e)}}else{var b7=h7(`state`);g7[b7]=!0,l7=function(e,t){if(E5(e,b7))throw new _7(`Object already initialized`);return t.facade=e,c7(e,b7,t),t},u7=function(e){return E5(e,b7)?e[b7]:{}},d7=function(e){return E5(e,b7)}}var x7={set:l7,get:u7,has:d7,enforce:function(e){return d7(e)?u7(e):l7(e,{})},getterFor:function(e){return function(t){var n;if(!K5(t)||(n=u7(t)).type!==e)throw _7(`Incompatible receiver, `+e+` required`);return n}}},S7=Function.prototype,Kme=G5&&Object.getOwnPropertyDescriptor,C7=E5(S7,`name`),w7={EXISTS:C7,PROPER:C7&&function(){}.name===`something`,CONFIGURABLE:C7&&(!G5||G5&&Kme(S7,`name`).configurable)},T7=f5((function(e){var t=w7.CONFIGURABLE,n=x7.get,r=x7.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;O5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!E5(a,`name`)||t&&a.name!==d)&&c7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===g5?l?e[n]=a:_5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:c7(e,n,a))})(Function.prototype,`toString`,(function(){return O5(this)&&n(this).source||f7(this)}))})),qme=C5({}.toString),Jme=C5(``.slice),E7=function(e){return Jme(qme(e),8,-1)},Yme=H5(`toStringTag`),Xme=g5.Object,Zme=E7(function(){return arguments}())==`Arguments`,D7=W5?E7:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Xme(e),Yme))==`string`?n:Zme?E7(t):(r=E7(t))==`Object`&&O5(t.callee)?`Arguments`:r},Qme=W5?{}.toString:function(){return`[object `+D7(this)+`]`};W5||T7(Object.prototype,`toString`,Qme,{unsafe:!0});var O7,k7={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},A7=J5(`span`).classList,j7=A7&&A7.constructor&&A7.constructor.prototype,$me=j7===Object.prototype?void 0:j7,M7=C5(C5.bind),N7=g5.Object,ehe=C5(``.split),P7=I5((function(){return!N7(`z`).propertyIsEnumerable(0)}))?function(e){return E7(e)==`String`?ehe(e,``):N7(e)}:N7,the=Math.ceil,nhe=Math.floor,F7=function(e){var t=+e;return t!=t||t===0?0:(t>0?nhe:the)(t)},rhe=Math.min,I7=function(e){return e>0?rhe(F7(e),9007199254740991):0},L7=function(e){return I7(e.length)},R7=Array.isArray||function(e){return E7(e)==`Array`},z7=function(){},ihe=[],B7=k5(`Reflect`,`construct`),V7=/^\s*(?:class|function)\b/,ahe=C5(V7.exec),ohe=!V7.exec(z7),H7=function(e){if(!O5(e))return!1;try{return B7(z7,ihe,e),!0}catch{return!1}},U7=!B7||I5((function(){var e;return H7(H7.call)||!H7(Object)||!H7((function(){e=!0}))||e}))?function(e){if(!O5(e))return!1;switch(D7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return ohe||!!ahe(V7,f7(e))}:H7,she=H5(`species`),W7=g5.Array,che=function(e,t){return new(function(e){var t;return R7(e)&&(t=e.constructor,(U7(t)&&(t===W7||R7(t.prototype))||K5(t)&&(t=t[she])===null)&&(t=void 0)),t===void 0?W7:t}(e))(t===0?0:t)},G7=C5([].push),K7=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=T5(c),h=P7(m),g=function(e,t){return n7(e),t===void 0?e:M7?M7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=L7(h),v=0,y=d||che,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:G7(b,f)}else switch(e){case 4:return!1;case 7:G7(b,f)}return a?-1:r||i?i:b}},lhe=[K7(0),K7(1),K7(2),K7(3),K7(4),K7(5),K7(6),K7(7)][0],q7=(O7=[].forEach)&&I5((function(){O7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return lhe(this,e,arguments.length>1?arguments[1]:void 0)},J7=function(e){if(e&&e.forEach!==q7)try{c7(e,`forEach`,q7)}catch{e.forEach=q7}};for(var Y7 in k7)k7[Y7]&&J7(g5[Y7]&&g5[Y7].prototype);J7($me);var X7={}.propertyIsEnumerable,Z7=Object.getOwnPropertyDescriptor,Q7={f:Z7&&!X7.call({1:2},1)?function(e){var t=Z7(this,e);return!!t&&t.enumerable}:X7},$7=function(e){return P7(w5(e))},e9=Object.getOwnPropertyDescriptor,t9={f:G5?e9:function(e,t){if(e=$7(e),t=i7(t),Y5)try{return e9(e,t)}catch{}if(E5(e,t))return s7(!Q5(Q7.f,e,t),e[t])}},uhe=Math.max,dhe=Math.min,n9=function(e,t){var n=F7(e);return n<0?uhe(n+t,0):dhe(n,t)},fhe=function(e){return function(t,n,r){var i,a=$7(t),o=L7(a),s=n9(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},phe=fhe(!1),r9=C5([].push),i9=function(e,t){var n,r=$7(e),i=0,a=[];for(n in r)!E5(g7,n)&&E5(r,n)&&r9(a,n);for(;t.length>i;)E5(r,n=t[i++])&&(~phe(a,n)||r9(a,n));return a},a9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],mhe=a9.concat(`length`,`prototype`),hhe={f:Object.getOwnPropertyNames||function(e){return i9(e,mhe)}},o9={f:Object.getOwnPropertySymbols},ghe=C5([].concat),_he=k5(`Reflect`,`ownKeys`)||function(e){var t=hhe.f(X5(e)),n=o9.f;return n?ghe(t,n(e)):t},vhe=function(e,t){for(var n=_he(t),r=o7.f,i=t9.f,a=0;a<n.length;a++){var o=n[a];E5(e,o)||r(e,o,i(t,o))}},yhe=/#|\.prototype\./,s9=function(e,t){var n=xhe[bhe(e)];return n==Che||n!=She&&(O5(t)?I5(t):!!t)},bhe=s9.normalize=function(e){return String(e).replace(yhe,`.`).toLowerCase()},xhe=s9.data={},She=s9.NATIVE=`N`,Che=s9.POLYFILL=`P`,whe=s9,The=t9.f,c9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?g5:l?g5[s]||_5(s,{}):(g5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=The(n,r))&&o.value:n[r],!whe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;vhe(a,i)}(e.sham||i&&i.sham)&&c7(a,`sham`,!0),T7(n,r,a,e)}},l9=Object.keys||function(e){return i9(e,a9)},u9=Object.assign,d9=Object.defineProperty,Ehe=C5([].concat),f9=!u9||I5((function(){if(G5&&u9({b:1},u9(d9({},`a`,{enumerable:!0,get:function(){d9(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),u9({},e)[n]!=7||l9(u9({},t)).join(``)!=r}))?function(e,t){for(var n=T5(e),r=arguments.length,i=1,a=o9.f,o=Q7.f;r>i;)for(var s,c=P7(arguments[i++]),l=a?Ehe(l9(c),a(c)):l9(c),u=l.length,d=0;u>d;)s=l[d++],G5&&!Q5(o,c,s)||(n[s]=c[s]);return n}:u9;c9({target:`Object`,stat:!0,forced:Object.assign!==f9},{assign:f9});var p9=f5((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,`__id`,{value:++n}),e.__id},clone:function e(t,n){var r,a;switch(n||={},i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,`none`])[1].toLowerCase():`none`},currentScript:function(){if(typeof document>`u`)return null;if(`currentScript`in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r||=i.languages)[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,(function(t,n){n===l&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l!==`Object`||a[o(c)]?l!==`Array`||a[o(c)]||(a[o(c)]=!0,e(c,n,s,a)):(a[o(c)]=!0,e(c,n,null,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===t,r.callback)},highlightElement:function(n,r,a){var o=i.util.getLanguage(n),s=i.languages[o];n.className=n.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o;var c=n.parentElement;c&&c.nodeName.toLowerCase()===`pre`&&(c.className=c.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o);var l={element:n,language:o,grammar:s,code:n.textContent};function u(e){l.highlightedCode=e,i.hooks.run(`before-insert`,l),l.element.innerHTML=l.highlightedCode,i.hooks.run(`after-highlight`,l),i.hooks.run(`complete`,l),a&&a.call(l.element)}if(i.hooks.run(`before-sanity-check`,l),(c=l.element.parentElement)&&c.nodeName.toLowerCase()===`pre`&&!c.hasAttribute(`tabindex`)&&c.setAttribute(`tabindex`,`0`),!l.code)return i.hooks.run(`complete`,l),void(a&&a.call(l.element));if(i.hooks.run(`before-highlight`,l),l.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(i.highlight(l.code,l.grammar,l.language));else u(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run(`before-tokenize`,r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||``).length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T,ee=1;if(v){if(!(T=o(x,C,e,_)))break;var E=T.index,D=T.index+T[0].length,te=C;for(te+=S.value.length;E>=te;)te+=(S=S.next).value.length;if(C=te-=S.value.length,S.value instanceof a)continue;for(var ne=S;ne!==t.tail&&(te<D||typeof ne.value==`string`);ne=ne.next)ee++,te+=ne.value.length;ee--,w=e.slice(C,te),T.index-=C}else if(!(T=o(x,0,w,_)))continue;E=T.index;var re=T[0],ie=w.slice(0,E),O=w.slice(E+re.length),ae=C+w.length;d&&ae>d.reach&&(d.reach=ae);var k=S.prev;if(ie&&(k=l(t,k,ie),C+=ie.length),u(t,k,ee),S=l(t,k,new a(f,g?i.tokenize(re,g):re,y,re)),O&&l(t,S,O),ee>1){var oe={cause:f+`,`+m,reach:ae};s(e,t,n,S.prev,C,oe),d&&oe.reach>d.reach&&(d.reach=oe.reach)}}}}}}function c(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,a.stringify=function e(t,n){if(typeof t==`string`)return t;if(Array.isArray(t)){var r=``;return t.forEach((function(t){r+=e(t,n)})),r}var a={type:t.type,content:e(t.content,n),tag:`span`,classes:[`token`,t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run(`wrap`,a);var s=``;for(var c in a.attributes)s+=` `+c+`="`+(a.attributes[c]||``).replace(/"/g,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,(function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()}),!1)),i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute(`data-manual`)&&(i.manual=!0)),!i.manual){var p=document.readyState;p===`loading`||p===`interactive`&&d&&d.defer?document.addEventListener(`DOMContentLoaded`,f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});e.exports&&=t,d5!==void 0&&(d5.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside[`attr-value`].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside[`internal-subset`].inside=t.languages.markup,t.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(t.languages.markup.tag,`addInlined`,{value:function(e,n){var r={};r[`language-`+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i[`language-`+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore(`markup`,`cdata`,a)}}),Object.defineProperty(t.languages.markup.tag,`addAttribute`,{value:function(e,n){t.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,`language-`+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend(`markup`,{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:`selector`},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp(`\\burl\\((?:`+t.source+`|(?:[^\\\\\\r\\n()"']|\\\\[\\s\\S])*)\\)`,`i`),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp(`^`+t.source+`$`),alias:`url`}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+`)*(?=\\s*\\{)`),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined(`style`,`css`),n.tag.addAttribute(`style`,`css`))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend(`clike`,{"class-name":[t.languages.clike[`class-name`],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript[`class-name`][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore(`javascript`,`keyword`,{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:`language-regex`,inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:`function`},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore(`javascript`,`string`,{hashbang:{pattern:/^#!.*/,greedy:!0,alias:`comment`},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:`string`},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:`punctuation`},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined(`script`,`javascript`),t.languages.markup.tag.addAttribute(`on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)`,`javascript`)),t.languages.js=t.languages.javascript,function(){if(t!==void 0&&typeof document<`u`){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:`javascript`,py:`python`,rb:`ruby`,ps1:`powershell`,psm1:`powershell`,sh:`bash`,bat:`batch`,h:`c`,tex:`latex`},n=`data-src-status`,r=`pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])`,i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add(`before-highlightall`,(function(e){e.selector+=`, `+r})),t.hooks.add(`before-sanity-check`,(function(i){var a=i.element;if(a.matches(r)){i.code=``,a.setAttribute(n,`loading`);var s=a.appendChild(document.createElement(`CODE`));s.textContent=`Loading…`;var c=a.getAttribute(`data-src`),l=i.language;if(l===`none`){var u=(/\.(\w+)$/.exec(c)||[,`none`])[1];l=e[u]||u}o(s,l),o(a,l);var d=t.plugins.autoloader;d&&d.loadLanguages(l);var f=new XMLHttpRequest;f.open(`GET`,c,!0),f.onreadystatechange=function(){f.readyState==4&&(f.status<400&&f.responseText?(a.setAttribute(n,`loaded`),s.textContent=f.responseText,t.highlightElement(s)):(a.setAttribute(n,`failed`),f.status>=400?s.textContent=`✖ Error `+f.status+` while fetching file: `+f.statusText:s.textContent=`✖ Error: File does not exist or is empty`))},f.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,i=(e||document).querySelectorAll(r),a=0;n=i[a++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||=(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function o(e,t){var n=e.className;n=n.replace(i,` `)+` language-`+t,e.className=n.replace(/\s+/g,` `).trim()}}()}));(function(e){var t=e.util.clone(e.languages.javascript),n=`(?:\\s|\\/\\/.*(?!.)|\\/\\*(?:[^*]|\\*(?!\\/))\\*\\/)`,r=`(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})`,i=`(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})`;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return i})),RegExp(e,t)}i=a(i).source,e.languages.jsx=e.languages.extend(`markup`,t),e.languages.jsx.tag.pattern=a(`<\\/?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:"(?:\\\\[\\s\\S]|[^\\\\"])*"|'(?:\\\\[\\s\\S]|[^\\\\'])*'|[^\\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\\/?)?>`),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside[`attr-value`].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside[`class-name`]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore(`inside`,`attr-name`,{spread:{pattern:a(`<SPREAD>`),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore(`inside`,`special-attr`,{script:{pattern:a(`=<BRACES>`),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:`punctuation`},rest:e.languages.jsx},alias:`language-javascript`}},e.languages.jsx.tag);var o=function(e){return e?typeof e==`string`?e:typeof e.content==`string`?e.content:e.content.map(o).join(``):``},s=function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r],a=!1;if(typeof i!=`string`&&(i.type===`tag`&&i.content[0]&&i.content[0].type===`tag`?i.content[0].content[0].content===`</`?n.length>0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():i.content[i.content.length-1].content===`/>`||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&i.type===`punctuation`&&i.content===`{`?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&i.type===`punctuation`&&i.content===`}`?n[n.length-1].openedBraces--:a=!0),(a||typeof i==`string`)&&n.length>0&&n[n.length-1].openedBraces===0){var c=o(i);r<t.length-1&&(typeof t[r+1]==`string`||t[r+1].type===`plain-text`)&&(c+=o(t[r+1]),t.splice(r+1,1)),r>0&&(typeof t[r-1]==`string`||t[r-1].type===`plain-text`)&&(c=o(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token(`plain-text`,c,null,c)}i.content&&typeof i.content!=`string`&&s(i.content)}};e.hooks.add(`after-tokenize`,(function(e){e.language!==`jsx`&&e.language!==`tsx`||s(e.tokens)}))})(Prism),function(e){e.languages.typescript=e.languages.extend(`javascript`,{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend(`typescript`,{});delete t[`class-name`],e.languages.typescript[`class-name`].inside=t,e.languages.insertBefore(`typescript`,`function`,{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:`operator`},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside[`attr-value`].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside[`internal-subset`].inside=Prism.languages.markup,Prism.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(Prism.languages.markup.tag,`addInlined`,{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(`(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[\\s\\S])*?(?=<\\/__>)`.replace(/__/g,(function(){return e})),`i`),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore(`markup`,`cdata`,i)}}),Object.defineProperty(Prism.languages.markup.tag,`addAttribute`,{value:function(e,t){Prism.languages.markup.tag.inside[`special-attr`].push({pattern:RegExp(`(^|["'\\s])(?:`+e+`)\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s'">=]+(?=[\\s>]))`,`i`),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,`language-`+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend(`markup`,{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend(`clike`,{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go[`class-name`],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:`boolean`},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:`important`},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:`class-name`},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:`function`},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:`type-casting`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:`type-declaration`,greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:`type-declaration`,greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:`class-name-fully-qualified`,greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:`class-name-fully-qualified`,greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:`type-declaration`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-declaration`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:`static-context`,greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:[`class-name-fully-qualified`,`static-context`],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:`type-hint`,greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:[`class-name-fully-qualified`,`type-hint`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:`return-type`,greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:[`class-name-fully-qualified`,`return-type`],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:a};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{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:o}},{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:o}}];e.languages.insertBefore(`php`,`variable`,{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"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:i,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:`punctuation`}}}}),e.hooks.add(`before-tokenize`,(function(t){/<\?/.test(t.code)&&e.languages[`markup-templating`].buildPlaceholders(t,`php`,/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add(`after-tokenize`,(function(t){e.languages[`markup-templating`].tokenizePlaceholders(t,`php`)}))}(Prism),Prism.languages.c=Prism.languages.extend(`clike`,{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore(`c`,`string`,{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:`property`,inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:`function`}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:`keyword`},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![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(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{"class-name":[r,{pattern:RegExp(n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:module|import)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,(function(){return n}))+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return`(?:`+t[+n]+`)`}))}function n(e,n,r){return RegExp(t(e,n),r||``)}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return`(?:`+e+`)`}));return e.replace(/<<self>>/g,`[^\\s\\S]`)}var i=`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,a=`class enum interface record struct`,o=`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*{)`,s=`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 c(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var l=c(a),u=RegExp(c(i+` `+a+` `+o+` `+s)),d=c(a+` `+o+` `+s),f=c(i+` `+a+` `+s),p=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),m=r(`\\((?:[^()]|<<self>>)*\\)`,2),h=`@?\\b[A-Za-z_]\\w*\\b`,g=t(`<<0>>(?:\\s*<<1>>)?`,[h,p]),_=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[d,g]),v=`\\[\\s*(?:,\\s*)*\\]`,y=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[_,v]),b=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[p,m,v])]),_,v]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},S=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,C=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,w=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[w]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:`character`}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[h,b]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[h]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[l,g]),lookbehind:!0,inside:x},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\bwhere\\s+)<<0>>`,[h]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[y]),lookbehind:!0,inside:x},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[b,f,h]),inside:x}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:n(`([(,]\\s*)<<0>>(?=\\s*:)`,[h]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[m]),lookbehind:!0,alias:`class-name`,inside:x},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[b,_]),inside:x,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[b]),lookbehind:!0,inside:x,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[h,p]),inside:{function:n(`^<<0>>`,[h]),generic:{pattern:RegExp(p),alias:`class-name`,inside:x}}},"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|[{;]|=>|$))`,[l,g,h,b,u.source,m,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(b),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var T=C+`|`+S,ee=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[T]),E=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[ee]),2),D=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,te=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[_,E]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[D,te]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[D]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[E]),inside:e.languages.csharp},"class-name":{pattern:RegExp(_),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ne=`:[^}\\r\\n]+`,re=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[ee]),2),ie=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[re,ne]),O=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),ae=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[O,ne]);function k(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,ne]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:`language-csharp`,inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore(`csharp`,`string`,{"interpolation-string":[{pattern:n(`(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[\\s\\S]|\\{\\{|<<0>>|[^\\\\{"])*"`,[ie]),lookbehind:!0,greedy:!0,inside:k(ie,re)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[ae]),lookbehind:!0,greedy:!0,inside:k(ae,O)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages[`visual-basic`]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:`comment`,greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:`builtin`},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages[`visual-basic`],Prism.languages.vba=Prism.languages[`visual-basic`],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend(`clike`,{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:`tag`},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore(`ruby`,`keyword`,{regex:[{pattern:RegExp(`%r(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].join(`|`)+`)[egimnosux]{0,6}`),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore(`ruby`,`number`,{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(`%[qQiIwWxs]?(?:`+[`([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[\\s\\S])*\\1`,`\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)`,`\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}`,`\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]`,`<(?:[^<>\\\\]|\\\\[\\s\\S])*>`].join(`|`)+`)`),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:`symbol`,inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:`heredoc-string`,greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:`symbol`,inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(`(^|[^"#])(?:"(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^(])|[^\\\\\\r\\n"])*"|"""(?:\\\\(?:\\((?:[^()]|\\([^()]*\\))*\\)|[^(])|[^\\\\"]|"(?!""))*""")(?!["#])`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:`punctuation`},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(`(^|[^"#])(#+)(?:"(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|\\r\\n|[^#])|[^\\\\\\r\\n])*?"|"""(?:\\\\(?:#+\\((?:[^()]|\\([^()]*\\))*\\)|[^#])|[^\\\\])*?""")\\2`),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:`punctuation`},string:/[\s\S]+/}}],directive:{pattern:RegExp(`#(?:(?:elseif|if)\\b(?:[ 	]*(?:![ \\t]*)?(?:\\b\\w+\\b(?:[ \\t]*\\((?:[^()]|\\([^()]*\\))*\\))?|\\((?:[^()]|\\([^()]*\\))*\\))(?:[ \\t]*(?:&&|\\|\\|))?)+|(?:else|endif)\\b)`),alias:`property`,inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:`constant`},"other-directive":{pattern:/#\w+\b/,alias:`property`},attribute:{pattern:/@\w+/,alias:`atrule`},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:`function`},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:`important`},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:`constant`},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:`keyword`},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift[`string-literal`].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t=`\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b`,n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:`punctuation`,inside:null},r={bash:n,environment:{pattern:RegExp(`\\$`+t),alias:`constant`},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp(`(\\{)`+t),lookbehind:!0,alias:`constant`}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:`important`},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:`function`},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:`function`}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:`variable`,lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp(`(^|[\\s;|&]|[<>]\\()`+t),lookbehind:!0,alias:`constant`}},alias:`variable`,lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp(`\\$?`+t),alias:`constant`},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:`class-name`},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:`important`},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:`important`}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=[`comment`,`function-name`,`for-or-select`,`assign-left`,`string`,`environment`,`function`,`keyword`,`builtin`,`boolean`,`file-descriptor`,`operator`,`punctuation`,`number`],a=r.variable[1].inside,o=0;o<i.length;o++)a[i[o]]=e.languages.bash[i[o]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var r="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",i=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,(function(){return r})),a=`\\|?[ \\t]*:?-{3,}:?[ \\t]*(?:\\|[ \\t]*:?-{3,}:?[ \\t]*)+\\|?(?:\\n|\\r\\n?)`;e.languages.markdown=e.languages.extend(`markup`,{}),e.languages.insertBefore(`markdown`,`prolog`,{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:[`yaml`,`language-yaml`],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:`punctuation`},table:{pattern:RegExp(`^`+i+a+`(?:`+i+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+i+a+`)(?:`+i+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+i+`)`+a+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+i+`$`),inside:{"table-header":{pattern:RegExp(r),alias:`important`,inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:`keyword`},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:`important`,inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:`important`,inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:`punctuation`},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:`punctuation`},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:`url`},bold:{pattern:n(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(`(~~?)(?:(?!~)<inner>)+\\2`),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>)+\\])`),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),[`url`,`bold`,`italic`,`strike`].forEach((function(t){[`url`,`bold`,`italic`,`strike`,`code-snippet`].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add(`after-tokenize`,(function(e){e.language!==`markdown`&&e.language!==`md`||function e(t){if(t&&typeof t!=`string`)for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i.type===`code`){var a=i.content[1],o=i.content[3];if(a&&o&&a.type===`code-language`&&o.type===`code-block`&&typeof a.content==`string`){var s=a.content.replace(/\b#/g,`sharp`).replace(/\b\+\+/g,`pp`),c=`language-`+(s=(/[a-z][\w-]*/i.exec(s)||[``])[0].toLowerCase());o.alias?typeof o.alias==`string`?o.alias=[o.alias,c]:o.alias.push(c):o.alias=[c]}}else e(i.content)}}(e.tokens)})),e.hooks.add(`wrap`,(function(t){if(t.type===`code-block`){for(var n=``,r=0,i=t.classes.length;r<i;r++){var a=t.classes[r],l=/language-(.+)/.exec(a);if(l){n=l[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){return e.replace(o,``).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return(t=t.toLowerCase())[0]===`#`?(n=t[1]===`x`?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e}))}(t.content),u,n);else if(n&&n!==`none`&&e.plugins.autoloader){var d=`md-`+new Date().valueOf()+`-`+Math.floor(0x2386f26fc10000*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var o=RegExp(e.languages.markup.tag.pattern.source,`gi`),s={amp:`&`,lt:`<`,gt:`>`,quot:`"`},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend(`clike`,{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore(`groovy`,`string`,{shebang:{pattern:/#!.+/,alias:`comment`}}),Prism.languages.insertBefore(`groovy`,`punctuation`,{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore(`groovy`,`function`,{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:`punctuation`}}),Prism.hooks.add(`wrap`,(function(e){if(e.language===`groovy`&&e.type===`string`){var t=e.content[0];if(t!=`'`){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t===`$`&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,`<`).replace(/&amp;/g,`&`),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t===`/`?`regex`:`gstring`)}}}));var Dhe=`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`.split(`.`);function m9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+m9(t)}),0)}var h9,Ohe=g5.String,g9=function(e){if(D7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Ohe(e)},_9=function(){var e=X5(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},v9=g5.RegExp,y9=I5((function(){var e=v9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),khe=y9||I5((function(){return!v9(`a`,`y`).sticky})),b9={BROKEN_CARET:y9||I5((function(){var e=v9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:khe,UNSUPPORTED_Y:y9},Ahe=G5?Object.defineProperties:function(e,t){X5(e);for(var n,r=$7(t),i=l9(t),a=i.length,o=0;a>o;)o7.f(e,n=i[o++],r[n]);return e},jhe=k5(`document`,`documentElement`),x9=h7(`IE_PROTO`),S9=function(){},C9=function(e){return`<script>`+e+`<\/script>`},w9=function(e){e.write(C9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},T9=function(){try{h9=new ActiveXObject(`htmlfile`)}catch{}var e,t;T9=typeof document<`u`?document.domain&&h9?w9(h9):((t=J5(`iframe`)).style.display=`none`,jhe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(C9(`document.F=Object`)),e.close(),e.F):w9(h9);for(var n=a9.length;n--;)delete T9.prototype[a9[n]];return T9()};g7[x9]=!0;var E9,D9,Mhe=Object.create||function(e,t){var n;return e===null?n=T9():(S9.prototype=X5(e),n=new S9,S9.prototype=null,n[x9]=e),t===void 0?n:Ahe(n,t)},Nhe=g5.RegExp,Phe=I5((function(){var e=Nhe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Fhe=g5.RegExp,Ihe=I5((function(){var e=Fhe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Lhe=x7.get,Rhe=y5(`native-string-replace`,String.prototype.replace),O9=RegExp.prototype.exec,k9=O9,zhe=C5(``.charAt),Bhe=C5(``.indexOf),Vhe=C5(``.replace),A9=C5(``.slice),j9=(D9=/b*/g,Q5(O9,E9=/a/,`a`),Q5(O9,D9,`a`),E9.lastIndex!==0||D9.lastIndex!==0),M9=b9.BROKEN_CARET,N9=/()??/.exec(``)[1]!==void 0;(j9||N9||M9||Phe||Ihe)&&(k9=function(e){var t,n,r,i,a,o,s,c=this,l=Lhe(c),u=g9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Q5(k9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=M9&&c.sticky,m=Q5(_9,c),h=c.source,g=0,_=u;if(p&&(m=Vhe(m,`y`,``),Bhe(m,`g`)===-1&&(m+=`g`),_=A9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&zhe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),N9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),j9&&(r=c.lastIndex),i=Q5(O9,p?n:c,_),p?i?(i.input=A9(i.input,g),i[0]=A9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:j9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),N9&&i&&i.length>1&&Q5(Rhe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=Mhe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var P9=k9;c9({target:`RegExp`,proto:!0,forced:/./.exec!==P9},{exec:P9});var F9=Function.prototype,I9=F9.apply,Hhe=F9.bind,L9=F9.call,Uhe=typeof Reflect==`object`&&Reflect.apply||(Hhe?L9.bind(I9):function(){return L9.apply(I9,arguments)}),Whe=H5(`species`),R9=RegExp.prototype,Ghe=H5(`match`),Khe=g5.TypeError,qhe=H5(`species`),Jhe=C5(``.charAt),z9=C5(``.charCodeAt),Yhe=C5(``.slice),Xhe=function(e){return function(t,n){var r,i,a=g9(w5(t)),o=F7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=z9(a,o))<55296||r>56319||o+1===s||(i=z9(a,o+1))<56320||i>57343?e?Jhe(a,o):r:e?Yhe(a,o,o+2):i-56320+(r-55296<<10)+65536}},Zhe=Xhe(!0),Qhe=function(e,t,n){return t+(n?Zhe(e,t).length:1)},$he=g5.Array,ege=Math.max,B9=function(e,t,n){for(var r,i,a,o,s=L7(e),c=n9(t,s),l=n9(n===void 0?s:n,s),u=$he(ege(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=i7(i))in r?o7.f(r,o,s7(0,a)):r[o]=a;return u.length=d,u},tge=g5.TypeError,V9=function(e,t){var n=e.exec;if(O5(n)){var r=Q5(n,e,t);return r!==null&&X5(r),r}if(E7(e)===`RegExp`)return Q5(P9,e,t);throw tge(`RegExp#exec called on incompatible receiver`)},H9=b9.UNSUPPORTED_Y,nge=Math.min,U9=[].push,rge=C5(/./.exec),W9=C5(U9),G9=C5(``.slice);(function(e,t,n,r){var i=H5(e),a=!I5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!I5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Whe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=C5(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=g9(w5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!K5(r=e)||!((i=r[Ghe])===void 0?E7(r)==`RegExp`:i))return Q5(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=Q5(P9,p,a))&&!((c=p.lastIndex)>f&&(W9(u,G9(a,f,s.index)),s.length>1&&s.index<a.length&&Uhe(U9,u,B9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&rge(p,``)||W9(u,``):W9(u,G9(a,f)),u.length>o?B9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Q5(t,this,e,n)}:t,[function(t,n){var i=w5(this),a=t==null?void 0:r7(t,e);return a?Q5(a,t,i,n):Q5(r,g9(i),t,n)},function(e,i){var a=X5(this),o=g9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=X5(e).constructor;return r===void 0||(n=X5(r)[qhe])==null?t:function(e){if(U7(e))return e;throw Khe(t7(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(H9?`g`:`y`),d=new c(H9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return V9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=H9?0:m;var g,_=V9(d,H9?G9(o,m):o);if(_===null||(g=nge(I7(d.lastIndex+(H9?m:0)),o.length))===p)m=Qhe(o,m,l);else{if(W9(h,G9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(W9(h,_[v]),h.length===f)return h;m=p=g}}return W9(h,G9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=C5(e),c=t.exec;return c===P9||c===R9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));T7(String.prototype,e,c[0]),T7(R9,i,c[1])}r&&c7(R9[i],`sham`,!0)})(`split`,0,!!I5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),H9),c9({global:!0},{globalThis:g5}),ed&&(V.fn.attr=ed);var ige=w7.PROPER,K9=RegExp.prototype,q9=K9.toString,age=C5(_9),oge=I5((function(){return q9.call({source:`a`,flags:`b`})!=`/a/b`})),sge=ige&&q9.name!=`toString`;(oge||sge)&&T7(RegExp.prototype,`toString`,(function(){var e=X5(this),t=g9(e.source),n=e.flags;return`/`+t+`/`+g9(n===void 0&&$5(K9,e)&&!(`flags`in K9)?age(e):n)}),{unsafe:!0});var cge=function(){function e(){this.title=q(`highLightModule.selectLang`),this.iconSvg=`<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>`,this.tag=`select`,this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(`codeSelectLang`).codeLangs,r=n===void 0?[]:n;t.push({text:`plain text`,value:``}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var i=this.getValue(e);return t.forEach((function(e){e.value===i?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(t==null||!N.isElement(t))return``;var n=t.language.toString(),r=e.getMenuConfig(`codeSelectLang`).codeLangs;return(r===void 0?[]:r).some((function(e){return e.value===n}))?n:``},e.prototype.isDisabled=function(e){return e.selection==null||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(this.getSelectCodeElem(e)!=null){var n={language:t.toString()};B.setNodes(e,n,{match:function(e){return K.checkNodeType(e,`code`)}})}},e.prototype.getSelectCodeElem=function(e){var t=K.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=K.getParentNode(e,t);return N.isElement(n)&&n.type===`pre`?t:null},e}(),lge={renderStyle:function(e,t){var n=e,r=t,i=``;return Dhe.forEach((function(e){n[e]&&(i=e)})),i&&function(e,t){e.data??={};var n=e.data;n.props??={},Object.assign(n.props,{className:t})}(r,i=`token `+i),r},parseStyleHtml:function(e,t,n){var r=V(e);if(!N.isElement(t)||K.getNodeType(t)!==`code`)return t;var i=t,a=r.attr(`class`)||``;return a.indexOf(`language-`)===0?i.language=a.split(`-`)[1]||``:i.language=a.toLowerCase(),i},menus:[{key:`codeSelectLang`,factory:function(){return new cge},config:{codeLangs:[{text:`CSS`,value:`css`},{text:`HTML`,value:`html`},{text:`XML`,value:`xml`},{text:`Javascript`,value:`javascript`},{text:`Typescript`,value:`typescript`},{text:`JSX`,value:`jsx`},{text:`Go`,value:`go`},{text:`PHP`,value:`php`},{text:`C`,value:`c`},{text:`Python`,value:`python`},{text:`Java`,value:`java`},{text:`C++`,value:`cpp`},{text:`C#`,value:`csharp`},{text:`Visual Basic`,value:`visual-basic`},{text:`SQL`,value:`sql`},{text:`Ruby`,value:`ruby`},{text:`Swift`,value:`swift`},{text:`Bash`,value:`bash`},{text:`Lua`,value:`lua`},{text:`Groovy`,value:`groovy`},{text:`Markdown`,value:`markdown`}]}}],elemsToHtml:[{type:`code`,elemToHtml:function(e,t){var n=e.language,r=n===void 0?``:n;return`<code `+(r?`class="language-`+r+`"`:``)+`>`+t+`</code>`}}]},uge=/"/g,dge=C5(``.replace);c9({target:`String`,proto:!0,forced:I5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=g9(w5(this)),r=`<a`,(r+=` name="`+dge(g9(t),uge,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var J9=function(e){var t,n,r,i=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e,2),a=i[0],o=i[1],s=[],c=function(e){if(!z.isText(e))return null;var t=K.getParentNode(null,e);if(t&&K.getNodeType(t)===`code`){var n=K.getParentNode(null,t);if(n&&K.getNodeType(n)===`pre`)return t}return null}(a);if(c==null)return s;var l=c.language,u=l===void 0?``:l;if(!u)return s;var d=function(e,t){if(!t)return[];var n=p9.languages[t];return n?p9.tokenize(e.text,n):[]}(a,u),f=0;try{for(var p=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),m=p.next();!m.done;m=p.next()){var h=m.value,g=f+m9(h);typeof h!=`string`&&s.push(((r={})[h.type]=!0,r.anchor={path:o,offset:f},r.focus={path:o,offset:g},r)),f=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},Y9=function(){return Y9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Y9.apply(this,arguments)},X9=function(){function e(){throw Error(`不能实例化
Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=Y9(Y9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=Y9(Y9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=Y9(Y9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=Y9(Y9({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){(function(e,t){var n=e.key,r=e.factory,i=e.config,a=Qb(Qb({},i),t||{});if(TS[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);TS[n]=r,function(e,t){t!=null&&(wS[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;iT[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){rT.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;jS[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){AS.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){QC.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;ew[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){$C.push(e)})(e)},e.registerModule=function(e){Z9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function Z9(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,a=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return X9.registerMenu(e)})),n&&n.forEach((function(e){return X9.registerRenderElem(e)})),r&&X9.registerRenderStyle(r),i&&i.forEach((function(e){return X9.registerElemToHtml(e)})),a&&X9.registerStyleToHtml(a),o&&o.forEach((function(e){return X9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return X9.registerParseElemHtml(e)})),c&&X9.registerParseStyleHtml(c),l&&X9.registerPlugin(l)}zle.forEach((function(e){return Z9(e)})),Z9(_U),Z9($J),Z9(Ade),Z9(bme),Z9(lge);var Q9=`<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>`,$9={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`]}},fge={hoverbarKeys:Y9(Y9({},$9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};X9.setEditorConfig(Y9(Y9({},fge),{decorate:J9}));var pge={hoverbarKeys:$9};X9.setSimpleEditorConfig(Y9(Y9({},pge),{decorate:J9}));var mge={toolbarKeys:[`headerSelect`,`blockquote`,`|`,`bold`,`underline`,`italic`,{key:`group-more-style`,title:q(`editor.more`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>`,menuKeys:[`through`,`code`,`sup`,`sub`,`clearStyle`]},`color`,`bgColor`,`|`,`fontSize`,`fontFamily`,`lineHeight`,`|`,`bulletedList`,`numberedList`,`todo`,{key:`group-justify`,title:q(`editor.justify`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>`,menuKeys:[`justifyLeft`,`justifyRight`,`justifyCenter`,`justifyJustify`]},{key:`group-indent`,title:q(`editor.indent`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,menuKeys:[`indent`,`delIndent`]},`|`,`emotion`,`insertLink`,{key:`group-image`,title:q(`editor.image`),iconSvg:Q9,menuKeys:[`insertImage`,`uploadImage`]},{key:`group-video`,title:q(`editor.video`),iconSvg:`<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>`,menuKeys:[`insertVideo`,`uploadVideo`]},`insertTable`,`codeBlock`,`divider`,`|`,`undo`,`redo`,`|`,`fullScreen`]};X9.setToolbarConfig(mge);var hge={toolbarKeys:[`blockquote`,`header1`,`header2`,`header3`,`|`,`bold`,`underline`,`italic`,`through`,`color`,`bgColor`,`clearStyle`,`|`,`bulletedList`,`numberedList`,`todo`,`justifyLeft`,`justifyRight`,`justifyCenter`,`|`,`insertLink`,{key:`group-image`,title:q(`editor.image`),iconSvg:Q9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function gge(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?``:t,r=e.content,i=r===void 0?[]:r,a=e.html,o=e.config,s=o===void 0?{}:o,c=e.mode,l=(c===void 0?`default`:c)===`simple`?X9.simpleEditorConfig:X9.editorConfig,u=Y9(Y9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return xoe({selector:n,config:Y9(Y9(Y9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:X9.plugins})}function _ge(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,a=e.mode,o=a===void 0?`default`:a;if(!t)throw Error(`Cannot find 'selector' when create toolbar`);var s=o===`simple`?X9.simpleToolbarConfig:X9.toolbarConfig;return function(e,t){if(e==null)throw Error(`Cannot create toolbar, because editor is null`);var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(e,t){return _w(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new Eoe(n,Qb({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return Rx.set(a,e),zx.set(e,a),a}(n,{selector:t,config:Y9(Y9({},s),i)})}X9.setSimpleToolbarConfig(hge),exports.DomEditor=K,exports.createEditor=gge,exports.createToolbar=_ge;
//# sourceMappingURL=index.esm-CaKNZBOb.cjs.map