1import{v as Ln,ac as ec,g as Fo,K as iH,c as ue,i as HD,a as T,F as ct,r as Pi,q as we,o as oe,j as lr,d as _t,n as cv,_ as si,b2 as aH,b3 as uH,aw as UP,C as VP,e as sH,u as lH,aH as C3,U as ar,H as A,h as WP,aZ as cH,b4 as fH,b5 as dH,t as re,y as R,l as zt,b6 as pH,D as da,aY as fv,b7 as hH,p as ya,b8 as gH,b as Ze,E as vH,w as jr,aX as mH,b9 as yH,A as tc,T as bH,k as wH,O as EH,Q as GP,ba as xH,aT as SH,s as bs,bb as rg,S as Dt,m as qP,au as kl,aF as CH,x as DH,bc as _H,aG as AH}from"./index-CW0uE3TZ.js";import{C as $o,b as Gn,r as Dn,g as UD,a as Qp,n as kH,c as OH,d as TH,m as Td}from"./COSUpload-D7Rq4AXH.js";import{u as KP,c as YP,b as FH,p as iy,d as eh,e as th,f as BH,h as PH,i as jH}from"./post-CvXmwHm4.js";import{m as NH,n as IH}from"./markdown-DQUv3Myi.js";import{a as LH,E as RH}from"./el-avatar-UuzbyyJD.js";import{E as MH}from"./el-progress-BrzMunCn.js";import{E as $H}from"./el-checkbox-CXuId7hw.js";import{p as g1,f as Lu,M as Ru}from"./tools-DxIoHlot.js";import"./index-DztvooxY.js";import"./cloneDeep-dytUVfZc.js";import"./_baseClone-CtFyV_dI.js";const zH={id:"previewView"},HH={key:0,class:"img"},UH=["src"],VH=Ln({__name:"PreviewView",props:{data:{default:()=>({})}},setup(e){const t=e,r=_t(()=>t.data?.cover||""),n=we();let o=null,i=null;function a(){requestAnimationFrame(()=>{const s=n.value;if(!s)return;const l=4,c=4,f=s.offsetWidth;if(f===0)return;const d=(f-(l-1)*c)/l,p=new Array(l).fill(0),v=p.map((g,y)=>y*(d+c));Array.from(s.children).forEach(g=>{let y=0;p.forEach((h,b)=>{p[y]>h&&(y=b)}),g.style.width=d+"px",g.style.left=v[y]+"px",g.style.top=p[y]+"px",p[y]+=g.offsetHeight+c})})}function u(){const s=n.value?.children[0];!s||s===i||(o&&i&&o.unobserve(i),o||(o=new ResizeObserver(()=>a())),o.observe(s),i=s)}return ec(r,()=>{cv(u)}),Fo(()=>{n.value&&(a(),u())}),iH(()=>{o?.disconnect(),o=null}),(s,l)=>(oe(),ue("div",zH,[l[1]||(l[1]=HD('<div class="nav" data-v-f1b352b0><div class="top" data-v-f1b352b0><div class="logo" data-v-f1b352b0></div><div data-v-f1b352b0></div><div data-v-f1b352b0></div><div data-v-f1b352b0></div><div data-v-f1b352b0></div><div data-v-f1b352b0></div><div data-v-f1b352b0></div></div><div class="bottom" data-v-f1b352b0><div class="theme_switch" data-v-f1b352b0><div data-v-f1b352b0>xxx</div><div data-v-f1b352b0>xxx</div></div><div class="lang-switch" data-v-f1b352b0>X</div><div class="icp-info" data-v-f1b352b0><div data-v-f1b352b0>xxxx</div><div data-v-f1b352b0>xxxxxxx</div><div data-v-f1b352b0>xxxxx</div></div></div></div>',1)),T("main",null,[l[0]||(l[0]=HD('<div class="tab_bar" data-v-f1b352b0><div class="tab" data-v-f1b352b0><div data-v-f1b352b0>xxx</div><div data-v-f1b352b0>xxx</div></div><div class="seach" data-v-f1b352b0>xxxxxxxx</div></div><div class="select_row" data-v-f1b352b0><div class="introduction" data-v-f1b352b0><div class="title" data-v-f1b352b0>xxxxxxx</div><div class="description" data-v-f1b352b0>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div></div><div class="select_bar" data-v-f1b352b0><div data-v-f1b352b0>xxx</div><div data-v-f1b352b0>xxx</div></div></div>',2)),T("div",{class:"posts",ref_key:"postsRef",ref:n},[(oe(),ue(ct,null,Pi(12,c=>T("div",{key:c},[c===1&&r.value?(oe(),ue("div",HH,[(oe(),ue("img",{key:r.value,src:r.value,alt:"",onLoad:a},null,40,UH))])):lr("",!0)])),64))],512)])]))}}),WH=si(VH,[["__scopeId","data-v-f1b352b0"]]);var bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GH(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Is(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ki,dv,ng=function(e){return e&&e.Math==Math&&e},$e=ng(typeof globalThis=="object"&&globalThis)||ng(typeof window=="object"&&window)||ng(typeof self=="object"&&self)||ng(typeof bt=="object"&&bt)||(function(){return this})()||Function("return this")(),D3=Function.prototype,VD=D3.apply,qH=D3.bind,WD=D3.call,XP=typeof Reflect=="object"&&Reflect.apply||(qH?WD.bind(VD):function(){return WD.apply(VD,arguments)}),JP=Function.prototype,H4=JP.bind,U4=JP.call,KH=H4&&H4.bind(U4),Ot=H4?function(e){return e&&KH(U4,e)}:function(e){return e&&function(){return U4.apply(e,arguments)}},Ir=function(e){return typeof e=="function"},hn=function(e){try{return!!e()}catch{return!0}},cn=!hn((function(){return Object.defineProperty({},1,{get:function(){return 7}}
1)[1]!=7})),Zc=Function.prototype.call,kn=Zc.bind?Zc.bind(Zc):function(){return Zc.apply(Zc,arguments)},GD={}.propertyIsEnumerable,qD=Object.getOwnPropertyDescriptor,YH=qD&&!GD.call({1:2},1)?function(e){var t=qD(this,e);return!!t&&t.enumerable}:GD,_3={f:YH},So=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XH=Ot({}.toString),JH=Ot("".slice),Yu=function(e){return JH(XH(e),8,-1)},v1=$e.Object,ZH=Ot("".split),ZP=hn((function(){return!v1("z").propertyIsEnumerable(0)}))?function(e){return Yu(e)=="String"?ZH(e,""):v1(e)}:v1,QH=$e.TypeError,A3=function(e){if(e==null)throw QH("Can't call method on "+e);return e},li=function(e){return ZP(A3(e))},Jn=function(e){return typeof e=="object"?e!==null:Ir(e)},_n={},KD=function(e){return Ir(e)?e:void 0},Fc=function(e,t){return arguments.length<2?KD(_n[e])||KD($e[e]):_n[e]&&_n[e][t]||$e[e]&&$e[e][t]},tp=Ot({}.isPrototypeOf),m1=Fc("navigator","userAgent")||"",YD=$e.process,XD=$e.Deno,JD=YD&&YD.versions||XD&&XD.version,ZD=JD&&JD.v8;ZD&&(dv=(Ki=ZD.split("."))[0]>0&&Ki[0]<4?1:+(Ki[0]+Ki[1])),!dv&&m1&&(!(Ki=m1.match(/Edge\/(\d+)/))||Ki[1]>=74)&&(Ki=m1.match(/Chrome\/(\d+)/))&&(dv=+Ki[1]);var og,Gv=dv,Ro=!!Object.getOwnPropertySymbols&&!hn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gv&&Gv<41})),k3=Ro&&!Symbol.sham&&typeof Symbol.iterator=="symbol",eU=$e.Object,zl=k3?function(e){return typeof e=="symbol"}:function(e){var t=Fc("Symbol");return Ir(t)&&tp(t.prototype,eU(e))},tU=$e.String,V4=function(e){try{return tU(e)}catch{return"Object"}},rU=$e.TypeError,O3=function(e){if(Ir(e))return e;throw rU(V4(e)+" is not a function")},qv=function(e,t){var r=e[t];return r==null?void 0:O3(r)},nU=$e.TypeError,oU=Object.defineProperty,Da=$e["__core-js_shared__"]||(function(e,t){try{oU($e,e,{value:t,configurable:!0,writable:!0})}catch{$e[e]=t}return t})("__core-js_shared__",{}),Ls=Is((function(e){(e.exports=function(t,r){return Da[t]||(Da[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),iU=$e.Object,rh=function(e){return iU(A3(e))},aU=Ot({}.hasOwnProperty),tt=Object.hasOwn||function(e,t){return aU(rh(e),t)},uU=0,sU=Math.random(),lU=Ot(1 .toString),Kv=function(e){return"Symbol("+(e===void 0?"":e)+")_"+lU(++uU+sU,36)},Qc=Ls("wks"),Xu=$e.Symbol,QD=Xu&&Xu.for,cU=k3?Xu:Xu&&Xu.withoutSetter||Kv,Kr=function(e){if(!tt(Qc,e)||!Ro&&typeof Qc[e]!="string"){var t="Symbol."+e;Ro&&tt(Xu,e)?Qc[e]=Xu[e]:Qc[e]=k3&&QD?QD(t):cU(t)}return Qc[e]},fU=$e.TypeError,dU=Kr("toPrimitive"),pU=function(e,t){if(!Jn(e)||zl(e))return e;var r,n=qv(e,dU);if(n){if(r=kn(n,e,t),!Jn(r)||zl(r))return r;throw fU("Can't convert object to primitive value")}return(function(o,i){var a,u;if(Ir(a=o.toString)&&!Jn(u=kn(a,o))||Ir(a=o.valueOf)&&!Jn(u=kn(a,o)))return u;throw nU("Can't convert object to primitive value")})(e)},Bc=function(e){var t=pU(e,"string");return zl(t)?t:t+""},W4=$e.document,hU=Jn(W4)&&Jn(W4.createElement),QP=function(e){return hU?W4.createElement(e):{}},ej=!cn&&!hn((function(){return Object.defineProperty(QP("div"),"a",{get:function(){return 7}}).a!=7})),e8=Object.getOwnPropertyDescriptor,gU=cn?e8:function(e,t){if(e=li(e),t=Bc(t),ej)try{return e8(e,t)}catch{}if(tt(e,t))return So(!kn(_3.f,e,t),e[t])},ay={f:gU},vU=/#|\.prototype\./,nh=function(e,t){var r=yU[mU(e)];return r==wU||r!=bU&&(Ir(t)?hn(t):!!t)},mU=nh.normalize=function(e){return String(e).replace(vU,".").toLowerCase()},yU=nh.data={},bU=nh.NATIVE="N",wU=nh.POLYFILL="P",EU=nh,t8=Ot(Ot.bind),T3=function(e,t){return O3(e),t===void 0?e:t8?t8(e,t):function(){return e.apply(t,arguments)}},xU=$e.String,SU=$e.TypeError,Fn=function(e){if(Jn(e))return e;throw SU(xU(e)+" is not an object")},CU=$e.TypeError,r8=Object.defineProperty,DU=cn?r8:function(e,t,r){if(Fn(e),t=Bc(t),Fn(r),ej)try{return r8(e,t,r)}catch{}if("get"in r||"set"in r)throw CU("Accessors not supported");return"value"in r&&(e[t]=r.value),e},ou={f:DU},Zr=cn?function(e,t,r){return ou.f(e,t,So(1,r))}:function(e,t,r){return e[t]=r,e},_U=ay.f,AU=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return XP(e,this,arguments)};return t.prototype=e.prototype,t},Ei=function(e,t){var r,n,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?$e:d?$e[c]:($e[c]||{}).prototype,m=f?_n:_n[c]||Zr(_n,c,{})[c],g=m.prototype;for(o in t)r=!EU(f?o:c+(d?".":"#")+o,e.forced)&&v&&tt(v,o),a=m[o],r&&(u=e.noTargetGet?(l=_U(v,o))&&l.value:v[o]),i=r&&u?u:t[o],r&&typeof a==typeof i||(s=e.bind&&r?T3(i,$e):e.wrap&&r?AU(i):p&&Ir(i)?Ot(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Zr(s,"sham",!0),Zr(m,o,s),p&&(tt(_n,n=c+"Prototype")||Zr(_n,n,{}
1),Zr(_n[n],o,i),e.real&&g&&!g[o]&&Zr(g,o,i)))},n8=Ls("keys"),uy=function(e){return n8[e]||(n8[e]=Kv(e))},kU=!hn((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),o8=uy("IE_PROTO"),G4=$e.Object,OU=G4.prototype,Yv=kU?G4.getPrototypeOf:function(e){var t=rh(e);if(tt(t,o8))return t[o8];var r=t.constructor;return Ir(r)&&t instanceof r?r.prototype:t instanceof G4?OU:null},TU=$e.String,FU=$e.TypeError,Xv=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Ot(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Fn(n),(function(i){if(typeof i=="object"||Ir(i))return i;throw FU("Can't set "+TU(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),BU=Math.ceil,PU=Math.floor,F3=function(e){var t=+e;return t!=t||t===0?0:(t>0?PU:BU)(t)},jU=Math.max,NU=Math.min,q4=function(e,t){var r=F3(e);return r<0?jU(r+t,0):NU(r,t)},IU=Math.min,oh=function(e){return(t=e.length)>0?IU(F3(t),9007199254740991):0;var t},LU=function(e){return function(t,r,n){var o,i=li(t),a=oh(i),u=q4(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},RU={indexOf:LU(!1)},ih={},MU=RU.indexOf,i8=Ot([].push),tj=function(e,t){var r,n=li(e),o=0,i=[];for(r in n)!tt(ih,r)&&tt(n,r)&&i8(i,r);for(;t.length>o;)tt(n,r=t[o++])&&(~MU(i,r)||i8(i,r));return i},Jv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$U=Jv.concat("length","prototype"),zU=Object.getOwnPropertyNames||function(e){return tj(e,$U)},B3={f:zU},pv={f:Object.getOwnPropertySymbols},HU=Ot([].concat),UU=Fc("Reflect","ownKeys")||function(e){var t=B3.f(Fn(e)),r=pv.f;return r?HU(t,r(e)):t},P3=Object.keys||function(e){return tj(e,Jv)},VU=cn?Object.defineProperties:function(e,t){Fn(e);for(var r,n=li(t),o=P3(t),i=o.length,a=0;i>a;)ou.f(e,r=o[a++],n[r]);return e},WU=Fc("document","documentElement"),rj=uy("IE_PROTO"),y1=function(){},nj=function(e){return"<script>"+e+"<\/script>"},a8=function(e){e.write(nj("")),e.close();var t=e.parentWindow.Object;return e=null,t},hv=function(){try{og=new ActiveXObject("htmlfile")}catch{}var e,t;hv=typeof document<"u"?document.domain&&og?a8(og):((t=QP("iframe")).style.display="none",WU.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(nj("document.F=Object")),e.close(),e.F):a8(og);for(var r=Jv.length;r--;)delete hv.prototype[Jv[r]];return hv()};ih[rj]=!0;var ji=Object.create||function(e,t){var r;return e!==null?(y1.prototype=Fn(e),r=new y1,y1.prototype=null,r[rj]=e):r=hv(),t===void 0?r:VU(r,t)},K4=function(e,t,r){var n=Bc(t);n in e?ou.f(e,n,So(0,r)):e[n]=r},GU=$e.Array,qU=Math.max,oj=function(e,t,r){for(var n=oh(e),o=q4(t,n),i=q4(n,n),a=GU(qU(i-o,0)),u=0;o<i;o++,u++)K4(a,u,e[o]);return a.length=u,a},KU=Ot("".replace),YU=Ot("".split),XU=Ot([].join),Y4=String(Error("zxcasd").stack),ij=/\n\s*at [^:]*:[^\n]*/,JU=ij.test(Y4),ZU=/@[^\n]*\n/.test(Y4)&&!/zxcasd/.test(Y4),QU=function(e,t){if(typeof e!="string")return e;if(JU)for(;t--;)e=KU(e,ij,"");else if(ZU)return XU(oj(YU(e,` 2`),t),` 3`);return e},eV=function(e,t){Jn(t)&&"cause"in t&&Zr(e,"cause",t.cause)},Oi={},tV=Kr("iterator"),rV=Array.prototype,aj={};aj[Kr("toStringTag")]="z";var j3=String(aj)==="[object z]",nV=Kr("toStringTag"),oV=$e.Object,iV=Yu((function(){return arguments})())=="Arguments",ah=j3?Yu:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=oV(e),nV))=="string"?r:iV?Yu(t):(n=Yu(t))=="Object"&&Ir(t.callee)?"Arguments":n},aV=Kr("iterator"),u8=function(e){if(e!=null)return qv(e,aV)||qv(e,"@@iterator")||Oi[ah(e)]},uV=$e.TypeError,s8=function(e,t,r){var n,o;Fn(e);try{if(!(n=qv(e,"return"))){if(t==="throw")throw r;return r}n=kn(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Fn(n),r},sV=$e.TypeError,gv=function(e,t){this.stopped=e,this.result=t},l8=gv.prototype,lV=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=T3(t,c),m=function(y){return n&&s8(n,"normal",y),new gv(!0,y)},g=function(y){return f?(Fn(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)n=e;else{if(!(o=u8(e)))throw sV(V4(e)+" is not iterable");if((function(y){return y!==void 0&&(Oi.Array===y||rV[tV]===y)})(o)){for(i=0,a=oh(e);a>i;i++)if((u=g(e[i]))&&tp(l8,u))return u;return new gv(!1)}n=(function(y,h){var b=arguments.length<2?u8(y):h;if(O3(b))return Fn(kn(b,y));throw uV(V4(y)+" is not iterable")})(e,o)}for(s=n.next;!(l=kn(s,n)).done;){try{u=g(l.value)}catch(y){s8(n,"throw",y)}if(typeof u=="object"&&u&&tp(l8,u))return u}return new gv(!1)},cV=$e.String,rp=function(e){if(ah(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return cV(e)},fV=function(e,t){return e===void 0?arguments.length<2?"":t:rp(e)},dV=!hn((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",So(1,7)),e.stack!==7)})),pV=Kr("toStringTag"),Zv=$e.Error,hV=[].push,np=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=tp(b1,this);Xv?r=Xv(new Zv(void 0),o?Yv(this):b1):(r=o?this:ji(b1),Zr(r,pV,"Error")),Zr(r,"message",fV(t,"")),dV&&Zr(r,"stack",QU(r.stack,1)),eV(r,n);var i=[];return lV(e,hV,{that:i}),Zr(r,"errors",i),r};Xv?Xv(np,Zv):(function(e,t){for(var r=UU(t),n=ou.f,o=ay.f,i=0;i<r.length;i++){var a=r[i];tt(e,a)||n(e,a,o(t,a))}})(np,Zv);var b1=np.prototype=ji(Zv.prototype,{constructor:So(1,np),message:So(1,""),name:So(1,"AggregateError")});Ei({global:!0},{AggregateError:np});var gV=Ot(Function.toString);Ir(Da.inspectSource)||(Da.inspectSource=function(e){return gV(e)});var Qv,Fd,e0,uj=Da.inspectSource,c8=$e.WeakMap,vV=Ir(c8)&&/native code/.test(uj(c8)),X4=$e.TypeError,mV=$e.WeakMap;if(vV||Da.state){var yu=Da.state||(Da.state=new mV),yV=Ot(yu.get),f8=Ot(yu.has),bV=Ot(yu.set);Qv=function(e,t){if(f8(yu,e))throw new X4("Object already initialized");return t.facade=e,bV(yu,e,t),t},Fd=function(e){return yV(yu,e)||{}},e0=function(e){return f8(yu,e)}}else{var Xs=uy("state");ih[Xs]=!0,Qv=function(e,t){if(tt(e,Xs))throw new X4("Object already initialized");return t.facade=e,Zr(e,Xs,t),t},Fd=function(e){return tt(e,Xs)?e[Xs]:{}},e0=function(e){return tt(e,Xs)}}var ba,d8,p8,Pc={set:Qv,get:Fd,has:e0,enforce:function(e){return e0(e)?Fd(e):Qv(e,{})},getterFor:function(e){return function(t){var r;if(!Jn(t)||(r=Fd(t)).type!==e)throw X4("Incompatible receiver, "+e+" required");return r}}},sj=Function.prototype,wV=cn&&Object.getOwnPropertyDescriptor,h8=tt(sj,"name"),EV={PROPER:h8&&(function(){}).name==="something",CONFIGURABLE:h8&&(!cn||cn&&wV(sj,"name").configurable)},t0=function(e,t,r,n){Zr(e,t,r)},J4=Kr("iterator"),lj=!1;[].keys&&("next"in(p8=[].keys())?(d8=Yv(Yv(p8)))!==Object.prototype&&(ba=d8):lj=!0);var xV=ba==null||hn((function(){var e={};return ba[J4].call(e)!==e}));ba=xV?{}:ji(ba),Ir(ba[J4])||t0(ba,J4,(function(){return this}));var cj={IteratorPrototype:ba,BUGGY_SAFARI_ITERATORS:lj},SV=j3?{}.toString:function(){return"[object "+ah(this)+"]"},CV=ou.f,g8=Kr("toStringTag"),r0=function(e,t,r,n){if(e){var o=r?e:e.prototype;tt(o,g8)||CV(o,g8,{configurable:!0,value:t}),n&&!j3&&Zr(o,"toString",SV)}},DV=cj.IteratorPrototype,_V=function(){return this},AV=EV.PROPER,w1=cj.BUGGY_SAFARI_ITERATORS,kV=Kr("iterator"),OV=function(){return this},fj=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=ji(DV,{next:So(1,h)}),r0(g,w,!1,!0),Oi[w]=_V})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!w1&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[kV]||d["@@iterator"]||o&&d[o],v=!w1&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=Yv(m.call(new e)))!==Object.prototype&&u.next&&(r0(u,c,!0,!0),Oi[c]=OV),AV&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return kn(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ei({target:t,proto:!0,forced:w1||f},s)),Oi[t]=v,s},TV=Pc.set,FV=Pc.getterFor("Array Iterator");fj(Array,"Array",(function(e,t){TV(this,{type:"Array Iterator",target:li(e),index:0,kind:t})}),(function(){var e=FV(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),Oi.Arguments=Oi.Array;var BV=Ot("".charAt),v8=Ot("".charCodeAt),PV=Ot("".slice),jV=function(e){return function(t,r){var n,o,i=rp(A3(t)),a=F3(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=v8(i,a))<55296||n>56319||a+1===u||(o=v8(i,a+1))<56320||o>57343?e?BV(i,a):n:e?PV(i,a,a+2):o-56320+(n-55296<<10)+65536}},NV={charAt:jV(!0)}.charAt,IV=Pc.set,LV=Pc.getterFor("String Iterator");fj(String,"String",(function(e){IV(this,{type:"String Iterator",string:rp(e),index:0})}),(function(){var e,t=LV(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=NV(r,n),t.index+=e.length,{value:e,done:!1})}));var RV=_n.AggregateError,m8=Kr("toStringTag");for(var E1 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 y8=$e[E1],x1=y8&&y8.prototype;x1&&ah(x1)!==m8&&Zr(x1,m8,E1),Oi[E1]=Oi.Array}var Yi,vv,MV=RV,ig=function(e){return e&&e.Math==Math&&e},Ie=ig(typeof globalThis=="object"&&globalThis)||ig(typeof window=="object"&&window)||ig(typeof self=="object"&&self)||ig(typeof bt=="object"&&bt)||(function(){return this})()||Function("return this")(),Or=function(e){try{return!!e()}catch{return!0}},ti=!Or((function(){return Object.defineProperty({},1,{get:function(){return 7}}
3)[1]!=7})),ef=Function.prototype.call,Nr=ef.bind?ef.bind(ef):function(){return ef.apply(ef,arguments)},b8={}.propertyIsEnumerable,w8=Object.getOwnPropertyDescriptor,$V=w8&&!b8.call({1:2},1)?function(e){var t=w8(this,e);return!!t&&t.enumerable}:b8,zV={f:$V},_a=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},dj=Function.prototype,Z4=dj.bind,Q4=dj.call,HV=Z4&&Z4.bind(Q4),gt=Z4?function(e){return e&&HV(Q4,e)}:function(e){return e&&function(){return Q4.apply(e,arguments)}},UV=gt({}.toString),VV=gt("".slice),Ju=function(e){return VV(UV(e),8,-1)},S1=Ie.Object,WV=gt("".split),pj=Or((function(){return!S1("z").propertyIsEnumerable(0)}))?function(e){return Ju(e)=="String"?WV(e,""):S1(e)}:S1,GV=Ie.TypeError,sy=function(e){if(e==null)throw GV("Can't call method on "+e);return e},jc=function(e){return pj(sy(e))},wr=function(e){return typeof e=="function"},Wo=function(e){return typeof e=="object"?e!==null:wr(e)},qV=function(e){return wr(e)?e:void 0},uh=function(e,t){return arguments.length<2?qV(Ie[e]):Ie[e]&&Ie[e][t]},n0=gt({}.isPrototypeOf),C1=uh("navigator","userAgent")||"",E8=Ie.process,x8=Ie.Deno,S8=E8&&E8.versions||x8&&x8.version,C8=S8&&S8.v8;C8&&(vv=(Yi=C8.split("."))[0]>0&&Yi[0]<4?1:+(Yi[0]+Yi[1])),!vv&&C1&&(!(Yi=C1.match(/Edge\/(\d+)/))||Yi[1]>=74)&&(Yi=C1.match(/Chrome\/(\d+)/))&&(vv=+Yi[1]);var D8=vv,eE=!!Object.getOwnPropertySymbols&&!Or((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&D8&&D8<41})),N3=eE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",KV=Ie.Object,tE=N3?function(e){return typeof e=="symbol"}:function(e){var t=uh("Symbol");return wr(t)&&n0(t.prototype,KV(e))},YV=Ie.String,rE=function(e){try{return YV(e)}catch{return"Object"}},XV=Ie.TypeError,I3=function(e){if(wr(e))return e;throw XV(rE(e)+" is not a function")},op=function(e,t){var r=e[t];return r==null?void 0:I3(r)},JV=Ie.TypeError,ZV=Object.defineProperty,L3=function(e,t){try{ZV(Ie,e,{value:t,configurable:!0,writable:!0})}catch{Ie[e]=t}return t},Aa=Ie["__core-js_shared__"]||L3("__core-js_shared__",{}),R3=Is((function(e){(e.exports=function(t,r){return Aa[t]||(Aa[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),QV=Ie.Object,M3=function(e){return QV(sy(e))},eW=gt({}.hasOwnProperty),fn=Object.hasOwn||function(e,t){return eW(M3(e),t)},tW=0,rW=Math.random(),nW=gt(1 .toString),hj=function(e){return"Symbol("+(e===void 0?"":e)+")_"+nW(++tW+rW,36)},tf=R3("wks"),Zu=Ie.Symbol,_8=Zu&&Zu.for,oW=N3?Zu:Zu&&Zu.withoutSetter||hj,tn=function(e){if(!fn(tf,e)||!eE&&typeof tf[e]!="string"){var t="Symbol."+e;eE&&fn(Zu,e)?tf[e]=Zu[e]:tf[e]=N3&&_8?_8(t):oW(t)}return tf[e]},iW=Ie.TypeError,aW=tn("toPrimitive"),uW=function(e,t){if(!Wo(e)||tE(e))return e;var r,n=op(e,aW);if(n){if(r=Nr(n,e,t),!Wo(r)||tE(r))return r;throw iW("Can't convert object to primitive value")}return(function(o,i){var a,u;if(wr(a=o.toString)&&!Wo(u=Nr(a,o))||wr(a=o.valueOf)&&!Wo(u=Nr(a,o)))return u;throw JV("Can't convert object to primitive value")})(e)},$3=function(e){var t=uW(e,"string");return tE(t)?t:t+""},nE=Ie.document,sW=Wo(nE)&&Wo(nE.createElement),z3=function(e){return sW?nE.createElement(e):{}},gj=!ti&&!Or((function(){return Object.defineProperty(z3("div"),"a",{get:function(){return 7}}).a!=7})),A8=Object.getOwnPropertyDescriptor,lW=ti?A8:function(e,t){if(e=jc(e),t=$3(t),gj)try{return A8(e,t)}catch{}if(fn(e,t))return _a(!Nr(zV.f,e,t),e[t])},H3={f:lW},cW=Ie.String,fW=Ie.TypeError,Bn=function(e){if(Wo(e))return e;throw fW(cW(e)+" is not an object")},dW=Ie.TypeError,k8=Object.defineProperty,pW=ti?k8:function(e,t,r){if(Bn(e),t=$3(t),Bn(r),gj)try{return k8(e,t,r)}catch{}if("get"in r||"set"in r)throw dW("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Nc={f:pW},sn=ti?function(e,t,r){return Nc.f(e,t,_a(1,r))}:function(e,t,r){return e[t]=r,e},hW=gt(Function.toString);wr(Aa.inspectSource)||(Aa.inspectSource=function(e){return hW(e)});var o0,Bd,i0,U3=Aa.inspectSource,O8=Ie.WeakMap,gW=wr(O8)&&/native code/.test(U3(O8)),T8=R3("keys"),V3=function(e){return T8[e]||(T8[e]=hj(e))},W3={},oE=Ie.TypeError,vW=Ie.WeakMap;if(gW||Aa.state){var bu=Aa.state||(Aa.state=new vW),mW=gt(bu.get),F8=gt(bu.has),yW=gt(bu.set);o0=function(e,t){if(F8(bu,e))throw new oE("Object already initialized");return t.facade=e,yW(bu,e,t),t},Bd=function(e){return mW(bu,e)||{}},i0=function(e){return F8(bu,e)}}else{var Js=V3("state");W3[Js]=!0,o0=function(e,t){if(fn(e,Js))throw new oE("Object already initialized");return t.facade=e,sn(e,Js,t),t},Bd=function(e){return fn(e,Js)?e[Js]:{}},i0=function(e){return fn(e,Js)}}var ws={set:o0,get:Bd,has:i0,enforce:function(e){return i0(e)?Bd(e):o0(e,{})},getterFor:function(e){return function(t){var r;if(!Wo(t)||(r=Bd(t)).type!==e)throw oE("Incompatible receiver, "+e+" required");return r}}},vj=Function.prototype,bW=ti&&Object.getOwnPropertyDescriptor,B8=fn(vj,"name"),G3={PROPER:B8&&(function(){}).name==="something",CONFIGURABLE:B8&&(!ti||ti&&bW(vj,"name").configurable)},Es=Is((function(e){var t=G3.CONFIGURABLE,r=ws.get,n=ws.enforce,o=String(String).split("String");
3(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;wr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fn(u,"name")||t&&u.name!==p)&&sn(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Ie?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:sn(i,a,u)):f?i[a]=u:L3(a,u)})(Function.prototype,"toString",(function(){return wr(this)&&r(this).source||U3(this)}))})),wW=Math.ceil,EW=Math.floor,q3=function(e){var t=+e;return t!=t||t===0?0:(t>0?EW:wW)(t)},xW=Math.max,SW=Math.min,iE=function(e,t){var r=q3(e);return r<0?xW(r+t,0):SW(r,t)},CW=Math.min,mj=function(e){return e>0?CW(q3(e),9007199254740991):0},ly=function(e){return mj(e.length)},DW=function(e){return function(t,r,n){var o,i=jc(t),a=ly(i),u=iE(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},_W={indexOf:DW(!1)}.indexOf,P8=gt([].push),yj=function(e,t){var r,n=jc(e),o=0,i=[];for(r in n)!fn(W3,r)&&fn(n,r)&&P8(i,r);for(;t.length>o;)fn(n,r=t[o++])&&(~_W(i,r)||P8(i,r));return i},a0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],AW=a0.concat("length","prototype"),kW=Object.getOwnPropertyNames||function(e){return yj(e,AW)},OW={f:kW},TW={f:Object.getOwnPropertySymbols},FW=gt([].concat),BW=uh("Reflect","ownKeys")||function(e){var t=OW.f(Bn(e)),r=TW.f;return r?FW(t,r(e)):t},bj=function(e,t){for(var r=BW(t),n=Nc.f,o=H3.f,i=0;i<r.length;i++){var a=r[i];fn(e,a)||n(e,a,o(t,a))}},PW=/#|\.prototype\./,sh=function(e,t){var r=NW[jW(e)];return r==LW||r!=IW&&(wr(t)?Or(t):!!t)},jW=sh.normalize=function(e){return String(e).replace(PW,".").toLowerCase()},NW=sh.data={},IW=sh.NATIVE="N",LW=sh.POLYFILL="P",RW=sh,MW=H3.f,lh=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Ie:l?Ie[u]||L3(u,{}):(Ie[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=MW(r,n))&&a.value:r[n],!RW(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;bj(i,o)}(e.sham||o&&o.sham)&&sn(i,"sham",!0),Es(r,n,i,e)}},wj={};wj[tn("toStringTag")]="z";var ag,K3=String(wj)==="[object z]",$W=tn("toStringTag"),zW=Ie.Object,HW=Ju((function(){return arguments})())=="Arguments",cy=K3?Ju:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=zW(e),$W))=="string"?r:HW?Ju(t):(n=Ju(t))=="Object"&&wr(t.callee)?"Arguments":n},UW=Ie.String,Qu=function(e){if(cy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return UW(e)},VW=function(){var e=Bn(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},Y3=Ie.RegExp,Ej=Or((function(){var e=Y3("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));Ej||Or((function(){return!Y3("a","y").sticky}));var WW=Ej||Or((function(){var e=Y3("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),GW={BROKEN_CARET:WW},qW=Object.keys||function(e){return yj(e,a0)},KW=ti?Object.defineProperties:function(e,t){Bn(e);for(var r,n=jc(t),o=qW(t),i=o.length,a=0;i>a;)Nc.f(e,r=o[a++],n[r]);return e},YW=uh("document","documentElement"),xj=V3("IE_PROTO"),D1=function(){},Sj=function(e){return"<script>"+e+"<\/script>"},j8=function(e){e.write(Sj("")),e.close();var t=e.parentWindow.Object;return e=null,t},mv=function(){try{ag=new ActiveXObject("htmlfile")}catch{}var e,t;mv=typeof document<"u"?document.domain&&ag?j8(ag):((t=z3("iframe")).style.display="none",YW.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Sj("document.F=Object")),e.close(),e.F):j8(ag);for(var r=a0.length;r--;)delete mv.prototype[a0[r]];return mv()};W3[xj]=!0;var N8,_1,ch=Object.create||function(e,t){var r;return e!==null?(D1.prototype=Bn(e),r=new D1,D1.prototype=null,r[xj]=e):r=mv(),t===void 0?r:KW(r,t)},XW=Ie.RegExp,JW=Or((function(){var e=XW(".","s");return!(e.dotAll&&e.exec(` 4`)&&e.flags==="s")})),ZW=Ie.RegExp,QW=Or((function(){var e=ZW("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),eG=ws.get,tG=R3("native-string-replace",String.prototype.replace),u0=RegExp.prototype.exec,aE=u0,rG=gt("".charAt),nG=gt("".indexOf),oG=gt("".replace),A1=gt("".slice),k1=(_1=/b*/g,Nr(u0,N8=/a/,"a"),Nr(u0,_1,"a"),N8.lastIndex!==0||_1.lastIndex!==0),I8=GW.BROKEN_CARET,O1=/()??/.exec("")[1]!==void 0;(k1||O1||I8||JW||QW)&&(aE=function(e){var t,r,n,o,i,a,u,s=this,l=eG(s),c=Qu(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Nr(aE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=I8&&s.sticky,v=Nr(VW,s),m=s.source,g=0,y=c;if(p&&(v=oG(v,"y",""),nG(v,"g")===-1&&(v+="g"),y=A1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&rG(c,s.lastIndex-1)!==` 5`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),O1&&(r=new RegExp("^"+m+"$(?!\\s)",v)),k1&&(n=s.lastIndex),o=Nr(u0,p?r:s,y),p?o?(o.input=A1(o.input,g),o[0]=A1(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:k1&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),O1&&o&&o.length>1&&Nr(tG,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=ch(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
5);var s0=aE;lh({target:"RegExp",proto:!0,forced:/./.exec!==s0},{exec:s0});var iG=tn("species"),L8=RegExp.prototype,aG=gt("".charAt),R8=gt("".charCodeAt),uG=gt("".slice),sG=function(e){return function(t,r){var n,o,i=Qu(sy(t)),a=q3(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=R8(i,a))<55296||n>56319||a+1===u||(o=R8(i,a+1))<56320||o>57343?e?aG(i,a):n:e?uG(i,a,a+2):o-56320+(n-55296<<10)+65536}},Cj={charAt:sG(!0)},lG=Cj.charAt,cG=function(e,t,r){return t+(r?lG(e,t).length:1)},fG=Ie.TypeError,M8=function(e,t){var r=e.exec;if(wr(r)){var n=Nr(r,e,t);return n!==null&&Bn(n),n}if(Ju(e)==="RegExp")return Nr(s0,e,t);throw fG("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=tn(e),i=!Or((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Or((function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[iG]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=gt(/./[o]),s=t(o,""[e],(function(l,c,f,d,p){var v=gt(l),m=c.exec;return m===s0||m===L8.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}));Es(String.prototype,e,s[0]),Es(L8,o,s[1])}})("match",(function(e,t,r){return[function(n){var o=sy(this),i=n==null?void 0:op(n,e);return i?Nr(i,n,o):new RegExp(n)[e](Qu(o))},function(n){var o=Bn(this),i=Qu(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return M8(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=M8(o,i))!==null;){var f=Qu(s[0]);l[c]=f,f===""&&(o.lastIndex=cG(i,mj(o.lastIndex),u)),c++}return c===0?null:l}]})),lh({global:!0},{globalThis:Ie});var dG=!Or((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$8=V3("IE_PROTO"),uE=Ie.Object,pG=uE.prototype,ip=dG?uE.getPrototypeOf:function(e){var t=M3(e);if(fn(t,$8))return t[$8];var r=t.constructor;return wr(r)&&t instanceof r?r.prototype:t instanceof uE?pG:null},hG=Ie.String,gG=Ie.TypeError,rc=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=gt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Bn(n),(function(i){if(typeof i=="object"||wr(i))return i;throw gG("Can't set "+hG(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),vG=Ie.Array,mG=Math.max,yG=gt("".replace),bG=gt("".split),wG=gt([].join),sE=String(Error("zxcasd").stack),Dj=/\n\s*at [^:]*:[^\n]*/,EG=Dj.test(sE),xG=/@[^\n]*\n/.test(sE)&&!/zxcasd/.test(sE),SG=function(e,t){if(typeof e!="string")return e;if(EG)for(;t--;)e=yG(e,Dj,"");else if(xG)return wG((function(r,n,o){for(var i,a,u,s,l=ly(r),c=iE(n,l),f=iE(l,l),d=vG(mG(f-c,0)),p=0;c<f;c++,p++)i=d,a=p,u=r[c],s=void 0,(s=$3(a))in i?Nc.f(i,s,_a(0,u)):i[s]=u;return d.length=p,d})(bG(e,` 6`),t),` 7`);return e},CG=function(e,t){Wo(t)&&"cause"in t&&sn(e,"cause",t.cause)},z8=gt(gt.bind),_j=function(e,t){return I3(e),t===void 0?e:z8?z8(e,t):function(){return e.apply(t,arguments)}},nc={},DG=tn("iterator"),_G=Array.prototype,AG=tn("iterator"),H8=function(e){if(e!=null)return op(e,AG)||op(e,"@@iterator")||nc[cy(e)]},kG=Ie.TypeError,U8=function(e,t,r){var n,o;Bn(e);try{if(!(n=op(e,"return"))){if(t==="throw")throw r;return r}n=Nr(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Bn(n),r},OG=Ie.TypeError,yv=function(e,t){this.stopped=e,this.result=t},V8=yv.prototype,TG=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=_j(t,c),m=function(y){return n&&U8(n,"normal",y),new yv(!0,y)},g=function(y){return f?(Bn(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)n=e;else{if(!(o=H8(e)))throw OG(rE(e)+" is not iterable");if((function(y){return y!==void 0&&(nc.Array===y||_G[DG]===y)})(o)){for(i=0,a=ly(e);a>i;i++)if((u=g(e[i]))&&n0(V8,u))return u;return new yv(!1)}n=(function(y,h){var b=arguments.length<2?H8(y):h;if(I3(b))return Bn(Nr(b,y));throw kG(rE(y)+" is not iterable")})(e,o)}for(s=n.next;!(l=Nr(s,n)).done;){try{u=g(l.value)}catch(y){U8(n,"throw",y)}if(typeof u=="object"&&u&&n0(V8,u))return u}return new yv(!1)},FG=function(e,t){return e===void 0?arguments.length<2?"":t:Qu(e)},BG=!Or((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",_a(1,7)),e.stack!==7)})),PG=tn("toStringTag"),l0=Ie.Error,jG=[].push,ap=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=n0(T1,this);rc?r=rc(new l0(void 0),o?ip(this):T1):(r=o?this:ch(T1),sn(r,PG,"Error")),sn(r,"message",FG(t,"")),BG&&sn(r,"stack",SG(r.stack,1)),CG(r,n);var i=[];return TG(e,jG,{that:i}),sn(r,"errors",i),r};rc?rc(ap,l0):bj(ap,l0);var T1=ap.prototype=ch(l0.prototype,{constructor:_a(1,ap),message:_a(1,""),name:_a(1,"AggregateError")});lh({global:!0},{AggregateError:ap});var lE=tn("unscopables"),cE=Array.prototype;cE[lE]==null&&Nc.f(cE,lE,{configurable:!0,value:ch(null)});var es,W8,G8,F1=function(e){cE[lE][e]=!0},fE=tn("iterator"),Aj=!1;[].keys&&("next"in(G8=[].keys())?(W8=ip(ip(G8)))!==Object.prototype&&(es=W8):Aj=!0);var NG=es==null||Or((function(){var e={};return es[fE].call(e)!==e}));NG&&(es={}),wr(es[fE])||Es(es,fE,(function(){return this}));var X3={IteratorPrototype:es,BUGGY_SAFARI_ITERATORS:Aj},IG=Nc.f,q8=tn("toStringTag"),K8=function(e,t,r){e&&!fn(e=r?e:e.prototype,q8)&&IG(e,q8,{configurable:!0,value:t})},LG=X3.IteratorPrototype,RG=function(){return this},MG=G3.PROPER,$G=G3.CONFIGURABLE,Y8=X3.IteratorPrototype,B1=X3.BUGGY_SAFARI_ITERATORS,rf=tn("iterator"),zG=function(){return this},kj=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=ch(LG,{next:_a(1,h)}),K8(g,w,!1),nc[w]=RG})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!B1&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[rf]||d["@@iterator"]||o&&d[o],v=!B1&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=ip(m.call(new e)))!==Object.prototype&&u.next&&(ip(u)!==Y8&&(rc?rc(u,Y8):wr(u[rf])||Es(u,rf,zG)),K8(u,c,!0)),MG&&o=="values"&&p&&p.name!=="values"&&($G?sn(d,"name","values"):(f=!0,v=function(){return Nr(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||lh({target:t,proto:!0,forced:B1||f},s)),d[rf]!==v&&Es(d,rf,v,{name:o}),nc[t]=v,s},HG=ws.set,UG=ws.getterFor("Array Iterator"),wd=kj(Array,"Array",(function(e,t){HG(this,{type:"Array Iterator",target:jc(e),index:0,kind:t})}),(function(){var e=UG(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");nc.Arguments=nc.Array,F1("keys"),F1("values"),F1("entries");var VG=Cj.charAt,WG=ws.set,GG=ws.getterFor("String Iterator");kj(String,"String",(function(e){WG(this,{type:"String Iterator",string:Qu(e),index:0})}),(function(){var e,t=GG(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=VG(r,n),t.index+=e.length,{value:e,done:!1})}));var P1,c0={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}
7,j1=z3("span").classList,X8=j1&&j1.constructor&&j1.constructor.prototype,Oj=X8===Object.prototype?void 0:X8,N1=tn("iterator"),J8=tn("toStringTag"),I1=wd.values,Tj=function(e,t){if(e){if(e[N1]!==I1)try{sn(e,N1,I1)}catch{e[N1]=I1}if(e[J8]||sn(e,J8,t),c0[t]){for(var r in wd)if(e[r]!==wd[r])try{sn(e,r,wd[r])}catch{e[r]=wd[r]}}}};for(var L1 in c0)Tj(Ie[L1]&&Ie[L1].prototype,L1);Tj(Oj,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`æ±æï¼wangEditor V5+ çæ¬å¼å§ï¼ä¸å¨æ¯æ IE æµè§å¨ 8 Sorry, wangEditor V5+ versions do not support IE browser.`),Z8(),Q8()):global&&(!((P1=global.navigator)===null||P1===void 0)&&P1.userAgent.match("QQBrowser"))&&(Z8(),Q8());function Z8(){typeof globalThis>"u"&&(window.globalThis=window)}function Q8(){MV===void 0&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var e_,f0=Array.isArray||function(e){return Yu(e)=="Array"},Fj=function(){},qG=[],Bj=Fc("Reflect","construct"),J3=/^\s*(?:class|function)\b/,KG=Ot(J3.exec),YG=!J3.exec(Fj),nf=function(e){if(!Ir(e))return!1;try{return Bj(Fj,qG,e),!0}catch{return!1}},XG=!Bj||hn((function(){var e;return nf(nf.call)||!nf(Object)||!nf((function(){e=!0}))||e}))?function(e){if(!Ir(e))return!1;switch(ah(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return YG||!!KG(J3,uj(e))}:nf,JG=Kr("species"),t_=$e.Array,Pj=function(e,t){return new((function(r){var n;return f0(r)&&(n=r.constructor,(XG(n)&&(n===t_||f0(n.prototype))||Jn(n)&&(n=n[JG])===null)&&(n=void 0)),n===void 0?t_:n})(e))(t===0?0:t)},ZG=Kr("species"),jj=Kr("isConcatSpreadable"),r_=$e.TypeError,QG=Gv>=51||!hn((function(){var e=[];return e[jj]=!1,e.concat()[0]!==e})),eq=(e_="concat",Gv>=51||!hn((function(){var e=[];return(e.constructor={})[ZG]=function(){return{foo:1}},e[e_](Boolean).foo!==1}))),tq=function(e){if(!Jn(e))return!1;var t=e[jj];return t!==void 0?!!t:f0(e)};Ei({target:"Array",proto:!0,forced:!QG||!eq},{concat:function(e){var t,r,n,o,i,a=rh(this),u=Pj(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(tq(i=t===-1?a:arguments[t])){if(s+(o=oh(i))>9007199254740991)throw r_("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&K4(u,s,i[r])}else{if(s>=9007199254740991)throw r_("Maximum allowed index exceeded");K4(u,s++,i)}return u.length=s,u}});var n_=B3.f,o_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Nj={f:function(e){return o_&&Yu(e)=="Window"?(function(t){try{return n_(t)}catch{return oj(o_)}})(e):n_(li(e))}},rq=Ot([].slice),Z3={f:Kr},nq=ou.f,Yt=function(e){var t=_n.Symbol||(_n.Symbol={});tt(t,e)||nq(t,e,{value:Z3.f(e)})},i_=Ot([].push),oq=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=rh(s),m=ZP(v),g=T3(l,c),y=oh(m),h=0,b=f||Pj,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:i_(w,d)}else switch(e){case 4:return!1;case 7:i_(w,d)}return i?-1:n||o?o:w}},fy={forEach:oq(0)}.forEach,an=uy("hidden"),a_=Kr("toPrimitive"),iq=Pc.set,u_=Pc.getterFor("Symbol"),wo=Object.prototype,ha=$e.Symbol,wa=ha&&ha.prototype,s_=$e.TypeError,R1=$e.QObject,of=Fc("JSON","stringify"),Ij=ay.f,ga=ou.f,Lj=Nj.f,aq=_3.f,Rj=Ot([].push),Ni=Ls("symbols"),fh=Ls("op-symbols"),M1=Ls("string-to-symbol-registry"),$1=Ls("symbol-to-string-registry"),uq=Ls("wks"),z1=!R1||!R1.prototype||!R1.prototype.findChild,dE=cn&&hn((function(){return ji(ga({},"a",{get:function(){return ga(this,"a",{value:7}).a}})).a!=7}))?function(e,t,r){var n=Ij(wo,t);n&&delete wo[t],ga(e,t,r),n&&e!==wo&&ga(wo,t,n)}:ga,H1=function(e,t){var r=Ni[e]=ji(wa);return iq(r,{type:"Symbol",tag:e,description:t}),cn||(r.description=t),r},d0=function(e,t,r){e===wo&&d0(fh,t,r),Fn(e);var n=Bc(t);return Fn(r),tt(Ni,n)?(r.enumerable?(tt(e,an)&&e[an][n]&&(e[an][n]=!1),r=ji(r,{enumerable:So(0,!1)})):(tt(e,an)||ga(e,an,So(1,{})),e[an][n]=!0),dE(e,n,r)):ga(e,n,r)},l_=function(e,t){Fn(e);var r=li(t),n=P3(r).concat(pE(r));return fy(n,(function(o){cn&&!kn(Mj,r,o)||d0(e,o,r[o])})),e},Mj=function(e){var t=Bc(e),r=kn(aq,this,t);return!(this===wo&&tt(Ni,t)&&!tt(fh,t))&&(!(r||!tt(this,t)||!tt(Ni,t)||tt(this,an)&&this[an][t])||r)},c_=function(e,t){var r=li(e),n=Bc(t);if(r!==wo||!tt(Ni,n)||tt(fh,n)){var o=Ij(r,n);return!o||!tt(Ni,n)||tt(r,an)&&r[an][n]||(o.enumerable=!0),o}},f_=function(e){var t=Lj(li(e)),r=[];return fy(t,(function(n){tt(Ni,n)||tt(ih,n)||Rj(r,n)})),r},pE=function(e){var t=e===wo,r=Lj(t?fh:li(e)),n=[];return fy(r,(function(o){!tt(Ni,o)||t&&!tt(wo,o)||Rj(n,Ni[o])})),n};if(Ro||(wa=(ha=function(){if(tp(wa,this))throw s_("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?rp(arguments[0]):void 0,t=Kv(e),r=function(n){this===wo&&kn(r,fh,n),tt(this,an)&&tt(this[an],t)&&(this[an][t]=!1),dE(this,t,So(1,n))};return cn&&z1&&dE(wo,t,{configurable:!0,set:r}),H1(t,e)}).prototype,t0(wa,"toString",(function(){return u_(this).tag})),t0(ha,"withoutSetter",(function(e){return H1(Kv(e),e)})),_3.f=Mj,ou.f=d0,ay.f=c_,B3.f=Nj.f=f_,pv.f=pE,Z3.f=function(e){return H1(Kr(e),e)},cn&&ga(wa,"description",{configurable:!0,get:function(){return u_(this).description}})),Ei({global:!0,wrap:!0,forced:!Ro,sham:!Ro},{Symbol:ha}),fy(P3(uq),(function(e){Yt(e)})),Ei({target:"Symbol",stat:!0,forced:!Ro},{for:function(e){var t=rp(e);if(tt(M1,t))return M1[t];var r=ha(t);return M1[t]=r,$1[r]=t,r},keyFor:function(e){if(!zl(e))throw s_(e+" is not a symbol");if(tt($1,e))return $1[e]},useSetter:function(){z1=!0},useSimple:function(){z1=!1}}),Ei({target:"Object",stat:!0,forced:!Ro,sham:!cn},{create:function(e,t){return t===void 0?ji(e):l_(ji(e),t)},defineProperty:d0,defineProperties:l_,getOwnPropertyDescriptor:c_}),Ei({target:"Object",stat:!0,forced:!Ro},{getOwnPropertyNames:f_,getOwnPropertySymbols:pE}),Ei({target:"Object",stat:!0,forced:hn((function(){pv.f(1)}))},{getOwnPropertySymbols:function(e){return pv.f(rh(e))}}),of){var sq=!Ro||hn((function(){var e=ha();return of([e])!="[null]"||of({a:e})!="{}"||of(Object(e))!="{}"}));Ei({target:"JSON",stat:!0,forced:sq},{stringify:function(e,t,r){var n=rq(arguments),o=t;if((Jn(t)||e!==void 0)&&!zl(e))return f0(t)||(t=function(i,a){if(Ir(o)&&(a=kn(o,this,i,a)),!zl(a))return a}),n[1]=t,XP(of,null,n)}})}if(!wa[a_]){var lq=wa.valueOf;t0(wa,a_,(function(e){return kn(lq,this)}))}r0(ha,"Symbol"),ih[an]=!0,Yt("asyncIterator"),Yt("hasInstance"),Yt("isConcatSpreadable"),Yt("iterator"),Yt("match"),Yt("matchAll"),Yt("replace"),Yt("search"),Yt("species"),Yt("split"),Yt("toPrimitive"),Yt("toStringTag"),Yt("unscopables"),r0($e.JSON,"JSON",!0);var cq=_n.Symbol;Yt("asyncDispose"),Yt("dispose"),Yt("matcher"),Yt("metadata"),Yt("observable"),Yt("patternMatch"),Yt("replaceAll");var ug=cq,fq=Z3.f("iterator"),dq=Is((function(e){function t(r){return typeof ug=="function"&&typeof fq=="symbol"?
8(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof ug=="function"&&n.constructor===ug&&n!==ug.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),pq=GH(dq),$j=H3.f,hq=Or((function(){$j(1)}));if(lh({target:"Object",stat:!0,forced:!ti||hq,sham:!ti},{getOwnPropertyDescriptor:function(e,t){return $j(jc(e),t)}}),(typeof global>"u"?"undefined":pq(global))==="object"){var gq=Object.getOwnPropertyDescriptor(global,"window");global.window&&!gq.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 d_(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hr(e){var t,r;return d_(e)!==!1&&((t=e.constructor)===void 0||d_(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function bo(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xs(e){return!!e&&!!e[Pn]}function Ss(e){return!!e&&((function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Eq})(e)||Array.isArray(e)||!!e[w_]||!!e.constructor[w_]||Q3(e)||eS(e))}function up(e,t,r){r===void 0&&(r=!1),oc(e)===0?(r?Object.keys:iS)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function oc(e){var t=e[Pn];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Q3(e)?2:eS(e)?3:0}function hE(e,t){return oc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function zj(e,t,r){var n=oc(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function Q3(e){return bq&&e instanceof Map}function eS(e){return wq&&e instanceof Set}function Fu(e){return e.o||e.t}function tS(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xq(e);delete t[Pn];for(var r=iS(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function rS(e,t){return t===void 0&&(t=!1),nS(e)||xs(e)||!Ss(e)||(oc(e)>1&&(e.set=e.add=e.clear=e.delete=vq),Object.freeze(e),t&&up(e,(function(r,n){return rS(n,!0)}),!0)),e}function vq(){bo(2)}function nS(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ti(e){var t=Sq[e];return t||bo(18,e),t}function p_(){return sp}function U1(e,t){t&&(Ti("Patches"),e.u=[],e.s=[],e.v=t)}function p0(e){gE(e),e.p.forEach(mq),e.p=null}function gE(e){e===sp&&(sp=e.l)}function h_(e){return sp={p:[],l:sp,h:e,m:!0,_:0}}function mq(e){var t=e[Pn];t.i===0||t.i===1?t.j():t.O=!0}function V1(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||Ti("ES5").S(t,e,n),n?(r[Pn].P&&(p0(t),bo(4)),Ss(e)&&(e=h0(t,e),t.l||g0(t,e)),t.u&&Ti("Patches").M(r[Pn],e,t.u,t.s)):e=h0(t,r,[]),p0(t),t.u&&t.v(t.u,t.s),e!==Hj?e:void 0}function h0(e,t,r){if(nS(t))return t;var n=t[Pn];if(!n)return up(t,(function(i,a){return g_(e,n,t,i,a,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return g0(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=tS(n.k):n.o;up(n.i===3?new Set(o):o,(function(i,a){return g_(e,n,o,i,a,r)})),g0(e,o,!1),r&&e.u&&Ti("Patches").R(n,r,e.u,e.s)}return n.o}function g_(e,t,r,n,o,i){if(xs(o)){var a=h0(e,o,i&&t&&t.i!==3&&!hE(t.D,n)?i.concat(n):void 0);if(zj(r,n,a),!xs(a))return;e.m=!1}if(Ss(o)&&!nS(o)){if(!e.h.F&&e._<1)return;h0(e,o),t&&t.A.l||g0(e,o)}}function g0(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&rS(t,r)}function W1(e,t){var r=e[Pn];return(r?Fu(r):e)[t]}function v_(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function vE(e){e.P||(e.P=!0,e.l&&vE(e.l))}function G1(e){e.o||(e.o=tS(e.t))}function mE(e,t,r){var n=Q3(t)?Ti("MapSet").N(t,r):eS(t)?Ti("MapSet").T(t,r):e.g?(function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:p_(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=bv;a&&(s=[u],l=wv);var c=Proxy.revocable(s,l),f=c.revoke,d=c.proxy;return u.k=d,u.j=f,d})(t,r):Ti("ES5").J(t,r);return(r?r.A:p_()).p.push(n),n}function yq(e){return xs(e)||bo(22,e),(function t(r){if(!Ss(r))return r;var n,o=r[Pn],i=oc(r);if(o){if(!o.P&&(o.i<4||!Ti("ES5").K(o)))return o.t;o.I=!0,n=m_(r,i),o.I=!1}else n=m_(r,i);return up(n,(function(a,u){o&&(function(s,l){return oc(s)===2?s.get(l):s[l]})(o.t,a)===u||zj(n,a,t(u))})),i===3?new Set(n):n})(e)}function m_(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return tS(e)}var y_,sp,oS=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bq=typeof Map<"u",wq=typeof Set<"u",b_=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Hj=oS?Symbol.for("immer-nothing"):((y_={})["immer-nothing"]=!0,y_),w_=oS?Symbol.for("immer-draftable"):"__$immer_draftable",Pn=oS?Symbol.for("immer-state"):"__$immer_state",Eq=""+Object.prototype.constructor,iS=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xq=Object.getOwnPropertyDescriptors||function(e){var t={};return iS(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},Sq={},bv={get:function(e,t){if(t===Pn)return e;var r=Fu(e);if(!hE(r,t))return(function(o,i,a){var u,s=v_(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0})(e,r,t);var n=r[t];return e.I||!Ss(n)?n:n===W1(e.t,t)?(G1(e),e.o[t]=mE(e.A.h,n,e)):n},has:function(e,t){return t in Fu(e)},ownKeys:function(e){return Reflect.ownKeys(Fu(e))},set:function(e,t,r){var n=v_(Fu(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=W1(Fu(e),t),i=o?.[Pn];if(i&&i.t===r)return e.o[t]=r,e.D[t]=!1,!0;if((function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u})(r,o)&&(r!==void 0||hE(e.t,t)))return!0;G1(e),vE(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return W1(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,G1(e),vE(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Fu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){bo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){bo(12)}},wv={};up(bv,(function(e,t){wv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),wv.deleteProperty=function(e,t){return bv.deleteProperty.call(this,e[0],t)},wv.set=function(e,t,r){return bv.set.call(this,e[0],t,r,e[0])};
8var Cq=(function(){function e(r){var n=this;this.g=b_,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;return function(p){var v=this;p===void 0&&(p=u);for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return s.produce(p,(function(h){var b;return(b=i).call.apply(b,[v,h].concat(g))}))}}var l;if(typeof i!="function"&&bo(6),a!==void 0&&typeof a!="function"&&bo(7),Ss(o)){var c=h_(n),f=mE(n,o,void 0),d=!0;try{l=i(f),d=!1}finally{d?p0(c):gE(c)}return typeof Promise<"u"&&l instanceof Promise?l.then((function(p){return U1(c,a),V1(p,c)}),(function(p){throw p0(c),p})):(U1(c,a),V1(l,c))}if(!o||typeof o!="object")return(l=i(o))===Hj?void 0:(l===void 0&&(l=o),n.F&&rS(l,!0),l);bo(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(s,(function(d){return o.apply(void 0,[d].concat(c))}))}:[n.produce(o,i,(function(s,l){a=s,u=l})),a,u];var a,u},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Ss(r)||bo(8),xs(r)&&(r=yq(r));var n=h_(this),o=mE(this,r,void 0);return o[Pn].C=!0,gE(n),o},t.finishDraft=function(r,n){var o=(r&&r[Pn]).A;return U1(o,n),V1(void 0,o)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!b_&&bo(20),this.g=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Ti("Patches").$;return xs(r)?a(r,n):this.produce(r,(function(u){return a(u,n)}))},e})(),Sn=new Cq,dy=Sn.produce;Sn.produceWithPatches.bind(Sn),Sn.setAutoFreeze.bind(Sn),Sn.setUseProxies.bind(Sn),Sn.applyPatches.bind(Sn);var E_=Sn.createDraft.bind(Sn),x_=Sn.finishDraft.bind(Sn);function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v0=new WeakMap,af=new WeakMap,S_=new WeakMap,C_=new WeakMap,D_=new WeakMap,__=new WeakMap;function A_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Dq=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of x.pathRefs(e))tK.transform(r,t);for(var n of x.pointRefs(e))rK.transform(n,t);for(var o of x.rangeRefs(e))oK.transform(o,t);var i=new Set,a=[],u=d=>{if(d){var p=d.join(",");i.has(p)||(i.add(p),a.push(d))}},s=v0.get(e)||[],l=_q(t);for(var c of s)u(L.transform(c,t));for(var f of l)u(f);v0.set(e,a),z.transform(e,t),e.operations.push(t),x.normalize(e),t.type==="set_selection"&&(e.marks=null),af.get(e)||(af.set(e,!0),Promise.resolve().then((()=>{af.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(Z.isExpanded(n))z.setNodes(e,{[t]:r},{match:ye.isText,split:!0});else{var o=sg(sg({},x.marks(e)||{}),{},{[t]:r});e.marks=o,af.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&Z.isCollapsed(r)&&z.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&Z.isCollapsed(r)&&z.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&Z.isExpanded(r)&&z.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?pe.fragment(e,t):[]},insertBreak:()=>{z.splitNodes(e,{always:!0})},insertFragment:t=>{z.insertFragment(e,t)},insertNode:t=>{z.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var o=sg({text:t},n);
8z.insertNodes(e,o)}else z.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!ye.isText(r))if(Ce.isElement(r)&&r.children.length===0)z.insertNodes(e,{text:""},{at:n.concat(0),voids:!0});else for(var o=!x.isEditor(r)&&Ce.isElement(r)&&(e.isInline(r)||r.children.length===0||ye.isText(r.children[0])||e.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=pe.get(e,n);if(!ye.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(ye.isText(s)||Ce.isElement(s)&&e.isInline(s))!==o?(z.removeNodes(e,{at:n.concat(i),voids:!0}),i--):Ce.isElement(s)?e.isInline(s)&&(l!=null&&ye.isText(l)?c&&(z.insertNodes(e,{text:""},{at:n.concat(i+1),voids:!0}),i++):(z.insertNodes(e,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&ye.isText(l)&&(ye.equals(s,l,{loose:!0})?(z.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):l.text===""?(z.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&(z.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(Z.isExpanded(r))z.unsetNodes(e,t,{match:ye.isText,split:!0});else{var n=sg({},x.marks(e)||{});delete n[t],e.marks=n,af.get(e)||e.onChange()}}};return e},_q=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return L.levels(t);case"insert_node":var{node:r,path:n}=e,o=L.levels(n),i=ye.isText(r)?[]:Array.from(pe.nodes(r),(w=>{var[,E]=w;return n.concat(E)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...L.ancestors(a),L.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(L.equals(u,s))return[];var l=[],c=[];for(var f of L.ancestors(u)){var d=L.transform(f,e);l.push(d)}for(var p of L.ancestors(s)){var v=L.transform(p,e);c.push(v)}var m=c[c.length-1],g=s[s.length-1],y=m.concat(g);return[...l,...c,y];case"remove_node":var{path:h}=e;return[...L.ancestors(h)];case"split_node":var{path:b}=e;return[...L.levels(b),L.next(b)];default:return[]}};function Ii(e,t){if(e==null)return{};var r,n,o=(function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Re,yE=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!t,n=t?Fq(e):e,o=Re.None,i=Re.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=Uq(s,l);if([o,i]=r?[i,c]:[c,o],Nl(o,Re.ZWJ)&&Nl(i,Re.ExtPict)&&!qq(r?e.substring(0,a):e.substring(0,e.length-a))||Nl(o,Re.RI)&&Nl(i,Re.RI)&&!(u=u!==null?!u:!!r||Yq(e.substring(0,e.length-a)))||o!==Re.None&&i!==Re.None&&Wq(o,i))break;a+=s.length}return a||1}
8,Aq=/\s/,kq=/[\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]/,Oq=/['\u2018\u2019]/,bE=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},Tq=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Aq.test(t))return!1;if(Oq.test(t)){var o=yE(r,n),[i,a]=bE(r,o,n);if(e(i,a,n))return!0}return!kq.test(t)},Fq=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(Pq(n.charCodeAt(0))){var o=e.charAt(t-r-1);if(Bq(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},Bq=e=>e>=55296&&e<=56319,Pq=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"})(Re||(Re={}));var jq=/^(?:[\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])$/,Nq=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Iq=/^(?:[\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\u
80CC7\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])$/,Lq=/^[\u1100-\u115F\uA960-\uA97C]$/,Rq=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Mq=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,$q=/^[\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]$/,zq=/^[\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\u
8C2F9-\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]$/,Hq=/^(?:[\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])$/,Uq=(e,t)=>{var r=Re.Any;return e.search(jq)!==-1&&(r|=Re.Extend),t===8205&&(r|=Re.ZWJ),t>=127462&&t<=127487&&(r|=Re.RI),e.search(Nq)!==-1&&(r|=Re.Prepend),e.search(Iq)!==-1&&(r|=Re.SpacingMark),e.search(Lq)!==-1&&(r|=Re.L),e.search(Rq)!==-1&&(r|=Re.V),e.search(Mq)!==-1&&(r|=Re.T),e.search($q)!==-1&&(r|=Re.LV),e.search(zq)!==-1&&(r|=Re.LVT),e.search(Hq)!==-1&&(r|=Re.ExtPict),r};function Nl(e,t){return(e&t)!=0}var Vq=[[Re.L,Re.L|Re.V|Re.LV|Re.LVT],[Re.LV|Re.V,Re.V|Re.T],[Re.LVT|Re.T,Re.T],[Re.Any,Re.Extend|Re.ZWJ],[Re.Any,Re.SpacingMark],[Re.Prepend,Re.Any],[Re.ZWJ,Re.ExtPict],[Re.RI,Re.RI]];function Wq(e,t){return Vq.findIndex((r=>Nl(e,r[0])&&Nl(t,r[1])))===-1}var Gq=/(?:[\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\u
80591-\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$/,qq=e=>e.search(Gq)!==-1,Kq=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Yq=e=>{var t=e.match(Kq);return t!==null&&t[0].length/2%2==1},k_=e=>Hr(e)&&pe.isNodeList(e.children)&&!x.isEditor(e),Ce={isAncestor:e=>Hr(e)&&pe.isNodeList(e.children),isElement:k_,isElementList:e=>Array.isArray(e)&&e.every((t=>Ce.isElement(t))),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return k_(e)&&e[r]===t},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},Xq=["text"],Jq=["text"];function O_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function Zs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 4,863 bytes, line 8
8t%2?O_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var T_=new WeakMap,x={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=e.selection,match:i}=t;if(o){var a=x.path(e,o),u=n==="lowest";for(var[s,l]of x.levels(e,{at:a,voids:r,match:i,reverse:u}))if(!ye.isText(s)&&!L.equals(a,l))return[s,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:x.point(e,t,{edge:"end"}),focus:x.end(e,[])},{distance:i=1}=n,a=0;for(var u of x.positions(e,Zs(Zs({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:x.start(e,[]),focus:x.point(e,t,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of x.positions(e,Zs(Zs({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[x.start(e,t),x.end(e,t)],end:(e,t)=>x.point(e,t,{edge:"end"}),first(e,t){var r=x.path(e,t,{edge:"start"});return x.node(e,r)},fragment(e,t){var r=x.range(e,t);return pe.fragment(e,r)},hasBlocks:(e,t)=>t.children.some((r=>x.isBlock(e,r))),hasInlines:(e,t)=>t.children.some((r=>ye.isText(r)||x.isInline(e,r))),hasTexts:(e,t)=>t.children.every((r=>ye.isText(r))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Ce.isElement(t)&&!e.isInline(t),isEditor(e){if(!Hr(e))return!1;var t=T_.get(e);if(t!==void 0)return t;var r=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||Hr(e.marks))&&(e.selection===null||Z.isRange(e.selection))&&pe.isNodeList(e.children)&&Ea.isOperationList(e.operations);return T_.set(e,r),r},isEnd(e,t,r){var n=x.end(e,r);return He.equals(t,n)},isEdge:(e,t,r)=>x.isStart(e,t,r)||x.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return r.length===0||r.length===1&&ye.isText(n)&&n.text===""&&!e.isVoid(t)},isInline:(e,t)=>Ce.isElement(t)&&e.isInline(t),isNormalizing(e){var t=S_.get(e);return t===void 0||t},isStart(e,t,r){if(t.offset!==0)return!1;var n=x.start(e,r);return He.equals(t,n)},isVoid:(e,t)=>Ce.isElement(t)&&e.isVoid(t),last(e,t){var r=x.path(e,t,{edge:"end"});return x.node(e,r)},leaf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=x.path(e,t,r);return[pe.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),r){var a=[],u=x.path(e,r);for(var[s,l]of pe.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&x.isVoid(e,s)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(Z.isExpanded(r)){var[n]=x.nodes(e,{match:ye.isText});if(n){var[o]=n;return Ii(o,Xq)}return{}}var{anchor:i}=r,{path:a}=i,[u]=x.leaf(e,a);if(i.offset===0){var s=x.previous(e,{at:a,match:ye.isText}),l=x.above(e,{match:p=>x.isBlock(e,p)});if(s&&l){var[c,f]=s,[,d]=l;L.isAncestor(d,f)&&(u=c)}}return Ii(u,Jq)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=x.after(e,i,{voids:n});if(a){var[,u]=x.last(e,[]),s=[a.path,u];if(L.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(L.isPath(i)){var[l]=x.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=x.nodes(e,{at:s,match:o,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=x.path(e,t,r);return[pe.get(e,n),n]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),r){var s,l;if(Zq.isSpan(r))s=r[0],l=r[1];else{var c=x.path(e,r,{edge:"start"}),f=x.path(e,r,{edge:"end"});
8s=i?f:c,l=i?c:f}var d,p=pe.nodes(e,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&x.isVoid(e,w)}}),v=[];for(var[m,g]of p){var y=d&&L.compare(g,d[1])===0;if(n!=="highest"||!y){if(u(m,g))if(n==="lowest"&&y)d=[m,g];else{var h=n==="lowest"?d:[m,g];h&&(o?v.push(h):yield h),d=[m,g]}else if(o&&!y&&ye.isText(m))return}}n==="lowest"&&d&&(o?v.push(d):yield d),o&&(yield*v)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=t,n=i=>v0.get(i)||[];if(x.isNormalizing(e)){if(r){var o=Array.from(pe.nodes(e),(i=>{var[,a]=i;return a}));v0.set(e,o)}n(e).length!==0&&x.withoutNormalizing(e,(()=>{for(var i of n(e))if(pe.has(e,i)){var a=x.node(e,i),[u,s]=a;Ce.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=42*n(e).length,c=0;n(e).length!==0;){if(c>l)throw new Error(` 9 Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state. 10 `));var f=n(e).pop();if(pe.has(e,f)){var d=x.node(e,f);
10e.normalizeNode(d)}c++}}))}},parent(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=x.path(e,t,r),o=L.parent(n);return x.node(e,o)},path(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(L.isPath(t)){if(o==="start"){var[,i]=pe.first(e,t);t=i}else if(o==="end"){var[,a]=pe.last(e,t);t=a}}return Z.isRange(t)&&(t=o==="start"?Z.start(t):o==="end"?Z.end(t):L.common(t.anchor.path,t.focus.path)),He.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>pe.has(e,t),pathRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return x.pathRefs(e).delete(o),o.current=null,i}};return x.pathRefs(e).add(o),o},pathRefs(e){var t=C_.get(e);return t||(t=new Set,C_.set(e,t)),t},point(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(L.isPath(t)){var o;if(n==="end"){var[,i]=pe.last(e,t);o=i}else{var[,a]=pe.first(e,t);o=a}var u=pe.get(e,o);if(!ye.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(Z.isRange(t)){var[s,l]=Z.edges(t);return n==="start"?s:l}return t},pointRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return x.pointRefs(e).delete(o),o.current=null,i}};return x.pointRefs(e).add(o),o},pointRefs(e){var t=D_.get(e);return t||(t=new Set,D_.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=t;if(r){var a=x.range(e,r),[u,s]=Z.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,v=0;for(var[m,g]of x.nodes(e,{at:r,reverse:o,voids:i})){if(Ce.isElement(m)){if(!i&&e.isVoid(m)){yield x.start(e,g);continue}if(e.isInline(m))continue;if(x.hasInlines(e,m)){var y=L.isAncestor(g,s.path)?s:x.end(e,g),h=L.isAncestor(g,u.path)?u:x.start(e,g);f=x.string(e,{anchor:h,focus:y},{voids:i}),c=!0}}if(ye.isText(m)){var b=L.equals(g,l.path);for(b?(p=o?l.offset:m.text.length-l.offset,v=l.offset):(p=m.text.length,v=o?p:0),(b||c||n==="offset")&&(yield{path:g,offset:v},c=!1);;){if(d===0){if(f==="")break;d=w(f,n,o),f=bE(f,d,o)[1]}if(v=o?v-d:v+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:v}}}}}function w(E,C,S){return C==="character"?yE(E,S):C==="word"?(function(k){for(var P=arguments.length>1&&arguments[1]!==void 0&&arguments[1],G=0,J=!1;k.length>0;){var M=yE(k,P),[X,$]=bE(k,M,P);if(Tq(X,$,P))J=!0,G+=M;else{if(J)break;G+=M}k=$}return G})(E,S):C==="line"||C==="block"?E.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=x.before(e,i,{voids:n});if(a){var[,u]=x.first(e,[]),s=[a.path,u];if(L.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(L.isPath(i)){var[l]=x.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=x.nodes(e,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(e,t,r)=>Z.isRange(t)&&!r?t:{anchor:x.start(e,t),focus:x.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return x.rangeRefs(e).delete(o),o.current=null,i}};return x.rangeRefs(e).add(o),o},rangeRefs(e){var t=__.get(e);return t||(t=new Set,__.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){S_.set(e,t)},start:(e,t)=>x.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=x.range(e,t),[i,a]=Z.edges(o),u="";for(var[s,l]of x.nodes(e,{at:o,match:ye.isText,voids:n})){var c=s.text;L.equals(l,a.path)&&(c=c.slice(0,a.offset)),L.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=Z.edges(t);if(o.offset!==0||i.offset!==0||Z.isCollapsed(t))return t;var a=x.above(e,{at:i,match:d=>x.isBlock(e,d)}),u=a?a[1]:[],s={anchor:x.start(e,[]),focus:i},l=!0;for(var[c,f]of x.nodes(e,{at:s,match:ye.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||L.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return x.above(e,Zs(Zs({},t),{},{match:r=>x.isVoid(e,r)}))},withoutNormalizing(e,t){var r=x.isNormalizing(e);x.setNormalizing(e,!1);try{t()}finally{x.setNormalizing(e,r)}x.normalize(e)}},Zq={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(L.isPath)},Qq=["children"],eK=["text"],F_=new WeakMap,pe={ancestor(e,t){var r=pe.get(e,t);if(ye.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of L.ancestors(t,r)){var o=[pe.ancestor(e,n),n];yield o}},child(e,t){if(ye.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}
vendor: 6,796 bytes, line 10
10=r,o=pe.ancestor(e,t),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=pe.child(o,a),s=t.concat(a);yield[u,s],a=n?a-1:a+1}},common(e,t,r){var n=L.common(t,r);return[pe.get(e,n),n]},descendant(e,t){var r=pe.get(e,t);if(x.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of pe.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of pe.nodes(e,t))Ce.isElement(r)&&(yield[r,n])},extractProps:e=>Ce.isAncestor(e)?Ii(e,Qq):Ii(e,eK),first(e,t){for(var r=t.slice(),n=pe.get(e,r);n&&!ye.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(ye.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var r=dy({children:e.children},(n=>{var[o,i]=Z.edges(t),a=pe.nodes(n,{reverse:!0,pass:d=>{var[,p]=d;return!Z.includes(t,p)}});for(var[,u]of a){if(!Z.includes(t,u)){var s=pe.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(L.equals(u,i.path)){var c=pe.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(L.equals(u,o.path)){var f=pe.leaf(n,u);f.text=f.text.slice(o.offset)}}x.isEditor(n)&&(n.selection=null)}));return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(ye.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[o]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(ye.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:e=>ye.isText(e)||Ce.isElement(e)||x.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=F_.get(e);if(t!==void 0)return t;var r=e.every((n=>pe.isNode(n)));return F_.set(e,r),r},last(e,t){for(var r=t.slice(),n=pe.get(e,r);n&&!ye.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(e,t){var r=pe.get(e,t);if(!ye.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of L.levels(t,r)){var o=pe.get(e,n);yield[o,n]}},matches:(e,t)=>Ce.isElement(e)&&Ce.isElementProps(t)&&Ce.matches(e,t)||ye.isText(e)&&ye.isTextProps(t)&&ye.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(n?L.isBefore(u,i):L.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ye.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=L.next(u);if(pe.has(e,l)){u=l,s=pe.get(e,u);continue}}n&&u[u.length-1]!==0?(u=L.previous(u),s=pe.get(e,u)):(u=L.parent(u),s=pe.get(e,u),a.add(s))}else{a.add(s);var c=n?s.children.length-1:0;L.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=pe.get(e,u)}},parent(e,t){var r=L.parent(t),n=pe.get(e,r);if(ye.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>ye.isText(e)?e.text:e.children.map(pe.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of pe.nodes(e,t))ye.isText(r)&&(yield[r,n])}};function B_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Ea={isNodeOperation:e=>Ea.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Hr(e))return!1;switch(e.type){case"insert_node":case"remove_node":return L.isPath(e.path)&&pe.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&L.isPath(e.path);case"merge_node":return typeof e.position=="number"&&L.isPath(e.path)&&Hr(e.properties);case"move_node":return L.isPath(e.path)&&L.isPath(e.newPath);case"set_node":return L.isPath(e.path)&&Hr(e.properties)&&Hr(e.newProperties);case"set_selection":return e.properties===null&&Z.isRange(e.newProperties)||e.newProperties===null&&Z.isRange(e.properties)||Hr(e.properties)&&Hr(e.newProperties);case"split_node":return L.isPath(e.path)&&typeof e.position=="number"&&Hr(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((t=>Ea.isOperation(t))),isSelectionOperation:e=>Ea.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Ea.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return nr(nr({},e),{},{type:"remove_node"});case"insert_text":return nr(nr({},e),{},{type:"remove_text"});case"merge_node":return nr(nr({},e),{},{type:"split_node",path:L.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(L.equals(t,r))return e;if(L.isSibling(r,t))return nr(nr({},e),{},{path:t,newPath:r});var n=L.transform(r,e),o=L.transform(L.next(r),e);return nr(nr({},e),{},{path:n,newPath:o});case"remove_node":return nr(nr({},e),{},{type:"insert_node"});case"remove_text":return nr(nr({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return nr(nr({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return nr(nr({},e),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return nr(nr({},e),{},{type:"merge_node",path:L.next(e.path)})}}},L={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=L.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n];if(o!==t[n])break;r.push(o)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return L.equals(n,o)&&i>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return L.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return L.equals(n,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((r,n)=>r===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>L.compare(e,t)===1,isAncestor:(e,t)=>
10e.length<t.length&&L.compare(e,t)===0,isBefore:(e,t)=>L.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&L.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&L.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&L.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&L.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 r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&L.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!L.isAncestor(t,e)&&!L.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return dy(e,(n=>{var{affinity:o="forward"}=r;if(e&&e?.length!==0){if(n===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(L.equals(i,n)||L.endsBefore(i,n)||L.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(L.equals(a,n)||L.isAncestor(a,n))return null;L.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;L.equals(u,n)||L.endsBefore(u,n)?n[u.length-1]-=1:L.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(L.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else L.endsBefore(l,n)?n[l.length-1]+=1:L.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(L.equals(f,d))return;if(L.isAncestor(f,n)||L.equals(f,n)){var p=d.slice();return L.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(n.slice(f.length))}L.isSibling(f,d)&&(L.isAncestor(d,n)||L.equals(d,n))?L.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:L.endsBefore(d,n)||L.equals(d,n)||L.isAncestor(d,n)?(L.endsBefore(f,n)&&(n[f.length-1]-=1),n[d.length-1]+=1):L.endsBefore(f,n)&&(L.equals(d,n)&&(n[d.length-1]+=1),n[f.length-1]-=1)}}}))}},tK={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=L.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}};function P_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function j_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var He={compare(e,t){var r=L.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>He.compare(e,t)===1,isBefore:(e,t)=>He.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&L.equals(e.path,t.path),isPoint:e=>Hr(e)&&typeof e.offset=="number"&&L.isPath(e.path),transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return dy(e,(n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(t.type){case"insert_node":case"move_node":n.path=L.transform(i,t,r);break;case"insert_text":L.equals(t.path,i)&&t.offset<=a&&(n.offset+=t.text.length);break;case"merge_node":L.equals(t.path,i)&&(n.offset+=t.position),n.path=L.transform(i,t,r);break;case"remove_text":L.equals(t.path,i)&&t.offset<=a&&(n.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(L.equals(t.path,i)||L.isAncestor(t.path,i))return null;n.path=L.transform(i,t,r);break;case"split_node":if(L.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(n.offset-=t.position,n.path=L.transform(i,t,j_(j_({},r),{},{affinity:"forward"})))}else n.path=L.transform(i,t,r)}}))}},rK={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=He.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},nK=["anchor","focus"];function N_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}var Z={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return Z.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=Z.edges(e);return t},equals:(e,t)=>He.equals(e.anchor,t.anchor)&&He.equals(e.focus,t.focus),includes(e,t){if(Z.isRange(t)){if(Z.includes(e,t.anchor)||Z.includes(e,t.focus))return!0;var[r,n]=Z.edges(e),[o,i]=Z.edges(t);return He.isBefore(r,o)&&He.isAfter(n,i)}var[a,u]=Z.edges(e),s=!1,l=!1;return He.isPoint(t)?(s=He.compare(t,a)>=0,l=He.compare(t,u)<=0):(s=L.compare(t,a.path)>=0,l=L.compare(t,u.path)<=0),s&&l},intersection(e,t){var r=Ii(e,nK),[n,o]=Z.edges(e),[i,a]=Z.edges(t),u=He.isBefore(n,i)?i:n,s=He.isBefore(o,a)?o:a;return He.isBefore(s,u)?null:(function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};
vendor: 12,600 bytes, line 10
10c%2?N_(Object(f),!0).forEach((function(d){ci(l,d,f[d])})):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):N_(Object(f)).forEach((function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(f,d))}))}return l})({anchor:u,focus:s},r)},isBackward(e){var{anchor:t,focus:r}=e;return He.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return He.equals(t,r)},isExpanded:e=>!Z.isCollapsed(e),isForward:e=>!Z.isBackward(e),isRange:e=>Hr(e)&&He.isPoint(e.anchor)&&He.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=Z.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return dy(e,(n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=Z.isCollapsed(n);Z.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?Z.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=He.transform(n.anchor,t,{affinity:o}),l=He.transform(n.focus,t,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l}))}},oK={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=Z.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},Uj=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(Hr(n)&&Hr(o)){if(!Uj(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},iK=["text"],aK=["anchor","focus"];function I_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var ye={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return Ii(i,iK)}return Uj(n?o(e):e,n?o(t):t)},isText:e=>Hr(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every((t=>ye.isText(t))),isTextProps:e=>e.text!==void 0,matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[vi({},e)];for(var n of t){var o=Ii(n,aK),[i,a]=Z.edges(n),u=[],s=0;for(var l of r){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var d=l,p=void 0,v=void 0;if(a.offset<s){var m=a.offset-f;v=vi(vi({},d),{},{text:d.text.slice(m)}),d=vi(vi({},d),{},{text:d.text.slice(0,m)})}if(i.offset>f){var g=i.offset-f;p=vi(vi({},d),{},{text:d.text.slice(0,g)}),d=vi(vi({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),v&&u.push(v)}}r=u}return r}};function L_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function uf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var uK={transform(e,t){e.children=E_(e.children);var r=e.selection&&E_(e.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=pe.parent(n,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of Z.points(o))o[f]=He.transform(c,i);break;case"insert_text":var{path:d,offset:p,text:v}=i;if(v.length===0)break;var m=pe.leaf(n,d),g=m.text.slice(0,p),y=m.text.slice(p);if(m.text=g+v+y,o)for(var[h,b]of Z.points(o))o[b]=He.transform(h,i);break;case"merge_node":var{path:w}=i,E=pe.get(n,w),C=L.previous(w),S=pe.get(n,C),k=pe.parent(n,w),P=w[w.length-1];if(ye.isText(E)&&ye.isText(S))S.text+=E.text;else{if(ye.isText(E)||ye.isText(S))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(E," ").concat(S));S.children.push(...E.children)}if(k.children.splice(P,1),o)for(var[G,J]of Z.points(o))o[J]=He.transform(G,i);break;case"move_node":var{path:M,newPath:X}=i;if(L.isAncestor(M,X))throw new Error("Cannot move a path [".concat(M,"] to new path [").concat(X,"] because the destination is inside itself."));var $=pe.get(n,M),V=pe.parent(n,M),Q=M[M.length-1];V.children.splice(Q,1);var ie=L.transform(M,i),le=pe.get(n,L.parent(ie)),q=ie[ie.length-1];if(le.children.splice(q,0,$),o)for(var[U,_]of Z.points(o))o[_]=He.transform(U,i);break;case"remove_node":var{path:D}=i,F=D[D.length-1];if(pe.parent(n,D).children.splice(F,1),o)for(var[H,ee]of Z.points(o)){var W=He.transform(H,i);if(o!=null&&W!=null)o[ee]=W;else{var I=void 0,ne=void 0;for(var[ae,be]of pe.texts(n)){if(L.compare(be,D)!==-1){ne=[ae,be];break}I=[ae,be]}var K=!1;I&&ne&&(K=L.equals(ne[1],D)?!L.hasPrevious(ne[1]):L.common(I[1],D).length<L.common(ne[1],D).length),I&&!K?(H.path=I[1],H.offset=I[0].text.length):ne?(H.path=ne[1],H.offset=0):o=null}}break;case"remove_text":var{path:ze,offset:je,text:Ee}=i;if(Ee.length===0)break;var _e=pe.leaf(n,ze),Ft=_e.text.slice(0,je),Ke=_e.text.slice(je+Ee.length);if(_e.text=Ft+Ke,o)for(var[st,pt]of Z.points(o))o[pt]=He.transform(st,i);break;case"set_node":var{path:Er,properties:Ye,newProperties:Rr}=i;if(Er.length===0)throw new Error("Cannot set properties on the root node!");var mn=pe.get(n,Er);for(var $n in Rr){if($n==="children"||$n==="text")throw new Error('Cannot set the "'.concat($n,'" property of nodes!'));var Ui=Rr[$n];Ui==null?delete mn[$n]:mn[$n]=Ui}for(var di in Ye)Rr.hasOwnProperty(di)||delete mn[di];break;case"set_selection":var{newProperties:yn}=i;if(yn==null)o=yn;else{if(o==null){if(!Z.isRange(yn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(yn)," when there is no current selection."));o=uf({},yn)}for(var zn in yn){var co=yn[zn];if(co==null){if(zn==="anchor"||zn==="focus")throw new Error('Cannot remove the "'.concat(zn,'" selection property'));delete o[zn]}else o[zn]=co}}break;case"split_node":var{path:xr,position:Sr,properties:Cr}=i;if(xr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(xr,"] because the root node cannot be split."));var Br,rr=pe.get(n,xr),rn=pe.parent(n,xr),du=xr[xr.length-1];if(ye.isText(rr)){var Po=rr.text.slice(0,Sr),fo=rr.text.slice(Sr);rr.text=Po,Br=uf(uf({},Cr),{},{text:fo})}else{var Vi=rr.children.slice(0,Sr),pi=rr.children.slice(Sr);rr.children=Vi,Br=uf(uf({},Cr),{},{children:pi})}if(rn.children.splice(du+1,0,Br),o)for(var[Wi,bn]of Z.points(o))o[bn]=He.transform(Wi,i)}return o})(e,r,t)}finally{e.children=x_(e.children),e.selection=r?xs(r)?x_(r):r:null}}},sK=["text"],lK=["children"];function R_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function M_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var cK={insertNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(pe.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?x.end(e,[]):[0],s=!0),s==null&&(s=!1),Z.isRange(a))if(n||(a=x.unhangRange(e,a)),Z.isCollapsed(a))a=a.anchor;else{var[,c]=Z.edges(a),f=x.pointRef(e,c);z.delete(e,{at:a}),a=f.unref()}if(He.isPoint(a)){u==null&&(u=ye.isText(l)?C=>ye.isText(C):e.isInline(l)?C=>ye.isText(C)||x.isInline(e,C):C=>x.isBlock(e,C));var[d]=x.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,v=x.pathRef(e,p),m=x.isEnd(e,a,p);z.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=m?L.next(g):g}var y=L.parent(a),h=a[a.length-1];if(o||!x.void(e,{at:y})){for(var b of t){var w=y.concat(h);h++,e.apply({type:"insert_node",path:w,node:b}),a=L.next(a)}if(a=L.previous(a),s){var E=x.end(e,a);E&&z.select(e,E)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(e,(()=>{var{at:r=e.selection,mode:n="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=L.isPath(r)?Qs(e,r):b=>x.isBlock(e,b)),r){var a=x.nodes(e,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,(b=>{var[,w]=b;return x.pathRef(e,w)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=x.node(e,L.parent(l)),[f,d]=c,p=l[l.length-1],{length:v}=f.children;if(v===1){var m=L.next(d);z.moveNodes(e,{at:l,to:m,voids:o}),z.removeNodes(e,{at:d,voids:o})}else if(p===0)z.moveNodes(e,{at:l,to:d,voids:o});else if(p===v-1){var g=L.next(d);z.moveNodes(e,{at:l,to:g,voids:o})}else{var y=L.next(l),h=L.next(d);z.splitNodes(e,{at:y,voids:o}),z.moveNodes(e,{at:l,to:h,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(e,(()=>{var{match:r,at:n=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(n){if(r==null)if(L.isPath(n)){var[u]=x.parent(e,n);r=P=>u.children.includes(P)}else r=P=>x.isBlock(e,P);if(!o&&Z.isRange(n)&&(n=x.unhangRange(e,n)),Z.isRange(n))if(Z.isCollapsed(n))n=n.anchor;else{var[,s]=Z.edges(n),l=x.pointRef(e,s);z.delete(e,{at:n}),n=l.unref(),t.at==null&&z.select(e,n)}var[c]=x.nodes(e,{at:n,match:r,voids:i,mode:a}),f=x.previous(e,{at:n,match:r,voids:i,mode:a});if(c&&f){var[d,p]=c,[v,m]=f;if(p.length!==0&&m.length!==0){var g,y,h=L.next(m),b=L.common(p,m),w=L.isSibling(p,m),E=Array.from(x.levels(e,{at:p}),(P=>{var[G]=P;return G})).slice(b.length).slice(0,-1),C=x.above(e,{at:p,mode:"highest",match:P=>E.includes(P)&&Vj(e,P)}),S=C&&x.pathRef(e,C[1]);if(ye.isText(d)&&ye.isText(v)){var k=Ii(d,sK);y=v.text.length,g=k}else{if(!Ce.isElement(d)||!Ce.isElement(v))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(v)));k=Ii(d,lK),y=v.children.length,g=k}w||z.moveNodes(e,{at:p,to:h,voids:i}),S&&z.removeNodes(e,{at:S.current,voids:i}),Ce.isElement(v)&&x.isEmpty(e,v)||ye.isText(v)&&v.text===""&&m[m.length-1]!==0?z.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:h,position:y,properties:g}),S&&S.unref()}}}}))},moveNodes(e,t){x.withoutNormalizing(e,(()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(n){a==null&&(a=L.isPath(n)?Qs(e,n):p=>x.isBlock(e,p));var u=x.pathRef(e,r),s=x.nodes(e,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,(p=>{var[,v]=p;return x.pathRef(e,v)}));for(var c of l){var f=c.unref(),d=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&L.isSibling(d,f)&&L.isAfter(d,f)&&(u.current=L.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=L.isPath(i)?Qs(e,i):d=>x.isBlock(e,d)),!r&&Z.isRange(i)&&(i=x.unhangRange(e,i));var u=x.nodes(e,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,(d=>{var[,p]=d;return x.pathRef(e,p)}));for(var l of s){var c=l.unref();if(c){var[f]=x.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(e,(()=>{var{match:n,at:o=e.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=L.isPath(o)?Qs(e,o):E=>
10x.isBlock(e,E)),!i&&Z.isRange(o)&&(o=x.unhangRange(e,o)),u&&Z.isRange(o)){if(Z.isCollapsed(o)&&x.leaf(e,o.anchor)[0].text.length>0)return;var l=x.rangeRef(e,o,{affinity:"inward"}),[c,f]=Z.edges(o),d=a==="lowest"?"lowest":"highest",p=x.isEnd(e,f,f.path);z.splitNodes(e,{at:f,match:n,mode:d,voids:s,always:!p});var v=x.isStart(e,c,c.path);z.splitNodes(e,{at:c,match:n,mode:d,voids:s,always:!v}),o=l.unref(),r.at==null&&z.select(e,o)}for(var[m,g]of x.nodes(e,{at:o,match:n,mode:a,voids:s})){var y={},h={};if(g.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==m[w]&&(b=!0,m.hasOwnProperty(w)&&(y[w]=m[w]),t[w]!=null&&(h[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}}))},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(e,(()=>{var{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=$=>x.isBlock(e,$)),Z.isRange(i)&&(i=fK(e,i)),L.isPath(i)){var s=i,l=x.point(e,s),[c]=x.parent(e,s);o=$=>$===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=x.pointRef(e,i,{affinity:"backward"}),[d]=x.nodes(e,{at:i,match:o,mode:r,voids:n});if(d){var p=x.void(e,{at:i,mode:"highest"});if(!n&&p){var[v,m]=p;if(Ce.isElement(v)&&e.isInline(v)){var g=x.after(e,m);if(!g){var y=L.next(m);z.insertNodes(e,{text:""},{at:y,voids:n}),g=x.point(e,y)}i=g,u=!0}a=i.path.length-m.length+1,u=!0}var h=x.pointRef(e,i),b=i.path.length-a,[,w]=d,E=i.path.slice(0,b),C=a===0?i.offset:i.path[b]+0;for(var[S,k]of x.levels(e,{at:E,reverse:!0,voids:n})){var P=!1;if(k.length<w.length||k.length===0||!n&&x.isVoid(e,S))break;var G=f.current,J=x.isEnd(e,G,k);if(u||!f||!x.isEdge(e,G,k)){P=!0;var M=pe.extractProps(S);e.apply({type:"split_node",path:k,position:C,properties:M})}C=k[k.length-1]+(P||J?1:0)}if(t.at==null){var X=h.current||x.end(e,[]);z.select(e,X)}f.unref(),h.unref()}}}))},unsetNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var o of t)n[o]=null;
10z.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=L.isPath(i)?Qs(e,i):d=>x.isBlock(e,d)),L.isPath(i)&&(i=x.range(e,i));var u=Z.isRange(i)?x.rangeRef(e,i):null,s=x.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,(d=>{var[,p]=d;return x.pathRef(e,p)})).reverse(),c=function(d){var p=d.unref(),[v]=x.node(e,p),m=x.range(e,p);n&&u&&(m=Z.intersection(u.current,m)),z.liftNodes(e,{at:m,match:g=>Ce.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=e.selection}=r;if(u){if(a==null&&(a=L.isPath(u)?Qs(e,u):e.isInline(t)?g=>x.isInline(e,g)||ye.isText(g):g=>x.isBlock(e,g)),o&&Z.isRange(u)){var[s,l]=Z.edges(u),c=x.rangeRef(e,u,{affinity:"inward"});z.splitNodes(e,{at:l,match:a,voids:i}),z.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&z.select(e,u)}var f=Array.from(x.nodes(e,{at:u,match:e.isInline(t)?g=>x.isBlock(e,g):g=>x.isEditor(g),mode:"lowest",voids:i}));for(var[,d]of f){var p=Z.isRange(u)?Z.intersection(u,x.range(e,d)):u;if(p){var v=Array.from(x.nodes(e,{at:p,match:a,mode:n,voids:i}));if(v.length>0){var m=(function(){var[g]=v,y=v[v.length-1],[,h]=g,[,b]=y;if(h.length===0&&b.length===0)return"continue";var w=L.equals(h,b)?L.parent(h):L.common(h,b),E=x.range(e,h,b),C=x.node(e,w),[S]=C,k=w.length+1,P=L.next(b.slice(0,k)),G=M_(M_({},t),{},{children:[]});z.insertNodes(e,G,{at:P,voids:i}),z.moveNodes(e,{at:E,match:J=>Ce.isAncestor(S)&&S.children.includes(J),to:P.concat(0),voids:i})})();if(m==="continue")continue}}}}}))}},Vj=(e,t)=>{if(Ce.isElement(t)){var r=t;return!!x.isVoid(e,t)||r.children.length===1&&Vj(e,r.children[0])}return!x.isEditor(t)},fK=(e,t)=>{if(Z.isCollapsed(t))return t.anchor;var[,r]=Z.edges(t),n=x.pointRef(e,r);return z.delete(e,{at:t}),n.unref()},Qs=(e,t)=>{var[r]=x.node(e,t);return n=>n===r};function $_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function z_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var dK={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n){if(r==="anchor")z.select(e,n.anchor);else if(r==="focus")z.select(e,n.focus);else if(r==="start"){var[o]=Z.edges(n);z.select(e,o)}else if(r==="end"){var[,i]=Z.edges(n);z.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:r}=e,{distance:n=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(r){a==="start"&&(a=Z.isBackward(r)?"focus":"anchor"),a==="end"&&(a=Z.isBackward(r)?"anchor":"focus");
vendor: 4,545 bytes, line 10
10var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?x.before(e,u,l):x.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var d=i?x.before(e,s,l):x.after(e,s,l);d&&(c.focus=d)}z.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=x.range(e,t),r)z.setSelection(e,t);else{if(!Z.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=e,{edge:o="both"}=r;if(n){o==="start"&&(o=Z.isBackward(n)?"focus":"anchor"),o==="end"&&(o=Z.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;z.setSelection(e,{[o==="anchor"?"anchor":"focus"]:z_(z_({},u),t)})}},setSelection(e,t){var{selection:r}=e,n={},o={};if(r){for(var i in t)(i==="anchor"&&t.anchor!=null&&!He.equals(t.anchor,r.anchor)||i==="focus"&&t.focus!=null&&!He.equals(t.focus,r.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}}},pK={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x.withoutNormalizing(e,(()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(Z.isRange(a)&&Z.isCollapsed(a)&&(a=a.anchor),He.isPoint(a)){var s=x.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?x.before(e,a,c)||x.start(e,[]):x.after(e,a,c)||x.end(e,[])},u=!0}}if(L.isPath(a))z.removeNodes(e,{at:a,voids:i});else if(!Z.isCollapsed(a)){if(!u){var[,f]=Z.edges(a),d=x.end(e,[]);He.equals(f,d)||(a=x.unhangRange(e,a,{voids:i}))}var[p,v]=Z.edges(a),m=x.above(e,{match:ne=>x.isBlock(e,ne),at:p,voids:i}),g=x.above(e,{match:ne=>x.isBlock(e,ne),at:v,voids:i}),y=m&&g&&!L.equals(m[1],g[1]),h=L.equals(p.path,v.path),b=i?null:x.void(e,{at:p,mode:"highest"}),w=i?null:x.void(e,{at:v,mode:"highest"});if(b){var E=x.before(e,p);E&&m&&L.isAncestor(m[1],E.path)&&(p=E)}if(w){var C=x.after(e,v);C&&g&&L.isAncestor(g[1],C.path)&&(v=C)}var S,k=[];for(var P of x.nodes(e,{at:a,voids:i})){var[G,J]=P;S&&L.compare(J,S)===0||(!i&&x.isVoid(e,G)||!L.isCommon(J,p.path)&&!L.isCommon(J,v.path))&&(k.push(P),S=J)}var M=Array.from(k,(ne=>{var[,ae]=ne;return x.pathRef(e,ae)})),X=x.pointRef(e,p),$=x.pointRef(e,v);if(!h&&!b){var V=X.current,[Q]=x.leaf(e,V),{path:ie}=V,{offset:le}=p,q=Q.text.slice(le);q.length>0&&e.apply({type:"remove_text",path:ie,offset:le,text:q})}for(var U of M){var _=U.unref();z.removeNodes(e,{at:_,voids:i})}if(!w){var D=$.current,[F]=x.leaf(e,D),{path:H}=D,ee=h?p.offset:0,W=F.text.slice(ee,v.offset);W.length>0&&e.apply({type:"remove_text",path:H,offset:ee,text:W})}!h&&y&&$.current&&X.current&&z.mergeNodes(e,{at:$.current,hanging:!0,voids:i});var I=r?X.unref()||$.unref():$.unref()||X.unref();t.at==null&&I&&z.select(e,I)}}}))},insertFragment(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=e.selection}=r;if(t.length&&i){if(Z.isRange(i))if(n||(i=x.unhangRange(e,i)),Z.isCollapsed(i))i=i.anchor;else{var[,a]=Z.edges(i);if(!o&&x.void(e,{at:a}))return;var u=x.pointRef(e,a);z.delete(e,{at:i}),i=u.unref()}else L.isPath(i)&&(i=x.start(e,i));if(o||!x.void(e,{at:i})){var s=x.above(e,{at:i,match:D=>x.isInline(e,D),mode:"highest",voids:o});if(s){var[,l]=s;x.isEnd(e,i,l)?i=x.after(e,l):x.isStart(e,i,l)&&(i=x.before(e,l))}var c=x.above(e,{match:D=>x.isBlock(e,D),at:i,voids:o}),[,f]=c,d=x.isStart(e,i,f),p=x.isEnd(e,i,f),v=d&&p,m=!d||d&&p,g=!p,[,y]=pe.first({children:t},[]),[,h]=pe.last({children:t},[]),b=[],w=D=>{var[F,H]=D;return H.length!==0&&(!!v||!(m&&L.isAncestor(H,y)&&Ce.isElement(F)&&!e.isVoid(F)&&!e.isInline(F))&&!(g&&L.isAncestor(H,h)&&Ce.isElement(F)&&!e.isVoid(F)&&!e.isInline(F)))};for(var E of pe.nodes({children:t},{pass:w}))w(E)&&b.push(E);var C=[],S=[],k=[],P=!0,G=!1;for(var[J]of b)Ce.isElement(J)&&!e.isInline(J)?(P=!1,G=!0,S.push(J)):P?C.push(J):k.push(J);var[M]=x.nodes(e,{at:i,match:D=>ye.isText(D)||x.isInline(e,D),mode:"highest",voids:o}),[,X]=M,$=x.isStart(e,i,X),V=x.isEnd(e,i,X),Q=x.pathRef(e,p?L.next(f):f),ie=x.pathRef(e,V?L.next(X):X),le=x.pathRef(e,f);z.splitNodes(e,{at:i,match:D=>G?x.isBlock(e,D):ye.isText(D)||x.isInline(e,D),mode:G?"lowest":"highest",voids:o});var q=x.pathRef(e,!$||$&&V?L.next(X):X);
10if(z.insertNodes(e,C,{at:q.current,match:D=>ye.isText(D)||x.isInline(e,D),mode:"highest",voids:o}),v&&S.length&&z.delete(e,{at:le.unref(),voids:o}),z.insertNodes(e,S,{at:Q.current,match:D=>x.isBlock(e,D),mode:"lowest",voids:o}),z.insertNodes(e,k,{at:ie.current,match:D=>ye.isText(D)||x.isInline(e,D),mode:"highest",voids:o}),!r.at){var U;U=k.length>0?L.previous(ie.current):S.length>0?L.previous(Q.current):L.previous(q.current);var _=x.end(e,U);z.select(e,_)}q.unref(),Q.unref(),ie.unref()}}}))},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x.withoutNormalizing(e,(()=>{var{voids:n=!1}=r,{at:o=e.selection}=r;if(o){if(L.isPath(o)&&(o=x.range(e,o)),Z.isRange(o))if(Z.isCollapsed(o))o=o.anchor;else{var i=Z.end(o);if(!n&&x.void(e,{at:i}))return;var a=x.pointRef(e,i);z.delete(e,{at:o,voids:n}),o=a.unref(),z.setSelection(e,{anchor:o,focus:o})}if(n||!x.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function H_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H_(Object(r),!0).forEach((function(n){ci(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var z=lg(lg(lg(lg({},uK),cK),dK),pK),wE="[object Map]",EE="[object Set]",hK=/^\[object .+?Constructor\]$/,gK=/^(?:0|[1-9]\d*)$/,vK="[\\ud800-\\udfff]",xE="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",SE="\\ud83c[\\udffb-\\udfff]",Wj="[^\\ud800-\\udfff]",Gj="(?:\\ud83c[\\udde6-\\uddff]){2}",qj="[\\ud800-\\udbff][\\udc00-\\udfff]",U_="(?:"+xE+"|"+SE+")?",mK="[\\ufe0e\\ufe0f]?"+U_+("(?:\\u200d(?:"+[Wj,Gj,qj].join("|")+")[\\ufe0e\\ufe0f]?"+U_+")*"),yK="(?:"+[Wj+xE+"?",xE,Gj,qj,vK].join("|")+")",bK=RegExp(SE+"(?="+SE+")|"+yK+mK,"g"),wK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),EK=typeof bt=="object"&&bt&&bt.Object===Object&&bt,xK=typeof self=="object"&&self&&self.Object===Object&&self,Rs=EK||xK||Function("return this")();function SK(e,t){return(function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a})(t,(function(r){return e[r]}))}function CK(e){var t=-1,r=Array(e.size);return e.forEach((function(n,o){r[++t]=[o,n]})),r}function DK(e){var t=-1,r=Array(e.size);return e.forEach((function(n){r[++t]=n})),r}function _K(e){return(function(t){return wK.test(t)})(e)?(function(t){return t.match(bK)||[]})(e):(function(t){return t.split("")})(e)}var V_,W_,AK=Function.prototype,py=Object.prototype,q1=Rs["__core-js_shared__"],G_=(function(){var e=/[^.]+$/.exec(q1&&q1.keys&&q1.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),Kj=AK.toString,m0=py.hasOwnProperty,dh=py.toString,kK=RegExp("^"+Kj.call(m0).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q_=Rs.Symbol,K1=q_?q_.iterator:void 0,OK=py.propertyIsEnumerable,TK=(V_=Object.keys,W_=Object,function(e){return V_(W_(e))}),CE=ph(Rs,"DataView"),DE=ph(Rs,"Map"),_E=ph(Rs,"Promise"),AE=ph(Rs,"Set"),kE=ph(Rs,"WeakMap"),FK=Ms(CE),BK=Ms(DE),PK=Ms(_E),jK=Ms(AE),NK=Ms(kE);function IK(e,t){var r=Yj(e)||(function(a){return(function(u){return Zj(u)&&aS(u)})(a)&&m0.call(a,"callee")&&(!OK.call(a,"callee")||dh.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],n=r.length,o=!!n;for(var i in e)!m0.call(e,i)||o&&(i=="length"||MK(i,n))||r.push(i);return r}function LK(e){if(!Jj(e)||(function(r){return!!G_&&G_ in r})(e))return!1;var t=Xj(e)||(function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n})(e)?kK:hK;return t.test(Ms(e))}function RK(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||py,t!==n)return TK(e);var t,r,n,o=[];for(var i in Object(e))m0.call(e,i)&&i!="constructor"&&o.push(i);return o}function ph(e,t){var r=(function(n,o){return n?.[o]})(e,t);return LK(r)?r:void 0}
10var Bu=function(e){return dh.call(e)};function MK(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||gK.test(e))&&e>-1&&e%1==0&&e<t}function Ms(e){if(e!=null){try{return Kj.call(e)}catch{}try{return e+""}catch{}}return""}(CE&&Bu(new CE(new ArrayBuffer(1)))!="[object DataView]"||DE&&Bu(new DE)!=wE||_E&&Bu(_E.resolve())!="[object Promise]"||AE&&Bu(new AE)!=EE||kE&&Bu(new kE)!="[object WeakMap]")&&(Bu=function(e){var t=dh.call(e),r=t=="[object Object]"?e.constructor:void 0,n=r?Ms(r):void 0;if(n)switch(n){case FK:return"[object DataView]";case BK:return wE;case PK:return"[object Promise]";case jK:return EE;case NK:return"[object WeakMap]"}return t});var Yj=Array.isArray;function aS(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!Xj(e)}function Xj(e){var t=Jj(e)?dh.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function Jj(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Zj(e){return!!e&&typeof e=="object"}function $K(e){return e?SK(e,(function(t){return aS(t)?IK(t):RK(t)})(e)):[]}var K_=function(e){if(!e)return[];if(aS(e))return(function(r){return typeof r=="string"||!Yj(r)&&Zj(r)&&dh.call(r)=="[object String]"})(e)?_K(e):(function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n})(e);if(K1&&e[K1])return(function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o})(e[K1]());var t=Bu(e);return(t==wE?CK:t==EE?DK:$K)(e)};function Y_(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function uS(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(r){e[r]===void 0?e[r]=t[r]:Y_(t[r])&&Y_(e[r])&&Object.keys(t[r]).length>0&&uS(e[r],t[r])}))}var Qj={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 hh(){var e=typeof document<"u"?document:{};return uS(e,Qj),e}var zK={document:Qj,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 $s(){var e=typeof window<"u"?window:{};return uS(e,zK),e}
10function OE(e){return OE=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},OE(e)}function y0(e,t){return y0=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},y0(e,t)}function HK(){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 TE(e,t,r){return TE=HK()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&y0(u,i.prototype),u},TE.apply(null,arguments)}function FE(e){var t=typeof Map=="function"?new Map:void 0;return FE=function(r){if(r===null||!(function(o){return Function.toString.call(o).indexOf("[native code]")!==-1})(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return TE(r,arguments,OE(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y0(n,r)},FE(e)}var xa=(function(e){var t,r;function n(o){var i,a,u;return i=e.call.apply(e,[this].concat(o))||this,a=(function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s})(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n})(FE(Array));function hy(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(r){Array.isArray(r)?t.push.apply(t,hy(r)):t.push(r)})),t}function eN(e,t){return Array.prototype.filter.call(e,t)}function B(e,t){var r=$s(),n=hh(),o=[];if(!t&&e instanceof xa)return e;if(!e)return new xa(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=n.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=(function(l,c){if(typeof l!="string")return[l];for(var f=[],d=c.querySelectorAll(l),p=0;p<d.length;p+=1)f.push(d[p]);return f})(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)o.push(e);else if(Array.isArray(e)){if(e instanceof xa)return e;o=e}return new xa((function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c})(o))}function ic(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=hy(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).add.apply(i,n)})),this}function ac(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=hy(t.map((function(o){return o.split(" ")})));return this.forEach((function(o){var i;(i=o.classList).remove.apply(i,n)})),this}function uc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=hy(t.map((function(o){return o.split(" ")})));return eN(this,(function(o){return n.filter((function(i){return o.classList.contains(i)})).length>0})).length>0}function ro(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function b0(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function sc(){var e=this[0];if(e){var t,r={};if(e.dataset)for(var n in e.dataset)r[n]=e.dataset[n];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(r[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(u,s){return s.toUpperCase()}))]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function ri(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<t.selectedOptions.length;n+=1)r.push(t.selectedOptions[n].value);return r}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function ni(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];function u(m){var g=m.target;if(g){var y=m.target.dom7EventData||[];if(y.indexOf(m)<0&&y.unshift(m),B(g).is(o))i.apply(g,y);else for(var h=B(g).parents(),b=0;b<h.length;b+=1)B(h[b]).is(o)&&i.apply(h[b],y)}}function s(m){var g=m&&m.target&&m.target.dom7EventData||[];g.indexOf(m)<0&&g.unshift(m),i.apply(this,g)}typeof t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[v]||(d.dom7Listeners[v]=[]),d.dom7Listeners[v].push({listener:i,proxyListener:s}),d.addEventListener(v,s,a)}}return this}function X_(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=n.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var v=d[p];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,v.proxyListener,a),d.splice(p,1))}}return this}function w0(){var e=$s();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function E0(){var e=$s();
10return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function J_(){if(this.length>0){var e=$s(),t=hh(),r=this[0],n=r.getBoundingClientRect(),o=t.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===e?e.scrollY:r.scrollTop,s=r===e?e.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function lc(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function x0(){for(var e=$s(),t=0;t<this.length;t+=1){var r=this[t];r.style.display==="none"&&(r.style.display=""),e.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function S0(e,t){var r,n=$s();if(arguments.length===1){if(typeof e!="string"){for(r=0;r<this.length;r+=1)for(var o in e)this[r].style[o]=e[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function C0(e){return e?(this.forEach((function(t,r){e.apply(t,[t,r])})),this):this}function Z_(e){return B(eN(this,e))}function Ga(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 D0(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 Q_(e){var t,r,n=$s(),o=hh(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=B(e),r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}if(e===o)return i===o;if(e===n)return i===n;if(e.nodeType||e instanceof xa){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}return!1}function no(){for(var e,t=hh(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof xa)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this}function eA(e){var t,r,n=hh();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=n.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(o.childNodes[r],this[t].childNodes[0])}else if(e instanceof xa)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function cc(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?B(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return B(t)}function _0(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)e?B(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return B(t)}function fc(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(e),o=0;o<n.length;o+=1)t.push(n[o]);return B(t)}function dc(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)e&&!B(n[o]).is(e)||t.push(n[o]);return B(t)}function pc(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function hc(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}B.fn=xa.prototype;var UK="resize scroll".split(" ");function tN(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)UK.indexOf(e)<0&&(e in this[o]?this[o][e]():B(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}}var tA=tN("click"),qa=tN("focus"),VK="[object GeneratorFunction]",WK=/^(?:0|[1-9]\d*)$/;function GK(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}var gy=Object.prototype,BE=gy.hasOwnProperty,rN=gy.toString,qK=gy.propertyIsEnumerable,KK=(function(e,t){return function(r){return e(t(r))}})(Object.keys,Object);function YK(e,t){var r=nN(e)||(function(a){return(function(u){return(function(s){return!!s&&typeof s=="object"})(u)&&sS(u)}
10)(a)&&BE.call(a,"callee")&&(!qK.call(a,"callee")||rN.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],n=r.length,o=!!n;for(var i in e)!BE.call(e,i)||o&&(i=="length"||QK(i,n))||r.push(i);return r}var rA,XK=(rA=function(e,t){return e&&JK(e,t,eY)},function(e,t){if(e==null)return e;if(!sS(e))return rA(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&t(o[n],n,o)!==!1;);return e}),JK=(function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return t}})();function ZK(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||gy,t!==n)return KK(e);var t,r,n,o=[];for(var i in Object(e))BE.call(e,i)&&i!="constructor"&&o.push(i);return o}function QK(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||WK.test(e))&&e>-1&&e%1==0&&e<t}var nN=Array.isArray;function sS(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!(function(t){var r=(function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")})(t)?rN.call(t):"";return r=="[object Function]"||r==VK})(e)}function eY(e){return sS(e)?YK(e):ZK(e)}function tY(e){return e}var lS=function(e,t){return(nN(e)?GK:XK)(e,typeof t=="function"?t:tY)};let oN=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t};var rY=/^\s+|\s+$/g,nY=/^[-+]0x[0-9a-f]+$/i,oY=/^0b[01]+$/i,iY=/^0o[0-7]+$/i,aY=parseInt,uY=typeof bt=="object"&&bt&&bt.Object===Object&&bt,sY=typeof self=="object"&&self&&self.Object===Object&&self,lY=uY||sY||Function("return this")(),cY=Object.prototype.toString,fY=Math.max,dY=Math.min,Y1=function(){return lY.Date.now()};function pY(e,t,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=n,E=o;return n=o=void 0,l=b,a=e.apply(E,w)}function v(b){return l=b,u=setTimeout(g,t),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=Y1();if(m(b))return y(b);u=setTimeout(g,(function(w){var E=t-(w-s);return f?dY(E,i-(w-l)):E})(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=Y1(),w=m(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=nA(t)||0,A0(r)&&(c=!!r.leading,i=(f="maxWait"in r)?fY(nA(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Y1())},h}function A0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function nA(e){if(typeof e=="number")return e;if((function(n){return typeof n=="symbol"||(function(o){return!!o&&typeof o=="object"})(n)&&cY.call(n)=="[object Symbol]"})(e))return NaN;if(A0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=A0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(rY,"");var r=oY.test(e);return r||iY.test(e)?aY(e.slice(2),r?2:8):nY.test(e)?NaN:+e}var Cs=function(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return A0(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),pY(e,t,{leading:n,maxWait:t,trailing:o})};const hY={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,r){return document.createElementNS(e,t,r)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){e.insertBefore(t,r)},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}
10,isComment:function(e){return e.nodeType===8}};function lp(e,t,r,n,o){return{sel:e,data:t,children:r,text:n,elm:o,key:t===void 0?void 0:t.key}}const PE=Array.isArray;function Ev(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function X1(e){return e===void 0}function xn(e){return e!==void 0}const oA=lp("",{},[],void 0,void 0);function sf(e,t){var r,n;const o=e.key===t.key,i=((r=e.data)===null||r===void 0?void 0:r.is)===((n=t.data)===null||n===void 0?void 0:n.is);return e.sel===t.sel&&o&&i}function gY(e,t,r){var n;const o={};for(let i=t;i<=r;++i){const a=(n=e[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const vY=["create","update","remove","destroy","pre","post"];function mY(e,t){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=hY;for(const f of vY)for(const d of e){const p=d[f];p!==void 0&&r[f].push(p)}function o(f){const d=f.id?"#"+f.id:"",p=f.getAttribute("class"),v=p?"."+p.split(" ").join("."):"";return lp(n.tagName(f).toLowerCase()+d+v,{},[],void 0,f)}function i(f,d){return function(){if(--d==0){const p=n.parentNode(f);n.removeChild(p,f)}}}function a(f,d){var p,v;let m,g=f.data;if(g!==void 0){const b=(p=g.hook)===null||p===void 0?void 0:p.init;xn(b)&&(b(f),g=f.data)}const y=f.children,h=f.sel;if(h==="!")X1(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),E=b>0?b:h.length,C=w>0?w:h.length,S=b!==-1||w!==-1?h.slice(0,Math.min(E,C)):h,k=f.elm=xn(g)&&xn(m=g.ns)?n.createElementNS(m,S,g):n.createElement(S,g);for(E<C&&k.setAttribute("id",h.slice(E+1,C)),w>0&&k.setAttribute("class",h.slice(C+1).replace(/\./g," ")),m=0;m<r.create.length;++m)r.create[m](oA,f);if(PE(y))for(m=0;m<y.length;++m){const G=y[m];G!=null&&n.appendChild(k,a(G,d))}else Ev(f.text)&&n.appendChild(k,n.createTextNode(f.text));const P=f.data.hook;xn(P)&&((v=P.create)===null||v===void 0||v.call(P,oA,f),P.insert&&d.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,d,p,v,m,g){for(;
10v<=m;++v){const y=p[v];y!=null&&n.insertBefore(f,a(y,g),d)}}function s(f){var d,p;const v=f.data;if(v!==void 0){(p=(d=v?.hook)===null||d===void 0?void 0:d.destroy)===null||p===void 0||p.call(d,f);for(let m=0;m<r.destroy.length;++m)r.destroy[m](f);if(f.children!==void 0)for(let m=0;m<f.children.length;++m){const g=f.children[m];g!=null&&typeof g!="string"&&s(g)}}}function l(f,d,p,v){for(var m,g;p<=v;++p){let y,h;const b=d[p];if(b!=null)if(xn(b.sel)){s(b),y=r.remove.length+1,h=i(b.elm,y);for(let E=0;E<r.remove.length;++E)r.remove[E](b,h);const w=(g=(m=b?.data)===null||m===void 0?void 0:m.hook)===null||g===void 0?void 0:g.remove;xn(w)?w(b,h):h()}else n.removeChild(f,b.elm)}}function c(f,d,p){var v,m,g,y,h;const b=(v=d.data)===null||v===void 0?void 0:v.hook;(m=b?.prepatch)===null||m===void 0||m.call(b,f,d);const w=d.elm=f.elm,E=f.children,C=d.children;if(f!==d){if(d.data!==void 0){for(let S=0;S<r.update.length;++S)r.update[S](f,d);(y=(g=d.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,f,d)}X1(d.text)?xn(E)&&xn(C)?E!==C&&(function(S,k,P,G){let J,M,X,$,V=0,Q=0,ie=k.length-1,le=k[0],q=k[ie],U=P.length-1,_=P[0],D=P[U];for(;V<=ie&&Q<=U;)le==null?le=k[++V]:q==null?q=k[--ie]:_==null?_=P[++Q]:D==null?D=P[--U]:sf(le,_)?(c(le,_,G),le=k[++V],_=P[++Q]):sf(q,D)?(c(q,D,G),q=k[--ie],D=P[--U]):sf(le,D)?(c(le,D,G),n.insertBefore(S,le.elm,n.nextSibling(q.elm)),le=k[++V],D=P[--U]):sf(q,_)?(c(q,_,G),n.insertBefore(S,q.elm,le.elm),q=k[--ie],_=P[++Q]):(J===void 0&&(J=gY(k,V,ie)),M=J[_.key],X1(M)?n.insertBefore(S,a(_,G),le.elm):(X=k[M],X.sel!==_.sel?n.insertBefore(S,a(_,G),le.elm):(c(X,_,G),k[M]=void 0,n.insertBefore(S,X.elm,le.elm))),_=P[++Q]);(V<=ie||Q<=U)&&(V>ie?($=P[U+1]==null?null:P[U+1].elm,u(S,$,P,Q,U,G)):l(S,k,V,ie))})(w,E,C,p):xn(C)?(xn(f.text)&&n.setTextContent(w,""),u(w,null,C,0,C.length-1,p)):xn(E)?l(w,E,0,E.length-1):xn(f.text)&&n.setTextContent(w,""):f.text!==d.text&&(xn(E)&&l(w,E,0,E.length-1),n.setTextContent(w,d.text)),(h=b?.postpatch)===null||h===void 0||h.call(b,f,d)}}return function(f,d){let p,v,m;const g=[];for(p=0;p<r.pre.length;++p)r.pre[p]();for((function(y){return y.sel!==void 0})(f)||(f=o(f)),sf(f,d)?c(f,d,g):(v=f.elm,m=n.parentNode(v),a(d,g),m!==null&&(n.insertBefore(m,d.elm,n.nextSibling(v)),l(m,[f],0,0))),p=0;p<g.length;++p)g[p].data.hook.insert(g[p]);for(p=0;p<r.post.length;++p)r.post[p]();return d}}function iN(e,t,r){if(e.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&t!==void 0)for(let n=0;n<t.length;++n){const o=t[n].data;o!==void 0&&iN(o,t[n].children,t[n].sel)}}function gc(e,t,r){let n,o,i,a={};if(r!==void 0?(t!==null&&(a=t),PE(r)?n=r:Ev(r)?o=r.toString():r&&r.sel&&(n=[r])):t!=null&&(PE(t)?n=t:Ev(t)?o=t.toString():t&&t.sel?n=[t]:a=t),n!==void 0)for(i=0;i<n.length;++i)Ev(n[i])&&(n[i]=lp(void 0,void 0,void 0,n[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||iN(a,n,e),lp(e,a,n,o,void 0)}function iA(e,t){let r;const n=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const yY={create:iA,update:iA};function aA(e,t){let r,n;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const bY={create:aA,update:aA},uA=/[A-Z]/g;function sA(e,t){const r=t.elm;let n,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(uA,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(uA,"-$&").toLowerCase(),i[n]))}const wY={create:sA,update:sA};function aN(e,t,r){if(typeof e=="function")e.call(t,r,t);else if(typeof e=="object")for(let n=0;n<e.length;n++)aN(e[n],t,r)}function EY(e,t){const r=e.type,n=t.data.on;n&&n[r]&&aN(n[r],t,e)}function J1(e,t){const r=e.data.on,n=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=t.listener=e.listener||function l(c){EY(c,l.vnode)};if(s.vnode=t,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const xY={create:J1,update:J1,destroy:J1};function lA(e,t){let r,n,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const SY={create:lA,update:lA},cA=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Z1=!1;function CY(e,t,r){(function(n){cA((function(){cA(n)}))})((function(){e[t]=r}))}function fA(e,t){let r,n;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||CY(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const DY={pre:function(){Z1=!1},create:fA,update:fA,destroy:function(e){let t,r;const n=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(r in t)n.style[r]=t[r]},remove:function(e,t){const r=e.data.style;if(!r||!r.remove)return void t();let n;Z1||(e.elm.offsetLeft,Z1=!0);const o=e.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",(function(c){c.target===o&&--u,u===0&&t()}))}};function uN(e,t){for(const r of e)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?uN(r,t):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?t.push(lp(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function Be(e,t,...r){const n=uN(r,[]);return typeof e=="function"?e(t,n):n.length===1&&!n[0].sel&&n[0].text?gc(e,t,n[0].text):gc(e,t,n)}Be||(Be={});var _Y=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,AY=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
107f]/g,sN="\\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",kY="[\\ud800-\\udfff]",dA="["+sN+"]",k0="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",lN="\\d+",OY="[\\u2700-\\u27bf]",cN="[a-z\\xdf-\\xf6\\xf8-\\xff]",fN="[^\\ud800-\\udfff"+sN+lN+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",jE="\\ud83c[\\udffb-\\udfff]",dN="[^\\ud800-\\udfff]",cS="(?:\\ud83c[\\udde6-\\uddff]){2}",fS="[\\ud800-\\udbff][\\udc00-\\udfff]",Ol="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pA="(?:"+cN+"|"+fN+")",TY="(?:"+Ol+"|"+fN+")",hA="(?:"+k0+"|"+jE+")?",pN="[\\ufe0e\\ufe0f]?"+hA+("(?:\\u200d(?:"+[dN,cS,fS].join("|")+")[\\ufe0e\\ufe0f]?"+hA+")*"),FY="(?:"+[OY,cS,fS].join("|")+")"+pN,BY="(?:"+[dN+k0+"?",k0,cS,fS,kY].join("|")+")",PY=RegExp("['â]","g"),jY=RegExp(k0,"g"),NY=RegExp(jE+"(?="+jE+")|"+BY+pN,"g"),IY=RegExp([Ol+"?"+cN+"+(?:['â](?:d|ll|m|re|s|t|ve))?(?="+[dA,Ol,"$"].join("|")+")",TY+"+(?:['â](?:D|LL|M|RE|S|T|VE))?(?="+[dA,Ol+pA,"$"].join("|")+")",Ol+"?"+pA+"+(?:['â](?:d|ll|m|re|s|t|ve))?",Ol+"+(?:['â](?:D|LL|M|RE|S|T|VE))?",lN,FY].join("|"),"g"),LY=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),RY=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,MY=typeof bt=="object"&&bt&&bt.Object===Object&&bt,$Y=typeof self=="object"&&self&&self.Object===Object&&self,zY=MY||$Y||Function("return this")(),Q1,HY=(Q1={Ã:"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",Å¿:"ss"},function(e){return Q1?.[e]});function hN(e){return LY.test(e)}function UY(e){return hN(e)?(function(t){return t.match(NY)||[]})(e):(function(t){return t.split("")})(e)}var VY=Object.prototype.toString,gA=zY.Symbol,vA=gA?gA.prototype:void 0,mA=vA?vA.toString:void 0;function WY(e){if(typeof e=="string")return e;if((function(r){return typeof r=="symbol"||(function(n){return!!n&&typeof n=="object"})(r)&&VY.call(r)=="[object Symbol]"})(e))return mA?mA.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function GY(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:(function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l})(e,t,r)}function xv(e){return e==null?"":WY(e)}var yA,qY=(yA=function(e,t,r){return t=t.toLowerCase(),e+(r?KY(xv(t).toLowerCase()):t)},function(e){return(function(t,r,n,o){var i=-1,a=t?t.length:0;for(o;++i<a;)n=r(n,t[i],i,t);return n})((function(t,r,n){return t=xv(t),(r=r)===void 0?(function(o){return RY.test(o)})(t)?(function(o){return o.match(IY)||[]})(t):(function(o){return o.match(_Y)||[]})(t):t.match(r)||[]})((function(t){return(t=xv(t))&&t.replace(AY,HY).replace(jY,"")})(e).replace(PY,"")),yA,"")}),bA,KY=(bA="toUpperCase",function(e){var t=hN(e=xv(e))?UY(e):void 0,r=t?t[0]:e.charAt(0),n=t?GY(t,1).join(""):e.slice(1);return r[bA]()+n});for(var YY=qY,XY=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),eb={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},gN={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:XY?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},dS={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}
10,cg=1;cg<20;cg++)dS["f"+cg]=111+cg;function vN(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map((function(i){return(function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var d in eb)l[eb[d]]=!1;var p=!0,v=!1,m=void 0;try{for(var g,y=c[Symbol.iterator]();!(p=(g=y.next()).done);p=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=mN(h),E=eb[w];if(h.length>1&&!E&&!gN[h]&&!dS[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&E||(s?l.key=w:l.which=JY(h)),E&&(l[E]=!b||null)}}catch(C){v=!0,m=C}finally{try{!p&&y.return&&y.return()}finally{if(v)throw m}}return l})(i,t)})),o=function(i){return n.some((function(a){return(function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0})(a,i)}))};return r==null?o:o(r)}function JY(e){return e=mN(e),dS[e]||e.toUpperCase().charCodeAt(0)}function mN(e){return e=e.toLowerCase(),e=gN[e]||e}var ZY=vN,tb=function(e,t){return vN(e,{byKey:!0},t)},QY=/^\s+|\s+$/g,eX=/^[-+]0x[0-9a-f]+$/i,tX=/^0b[01]+$/i,rX=/^0o[0-7]+$/i,nX=parseInt,oX=typeof bt=="object"&&bt&&bt.Object===Object&&bt,iX=typeof self=="object"&&self&&self.Object===Object&&self,aX=oX||iX||Function("return this")(),uX=Object.prototype.toString,sX=Math.max,lX=Math.min,rb=function(){return aX.Date.now()};function NE(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function wA(e){if(typeof e=="number")return e;if((function(n){return typeof n=="symbol"||(function(o){return!!o&&typeof o=="object"})(n)&&uX.call(n)=="[object Symbol]"})(e))return NaN;if(NE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=NE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(QY,"");var r=tX.test(e);return r||rX.test(e)?nX(e.slice(2),r?2:8):eX.test(e)?NaN:+e}var el,yN=function(e,t,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError("Expected a function");function p(b){var w=n,E=o;return n=o=void 0,l=b,a=e.apply(E,w)}function v(b){return l=b,u=setTimeout(g,t),c?p(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=rb();if(m(b))return y(b);u=setTimeout(g,(function(w){var E=t-(w-s);return f?lX(E,i-(w-l)):E})(b))}function y(b){return u=void 0,d&&n?p(b):(n=o=void 0,a)}function h(){var b=rb(),w=m(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),p(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=wA(t)||0,NE(r)&&(c=!!r.leading,i=(f="maxWait"in r)?sX(wA(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(rb())},h},bN=Is((function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object Promise]",p="[object RegExp]",v="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",P="[object Uint8Array]",G="[object Uint8ClampedArray]",J="[object Uint16Array]",M="[object Uint32Array]",X=/\w*$/,$=/^\[object .+?Constructor\]$/,V=/^(?:0|[1-9]\d*)$/,Q={};Q[o]=Q["[object Array]"]=Q[h]=Q[b]=Q[i]=Q[a]=Q[w]=Q[E]=Q[C]=Q[S]=Q[k]=Q[l]=Q[c]=Q[f]=Q[p]=Q[v]=Q[m]=Q[g]=Q[P]=Q[G]=Q[J]=Q[M]=!0,Q["[object Error]"]=Q[u]=Q[y]=!1;var ie=typeof bt=="object"&&bt&&bt.Object===Object&&bt,le=typeof self=="object"&&self&&self.Object===Object&&self,q=ie||le||Function("return this")(),U=t&&!t.nodeType&&t,_=U&&e&&!e.nodeType&&e,D=_&&_.exports===U;function F(j,te){return j.set(te[0],te[1]),j}function H(j,te){return j.add(te),j}function ee(j,te,me,Se){var Qe=-1,Bt=j?j.length:0;for(Se;++Qe<Bt;)me=te(me,j[Qe],Qe,j);return me}function W(j){var te=!1;if(j!=null&&typeof j.toString!="function")try{te=!!(j+"")}catch{}return te}function I(j){var te=-1,me=Array(j.size);
10return j.forEach((function(Se,Qe){me[++te]=[Qe,Se]})),me}function ne(j,te){return function(me){return j(te(me))}}function ae(j){var te=-1,me=Array(j.size);return j.forEach((function(Se){me[++te]=Se})),me}var be=Array.prototype,K=Function.prototype,ze=Object.prototype,je=q["__core-js_shared__"],Ee=(function(){var j=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||"");return j?"Symbol(src)_1."+j:""})(),_e=K.toString,Ft=ze.hasOwnProperty,Ke=ze.toString,st=RegExp("^"+_e.call(Ft).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pt=D?q.Buffer:void 0,Er=q.Symbol,Ye=q.Uint8Array,Rr=ne(Object.getPrototypeOf,Object),mn=Object.create,$n=ze.propertyIsEnumerable,Ui=be.splice,di=Object.getOwnPropertySymbols,yn=pt?pt.isBuffer:void 0,zn=ne(Object.keys,Object),co=Hn(q,"DataView"),xr=Hn(q,"Map"),Sr=Hn(q,"Promise"),Cr=Hn(q,"Set"),Br=Hn(q,"WeakMap"),rr=Hn(Object,"create"),rn=Oe(co),du=Oe(xr),Po=Oe(Sr),fo=Oe(Cr),Vi=Oe(Br),pi=Er?Er.prototype:void 0,Wi=pi?pi.valueOf:void 0;function bn(j){var te=-1,me=j?j.length:0;for(this.clear();++te<me;){var Se=j[te];this.set(Se[0],Se[1])}}function nn(j){var te=-1,me=j?j.length:0;for(this.clear();++te<me;){var Se=j[te];this.set(Se[0],Se[1])}}function po(j){var te=-1,me=j?j.length:0;for(this.clear();++te<me;){var Se=j[te];this.set(Se[0],Se[1])}}function wn(j){this.__data__=new nn(j)}function jo(j,te){var me=N(j)||(function(Et){return(function(rt){return(function(hr){return!!hr&&typeof hr=="object"})(rt)&&Y(rt)})(Et)&&Ft.call(Et,"callee")&&(!$n.call(Et,"callee")||Ke.call(Et)==o)})(j)?(function(Et,rt){for(var hr=-1,Mr=Array(Et);++hr<Et;)Mr[hr]=rt(hr);return Mr})(j.length,String):[],Se=me.length,Qe=!!Se;for(var Bt in j)!Ft.call(j,Bt)||Qe&&(Bt=="length"||se(Bt,Se))||me.push(Bt);return me}function Ks(j,te,me){var Se=j[te];Ft.call(j,te)&&Ct(Se,me)&&(me!==void 0||te in j)||(j[te]=me)}function Xr(j,te){for(var me=j.length;me--;)if(Ct(j[me][0],te))return me;return-1}function pu(j,te,me,Se,Qe,Bt,Et){var rt;if(Se&&(rt=Bt?Se(j,Qe,Bt,Et):Se(j)),rt!==void 0)return rt;if(!ke(j))return j;var hr=N(j);if(hr){if(rt=(function(Fe){var lt=Fe.length,Kt=Fe.constructor(lt);return lt&&typeof Fe[0]=="string"&&Ft.call(Fe,"index")&&(Kt.index=Fe.index,Kt.input=Fe.input),Kt})(j),!te)return(function(Fe,lt){var Kt=-1,Xe=Fe.length;for(lt||(lt=Array(Xe));++Kt<Xe;)lt[Kt]=Fe[Kt];return lt})(j,rt)}else{var Mr=En(j),vu=Mr==u||Mr==s;if(fe(j))return(function(Fe,lt){if(lt)return Fe.slice();var Kt=new Fe.constructor(Fe.length);return Fe.copy(Kt),Kt})(j,te);if(Mr==f||Mr==o||vu&&!Bt){if(W(j))return Bt?j:{};if(rt=(function(Fe){return typeof Fe.constructor!="function"||de(Fe)?{}:(lt=Rr(Fe),ke(lt)?mn(lt):{});var lt})(vu?{}:j),!te)return(function(Fe,lt){return hu(Fe,gu(Fe),lt)})(j,(function(Fe,lt){return Fe&&hu(lt,Ne(lt),Fe)})(rt,j))}else{if(!Q[Mr])return Bt?j:{};rt=(function(Fe,lt,Kt,Xe){var nt=Fe.constructor;switch(lt){case h:return hi(Fe);case i:case a:return new nt(+Fe);case b:return(function(ot,Vt){var Jr=Vt?hi(ot.buffer):ot.buffer;return new ot.constructor(Jr,ot.byteOffset,ot.byteLength)})(Fe,Xe);case w:case E:case C:case S:case k:case P:case G:case J:case M:return(function(ot,Vt){var Jr=Vt?hi(ot.buffer):ot.buffer;return new ot.constructor(Jr,ot.byteOffset,ot.length)})(Fe,Xe);case l:return(function(ot,Vt,Jr){return ee(Vt?Jr(I(ot),!0):I(ot),F,new ot.constructor)})(Fe,Xe,Kt);case c:case m:return new nt(Fe);case p:return(function(ot){var Vt=new ot.constructor(ot.source,X.exec(ot));return Vt.lastIndex=ot.lastIndex,Vt})(Fe);case v:return(function(ot,Vt,Jr){return ee(Vt?Jr(ae(ot),!0):ae(ot),H,new ot.constructor)})(Fe,Xe,Kt);case g:return(function(ot){return Wi?Object(Wi.call(ot)):{}})(Fe)}})(j,Mr,pu,te)}}Et||(Et=new wn);var gi=Et.get(j);if(gi)return gi;if(Et.set(j,rt),!hr)var Gi=me?(function(Fe){return(function(lt,Kt,Xe){var nt=Kt(lt);return N(lt)?nt:(function(ot,Vt){for(var Jr=-1,on=Vt.length,vo=ot.length;++Jr<on;)ot[vo+Jr]=Vt[Jr];return ot})(nt,Xe(lt))})(Fe,Ne,gu)})(j):Ne(j);return(function(Fe,lt){for(var Kt=-1,Xe=Fe?Fe.length:0;++Kt<Xe&<(Fe[Kt],Kt,Fe)!==!1;);})(Gi||j,(function(Fe,lt){Gi&&(Fe=j[lt=Fe]),Ks(rt,lt,pu(Fe,te,me,Se,lt,j,Et))})),rt}function ho(j){return!(!ke(j)||(function(te){return!!Ee&&Ee in te})(j))&&(xe(j)||W(j)?st:$).test(Oe(j))}function hi(j){var te=new j.constructor(j.byteLength);return new Ye(te).set(new Ye(j)),te}function hu(j,te,me,Se){me||(me={});for(var Qe=-1,Bt=te.length;++Qe<Bt;){var Et=te[Qe],rt=void 0;Ks(me,Et,rt===void 0?j[Et]:rt)}return me}function go(j,te){var me,Se,Qe=j.__data__;return((Se=typeof(me=te))=="string"||Se=="number"||Se=="symbol"||Se=="boolean"?me!=="__proto__":me===null)?Qe[typeof te=="string"?"string":"hash"]:Qe.map}function Hn(j,te){var me=(function(Se,Qe){return Se?.[Qe]})(j,te);return ho(me)?me:void 0}bn.prototype.clear=function(){this.__data__=rr?rr(null):{}},bn.prototype.delete=function(j){return this.has(j)&&delete this.__data__[j]},bn.prototype.get=function(j){var te=this.__data__;if(rr){var me=te[j];return me===r?void 0:me}return Ft.call(te,j)?te[j]:void 0},bn.prototype.has=function(j){var te=this.__data__;return rr?te[j]!==void 0:Ft.call(te,j)},bn.prototype.set=function(j,te){return this.__data__[j]=rr&&te===void 0?r:te,this},nn.prototype.clear=function(){this.__data__=[]},nn.prototype.delete=function(j){var te=this.__data__,me=Xr(te,j);return!(me<0)&&(me==te.length-1?te.pop():Ui.call(te,me,1),!0)},nn.prototype.get=function(j){var te=this.__data__,me=Xr(te,j);return me<0?void 0:te[me][1]},nn.prototype.has=function(j){return Xr(this.__data__,j)>-1},nn.prototype.set=function(j,te){var me=this.__data__,Se=Xr(me,j);return Se<0?me.push([j,te]):me[Se][1]=te,this},po.prototype.clear=function(){this.__data__={hash:new bn,map:new(xr||nn),string:new bn}},po.prototype.delete=function(j){return go(this,j).delete(j)},po.prototype.get=function(j){return go(this,j).get(j)},po.prototype.has=function(j){return go(this,j).has(j)},po.prototype.set=function(j,te){return go(this,j).set(j,te),this},wn.prototype.clear=function(){this.__data__=new nn},wn.prototype.delete=function(j){return this.__data__.delete(j)},wn.prototype.get=function(j){return this.__data__.get(j)},wn.prototype.has=function(j){return this.__data__.has(j)},wn.prototype.set=function(j,te){var me=this.__data__;if(me instanceof nn){var Se=me.__data__;if(!xr||Se.length<199)return Se.push([j,te]),this;me=this.__data__=new po(Se)}return me.set(j,te),this};var gu=di?ne(di,Object):function(){return[]},En=function(j){return Ke.call(j)};function se(j,te){return!!(te=te??n)&&(typeof j=="number"||V.test(j))&&j>-1&&j%1==0&&j<te}function de(j){var te=j&&j.constructor;return j===(typeof te=="function"&&te.prototype||ze)}function Oe(j){if(j!=null){try{return _e.call(j)}catch{}try{return j+""}catch{}}return""}function Ct(j,te){return j===te||j!=j&&te!=te}(co&&En(new co(new ArrayBuffer(1)))!=b||xr&&En(new xr)!=l||Sr&&En(Sr.resolve())!=d||Cr&&En(new Cr)!=v||Br&&En(new Br)!=y)&&(En=function(j){var te=Ke.call(j),me=te==f?j.constructor:void 0,Se=me?Oe(me):void 0;if(Se)switch(Se){case rn:return b;case du:return l;case Po:return d;case fo:return v;case Vi:return y}return te});var N=Array.isArray;function Y(j){return j!=null&&(function(te){return typeof te=="number"&&te>-1&&te%1==0&&te<=n})(j.length)&&!xe(j)}var fe=yn||function(){return!1};function xe(j){var te=ke(j)?Ke.call(j):"";return te==u||te==s}function ke(j){var te=typeof j;return!!j&&(te=="object"||te=="function")}function Ne(j){return Y(j)?jo(j):(function(te){if(!de(te))return zn(te);var me=[];for(var Se in Object(te))Ft.call(te,Se)&&Se!="constructor"&&me.push(Se);return me})(j)}e.exports=function(j){return pu(j,!0,!0)}}));function EA(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var cX=0;function fX(e){return"__private_"+cX+++"_"+e}function dX(e,t,r){const n=[];return e.forEach((o=>
10typeof o!="string"?n.push(o):t[Symbol.split](o).forEach(((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})))),n}function xA(e,t){const r=/\$/g;let n=[e];if(t==null)return n;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=dX(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var wN=(el=fX("apply"),class{constructor(e){Object.defineProperty(this,el,{value:pX}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(EA(this,el)[el],this):EA(this,el)[el](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(function(n,o){return Object.prototype.hasOwnProperty.call(n,o)})(this.locale.strings,e))throw new Error(`missing string: ${e}`);const r=this.locale.strings[e];if(typeof r=="object"){if(t&&t.smart_count!==void 0)return xA(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return xA(r,t)}});function pX(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var EN=function(){var e={},t=e._fns={};return e.emit=function(r,n,o,i,a,u,s){var l=(function(c){for(var f=t[c]?t[c]:[],d=c.indexOf(":"),p=d===-1?[c]:[c.substring(0,d),c.substring(d+1)],v=Object.keys(t),m=0,g=v.length;m<g;m++){var y=v[m];if(y==="*"&&(f=f.concat(t[y])),p.length===2&&p[0]===y){f=f.concat(t[y]);break}}return f})(r);l.length&&(function(c,f,d){for(var p=0,v=f.length;p<v&&f[p];p++)f[p].event=c,f[p].apply(f[p],d)})(r,l,[n,o,i,a,u,s])},e.on=function(r,n){t[r]||(t[r]=[]),t[r].push(n)},e.once=function(r,n){this.on(r,(function o(){n.apply(this,arguments),e.off(r,o)}))},e.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},e},hX={nanoid:(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t}},nb=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function xN(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}xN.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)o[t]!=="*"&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if(typeof e.splice=="function")for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if(typeof e=="object")for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var gX=/[\/\+\.]/,vX=function(e,t){function r(n){var o=(function(i,a,u){var s=new xN(i,u||/[\/\.]/);return a!==void 0?s.match(a):s})(n,e,gX);return o&&o.length>=2}return t?r(t.split(";")[0]):r},mX=0;function yX(e){return"__private_"+mX+++"_"+e}var ob=yX("publish");class SN{constructor(){Object.defineProperty(this,ob,{value:bX}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,(function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o})(this,ob)[ob](r,n,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function bX(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.callbacks.forEach((n=>{n(...t)}))}SN.VERSION="2.0.3";var SA=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},CA={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 DA(e){let t="";return e.replace(/[^A-Z0-9]/gi,(r=>
10(t+=`-${(function(n){return n.charCodeAt(0).toString(32)})(r)}`,"/")))+t}var wX=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function ib(e){return e<10?`0${e}`:e.toString()}var fg=function(){const e=new Date;return`${ib(e.getHours())}:${ib(e.getMinutes())}:${ib(e.getSeconds())}`},CN={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${fg()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${fg()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${fg()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${fg()}]`,...t)}}},EX={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}"}}},DN=hX;let _N,AN;function De(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xX=0;function pr(e){return"__private_"+xX+++"_"+e}const{nanoid:SX}=DN,{justErrorsLogger:CX,debugLogger:DX}=CN;class Uo extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class _X extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var Pr=pr("plugins"),lf=pr("storeUnsubscribe"),mi=pr("emitter"),Mu=pr("preProcessors"),$u=pr("uploaders"),Si=pr("postProcessors"),Pd=pr("checkRestrictions"),ab=pr("checkMinNumberOfFiles"),cp=pr("checkRequiredMetaFieldsOnFile"),ub=pr("checkRequiredMetaFields"),vr=pr("showOrLogErrorAndThrow"),cf=pr("assertNewUploadAllowed"),ff=pr("checkAndCreateFileStateObject"),df=pr("startIfAutoProceed"),sb=pr("addListeners"),yo=pr("updateOnlineStatus"),yi=pr("createUpload"),lb=pr("getUpload"),Vu=pr("removeUpload"),bi=pr("runUpload");_N=Symbol.for("uppy test: getPlugins"),AN=Symbol.for("uppy test: createUpload");class kN{constructor(t){Object.defineProperty(this,bi,{value:MX}),Object.defineProperty(this,Vu,{value:RX}),Object.defineProperty(this,lb,{value:LX}
vendor: 6,419 bytes, line 10
10),Object.defineProperty(this,yi,{value:IX}),Object.defineProperty(this,sb,{value:NX}),Object.defineProperty(this,df,{value:jX}),Object.defineProperty(this,ff,{value:PX}),Object.defineProperty(this,cf,{value:BX}),Object.defineProperty(this,vr,{value:FX}),Object.defineProperty(this,ub,{value:TX}),Object.defineProperty(this,cp,{value:OX}),Object.defineProperty(this,ab,{value:kX}),Object.defineProperty(this,Pd,{value:AX}),Object.defineProperty(this,Pr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,lf,{writable:!0,value:void 0}),Object.defineProperty(this,mi,{writable:!0,value:EN()}),Object.defineProperty(this,Mu,{writable:!0,value:new Set}),Object.defineProperty(this,$u,{writable:!0,value:new Set}),Object.defineProperty(this,Si,{writable:!0,value:new Set}),Object.defineProperty(this,yo,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=EX;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:new SN,logger:CX,infoTimeout:5e3};if(this.opts={...r,...t,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=DX),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=Cs(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:wX(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),De(this,lf)[lf]=this.store.subscribe(((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)})),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),De(this,sb)[sb]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];De(this,mi)[mi].emit(t,...n)}on(t,r){return De(this,mi)[mi].on(t,r),this}once(t,r){return De(this,mi)[mi].once(t,r),this}off(t,r){return De(this,mi)[mi].off(t,r),this}updateAll(t){this.iteratePlugins((r=>{r.update(t)}))}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Canât set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...r}}})}i18nInit(){const t=new wN([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins((r=>{r.setOptions()})),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach((o=>{const i={...r[o]};i.progress={...i.progress,...t},n[o]=i})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){De(this,Mu)[Mu].add(t)}removePreProcessor(t){return De(this,Mu)[Mu].delete(t)}addPostProcessor(t){De(this,Si)[Si].add(t)}removePostProcessor(t){return De(this,Si)[Si].delete(t)}addUploader(t){De(this,$u)[$u].add(t)}removeUploader(t){return De(this,$u)[$u].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach((o=>{n[o]={...n[o],meta:{...n[o].meta,...t}}})),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...n[t].meta,...r};n[t]={...n[t],meta:o},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),o=Object.values(t),i=o.filter((v=>{let{progress:m}=v;return!m.uploadComplete&&m.uploadStarted})),a=o.filter((v=>!v.progress.uploadStarted)),u=o.filter((v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess)),s=o.filter((v=>v.progress.uploadStarted)),l=o.filter((v=>v.isPaused)),c=o.filter((v=>v.progress.uploadComplete)),f=o.filter((v=>v.error)),d=i.filter((v=>!v.isPaused)),p=o.filter((v=>v.progress.preprocess||v.progress.postprocess));return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:d,processingFiles:p,isUploadStarted:s.length>0,isAllComplete:r===100&&c.length===o.length&&p.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some((v=>v.isGhost))}}validateRestrictions(t,r){try{return De(this,Pd)[Pd](t,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!(!r[t]||r[t].isGhost)}addFile(t){De(this,cf)[cf](t);const{files:r}=this.getState();let n=De(this,ff)[ff](r,t);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),De(this,df)[df](),n.id}addFiles(t){De(this,cf)[cf]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<t.length;i++)try{let a=De(this,ff)[ff](r,t[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}
10),n.forEach((i=>{this.emit("file-added",i)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((i=>{this.log(`Added file: ${n[i].name} 11 id: ${n[i].id} 12 type: ${n[i].type}`)})),n.length>0&&De(this,df)[df](),o.length>0){let i=`Multiple errors occurred while adding files: 13`;if(o.forEach((a=>{i+=` 14 * ${a.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}t.forEach((f=>{n[f]&&(u[f]=n[f],delete i[f])})),Object.keys(a).forEach((f=>{const d=o[f].fileIDs.filter(s);d.length!==0?a[f]={...o[f],fileIDs:d}:delete a[f]}));const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach((f=>{this.emit("file-removed",u[f],r)})),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,r){r===void 0&&(r=null),this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter((r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted)).forEach((r=>{const n={...t[r],isPaused:!0};t[r]=n})),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter((r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted)).forEach((r=>{const n={...t[r],isPaused:!1,error:null};t[r]=n})),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter((o=>t[o].error));if(r.forEach((o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i})),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=De(this,yi)[yi](r,{forceAllowNewUpload:!0});return De(this,bi)[bi](n)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),r=Object.keys(t);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=De(this,yi)[yi]([t],{forceAllowNewUpload:!0});return De(this,bi)[bi](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins((t=>{t.provider&&t.provider.logout&&t.provider.logout()}))}calculateProgress(t,r){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter((s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess));if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=t.filter((s=>s.progress.bytesTotal!=null)),n=t.filter((s=>s.progress.bytesTotal==null));if(r.length===0){const s=100*t.length,l=n.reduce(((f,d)=>f+d.progress.percentage),0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce(((s,l)=>s+l.progress.bytesTotal),0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach((s=>{a+=s.progress.bytesUploaded})),n.forEach((s=>{a+=i*(s.progress.percentage||0)/100}));let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit
14("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const n=new t(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'. 15Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),n.type in De(this,Pr)[Pr]?De(this,Pr)[Pr][n.type].push(n):De(this,Pr)[Pr][n.type]=[n],n.install(),this}getPlugin(t){for(const r of Object.values(De(this,Pr)[Pr])){const n=r.find((o=>o.id===t));if(n!=null)return n}}[_N](t){return De(this,Pr)[Pr][t]}iteratePlugins(t){Object.values(De(this,Pr)[Pr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=De(this,Pr)[Pr][t.type],n=r.findIndex((i=>i.id===t.id));n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),De(this,lf)[lf](),this.iteratePlugins((t=>{this.removePlugin(t)})),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",De(this,yo)[yo]),window.removeEventListener("offline",De(this,yo)[yo]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:o?t.message:t,details:o?t.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?De(this,bi)[bi](t):(De(this,Vu)[Vu](t),Promise.reject(new Error("Nonexistent upload")))}[AN](){return De(this,yi)[yi](...arguments)}addResultData(t,r){if(!De(this,lb)[lb](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),o={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:o}})}upload(){var t;(t=De(this,Pr)[Pr].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then((()=>{De(this,ab)[ab](r),De(this,ub)[ub](r)})).catch((o=>{De(this,vr)[vr](o)})).then((()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap((s=>s.fileIDs)),a=[];Object.keys(r).forEach((s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)}));const u=De(this,yi)[yi](a);return De(this,bi)[bi](u)})).catch((o=>{De(this,vr)[vr](o,{showInformer:!1})})))}}function AX(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new Uo(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some((u=>u.indexOf("/")>-1?!!e.type&&vX(e.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!e.extension)&&e.extension.toLowerCase()===u.substr(1).toLowerCase()))){const u=a.join(", ");throw new Uo(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach((s=>{u+=s.size})),u>o)throw new Uo(this.i18n("exceedsSize",{size:nb(o),file:e.name}))}if(r&&e.size!=null&&e.size>
15r)throw new Uo(this.i18n("exceedsSize",{size:nb(r),file:e.name}));if(n&&e.size!=null&&e.size<n)throw new Uo(this.i18n("inferiorSize",{size:nb(n)}))}function kX(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Uo(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function OX(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<t.length;i++)if(!r.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new Uo(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);n.push(a),o.push(t[i]),De(this,vr)[vr](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),n}function TX(e){const t=Object.keys(e).flatMap((r=>{const n=this.getFile(r);return De(this,cp)[cp](n)}));if(t.length)throw new _X(t,`${this.i18n("missingRequiredMetaField")}`)}function FX(e,t){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",n,e)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function BX(e){const{allowNewUpload:t}=this.getState();t===!1&&De(this,vr)[vr](new Uo(this.i18n("noMoreFilesAllowed")),{file:e})}function PX(e,t){const r=(function(f){var d;if(f.type)return f.type;const p=f.name?(d=SA(f.name).extension)==null?void 0:d.toLowerCase():null;return p&&p in CA?CA[p]:"application/octet-stream"})(t),n=(function(f,d){return d.name?d.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"})(r,t),o=SA(n).extension,i=!!t.isRemote,a=(function(f){let d="uppy";return typeof f.name=="string"&&(d+=`-${DA(f.name.toLowerCase())}`),f.type!==void 0&&(d+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(d+=`-${DA(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(d+=`-${f.data.size}`),f.data.lastModified!==void 0&&(d+=`-${f.data.lastModified}`),d})({...t,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new Uo(this.i18n("noDuplicates",{fileName:n}));De(this,vr)[vr](f,{file:t})}const u=t.meta||{};u.name=n,u.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?De(this,vr)[vr](new Uo("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map((d=>e[d]));De(this,Pd)[Pd](l,f)}catch(f){De(this,vr)[vr](f,{file:l})}return l}function jX(){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 NX(){const e=(t,r,n)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",e),this.on("upload-error",((t,r,n)=>{if(e(r,t,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),De(this,vr)[vr](o,{throwErr:!1})}else De(this,vr)[vr](r,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((t,r)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...n,postprocess:De(this,Si)[Si].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("preprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);
15const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.preprocess,this.setState({files:r})})),this.on("postprocess-progress",((t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)})),this.on("postprocess-complete",(t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.postprocess,this.setState({files:r})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(t=>{t&&De(this,cp)[cp](t)})),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",De(this,yo)[yo]),window.addEventListener("offline",De(this,yo)[yo]),setTimeout(De(this,yo)[yo],3e3))}function IX(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=SX();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function LX(e){const{currentUploads:t}=this.getState();return t[e]}function RX(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function MX(e){let{currentUploads:t}=this.getState(),r=t[e];const n=r.step||0,o=[...De(this,Mu)[Mu],...De(this,$u)[$u],...De(this,Si)[Si]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s={...r,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,r=t[e]}}catch(a){throw this.emit("error",a),De(this,Vu)[Vu](e),a}if(r){r.fileIDs.forEach((l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)}));const a=r.fileIDs.map((l=>this.getFile(l))),u=a.filter((l=>!l.error)),s=a.filter((l=>l.error));await this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,r=t[e]}let i;return r&&(i=r.result,this.emit("complete",i),De(this,Vu)[Vu](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}kN.VERSION="2.1.3";var ON=kN,$X=Is((function(e,t){var r,n,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(_,D){for(var F in D)_[F]=D[F];return _}function v(_){var D=_.parentNode;D&&D.removeChild(_)}function m(_,D,F){var H,ee,W,I={};for(W in D)W=="key"?H=D[W]:W=="ref"?ee=D[W]:I[W]=D[W];if(arguments.length>2&&(I.children=arguments.length>3?r.call(arguments,2):F),typeof _=="function"&&_.defaultProps!=null)for(W in _.defaultProps)I[W]===void 0&&(I[W]=_.defaultProps[W]);return g(_,I,H,ee,null)}function g(_,D,F,H,ee){var W={type:_,props:D,key:F,ref:H,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:ee??++o};return ee==null&&n.vnode!=null&&n.vnode(W),W}function y(_){return _.children}function h(_,D){this.props=_,this.context=D}function b(_,D){if(D==null)return _.__?b(_.__,_.__.__k.indexOf(_)+1):null;for(var F;D<_.__k.length;D++)if((F=_.__k[D])!=null&&F.__e!=null)return F.__e;return typeof _.type=="function"?b(_):null}function w(_){var D,F;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,D=0;D<_.__k.length;D++)if((F=_.__k[D])!=null&&F.__e!=null){_.__e=_.__c.base=F.__e;break}return w(_)}}function E(_){(!_.__d&&(_.__d=!0)&&a.push(_)&&!C.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(C)}function C(){for(var _;C.__r=a.length;)_=a.sort((function(D,F){return D.__v.__b-F.__v.__b})),a=[],_.some((function(D){var F,H,ee,W,I,ne;D.__d&&(I=(W=(F=D).__v).__e,(ne=F.__P)&&(H=[],(ee=p({},W)).__v=W.__v+1,$(ne,W,ee,F.__n,ne.ownerSVGElement!==void 0,W.__h!=null?[I]:null,H,I??b(W),W.__h),V(H,W),W.__e!=I&&w(W)))}))}function S(_,D,F,H,ee,W,I,ne,ae,be){var K,ze,je,Ee,_e,Ft,Ke,st=H&&H.__k||f,pt=st.length;for(F.__k=[],K=0;K<D.length;K++)if((Ee=F.__k[K]=(Ee=D[K])==null||typeof Ee=="boolean"?null:typeof Ee=="string"||typeof Ee=="number"||typeof Ee=="bigint"?g(null,Ee,null,null,Ee):Array.isArray(Ee)?g(y,{children:Ee}
vendor: 4,417 bytes, line 15
15,null,null,null):Ee.__b>0?g(Ee.type,Ee.props,Ee.key,null,Ee.__v):Ee)!=null){if(Ee.__=F,Ee.__b=F.__b+1,(je=st[K])===null||je&&Ee.key==je.key&&Ee.type===je.type)st[K]=void 0;else for(ze=0;ze<pt;ze++){if((je=st[ze])&&Ee.key==je.key&&Ee.type===je.type){st[ze]=void 0;break}je=null}$(_,Ee,je=je||c,ee,W,I,ne,ae,be),_e=Ee.__e,(ze=Ee.ref)&&je.ref!=ze&&(Ke||(Ke=[]),je.ref&&Ke.push(je.ref,null,Ee),Ke.push(ze,Ee.__c||_e,Ee)),_e!=null?(Ft==null&&(Ft=_e),typeof Ee.type=="function"&&Ee.__k===je.__k?Ee.__d=ae=k(Ee,ae,_):ae=P(_,Ee,je,st,_e,ae),typeof F.type=="function"&&(F.__d=ae)):ae&&je.__e==ae&&ae.parentNode!=_&&(ae=b(je))}for(F.__e=Ft,K=pt;K--;)st[K]!=null&&(typeof F.type=="function"&&st[K].__e!=null&&st[K].__e==F.__d&&(F.__d=b(H,K+1)),le(st[K],st[K]));if(Ke)for(K=0;K<Ke.length;K++)ie(Ke[K],Ke[++K],Ke[++K])}function k(_,D,F){for(var H,ee=_.__k,W=0;ee&&W<ee.length;W++)(H=ee[W])&&(H.__=_,D=typeof H.type=="function"?k(H,D,F):P(F,H,H,ee,H.__e,D));return D}function P(_,D,F,H,ee,W){var I,ne,ae;if(D.__d!==void 0)I=D.__d,D.__d=void 0;else if(F==null||ee!=W||ee.parentNode==null)e:if(W==null||W.parentNode!==_)_.appendChild(ee),I=null;else{for(ne=W,ae=0;(ne=ne.nextSibling)&&ae<H.length;ae+=2)if(ne==ee)break e;_.insertBefore(ee,W),I=W}return I!==void 0?I:ee.nextSibling}function G(_,D,F){D[0]==="-"?_.setProperty(D,F):_[D]=F==null?"":typeof F!="number"||d.test(D)?F:F+"px"}function J(_,D,F,H,ee){var W;e:if(D==="style")if(typeof F=="string")_.style.cssText=F;else{if(typeof H=="string"&&(_.style.cssText=H=""),H)for(D in H)F&&D in F||G(_.style,D,"");if(F)for(D in F)H&&F[D]===H[D]||G(_.style,D,F[D])}else if(D[0]==="o"&&D[1]==="n")W=D!==(D=D.replace(/Capture$/,"")),D=D.toLowerCase()in _?D.toLowerCase().slice(2):D.slice(2),_.l||(_.l={}),_.l[D+W]=F,F?H||_.addEventListener(D,W?X:M,W):_.removeEventListener(D,W?X:M,W);else if(D!=="dangerouslySetInnerHTML"){if(ee)D=D.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(D!=="href"&&D!=="list"&&D!=="form"&&D!=="tabIndex"&&D!=="download"&&D in _)try{_[D]=F??"";break e}catch{}typeof F=="function"||(F!=null&&(F!==!1||D[0]==="a"&&D[1]==="r")?_.setAttribute(D,F):_.removeAttribute(D))}}function M(_){this.l[_.type+!1](n.event?n.event(_):_)}function X(_){this.l[_.type+!0](n.event?n.event(_):_)}function $(_,D,F,H,ee,W,I,ne,ae){var be,K,ze,je,Ee,_e,Ft,Ke,st,pt,Er,Ye=D.type;if(D.constructor!==void 0)return null;F.__h!=null&&(ae=F.__h,ne=D.__e=F.__e,D.__h=null,W=[ne]),(be=n.__b)&&be(D);try{e:if(typeof Ye=="function"){if(Ke=D.props,st=(be=Ye.contextType)&&H[be.__c],pt=be?st?st.props.value:be.__:H,F.__c?Ft=(K=D.__c=F.__c).__=K.__E:("prototype"in Ye&&Ye.prototype.render?D.__c=K=new Ye(Ke,pt):(D.__c=K=new h(Ke,pt),K.constructor=Ye,K.render=q),st&&st.sub(K),K.props=Ke,K.state||(K.state={}),K.context=pt,K.__n=H,ze=K.__d=!0,K.__h=[]),K.__s==null&&(K.__s=K.state),Ye.getDerivedStateFromProps!=null&&(K.__s==K.state&&(K.__s=p({},K.__s)),p(K.__s,Ye.getDerivedStateFromProps(Ke,K.__s))),je=K.props,Ee=K.state,ze)Ye.getDerivedStateFromProps==null&&K.componentWillMount!=null&&K.componentWillMount(),K.componentDidMount!=null&&K.__h.push(K.componentDidMount);else{if(Ye.getDerivedStateFromProps==null&&Ke!==je&&K.componentWillReceiveProps!=null&&K.componentWillReceiveProps(Ke,pt),!K.__e&&K.shouldComponentUpdate!=null&&K.shouldComponentUpdate(Ke,K.__s,pt)===!1||D.__v===F.__v){K.props=Ke,K.state=K.__s,D.__v!==F.__v&&(K.__d=!1),K.__v=D,D.__e=F.__e,D.__k=F.__k,D.__k.forEach((function(Rr){Rr&&(Rr.__=D)})),K.__h.length&&I.push(K);break e}K.componentWillUpdate!=null&&K.componentWillUpdate(Ke,K.__s,pt),K.componentDidUpdate!=null&&K.__h.push((function(){K.componentDidUpdate(je,Ee,_e)}))}K.context=pt,K.props=Ke,K.state=K.__s,(be=n.__r)&&be(D),K.__d=!1,K.__v=D,K.__P=_,be=K.render(K.props,K.state,K.context),K.state=K.__s,K.getChildContext!=null&&(H=p(p({},H),K.getChildContext())),ze||K.getSnapshotBeforeUpdate==null||(_e=K.getSnapshotBeforeUpdate(je,Ee)),Er=be!=null&&be.type===y&&be.key==null?be.props.children:be,S(_,Array.isArray(Er)?Er:[Er],D,F,H,ee,W,I,ne,ae),K.base=D.__e,D.__h=null,K.__h.length&&I.push(K),Ft&&(K.__E=K.__=null),K.__e=!1}else W==null&&D.__v===F.__v?(D.__k=F.__k,D.__e=F.__e):D.__e=Q(F.__e,D,F,H,ee,W,I,ae);(be=n.diffed)&&be(D)}catch(Rr){D.__v=null,(ae||W!=null)&&(D.__e=ne,D.__h=!!ae,W[W.indexOf(ne)]=null),n.__e(Rr,D,F)}}function V(_,D){n.__c&&n.__c(D,_),_.some((function(F){try{_=F.__h,F.__h=[],_.some((function(H){H.call(F)}))}catch(H){n.__e(H,F.__v)}}
vendor: 2,946 bytes, line 15
15))}function Q(_,D,F,H,ee,W,I,ne){var ae,be,K,ze=F.props,je=D.props,Ee=D.type,_e=0;if(Ee==="svg"&&(ee=!0),W!=null){for(;_e<W.length;_e++)if((ae=W[_e])&&"setAttribute"in ae==!!Ee&&(Ee?ae.localName===Ee:ae.nodeType===3)){_=ae,W[_e]=null;break}}if(_==null){if(Ee===null)return document.createTextNode(je);_=ee?document.createElementNS("http://www.w3.org/2000/svg",Ee):document.createElement(Ee,je.is&&je),W=null,ne=!1}if(Ee===null)ze===je||ne&&_.data===je||(_.data=je);else{if(W=W&&r.call(_.childNodes),be=(ze=F.props||c).dangerouslySetInnerHTML,K=je.dangerouslySetInnerHTML,!ne){if(W!=null)for(ze={},_e=0;_e<_.attributes.length;_e++)ze[_.attributes[_e].name]=_.attributes[_e].value;(K||be)&&(K&&(be&&K.__html==be.__html||K.__html===_.innerHTML)||(_.innerHTML=K&&K.__html||""))}if((function(Ft,Ke,st,pt,Er){var Ye;for(Ye in st)Ye==="children"||Ye==="key"||Ye in Ke||J(Ft,Ye,null,st[Ye],pt);for(Ye in Ke)Er&&typeof Ke[Ye]!="function"||Ye==="children"||Ye==="key"||Ye==="value"||Ye==="checked"||st[Ye]===Ke[Ye]||J(Ft,Ye,Ke[Ye],st[Ye],pt)})(_,je,ze,ee,ne),K)D.__k=[];else if(_e=D.props.children,S(_,Array.isArray(_e)?_e:[_e],D,F,H,ee&&Ee!=="foreignObject",W,I,W?W[0]:F.__k&&b(F,0),ne),W!=null)for(_e=W.length;_e--;)W[_e]!=null&&v(W[_e]);ne||("value"in je&&(_e=je.value)!==void 0&&(_e!==ze.value||_e!==_.value||Ee==="progress"&&!_e)&&J(_,"value",_e,ze.value,!1),"checked"in je&&(_e=je.checked)!==void 0&&_e!==_.checked&&J(_,"checked",_e,ze.checked,!1))}return _}function ie(_,D,F){try{typeof _=="function"?_(D):_.current=D}catch(H){n.__e(H,F)}}function le(_,D,F){var H,ee;if(n.unmount&&n.unmount(_),(H=_.ref)&&(H.current&&H.current!==_.__e||ie(H,null,D)),(H=_.__c)!=null){if(H.componentWillUnmount)try{H.componentWillUnmount()}catch(W){n.__e(W,D)}H.base=H.__P=null}if(H=_.__k)for(ee=0;ee<H.length;ee++)H[ee]&&le(H[ee],D,typeof _.type!="function");F||_.__e==null||v(_.__e),_.__e=_.__d=void 0}function q(_,D,F){return this.constructor(_,F)}function U(_,D,F){var H,ee,W;n.__&&n.__(_,D),ee=(H=typeof F=="function")?null:F&&F.__k||D.__k,W=[],$(D,_=(!H&&F||D).__k=m(y,null,[_]),ee||c,c,D.ownerSVGElement!==void 0,!H&&F?[F]:ee?null:D.firstChild?r.call(D.childNodes):null,W,!H&&F?F:ee?ee.__e:D.firstChild,H),V(W,_)}r=f.slice,n={__e:function(_,D){for(var F,H,ee;D=D.__;)if((F=D.__c)&&!F.__)try{if((H=F.constructor)&&H.getDerivedStateFromError!=null&&(F.setState(H.getDerivedStateFromError(_)),ee=F.__d),F.componentDidCatch!=null&&(F.componentDidCatch(_),ee=F.__d),ee)return F.__E=F}catch(W){_=W}throw _}},o=0,i=function(_){return _!=null&&_.constructor===void 0},h.prototype.setState=function(_,D){var F;F=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=p({},this.state),typeof _=="function"&&(_=_(p({},F),this.props)),_&&p(F,_),_!=null&&this.__v&&(D&&this.__h.push(D),E(this))},h.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),E(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Prom
15ise.resolve()):setTimeout,C.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(_,D,F){var H,ee,W,I=p({},_.props);for(W in D)W=="key"?H=D[W]:W=="ref"?ee=D[W]:I[W]=D[W];return arguments.length>2&&(I.children=arguments.length>3?r.call(arguments,2):F),g(_.type,I,H||_.key,ee||_.ref,null)},t.createContext=function(_,D){var F={__c:D="__cC"+l++,__:_,Consumer:function(H,ee){return H.children(ee)},Provider:function(H){var ee,W;return this.getChildContext||(ee=[],(W={})[D]=this,this.getChildContext=function(){return W},this.shouldComponentUpdate=function(I){this.props.value!==I.value&&ee.some(E)},this.sub=function(I){ee.push(I);var ne=I.componentWillUnmount;I.componentWillUnmount=function(){ee.splice(ee.indexOf(I),1),ne&&ne.call(I)}}),H.children}};return F.Provider.__=F.Consumer.contextType=F},t.createElement=m,t.createRef=function(){return{current:null}},t.h=m,t.hydrate=function _(D,F){U(D,F,_)},t.isValidElement=i,t.options=n,t.render=U,t.toChildArray=function _(D,F){return F=F||[],D==null||typeof D=="boolean"||(Array.isArray(D)?D.some((function(H){_(H,F)})):F.push(D)),F}})),zX=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((r=e)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?e:null;var r},pS=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new wN([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function _A(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var HX=0;function UX(e){return"__private_"+HX+++"_"+e}const{render:AA}=$X;var pf=UX("updateUI");class hS extends pS{constructor(){super(...arguments),Object.defineProperty(this,pf,{writable:!0,value:void 0})}mount(t,r){const n=r.id,o=zX(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return _A(this,pf)[pf]=(function(s){let l=null,c=null;return function(){for(var f=arguments.length,d=new Array(f),p=0;p<f;p++)d[p]=arguments[p];return c=d,l||(l=Promise.resolve().then((()=>(l=null,s(...c))))),l}})((s=>{this.uppy.getPlugin(this.id)&&(AA(this.render(s),u),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),AA(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof hS)i=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins((s=>{if(s instanceof u)return i=s,!1}))}
vendor: 21,575 bytes, line 15
15if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){var r,n;this.el!=null&&((r=(n=_A(this,pf))[pf])==null||r.call(n,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var VX=hS;const{debugLogger:WX}=CN;var Ed=ON,GX=ON,qX=VX,KX=pS,YX=WX;Ed.Uppy=GX,Ed.UIPlugin=qX,Ed.BasePlugin=KX,Ed.debugLogger=YX;class XX extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}var gS=XX,cb=function(){return fetch(...arguments).catch((e=>{throw e.name==="AbortError"?e:new gS(e)}))};class JX extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var dg,Xi,Lo,Ji,kA,ZX=JX;function Io(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var QX=0;function fb(e){return"__private_"+QX+++"_"+e}async function db(e){if(e.status===401)throw new ZX;const t=e.json();if(e.status<200||e.status>300){let r=`Failed request with status: ${e.status}. ${e.statusText}`;try{const n=await t;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return t}var OA=(Xi=fb("getPostResponseFunc"),Lo=fb("getUrl"),Ji=fb("errorHandler"),kA=dg=class TN{constructor(t,r){Object.defineProperty(this,Ji,{value:tJ}),Object.defineProperty(this,Lo,{value:eJ}),Object.defineProperty(this,Xi,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),r=this.opts.companionUrl;return(t&&t[r]?t[r]:r).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...TN.defaultHeaders,...t})}onReceiveResponse(t){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(Io(this,Lo)[Lo](t),{method:"OPTIONS"}).then((r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map((n=>n.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then((r=>{let[n,o]=r;return Object.keys(o).forEach((i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])})),o}))}get(t,r){return this.preflightAndHeaders(t).then((n=>cb(Io(this,Lo)[Lo](t),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(Io(this,Xi)[Xi](r)).then(db).catch(Io(this,Ji)[Ji]("get",t))}post(t,r,n){const o="post";return this.preflightAndHeaders(t).then((i=>cb(Io(this,Lo)[Lo](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)}))).then(Io(this,Xi)[Xi](n)).then(db).catch(Io(this,Ji)[Ji](o,t))}delete(t,r,n){const o="delete";return this.preflightAndHeaders(t).then((i=>cb(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null}))).then(Io(this,Xi)[Xi](n)).then(db).catch(Io(this,Ji)[Ji](o,t))}},dg.VERSION="2.0.4",dg.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${dg.VERSION}`},kA);function eJ(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function tJ(e,t){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${e} ${Io(this,Lo)[Lo](t)}`);o.cause=r,r=o}return Promise.reject(r)}}var rJ={setItem:(e,t)=>new Promise((r=>{localStorage.setItem(e,t),r()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))},No,Zi,Un,$r,pg;let TA,FA;function or(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var nJ=0;function hf(e){return"__private_"+nJ+++"_"+e}var oJ=(No=hf("queued"),Zi=hf("emitter"),Un=hf("isOpen"),$r=hf("socket"),pg=hf("handleMessage"),TA=Symbol.for("uppy test: getSocket"),FA=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,No,{writable:!0,value:[]}),Object.defineProperty(this,Zi,{writable:!0,value:EN()}),Object.defineProperty(this,Un,{writable:!0,value:!1}),Object.defineProperty(this,$r,{writable:!0,value:void 0}),Object.defineProperty(this,pg,{writable:!0,value:t=>{try{const r=JSON.parse(t.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return or(this,Un)[Un]}[TA](){return or(this,$r)[$r]}[FA](){return or(this,No)[No]}open(){or(this,$r)[$r]=new WebSocket(this.opts.target),or(this,$r)[$r].onopen=()=>{for(or(this,Un)[Un]=!0;or(this,No)[No].length>0&&or(this,Un)[Un];){const e=or(this,No)[No].shift();this.send(e.action,e.payload)}},or(this,$r)[$r].onclose=()=>{or(this,Un)[Un]=!1},or(this,$r)[$r].onmessage=or(this,pg)[pg]}close(){var e;(e=or(this,$r)[$r])==null||e.close()}send(e,t){or(this,Un)[Un]?or(this,$r)[$r].send(JSON.stringify({action:e,payload:t})):or(this,No)[No].push({action:e,payload:t})}on(e,t){or(this,Zi)[Zi].on(e,t)}emit(e,t){or(this,Zi)[Zi].emit(e,t)}once(e,t){or(this,Zi)[Zi].once(e,t)}}),iJ={RequestClient:OA,Provider:class extends OA{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map((n=>n.charAt(0).toUpperCase()+n.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,r]=e;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...n}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:r}),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,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new 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||rJ}},Socket:oJ},Qi,tl,aJ=Cs((function(e,t,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=t;n&&(e.uppy.log(`Upload progress: ${n}`),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function gf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var uJ=0;function BA(e){return"__private_"+uJ+++"_"+e}var PA=(Qi=BA("emitter"),tl=BA("events"),class{constructor(e){Object.defineProperty(this,Qi,{writable:!0,value:void 0}),Object.defineProperty(this,tl,{writable:!0,value:[]}),gf(this,Qi)[Qi]=e}on(e,t){return gf(this,tl)[tl].push([e,t]),gf(this,Qi)[Qi].on(e,t)}remove(){for(const[e,t]of gf(this,tl)[tl].splice(0))gf(this,Qi)[Qi].off(e,t)}});function Vn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var sJ=0;function vy(e){return"__private_"+sJ+++"_"+e}var wi=vy("aliveTimer"),wu=vy("isDone"),vf=vy("onTimedOut"),Eu=vy("timeout"),jA=class{constructor(e,t){Object.defineProperty(this,wi,{writable:!0,value:void 0}),Object.defineProperty(this,wu,{writable:!0,value:!1}),Object.defineProperty(this,vf,{writable:!0,value:void 0}),Object.defineProperty(this,Eu,{writable:!0,value:void 0}),Vn(this,Eu)[Eu]=e,Vn(this,vf)[vf]=t}progress(){Vn(this,wu)[wu]||Vn(this,Eu)[Eu]>0&&(clearTimeout(Vn(this,wi)[wi]),Vn(this,wi)[wi]=setTimeout(Vn(this,vf)[vf],Vn(this,Eu)[Eu]))}done(){Vn(this,wu)[wu]||(clearTimeout(Vn(this,wi)[wi]),Vn(this,wi)[wi]=null,Vn(this,wu)[wu]=!0)}};function sr(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lJ=0;function zs(e){return"__private_"+lJ+++"_"+e}function cJ(){return new Error("Cancelled")}var Cn=zs("activeRequests"),Qr=zs("queuedHandlers"),jd=zs("call"),xd=zs("queueNext"),IE=zs("next"),pb=zs("queue"),LE=zs("dequeue");function fJ(e){sr(this,Cn)[Cn]+=1;let t,r=!1;try{t=e()}catch(n){throw sr(this,Cn)[Cn]-=1,n}return{abort:()=>{r||(r=!0,sr(this,Cn)[Cn]-=1,t(),sr(this,xd)[xd]())},done:()=>{r||(r=!0,sr(this,Cn)[Cn]-=1,sr(this,xd)[xd]())}}}function dJ(){queueMicrotask((()=>sr(this,IE)[IE]()))}function pJ(){if(sr(this,Cn)[Cn]>=this.limit||sr(this,Qr)[Qr].length===0)return;const e=sr(this,Qr)[Qr].shift(),t=sr(this,jd)[jd](e.fn);e.abort=t.abort,e.done=t.done}function hJ(e,t){t===void 0&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{sr(this,LE)[LE](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=sr(this,Qr)[Qr].findIndex((o=>r.priority>o.priority));return n===-1?sr(this,Qr)[Qr].push(r):sr(this,Qr)[Qr].splice(n,0,r),r}function gJ(e){const t=sr(this,Qr)[Qr].indexOf(e);t!==-1&&sr(this,Qr)[Qr].splice(t,1)}var vJ={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,LE,{value:gJ}),Object.defineProperty(this,pb,{value:hJ}),Object.defineProperty(this,IE,{value:pJ}),Object.defineProperty(this,xd,{value:dJ}),Object.defineProperty(this,jd,{value:fJ}),Object.defineProperty(this,Cn,{writable:!0,value:0}),Object.defineProperty(this,Qr,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return sr(this,Cn)[Cn]<this.limit?sr(this,jd)[jd](e):sr(this,pb)[pb](e,t)}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise(((s,l)=>{a=r.run((()=>{let c,f;try{f=Promise.resolve(e(...o))}catch(d){f=Promise.reject(d)}return f.then((d=>{c?l(c):(a.done(),s(d))}),(d=>{c?l(c):(a.done(),l(d))})),()=>{c=cJ()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},NA,IA,FN=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},mJ={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:yJ}=DN,{Provider:bJ,RequestClient:wJ,Socket:EJ}=iJ,{RateLimitedQueue:xJ,internalRateLimitedQueue:hb}=vJ;function LA(e,t){let r=t;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),FN(e)?(r=new gS(r,e),r):(r.request=e,r)}function RA(e){return e.data.slice(0,e.data.size,e.meta.type)}var SJ=(IA=NA=class extends pS{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=mJ;const r={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){e.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return FN(o)&&(i=new gS(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),hb in this.opts?this.requests=this.opts[hb]:this.requests=new xJ(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(e):Object.assign(n.headers,this.opts.headers),t&&Object.assign(n.headers,t.headers),e.xhrUpload&&Object.assign(n.headers,e.xhrUpload.headers),n}addMetadata(e,t,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const r=new FormData;this.addMetadata(r,e.meta,t);const n=RA(e);return e.name?r.append(t.fieldName,n,e.meta.name):r.append(t.fieldName,n),r}createBundledUpload(e,t){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,t),e.forEach((o=>{const i=this.getOptions(o),a=RA(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)})),r}upload(e,t,r){const n=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${r}`),new Promise(((o,i)=>{this.uppy.emit("upload-started",e);const a=n.formData?this.createFormDataUpload(e,n):e.data,u=new XMLHttpRequest;this.uploaderEvents[e.id]=new PA(this.uppy);const s=new jA(n.timeout,(()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)})),l=yJ();u.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${l} started`)})),u.upload.addEventListener("progress",(f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})})),u.addEventListener("load",(f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n.validateStatus(f.target.status,u.responseText,u)){const m=n.getResponseData(u.responseText,u),g=m[n.responseUrlFieldName],y={status:f.target.status,body:m,uploadURL:g};return this.uppy.emit("upload-success",e,y),g&&this.uppy.log(`Download ${e.name} from ${g}`),o(e)}const d=n.getResponseData(u.responseText,u),p=LA(u,n.getResponseError(u.responseText,u)),v={status:f.target.status,body:d};return this.uppy.emit("upload-error",e,p,v),i(p)})),u.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=LA(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,f),i(f)})),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run((()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach((d=>{u.setRequestHeader(d,f.headers[d])})),u.send(a),()=>{s.done(),u.abort()}}));this.onFileRemove(e.id,(()=>{c.abort(),i(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{c.abort(),i(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((r,n)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((i=>{o[i]=e.meta[i]})),new(e.remote.providerOptions.provider?bJ:wJ)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((i=>{const{token:a}=i,u=(function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`})(e.remote.companionUrl),s=new EJ({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new PA(this.uppy),this.onFileRemove(e.id,(()=>{s.send("cancel",{}),l.abort(),r(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{s.send("cancel",{}),l.abort(),r(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{s.send("pause",{}),s.send("resume",{})})),this.onRetryAll(e.id,(()=>{s.send("pause",{}),s.send("resume",{})})),s.on("progress",(c=>aJ(this,c,e))),s.on("success",(c=>{const f=t.getResponseData(c.response.responseText,c.response),d=f[t.responseUrlFieldName],p={status:c.response.status,body:f,uploadURL:d};return this.uppy.emit("upload-success",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r()})),s.on("error",(c=>{const f=c.response,d=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n(d)}));const l=this.requests.run((()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close())))})).catch((i=>{this.uppy.emit("upload-error",e,i),n(i)}))}))}uploadBundle(e){return new Promise(((t,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new jA(this.opts.timeout,(()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)})),l=c=>{e.forEach((f=>{this.uppy.emit("upload-error",f,c)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(c=>{s.progress(),c.lengthComputable&&e.forEach((f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})}))})),u.addEventListener("load",(c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const d=this.opts.getResponseData(u.responseText,u),p={status:c.target.status,body:d};return e.forEach((v=>{this.uppy.emit("upload-success",v,p)})),t()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)})),u.addEventListener("error",(()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),n,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((c=>{u.setRequestHeader(c,this.opts.headers[c])})),u.send(a),e.forEach((c=>{this.uppy.emit("upload-started",c)}))}))}uploadFiles(e){const t=e.map(((r,n)=>{const o=parseInt(n,10)+1,i=e.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)}));return(function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map((u=>u.then(i,a)))).then((()=>({successful:n,failed:o})))})(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(r=>{e===r.id&&t(r.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(r=>{e===r&&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()}))}
15handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[hb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((r=>this.uppy.getFile(r)));if(this.opts.bundle){if(t.some((r=>r.isRemote)))throw new Error("Canât upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},NA.VERSION="2.0.6",IA),MA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gh(e){var t={exports:{}};return e(t,t.exports),t.exports}var ea,Sv,hg=function(e){return e&&e.Math==Math&&e},ce=hg(typeof globalThis=="object"&&globalThis)||hg(typeof window=="object"&&window)||hg(typeof self=="object"&&self)||hg(typeof MA=="object"&&MA)||(function(){return this})()||Function("return this")(),CJ=Object.defineProperty,vS=function(e,t){try{CJ(ce,e,{value:t,configurable:!0,writable:!0})}catch{ce[e]=t}return t},ka=ce["__core-js_shared__"]||vS("__core-js_shared__",{}),mS=gh((function(e){(e.exports=function(t,r){return ka[t]||(ka[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),BN=Function.prototype,RE=BN.bind,ME=BN.call,DJ=RE&&RE.bind(ME),Ae=RE?function(e){return e&&DJ(ME,e)}:function(e){return e&&function(){return ME.apply(e,arguments)}},_J=ce.TypeError,oo=function(e){if(e==null)throw _J("Can't call method on "+e);return e},AJ=ce.Object,iu=function(e){return AJ(oo(e))},kJ=Ae({}.hasOwnProperty),Zt=Object.hasOwn||function(e,t){return kJ(iu(e),t)},OJ=0,TJ=Math.random(),FJ=Ae(1 .toString),yS=function(e){return"Symbol("+(e===void 0?"":e)+")_"+FJ(++OJ+TJ,36)},vt=function(e){return typeof e=="function"},BJ=function(e){return vt(e)?e:void 0},Hs=function(e,t){return arguments.length<2?BJ(ce[e]):ce[e]&&ce[e][t]},Hl=Hs("navigator","userAgent")||"",$A=ce.process,zA=ce.Deno,HA=$A&&$A.versions||zA&&zA.version,UA=HA&&HA.v8;UA&&(Sv=(ea=UA.split("."))[0]>0&&ea[0]<4?1:+(ea[0]+ea[1])),!Sv&&Hl&&(!(ea=Hl.match(/Edge\/(\d+)/))||ea[1]>=74)&&(ea=Hl.match(/Chrome\/(\d+)/))&&(Sv=+ea[1]);var fp=Sv,ft=function(e){try{return!!e()}catch{return!0}},$E=!!Object.getOwnPropertySymbols&&!ft((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fp&&fp<41})),bS=$E&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mf=mS("wks"),ts=ce.Symbol,VA=ts&&ts.for,PJ=bS?ts:ts&&ts.withoutSetter||yS,$t=function(e){if(!Zt(mf,e)||!$E&&typeof mf[e]!="string"){var t="Symbol."+e;$E&&Zt(ts,e)?mf[e]=ts[e]:mf[e]=bS&&VA?VA(t):PJ(t)}return mf[e]},PN={};PN[$t("toStringTag")]="z";var wS=String(PN)==="[object z]",Dr=!ft((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),At=function(e){return typeof e=="object"?e!==null:vt(e)},zE=ce.document,jJ=At(zE)&&At(zE.createElement),dp=function(e){return jJ?zE.createElement(e):{}},jN=!Dr&&!ft((function(){return Object.defineProperty(dp("div"),"a",{get:function(){return 7}}).a!=7})),NJ=ce.String,IJ=ce.TypeError,Qt=function(e){if(At(e))return e;throw IJ(NJ(e)+" is not an object")},yf=Function.prototype.call,it=yf.bind?yf.bind(yf):function(){return yf.apply(yf,arguments)},Ds=Ae({}.isPrototypeOf),LJ=ce.Object,gb=bS?function(e){return typeof e=="symbol"}:function(e){var t=Hs("Symbol");return vt(t)&&Ds(t.prototype,LJ(e))},RJ=ce.String,my=function(e){try{return RJ(e)}catch{return"Object"}},MJ=ce.TypeError,Ka=function(e){if(vt(e))return e;throw MJ(my(e)+" is not a function")},_s=function(e,t){var r=e[t];return r==null?void 0:Ka(r)},$J=ce.TypeError,zJ=ce.TypeError,HJ=$t("toPrimitive"),ES=function(e){var t=(function(r,n){if(!At(r)||gb(r))return r;var o,i=_s(r,HJ);if(i){if(o=it(i,r,n),!At(o)||gb(o))return o;throw zJ("Can't convert object to primitive value")}return(function(a,u){var s,l;if(vt(s=a.toString)&&!At(l=it(s,a))||vt(s=a.valueOf)&&!At(l=it(s,a)))return l;throw $J("Can't convert object to primitive value")})(r)})(e,"string");return gb(t)?t:t+""},UJ=ce.TypeError,WA=Object.defineProperty,Bo={f:Dr?WA:function(e,t,r){if(Qt(e),t=ES(t),Qt(r),jN)try{return WA(e,t,r)}catch{}
15if("get"in r||"set"in r)throw UJ("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},yy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Co=Dr?function(e,t,r){return Bo.f(e,t,yy(1,r))}:function(e,t,r){return e[t]=r,e},VJ=Ae(Function.toString);vt(ka.inspectSource)||(ka.inspectSource=function(e){return VJ(e)});var O0,Nd,T0,by=ka.inspectSource,GA=ce.WeakMap,NN=vt(GA)&&/native code/.test(by(GA)),qA=mS("keys"),xS=function(e){return qA[e]||(qA[e]=yS(e))},wy={},HE=ce.TypeError,WJ=ce.WeakMap;if(NN||ka.state){var xu=ka.state||(ka.state=new WJ),GJ=Ae(xu.get),KA=Ae(xu.has),qJ=Ae(xu.set);O0=function(e,t){if(KA(xu,e))throw new HE("Object already initialized");return t.facade=e,qJ(xu,e,t),t},Nd=function(e){return GJ(xu,e)||{}},T0=function(e){return KA(xu,e)}}else{var rl=xS("state");wy[rl]=!0,O0=function(e,t){if(Zt(e,rl))throw new HE("Object already initialized");return t.facade=e,Co(e,rl,t),t},Nd=function(e){return Zt(e,rl)?e[rl]:{}},T0=function(e){return Zt(e,rl)}}var Vr={set:O0,get:Nd,has:T0,enforce:function(e){return T0(e)?Nd(e):O0(e,{})},getterFor:function(e){return function(t){var r;if(!At(t)||(r=Nd(t)).type!==e)throw HE("Incompatible receiver, "+e+" required");return r}}},IN=Function.prototype,KJ=Dr&&Object.getOwnPropertyDescriptor,vb=Zt(IN,"name"),Ic={EXISTS:vb,PROPER:vb&&(function(){}).name==="something",CONFIGURABLE:vb&&(!Dr||Dr&&KJ(IN,"name").configurable)},dn=gh((function(e){var t=Ic.CONFIGURABLE,r=Vr.get,n=Vr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;vt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zt(u,"name")||t&&u.name!==p)&&Co(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ce?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Co(i,a,u)):f?i[a]=u:vS(a,u)})(Function.prototype,"toString",(function(){return vt(this)&&r(this).source||by(this)}))})),YJ=Ae({}.toString),XJ=Ae("".slice),Do=function(e){return XJ(YJ(e),8,-1)},JJ=$t("toStringTag"),ZJ=ce.Object,QJ=Do((function(){return arguments})())=="Arguments",Ey=wS?Do:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=ZJ(e),JJ))=="string"?r:QJ?Do(t):(n=Do(t))=="Object"&&vt(t.callee)?"Arguments":n},eZ=wS?{}.toString:function(){return"[object "+Ey(this)+"]"};wS||dn(Object.prototype,"toString",eZ,{unsafe:!0});var F0={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},mb=dp("span").classList,YA=mb&&mb.constructor&&mb.constructor.prototype,LN=YA===Object.prototype?void 0:YA,XA=Ae(Ae.bind),As=function(e,t){return Ka(e),t===void 0?e:XA?XA(e,t):function(){return e.apply(t,arguments)}},yb=ce.Object,tZ=Ae("".split),xy=ft((function(){return!yb("z").propertyIsEnumerable(0)}))?function(e){return Do(e)=="String"?tZ(e,""):yb(e)}:yb,rZ=Math.ceil,nZ=Math.floor,vh=function(e){var t=+e;return t!=t||t===0?0:(t>0?nZ:rZ)(t)},oZ=Math.min,Lc=function(e){return e>0?oZ(vh(e),9007199254740991):0},Us=function(e){return Lc(e.length)},B0=Array.isArray||function(e){return Do(e)=="Array"},RN=function(){},iZ=[],MN=Hs("Reflect","construct"),SS=/^\s*(?:class|function)\b/,aZ=Ae(SS.exec),uZ=!SS.exec(RN),bf=function(e){if(!vt(e))return!1;try{return MN(RN,iZ,e),!0}catch{return!1}},Sy=!MN||ft((function(){var e;return bf(bf.call)||!bf(Object)||!bf((function(){e=!0}))||e}))?function(e){if(!vt(e))return!1;switch(Ey(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return uZ||!!aZ(SS,by(e))}:bf,sZ=$t("species"),JA=ce.Array,$N=function(e,t){return new((function(r){var n;return B0(r)&&(n=r.constructor,(Sy(n)&&(n===JA||B0(n.prototype))||At(n)&&(n=n[sZ])===null)&&(n=void 0)),n===void 0?JA:n})(e))(t===0?0:t)},ZA=Ae([].push),wf=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=iu(s),m=xy(v),g=As(l,c),y=Us(m),h=0,b=f||$N,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:ZA(w,d)}else switch(e){case 4:return!1;case 7:ZA(w,d)}return i?-1:n||o?o:w}},Rc={forEach:wf(0),map:wf(1),filter:wf(2),find:wf(5),findIndex:wf(6)},zN=function(e,t){var r=[][e];return!!r&&ft((function(){r.call(null,t||function(){throw 1},1)}))}
15,lZ=Rc.forEach,bb=zN("forEach")?[].forEach:function(e){return lZ(this,e,arguments.length>1?arguments[1]:void 0)},HN=function(e){if(e&&e.forEach!==bb)try{Co(e,"forEach",bb)}catch{e.forEach=bb}};for(var wb in F0)F0[wb]&&HN(ce[wb]&&ce[wb].prototype);HN(LN);var QA={}.propertyIsEnumerable,e7=Object.getOwnPropertyDescriptor,cZ=e7&&!QA.call({1:2},1)?function(e){var t=e7(this,e);return!!t&&t.enumerable}:QA,UN={f:cZ},au=function(e){return xy(oo(e))},t7=Object.getOwnPropertyDescriptor,mh={f:Dr?t7:function(e,t){if(e=au(e),t=ES(t),jN)try{return t7(e,t)}catch{}if(Zt(e,t))return yy(!it(UN.f,e,t),e[t])}},fZ=Math.max,dZ=Math.min,vc=function(e,t){var r=vh(e);return r<0?fZ(r+t,0):dZ(r,t)},r7=function(e){return function(t,r,n){var o,i=au(t),a=Us(i),u=vc(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},VN={includes:r7(!0),indexOf:r7(!1)},pZ=VN.indexOf,n7=Ae([].push),WN=function(e,t){var r,n=au(e),o=0,i=[];for(r in n)!Zt(wy,r)&&Zt(n,r)&&n7(i,r);for(;t.length>o;)Zt(n,r=t[o++])&&(~pZ(i,r)||n7(i,r));return i},P0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hZ=P0.concat("length","prototype"),pp={f:Object.getOwnPropertyNames||function(e){return WN(e,hZ)}},GN={f:Object.getOwnPropertySymbols},gZ=Ae([].concat),vZ=Hs("Reflect","ownKeys")||function(e){var t=pp.f(Qt(e)),r=GN.f;return r?gZ(t,r(e)):t},mZ=function(e,t){for(var r=vZ(t),n=Bo.f,o=mh.f,i=0;i<r.length;i++){var a=r[i];Zt(e,a)||n(e,a,o(t,a))}},yZ=/#|\.prototype\./,yh=function(e,t){var r=wZ[bZ(e)];return r==xZ||r!=EZ&&(vt(t)?ft(t):!!t)},bZ=yh.normalize=function(e){return String(e).replace(yZ,".").toLowerCase()},wZ=yh.data={},EZ=yh.NATIVE="N",xZ=yh.POLYFILL="P",hp=yh,SZ=mh.f,Rt=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?ce:l?ce[u]||vS(u,{}):(ce[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=SZ(r,n))&&a.value:r[n],!hp(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;mZ(i,o)}(e.sham||o&&o.sham)&&Co(i,"sham",!0),dn(r,n,i,e)}},Ul=Object.keys||function(e){return WN(e,P0)},CZ=ft((function(){Ul(1)}));function o7(e){return Object.prototype.toString.call(e)==="[object Object]"}Rt({target:"Object",stat:!0,forced:CZ},{keys:function(e){return Ul(iu(e))}});var DZ={isHistory(e){return o7(t=e)!==!1&&((r=t.constructor)===void 0||o7(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Ea.isOperationList(e.redos[0]))&&(e.undos.length===0||Ea.isOperationList(e.undos[0]));var t,r,n}},Eb=new WeakMap,xb=new WeakMap,Il={isHistoryEditor:e=>DZ.isHistory(e.history)&&x.isEditor(e),isMerging:e=>xb.get(e),isSaving:e=>Eb.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=Il.isMerging(e);xb.set(e,!1),t(),xb.set(e,r)},withoutSaving(e,t){var r=Il.isSaving(e);Eb.set(e,!1),t(),Eb.set(e,r)}},_Z=ce.String,yt=function(e){if(Ey(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return _Z(e)},CS=function(){var e=Qt(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},AZ=Ic.PROPER,UE=RegExp.prototype,qN=UE.toString,kZ=Ae(CS),OZ=ft((function(){return qN.call({source:"a",flags:"b"})!="/a/b"})),TZ=AZ&&qN.name!="toString";(OZ||TZ)&&dn(RegExp.prototype,"toString",(function(){var e=Qt(this),t=yt(e.source),r=e.flags;return"/"+t+"/"+yt(r===void 0&&Ds(UE,e)&&!("flags"in UE)?kZ(e):r)}),{unsafe:!0});var gg,FZ=Dr?Object.defineProperties:function(e,t){Qt(e);for(var r,n=au(t),o=Ul(t),i=o.length,a=0;i>a;)Bo.f(e,r=o[a++],n[r]);return e},VE=Hs("document","documentElement"),KN=xS("IE_PROTO"),Sb=function(){},YN=function(e){return"<script>"+e+"<\/script>"},i7=function(e){e.write(YN("")),e.close();var t=e.parentWindow.Object;return e=null,t},Cv=function(){try{gg=new ActiveXObject("htmlfile")}catch{}var e,t;Cv=typeof document<"u"?document.domain&&gg?i7(gg):((t=dp("iframe")).style.display="none",VE.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(YN("document.F=Object")),e.close(),e.F):i7(gg);for(var r=P0.length;r--;)delete Cv.prototype[P0[r]];return Cv()};wy[KN]=!0;var Cy=Object.create||function(e,t){var r;return e!==null?(Sb.prototype=Qt(e),r=new Sb,Sb.prototype=null,r[KN]=e):r=Cv(),t===void 0?r:FZ(r,t)},WE=$t("unscopables"),GE=Array.prototype;GE[WE]==null&&Bo.f(GE,WE,{configurable:!0,value:Cy(null)});var Id=function(e){GE[WE][e]=!0},BZ=VN.includes;Rt({target:"Array",proto:!0},{includes:function(e){return BZ(this,e,arguments.length>1?arguments[1]:void 0)}}),Id("includes");var PZ=$t("match"),DS=function(e){var t;return At(e)&&((t=e[PZ])!==void 0?!!t:Do(e)=="RegExp")},jZ=ce.TypeError,_S=function(e){if(DS(e))throw jZ("The method doesn't accept regular expressions");return e},NZ=$t("match"),AS=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[NZ]=!1,"/./"[e](t)}catch{}}return!1},IZ=Ae("".indexOf);Rt({target:"String",proto:!0,forced:!AS("includes")},{includes:function(e){return!!~IZ(yt(oo(this)),yt(_S(e)),arguments.length>1?arguments[1]:void 0)}});
vendor: 5,151 bytes, line 15
15var LZ=/"/g,RZ=Ae("".replace);Rt({target:"String",proto:!0,forced:ft((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,r=yt(oo(this)),n="<a",(n+=' name="'+RZ(yt(t),LZ,""")+'"')+">"+r+"</a>";var t,r,n}});var qE=function(e,t,r){var n,o;Qt(e);try{if(!(n=_s(e,"return"))){if(t==="throw")throw r;return r}n=it(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Qt(n),r},MZ=function(e,t,r,n){try{return n?t(Qt(r)[0],r[1]):t(r)}catch(o){qE(e,"throw",o)}},mc={},$Z=$t("iterator"),zZ=Array.prototype,XN=function(e){return e!==void 0&&(mc.Array===e||zZ[$Z]===e)},gp=function(e,t,r){var n=ES(t);n in e?Bo.f(e,n,yy(0,r)):e[n]=r},HZ=$t("iterator"),kS=function(e){if(e!=null)return _s(e,HZ)||_s(e,"@@iterator")||mc[Ey(e)]},UZ=ce.TypeError,JN=function(e,t){var r=arguments.length<2?kS(e):t;if(Ka(r))return Qt(it(r,e));throw UZ(my(e)+" is not iterable")},a7=ce.Array,ZN=$t("iterator"),QN=!1;try{var VZ=0,u7={next:function(){return{done:!!VZ++}},return:function(){QN=!0}};u7[ZN]=function(){return this},Array.from(u7,(function(){throw 2}))}catch{}var OS=function(e,t){if(!QN)return!1;var r=!1;try{var n={};n[ZN]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},WZ=!OS((function(e){Array.from(e)}));Rt({target:"Array",stat:!0,forced:WZ},{from:function(e){var t=iu(e),r=Sy(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=As(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,d=kS(t),p=0;if(!d||this==a7&&XN(d))for(a=Us(t),u=r?new this(a):a7(a);a>p;p++)f=i?o(t[p],p):t[p],gp(u,p,f);else for(c=(l=JN(t,d)).next,u=r?new this:[];!(s=it(c,l)).done;p++)f=i?MZ(l,o,[s.value,p],!0):s.value,gp(u,p,f);return u.length=p,u}});var rs,s7,l7,GZ=Ae("".charAt),c7=Ae("".charCodeAt),qZ=Ae("".slice),KZ=function(e){return function(t,r){var n,o,i=yt(oo(t)),a=vh(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=c7(i,a))<55296||n>56319||a+1===u||(o=c7(i,a+1))<56320||o>57343?e?GZ(i,a):n:e?qZ(i,a,a+2):o-56320+(n-55296<<10)+65536}},eI={charAt:KZ(!0)},YZ=!ft((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),f7=xS("IE_PROTO"),KE=ce.Object,XZ=KE.prototype,j0=YZ?KE.getPrototypeOf:function(e){var t=iu(e);if(Zt(t,f7))return t[f7];var r=t.constructor;return vt(r)&&t instanceof r?r.prototype:t instanceof KE?XZ:null},YE=$t("iterator"),tI=!1;[].keys&&("next"in(l7=[].keys())?(s7=j0(j0(l7)))!==Object.prototype&&(rs=s7):tI=!0);var JZ=rs==null||ft((function(){var e={};return rs[YE].call(e)!==e}));JZ&&(rs={}),vt(rs[YE])||dn(rs,YE,(function(){return this}));var TS={IteratorPrototype:rs,BUGGY_SAFARI_ITERATORS:tI},ZZ=Bo.f,d7=$t("toStringTag"),N0=function(e,t,r){e&&!Zt(e=r?e:e.prototype,d7)&&ZZ(e,d7,{configurable:!0,value:t})},QZ=TS.IteratorPrototype,eQ=function(){return this},tQ=ce.String,rQ=ce.TypeError,yc=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Ae(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Qt(n),(function(i){if(typeof i=="object"||vt(i))return i;throw rQ("Can't set "+tQ(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),nQ=Ic.PROPER,oQ=Ic.CONFIGURABLE,p7=TS.IteratorPrototype,vg=TS.BUGGY_SAFARI_ITERATORS,Ef=$t("iterator"),iQ=function(){return this},FS=function(e,t,r,n,o,i,a){(function(y,h,b,w){var E=h+" Iterator";y.prototype=Cy(QZ,{next:yy(1,b)}),N0(y,E,!1),mc[E]=eQ})(r,t,n);var u,s,l,c=function(y){if(y===o&&m)return m;if(!vg&&y in p)return p[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=t+" Iterator",d=!1,p=e.prototype,v=p[Ef]||p["@@iterator"]||o&&p[o],m=!vg&&v||c(o),g=t=="Array"&&p.entries||v;if(g&&(u=j0(g.call(new e)))!==Object.prototype&&u.next&&(j0(u)!==p7&&(yc?yc(u,p7):vt(u[Ef])||dn(u,Ef,iQ)),N0(u,f,!0)),nQ&&o=="values"&&v&&v.name!=="values"&&(oQ?Co(p,"name","values"):(d=!0,m=function(){return it(v,this)})),o)if(s={values:c("values"),keys:i?m:c("keys"),entries:c("entries")},a)for(l in s)(vg||d||!(l in p))&&dn(p,l,s[l]);else Rt({target:t,proto:!0,forced:vg||d},s);return p[Ef]!==m&&dn(p,Ef,m,{name:o}),mc[t]=m,s},aQ=eI.charAt,uQ=Vr.set,sQ=Vr.getterFor("String Iterator");FS(String,"String",(function(e){uQ(this,{type:"String Iterator",string:yt(e),index:0})}),(function(){var e,t=sQ(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=aQ(r,n),t.index+=e.length,{value:e,done:!1})}));var Cb,lQ=mh.f,h7=Ae("".endsWith),cQ=Ae("".slice),fQ=Math.min,rI=AS("endsWith"),dQ=!(rI||(Cb=lQ(String.prototype,"endsWith"),!Cb||Cb.writable));Rt({target:"String",proto:!0,forced:!dQ&&!rI},{endsWith:function(e){var t=yt(oo(this));_S(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=r===void 0?n:fQ(Lc(r),n),i=yt(e);return h7?h7(t,i,o):cQ(t,o-i.length,o)===i}});var pQ=Ae([].join),hQ=xy!=Object,gQ=zN("join",",");Rt({target:"Array",proto:!0,forced:hQ||!gQ},{join:function(e){return pQ(au(this),e===void 0?",":e)}});var vQ=$t("species"),Dy=function(e){return fp>=51||!ft((function(){var t=[];return(t.constructor={})[vQ]=function(){return{foo:1}
15},t[e](Boolean).foo!==1}))},mQ=Rc.map,yQ=Dy("map");Rt({target:"Array",proto:!0,forced:!yQ},{map:function(e){return mQ(this,e,arguments.length>1?arguments[1]:void 0)}});var BS=ce.RegExp,XE=ft((function(){var e=BS("a","y");return e.lastIndex=2,e.exec("abcd")!=null})),bQ=XE||ft((function(){return!BS("a","y").sticky})),_y={BROKEN_CARET:XE||ft((function(){var e=BS("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),MISSED_STICKY:bQ,UNSUPPORTED_Y:XE},wQ=ce.RegExp,PS=ft((function(){var e=wQ(".","s");return!(e.dotAll&&e.exec(` 16`)&&e.flags==="s")})),EQ=ce.RegExp,jS=ft((function(){var e=EQ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),xQ=Vr.get,SQ=mS("native-string-replace",String.prototype.replace),I0=RegExp.prototype.exec,JE=I0,CQ=Ae("".charAt),DQ=Ae("".indexOf),_Q=Ae("".replace),Db=Ae("".slice),_b=(function(){var e=/a/,t=/b*/g;return it(I0,e,"a"),it(I0,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),g7=_y.BROKEN_CARET,Ab=/()??/.exec("")[1]!==void 0;(_b||Ab||g7||PS||jS)&&(JE=function(e){var t,r,n,o,i,a,u,s=this,l=xQ(s),c=yt(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=it(JE,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=g7&&s.sticky,v=it(CS,s),m=s.source,g=0,y=c;if(p&&(v=_Q(v,"y",""),DQ(v,"g")===-1&&(v+="g"),y=Db(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&CQ(c,s.lastIndex-1)!==` 17`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),Ab&&(r=new RegExp("^"+m+"$(?!\\s)",v)),_b&&(n=s.lastIndex),o=it(I0,p?r:s,y),p?o?(o.input=Db(o.input,g),o[0]=Db(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_b&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),Ab&&o&&o.length>1&&it(SQ,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=Cy(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
17);var vp=JE;Rt({target:"RegExp",proto:!0,forced:/./.exec!==vp},{exec:vp});var NS=Function.prototype,v7=NS.apply,AQ=NS.bind,m7=NS.call,IS=typeof Reflect=="object"&&Reflect.apply||(AQ?m7.bind(v7):function(){return m7.apply(v7,arguments)}),kQ=$t("species"),kb=RegExp.prototype,LS=function(e,t,r,n){var o=$t(e),i=!ft((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!ft((function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[kQ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Ae(/./[o]),s=t(o,""[e],(function(l,c,f,d,p){var v=Ae(l),m=c.exec;return m===vp||m===kb.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}));dn(String.prototype,e,s[0]),dn(kb,o,s[1])}n&&Co(kb[o],"sham",!0)},OQ=eI.charAt,RS=function(e,t,r){return t+(r?OQ(e,t).length:1)},TQ=Math.floor,Ob=Ae("".charAt),FQ=Ae("".replace),Tb=Ae("".slice),BQ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,PQ=/\$([$&'`]|\d{1,2})/g,jQ=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=PQ;return o!==void 0&&(o=iu(o),s=BQ),FQ(i,s,(function(l,c){var f;switch(Ob(c,0)){case"$":return"$";case"&":return e;case"`":return Tb(t,0,r);case"'":return Tb(t,a);case"<":f=o[Tb(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=TQ(d/10);return p===0?l:p<=u?n[p-1]===void 0?Ob(c,1):n[p-1]+Ob(c,1):l}f=n[d-1]}return f===void 0?"":f}))},NQ=ce.TypeError,mp=function(e,t){var r=e.exec;if(vt(r)){var n=it(r,e,t);return n!==null&&Qt(n),n}if(Do(e)==="RegExp")return it(vp,e,t);throw NQ("RegExp#exec called on incompatible receiver")}
17,ZE=$t("replace"),IQ=Math.max,LQ=Math.min,RQ=Ae([].concat),Fb=Ae([].push),y7=Ae("".indexOf),b7=Ae("".slice),MQ="a".replace(/./,"$0")==="$0",w7=!!/./[ZE]&&/./[ZE]("a","$0")==="";LS("replace",(function(e,t,r){var n=w7?"$":"$0";return[function(o,i){var a=oo(this),u=o==null?void 0:_s(o,ZE);return u?it(u,o,a,i):it(t,yt(a),o,i)},function(o,i){var a=Qt(this),u=yt(o);if(typeof i=="string"&&y7(i,n)===-1&&y7(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=vt(i);l||(i=yt(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=mp(a,u);if(p===null||(Fb(d,p),!c))break;yt(p[0])===""&&(a.lastIndex=RS(u,Lc(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=yt((p=d[y])[0]),b=IQ(LQ(vh(p.index),u.length),0),w=[],E=1;E<p.length;E++)Fb(w,(v=p[E])===void 0?v:String(v));var C=p.groups;if(l){var S=RQ([h],w,b,u);C!==void 0&&Fb(S,C);var k=yt(IS(i,void 0,S))}else k=jQ(h,u,b,w,C,i);b>=g&&(m+=b7(u,g,b)+k,g=b+h.length)}return m+b7(u,g)}]}),!!ft((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!MQ||w7);var QE=function(e,t){return QE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},QE(e,t)};function Mc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}QE(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Yn=function(){return Yn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yn.apply(this,arguments)};function Xn(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function et(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function ex(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var $Q=0,E7=function(){this.id=""+$Q++},zQ=Vr.set,HQ=Vr.getterFor("Array Iterator"),Sd=FS(Array,"Array",(function(e,t){zQ(this,{type:"Array Iterator",target:au(e),index:0,kind:t})}),(function(){var e=HQ(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");mc.Arguments=mc.Array,Id("keys"),Id("values"),Id("entries");var bc=function(e,t,r){for(var n in t)dn(e,n,t[n],r);return e},UQ=ce.Array,VQ=Math.max,tx=function(e,t,r){for(var n=Us(e),o=vc(t,n),i=vc(r===void 0?n:r,n),a=UQ(VQ(i-o,0)),u=0;o<i;o++,u++)gp(a,u,e[o]);return a.length=u,a},x7=pp.f,S7=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],WQ={f:function(e){return S7&&Do(e)=="Window"?(function(t){try{return x7(t)}catch{return tx(S7)}})(e):x7(au(e))}},C7=ft((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),mg=Object.isExtensible,Wu=ft((function(){mg(1)}))||C7?function(e){return!!At(e)&&(!C7||Do(e)!="ArrayBuffer")&&(!mg||mg(e))}:mg,GQ=!ft((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ay=gh((function(e){var t=Bo.f,r=!1,n=yS("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=pp.f,s=Ae([].splice),l={};l[n]=1,u(l).length&&(pp.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Rt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:WQ.f}))},fastKey:function(u,s){if(!At(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Zt(u,n)){if(!Wu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID}
vendor: 4,458 bytes, line 17
17,getWeakData:function(u,s){if(!Zt(u,n)){if(!Wu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return GQ&&r&&Wu(u)&&!Zt(u,n)&&i(u),u}};wy[n]=!0})),qQ=ce.TypeError,Dv=function(e,t){this.stopped=e,this.result=t},D7=Dv.prototype,yp=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),p=!(!r||!r.INTERRUPTED),v=As(t,c),m=function(y){return n&&qE(n,"normal",y),new Dv(!0,y)},g=function(y){return f?(Qt(y),p?v(y[0],y[1],m):v(y[0],y[1])):p?v(y,m):v(y)};if(d)n=e;else{if(!(o=kS(e)))throw qQ(my(e)+" is not iterable");if(XN(o)){for(i=0,a=Us(e);a>i;i++)if((u=g(e[i]))&&Ds(D7,u))return u;return new Dv(!1)}n=JN(e,o)}for(s=n.next;!(l=it(s,n)).done;){try{u=g(l.value)}catch(y){qE(n,"throw",y)}if(typeof u=="object"&&u&&Ds(D7,u))return u}return new Dv(!1)},KQ=ce.TypeError,ky=function(e,t){if(Ds(t,e))return e;throw KQ("Incorrect invocation")},nI=function(e,t,r){var n,o;return yc&&vt(n=t.constructor)&&n!==r&&At(o=n.prototype)&&o!==r.prototype&&yc(e,o),e},oI=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=ce[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ae(u[g]);dn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!At(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!At(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!At(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(hp(e,!vt(a)||!(o||u.forEach&&!ft((function(){new a().entries().next()})))))s=r.getConstructor(t,e,n,i),Ay.enable();else if(hp(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=ft((function(){f.has(1)})),v=OS((function(g){new a(g)})),m=!o&&ft((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((s=t((function(g,y){ky(g,u);var h=nI(new a,g,s);return y!=null&&yp(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Rt({global:!0,forced:s!=a},l),N0(s,e),o||r.setStrong(s,e,n),s},yg=Ay.getWeakData,YQ=Vr.set,XQ=Vr.getterFor,JQ=Rc.find,ZQ=Rc.findIndex,QQ=Ae([].splice),eee=0,bg=function(e){return e.frozen||(e.frozen=new iI)},iI=function(){this.entries=[]},Bb=function(e,t){return JQ(e.entries,(function(r){return r[0]===t}))};iI.prototype={get:function(e){var t=Bb(this,e);if(t)return t[1]},has:function(e){return!!Bb(this,e)},set:function(e,t){var r=Bb(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=ZQ(this.entries,(function(r){return r[0]===e}));return~t&&QQ(this.entries,t,1),!!~t}};var xf,aI={getConstructor:function(e,t,r,n){var o=e((function(s,l){ky(s,i),YQ(s,{type:t,id:eee++,frozen:void 0}),l!=null&&yp(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=XQ(t),u=function(s,l,c){var f=a(s),d=yg(Qt(l),!0);return d===!0?bg(f).set(l,c):d[f.id]=c,s};return bc(i,{delete:function(s){var l=a(this);if(!At(s))return!1;var c=yg(s);return c===!0?bg(l).delete(s):c&&Zt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!At(s))return!1;var c=yg(s);return c===!0?bg(l).has(s):c&&Zt(c,l.id)}}),bc(i,r?{get:function(s){var l=a(this);if(At(s)){var c=yg(s);return c===!0?bg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},wg=Vr.enforce,tee=!ce.ActiveXObject&&"ActiveXObject"in ce,uI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ree=oI("WeakMap",uI,aI);if(NN&&tee){xf=aI.getConstructor(uI,"WeakMap",!0),Ay.enable();var Sf=ree.prototype,_7=Ae(Sf.delete),Eg=Ae(Sf.has),A7=Ae(Sf.get),k7=Ae(Sf.set);bc(Sf,{delete:function(e){if(At(e)&&!Wu(e)){var t=wg(this);return t.frozen||(t.frozen=new xf),_7(this,e)||t.frozen.delete(e)}return _7(this,e)},has:function(e){if(At(e)&&!Wu(e)){var t=wg(this);return t.frozen||(t.frozen=new xf),Eg(this,e)||t.frozen.has(e)}return Eg(this,e)},get:function(e){if(At(e)&&!Wu(e)){var t=wg(this);return t.frozen||(t.frozen=new xf),Eg(this,e)?A7(this,e):t.frozen.get(e)}return A7(this,e)},set:function(e,t){if(At(e)&&!Wu(e)){var r=wg(this);r.frozen||(r.frozen=new xf),Eg(this,e)?k7(this,e,t):r.frozen.set(e,t)}else k7(this,e,t);return this}})}var Pb=$t("iterator"),O7=$t("toStringTag"),jb=Sd.values,sI=function(e,t){if(e){if(e[Pb]!==jb)try{Co(e,Pb,jb)}catch{e[Pb]=jb}if(e[O7]||Co(e,O7,t),F0[t]){for(var r in Sd)if(e[r]!==Sd[r])try{Co(e,r,Sd[r])}catch{e[r]=Sd[r]}}}};for(var Nb in F0)sI(ce[Nb]&&ce[Nb].prototype,Nb);sI(LN,"DOMTokenList");
17var rx=new WeakMap,nx=new WeakMap,MS=new WeakMap,Oy=new WeakMap,ox=new WeakMap,L0=new WeakMap,$S=new WeakMap,ix=new WeakMap,_v=new WeakMap,T7=new WeakMap,F7=new WeakMap,B7=new WeakMap,P7=new WeakMap,bp=new WeakMap,wc=new WeakMap,zS=new WeakMap,R0=new WeakMap,ax=new WeakMap,M0=new WeakMap,Av=new WeakMap,lI=new WeakMap,ns=new WeakMap,Ib=new WeakMap,j7=new WeakMap,Lb=new WeakMap,nee=Rc.find,N7=!0;"find"in[]&&Array(1).find((function(){N7=!1})),Rt({target:"Array",proto:!0,forced:N7},{find:function(e){return nee(this,e,arguments.length>1?arguments[1]:void 0)}}),Id("find"),Rt({global:!0},{globalThis:ce});const oee=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];S0&&(B.fn.css=S0),no&&(B.fn.append=no),ic&&(B.fn.addClass=ic),ac&&(B.fn.removeClass=ac),uc&&(B.fn.hasClass=uc),ni&&(B.fn.on=ni),qa&&(B.fn.focus=qa),ro&&(B.fn.attr=ro),b0&&(B.fn.removeAttr=b0),lc&&(B.fn.hide=lc),x0&&(B.fn.show=x0),J_&&(B.fn.offset=J_),w0&&(B.fn.width=w0),E0&&(B.fn.height=E0),cc&&(B.fn.parent=cc),_0&&(B.fn.parents=_0),Q_&&(B.fn.is=Q_),sc&&(B.fn.dataset=sc),ri&&(B.fn.val=ri),D0&&(B.fn.text=D0),Ga&&(B.fn.html=Ga),dc&&(B.fn.children=dc),pc&&(B.fn.remove=pc),fc&&(B.fn.find=fc),C0&&(B.fn.each=C0),hc&&(B.fn.empty=hc);var Vo,zr,HS=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},mo=function(e){return ks(e)&&e.nodeType===1},ks=function(e){var t=HS(e);return!!t&&e instanceof t.Node},I7=function(e){var t=e&&e.anchorNode&&HS(e.anchorNode);return!!t&&e instanceof t.Selection},cI=function(e){return ks(e)&&e.nodeType===3},ux=function(e){var t,r,n;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(e))||null},fI=function(e,t,r){for(var n,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(ks(n=i)&&n.nodeType===8||mo(i)&&i.childNodes.length===0||mo(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=t-1,r="backward"):a<0?(s=!0,a=t+1,r="forward"):(i=o[a],t=a,a+=r==="forward"?1:-1);return[i,t]},iee=function(e,t,r){return et(fI(e,t,r),1)[0]},aee=function e(t){var r,n,o="";if(cI(t)&&t.nodeValue)return t.nodeValue;if(mo(t)){try{for(var i=Xn(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+=` 18`)}return o};function dI(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var r=e.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||dI(o,t)}}function L7(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==Vo.ELEMENT_NODE?"":t.tagName.toLowerCase()}(zr=Vo||(Vo={}))[zr.ELEMENT_NODE=1]="ELEMENT_NODE",zr[zr.TEXT_NODE=3]="TEXT_NODE",zr[zr.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",zr[zr.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",zr[zr.COMMENT_NODE=8]="COMMENT_NODE",zr[zr.DOCUMENT_NODE=9]="DOCUMENT_NODE",zr[zr.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",zr[zr.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var sx=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Ld=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Cf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),uee=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),see=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),lx=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),Df=!see&&!uee&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",O={getWindow:function(e){var t=lI.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=Av.get(t);return r||(r=new E7,Av.set(t,r)),r},setNewKey:function(e){var t=new E7;Av.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var o=wc.get(n);if(o==null){if(x.isEditor(n))return r;break}var i=bp.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=O.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},getParentNode:function(e,t){return wc.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&n!=null;){var o=O.getParentNode(e,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(e,t){var r=[O.findPath(e,t)[0]];return pe.get(e,r)},toDOMNode:function(e,t){var r;if(x.isEditor(t))r=zS.get(e);else{var n=O.findKey(e,t);r=ax.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return r},hasDOMNode:function(e,t,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=O.toDOMNode(e,e);try{n=mo(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,o=Z.isBackward(t),i=O.toDOMPoint(e,r),a=Z.isCollapsed(t)?i:O.toDOMPoint(e,n),u=O.getWindow(e).document.createRange(),s=et(o?a:i,2),l=s[0],c=s[1],f=et(o?i:a,2),d=f[0],p=f[1],v=!!(mo(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),m=!!(mo(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(d,m?1:p),u},toDOMPoint:function(e,t){var r,n,o,i=et(x.node(e,t.path),1)[0],a=O.toDOMNode(e,i);x.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=Xn(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(d!=null&&d.textContent!=null){var p=d.textContent.length,v=f.getAttribute("data-slate-length"),m=s+(v==null?p:parseInt(v,10));if(t.offset<=m){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=m}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var r=mo(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?R0.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var r=t.clientX,n=t.clientY,o=t.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=O.toSlateNode(e,t.target),u=O.findPath(e,a);if(x.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=x.point(e,u,{edge:l?"start":"end"}),f=l?x.before(e,c):x.after(e,c);if(f)return x.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(r,n);else{var p=d.caretPositionFromPoint(r,n);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return O.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((I7(t)?t.anchorNode:t.startContainer)&&(I7(t)?(n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=lx&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=O.toSlatePoint(e,[n,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:O.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return Z.isExpanded(d)&&Z.isForward(d)&&mo(i)&&x.void(e,{at:d.focus,mode:"highest"})&&(d=x.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,r){var n,o=r.exactMatch,i=r.suppressThrow,a=et(o?t:(function(h){var b,w=et(h,2),E=w[0],C=w[1];if(mo(E)&&E.childNodes.length){var S=C===E.childNodes.length,k=S?C-1:C;for(E=(b=et(fI(E,k,S?"backward":"forward"),2))[0],S=(k=b[1])<C;mo(E)&&E.childNodes.length;){var P=S?E.childNodes.length-1:0;E=iee(E,P,S?"backward":"forward")}C=S&&E.textContent!=null?E.textContent.length:0}return[E,C]})(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),v=null;if(p){c=p.closest('[data-slate-node="text"]');var m=O.getWindow(e).document.createRange();m.setStart(c,0),m.setEnd(u,s);var g=m.cloneContents();ex(ex([],et(K_(g.querySelectorAll("[data-slate-zero-width]")))),et(K_(g.querySelectorAll("[contenteditable=false]")))).forEac
18h((function(h){h.parentNode.removeChild(h)})),f=g.textContent.length,v=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(v=p).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach((function(h){f-=h.textContent.length}))):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Ld&&(!((n=v.textContent)===null||n===void 0)&&n.endsWith(` 19`)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=O.toSlateNode(e,c);return{path:O.findPath(e,y),offset:f}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return x.hasPath(e,r.path)&&x.hasPath(e,n.path)},getNodeType:function(e){return Ce.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(t){return pe.string(t)})).join("")},getSelectedElems:function(e){var t,r,n=[],o=x.nodes(e,{universal:!0});try{for(var i=Xn(o),a=i.next();!a.done;a=i.next()){var u=et(a.value,1)[0];Ce.isElement(u)&&n.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=et(x.nodes(e,{match:function(i){return r.checkNodeType(i,t)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=et(x.nodes(e,{match:function(n){return ye.isText(n)},universal:!0}),1),r=t[0];return r==null?null:r[0]},isNodeSelected:function(e,t){var r=et(x.nodes(e,{match:function(o){return o===t},universal:!0}),1),n=r[0];return n!=null&&et(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(x.isEnd(e,r.anchor,t)||x.isEnd(e,r.focus,t))},getTextarea:function(e){var t=rx.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Oy.get(e)||null},getHoverbar:function(e){return L0.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,r){e.normalizeNode([t,[r]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,o,i=O.getTextarea(e).$textArea,a=i?.[0].childNodes;if(a)try{for(var u=Xn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(m){t={error:m}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}var c=x.nodes(e,{match:function(m){return!(!Ce.isElement(m)||e.isInline(m))},universal:!0});try{for(var f=Xn(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(p!=null){var v=p[0];dI(O.toDOMNode(e,v),(function(m,g){var y=B(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(m)}))}}}catch(m){n={error:m}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=x.nodes(e,{match:function(u){return e.isVoid(u)}}),o=0;try{for(var i=Xn(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||Z.isExpanded(t))return!1;var r=O.getSelectedNodeByType(e,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(e,t){var r=x.node(e,t);if(r==null)return!1;var n=et(r,1)[0].children;return n.length===1&&n[0].text===""}},lee=1,pI={},wp={},cee=Rc.filter,fee=Dy("filter");Rt({target:"Array",proto:!0,forced:!fee},{filter:function(e){return cee(this,e,arguments.length>1?arguments[1]:void 0)}});var cx=` 20\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\uFEFF`,R7=Ae("".replace),$0="["+cx+"]",dee=RegExp("^"+$0+$0+"*"),pee=RegExp($0+$0+"*$"),hee=function(e){return function(t){var r=yt(oo(t));return 1&e&&(r=R7(r,dee,"")),2&e&&(r=R7(r,pee,"")),r}},gee={trim:hee(3)},vee=Ic.PROPER,mee=gee.trim;Rt({target:"String",proto:!0,forced:(function(e){return ft((function(){return!!cx[e]()||"â á "[e]()!=="â á "||vee&&cx[e].name!==e}))})("trim")},{trim:function(){return mee(this)}});var fx=[],hI={};function yee(e,t,r){var n=r.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}
vendor: 4,589 bytes, line 20
20var Ep,nl,M7,Rb,z0=ce.Promise,$7=$t("species"),US=function(e){var t=Hs(e),r=Bo.f;Dr&&t&&!t[$7]&&r(t,$7,{configurable:!0,get:function(){return this}})},bee=ce.TypeError,wee=$t("species"),gI=function(e,t){var r,n=Qt(e).constructor;return n===void 0||(r=Qt(n)[wee])==null?t:(function(o){if(Sy(o))return o;throw bee(my(o)+" is not a constructor")})(r)},vI=Ae([].slice),mI=/(?:ipad|iphone|ipod).*applewebkit/i.test(Hl),Oa=Do(ce.process)=="process",dx=ce.setImmediate,z7=ce.clearImmediate,Eee=ce.process,Mb=ce.Dispatch,xee=ce.Function,H7=ce.MessageChannel,See=ce.String,$b=0,Rd={};try{Ep=ce.location}catch{}var VS=function(e){if(Zt(Rd,e)){var t=Rd[e];delete Rd[e],t()}},zb=function(e){return function(){VS(e)}},U7=function(e){VS(e.data)},V7=function(e){ce.postMessage(See(e),Ep.protocol+"//"+Ep.host)};dx&&z7||(dx=function(e){var t=vI(arguments,1);return Rd[++$b]=function(){IS(vt(e)?e:xee(e),void 0,t)},nl($b),$b},z7=function(e){delete Rd[e]},Oa?nl=function(e){Eee.nextTick(zb(e))}:Mb&&Mb.now?nl=function(e){Mb.now(zb(e))}:H7&&!mI?(Rb=(M7=new H7).port2,M7.port1.onmessage=U7,nl=As(Rb.postMessage,Rb)):ce.addEventListener&&vt(ce.postMessage)&&!ce.importScripts&&Ep&&Ep.protocol!=="file:"&&!ft(V7)?(nl=V7,ce.addEventListener("message",U7,!1)):nl="onreadystatechange"in dp("script")?function(e){VE.appendChild(dp("script")).onreadystatechange=function(){VE.removeChild(this),VS(e)}}:function(e){setTimeout(zb(e),0)});var _f,zu,Md,Tl,Hb,Ub,Vb,W7,yI={set:dx},Cee=/ipad|iphone|ipod/i.test(Hl)&&ce.Pebble!==void 0,Dee=/web0s(?!.*chrome)/i.test(Hl),_ee=mh.f,Wb=yI.set,G7=ce.MutationObserver||ce.WebKitMutationObserver,q7=ce.document,K7=ce.process,xg=ce.Promise,Y7=_ee(ce,"queueMicrotask"),bI=Y7&&Y7.value;bI||(_f=function(){var e,t;for(Oa&&(e=K7.domain)&&e.exit();zu;){t=zu.fn,zu=zu.next;try{t()}catch(r){throw zu?Tl():Md=void 0,r}}Md=void 0,e&&e.enter()},mI||Oa||Dee||!G7||!q7?!Cee&&xg&&xg.resolve?((Vb=xg.resolve(void 0)).constructor=xg,W7=As(Vb.then,Vb),Tl=function(){W7(_f)}):Oa?Tl=function(){K7.nextTick(_f)}:(Wb=As(Wb,ce),Tl=function(){Wb(_f)}):(Hb=!0,Ub=q7.createTextNode(""),new G7(_f).observe(Ub,{characterData:!0}),Tl=function(){Ub.data=Hb=!Hb}));var Gb,X7,wI,J7,EI=bI||function(e){var t={fn:e,next:void 0};Md&&(Md.next=t),zu||(zu=t,Tl()),Md=t},Aee=function(e){var t,r;this.promise=new e((function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o})),this.resolve=Ka(t),this.reject=Ka(r)},WS={f:function(e){return new Aee(e)}},px=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},kee=typeof window=="object",xI=yI.set,Oee=$t("species"),zo="Promise",Z7=Vr.getterFor(zo),Tee=Vr.set,Fee=Vr.getterFor(zo),Pu=z0&&z0.prototype,Go=z0,Af=Pu,SI=ce.TypeError,hx=ce.document,GS=ce.process,Vl=WS.f,Bee=Vl,Pee=!!(hx&&hx.createEvent&&ce.dispatchEvent),CI=vt(ce.PromiseRejectionEvent),DI=!1,$d=hp(zo,(function(){var e=by(Go),t=e!==String(Go);if(!t&&fp===66)return!0;if(fp>=51&&/native code/.test(e))return!1;var r=new Go((function(o){o(1)})),n=function(o){o((function(){}),(function(){}))};return(r.constructor={})[Oee]=n,!(DI=r.then((function(){}))instanceof n)||!t&&kee&&!CI})),jee=$d||!OS((function(e){Go.all(e).catch((function(){}))})),_I=function(e){var t;return!(!At(e)||!vt(t=e.then))&&t},qS=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;EI((function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&Iee(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(SI("Promise-chain cycle")):(u=_I(a))?it(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Nee(e)}))}},AI=function(e,t,r){var n,o;Pee?((n=hx.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ce.dispatchEvent(n)):n={promise:t,reason:r},!CI&&(o=ce["on"+e])?o(n):e==="unhandledrejection"&&(function(i,a){var u=ce.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},Nee=function(e){it(xI,ce,(function(){var t,r=e.facade,n=e.value;if(Q7(e)&&(t=px((function(){Oa?GS.emit("unhandledRejection",n,r):AI("unhandledrejection",r,n)})),e.rejection=Oa||Q7(e)?2:1,t.error))throw t.value}))},Q7=function(e){return e.rejection!==1&&!e.parent},Iee=function(e){it(xI,ce,(function(){var t=e.facade;Oa?GS.emit("rejectionHandled",t):AI("rejectionhandled",t,e.value)}))},Ll=function(e,t,r){return function(n){e(t,n,r)}},Wl=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,qS(e,!0))},gx=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);
20try{if(e.facade===t)throw SI("Promise can't be resolved itself");var n=_I(t);n?EI((function(){var o={done:!1};try{it(n,t,Ll(gx,o,e),Ll(Wl,o,e))}catch(i){Wl(o,i,e)}})):(e.value=t,e.state=1,qS(e,!1))}catch(o){Wl({done:!1},o,e)}}};if($d&&(Af=(Go=function(e){ky(this,Af),Ka(e),it(Gb,this);var t=Z7(this);try{e(Ll(gx,t),Ll(Wl,t))}catch(r){Wl(t,r)}}).prototype,(Gb=function(e){Tee(this,{type:zo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=bc(Af,{then:function(e,t){var r=Fee(this),n=r.reactions,o=Vl(gI(this,Go));return o.ok=!vt(e)||e,o.fail=vt(t)&&t,o.domain=Oa?GS.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&qS(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),X7=function(){var e=new Gb,t=Z7(e);this.promise=e,this.resolve=Ll(gx,t),this.reject=Ll(Wl,t)},WS.f=Vl=function(e){return e===Go||e===wI?new X7(e):Bee(e)},vt(z0)&&Pu!==Object.prototype)){J7=Pu.then,DI||(dn(Pu,"then",(function(e,t){var r=this;return new Go((function(n,o){it(J7,r,n,o)})).then(e,t)}),{unsafe:!0}),dn(Pu,"catch",Af.catch,{unsafe:!0}));try{delete Pu.constructor}catch{}yc&&yc(Pu,Af)}Rt({global:!0,wrap:!0,forced:$d},{Promise:Go}),N0(Go,zo,!1),US(zo),wI=Hs(zo),Rt({target:zo,stat:!0,forced:$d},{reject:function(e){var t=Vl(this);return it(t.reject,void 0,e),t.promise}}),Rt({target:zo,stat:!0,forced:$d},{resolve:function(e){return(function(t,r){if(Qt(t),At(r)&&r.constructor===t)return r;var n=WS.f(t);return(0,n.resolve)(r),n.promise})(this,e)}}),Rt({target:zo,stat:!0,forced:jee},{all:function(e){var t=this,r=Vl(t),n=r.resolve,o=r.reject,i=px((function(){var a=Ka(t.resolve),u=[],s=0,l=1;yp(e,(function(c){var f=s++,d=!1;l++,it(a,t,c).then((function(p){d||(d=!0,u[f]=p,--l||n(u))}),o)})),--l||n(u)}));return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=Vl(t),n=r.reject,o=px((function(){var i=Ka(t.resolve);yp(e,(function(a){it(i,t,a).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var ol=_y.UNSUPPORTED_Y,Lee=Math.min,kI=[].push,Ree=Ae(/./.exec),il=Ae(kI),kf=Ae("".slice);function io(e){Promise.resolve().then(e)}function OI(e,t){return Ce.isElement(e)?(function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=x.isVoid(n,r),l="";s||(l=u.map((function(y){return OI(y,n)})).join(""));var c=(function(y){return hI[y]||yee})(i),f=c(r,l,n),d="";if(d=typeof f=="string"?f:f.html||"",s||fx.forEach((function(y){return d=y(r,d)})),typeof f=="string")return d;var p=f.prefix,v=p===void 0?"":p,m=f.suffix,g=m===void 0?"":m;return v&&(d=v+d),g&&(d+=g),d})(e,t):(function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=(function(s){return s.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/â¢/g,"™")})(i);var a=O.getParentsNodes(n,r).some((function(s){return O.getNodeType(s)==="pre"}));if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/ /g," ")),i===""){var u=O.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return fx.forEach((function(s){return i=s(r,i)})),i})(e,t)}function TI(e){return"w-e-element-"+e}LS("split",(function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=yt(oo(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!DS(o))return it(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=it(vp,v,a))&&!((l=v.lastIndex)>p&&(il(f,kf(a,p,s.index)),s.length>1&&s.index<a.length&&IS(kI,f,tx(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&Ree(v,"")||il(f,""):il(f,kf(a,p)),f.length>u?tx(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:it(t,this,o,i)}:t,[function(o,i){var a=oo(this),u=o==null?void 0:_s(o,e);return u?it(u,o,a,i):it(n,yt(a),o,i)},function(o,i){var a=Qt(this),u=yt(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=gI(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ol?"g":"y"),d=new l(ol?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return mp(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=ol?0:m;var y,h=mp(d,ol?kf(u,m):u);if(h===null||(y=Lee(Lc(d.lastIndex+(ol?m:0)),u.length))===v)m=RS(u,m,c);else{if(il(g,kf(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(il(g,h[b]),g.length===p)return g;m=v=y}}return il(g,kf(u,v)),g}]}),!!ft((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),ol);var e9=function(e,t){var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},t9=function(e,t,r){var n=O.toDOMRange(e,t).getBoundingClientRect(),o=O.toDOMRange(e,r).getBoundingClientRect();return e9(n,o)&&e9(o,n)},FI=["span","b","strong","i","em","s","strike","u","font","sub","sup"],BI=[],KS=[],H0={},Mee=Bo.f,$ee=pp.f,zee=Vr.enforce,Hee=$t("match"),_i=ce.RegExp,Fl=_i.prototype,Uee=ce.SyntaxError,Vee=Ae(CS),Wee=Ae(Fl.exec),Sg=Ae("".charAt),r9=Ae("".replace),n9=Ae("".indexOf),Gee=Ae("".slice),qee=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,os=/a/g,qb=/a/g,Kee=new _i(os)!==os,PI=_y.MISSED_STICKY,Yee=_y.UNSUPPORTED_Y,Xee=Dr&&(!Kee||PI||PS||jS||ft((function(){return qb[Hee]=!1,_i(os)!=os||_i(qb)==qb||_i(os,"i")!="/a/i"})));if(hp("RegExp",Xee)){for(var ta=function(e,t){var r,n,o,i,a,u,s=Ds(Fl,this),l=DS(e),c=t===void 0,f=[],d=e;if(!s&&l&&c&&e.constructor===ta)return e;if((l||Ds(Fl,e))&&(e=e.source,c&&(t="flags"in d?d.flags:Vee(d))),e=e===void 0?"":yt(e),t=t===void 0?"":yt(t),d=e,PS&&"dotAll"in os&&(n=!!t&&n9(t,"s")>-1)&&(t=r9(t,/s/g,"")),r=t,PI&&"sticky"in os&&(o=!!t&&n9(t,"y")>-1)&&Yee&&(t=r9(t,/y/g,"")),jS&&(i=(function(p){for(var v,m=p.length,g=0,y="",h=[],b={},w=!1,E=!1,C=0,S="";g<=m;g++){if((v=Sg(p,g))==="\\")v+=Sg(p,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":Wee(qee,Gee(p,g+1))&&(g+=2,E=!0),y+=v,C++;continue;case(v===">"&&E):if(S===""||Zt(b,S))throw new Uee("Invalid capture group name");b[S]=!0,h[h.length]=[S,C],E=!1,S="";continue}E?S+=v:y+=v}return[y,h]})(e),e=i[0],f=i[1]),a=nI(_i(e,t),s?this:Fl,ta),(n||o||f.length)&&(u=zee(a),n&&(u.dotAll=!0,u.raw=ta((function(p){for(var v,m=p.length,g=0,y="",h=!1;g<=m;g++)(v=Sg(p,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+Sg(p,++g);return y})(e),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{Co(a,"source",d===""?"(?:)":d)}catch{}return a},Jee=function(e){e in ta||Mee(ta,e,{configurable:!0,get:function(){return _i[e]},set:function(t){_i[e]=t}})},o9=$ee(_i),i9=0;o9.length>i9;)Jee(o9[i9++]);Fl.constructor=ta,ta.prototype=Fl,dn(ce,"RegExp",ta)}US("RegExp");var Zee=new RegExp(" ","g");function jI(e){return e.replace(Zee," ")}function a9(e,t){var r=e.length;if(r){var n=e[r-1];if(ye.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+t,!0}}return!1}function Qee(e,t,r){return{type:"paragraph",children:[{text:B(e).text().replace(/\s+/gm," ")}]}}function Kb(e,t){var r=(function(i,a){var u=[];
20if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach((function(l){if(l.nodeType!==Vo.ELEMENT_NODE){if(l.nodeType===Vo.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(` 21`)>=0)return;c&&(c=jI(c),a9(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(a9(u,` 22`)||u.push({text:` 23`}));var f=YS(B(l),a);Array.isArray(f)?f.forEach((function(d){return u.push(d)})):u.push(f)}})),u)})(e,t),n=(function(i){for(var a in H0)if(i[0].matches(a))return H0[a];return Qee})(e),o=n(e[0],r,t);return Array.isArray(o)||(o=[o]),o.forEach((function(i){x.isVoid(t,i)||(r.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),KS.forEach((function(a){i=a(e[0],i,t)})))})),o}function Yb(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,` 24`));var r=e[0].textContent||"";r=(function(o){return o.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"â¢").replace(/"/g,'"')})(r);var n={text:r=jI(r)};return KS.forEach((function(o){n=o(e[0],n,t)})),n}function YS(e,t){BI.forEach((function(n){var o=n.selector,i=n.preParseHtml;e[0].matches(o)&&(e=B(i(e[0])))}));var r=L7(e);return r==="span"?e.attr("data-w-e-type")?Kb(e,t):Yb(e,t):r==="code"?L7(e.parent())==="pre"?Kb(e,t):Yb(e,t):FI.includes(r)?Yb(e,t):Kb(e,t)}function NI(e,t,r){var n=B(r);return!!n.attr(t)||(n.attr(t,"true"),e.on("destroyed",(function(){n.removeAttr(t)})),!1)}function u9(e,t){t===void 0&&(t="");var r=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map((function(o){return"<p>"+o+"</p>"})).join(""));var n=B("<div>"+t+"</div>");return Array.from(n.children()).forEach((function(o){var i=YS(B(o),e);Array.isArray(i)?i.forEach((function(a){return r.push(a)})):r.push(i)})),r}var ete=Bo.f,s9=Ay.fastKey,l9=Vr.set,Xb=Vr.getterFor,tte={getConstructor:function(e,t,r,n){var o=e((function(l,c){ky(l,i),l9(l,{type:t,index:Cy(null),first:void 0,last:void 0,size:0}),Dr||(l.size=0),c!=null&&yp(c,l[n],{that:l,AS_ENTRIES:r})})),i=o.prototype,a=Xb(t),u=function(l,c,f){var d,p,v=a(l),m=s(l,c);return m?m.value=f:(v.last=m={index:p=s9(c,!0),key:c,value:f,previous:d=v.last,next:void 0,removed:!1},v.first||(v.first=m),d&&(d.next=m),Dr?v.size++:l.size++,p!=="F"&&(v.index[p]=m)),l},s=function(l,c){var f,d=a(l),p=s9(c);if(p!=="F")return d.index[p];for(f=d.first;f;f=f.next)if(f.key==c)return f};return bc(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,Dr?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),d=s(c,l);if(d){var p=d.next,v=d.previous;delete f.index[d.index],d.removed=!0,v&&(v.next=p),p&&(p.previous=v),f.first==d&&(f.first=p),f.last==d&&(f.last=v),Dr?f.size--:c.size--}return!!d},forEach:function(l){for(var c,f=a(this),d=As(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(d(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),bc(i,r?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),Dr&&ete(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=Xb(t),i=Xb(n);FS(e,t,(function(a,u){l9(this,{type:n,target:a,state:o(a),kind:u,last:void 0})}),(function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),US(t)}};oI("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),tte);var c9=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function f9(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}
24])):z.insertNodes(e,t,{mode:"highest"})}var rte=function(e){var t=e,r=t.insertText;return t.insertFragment,t.setFragmentData=function(n){var o=t.selection;if(o){var i=et(Z.edges(o),2),a=i[0],u=i[1],s=x.void(t,{at:a.path}),l=x.void(t,{at:u.path});if(!Z.isCollapsed(o)||s){var c=O.toDOMRange(t,o),f=c.cloneContents(),d=f.childNodes[0];if(f.childNodes.forEach((function(E){E.textContent&&E.textContent.trim()!==""&&(d=E)})),l){var p=et(l,1)[0],v=c.cloneRange(),m=O.toDOMNode(t,p);v.setEndAfter(m),f=v.cloneContents()}if(s&&(d=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach((function(E){var C=E.getAttribute("data-slate-zero-width")==="n";E.textContent=C?` 25`:""})),cI(d)){var g=d.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(d),f.appendChild(g),d=g}var y=t.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));d.setAttribute("data-slate-fragment",b),n.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),n.setData("text/html",w.innerHTML),n.setData("text/plain",aee(w)),f.ownerDocument.body.removeChild(w),n}}},t.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),d=!1;try{for(var p=Xn(f),v=p.next();!v.done;v=p.next()){var m=v.value;d&&z.splitNodes(t,{always:!0}),r(m),d=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}}}},t},Cd=function(e){return e!=null},nte={object:!0,function:!0,undefined:!0},ote=/^\s*class[\s{/}]/,ite=Function.prototype.toString,d9=function(e){return!!(function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!(function(r){if(!(function(n){return!!Cd(n)&&hasOwnProperty.call(nte,typeof n)})(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}})(t)})(e)&&!ote.test(ite.call(e))},XS=function(e){return e!=null},ate=Object.keys,ute=(function(){try{return Object.keys("primitive"),!0}catch{return!1}})()?Object.keys:function(e){return ate(XS(e)?Object(e):e)},ste=function(e){if(!XS(e))throw new TypeError("Cannot use null or undefined");return e},lte=Math.max,p9=(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 r,n,o,i=lte(arguments.length,2);for(e=Object(ste(e)),o=function(a){try{e[a]=t[a]}catch(u){r||(r=u)}},n=1;n<i;++n)ute(t=arguments[n]).forEach(o);if(r!==void 0)throw r;return e},cte=Array.prototype.forEach,fte=Object.create,dte=function(e,t){var r;for(r in e)t[r]=e[r]},h9=function(e){var t=fte(null);return cte.call(arguments,(function(r){XS(r)&&dte(Object(r),t)})),t},Jb="razdwatrzy",pte=String.prototype.indexOf,Of=typeof Jb.contains=="function"&&Jb.contains("dwa")===!0&&Jb.contains("foo")===!1?String.prototype.contains:function(e){return pte.call(this,e,arguments[1])>-1},Cg=gh((function(e){var t=e.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Cd(r)?(o=Of.call(r,"c"),i=Of.call(r,"e"),a=Of.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?p9(h9(u),s):s};t.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Cd(n)?d9(n)?Cd(o)?d9(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Cd(r)?(i=Of.call(r,"c"),a=Of.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?p9(h9(u),s):s}})),Zb=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},hte=gh((function(e,t){var r,n,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,v=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};r=function(g,y){var h;return Zb(y),v.call(this,"__ee__")?h=this.__ee__:(h=m.value=f(null),d(this,"__ee__",m),m.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},n=function(g,y){var h,b;return Zb(y),b=this,r.call(this,g,h=function(){o.call(b,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(g,y){var h,b,w,E;if(Zb(y),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(E=0;w=b[E];++E)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[g]=b[E?0:1]:b.splice(E,1));else b!==y&&b.__eeOnceListener__!==y||delete h[g];return this},i=function(g){var y,h,b,w,E;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,E=new Array(h-1),y=1;y<h;++y)E[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)l.call(b,this,E)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,E=new Array(h-1),y=1;y<h;++y)E[y-1]=arguments[y];l.call(w,this,E)}},a={on:r,once:n,off:o,emit:i},u={on:Cg(r),once:Cg(n),off:Cg(o),emit:Cg(i)},s=p({},u),e.exports=t=function(g){return g==null?f(s):p(Object(g),u)},t.methods=a}));function Dg(e){var t=j7.get(e);return t==null&&(t=hte(),j7.set(e,t)),t}var U0=new WeakMap;function g9(e,t){var r=U0.get(e);r==null&&(r=new Set,U0.set(e,r)),r.add(t)}function gte(e){return U0.get(e)||new Set}function vte(e){U0.set(e,new Set)}function JS(e){var t=O.getTextarea(e).$textAreaContainer,r=t.width(),n=t.height(),o=t.offset();
25return{top:o.top,left:o.left,width:r,height:n}}function ZS(e){var t={top:"0",left:"0"},r=e.selection;if(r==null)return t;var n=JS(e);if(n==null)return t;var o=n.top,i=n.left,a=n.width,u=n.height,s=O.toDOMRange(e,r).getClientRects()[0];if(s==null)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var m=f+l;m<0&&(m=0),c.top=m+5+"px"}return c}function QS(e,t,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(e.selection==null)return n;var o=Ce.isElement(t)&&e.isVoid(t),i=Ce.isElement(t)&&e.isInline(t),a=M0.get(t);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=(function(S){var k=[];k.push(S);for(var P=0;k.length>0;){var G=k.pop();if(G==null||++P>1e4)break;var J=G.nodeName;if(G.nodeType===1){var M=J.toLowerCase();if(oee.includes(M)||M==="iframe"||M==="video")return G;var X=G.children||[],$=X.length;if($)for(var V=$-1;V>=0;V--)k.push(X[V])}}return null})(a);if(d!=null){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var v=JS(e);if(v==null)return n;var m,g=v.top,y=v.left,h=v.width,b=v.height,w={},E=s-g,C=l-y;if(r==="bar")return w.left=C+"px",E>40?w.bottom=b-E+5+"px":w.top=E+c+5+"px",w;if(r==="modal")return o?i?C>(h-f)/2?w.right=h-C+5+"px":w.left=C+f+5+"px":w.left="20px":w.left=C+"px",o?((m=E)<0&&(m=0),w.top=m+"px"):E>(b-c)/2?w.bottom=b-E+5+"px":((m=E+c)<0&&(m=0),w.top=m+5+"px"),w;throw new Error("type '"+r+"' is invalid")}function vx(e,t){io((function(){var r=JS(e);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,v=c-i,m=t.attr("style");if(m.indexOf("top")>=0&&(n=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-n;y<0&&(y=0),t.css("top",y+"px")}if(m.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),b=parseInt(h.toString())-Math.abs(l);t.css("bottom",b+"px")}if(m.indexOf("left")>=0&&(n=v+f-a)>0){var w=t.css("left"),E=parseInt(w.toString())-n;E<0&&(E=0),t.css("left",E+"px")}if(m.indexOf("right")>=0&&c<0){var C=t.css("right"),S=parseInt(C.toString())-Math.abs(c);t.css("right",S+"px")}}}))}var mte=Dy("slice"),yte=$t("species"),Qb=ce.Array,bte=Math.max;Rt({target:"Array",proto:!0,forced:!mte},{slice:function(e,t){var r,n,o,i=au(this),a=Us(i),u=vc(e,a),s=vc(t===void 0?a:t,a);if(B0(i)&&(r=i.constructor,(Sy(r)&&(r===Qb||B0(r.prototype))||At(r)&&(r=r[yte])===null)&&(r=void 0),r===Qb||r===void 0))return vI(i,u,s);for(n=new(r===void 0?Qb:r)(bte(s-u,0)),o=0;u<s;u++,o++)u in i&&gp(n,o,i[u]);return n.length=o,n}});var wte=mh.f,v9=Ae("".startsWith),Ete=Ae("".slice),xte=Math.min,II=AS("startsWith"),Ste=!II&&!!(function(){var e=wte(String.prototype,"startsWith");return e&&!e.writable})();Rt({target:"String",proto:!0,forced:!Ste&&!II},{startsWith:function(e){var t=yt(oo(this));_S(e);var r=Lc(xte(arguments.length>1?arguments[1]:void 0,t.length)),n=yt(e);return v9?v9(t,n,r):Ete(t,r,r+n.length)===n}});var al=Object.assign,m9=Object.defineProperty,Cte=Ae([].concat),y9=!al||ft((function(){if(Dr&&al({b:1},al(m9({},"a",{enumerable:!0,get:function(){m9(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(o){t[o]=o})),al({},e)[r]!=7||Ul(al({},t)).join("")!=n}))?function(e,t){for(var r=iu(e),n=arguments.length,o=1,i=GN.f,a=UN.f;n>o;)for(var u,s=xy(arguments[o++]),l=i?Cte(Ul(s),i(s)):Ul(s),c=l.length,f=0;c>f;)u=l[f++],Dr&&!it(a,s,u)||(r[u]=s[u]);return r}:al;Rt({target:"Object",stat:!0,forced:Object.assign!==y9},{assign:y9});var Dte=["props","attrs","style","dataset","on","hook"];function LI(e){var t=e.data,r=t===void 0?{}:t,n=e.children,o=n===void 0?[]:n;Object.keys(r).forEach((function(i){var a,u,s=r[i];if(i!=="key"){if(!Dte.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=YY(l),(function(c,f){c.data==null&&(c.data={});var d=c.data;d.dataset==null&&(d.dataset={}),Object.assign(d.dataset,f)})(e,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var d=c.data;d.props==null&&(d.props={}),Object.assign(d.props,f)})(e,(u={},u[i]=s,u)),delete r[i]}}else e.key=s})),o.length>
250&&o.forEach((function(i){typeof i!="string"&&LI(i)}))}var mx=[],RI={};function _te(e,t,r){return Be(r.isInline(e)?"span":"div",null,t)}function b9(e,t){return t===void 0&&(t=!1),Be("span",{"data-slate-string":!0},t?e+` 26`:e)}function e2(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Be("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Be("br",null):null)}function yx(e,t,r,n){return bp.set(e,t),wc.set(e,r),Ce.isElement(e)?(function(o,i){var a,u=O.findKey(i,o),s=i.isInline(o),l=x.isVoid(i,o),c=TI(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},d=o.type,p=o.children,v=p===void 0?[]:p,m=(function(E){return RI[E]||_te})(d);a=l?null:v.map((function(E,C){return yx(E,C,o,i)}));var g=m(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=et(pe.texts(o),1),b=et(h[0],1)[0],w=Be(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},yx(b,0,o,i));g=Be(y,{style:{position:"relative"}},g,w),bp.set(b,0),wc.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=(function(E,C){var S=C;return mx.forEach((function(k){S=k(E,C)})),S})(o,g)),io((function(){var E=ux(c);E!=null&&(ax.set(u,E),M0.set(o,E),R0.set(E,o))})),g})(e,n):(function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=O.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=O.findPath(a,o),c=s([o,l]),f=ye.decorations(o,c),d=f.map((function(m,g){var y=(function(h,b,w,E,C){b===void 0&&(b=!1);var S=h.text,k=O.findPath(C,w),P=L.parent(k);if(x.isEditor(E))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return C.isVoid(E)?e2(pe.string(E).length):S!==""||E.children[E.children.length-1]!==w||C.isInline(E)||x.string(C,P)!==""?S===""?e2():b&&S.slice(-1)===` 27`?b9(S,!0):b9(S):e2(0,!0)})(m,g===f.length-1,o,i,a);return y=(function(h,b){var w=b;return mx.forEach((function(E){w=E(h,w)})),w})(m,y),Be("span",{"data-slate-leaf":!0},y)})),p=(function(m){return"w-e-text-"+m})(u.id),v=Be("span",{"data-slate-node":"text",id:p,key:u.id},d);return io((function(){var m=ux(p);m!=null&&(ax.set(u,m),M0.set(o,m),R0.set(m,o))})),v})(e,r,n)}function Ate(e,t){var r,n=e.$scroll,o=(function(m){return"w-e-textarea-"+m})(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=(function(m,g){return g===void 0&&(g=!1),gc("div#"+m,{props:{contentEditable:!g}}
27)})(o,a),l=t.children||[];s.children=l.map((function(m,g){var y=yx(m,g,t,t);return LI(y),y}));var c=F7.get(e);if(c==null&&(c=!0),c){var f=(function(m,g){return B(`<div 28 id="`+m+`" 29 data-slate-editor 30 data-slate-node="value" 31 suppressContentEditableWarning 32 role="textarea" 33 spellCheck="true" 34 autoCorrect="true" 35 autoCapitalize="true" 36 ></div>`)})(o);n.append(f),e.$textArea=f,r=f[0],(p=mY([bY,SY,DY,wY,xY,yY]))(r,s),F7.set(e,!1),B7.set(e,p)}else{var d=P7.get(e),p=B7.get(e);if(d==null||p==null)return;r=d.elm,p(d,s)}if(r!=null||(r=ux(o))!=null){if((c?u:t.isFocused())&&r.focus({preventScroll:!0}),c){var v=HS(r);v&&lI.set(t,v)}zS.set(t,r),M0.set(t,r),R0.set(r,t),P7.set(e,s)}}function w9(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function E9(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function t2(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return E9(r.overflowY,t)||E9(r.overflowX,t)||(function(n){var o=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1}function _g(e,t,r,n,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=r||a>=t&&u>=r?i-e-n:a>t&&u<r||i<e&&u>r?a-t+o:0}function x9(e,t){var r=window,n=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(be){return be!==a};if(!w9(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;w9(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&t2(f)&&!t2(document.documentElement)||f!=null&&t2(f,u)&&c.push(f)}
36for(var d=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,h=g.width,b=g.top,w=g.right,E=g.bottom,C=g.left,S=o==="start"||o==="nearest"?b:o==="end"?E:b+y/2,k=i==="center"?C+h/2:i==="end"?w:C,P=[],G=0;G<c.length;G++){var J=c[G],M=J.getBoundingClientRect(),X=M.height,$=M.width,V=M.top,Q=M.right,ie=M.bottom,le=M.left;if(n==="if-needed"&&b>=0&&C>=0&&E<=p&&w<=d&&b>=V&&E<=ie&&C>=le&&w<=Q)return P;var q=getComputedStyle(J),U=parseInt(q.borderLeftWidth,10),_=parseInt(q.borderTopWidth,10),D=parseInt(q.borderRightWidth,10),F=parseInt(q.borderBottomWidth,10),H=0,ee=0,W="offsetWidth"in J?J.offsetWidth-J.clientWidth-U-D:0,I="offsetHeight"in J?J.offsetHeight-J.clientHeight-_-F:0;if(l===J)H=o==="start"?S:o==="end"?S-p:o==="nearest"?_g(m,m+p,p,_,F,m+S,m+S+y,y):S-p/2,ee=i==="start"?k:i==="center"?k-d/2:i==="end"?k-d:_g(v,v+d,d,U,D,v+k,v+k+h,h),H=Math.max(0,H+m),ee=Math.max(0,ee+v);else{H=o==="start"?S-V-_:o==="end"?S-ie+F+I:o==="nearest"?_g(V,ie,X,_,F+I,S,S+y,y):S-(V+X/2)+I/2,ee=i==="start"?k-le-U:i==="center"?k-(le+$/2)+W/2:i==="end"?k-Q+D+W:_g(le,Q,$,U,D+W,k,k+h,h);var ne=J.scrollLeft,ae=J.scrollTop;S+=ae-(H=Math.max(0,Math.min(ae+H,J.scrollHeight-X+I))),k+=ne-(ee=Math.max(0,Math.min(ne+ee,J.scrollWidth-$+W)))}P.push({el:J,top:H,left:ee})}return P}function S9(e){return e===Object(e)&&Object.keys(e).length!==0}function Wn(e,t){return ks(t)&&O.hasDOMNode(e,t,{editable:!0})}function C9(e,t){if(e.getConfig().readOnly)return!1;var r=Bl(e,t)&&O.toSlateNode(e,t);return x.isVoid(e,r)}function Bl(e,t){return ks(t)&&O.hasDOMNode(e,t)}function MI(e,t,r){r===void 0&&(r=!1);var n=t.selection,o=t.getConfig(),i=O.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var a=i.type!=="None";if(n||a){var u=zS.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=O.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&Z.equals(l,n)){var c=!0;if(Z.isCollapsed(n)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,v=void 0;(v=p[d])&&v.matches("table")&&(c=!1),(v=p[d-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!n||O.hasRange(t,n)){e.isUpdatingSelection=!0;var m=n&&O.toDOMRange(t,n);if(m){Z.isBackward(n)?i.setBaseAndExtent(m.endContainer,m.endOffset,m.startContainer,m.startOffset):i.setBaseAndExtent(m.startContainer,m.startOffset,m.endContainer,m.endOffset);var g=m.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=m.getBoundingClientRect.bind(m);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(S9(b)&&typeof b.behavior=="function")return b.behavior(w?[]:x9(h,b));if(!w){var E=(function(C){return C===!1?{block:"end",inline:"nearest"}:S9(C)?C:{block:"start",inline:"nearest"}})(b);(function(C,S){S===void 0&&(S="auto");var k="scrollBehavior"in document.body.style;C.forEach((function(P){var G=P.el,J=P.top,M=P.left;G.scroll&&k?G.scroll({top:J,left:M,behavior:S}):(G.scrollTop=J,G.scrollLeft=M)}))})(x9(h,E),E.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){m&&Ld&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=O.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var r2=new WeakMap,D9=new WeakMap,kte={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"},Ote={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",deleteWord
vendor: 2,554 bytes, line 36
36Forward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Tte={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Pt=function(e){var t=kte[e],r=Ote[e],n=Tte[e],o=t&&tb(t),i=r&&tb(r),a=n&&tb(n);return function(u){return!(!o||!o(u))||!!(sx&&i&&i(u))||!(sx||!a||!a(u))}},It={isBold:Pt("bold"),isCompose:Pt("compose"),isMoveBackward:Pt("moveBackward"),isMoveForward:Pt("moveForward"),isDeleteBackward:Pt("deleteBackward"),isDeleteForward:Pt("deleteForward"),isDeleteLineBackward:Pt("deleteLineBackward"),isDeleteLineForward:Pt("deleteLineForward"),isDeleteWordBackward:Pt("deleteWordBackward"),isDeleteWordForward:Pt("deleteWordForward"),isExtendBackward:Pt("extendBackward"),isExtendForward:Pt("extendForward"),isExtendLineBackward:Pt("extendLineBackward"),isExtendLineForward:Pt("extendLineForward"),isItalic:Pt("italic"),isMoveLineBackward:Pt("moveLineBackward"),isMoveLineForward:Pt("moveLineForward"),isMoveWordBackward:Pt("moveWordBackward"),isMoveWordForward:Pt("moveWordForward"),isRedo:Pt("redo"),isSplitBlock:Pt("splitBlock"),isTransposeCharacter:Pt("transposeCharacter"),isUndo:Pt("undo"),isTab:Pt("tab"),isSelectAll:Pt("selectAll")};function ir(e){e.preventDefault()}var Fte={beforeinput:function(e,t,r){var n=e,o=r.getConfig().readOnly;if(Df&&!o&&Wn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=et(n.getTargetRanges(),1)[0];if(s){var l=O.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&Z.equals(i,l)||z.select(r,l)}}if(i&&Z.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";x.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":x.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":x.deleteForward(r);break;case"deleteContentBackward":x.deleteBackward(r);break;case"deleteEntireSoftLine":x.deleteBackward(r,{unit:"line"}),x.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":x.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":x.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":x.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":x.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":x.deleteBackward(r,{unit:"word"});break;
36case"deleteWordForward":x.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":x.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Lb.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&x.insertText(r,u)}}}},blur:function(e,t,r){var n=e,o=t.isUpdatingSelection,i=t.latestElement;if(!r.getConfig().readOnly&&!o&&Wn(r,n.target)){var a=O.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===O.toDOMNode(r,r)||mo(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&ks(u)&&O.hasDOMNode(r,u)){var s=O.toSlateNode(r,u);if(Ce.isElement(s)&&!r.isVoid(s))return}if(Cf){var l=a.getSelection();l?.removeAllRanges()}ns.delete(r)}}}},focus:function(e,t,r){var n=O.toDOMNode(r,r),o=O.findDocumentOrShadowRoot(r);t.latestElement=o.activeElement,Ld&&e.target!==n?n.focus():ns.set(r,!0)},click:function(e,t,r){if(!r.getConfig().readOnly&&Bl(r,e.target)&&ks(e.target)){var n=O.toSlateNode(r,e.target),o=O.findPath(r,n);if(x.hasPath(r,o)&&pe.get(r,o)===n){var i=x.start(r,o),a=x.end(r,o),u=x.void(r,{at:i}),s=x.void(r,{at:a});if(u&&s&&L.equals(u[1],s[1])){var l=x.range(r,i);z.select(r,l)}}}},compositionstart:function(e,t,r){if(Wn(r,e.target)){var n=r.selection;if(n&&Z.isExpanded(n)&&(x.deleteFragment(r),Promise.resolve().then((function(){MI(t,r,!0)}))),n&&Z.isCollapsed(n)){var o=O.toDOMRange(r,n).startContainer,i=o.textContent||"";r2.set(r,i),D9.set(r,o)}t.isComposing=!0,(function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)})(t,r)}},compositionend:function(e,t,r){var n=e;if(Wn(r,n.target)){t.isComposing=!1;var o=r.selection;if(o!=null){(lx||Ld)&&O.cleanExposedTexNodeInSelectionBlock(r);for(var i=Z.isBackward(o)?o.focus:o.anchor,a=et(x.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=et(x.node(r,i.path.slice(0,u+1)),1)[0];if(Ce.isElement(s)&&((Cf||Ld)&&s.type==="link"||s.type==="code")){O.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=O.getLeftLengthOfMaxLength(r);c<l.length?(O.toDOMRange(r,o).startContainer.textContent=r2.get(r)||"",c>0&&x.insertText(r,l.slice(0,c)),t.changeViewState()):x.insertText(r,l)}else x.insertText(r,l);Cf||setTimeout((function(){var f=r.selection;if(f!=null){var d=D9.get(r);d!=null&&O.toDOMRange(r,f).startContainer!==d&&(d.textContent=r2.get(r)||"")}}))}}}},compositionupdate:function(e,t,r){Wn(r,e.target)&&(t.isComposing=!0)},keydown:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&!t.isComposing&&Wn(r,n.target)){if((function(a,u){var s=Oy.get(a),l=s&&s.getMenus(),c=L0.get(a),f=c&&c.getMenus(),d=Yn(Yn({},l),f);for(var p in d){var v=d[p],m=v.hotkey;if(m&&ZY(m,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}})(r,n),It.isTab(n))return ir(n),void r.handleTab();if(It.isRedo(n))return ir(n),void(typeof r.redo=="function"&&r.redo());if(It.isUndo(n))return ir(n),void(typeof r.undo=="function"&&r.undo());if(It.isMoveLineBackward(n))return ir(n),void z.move(r,{unit:"line",reverse:!0});if(It.isMoveLineForward(n))return ir(n),void z.move(r,{unit:"line"});if(It.isExtendLineBackward(n))return ir(n),void z.move(r,{unit:"line",edge:"focus",reverse:!0});if(It.isExtendLineForward(n))return ir(n),void z.move(r,{unit:"line",edge:"focus"});if(It.isMoveBackward(n))return ir(n),void(o&&Z.isCollapsed(o)?z.move(r,{reverse:!0}):z.collapse(r,{edge:"start"}));if(It.isMoveForward(n))return ir(n),void(o&&Z.isCollapsed(o)?z.move(r):z.collapse(r,{edge:"end"}));if(It.isMoveWordBackward(n))return ir(n),o&&Z.isExpanded(o)&&z.collapse(r,{edge:"focus"}),void z.move(r,{unit:"word",reverse:!0});if(It.isMoveWordForward(n))return ir(n),o&&Z.isExpanded(o)&&z.collapse(r,{edge:"focus"}),void z.move(r,{unit:"word"});if(It.isSelectAll(n))return ir(n),void r.selectAll();if(Df){if((lx||Cf)&&o&&(It.isDeleteBackward(n)||It.isDeleteForward(n))&&Z.isCollapsed(o)){var i=pe.parent(r,o.anchor.path);if(Ce.isElement(i)&&x.isVoid(r,i)&&x.isInline(r,i))return n.preventDefault(),void z.delete(r,{unit:"block"})}}else{if(It.isBold(n)||It.isItalic(n)||It.isTransposeCharacter(n))return void ir(n);if(It.isSplitBlock(n))return ir(n),void x.insertBreak(r);if(It.isDeleteBackward(n))return ir(n),void(o&&Z.isExpanded(o)?x.deleteFragment(r,{direction:"backward"}):x.deleteBackward(r));if(It.isDeleteForward(n))return ir(n),void(o&&Z.isExpanded(o)?x.deleteFragment(r,{direction:"forward"}):x.deleteForward(r));if(It.isDeleteLineBackward(n))return ir(n),void(o&&Z.isExpanded(o)?x.deleteFragment(r,{direction:"backward"}):x.deleteBackward(r,{unit:"line"}));if(It.isDeleteLineForward(n))return ir(n),void(o&&Z.isExpanded(o)?x.deleteFragment(r,{direction:"forward"}):x.deleteForward(r,{unit:"line"}));if(It.isDeleteWordBackward(n))return ir(n),void(o&&Z.isExpanded(o)?x.deleteFragment(r,{direction:"backward"}):x.deleteBackward(r,{unit:"word"}));
36if(It.isDeleteWordForward(n))return ir(n),void(o&&Z.isExpanded(o)?x.deleteFragment(r,{direction:"forward"}):x.deleteForward(r,{unit:"word"}))}}},keypress:function(e,t,r){if(!Df&&!r.getConfig().readOnly&&Wn(r,e.target)){e.preventDefault();var n=e.key;x.insertText(r,n)}},copy:function(e,t,r){var n=e;if(Wn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&Wn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(Z.isExpanded(o))x.deleteFragment(r);else{var a=pe.parent(r,o.anchor.path);x.isVoid(r,a)&&z.delete(r)}}},paste:function(e,t,r){Lb.set(r,!0);var n=e;if(!r.getConfig().readOnly&&Wn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void Lb.set(r,!1);if(!Df||(function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1})(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(e,t,r){if(Bl(r,e.target)){var n=O.toSlateNode(r,e.target);x.isVoid(r,n)&&e.preventDefault()}},dragstart:function(e,t,r){var n=e;if(Bl(r,n.target)&&!r.getConfig().readOnly){var o=O.toSlateNode(r,n.target),i=O.findPath(r,o);if(x.isVoid(r,o)||x.void(r,{at:i,voids:!0})){var a=x.range(r,i);z.select(r,a)}var u=n.dataTransfer;u!=null&&(t.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(e,t,r){var n=e;r.getConfig().readOnly||t.isDraggingInternally&&Bl(r,n.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,r){var n=e,o=n.dataTransfer;if(!r.getConfig().readOnly&&Bl(r,n.target)&&o!=null&&!(Df&&Cf&&o.files.length>0)){n.preventDefault();var i=r.selection,a=O.findEventRange(r,n);z.select(r,a),t.isDraggingInternally&&(i&&z.delete(r,{at:i}),t.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},Bte=1,Pte=(function(){function e(t){var r=this;this.id=Bte++,this.$textArea=null,this.$progressBar=B('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=B('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Cs((function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var d=O.findDocumentOrShadowRoot(s),p=d.activeElement,v=O.toDOMNode(s,s),m=d.getSelection();if(p===v?(u.latestElement=p,ns.set(s,!0)):ns.delete(s),!m)return z.deselect(s);var g=m.anchorNode,y=m.focusNode,h=Wn(s,g)||C9(s,g),b=Wn(s,y)||C9(s,y);if(h&&b){var w=O.toSlateRange(s,m,{exactMatch:!1,suppressThrow:!1});z.select(s,w)}else z.deselect(s)}})(r,a)}),100);var n=B(t);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=n;var o=B('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=B('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,io((function(){var a=r.editorInstance,u=O.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",(function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)})),o.on("click",(function(){return a.hidePanelOrModal()})),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",(function(){return s(a)})),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=nx.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(lS(Fte,(function(i,a){r.on(a,(function(u){i(u,t,o)}))})),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Cs((function(){o.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",(function(){t.latestEditorSelection==null&&r.selection!=null?setTimeout((function(){return i&&i(r)})):t.latestEditorSelection!=null&&r.selection==null&&setTimeout((function(){return o&&o(r)})),t.latestEditorSelection=r.selection}))},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,r=t.getConfig().maxLength;if(r){var n=r-O.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},e.prototype.changeProgress=function(t){var r=this.$progressBar;r.css("width",t+"%"),t>=100&&setTimeout((function(){r.hide(),r.css("width","0"),r.show()}),1e3)},e.prototype.changeViewState=function(){var t=this,r=this.editorInstance;Ate(this,r),(function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=B('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}})(this,r),io((function(){MI(t,r)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e})();function eC(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&&eC(t)}function tC(){return B('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function $I(){return B('<div class="w-e-bar-divider"></div>')}function zI(e,t,r,n,o){if(o===void 0&&(o=!1),t){if(n){var i=sx?"cmd":"ctrl";n=n.replace("mod",i)}
36if(o)n&&(e.attr("data-tooltip",n),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=n?r+` 37`+n:r;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}LS("match",(function(e,t,r){return[function(n){var o=oo(this),i=n==null?void 0:_s(n,e);return i?it(i,n,o):new RegExp(n)[e](yt(o))},function(n){var o=Qt(this),i=yt(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return mp(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=mp(o,i))!==null;){var f=yt(s[0]);l[c]=f,f===""&&(o.lastIndex=RS(i,Lc(o.lastIndex),u)),c++}return c===0?null:l}]}));var rC=(function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,d=this.$button;if(f){var p=B(f);eC(p),d.append(p)}else d.text(u);zI(d,f,u,l,n),n&&f&&d.append(B('<span class="title">'+u+"</span>")),a&&d.css("width",a+"px"),d.attr("data-menu-key",t),this.$elem.append(d),io((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(r){r.preventDefault(),An(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())}))},e.prototype.exec=function(){var t=An(this),r=this.menu,n=r.getValue(t);r.exec(t,n)},e.prototype.setActive=function(){var t=An(this),r=this.$button,n="active";this.menu.isActive(t)?r.addClass(n):r.removeClass(n)},e.prototype.setDisabled=function(){var t=An(this),r=this.$button,n=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e})(),jte=(function(e){function t(r,n,o){return o===void 0&&(o=!1),e.call(this,r,n,o)||this}return Mc(t,e),t.prototype.onButtonClick=function(){},t})(rC),nC=(function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var r=ix.get(t);r==null&&(r=new Set,ix.set(t,r)),r.add(this),_v.set(this,t)},e.prototype.renderContent=function(t){var r=this.$elem;r.empty(),r.append(t);var n=this.genSelfElem();n&&r.append(n)},e.prototype.appendTo=function(t){var r=this.$elem;t.append(r)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=_v.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=_v.get(this);t&&t.emit("modalOrPanelHide")}},e})(),Nte=(function(e){function t(r){var n=e.call(this,r)||this;return n.type="dropPanel",n.$elem=B('<div class="w-e-drop-panel"></div>'),n}return Mc(t,e),t.prototype.genSelfElem=function(){return null},t})(nC),Ite=(function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=tC();i.$button.append(a)}return i}return Mc(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=An(this);if(this.dropPanel==null){var o=new Nte(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},t})(rC),Lte=(function(e){function t(r,n){n===void 0&&(n=0);var o=e.call(this,r)||this;o.type="modal",o.$elem=B('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",(function(a){return a.stopPropagation()})),i.on("keyup",(function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())})),o}return Mc(t,e),t.prototype.genSelfElem=function(){var r=this,n=B('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=_v.get(this);return n.on("click",(function(){r.hide(),o?.restoreSelection()})),n},t.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},t})(nC);function On(e,t,r){var n=B('<label class="babel-container"></label>');n.append("<span>"+e+"</span>");var o=B('<input type="text" id="'+t+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function $c(e,t){var r=B('<div class="button-container"></div>'),n=B('<button type="button" id="'+e+'">'+t+"</button>");return r.append(n),[r[0],n[0]]}var Rte=(function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;return i.$body=B("body"),i.modal=null,i.menu=n,i}return Mc(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var r=An(this),n=this.menu.getModalPositionNode(r);return Ce.isElement(n)?QS(r,n,"modal"):ZS(r)},t.prototype.handleModal=function(){var r=An(this),n=this.menu;if(this.modal==null){var o=new Lte(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=An(this),i=this.menu;if(i.getModalContentElem!=null){var a=O.getTextarea(o),u=O.getToolbar(o),s=(u?.getConfig()||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||vx(o,r.$elem),setTimeout((function(){o.blur()}))}},t})(rC),Mte=(function(e){function t(r,n){var o=e.call(this,r)||this;return o.type="selectList",o.$elem=B('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",(function(i){i.stopPropagation()})),o}return Mc(t,e),t.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=B("<ul></ul>");r.forEach((function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=B('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=B('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(B('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)})),n.append(o)},t.prototype.genSelfElem=function(){return null},t})(nC),$te=(function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=B('<div class="w-e-bar-item"></div>'),this.$button=B('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var d=this.$button;u&&d.css("width",u+"px"),d.attr("data-menu-key",t),zI(d,l,a,f,n),this.$elem.a
37ppend(d),this.menu=r,io((function(){return o.init()}))}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",(function(r){r.preventDefault(),An(t).hidePanelOrModal(),t.trigger()}))},e.prototype.trigger=function(){var t=this,r=An(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new Mte(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",(function(a){var u=a.target;if(u!=null){a.preventDefault();var s=B(u).attr("data-value");t.onChange(s)}}))}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var r=An(this),n=this.menu;n.exec&&n.exec(r,t)},e.prototype.setSelectedValue=function(){var t=An(this),r=this.menu,n=r.getValue(t),o=(function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var d=u[f];if(d.value===s){c=d.text;break}}return c})(r.getOptions(t),n.toString()),i=this.$button,a=tC();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=An(this),r=this.menu.isDisabled(t),n=this.$button;(t.selection==null||t.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e})(),_9=(function(){function e(t){this.$elem=B('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=B('<div class="w-e-bar-item-menus-container"></div>'),this.$button=B('<button type="button"></button>');var r=t.key,n=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(n){var u=B(n);eC(u),a.append(u)}else a.text(o);a.attr("data-menu-key",r);var s=tC();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var r=t.$elem;this.$container.append(r)},e.prototype.observe=function(t){var r=this.$container;t.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,r=this.$container,n=this.$button,o=new MutationObserver((function(){var i=r.find("button"),a=i.length;if(a!==0){var u=0;i.each((function(s){B(s).hasClass("disabled")&&u++})),o.disconnect(),u===a?n.addClass("disabled"):n.removeClass("disabled"),t.observe(o)}}));return o},e})(),A9=new WeakMap;function An(e){var t=$S.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function HI(e,t,r){r===void 0&&(r=!1);var n=A9.get(t);if(n)return n;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;n=i?new Ite(e,t,r):a?new Rte(e,t,r):new jte(e,t,r)}if(o==="select"&&(n=new $te(e,t,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return A9.set(t,n),n}function zte(e,t){var r=e.selection;return r!=null&&!Z.isCollapsed(r)&&!O.getSelectedElems(e).some((function(n){if(e.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0}))&&!!ye.isText(t)}var Hte=(function(){function e(){var t=this;this.$elem=B('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=yN((function(){var r=t.isShow,n=t.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&Ce.isElement(i)&&r&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)}),200),io((function(){var r=t.getEditorInstance(),n=t.$elem;n.on("mousedown",(function(i){return i.preventDefault()}),{passive:!1}),O.getTextarea(r).$textAreaContainer.append(n),r.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-t[0].getBoundingClientRect().bottom<360&&(r=!0),r?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;
37io((function(){t.hoverbarItems.forEach((function(r){r.changeMenuState()}))}))},e.prototype.registerItems=function(t){var r=this,n=this.$elem;t.forEach((function(o){if(o!=="|")r.registerSingleItem(o);else{var i=$I();n.append(i)}}))},e.prototype.registerSingleItem=function(t){var r=this.getEditorInstance(),n=this.menus,o=n[t];if(o==null){var i=wp[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),n[t]=o}var a=HI(t,o);this.hoverbarItems.push(a),$S.set(a,r),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Ce.isElement(t)){var o=QS(r,t,"bar");return n.css(o),void vx(r,n)}if(ye.isText(t))return o=ZS(r),n.css(o),void vx(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,d=l||function(m,g){return O.checkNodeType(g,u)},p=et(x.nodes(t,{match:function(m){return d(t,m)},universal:!0}),1),v=p[0];if(v!=null)return n=v[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=ox.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,r=t===void 0?{}:t,n=r.text;return n&&n.match==null&&(n.match=zte),r},e.prototype.isSamePath=function(t,r){if(t==null||r==null)return!1;var n=O.findPath(null,t),o=O.findPath(null,r);return L.equals(n,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e})();function UI(e,t,r,n){if(bp.set(e,t),wc.set(e,r),Ce.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach((function(u,s){return UI(u,s,e,n)})),x.isVoid(n,e)){var i=et(pe.texts(e),1),a=et(i[0],1)[0];bp.set(a,0),wc.set(a,e)}}}function Ute(e){var t=e.selector,r=t===void 0?"":t,n=e.config,o=n===void 0?{}:n,i=e.content,a=e.html,u=e.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:E}=w;if(E.length>0){var C=E[E.length-1];Il.withoutSaving(h,(()=>{x.withoutNormalizing(h,(()=>{for(var S of C)h.apply(S)}))})),w.redos.pop(),w.undos.push(C)}},h.undo=()=>{var{history:w}=h,{undos:E}=w;if(E.length>0){var C=E[E.length-1];Il.withoutSaving(h,(()=>{x.withoutNormalizing(h,(()=>{var S=C.map(Ea.inverse).reverse();for(var k of S)h.apply(k)}))}
37)),w.redos.push(C),w.undos.pop()}},h.apply=w=>{var{operations:E,history:C}=h,{undos:S}=C,k=S[S.length-1],P=k&&k[k.length-1],G=(($,V)=>!(!V||$.type!=="set_selection"||V.type!=="set_selection"))(w,P),J=Il.isSaving(h),M=Il.isMerging(h);if(J==null&&(J=(($,V)=>$.type!=="set_selection"||$.properties!=null&&$.newProperties!=null)(w)),J){if(M==null&&(M=k!=null&&(E.length!==0||(($,V)=>$.type==="set_selection"||!(!V||$.type!=="insert_text"||V.type!=="insert_text"||$.offset!==V.offset+V.text.length||!L.equals($.path,V.path))||!(!V||$.type!=="remove_text"||V.type!=="remove_text"||$.offset+$.text.length!==V.offset||!L.equals($.path,V.path)))(w,P)||G)),k&&M)G&&k.pop(),k.push(w);else{var X=[w];S.push(X)}for(;S.length>100;)S.shift();($=>$.type!=="set_selection")(w)&&(C.redos=[])}b(w)},h})((function(y){var h=y,b=h.insertText,w=h.insertNode,E=h.insertFragment,C=h.dangerouslyInsertHtml;return h.insertText=function(S){if(h.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(h);k<=0||(k<S.length?b(S.slice(0,k)):b(S))}else b(S)},h.insertNode=function(S){if(h.getConfig().maxLength){var k=O.getLeftLengthOfMaxLength(h);k<=0||k<pe.string(S).length||w(S)}else w(S)},h.insertFragment=function(S){if(h.getConfig().maxLength)if(S.length!==1)S.forEach((function(P){h.insertNode(P)}));else{var k=S[0];if(O.getLeftLengthOfMaxLength(h)<pe.string(k).length)return;E(S)}else E(S)},h.dangerouslyInsertHtml=function(S,k){if(S===void 0&&(S=""),k===void 0&&(k=!1),S)if(h.getConfig().maxLength){var P=O.getLeftLengthOfMaxLength(h);if(!(P<=0)){var G=document.createElement("div");G.innerHTML=S;var J=Array.from(G.childNodes).reduce((function(M,X){var $=X.nodeType,V=X.nodeName;return X?$===Vo.TEXT_NODE?M+(X.textContent||""):$===Vo.ELEMENT_NODE?c9.has(V.toLowerCase())?M:M+(X.textContent||""):M:M}),"");P<J.length||C(S,k)}}else C(S,k)},h})((function(y){var h=y;return h.on=function(b,w){var E=Dg(h);if(E.on(b,w),b==="destroyed"&&g9(h,w),b!=="destroyed"){var C=function(){return E.off(b,w)};E.on("destroyed",C),g9(h,C)}},h.once=function(b,w){Dg(h).once(b,w)},h.off=function(b,w){Dg(h).off(b,w)},h.emit=function(b){for(var w=[],E=1;E<arguments.length;E++)w[E-1]=arguments[E];var C=Dg(h);C.emit.apply(C,ex([b],et(w))),b==="destroyed"&&(gte(h).forEach((function(S){return C.off("destroyed",S)})),vte(h))},h})((function(y){var h=y;return h.select=function(b){z.select(h,b)},h.deselect=function(){var b=h.selection,w=O.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&z.deselect(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||z.move(y,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=Ib.get(h);b!=null&&(h.focus(),z.select(h,b))},h.getSelectionPosition=function(){return ZS(h)},h.getNodePosition=function(b){return QS(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=et(Z.edges(b),2),E=w[0],C=w[1],S=et(x.edges(h,[]),2),k=S[0],P=S[1];return!(!He.equals(E,k)||!He.equals(C,P))},h.selectAll=function(){var b=x.start(h,[]),w=x.end(h,[]);z.select(h,{anchor:b,focus:w})},h})((function(y){var h=y,b=h.onChange,w=h.insertText,E=h.apply,C=h.deleteBackward;return h.insertText=function(S){h.getConfig().readOnly||w(S)},h.apply=function(S){var k,P,G,J,M,X,$,V,Q=[];switch(S.type){case"insert_text":case"remove_text":case"set_node":try{for(var ie=Xn(x.levels(h,{at:S.path})),le=ie.next();!le.done;le=ie.next()){var q=et(le.value,2),U=q[0],_=q[1],D=O.findKey(h,U);Q.push([_,D])}}catch(ze){k={error:ze}}finally{try{le&&!le.done&&(P=ie.return)&&P.call(ie)}finally{if(k)throw k.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var F=Xn(x.levels(h,{at:L.parent(S.path)})),H=F.next();!H.done;H=F.next()){var ee=et(H.value,2);U=ee[0],_=ee[1],D=O.findKey(h,U),Q.push([_,D])}}catch(ze){G={error:ze}}finally{try{H&&!H.done&&(J=F.return)&&J.call(F)}finally{if(G)throw G.error}}break;case"move_node":try{for(var W=Xn(x.levels(h,{at:L.common(L.parent(S.path),L.parent(S.newPath))})),I=W.next();!I.done;I=W.next()){var ne=et(I.value,2);U=ne[0],_=ne[1],D=O.findKey(h,U),Q.push([_,D])}}catch(ze){M={error:ze}}finally{try{I&&!I.done&&(X=W.return)&&X.call(W)}
vendor: 1,221 bytes, lines 37-38
37finally{if(M)throw M.error}}}E(S);try{for(var ae=Xn(Q),be=ae.next();!be.done;be=ae.next()){var K=et(be.value,2);_=K[0],D=K[1],U=et(x.node(h,_),1)[0],Av.set(U,D)}}catch(ze){$={error:ze}}finally{try{be&&!be.done&&(V=ae.return)&&V.call(ae)}finally{if($)throw $.error}}},h.deleteBackward=function(S){if(S!=="line")return C(S);if(y.selection&&Z.isCollapsed(y.selection)){var k=x.above(y,{match:function(M){return x.isBlock(y,M)},at:y.selection});if(k){var P=et(k,2)[1],G=x.range(y,P,y.selection.anchor),J=(function(M,X){var $=x.range(M,Z.end(X)),V=Array.from(x.positions(M,{at:X})),Q=0,ie=V.length,le=Math.floor(ie/2);if(t9(M,x.range(M,V[Q]),$))return x.range(M,V[Q],$);if(V.length<2)return x.range(M,V[V.length-1],$);for(;le!==V.length&&le!==Q;)t9(M,x.range(M,V[le]),$)?ie=le:Q=le,le=Math.floor((Q+ie)/2);return x.range(M,V[ie],$)})(h,G);Z.isCollapsed(J)||z.delete(y,{at:J})}}},h.onChange=function(){var S=h.selection;S!=null&&Ib.set(h,S),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var S=h.children;return(S===void 0?[]:S).map((function(k){return OI(k,h)})).join("")},h.getText=function(){var S=h.children;return(S===void 0?[]:S).map((function(k){return pe.string(k)})).join(` 38`)}
38,h.getSelectionText=function(){var S=h.selection;return S==null?"":x.string(y,S)},h.getElemsByType=function(S,k){var P,G;k===void 0&&(k=!1);var J=[],M=x.nodes(h,{at:[],universal:!0});try{for(var X=Xn(M),$=X.next();!$.done;$=X.next()){var V=et($.value,1)[0];if(Ce.isElement(V)&&(k?V.type.indexOf(S)>=0:V.type===S)){var Q=TI(O.findKey(h,V).id);J.push(Yn(Yn({},V),{id:Q}))}}}catch(ie){P={error:ie}}finally{try{$&&!$.done&&(G=X.return)&&G.call(X)}finally{if(P)throw P.error}}return J},h.getElemsByTypePrefix=function(S){return h.getElemsByType(S,!0)},h.isEmpty=function(){var S=h.children,k=S===void 0?[]:S;if(k.length>1)return!1;var P=k[0];if(P==null)return!0;if(Ce.isElement(P)&&P.type==="paragraph"){var G=P.children,J=G===void 0?[]:G;if(J.length>1)return!1;var M=J[0];if(M==null||ye.isText(M)&&M.text==="")return!0}return!1},h.clear=function(){z.delete(h,{at:{anchor:x.start(h,[]),focus:x.end(h,[])}}),h.children.length===0&&z.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(S){return O.getParentNode(h,S)},h.dangerouslyInsertHtml=function(S,k){if(S===void 0&&(S=""),k===void 0&&(k=!1),S){var P=document.createElement("div");P.innerHTML=S;var G=Array.from(P.childNodes);if(G=G.filter((function($){var V=$.nodeType,Q=$.nodeName;return V===Vo.TEXT_NODE||V===Vo.ELEMENT_NODE&&!c9.has(Q.toLowerCase())})),G.length!==0){var J=h.selection;if(J!=null){var M=null;O.isSelectedEmptyParagraph(h)&&!k&&(M=[J.focus.path[0]]),P.setAttribute("hidden","true"),document.body.appendChild(P);var X=0;G.forEach((function($){var V=$.nodeType,Q=$.nodeName,ie=$.textContent,le=ie===void 0?"":ie;if(V!==Vo.TEXT_NODE)if(Q!=="BR"){var q=$,U=!1;if(FI.includes(Q.toLowerCase()))U=!0;else for(var _ in H0)if(q.matches(_)){U=!0;break}if(U){var D=YS(B(q),h);return Array.isArray(D)?(D.forEach((function(H){return f9(h,H)})),X++):(f9(h,D),X++),void(O.isSelectedVoidNode(h)&&h.move(1))}var F=window.getComputedStyle(q).display;O.isSelectedEmptyParagraph(h)||F.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(q.innerHTML,!0)}else h.insertText(` 39`);else{if(!le||!le.trim())return;h.insertNode({text:le})}})),X&&M&&O.isEmptyPath(h,M)&&z.removeNodes(h,{at:M}),P.remove()}}}},h.setHtml=function(S){S===void 0&&(S="");var k=h.isDisabled(),P=h.isFocused(),G=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var J=u9(h,S);if(z.insertFragment(h,J),P||(h.deselect(),h.blur()),k&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(G))}catch{h.select(x.start(h,[]))}},h})((function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in wp)b.push(w);return b},h.getConfig=function(){var b=T7.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var E=h.getConfig().customAlert;E&&E(b,w)},h})((function(y){var h=rte(Dq());return h.id="wangEditor-"+lee++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(O.toDOMNode(h,h).focus({preventScroll:!0}),ns.set(h,!0),b){var w=x.end(h,[]);z.select(h,w)}else{var E=Ib.get(h);E?z.select(h,E):z.select(h,x.start(h,[]))}},h.isFocused=function(){return!!ns.get(h)},h.blur=function(){O.toDOMNode(h,h).blur(),z.deselect(h),ns.set(h,!1)},h.updateView=function(){O.getTextarea(h).changeViewState();var b=O.getToolbar(h);b&&b.changeToolbarState();var w=O.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=O.getTextarea(h);b.destroy(),rx.delete(h),nx.delete(b);var w=O.getToolbar(h);w&&(w.destroy(),Oy.delete(h),MS.delete(w));var E=O.getHoverbar(h);E&&(E.destroy(),L0.delete(h),ox.delete(E)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="ç¼è¾å¨ç¦ç¨äº scroll ï¼ç¼è¾å¨å å®¹æ æ³æ»å¨ï¼è¯·èªè¡å®ç°è¯¥åè½";return w+=` 40You has disabled editor scroll, please do this yourself`,void console.warn(w)}var E=B("#"+b);if(E.length!==0){var C=E[0];if(!O.hasDOMNode(h,C))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=` 41 éè¿ id '`+b+"' æ¾å°ç element ä¸å¨ editor DOM ä¹å ",void console.error(w,C);var S=O.getTextarea(h),k=S.$textAreaContainer,P=S.$scroll,G=E.offset().top,J=k.offset().top;P[0].scrollBy({top:G-J,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||O.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=ix.get(h);b?.forEach((function(w){return w.hide()}))},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return O.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=O.getToolbar(h);w&&(b=w.$box);var E=O.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==E[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent 42ä¸è½è®¾ç½®å ¨å±ï¼å 为 toolbar DOM ç¶èç¹å textarea DOM ç¶èç¹ä¸ä¸è´`);E.addClass("w-e-full-screen-container");var C=E.css("z-index");E.attr("data-z-index",C.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=O.getTextarea(h).$box.parent();setTimeout((function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")}),200)}},h.getEditableContainer=function(){return O.getTextarea(h).$textAreaContainer[0]},h})()))))));if(r&&(function(y,h){return NI(y,"data-w-e-textarea",h)})(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=(function(y){y===void 0&&(y={});var h=bN(pI),b={},w=y.MENU_CONF,E=w===void 0?{}:w;return lS(h,(function(C,S){b[S]=Yn(Yn({},C),E[S]||{})})),delete y.MENU_CONF,Yn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(C,S){window.alert(S+`: 43`+C)}},y)})(o);T7.set(l,c);var f=c.hoverbarKeys,d=f===void 0?{}:f;if(s.forEach((function(y){l=y(l)})),a!=null&&(l.children=u9(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),O.normalizeContent(l),r){var p=new Pte(r);rx.set(l,p),nx.set(p,l),p.changeViewState(),io((function(){var y=p.$scroll;y!=null&&y.height()<300&&console.warn(`ç¼è¾åºåé«åº¦ < 300px è¿å¯è½ä¼å¯¼è´ modal hoverbar å®ä½å¼å¸¸ 44Textarea height < 300px . This may be cause modal and hoverbar position error`,y)}));var v=void 0;Object.keys(d).length>0&&(v=new Hte,ox.set(v,l),L0.set(l,v)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}
44else l.children.forEach((function(y,h){return UI(y,h,l,l)}));var m=c.onCreated,g=c.onDestroyed;return m&&l.on("created",(function(){return m(l)})),g&&l.on("destroyed",(function(){return g(l)})),io((function(){return l.emit("created")})),l}var Vte=Dy("splice"),Wte=ce.TypeError,Gte=Math.max,qte=Math.min;Rt({target:"Array",proto:!0,forced:!Vte},{splice:function(e,t){var r,n,o,i,a,u,s=iu(this),l=Us(s),c=vc(e,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=qte(Gte(vh(t),0),l-c)),l+r-n>9007199254740991)throw Wte("Maximum allowed length exceeded");for(o=$N(s,n),i=0;i<n;i++)(a=c+i)in s&&gp(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var Kte=(function(){function e(t,r){var n=this;this.$toolbar=B('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=yN((function(){n.toolbarItems.forEach((function(a){a.changeMenuState()}))}),200),this.config=r;var o=B(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",(function(a){return a.preventDefault()}),{passive:!1}),o.append(i),io((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 t=this,r="",n=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=bN(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach((function(v,m){f.splice(s.index+m,0,v)})));var d=f.filter((function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0})),p=d.length;d.forEach((function(v,m){if(v==="|"){if(m===0||m+1===p||r==="|")return;var g=$I();return n.append(g),void(r=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(r=v);t.registerGroup(v),r="group"}))},e.prototype.registerGroup=function(t){var r=this,n=this.$toolbar,o=(function(l){return new _9(l)})(t),i=t.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach((function(l){s.includes(l)||r.registerSingleItem(l,o)})),n.append(o.$elem)},e.prototype.registerSingleItem=function(t,r){var n=this.getEditorInstance(),o=r instanceof _9,i=this.menus,a=i[t];if(a==null){var u=wp[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`' 45é夿³¨åäºèåæ menu '`+t+"'");var s=HI(t,a,o);this.toolbarItems.push(s),$S.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=MS.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e})(),Yte=Ic.EXISTS,Xte=Bo.f,VI=Function.prototype,Jte=Ae(VI.toString),WI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Zte=Ae(WI.exec);function GI(e){var t=e.server,r=t===void 0?"":t,n=e.fieldName,o=n===void 0?"":n,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,d=f!==void 0&&f,p=e.headers,v=p===void 0?{}:p,m=e.withCredentials,g=m!==void 0&&m,y=e.timeout,h=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(X){return X}:b,E=e.onSuccess,C=E===void 0?function(X,$){}:E,S=e.onError,k=S===void 0?function(X,$,V){console.error(X.name+" upload error",$,V)}:S,P=e.onProgress,G=P===void 0?function(X){}:P;if(!r)throw new Error(`Cannot get upload server address 46没æé ç½®ä¸ä¼ å°å`);if(!o)throw new Error(`Cannot get fieldName 47没æé ç½® fieldName`);var J=r;d&&(J=(function(X,$){var V=et(X.split("#"),2),Q=V[0],ie=V[1],le=[];lS($,(function(U,_){le.push(_+"="+U)}));var q=le.join("&");return Q=Q.indexOf("?")>0?Q+"&"+q:Q+"?"+q,ie?Q+"#"+ie:Q})(J,c));var M=new Ed({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(SJ,{endpoint:J,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return M.on("upload-success",(function(X,$){var V=$.body,Q=V===void 0?{}:V;try{C(X,Q)}catch(ie){console.error("wangEditor upload file - onSuccess error",ie)}M.removeFile(X.id)})),M.on("progress",(function(X){X<1||G(X)})),M.on("upload-error",(function(X,$,V){try{k(X,$,V)}catch(Q){console.error("wangEditor upload file - onError error",Q)}M.removeFile(X.id)})),M.on("restriction-failed",(function(X,$){try{k(X,$)}catch(V){console.error("wangEditor upload file - onError error",V)}M.removeFile(X.id)})),M}function Ta(e){return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}function Qte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ur(e){for(var t=1;t<arguments.length;
47t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter((function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable}))),n.forEach((function(o){Qte(e,o,r[o])}))}return e}function Mi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $i(e,t,r){return t&&k9(e.prototype,t),r&&k9(e,r),e}function Os(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xp(e,t){if(t&&(Ta(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Os(e)}function Ec(e){return Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ec(e)}function bx(e,t){return bx=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},bx(e,t)}function Ty(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bx(e,t)}Dr&&!Yte&&Xte(VI,"name",{configurable:!0,get:function(){try{return Zte(WI,Jte(this))[1]}catch{return""}}});var ere={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)}},Ai=new((function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mi(this,e),this.init(t,r)}return $i(e,[{key:"init",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||ere,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[r](t))}},{key:"create",value:function(t){return new e(this.logger,ur({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e})()),Ya=(function(){function e(){Mi(this,e),this.observers={}}return $i(e,[{key:"on",value:function(t,r){var n=this;return t.split(" ").forEach((function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)})),this}},{key:"off",value:function(t,r){this.observers[t]&&(r?this.observers[t]=this.observers[t].filter((function(n){return n!==r})):delete this.observers[t])}},{key:"emit",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach((function(u){u.apply(void 0,n)}))}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach((function(u){u.apply(u,[t].concat(n))}))}}}]),e})();function Tf(){var e,t,r=new Promise((function(n,o){e=n,t=o}));return r.resolve=e,r.reject=t,r}function O9(e){return e==null?"":""+e}function tre(e,t,r){e.forEach((function(n){t[n]&&(r[n]=t[n])}))}function oC(e,t,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function T9(e,t,r){var n=oC(e,t,Object);n.obj[n.k]=r}function V0(e,t){var r=oC(e,t),n=r.obj,o=r.k;if(n)return n[o]}function F9(e,t,r){var n=V0(e,r);return n!==void 0?n:V0(t,r)}function qI(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):qI(e[n],t[n],r):e[n]=t[n]);return e}function ul(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rre={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function nre(e){return typeof e=="string"?e.replace(/[&<>
47"'\/]/g,(function(t){return rre[t]})):e}var Fy=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function KI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?KI(s,l,r):void 0}o=o[n[i]]}return o}}var ore=(function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Mi(this,t),n=xp(this,Ec(t).call(this)),Fy&&Ya.call(Os(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Ty(t,Ya),$i(t,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=V0(this.data,s);return l||!u||typeof o!="string"?l:KI(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),T9(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=V0(this.data,s)||{};i?qI(l,o,a):l=ur({},l,o),T9(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ur({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),t})(),YI={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach((function(a){i.processors[a]&&(t=i.processors[a].process(t,r,n,o))})),t}},B9={},P9=(function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Mi(this,t),n=xp(this,Ec(t).call(this)),Fy&&Ya.call(Os(n)),tre(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
47i18nFormat","utils"],r,Os(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Ai.create("translator"),n}return Ty(t,Ya),$i(t,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(Ta(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){var p=n.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var v=this.resolve(r,n),m=v&&v.res,g=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,C=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(E&&m&&C&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,ur({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var S=h==="[object Array]",k=S?[]:{},P=S?y:g;for(var G in m)if(Object.prototype.hasOwnProperty.call(m,G)){var J="".concat(P).concat(a).concat(G);k[G]=this.translate(J,ur({},n,{joinArrays:!1,ns:l})),k[G]===J&&(k[G]=m[G])}m=k}}else if(E&&typeof w=="string"&&h==="[object Array]")(m=m.join(w))&&(m=this.extendTranslation(m,r,n,o));else{var M=!1,X=!1,$=n.count!==void 0&&typeof n.count!="string",V=t.hasDefaultValue(n),Q=$?this.pluralResolver.getSuffix(f,n.count):"",ie=n["defaultValue".concat(Q)]||n.defaultValue;!this.isValidLookup(m)&&V&&(M=!0,m=ie),this.isValidLookup(m)||(X=!0,m=s);var le=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,q=le&&X?void 0:m,U=V&&ie!==m&&this.options.updateMissing;if(X||M||U){if(this.logger.log(U?"updateKey":"missingKey",f,c,s,U?ie:m),a){var _=this.resolve(s,ur({},n,{keySeparator:!1}));_&&_.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 D=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(var H=0;H<F.length;H++)D.push(F[H]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(n.lng||this.language):D.push(n.lng||this.language);var ee=function(W,I,ne){i.options.missingKeyHandler?i.options.missingKeyHandler(W,c,I,U?ne:q,U,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(W,c,I,U?ne:q,U,n),i.emit("missingKey",W,c,I,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?D.forEach((function(W){i.pluralResolver.getSuffixes(W).forEach((function(I){ee([W],s+I,n["defaultValue".concat(I)]||ie)}))})):ee(D,s,ie))}m=this.extendTranslation(m,r,n,v,o),X&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(s)),(X||M)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(ur({},o,{interpolation:ur({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=ur({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var d=r.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,(function(){for(var m=arguments.length,g=new Array(m),y=0;y<m;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(n[0])),null):u.translate.apply(u,g.concat([n]))}),o)),o.interpolation&&this.interpolator.reset()}var p=o.postProcess||this.options.postProcess,v=typeof p=="string"?[p]:p;return r!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(r=YI.handle(v,r,n,this.options&&this.options.postProcessPassResolved?ur({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach((function(c){if(!s.isValidLookup(n)){var f=s.extractFromKey(c,l),d=f.key;o=d;var p=f.namespaces;s.options.fallbackNS&&(p=p.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",m=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);p.forEach((function(y){s.isValidLookup(n)||(u=y,!B9["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(B9["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach((function(h){if(!s.isValidLookup(n)){a=h;var b,w,E=d,C=[E];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(C,d,h,y,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&m&&C.push(E+b),m&&C.push(E+="".concat(s.options.contextSeparator).concat(l.context)),v&&C.push(E+=b));w=C.pop();)s.isValidLookup(n)||(i=w,n=s.getResource(h,y,w,l))}})))}))}})),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),t})();function n2(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ire=(function(){function e(t){Mi(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ai.create("languageUtils")}return $i(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map((function(o){return o.toLowerCase()})):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=n2(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=n2(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=n2(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var r,n=this;
47return t?(t.forEach((function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}})),!r&&this.options.supportedLngs&&t.forEach((function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find((function(a){if(a.indexOf(i)===0)return a}))}})),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach((function(u){i.indexOf(u)<0&&a(n.formatLanguageCode(u))})),i}}]),e})(),are=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ure={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function sre(){var e={};return are.forEach((function(t){t.lngs.forEach((function(r){e[r]={numbers:t.nr,plurals:ure[t.fc]}}))})),e}var lre=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mi(this,e),this.languageUtils=t,this.options=r,this.logger=Ai.create("pluralResolver"),this.rules=sre()}return $i(e,[{key:"addRule",value:function(t,r){this.rules[t]=r}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var r=this.getRule(t);return r&&r.numbers.length>1}}
47,{key:"getPluralFormsOfKey",value:function(t,r){return this.getSuffixes(t).map((function(n){return r+n}))}},{key:"getSuffixes",value:function(t){var r=this,n=this.getRule(t);return n?n.numbers.map((function(o){return r.getSuffix(t,o)})):[]}},{key:"getSuffix",value:function(t,r){var n=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e})(),cre=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mi(this,e),this.logger=Ai.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return $i(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=r.escape!==void 0?r.escape:nre,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?ul(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?ul(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?ul(r.nestingPrefix):r.nestingPrefixEscaped||ul("$t("),this.nestingSuffix=r.nestingSuffix?ul(r.nestingSuffix):r.nestingSuffixEscaped||ul(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,r,n,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(m){return m.replace(/\$/g,"$$$$")}var f=function(m){if(m.indexOf(s.formatSeparator)<0){var g=F9(r,l,m);return s.alwaysFormat?s.format(g,void 0,n,ur({},o,r,{interpolationkey:m})):g}var y=m.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(F9(r,l,h),b,n,ur({},o,r,{interpolationkey:h}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(m){return c(m)}},{regex:this.regexp,safeValue:function(m){return s.escapeValue?c(s.escape(m)):c(m)}}];return v.forEach((function(m){for(u=0;i=m.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof d=="function"){var g=d(t,i,o);a=typeof g=="string"?g:""}else{if(p){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=O9(a));var y=m.safeValue(a);if(t=t.replace(i[0],y),p?(m.regex.lastIndex+=y.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,++u>=s.maxReplaces)break}})),t}}
47,{key:"nest",value:function(t,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=ur({},a);function s(d,p){var v=this.nestingOptionsSeparator;if(d.indexOf(v)<0)return d;var m=d.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(m[1]);d=m[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),p&&(u=ur({},p,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(d),y),"".concat(d).concat(v).concat(g)}return delete u.defaultValue,d}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(t);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(d){return d.trim()}));n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=O9(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce((function(d,p){return i.format(d,p,a.lng,ur({},a,{interpolationkey:n[1].trim()}))}),o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}]),e})(),fre=(function(e){function t(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Mi(this,t),i=xp(this,Ec(t).call(this)),Fy&&Ya.call(Os(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Ai.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return Ty(t,Ya),$i(t,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach((function(f){var d=!0;n.forEach((function(p){var v="".concat(f,"|").concat(p);!o.reload&&a.store.hasResourceBundle(f,p)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,d=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(p)<0&&c.push(p)))})),d||l.push(f)})),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach((function(l){(function(c,f,d,p){var v=oC(c,f,Object),m=v.obj,g=v.k;m[g]=m[g]||[],m[g].push(d)})(l.loaded,[a],u),(function(c,f){for(var d=c.indexOf(f);d!==-1;)c.splice(d,1),d=c.indexOf(f)})(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach((function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach((function(f){s[c].indexOf(f)<0&&s[c].push(f)}))})),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(l){return!l.done}))}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,(function(l,c){l&&c&&a<5?setTimeout((function(){i.read.call(i,r,n,o,a+1,2*u,s)}),u):s(l,c)})):s(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach((function(s){o.loadOne(s)}))}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,(function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)}))}},{key:"saveMissing",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,ur({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),t})();function dre(){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(Ta(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="str
47ing"&&(t.tDescription=e[2]),Ta(e[2])==="object"||Ta(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach((function(n){t[n]=r[n]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function j9(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 Ag(){}var pre=(function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Mi(this,t),r=xp(this,Ec(t).call(this)),Fy&&Ya.call(Os(r)),r.options=j9(n),r.services={},r.logger=Ai,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),xp(r,Os(r));setTimeout((function(){r.init(n,o)}),0)}return r}return Ty(t,Ya),$i(t,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(p){return p?typeof p=="function"?new p:p:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=ur({},dre(),this.options,j9(n)),this.format=this.options.interpolation.format,o||(o=Ag),!this.options.isClone){this.modules.logger?Ai.init(i(this.modules.logger),this.options):Ai.init(null,this.options);var a=new ire(this.options);this.store=new ore(this.options.resources,this.options);var u=this.services;u.logger=Ai,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new lre(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new cre(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new fre(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];r.emit.apply(r,[p].concat(m))})),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new P9(this.services,this.options),this.translator.on("*",(function(p){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];r.emit.apply(r,[p].concat(m))})),this.modules.external.forEach((function(p){p.init&&p.init(r)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];
47c.forEach((function(p){r[p]=function(){var v;return(v=r.store)[p].apply(v,arguments),r}}));var f=Tf(),d=function(){var p=function(v,m){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(m),o(v,m)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ag,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach((function(f){u.indexOf(f)<0&&u.push(f)}))};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach((function(c){return s(c)}))}this.options.preload&&this.options.preload.forEach((function(c){return s(c)})),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=Tf();return r||(r=this.languages),n||(n=this.options.ns),o||(o=Ag),this.services.backendConnector.reload(r,n,(function(a){i.resolve(),o(a)})),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&YI.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Tf();this.emit("languageChanging",r);var a=function(u){r||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,(function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve((function(){return o.t.apply(o,arguments)})),n&&n(c,(function(){return o.t.apply(o,arguments)}))})(l,s)}))};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(Ta(l)!=="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),p=2;p<f;p++)d[p-2]=arguments[p];c=i.options.overloadTranslationOptionHandler([s,l].concat(d))}else c=ur({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",m=o?"".concat(o).concat(v).concat(s):s;return i.t(m,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
47if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var d=n.services.backendConnector.state["".concat(c,"|").concat(f)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Tf();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach((function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)})),this.loadResources((function(a){i.resolve(),n&&n(a)})),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Tf();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter((function(u){return i.indexOf(u)<0}));return a.length?(this.options.preload=i.concat(a),this.loadResources((function(u){o.resolve(),n&&n(u)})),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ag,i=ur({},this.options,n,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach((function(s){a[s]=r[s]})),a.services=ur({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new P9(a.services,a.options),a.translator.on("*",(function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))})),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t})(),W0=new pre;function gn(e,t){W0.addResourceBundle(e,"translation",t,!0,!0)}W0.init({lng:"zh-CN",resources:{}});var he=W0.t.bind(W0);gn("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),gn("zh-CN",{editor:{more:"æ´å¤",justify:"对é½",indent:"缩è¿",image:"å¾ç",video:"è§é¢"}});var hre=K3?{}.toString:function(){return"[object "+cy(this)+"]"};K3||Es(Object.prototype,"toString",hre,{unsafe:!0});var N9=Array.isArray||function(e){return Ju(e)=="Array"},XI=function(){},gre=[],JI=uh("Reflect","construct"),iC=/^\s*(?:class|function)\b/,vre=gt(iC.exec),mre=!iC.exec(XI),Ff=function(e){if(!wr(e))return!1;try{return JI(XI,gre,e),!0}catch{return!1}},yre=!JI||Or((function(){var e;return Ff(Ff.call)||!Ff(Object)||!Ff((function(){e=!0}))||e}))?function(e){if(!wr(e))return!1;switch(cy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return mre||!!vre(iC,U3(e))}:Ff,bre=tn("species"),I9=Ie.Array,wre=function(e,t){return new((function(r){var n;return N9(r)&&(n=r.constructor,(yre(n)&&(n===I9||N9(n.prototype))||Wo(n)&&(n=n[bre])===null)&&(n=void 0)),n===void 0?I9:n})(e))(t===0?0:t)},L9=gt([].push),Ere=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=M3(s),m=pj(v),g=_j(l,c),y=ly(m),h=0,b=f||wre,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:L9(w,d)}else switch(e){case 4:return!1;case 7:L9(w,d)}return i?-1:n||o?o:w}},xre={forEach:Ere(0)}
47.forEach,Sre=(function(e,t){var r=[][e];return!!r&&Or((function(){r.call(null,t||function(){throw 1},1)}))})("forEach"),o2=Sre?[].forEach:function(e){return xre(this,e,arguments.length>1?arguments[1]:void 0)},ZI=function(e){if(e&&e.forEach!==o2)try{sn(e,"forEach",o2)}catch{e.forEach=o2}};for(var i2 in c0)c0[i2]&&ZI(Ie[i2]&&Ie[i2].prototype);ZI(Oj),gn("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),gn("zh-CN",{common:{ok:"ç¡®å®",delete:"å é¤",enter:"å车"},blockQuote:{title:"å¼ç¨"},codeBlock:{title:"代ç å"},color:{color:"æåé¢è²",bgColor:"èæ¯è²",default:"é»è®¤é¢è²",clear:"æ¸
é¤èæ¯è²"},divider:{title:"åå²çº¿"},emotion:{title:"表æ
"},fontSize:{title:"åå·",default:"é»è®¤åå·"},fontFamily:{title:"åä½",default:"é»è®¤åä½"},fullScreen:{title:"å
¨å±"},header:{title:"æ é¢",text:"æ£æ"},image:{netImage:"ç½ç»å¾ç",delete:"å é¤å¾ç",edit:"ç¼è¾å¾ç",viewLink:"æ¥ç龿¥",src:"å¾çå°å",desc:"å¾çæè¿°",link:"å¾ç龿¥"},indent:{decrease:"åå°ç¼©è¿",increase:"å¢å 缩è¿"},justify:{left:"左对é½",right:"å³å¯¹é½",center:"å±
ä¸å¯¹é½",justify:"两端对é½"},lineHeight:{title:"è¡é«",default:"é»è®¤è¡é«"},link:{insert:"æå
¥é¾æ¥",text:"龿¥ææ¬",url:"龿¥å°å",unLink:"忶龿¥",edit:"ä¿®æ¹é¾æ¥",view:"æ¥ç龿¥"},textStyle:{bold:"ç²ä½",clear:"æ¸
餿 ¼å¼",code:"è¡å
代ç ",italic:"æä½",sub:"䏿 ",sup:"䏿 ",through:"å é¤çº¿",underline:"ä¸å线"},undo:{undo:"æ¤é",redo:"éå"},todo:{todo:"å¾
å"}});var Cre={type:"paragraph",renderElem:function(e,t,r){return Be("p",null,t)}},G0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function By(e){var t={exports:{}};return e(t,t.exports),t.exports}var ra,kv,kg=function(e){return e&&e.Math==Math&&e},Me=kg(typeof globalThis=="object"&&globalThis)||kg(typeof window=="object"&&window)||kg(typeof self=="object"&&self)||kg(typeof G0=="object"&&G0)||(function(){return this})()||Function("return this")(),Mt=function(e){try{return!!e()}catch{return!0}},Oo=!Mt((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Bf=Function.prototype.call,Jt=Bf.bind?Bf.bind(Bf):function(){return Bf.apply(Bf,arguments)},R9={}.propertyIsEnumerable,M9=Object.getOwnPropertyDescriptor,Dre=M9&&!R9.call({1:2},1)?function(e){var t=M9(this,e);return!!t&&t.enumerable}:R9,QI={f:Dre},aC=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},eL=Function.prototype,wx=eL.bind,Ex=eL.call,_re=wx&&wx.bind(Ex),Te=wx?function(e){return e&&_re(Ex,e)}:function(e){return e&&function(){return Ex.apply(e,arguments)}},Are=Te({}.toString),kre=Te("".slice),Fa=function(e){return kre(Are(e),8,-1)},a2=Me.Object,Ore=Te("".split),Py=Mt((function(){return!a2("z").propertyIsEnumerable(0)}))?function(e){return Fa(e)=="String"?Ore(e,""):a2(e)}:a2,Tre=Me.TypeError,ao=function(e){if(e==null)throw Tre("Can't call method on "+e);return e},zc=function(e){return Py(ao(e))},Wr=function(e){return typeof e=="function"},qo=function(e){return typeof e=="object"?e!==null:Wr(e)},Fre=function(e){return Wr(e)?e:void 0},bh=function(e,t){return arguments.length<2?Fre(Me[e]):Me[e]&&Me[e][t]},tL=Te({}.isPrototypeOf),u2=bh("navigator","userAgent")||"",$9=Me.process,z9=Me.Deno,H9=$9&&$9.versions||z9&&z9.ver
47sion,U9=H9&&H9.v8;U9&&(kv=(ra=U9.split("."))[0]>0&&ra[0]<4?1:+(ra[0]+ra[1])),!kv&&u2&&(!(ra=u2.match(/Edge\/(\d+)/))||ra[1]>=74)&&(ra=u2.match(/Chrome\/(\d+)/))&&(kv=+ra[1]);var xx=kv,Sx=!!Object.getOwnPropertySymbols&&!Mt((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xx&&xx<41})),uC=Sx&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Bre=Me.Object,s2=uC?function(e){return typeof e=="symbol"}:function(e){var t=bh("Symbol");return Wr(t)&&tL(t.prototype,Bre(e))},Pre=Me.String,rL=function(e){try{return Pre(e)}catch{return"Object"}},jre=Me.TypeError,nL=function(e){if(Wr(e))return e;throw jre(rL(e)+" is not a function")},jy=function(e,t){var r=e[t];return r==null?void 0:nL(r)},Nre=Me.TypeError,Ire=Object.defineProperty,sC=function(e,t){try{Ire(Me,e,{value:t,configurable:!0,writable:!0})}catch{Me[e]=t}return t},Ba=Me["__core-js_shared__"]||sC("__core-js_shared__",{}),lC=By((function(e){(e.exports=function(t,r){return Ba[t]||(Ba[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Lre=Me.Object,wh=function(e){return Lre(ao(e))},Rre=Te({}.hasOwnProperty),Zn=Object.hasOwn||function(e,t){return Rre(wh(e),t)},Mre=0,$re=Math.random(),zre=Te(1 .toString),oL=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zre(++Mre+$re,36)},Pf=lC("wks"),is=Me.Symbol,V9=is&&is.for,Hre=uC?is:is&&is.withoutSetter||oL,Rn=function(e){if(!Zn(Pf,e)||!Sx&&typeof Pf[e]!="string"){var t="Symbol."+e;Sx&&Zn(is,e)?Pf[e]=is[e]:Pf[e]=uC&&V9?V9(t):Hre(t)}return Pf[e]},Ure=Me.TypeError,Vre=Rn("toPrimitive"),cC=function(e){var t=(function(r,n){if(!qo(r)||s2(r))return r;var o,i=jy(r,Vre);if(i){if(o=Jt(i,r,n),!qo(o)||s2(o))return o;throw Ure("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Wr(s=a.toString)&&!qo(l=Jt(s,a))||Wr(s=a.valueOf)&&!qo(l=Jt(s,a)))return l;throw Nre("Can't convert object to primitive value")})(r)})(e,"string");return s2(t)?t:t+""},Cx=Me.document,Wre=qo(Cx)&&qo(Cx.createElement),fC=function(e){return Wre?Cx.createElement(e):{}},iL=!Oo&&!Mt((function(){return Object.defineProperty(fC("div"),"a",{get:function(){return 7}}).a!=7})),W9=Object.getOwnPropertyDescriptor,dC={f:Oo?W9:function(e,t){if(e=zc(e),t=cC(t),iL)try{return W9(e,t)}catch{}if(Zn(e,t))return aC(!Jt(QI.f,e,t),e[t])}},Gre=Me.String,qre=Me.TypeError,Tn=function(e){if(qo(e))return e;throw qre(Gre(e)+" is not an object")},Kre=Me.TypeError,G9=Object.defineProperty,Hc={f:Oo?G9:function(e,t,r){if(Tn(e),t=cC(t),Tn(r),iL)try{return G9(e,t,r)}catch{}if("get"in r||"set"in r)throw Kre("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},xc=Oo?function(e,t,r){return Hc.f(e,t,aC(1,r))}:function(e,t,r){return e[t]=r,e},Yre=Te(Function.toString);Wr(Ba.inspectSource)||(Ba.inspectSource=function(e){return Yre(e)});var Dx,q0,_x,pC=Ba.inspectSource,q9=Me.WeakMap,Xre=Wr(q9)&&/native code/.test(pC(q9)),K9=lC("keys"),aL=function(e){return K9[e]||(K9[e]=oL(e))},hC={},Y9=Me.TypeError,Jre=Me.WeakMap;if(Xre||Ba.state){var Su=Ba.state||(Ba.state=new Jre),Zre=Te(Su.get),X9=Te(Su.has),Qre=Te(Su.set);Dx=function(e,t){if(X9(Su,e))throw new Y9("Object already initialized");return t.facade=e,Qre(Su,e,t),t},q0=function(e){return Zre(Su,e)||{}},_x=function(e){return X9(Su,e)}}else{var sl=aL("state");hC[sl]=!0,Dx=function(e,t){if(Zn(e,sl))throw new Y9("Object already initialized");return t.facade=e,xc(e,sl,t),t},q0=function(e){return Zn(e,sl)?e[sl]:{}},_x=function(e){return Zn(e,sl)}}var Ax={get:q0,enforce:function(e){return _x(e)?q0(e):Dx(e,{})}},uL=Function.prototype,ene=Oo&&Object.getOwnPropertyDescriptor,l2=Zn(uL,"name"),Ny={EXISTS:l2,PROPER:l2&&(function(){}).name==="something",CONFIGURABLE:l2&&(!Oo||Oo&&ene(uL,"name").configurable)},Sp=By((function(e){var t=Ny.CONFIGURABLE,r=Ax.get,n=Ax.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;Wr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Zn(u,"name")||t&&u.name!==p)&&xc(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Me?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:xc(i,a,u)):f?i[a]=u:sC(a,u)})(Function.prototype,"toString",(function(){return Wr(this)&&r(this).source||pC(this)}))})),tne=Math.ceil,rne=Math.floor,Uc=function(e){var t=+e;return t!=t||t===0?0:(t>0?rne:tne)(t)}
47,nne=Math.max,one=Math.min,Cp=function(e,t){var r=Uc(e);return r<0?nne(r+t,0):one(r,t)},ine=Math.min,Eh=function(e){return e>0?ine(Uc(e),9007199254740991):0},Iy=function(e){return Eh(e.length)},J9=function(e){return function(t,r,n){var o,i=zc(t),a=Iy(i),u=Cp(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},sL={includes:J9(!0),indexOf:J9(!1)},ane=sL.indexOf,Z9=Te([].push),lL=function(e,t){var r,n=zc(e),o=0,i=[];for(r in n)!Zn(hC,r)&&Zn(n,r)&&Z9(i,r);for(;t.length>o;)Zn(n,r=t[o++])&&(~ane(i,r)||Z9(i,r));return i},K0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],une=K0.concat("length","prototype"),sne={f:Object.getOwnPropertyNames||function(e){return lL(e,une)}},cL={f:Object.getOwnPropertySymbols},lne=Te([].concat),cne=bh("Reflect","ownKeys")||function(e){var t=sne.f(Tn(e)),r=cL.f;return r?lne(t,r(e)):t},fne=function(e,t){for(var r=cne(t),n=Hc.f,o=dC.f,i=0;i<r.length;i++){var a=r[i];Zn(e,a)||n(e,a,o(t,a))}},dne=/#|\.prototype\./,xh=function(e,t){var r=hne[pne(e)];return r==vne||r!=gne&&(Wr(t)?Mt(t):!!t)},pne=xh.normalize=function(e){return String(e).replace(dne,".").toLowerCase()},hne=xh.data={},gne=xh.NATIVE="N",vne=xh.POLYFILL="P",mne=xh,yne=dC.f,yr=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Me:l?Me[u]||sC(u,{}):(Me[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=yne(r,n))&&a.value:r[n],!mne(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;fne(i,o)}(e.sham||o&&o.sham)&&xc(i,"sham",!0),Sp(r,n,i,e)}},Q9=Te(Te.bind),Y0=Array.isArray||function(e){return Fa(e)=="Array"},fL={};fL[Rn("toStringTag")]="z";var gC=String(fL)==="[object z]",bne=Rn("toStringTag"),wne=Me.Object,Ene=Fa((function(){return arguments})())=="Arguments",vC=gC?Fa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=wne(e),bne))=="string"?r:Ene?Fa(t):(n=Fa(t))=="Object"&&Wr(t.callee)?"Arguments":n},dL=function(){},xne=[],pL=bh("Reflect","construct"),mC=/^\s*(?:class|function)\b/,Sne=Te(mC.exec),Cne=!mC.exec(dL),jf=function(e){if(!Wr(e))return!1;try{return pL(dL,xne,e),!0}catch{return!1}},yC=!pL||Mt((function(){var e;return jf(jf.call)||!jf(Object)||!jf((function(){e=!0}))||e}))?function(e){if(!Wr(e))return!1;switch(vC(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Cne||!!Sne(mC,pC(e))}:jf,Dne=Rn("species"),ek=Me.Array,_ne=function(e,t){return new((function(r){var n;return Y0(r)&&(n=r.constructor,(yC(n)&&(n===ek||Y0(n.prototype))||qo(n)&&(n=n[Dne])===null)&&(n=void 0)),n===void 0?ek:n})(e))(t===0?0:t)},tk=Te([].push),Og=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=wh(s),m=Py(v),g=(function(E,C){return nL(E),C===void 0?E:Q9?Q9(E,C):function(){return E.apply(C,arguments)}})(l,c),y=Iy(m),h=0,b=f||_ne,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:tk(w,d)}else switch(e){case 4:return!1;case 7:tk(w,d)}return i?-1:n||o?o:w}},Ly={forEach:Og(0),map:Og(1),filter:Og(2),find:Og(5)},Ane=Rn("species"),bC=function(e){return xx>=51||!Mt((function(){var t=[];return(t.constructor={})[Ane]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},kne=Ly.filter;yr({target:"Array",proto:!0,forced:!bC("filter")},{filter:function(e){return kne(this,e,arguments.length>1?arguments[1]:void 0)}});var One=gC?{}.toString:function(){return"[object "+vC(this)+"]"};gC||Sp(Object.prototype,"toString",One,{unsafe:!0});var Tg,Tne=Me.String,Lt=function(e){if(vC(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Tne(e)},hL=function(){var e=Tn(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},wC=Me.RegExp,kx=Mt((function(){var e=wC("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));kx||Mt((function(){return!wC("a","y").sticky}));var gL={BROKEN_CARET:kx||Mt((function(){var e=wC("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:kx},Gl=Object.keys||function(e){return lL(e,K0)},Fne=Oo?Object.defineProperties:function(e,t){Tn(e);for(var r,n=zc(t),o=Gl(t),i=o.length,a=0;i>a;)Hc.f(e,r=o[a++],n[r]);return e},Bne=bh("document","documentElement"),vL=aL("IE_PROTO"),c2=function(){},mL=function(e){return"<script>"+e+"<\/script>"},rk=function(e){e.write(mL("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ov=function(){try{Tg=new ActiveXObject("htmlfile")}catch{}var e,t;Ov=typeof document<"u"?document.domain&&Tg?rk(Tg):((t=fC("iframe")).style.display="none",Bne.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(mL("document.F=Object")),e.close(),e.F):rk(Tg);for(var r=K0.length;r--;)delete Ov.prototype[K0[r]];return Ov()};hC[vL]=!0;var nk,f2,yL=Object.create||function(e,t){var r;return e!==null?(c2.prototype=Tn(e),r=new c2,c2.prototype=null,r[vL]=e):r=Ov(),t===void 0?r:Fne(r,t)},Pne=Me.RegExp,jne=Mt((function(){var e=Pne(".","s");return!(e.dotAll&&e.exec(` 48`)&&e.flags==="s")})),Nne=Me.RegExp,Ine=Mt((function(){var e=Nne("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),Lne=Ax.get,Rne=lC("native-string-replace",String.prototype.replace),X0=RegExp.prototype.exec,Ox=X0,Mne=Te("".charAt),$ne=Te("".indexOf),zne=Te("".replace),d2=Te("".slice),p2=(f2=/b*/g,Jt(X0,nk=/a/,"a"),Jt(X0,f2,"a"),nk.lastIndex!==0||f2.lastIndex!==0),ok=gL.BROKEN_CARET,h2=/()??/.exec("")[1]!==void 0;(p2||h2||ok||jne||Ine)&&(Ox=function(e){var t,r,n,o,i,a,u,s=this,l=Lne(s),c=Lt(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Jt(Ox,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ok&&s.sticky,v=Jt(hL,s),m=s.source,g=0,y=c;if(p&&(v=zne(v,"y",""),$ne(v,"g")===-1&&(v+="g"),y=d2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Mne(c,s.lastIndex-1)!==` 49`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),h2&&(r=new RegExp("^"+m+"$(?!\\s)",v)),p2&&(n=s.lastIndex),o=Jt(X0,p?r:s,y),p?o?(o.input=d2(o.input,g),o[0]=d2(o[
490],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:p2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),h2&&o&&o.length>1&&Jt(Rne,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=yL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Dp=Ox;yr({target:"RegExp",proto:!0,forced:/./.exec!==Dp},{exec:Dp});var EC=Function.prototype,ik=EC.apply,Hne=EC.bind,ak=EC.call,bL=typeof Reflect=="object"&&Reflect.apply||(Hne?ak.bind(ik):function(){return ak.apply(ik,arguments)}),Une=Rn("species"),g2=RegExp.prototype,xC=function(e,t,r,n){var o=Rn(e),i=!Mt((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Mt((function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Une]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Te(/./[o]),s=t(o,""[e],(function(l,c,f,d,p){var v=Te(l),m=c.exec;return m===Dp||m===g2.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}));Sp(String.prototype,e,s[0]),Sp(g2,o,s[1])}n&&xc(g2[o],"sham",!0)},Vne=Te("".charAt),uk=Te("".charCodeAt),Wne=Te("".slice),Gne=function(e){return function(t,r){var n,o,i=Lt(ao(t)),a=Uc(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=uk(i,a))<55296||n>56319||a+1===u||(o=uk(i,a+1))<56320||o>57343?e?Vne(i,a):n:e?Wne(i,a,a+2):o-56320+(n-55296<<10)+65536}},qne=Gne(!0),SC=function(e,t,r){return t+(r?qne(e,t).length:1)},Kne=Math.floor,v2=Te("".charAt),Yne=Te("".replace),m2=Te("".slice),Xne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jne=/\$([$&'`]|\d{1,2})/g,Zne=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=Jne;return o!==void 0&&(o=wh(o),s=Xne),Yne(i,s,(function(l,c){var f;switch(v2(c,0)){case"$":return"$";case"&":return e;case"`":return m2(t,0,r);case"'":return m2(t,a);case"<":f=o[m2(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Kne(d/10);return p===0?l:p<=u?n[p-1]===void 0?v2(c,1):n[p-1]+v2(c,1):l}f=n[d-1]}return f===void 0?"":f}))},Qne=Me.TypeError,_p=function(e,t){var r=e.exec;if(Wr(r)){var n=Jt(r,e,t);return n!==null&&Tn(n),n}if(Fa(e)==="RegExp")return Jt(Dp,e,t);throw Qne("RegExp#exec called on incompatible receiver")},Tx=Rn("replace"),eoe=Math.max,toe=Math.min,roe=Te([].concat),y2=Te([].push),sk=Te("".indexOf),lk=Te("".slice),noe="a".replace(/./,"$0")==="$0",ck=!!/./[Tx]&&/./[Tx]("a","$0")==="";xC("replace",(function(e,t,r){var n=ck?"$":"$0";return[function(o,i){var a=ao(this),u=o==null?void 0:jy(o,Tx);return u?Jt(u,o,a,i):Jt(t,Lt(a),o,i)},function(o,i){var a=Tn(this),u=Lt(o);if(typeof i=="string"&&sk(i,n)===-1&&sk(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=Wr(i);l||(i=Lt(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=_p(a,u);if(p===null||(y2(d,p),!c))break;Lt(p[0])===""&&(a.lastIndex=SC(u,Eh(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Lt((p=d[y])[0]),b=eoe(toe(Uc(p.index),u.length),0),w=[],E=1;E<p.length;E++)y2(w,(v=p[E])===void 0?v:String(v));var C=p.groups;if(l){var S=roe([h],w,b,u);C!==void 0&&y2(S,C);var k=Lt(bL(i,void 0,S))}else k=Zne(h,u,b,w,C,i);b>=g&&(m+=lk(u,g,b)+k,g=b+h.length)}return m+lk(u,g)}]}),!!Mt((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!noe||ck);var Fx=Rn("unscopables"),Bx=Array.prototype;Bx[Fx]==null&&Hc.f(Bx,Fx,{configurable:!0,value:yL(null)});var wL=function(e){Bx[Fx][e]=!0},ooe=Ly.find,fk=!0;"find"in[]&&Array(1).find((function(){fk=!1})),yr({target:"Array",proto:!0,forced:fk},{find:function(e){return ooe(this,e,arguments.length>1?arguments[1]:void 0)}}),wL("find");var ioe=Rn("match"),EL=function(e){var t;return qo(e)&&((t=e[ioe])!==void 0?!!t:Fa(e)=="RegExp")},aoe=Me.TypeError,uoe=Rn("species"),xL=function(e,t,r){var n=cC(t);n in e?Hc.f(e,n,aC(0,r)):e[n]=r},soe=Me.Array,loe=Math.max,dk=function(e,t,r){for(var n=Iy(e),o=Cp(t,n),i=Cp(r===void 0?n:r,n),a=soe(loe(i-o,0)),u=0;o<i;o++,u++)xL(a,u,e[o]);return a.length=u,a},ll=gL.UNSUPPORTED_Y,coe=Math.min,SL=[].push,foe=Te(/./.exec),cl=Te(SL),Nf=Te("".slice);xC("split",(function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=Lt(ao(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!EL(o))return Jt(t,a,o,u);for(var s,l,c,f=[],d=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),p=0,v=new RegExp(o.source,d+"g");(s=Jt(Dp,v,a))&&!((l=v.lastIndex)>p&&(cl(f,Nf(a,p,s.index)),s.length>1&&s.index<a.length&&bL(SL,f,dk(s,1)),c=s[0].length,p=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return p===a.length?!c&&foe(v,"")||cl(f,""):cl(f,Nf(a,p)),f.length>u?dk(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Jt(t,this,o,i)}:t,[function(o,i){var a=ao(this),u=o==null?void 0:jy(o,e);return u?Jt(u,o,a,i):Jt(n,Lt(a),o,i)},function(o,i){var a=Tn(this),u=Lt(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=(function(w,E){var C,S=Tn(w).constructor;return S===void 0||(C=Tn(S)[uoe])==null?E:(function(k){if(yC(k))return k;throw aoe(rL(k)+" is not a constructor")})(C)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(ll?"g":"y"),d=new l(ll?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return _p(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=ll?0:m;var y,h=_p(d,ll?Nf(u,m):u);if(h===null||(y=coe(Eh(d.lastIndex+(ll?m:0)),u.length))===v)m=SC(u,m,c);else{if(cl(g,Nf(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(cl(g,h[b]),g.length===p)return g;m=v=y}}return cl(g,Nf(u,v)),g}]}),!!Mt((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),ll);var Px=` 50\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\uFEFF`,pk=Te("".replace),J0="["+Px+"]",doe=Reg
50Exp("^"+J0+J0+"*"),poe=RegExp(J0+J0+"*$"),hoe=function(e){return function(t){var r=Lt(ao(t));return 1&e&&(r=pk(r,doe,"")),2&e&&(r=pk(r,poe,"")),r}},goe={trim:hoe(3)},voe=Ny.PROPER,moe=goe.trim;function CC(e){return B("<div>"+e+"</div>").children().filter((function(t){return t.tagName!=="BR"})).length===0}function Vc(e){return e.length===0?"":e[0].outerHTML}function Wc(e){return e.length?e[0].tagName.toLowerCase():""}function _o(e,t){for(var r="",n=(e.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===t&&(r=u[1].trim())}}return r}yr({target:"String",proto:!0,forced:Mt((function(){return!!Px.trim()||"âÂ
á ".trim()!=="âÂ
á "||voe&&Px.trim.name!=="trim"}))},{trim:function(){return moe(this)}}),yr({global:!0},{globalThis:Me}),S0&&(B.fn.css=S0),no&&(B.fn.append=no),eA&&(B.fn.prepend=eA),ic&&(B.fn.addClass=ic),ac&&(B.fn.removeClass=ac),uc&&(B.fn.hasClass=uc),ni&&(B.fn.on=ni),X_&&(B.fn.off=X_),qa&&(B.fn.focus=qa),ro&&(B.fn.attr=ro),b0&&(B.fn.removeAttr=b0),lc&&(B.fn.hide=lc),x0&&(B.fn.show=x0),_0&&(B.fn.parents=_0),sc&&(B.fn.dataset=sc),ri&&(B.fn.val=ri),D0&&(B.fn.text=D0),Ga&&(B.fn.html=Ga),dc&&(B.fn.children=dc),pc&&(B.fn.remove=pc),fc&&(B.fn.find=fc),w0&&(B.fn.width=w0),E0&&(B.fn.height=E0),Z_&&(B.fn.filter=Z_),hc&&(B.fn.empty=hc);var yoe={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e);return(t=t.filter((function(o){return!!ye.isText(o)||!!r.isInline(o)}))).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},jx=function(e,t){return jx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},jx(e,t);};function Nt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}jx(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xa=function(){return Xa=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xa.apply(this,arguments)};function uu(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r((function(f){f(c)}))).then(a,u)}s((n=n.apply(e,[])).next())}))}function su(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function CL(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ut(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function hk(e){var t=ut(x.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var r=t[0];if(!Ce.isElement(r)||r.type==="paragraph"||pe.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!ye.isText(o[0])&&(z.setNodes(e,{type:"paragraph"}),!0)}var boe={renderElems:[Cre],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[yoe],editorPlugin:function(e){var t=e.deleteBackward,r=e.deleteForward;e.insertText,e.insertBreak;var n=e;return n.deleteBackward=function(o){hk(n)||t(o)}
50,n.deleteForward=function(o){hk(n)||r(o)},n}},woe=/"/g,Eoe=Te("".replace),Dd=function(e,t,r,n){var o=Lt(ao(e)),i="<"+t;return r!==""&&(i+=" "+r+'="'+Eoe(Lt(n),woe,""")+'"'),i+">"+o+"</"+t+">"},_d=function(e){return Mt((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function b2(e,t){var r=t,n=e,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Cu(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}yr({target:"String",proto:!0,forced:_d("bold")},{bold:function(){return Dd(this,"b","","")}}),yr({target:"String",proto:!0,forced:_d("italics")},{italics:function(){return Dd(this,"i","","")}}),yr({target:"String",proto:!0,forced:_d("sub")},{sub:function(){return Dd(this,"sub","","")}}),yr({target:"String",proto:!0,forced:_d("sup")},{sup:function(){return Dd(this,"sup","","")}});var gk={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},w2=fC("span").classList,vk=w2&&w2.constructor&&w2.constructor.prototype,xoe=vk===Object.prototype?void 0:vk,DL=function(e,t){var r=[][e];return!!r&&Mt((function(){r.call(null,t||function(){throw 1},1)}))},Soe=Ly.forEach,E2=DL("forEach")?[].forEach:function(e){return Soe(this,e,arguments.length>1?arguments[1]:void 0)},_L=function(e){if(e&&e.forEach!==E2)try{xc(e,"forEach",E2)}catch{e.forEach=E2}};for(var x2 in gk)gk[x2]&&_L(Me[x2]&&Me[x2].prototype);function AL(e,t){return e.selection==null||!!ut(x.nodes(e,{match:function(r){return O.getNodeType(r)==="pre"||!!x.isVoid(e,r)},universal:!0}),1)[0]}function Coe(e,t){Object.keys(t).forEach((function(r){r!=="text"&&x.removeMark(e,r)}))}_L(xoe),yr({target:"Object",stat:!0,forced:Mt((function(){Gl(1)}))},{keys:function(e){return Gl(wh(e))}});var Vs=(function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var r=this.mark,n=x.marks(t);return n?n[r]:!!ut(x.nodes(t,{match:function(o){return o[r]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return AL(t,this.mark)},e.prototype.exec=function(t,r){var n=this.mark,o=this.marksNeedToRemove;r?t.removeMark(n):(t.addMark(n,!0),o&&o.forEach((function(i){return t.removeMark(i)})))},e})(),Doe='<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>',_oe='<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>',Aoe='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',koe='<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>',Ooe='<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>',kL='<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>',OL='<svg viewBox="0 0 1024 1024">
50<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>',Toe='<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>',Foe='<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>',Boe='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',Poe='<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>',joe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Noe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Ioe='<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>',Loe='<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>',Roe='<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>',Moe='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',$oe='<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>',zoe='<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>',Hoe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="bold",r.title=he("textStyle.bold"),r.iconSvg=Doe,r.hotkey="mod+b",r}return Nt(t,e),t})(Vs),Uoe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="code",r.title=he("textStyle.code"),r.iconSvg=Ooe,r.hotkey="mod+e",r}return Nt(t,e),t})(Vs),Voe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="italic",r.title=he("textStyle.italic"),r.iconSvg=Aoe,r.hotkey="mod+i",r}return Nt(t,e),t})(Vs),Woe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="through",r.title=he("textStyle.through"),r.iconSvg=koe,r.hotkey="mod+shift+x",r}return Nt(t,e),t})(Vs),Goe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="underline",r.title=he("textStyle.underline"),r.iconSvg=_oe,r.hotkey="mod+u",r}return Nt(t,e),t})(Vs),qoe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=he("textStyle.sub"),r.iconSvg=zoe,r.hotkey="",r}return Nt(t,e),t})(Vs),Koe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=he("textStyle.sup"),r.iconSvg=$oe,r.hotkey="",r}return Nt(t,e),t})(Vs),Yoe=(function(){function e(){this.title=he("textStyle.clear"),this.iconSvg
50='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return AL(t)},e.prototype.exec=function(t,r){var n,o,i=x.nodes(t,{match:function(s){return ye.isText(s)},universal:!0});try{for(var a=CL(i),u=a.next();!u.done;u=a.next())Coe(t,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},e})(),Xoe={renderStyle:function(e,t){var r=e,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=t;return n&&(c=Be("strong",null,c)),a&&(c=Be("code",null,c)),o&&(c=Be("em",null,c)),i&&(c=Be("u",null,c)),u&&(c=Be("s",null,c)),s&&(c=Be("sub",null,c)),l&&(c=Be("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Hoe}},{key:"underline",factory:function(){return new Goe}},{key:"italic",factory:function(){return new Voe}},{key:"through",factory:function(){return new Woe}},{key:"code",factory:function(){return new Uoe}},{key:"sub",factory:function(){return new qoe}},{key:"sup",factory:function(){return new Koe}},{key:"clearStyle",factory:function(){return new Yoe}}],styleToHtml:function(e,t){if(!ye.isText(e))return t;if(CC(t))return b2(e,t);var r=B(t);if(Wc(r)==="br")return b2(e,"<br>");var n=r.html();return n=b2(e,n),r.html(n),Vc(r)},parseStyleHtml:function(e,t,r){var n=B(e);if(!ye.isText(t))return t;var o=t;return Cu(n,"b,strong")&&(o.bold=!0),Cu(n,"i,em")&&(o.italic=!0),Cu(n,"u")&&(o.underline=!0),Cu(n,"s,strike")&&(o.through=!0),Cu(n,"sub")&&(o.sub=!0),Cu(n,"sup")&&(o.sup=!0),Cu(n,"code")&&(o.code=!0),o}};function Sh(e){return function(t,r,n){return Be("h"+e,null,r)}}var Joe={type:"header1",renderElem:Sh(1)},Zoe={type:"header2",renderElem:Sh(2)},Qoe={type:"header3",renderElem:Sh(3)},eie={type:"header4",renderElem:Sh(4)},tie={type:"header5",renderElem:Sh(5)},rie=Ny.PROPER,Nx=RegExp.prototype,TL=Nx.toString,nie=Te(hL),oie=Mt((function(){return TL.call({source:"a",flags:"b"})!="/a/b"})),iie=rie&&TL.name!="toString";(oie||iie)&&Sp(RegExp.prototype,"toString",(function(){var e=Tn(this),t=Lt(e.source),r=e.flags;return"/"+t+"/"+Lt(r===void 0&&tL(Nx,e)&&!("flags"in Nx)?nie(e):r)}),{unsafe:!0});var S2,aie=Me.TypeError,FL=function(e){if(EL(e))throw aie("The method doesn't accept regular expressions");return e},uie=Rn("match"),BL=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[uie]=!1,"/./"[e](t)}catch{}}return!1},sie=dC.f,mk=Te("".startsWith),lie=Te("".slice),cie=Math.min,yk=BL("startsWith");function PL(e){var t=ut(x.nodes(e,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1),r=t[0];if(r==null)return"paragraph";var n=ut(r,1)[0];return O.getNodeType(n)}function jL(e){return e.selection==null||!ut(x.nodes(e,{match:function(t){var r=O.getNodeType(t);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function NL(e,t){t&&z.setNodes(e,{type:t})}yr({target:"String",proto:!0,forced:!(!yk&&(S2=sie(String.prototype,"startsWith"),S2&&!S2.writable)||yk)},{startsWith:function(e){var t=Lt(ao(this));FL(e);var r=Eh(cie(arguments.length>1?arguments[1]:void 0,t.length)),n=Lt(e);return mk?mk(t,n,r):lie(t,r,r+n.length)===n}});var fie=(function(){function e(){this.title=he("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
50-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var r=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:he("header.text")}],n=this.getValue(t).toString();return r.forEach((function(o){o.value===n?o.selected=!0:delete o.selected})),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return PL(t)},e.prototype.isDisabled=function(t){return jL(t)},e.prototype.exec=function(t,r){NL(t,r.toString())},e})(),Ch=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return PL(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return jL(t)},e.prototype.exec=function(t,r){var n=this.type;NL(t,r===n?"paragraph":n)},e})(),die=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return Nt(t,e),t})(Ch),pie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return Nt(t,e),t})(Ch),hie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return Nt(t,e),t})(Ch),gie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return Nt(t,e),t})(Ch),vie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return Nt(t,e),t})(Ch),mie={key:"headerSelect",factory:function(){return new fie}},yie={key:"header1",factory:function(){return new die}},bie={key:"header2",factory:function(){return new pie}},wie={key:"header3",factory:function(){return new hie}},Eie={key:"header4",factory:function(){return new gie}},xie={key:"header5",factory:function(){return new vie}};function If(e){return function(t,r){return"<h"+e+">"+r+"</h"+e+">"}}function Lf(e){return function(t,r,n){var o=B(t);return(r=r.filter((function(i){return!!ye.isText(i)||!!n.isInline(i)}))).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:r}}}var Sie={renderElems:[Joe,Zoe,Qoe,eie,tie],elemsToHtml:[{type:"header1",elemToHtml:If(1)},{type:"header2",elemToHtml:If(2)},{type:"header3",elemToHtml:If(3)},{type:"header4",elemToHtml:If(4)},{type:"header5",elemToHtml:If(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Lf(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Lf(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Lf(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Lf(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Lf(5)}],menus:[mie,yie,bie,wie,Eie,xie],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var r=e;return r.insertBreak=function(){var n=ut(x.nodes(r,{match:function(o){return O.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&O.isSelectionAtLineEnd(e,n[1])?z.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},r}},fl=Object.assign,bk=Object.defineProperty,Cie=Te([].concat),wk=!fl||Mt((function(){if(Oo&&fl({b:1},fl(bk({},"a",{enumerable:!0,get:function(){bk(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(o){t[o]=o})),fl({},e)[r]!=7||Gl(fl({},t)).join("")!=n}))?function(e,t){for(var r=wh(e),n=arguments.length,o=1,i=cL.f,a=QI.f;n>o;)for(var u,s=Py(arguments[o++]),l=i?Cie(Gl(s),i(s)):Gl(s),c=l.length,f=0;c>f;)u=l[f++],Oo&&!Jt(a,s,u)||(r[u]=s[u]);return r}:fl;function Ts(e,t){e.data==null&&(e.data={});var r=e.data;r.style==null&&(r.style={}),Object.assign(r.style,t)}yr({target:"Object",stat:!0,forced:Object.assign!==wk},{assign:wk});var Die={selector:"font",preParseHtml:function(e){var t=B(e);if(Wc(t)!=="font")return e;var r=t.attr("color")||"";return r&&(t.removeAttr("color"),t.css("color",r)),t[0]}},IL=(function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){var r=this.mark,n=x.marks(t);return n&&n[r]?n[r]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!ut(x.nodes(t,{match:function(r){return O.getNodeType(r)==="pre"||!!x.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var r=this.mark;if(this.$content==null){var n=B('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=B(c).attr("data-value");f==="0"?x.removeMark(t,r):x.addMark(t,r,f)}})),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(r).colors;
50(a===void 0?[]:a).forEach((function(l){var c=B('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=B('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)}));var u="";r==="color"&&(u=he("color.default")),r==="bgColor"&&(u=he("color.clear"));var s=B(` 51 <li data-value="0" class="clear"> 52 <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> 53 `+u+` 54 </li> 55 `);return o.prepend(s),o[0]},e})(),_ie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("color.color"),r.iconSvg=Toe,r.mark="color",r}return Nt(t,e),t})(IL),Aie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("color.bgColor"),r.iconSvg=Foe,r.mark="bgColor",r}return Nt(t,e),t})(IL),Ek=["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)"],kie={renderStyle:function(e,t){var r=e,n=r.color,o=r.bgColor,i=t;return n&&Ts(i,{color:n}),o&&Ts(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!ye.isText(e))return t;var r,n=e,o=n.color,i=n.bgColor;return o||i?((CC(t)||Wc(r=B(t))!=="span")&&(r=B("<span>"+t+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),Vc(r)):t},preParseHtml:[Die],parseStyleHtml:function(e,t,r){var n=B(e);if(!ye.isText(t))return t;var o=t,i=_o(n,"color");i&&(o.color=i);var a=_o(n,"background-color");return a||(a=_o(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new _ie},config:{colors:Ek}},{key:"bgColor",factory:function(){return new Aie},config:{colors:Ek}}]},Oie=/^(?:\w+:)?\/\/(\S+)$/,Tie=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Fie=/^[^\s\.]+\.\S{2,}$/,Bie=sL.includes;function Ry(e){return e===void 0&&(e="r"),e+"-"+oN()}function DC(e){return e.replace(/</g,"<").replace(/>/g,">")}function LL(e,t,r,n){return uu(this,void 0,void 0,(function(){var o,i;return su(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function RL(e,t,r){return uu(this,void 0,void 0,(function(){var n;return su(this,(function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}}))}))}function _C(e){return e.selection==null||!!O.getSelectedElems(e).some((function(t){var r=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(r)||void 0}))}function C2(e,t){return{type:"link",url:DC(e),children:t?[{text:t}]:[]}}function ML(e,t,r){return uu(this,void 0,void 0,(function(){var n,o,i;return su(this,(function(a){switch(a.label){case 0:return r?(t||(t=r),e.restoreSelection(),_C(e)?[2]:[4,LL("insertLink",e,t,r)]):[2];case 1:return a.sent()?[4,RL("insertLink",e,r)]:[2];case 2:return n=a.sent(),(o=e.selection)==null||(Z.isCollapsed(o)?(e.insertText(" "),i=C2(n,t),z.insertN
vendor: 2,577 bytes, line 55
55odes(e,i),e.insertFragment([{text:" "}])):x.string(e,o)!==t?(e.deleteFragment(),i=C2(n,t),z.insertNodes(e,i)):(i=C2(n),z.wrapNodes(e,i,{split:!0}),z.collapse(e,{edge:"end"}))),[2]}}))}))}yr({target:"Array",proto:!0},{includes:function(e){return Bie(this,e,arguments.length>1?arguments[1]:void 0)}}),wL("includes");var Pie={type:"link",renderElem:function(e,t,r){var n=e,o=n.url,i=n.target;return Be("a",{href:o,target:i===void 0?"_blank":i},t)}},jie={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e);return(t=t.filter((function(o){return!!ye.isText(o)||!!r.isInline(o)}))).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:t}}};function D2(){return Ry("w-e-insert-link")}var Nie=(function(){function e(){this.title=he("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=D2(),this.urlInputId=D2(),this.buttonId=D2()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return _C(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=t.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=ut(On(he("link.text"),o),2),s=u[0],l=B(u[1]),c=ut(On(he("link.url"),i),2),f=c[0],d=B(c[1]),p=ut($c(a,he("common.ok")),1)[0];if(this.$content==null){var v=B("<div></div>");v.on("click","#"+a,(function(y){y.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();ML(t,h,b),t.hidePanelOrModal()})),this.$content=v}var m=this.$content;
55if(m.empty(),m.append(s),m.append(f),m.append(p),r==null||Z.isCollapsed(r))l.val("");else{var g=x.string(t,r);l.val(g)}return d.val(""),setTimeout((function(){l.focus()})),m[0]},e})();function xk(){return Ry("w-e-update-link")}var Iie=(function(){function e(){this.title=he("link.edit"),this.iconSvg=kL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=xk(),this.buttonId=xk()}return e.prototype.getSelectedLinkElem=function(t){var r=O.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return O.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var r=this.urlInputId,n=this.buttonId,o=ut(On(he("link.url"),r),2),i=o[0],a=B(o[1]),u=ut($c(n,he("common.ok")),1)[0];if(this.$content==null){var s=B("<div></div>");s.on("click","button",(function(f){f.preventDefault(),t.restoreSelection();var d=O.getSelectedNodeByType(t,"link"),p=d?pe.string(d):"",v=s.find("#"+r).val();(function(m,g,y){uu(this,void 0,void 0,(function(){var h,b;return su(this,(function(w){switch(w.label){case 0:return y?[4,LL("editLink",m,g,y)]:[2];case 1:return w.sent()?[4,RL("editLink",m,y)]:[2];case 2:return h=w.sent(),b={url:DC(h)},z.setNodes(m,b,{match:function(E){return O.checkNodeType(E,"link")}}),[2]}}))}))})(t,p,v),t.hidePanelOrModal()})),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(t);return a.val(c),setTimeout((function(){a.focus()})),l[0]},e})(),Lie=(function(){function e(){this.title=he("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||O.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||z.unwrapNodes(t,{match:function(n){return O.checkNodeType(n,"link")}})},e})(),Rie=(function(){function e(){this.title=he("link.view"),this.iconSvg=OL,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var r=O.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},e})(),Sk={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Mie={renderElems:[Pie],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var r=e,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[jie],menus:[{key:"insertLink",factory:function(){return new Nie},config:Sk},{key:"editLink",factory:function(){return new Iie},config:Sk},{key:"unLink",factory:function(){return new Lie}},{key:"viewLink",factory:function(){return new Rie}}],editorPlugin:function(e){var t=e.isInline,r=e.insertData,n=e.normalizeNode;
55e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if((function(l){if(typeof l!="string")return!1;var c=l.match(Oie);if(!c)return!1;var f=c[1];return!(!f||!Tie.test(f)&&!Fie.test(f))})(a)){if(!_C(o)){var u=o.selection;if(u!=null){var s=x.string(o,u);ML(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=ut(i,2),u=a[0],s=a[1];return O.getNodeType(u)!=="link"?n([u,s]):pe.string(u)===""?z.removeNodes(o,{at:s}):n([u,s])},o}},$ie=Te(1 .valueOf),zie=Me.RangeError,Hie=Me.RangeError,$L=Me.String,zL=Math.floor,Ix=Te((function(e){var t=Lt(ao(this)),r="",n=Uc(e);if(n<0||n==1/0)throw zie("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r})),Ck=Te("".slice),Rf=Te(1 .toFixed),Rl=function(e,t,r){return t===0?r:t%2==1?Rl(e,t-1,r*e):Rl(e*e,t/2,r)},dl=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=zL(o/1e7)},_2=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=zL(n/t),n=n%t*1e7},Dk=function(e){for(var t=6,r="";--t>=0;)if(r!==""||t===0||e[t]!==0){var n=$L(e[t]);r=r===""?n:r+Ix("0",7-n.length)+n}return r};function _k(e,t){return"w-e-image-container-"+O.findKey(e,t).id}yr({target:"Number",proto:!0,forced:Mt((function(){return Rf(8e-5,3)!=="0.000"||Rf(.9,0)!=="1"||Rf(1.255,2)!=="1.25"||Rf(0xde0b6b3a7640080,0)!=="1000000000000000128"}))||!Mt((function(){Rf({})}))},{toFixed:function(e){var t,r,n,o,i=$ie(this),a=Uc(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Hie("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return $L(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(t=(function(c){for(var f=0,d=c;d>=4096;)f+=12,d/=4096;for(;d>=2;)f+=1,d/=2;return f})(i*Rl(2,69,1))-69)<0?i*Rl(2,-t,1):i/Rl(2,t,1),r*=4503599627370496,(t=52-t)>0){for(dl(u,0,r),n=a;n>=7;)dl(u,1e7,0),n-=7;for(dl(u,Rl(10,n,1),0),n=t-1;n>=23;)_2(u,1<<23),n-=23;_2(u,1<<n),dl(u,1,1),_2(u,2),l=Dk(u)}else dl(u,0,r),dl(u,1<<-t,0),l=Dk(u)+Ix("0",a);return a>0?s+((o=l.length)<=a?"0."+Ix("0",a-o)+l:Ck(l,0,o-a)+"."+Ck(l,o-a)):s+l}});var Uie={type:"image",renderElem:function(e,t,r){var n=e,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,d=f===void 0?"":f,p=c.height,v=p===void 0?"":p,m=O.isNodeSelected(r,e),g={};d&&(g.width="100%"),v&&(g.height="100%");var y=Be("img",{style:g,src:o,alt:a,"data-href":s}),h=r.isDisabled();return m&&!h?(function(b,w,E,C){var S=B("body"),k=_k(b,w),P=C.width,G=C.height,J=0,M=0,X=0,$=!1,V=null;function Q(U){V=(function(){var F=B("#"+k);if(F.length===0)throw new Error("Cannot find image container elem");return F})(),J=U;var _=V.find("img");if(_.length===0)throw new Error("Cannot find image elem");M=_.width(),X=_.height(),S.on("mousemove",ie),S.on("mouseup",le);var D=O.getHoverbar(b);D&&D.hideAndClean()}var ie=Cs((function(U){U.preventDefault();var _=U.clientX,D=M+($?J-_:_-J),F=X*(D/M);V!=null&&(D<=15||F<=15||(V.css("width",D+"px"),V.css("height",F+"px")))}),100);function le(U){if(S.off("mousemove",ie),V!=null){var _=V.width().toFixed(2),D=V.height().toFixed(2),F={style:Xa(Xa({},w.style),{width:_+"px",height:D+"px"})};z.setNodes(b,F,{at:O.findPath(b,w)}),S.off("mouseup",le)}}var q={};return P&&(q.width=P),G&&(q.height=G),Be("div",{id:k,style:q,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(U){var _=B(U.target);_.hasClass("w-e-image-dragger")&&(U.preventDefault(),(_.hasClass("left-top")||_.hasClass("left-bottom"))&&($=!0),Q(U.clientX))}}},E,Be("div",{className:"w-e-image-dragger left-top"}),Be("div",{className:"w-e-image-dragger right-top"}),Be("div",{className:"w-e-image-dragger left-bottom"}),Be("div",{className:"w-e-image-dragger right-bottom"}))})(r,e,y,{width:d,height:v}):(function(b,w,E,C){var S=C.width,k=C.height,P={};return S&&(P.width=S),k&&(P.height=k),Be("div",{id:_k(b,w),style:P,className:"w-e-image-container"},E)})(r,e,y,{width:d,height:v})}},Vie={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:_o(n,"width"),height:_o(n,"height")},children:[{text:""}]}}};function HL(e,t,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),uu(this,void 0,void 0,(function(){var i,a;return su(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function UL(e,t,r){return uu(this,void 0,void 0,(function(){var n;return su(this,(function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}}
55))}))}function as(e,t,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),uu(this,void 0,void 0,(function(){var o,i,a;return su(this,(function(u){switch(u.label){case 0:return[4,HL("insertImage",e,t,r,n)];case 1:return u.sent()?[4,UL("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:DC(o),href:n,alt:r,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),O.getSelectedNodeByType(e,"image")&&e.move(1),My(e)||(z.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function My(e){var t=e.selection;return t==null||!Z.isCollapsed(t)||!!ut(x.nodes(e,{match:function(r){var n=O.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!x.isVoid(e,r)},universal:!0}),1)[0]}function Fg(){return Ry("w-e-insert-image")}var Wie=(function(){function e(){this.title=he("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=Fg(),this.altInputId=Fg(),this.hrefInputId=Fg(),this.buttonId=Fg()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return My(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=ut(On(he("image.src"),o),2),l=s[0],c=B(s[1]),f=ut(On(he("image.desc"),i),2),d=f[0],p=B(f[1]),v=ut(On(he("image.link"),a),2),m=v[0],g=B(v[1]),y=ut($c(u,he("common.ok")),1)[0];if(this.$content==null){var h=B("<div></div>");h.on("click","#"+u,(function(w){w.preventDefault();var E=h.find("#"+o).val().trim(),C=h.find("#"+i).val().trim(),S=h.find("#"+a).val().trim();r.insertImage(t,E,C,S),t.hidePanelOrModal()})),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(d),b.append(m),b.append(y),c.val(""),p.val(""),g.val(""),setTimeout((function(){c.focus()})),b[0]},e.prototype.insertImage=function(t,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(t.restoreSelection(),this.isDisabled(t)||as(t,r,n,o))},e})(),Gie=(function(){function e(){this.title=he("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||O.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||z.removeNodes(t,{match:function(n){return O.checkNodeType(n,"image")}})},e})();function Bg(){return Ry("w-e-edit-image")}var qie=(function(){function e(){this.title=he("image.edit"),this.iconSvg
55=kL,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Bg(),this.altInputId=Bg(),this.hrefInputId=Bg(),this.buttonId=Bg()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return O.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||O.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=ut(On(he("image.src"),o),2),c=l[0],f=B(l[1]),d=ut(On(he("image.desc"),i),2),p=d[0],v=B(d[1]),m=ut(On(he("image.link"),a),2),g=m[0],y=B(m[1]),h=ut($c(u,he("common.ok")),1)[0];if(this.$content==null){var b=B("<div></div>");b.on("click","#"+u,(function(J){J.preventDefault();var M=b.find("#"+o).val(),X=b.find("#"+i).val(),$=b.find("#"+a).val();r.updateImage(t,M,X,$),t.hidePanelOrModal()})),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(p),w.append(g),w.append(h);var E=s,C=E.src,S=E.alt,k=S===void 0?"":S,P=E.href,G=P===void 0?"":P;return f.val(C),v.val(k),y.val(G),setTimeout((function(){f.focus()})),w[0]},e.prototype.updateImage=function(t,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(t.restoreSelection(),this.isDisabled(t)||(function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),uu(this,void 0,void 0,(function(){var f,d,p,v,m,g;return su(this,(function(y){switch(y.label){case 0:return[4,HL("editImage",a,u,s,l)];case 1:return y.sent()?[4,UL("editImage",a,u)]:[2];case 2:return f=y.sent(),(d=O.getSelectedNodeByType(a,"image"))==null||(p=d.style,v={src:f,alt:s,href:l,style:Xa(Xa({},p===void 0?{}:p),c)},z.setNodes(a,v,{match:function(h){return O.checkNodeType(h,"image")}}),m=O.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(m)),[2]}}))}))})(t,r,n,o,i))},e})(),Kie=(function(){function e(){this.title=he("image.viewLink"),this.iconSvg=OL,this.tag="button"}return e.prototype.getValue=function(t){var r=O.getSelectedNodeByType(t,"image");return r&&r.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},e})(),AC=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return O.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.getSelectedNode(t);if(n!=null){var o=O.getHoverbar(t);o&&o.hideAndClean();var i=n.style,a={style:Xa(Xa({},i===void 0?{}:i),{width:this.value,height:""})};z.setNodes(t,a,{match:function(u){return O.checkNodeType(u,"image")}})}}},e})(),Yie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return Nt(t,e),t})(AC),Xie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return Nt(t,e),t})(AC),Jie=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return Nt(t,e),t})(AC),Ak={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,r){return!0},parseImageSrc:function(e){return e}},Zie={renderElems:[Uie],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var r=e,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,d=l.height,p=d===void 0?"":d,v="";return f&&(v+="width: "+f+";"),p&&(v+="height: "+p+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[Vie],menus:[{key:"insertImage",factory:function(){return new Wie},config:Ak},{key:"deleteImage",factory:function(){return new Gie}},{key:"editImage",factory:function(){return new qie},config:Ak},{key:"viewImageLink",factory:function(){return new Kie}},{key:"imageWidth30",factory:function(){return new Yie}},{key:"imageWidth50",factory:function(){return new Xie}},{key:"imageWidth100",factory:function(){return new Jie}}],editorPlugin:function(e){var t=e.isInline,r=e.isVoid;
55e.insertNode;var n=e;return n.isInline=function(o){return o.type==="image"||t(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},Qie={type:"todo",renderElem:function(e,t,r){var n=!1;r.isDisabled()&&(n=!0);var o=Be("div",{style:{margin:"5px 0"}},Be("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Be("input",{type:"checkbox",checked:e.checked,disabled:n,on:{change:function(i){var a=O.findPath(r,e),u={checked:i.target.checked};z.setNodes(r,u,{at:a})}}})),Be("span",null,t));return o}},eae=(function(){function e(){this.title=he("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!O.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!O.getSelectedElems(t).some((function(r){if(x.isVoid(t,r)&&x.isBlock(t,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(t,r){var n=this.isActive(t);z.setNodes(t,{type:n?"paragraph":"todo"})},e})(),tae={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,r){var n=B(e);(t=t.filter((function(i){return!!ye.isText(i)||!!r.isInline(i)}))).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},rae={renderElems:[Qie],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=B(e).find("li"),r=B('<div data-w-e-type="todo"></div>'),n=t.find("input[type]");return r.append(n),t.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+t[0].innerHTML,r[0]}}],parseElemsHtml:[tae],menus:[{key:"todo",factory:function(){return new eae}}],editorPlugin:function(e){var t=e.deleteBackward,r=e;return r.deleteBackward=function(n){var o=e.selection;if(o&&Z.isCollapsed(o)){var i=O.getSelectedNodeByType(e,"todo");if(i&&pe.string(i).length===0)return void z.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},r}},nae={type:"blockquote",renderElem:function(e,t,r){return Be("blockquote",null,t)}},oae={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e);return(t=t.filter((function(o){return!!ye.isText(o)||!!r.isInline(o)}))).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},iae=(function(){function e(){this.title=he("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!O.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!ut(x.nodes(t,{match:function(r){var n=O.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";z.setNodes(t,{type:n},{mode:"highest"})}},e})(),aae={key:"blockquote",factory:function(){return new iae}},uae=Te([].slice),sae=bC("slice"),lae=Rn("species"),A2=Me.Array,cae=Math.max;yr({target:"Array",proto:!0,forced:!sae},{slice:function(e,t){var r,n,o,i=zc(this),a=Iy(i),u=Cp(e,a),s=Cp(t===void 0?a:t,a);if(Y0(i)&&(r=i.constructor,(yC(r)&&(r===A2||Y0(r.prototype))||qo(r)&&(r=r[lae])===null)&&(r=void 0),r===A2||r===void 0))return uae(i,u,s);for(n=new(r===void 0?A2:r)(cae(s-u,0)),o=0;u<s;
55u++,o++)u in i&&xL(n,o,i[u]);return n.length=o,n}});var fae={renderElems:[nae],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[oae],menus:[aae],editorPlugin:function(e){var t=e.insertBreak,r=e.insertText,n=e;return n.insertBreak=function(){var o=n.selection;if(o==null)return t();var i=ut(x.nodes(e,{match:function(c){return O.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=O.findPath(e,a),s=x.end(e,u);if(He.equals(s,o.focus)){var l=pe.string(a);if(l&&l.slice(-1)===` 56`)return e.deleteBackward("character"),void z.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(` 57`)},n}},dae=(function(){function e(){this.title=he("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!ut(x.nodes(t,{match:function(r){return O.getNodeType(r)==="pre"||!!x.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var r=B('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",(function(i){var a=i.target;if(a!=null){i.preventDefault();var u=B(a).text();t.insertText(u)}})),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach((function(i){var a=B("<li>"+i+"</li>");n.append(a)})),n[0]},e})(),pae={menus:[{key:"emotion",factory:function(){return new dae},config:{emotions:"ð ð ð ð ð ð ð 𤣠ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð¤ ð ð ð ð ð ð ð ð ð£ ð ð« ð© ð¢ ð ð¤ ð ð¡ ð³ ð± ð¨ ð¤ ð¤ ð¶ ð ð¬ ð ð¯ ð´ ð· ð¤ ð 𤡠ð© ð» ð ð ð£ ð ð ð ð¤ ð ð ð â ð¤ ð¤ ð¤ âï¸ ð¤ ð ð ð ð ð âï¸ â ð¤ ð ð ð ð¤ ðª ð âï¸ ð".split(" ")}}]},hae={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},gae={selector:"font",preParseHtml:function(e){var t=B(e);if(Wc(t)!=="font")return e;var r=t.attr("size")||"";r&&(t.removeAttr("size"),t.css("font-size",hae[r]));var n=t.attr("face")||"";return n&&(t.removeAttr("face"),t.css("font-family",n)),t[0]}},vae=Te("".indexOf);yr({target:"String",proto:!0,forced:!BL("includes")},{includes:function(e){return!!~vae(Lt(ao(this)),Lt(FL(e)),arguments.length>1?arguments[1]:void 0)}});var na,Tv,Pg=function(e){return e&&e.Math==Math&&e},Ue=Pg(typeof globalThis=="object"&&globalThis)||Pg(typeof window=="object"&&window)||Pg(typeof self=="object"&&self)||Pg(typeof G0=="object"&&G0)||(function(){return this})()||Function("return this")(),kC=Function.prototype,kk=kC.apply,mae=kC.bind,Ok=kC.call,VL=typeof Reflect=="object"&&Reflect.apply||(mae?Ok.bind(kk):function(){return Ok.apply(kk,arguments)}),WL=Function.prototype,Lx=WL.bind,Rx=WL.call,yae=Lx&&Lx.bind(Rx),Gt=Lx?function(e){return e&&yae(Rx,e)}:function(e){return e&&function(){return Rx.apply(e,arguments)}},Gr=function(e){return typeof e=="function"},jn=function(e){try{return!!e()}catch{return!0}},pn=!jn((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Mf=Function.prototype.call,Zo=Mf.bind?Mf.bind(Mf):function(){return Mf.apply(Mf,arguments)},Tk={}.propertyIsEnumerable,Fk=Object.getOwnPropertyDescriptor,bae=Fk&&!Tk.call({1:2},1)?function(e){var t=Fk(this,e);return!!t&&t.enumerable}:Tk,OC={f:bae},Fs=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wae=Gt({}.toString),Eae=Gt("".slice),us=function(e){return Eae(wae(e),8,-1)},k2=Ue.Object,xae=Gt("".split),GL=jn((function(){return!k2("z").propertyIsEnumerable(0)}))?function(e){return us(e)=="String"?xae(e,""):k2(e)}:k2,Sae=Ue.TypeError,TC=function(e){if(e==null)throw Sae("Can't call method on "+e);return e},fi=function(e){return GL(TC(e))},Eo=function(e){return typeof e=="object"?e!==null:Gr(e)},qn={},Bk=function(e){return Gr(e)?e:void 0},Dh=function(e,t){return arguments.length<2?Bk(qn[e])||Bk(Ue[e]):qn[e]&&qn[e][t]||Ue[e]&&Ue[e][t]},qL=Gt({}.isPrototypeOf),O2=Dh("navigator","userAgent")||"",Pk=Ue.process,jk=Ue.Deno,Nk=Pk&&Pk.versions||jk&&jk.version,Ik=Nk&&Nk.v8;Ik&&(Tv=(na=Ik.split("."))[0]>0&&na[0]<4?1:+(na[0]+na[1])),!Tv&&O2&&(!(na=O2.match(/Edge\/(\d+)/))||na[1]>
57=74)&&(na=O2.match(/Chrome\/(\d+)/))&&(Tv=+na[1]);var Z0=Tv,Mo=!!Object.getOwnPropertySymbols&&!jn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Z0&&Z0<41})),FC=Mo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Cae=Ue.Object,ql=FC?function(e){return typeof e=="symbol"}:function(e){var t=Dh("Symbol");return Gr(t)&&qL(t.prototype,Cae(e))},Dae=Ue.String,_ae=Ue.TypeError,KL=function(e){if(Gr(e))return e;throw _ae((function(t){try{return Dae(t)}catch{return"Object"}})(e)+" is not a function")},Aae=Ue.TypeError,kae=Object.defineProperty,Pa=Ue["__core-js_shared__"]||(function(e,t){try{kae(Ue,e,{value:t,configurable:!0,writable:!0})}catch{Ue[e]=t}return t})("__core-js_shared__",{}),Ws=By((function(e){(e.exports=function(t,r){return Pa[t]||(Pa[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Oae=Ue.Object,_h=function(e){return Oae(TC(e))},Tae=Gt({}.hasOwnProperty),at=Object.hasOwn||function(e,t){return Tae(_h(e),t)},Fae=0,Bae=Math.random(),Pae=Gt(1 .toString),Q0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Pae(++Fae+Bae,36)},$f=Ws("wks"),ss=Ue.Symbol,Lk=ss&&ss.for,jae=FC?ss:ss&&ss.withoutSetter||Q0,Mn=function(e){if(!at($f,e)||!Mo&&typeof $f[e]!="string"){var t="Symbol."+e;Mo&&at(ss,e)?$f[e]=ss[e]:$f[e]=FC&&Lk?Lk(t):jae(t)}return $f[e]},Nae=Ue.TypeError,Iae=Mn("toPrimitive"),Gc=function(e){var t=(function(r,n){if(!Eo(r)||ql(r))return r;var o,i,a=(o=r[Iae])==null?void 0:KL(o);if(a){if(i=Zo(a,r,n),!Eo(i)||ql(i))return i;throw Nae("Can't convert object to primitive value")}return(function(u,s){var l,c;if(Gr(l=u.toString)&&!Eo(c=Zo(l,u))||Gr(l=u.valueOf)&&!Eo(c=Zo(l,u)))return c;throw Aae("Can't convert object to primitive value")})(r)})(e,"string");return ql(t)?t:t+""},Mx=Ue.document,Lae=Eo(Mx)&&Eo(Mx.createElement),YL=function(e){return Lae?Mx.createElement(e):{}},XL=!pn&&!jn((function(){return Object.defineProperty(YL("div"),"a",{get:function(){return 7}}).a!=7})),Rk=Object.getOwnPropertyDescriptor,BC={f:pn?Rk:function(e,t){if(e=fi(e),t=Gc(t),XL)try{return Rk(e,t)}catch{}if(at(e,t))return Fs(!Zo(OC.f,e,t),e[t])}},Rae=/#|\.prototype\./,Ah=function(e,t){var r=$ae[Mae(e)];return r==Hae||r!=zae&&(Gr(t)?jn(t):!!t)},Mae=Ah.normalize=function(e){return String(e).replace(Rae,".").toLowerCase()},$ae=Ah.data={},zae=Ah.NATIVE="N",Hae=Ah.POLYFILL="P",Uae=Ah,Mk=Gt(Gt.bind),JL=function(e,t){return KL(e),t===void 0?e:Mk?Mk(e,t):function(){return e.apply(t,arguments)}},Vae=Ue.String,Wae=Ue.TypeError,Bs=function(e){if(Eo(e))return e;throw Wae(Vae(e)+" is not an object")},Gae=Ue.TypeError,$k=Object.defineProperty,Gs={f:pn?$k:function(e,t,r){if(Bs(e),t=Gc(t),Bs(r),XL)try{return $k(e,t,r)}catch{}if("get"in r||"set"in r)throw Gae("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ho=pn?function(e,t,r){return Gs.f(e,t,Fs(1,r))}:function(e,t,r){return e[t]=r,e},qae=BC.f,Kae=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return VL(e,this,arguments)};return t.prototype=e.prototype,t},pa=function(e,t){var r,n,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,v=f?Ue:d?Ue[c]:(Ue[c]||{}).prototype,m=f?qn:qn[c]||Ho(qn,c,{})[c],g=m.prototype;for(o in t)r=!Uae(f?o:c+(d?".":"#")+o,e.forced)&&v&&at(v,o),a=m[o],r&&(u=e.noTargetGet?(l=qae(v,o))&&l.value:v[o]),i=r&&u?u:t[o],r&&typeof a==typeof i||(s=e.bind&&r?JL(i,Ue):e.wrap&&r?Kae(i):p&&Gr(i)?Gt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ho(s,"sham",!0),Ho(m,o,s),p&&(at(qn,n=c+"Prototype")||Ho(qn,n,{}),Ho(qn[n],o,i),e.real&&g&&!g[o]&&Ho(g,o,i)))},em=Array.isArray||function(e){return us(e)=="Array"},Yae=Math.ceil,Xae=Math.floor,PC=function(e){var t=+e;return t!=t||t===0?0:(t>0?Xae:Yae)(t)},Jae=Math.min,$y=function(e){return(t=e.length)>0?Jae(PC(t),9007199254740991):0;var t},$x=function(e,t,r){var n=Gc(t);n in e?Gs.f(e,n,Fs(0,r)):e[n]=r},ZL={};ZL[Mn("toStringTag")]="z";var jC=String(ZL)==="[object z]",Zae=Mn("toStringTag"),Qae=Ue.Object,eue=us((function(){return arguments})())=="Arguments",zy=jC?us:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Qae(e),Zae))=="string"?r:eue?us(t):(n=us(t))=="Object"&&Gr(t.callee)?"Arguments":n},tue=Gt(Function.toString);Gr(Pa.inspectSource)||(Pa.inspectSource=function(e){return tue(e)});var QL=Pa.inspectSource,eR=function(){},rue=[],tR=Dh("Reflect","construct"),NC=/^\s*(?:class|function)\b/,nue=Gt(NC.exec),oue=!NC.exec(eR),zf=function(e){if(!Gr(e))return!1;try{return tR(eR,rue,e),!0}catch{return!1}},iue=!tR||jn((function(){var e;return zf(zf.call)||!zf(Object)||!zf((function(){e=!0}))||e}))?function(e){if(!Gr(e))return!1;switch(zy(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return oue||!!nue(NC,QL(e))}:zf,aue=Mn("species"),zk=Ue.Array,rR=function(e,t){return new((function(r){var n;return em(r)&&(n=r.constructor,(iue(n)&&(n===zk||em(n.prototype))||Eo(n)&&(n=n[aue])===null)&&(n=void 0)),n===void 0?zk:n}
57)(e))(t===0?0:t)},uue=Mn("species"),nR=Mn("isConcatSpreadable"),Hk=Ue.TypeError,sue=Z0>=51||!jn((function(){var e=[];return e[nR]=!1,e.concat()[0]!==e})),lue=Z0>=51||!jn((function(){var e=[];return(e.constructor={})[uue]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),cue=function(e){if(!Eo(e))return!1;var t=e[nR];return t!==void 0?!!t:em(e)};pa({target:"Array",proto:!0,forced:!sue||!lue},{concat:function(e){var t,r,n,o,i,a=_h(this),u=rR(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(cue(i=t===-1?a:arguments[t])){if(s+(o=$y(i))>9007199254740991)throw Hk("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&$x(u,s,i[r])}else{if(s>=9007199254740991)throw Hk("Maximum allowed index exceeded");$x(u,s++,i)}return u.length=s,u}});var jg,fue=Ue.String,tm=function(e){if(zy(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fue(e)},due=Math.max,pue=Math.min,zx=function(e,t){var r=PC(e);return r<0?due(r+t,0):pue(r,t)},hue=function(e){return function(t,r,n){var o,i=fi(t),a=$y(i),u=zx(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},gue={indexOf:hue(!1)},kh={},vue=gue.indexOf,Uk=Gt([].push),oR=function(e,t){var r,n=fi(e),o=0,i=[];for(r in n)!at(kh,r)&&at(n,r)&&Uk(i,r);for(;t.length>o;)at(n,r=t[o++])&&(~vue(i,r)||Uk(i,r));return i},rm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],IC=Object.keys||function(e){return oR(e,rm)},mue=pn?Object.defineProperties:function(e,t){Bs(e);for(var r,n=fi(t),o=IC(t),i=o.length,a=0;i>a;)Gs.f(e,r=o[a++],n[r]);return e},yue=Dh("document","documentElement"),Vk=Ws("keys"),Hy=function(e){return Vk[e]||(Vk[e]=Q0(e))},iR=Hy("IE_PROTO"),T2=function(){},aR=function(e){return"<script>"+e+"<\/script>"},Wk=function(e){e.write(aR("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fv=function(){try{jg=new ActiveXObject("htmlfile")}catch{}var e,t;Fv=typeof document<"u"?document.domain&&jg?Wk(jg):((t=YL("iframe")).style.display="none",yue.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(aR("document.F=Object")),e.close(),e.F):Wk(jg);for(var r=rm.length;r--;)delete Fv.prototype[rm[r]];return Fv()};kh[iR]=!0;var nm,zd,om,Ps=Object.create||function(e,t){var r;return e!==null?(T2.prototype=Bs(e),r=new T2,T2.prototype=null,r[iR]=e):r=Fv(),t===void 0?r:mue(r,t)},bue=rm.concat("length","prototype"),uR={f:Object.getOwnPropertyNames||function(e){return oR(e,bue)}},wue=Ue.Array,Eue=Math.max,Gk=uR.f,qk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sR={f:function(e){return qk&&us(e)=="Window"?(function(t){try{return Gk(t)}catch{return(function(n,o,i){for(var a=$y(n),u=zx(void 0,a),s=zx(a,a),l=wue(Eue(s-u,0)),c=0;u<s;u++,c++)$x(l,c,n[u]);return l.length=c,l})(qk)}})(e):Gk(fi(e))}},F2={f:Object.getOwnPropertySymbols},xue=Gt([].slice),im=function(e,t,r,n){Ho(e,t,r)},LC={f:Mn},Sue=Gs.f,Xt=function(e){var t=qn.Symbol||(qn.Symbol={});at(t,e)||Sue(t,e,{value:LC.f(e)})},Cue=jC?{}.toString:function(){return"[object "+zy(this)+"]"},Due=Gs.f,Kk=Mn("toStringTag"),am=function(e,t,r,n){if(e){var o=r?e:e.prototype;at(o,Kk)||Due(o,Kk,{configurable:!0,value:t}),n&&!jC&&Ho(o,"toString",Cue)}},Yk=Ue.WeakMap,_ue=Gr(Yk)&&/native code/.test(QL(Yk)),Hx=Ue.TypeError,Aue=Ue.WeakMap;if(_ue||Pa.state){var Du=Pa.state||(Pa.state=new Aue),kue=Gt(Du.get),Xk=Gt(Du.has),Oue=Gt(Du.set);nm=function(e,t){if(Xk(Du,e))throw new Hx("Object already initialized");return t.facade=e,Oue(Du,e,t),t},zd=function(e){return kue(Du,e)||{}},om=function(e){return Xk(Du,e)}}else{var pl=Hy("state");kh[pl]=!0,nm=function(e,t){if(at(e,pl))throw new Hx("Object already initialized");return t.facade=e,Ho(e,pl,t),t},zd=function(e){return at(e,pl)?e[pl]:{}},om=function(e){return at(e,pl)}}var qc={set:nm,get:zd,has:om,enforce:function(e){return om(e)?zd(e):nm(e,{})},getterFor:function(e){return function(t){var r;if(!Eo(t)||(r=zd(t)).type!==e)throw Hx("Incompatible receiver, "+e+" required");return r}}},Jk=Gt([].push),oa=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=_h(s),m=GL(v),g=JL(l,c),y=$y(m),h=0,b=f||rR,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:Jk(w,d)}else switch(e){case 4:return!1;case 7:Jk(w,d)}return i?-1:n||o?o:w}},Uy=[oa(0),oa(1),oa(2),oa(3),oa(4),oa(5),oa(6),oa(7)][0],un=Hy("hidden"),Zk=Mn("toPrimitive"),Tue=qc.set,Qk=qc.getterFor("Symbol"),xo=Object.prototype,va=Ue.Symbol,Sa=va&&va.prototype,eO=Ue.TypeError,B2=Ue.QObject,Hf=Dh("JSON","stringify"),lR=BC.f,ma=Gs.f,cR=sR.f,Fue=OC.f,fR=Gt([].push),Li=Ws("symbols"),Oh=Ws("op-symbol
57s"),P2=Ws("string-to-symbol-registry"),j2=Ws("symbol-to-string-registry"),Bue=Ws("wks"),N2=!B2||!B2.prototype||!B2.prototype.findChild,Ux=pn&&jn((function(){return Ps(ma({},"a",{get:function(){return ma(this,"a",{value:7}).a}})).a!=7}))?function(e,t,r){var n=lR(xo,t);n&&delete xo[t],ma(e,t,r),n&&e!==xo&&ma(xo,t,n)}:ma,I2=function(e,t){var r=Li[e]=Ps(Sa);return Tue(r,{type:"Symbol",tag:e,description:t}),pn||(r.description=t),r},um=function(e,t,r){e===xo&&um(Oh,t,r),Bs(e);var n=Gc(t);return Bs(r),at(Li,n)?(r.enumerable?(at(e,un)&&e[un][n]&&(e[un][n]=!1),r=Ps(r,{enumerable:Fs(0,!1)})):(at(e,un)||ma(e,un,Fs(1,{})),e[un][n]=!0),Ux(e,n,r)):ma(e,n,r)},tO=function(e,t){Bs(e);var r=fi(t),n=IC(r).concat(Vx(r));return Uy(n,(function(o){pn&&!Zo(dR,r,o)||um(e,o,r[o])})),e},dR=function(e){var t=Gc(e),r=Zo(Fue,this,t);return!(this===xo&&at(Li,t)&&!at(Oh,t))&&(!(r||!at(this,t)||!at(Li,t)||at(this,un)&&this[un][t])||r)},rO=function(e,t){var r=fi(e),n=Gc(t);if(r!==xo||!at(Li,n)||at(Oh,n)){var o=lR(r,n);return!o||!at(Li,n)||at(r,un)&&r[un][n]||(o.enumerable=!0),o}},nO=function(e){var t=cR(fi(e)),r=[];return Uy(t,(function(n){at(Li,n)||at(kh,n)||fR(r,n)})),r},Vx=function(e){var t=e===xo,r=cR(t?Oh:fi(e)),n=[];return Uy(r,(function(o){!at(Li,o)||t&&!at(xo,o)||fR(n,Li[o])})),n};if(Mo||(Sa=(va=function(){if(qL(Sa,this))throw eO("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?tm(arguments[0]):void 0,t=Q0(e),r=function(n){this===xo&&Zo(r,Oh,n),at(this,un)&&at(this[un],t)&&(this[un][t]=!1),Ux(this,t,Fs(1,n))};return pn&&N2&&Ux(xo,t,{configurable:!0,set:r}),I2(t,e)}).prototype,im(Sa,"toString",(function(){return Qk(this).tag})),im(va,"withoutSetter",(function(e){return I2(Q0(e),e)})),OC.f=dR,Gs.f=um,BC.f=rO,uR.f=sR.f=nO,F2.f=Vx,LC.f=function(e){return I2(Mn(e),e)},pn&&ma(Sa,"description",{configurable:!0,get:function(){return Qk(this).description}})),pa({global:!0,wrap:!0,forced:!Mo,sham:!Mo},{Symbol:va}),Uy(IC(Bue),(function(e){Xt(e)})),pa({target:"Symbol",stat:!0,forced:!Mo},{for:function(e){var t=tm(e);if(at(P2,t))return P2[t];var r=va(t);return P2[t]=r,j2[r]=t,r},keyFor:function(e){if(!ql(e))throw eO(e+" is not a symbol");if(at(j2,e))return j2[e]},useSetter:function(){N2=!0},useSimple:function(){N2=!1}}),pa({target:"Object",stat:!0,forced:!Mo,sham:!pn},{create:function(e,t){return t===void 0?Ps(e):tO(Ps(e),t)},defineProperty:um,defineProperties:tO,getOwnPropertyDescriptor:rO}),pa({target:"Object",stat:!0,forced:!Mo},{getOwnPropertyNames:nO,getOwnPropertySymbols:Vx}),pa({target:"Object",stat:!0,forced:jn((function(){F2.f(1)}))},{getOwnPropertySymbols:function(e){return F2.f(_h(e))}}),Hf){var Pue=!Mo||jn((function(){var e=va();return Hf([e])!="[null]"||Hf({a:e})!="{}"||Hf(Object(e))!="{}"}));pa({target:"JSON",stat:!0,forced:Pue},{stringify:function(e,t,r){var n=xue(arguments),o=t;if((Eo(t)||e!==void 0)&&!ql(e))return em(t)||(t=function(i,a){if(Gr(o)&&(a=Zo(o,this,i,a)),!ql(a))return a}),n[1]=t,VL(Hf,null,n)}})}if(!Sa[Zk]){var jue=Sa.valueOf;im(Sa,Zk,(function(e){return Zo(jue,this)}))}am(va,"Symbol"),kh[un]=!0,Xt("asyncIterator"),Xt("hasInstance"),Xt("isConcatSpreadable"),Xt("iterator"),Xt("match"),Xt("matchAll"),Xt("replace"),Xt("search"),Xt("species"),Xt("split"),Xt("toPrimitive"),Xt("toStringTag"),Xt("unscopables"),am(Ue.JSON,"JSON",!0);var Ca,oO,iO,Nue=qn.Symbol,ls={},pR=Function.prototype,Iue=pn&&Object.getOwnPropertyDescriptor,aO=at(pR,"name"),Lue={PROPER:aO&&(function(){}).name==="something",CONFIGURABLE:aO&&(!pn||pn&&Iue(pR,"name").configurable)},Rue=!jn((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),uO=Hy("IE_PROTO"),Wx=Ue.Object,Mue=Wx.prototype,Gx=Rue?Wx.getPrototypeOf:function(e){var t=_h(e);if(at(t,uO))return t[uO];var r=t.constructor;return Gr(r)&&t instanceof r?r.prototype:t instanceof Wx?Mue:null},qx=Mn("iterator"),hR=!1;[].keys&&("next"in(iO=[].keys())?(oO=Gx(Gx(iO)))!==Object.prototype&&(Ca=oO):hR=!0);var $ue=Ca==null||jn((function(){var e={};return Ca[qx].call(e)!==e}));Ca=$ue?{}:Ps(Ca),Gr(Ca[qx])||im(Ca,qx,(function(){return this}));var gR={IteratorPrototype:Ca,BUGGY_SAFARI_ITERATORS:hR},zue=gR.IteratorPrototype,Hue=function(){return this};Ue.String,Ue.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var e={};try{Gt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}})();var Uue=Lue.PROPER,L2=gR.BUGGY_SAFARI_ITERATORS,Vue=Mn("iterator"),Wue=function(){return this},vR=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Ps(zue,{next:Fs(1,h)}),am(g,w,!1,!0),ls[w]=Hue})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!L2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Vue]||d["@@iterator"]||o&&d[o],v=!L2&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=Gx(m.call(new e)))!==Object.prototype&&u.next&&(am(u,c,!0,!0),ls[c]=Wue),Uue&&o=="values"&&p&&p.name!=="values"&&(f=!0,v=function(){return Zo(p,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||pa({target:t,proto:!0,forced:L2||f},s)),ls[t]=v,s},Gue=qc.set,que=qc.getterFor("Array Iterator");vR(Array,"Array",(function(e,t){Gue(this,{type:"Array Iterator",target:fi(e),index:0,kind:t})}),(function(){var e=que(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),ls.Arguments=ls.Array;var sO=Mn("toStringTag");for(var R2 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 lO=Ue[R2],M2=lO&&lO.prototype;M2&&zy(M2)!==sO&&Ho(M2,sO,R2),ls[R2]=ls.Array}var Kue=Nue;Xt("asyncDispose"),Xt("dispose"),Xt("matcher"),Xt("metadata"),Xt("observable"),Xt("patternMatch"),Xt("replaceAll");var Ng=Kue,Yue=Gt("".charAt),cO=Gt("".charCodeAt),Xue=Gt("".slice),Jue=function(e){return function(t,r){var n,o,i=tm(TC(t)),a=PC(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=cO(i,a))<55296||n>56319||a+1===u||(o=cO(i,a+1))<56320||o>57343?e?Yue(i,a):n:e?Xue(i,a,a+2):o-56320+(n-55296<<10)+65536}},Zue=Jue(!0),Que=qc.set,ese=qc.getterFor("String Iterator");vR(String,"String",(function(e){Que(this,{type:"String Iterator",string:tm(e),index:0})}),(function(){var e,t=ese(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Zue(r,n),t.index+=e.length,{value:e,done:!1})}));var tse=LC.f("iterator"),rse=By((function(e){function t(r){return typeof Ng=="function"&&typeof tse=="symbol"?
57(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof Ng=="function"&&n.constructor===Ng&&n!==Ng.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),mR=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})(rse),nse=Ny.EXISTS,ose=Hc.f,yR=Function.prototype,ise=Te(yR.toString),bR=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ase=Te(bR.exec);Oo&&!nse&&ose(yR,"name",{configurable:!0,get:function(){try{return ase(bR,ise(this))[1]}catch{return""}}});var wR=(function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.mark,n=x.marks(t);return n&&n[r]?n[r]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!ut(x.nodes(t,{match:function(r){return O.getNodeType(r)==="pre"||!!x.isVoid(t,r)},universal:!0}),1)[0])},e.prototype.exec=function(t,r){var n=this.mark;r?t.addMark(n,r):t.removeMark(n)},e})(),use=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("fontSize.title"),r.iconSvg=Boe,r.mark="fontSize",r}return Nt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:he("fontSize.default"),value:""}),i.forEach((function(u){if(typeof u=="string")n.push({text:u,value:u});else if(mR(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}}));var a=this.getValue(r);return n.forEach((function(u){u.value===a?u.selected=!0:delete u.selected})),n},t})(wR),sse=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("fontFamily.title"),r.iconSvg=Poe,r.mark="fontFamily",r.selectPanelWidth=150,r}return Nt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:he("fontFamily.default"),value:""}),i.forEach((function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(mR(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}}));var a=this.getValue(r);return n.forEach((function(u){u.value===a?u.selected=!0:delete u.selected})),n},t})(wR),lse={renderStyle:function(e,t){var r=e,n=r.fontSize,o=r.fontFamily,i=t;return n&&Ts(i,{fontSize:n}),o&&Ts(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!ye.isText(e))return t;var r,n=e,o=n.fontSize,i=n.fontFamily;return o||i?((CC(t)||Wc(r=B(t))!=="span")&&(r=B("<span>"+t+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),Vc(r)):t},preParseHtml:[gae],parseStyleHtml:function(e,t,r){var n=B(e);if(!ye.isText(t))return t;var o=t,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=_o(n,"font-size"),s=a.find((function(p){return p.value&&p.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=_o(n,"font-family").replace(/"/g,""),d=c.find((function(p){return p.value&&p.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new use},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 sse},config:{fontFamilyList:["é»ä½",{name:"仿å®",value:"仿å®"},"楷ä½","æ æ¥·ä½","åæä»¿å®","åææ¥·ä½",{name:"å®ä½",value:"å®ä½"},"微软é
é»","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},cse={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=B(e),r=_o(t,"padding-left");return/\dem/.test(r)&&t.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&t.css("text-indent","2em"),t[0]}},ER=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var r=ut(x.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":ut(n,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=ut(x.nodes(t,{match:function(n){var o=O.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e})(),fse=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("indent.decrease"),r.iconSvg=joe,r}return Nt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},t.prototype.exec=function(r,n){z.setNodes(r,{indent:null},{match:function(o){return Ce.isElement(o)}})},t})(ER),dse=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("indent.increase"),r.iconSvg=Noe,r}return Nt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},t.prototype.exec=function(r,n){z.setNodes(r,{indent:"2em"},{match:function(o){return Ce.isElement(o)},mode:"highest"})},t}
57)(ER),pse={renderStyle:function(e,t){if(!Ce.isElement(e))return t;var r=e.indent,n=t;return r&&Ts(n,{textIndent:r}),n},styleToHtml:function(e,t){if(!Ce.isElement(e))return t;var r=e.indent;if(!r)return t;var n=B(t);return n.css("text-indent",r),Vc(n)},preParseHtml:[cse],parseStyleHtml:function(e,t,r){var n=B(e);if(!Ce.isElement(t))return t;var o=t,i=_o(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new dse}},{key:"delIndent",factory:function(){return new fse}}]},Vy=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=ut(x.nodes(t,{match:function(n){var o=O.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!O.getSelectedElems(t).some((function(r){if(x.isVoid(t,r)&&x.isBlock(t,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0}))},e})(),hse=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("justify.left"),r.iconSvg=Ioe,r}return Nt(t,e),t.prototype.exec=function(r,n){z.setNodes(r,{textAlign:"left"},{match:function(o){return Ce.isElement(o)&&!r.isInline(o)}})},t})(Vy),gse=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("justify.right"),r.iconSvg=Loe,r}return Nt(t,e),t.prototype.exec=function(r,n){z.setNodes(r,{textAlign:"right"},{match:function(o){return Ce.isElement(o)&&!r.isInline(o)}})},t})(Vy),vse=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("justify.center"),r.iconSvg=Roe,r}return Nt(t,e),t.prototype.exec=function(r,n){z.setNodes(r,{textAlign:"center"},{match:function(o){return Ce.isElement(o)&&!r.isInline(o)}})},t})(Vy),mse=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=he("justify.justify"),r.iconSvg=Moe,r}return Nt(t,e),t.prototype.exec=function(r,n){z.setNodes(r,{textAlign:"justify"},{match:function(o){return Ce.isElement(o)&&!r.isInline(o)}})},t})(Vy),yse={renderStyle:function(e,t){if(!Ce.isElement(e))return t;var r=e.textAlign,n=t;return r&&Ts(n,{textAlign:r}),n},styleToHtml:function(e,t){if(!Ce.isElement(e))return t;var r=e.textAlign;if(!r)return t;var n=B(t);return n.css("text-align",r),Vc(n)},parseStyleHtml:function(e,t,r){var n=B(e);if(!Ce.isElement(t))return t;var o=t,i=_o(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new hse}},{key:"justifyRight",factory:function(){return new gse}},{key:"justifyCenter",factory:function(){return new vse}},{key:"justifyJustify",factory:function(){return new mse}}]},bse=(function(){function e(){this.title=he("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:he("lineHeight.default"),value:""}),o.forEach((function(a){r.push({text:a,value:a})}));var i=this.getValue(t);return r.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),r},e.prototype.getMatchNode=function(t){var r=ut(x.nodes(t,{match:function(n){var o=O.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getMatchNode(t);return r==null?"":Ce.isElement(r)&&r.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,r){z.setNodes(t,{lineHeight:r.toString()},{mode:"highest"})},e}
57)(),wse={renderStyle:function(e,t){if(!Ce.isElement(e))return t;var r=e.lineHeight,n=t;return r&&Ts(n,{lineHeight:r}),n},styleToHtml:function(e,t){if(!Ce.isElement(e))return t;var r=e.lineHeight;if(!r)return t;var n=B(t);return n.css("line-height",r),Vc(n)},parseStyleHtml:function(e,t,r){var n=B(e);if(!Ce.isElement(t))return t;var o=t,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=_o(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new bse},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Ese=(function(){function e(){this.title=he("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.redo=="function"&&t.redo()},e})(),xse=(function(){function e(){this.title=he("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.undo=="function"&&t.undo()},e})(),Sse={menus:[{key:"redo",factory:function(){return new Ese}},{key:"undo",factory:function(){return new xse}}]},Cse={type:"divider",renderElem:function(e,t,r){return gc("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:O.isNodeSelected(r,e)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[gc("hr")])}},Dse=(function(){function e(){this.title=he("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!O.getSelectedElems(t).some((function(r){if(t.isVoid(r))return!0;var n=O.getNodeType(r);return n==="table"||n==="pre"||void 0}))},e.prototype.exec=function(t,r){z.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e})(),_se={renderElems:[Cse],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Dse}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="divider"||t(o)},n.normalizeNode=function(o){var i=ut(o,2),a=i[0],u=i[1];if(O.getNodeType(a)!=="divider")return r([a,u]);
57O.isLastNode(n,a)&&z.insertNodes(n,O.genEmptyParagraph(),{at:[u[0]+1]})},n}},Ase=Ly.map;yr({target:"Array",proto:!0,forced:!bC("map")},{map:function(e){return Ase(this,e,arguments.length>1?arguments[1]:void 0)}});var kse=Te([].join),Ose=Py!=Object,Tse=DL("join",",");yr({target:"Array",proto:!0,forced:Ose||!Tse},{join:function(e){return kse(zc(this),e===void 0?",":e)}});var Fse=(function(){function e(){this.title=he("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var r=O.getSelectedNodeByType(t,"code");if(r==null)return null;var n=O.getParentNode(t,r);return n==null||O.getNodeType(n)!=="pre"?null:r},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);return r==null?"":r.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var r=O.getSelectedElems(t);return!!r.some((function(n){return t.isVoid(n)}))||!r.some((function(n){var o=O.getNodeType(n);if(o==="pre"||o==="paragraph")return!0}))},e.prototype.exec=function(t,r){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,r.toString())},e.prototype.changeToPlainText=function(t){var r=this.getSelectCodeElem(t);if(r!=null){var n=pe.string(r);z.removeNodes(t,{mode:"highest"});var o=n.split(` 58`).map((function(i){return{type:"paragraph",children:[{text:i}]}}));z.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,r){var n,o,i=[],a=x.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=CL(a),s=u.next();!s.done;s=u.next()){var l=ut(s.value,1)[0];l&&i.push(pe.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}z.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(` 59`)}]}]};z.insertNodes(t,c,{mode:"highest"})},e})(),Bse={key:"codeBlock",factory:function(){return new Fse}};yr({target:"String",proto:!0,forced:_d("anchor")},{anchor:function(e){return Dd(this,"a","name",e)}}),xC("match",(function(e,t,r){return[function(n){var o=ao(this),i=n==null?void 0:jy(n,e);return i?Jt(i,n,o):new RegExp(n)[e](Lt(o))},function(n){var o=Tn(this),i=Lt(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return _p(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=_p(o,i))!==null;){var f=Lt(s[0]);l[c]=f,f===""&&(o.lastIndex=SC(i,Eh(o.lastIndex),u)),c++}return c===0?null:l}]}));var Pse={type:"pre",renderElem:function(e,t,r){return Be("pre",null,t)}},jse={type:"code",renderElem:function(e,t,r){return Be("code",null,t)}},Nse={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e);return(t=t.filter((function(o){return O.getNodeType(o)==="code"}))).length===0&&(t=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:t.filter((function(o){return O.getNodeType(o)==="code"}))}}},Ise={menus:[Bse],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,n=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=O.getSelectedNodeByType(o,"code");if(i!=null){var a=(function(l,c){var f=c.selection;if(f==null)return"";var d=pe.string(l),p=f.anchor.offset,v=d.slice(0,p).split(` 60`),m=v.length;return m===0?"":v[m-1]})(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(` 61`+s)}}o.insertText(` 62`)}else t()},o.normalizeNode=function(i){var a=ut(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l==="code"&&s.length<=1&&z.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(O.isLastNode(o,u)&&z.insertNodes(o,O.genEmptyParagraph(),{at:[s[0]+1]}),O.getNodeType(u.children[0])!=="code"&&(z.unwrapNodes(o),z.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(O.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");x.insertText(o,a)}else n(i)},o},renderElems:[Pse,jse],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=B(e);if(Wc(t)!=="code")return e;var r=t.find("xmp");if(r.length===0)return e;var n=r.text();return r.remove(),t.text(n),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,r){return{type:"code",language:"",children:[{text:B(e)[0].textContent||""}]}}},Nse]},Lse=(function(){function e(){this.title=he("fullScreen.title"),this.iconSvg
62='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,r){t.isFullScreen?t.unFullScreen():t.fullScreen()},e})(),Rse={menus:[{key:"fullScreen",factory:function(){return new Lse}}]},Mse=(function(){function e(){this.title=he("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!!Z.isExpanded(r)},e.prototype.exec=function(t,r){var n=t.selection;if(n!=null){var o=[n.anchor.path[0]];z.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(x.start(t,o))}},e})(),$se=[Xoe,kie,lse,pse,yse,wse,Zie,_se,pae,Mie,Ise,fae,Sie,boe,rae,Sse,Rse,{menus:[{key:"enter",factory:function(){return new Mse}}]}];gn("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),gn("zh-CN",{listModule:{unOrderedList:"æ åºå表",orderedList:"æåºå表"}});var fO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function RC(e){var t={exports:{}};return e(t,t.exports),t.exports}var ia,Bv,Ig=function(e){return e&&e.Math==Math&&e},Pe=Ig(typeof globalThis=="object"&&globalThis)||Ig(typeof window=="object"&&window)||Ig(typeof self=="object"&&self)||Ig(typeof fO=="object"&&fO)||(function(){return this})()||Function("return this")(),xR=Function.prototype,Kx=xR.bind,Yx=xR.call,zse=Kx&&Kx.bind(Yx),Ge=Kx?function(e){return e&&zse(Yx,e)}:function(e){return e&&function(){return Yx.apply(e,arguments)}},Ut=function(e){try{return!!e()}catch{return!0}},Hse=Ge({}.toString),Use=Ge("".slice),Fi=function(e){return Use(Hse(e),8,-1)},$2=Pe.Object,Vse=Ge("".split),SR=Ut((function(){return!$2("z").propertyIsEnumerable(0)}))?function(e){return Fi(e)=="String"?Vse(e,""):$2(e)}:$2,Wse=Pe.TypeError,Wy=function(e){if(e==null)throw Wse("Can't call method on "+e);return e},Kc=function(e){return SR(Wy(e))},Gse=Object.defineProperty,MC=function(e,t){try{Gse(Pe,e,{value:t,configurable:!0,writable:!0})}catch{Pe[e]=t}return t},ja=Pe["__core-js_shared__"]||MC("__core-js_shared__",{}),$C=RC((function(e){(e.exports=function(t,r){return ja[t]||(ja[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),qse=Pe.Object,Th=function(e){return qse(Wy(e))},Kse=Ge({}.hasOwnProperty),br=Object.hasOwn||function(e,t){return Kse(Th(e),t)},Yse=0,Xse=Math.random(),Jse=Ge(1 .toString),zC=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Jse(++Yse+Xse,36)},qt=function(e){return typeof e=="function"},Zse=function(e){return qt(e)?e:void 0},Fh=function(e,t){return arguments.length<2?Zse(Pe[e]):Pe[e]&&Pe[e][t]},z2=Fh("navigator","userAgent")||"",dO=Pe.process,pO=Pe.Deno,hO=dO&&dO.versions||pO&&pO.version,gO=hO&&hO.v8;gO&&(Bv=(ia=gO.split("."))[0]>0&&ia[0]<4?1:+(ia[0]+ia[1])),!Bv&&z2&&(!(ia=z2.match(/Edge\/(\d+)/))||ia[1]>
62=74)&&(ia=z2.match(/Chrome\/(\d+)/))&&(Bv=+ia[1]);var Lg,Xx=Bv,Jx=!!Object.getOwnPropertySymbols&&!Ut((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Xx&&Xx<41})),HC=Jx&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Uf=$C("wks"),cs=Pe.Symbol,vO=cs&&cs.for,Qse=HC?cs:cs&&cs.withoutSetter||zC,Lr=function(e){if(!br(Uf,e)||!Jx&&typeof Uf[e]!="string"){var t="Symbol."+e;Jx&&br(cs,e)?Uf[e]=cs[e]:Uf[e]=HC&&vO?vO(t):Qse(t)}return Uf[e]},Wt=function(e){return typeof e=="object"?e!==null:qt(e)},ele=Pe.String,tle=Pe.TypeError,vn=function(e){if(Wt(e))return e;throw tle(ele(e)+" is not an object")},Ja=!Ut((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Zx=Pe.document,rle=Wt(Zx)&&Wt(Zx.createElement),UC=function(e){return rle?Zx.createElement(e):{}},CR=!Ja&&!Ut((function(){return Object.defineProperty(UC("div"),"a",{get:function(){return 7}}).a!=7})),Vf=Function.prototype.call,Ar=Vf.bind?Vf.bind(Vf):function(){return Vf.apply(Vf,arguments)},sm=Ge({}.isPrototypeOf),nle=Pe.Object,H2=HC?function(e){return typeof e=="symbol"}:function(e){var t=Fh("Symbol");return qt(t)&&sm(t.prototype,nle(e))},ole=Pe.String,Qx=function(e){try{return ole(e)}catch{return"Object"}},ile=Pe.TypeError,VC=function(e){if(qt(e))return e;throw ile(Qx(e)+" is not a function")},Ap=function(e,t){var r=e[t];return r==null?void 0:VC(r)},ale=Pe.TypeError,ule=Pe.TypeError,sle=Lr("toPrimitive"),WC=function(e){var t=(function(r,n){if(!Wt(r)||H2(r))return r;var o,i=Ap(r,sle);if(i){if(o=Ar(i,r,n),!Wt(o)||H2(o))return o;throw ule("Can't convert object to primitive value")}return(function(a,u){var s,l;if(qt(s=a.toString)&&!Wt(l=Ar(s,a))||qt(s=a.valueOf)&&!Wt(l=Ar(s,a)))return l;throw ale("Can't convert object to primitive value")})(r)})(e,"string");return H2(t)?t:t+""},lle=Pe.TypeError,mO=Object.defineProperty,qs={f:Ja?mO:function(e,t,r){if(vn(e),t=WC(t),vn(r),CR)try{return mO(e,t,r)}catch{}if("get"in r||"set"in r)throw lle("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},cle=Math.ceil,fle=Math.floor,Bh=function(e){var t=+e;return t!=t||t===0?0:(t>0?fle:cle)(t)},dle=Math.max,ple=Math.min,e6=function(e,t){var r=Bh(e);return r<0?dle(r+t,0):ple(r,t)},hle=Math.min,DR=function(e){return e>0?hle(Bh(e),9007199254740991):0},Yc=function(e){return DR(e.length)},yO=function(e){return function(t,r,n){var o,i=Kc(t),a=Yc(i),u=e6(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},_R={includes:yO(!0),indexOf:yO(!1)},Gy={},gle=_R.indexOf,bO=Ge([].push),AR=function(e,t){var r,n=Kc(e),o=0,i=[];for(r in n)!br(Gy,r)&&br(n,r)&&bO(i,r);for(;t.length>o;)br(n,r=t[o++])&&(~gle(i,r)||bO(i,r));return i},lm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vle=Object.keys||function(e){return AR(e,lm)},mle=Ja?Object.defineProperties:function(e,t){vn(e);for(var r,n=Kc(t),o=vle(t),i=o.length,a=0;i>a;)qs.f(e,r=o[a++],n[r]);return e},yle=Fh("document","documentElement"),wO=$C("keys"),GC=function(e){return wO[e]||(wO[e]=zC(e))},kR=GC("IE_PROTO"),U2=function(){},OR=function(e){return"<script>"+e+"<\/script>"},EO=function(e){e.write(OR("")),e.close();var t=e.parentWindow.Object;return e=null,t},Pv=function(){try{Lg=new ActiveXObject("htmlfile")}catch{}var e,t;Pv=typeof document<"u"?document.domain&&Lg?EO(Lg):((t=UC("iframe")).style.display="none",yle.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(OR("document.F=Object")),e.close(),e.F):EO(Lg);for(var r=lm.length;r--;)delete Pv.prototype[lm[r]];return Pv()};Gy[kR]=!0;var qC=Object.create||function(e,t){var r;return e!==null?(U2.prototype=vn(e),r=new U2,U2.prototype=null,r[kR]=e):r=Pv(),t===void 0?r:mle(r,t)},t6=Lr("unscopables"),r6=Array.prototype;r6[t6]==null&&qs.f(r6,t6,{configurable:!0,value:qC(null)});var Hd=function(e){r6[t6][e]=!0},Sc={},ble=Ge(Function.toString);qt(ja.inspectSource)||(ja.inspectSource=function(e){return ble(e)});var cm,Ud,fm,KC=ja.inspectSource,xO=Pe.WeakMap,TR=qt(xO)&&/native code/.test(KC(xO)),qy=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Na=Ja?function(e,t,r){return qs.f(e,t,qy(1,r))}:function(e,t,r){return e[t]=r,e},n6=Pe.TypeError,wle=Pe.WeakMap;if(TR||ja.state){var _u=ja.state||(ja.state=new wle),Ele=Ge(_u.get),SO=Ge(_u.has),xle=Ge(_u.set);cm=function(e,t){if(SO(_u,e))throw new n6("Object already initialized");
62return t.facade=e,xle(_u,e,t),t},Ud=function(e){return Ele(_u,e)||{}},fm=function(e){return SO(_u,e)}}else{var hl=GC("state");Gy[hl]=!0,cm=function(e,t){if(br(e,hl))throw new n6("Object already initialized");return t.facade=e,Na(e,hl,t),t},Ud=function(e){return br(e,hl)?e[hl]:{}},fm=function(e){return br(e,hl)}}var fs,CO,DO,oi={set:cm,get:Ud,has:fm,enforce:function(e){return fm(e)?Ud(e):cm(e,{})},getterFor:function(e){return function(t){var r;if(!Wt(t)||(r=Ud(t)).type!==e)throw n6("Incompatible receiver, "+e+" required");return r}}},_O={}.propertyIsEnumerable,AO=Object.getOwnPropertyDescriptor,Sle={f:AO&&!_O.call({1:2},1)?function(e){var t=AO(this,e);return!!t&&t.enumerable}:_O},kO=Object.getOwnPropertyDescriptor,FR={f:Ja?kO:function(e,t){if(e=Kc(e),t=WC(t),CR)try{return kO(e,t)}catch{}if(br(e,t))return qy(!Ar(Sle.f,e,t),e[t])}},BR=Function.prototype,Cle=Ja&&Object.getOwnPropertyDescriptor,OO=br(BR,"name"),YC={PROPER:OO&&(function(){}).name==="something",CONFIGURABLE:OO&&(!Ja||Ja&&Cle(BR,"name").configurable)},Ri=RC((function(e){var t=YC.CONFIGURABLE,r=oi.get,n=oi.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;qt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!br(u,"name")||t&&u.name!==p)&&Na(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==Pe?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Na(i,a,u)):f?i[a]=u:MC(a,u)})(Function.prototype,"toString",(function(){return qt(this)&&r(this).source||KC(this)}))})),Dle=lm.concat("length","prototype"),dm={f:Object.getOwnPropertyNames||function(e){return AR(e,Dle)}},_le={f:Object.getOwnPropertySymbols},Ale=Ge([].concat),kle=Fh("Reflect","ownKeys")||function(e){var t=dm.f(vn(e)),r=_le.f;return r?Ale(t,r(e)):t},Ole=function(e,t){for(var r=kle(t),n=qs.f,o=FR.f,i=0;i<r.length;i++){var a=r[i];br(e,a)||n(e,a,o(t,a))}},Tle=/#|\.prototype\./,Ph=function(e,t){var r=Ble[Fle(e)];return r==jle||r!=Ple&&(qt(t)?Ut(t):!!t)},Fle=Ph.normalize=function(e){return String(e).replace(Tle,".").toLowerCase()},Ble=Ph.data={},Ple=Ph.NATIVE="N",jle=Ph.POLYFILL="P",o6=Ph,Nle=FR.f,Za=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Pe:l?Pe[u]||MC(u,{}):(Pe[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Nle(r,n))&&a.value:r[n],!o6(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Ole(i,o)}(e.sham||o&&o.sham)&&Na(i,"sham",!0),Ri(r,n,i,e)}},Ile=!Ut((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),TO=GC("IE_PROTO"),i6=Pe.Object,Lle=i6.prototype,pm=Ile?i6.getPrototypeOf:function(e){var t=Th(e);if(br(t,TO))return t[TO];var r=t.constructor;return qt(r)&&t instanceof r?r.prototype:t instanceof i6?Lle:null},a6=Lr("iterator"),PR=!1;[].keys&&("next"in(DO=[].keys())?(CO=pm(pm(DO)))!==Object.prototype&&(fs=CO):PR=!0);var Rle=fs==null||Ut((function(){var e={};return fs[a6].call(e)!==e}));Rle&&(fs={}),qt(fs[a6])||Ri(fs,a6,(function(){return this}));var XC={IteratorPrototype:fs,BUGGY_SAFARI_ITERATORS:PR},Mle=qs.f,FO=Lr("toStringTag"),u6=function(e,t,r){e&&!br(e=r?e:e.prototype,FO)&&Mle(e,FO,{configurable:!0,value:t})},$le=XC.IteratorPrototype,zle=function(){return this},Hle=Pe.String,Ule=Pe.TypeError,hm=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Ge(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return vn(n),(function(i){if(typeof i=="object"||qt(i))return i;throw Ule("Can't set "+Hle(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),Vle=YC.PROPER,Wle=YC.CONFIGURABLE,BO=XC.IteratorPrototype,V2=XC.BUGGY_SAFARI_ITERATORS,Wf=Lr("iterator"),Gle=function(){return this},jR=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=qC($le,{next:qy(1,h)}),u6(g,w,!1),Sc[w]=zle})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!V2&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[Wf]||d["@@iterator"]||o&&d[o],v=!V2&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=pm(m.call(new e)))!==Object.prototype&&u.next&&(pm(u)!==BO&&(hm?hm(u,BO):qt(u[Wf])||Ri(u,Wf,Gle)),u6(u,c,!0)),Vle&&o=="values"&&p&&p.name!=="values"&&(Wle?Na(d,"name","values"):(f=!0,v=function(){return Ar(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Za({target:t,proto:!0,forced:V2||f},s)),d[Wf]!==v&&Ri(d,Wf,v,{name:o}),Sc[t]=v,s},qle=oi.set,Kle=oi.getterFor("Array Iterator"),Ad=jR(Array,"Array",(function(e,t){qle(this,{type:"Array Iterator",target:Kc(e),index:0,kind:t})}),(function(){var e=Kle(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");Sc.Arguments=Sc.Array,Hd("keys"),Hd("values"),Hd("entries");var NR={};NR[Lr("toStringTag")]="z";var JC=String(NR)==="[object z]",Yle=Lr("toStringTag"),Xle=Pe.Object,Jle=Fi((function(){return arguments})())=="Arguments",Ky=JC?Fi:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Xle(e),Yle))=="string"?r:Jle?Fi(t):(n=Fi(t))=="Object"&&qt(t.callee)?"Arguments":n},Zle=JC?{}.toString:function(){return"[object "+Ky(this)+"]"};JC||Ri(Object.prototype,"toString",Zle,{unsafe:!0});var Qle=Pe.String,xi=function(e){if(Ky(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Qle(e)},ece=Ge("".charAt),PO=Ge("".charCodeAt),tce=Ge("".slice),rce=function(e){return function(t,r){var n,o,i=xi(Wy(t)),a=Bh(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=PO(i,a))<55296||n>56319||a+1===u||(o=PO(i,a+1))<56320||o>57343?e?ece(i,a):n:e?tce(i,a,a+2):o-56320+(n-55296<<10)+65536}},IR={charAt:rce(!0)},nce=IR.charAt,oce=oi.set,ice=oi.getterFor("String Iterator");jR(String,"String",(function(e){oce(this,{type:"String Iterator",string:xi(e),index:0})}),(function(){var e,t=ice(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=nce(r,n),t.index+=e.length,{value:e,done:!1})}));var s6=function(e,t,r){for(var n in t)Ri(e,n,t[n],r);return e},ace=Pe.Array,uce=Math.max,jO=dm.f,NO=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],sce={f:function(e){return NO&&Fi(e)=="Window"?(function(t){try{return jO(t)}catch{return(function(n,o,i){for(var a,u,s,l,c=Yc(n),f=e6(void 0,c),d=e6(c,
62c),p=ace(uce(d-f,0)),v=0;f<d;f++,v++)a=p,u=v,s=n[f],(l=WC(u))in a?qs.f(a,l,qy(0,s)):a[l]=s;return p.length=v,p})(NO)}})(e):jO(Kc(e))}},IO=Ut((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Rg=Object.isExtensible,Gu=Ut((function(){Rg(1)}))||IO?function(e){return!!Wt(e)&&(!IO||Fi(e)!="ArrayBuffer")&&(!Rg||Rg(e))}:Rg,lce=!Ut((function(){return Object.isExtensible(Object.preventExtensions({}))})),ZC=RC((function(e){var t=qs.f,r=!1,n=zC("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=dm.f,s=Ge([].splice),l={};l[n]=1,u(l).length&&(dm.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Za({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:sce.f}))},fastKey:function(u,s){if(!Wt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!br(u,n)){if(!Gu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!br(u,n)){if(!Gu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return lce&&r&&Gu(u)&&!br(u,n)&&i(u),u}};Gy[n]=!0})),LO=Ge(Ge.bind),QC=function(e,t){return VC(e),t===void 0?e:LO?LO(e,t):function(){return e.apply(t,arguments)}},cce=Lr("iterator"),fce=Array.prototype,dce=Lr("iterator"),RO=function(e){if(e!=null)return Ap(e,dce)||Ap(e,"@@iterator")||Sc[Ky(e)]},pce=Pe.TypeError,MO=function(e,t,r){var n,o;vn(e);try{if(!(n=Ap(e,"return"))){if(t==="throw")throw r;return r}n=Ar(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return vn(n),r},hce=Pe.TypeError,jv=function(e,t){this.stopped=e,this.result=t},$O=jv.prototype,LR=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=QC(t,f),g=function(h){return n&&MO(n,"normal",h),new jv(!0,h)},y=function(h){return d?(vn(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)n=e;else{if(!(o=RO(e)))throw hce(Qx(e)+" is not iterable");if((c=o)!==void 0&&(Sc.Array===c||fce[cce]===c)){for(i=0,a=Yc(e);a>i;i++)if((u=y(e[i]))&&sm($O,u))return u;return new jv(!1)}n=(function(h,b){var w=arguments.length<2?RO(h):b;if(VC(w))return vn(Ar(w,h));throw pce(Qx(h)+" is not iterable")})(e,o)}for(s=n.next;!(l=Ar(s,n)).done;){try{u=y(l.value)}catch(h){MO(n,"throw",h)}if(typeof u=="object"&&u&&sm($O,u))return u}return new jv(!1)},gce=Pe.TypeError,RR=function(e,t){if(sm(t,e))return e;throw gce("Incorrect invocation")},MR=Lr("iterator"),$R=!1;try{var vce=0,zO={next:function(){return{done:!!vce++}},return:function(){$R=!0}};zO[MR]=function(){return this},Array.from(zO,(function(){throw 2}))}catch{}var l6=Array.isArray||function(e){return Fi(e)=="Array"},zR=function(){},mce=[],HR=Fh("Reflect","construct"),e5=/^\s*(?:class|function)\b/,yce=Ge(e5.exec),bce=!e5.exec(zR),Gf=function(e){if(!qt(e))return!1;try{return HR(zR,mce,e),!0}catch{return!1}},wce=!HR||Ut((function(){var e;return Gf(Gf.call)||!Gf(Object)||!Gf((function(){e=!0}))||e}))?function(e){if(!qt(e))return!1;switch(Ky(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return bce||!!yce(e5,KC(e))}:Gf,Ece=Lr("species"),HO=Pe.Array,UR=function(e,t){return new((function(r){var n;return l6(r)&&(n=r.constructor,(wce(n)&&(n===HO||l6(n.prototype))||Wt(n)&&(n=n[Ece])===null)&&(n=void 0)),n===void 0?HO:n})(e))(t===0?0:t)},UO=Ge([].push),W2=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=Th(s),m=SR(v),g=QC(l,c),y=Yc(m),h=0,b=f||UR,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:UO(w,d)}else switch(e){case 4:return!1;case 7:UO(w,d)}return i?-1:n||o?o:w}},t5={filter:W2(2),find:W2(5),findIndex:W2(6)},Mg=ZC.getWeakData,xce=oi.set,Sce=oi.getterFor,Cce=t5.find,Dce=t5.findIndex,_ce=Ge([].splice),Ace=0,$g=function(e){return e.frozen||(e.frozen=new VR)},VR=function(){this.entries=[]},G2=function(e,t){return Cce(e.entries,(function(r){return r[0]===t}))};VR.prototype={get:function(e){var t=G2(this,e);if(t)return t[1]},has:function(e){return!!G2(this,e)},set:function(e,t){var r=G2(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Dce(this.entries,(function(r){return r[0]===e}));return~t&&_ce(this.entries,t,1),!!~t}};var qf,WR={getConstructor:function(e,t,r,n){var o=e((function(s,l){RR(s,i),xce(s,{type:t,id:Ace++,frozen:void 0}),l!=null&&LR(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=Sce(t),u=function(s,l,c){var f=a(s),d=Mg(vn(l),!0);return d===!0?$g(f).set(l,c):d[f.id]=c,s};return s6(i,{delete:function(s){var l=a(this);if(!Wt(s))return!1;var c=Mg(s);return c===!0?$g(l).delete(s):c&&br(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Wt(s))return!1;var c=Mg(s);return c===!0?$g(l).has(s):c&&br(c,l.id)}}),s6(i,r?{get:function(s){var l=a(this);if(Wt(s)){var c=Mg(s);return c===!0?$g(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},zg=oi.enforce,kce=!Pe.ActiveXObject&&"ActiveXObject"in Pe,GR=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Oce=(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=Pe[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ge(u[g]);Ri(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Wt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Wt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Wt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(o6(e,!qt(a)||!(o||u.forEach&&!Ut((function(){new a().entries().next()})))))s=r.getConstructor(t,e,n,i),ZC.enable();else if(o6(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Ut((function(){f.has(1)})),v=(function(g,y){if(!$R)return!1;var h=!1;try{var b={};b[MR]=function(){return{next:function(){return{done:h=!0}}}},(function(w){new a(w)})(b)}catch{}return h})(),m=!o&&Ut((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((s=t((function(g,y){RR(g,u);var h=(function(b,w,E){var C,S;return hm&&qt(C=w.constructor)&&C!==E&&Wt(S=C.prototype)&&S!==E.prototype&&hm(b,S),b})(new a,g,s);return y!=null&&LR(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Za({global:!0,forced:s!=a}
62,l),u6(s,e),o||r.setStrong(s,e,n),s})("WeakMap",GR,WR);if(TR&&kce){qf=WR.getConstructor(GR,"WeakMap",!0),ZC.enable();var Kf=Oce.prototype,VO=Ge(Kf.delete),Hg=Ge(Kf.has),WO=Ge(Kf.get),GO=Ge(Kf.set);s6(Kf,{delete:function(e){if(Wt(e)&&!Gu(e)){var t=zg(this);return t.frozen||(t.frozen=new qf),VO(this,e)||t.frozen.delete(e)}return VO(this,e)},has:function(e){if(Wt(e)&&!Gu(e)){var t=zg(this);return t.frozen||(t.frozen=new qf),Hg(this,e)||t.frozen.has(e)}return Hg(this,e)},get:function(e){if(Wt(e)&&!Gu(e)){var t=zg(this);return t.frozen||(t.frozen=new qf),Hg(this,e)?WO(this,e):t.frozen.get(e)}return WO(this,e)},set:function(e,t){if(Wt(e)&&!Gu(e)){var r=zg(this);r.frozen||(r.frozen=new qf),Hg(this,e)?GO(this,e,t):r.frozen.set(e,t)}else GO(this,e,t);return this}})}var qR={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},q2=UC("span").classList,qO=q2&&q2.constructor&&q2.constructor.prototype,Tce=qO===Object.prototype?void 0:qO,K2=Lr("iterator"),KO=Lr("toStringTag"),Y2=Ad.values,KR=function(e,t){if(e){if(e[K2]!==Y2)try{Na(e,K2,Y2)}catch{e[K2]=Y2}if(e[KO]||Na(e,KO,t),qR[t]){for(var r in Ad)if(e[r]!==Ad[r])try{Na(e,r,Ad[r])}catch{e[r]=Ad[r]}}}};for(var X2 in qR)KR(Pe[X2]&&Pe[X2].prototype,X2);KR(Tce,"DOMTokenList");var c6=new WeakMap,Fce={type:"list-item",renderElem:function(e,t,r){c6.set(e,r);var n=e,o=n.level,i=o===void 0?0:o,a=n.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=(function(f,d){var p=d,v=p.type,m=p.level,g=m===void 0?0:m,y=p.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,w=d,E=O.findPath(f,w);if(E[0]===0)return 1;for(;E[0]>0;){var C=L.previous(E),S=x.node(f,C);if(S==null)break;var k=S[0],P=k.level,G=P===void 0?0:P,J=k.type,M=k.ordered;if(J!==v||G<g)break;if(G===g){if(M!==h)break;b++}w=k,E=C}return b})(r,e);s=l+"."}else s=(function(f){f===void 0&&(f=0);var d="";switch(f){case 0:d="â¢";break;case 1:d="â¦";break;default:d="âª"}return d})(i);var c=(function(f){var d,p=f.children||[],v=p.length;if(v===0)return"";for(var m=0;m<v&&!d;m++){var g=p[m];ye.isText(g)&&(d=g)}return d==null?"":d.color||""})(e);return Be("div",{style:u},Be("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Be("span",null,t))}},f6=function(e,t){return f6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},f6(e,t);};function YR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f6(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function YO(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vd(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function XO(e){return x.nodes(e,{at:e.selection||void 0,match:function(t){return O.findPath(e,t).length===1}})}var Bce=_R.includes;Za({target:"Array",proto:!0},{includes:function(e){return Bce(this,e,arguments.length>1?arguments[1]:void 0)}}),Hd("includes");var JO,J2,Pce=function(){var e=vn(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},r5=Pe.RegExp,XR=Ut((function(){var e=r5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));XR||Ut((function(){return!r5("a","y").sticky}));var jce={BROKEN_CARET:XR||Ut((function(){var e=r5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},Nce=Pe.RegExp,Ice=Ut((function(){var e=Nce(".","s");return!(e.dotAll&&e.exec(` 63`)&&e.flags==="s")})),Lce=Pe.RegExp,Rce=Ut((function(){var e=Lce("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),Mce=oi.get,$ce=$C("native-string-replace",String.prototype.replace),gm=RegExp.prototype.exec,d6=gm,zce=Ge("".charAt),Hce=Ge("".indexOf),Uce=Ge("".replace),Z2=Ge("".slice),Q2=(J2=/b*/g,Ar(gm,JO=/a/,"a"),Ar(gm,J2,"a"),JO.lastIndex!==0||J2.lastIndex!==0),ZO=jce.BROKEN_CARET,ew=/()??/.exec("")[1]!==void 0;(Q2||ew||ZO||Ice||Rce)&&(d6=function(e){var t,r,n,o,i,a,u,s=this,l=Mce(s),c=xi(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Ar(d6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ZO&&s.sticky,v=Ar(Pce,s),m=s.source,g=0,y=c;if(p&&(v=Uce(v,"y",""),Hce(v,"g")===-1&&(v+="g"),y=Z2(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&zce(c,s.lastIndex-1)!==` 64`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),ew&&(r=new RegExp("^"+m+"$(?!\\s)",v)),Q2&&(n=s.lastIndex),o=Ar(gm,p?r:s,y),p?o?(o.input=Z2(o.input,g),o[0]=Z2(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Q2&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),ew&&o&&o.length>1&&Ar($ce,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=qC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
64);var vm=d6;Za({target:"RegExp",proto:!0,forced:/./.exec!==vm},{exec:vm});var JR=(function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var r=this.type;return O.getSelectedNodeByType(t,r)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var r=this.getListNode(t);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!O.getSelectedElems(t).some((function(r){if(x.isVoid(t,r)&&x.isBlock(t,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(t,r){this.isActive(t)?z.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):z.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e})(),Vce='<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>',Wce='<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>',Gce=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=he("listModule.unOrderedList"),r.iconSvg=Vce,r}return YR(t,e),t})(JR),qce=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=he("listModule.orderedList"),r.iconSvg=Wce,r}return YR(t,e),t})(JR),Kce={key:"bulletedList",factory:function(){return new Gce}},Yce={key:"numberedList",factory:function(){return new qce}},QO=[],Xce={type:"list-item",elemToHtml:function(e,t){var r="",n="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=(function(l){var c=c6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,m=f.level,g=m===void 0?0:m,y=O.findPath(c,l);if(y[0]===0)return g+1;var h=L.previous(y),b=x.node(c,h);if(!b)return 0;var w=Vd(b,1)[0];if(O.getNodeType(w)!==d)return g+1;var E=w,C=E.ordered,S=C!==void 0&&C,k=E.level,P=k===void 0?0:k;return P<g?g-P:P>g?0:P===g?S===v?0:1:0})(e);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",QO.push(i);var s=(function(l){var c=c6.get(l);if(c==null)return 0;var f=l,d=f.type,p=f.ordered,v=p!==void 0&&p,m=f.level,g=m===void 0?0:m,y=O.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=L.next(y),b=x.node(c,h);if(!b)return 0;var w=Vd(b,1)[0];if(O.getNodeType(w)!==d)return g+1;var E=w,C=E.ordered,S=C!==void 0&&C,k=E.level,P=k===void 0?0:k;return P<g?g-P:P>g?0:P===g?S===v?0:1:0})(e);if(s>0)for(u=0;u<s;u++)n+="</"+QO.pop()+">";return{html:"<li>"+t+"</li>",prefix:r,suffix:n}}},Jce=Lr("species"),Zce=t5.filter,Qce=Xx>=51||!Ut((function(){var e=[];return(e.constructor={})[Jce]=function(){return{foo:1}},e.filter(Boolean).foo!==1}));Za({target:"Array",proto:!0,forced:!Qce},{filter:function(e){return Zce(this,e,arguments.length>1?arguments[1]:void 0)}});var n5=Function.prototype,eT=n5.apply,efe=n5.bind,tT=n5.call,tfe=typeof Reflect=="object"&&Reflect.apply||(efe?tT.bind(eT):function(){return tT.apply(eT,arguments)}),rT=(Lr("species"),RegExp.prototype),rfe=IR.charAt,nfe=function(e,t,r){return t+(r?rfe(e,t).length:1)},ofe=Math.floor,tw=Ge("".charAt),ife=Ge("".replace),rw=Ge("".slice),afe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ufe=/\$([$&'`]|\d{1,2})/g,sfe=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=ufe;return o!==void 0&&(o=Th(o),s=afe),ife(i,s,(function(l,c){var f;switch(tw(c,0)){case"$":return"$";case"&":return e;case"`":return rw(t,0,r);case"'":return rw(t,a);case"<":f=o[rw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=ofe(d/10);return p===0?l:p<=u?n[p-1]===void 0?tw(c,1):n[p-1]+tw(c,1):l}f=n[d-1]}return f===void 0?"":f}))},lfe=Pe.TypeError,cfe=function(e,t){var r=e.exec;if(qt(r)){var n=Ar(r,e,t);return n!==null&&vn(n),n}if(Fi(e)==="RegExp")return Ar(vm,e,t);throw lfe("RegExp#exec called on incompatible receiver")},p6=Lr("replace"),ffe=Math.max,dfe=Math.min,pfe=Ge([].concat),nw=Ge([].push),nT=Ge("".indexOf),oT=Ge("".slice),hfe="a".replace(/./,"$0")==="$0",iT=!!/./[p6]&&/./[p6]("a","$0")==="";(function(e,t,r,n){var o=Lr(e),i=!Ut((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Ut((function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Ge(/./[o]),s=(function(l,c,f){var d=iT?"$":"$0";return[function(p,v){var m=Wy(this),g=p==null?void 0:Ap(p,p6);return g?Ar(g,p,m,v):Ar(c,xi(m),p,v)},function(p,v){var m=vn(this),g=xi(p);if(typeof v=="string"&&nT(v,d)===-1&&nT(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=qt(v);h||(v=xi(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var E=[];;){var C=cfe(m,g);if(C===null||(nw(E,C),!b))break;xi(C[0])===""&&(m.lastIndex=nfe(g,DR(m.lastIndex),w))}for(var S,k="",P=0,G=0;G<E.length;G++){for(var J=xi((C=E[G])[0]),M=ffe(dfe(Bh(C.index),g.length),0),X=[],$=1;$<C.length;$++)nw(X,(S=C[$])===void 0?S:String(S));var V=C.groups;if(h){var Q=pfe([J],X,M,g);V!==void 0&&nw(Q,V);var ie=xi(tfe(v,void 0,Q))}else ie=sfe(J,g,M,X,V,v);M>=P&&(k+=oT(g,P,M)+ie,P=M+J.length)}return k+oT(g,P)}]})(0,""[e],(function(l,c,f,d,p){var v=Ge(l),m=c.exec;return m===vm||m===rT.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}
64));Ri(String.prototype,e,s[0]),Ri(rT,o,s[1])}})("replace",0,!!Ut((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!hfe||iT);var gfe=Pe.TypeError,ZR=function(e,t,r,n,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&QC(a,u);f<n;){if(f in r){if(s=d?d(r[f],f,t):r[f],i>0&&l6(s))l=Yc(s),c=ZR(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw gfe("Exceed the acceptable array length");e[c]=s}c++}f++}return c},vfe=ZR;function ow(e){return e.length?e[0].tagName.toLowerCase():""}Za({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Th(this),r=Yc(t),n=UR(t,0);return n.length=vfe(n,t,t,r,0,e===void 0?1:Bh(e)),n}}),Hd("flat"),Za({global:!0},{globalThis:Pe}),no&&(B.fn.append=no),ro&&(B.fn.attr=ro),cc&&(B.fn.parent=cc);var mfe={renderElems:[Fce],editorPlugin:function(e){var t=e.deleteBackward,r=e.handleTab,n=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(Z.isExpanded(a))t(i);else{var u=O.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)t(i);else{var s=u.level,l=s===void 0?0:s;l>0?z.setNodes(o,{level:l-1}):z.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(Z.isCollapsed(l)){var c=O.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,d=f===void 0?0:f;return void z.setNodes(o,{level:d+1})}}if(Z.isExpanded(l)){var p=0,v=!1;try{for(var m=YO(XO(o)),g=m.next();!g.done;g=m.next()){var y=Vd(g.value,1)[0];O.getNodeType(y)==="list-item"?p++:v=!0}}catch(S){i={error:S}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}if(v||p<=1)return void r();try{for(var h=YO(XO(o)),b=h.next();!b.done;b=h.next()){var w=Vd(b.value,2),E=(y=w[0],w[1]),C=y.level;d=C===void 0?0:C,z.setNodes(o,{level:d+1},{at:E})}}catch(S){u={error:S}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(i){var a=Vd(i,2),u=a[0],s=a[1],l=O.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||z.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[Kce,Yce],elemsToHtml:[Xce],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,r){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e);(t=t.filter((function(a){return!!ye.isText(a)||!!r.isInline(a)}))).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=(function(a){return ow(a.parent())==="ol"})(n),i=(function(a){for(var u=0,s=a.parent(),l=ow(s);l==="ul"||l==="ol";)l=ow(s=s.parent()),u++;return u-1})(n);return{type:"list-item",ordered:o,level:i,children:t}}}]},QR=Is((function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",E=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[i]=S[b]=S[a]=S[w]=S[u]=S[s]=S[l]=S[c]=S[f]=S[d]=S[v]=S[m]=S[g]=S[h]=!1;var k=typeof bt=="object"&&bt&&bt.Object===Object&&bt,P=typeof self=="object"&&self&&self.Object===Object&&self,G=k||P||Function("return this")(),J=t&&!t.nodeType&&t,M=J&&e&&!e.nodeType&&e,X=M&&M.exports===J,$=X&&k.process,V=(function(){try{return $&&$.binding&&$.binding("util")}catch{}})(),Q=V&&V.isTypedArray;function ie(N,Y){for(var fe=-1,xe=N==null?0:N.length;++fe<xe;)if(Y(N[fe],fe,N))return!0;return!1}function le(N){var Y=-1,fe=Array(N.size);return N.forEach((function(xe,ke){fe[++Y]=[ke,xe]})),fe}function q(N){var Y=-1,fe=Array(N.size);
64return N.forEach((function(xe){fe[++Y]=xe})),fe}var U=Array.prototype,_=Function.prototype,D=Object.prototype,F=G["__core-js_shared__"],H=_.toString,ee=D.hasOwnProperty,W=(function(){var N=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||"");return N?"Symbol(src)_1."+N:""})(),I=D.toString,ne=RegExp("^"+H.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ae=X?G.Buffer:void 0,be=G.Symbol,K=G.Uint8Array,ze=D.propertyIsEnumerable,je=U.splice,Ee=be?be.toStringTag:void 0,_e=Object.getOwnPropertySymbols,Ft=ae?ae.isBuffer:void 0,Ke=(function(N,Y){return function(fe){return N(Y(fe))}})(Object.keys,Object),st=jo(G,"DataView"),pt=jo(G,"Map"),Er=jo(G,"Promise"),Ye=jo(G,"Set"),Rr=jo(G,"WeakMap"),mn=jo(Object,"create"),$n=ho(st),Ui=ho(pt),di=ho(Er),yn=ho(Ye),zn=ho(Rr),co=be?be.prototype:void 0,xr=co?co.valueOf:void 0;function Sr(N){var Y=-1,fe=N==null?0:N.length;for(this.clear();++Y<fe;){var xe=N[Y];this.set(xe[0],xe[1])}}function Cr(N){var Y=-1,fe=N==null?0:N.length;for(this.clear();++Y<fe;){var xe=N[Y];this.set(xe[0],xe[1])}}function Br(N){var Y=-1,fe=N==null?0:N.length;for(this.clear();++Y<fe;){var xe=N[Y];this.set(xe[0],xe[1])}}function rr(N){var Y=-1,fe=N==null?0:N.length;for(this.__data__=new Br;++Y<fe;)this.add(N[Y])}function rn(N){var Y=this.__data__=new Cr(N);this.size=Y.size}function du(N,Y){var fe=go(N),xe=!fe&&hu(N),ke=!fe&&!xe&&Hn(N),Ne=!fe&&!xe&&!ke&&Oe(N),j=fe||xe||ke||Ne,te=j?(function(Qe,Bt){for(var Et=-1,rt=Array(Qe);++Et<Qe;)rt[Et]=Bt(Et);return rt})(N.length,String):[],me=te.length;for(var Se in N)!ee.call(N,Se)||j&&(Se=="length"||ke&&(Se=="offset"||Se=="parent")||Ne&&(Se=="buffer"||Se=="byteLength"||Se=="byteOffset")||pu(Se,me))||te.push(Se);return te}function Po(N,Y){for(var fe=N.length;fe--;)if(hi(N[fe][0],Y))return fe;return-1}function fo(N){return N==null?N===void 0?"[object Undefined]":"[object Null]":Ee&&Ee in Object(N)?(function(Y){var fe=ee.call(Y,Ee),xe=Y[Ee];try{Y[Ee]=void 0;var ke=!0}catch{}var Ne=I.call(Y);return ke&&(fe?Y[Ee]=xe:delete Y[Ee]),Ne})(N):(function(Y){return I.call(Y)})(N)}function Vi(N){return de(N)&&fo(N)==o}function pi(N,Y,fe,xe,ke){return N===Y||(N==null||Y==null||!de(N)&&!de(Y)?N!=N&&Y!=Y:(function(Ne,j,te,me,Se,Qe){var Bt=go(Ne),Et=go(j),rt=Bt?i:Xr(Ne),hr=Et?i:Xr(j),Mr=(rt=rt==o?d:rt)==d,vu=(hr=hr==o?d:hr)==d,gi=rt==hr;if(gi&&Hn(Ne)){if(!Hn(j))return!1;Bt=!0,Mr=!1}if(gi&&!Mr)return Qe||(Qe=new rn),Bt||Oe(Ne)?nn(Ne,j,te,me,Se,Qe):(function(Xe,nt,ot,Vt,Jr,on,vo){switch(ot){case w:if(Xe.byteLength!=nt.byteLength||Xe.byteOffset!=nt.byteOffset)return!1;Xe=Xe.buffer,nt=nt.buffer;case b:return!(Xe.byteLength!=nt.byteLength||!on(new K(Xe),new K(nt)));case a:case u:case f:return hi(+Xe,+nt);case s:return Xe.name==nt.name&&Xe.message==nt.message;case v:case g:return Xe==nt+"";case c:var qi=le;case m:var Jc=1&Vt;if(qi||(qi=q),Xe.size!=nt.size&&!Jc)return!1;var Xh=vo.get(Xe);if(Xh)return Xh==nt;Vt|=2,vo.set(Xe,nt);var Ys=nn(qi(Xe),qi(nt),Vt,Jr,on,vo);return vo.delete(Xe),Ys;case y:if(xr)return xr.call(Xe)==xr.call(nt)}return!1})(Ne,j,rt,te,me,Se,Qe);if(!(1&te)){var Gi=Mr&&ee.call(Ne,"__wrapped__"),Fe=vu&&ee.call(j,"__wrapped__");
64if(Gi||Fe){var lt=Gi?Ne.value():Ne,Kt=Fe?j.value():j;return Qe||(Qe=new rn),Se(lt,Kt,te,me,Qe)}}return gi?(Qe||(Qe=new rn),(function(Xe,nt,ot,Vt,Jr,on){var vo=1&ot,qi=po(Xe),Jc=qi.length,Xh=po(nt).length;if(Jc!=Xh&&!vo)return!1;for(var Ys=Jc;Ys--;){var mu=qi[Ys];if(!(vo?mu in nt:ee.call(nt,mu)))return!1}var $D=on.get(Xe);if($D&&on.get(nt))return $D==nt;var Jh=!0;on.set(Xe,nt),on.set(nt,Xe);for(var h1=vo;++Ys<Jc;){var Zh=Xe[mu=qi[Ys]],Qh=nt[mu];if(Vt)var zD=vo?Vt(Qh,Zh,mu,nt,Xe,on):Vt(Zh,Qh,mu,Xe,nt,on);if(!(zD===void 0?Zh===Qh||Jr(Zh,Qh,ot,Vt,on):zD)){Jh=!1;break}h1||(h1=mu=="constructor")}if(Jh&&!h1){var eg=Xe.constructor,tg=nt.constructor;eg==tg||!("constructor"in Xe)||!("constructor"in nt)||typeof eg=="function"&&eg instanceof eg&&typeof tg=="function"&&tg instanceof tg||(Jh=!1)}return on.delete(Xe),on.delete(nt),Jh})(Ne,j,te,me,Se,Qe)):!1})(N,Y,fe,xe,pi,ke))}function Wi(N){return!(!se(N)||(function(Y){return!!W&&W in Y})(N))&&(gu(N)?ne:E).test(ho(N))}function bn(N){if(fe=(Y=N)&&Y.constructor,xe=typeof fe=="function"&&fe.prototype||D,Y!==xe)return Ke(N);var Y,fe,xe,ke=[];for(var Ne in Object(N))ee.call(N,Ne)&&Ne!="constructor"&&ke.push(Ne);return ke}function nn(N,Y,fe,xe,ke,Ne){var j=1&fe,te=N.length,me=Y.length;if(te!=me&&!(j&&me>te))return!1;var Se=Ne.get(N);if(Se&&Ne.get(Y))return Se==Y;var Qe=-1,Bt=!0,Et=2&fe?new rr:void 0;for(Ne.set(N,Y),Ne.set(Y,N);++Qe<te;){var rt=N[Qe],hr=Y[Qe];if(xe)var Mr=j?xe(hr,rt,Qe,Y,N,Ne):xe(rt,hr,Qe,N,Y,Ne);if(Mr!==void 0){if(Mr)continue;Bt=!1;break}if(Et){if(!ie(Y,(function(vu,gi){if(Gi=gi,!Et.has(Gi)&&(rt===vu||ke(rt,vu,fe,xe,Ne)))return Et.push(gi);var Gi}))){Bt=!1;break}}else if(rt!==hr&&!ke(rt,hr,fe,xe,Ne)){Bt=!1;break}}return Ne.delete(N),Ne.delete(Y),Bt}function po(N){return(function(Y,fe,xe){var ke=fe(Y);return go(Y)?ke:(function(Ne,j){for(var te=-1,me=j.length,Se=Ne.length;++te<me;)Ne[Se+te]=j[te];return Ne})(ke,xe(Y))})(N,Ct,Ks)}function wn(N,Y){var fe,xe,ke=N.__data__;return((xe=typeof(fe=Y))=="string"||xe=="number"||xe=="symbol"||xe=="boolean"?fe!=="__proto__":fe===null)?ke[typeof Y=="string"?"string":"hash"]:ke.map}function jo(N,Y){var fe=(function(xe,ke){return xe?.[ke]})(N,Y);return Wi(fe)?fe:void 0}Sr.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},Sr.prototype.delete=function(N){var Y=this.has(N)&&delete this.__data__[N];return this.size-=Y?1:0,Y},Sr.prototype.get=function(N){var Y=this.__data__;if(mn){var fe=Y[N];return fe===r?void 0:fe}return ee.call(Y,N)?Y[N]:void 0},Sr.prototype.has=function(N){var Y=this.__data__;return mn?Y[N]!==void 0:ee.call(Y,N)},Sr.prototype.set=function(N,Y){var fe=this.__data__;return this.size+=this.has(N)?0:1,fe[N]=mn&&Y===void 0?r:Y,this},Cr.prototype.clear=function(){this.__data__=[],this.size=0},Cr.prototype.delete=function(N){var Y=this.__data__,fe=Po(Y,N);return!(fe<0)&&(fe==Y.length-1?Y.pop():je.call(Y,fe,1),--this.size,!0)},Cr.prototype.get=function(N){var Y=this.__data__,fe=Po(Y,N);return fe<0?void 0:Y[fe][1]},Cr.prototype.has=function(N){return Po(this.__data__,N)>-1},Cr.prototype.set=function(N,Y){var fe=this.__data__,xe=Po(fe,N);return xe<0?(++this.size,fe.push([N,Y])):fe[xe][1]=Y,this},Br.prototype.clear=function(){this.size=0,this.__data__={hash:new Sr,map:new(pt||Cr),string:new Sr}},Br.prototype.delete=function(N){var Y=wn(this,N).delete(N);return this.size-=Y?1:0,Y},Br.prototype.get=function(N){return wn(this,N).get(N)},Br.prototype.has=function(N){return wn(this,N).has(N)},Br.prototype.set=function(N,Y){var fe=wn(this,N),xe=fe.size;return fe.set(N,Y),this.size+=fe.size==xe?0:1,this},rr.prototype.add=rr.prototype.push=function(N){return this.__data__.set(N,r),this},rr.prototype.has=function(N){return this.__data__.has(N)},rn.prototype.clear=function(){this.__data__=new Cr,this.size=0},rn.prototype.delete=function(N){var Y=this.__data__,fe=Y.delete(N);return this.size=Y.size,fe},rn.prototype.get=function(N){return this.__data__.get(N)},rn.prototype.has=function(N){return this.__data__.has(N)},rn.prototype.set=function(N,Y){var fe=this.__data__;if(fe instanceof Cr){var xe=fe.__data__;if(!pt||xe.length<199)return xe.push([N,Y]),this.size=++fe.size,this;fe=this.__data__=new Br(xe)}return fe.set(N,Y),this.size=fe.size,this};var Ks=_e?function(N){return N==null?[]:(N=Object(N),(function(Y,fe){for(var xe=-1,ke=Y==null?0:Y.length,Ne=0,j=[];++xe<ke;){var te=Y[xe];fe(te,xe,Y)&&(j[Ne++]=te)}return j})(_e(N),(function(Y){return ze.call(N,Y)})))}:function(){return[]},Xr=fo;function pu(N,Y){return!!(Y=Y??n)&&(typeof N=="number"||C.test(N))&&N>-1&&N%1==0&&N<Y}function ho(N){if(N!=null){try{return H.call(N)}catch{}try{return N+""}catch{}}return""}function hi(N,Y){return N===Y||N!=N&&Y!=Y}(st&&Xr(new st(new ArrayBuffer(1)))!=w||pt&&Xr(new pt)!=c||Er&&Xr(Er.resolve())!=p||Ye&&Xr(new Ye)!=m||Rr&&Xr(new Rr)!=h)&&(Xr=function(N){var Y=fo(N),fe=Y==d?N.constructor:void 0,xe=fe?ho(fe):"";if(xe)switch(xe){case $n:return w;case Ui:return c;case di:return p;case yn:return m;case zn:return h}return Y});var hu=Vi((function(){return arguments})())?Vi:function(N){return de(N)&&ee.call(N,"callee")&&!ze.call(N,"callee")},go=Array.isArray,Hn=Ft||function(){return!1};function gu(N){if(!se(N))return!1;var Y=fo(N);return Y==l||Y=="[object GeneratorFunction]"||Y=="[object AsyncFunction]"||Y=="[object Proxy]"}function En(N){return typeof N=="number"&&N>-1&&N%1==0&&N<=n}function se(N){var Y=typeof N;return N!=null&&(Y=="object"||Y=="function")}function de(N){return N!=null&&typeof N=="object"}var Oe=Q?(function(N){return function(Y){return N(Y)}})(Q):function(N){return de(N)&&En(N.length)&&!!S[fo(N)]};function Ct(N){return(Y=N)!=null&&En(Y.length)&&!gu(Y)?du(N):bn(N);var Y}e.exports=function(N,Y){return pi(N,Y)}}));gn("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),gn("zh-CN",{tableModule:{deleteCol:"å é¤å",deleteRow:"å é¤è¡",deleteTable:"å é¤è¡¨æ ¼",widthAuto:"宽度èªéåº",insertCol:"æå
¥å",insertRow:"æå
¥è¡",insertTable:"æå
¥è¡¨æ ¼",header:"表头"}});var aT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eM(e){var t={exports:{}};return e(t,t.exports),t.exports}var aa,Nv,Ug=function(e){return e&&e.Math==Math&&e},We=Ug(typeof globalThis=="object"&&globalThis)||Ug(typeof window=="object"&&window)||Ug(typeof self=="object"&&self)||Ug(typeof aT
64=="object"&&aT)||(function(){return this})()||Function("return this")(),dr=function(e){try{return!!e()}catch{return!0}},Qa=!dr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Yf=Function.prototype.call,mr=Yf.bind?Yf.bind(Yf):function(){return Yf.apply(Yf,arguments)},uT={}.propertyIsEnumerable,sT=Object.getOwnPropertyDescriptor,yfe={f:sT&&!uT.call({1:2},1)?function(e){var t=sT(this,e);return!!t&&t.enumerable}:uT},o5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tM=Function.prototype,h6=tM.bind,g6=tM.call,bfe=h6&&h6.bind(g6),Je=h6?function(e){return e&&bfe(g6,e)}:function(e){return e&&function(){return g6.apply(e,arguments)}},wfe=Je({}.toString),Efe=Je("".slice),Ia=function(e){return Efe(wfe(e),8,-1)},iw=We.Object,xfe=Je("".split),rM=dr((function(){return!iw("z").propertyIsEnumerable(0)}))?function(e){return Ia(e)=="String"?xfe(e,""):iw(e)}:iw,Sfe=We.TypeError,eu=function(e){if(e==null)throw Sfe("Can't call method on "+e);return e},jh=function(e){return rM(eu(e))},qr=function(e){return typeof e=="function"},Ko=function(e){return typeof e=="object"?e!==null:qr(e)},Cfe=function(e){return qr(e)?e:void 0},Nh=function(e,t){return arguments.length<2?Cfe(We[e]):We[e]&&We[e][t]},nM=Je({}.isPrototypeOf),aw=Nh("navigator","userAgent")||"",lT=We.process,cT=We.Deno,fT=lT&&lT.versions||cT&&cT.version,dT=fT&&fT.v8;dT&&(Nv=(aa=dT.split("."))[0]>0&&aa[0]<4?1:+(aa[0]+aa[1])),!Nv&&aw&&(!(aa=aw.match(/Edge\/(\d+)/))||aa[1]>=74)&&(aa=aw.match(/Chrome\/(\d+)/))&&(Nv=+aa[1]);var v6=Nv,m6=!!Object.getOwnPropertySymbols&&!dr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&v6&&v6<41})),i5=m6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Dfe=We.Object,uw=i5?function(e){return typeof e=="symbol"}:function(e){var t=Nh("Symbol");return qr(t)&&nM(t.prototype,Dfe(e))},_fe=We.String,oM=function(e){try{return _fe(e)}catch{return"Object"}},Afe=We.TypeError,iM=function(e){if(qr(e))return e;throw Afe(oM(e)+" is not a function")},a5=function(e,t){var r=e[t];return r==null?void 0:iM(r)},kfe=We.TypeError,Ofe=Object.defineProperty,u5=function(e,t){try{Ofe(We,e,{value:t,configurable:!0,writable:!0})}catch{We[e]=t}return t},La=We["__core-js_shared__"]||u5("__core-js_shared__",{}),s5=eM((function(e){(e.exports=function(t,r){return La[t]||(La[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Tfe=We.Object,l5=function(e){return Tfe(eu(e))},Ffe=Je({}.hasOwnProperty),Qn=Object.hasOwn||function(e,t){return Ffe(l5(e),t)},Bfe=0,Pfe=Math.random(),jfe=Je(1 .toString),aM=function(e){return"Symbol("+(e===void 0?"":e)+")_"+jfe(++Bfe+Pfe,36)},Xf=s5("wks"),ds=We.Symbol,pT=ds&&ds.for,Nfe=i5?ds:ds&&ds.withoutSetter||aM,lo=function(e){if(!Qn(Xf,e)||!m6&&typeof Xf[e]!="string"){var t="Symbol."+e;m6&&Qn(ds,e)?Xf[e]=ds[e]:Xf[e]=i5&&pT?pT(t):Nfe(t)}return Xf[e]},Ife=We.TypeError,Lfe=lo("toPrimitive"),c5=function(e){var t=(function(r,n){if(!Ko(r)||uw(r))return r;var o,i=a5(r,Lfe);if(i){if(o=mr(i,r,n),!Ko(o)||uw(o))return o;throw Ife("Can't convert object to primitive value")}return(function(a,u){var s,l;if(qr(s=a.toString)&&!Ko(l=mr(s,a))||qr(s=a.valueOf)&&!Ko(l=mr(s,a)))return l;throw kfe("Can't convert object to primitive value")})(r)})(e,"string");return uw(t)?t:t+""},y6=We.document,Rfe=Ko(y6)&&Ko(y6.createElement),f5=function(e){return Rfe?y6.createElement(e):{}},uM=!Qa&&!dr((function(){return Object.defineProperty(f5("div"),"a",{get:function(){return 7}}).a!=7})),hT=Object.getOwnPropertyDescriptor,sM={f:Qa?hT:function(e,t){if(e=jh(e),t=c5(t),uM)try{return hT(e,t)}catch{}if(Qn(e,t))return o5(!mr(yfe.f,e,t),e[t])}},Mfe=We.String,$fe=We.TypeError,eo=function(e){if(Ko(e))return e;throw $fe(Mfe(e)+" is not an object")},zfe=We.TypeError,gT=Object.defineProperty,Ih={f:Qa?gT:function(e,t,r){if(eo(e),t=c5(t),eo(r),uM)try{return gT(e,t,r)}catch{}if("get"in r||"set"in r)throw zfe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Cc=Qa?function(e,t,r){return Ih.f(e,t,o5(1,r))}:function(e,t,r){return e[t]=r,e},Hfe=Je(Function.toString);qr(La.inspectSource)||(La.inspectSource=function(e){return Hfe(e)}
64);var b6,mm,w6,d5=La.inspectSource,vT=We.WeakMap,Ufe=qr(vT)&&/native code/.test(d5(vT)),mT=s5("keys"),lM=function(e){return mT[e]||(mT[e]=aM(e))},p5={},yT=We.TypeError,Vfe=We.WeakMap;if(Ufe||La.state){var Au=La.state||(La.state=new Vfe),Wfe=Je(Au.get),bT=Je(Au.has),Gfe=Je(Au.set);b6=function(e,t){if(bT(Au,e))throw new yT("Object already initialized");return t.facade=e,Gfe(Au,e,t),t},mm=function(e){return Wfe(Au,e)||{}},w6=function(e){return bT(Au,e)}}else{var gl=lM("state");p5[gl]=!0,b6=function(e,t){if(Qn(e,gl))throw new yT("Object already initialized");return t.facade=e,Cc(e,gl,t),t},mm=function(e){return Qn(e,gl)?e[gl]:{}},w6=function(e){return Qn(e,gl)}}var E6={get:mm,enforce:function(e){return w6(e)?mm(e):b6(e,{})}},cM=Function.prototype,qfe=Qa&&Object.getOwnPropertyDescriptor,wT=Qn(cM,"name"),h5={PROPER:wT&&(function(){}).name==="something",CONFIGURABLE:wT&&(!Qa||Qa&&qfe(cM,"name").configurable)},kp=eM((function(e){var t=h5.CONFIGURABLE,r=E6.get,n=E6.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;qr(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qn(u,"name")||t&&u.name!==p)&&Cc(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==We?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Cc(i,a,u)):f?i[a]=u:u5(a,u)})(Function.prototype,"toString",(function(){return qr(this)&&r(this).source||d5(this)}))})),Kfe=Math.ceil,Yfe=Math.floor,Yy=function(e){var t=+e;return t!=t||t===0?0:(t>0?Yfe:Kfe)(t)},Xfe=Math.max,Jfe=Math.min,Op=function(e,t){var r=Yy(e);return r<0?Xfe(r+t,0):Jfe(r,t)},Zfe=Math.min,g5=function(e){return e>0?Zfe(Yy(e),9007199254740991):0},Xy=function(e){return g5(e.length)},Qfe=function(e){return function(t,r,n){var o,i=jh(t),a=Xy(i),u=Op(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},ede=Qfe(!1),ET=Je([].push),fM=function(e,t){var r,n=jh(e),o=0,i=[];for(r in n)!Qn(p5,r)&&Qn(n,r)&&ET(i,r);for(;t.length>o;)Qn(n,r=t[o++])&&(~ede(i,r)||ET(i,r));return i},ym=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tde=ym.concat("length","prototype"),rde={f:Object.getOwnPropertyNames||function(e){return fM(e,tde)}},nde={f:Object.getOwnPropertySymbols},ode=Je([].concat),ide=Nh("Reflect","ownKeys")||function(e){var t=rde.f(eo(e)),r=nde.f;return r?ode(t,r(e)):t},ade=function(e,t){for(var r=ide(t),n=Ih.f,o=sM.f,i=0;i<r.length;i++){var a=r[i];Qn(e,a)||n(e,a,o(t,a))}},ude=/#|\.prototype\./,Lh=function(e,t){var r=lde[sde(e)];return r==fde||r!=cde&&(qr(t)?dr(t):!!t)},sde=Lh.normalize=function(e){return String(e).replace(ude,".").toLowerCase()},lde=Lh.data={},cde=Lh.NATIVE="N",fde=Lh.POLYFILL="P",dde=Lh,pde=sM.f,tu=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?We:l?We[u]||u5(u,{}):(We[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=pde(r,n))&&a.value:r[n],!dde(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;ade(i,o)}(e.sham||o&&o.sham)&&Cc(i,"sham",!0),kp(r,n,i,e)}},dM={};dM[lo("toStringTag")]="z";var v5=String(dM)==="[object z]",hde=lo("toStringTag"),gde=We.Object,vde=Ia((function(){return arguments})())=="Arguments",m5=v5?Ia:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=gde(e),hde))=="string"?r:vde?Ia(t):(n=Ia(t))=="Object"&&qr(t.callee)?"Arguments":n},mde=We.String,Ur=function(e){if(m5(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return mde(e)},yde=/"/g,bde=Je("".replace);tu({target:"String",proto:!0,forced:dr((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,r=Ur(eu(this)),n="<a",(n+=' name="'+bde(Ur(t),yde,""")+'"')+">"+r+"</a>";var t,r,n}});var Vg,pM=function(){var e=eo(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},y5=We.RegExp,x6=dr((function(){var e=y5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));x6||dr((function(){return!y5("a","y").sticky}));var hM={BROKEN_CARET:x6||dr((function(){var e=y5("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:x6},wde=Object.keys||function(e){return fM(e,ym)},Ede=Qa?Object.defineProperties:function(e,t){eo(e);for(var r,n=jh(t),o=wde(t),i=o.length,a=0;i>a;)Ih.f(e,r=o[a++],n[r]);return e},xde=Nh("document","documentElement"),gM=lM("IE_PROTO"),sw=function(){},vM=function(e){return"<script>"+e+"<\/script>"},xT=function(e){e.write(vM("")),e.close();var t=e.parentWindow.Object;return e=null,t},Iv=function(){try{Vg=new ActiveXObject("htmlfile")}catch{}var e,t;Iv=typeof document<"u"?document.domain&&Vg?xT(Vg):((t=f5("iframe")).style.display="none",xde.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(vM("document.F=Object")),e.close(),e.F):xT(Vg);for(var r=ym.length;r--;)delete Iv.prototype[ym[r]];return Iv()};p5[gM]=!0;var ST,lw,mM=Object.create||function(e,t){var r;return e!==null?(sw.prototype=eo(e),r=new sw,sw.prototype=null,r[gM]=e):r=Iv(),t===void 0?r:Ede(r,t)},Sde=We.RegExp,Cde=dr((function(){var e=Sde(".","s");return!(e.dotAll&&e.exec(` 65`)&&e.flags==="s")})),Dde=We.RegExp,_de=dr((function(){var e=Dde("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),Ade=E6.get,kde=s5("native-string-replace",String.prototype.replace),bm=RegExp.prototype.exec,S6=bm,Ode=Je("".charAt),Tde=Je("".indexOf),Fde=Je("".replace),cw=Je("".slice),fw=(lw=/b*/g,mr(bm,ST=/a/,"a"),mr(bm,lw,"a"),ST.lastIndex!==0||lw.lastIndex!==0),CT=hM.BROKEN_CARET,dw=/()??/.exec("")[1]!==void 0;(fw||dw||CT||Cde||_de)&&(S6=function(e){var t,r,n,o,i,a,u,s=this,l=Ade(s),c=Ur(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=mr(S6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=CT&&s.sticky,v=mr(pM,s),m=s.source,g=0,y=c;if(p&&(v=Fde(v,"y",""),Tde(v,"g")===-1&&(v+="g"),y=cw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ode(c,s.lastIndex-1)!==` 66`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),dw&&(r=new RegExp("^"+m+"$(?!\\s)",v)),fw&&(n=s.lastIndex),o=mr(bm,p?r:s,y),p?o?(o.input=cw(o.input,g),o[0]=cw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:fw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),dw&&o&&o.length>1&&mr(kde,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=mM(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
66);var Tp=S6;tu({target:"RegExp",proto:!0,forced:/./.exec!==Tp},{exec:Tp});var wm=Array.isArray||function(e){return Ia(e)=="Array"},yM=function(){},Bde=[],bM=Nh("Reflect","construct"),b5=/^\s*(?:class|function)\b/,Pde=Je(b5.exec),jde=!b5.exec(yM),Jf=function(e){if(!qr(e))return!1;try{return bM(yM,Bde,e),!0}catch{return!1}},w5=!bM||dr((function(){var e;return Jf(Jf.call)||!Jf(Object)||!Jf((function(){e=!0}))||e}))?function(e){if(!qr(e))return!1;switch(m5(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return jde||!!Pde(b5,d5(e))}:Jf,wM=function(e,t,r){var n=c5(t);n in e?Ih.f(e,n,o5(0,r)):e[n]=r},Nde=lo("species"),E5=function(e){return v6>=51||!dr((function(){var t=[];return(t.constructor={})[Nde]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Ide=Je([].slice),Lde=E5("slice"),Rde=lo("species"),pw=We.Array,Mde=Math.max;function To(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function DT(e){var t=e.selection;if(t==null)return!1;var r=To(x.nodes(e,{match:function(i){return O.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=To(r,2)[1],o=x.start(e,n);if(He.equals(t.anchor,o))return!0}return!1}function _T(e,t){var r,n,o=x.nodes(e,{at:t,match:function(s){return O.getNodeType(s)==="table"}}),i=!1;try{for(var a=(function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")})(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}tu({target:"Array",proto:!0,forced:!Lde},{slice:function(e,t){var r,n,o,i=jh(this),a=Xy(i),u=Op(e,a),s=Op(t===void 0?a:t,a);if(wm(i)&&(r=i.constructor,(w5(r)&&(r===pw||wm(r.prototype))||Ko(r)&&(r=r[Rde])===null)&&(r=void 0),r===pw||r===void 0))return Ide(i,u,s);for(n=new(r===void 0?pw:r)(Mde(s-u,0)),o=0;u<s;u++,o++)u in i&&wM(n,o,i[u]);return n.length=o,n}});var AT=Je(Je.bind),$de=lo("species"),kT=We.Array,zde=function(e,t){return new((function(r){var n;return wm(r)&&(n=r.constructor,(w5(n)&&(n===kT||wm(n.prototype))||Ko(n)&&(n=n[$de])===null)&&(n=void 0)),n===void 0?kT:n})(e))(t===0?0:t)},OT=Je([].push),Wg=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=l5(s),m=rM(v),g=(function(E,C){return iM(E),C===void 0?E:AT?AT(E,C):function(){return E.apply(C,arguments)}})(l,c),y=Xy(m),h=0,b=f||zde,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:OT(w,d)}else switch(e){case 4:return!1;case 7:OT(w,d)}return i?-1:n||o?o:w}},Jy={forEach:Wg(0),map:Wg(1),filter:Wg(2),find:Wg(5)},Hde=Jy.map;tu({target:"Array",proto:!0,forced:!E5("map")},{map:function(e){return Hde(this,e,arguments.length>1?arguments[1]:void 0)}});var Ude=v5?{}.toString:function(){return"[object "+m5(this)+"]"};function Zy(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function EM(e){return Zy(e).every((function(t){return!!t.isHeader}))}v5||kp(Object.prototype,"toString",Ude,{unsafe:!0});var Vde=h5.PROPER,C6=RegExp.prototype,xM=C6.toString,Wde=Je(pM),Gde=dr((function(){return xM.call({source:"a",flags:"b"})!="/a/b"})),qde=Vde&&xM.name!="toString";(Gde||qde)&&kp(RegExp.prototype,"toString",(function(){var e=eo(this),t=Ur(e.source),r=e.flags;return"/"+t+"/"+Ur(r===void 0&&nM(C6,e)&&!("flags"in C6)?Wde(e):r)}),{unsafe:!0});var D6=lo("unscopables"),_6=Array.prototype;_6[D6]==null&&Ih.f(_6,D6,{configurable:!0,value:mM(null)});var Kde=Jy.find,TT=!0;"find"in[]&&Array(1).find((function(){TT=!1})),tu({target:"Array",proto:!0,forced:TT},{find:function(e){return Kde(this,e,arguments.length>1?arguments[1]:void 0)}}),_6[D6].find=!0;var x5=Function.prototype,FT=x5.apply,Yde=x5.bind,BT=x5.call,SM=typeof Reflect=="object"&&Reflect.apply||(Yde?BT.bind(FT):function(){return BT.apply(FT,arguments)}),Xde=lo("species"),hw=RegExp.prototype,CM=function(e,t,r,n){var o=lo(e),i=!dr((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!dr((function(){var l=!1,c=/a/;return e==="split"&&((c={}
66).constructor={},c.constructor[Xde]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Je(/./[o]),s=t(o,""[e],(function(l,c,f,d,p){var v=Je(l),m=c.exec;return m===Tp||m===hw.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}));kp(String.prototype,e,s[0]),kp(hw,o,s[1])}n&&Cc(hw[o],"sham",!0)},Jde=lo("match"),Zde=We.TypeError,Qde=lo("species"),epe=Je("".charAt),PT=Je("".charCodeAt),tpe=Je("".slice),rpe=function(e){return function(t,r){var n,o,i=Ur(eu(t)),a=Yy(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=PT(i,a))<55296||n>56319||a+1===u||(o=PT(i,a+1))<56320||o>57343?e?epe(i,a):n:e?tpe(i,a,a+2):o-56320+(n-55296<<10)+65536}},npe=rpe(!0),DM=function(e,t,r){return t+(r?npe(e,t).length:1)},ope=We.Array,ipe=Math.max,jT=function(e,t,r){for(var n=Xy(e),o=Op(t,n),i=Op(r===void 0?n:r,n),a=ope(ipe(i-o,0)),u=0;o<i;o++,u++)wM(a,u,e[o]);return a.length=u,a},ape=We.TypeError,A6=function(e,t){var r=e.exec;if(qr(r)){var n=mr(r,e,t);return n!==null&&eo(n),n}if(Ia(e)==="RegExp")return mr(Tp,e,t);throw ape("RegExp#exec called on incompatible receiver")},vl=hM.UNSUPPORTED_Y,upe=Math.min,_M=[].push,spe=Je(/./.exec),ml=Je(_M),Zf=Je("".slice);CM("split",(function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=Ur(eu(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Ko(a=o)||!((u=a[Jde])!==void 0?u:Ia(a)=="RegExp"))return mr(t,s,o,l);for(var c,f,d,p=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),m=0,g=new RegExp(o.source,v+"g");(c=mr(Tp,g,s))&&!((f=g.lastIndex)>m&&(ml(p,Zf(s,m,c.index)),c.length>1&&c.index<s.length&&SM(_M,p,jT(c,1)),d=c[0].length,m=f,p.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!d&&spe(g,"")||ml(p,""):ml(p,Zf(s,m)),p.length>l?jT(p,0,l):p}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:mr(t,this,o,i)}:t,[function(o,i){var a=eu(this),u=o==null?void 0:a5(o,e);return u?mr(u,o,a,i):mr(n,Ur(a),o,i)},function(o,i){var a=eo(this),u=Ur(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=(function(w,E){var C,S=eo(w).constructor;return S===void 0||(C=eo(S)[Qde])==null?E:(function(k){if(w5(k))return k;throw Zde(oM(k)+" is not a constructor")})(C)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(vl?"g":"y"),d=new l(vl?"^(?:"+a.source+")":a,f),p=i===void 0?4294967295:i>>>0;if(p===0)return[];if(u.length===0)return A6(d,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){d.lastIndex=vl?0:m;var y,h=A6(d,vl?Zf(u,m):u);if(h===null||(y=upe(g5(d.lastIndex+(vl?m:0)),u.length))===v)m=DM(u,m,c);else{if(ml(g,Zf(u,v,m)),g.length===p)return g;for(var b=1;b<=h.length-1;b++)if(ml(g,h[b]),g.length===p)return g;m=v=y}}return ml(g,Zf(u,v)),g}]}),!!dr((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),vl);var k6=` 67\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\uFEFF`,NT=Je("".replace),Em="["+k6+"]",lpe=RegExp("^"+Em+Em+"*"),cpe=RegExp(Em+Em+"*$"),fpe=function(e){return function(t){var r=Ur(eu(t));return 1&e&&(r=NT(r,lpe,"")),2&e&&(r=NT(r,cpe,"")),r}},dpe={trim:fpe(3)},ppe=h5.PROPER,hpe=dpe.trim;function AM(e){return e.length?e[0].tagName.toLowerCase():""}tu({target:"String",proto:!0,forced:(function(e){return dr((function(){return!!k6[e]()||"â á "[e]()!=="â á "||ppe&&k6[e].name!==e}))})("trim")},{trim:function(){return hpe(this)}}),tu({global:!0},{globalThis:We}),no&&(B.fn.append=no),ni&&(B.fn.on=ni),qa&&(B.fn.focus=qa),ro&&(B.fn.attr=ro),ri&&(B.fn.val=ri),Ga&&(B.fn.html=Ga),sc&&(B.fn.dataset=sc),ic&&(B.fn.addClass=ic),ac&&(B.fn.removeClass=ac),dc&&(B.fn.children=dc),C0&&(B.fn.each=C0),fc&&(B.fn.find=fc);var Fp=!1,kM=0,OM=0,Bp=null,Pp=null,Wd=B("body");function TM(e){Fp=!1,Pp=null,Bp=null,Wd.off("mousemove",FM),Wd.off("mouseup",TM)}Wd.on("mousedown",(function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Fp=!0;var r=e.clientX;kM=r;var n=t.getBoundingClientRect().width;OM=n,Wd.on("mousemove",FM),Wd.on("mouseup",TM)}}));var FM=Cs((function(e){if(Fp&&Pp!=null&&Bp!=null){e.preventDefault();var t=e.clientX,r=OM+(t-kM);
67(r=Math.floor(100*r)/100)<30&&(r=30),z.setNodes(Pp,{width:r.toString()},{at:Bp})}}),100),gpe={type:"table",renderElem:function(e,t,r){var n=(function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||Z.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,d=O.findPath(u,s),p=x.start(u,d),v=x.end(u,d),m=He.compare(c,v)<=0&&He.compare(c,p)>=0,g=He.compare(f,v)<=0&&He.compare(f,p)>=0;return!!(m&&g&&L.equals(c.path.slice(0,3),f.path.slice(0,3)))})(r,e),o=e.width,i=o===void 0?"auto":o,a=Be("div",{className:"table-container","data-selected":O.isNodeSelected(r,e),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=O.findPath(r,e),l=x.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},Be("table",{width:i,contentEditable:n},Be("colgroup",null,Zy(e).map((function(u){var s=u.width;return Be("col",{width:s===void 0?"auto":s})}))),Be("tbody",null,t)));return a}},vpe={type:"table-row",renderElem:function(e,t,r){return Be("tr",null,t)}},mpe={type:"table-cell",renderElem:function(e,t,r){var n=(function(d,p){var v=O.getParentNode(d,p);if(v==null)return!1;var m=O.getParentNode(d,v);return m!=null&&Zy(m).some((function(g){return g===p}))})(r,e),o=e,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!n)return Be("td",{colSpan:a,rowSpan:s},t);var f=Be(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:Cs((function(d){var p=this.elm;if(p!=null){var v=p.getBoundingClientRect(),m=v.left,g=v.width,y=v.top,h=v.height,b=d.clientX,w=d.clientY;Fp||(b>m+g-5&&b<m+g&&w>y&&w<y+h?(p.style.cursor="col-resize",Pp=r,Bp=O.findPath(r,e)):Fp||(p.style.cursor="auto",Pp=null,Bp=null))}}),100)}},t);return f}},ype={selector:"table",preParseHtml:function(e){var t=B(e);if(AM(t)!=="table")return e;var r=t.find("tbody");if(r.length===0)return e;var n=t.find("tr");return t.append(n),r.remove(),t[0]}},bpe=Jy.filter;tu({target:"Array",proto:!0,forced:!E5("filter")},{filter:function(e){return bpe(this,e,arguments.length>1?arguments[1]:void 0)}});var wpe=Math.floor,gw=Je("".charAt),Epe=Je("".replace),vw=Je("".slice),xpe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Spe=/\$([$&'`]|\d{1,2})/g,Cpe=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=Spe;return o!==void 0&&(o=l5(o),s=xpe),Epe(i,s,(function(l,c){var f;switch(gw(c,0)){case"$":return"$";case"&":return e;case"`":return vw(t,0,r);case"'":return vw(t,a);case"<":f=o[vw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=wpe(d/10);return p===0?l:p<=u?n[p-1]===void 0?gw(c,1):n[p-1]+gw(c,1):l}f=n[d-1]}return f===void 0?"":f}))},O6=lo("replace"),Dpe=Math.max,_pe=Math.min,Ape=Je([].concat),mw=Je([].push),IT=Je("".indexOf),LT=Je("".slice),kpe="a".replace(/./,"$0")==="$0",RT=!!/./[O6]&&/./[O6]("a","$0")==="";CM("replace",(function(e,t,r){var n=RT?"$":"$0";return[function(o,i){var a=eu(this),u=o==null?void 0:a5(o,O6);return u?mr(u,o,a,i):mr(t,Ur(a),o,i)},function(o,i){var a=eo(this),u=Ur(o);if(typeof i=="string"&&IT(i,n)===-1&&IT(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=qr(i);l||(i=Ur(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var d=[];;){var p=A6(a,u);if(p===null||(mw(d,p),!c))break;Ur(p[0])===""&&(a.lastIndex=DM(u,g5(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<d.length;y++){for(var h=Ur((p=d[y])[0]),b=Dpe(_pe(Yy(p.index),u.length),0),w=[],E=1;E<p.length;E++)mw(w,(v=p[E])===void 0?v:String(v));var C=p.groups;if(l){var S=Ape([h],w,b,u);C!==void 0&&mw(S,C);var k=Ur(SM(i,void 0,S))}else k=Cpe(h,u,b,w,C,i);b>=g&&(m+=LT(u,g,b)+k,g=b+h.length)}return m+LT(u,g)}]}),!!dr((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!kpe||RT);var Ope={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e);(t=t.filter((function(u){return!!ye.isText(u)||!!r.isInline(u)}))).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:AM(n)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},Tpe={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"table-row",children:t.filter((function(n){return O.getNodeType(n)==="table-cell"}))}}},Fpe={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=B(e),o="auto";return(function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var d=f.split(":");d[0].trim()==="width"&&(u=d[1].trim())}}return u})(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter((function(i){return O.getNodeType(i)==="table-row"}))}}},Bpe=(function(){function e(){this.title=he("tableModule.insertTable"),this.iconSvg
67='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||!!O.getSelectedElems(t).some((function(n){var o=O.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(n)}))},e.prototype.getPanelContentElem=function(t){var r=this;if(this.$content)return this.$content[0];for(var n=B('<div class="w-e-panel-content-table"></div>'),o=B("<span>0 × 0</span>"),i=B("<table></table>"),a=0;a<10;a++){for(var u=B("<tr></tr>"),s=0;s<10;s++){var l=B("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",(function(c){var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;o[0].innerHTML=p+1+" × "+(v+1),i.children().each((function(m){B(m).children().each((function(g){var y=B(g),h=y.dataset(),b=h.x,w=h.y;b<=p&&w<=v?y.addClass("active"):y.removeClass("active")}))}))}})),l.on("click",(function(c){c.preventDefault();var f=c.target;if(f!=null){var d=B(f).dataset(),p=d.x,v=d.y;r.insertTable(t,v+1,p+1)}}))}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},e.prototype.insertTable=function(t,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){O.isSelectedEmptyParagraph(t)&&z.removeNodes(t,{mode:"highest"});var a=(function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],d=0;d<s;d++){var p={type:"table-cell",children:[{text:""}]};c===0&&(p.isHeader=!0),f.push(p)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}})(o,i);z.insertNodes(t,a,{mode:"highest"})}},e})(),Ppe=(function(){function e(){this.title=he("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||O.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||z.removeNodes(t,{mode:"highest"})},e})(),jpe=(function(){function e(){this.title=he("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||O.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=To(x.nodes(t,{match:function(p){return O.checkNodeType(p,"table-cell")},universal:!0}),1),o=To(n[0],2),i=o[0],a=o[1],u=O.getParentNode(t,i),s=u?.children.length||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=L.parent(a),d=L.next(f);
67z.insertNodes(t,l,{at:d})}}},e})(),Npe=(function(){function e(){this.title=he("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||O.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=To(x.nodes(t,{match:function(s){return O.checkNodeType(s,"table-row")},universal:!0}),1),o=To(n[0],2),i=o[0],a=o[1],u=O.getParentNode(t,i);(u?.children.length||0)<=1?z.removeNodes(t,{mode:"highest"}):z.removeNodes(t,{at:a})}},e})(),MT={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yw=f5("span").classList,$T=yw&&yw.constructor&&yw.constructor.prototype,Ipe=$T===Object.prototype?void 0:$T,Lpe=Jy.forEach,Rpe=(function(e,t){var r=[].forEach;return!!r&&dr((function(){r.call(null,(function(){throw 1}),1)}))})(),bw=Rpe?[].forEach:function(e){return Lpe(this,e,arguments.length>1?arguments[1]:void 0)},BM=function(e){if(e&&e.forEach!==bw)try{Cc(e,"forEach",bw)}catch{e.forEach=bw}};for(var ww in MT)MT[ww]&&BM(We[ww]&&We[ww].prototype);BM(Ipe);var Mpe=(function(){function e(){this.title=he("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||O.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=To(x.nodes(t,{match:function(l){return O.checkNodeType(l,"table-cell")},universal:!0}),1),o=To(n[0],2),i=o[0],a=o[1],u=O.getParentNode(t,i);if(u!=null){var s=O.getParentNode(t,u);s!=null&&(s.children||[]).forEach((function(l,c){Ce.isElement(l)&&(l.children||[]).forEach((function(f){var d=O.findPath(t,f);if(d.length===a.length&&QR(d.slice(-1),a.slice(-1))){var p={type:"table-cell",children:[{text:""}]};c===0&&EM(s)&&(p.isHeader=!0),z.insertNodes(t,p,{at:d})}}))}))}}},e})(),$pe=(function(){function e(){this.title=he("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||O.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=To(x.nodes(t,{match:function(c){return O.checkNodeType(c,"table-cell")},universal:!0}),1),o=To(n[0],2),i=o[0],a=o[1],u=O.getParentNode(t,i),s=u?.children.length||0;if(!u||s<=1)z.removeNodes(t,{mode:"highest"});else{var l=O.getParentNode(t,u);
67l!=null&&(l.children||[]).forEach((function(c){Ce.isElement(c)&&(c.children||[]).forEach((function(f){var d=O.findPath(t,f);d.length===a.length&&QR(d.slice(-1),a.slice(-1))&&z.removeNodes(t,{at:d})}))}))}}},e})(),zpe=(function(){function e(){this.title=he("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=O.getSelectedNodeByType(t,"table");return r!=null&&EM(r)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||O.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=!r,o=O.getSelectedNodeByType(t,"table");o!=null&&Zy(o).forEach((function(i){return z.setNodes(t,{isHeader:n},{at:O.findPath(t,i)})}))}},e})(),Hpe=(function(){function e(){this.title=he("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=O.getSelectedNodeByType(t,"table");return r!=null&&r.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||O.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n={width:r?"auto":"100%"};z.setNodes(t,n,{mode:"highest"})}},e})(),Upe={renderElems:[gpe,vpe,mpe],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var r=e.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var r=e,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[ype],parseElemsHtml:[Ope,Tpe,Fpe],menus:[{key:"insertTable",factory:function(){return new Bpe}},{key:"deleteTable",factory:function(){return new Ppe}},{key:"insertTableRow",factory:function(){return new jpe}},{key:"deleteTableRow",factory:function(){return new Npe}},{key:"insertTableCol",factory:function(){return new Mpe}},{key:"deleteTableCol",factory:function(){return new $pe}},{key:"tableHeader",factory:function(){return new zpe}},{key:"tableFullWidth",factory:function(){return new Hpe}}],editorPlugin:function(e){var t=e.insertBreak,r=e.deleteBackward,n=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){O.getSelectedNodeByType(s,"table")==null?t():s.insertText(` 68`)},s.deleteBackward=function(l){if(!DT(s)){var c=s.selection;if(c){var f=x.before(s,c);if(f){var d=_T(s,f),p=_T(s,c);if(d&&!p)return}}r(l)}},s.handleTab=function(){var l;if(O.getSelectedNodeByType(s,"table")){var c=x.above(e);O.checkNodeType(c[0],"table-cell")&&z.select(e,c[1]);var f=x.next(e);if(f)f[0]&&f[0].text&&(f=(l=x.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),z.select(e,f[1]);else{var d=s.children||[],p=d.length;if(O.checkNodeType(d[p-1],"table")){var v=O.genEmptyParagraph();
68z.insertNodes(s,v,{at:[p]}),s.handleTab()}}}else a()},s.deleteForward=function(l){DT(s)||n(l)},s.normalizeNode=function(l){var c=To(l,2),f=c[0],d=c[1];if(O.getNodeType(f)!=="table")return o([f,d]);if(O.isLastNode(s,f)){var p=O.genEmptyParagraph();z.insertNodes(s,p,{at:[d[0]+1]})}},s.insertData=function(l){if(O.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===` 69`||/<img[^>]+>/.test(l.getData("text/html"))?i(l):x.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=O.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,d=l.focus;if(L.equals(f.path.slice(0,3),d.path.slice(0,3)))if(pe.string(c).length!==0){var p=O.findPath(s,c),v={anchor:x.start(s,p),focus:x.end(s,p)};s.select(v)}else u();else u()}else u()}else u()},s}};gn("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),gn("zh-CN",{videoModule:{delete:"å é¤è§é¢",uploadVideo:"ä¸ä¼ è§é¢",insertVideo:"æå ¥è§é¢",videoSrc:"è§é¢å°å",videoSrcPlaceHolder:"è§é¢æä»¶ url æç¬¬ä¸æ¹ <iframe>",videoPoster:"è§é¢å°é¢",videoPosterPlaceHolder:"å°é¢å¾ç url",ok:"ç¡®å®",editSize:"ä¿®æ¹å°ºå¯¸",width:"宽度",height:"é«åº¦"}});
69var xm=function(){return xm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xm.apply(this,arguments)};function Qy(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r((function(f){f(c)}))).then(a,u)}s((n=n.apply(e,[])).next())}))}function e1(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function ps(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Vpe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(i){return new Promise((function(a,u){(function(s,l,c,f){Promise.resolve(f).then((function(d){s({value:d,done:c})}),l)})(a,u,(i=e[o](i)).done,i.value)}))}}}var zT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S5(e){var t={exports:{}};return e(t,t.exports),t.exports}var ua,Lv,Gg=function(e){return e&&e.Math==Math&&e},ve=Gg(typeof globalThis=="object"&&globalThis)||Gg(typeof window=="object"&&window)||Gg(typeof self=="object"&&self)||Gg(typeof zT=="object"&&zT)||(function(){return this})()||Function("return this")(),St=function(e){try{return!!e()}catch{return!0}},ii=!St((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Qf=Function.prototype.call,xt=Qf.bind?Qf.bind(Qf):function(){return Qf.apply(Qf,arguments)},HT={}.propertyIsEnumerable,UT=Object.getOwnPropertyDescriptor,Wpe={f:UT&&!HT.call({1:2},1)?function(e){var t=UT(this,e);return!!t&&t.enumerable}:HT},t1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},PM=Function.prototype,T6=PM.bind,F6=PM.call,Gpe=T6&&T6.bind(F6),Le=T6?function(e){return e&&Gpe(F6,e)}:function(e){return e&&function(){return F6.apply(e,arguments)}},qpe=Le({}.toString),Kpe=Le("".slice),Qo=function(e){return Kpe(qpe(e),8,-1)},Ew=ve.Object,Ype=Le("".split),C5=St((function(){return!Ew("z").propertyIsEnumerable(0)}))?function(e){return Qo(e)=="String"?Ype(e,""):Ew(e)}:Ew,Xpe=ve.TypeError,Rh=function(e){if(e==null)throw Xpe("Can't call method on "+e);return e},lu=function(e){return C5(Rh(e))},mt=function(e){return typeof e=="function"},jt=function(e){return typeof e=="object"?e!==null:mt(e)},Jpe=function(e){return mt(e)?e:void 0},js=function(e,t){return arguments.length<2?Jpe(ve[e]):ve[e]&&ve[e][t]},jp=Le({}.isPrototypeOf),Kl=js("navigator","userAgent")||"",VT=ve.process,WT=ve.Deno,GT=VT&&VT.versions||WT&&WT.version,qT=GT&>.v8;qT&&(Lv=(ua=qT.split("."))[0]>0&&ua[0]<4?1:+(ua[0]+ua[1])),!Lv&&Kl&&(!(ua=Kl.match(/Edge\/(\d+)/))||ua[1]>
69=74)&&(ua=Kl.match(/Chrome\/(\d+)/))&&(Lv=+ua[1]);var Np=Lv,B6=!!Object.getOwnPropertySymbols&&!St((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Np&&Np<41})),D5=B6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Zpe=ve.Object,xw=D5?function(e){return typeof e=="symbol"}:function(e){var t=js("Symbol");return mt(t)&&jp(t.prototype,Zpe(e))},Qpe=ve.String,Sm=function(e){try{return Qpe(e)}catch{return"Object"}},ehe=ve.TypeError,ru=function(e){if(mt(e))return e;throw ehe(Sm(e)+" is not a function")},Ip=function(e,t){var r=e[t];return r==null?void 0:ru(r)},the=ve.TypeError,rhe=Object.defineProperty,_5=function(e,t){try{rhe(ve,e,{value:t,configurable:!0,writable:!0})}catch{ve[e]=t}return t},Ra=ve["__core-js_shared__"]||_5("__core-js_shared__",{}),A5=S5((function(e){(e.exports=function(t,r){return Ra[t]||(Ra[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nhe=ve.Object,r1=function(e){return nhe(Rh(e))},ohe=Le({}.hasOwnProperty),cr=Object.hasOwn||function(e,t){return ohe(r1(e),t)},ihe=0,ahe=Math.random(),uhe=Le(1 .toString),k5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+uhe(++ihe+ahe,36)},ed=A5("wks"),hs=ve.Symbol,KT=hs&&hs.for,she=D5?hs:hs&&hs.withoutSetter||k5,er=function(e){if(!cr(ed,e)||!B6&&typeof ed[e]!="string"){var t="Symbol."+e;B6&&cr(hs,e)?ed[e]=hs[e]:ed[e]=D5&&KT?KT(t):she(t)}return ed[e]},lhe=ve.TypeError,che=er("toPrimitive"),O5=function(e){var t=(function(r,n){if(!jt(r)||xw(r))return r;var o,i=Ip(r,che);if(i){if(o=xt(i,r,n),!jt(o)||xw(o))return o;throw lhe("Can't convert object to primitive value")}return(function(a,u){var s,l;if(mt(s=a.toString)&&!jt(l=xt(s,a))||mt(s=a.valueOf)&&!jt(l=xt(s,a)))return l;throw the("Can't convert object to primitive value")})(r)})(e,"string");return xw(t)?t:t+""},P6=ve.document,fhe=jt(P6)&&jt(P6.createElement),Lp=function(e){return fhe?P6.createElement(e):{}},jM=!ii&&!St((function(){return Object.defineProperty(Lp("div"),"a",{get:function(){return 7}}).a!=7})),YT=Object.getOwnPropertyDescriptor,T5={f:ii?YT:function(e,t){if(e=lu(e),t=O5(t),jM)try{return YT(e,t)}catch{}if(cr(e,t))return t1(!xt(Wpe.f,e,t),e[t])}},dhe=ve.String,phe=ve.TypeError,Tr=function(e){if(jt(e))return e;throw phe(dhe(e)+" is not an object")},hhe=ve.TypeError,XT=Object.defineProperty,zi={f:ii?XT:function(e,t,r){if(Tr(e),t=O5(t),Tr(r),jM)try{return XT(e,t,r)}catch{}if("get"in r||"set"in r)throw hhe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ma=ii?function(e,t,r){return zi.f(e,t,t1(1,r))}:function(e,t,r){return e[t]=r,e},ghe=Le(Function.toString);mt(Ra.inspectSource)||(Ra.inspectSource=function(e){return ghe(e)});var Cm,Gd,Dm,n1=Ra.inspectSource,JT=ve.WeakMap,NM=mt(JT)&&/native code/.test(n1(JT)),ZT=A5("keys"),F5=function(e){return ZT[e]||(ZT[e]=k5(e))},o1={},j6=ve.TypeError,vhe=ve.WeakMap;if(NM||Ra.state){var ku=Ra.state||(Ra.state=new vhe),mhe=Le(ku.get),QT=Le(ku.has),yhe=Le(ku.set);Cm=function(e,t){if(QT(ku,e))throw new j6("Object already initialized");return t.facade=e,yhe(ku,e,t),t},Gd=function(e){return mhe(ku,e)||{}},Dm=function(e){return QT(ku,e)}}else{var yl=F5("state");o1[yl]=!0,Cm=function(e,t){if(cr(e,yl))throw new j6("Object already initialized");return t.facade=e,Ma(e,yl,t),t},Gd=function(e){return cr(e,yl)?e[yl]:{}},Dm=function(e){return cr(e,yl)}}var Nn={set:Cm,get:Gd,has:Dm,enforce:function(e){return Dm(e)?Gd(e):Cm(e,{})},getterFor:function(e){return function(t){var r;if(!jt(t)||(r=Gd(t)).type!==e)throw j6("Incompatible receiver, "+e+" required");return r}}},IM=Function.prototype,bhe=ii&&Object.getOwnPropertyDescriptor,Sw=cr(IM,"name"),Xc={EXISTS:Sw,PROPER:Sw&&(function(){}).name==="something",CONFIGURABLE:Sw&&(!ii||ii&&bhe(IM,"name").configurable)},uo=S5((function(e){var t=Xc.CONFIGURABLE,r=Nn.get,n=Nn.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;mt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cr(u,"name")||t&&u.name!==p)&&Ma(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ve?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Ma(i,a,u)):f?i[a]=u:_5(a,u)})(Function.prototype,"toString",(function(){return mt(this)&&r(this).source||n1(this)}))})),whe=Math.ceil,Ehe=Math.floor,i1=function(e){var t=+e;return t!=t||t===0?0:(t>0?Ehe:whe)(t)},xhe=Math.max,She=Math.min,Rp=function(e,t){var r=i1(e);return r<0?xhe(r+t,0):She(r,t)},Che=Math.min,LM=function(e){return e>0?Che(i1(e),9007199254740991):0},Mh=function(e){return LM(e.length)},eF=function(e){return function(t,r,n){var o,i=lu(t),a=Mh(i),u=Rp(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},RM={includes:eF(!0),indexOf:eF(!1)},Dhe=RM.indexOf,tF=Le([].push),MM=function(e,t){var r,n=lu(e),o=0,i=[];for(r in n)!cr(o1,r)&&cr(n,r)&&tF(i,r);for(;t.length>
69o;)cr(n,r=t[o++])&&(~Dhe(i,r)||tF(i,r));return i},_m=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_he=_m.concat("length","prototype"),Am={f:Object.getOwnPropertyNames||function(e){return MM(e,_he)}},Ahe={f:Object.getOwnPropertySymbols},khe=Le([].concat),Ohe=js("Reflect","ownKeys")||function(e){var t=Am.f(Tr(e)),r=Ahe.f;return r?khe(t,r(e)):t},The=function(e,t){for(var r=Ohe(t),n=zi.f,o=T5.f,i=0;i<r.length;i++){var a=r[i];cr(e,a)||n(e,a,o(t,a))}},Fhe=/#|\.prototype\./,$h=function(e,t){var r=Phe[Bhe(e)];return r==Nhe||r!=jhe&&(mt(t)?St(t):!!t)},Bhe=$h.normalize=function(e){return String(e).replace(Fhe,".").toLowerCase()},Phe=$h.data={},jhe=$h.NATIVE="N",Nhe=$h.POLYFILL="P",km=$h,Ihe=T5.f,ln=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?ve:l?ve[u]||_5(u,{}):(ve[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Ihe(r,n))&&a.value:r[n],!km(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;The(i,o)}(e.sham||o&&o.sham)&&Ma(i,"sham",!0),uo(r,n,i,e)}},$M={};$M[er("toStringTag")]="z";var B5=String($M)==="[object z]",Lhe=er("toStringTag"),Rhe=ve.Object,Mhe=Qo((function(){return arguments})())=="Arguments",a1=B5?Qo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Rhe(e),Lhe))=="string"?r:Mhe?Qo(t):(n=Qo(t))=="Object"&&mt(t.callee)?"Arguments":n},$he=ve.String,Kn=function(e){if(a1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return $he(e)},N6=` 70\v\f\r  áââââââ ââââââ¯âã\u2028\u2029\uFEFF`,rF=Le("".replace),Om="["+N6+"]",zhe=RegExp("^"+Om+Om+"*"),Hhe=RegExp(Om+Om+"*$"),Uhe=function(e){return function(t){var r=Kn(Rh(t));return 1&e&&(r=rF(r,zhe,"")),2&e&&(r=rF(r,Hhe,"")),r}},Vhe={trim:Uhe(3)},Whe=Xc.PROPER,Ghe=Vhe.trim;function nF(e){return e.length?e[0].tagName.toLowerCase():""}function zM(e,t,r){t===void 0&&(t="auto"),r===void 0&&(r="auto");var n=B(e);return n.attr("width",t),n.attr("height",r),n[0].outerHTML}ln({target:"String",proto:!0,forced:St((function(){return!!N6.trim()||"â á ".trim()!=="â á "||Whe&&N6.trim.name!=="trim"}))},{trim:function(){return Ghe(this)}}),ln({global:!0},{globalThis:ve}),no&&(B.fn.append=no),ni&&(B.fn.on=ni),qa&&(B.fn.focus=qa),ro&&(B.fn.attr=ro),ri&&(B.fn.val=ri),Ga&&(B.fn.html=Ga),cc&&(B.fn.parent=cc),uc&&(B.fn.hasClass=uc),hc&&(B.fn.empty=hc);var qg,qhe={type:"video",renderElem:function(e,t,r){var n,o=e,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,d=f===void 0?"auto":f,p=O.isNodeSelected(r,e);if(a.trim().indexOf("<iframe ")===0)n=Be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":"",innerHTML:zM(a,c,d)});else{var v=Be("video",{poster:s,controls:!0},Be("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos. 71 æ±æï¼æµè§å¨ä¸æ¯æ video è§é¢`);c!=="auto"&&(v.data.width=c),d!=="auto"&&(v.data.height=d),n=Be("div",{className:"w-e-textarea-video-container","data-selected":p?"true":""},v)}return gc("div",{props:{contentEditable:!1},on:{mousedown:function(m){return m.preventDefault()}}},n)}},Khe={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void> 72`;return o.trim().indexOf("<iframe ")===0?f+=zM(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+` 73</div>`}},Yhe=Object.keys||function(e){return MM(e,_m)},Xhe=ii?Object.defineProperties:function(e,t){Tr(e);for(var r,n=lu(t),o=Yhe(t),i=o.length,a=0;i>a;)zi.f(e,r=o[a++],n[r]);return e},I6=js("document","documentElement"),HM=F5("IE_PROTO"),Cw=function(){},UM=function(e){return"<script>"+e+"<\/script>"},oF=function(e){e.write(UM("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rv=function(){try{qg=new ActiveXObject("htmlfile")}catch{}var e,t;Rv=typeof document<"u"?document.domain&&qg?oF(qg):((t=Lp("iframe")).style.display="none",I6.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(UM("document.F=Object")),e.close(),e.F):oF(qg);for(var r=_m.length;r--;)delete Rv.prototype[_m[r]];return Rv()};o1[HM]=!0;var P5=Object.create||function(e,t){var r;return e!==null?(Cw.prototype=Tr(e),r=new Cw,Cw.prototype=null,r[HM]=e):r=Rv(),t===void 0?r:Xhe(r,t)},L6=er("unscopables"),R6=Array.prototype;R6[L6]==null&&zi.f(R6,L6,{configurable:!0,value:P5(null)});var qd=function(e){R6[L6][e]=!0},Jhe=RM.includes;ln({target:"Array",proto:!0},{includes:function(e){return Jhe(this,e,arguments.length>1?arguments[1]:void 0)}}),qd("includes");var Zhe={selector:"iframe,video,p",preParseHtml:function(e){var t=B(e),r=t;if(nF(t)==="p"){var n=t.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=B(o))}}var a=nF(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=B('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},iF=Le(Le.bind),Mp=function(e,t){return ru(e),t===void 0?e:iF?iF(e,t):function(){return e.apply(t,arguments)}},Tm=Array.isArray||function(e){return Qo(e)=="Array"}
73,VM=function(){},Qhe=[],WM=js("Reflect","construct"),j5=/^\s*(?:class|function)\b/,ege=Le(j5.exec),tge=!j5.exec(VM),td=function(e){if(!mt(e))return!1;try{return WM(VM,Qhe,e),!0}catch{return!1}},N5=!WM||St((function(){var e;return td(td.call)||!td(Object)||!td((function(){e=!0}))||e}))?function(e){if(!mt(e))return!1;switch(a1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return tge||!!ege(j5,n1(e))}:td,rge=er("species"),aF=ve.Array,nge=function(e,t){return new((function(r){var n;return Tm(r)&&(n=r.constructor,(N5(n)&&(n===aF||Tm(n.prototype))||jt(n)&&(n=n[rge])===null)&&(n=void 0)),n===void 0?aF:n})(e))(t===0?0:t)},uF=Le([].push),sF=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=r1(s),m=C5(v),g=Mp(l,c),y=Mh(m),h=0,b=f||nge,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:uF(w,d)}else switch(e){case 4:return!1;case 7:uF(w,d)}return i?-1:n||o?o:w}},I5={find:sF(5),findIndex:sF(6)},oge=I5.find,lF=!0;"find"in[]&&Array(1).find((function(){lF=!1})),ln({target:"Array",proto:!0,forced:lF},{find:function(e){return oge(this,e,arguments.length>1?arguments[1]:void 0)}}),qd("find");var ige=B5?{}.toString:function(){return"[object "+a1(this)+"]"};function cF(e,t,r,n){return t===void 0&&(t=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:e,poster:t,width:r,height:n,children:[{text:""}]}}B5||uo(Object.prototype,"toString",ige,{unsafe:!0});var fF,Dw,age={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=B(e),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",cF(o=s[0].outerHTML,i,a,u);var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",cF(o,i=l.attr("poster")||"",a,u)}},GM=function(){var e=Tr(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},L5=ve.RegExp,qM=St((function(){var e=L5("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));qM||St((function(){return!L5("a","y").sticky}));var uge={BROKEN_CARET:qM||St((function(){var e=L5("^r","gy");return e.lastIndex=2,e.exec("str")!=null}))},sge=ve.RegExp,lge=St((function(){var e=sge(".","s");return!(e.dotAll&&e.exec(` 74`)&&e.flags==="s")})),cge=ve.RegExp,fge=St((function(){var e=cge("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),dge=Nn.get,pge=A5("native-string-replace",String.prototype.replace),Fm=RegExp.prototype.exec,M6=Fm,hge=Le("".charAt),gge=Le("".indexOf),vge=Le("".replace),_w=Le("".slice),Aw=(Dw=/b*/g,xt(Fm,fF=/a/,"a"),xt(Fm,Dw,"a"),fF.lastIndex!==0||Dw.lastIndex!==0),dF=uge.BROKEN_CARET,kw=/()??/.exec("")[1]!==void 0;(Aw||kw||dF||lge||fge)&&(M6=function(e){var t,r,n,o,i,a,u,s=this,l=dge(s),c=Kn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=xt(M6,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=dF&&s.sticky,v=xt(GM,s),m=s.source,g=0,y=c;if(p&&(v=vge(v,"y",""),gge(v,"g")===-1&&(v+="g"),y=_w(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hge(c,s.lastIndex-1)!==` 75`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),kw&&(r=new RegExp("^"+m+"$(?!\\s)",v)),Aw&&(n=s.lastIndex),o=xt(Fm,p?r:s,y),p?o?(o.input=_w(o.input,g),o[0]=_w(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Aw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),kw&&o&&o.length>1&&xt(pge,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=P5(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
75);var Bm=M6;ln({target:"RegExp",proto:!0,forced:/./.exec!==Bm},{exec:Bm});var R5=Function.prototype,pF=R5.apply,mge=R5.bind,hF=R5.call,KM=typeof Reflect=="object"&&Reflect.apply||(mge?hF.bind(pF):function(){return hF.apply(pF,arguments)}),gF=(er("species"),RegExp.prototype),yge=Le("".charAt),vF=Le("".charCodeAt),bge=Le("".slice),wge=function(e){return function(t,r){var n,o,i=Kn(Rh(t)),a=i1(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=vF(i,a))<55296||n>56319||a+1===u||(o=vF(i,a+1))<56320||o>57343?e?yge(i,a):n:e?bge(i,a,a+2):o-56320+(n-55296<<10)+65536}},YM={charAt:wge(!0)},Ege=YM.charAt,xge=function(e,t,r){return t+(r?Ege(e,t).length:1)},Sge=Math.floor,Ow=Le("".charAt),Cge=Le("".replace),Tw=Le("".slice),Dge=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_ge=/\$([$&'`]|\d{1,2})/g,Age=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=_ge;return o!==void 0&&(o=r1(o),s=Dge),Cge(i,s,(function(l,c){var f;switch(Ow(c,0)){case"$":return"$";case"&":return e;case"`":return Tw(t,0,r);case"'":return Tw(t,a);case"<":f=o[Tw(c,1,-1)];break;default:var d=+c;if(d===0)return l;if(d>u){var p=Sge(d/10);return p===0?l:p<=u?n[p-1]===void 0?Ow(c,1):n[p-1]+Ow(c,1):l}f=n[d-1]}return f===void 0?"":f}))},kge=ve.TypeError,Oge=function(e,t){var r=e.exec;if(mt(r)){var n=xt(r,e,t);return n!==null&&Tr(n),n}if(Qo(e)==="RegExp")return xt(Bm,e,t);throw kge("RegExp#exec called on incompatible receiver")},$6=er("replace"),Tge=Math.max,Fge=Math.min,Bge=Le([].concat),Fw=Le([].push),mF=Le("".indexOf),yF=Le("".slice),Pge="a".replace(/./,"$0")==="$0",bF=!!/./[$6]&&/./[$6]("a","$0")==="";function XM(e){return e+"-"+oN()}(function(e,t,r,n){var o=er(e),i=!St((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!St((function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Le(/./[o]),s=(function(l,c,f){var d=bF?"$":"$0";return[function(p,v){var m=Rh(this),g=p==null?void 0:Ip(p,$6);return g?xt(g,p,m,v):xt(c,Kn(m),p,v)},function(p,v){var m=Tr(this),g=Kn(p);if(typeof v=="string"&&mF(v,d)===-1&&mF(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=mt(v);h||(v=Kn(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var E=[];;){var C=Oge(m,g);if(C===null||(Fw(E,C),!b))break;Kn(C[0])===""&&(m.lastIndex=xge(g,LM(m.lastIndex),w))}for(var S,k="",P=0,G=0;G<E.length;G++){for(var J=Kn((C=E[G])[0]),M=Tge(Fge(i1(C.index),g.length),0),X=[],$=1;$<C.length;$++)Fw(X,(S=C[$])===void 0?S:String(S));var V=C.groups;if(h){var Q=Bge([J],X,M,g);V!==void 0&&Fw(Q,V);var ie=Kn(KM(v,void 0,Q))}else ie=Age(J,g,M,X,V,v);M>=P&&(k+=yF(g,P,M)+ie,P=M+J.length)}return k+yF(g,P)}]})(0,""[e],(function(l,c,f,d,p){var v=Le(l),m=c.exec;return m===Bm||m===gF.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}));uo(String.prototype,e,s[0]),uo(gF,o,s[1])}})("replace",0,!!St((function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"}))||!Pge||bF);var Pm=ve.Promise,jm=function(e,t,r){for(var n in t)uo(e,n,t[n],r);return e},jge=ve.String,Nge=ve.TypeError,Dc=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Le(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Tr(n),(function(i){if(typeof i=="object"||mt(i))return i;throw Nge("Can't set "+jge(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),Ige=zi.f,wF=er("toStringTag"),Nm=function(e,t,r){e&&!cr(e=r?e:e.prototype,wF)&&Ige(e,wF,{configurable:!0,value:t})},EF=er("species"),Lge=ve.TypeError,M5=function(e,t){if(jp(t,e))return e;throw Lge("Incorrect invocation")},_c={},Rge=er("iterator"),Mge=Array.prototype,$ge=er("iterator"),xF=function(e){if(e!=null)return Ip(e,$ge)||Ip(e,"@@iterator")||_c[a1(e)]},zge=ve.TypeError,SF=function(e,t,r){var n,o;Tr(e);try{if(!(n=Ip(e,"return"))){if(t==="throw")throw r;return r}n=xt(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Tr(n),r},Hge=ve.TypeError,Mv=function(e,t){this.stopped=e,this.result=t},CF=Mv.prototype,Im=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=Mp(t,f),g=function(h){return n&&SF(n,"normal",h),new Mv(!0,h)},y=function(h){return d?(Tr(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)n=e;else{if(!(o=xF(e)))throw Hge(Sm(e)+" is not iterable");if((c=o)!==void 0&&(_c.Array===c||Mge[Rge]===c)){for(i=0,a=Mh(e);a>i;i++)if((u=y(e[i]))&&jp(CF,u))return u;return new Mv(!1)}n=(function(h,b){var w=arguments.length<2?xF(h):b;if(ru(w))return Tr(xt(w,h));throw zge(Sm(h)+" is not iterable")})(e,o)}for(s=n.next;!(l=xt(s,n)).done;){try{u=y(l.value)}catch(h){SF(n,"throw",h)}if(typeof u=="object"&&u&&jp(CF,u))return u}return new Mv(!1)},JM=er("iterator"),ZM=!1;try{var Uge=0,DF={next:function(){return{done:!!Uge++}},return:function(){ZM=!0}};DF[JM]=function(){return this},Array.from(DF,(function(){throw 2}))}catch{}var $p,bl,_F,Bw,QM=function(e,t){if(!ZM)return!1;var r=!1;try{var n={};n[JM]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},Vge=ve.TypeError,Wge=er("species"),e$=Le([].slice),t$=/(?:ipad|iphone|ipod).*applewebkit/i.test(Kl),$a=Qo(ve.process)=="process",z6=ve.setImmediate,AF=ve.clearImmediate,Gge=ve.process,Pw=ve.Dispatch,qge=ve.Fu
vendor: 4,067 bytes, line 75
75nction,kF=ve.MessageChannel,Kge=ve.String,jw=0,Kd={};try{$p=ve.location}catch{}var $5=function(e){if(cr(Kd,e)){var t=Kd[e];delete Kd[e],t()}},Nw=function(e){return function(){$5(e)}},OF=function(e){$5(e.data)},TF=function(e){ve.postMessage(Kge(e),$p.protocol+"//"+$p.host)};z6&&AF||(z6=function(e){var t=e$(arguments,1);return Kd[++jw]=function(){KM(mt(e)?e:qge(e),void 0,t)},bl(jw),jw},AF=function(e){delete Kd[e]},$a?bl=function(e){Gge.nextTick(Nw(e))}:Pw&&Pw.now?bl=function(e){Pw.now(Nw(e))}:kF&&!t$?(Bw=(_F=new kF).port2,_F.port1.onmessage=OF,bl=Mp(Bw.postMessage,Bw)):ve.addEventListener&&mt(ve.postMessage)&&!ve.importScripts&&$p&&$p.protocol!=="file:"&&!St(TF)?(bl=TF,ve.addEventListener("message",OF,!1)):bl="onreadystatechange"in Lp("script")?function(e){I6.appendChild(Lp("script")).onreadystatechange=function(){I6.removeChild(this),$5(e)}}:function(e){setTimeout(Nw(e),0)});var rd,Hu,Yd,Pl,Iw,Lw,Rw,FF,r$={set:z6},Yge=/ipad|iphone|ipod/i.test(Kl)&&ve.Pebble!==void 0,Xge=/web0s(?!.*chrome)/i.test(Kl),Jge=T5.f,Mw=r$.set,BF=ve.MutationObserver||ve.WebKitMutationObserver,PF=ve.document,jF=ve.process,Kg=ve.Promise,NF=Jge(ve,"queueMicrotask"),n$=NF&&NF.value;n$||(rd=function(){var e,t;for($a&&(e=jF.domain)&&e.exit();Hu;){t=Hu.fn,Hu=Hu.next;try{t()}catch(r){throw Hu?Pl():Yd=void 0,r}}Yd=void 0,e&&e.enter()},t$||$a||Xge||!BF||!PF?!Yge&&Kg&&Kg.resolve?((Rw=Kg.resolve(void 0)).constructor=Kg,FF=Mp(Rw.then,Rw),Pl=function(){FF(rd)}):$a?Pl=function(){jF.nextTick(rd)}:(Mw=Mp(Mw,ve),Pl=function(){Mw(rd)}):(Iw=!0,Lw=PF.createTextNode(""),new BF(rd).observe(Lw,{characterData:!0}),Pl=function(){Lw.data=Iw=!Iw}));var $w,IF,o$,LF,i$=n$||function(e){var t={fn:e,next:void 0};Yd&&(Yd.next=t),Hu||(Hu=t,Pl()),Yd=t},Zge=function(e){var t,r;this.promise=new e((function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o})),this.resolve=ru(t),this.reject=ru(r)},z5={f:function(e){return new Zge(e)}},H6=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Qge=typeof window=="object",a$=r$.set,eve=er("species"),Ci="Promise",RF=Nn.getterFor(Ci),tve=Nn.set,rve=Nn.getterFor(Ci),ju=Pm&&Pm.prototype,Yo=Pm,nd=ju,u$=ve.TypeError,U6=ve.document,H5=ve.process,Yl=z5.f,nve=Yl,ove=!!(U6&&U6.createEvent&&ve.dispatchEvent),s$=mt(ve.PromiseRejectionEvent),l$=!1,Xd=km(Ci,(function(){var e=n1(Yo),t=e!==String(Yo);if(!t&&Np===66)return!0;if(Np>=51&&/native code/.test(e))return!1;var r=new Yo((function(o){o(1)})),n=function(o){o((function(){}),(function(){}))};return(r.constructor={})[eve]=n,!(l$=r.then((function(){}))instanceof n)||!t&&Qge&&!s$})),ive=Xd||!QM((function(e){Yo.all(e).catch((function(){}))})),c$=function(e){var t;return!(!jt(e)||!mt(t=e.then))&&t},U5=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;i$((function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&uve(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(u$("Promise-chain cycle")):(u=c$(a))?xt(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ave(e)}))}},f$=function(e,t,r){var n,o;ove?((n=U6.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ve.dispatchEvent(n)):n={promise:t,reason:r},!s$&&(o=ve["on"+e])?o(n):e==="unhandledrejection"&&(function(i,a){var u=ve.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},ave=function(e){xt(a$,ve,(function(){var t,r=e.facade,n=e.value;if(MF(e)&&(t=H6((function(){$a?H5.emit("unhandledRejection",n,r):f$("unhandledrejection",r,n)})),e.rejection=$a||MF(e)?2:1,t.error))throw t.value}))},MF=function(e){return e.rejection!==1&&!e.parent},uve=function(e){xt(a$,ve,(function(){var t=e.facade;$a?H5.emit("rejectionHandled",t):f$("rejectionhandled",t,e.value)}))},Ml=function(e,t,r){return function(n){e(t,n,r)}},Xl=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,U5(e,!0))},V6=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);
75try{if(e.facade===t)throw u$("Promise can't be resolved itself");var n=c$(t);n?i$((function(){var o={done:!1};try{xt(n,t,Ml(V6,o,e),Ml(Xl,o,e))}catch(i){Xl(o,i,e)}})):(e.value=t,e.state=1,U5(e,!1))}catch(o){Xl({done:!1},o,e)}}};if(Xd&&(nd=(Yo=function(e){M5(this,nd),ru(e),xt($w,this);var t=RF(this);try{e(Ml(V6,t),Ml(Xl,t))}catch(r){Xl(t,r)}}).prototype,($w=function(e){tve(this,{type:Ci,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=jm(nd,{then:function(e,t){var r=rve(this),n=r.reactions,o=Yl((function(i,a){var u,s=Tr(i).constructor;return s===void 0||(u=Tr(s)[Wge])==null?a:(function(l){if(N5(l))return l;throw Vge(Sm(l)+" is not a constructor")})(u)})(this,Yo));return o.ok=!mt(e)||e,o.fail=mt(t)&&t,o.domain=$a?H5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&U5(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),IF=function(){var e=new $w,t=RF(e);this.promise=e,this.resolve=Ml(V6,t),this.reject=Ml(Xl,t)},z5.f=Yl=function(e){return e===Yo||e===o$?new IF(e):nve(e)},mt(Pm)&&ju!==Object.prototype)){LF=ju.then,l$||(uo(ju,"then",(function(e,t){var r=this;return new Yo((function(n,o){xt(LF,r,n,o)})).then(e,t)}),{unsafe:!0}),uo(ju,"catch",nd.catch,{unsafe:!0}));try{delete ju.constructor}catch{}Dc&&Dc(ju,nd)}function zp(e,t,r){return r===void 0&&(r=""),Qy(this,void 0,void 0,(function(){var n,o,i,a,u,s,l;return e1(this,(function(c){switch(c.label){case 0:return t?(e.restoreSelection(),n=e.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(t,r)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"<").replace(/>/g,">")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then((function(){z.insertNodes(e,l)})),o(l),[2]}}))}))}function zw(){return XM("w-e-insert-video")}ln({global:!0,wrap:!0,forced:Xd},{Promise:Yo}),Nm(Yo,Ci,!1),(function(e){var t=js("Promise"),r=zi.f;ii&&t&&!t[EF]&&r(t,EF,{configurable:!0,get:function(){return this}})})(),o$=js(Ci),ln({target:Ci,stat:!0,forced:Xd},{reject:function(e){var t=Yl(this);return xt(t.reject,void 0,e),t.promise}}),ln({target:Ci,stat:!0,forced:Xd},{resolve:function(e){return(function(t,r){if(Tr(t),jt(r)&&r.constructor===t)return r;var n=z5.f(t);return(0,n.resolve)(r),n.promise})(this,e)}}),ln({target:Ci,stat:!0,forced:ive},{all:function(e){var t=this,r=Yl(t),n=r.resolve,o=r.reject,i=H6((function(){var a=ru(t.resolve),u=[],s=0,l=1;Im(e,(function(c){var f=s++,d=!1;l++,xt(a,t,c).then((function(p){d||(d=!0,u[f]=p,--l||n(u))}),o)})),--l||n(u)}));return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=Yl(t),n=r.reject,o=H6((function(){var i=ru(t.resolve);Im(e,(function(a){xt(i,t,a).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var sve=(function(){function e(){this.title=he("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=zw(),this.posterInputId=zw(),this.buttonId=zw()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||!!O.getSelectedElems(t).some((function(n){var o=O.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)}))},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=ps(On(he("videoModule.videoSrc"),o,he("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=ps(On(he("videoModule.videoPoster"),i,he("videoModule.videoPosterPlaceHolder")),2),f=c[0],d=c[1],p=B(l),v=B(d),m=ps($c(a,he("videoModule.ok")),1)[0];if(this.$content==null){var g=B("<div></div>");g.on("click","#"+a,(function(h){return Qy(r,void 0,void 0,(function(){var b,w;return e1(this,(function(E){switch(E.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,zp(t,b,w)];case 1:return E.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(m),p.val(""),v.val(""),setTimeout((function(){p.focus()})),y[0]},e})(),lve=Le([].join),cve=C5!=Object,fve=(function(e,t){var r=[].join;return!!r&&St((function(){r.call(null,",",1)}))})();ln({target:"Array",proto:!0,forced:cve||!fve},{join:function(e){return lve(lu(this),e===void 0?",":e)}});var gs,$F,zF,dve=!St((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),HF=F5("IE_PROTO"),W6=ve.Object,pve=W6.prototype,Lm=dve?W6.getPrototypeOf:function(e){var t=r1(e);if(cr(t,HF))return t[HF];var r=t.constructor;return mt(r)&&t instanceof r?r.prototype:t instanceof W6?pve:null},G6=er("iterator"),d$=!1;[].keys&&("next"in(zF=[].keys())?($F=Lm(Lm(zF)))!==Object.prototype&&(gs=$F):d$=!0);var hve=gs==null||St((function(){var e={};return gs[G6].call(e)!==e}));hve&&(gs={}),mt(gs[G6])||uo(gs,G6,(function(){return this}));var V5={IteratorPrototype:gs,BUGGY_SAFARI_ITERATORS:d$},gve=V5.IteratorPrototype,vve=function(){return this},mve=Xc.PROPER,yve=Xc.CONFIGURABLE,UF=V5.IteratorPrototype,Hw=V5.BUGGY_SAFARI_ITERATORS,od=er("iterator"),bve=function(){return this},p$=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=P5(gve,{next:t1(1,h)}),Nm(g,w,!1),_c[w]=vve})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!Hw&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[od]||d["@@iterator"]||o&&d[o],v=!Hw&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=Lm(m.call(new e)))!==Object.prototype&&u.next&&(Lm(u)!==UF&&(Dc?Dc(u,UF):mt(u[od])||uo(u,od,bve)),Nm(u,c,!0)),mve&&o=="values"&&p&&p.name!=="values"&&(yve?Ma(d,"name","values"):(f=!0,v=function(){return xt(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||ln({target:t,proto:!0,forced:Hw||f},s)),d[od]!==v&&uo(d,od,v,{name:o}),_c[t]=v,s},wve=Nn.set,Eve=Nn.getterFor("Array Iterator"),kd=p$(Array,"Array",(function(e,t){wve(this,{type:"Array Iterator",target:lu(e),index:0,kind:t})}),(function(){var e=Eve(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");_c.Arguments=_c.Array,qd("keys"),qd("values"),qd("entries");var xve=YM.charAt,Sve=Nn.set,Cve=Nn.getterFor("String Iterator");
75p$(String,"String",(function(e){Sve(this,{type:"String Iterator",string:Kn(e),index:0})}),(function(){var e,t=Cve(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=xve(r,n),t.index+=e.length,{value:e,done:!1})}));var h$=function(e,t,r){var n=O5(t);n in e?zi.f(e,n,t1(0,r)):e[n]=r},Dve=ve.Array,_ve=Math.max,VF=Am.f,WF=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ave={f:function(e){return WF&&Qo(e)=="Window"?(function(t){try{return VF(t)}catch{return(function(n,o,i){for(var a=Mh(n),u=Rp(void 0,a),s=Rp(a,a),l=Dve(_ve(s-u,0)),c=0;u<s;u++,c++)h$(l,c,n[u]);return l.length=c,l})(WF)}})(e):VF(lu(e))}},GF=St((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Yg=Object.isExtensible,qu=St((function(){Yg(1)}))||GF?function(e){return!!jt(e)&&(!GF||Qo(e)!="ArrayBuffer")&&(!Yg||Yg(e))}:Yg,kve=!St((function(){return Object.isExtensible(Object.preventExtensions({}))})),W5=S5((function(e){var t=zi.f,r=!1,n=k5("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=Am.f,s=Le([].splice),l={};l[n]=1,u(l).length&&(Am.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},ln({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ave.f}))},fastKey:function(u,s){if(!jt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!cr(u,n)){if(!qu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!cr(u,n)){if(!qu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return kve&&r&&qu(u)&&!cr(u,n)&&i(u),u}};o1[n]=!0})),Xg=W5.getWeakData,Ove=Nn.set,Tve=Nn.getterFor,Fve=I5.find,Bve=I5.findIndex,Pve=Le([].splice),jve=0,Jg=function(e){return e.frozen||(e.frozen=new g$)},g$=function(){this.entries=[]},Uw=function(e,t){return Fve(e.entries,(function(r){return r[0]===t}))};g$.prototype={get:function(e){var t=Uw(this,e);if(t)return t[1]},has:function(e){return!!Uw(this,e)},set:function(e,t){var r=Uw(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Bve(this.entries,(function(r){return r[0]===e}));return~t&&Pve(this.entries,t,1),!!~t}};var id,v$={getConstructor:function(e,t,r,n){var o=e((function(s,l){M5(s,i),Ove(s,{type:t,id:jve++,frozen:void 0}),l!=null&&Im(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=Tve(t),u=function(s,l,c){var f=a(s),d=Xg(Tr(l),!0);return d===!0?Jg(f).set(l,c):d[f.id]=c,s};return jm(i,{delete:function(s){var l=a(this);if(!jt(s))return!1;var c=Xg(s);return c===!0?Jg(l).delete(s):c&&cr(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!jt(s))return!1;var c=Xg(s);return c===!0?Jg(l).has(s):c&&cr(c,l.id)}}),jm(i,r?{get:function(s){var l=a(this);if(jt(s)){var c=Xg(s);return c===!0?Jg(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Zg=Nn.enforce,Nve=!ve.ActiveXObject&&"ActiveXObject"in ve,m$=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ive=(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=ve[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Le(u[g]);uo(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!jt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!jt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!jt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(km(e,!mt(a)||!(o||u.forEach&&!St((function(){new a().entries().next()})))))s=r.getConstructor(t,e,n,i),W5.enable();else if(km(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=St((function(){f.has(1)})),v=QM((function(g){new a(g)})),m=!o&&St((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((s=t((function(g,y){M5(g,u);var h=(function(b,w,E){var C,S;return Dc&&mt(C=w.constructor)&&C!==E&&jt(S=C.prototype)&&S!==E.prototype&&Dc(b,S),b})(new a,g,s);return y!=null&&Im(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,ln({global:!0,forced:s!=a}
75,l),Nm(s,e),o||r.setStrong(s,e,n),s})("WeakMap",m$,v$);if(NM&&Nve){id=v$.getConstructor(m$,"WeakMap",!0),W5.enable();var ad=Ive.prototype,qF=Le(ad.delete),Qg=Le(ad.has),KF=Le(ad.get),YF=Le(ad.set);jm(ad,{delete:function(e){if(jt(e)&&!qu(e)){var t=Zg(this);return t.frozen||(t.frozen=new id),qF(this,e)||t.frozen.delete(e)}return qF(this,e)},has:function(e){if(jt(e)&&!qu(e)){var t=Zg(this);return t.frozen||(t.frozen=new id),Qg(this,e)||t.frozen.has(e)}return Qg(this,e)},get:function(e){if(jt(e)&&!qu(e)){var t=Zg(this);return t.frozen||(t.frozen=new id),Qg(this,e)?KF(this,e):t.frozen.get(e)}return KF(this,e)},set:function(e,t){if(jt(e)&&!qu(e)){var r=Zg(this);r.frozen||(r.frozen=new id),Qg(this,e)?YF(this,e,t):r.frozen.set(e,t)}else YF(this,e,t);return this}})}var y$={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},Vw=Lp("span").classList,XF=Vw&&Vw.constructor&&Vw.constructor.prototype,Lve=XF===Object.prototype?void 0:XF,Ww=er("iterator"),JF=er("toStringTag"),Gw=kd.values,b$=function(e,t){if(e){if(e[Ww]!==Gw)try{Ma(e,Ww,Gw)}catch{e[Ww]=Gw}if(e[JF]||Ma(e,JF,t),y$[t]){for(var r in kd)if(e[r]!==kd[r])try{Ma(e,r,kd[r])}catch{e[r]=kd[r]}}}};for(var qw in y$)b$(ve[qw]&&ve[qw].prototype,qw);b$(Lve,"DOMTokenList");var Rve=Xc.EXISTS,Mve=zi.f,w$=Function.prototype,$ve=Le(w$.toString),E$=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zve=Le(E$.exec);ii&&!Rve&&Mve(w$,"name",{configurable:!0,get:function(){try{return zve(E$,$ve(this))[1]}catch{return""}}});var Hve=er("species"),Uve=Np>=51||!St((function(){var e=[];return(e.constructor={})[Hve]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Vve=er("species"),Kw=ve.Array,Wve=Math.max;function x$(e){return e.getMenuConfig("uploadVideo")}ln({target:"Array",proto:!0,forced:!Uve},{slice:function(e,t){var r,n,o,i=lu(this),a=Mh(i),u=Rp(e,a),s=Rp(t===void 0?a:t,a);if(Tm(i)&&(r=i.constructor,(N5(r)&&(r===Kw||Tm(r.prototype))||jt(r)&&(r=r[Vve])===null)&&(r=void 0),r===Kw||r===void 0))return e$(i,u,s);for(n=new(r===void 0?Kw:r)(Wve(s-u,0)),o=0;u<s;u++,o++)u in i&&h$(n,o,i[u]);return n.length=o,n}});var ZF=new WeakMap;function Gve(e,t){return Qy(this,void 0,void 0,(function(){var r,n,o,i;return e1(this,(function(a){switch(a.label){case 0:return r=(function(u){var s=ZF.get(u);if(s!=null)return s;var l=x$(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=GI(xm(xm({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,(function(k,P){return zp(u,k,P)})),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){var E=w.url,C=E===void 0?"":E,S=w.poster;zp(u,C,S===void 0?"":S),c(m,g)}else d(m,g)},onError:function(m,g,y){v(m,g,y)}})),ZF.set(u,s),s})(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}}))}))}var qve=(function(){function e(){this.title=he("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a((function(c,f){return zp(t,c,f)}));else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var c=l[0].files;(function(f,d){var p,v;Qy(this,void 0,void 0,(function(){var m,g,y,h,b,w;return e1(this,(function(E){switch(E.label){case 0:if(d==null)return[2];m=Array.prototype.slice.call(d),g=x$(f).customUpload,E.label=1;case 1:E.trys.push([1,9,10,15]),y=Vpe(m),E.label=2;case 2:return[4,y.next()];case 3:return(h=E.sent()).done?[3,8]:(b=h.value,g?[4,g(b,(function(C,S){return zp(f,C,S)}))]:[3,5]);case 4:return E.sent(),[3,7];case 5:return[4,Gve(f,b)];case 6:E.sent(),E.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=E.sent(),p={error:w},[3,15];case 10:return E.trys.push([10,,13,14]),h&&!h.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:E.sent(),E.label=12;case 12:return[3,14];case 13:if(p)throw p.error;return[7];
75case 14:return[7];case 15:return[2]}}))}))})(t,c)}))}},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!Z.isCollapsed(r)||!!O.getSelectedElems(t).some((function(n){var o=O.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)}))},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e})(),Kve=Xc.PROPER,q6=RegExp.prototype,S$=q6.toString,Yve=Le(GM),Xve=St((function(){return S$.call({source:"a",flags:"b"})!="/a/b"})),Jve=Kve&&S$.name!="toString";function Yw(){return XM("w-e-insert-video")}(Xve||Jve)&&uo(RegExp.prototype,"toString",(function(){var e=Tr(this),t=Kn(e.source),r=e.flags;return"/"+t+"/"+Kn(r===void 0&&jp(q6,e)&&!("flags"in q6)?Yve(e):r)}),{unsafe:!0});var Zve=(function(){function e(){this.title=he("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Yw(),this.heightInputId=Yw(),this.buttonId=Yw()}return e.prototype.getSelectedVideoNode=function(t){return O.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=ps(On(he("videoModule.width"),n,"auto"),2),u=a[0],s=B(a[1]),l=ps(On(he("videoModule.height"),o,"auto"),2),c=l[0],f=B(l[1]),d=ps($c(i,he("videoModule.ok")),1)[0];if(this.$content==null){var p=B("<div></div>");p.on("click","#"+i,(function(w){w.preventDefault();var E=p.find("#"+n).val().trim(),C=p.find("#"+o).val().trim(),S=parseInt(E),k=parseInt(C),P=S?S.toString():"auto",G=k?k.toString():"auto";t.restoreSelection(),z.setNodes(t,{width:P,height:G},{match:function(J){return O.checkNodeType(J,"video")}}),t.hidePanelOrModal()})),this.$content=p}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(d);var m=this.getSelectedVideoNode(t);if(m==null)return v[0];var g=m.width,y=g===void 0?"auto":g,h=m.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout((function(){s.focus()})),v[0]},e})(),Qve={renderElems:[qhe],elemsToHtml:[Khe],preParseHtml:[Zhe],parseElemsHtml:[age],menus:[{key:"insertVideo",factory:function(){return new sve},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new qve},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,r){console.error("'"+e.name+" upload error",t,r)}}},{key:"editVideoSize",factory:function(){return new Zve}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="video"||t(o)},n.normalizeNode=function(o){var i=ps(o,2),a=i[0],u=i[1];
75return O.getNodeType(a)==="video"&&O.isLastNode(n,a)&&z.insertNodes(n,O.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};gn("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),gn("zh-CN",{uploadImgModule:{uploadImage:"ä¸ä¼ å¾ç",uploadError:"{{fileName}} ä¸ä¼ åºé"}});var QF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function G5(e){var t={exports:{}};return e(t,t.exports),t.exports}var sa,$v,ev=function(e){return e&&e.Math==Math&&e},ge=ev(typeof globalThis=="object"&&globalThis)||ev(typeof window=="object"&&window)||ev(typeof self=="object"&&self)||ev(typeof QF=="object"&&QF)||(function(){return this})()||Function("return this")(),Tt=function(e){try{return!!e()}catch{return!0}},ai=!Tt((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),ud=Function.prototype.call,ht=ud.bind?ud.bind(ud):function(){return ud.apply(ud,arguments)},eB={}.propertyIsEnumerable,tB=Object.getOwnPropertyDescriptor,e0e={f:tB&&!eB.call({1:2},1)?function(e){var t=tB(this,e);return!!t&&t.enumerable}:eB},u1=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},C$=Function.prototype,K6=C$.bind,Y6=C$.call,t0e=K6&&K6.bind(Y6),Ve=K6?function(e){return e&&t0e(Y6,e)}:function(e){return e&&function(){return Y6.apply(e,arguments)}},r0e=Ve({}.toString),n0e=Ve("".slice),Ao=function(e){return n0e(r0e(e),8,-1)},Xw=ge.Object,o0e=Ve("".split),q5=Tt((function(){return!Xw("z").propertyIsEnumerable(0)}))?function(e){return Ao(e)=="String"?o0e(e,""):Xw(e)}:Xw,i0e=ge.TypeError,Hp=function(e){if(e==null)throw i0e("Can't call method on "+e);return e},cu=function(e){return q5(Hp(e))},wt=function(e){return typeof e=="function"},kt=function(e){return typeof e=="object"?e!==null:wt(e)},a0e=function(e){return wt(e)?e:void 0},Ns=function(e,t){return arguments.length<2?a0e(ge[e]):ge[e]&&ge[e][t]},Up=Ve({}.isPrototypeOf),Jl=Ns("navigator","userAgent")||"",rB=ge.process,nB=ge.Deno,oB=rB&&rB.versions||nB&&nB.version,iB=oB&&oB.v8;iB&&($v=(sa=iB.split("."))[0]>0&&sa[0]<4?1:+(sa[0]+sa[1])),!$v&&Jl&&(!(sa=Jl.match(/Edge\/(\d+)/))||sa[1]>=74)&&(sa=Jl.match(/Chrome\/(\d+)/))&&($v=+sa[1]);var Vp=$v,X6=!!Object.getOwnPropertySymbols&&!Tt((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vp&&Vp<41})),K5=X6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",u0e=ge.Object,Jw=K5?function(e){return typeof e=="symbol"}:function(e){var t=Ns("Symbol");return wt(t)&&Up(t.prototype,u0e(e))},s0e=ge.String,Rm=function(e){try{return s0e(e)}catch{return"Object"}},l0e=ge.TypeError,nu=function(e){if(wt(e))return e;throw l0e(Rm(e)+" is not a function")},Wp=function(e,t){var r=e[t];return r==null?void 0:nu(r)},c0e=ge.TypeError,f0e=Object.defineProperty,Y5=function(e,t){try{f0e(ge,e,{value:t,configurable:!0,writable:!0})}catch{ge[e]=t}return t},za=ge["__core-js_shared__"]||Y5("__core-js_shared__",{}),X5=G5((function(e){(e.exports=function(t,r){return za[t]||(za[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),d0e=ge.Object,J5=function(e){return d0e(Hp(e))},p0e=Ve({}.hasOwnProperty),fr=Object.hasOwn||function(e,t){return p0e(J5(e),t)},h0e=0,g0e=Math.random(),v0e=Ve(1 .toString),Z5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+v0e(++h0e+g0e,36)},sd=X5("wks"),vs=ge.Symbol,aB=vs&&vs.for,m0e=K5?vs:vs&&vs.withoutSetter||Z5,tr=function(e){if(!fr(sd,e)||!X6&&typeof sd[e]!="string"){var t="Symbol."+e;X6&&fr(vs,e)?sd[e]=vs[e]:sd[e]=K5&&aB?aB(t):m0e(t)}return sd[e]},y0e=ge.TypeError,b0e=tr("toPrimitive"),Q5=function(e){var t=(function(r,n){if(!kt(r)||Jw(r))return r;var o,i=Wp(r,b0e);if(i){if(o=ht(i,r,n),!kt(o)||Jw(o))return o;throw y0e("Can't convert object to primitive value")}return(function(a,u){var s,l;if(wt(s=a.toString)&&!kt(l=ht(s,a))||wt(s=a.valueOf)&&!kt(l=ht(s,a)))return l;throw c0e("Can't convert object to primitive value")})(r)})(e,"string");return Jw(t)?t:t+""},J6=ge.document,w0e=kt(J6)&&kt(J6.createElement),Gp=function(e){return w0e?J6.createElement(e):{}},D$=!ai&&!Tt((function(){return Object.defineProperty(Gp("div"),"a",{get:function(){return 7}}).a!=7})),uB=Object.getOwnPropertyDescriptor,eD={f:ai?uB:function(e,t){if(e=cu(e),t=Q5(t),D$)try{return uB(e,t)}catch{}if(fr(e,t))return u1(!ht(e0e.f,e,t),e[t])}},E0e=ge.String,x0e=ge.TypeError,Fr=function(e){if(kt(e))return e;throw x0e(E0e(e)+" is not an object")},S0e=ge.TypeError,sB=Object.defineProperty,Hi={f:ai?sB:function(e,t,r){if(Fr(e),t=Q5(t),Fr(r),D$)try{return sB(e,t,r)}catch{}if("get"in r||"set"in r)throw S0e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ei=ai?function(e,t,r){return Hi.f(e,t,u1(1,r))}:function(e,t,r){return e[t]=r,e},C0e=Ve(Function.toString);wt(za.inspectSource)||(za.inspectSource=function(e){return C0e(e)});var Mm,Jd,$m,s1=za.inspectSource,lB=ge.WeakMap,_$=wt(lB)&&/native code/.test(s1(lB)),cB=X5("keys"),tD=function(e){return cB[e]||(cB[e]=Z5(e))},l1={},Z6=ge.TypeError,D0e=ge.WeakMap;if(_$||za.state){var Ou=za.state||(za.state=new D0e),_0e=Ve(Ou.get),fB=Ve(Ou.has),A0e=Ve(Ou.set);Mm=function(e,t){if(fB(Ou,e))throw new Z6("Object already initialized");return t.facade=e,A0e(Ou,e,t),t},Jd=function(e){return _0e(Ou,e)||{}},$m=function(e){return fB(Ou,e)}}else{var wl=tD("state");l1[wl]=!0,Mm=function(e,t){if(fr(e,wl))throw new Z6("Object already initialized");return t.facade=e,ei(e,wl,t),t},Jd=function(e){return fr(e,wl)?e[wl]:{}},$m=function(e){return fr(e,wl)}}var In={set:Mm,get:Jd,has:$m,enforce:function(e){return $m(e)?Jd(e):Mm(e,{})},getterFor:function(e){return function(t){var r;if(!kt(t)||(r=Jd(t)).type!==e)throw Z6("Incompatible receiver, "+e+" required");return r}}},A$=Function.prototype,k0e=ai&&Object.getOwnPropertyDescriptor,Zw=fr(A$,"name"),zh={EXISTS:Zw,PROPER:Zw&&(function(){}
75).name==="something",CONFIGURABLE:Zw&&(!ai||ai&&k0e(A$,"name").configurable)},so=G5((function(e){var t=zh.CONFIGURABLE,r=In.get,n=In.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;wt(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!fr(u,"name")||t&&u.name!==p)&&ei(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==ge?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ei(i,a,u)):f?i[a]=u:Y5(a,u)})(Function.prototype,"toString",(function(){return wt(this)&&r(this).source||s1(this)}))})),O0e=Math.ceil,T0e=Math.floor,rD=function(e){var t=+e;return t!=t||t===0?0:(t>0?T0e:O0e)(t)},F0e=Math.max,B0e=Math.min,qp=function(e,t){var r=rD(e);return r<0?F0e(r+t,0):B0e(r,t)},P0e=Math.min,k$=function(e){return e>0?P0e(rD(e),9007199254740991):0},Hh=function(e){return k$(e.length)},j0e=function(e){return function(t,r,n){var o,i=cu(t),a=Hh(i),u=qp(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},N0e=j0e(!1),dB=Ve([].push),O$=function(e,t){var r,n=cu(e),o=0,i=[];for(r in n)!fr(l1,r)&&fr(n,r)&&dB(i,r);for(;t.length>o;)fr(n,r=t[o++])&&(~N0e(i,r)||dB(i,r));return i},zm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],I0e=zm.concat("length","prototype"),Hm={f:Object.getOwnPropertyNames||function(e){return O$(e,I0e)}},L0e={f:Object.getOwnPropertySymbols},R0e=Ve([].concat),M0e=Ns("Reflect","ownKeys")||function(e){var t=Hm.f(Fr(e)),r=L0e.f;return r?R0e(t,r(e)):t},$0e=function(e,t){for(var r=M0e(t),n=Hi.f,o=eD.f,i=0;i<r.length;i++){var a=r[i];fr(e,a)||n(e,a,o(t,a))}},z0e=/#|\.prototype\./,Uh=function(e,t){var r=U0e[H0e(e)];return r==W0e||r!=V0e&&(wt(t)?Tt(t):!!t)},H0e=Uh.normalize=function(e){return String(e).replace(z0e,".").toLowerCase()},U0e=Uh.data={},V0e=Uh.NATIVE="N",W0e=Uh.POLYFILL="P",Um=Uh,G0e=eD.f,Xo=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?ge:l?ge[u]||Y5(u,{}):(ge[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=G0e(r,n))&&a.value:r[n],!Um(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;$0e(i,o)}(e.sham||o&&o.sham)&&ei(i,"sham",!0),so(r,n,i,e)}},Vm=Array.isArray||function(e){return Ao(e)=="Array"},T$={};T$[tr("toStringTag")]="z";var nD=String(T$)==="[object z]",q0e=tr("toStringTag"),K0e=ge.Object,Y0e=Ao((function(){return arguments})())=="Arguments",c1=nD?Ao:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=K0e(e),q0e))=="string"?r:Y0e?Ao(t):(n=Ao(t))=="Object"&&wt(t.callee)?"Arguments":n},F$=function(){},X0e=[],B$=Ns("Reflect","construct"),oD=/^\s*(?:class|function)\b/,J0e=Ve(oD.exec),Z0e=!oD.exec(F$),ld=function(e){if(!wt(e))return!1;try{return B$(F$,X0e,e),!0}catch{return!1}},iD=!B$||Tt((function(){var e;return ld(ld.call)||!ld(Object)||!ld((function(){e=!0}))||e}))?function(e){if(!wt(e))return!1;switch(c1(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Z0e||!!J0e(oD,s1(e))}:ld,P$=function(e,t,r){var n=Q5(t);n in e?Hi.f(e,n,u1(0,r)):e[n]=r},Q0e=tr("species"),j$=Ve([].slice),eme=Vp>=51||!Tt((function(){var e=[];return(e.constructor={})[Q0e]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),tme=tr("species"),Qw=ge.Array,rme=Math.max;Xo({target:"Array",proto:!0,forced:!eme},{slice:function(e,t){var r,n,o,i=cu(this),a=Hh(i),u=qp(e,a),s=qp(t===void 0?a:t,a);if(Vm(i)&&(r=i.constructor,(iD(r)&&(r===Qw||Vm(r.prototype))||kt(r)&&(r=r[tme])===null)&&(r=void 0),r===Qw||r===void 0))return j$(i,u,s);for(n=new(r===void 0?Qw:r)(rme(s-u,0)),o=0;u<s;u++,o++)u in i&&P$(n,o,i[u]);return n.length=o,n}});var nme=nD?{}.toString:function(){return"[object "+c1(this)+"]"};nD||so(Object.prototype,"toString",nme,{unsafe:!0});var tv,ome=ge.String,Ha=function(e){if(c1(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ome(e)},N$=function(){var e=Fr(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},aD=ge.RegExp,Q6=Tt((function(){var e=aD("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));Q6||Tt((function(){return!aD("a","y").sticky}));var I$={BROKEN_CARET:Q6||Tt((function(){var e=aD("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:Q6},ime=Object.keys||function(e){return O$(e,zm)},ame=ai?Object.defineProperties:function(e,t){Fr(e);for(var r,n=cu(t),o=ime(t),i=o.length,a=0;i>a;)Hi.f(e,r=o[a++],n[r]);return e},e3=Ns("document","documentElement"),L$=tD("IE_PROTO"),e4=function(){},R$=function(e){return"<script>"+e+"<\/script>"},pB=function(e){e.write(R$("")),e.close();var t=e.parentWindow.Object;return e=null,t}
75,zv=function(){try{tv=new ActiveXObject("htmlfile")}catch{}var e,t;zv=typeof document<"u"?document.domain&&tv?pB(tv):((t=Gp("iframe")).style.display="none",e3.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(R$("document.F=Object")),e.close(),e.F):pB(tv);for(var r=zm.length;r--;)delete zv.prototype[zm[r]];return zv()};l1[L$]=!0;var hB,t4,uD=Object.create||function(e,t){var r;return e!==null?(e4.prototype=Fr(e),r=new e4,e4.prototype=null,r[L$]=e):r=zv(),t===void 0?r:ame(r,t)},ume=ge.RegExp,sme=Tt((function(){var e=ume(".","s");return!(e.dotAll&&e.exec(` 76`)&&e.flags==="s")})),lme=ge.RegExp,cme=Tt((function(){var e=lme("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),fme=In.get,dme=X5("native-string-replace",String.prototype.replace),Wm=RegExp.prototype.exec,t3=Wm,pme=Ve("".charAt),hme=Ve("".indexOf),gme=Ve("".replace),r4=Ve("".slice),n4=(t4=/b*/g,ht(Wm,hB=/a/,"a"),ht(Wm,t4,"a"),hB.lastIndex!==0||t4.lastIndex!==0),gB=I$.BROKEN_CARET,o4=/()??/.exec("")[1]!==void 0;(n4||o4||gB||sme||cme)&&(t3=function(e){var t,r,n,o,i,a,u,s=this,l=fme(s),c=Ha(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ht(t3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=gB&&s.sticky,v=ht(N$,s),m=s.source,g=0,y=c;if(p&&(v=gme(v,"y",""),hme(v,"g")===-1&&(v+="g"),y=r4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&pme(c,s.lastIndex-1)!==` 77`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),o4&&(r=new RegExp("^"+m+"$(?!\\s)",v)),n4&&(n=s.lastIndex),o=ht(Wm,p?r:s,y),p?o?(o.input=r4(o.input,g),o[0]=r4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:n4&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),o4&&o&&o.length>1&&ht(dme,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=uD(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
77);var Kp=t3;Xo({target:"RegExp",proto:!0,forced:/./.exec!==Kp},{exec:Kp});var sD=Function.prototype,vB=sD.apply,vme=sD.bind,mB=sD.call,M$=typeof Reflect=="object"&&Reflect.apply||(vme?mB.bind(vB):function(){return mB.apply(vB,arguments)}),mme=tr("species"),i4=RegExp.prototype,yme=tr("match"),bme=ge.TypeError,wme=tr("species"),$$=function(e,t){var r,n=Fr(e).constructor;return n===void 0||(r=Fr(n)[wme])==null?t:(function(o){if(iD(o))return o;throw bme(Rm(o)+" is not a constructor")})(r)},Eme=Ve("".charAt),yB=Ve("".charCodeAt),xme=Ve("".slice),Sme=function(e){return function(t,r){var n,o,i=Ha(Hp(t)),a=rD(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=yB(i,a))<55296||n>56319||a+1===u||(o=yB(i,a+1))<56320||o>57343?e?Eme(i,a):n:e?xme(i,a,a+2):o-56320+(n-55296<<10)+65536}},z$={charAt:Sme(!0)},Cme=z$.charAt,Dme=function(e,t,r){return t+(r?Cme(e,t).length:1)},_me=ge.Array,Ame=Math.max,r3=function(e,t,r){for(var n=Hh(e),o=qp(t,n),i=qp(r===void 0?n:r,n),a=_me(Ame(i-o,0)),u=0;o<i;o++,u++)P$(a,u,e[o]);return a.length=u,a},kme=ge.TypeError,bB=function(e,t){var r=e.exec;if(wt(r)){var n=ht(r,e,t);return n!==null&&Fr(n),n}if(Ao(e)==="RegExp")return ht(Kp,e,t);throw kme("RegExp#exec called on incompatible receiver")},El=I$.UNSUPPORTED_Y,Ome=Math.min,H$=[].push,Tme=Ve(/./.exec),xl=Ve(H$),cd=Ve("".slice);(function(e,t,r,n){var o=tr(e),i=!Tt((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!Tt((function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[mme]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=Ve(/./[o]),s=(function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var m,g,y=Ha(Hp(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!kt(m=p)||!((g=m[yme])!==void 0?g:Ao(m)=="RegExp"))return ht(c,y,p,h);for(var b,w,E,C=[],S=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,P=new RegExp(p.source,S+"g");(b=ht(Kp,P,y))&&!((w=P.lastIndex)>k&&(xl(C,cd(y,k,b.index)),b.length>1&&b.index<y.length&&M$(H$,C,r3(b,1)),E=b[0].length,k=w,C.length>=h));)P.lastIndex===b.index&&P.lastIndex++;return k===y.length?!E&&Tme(P,"")||xl(C,""):xl(C,cd(y,k)),C.length>h?r3(C,0,h):C}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:ht(c,this,p,v)}:c,[function(p,v){var m=Hp(this),g=p==null?void 0:Wp(p,l);return g?ht(g,p,m,v):ht(d,Ha(m),p,v)},function(p,v){var m=Fr(this),g=Ha(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=$$(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(El?"g":"y"),E=new h(El?"^(?:"+m.source+")":m,w),C=v===void 0?4294967295:v>>>0;if(C===0)return[];if(g.length===0)return bB(E,g)===null?[g]:[];for(var S=0,k=0,P=[];k<g.length;){E.lastIndex=El?0:k;var G,J=bB(E,El?cd(g,k):g);if(J===null||(G=Ome(k$(E.lastIndex+(El?k:0)),g.length))===S)k=Dme(g,k,b);else{if(xl(P,cd(g,S,k)),P.length===C)return P;for(var M=1;M<=J.length-1;M++)if(xl(P,J[M]),P.length===C)return P;k=S=G}}return xl(P,cd(g,S)),P}]})(o,""[e],(function(l,c,f,d,p){var v=Ve(l),m=c.exec;return m===Kp||m===i4.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}));so(String.prototype,e,s[0]),so(i4,o,s[1])}n&&ei(i4[o],"sham",!0)})("split",0,!!Tt((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),El);var Gm=function(){return Gm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gm.apply(this,arguments)};function lD(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r((function(f){f(c)}))).then(a,u)}s((n=n.apply(e,[])).next())}))}function cD(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function Fme(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(i){return new Promise((function(a,u){(function(s,l,c,f){Promise.resolve(f).then((function(d){s({value:d,done:c})}),l)})(a,u,(i=e[o](i)).done,i.value)}))}}}var n3=tr("unscopables"),o3=Array.prototype;o3[n3]==null&&Hi.f(o3,n3,{configurable:!0,value:uD(null)});var ms,wB,EB,a4=function(e){o3[n3][e]=!0},Ac={},Bme=!Tt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),xB=tD("IE_PROTO"),i3=ge.Object,Pme=i3.prototype,qm=Bme?i3.getPrototypeOf:function(e){var t=J5(e);if(fr(t,xB))return t[xB];var r=t.constructor;return wt(r)&&t instanceof r?r.prototype:t instanceof i3?Pme:null},a3=tr("iterator"),U$=!1;[].keys&&("next"in(EB=[].keys())?(wB=qm(qm(EB)))!==Object.prototype&&(ms=wB):U$=!0);var jme=ms==null||Tt((function(){var e={};return ms[a3].call(e)!==e}));jme&&(ms={}),wt(ms[a3])||so(ms,a3,(function(){return this}));var fD={IteratorPrototype:ms,BUGGY_SAFARI_ITERATORS:U$},Nme=Hi.f,SB=tr("toStringTag"),Km=function(e,t,r){e&&!fr(e=r?e:e.prototype,SB)&&Nme(e,SB,{configurable:!0,value:t})},Ime=fD.IteratorPrototype,Lme=function(){return this}
77,Rme=ge.String,Mme=ge.TypeError,kc=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Ve(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Fr(n),(function(i){if(typeof i=="object"||wt(i))return i;throw Mme("Can't set "+Rme(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),$me=zh.PROPER,zme=zh.CONFIGURABLE,CB=fD.IteratorPrototype,u4=fD.BUGGY_SAFARI_ITERATORS,fd=tr("iterator"),Hme=function(){return this},V$=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=uD(Ime,{next:u1(1,h)}),Km(g,w,!1),Ac[w]=Lme})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!u4&&g in d)return d[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,d=e.prototype,p=d[fd]||d["@@iterator"]||o&&d[o],v=!u4&&p||l(o),m=t=="Array"&&d.entries||p;return m&&(u=qm(m.call(new e)))!==Object.prototype&&u.next&&(qm(u)!==CB&&(kc?kc(u,CB):wt(u[fd])||so(u,fd,Hme)),Km(u,c,!0)),$me&&o=="values"&&p&&p.name!=="values"&&(zme?ei(d,"name","values"):(f=!0,v=function(){return ht(p,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Xo({target:t,proto:!0,forced:u4||f},s)),d[fd]!==v&&so(d,fd,v,{name:o}),Ac[t]=v,s},Ume=In.set,Vme=In.getterFor("Array Iterator"),Od=V$(Array,"Array",(function(e,t){Ume(this,{type:"Array Iterator",target:cu(e),index:0,kind:t})}),(function(){var e=Vme(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");Ac.Arguments=Ac.Array,a4("keys"),a4("values"),a4("entries");var Wme=z$.charAt,Gme=In.set,qme=In.getterFor("String Iterator");V$(String,"String",(function(e){Gme(this,{type:"String Iterator",string:Ha(e),index:0})}),(function(){var e,t=qme(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Wme(r,n),t.index+=e.length,{value:e,done:!1})}));var Ym=function(e,t,r){for(var n in t)so(e,n,t[n],r);return e},DB=Hm.f,_B=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Kme={f:function(e){return _B&&Ao(e)=="Window"?(function(t){try{return DB(t)}catch{return r3(_B)}})(e):DB(cu(e))}},AB=Tt((function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),rv=Object.isExtensible,Ku=Tt((function(){rv(1)}))||AB?function(e){return!!kt(e)&&(!AB||Ao(e)!="ArrayBuffer")&&(!rv||rv(e))}:rv,Yme=!Tt((function(){return Object.isExtensible(Object.preventExtensions({}))})),dD=G5((function(e){var t=Hi.f,r=!1,n=Z5("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=Hm.f,s=Ve([].splice),l={};l[n]=1,u(l).length&&(Hm.f=function(c){for(var f=u(c),d=0,p=f.length;d<p;d++)if(f[d]===n){s(f,d,1);break}return f},Xo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Kme.f}))},fastKey:function(u,s){if(!kt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!fr(u,n)){if(!Ku(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!fr(u,n)){if(!Ku(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Yme&&r&&Ku(u)&&!fr(u,n)&&i(u),u}};l1[n]=!0})),kB=Ve(Ve.bind),Yp=function(e,t){return nu(e),t===void 0?e:kB?kB(e,t):function(){return e.apply(t,arguments)}},Xme=tr("iterator"),Jme=Array.prototype,Zme=tr("iterator"),OB=function(e){if(e!=null)return Wp(e,Zme)||Wp(e,"@@iterator")||Ac[c1(e)]},Qme=ge.TypeError,TB=function(e,t,r){var n,o;Fr(e);try{if(!(n=Wp(e,"return"))){if(t==="throw")throw r;return r}n=ht(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Fr(n),r},eye=ge.TypeError,Hv=function(e,t){this.stopped=e,this.result=t},FB=Hv.prototype,Xm=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,d=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=Yp(t,f),g=function(h){return n&&TB(n,"normal",h),new Hv(!0,h)},y=function(h){return d?(Fr(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(p)n=e;else{if(!(o=OB(e)))throw eye(Rm(e)+" is not iterable");if((c=o)!==void 0&&(Ac.Array===c||Jme[Xme]===c)){for(i=0,a=Hh(e);a>i;i++)if((u=y(e[i]))&&Up(FB,u))return u;return new Hv(!1)}n=(function(h,b){var w=arguments.length<2?OB(h):b;if(nu(w))return Fr(ht(w,h));throw Qme(Rm(h)+" is not iterable")})(e,o)}for(s=n.next;!(l=ht(s,n)).done;){try{u=y(l.value)}catch(h){TB(n,"throw",h)}if(typeof u=="object"&&u&&Up(FB,u))return u}return new Hv(!1)},tye=ge.TypeError,pD=function(e,t){if(Up(t,e))return e;throw tye("Incorrect invocation")},W$=tr("iterator"),G$=!1;try{var rye=0,BB={next:function(){return{done:!!rye++}},return:function(){G$=!0}};BB[W$]=function(){return this},Array.from(BB,(function(){throw 2}))}catch{}var q$=function(e,t){if(!G$)return!1;var r=!1;try{var n={};n[W$]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},nye=tr("species"),PB=ge.Array,oye=function(e,t){return new((function(r){var n;return Vm(r)&&(n=r.constructor,(iD(n)&&(n===PB||Vm(n.prototype))||kt(n)&&(n=n[nye])===null)&&(n=void 0)),n===void 0?PB:n})(e))(t===0?0:t)},jB=Ve([].push),s4=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=J5(s),m=q5(v),g=Yp(l,c),y=Hh(m),h=0,b=f||oye,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:jB(w,d)}else switch(e){case 4:return!1;case 7:jB(w,d)}return i?-1:n||o?o:w}},hD={forEach:s4(0),find:s4(5),findIndex:s4(6)},nv=dD.getWeakData,iye=In.set,aye=In.getterFor,uye=hD.find,sye=hD.findIndex,lye=Ve([].splice),cye=0,ov=function(e){return e.frozen||(e.frozen=new K$)},K$=function(){this.entries=[]},l4=function(e,t){return uye(e.entries,(function(r){return r[0]===t}))};K$.prototype={get:function(e){var t=l4(this,e);if(t)return t[1]},has:function(e){return!!l4(this,e)},set:function(e,t){var r=l4(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=sye(this.entries,(function(r){return r[0]===e}));return~t&&lye(this.entries,t,1),!!~t}};var dd,Y$={getConstructor:function(e,t,r,n){var o=e((function(s,l){pD(s,i),iye(s,{type:t,id:cye++,frozen:void 0}),l!=null&&Xm(l,s[n],{that:s,AS_ENTRIES:r})})),i=o.prototype,a=aye(t),u=function(s,l,c){var f=a(s),d=nv(Fr(l),!0);return d===!0?ov(f).set(l,c):d[f.id]=c,s};return Ym(i,{delete:function(s){var l=a(this);if(!kt(s))return!1;var c=nv(s);return c===!0?ov(l).delete(s):c&&fr(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!kt(s))return!1;var c=nv(s);return c===!0?ov(l).has(s):c&&fr(c,l.id)}}),Ym(i,r?{get:function(s){var l=a(this);if(kt(s)){var c=nv(s);return c===!0?ov(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},iv=In.enforce,fye=!ge.ActiveXObject&&"ActiveXObject"in ge,X$=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},dye=(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=ge[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ve(u[g]);so(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!kt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!kt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!kt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Um(e,!wt(a)||!(o||u.forEach&&!Tt((function(){new a().entries().next()})))))s=r.getConstructor(t,e,n,i),dD.enable();else if(Um(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Tt((function(){f.has(1)})),v=q$((function(g){new a(g)})),m=!o&&Tt((function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)}));v||((s=t((function(g,y){pD(g,u);var h=(function(b,w,E){var C,S;return kc&&wt(C=w.constructor)&&C!==E&&kt(S=C.prototype)&&S!==E.prototype&&kc(b,S),b})(new a,g,s);return y!=null&&Xm(y,h[i],{that:h,AS_ENTRIES:n}),h}))).prototype=u,u.constructor=s),(p||m)&&(c("delete"),c("has"),n&&c("get")),(m||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Xo({global:!0,forced:s!=a}
vendor: 11,044 bytes, line 77
77,l),Km(s,e),o||r.setStrong(s,e,n),s})("WeakMap",X$,Y$);if(_$&&fye){dd=Y$.getConstructor(X$,"WeakMap",!0),dD.enable();var pd=dye.prototype,NB=Ve(pd.delete),av=Ve(pd.has),IB=Ve(pd.get),LB=Ve(pd.set);Ym(pd,{delete:function(e){if(kt(e)&&!Ku(e)){var t=iv(this);return t.frozen||(t.frozen=new dd),NB(this,e)||t.frozen.delete(e)}return NB(this,e)},has:function(e){if(kt(e)&&!Ku(e)){var t=iv(this);return t.frozen||(t.frozen=new dd),av(this,e)||t.frozen.has(e)}return av(this,e)},get:function(e){if(kt(e)&&!Ku(e)){var t=iv(this);return t.frozen||(t.frozen=new dd),av(this,e)?IB(this,e):t.frozen.get(e)}return IB(this,e)},set:function(e,t){if(kt(e)&&!Ku(e)){var r=iv(this);r.frozen||(r.frozen=new dd),av(this,e)?LB(this,e,t):r.frozen.set(e,t)}else LB(this,e,t);return this}})}var Jm={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},c4=Gp("span").classList,RB=c4&&c4.constructor&&c4.constructor.prototype,J$=RB===Object.prototype?void 0:RB,f4=tr("iterator"),MB=tr("toStringTag"),d4=Od.values,Z$=function(e,t){if(e){if(e[f4]!==d4)try{ei(e,f4,d4)}catch{e[f4]=d4}if(e[MB]||ei(e,MB,t),Jm[t]){for(var r in Od)if(e[r]!==Od[r])try{ei(e,r,Od[r])}catch{e[r]=Od[r]}}}};for(var p4 in Jm)Z$(ge[p4]&&ge[p4].prototype,p4);Z$(J$,"DOMTokenList");var Q$=function(e,t){var r=[][e];return!!r&&Tt((function(){r.call(null,t||function(){throw 1},1)}))},pye=hD.forEach,h4=Q$("forEach")?[].forEach:function(e){return pye(this,e,arguments.length>1?arguments[1]:void 0)},ez=function(e){if(e&&e.forEach!==h4)try{ei(e,"forEach",h4)}catch{e.forEach=h4}};for(var g4 in Jm)Jm[g4]&&ez(ge[g4]&&ge[g4].prototype);ez(J$);var Xp,Sl,$B,v4,Zm=ge.Promise,zB=tr("species"),tz=/(?:ipad|iphone|ipod).*applewebkit/i.test(Jl),Ua=Ao(ge.process)=="process",u3=ge.setImmediate,HB=ge.clearImmediate,hye=ge.process,m4=ge.Dispatch,gye=ge.Function,UB=ge.MessageChannel,vye=ge.String,y4=0,Zd={};try{Xp=ge.location}catch{}var gD=function(e){if(fr(Zd,e)){var t=Zd[e];delete Zd[e],t()}},b4=function(e){return function(){gD(e)}},VB=function(e){gD(e.data)},WB=function(e){ge.postMessage(vye(e),Xp.protocol+"//"+Xp.host)};u3&&HB||(u3=function(e){var t=j$(arguments,1);return Zd[++y4]=function(){M$(wt(e)?e:gye(e),void 0,t)},Sl(y4),y4},HB=function(e){delete Zd[e]},Ua?Sl=function(e){hye.nextTick(b4(e))}:m4&&m4.now?Sl=function(e){m4.now(b4(e))}:UB&&!tz?(v4=($B=new UB).port2,$B.port1.onmessage=VB,Sl=Yp(v4.postMessage,v4)):ge.addEventListener&&wt(ge.postMessage)&&!ge.importScripts&&Xp&&Xp.protocol!=="file:"&&!Tt(WB)?(Sl=WB,ge.addEventListener("message",VB,!1)):Sl="onreadystatechange"in Gp("script")?function(e){e3.appendChild(Gp("script")).onreadystatechange=function(){e3.removeChild(this),gD(e)}}:function(e){setTimeout(b4(e),0)});var hd,Uu,Qd,jl,w4,E4,x4,GB,rz={set:u3},mye=/ipad|iphone|ipod/i.test(Jl)&&ge.Pebble!==void 0,yye=/web0s(?!.*chrome)/i.test(Jl),bye=eD.f,S4=rz.set,qB=ge.MutationObserver||ge.WebKitMutationObserver,KB=ge.document,YB=ge.process,uv=ge.Promise,XB=bye(ge,"queueMicrotask"),nz=XB&&XB.value;nz||(hd=function(){var e,t;for(Ua&&(e=YB.domain)&&e.exit();Uu;){t=Uu.fn,Uu=Uu.next;try{t()}catch(r){throw Uu?jl():Qd=void 0,r}}Qd=void 0,e&&e.enter()},tz||Ua||yye||!qB||!KB?!mye&&uv&&uv.resolve?((x4=uv.resolve(void 0)).constructor=uv,GB=Yp(x4.then,x4),jl=function(){GB(hd)}):Ua?jl=function(){YB.nextTick(hd)}:(S4=Yp(S4,ge),jl=function(){S4(hd)}):(w4=!0,E4=KB.createTextNode(""),new qB(hd).observe(E4,{characterData:!0}),jl=function(){E4.data=w4=!w4}));var C4,JB,oz,ZB,iz=nz||function(e){var t={fn:e,next:void 0};Qd&&(Qd.next=t),Uu||(Uu=t,jl()),Qd=t},wye=function(e){var t,r;this.promise=new e((function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o})),this.resolve=nu(t),this.reject=nu(r)},vD={f:function(e){return new wye(e)}},s3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Eye=typeof window=="object",az=rz.set,xye=tr("species"),Di="Promise",QB=In.getterFor(Di),Sye=In.set,Cye=In.getterFor(Di),Nu=Zm&&Zm.prototype,Jo=Zm,gd=Nu,uz=ge.TypeError,l3=ge.document,mD=ge.process,Zl=vD.f,Dye=Zl,_ye=!!(l3&&l3.createEvent&&ge.dispatchEvent),sz=wt(ge.PromiseRejectionEvent),lz=!1,ep=Um(Di,(function(){var e=s1(Jo),t=e!==String(Jo);if(!t&&Vp===66)return!0;if(Vp>=51&&/native code/.test(e))return!1;var r=new Jo((function(o){o(1)})),n=function(o){o((function(){}),(function(){}))};return(r.constructor={})[xye]=n,!(lz=r.then((function(){}))instanceof n)||!t&&Eye&&!sz})),Aye=ep||!q$((function(e){Jo.all(e).catch((function(){}))})),cz=function(e){var t;return!(!kt(e)||!wt(t=e.then))&&t},yD=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;iz((function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(e.rejection===2&&Oye(e),e.rejection=1),c===!0?a=n:(p&&p.enter(),a=c(n),p&&(p.exit(),s=!0)),a===l.promise?d(uz("Promise-chain cycle")):(u=cz(a))?ht(u,a,f,d):f(a)):d(n)}catch(v){p&&!s&&p.exit(),d(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&kye(e)}))}},fz=function(e,t,r){var n,o;_ye?((n=l3.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ge.dispatchEvent(n)):n={promise:t,reason:r},!sz&&(o=ge["on"+e])?o(n):e==="unhandledrejection"&&(function(i,a){var u=ge.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},kye=function(e){ht(az,ge,(function(){var t,r=e.facade,n=e.value;if(eP(e)&&(t=s3((function(){Ua?mD.emit("unhandledRejection",n,r):fz("unhandledrejection",r,n)})),e.rejection=Ua||eP(e)?2:1,t.error))throw t.value}))},eP=function(e){return e.rejection!==1&&!e.parent},Oye=function(e){ht(az,ge,(function(){var t=e.facade;Ua?mD.emit("rejectionHandled",t):fz("rejectionhandled",t,e.value)}))},$l=function(e,t,r){return function(n){e(t,n,r)}},Ql=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,yD(e,!0))},c3=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw uz("Promise can't be resolved itself");var n=cz(t);n?iz((function(){var o={done:!1};try{ht(n,t,$l(c3,o,e),$l(Ql,o,e))}catch(i){Ql(o,i,e)}})):(e.value=t,e.state=1,yD(e,!1))}catch(o){Ql({done:!1},o,e)}}};if(ep&&(gd=(Jo=function(e){pD(this,gd),nu(e),ht(C4,this);var t=QB(this);try{e($l(c3,t),$l(Ql,t))}catch(r){Ql(t,r)}}).prototype,(C4=function(e){Sye(this,{type:Di,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Ym(gd,{then:function(e,t){var r=Cye(this),n=r.reactions,o=Zl($$(this,Jo));return o.ok=!wt(e)||e,o.fail=wt(t)&&t,o.domain=Ua?mD.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&yD(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),JB=function(){var e=new C4,t=QB(e);this.promise=e,this.resolve=$l(c3,t),this.reject=$l(Ql,t)},vD.f=Zl=function(e){return e===Jo||e===oz?new JB(e):Dye(e)},wt(Zm)&&Nu!==Object.prototype)){ZB=Nu.then,lz||(so(Nu,"then",(function(e,t){var r=this;return new Jo((function(n,o){ht(ZB,r,n,o)})).then(e,t)}),{unsafe:!0}),so(Nu,"catch",gd.catch,{unsafe:!0}));try{delete Nu.constructor}catch{}kc&&kc(Nu,gd)}Xo({global:!0,wrap:!0,forced:ep},{Promise:Jo}),Km(Jo,Di,!1),(function(e){var t=Ns("Promise"),r=Hi.f;ai&&t&&!t[zB]&&r(t,zB,{configurable:!0,get:function(){return this}})})(),oz=Ns(Di),Xo({target:Di,stat:!0,forced:ep},{reject:function(e){var t=Zl(this);return ht(t.reject,void 0,e),t.promise}}),Xo({target:Di,stat:!0,forced:ep},{resolve:function(e){return(function(t,r){if(Fr(t),kt(r)&&r.constructor===t)return r;var n=vD.f(t);return(0,n.resolve)(r),n.promise})(this,e)}}),Xo({target:Di,stat:!0,forced:Aye},{all:function(e){var t=this,r=Zl(t),n=r.resolve,o=r.reject,i=s3((function(){var a=nu(t.resolve),u=[],s=0,l=1;Xm(e,(function(c){var f=s++,d=!1;l++,ht(a,t,c).then((function(p){d||(d=!0,u[f]=p,--l||n(u))}),o)})),--l||n(u)}));return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=Zl(t),n=r.reject,o=s3((function(){var i=nu(t.resolve);Xm(e,(function(a){ht(i,t,a).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Tye=zh.PROPER,f3=RegExp.prototype,dz=f3.toString,Fye=Ve(N$),Bye=Tt((function(){return dz.call({source:"a",flags:"b"})!="/a/b"})),Pye=Tye&&dz.name!="toString";(Bye||Pye)&&so(RegExp.prototype,"toString",(function(){var e=Fr(this),t=Ha(e.source),r=e.flags;return"/"+t+"/"+Ha(r===void 0&&Up(f3,e)&&!("flags"in f3)?Fye(e):r)}),{unsafe:!0});var jye=zh.EXISTS,Nye=Hi.f,pz=Function.prototype,Iye=Ve(pz.toString),hz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Lye=Ve(hz.exec);ai&&!jye&&Nye(pz,"name",{configurable:!0,get:function(){try{return Lye(hz,Iye(this))[1]}catch{return""}}});var tP=new WeakMap;function gz(e){return e.getMenuConfig("uploadImage")}function Rye(e,t){return lD(this,void 0,void 0,(function(){return cD(this,(function(r){return[2,new Promise((function(n){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;as(e,a,t.name,u),n("ok")}}}))]}))}))}function Mye(e,t){return lD(this,void 0,void 0,(function(){var r,n,o,i;return cD(this,(function(a){switch(a.label){case 0:return r=(function(u){var s=tP.get(u);if(s!=null)return s;var l=gz(u),c=l.onSuccess,f=l.onProgress,d=l.onFailed,p=l.customInsert,v=l.onError;return s=GI(Gm(Gm({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(p)return p(g,(function(G,J,M){return as(u,G,J,M)})),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach((function(G){var J=G.url,M=J===void 0?"":J,X=G.alt,$=X===void 0?"":X,V=G.href;as(u,M,$,V===void 0?"":V)}));else{var E=w.url,C=E===void 0?"":E,S=w.alt,k=S===void 0?"":S,P=w.href;as(u,C,k,P===void 0?"":P)}c(m,g)}else d(m,g)},onError:function(m,g,y){v(m,g,y)}})),tP.set(u,s),s})(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}}))}))}function vz(e,t){var r,n;return lD(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return cD(this,(function(p){switch(p.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=gz(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=Fme(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Rye(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(v,m,g){return as(e,v,m,g)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Mye(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),r={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:p.sent(),p.label=14;
77case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var $ye=Ve([].join),zye=q5!=Object,Hye=Q$("join",",");Xo({target:"Array",proto:!0,forced:zye||!Hye},{join:function(e){return $ye(cu(this),e===void 0?",":e)}}),no&&(B.fn.append=no),ni&&(B.fn.on=ni),pc&&(B.fn.remove=pc),ri&&(B.fn.val=ri),tA&&(B.fn.click=tA),lc&&(B.fn.hide=lc);var Uye=(function(){function e(){this.title=he("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return My(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a((function(c,f,d){return as(t,c,f,d)}));else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=B("body"),l=B('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",(function(){var c=l[0].files;vz(t,c)}))}},e})(),Vye={menus:[{key:"uploadImage",factory:function(){return new Uye},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,r){console.error("'"+e.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,r=e;return r.insertData=function(n){if(My(r))t(n);else if(n.getData("text/plain"))t(n);else{var o=n.files;o.length<=0?t(n):Array.prototype.slice.call(o).some((function(i){return(function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),d=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)d.push(l.value)}catch(p){c={error:p}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return d})(i.type.split("/"),1)[0]==="image"}))?vz(e,o):t(n)}},r}};gn("en",{highLightModule:{selectLang:"Language"}}),gn("zh-CN",{highLightModule:{selectLang:"éæ©è¯è¨"}});var Qm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bD(e){var t={exports:{}};return e(t,t.exports),t.exports}var la,Uv,sv=function(e){return e&&e.Math==Math&&e},qe=sv(typeof globalThis=="object"&&globalThis)||sv(typeof window=="object"&&window)||sv(typeof self=="object"&&self)||sv(typeof Qm=="object"&&Qm)||(function(){return this})()||Function("return this")(),Wye=Object.defineProperty,wD=function(e,t){try{Wye(qe,e,{value:t,configurable:!0,writable:!0})}catch{qe[e]=t}return t},Va=qe["__core-js_shared__"]||wD("__core-js_shared__",{}),ED=bD((function(e){(e.exports=function(t,r){return Va[t]||(Va[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}
77)),mz=Function.prototype,d3=mz.bind,p3=mz.call,Gye=d3&&d3.bind(p3),dt=d3?function(e){return e&&Gye(p3,e)}:function(e){return e&&function(){return p3.apply(e,arguments)}},qye=qe.TypeError,Oc=function(e){if(e==null)throw qye("Can't call method on "+e);return e},Kye=qe.Object,xD=function(e){return Kye(Oc(e))},Yye=dt({}.hasOwnProperty),to=Object.hasOwn||function(e,t){return Yye(xD(e),t)},Xye=0,Jye=Math.random(),Zye=dt(1 .toString),yz=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Zye(++Xye+Jye,36)},en=function(e){return typeof e=="function"},Qye=function(e){return en(e)?e:void 0},Vh=function(e,t){return arguments.length<2?Qye(qe[e]):qe[e]&&qe[e][t]},D4=Vh("navigator","userAgent")||"",rP=qe.process,nP=qe.Deno,oP=rP&&rP.versions||nP&&nP.version,iP=oP&&oP.v8;iP&&(Uv=(la=iP.split("."))[0]>0&&la[0]<4?1:+(la[0]+la[1])),!Uv&&D4&&(!(la=D4.match(/Edge\/(\d+)/))||la[1]>=74)&&(la=D4.match(/Chrome\/(\d+)/))&&(Uv=+la[1]);var aP=Uv,kr=function(e){try{return!!e()}catch{return!0}},h3=!!Object.getOwnPropertySymbols&&!kr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aP&&aP<41})),SD=h3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",vd=ED("wks"),ys=qe.Symbol,uP=ys&&ys.for,e1e=SD?ys:ys&&ys.withoutSetter||yz,fu=function(e){if(!to(vd,e)||!h3&&typeof vd[e]!="string"){var t="Symbol."+e;h3&&to(ys,e)?vd[e]=ys[e]:vd[e]=SD&&uP?uP(t):e1e(t)}return vd[e]},bz={};bz[fu("toStringTag")]="z";var CD=String(bz)==="[object z]",ui=!kr((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),ki=function(e){return typeof e=="object"?e!==null:en(e)},g3=qe.document,t1e=ki(g3)&&ki(g3.createElement),DD=function(e){return t1e?g3.createElement(e):{}},wz=!ui&&!kr((function(){return Object.defineProperty(DD("div"),"a",{get:function(){return 7}}).a!=7})),r1e=qe.String,n1e=qe.TypeError,ko=function(e){if(ki(e))return e;throw n1e(r1e(e)+" is not an object")},md=Function.prototype.call,_r=md.bind?md.bind(md):function(){return md.apply(md,arguments)},Ez=dt({}.isPrototypeOf),o1e=qe.Object,_4=SD?function(e){return typeof e=="symbol"}:function(e){var t=Vh("Symbol");return en(t)&&Ez(t.prototype,o1e(e))},i1e=qe.String,xz=function(e){try{return i1e(e)}catch{return"Object"}},a1e=qe.TypeError,Sz=function(e){if(en(e))return e;throw a1e(xz(e)+" is not a function")},Cz=function(e,t){var r=e[t];return r==null?void 0:Sz(r)},u1e=qe.TypeError,s1e=qe.TypeError,l1e=fu("toPrimitive"),_D=function(e){var t=(function(r,n){if(!ki(r)||_4(r))return r;var o,i=Cz(r,l1e);if(i){if(o=_r(i,r,n),!ki(o)||_4(o))return o;throw s1e("Can't convert object to primitive value")}return(function(a,u){var s,l;if(en(s=a.toString)&&!ki(l=_r(s,a))||en(s=a.valueOf)&&!ki(l=_r(s,a)))return l;throw u1e("Can't convert object to primitive value")})(r)})(e,"string");return _4(t)?t:t+""},c1e=qe.TypeError,sP=Object.defineProperty,f1={f:ui?sP:function(e,t,r){if(ko(e),t=_D(t),ko(r),wz)try{return sP(e,t,r)}catch{}if("get"in r||"set"in r)throw c1e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},AD=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tc=ui?function(e,t,r){return f1.f(e,t,AD(1,r))}:function(e,t,r){return e[t]=r,e},f1e=dt(Function.toString);en(Va.inspectSource)||(Va.inspectSource=function(e){return f1e(e)});var v3,ey,m3,kD=Va.inspectSource,lP=qe.WeakMap,d1e=en(lP)&&/native code/.test(kD(lP)),cP=ED("keys"),Dz=function(e){return cP[e]||(cP[e]=yz(e))},OD={},fP=qe.TypeError,p1e=qe.WeakMap;if(d1e||Va.state){var Tu=Va.state||(Va.state=new p1e),h1e=dt(Tu.get),dP=dt(Tu.has),g1e=dt(Tu.set);v3=function(e,t){if(dP(Tu,e))throw new fP("Object already initialized");return t.facade=e,g1e(Tu,e,t),t},ey=function(e){return h1e(Tu,e)||{}},m3=function(e){return dP(Tu,e)}}else{var Cl=Dz("state");OD[Cl]=!0,v3=function(e,t){if(to(e,Cl))throw new fP("Object already initialized");return t.facade=e,Tc(e,Cl,t),t},ey=function(e){return to(e,Cl)?e[Cl]:{}},m3=function(e){return to(e,Cl)}}var y3={get:ey,enforce:function(e){return m3(e)?ey(e):v3(e,{})}},_z=Function.prototype,v1e=ui&&Object.getOwnPropertyDescriptor,pP=to(_z,"name"),Az={PROPER:pP&&(function(){}).name==="something",CONFIGURABLE:pP&&(!ui||ui&&v1e(_z,"name").configurable)},Jp=bD((function(e){var t=Az.CONFIGURABLE,r=y3.get,n=y3.enforce,o=String(String).split("String");
77(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet,p=s&&s.name!==void 0?s.name:a;en(u)&&(String(p).slice(0,7)==="Symbol("&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!to(u,"name")||t&&u.name!==p)&&Tc(u,"name",p),(l=n(u)).source||(l.source=o.join(typeof p=="string"?p:""))),i!==qe?(c?!d&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Tc(i,a,u)):f?i[a]=u:wD(a,u)})(Function.prototype,"toString",(function(){return en(this)&&r(this).source||kD(this)}))})),m1e=dt({}.toString),y1e=dt("".slice),Wa=function(e){return y1e(m1e(e),8,-1)},b1e=fu("toStringTag"),w1e=qe.Object,E1e=Wa((function(){return arguments})())=="Arguments",TD=CD?Wa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=w1e(e),b1e))=="string"?r:E1e?Wa(t):(n=Wa(t))=="Object"&&en(t.callee)?"Arguments":n},x1e=CD?{}.toString:function(){return"[object "+TD(this)+"]"};CD||Jp(Object.prototype,"toString",x1e,{unsafe:!0});var hP,gP={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},A4=DD("span").classList,vP=A4&&A4.constructor&&A4.constructor.prototype,S1e=vP===Object.prototype?void 0:vP,mP=dt(dt.bind),k4=qe.Object,C1e=dt("".split),FD=kr((function(){return!k4("z").propertyIsEnumerable(0)}))?function(e){return Wa(e)=="String"?C1e(e,""):k4(e)}:k4,D1e=Math.ceil,_1e=Math.floor,BD=function(e){var t=+e;return t!=t||t===0?0:(t>0?_1e:D1e)(t)},A1e=Math.min,kz=function(e){return e>0?A1e(BD(e),9007199254740991):0},PD=function(e){return kz(e.length)},yP=Array.isArray||function(e){return Wa(e)=="Array"},Oz=function(){},k1e=[],Tz=Vh("Reflect","construct"),jD=/^\s*(?:class|function)\b/,O1e=dt(jD.exec),T1e=!jD.exec(Oz),yd=function(e){if(!en(e))return!1;try{return Tz(Oz,k1e,e),!0}catch{return!1}},Fz=!Tz||kr((function(){var e;return yd(yd.call)||!yd(Object)||!yd((function(){e=!0}))||e}))?function(e){if(!en(e))return!1;switch(TD(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return T1e||!!O1e(jD,kD(e))}:yd,F1e=fu("species"),bP=qe.Array,B1e=function(e,t){return new((function(r){var n;return yP(r)&&(n=r.constructor,(Fz(n)&&(n===bP||yP(n.prototype))||ki(n)&&(n=n[F1e])===null)&&(n=void 0)),n===void 0?bP:n})(e))(t===0?0:t)},wP=dt([].push),ca=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var d,p,v=xD(s),m=FD(v),g=(function(E,C){return Sz(E),C===void 0?E:mP?mP(E,C):function(){return E.apply(C,arguments)}})(l,c),y=PD(m),h=0,b=f||B1e,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(p=g(d=m[h],h,v),e))if(t)w[h]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return h;case 2:wP(w,d)}else switch(e){case 4:return!1;case 7:wP(w,d)}return i?-1:n||o?o:w}},P1e=[ca(0),ca(1),ca(2),ca(3),ca(4),ca(5),ca(6),ca(7)][0],O4=(hP=[].forEach)&&kr((function(){hP.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return P1e(this,e,arguments.length>1?arguments[1]:void 0)},Bz=function(e){if(e&&e.forEach!==O4)try{Tc(e,"forEach",O4)}catch{e.forEach=O4}};for(var T4 in gP)gP[T4]&&Bz(qe[T4]&&qe[T4].prototype);Bz(S1e);var EP={}.propertyIsEnumerable,xP=Object.getOwnPropertyDescriptor,Pz={f:xP&&!EP.call({1:2},1)?function(e){var t=xP(this,e);return!!t&&t.enumerable}:EP},d1=function(e){return FD(Oc(e))},SP=Object.getOwnPropertyDescriptor,jz={f:ui?SP:function(e,t){if(e=d1(e),t=_D(t),wz)try{return SP(e,t)}catch{}if(to(e,t))return AD(!_r(Pz.f,e,t),e[t])}},j1e=Math.max,N1e=Math.min,b3=function(e,t){var r=BD(e);return r<0?j1e(r+t,0):N1e(r,t)},I1e=function(e){return function(t,r,n){var o,i=d1(t),a=PD(i),u=b3(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},L1e=I1e(!1),CP=dt([].push),Nz=function(e,t){var r,n=d1(e),o=0,i=[];for(r in n)!to(OD,r)&&to(n,r)&&CP(i,r);for(;t.length>
vendor: 9,795 bytes, line 77
77o;)to(n,r=t[o++])&&(~L1e(i,r)||CP(i,r));return i},ty=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],R1e=ty.concat("length","prototype"),M1e={f:Object.getOwnPropertyNames||function(e){return Nz(e,R1e)}},Iz={f:Object.getOwnPropertySymbols},$1e=dt([].concat),z1e=Vh("Reflect","ownKeys")||function(e){var t=M1e.f(ko(e)),r=Iz.f;return r?$1e(t,r(e)):t},H1e=function(e,t){for(var r=z1e(t),n=f1.f,o=jz.f,i=0;i<r.length;i++){var a=r[i];to(e,a)||n(e,a,o(t,a))}},U1e=/#|\.prototype\./,Wh=function(e,t){var r=W1e[V1e(e)];return r==q1e||r!=G1e&&(en(t)?kr(t):!!t)},V1e=Wh.normalize=function(e){return String(e).replace(U1e,".").toLowerCase()},W1e=Wh.data={},G1e=Wh.NATIVE="N",q1e=Wh.POLYFILL="P",K1e=Wh,Y1e=jz.f,p1=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?qe:l?qe[u]||wD(u,{}):(qe[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Y1e(r,n))&&a.value:r[n],!K1e(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;H1e(i,o)}(e.sham||o&&o.sham)&&Tc(i,"sham",!0),Jp(r,n,i,e)}},Vv=Object.keys||function(e){return Nz(e,ty)},Dl=Object.assign,DP=Object.defineProperty,X1e=dt([].concat),_P=!Dl||kr((function(){if(ui&&Dl({b:1},Dl(DP({},"a",{enumerable:!0,get:function(){DP(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(o){t[o]=o})),Dl({},e)[r]!=7||Vv(Dl({},t)).join("")!=n}))?function(e,t){for(var r=xD(e),n=arguments.length,o=1,i=Iz.f,a=Pz.f;n>o;)for(var u,s=FD(arguments[o++]),l=i?X1e(Vv(s),i(s)):Vv(s),c=l.length,f=0;c>f;)u=l[f++],ui&&!_r(a,s,u)||(r[u]=s[u]);return r}:Dl;p1({target:"Object",stat:!0,forced:Object.assign!==_P},{assign:_P});var AP=bD((function(e){var t=(function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(y,h){var b,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var E in b={},h[w]=b,y)y.hasOwnProperty(E)&&(b[E]=g(y[E],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach((function(C,S){b[S]=g(C,h)})),b);default:return y}},getLanguage:function(g){for(;g&&!n.test(g.className);)g=g.parentElement;return g?(g.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var b="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var b in y)h[b]=y[b];return h},insertBefore:function(g,y,h,b){var w=(b=b||a.languages)[g],E={};for(var C in w)if(w.hasOwnProperty(C)){if(C==y)for(var S in h)h.hasOwnProperty(S)&&(E[S]=h[S]);h.hasOwnProperty(C)||(E[C]=w[C])}var k=b[g];return b[g]=E,a.languages.DFS(a.languages,(function(P,G){G===k&&P!=g&&(this[P]=E)})),E},DFS:function g(y,h,b,w){w=w||{};var E=a.util.objId;for(var C in y)if(y.hasOwnProperty(C)){h.call(y,C,y[C],b||C);var S=y[C],k=a.util.type(S);k!=="Object"||w[E(S)]?k!=="Array"||w[E(S)]||(w[E(S)]=!0,g(S,h,C,w)):(w[E(S)]=!0,g(S,h,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,E=0;w=b.elements[E++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(g,y,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(n,"").replace(/\s+/g," ")+" language-"+b;var E=g.parentElement;E&&E.nodeName.toLowerCase()==="pre"&&(E.className=E.className.replace(n,"").replace(/\s+/g," ")+" language-"+b);var C={element:g,language:b,grammar:w,code:g.textContent};function S(P){C.highlightedCode=P,a.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,a.hooks.run("after-highlight",C),a.hooks.run("complete",C),h&&h.call(C.element)}if(a.hooks.run("before-sanity-check",C),(E=C.element.parentElement)&&E.nodeName.toLowerCase()==="pre"&&!E.hasAttribute("tabindex")&&E.setAttribute("tabindex","0"),!C.code)return a.hooks.run("complete",C),void(h&&h.call(C.element));if(a.hooks.run("before-highlight",C),C.grammar)if(y&&r.Worker){var k=new Worker(a.filename);k.onmessage=function(P){S(P.data)},k.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else S(a.highlight(C.code,C.grammar,C.language));else S(a.util.encode(C.code))},highlight:function(g,y,h){var b={code:g,grammar:y,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,y){var h=y.rest;if(h){for(var b in h)y[b]=h[b];delete y.rest}var w=new c;return f(w,w.head,g),l(g,w,y,w.head,0),(function(E){for(var C=[],S=E.head.next;S!==E.tail;)C.push(S.value),S=S.next;return C})(w)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(g,y,h,b){this.type=g,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(g,y,h,b){g.lastIndex=y;var w=g.exec(h);if(w&&b&&w[1]){var E=w[1].length;w.index+=E,w[0]=w[0].slice(E)}return w}function l(g,y,h,b,w,E){for(var C in h)if(h.hasOwnProperty(C)&&h[C]){var S=h[C];S=Array.isArray(S)?S:[S];for(var k=0;k<S.length;++k){if(E&&E.cause==C+","+k)return;var P=S[k],G=P.inside,J=!!P.lookbehind,M=!!P.greedy,X=P.alias;if(M&&!P.pattern.global){var $=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,$+"g")}for(var V=P.pattern||P,Q=b.next,ie=w;Q!==y.tail&&!(E&&ie>=E.reach);ie+=Q.value.length,Q=Q.next){var le=Q.value;if(y.length>g.length)return;if(!(le instanceof u)){var q,U=1;if(M){if(!(q=s(V,ie,g,J)))break;var _=q.index,D=q.index+q[0].length,F=ie;for(F+=Q.value.length;_>=F;)F+=(Q=Q.next).value.length;if(ie=F-=Q.value.length,Q.value instanceof u)continue;for(var H=Q;H!==y.tail&&(F<D||typeof H.value=="string");H=H.next)U++,F+=H.value.length;U--,le=g.slice(ie,F),q.index-=ie}else if(!(q=s(V,0,le,J)))continue;_=q.index;var ee=q[0],W=le.slice(0,_),I=le.slice(_+ee.length),ne=ie+le.length;E&&ne>E.reach&&(E.reach=ne);var ae=Q.prev;if(W&&(ae=f(y,ae,W),ie+=W.length),d(y,ae,U),Q=f(y,ae,new u(C,G?a.tokenize(ee,G):ee,X,ee)),I&&f(y,Q,I),U>1){var be={cause:C+","+k,reach:ne};l(g,y,h,Q.prev,ie,be),E&&be.reach>E.reach&&(E.reach=be.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,g.length++,w}function d(g,y,h){for(var b=y.next,w=0;w<h&&b!==g.tail;w++)b=b.next;y.next=b,b.prev=y,g.length-=w}if(r.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach((function(k){b+=g(k,h)})),b}var w={type:y.type,content:g(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},E=y.alias;E&&(Array.isArray(E)?Array.prototype.push.apply(w.classes,E):w.classes.push(E)),a.hooks.run("wrap",w);var C="";for(var S in w.attributes)C+=" "+S+'="'+(w.attributes[S]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+C+">"+w.content+"</"+w.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",(function(g){var y=JSON.parse(g.data),h=y.language,b=y.code,w=y.immediateClose;r.postMessage(a.highlight(b,a.languages[h],h)),w&&r.close()}),!1)),a;var p=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var m=document.readyState;m==="loading"||m==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a})(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),Qm!==void 0&&(Qm.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>\/:]+:/}}
vendor: 5,379 bytes, line 77
77,"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(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return r})),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside: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(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(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}
77(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,(function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(s){s.selector+=", "+o})),t.hooks.add("before-sanity-check",(function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loadingâ¦";var f=l.getAttribute("data-src"),d=s.language;if(d==="none"){var p=(/\.(\w+)$/.exec(f)||[,"none"])[1];d=r[p]||p}u(c,d),u(l,d);var v=t.plugins.autoloader;v&&v.loadLanguages(d);var m=new XMLHttpRequest;m.open("GET",f,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?(l.setAttribute(n,"loaded"),c.textContent=m.responseText,t.highlightElement(c)):(l.setAttribute(n,"failed"),m.status>=400?c.textContent="â Error "+m.status+" while fetching file: "+m.statusText:c.textContent="â Error: File does not exist or is empty"))},m.send(null)}})),t.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)t.highlightElement(l)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}})()}));(function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,(function(){return r})).replace(/<BRACES>/g,(function(){return n})).replace(/<SPREAD>/g,(function(){return o}
vendor: 4,099 bytes, line 77
77)),RegExp(s,l)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],d=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:d=!0),(d||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var p=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(p+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(p=a(s[c-1])+p,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",p,null,p)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",(function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)}))})(Prism),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}}
vendor: 4,241 bytes, line 77
77,"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;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}
vendor: 4,134 bytes, line 77
77,{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])
77*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"php")}))})(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01
77])+|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/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.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":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return r}))+")"),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
vendor: 5,601 bytes, line 77
77*\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(D,F){return D.replace(/<<(\d+)>>/g,(function(H,ee){return"(?:"+F[+ee]+")"}))}function r(D,F,H){return RegExp(t(D,F),"")}function n(D,F){for(var H=0;H<F;H++)D=D.replace(/<<self>>/g,(function(){return"(?:"+D+")"}));return D.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(D){return"\\b(?:"+D.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,v,h]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,y,h]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,P=/"(?:\\.|[^\\"\r\n])*"/.source,G=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[G]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:RegExp(k),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,C]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,d,m]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,p]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(p),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,m,C,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:S},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 J=P+"|"+k,M=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[J]),X=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),$=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,V=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,X]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>
77)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[$,V]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[$]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[X]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Q=/:[^}\r\n]+/.source,ie=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[M]),2),le=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ie,Q]),q=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[J]),2),U=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,Q]);function _(D,F){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[D]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[F,Q]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[le]),lookbehind:!0,greedy:!0,inside:_(le,ie)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[U]),lookbehind:!0,greedy:!0,inside:_(U,q)}]})})(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|DECI
77MAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?
vendor: 4,779 bytes, line 77
77:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_
77CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+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:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>
vendor: 4,688 bytes, line 77
77&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash})(Prism),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return n})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),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:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(l){["url","bold","italic","strike","code-snippet"].forEach((function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])}))})),e.hooks.add("after-tokenize",(function(l){l.language!=="markdown"&&l.language!=="md"||(function c(f){if(f&&typeof f!="string")for(var d=0,p=f.length;d<p;d++){var v=f[d];if(v.type==="code"){var m=v.content[1],g=v.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var y=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());
77g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}})(l.tokens)})),e.hooks.add("wrap",(function(l){if(l.type==="code-block"){for(var c="",f=0,d=l.classes.length;f<d;f++){var p=l.classes[f],v=/language-(.+)/.exec(p);if(v){c=v[1];break}}var m=e.languages[c];if(m)l.content=e.highlight((function(y){var h=y.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(b,w){var E;return(w=w.toLowerCase())[0]==="#"?(E=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(E)):u[w]||b}))})(l.content),m,c);else if(c&&c!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,(function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}}));var J1e=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Lz(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce((function(t,r){return t+Lz(r)}),0)}var lv,Z1e=qe.String,Bi=function(e){if(TD(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Z1e(e)},Rz=function(){var e=ko(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},ND=qe.RegExp,w3=kr((function(){var e=ND("a","y");return e.lastIndex=2,e.exec("abcd")!=null}));w3||kr((function(){return!ND("a","y").sticky}));var Mz={BROKEN_CARET:w3||kr((function(){var e=ND("^r","gy");return e.lastIndex=2,e.exec("str")!=null})),UNSUPPORTED_Y:w3},Q1e=ui?Object.defineProperties:function(e,t){ko(e);for(var r,n=d1(t),o=Vv(t),i=o.length,a=0;i>a;)f1.f(e,r=o[a++],n[r]);return e},ebe=Vh("document","documentElement"),$z=Dz("IE_PROTO"),F4=function(){},zz=function(e){return"<script>"+e+"<\/script>"},kP=function(e){e.write(zz("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wv=function(){try{lv=new ActiveXObject("htmlfile")}catch{}var e,t;Wv=typeof document<"u"?document.domain&&lv?kP(lv):((t=DD("iframe")).style.display="none",ebe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(zz("document.F=Object")),e.close(),e.F):kP(lv);for(var r=ty.length;r--;)delete Wv.prototype[ty[r]];return Wv()};OD[$z]=!0;var OP,B4,tbe=Object.create||function(e,t){var r;return e!==null?(F4.prototype=ko(e),r=new F4,F4.prototype=null,r[$z]=e):r=Wv(),t===void 0?r:Q1e(r,t)},rbe=qe.RegExp,nbe=kr((function(){var e=rbe(".","s");return!(e.dotAll&&e.exec(` 78`)&&e.flags==="s")})),obe=qe.RegExp,ibe=kr((function(){var e=obe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"})),abe=y3.get,ube=ED("native-string-replace",String.prototype.replace),ry=RegExp.prototype.exec,E3=ry,sbe=dt("".charAt),lbe=dt("".indexOf),cbe=dt("".replace),P4=dt("".slice),j4=(B4=/b*/g,_r(ry,OP=/a/,"a"),_r(ry,B4,"a"),OP.lastIndex!==0||B4.lastIndex!==0),TP=Mz.BROKEN_CARET,N4=/()??/.exec("")[1]!==void 0;(j4||N4||TP||nbe||ibe)&&(E3=function(e){var t,r,n,o,i,a,u,s=this,l=abe(s),c=Bi(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=_r(E3,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=TP&&s.sticky,v=_r(Rz,s),m=s.source,g=0,y=c;if(p&&(v=cbe(v,"y",""),lbe(v,"g")===-1&&(v+="g"),y=P4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&sbe(c,s.lastIndex-1)!==` 79`)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),N4&&(r=new RegExp("^"+m+"$(?!\\s)",v)),j4&&(n=s.lastIndex),o=_r(ry,p?r:s,y),p?o?(o.input=P4(o.input,g),o[0]=P4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:j4&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),N4&&o&&o.length>1&&_r(ube,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)})),o&&d)for(o.groups=a=tbe(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o}
79);var Zp=E3;p1({target:"RegExp",proto:!0,forced:/./.exec!==Zp},{exec:Zp});var ID=Function.prototype,FP=ID.apply,fbe=ID.bind,BP=ID.call,dbe=typeof Reflect=="object"&&Reflect.apply||(fbe?BP.bind(FP):function(){return BP.apply(FP,arguments)}),pbe=fu("species"),I4=RegExp.prototype,hbe=fu("match"),gbe=qe.TypeError,vbe=fu("species"),mbe=dt("".charAt),PP=dt("".charCodeAt),ybe=dt("".slice),bbe=function(e){return function(t,r){var n,o,i=Bi(Oc(t)),a=BD(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=PP(i,a))<55296||n>56319||a+1===u||(o=PP(i,a+1))<56320||o>57343?e?mbe(i,a):n:e?ybe(i,a,a+2):o-56320+(n-55296<<10)+65536}},wbe=bbe(!0),Ebe=function(e,t,r){return t+(r?wbe(e,t).length:1)},xbe=qe.Array,Sbe=Math.max,jP=function(e,t,r){for(var n,o,i,a,u=PD(e),s=b3(t,u),l=b3(r===void 0?u:r,u),c=xbe(Sbe(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=e[s],(a=_D(o))in n?f1.f(n,a,AD(0,i)):n[a]=i;return c.length=f,c},Cbe=qe.TypeError,NP=function(e,t){var r=e.exec;if(en(r)){var n=_r(r,e,t);return n!==null&&ko(n),n}if(Wa(e)==="RegExp")return _r(Zp,e,t);throw Cbe("RegExp#exec called on incompatible receiver")},_l=Mz.UNSUPPORTED_Y,Dbe=Math.min,Hz=[].push,_be=dt(/./.exec),Al=dt(Hz),bd=dt("".slice);(function(e,t,r,n){var o=fu(e),i=!kr((function(){var l={};return l[o]=function(){return 7},""[e](l)!=7})),a=i&&!kr((function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[pbe]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l}));if(!i||!a||r){var u=dt(/./[o]),s=(function(l,c,f){var d;return d="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(p,v){var m,g,y=Bi(Oc(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(p===void 0)return[y];if(!ki(m=p)||!((g=m[hbe])!==void 0?g:Wa(m)=="RegExp"))return _r(c,y,p,h);for(var b,w,E,C=[],S=(p.ignoreCase?"i":"")+(p.multiline?"m":"")+(p.unicode?"u":"")+(p.sticky?"y":""),k=0,P=new RegExp(p.source,S+"g");(b=_r(Zp,P,y))&&!((w=P.lastIndex)>k&&(Al(C,bd(y,k,b.index)),b.length>1&&b.index<y.length&&dbe(Hz,C,jP(b,1)),E=b[0].length,k=w,C.length>=h));)P.lastIndex===b.index&&P.lastIndex++;return k===y.length?!E&&_be(P,"")||Al(C,""):Al(C,bd(y,k)),C.length>h?jP(C,0,h):C}:"0".split(void 0,0).length?function(p,v){return p===void 0&&v===0?[]:_r(c,this,p,v)}:c,[function(p,v){var m=Oc(this),g=p==null?void 0:Cz(p,l);return g?_r(g,p,m,v):_r(d,Bi(m),p,v)},function(p,v){var m=ko(this),g=Bi(p),y=f(d,m,g,v,d!==c);if(y.done)return y.value;var h=(function(X,$){var V,Q=ko(X).constructor;return Q===void 0||(V=ko(Q)[vbe])==null?$:(function(ie){if(Fz(ie))return ie;throw gbe(xz(ie)+" is not a constructor")})(V)})(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(_l?"g":"y"),E=new h(_l?"^(?:"+m.source+")":m,w),C=v===void 0?4294967295:v>>>0;if(C===0)return[];if(g.length===0)return NP(E,g)===null?[g]:[];for(var S=0,k=0,P=[];k<g.length;){E.lastIndex=_l?0:k;var G,J=NP(E,_l?bd(g,k):g);if(J===null||(G=Dbe(kz(E.lastIndex+(_l?k:0)),g.length))===S)k=Ebe(g,k,b);else{if(Al(P,bd(g,S,k)),P.length===C)return P;for(var M=1;M<=J.length-1;M++)if(Al(P,J[M]),P.length===C)return P;k=S=G}}return Al(P,bd(g,S)),P}]})(o,""[e],(function(l,c,f,d,p){var v=dt(l),m=c.exec;return m===Zp||m===I4.exec?i&&!p?{done:!0,value:u(c,f,d)}:{done:!0,value:v(f,c,d)}:{done:!1}}));Jp(String.prototype,e,s[0]),Jp(I4,o,s[1])}n&&Tc(I4[o],"sham",!0)})("split",0,!!kr((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"})),_l),p1({global:!0},{globalThis:qe}),ro&&(B.fn.attr=ro);var Abe=Az.PROPER,x3=RegExp.prototype,Uz=x3.toString,kbe=dt(Rz),Obe=kr((function(){return Uz.call({source:"a",flags:"b"})!="/a/b"})),Tbe=Abe&&Uz.name!="toString";(Obe||Tbe)&&Jp(RegExp.prototype,"toString",(function(){var e=ko(this),t=Bi(e.source),r=e.flags;return"/"+t+"/"+Bi(r===void 0&&Ez(x3,e)&&!("flags"in x3)?kbe(e):r)}),{unsafe:!0});var Fbe=(function(){function e(){this.title=he("highLightModule.selectLang"),this.iconSvg
79='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach((function(a){var u=a.text,s=a.value;r.push({text:u,value:s})}));var i=this.getValue(t);return r.forEach((function(a){a.value===i?a.selected=!0:delete a.selected})),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);if(r==null||!Ce.isElement(r))return"";var n=r.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some((function(i){return i.value===n}))?n:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,r){if(this.getSelectCodeElem(t)!=null){var n={language:r.toString()};z.setNodes(t,n,{match:function(o){return O.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var r=O.getSelectedNodeByType(t,"code");if(r==null)return null;var n=O.getParentNode(t,r);return Ce.isElement(n)?n.type!=="pre"?null:r:null},e})(),Bbe={renderStyle:function(e,t){var r=e,n=t,o="";return J1e.forEach((function(i){r[i]&&(o=i)})),o&&(function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})})(n,o="token "+o),n},parseStyleHtml:function(e,t,r){var n=B(e);if(!Ce.isElement(t)||O.getNodeType(t)!=="code")return t;var o=t,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Fbe},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 r=e.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+t+"</code>"}}]},Pbe=/"/g,jbe=dt("".replace);p1({target:"String",proto:!0,forced:kr((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return t=e,r=Bi(Oc(this)),n="<a",(n+=' name="'+jbe(Bi(t),Pbe,""")+'"')+">"+r+"</a>";var t,r,n}});var Vz=function(e){var t,r,n,o=(function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,E,C=b.call(y),S=[];try{for(;(h===void 0||h-- >0)&&!(w=C.next()).done;)S.push(w.value)}catch(k){E={error:k}}finally{try{w&&!w.done&&(b=C.return)&&b.call(C)}finally{if(E)throw E.error}}return S})(e,2),i=o[0],a=o[1],u=[],s=(function(y){if(!ye.isText(y))return null;var h=O.getParentNode(null,y);if(h&&O.getNodeType(h)==="code"){var b=O.getParentNode(null,h);if(b&&O.getNodeType(b)==="pre")return h}return null})(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=(function(y,h){if(!h)return[];var b=AP.languages[h];return b?AP.tokenize(y.text,b):[]})(i,c),d=0;try{for(var p=(function(y){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&y[h],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")})(f),v=p.next();!v.done;v=p.next()){var m=v.value,g=d+Lz(m);typeof m!="string"&&u.push(((n={})[m.type]=!0,n.anchor={path:a,offset:d},n.focus={path:a,offset:g},n)),d=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(r=p.return)&&r.call(p)}finally{if(t)throw t.error}}return u},Ht=function(){return Ht=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ht.apply(this,arguments)},gr=(function(){function e(){throw new Error(`ä¸è½å®ä¾å 80Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=Ht(Ht({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=Ht(Ht({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=Ht(Ht({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=Ht(Ht({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=Yn(Yn({},u),o||{});if(wp[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");wp[i]=a,(function(l,c){c!=null&&(pI[l]=c)})(i,s)})(t,r)},e.registerRenderElem=function(t){(function(r){var n=r.type,o=r.renderElem;RI[n||""]=o})(t)},e.registerRenderStyle=function(t){(function(r){mx.push(r)})(t)},e.registerElemToHtml=function(t){(function(r){var n=r.type,o=r.elemToHtml;hI[n||""]=o})(t)},e.registerStyleToHtml=function(t){(function(r){fx.push(r)})(t)},e.registerPreParseHtml=function(t){(function(r){BI.push(r)})(t)},e.registerParseElemHtml=function(t){(function(r){var n=r.selector,o=r.parseElemHtml;H0[n]=o})(t)},e.registerParseStyleHtml=function(t){(function(r){KS.push(r)})(t)},e.registerModule=function(t){Iu(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e})();function Iu(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(c){return gr.registerMenu(c)})),r&&r.forEach((function(c){return gr.registerRenderElem(c)})),n&&gr.registerRenderStyle(n),o&&o.forEach((function(c){return gr.registerElemToHtml(c)})),i&&gr.registerStyleToHtml(i),a&&a.forEach((function(c){return gr.registerPreParseHtml(c)})),u&&u.forEach((function(c){return gr.registerParseElemHtml(c)})),s&&gr.registerParseStyleHtml(s),l&&gr.registerPlugin(l)}$se.forEach((function(e){return Iu(e)})),Iu(mfe),Iu(Upe),Iu(Qve),Iu(Vye),Iu(Bbe);var Wz='<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>',Gz={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"]}},Nbe={hoverbarKeys:Ht(Ht({},Gz),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};gr.setEditorConfig(Ht(Ht({},Nbe),{decorate:Vz}));var Ibe={hoverbarKeys:Gz};gr.setSimpleEditorConfig(Ht(Ht({},Ibe),{decorate:Vz}));var Lbe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:he("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:he("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:he("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:he("editor.image"),iconSvg:Wz,menuKeys:["insertImage","uploadImage"]}
80,{key:"group-video",title:he("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"]};gr.setToolbarConfig(Lbe);var Rbe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:he("editor.image"),iconSvg:Wz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function Mbe(e){e===void 0&&(e={});var t=e.selector,r=t===void 0?"":t,n=e.content,o=n===void 0?[]:n,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=(s===void 0?"default":s)==="simple"?gr.simpleEditorConfig:gr.editorConfig,c=Ht(Ht({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return Ute({selector:r,config:Ht(Ht(Ht({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:gr.plugins})}function $be(e){var t=e.selector,r=e.editor,n=e.config,o=n===void 0?{}:n,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?gr.simpleToolbarConfig:gr.toolbarConfig,s=(function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,d=c.config,p=d===void 0?{}:d;if((function(g,y){return NI(g,"data-w-e-toolbar",y)})(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=Yn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},p||{}),m=new Kte(f,v);return MS.set(m,l),Oy.set(l,m),m})(r,{selector:t,config:Ht(Ht({},u),o)});return s}gr.setSimpleToolbarConfig(Rbe);var zbe=Object.defineProperty,Hbe=Object.defineProperties,Ube=Object.getOwnPropertyDescriptors,IP=Object.getOwnPropertySymbols,Vbe=Object.prototype.hasOwnProperty,Wbe=Object.prototype.propertyIsEnumerable,LP=(e,t,r)=>t in e?zbe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gbe=(e,t)=>{for(var r in t||(t={}))Vbe.call(t,r)&&LP(e,r,t[r]);if(IP)for(var r of IP(t))Wbe.call(t,r)&&LP(e,r,t[r]);return e},qbe=(e,t)=>Hbe(e,Ube(t));function fa(e){let t=`è¯·ä½¿ç¨ '@${e}' äºä»¶ï¼ä¸è¦æ¾å¨ props ä¸`;return t+=` 81Please use '@${e}' event instead of props`,t}var qz=(e,t)=>{for(const[r,n]of t)e[r]=n;return e};const Kbe=Ln({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const r=we(null),n=UP(null),o=we(""),i=()=>{if(!r.value)return;const u=aH(e.defaultContent);Mbe({selector:r.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:qbe(Gbe({},e.defaultConfig),{onCreated(s){if(n.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=fa("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=fa("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=fa("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=fa("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=fa("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=fa("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=fa("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=fa("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=n.value;s?.setHtml(u)}return Fo(()=>{i()}),ec(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:r}}}),Ybe={ref:"box",style:{height:"100%"}};function Xbe(e,t,r,n,o,i){return oe(),ue("div",Ybe,null,512)}var Jbe=qz(Kbe,[["render",Xbe]]);const Zbe=Ln({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=we(null),r=n=>{if(t.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");O.getToolbar(n)||$be({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return uH(()=>{const{editor:n}=e;n!=null&&r(n)}),{selector:t}}}),Qbe={ref:"selector"};function e2e(e,t,r,n,o,i){return oe(),ue("div",Qbe,null,512)}var t2e=qz(Zbe,[["render",e2e]]);function r2e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}function S3(e,t){return Array(t+1).join(e)}function Kz(e){return e.replace(/^\n*/,"")}function Yz(e){for(var t=e.length;t>0&&e[t-1]===` 82`;)t--;return e.substring(0,t)}function Xz(e){return Yz(Kz(e))}var n2e=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function LD(e){return RD(e,n2e)}var Jz=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Zz(e){return RD(e,Jz)}function o2e(e){return eH(e,Jz)}var Qz=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function i2e(e){return RD(e,Qz)}function a2e(e){return eH(e,Qz)}function RD(e,t){return t.indexOf(e.nodeName)>=0}function eH(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var Yr={};Yr.paragraph={filter:"p",replacement:function(e){return` 83 84`+e+` 85 86`}};Yr.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+` 87`}};Yr.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.
87nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var o=S3(n===1?"=":"-",e.length);return` 88 89`+e+` 90`+o+` 91 92`}else return` 93 94`+S3("#",n)+" "+e+` 95 96`}};Yr.blockquote={filter:"blockquote",replacement:function(e){return e=Xz(e).replace(/^/gm,"> "),` 97 98`+e+` 99 100`}};Yr.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?` 101`+e:` 102 103`+e+` 104 105`}};Yr.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",o=t.parentNode;if(o.nodeName==="OL"){var i=o.getAttribute("start"),a=Array.prototype.indexOf.call(o.children,t);n=(i?Number(i)+a:a+1)+". "}var u=/\n$/.test(e);return e=Xz(e)+(u?` 106`:""),e=e.replace(/\n/gm,` 107`+" ".repeat(n.length)),n+e+(t.nextSibling?` 108`:"")}};Yr.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return` 109 110 `+t.firstChild.textContent.replace(/\n/g,` 111 `)+` 112 113`}};Yr.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",o=(n.match(/language-(\S+)/)||[null,""])[1],i=t.firstChild.textContent,a=r.fence.charAt(0),u=3,s=new RegExp("^"+a+"{3,}","gm"),l;l=s.exec(i);)l[0].length>=u&&(u=l[0].length+1);var c=S3(a,u);return` 114 115`+c+o+` 116`+i.replace(/\n$/,"")+` 117`+c+` 118 119`}};Yr.horizontalRule={filter:"hr",replacement:function(e,t,r){return` 120 121`+r.hr+` 122 123`}};Yr.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=t.getAttribute("href");r&&(r=r.replace(/([()])/g,"\\$1"));var n=ny(t.getAttribute("title"));return n&&(n=' "'+n.replace(/"/g,'\\"')+'"'),"["+e+"]("+r+n+")"}};Yr.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=t.getAttribute("href"),o=ny(t.getAttribute("title"));o&&(o=' "'+o+'"');var i,a;switch(r.linkReferenceStyle){case"collapsed":i="["+e+"][]",a="["+e+"]: "+n+o;break;case"shortcut":i="["+e+"]",a="["+e+"]: "+n+o;break;default:var u=this.references.length+1;i="["+e+"]["+u+"]",a="["+u+"]: "+n+o}return this.references.push(a),i},references:[],append:function(e){var t="";return this.references.length&&(t=` 124 125`+this.references.join(` 126`)+` 127 128`,this.references=[]),t}};Yr.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};Yr.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};Yr.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};Yr.image={filter:"img",replacement:function(e,t){var r=ny(t.getAttribute("alt")),n=t.getAttribute("src")||"",o=ny(t.getAttribute("title")),i=o?' "'+o+'"':"";return n?"":""}};function ny(e){return e?e.replace(/(\n+\s*)+/g,` 129`):""}function tH(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}tH.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=L4(this.array,e,this.options))||(t=L4(this._keep,e,this.options))||(t=L4(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function L4(e,t,r){for(var n=0;n<e.length;n++){var o=e[n];if(u2e(o,t,r))return o}}function u2e(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function s2e(e){var t=e.element,r=e.isBlock,n=e.isVoid,o=e.isPre||function(f){return f.nodeName==="PRE"};
129if(!(!t.firstChild||o(t))){for(var i=null,a=!1,u=null,s=RP(u,t,o);s!==t;){if(s.nodeType===3||s.nodeType===4){var l=s.data.replace(/[ \r\n\t]+/g," ");if((!i||/ $/.test(i.data))&&!a&&l[0]===" "&&(l=l.substr(1)),!l){s=R4(s);continue}s.data=l,i=s}else if(s.nodeType===1)r(s)||s.nodeName==="BR"?(i&&(i.data=i.data.replace(/ $/,"")),i=null,a=!1):n(s)||o(s)?(i=null,a=!0):i&&(a=!1);else{s=R4(s);continue}var c=RP(u,s,o);u=s,s=c}i&&(i.data=i.data.replace(/ $/,""),i.data||R4(i))}}function R4(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function RP(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var MD=typeof window<"u"?window:{};function l2e(){var e=MD.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function c2e(){var e=function(){};return f2e()?e.prototype.parseFromString=function(t){var r=new window.ActiveXObject("htmlfile");return r.designMode="on",r.open(),r.write(t),r.close(),r}:e.prototype.parseFromString=function(t){var r=document.implementation.createHTMLDocument("");return r.open(),r.write(t),r.close(),r},e}function f2e(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch{MD.ActiveXObject&&(e=!0)}return e}var d2e=l2e()?MD.DOMParser:c2e();function p2e(e,t){var r;if(typeof e=="string"){var n=h2e().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return s2e({element:r,isBlock:LD,isVoid:Zz,isPre:t.preformattedCode?g2e:null}),r}var M4;function h2e(){return M4=M4||new d2e,M4}function g2e(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function v2e(e,t){return e.isBlock=LD(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=m2e(e),e.flankingWhitespace=y2e(e,t),e}function m2e(e){return!Zz(e)&&!i2e(e)&&/^\s*$/i.test(e.textContent)&&!o2e(e)&&!a2e(e)}function y2e(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=b2e(e.textContent);return r.leadingAscii&&MP("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&MP("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function b2e(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function MP(e,t,r){var n,o,i;return e==="left"?(n=t.previousSibling,o=/ $/):(n=t.nextSibling,o=/^ /),n&&(n.nodeType===3?i=o.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?i=!1:n.nodeType===1&&!LD(n)&&(i=o.test(n.textContent))),i}var w2e=Array.prototype.reduce,E2e=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function oy(e){if(!(this instanceof oy))return new oy(e);var t={rules:Yr,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?` 130 131`:""},keepReplacement:function(r,n){return n.isBlock?` 132 133`+n.outerHTML+` 134 135`:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?` 136 137`+r+` 138 139`:r}};this.options=r2e({},t,e),this.rules=new tH(this.options)}oy.prototype={turndown:function(e){if(!C2e(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=rH.call(this,new p2e(e,this.options));return x2e.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return E2e.reduce(function(t,r){return t.replace(r[0],r[1])},e)}};function rH(e){var t=this;return w2e.call(e.childNodes,function(r,n){n=new v2e(n,t.options);var o="";return n.nodeType===3?o=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(o=S2e.call(t,n)),nH(r,o)},"")}function x2e(e){var t=this;
139return this.rules.forEach(function(r){typeof r.append=="function"&&(e=nH(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function S2e(e){var t=this.rules.forNode(e),r=rH.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function nH(e,t){var r=Yz(e),n=Kz(t),o=Math.max(e.length-r.length,t.length-n.length),i=` 140 141`.substring(0,o);return r+i+n}function C2e(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}function Gh(){const e=VP(),t=sH(),r=lH(),n=we(!1),o=we(!1),i=_t(()=>{const c=e.query.edit;if(!c)return null;const f=Number(c);return Number.isFinite(f)?f:null}),a=_t(()=>i.value!=null);async function u(c,f,d,p){const v=f();if(v){C3(v);return}const m=d==="draft",g=m?o:n;g.value=!0;try{const y={...c,save_as_draft:m,submit_for_review:!m};if(a.value&&i.value?(await KP(i.value,y),ar(m?A.getText("creator","draftUpdated"):A.getText("creator","submittedForReview"))):(await YP(y),ar(m?A.getText("creator","draftSaved"):A.getText("creator","uploadSuccess"))),(!m||!a.value)&&p?.(),!m){const h=r.getUserInfo()?.id;h&&t.push(`/profile/${h}`)}}finally{g.value=!1}}function s(c,f,d){return u(c,f,"submit",d)}function l(c,f,d){return u(c,f,"draft",d)}return{editingPostId:i,isEditing:a,submitting:n,savingDraft:o,submitPost:s,saveDraft:l}}function qh(e){const t=()=>typeof e=="function"?e():e.value;function r(o){t()&&o.preventDefault()}Fo(()=>{window.addEventListener("beforeunload",r)}),WP(()=>{window.removeEventListener("beforeunload",r)});function n(o){if(!t()){o();return}dH.confirm(A.getText("common","unsavedLeaveConfirm"),A.getText("common","tip"),{confirmButtonText:A.getText("common","leave"),cancelButtonText:A.getText("common","stay"),type:"warning",customClass:"brutal-leave-confirm"}).then(()=>o()).catch(()=>o(!1))}cH((o,i,a)=>n(a)),fH((o,i,a)=>n(a))}const D2e={class:"uploadActionBar"},_2e={class:"actionHint"},A2e={key:0,class:"rejectBanner"},k2e={class:"actionButtons"},O2e=["disabled"],T2e=["disabled"],F2e=Ln({__name:"SubmitActions",props:{submitting:{type:Boolean},savingDraft:{type:Boolean},isEditing:{type:Boolean},rejectRemark:{},submitLabel:{}},emits:["submit","save-draft"],setup(e){return(t,r)=>(oe(),ue("div",D2e,[T("div",_2e,[T("b",null,re(e.isEditing?R(A).getText("creator","editDraftWork"):R(A).getText("creator","confirmPublish")),1),T("span",null,re(R(A).getText("creator","checkBeforePublish")),1)]),e.rejectRemark?(oe(),ue("div",A2e,[T("strong",null,re(R(A).getText("creator","rejectionRemark"))+"ï¼",1),zt(re(e.rejectRemark)+" ",1),T("p",null,re(R(A).getText("creator","editingRejectedHint")),1)])):lr("",!0),T("div",k2e,[T("button",{type:"button",class:"publishBtn",disabled:e.savingDraft||e.submitting,onClick:r[0]||(r[0]=n=>t.$emit("save-draft"))},[T("span",null,re(e.savingDraft?R(A).getText("creator","savingDraft"):R(A).getText("creator","saveToDraft")),1),r[2]||(r[2]=T("span",null,"â",-1))],8,O2e),T("button",{type:"button",class:"publishBtn primary",disabled:e.submitting||e.savingDraft,onClick:r[1]||(r[1]=n=>t.$emit("submit"))},[T("span",null,re(e.submitting?R(A).getText("creator","uploading"):e.isEditing?R(A).getText("creator","resubmitReview"):e.submitLabel||R(A).getText("creator","confirmUpload")),1),r[3]||(r[3]=T("span",null,"â",-1))],8,T2e)])]))}}),Kh=si(F2e,[["__scopeId","data-v-577824b6"]]),oH=5,B2e=1,P2e=12,j2e=/[\u4e00-\u9fa5a-zA-Z0-9\-_]/,N2e=/[\u4e00-\u9fa5]/,I2e=/[\u4e00-\u9fa5a-zA-Z]/,L2e=/^\d+$/;function R2e(e){return[...e].filter(t=>j2e.test(t)).join("")}function M2e(e){let t=e.trim().replace(/#/g,"").toLowerCase();if(t=R2e(t),!t||L2e.test(t)||!I2e.test(t))return null;const r=[...t].length;return r<B2e||r>P2e?null:t}function $2e(e){const t=e.trim();return t?N2e.test(t)?t.split(/\s+/).filter(Boolean):[t.replace(/\s+/g,"-")]:[]}function z2e(e){const t=[];for(const r of e.split(/[,ï¼]/))for(const n of $2e(r)){const o=M2e(n);o&&t.push(o)}return t}const H2e=300,U2e=50;function V2e(e,t){const r=t?.maxTags??oH,n=we(""),o=we(!1),i=we(null);let a=null;
141function u(h){i.value=h,a&&clearTimeout(a),a=setTimeout(()=>{i.value=null,a=null},H2e)}function s(h){const b=h.toLowerCase().trim();return e.value.findIndex(w=>w.toLowerCase().trim()===b)}function l(h){if(e.value.length>=r)return!1;const b=s(h);return b>=0?(u(b),n.value="",!1):(e.value.push(h),!0)}function c(){const h=z2e(n.value);n.value="";for(const b of h){if(e.value.length>=r)break;l(b)}}function f(h){e.value.splice(h,1),i.value===h&&(i.value=null)}function d(){if(n.value||e.value.length===0)return;const h=e.value.length-1;i.value===h?(e.value.splice(h,1),i.value=null):u(h)}function p(h){return h.isComposing||h.keyCode===229||o.value}function v(h){if(h.key==="Enter"||h.key==="Tab"){if(p(h)){h.key==="Enter"&&h.stopPropagation();return}h.preventDefault(),c();return}h.key==="Backspace"&&d()}function m(){const h=n.value.search(/[,ï¼]/);h>=0&&(n.value=n.value.slice(0,h),c())}function g(){o.value=!0}function y(){setTimeout(()=>{o.value=!1},U2e)}return{inputValue:n,isComposing:o,highlightedIndex:i,commitInput:c,removeTag:f,handleKeydown:v,handleInput:m,onCompositionStart:g,onCompositionEnd:y}}const W2e={class:"tag-input"},G2e={class:"tagInputLine"},q2e=["placeholder"],K2e={key:0,class:"tagCloud"},Y2e=["onClick"],X2e=Ln({__name:"TagInput",props:gH({maxTags:{default:oH},placeholder:{default:""}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=pH(e,"modelValue"),r=e,{inputValue:n,highlightedIndex:o,commitInput:i,removeTag:a,handleKeydown:u,handleInput:s,onCompositionStart:l,onCompositionEnd:c}=V2e(t,{maxTags:r.maxTags});return(f,d)=>(oe(),ue("div",W2e,[T("div",G2e,[da(T("input",{class:"input","onUpdate:modelValue":d[0]||(d[0]=p=>hH(n)?n.value=p:null),type:"text",placeholder:e.placeholder,maxlength:12,onKeydown:d[1]||(d[1]=(...p)=>R(u)&&R(u)(...p)),onInput:d[2]||(d[2]=(...p)=>R(s)&&R(s)(...p)),onCompositionstart:d[3]||(d[3]=(...p)=>R(l)&&R(l)(...p)),onCompositionend:d[4]||(d[4]=(...p)=>R(c)&&R(c)(...p))},null,40,q2e),[[fv,R(n)]]),T("button",{class:"lineAddBtn",type:"button",onClick:d[5]||(d[5]=(...p)=>R(i)&&R(i)(...p))},"+ æ·»å ")]),t.value.length>0?(oe(),ue("div",K2e,[(oe(!0),ue(ct,null,Pi(t.value,(p,v)=>(oe(),ue("span",{key:`${p}-${v}`,class:ya(["tagBtn",{"tagBtn--highlight":R(o)===v}])},[zt(re(p)+" ",1),T("button",{class:"tagRemove",type:"button",onClick:m=>R(a)(v)},"Ã",8,Y2e)],2))),128))])):lr("",!0)]))}}),J2e=si(X2e,[["__scopeId","data-v-3917fa76"]]),Z2e={class:"cp-dialog"},Q2e={class:"cp-dialog-header"},ewe={class:"cp-dialog-title"},twe={class:"cp-dialog-search"},rwe={key:0,class:"cp-dialog-loading"},nwe={key:1,class:"cp-dialog-empty"},owe={key:2,class:"cp-dialog-grid"},iwe=["onClick"],awe={class:"cp-chip-info"},uwe={class:"cp-chip-name"},swe={class:"cp-chip-meta"},lwe={class:"cp-dialog-footer"},cwe=Ln({__name:"CirclePicker",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,o=we([]),i=we(!1),a=we(!1),u=we([]),s=we(""),l=_t(()=>r.modelValue.length),c=_t(()=>{const m=s.value.trim().toLowerCase();return m?o.value.filter(g=>g.name.toLowerCase().includes(m)):o.value});function f(){u.value=[...r.modelValue],s.value="",a.value=!0}function d(){n("update:modelValue",[...u.value]),a.value=!1}function p(){a.value=!1}function v(m){const g=u.value.indexOf(m);g===-1?u.value.push(m):u.value.splice(g,1)}return Fo(async()=>{i.value=!0;try{const m=await LH(1,50);o.value=m.data}catch{}finally{i.value=!1}}),(m,g)=>{const y=vH,h=GP,b=RH;return oe(),ue(ct,null,[T("button",{type:"button",class:"circle-trigger",onClick:f},[Ze(y,{size:16},{default:jr(()=>[Ze(R(mH))]),_:1}),T("span",null,re(l.value>0?R(A).getText("creator","circlesSelected",{count:l.value}):R(A).getText("creator","selectCirclesTrigger")),1),Ze(y,{size:14,class:"circle-trigger-arrow"},{default:jr(()=>[Ze(R(yH))]),_:1})]),(oe(),tc(SH,{to:"body"},[Ze(bH,{name:"cp-fade"},{default:jr(()=>[a.value?(oe(),ue("div",{key:0,class:"cp-overlay",onClick:wH(p,["self"])},[T("div",Z2e,[T("div",Q2e,[T("h3",ewe,re(R(A).getText("creator","selectCircles")),1),T("button",{type:"button",class:"cp-dialog-close",onClick:p},[Ze(y,{size:18},{default:jr(()=>[Ze(R(EH))]),_:1})])]),T("div",twe,[Ze(h,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=w=>s.value=w),placeholder:R(A).getText("creator","searchCircles"),clearable:""},null,8,["modelValue","placeholder"])]),i.value?(oe(),ue("div",rwe,re(R(A).getText("creator","loadingCircles")),1)):c.value.length===0?(oe(),ue("div",nwe,re(R(A).getText("creator","noFollowedCircles")),1)):(oe(),ue("div",owe,[(oe(!0),ue(ct,null,Pi(c.value,w=>(oe(),ue("div",{key:w.id,class:ya(["cp-chip",{selected:u.value.includes(w.id)}]),onClick:E=>v(w.id)},[Ze(b,{size:36,src:w.avatar,class:"cp-chip-avatar"},{default:jr(()=>[zt(re(w.name.slice(0,1)),1)]),_:2}
141,1032,["src"]),T("div",awe,[T("span",uwe,re(w.name),1),T("span",swe,re(R(A).getText("creator","followCount",{count:w.follow_count})),1)]),u.value.includes(w.id)?(oe(),tc(y,{key:0,class:"cp-chip-check"},{default:jr(()=>[Ze(R(xH))]),_:1})):lr("",!0)],10,iwe))),128))])),T("div",lwe,[T("button",{type:"button",class:"cp-dialog-btn cp-cancel-btn",onClick:p},re(R(A).getText("common","cancel")),1),T("button",{type:"button",class:"cp-dialog-btn cp-confirm-btn",onClick:d},re(R(A).getText("creator","confirmCircleSelection")),1)])])])):lr("",!0)]),_:1})]))],64)}}}),fwe=si(cwe,[["__scopeId","data-v-e222b7bf"]]),dwe={class:"upload-form"},pwe={class:"formSection coverSection"},hwe={class:"formSectionHeader"},gwe={class:"coverGrid"},vwe={class:"dropZone coverDrop"},mwe={key:0},ywe={key:1},bwe={class:"fileName"},wwe=["aria-label"],Ewe={class:"coverMock"},xwe=["src","alt"],Swe={key:1},Cwe={class:"formSection infoTagSection"},Dwe={class:"formSectionHeader"},_we={class:"fieldGrid"},Awe={class:"field"},kwe=["placeholder"],Owe={key:0,class:"field",style:{"margin-top":"16px"}},Twe=["placeholder"],Fwe={class:"tagInlineBlock",style:{"margin-top":"16px"}},Bwe={class:"subBlockTitle"},Pwe={key:0,class:"topic-section"},jwe={class:"topic-bar"},Nwe={class:"topic-label"},Iwe={key:1,class:"formSection accessSection"},Lwe={class:"formSectionHeader"},Rwe={class:"accessTierOptions"},Mwe=["onClick"],$we={key:0,class:"priceLine"},zwe=["placeholder"],Hwe={class:"priceUnit"},Uwe={class:"formSection moreSettingsSection"},Vwe={class:"formSectionHeader"},Wwe={class:"checkGrid"},Gwe={class:"checkItem"},qwe={class:"checkItem"},Kwe={class:"checkItem"},Ywe={class:"checkItem"},$P=1,zP=2,Xwe=Ln({__name:"UploadForm",props:{form:{},showAccessTier:{type:Boolean,default:!1},showMemberExclusive:{type:Boolean,default:!1},showCircles:{type:Boolean,default:!0},showDescription:{type:Boolean,default:!0}},emits:["form-update"],setup(e,{emit:t}){const r=e,n=t,o=bs(r.form);o.access_tier==null&&(o.access_tier=0),o.price==null&&(o.price=0),o.list_in_shop==null&&(o.list_in_shop=!1),o.circle_ids||(o.circle_ids=[]),o.user_tags||(o.user_tags=[]);const i=_t(()=>o.access_tier===zP?"member":o.access_tier===$P?"paid":o.list_in_shop?"free_share":"work"),a=_t(()=>r.showMemberExclusive?[{mode:"work",label:A.getText("creator","accessFree")},{mode:"paid",label:A.getText("creator","accessPaid")},{mode:"member",label:A.getText("creator","accessMemberExclusive")}]:[{mode:"work",label:A.getText("creator","accessWorkOnly")},{mode:"free_share",label:A.getText("creator","accessFreeShare")},{mode:"paid",label:A.getText("creator","accessPaid")}]);function u(d){d==="work"?(o.access_tier=0,o.list_in_shop=!1,o.price=0):d==="free_share"?(o.access_tier=0,o.list_in_shop=!0,o.price=0):d==="paid"?(o.access_tier=$P,o.list_in_shop=!0):(o.access_tier=zP,o.list_in_shop=!1,o.price=0)}const s=we(""),l=(d,p)=>{o.thumbnail_url=Gn(p.key||"",p.url),o.cover_asset_id=p.asset_ids?.[0]??null,s.value=d?.name||"",ar(A.getText("creator","coverSelectedWithName",{name:d?.name||""}))},c=(d,p)=>{Dt(A.getText("creator","coverUploadFailed",{message:p.message||A.getText("common","unknownError")}))};ec(()=>o.thumbnail_url,d=>{if(!d)s.value="",o.cover_asset_id=null;else if(!s.value){const p=d.split("/").pop()?.split("?")[0]||"";s.value=decodeURIComponent(p)}}),ec(o,d=>{n("form-update",{...r.form,...d})},{deep:!0});const f=we([]);return Fo(async()=>{const d=await FH();f.value=[{name:A.getText("creator","pleaseSelectTag"),tag_type:"",id:0,weight:0},...d.map(p=>({name:p.name,tag_type:p.tag_type||"",id:p.id,weight:p.weight??0}))]}),(d,p)=>(oe(),ue("div",dwe,[T("div",pwe,[T("div",hwe,[T("div",null,[T("h4",null,re(R(A).getText("creator","coverSettings")),1),T("span",null,re(R(A).getText("creator","coverHint16x9")),1)])]),T("div",gwe,[T("div",null,[Ze($o,{"path-prefix":"covers/","show-file-list":!1,"auto-upload":!0,accept:"image/*","max-size":10,onSuccess:l,onError:c},{default:jr(()=>[T("div",vwe,[o.thumbnail_url?(oe(),ue("b",ywe,re(R(A).getText("creator","coverSelected")),1)):(oe(),ue("b",mwe,"+ "+re(R(A).getText("creator","uploadCover")),1)),T("small",null,re(R(A).getText("creator","recommended1920x1080")),1)])]),_:1}),T("div",bwe,[T("span",null,re(s.value||R(A).getText("creator","noCoverSelected")),1),T("span",null,re(R(A).getText("creator","recommended1920x1080")),1)])]),T("div",{class:"coverPreviewBox","aria-label":R(A).getText("creator","coverPreview")},[T("div",Ewe,[o.thumbnail_url?(oe(),ue("img",{key:0,src:o.thumbnail_url,alt:
141R(A).getText("creator","coverPreview")},null,8,xwe)):(oe(),ue("span",Swe,re(R(A).getText("creator","coverPreview")),1))])],8,wwe)])]),T("div",Cwe,[T("div",Dwe,[T("div",null,[T("h4",null,re(R(A).getText("creator","basicInfo")),1),T("span",null,re(R(A).getText("creator","basicInfoHint")),1)])]),T("div",_we,[T("div",Awe,[T("label",null,re(R(A).getText("creator","workTitle")),1),da(T("input",{class:"input","onUpdate:modelValue":p[0]||(p[0]=v=>o.title=v),placeholder:R(A).getText("creator","workTitle"),maxlength:"80"},null,8,kwe),[[fv,o.title]])])]),e.showDescription?(oe(),ue("div",Owe,[T("label",null,re(R(A).getText("creator","workDescriptionLabel")),1),da(T("textarea",{class:"textarea","onUpdate:modelValue":p[1]||(p[1]=v=>o.description=v),placeholder:R(A).getText("creator","workDescription"),maxlength:"1000",rows:"4"},null,8,Twe),[[fv,o.description]])])):lr("",!0),T("div",Fwe,[T("div",Bwe,[T("b",null,re(R(A).getText("creator","userTagsLabel")),1),p[9]||(p[9]=zt(" >",-1)),T("span",null,re(R(A).getText("creator","userTagsHint")),1)]),Ze(J2e,{modelValue:o.user_tags,"onUpdate:modelValue":p[2]||(p[2]=v=>o.user_tags=v),placeholder:R(A).getText("creator","enterTagAndPressEnter")},null,8,["modelValue","placeholder"])])]),e.showCircles?(oe(),ue("div",Pwe,[T("div",jwe,[T("h3",Nwe,re(R(A).getText("creator","selectCircles")),1)]),Ze(fwe,{modelValue:o.circle_ids,"onUpdate:modelValue":p[3]||(p[3]=v=>o.circle_ids=v)},null,8,["modelValue"])])):lr("",!0),e.showAccessTier?(oe(),ue("div",Iwe,[T("div",Lwe,[T("div",null,[T("h4",null,re(R(A).getText("creator","accessSettings")),1),T("span",null,re(R(A).getText("creator","accessSettingsHint")),1)])]),T("div",Rwe,[(oe(!0),ue(ct,null,Pi(a.value,v=>(oe(),ue("button",{key:v.mode,type:"button",class:ya(["accessTierBtn",{active:i.value===v.mode}]),onClick:m=>u(v.mode)},re(v.label),11,Mwe))),128))]),i.value==="paid"?(oe(),ue("div",$we,[da(T("input",{class:"input priceInput","onUpdate:modelValue":p[4]||(p[4]=v=>o.price=v),type:"number",min:1,step:1,placeholder:R(A).getText("creator","price")},null,8,zwe),[[fv,o.price,void 0,{number:!0}]]),T("span",Hwe,re(R(A).getText("post","tokenUnit")),1)])):lr("",!0)])):lr("",!0),T("div",Uwe,[T("div",Vwe,[T("div",null,[T("h4",null,re(R(A).getText("creator","moreSettings")),1),T("span",null,re(R(A).getText("creator","moreSettingsHint")),1)])]),T("div",Wwe,[T("label",Gwe,[da(T("input",{type:"checkbox","onUpdate:modelValue":p[5]||(p[5]=v=>o.is_ai=v)},null,512),[[rg,o.is_ai]]),T("span",null,re(R(A).getText("creator","containsAiContent")),1)]),T("label",qwe,[da(T("input",{type:"checkbox","onUpdate:modelValue":p[6]||(p[6]=v=>o.is_uncomfortable=v)},null,512),[[rg,o.is_uncomfortable]]),T("span",null,re(R(A).getText("creator","containsSensitiveContent")),1)]),T("label",Kwe,[da(T("input",{type:"checkbox","onUpdate:modelValue":p[7]||(p[7]=v=>o.is_download=v)},null,512),[[rg,o.is_download]]),T("span",null,re(R(A).getText("creator","allowSourceDownload")),1)]),T("label",Ywe,[da(T("input",{type:"checkbox","onUpdate:modelValue":p[8]||(p[8]=v=>o.is_student_accessible=v)},null,512),[[rg,o.is_student_accessible]]),T("span",null,re(R(A).getText("creator","studentAcce
141ssible")),1)])])])]))}}),Yh=si(Xwe,[["__scopeId","data-v-e3146225"]]),$4="uploadModel",z4="__wangEditorMenuRegistry__";class Jwe{tag="button";title=A.getText("creator","uploadModel");iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"></path><path d="M512 336m-48 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0Z"></path><path d="M512 736c-79.5 0-144-64.5-144-144h-48c0 106 86 192 192 192s192-86 192-192h-48c0 79.5-64.5 144-144 144z"></path></svg>';getValue(t){return""}isActive(t){return!1}isDisabled(t){return!1}exec(t,r){qP(A.getText("creator","uploadModelDeveloping"))}}function Zwe(){const e=globalThis;return e[z4]||(e[z4]=new Set),e[z4]}function Qwe(){const e=Zwe();e.has($4)||(gr.registerMenu({key:$4,factory(){return new Jwe}}),e.add($4))}const e4e={class:"upload-pane",id:"pane-article"},t4e={class:"formSection sourceChapterSection sourceOnlySection"},r4e={class:"formSectionHeader"},n4e=["aria-label"],o4e=Ln({__name:"UploadArticleView",setup(e,{expose:t}){Qwe();const{editingPostId:r,isEditing:n,submitting:o,savingDraft:i}=Gh(),a=we(""),u=we(new Map),s=UP(),l=we(!0),c=bs({title:"",description:"",htmlContent:"",thumbnail_url:"",systemTags:[],userTags:[],asset_ids:[],contentType:"",publishNow:!0,publishTime:"",isFree:!0,isPaid:!1,payMethod:"coin",price:"0",is_ai:!1,is_uncomfortable:!1,is_download:!1,circle_ids:[]}),f=bs({title:"",description:"",thumbnail_url:"",access_tier:0,list_in_shop:!1,price:0,circle_ids:[],is_published:!0,weight:0,system_tags:[],user_tags:[],content:"",asset_ids:[],upload_type:3,is_ai:!1,is_uncomfortable:!1,is_download:!1,is_student_accessible:!1}),d=we("");function p(){const I=h(c.htmlContent).replace(/\r\n/g,` 142`).trim();return{title:(f.title||c.title||"").trim(),description:(c.description||"").trim(),thumbnail_url:(f.thumbnail_url||c.thumbnail_url||"").trim(),markdownContent:I}}function v(){d.value=JSON.stringify(p())}const m=_t(()=>JSON.stringify(p())!==d.value);qh(m);function g(I){c.title=I.title||c.title,c.description=I.description||c.description,c.thumbnail_url=I.thumbnail_url||c.thumbnail_url,c.is_ai=!!I.is_ai,c.is_uncomfortable=!!I.is_uncomfortable,c.is_download=!!I.is_download,I.user_tags&&(c.userTags=[...I.user_tags]),I.system_tags&&(c.systemTags=[...I.system_tags]),I.access_tier!=null&&(c.isPaid=I.access_tier===1),I.price!=null&&(c.price=String(I.price)),I.circle_ids&&(c.circle_ids=[...I.circle_ids]),w()}const y=new oy({headingStyle:"atx",codeBlockStyle:"fenced",bulletListMarker:"-"});y.addRule("image",{filter:"img",replacement:(I,ne)=>{const ae=ne,be=ae.getAttribute("src")??"";return` 143 144`}}),y.addRule("video",{filter:"video",replacement:(I,ne)=>{const ae=ne,be=ae.getAttribute("src")??ae.querySelector("source")?.getAttribute("src")??"";return` 145@video[${ae.getAttribute("data-title")??A.getText("creator","tabShortVideo")}](${be}) 146`}});function h(I){return!I||I==="<p><br></p>"?"":IH(y.turndown(I).trim())}function b(I,ne){const ae=kH(I);ae&&u.value.set(ae,String(ne))}function w(){const I=iy(h(c.htmlContent)),ne=new Set;for(const ae of[...I.imageUrls,...I.videoUrls]){const be=Dn(ae,u.value);be&&ne.add(be)}f.cover_asset_id!=null&&ne.add(String(f.cover_asset_id)),c.asset_ids=[...ne]}let E=null;function C(){E&&clearTimeout(E),!(!s.value||!c.htmlContent||c.htmlContent==="<p><br></p>")&&(E=setTimeout(()=>{E=null,s.value&&c.htmlContent&&c.htmlContent!=="<p><br></p>"&&w()},300))}function S(I){return I?s.value?.getText()?.trim()?!1:I.replace(/<[^>]*>/g,"").replace(/ /gi," ").replace(/\s+/g," ").trim().length===0:!0}const k={toolbarKeys:["headerSelect","|","bold","italic","code","|","bulletedList","numberedList","blockquote","codeBlock","divider","|","emotion","insertLink",{key:"group-image",title:A.getText("creator","image"),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>',menuKeys:["insertImage","uploadImage"]}
146,{key:"group-video",title:A.getText("creator","tabShortVideo"),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"]},"|","undo","redo"]},P="manta-1343279720",G="ap-guangzhou",J=async()=>{const I=await OH();return new TH({getAuthorization:(ne,ae)=>{ae({TmpSecretId:I.TmpSecretId,TmpSecretKey:I.TmpSecretKey,SecurityToken:I.Token,ExpiredTime:I.ExpiredTime,StartTime:Math.floor(Date.now()/1e3)})}})},M=async(I,ne)=>{const ae=I.name.includes(".")?I.name.slice(I.name.lastIndexOf(".")):"",be=`${ne}/${Date.now().toString(36)}_${Math.random().toString(36).slice(2,10)}${ae}`,K=await J();return await new Promise((ze,je)=>{K.putObject({Bucket:P,Region:G,Key:be,Body:I,ContentType:I.type||"application/octet-stream",ACL:"public-read"},(Ee,_e)=>{Ee?je(Ee):ze(_e)})}),Gn(be,`https://${P}.cos.${G}.myqcloud.com/${be}`)},X=we(!1);function $(){setTimeout(()=>{X.value=!1},50)}function V(I){I.key==="Enter"&&(I.isComposing||I.keyCode===229||X.value)&&I.stopPropagation()}const Q={placeholder:A.getText("creator","articleContent"),MENU_CONF:{uploadImage:{maxFileSize:10*1024*1024,async customUpload(I,ne){try{const ae=await M(I,"article/images");ne(ae,I.name||"image","");const be=await UD([{url:ae,original_filename:I.name,mime_type:I.type,size_bytes:I.size}]);for(const K of be)K.code==200&&K.data?.asset_id&&b(ae,K.data.asset_id);w()}catch{Dt(A.getText("creator","imageUploadFailed"))}}},uploadVideo:{maxFileSize:100*1024*1024,async customUpload(I,ne){try{const ae=await M(I,"article/videos");ne(ae,"");const be=await UD([{url:ae,original_filename:I.name,mime_type:I.type,size_bytes:I.size}]);for(const K of be)K.code==200&&K.data?.asset_id&&b(ae,K.data.asset_id);w()}catch{Dt(A.getText("creator","videoUploadFailedSimple"))}}}}},ie=I=>{s.value=I};function le(){const I=s.value;if(I)try{I.blur(),typeof I.deselect=="function"&&I.deselect()}catch{}}async function q(I){E&&(clearTimeout(E),E=null);const ne=I||"<p><br></p>",ae=s.value;if(le(),s.value=void 0,await cv(),ae)try{ae.destroy()}catch{}l.value=!1,c.htmlContent=ne,await cv(),l.value=!0}function U(){const I=s.value;if(le(),s.value=void 0,!!I)try{I.destroy()}catch{}}const _=()=>{qP(A.getText("creator","typesettingFunctionDeveloping"))};function D(){const I=f.title?.trim()||c.title?.trim(),ne=f.thumbnail_url?.trim()||c.thumbnail_url?.trim();return I?S(c.htmlContent)?A.getText("creator","pleaseFillContent"):ne?null:A.getText("creator","pleaseFillCoverUrl"):A.getText("creator","pleaseFillTitle")}function F(I){return w(),{title:f.title?.trim()||c.title.trim(),description:f.description?.trim()||c.description.trim(),thumbnail_url:f.thumbnail_url?.trim()||c.thumbnail_url.trim(),access_tier:f.access_tier??(c.isPaid?1:0),list_in_shop:!!f.list_in_shop,price:f.price??(c.isPaid&&parseFloat(c.price)||0),is_published:!1,weight:0,system_tags:f.system_tags?.length?f.system_tags:c.systemTags,user_tags:f.user_tags?.length?f.user_tags:c.userTags,content:h(c.htmlContent),upload_type:3,asset_ids:c.asset_ids,is_ai:f.is_ai??c.is_ai,is_uncomfortable:f.is_uncomfortable??c.is_uncomfortable,is_download:f.is_download??c.is_download,circle_ids:c.circle_ids,save_as_draft:I.saveAsDraft,submit_for_review:I.submitForReview}}async function H(I){le();const ne=D();if(ne){C3(ne);return}const ae=I==="draft",be=ae?i:o;be.value=!0;try{const K=F({saveAsDraft:ae,submitForReview:!ae});n.value&&r.value?(await KP(r.value,K),ar(ae?A.getText("creator","draftUpdated"):A.getText("creator","submittedForReview"))):(await YP(K),ar(ae?A.getText("creator","draftSaved"):A.getText("creator","publishSuccess"))),!ae||!n.value?await W():v()}finally{be.value=!1}}async function ee(){if(r.value)try{const I=await eh(r.value);c.title=I.title,c.description=I.description||"",c.thumbnail_url=I.thumbnail_url||"",c.systemTags=I.system_tags?.map(K=>K.name)||[],c.userTags=I.user_tags?.map(K=>K.name)||[],c.is_ai=!!I.is_ai,c.is_uncomfortable=!!I.is_uncomfortable,c.is_download=!!I.is_download;const ne=I.asset_ids||[],be=(await Promise.allSettled(ne.map(K=>th(K)))).flatMap(K=>K.status==="fulfilled"?[K.value]:[]);u.value=Qp(be),f.cover_asset_id=c.thumbnail_url?Dn(c.thumbnail_url,u.value):null,f.cover_asset_id!=null&&c.thumbnail_url&&b(c.thumbnail_url,f.cover_asset_id),await cv(),await q(NH(I.content?.content||"")),w(),Object.assign(f,{title:I.title,de
146scription:I.description||"",thumbnail_url:I.thumbnail_url||"",system_tags:I.system_tags?.map(K=>K.name)||[],user_tags:I.user_tags?.map(K=>K.name)||[],asset_ids:c.asset_ids,access_tier:I.access_tier??0,list_in_shop:!!I.list_in_shop,price:Number(I.price)||0,is_ai:!!I.is_ai,is_uncomfortable:!!I.is_uncomfortable,is_download:!!I.is_download})}catch{Dt(A.getText("creator","loadWorkFailed"))}finally{v()}}Fo(async()=>{await ee(),n.value||v()});async function W(){E&&(clearTimeout(E),E=null),c.title="",c.description="",c.thumbnail_url="",c.systemTags=[],c.userTags=[],c.asset_ids=[],c.price="0",c.isPaid=!1,c.isFree=!0,u.value=new Map,await q(""),f.title="",f.description="",f.thumbnail_url="",f.cover_asset_id=null,f.system_tags=[],f.user_tags=[],f.access_tier=0,f.list_in_shop=!1,f.price=0,f.is_ai=!1,f.is_uncomfortable=!1,f.is_download=!1,f.is_student_accessible=!1,f.content="",v()}return WP(()=>{E&&clearTimeout(E),U()}),t({form:c}),(I,ne)=>(oe(),ue("div",e4e,[T("div",t4e,[T("div",r4e,[T("div",null,[T("h4",null,re(R(A).getText("creator","articleEditor")),1),T("span",null,re(R(A).getText("creator","articleEditorHint")),1)]),T("button",{class:"lineAddBtn",type:"button",onClick:_},re(R(A).getText("creator","oneClickTypesetting")),1)]),T("div",{class:"articleToolbar","aria-label":R(A).getText("creator","ariaArticleToolbar")},[s.value?(oe(),tc(R(t2e),{key:0,editor:s.value,defaultConfig:k,mode:"default"},null,8,["editor"])):lr("",!0)],8,n4e),T("div",{class:"articleEditor",onCompositionstart:ne[1]||(ne[1]=ae=>X.value=!0),onCompositionend:$,onKeydownCapture:V},[l.value?(oe(),tc(R(Jbe),{key:0,modelValue:c.htmlContent,"onUpdate:modelValue":ne[0]||(ne[0]=ae=>c.htmlContent=ae),defaultConfig:Q,mode:"default",onOnCreated:ie,onOnChange:C},null,8,["modelValue"])):lr("",!0)],32)]),Ze(Yh,{form:f,"show-access-tier":"","show-description":!1,onFormUpdate:g},null,8,["form"]),Ze(Kh,{submitting:R(o),"saving-draft":R(i),"is-editing":R(n),"reject-remark":a.value,onSubmit:ne[2]||(ne[2]=ae=>H("submit")),onSaveDraft:ne[3]||(ne[3]=ae=>H("draft"))},null,8,["submitting","saving-draft","is-editing","reject-remark"])]))}}),i4e=si(o4e,[["__scopeId","data-v-71e70f03"]]),a4e={class:"course-upload-container"},u4e={class:"intro-block"},s4e={class:"section-title"},l4e={class:"chapters-block"},c4e={class:"section-header row-between"},f4e={class:"section-title"},d4e={class:"chapter-head row-between"},p4e={class:"chapter-label"},h4e=["onClick"],g4e={class:"lessons-wrap"},v4e={class:"lesson-head row-between"},m4e={class:"lesson-label"},y4e=["onClick"],b4e={class:"video-row"},w4e={class:"video-slot"},E4e=["src","onLoadedmetadata"],x4e={key:0,class:"lesson-progress"},S4e=["onClick"],C4e=["onClick"],D4e=Ln({__name:"UploadCourseView",setup(e,{expose:t}){const{editingPostId:r,isEditing:n,submitting:o,savingDraft:i}=Gh(),a=we("");function u(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`id-${Date.now()}-${Math.random().toString(36).slice(2)}`}function s(){return{localId:u(),title:"",description:"",content_url:"",assetId:void 0,is_preview:!0,uploading:!1,uploadProgress:0,durationSec:null}}function l(){return{localId:u(),title:"",lessons:[s()]}}const c=we(""),f=we([l()]),d=bs({title:"",description:"",thumbnail_url:"",access_tier:0,list_in_shop:!1,price:0,is_published:!0,weight:0,system_tags:[],user_tags:[],content:"",circle_ids:[],asset_ids:[],cover_asset_id:null,upload_type:0,publishNow:!0,publishTime:"",is_ai:!1,is_uncomfortable:!1,is_download:!1,is_student_accessible:!1,contentType:""}),p=we("");function v(){p.value=JSON.stringify({title:d.title,description:d.description,thumbnail_url:d.thumbnail_url,content:d.content})}const m=_t(()=>JSON.stringify({title:d.title,description:d.description,thumbnail_url:d.thumbnail_url,content:d.content})!==p.value);qh(m);function g(){f.value.push(l())}function y(q){f.value.length<=1||f.value.splice(q,1)}function h(q){const U=f.value[q];U&&U.lessons.push(s())}function b(q,U){const _=f.value[q];!_||_.lessons.length<=1||_.lessons.splice(U,1)}function w(q){const U=q.asset_ids;if(Array.isArray(U)&&U.length>0)return String(U[0]);if(U!=null&&U!=="")return String(U)}function E(q){const U=q.key,_=q.url;return Gn(U||"",_)}function C(q,U){const _=f.value[q]?.lessons[U];_&&(_.uploading=!0,_.uploadProgress=0)}function S(q,U,_){const D=f.value[q]?.lessons[U];D&&(D.uploadProgress=_)}function k(q,U,_,D){const F=f.value[q]?.lessons[U];F&&(F.content_url=E(D),F.assetId=w(D),F.uploading=!1,F.uploadProgress=0,ar(A.getText("creator","lessonVideoUploaded")))}function P(q,U,_){const D=f.value[q]?.lessons[U];D&&(D.uploading=!1,D.uploadProgress=0,Dt(_?.message||A.getText("creator","videoUploadFailedSimple")))}function G(q,U,_){const D=_.target,F=f.value[q]?.lessons[U];F&&D?.duration&&Number.isFinite(D.duration)&&(F.durationSec=D.duration)}function J(q,U){const _=f.value[q]?.lessons[U];_&&(_.content_url="",_.assetId=void 0,_.durationSec=null)}function M(q){const U=Math.max(0,Math.floor(q)),_=Math.floor(U/3600),D=Math.floor(U%3600/60),F=U%60;return`${String(_).padStart(2,"0")}
146:${String(D).padStart(2,"0")}:${String(F).padStart(2,"0")}`}function X(){if(!d.title?.trim())return A.getText("creator","pleaseFillWorkTitle");if(!d.thumbnail_url?.trim()&&!d.thumbnail_url?.trim())return A.getText("creator","pleaseFillCoverUrl");for(const q of f.value){if(!q.title.trim())return A.getText("creator","pleaseFillChapterTitle");for(const U of q.lessons){if(!U.title.trim())return A.getText("creator","pleaseFillLessonTitle");if(!U.content_url?.trim())return A.getText("creator","pleaseUploadAllLessonVideos")}}return d.access_tier===1&&(!d.price||Number(d.price)<=0)?A.getText("creator","pleaseSetPrice"):null}function $(q){const U=d.thumbnail_url||d.thumbnail_url,_=f.value.map((F,H)=>{const ee=F.lessons.map((W,I)=>{const ne={title:W.title.trim(),description:W.description?.trim()||"",content_type:"video",content_url:W.content_url,is_preview:W.is_preview,index:I,metadata:{thumbnail:U}};return W.durationSec!=null&&W.durationSec>0&&(ne.video_duration=M(W.durationSec)),W.assetId&&(ne.asset_id=W.assetId),ne});return{title:F.title.trim(),index:H,lessons:ee}}),D=new Set;for(const F of f.value)for(const H of F.lessons)H.assetId&&D.add(H.assetId);d.cover_asset_id!=null&&D.add(String(d.cover_asset_id));for(const F of d.asset_ids??[])D.add(String(F));return{title:d.title.trim(),description:d.description?.trim()||void 0,thumbnail_url:U,access_tier:d.access_tier??0,list_in_shop:!!d.list_in_shop,price:Number(d.price)||0,upload_type:0,weight:d.weight??0,content:c.value?.trim()||void 0,chapters:_,asset_ids:D.size>0?[...D]:void 0,is_ai:!!d.is_ai,is_uncomfortable:!!d.is_uncomfortable,is_download:!!d.is_download,is_student_accessible:!!d.is_student_accessible,user_tags:d.user_tags?.length?[...d.user_tags]:void 0,system_tags:d.system_tags?.length?[...d.system_tags]:void 0,save_as_draft:q.saveAsDraft,submit_for_review:q.submitForReview}}async function V(q){const U=X();if(U){C3(U);return}const _=q==="draft",D=_?i:o;D.value=!0;try{const F=$({saveAsDraft:_,submitForReview:!_});n.value&&r.value?(await BH(r.value,F),ar(_?A.getText("creator","draftUpdated"):A.getText("creator","submittedForReview"))):(await PH(F),ar(_?A.getText("creator","draftSaved"):A.getText("creator","courseCreatedSuccess"))),!_||!n.value?le():v()}catch(F){const H=F instanceof Error?F.message:String(F);Dt(H||A.getText("creator","requestFailed"))}finally{D.value=!1}}function Q(q){if(!q?.length){f.value=[l()];return}f.value=q.map(U=>({localId:u(),title:U.title,lessons:(U.lessons||[]).map(_=>({localId:u(),title:_.title,description:_.description||"",content_url:_.asset?.file_url||"",assetId:_.asset?.id,is_preview:_.is_preview,uploading:!1,uploadProgress:0,durationSec:typeof _.video_duration=="number"?_.video_duration:null}))}))}async function ie(){if(r.value)try{const[q,U]=await Promise.all([eh(r.value),jH({id:r.value})]);d.title=q.title,d.description=q.description||"",d.thumbnail_url=q.thumbnail_url||"",d.thumbnail_url=q.thumbnail_url||"",d.access_tier=q.access_tier,d.list_in_shop=!!q.list_in_shop,d.price=Number(q.price)||0,d.system_tags=q.system_tags?.map(ee=>ee.name)||[],d.user_tags=q.user_tags?.map(ee=>ee.name)||[],d.is_ai=!!q.is_ai,d.is_uncomfortable=!!q.is_uncomfortable,d.is_download=!!q.is_download,d.is_student_accessible=!!q.is_student_accessible,c.value=q.content?.content||"",Q(Array.isArray(U)?U:[]);const _=q.asset_ids||[],F=(await Promise.allSettled(_.map(ee=>th(ee)))).flatMap(ee=>ee.status==="fulfilled"?[ee.value]:[]),H=Qp(F);d.cover_asset_id=d.thumbnail_url?Dn(d.thumbnail_url,H):null}catch{Dt(A.getText("creator","loadCourseFailed"))}finally{v()}}Fo(async()=>{await ie(),n.value||v()});function le(){d.thumbnail_url="",c.value="",f.value=[l()],d.title="",d.description="",d.thumbnail_url="",d.access_tier=0,d.list_in_shop=!1,d.price=0,d.is_published=!0,d.weight=0,d.system_tags=[],d.user_tags=[],d.content="",d.upload_type=0,d.asset_ids=[],d.cover_asset_id=null,d.publishNow=!0,d.publishTime="",d.is_ai=!1,d.is_uncomfortable=!1,d.is_download=!1,d.is_student_accessible=!1,d.contentType="",v()}return t({form:d}),(q,U)=>{const _=GP,D=$H,F=MH;return oe(),ue("div",a4e,[Ze(Yh,{form:d,"show-access-tier":"","show-member-exclusive":"","show-circles":!1},null,8,["form"]),T("div",u4e,[T("h3",s4e,re(R(A).getText("creator","courseIntroContent")),1),Ze(_,{modelValue:c.value,"onUpdate:modelValue":U[0]||(U[0]=H=>c.value=H),type:"textarea",rows:5,maxlength:"20000","show-word-limit":"",class:"intro-input"},null,8,["modelValue"])]),T("div",l4e,[T("div",c4e,[T("h3",f4e,re(R(A).getText("creator","chaptersAndLessons")),1),T("button",{type:"button",class:"ghost-btn",onClick:g}," + "+re(R(A).getText("creator","addChapter")),1)]),(oe(!0),ue(ct,null,Pi(f.value,(H,ee)=>(oe(),ue("div",{key:H.localId,class:"chapter-card"},[T("div",d4e,[T("span",p4e,re(R(A).getText("creator","chapterTitle"))+" "+re(ee+1),1),f.value.length>
1461?(oe(),ue("button",{key:0,type:"button",class:"link-danger",onClick:W=>y(ee)},re(R(A).getText("creator","removeChapter")),9,h4e)):lr("",!0)]),Ze(_,{modelValue:H.title,"onUpdate:modelValue":W=>H.title=W,placeholder:R(A).getText("creator","chapterTitle"),maxlength:"255",class:"chapter-title-input"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),T("div",g4e,[(oe(!0),ue(ct,null,Pi(H.lessons,(W,I)=>(oe(),ue("div",{key:W.localId,class:"lesson-card"},[T("div",v4e,[T("span",m4e,re(R(A).getText("creator","lessonTitle"))+" "+re(I+1),1),H.lessons.length>1?(oe(),ue("button",{key:0,type:"button",class:"link-danger",onClick:ne=>b(ee,I)},re(R(A).getText("creator","removeLesson")),9,y4e)):lr("",!0)]),Ze(_,{modelValue:W.title,"onUpdate:modelValue":ne=>W.title=ne,placeholder:R(A).getText("creator","lessonTitle"),maxlength:"255",class:"mb-12"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),Ze(_,{modelValue:W.description,"onUpdate:modelValue":ne=>W.description=ne,type:"textarea",rows:2,placeholder:R(A).getText("creator","lessonDescription"),maxlength:"2000","show-word-limit":"",class:"mb-12"},null,8,["modelValue","onUpdate:modelValue","placeholder"]),Ze(D,{modelValue:W.is_preview,"onUpdate:modelValue":ne=>W.is_preview=ne,class:"mb-12"},{default:jr(()=>[zt(re(R(A).getText("creator","lessonPreview")),1)]),_:1},8,["modelValue","onUpdate:modelValue"]),T("div",b4e,[Ze($o,{"path-prefix":"videos/","show-file-list":!1,"auto-upload":!0,accept:"video/*","max-size":1024*10,onSuccess:(ne,ae)=>k(ee,I,ne,ae),onError:(ne,ae)=>P(ee,I,ae),onProgress:(ne,ae)=>S(ee,I,ae),onStart:()=>C(ee,I)},{default:jr(()=>[T("div",w4e,[W.content_url?(oe(),ue("video",{key:1,src:W.content_url,controls:"",class:"lesson-video",onLoadedmetadata:ne=>G(ee,I,ne)},null,40,E4e)):(oe(),ue(ct,{key:0},[U[3]||(U[3]=T("div",{class:"add-icon"},"+",-1)),T("span",null,re(R(A).getText("creator","selectLessonVideo")),1)],64))])]),_:2},1032,["onSuccess","onError","onProgress","onStart"]),W.uploading?(oe(),ue("div",x4e,[Ze(F,{percentage:W.uploadProgress},null,8,["percentage"])])):lr("",!0),W.content_url?(oe(),ue("button",{key:1,type:"button",class:"delete-btn",onClick:ne=>J(ee,I)}," Ã ",8,S4e)):lr("",!0)])]))),128)),T("button",{type:"button",class:"ghost-btn full-width",onClick:W=>h(ee)}," + "+re(R(A).getText("creator","addLesson")),9,C4e)])]))),128))]),Ze(Kh,{submitting:R(o),"saving-draft":R(i),"is-editing":R(n),"reject-remark":a.value,"submit-label":R(n)?R(A).getText("creator","resubmitReview"):R(A).getText("creator","confirmCreateCourse"),onSubmit:U[1]||(U[1]=H=>V("submit")),onSaveDraft:U[2]||(U[2]=H=>V("draft"))},null,8,["submitting","saving-draft","is-editing","reject-remark","submit-label"])])}}}),_4e=si(D4e,[["__scopeId","data-v-37c976ff"]]),A4e={class:"file-upload-container"},k4e={key:0,class:"file-type-bar"},O4e={class:"upload"},T4e={class:"upload-section"},F4e={class:"upload-row"},B4e={class:"upload-item"},P4e={class:"formSectionHeader"},j4e={class:"dropZone"},N4e={class:"fileName progressRow"},I4e={key:0,class:"fakeProgress"},L4e={key:1},R4e={class:"upload-section"},M4e={class:"upload-row"},$4e={class:"upload-item"},z4e={class:"formSectionHeader"},H4e={class:"dropZone"},U4e={class:"fileName progressRow"},V4e={key:0,class:"fakeProgress"},W4e={key:1},G4e={class:"upload-section"},q4e={class:"upload-row"},K4e={class:"upload-item"},Y4e={class:"formSectionHeader"},X4e=["src"],J4e={key:1,class:"dropZone"},Z4e={class:"fileName progressRow"},Q4e={key:0,class:"fakeProgress"},eEe={key:1},tEe={class:"upload-section"},rEe={class:"upload-row"},nEe={class:"upload-item"},oEe={class:"formSectionHeader"},iEe={class:"dropZone"},aEe={class:"fileName progressRow"},uEe={key:0,class:"fakeProgress"},sEe={key:1},lEe={class:"upload-section"},cEe={class:"upload-row"},fEe={class:"upload-item"},dEe={class:"formSectionHeader"},pEe={class:"dropZone"},hEe={class:"fileName progressRow"},gEe={key:0,class:"fakeProgress"},vEe={key:1},mEe={class:"upload-section showcase-section"},yEe={class:"formSectionHeader"},bEe={class:"dropZone"},wEe={class:"fileName progressRow"},EEe={key:0,class:"fakeProgress"},xEe={key:1},SEe={key:1,class:"imageGrid"},CEe=["onDragstart","onDrop"],DEe=["src"],_Ee={key:1,class:"image-placeholder"},AEe=["onClick"],kEe={class:"sort-info"},HP=9,OEe=Ln({__name:"UploadFileView",setup(e,{expose:t}){const{editingPostId:r,isEditing:n,submitting:o,savingDraft:i,submitPost:a,saveDraft:u}=Gh(),s=we(""),l=we("model"),c=bs({title:"",description:"",thumbnail_url:"",access_tier:0,list_in_shop:!1,price:0,is_published:!0,weight:0,system_tags:[],user_tags:[],content:"",circle_ids:[],upload_type:1,is_download:!0,is_ai:!1,is_uncomfortable:!1,is_student_accessible:!1,asset_ids:[],cover_asset_id:null}),f=we("");
146function d(){f.value=JSON.stringify({title:c.title,description:c.description,thumbnail_url:c.thumbnail_url,content:c.content,asset_ids:c.asset_ids,showcaseImages:m.value,workflowVideoAssetId:q.value,workflowJsonAssetId:H.value})}const p=_t(()=>JSON.stringify({title:c.title,description:c.description,thumbnail_url:c.thumbnail_url,content:c.content,asset_ids:c.asset_ids,showcaseImages:m.value,workflowVideoAssetId:q.value,workflowJsonAssetId:H.value})!==f.value);qh(p);const v=we(null),m=we([]),g=_t(()=>m.value.length===0?"":m.value.map(se=>se.name||se.url?.split("/").pop()||"").filter(Boolean).join("ã")),y=we(!1),h=we(0),b=we(""),w=we(null),E=we(""),C=we(!1),S=we(0),k=we(""),P=we(null),G=we(""),J=we(!1),M=we(0),X=we(""),$=we(null),V=we(""),Q=we(!1),ie=we(0),le=we(""),q=we(null),U=we(""),_=we(!1),D=we(0),F=we(""),H=we(null),ee=we(""),W=_t(()=>l.value==="material"),I=_t(()=>A.getText("creator",W.value?"fileTypeMaterialNodePackage":"fileTypePlugin")),ne=_t(()=>A.getText("creator","selectKindFile",{kind:I.value})),ae=_t(()=>W.value?"material_nodes/":"plugins/"),be=_t(()=>W.value?".blend,.zip":".zip"),K=_t(()=>A.getText("creator",W.value?"pluginFileHintBlendZip":"pluginFileHintZip")),ze=()=>{const se=[{assetId:w.value,url:E.value,name:b.value},{assetId:P.value,url:G.value,name:k.value}].filter(Oe=>Oe.assetId&&Oe.url),de=se.map(Oe=>Oe.assetId);c.asset_ids=Td(de,[c.cover_asset_id]),c.content=se.map(Oe=>Lu(Oe.url,Ru.model,Oe.name||"")).join(` 147`)},je=()=>{const se=[],de=[];$.value&&V.value&&(se.push(Lu(V.value,Ru.model,X.value||"")),de.push($.value)),m.value.forEach(Oe=>{Oe.url&&se.push(Lu(Oe.url,Ru.image,"")),Oe.assetId&&de.push(Oe.assetId)}),c.content=se.join(","),c.asset_ids=Td(de,[c.cover_asset_id]),!c.cover_asset_id&&!c.thumbnail_url&&m.value[0]?.url&&(c.thumbnail_url=m.value[0].url)},Ee=()=>{const se=[],de=[];q.value&&U.value&&(se.push(Lu(U.value,Ru.video,le.value||"")),de.push(q.value)),H.value&&ee.value&&(se.push(Lu(ee.value,Ru.model,F.value||"")),de.push(H.value)),c.content=se.join(","),c.asset_ids=Td(de,[c.cover_asset_id])},_e=()=>{l.value==="model"?ze():l.value==="workflow"?Ee():je()},Ft=()=>{w.value=null,E.value="",b.value="",y.value=!1,h.value=0,P.value=null,G.value="",k.value="",C.value=!1,S.value=0},Ke=()=>{$.value=null,V.value="",X.value="",J.value=!1,M.value=0,m.value=[]},st=()=>{q.value=null,U.value="",le.value="",Q.value=!1,ie.value=0,H.value=null,ee.value="",F.value="",_.value=!1,D.value=0},pt=se=>{l.value!==se&&(l.value=se,c.content="",c.asset_ids=[],Ft(),Ke(),st())},Er=se=>{y.value=!0,b.value=se.name},Ye=(se,de)=>{h.value=de},Rr=(se,de)=>{try{w.value=de.asset_ids?.[0]??null,E.value=Gn(de.key||"",de.url),b.value=se.name||b.value,_e(),ar(A.getText("creator","previewFileUploadSuccess"))}catch(Oe){const Ct=Oe instanceof Error?Oe.message:A.getText("common","unknownError");Dt(A.getText("creator","previewFileProcessFailed",{message:Ct}))}finally{y.value=!1,h.value=0}},mn=(se,de)=>{y.value=!1,h.value=0,Dt(A.getText("creator","previewFileUploadFailed",{message:de.message||A.getText("common","unknownError")}))},$n=()=>{w.value=null,E.value="",b.value="",h.value=0,y.value=!1,_e()},Ui=se=>{C.value=!0,k.value=se.name},di=(se,de)=>{S.value=de},yn=(se,de)=>{try{P.value=de.asset_ids?.[0]??null,G.value=Gn(de.key||"",de.url),k.value=se.name||k.value,_e(),ar(A.getText("creator","downloadFileUploadSuccess"))}catch(Oe){const Ct=Oe instanceof Error?Oe.message:A.getText("common","unknownError");Dt(A.getText("creator","downloadFileProcessFailed",{message:Ct}))}finally{C.value=!1,S.value=0}},zn=(se,de)=>{C.value=!1,S.value=0,Dt(A.getText("creator","downloadFileUploadFailed",{message:de.message||A.getText("common","unknownError")}))},co=()=>{P.value=null,G.value="",k.value="",S.value=0,C.value=!1,_e()},xr=se=>{J.value=!0,X.value=se.name},Sr=(se,de)=>{M.value=de},Cr=(se,de)=>{try{$.value=de.asset_ids?.[0]??null,V.value=Gn(de.key||"",de.url),X.value=se.name||X.value,_e(),ar(A.getText("creator","kindFileUploadSuccess",{kind:I.value}))}catch(Oe){const Ct=Oe instanceof Error?Oe.message:A.getText("common","unknownError");Dt(A.getText("creator","pluginFileProcessFailed",{message:Ct}))}finally{J.value=!1,M.value=0}},Br=(se,de)=>{J.value=!1,M.value=0,Dt(A.getText("creator","kindFileUploadFailed",{kind:I.value,message:de.message||A.getText("common","unknownError")}))},rr=()=>{$.value=null,V.value="",X.value="",M.value=0,J.value=!1,_e()},rn=se=>{Q.value=!0,le.value=se.name},du=(se,de)=>{ie.value=de},Po=(se,de)=>{try{q.value=de.asset_ids?.[0]??null,U.value=Gn(de.key||"",de.url),le.value=se.name||le.value,_e(),ar(A.getText("creator","workflowVideoUploadSuccess"))}catch(Oe){const Ct=Oe instanceof Error?Oe.message:A.getText("common","unknownError");Dt(A.getText("creator","workflowVideoProcessFailed",{message:Ct}))}finally{Q.value=!1,ie.value=0}},fo=(se,de)=>{Q.value=!1,ie.value=0,Dt(A.getText("creator","workflowVideoUploadFailed",{message:de.message||A.getText("common","unknownError")}))},Vi=()=>{q.value=null,U.value="",le.value="",ie.value=0,Q.value=!1,_e()},pi=se=>{_.value=!0,F.value=se.name},Wi=(se,de)=>{D.value=de},bn=(se,de)=>{try{H.value=de.asset_ids?.[0]??null,ee.value=Gn(de.key||"",de.url),F.value=se.name||F.value,_e(),ar(A.getText("creator","workflowJsonUploadSuccess"))}catch(Oe){const Ct=Oe instanceof Error?Oe.message:A.getText("common","unknownError");Dt(A.getText("creator","workflowJsonProcessFailed",{message:Ct}))}finally{_.value=!1,D.value=0}},nn=(se,de)=>{_.value=!1,D.value=0,Dt(A.getText("creator","workflowJsonUploadFailed",{message:de.message||A.getText("common","unknownError")}))},po=()=>{H.value=null,ee.value="",F.value="",D.value=0,_.value=!1,_e()},wn=(se,de)=>{try{const Oe=Gn(de.key||"",de.url);m.value.push({url:Oe,name:se.name||"",assetId:de.asset_ids?.[0]??null}),_e(),ar(A.getText("creator","imageUploadSuccess"))}catch(Oe){const Ct=Oe instanceof Error?Oe.message:A.getText("common","unknownError");Dt(A.getText("creator","imageProcessFailed",{message:Ct}))}},jo=(se,de)=>{Dt(A.getText("creator","imageUploadFailedWithMessage",{message:de.message||A.getText("common","unknownError")}))},Ks=se=>{m.value.splice(se,1),_e(),c.thumbnail_url||(m.value[0]?.url?c.thumbnail_url=m.value[0].url:l.value!=="model"&&(c.thumbnail_url="")),ar(A.getText("creator","imageDeleted"))},Xr=(se,de)=>{v.value=de,se.dataTransfer&&(se.dataTransfer.effectAllowed="move")},pu=se=>{se.preventDefault(),se.dataTransfer&&(se.dataTransfer.dropEffect="move")},ho=(se,de)=>{if(se.preventDefault(),v.value!==null&&v.value!==de){const Oe=m.value[v.value];if(!Oe)return;m.value.splice(v.value,1),m.value.splice(de,0,Oe),_e(),ar(A.getText("creator","imageOrderAdjusted"))}v.value=null};function hi(){if(l.value==="workflow"){if(!q.value)return A.getText("creator","pleaseUploadWorkflowVideo");if(!H.value)return A.getText("creator","pleaseUploadWorkflowJson")}else if(l.value!=="model"){if(!$.value)return W.value?A.getText("creator","pleaseUploadMaterialNodeFile"):A.getText("creator","pleaseUploadPluginFile");
147if(m.value.length===0)return A.getText("creator","pleaseUploadAtLeastOneImage")}else{if(!w.value)return A.getText("creator","pleaseUploadPreviewFile");if(!P.value)return A.getText("creator","pleaseUploadDownloadFile")}return c.title?.trim()?c.thumbnail_url?.trim()?c.access_tier===1&&(!c.price||Number(c.price)<=0)?A.getText("creator","pleaseSetPrice"):null:A.getText("creator","pleaseFillCoverUrl"):A.getText("creator","pleaseFillWorkTitle")}function hu(){_e();const se={model:1,plugin:4,material:5,workflow:6};c.upload_type=se[l.value],c.is_download=!0;const de=l.value==="model"?[P.value].filter(Boolean):l.value==="workflow"?[H.value].filter(Boolean):[$.value].filter(Boolean);c.metadata={download_asset_ids:de.map(String)}}const go=()=>(hu(),a(c,hi,En)),Hn=async()=>{hu(),await u(c,hi,En),d()};async function gu(){if(r.value)try{const se=await eh(r.value),de=Number(se.upload_type);l.value=de===4?"plugin":de===5?"material":de===6?"workflow":"model",c.title=se.title,c.description=se.description||"",c.thumbnail_url=se.thumbnail_url||"",c.access_tier=se.access_tier,c.list_in_shop=!!se.list_in_shop,c.price=Number(se.price)||0,c.system_tags=se.system_tags?.map(ke=>ke.name)||[],c.user_tags=se.user_tags?.map(ke=>ke.name)||[],c.is_ai=!!se.is_ai,c.is_uncomfortable=!!se.is_uncomfortable,c.is_download=!!se.is_download,c.is_student_accessible=!!se.is_student_accessible;const Oe=iy(se.content?.content||""),Ct=se.metadata?.download_asset_ids||[],N=se.asset_ids||[],fe=(await Promise.allSettled(N.map(ke=>th(ke)))).flatMap(ke=>ke.status==="fulfilled"?[ke.value]:[]),xe=Qp(fe);if(l.value==="workflow"){const ke=Oe.videoUrls[0];if(ke){U.value=ke,q.value=Dn(ke,xe)??se.asset_ids?.[0]??null;const j=(se.content?.content||"").match(/@video\[(.*?)\]\(/);le.value=j?.[1]||ke.split("/").pop()||""}const Ne=g1(se.content?.content||"");Ne[0]&&(ee.value=Ne[0].url,F.value=Ne[0].fileName,H.value=Dn(Ne[0].url,xe)??Ct[0]??null)}else if(l.value!=="model"){const ke=g1(se.content?.content||"");ke[0]&&(V.value=ke[0].url,X.value=ke[0].fileName,$.value=Dn(ke[0].url,xe)??se.asset_ids?.[0]??null),m.value=Oe.imageUrls.map(Ne=>({url:Ne,name:"",assetId:Dn(Ne,xe)}))}else{const ke=g1(se.content?.content||"");ke[0]&&(E.value=ke[0].url,b.value=ke[0].fileName,w.value=Dn(ke[0].url,xe)??se.asset_ids?.[0]??null),ke[1]?(G.value=ke[1].url,P.value=Ct[0]??null,k.value=ke[1].fileName):Ct[0]&&(P.value=Ct[0])}c.thumbnail_url&&(c.cover_asset_id=Dn(c.thumbnail_url,xe)),_e()}catch{Dt(A.getText("creator","loadWorkFailed"))}finally{d()}}Fo(async()=>{await gu(),n.value||d()});function En(){c.title="",c.description="",c.thumbnail_url="",c.access_tier=0,c.list_in_shop=!1,c.price=0,c.is_published=!0,c.weight=0,c.system_tags=[],c.user_tags=[],c.content="",c.upload_type=1,c.publishNow=!0,c.publishTime="",c.is_ai=!1,c.is_uncomfortable=!1,c.is_download=!0,c.asset_ids=[],c.cover_asset_id=null,c.contentType="",l.value="model",Ft(),Ke(),st(),d()}return t({form:c}),(se,de)=>(oe(),ue("div",A4e,[R(n)?lr("",!0):(oe(),ue("div",k4e,[T("span",{class:ya(["file-type-tab",{active:l.value==="model"}]),onClick:de[0]||(de[0]=Oe=>pt("model"))},re(R(A).getText("creator","fileTypeModel")),3),T("span",{class:ya(["file-type-tab",{active:l.value==="plugin"}]),onClick:de[1]||(de[1]=Oe=>pt("plugin"))},re(R(A).getText("creator","fileTypePlugin")),3),T("span",{class:ya(["file-type-tab",{active:l.value==="material"}]),onClick:de[2]||(de[2]=Oe=>pt("material"))},re(R(A).getText("creator","fileTypeMaterialNodePackage")),3),T("span",{class:ya(["file-type-tab",{active:l.value==="workflow"}]),onClick:de[3]||(de[3]=Oe=>pt("workflow"))},re(R(A).getText("creator","fileTypeWorkflow")),3)])),T("div",O4e,[l.value==="model"?(oe(),ue(ct,{key:0},[T("div",T4e,[T("div",F4e,[T("div",B4e,[T("div",P4e,[T("div",null,[T("h4",null,re(R(A).getText("creator","previewFile")),1)])]),Ze($o,{"path-prefix":"models/","show-file-list":!1,"auto-upload":!0,accept:".glb","max-size":2048,onSuccess:Rr,onError:mn,onProgress:Ye,onStart:Er},{default:jr(()=>[T("div",j4e,[T("b",null,"+ "+re(R(A).getText("creator","selectPreviewFile")),1),T("small",null,re(R(A).getText("creator","supportGlb")),1)])]),_:1}),T("div",N4e,[T("span",null,re(b.value||R(A).getText("creator","noFileSelected")),1),y.value||w.value?(oe(),ue("div",I4e,[T("span",{style:kl({width:w.value?"100%":h.value+"%"})},null,4)])):(oe(),ue("span",L4e)),T("span",null,[w.value?(oe(),ue(ct,{key:0},[zt(re(R(A).getText("creator","uploadComplete"))+" ",1),T("button",{class:"fileDeleteBtn",onClick:$n}," Ã "+re(R(A).getText("common","delete")),1)],64)):y.value?(oe(),ue(ct,{key:1},[zt(re(h.value)+"%",1)],64)):(oe(),ue(ct,{key:2},[zt(re(R(A).getText("creator","pendingUpload")),1)],64))])])])])]),T("div",R4e,[T("div",M4e,[T("div",$4e,[T("div",z4e,[T("div",null,[T("h4",null,re(R(A).getText("creator","fileUpload")),1)])]),Ze($o,{"path-prefix":"models/","show-file-list":!1,"auto-upload":!0,accept:".glb,.obj,.mtl,.FBX,.STL,.STEP,.3MF,.USDZ,.blend","max-size":2048,onSuccess:yn,onError:zn,onProgress:di,onStart:Ui},{default:jr(()=>[T("div",H4e,[T("b",null,"+ "+re(R(A).getText("creator","selectModelFile")),1),T("small",null,re(R(A).getText("creator","supportModelFormats")),1)])]),_:1}),T("div",U4e,[T("span",null,re(k.value||R(A).getText("creator","noFileSelected")),1),C.value||P.value?(oe(),ue("div",V4e,[T("span",{style:kl({width:P.value?"100%":S.value+"%"})},null,4)])):(oe(),ue("span",W4e)),T("span",null,[P.value?(oe(),ue(ct,{key:0},[zt(re(R(A).getText("creator","uploadComplete"))+" ",1),T("button",{class:"fileDeleteBtn",onClick:co}," Ã "+re(R(A).getText("common","delete")),1)],64)):C.value?(oe(),ue(ct,{key:1},[zt(re(S.value)+"%",1)],64)):(oe(),ue(ct,{key:2},[zt(re(R(A).getText("creator","pendingUpload")),1)],64))])])])])])],64)):l.value==="workflow"?(oe(),ue(ct,{key:1},[T("div",G4e,[T("div",q4e,[T("div",K4e,[T("div",Y4e,[T("div",null,[T("h4",null,re(R(A).getText("creator","workflowVideo")),1)])]),Ze($o,{"path-prefix":"videos/","show-file-list":!1,"auto-upload":!0,accept:"video/*","max-size":1024*5,onSuccess:Po,onError:fo,onProgress:du,onStart:rn},{default:jr(()=>[U.value?(oe(),ue("video",{key:0,src:U.value,class:"uploaded-video",controls:""},null,8,X4e)):(oe(),ue("div",J4e,[T("b",null,"+ "+re(R(A).getText("creator","selectVideoFile")),1),T("small",null,re(R(A).getText("creator","videoDropHint")),1)]))]),_:1}),T("div",Z4e,[T("span",null,re(le.value||R(A).getText("creator","noFileSelected")),1),Q.value||q.value?(oe(),ue("div",Q4e,[T("span",{style:kl({width:q.value?"100%":ie.value+"%"})},null,4)])):(oe(),ue("span",eEe)),T("span",null,[q.value?(oe(),ue(ct,{key:0},[zt(re(R(A).getText("creator","uploadComplete"))+" ",1),T("button",{class:"fileDeleteBtn",onClick:Vi}," Ã "+re(R(A).getText("common","delete")),1)],64)):Q.value?(oe(),ue(ct,{key:1},[zt(re(ie.value)+"%",1)],64)):(oe(),ue(ct,{key:2},[zt(re(R(A).getText("creator","pendingUpload")),1)],64))])])])])]),T("div",tEe,[T("div",rEe,[T("div",nEe,[T("div",oEe,[T("div",null,[T("h4",null,re(R(A).getText("creator","workflowJson")),1)])]),Ze($o,{"path-prefix":"workflows/","show-file-list":!1,"auto-upload":!0,accept:".json","max-size":50,onSuccess:bn,onError:nn,onProgress:Wi,onStart:pi},{default:jr(()=>[T("div",iEe,[T("b",null,"+ "+re(R(A).getText("creator","selectJsonFile")),1),T("small",null,re(R(A).getText("creator","supportJson")),1)])]),_:1}),T("div",aEe,[T("span",null,re(F.value||R(A).getText("creator","noFileSelected")),1),_.value||H.value?(oe(),ue("div",uEe,[T("span",{style:kl({width:H.value?"100%":D.value+"%"})},null,4)])):(oe(),ue("span",sEe)),T("span",null,[H.value?(oe(),ue(ct,{key:0},[zt(re(R(A).getText("creator","uploadComplete"))+" ",1),T("button",{class:"fileDeleteBtn",onClick:po}," Ã "+re(R(A).getText("common","delete")),1)],64)):_.value?(oe(),ue(ct,{key:1},[zt(re(D.value)+"%",1)],64)):(oe(),ue(ct,{key:2},[zt(re(R(A).getText("creator","pendingUpload")),1)],64))])])])])])],64)):(oe(),ue(ct,{key:2},[T("div",lEe,[T("div",cEe,[T("div",fEe,[T("div",dEe,[T("div",null,[T("h4",null,re(R(A).getText("creator","fileUpload")),1)])]),Ze($o,{"path-prefix":ae.value,"show-file-list":!1,"auto-upload":!0,accept:be.value,"max-size":2048,onSuccess:Cr,onError:Br,onProgress:Sr,onStart:xr},{default:jr(()=>[T("div",pEe,[T("b",null,"+ "+re(ne.value),1),T("small",null,re(K.value),1)])]),_:1},8,["path-prefix","accept"]),T("div",hEe,[T("span",null,re(X.value||R(A).getText("creator","noFileSelected")),1),J.value||$.value?(oe(),ue("div",gEe,[T("span",{style:kl({width:$.value?"100%":M.value+"%"})},null,4)])):(oe(),ue("span",vEe)),T("span",null,[$.value?(oe(),ue(ct,{key:0},[zt(re(R(A).getText("creator","uploadComplete"))+" ",1),T("button",{class:"fileDeleteBtn",onClick:rr}," Ã "+re(R(A).getText("common","delete")),1)],64)):J.value?(oe(),ue(ct,{key:1},[zt(re(M.value)+"%",1)],64)):(oe(),ue(ct,{key:2},[zt(re(R(A).getText("creator","pendingUpload")),1)],64))])])])])]),T("div",mEe,[T("div",yEe,[T("div",null,[T("h4",null,re(R(A).getText("creator","pluginDisplayImages")),1)])]),m.value.length<HP?(oe(),tc($o,{key:0,"path-prefix":"images/","show-file-list":!1,"auto-upload":!0,accept:"image/*","max-size":10,multiple:"",limit:HP,onSuccess:wn,onError:jo},{default:jr(()=>[T("div",bEe,[T("b",null,"+ "+re(R(A).getText("creator","uploadDisplayImages")),1),T("small",null,re(R(A).getText("creator","imageDropHint")),1)])]),_:1})):lr("",!0),T("div",wEe,[T("span",null,re(g.value||R(A).getText("creator","noImageSelected")),1),m.value.length>0?(oe(),ue("div",EEe,[...de[4]||(de[4]=[T("span",{style:{width:"100%"}},null,-1)])])):(oe(),ue("span",xEe)),T("span",null,re(m.value.length>0?R(A).getText("creator","imageCountUnit",{count:m.value.length}):R(A).getText("creator","pendingUpload")),1)]),m.value.length>0?(oe(),ue("div",SEe,[(oe(!0),ue(ct,null,Pi(m.value,(Oe,Ct)=>(oe(),ue("div",{key:Ct,class:"imageThumb",draggable:!0,onDragstart:N=>Xr(N,Ct),onDragover:pu,onDrop:N=>ho(N,Ct)}
147,[Oe.url?(oe(),ue("img",{key:0,src:Oe.url,alt:""},null,8,DEe)):(oe(),ue("div",_Ee,re(R(A).getText("creator","image")),1)),T("button",{class:"thumbDelete",onClick:N=>Ks(Ct)},"Ã",8,AEe)],40,CEe))),128))])):lr("",!0),T("div",kEe,[T("span",null,re(R(A).getText("creator","supportDragSort")),1)])])],64))]),Ze(Yh,{form:c,"show-access-tier":""},null,8,["form"]),Ze(Kh,{submitting:R(o),"saving-draft":R(i),"is-editing":R(n),"reject-remark":s.value,onSubmit:go,onSaveDraft:Hn},null,8,["submitting","saving-draft","is-editing","reject-remark"])]))}}),TEe=si(OEe,[["__scopeId","data-v-dacd5bd4"]]),FEe={class:"upload-pane",id:"pane-image"},BEe={class:"formSection sourceChapterSection sourceOnlySection"},PEe={class:"formSectionHeader"},jEe={class:"dropZone"},NEe={class:"fileName progressRow"},IEe={key:0,class:"fakeProgress"},LEe={key:1},REe={key:0,class:"imageGrid",ref:"imageGrid"},MEe=["onDragstart","onDrop"],$Ee=["src","alt"],zEe={key:1,class:"image-placeholder"},HEe=["onClick"],UEe=Ln({__name:"UploadImageTextView",setup(e,{expose:t}){const{editingPostId:r,isEditing:n,submitting:o,savingDraft:i,submitPost:a,saveDraft:u}=Gh(),s=we(""),l=bs({title:"",description:"",thumbnail_url:"",access_tier:0,list_in_shop:!1,price:0,is_published:!0,weight:0,author_id:0,system_tags:[],user_tags:[],content:"",circle_ids:[],asset_ids:[],cover_asset_id:null,upload_type:2,publishNow:!0,publishTime:"",hasAI:!1,sensitive:!1,allowDownload:!1,images:[],contentType:""}),c=we("");function f(){c.value=JSON.stringify({title:l.title,description:l.description,thumbnail_url:l.thumbnail_url,images:l.images})}const d=_t(()=>JSON.stringify({title:l.title,description:l.description,thumbnail_url:l.thumbnail_url,images:l.images})!==c.value);qh(d);const p=we(!1),v=we(null),m=_t(()=>l.images.length===0?"":l.images.map($=>$.file?.name||$.url?.split("/").pop()||"").filter(Boolean).join("ã")),g=$=>{p.value=!0},y=($,V)=>{console.log(`å¾çä¸ä¼ è¿åº¦: ${V}%`)},h=($,V)=>
147{try{l.images.push({file:$||null,url:Gn(V.key||"",V.url),assetId:V.asset_ids?.[0]??null}),P(),ar(A.getText("creator","imageUploadSuccess"))}catch(Q){Dt(A.getText("creator","imageProcessFailed",{message:Q.message||A.getText("common","unknownError")}))}finally{p.value=!1}},b=($,V)=>{p.value=!1,Dt(A.getText("creator","imageUploadFailedWithMessage",{message:V.message||A.getText("common","unknownError")}))},w=$=>{l.images.splice($,1),P(),ar(A.getText("creator","imageDeleted"))},E=($,V)=>{v.value=V,$.dataTransfer&&($.dataTransfer.effectAllowed="move")},C=$=>{$.preventDefault(),$.dataTransfer&&($.dataTransfer.dropEffect="move")},S=($,V)=>{if($.preventDefault(),v.value!==null&&v.value!==V){const Q=l.images[v.value];l.images.splice(v.value,1),l.images.splice(V,0,Q),P(),ar(A.getText("creator","imageOrderAdjusted"))}v.value=null};function k(){return l.images.length===0?A.getText("creator","pleaseUploadAtLeastOneImage"):l.title?.trim()?null:A.getText("creator","pleaseFillWorkTitle")}function P(){const $=l.images.map(V=>V.assetId).filter(V=>V!=null);l.asset_ids=Td($,[l.cover_asset_id]),l.content=l.images.map(V=>V.url?Lu(V.url,Ru.image,(V.file?.name||"").replace(/,/g,"")):"").filter(Boolean).join(","),!l.cover_asset_id&&!l.thumbnail_url&&(l.thumbnail_url=l.images[0]?.url||"")}const G=()=>(P(),a(l,k,X)),J=async()=>{P(),await u(l,k,X),f()};async function M(){if(r.value)try{const $=await eh(r.value);l.title=$.title,l.description=$.description||"",l.thumbnail_url=$.thumbnail_url||"",l.access_tier=$.access_tier,l.list_in_shop=!!$.list_in_shop,l.price=Number($.price)||0,l.system_tags=$.system_tags?.map(U=>U.name)||[],l.user_tags=$.user_tags?.map(U=>U.name)||[];const V=iy($.content?.content||""),Q=$.asset_ids||[],le=(await Promise.allSettled(Q.map(U=>th(U)))).flatMap(U=>U.status==="fulfilled"?[U.value]:[]),q=Qp(le);l.images=V.imageUrls.map(U=>({file:null,url:U,assetId:Dn(U,q)})),l.cover_asset_id=l.thumbnail_url?Dn(l.thumbnail_url,q):null,P()}catch{Dt(A.getText("creator","loadWorkFailed"))}finally{f()}}Fo(async()=>{await M(),n.value||f()});function X(){l.title="",l.description="",l.thumbnail_url="",l.access_tier=0,l.list_in_shop=!1,l.price=0,l.is_published=!0,l.weight=0,l.author_id=0,l.system_tags=[],l.user_tags=[],l.content="",l.upload_type=2,l.publishNow=!0,l.publishTime="",l.hasAI=!1,l.sensitive=!1,l.allowDownload=!1,l.images=[],l.asset_ids=[],l.cover_asset_id=null,l.contentType="",f()}return t({form:l}),($,V)=>(oe(),ue("div",FEe,[T("div",BEe,[T("div",PEe,[T("div",null,[T("h4",null,re(R(A).getText("creator","imageGroup")),1),T("span",null,re(R(A).getText("creator","imageGroupHint")),1)])]),Ze($o,{"path-prefix":"images/","show-file-list":!1,"auto-upload":!0,accept:"image/*","max-size":10,onSuccess:h,onError:b,onProgress:y,onStart:g,multiple:"",limit:9},{default:jr(()=>[T("div",jEe,[T("b",null,"+ "+re(R(A).getText("creator","uploadImageStoryboard")),1),T("small",null,re(R(A).getText("creator","imageDropHint")),1)])]),_:1}),T("div",NEe,[T("span",null,re(m.value||R(A).getText("creator","noImageSelected")),1),l.images.length>0?(oe(),ue("div",IEe,[...V[0]||(V[0]=[T("span",{style:{width:"100%"}},null,-1)])])):(oe(),ue("span",LEe)),T("span",null,re(l.images.length>0?R(A).getText("creator","imageCountUnit",{count:l.images.length}):R(A).getText("creator","pendingUpload")),1)]),l.images.length>0?(oe(),ue("div",REe,[(oe(!0),ue(ct,null,Pi(l.images,(Q,ie)=>(oe(),ue("div",{key:ie,class:"imageThumb",draggable:!0,onDragstart:le=>E(le,ie),onDragover:C,onDrop:le=>S(le,ie)},[Q.url?(oe(),ue("img",{key:0,src:Q.url,alt:R(A).getText("creator","image")},null,8,$Ee)):(oe(),ue("div",zEe,re(R(A).getText("creator","image")),1)),T("button",{class:"thumbDelete",onClick:le=>w(ie)},"Ã",8,HEe)],40,MEe))),128))],512)):lr("",!0)]),Ze(Yh,{form:l,"show-access-tier":""},null,8,["form"]),Ze(Kh,{submitting:R(o),"saving-draft":R(i),"is-editing":R(n),"reject-remark":s.value,onSubmit:G,onSaveDraft:J},null,8,["submitting","saving-draft","is-editing","reject-remark"])]))}}),VEe=si(UEe,[["__scopeId","data-v-f45137a3"]]),WEe={class:"upload-pane",id:"pane-video"},GEe={class:"formSection sourceChapterSection"},qEe={class:"formSectionHeader"},KEe={key:0,class:"dropZone"},YEe=["src"],XEe={class:"fileName progressRow"},JEe={key:0,class:"fakeProgress"}
147,ZEe={key:1},QEe=Ln({__name:"UploadVideoView",setup(e,{expose:t}){const{editingPostId:r,isEditing:n,submitting:o,savingDraft:i,submitPost:a,saveDraft:u}=Gh(),s=we(""),l=bs({title:"",description:"",thumbnail_url:"",access_tier:0,list_in_shop:!1,price:0,is_published:!0,weight:0,system_tags:[],user_tags:[],content:"",circle_ids:[],asset_ids:[],cover_asset_id:null,upload_type:0,publishNow:!0,publishTime:"",is_ai:!1,is_uncomfortable:!1,is_download:!1,contentType:""}),c=we("");function f(){c.value=JSON.stringify({title:l.title,description:l.description,thumbnail_url:l.thumbnail_url,content:l.content,asset_ids:l.asset_ids})}const d=_t(()=>JSON.stringify({title:l.title,description:l.description,thumbnail_url:l.thumbnail_url,content:l.content,asset_ids:l.asset_ids})!==c.value);qh(d);const p=we(!1),v=we(0),m=we(""),g=(M,X)=>{v.value=X},y=M=>{p.value=!0,m.value=M.name||""},h=we(null);function b(){const M=h.value?.asset_ids??[];l.asset_ids=Td(M,[l.cover_asset_id])}const w=(M,X)=>{try{l.content=Lu(Gn(X.key||"",X.url),Ru.video,M.name||""),h.value=X,m.value=M.name||"",b(),ar(A.getText("creator","videoUploadSuccess"))}catch($){Dt(A.getText("creator","videoProcessFailed",{message:$.message||A.getText("common","unknownError")}))}finally{p.value=!1,v.value=100}},E=(M,X)=>{p.value=!1,v.value=0,Dt(A.getText("creator","videoUploadFailed",{message:X.message||A.getText("common","unknownError")}))},C=()=>{h.value=null,l.content="",v.value=0,m.value="",b()};function S(){return l.title?.trim()?h.value?l.thumbnail_url?.trim()?null:A.getText("creator","pleaseFillCoverUrl"):A.getText("creator","pleaseSelectVideo"):A.getText("creator","pleaseFillWorkTitle")}const k=()=>(b(),a(l,S,J)),P=async()=>{b(),await u(l,S,J),f()};async function G(){if(r.value)try{const M=await eh(r.value);l.title=M.title,l.description=M.description||"",l.thumbnail_url=M.thumbnail_url||"",l.access_tier=M.access_tier,l.list_in_shop=!!M.list_in_shop,l.price=Number(M.price)||0,l.system_tags=M.system_tags?.map(U=>U.name)||[],l.user_tags=M.user_tags?.map(U=>U.name)||[],l.is_ai=!!M.is_ai,l.is_uncomfortable=!!M.is_uncomfortable,l.is_download=!!M.is_download;const X=M.content?.content||"";l.content=X;const $=iy(X),V=M.asset_ids||[],ie=(await Promise.allSettled(V.map(U=>th(U)))).flatMap(U=>U.status==="fulfilled"?[U.value]:[]),le=Qp(ie);l.cover_asset_id=l.thumbnail_url?Dn(l.thumbnail_url,le):null;const q=$.videoUrls[0];if(q){const U=Dn(q,le);h.value={url:q,key:"",asset_ids:U?[U]:[]};const _=X.match(/@video\[(.*?)\]\(/);m.value=_?.[1]||q.split("/").pop()||"",v.value=100}b()}catch{Dt(A.getText("creator","loadWorkFailed"))}finally{f()}}Fo(async()=>{await G(),n.value||f()});function J(){l.title="",l.description="",l.thumbnail_url="",l.access_tier=0,l.list_in_shop=!1,l.price=0,l.is_published=!0,l.weight=0,l.system_tags=[],l.user_tags=[],l.content="",l.upload_type=0,l.asset_ids=[],l.cover_asset_id=null,l.publishNow=!0,l.publishTime="",l.is_ai=!1,l.is_uncomfortable=!1,l.is_download=!1,l.contentType="",h.value=null,m.value="",v.value=0,f()}return t({form:l}),(M,X)=>(oe(),ue("div",WEe,[T("div",GEe,[T("div",qEe,[T("div",null,[T("h4",null,re(R(A).getText("creator","videoSourceFile")),1),T("span",null,re(R(A).getText("creator","videoSourceHint")),1)])]),Ze($o,{"path-prefix":"videos/","show-file-list":!1,"auto-upload":!0,accept:"video/*","max-size":1024*5,onSuccess:w,onError:E,onProgress:g,onStart:y},{default:jr(()=>[h.value?(oe(),ue("video",{key:1,src:R(Gn)(h.value.key||"",h.value.url),class:"uploaded-video",controls:""},null,8,YEe)):(oe(),ue("div",KEe,[T("b",null,"+ "+re(R(A).getText("creator","selectVideoFile")),1),T("small",null,re(R(A).getText("creator","videoDropHint")),1)]))]),_:1}),T("div",XEe,[T("span",null,re(m.value||R(A).getText("creator","noFileSelected")),1),p.value||h.value&&v.value===100?(oe(),ue("div",JEe,[T("span",{style:kl({width:v.value+"%"})},null,4)])):(oe(),ue("span",ZEe)),T("span",null,[h.value&&v.value===100?(oe(),ue(ct,{key:0},[zt(re(R(A).getText("creator","uploadComplete"))+" ",1),T("button",{class:"fileDeleteBtn",onClick:C}," à "+re(R(A).getText("common","delete")),1)],64)):p.value?(oe(),ue(ct,{key:1},[zt(re(v.value)+"%",1)],64)):(oe(),ue(ct,{key:2},[zt(re(R(A).getText("creator","pendingUpload")),1)],64))])])]),Ze(Yh,{form:l,"show-access-tier":""},null,8,["form"]),Ze(Kh,{submitting:R(o),"saving-draft":R(i),"is-editing":R(n),"reject-remark":s.value,onSubmit:k,onSaveDraft:P},null,8,["submitting","saving-draft","is-editing","reject-remark"])]))}}),exe=si(QEe,[["__scopeId","data-v-3604b70f"]]),txe={class:"main"},rxe=["aria-label"],nxe={class:"topbar-bar"},oxe=["aria-label"],ixe=["onClick"],axe=["aria-label"],uxe={class:"creatorTab"},sxe=["aria-label"],lxe=["aria-label"],cxe={class:"uploadFrame"},fxe={class:"uploadGrid"},dxe=["aria-label"],pxe={class:"panelTitle"},hxe={class:"panelBody"},gxe=["aria-label"],vxe={class:"preview_view"},mxe={class:"title"},Oxe=Ln({__name:"CreatorView",setup(e){const t=VP(),{currentLocale:r}=CH(DH()),n=_t(()=>!!t.query.edit),o={video:exe,file:TEe,image:VEe,article:i4e,course:_4e},i=we(!1),a=_t(()=>{const g=["video","file","image","article"];return i.value&&g.push("course"),g}),u=_t(()=>(r.value,[{route:"video",value:A.getText("creator","uploadVideo"),short:A.getText("creator","tabShortVideo"),previewGlyph:"â¶"},{route:"file",value:A.getText("creator","uploadFile"),short:A.getText("creator","tabShortModel"),previewGlyph:"â"},{route:"image",value:A.getText("creator","uploadImageText"),short:A.getText("creator","tabShortImage"),previewGlyph:"â¦"},{route:"article",value:A.getText("creator","uploadArticle"),short:A.getText("creator","tabShortArticle"),previewGlyph:"¶"},{route:"course",value:A.getText("creator","uploadCourse"),short:A.getText("creator","tabShortCourse"),previewGlyph:"â"}].filter(y=>a.value.includes(y.route))));function s(g){return a.value.indexOf(g)}const l=we(0);function c(g){const y=g||"video",h=y==="course"&&!i.value?"video":y,b=s(h);l.value=b>=0?b:0}Fo(async()=>{try{const g=await _H();i.value=g.role?.role?.code==="teacher"}catch{i.value=!1}c(t.query.tab)});const f=_t(()=>{const g=a.value[l.value]??"video";return o[g]});function d(g){const y=s(g);y>=0&&(l.value=y)}ec(()=>t.query.tab,g=>c(g)),ec(i,()=>c(t.query.tab));const p=_t(()=>(r.value,A.getText("creator","draftBox"))),v=we(),m=_t(()=>{const g=v.value?.form,y=u.value[l.value];return{title:g?.title||"",description:g?.description||"",cover:g?.thumbnail_url||"",tags:g?.user_tags||[],typeLabel:y?.short||""}});return(g,y)=>(oe(),ue("div",txe,[n.value?lr("",!0):(oe(),ue("header",{key:0,class:"topbar","aria-label":R(A).getText("creator","ariaCreatorTopbar")},[y[0]||(y[0]=T("div",{class:"header-blur sticky-header-blur","aria-hidden":"true"},null,-1)),T("div",nxe,[T("nav",{class:"subTabs topUploadTabs","aria-label":R(A).getText("creator","ariaUploadTypeSwitch"),role:"tablist"},[(oe(!0),ue(ct,null,Pi(u.value,(h,b)=>(oe(),ue("button",{key:h.route,class:ya(["subTab",{active:l.value===b}]),onClick:w=>d(h.route)},re(h.value),11,ixe))),128))],8,oxe),T("nav",{class:"creatorTabs topPageTabs","aria-label":R(A).getText("creator","ariaDraftBoxEntry")},[T("button",uxe,re(p.value),1)],8,axe)])],8,rxe)),T("section",{class:"creatorView","aria-label":R(A).getText("creator","ariaCreatorPage")},[T("section",{class:"dashboard active",id:"upload","aria-label":R(A).getText("creator","ariaContentUpload")},[T("div",cxe,[T("div",fxe,[T("section",{class:"panel leftWorkflow","aria-label":R(A).getText("creator","ariaUploadForm")},[T("div",pxe,[T("h3",null,re(R(A).getText("creator","workInfo")),1),T("span",null,re(R(A).getText("creator","editLeftPreviewRight")),1)]),T("div",hxe,[(oe(),tc(AH(f.value),{key:`${l.value}-${R(t).query.edit||"new"}`,ref_key:"activeUploadRef",ref:v}))])],8,dxe),T("aside",{class:"previewPanel","aria-label":R(A).getText("creator","ariaPublishPreview")},[T("div",vxe,[T("div",mxe,re(R(A).getText("creator","publishPreview")),1),Ze(WH,{data:m.value},null,8,["data"])])],8,gxe)])])],8,lxe)],8,sxe)]))}});
147export{Oxe as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.