@wangeditor-next/editor 5.5.5 → 5.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -17549,7 +17549,7 @@ Fp$1("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quo
|
|
|
17549
17549
|
|
|
17550
17550
|
Fp$1("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Fp$1("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var v$2=function(t){try{return !!t()}catch(t){return !0}},p$2=!v$2((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),y$2=Function.prototype,h$2=y$2.call,g$2=p$2&&y$2.bind.bind(h$2,h$2),b$2=p$2?g$2:function(t){return function(){return h$2.apply(t,arguments)}},m$2=b$2({}.toString),w$2=b$2("".slice),O$3=function(t){return w$2(m$2(t),8,-1)},S$3=Object,x$3=b$2("".split),E$3=v$2((function(){return !S$3("z").propertyIsEnumerable(0)}))?function(t){return "String"===O$3(t)?x$3(t,""):S$3(t)}:S$3,j$4=function(t){return null==t},T$3=TypeError,A$3=function(t){if(j$4(t))throw new T$3("Can't call method on "+t);return t},I$4=function(t){return E$3(A$3(t))},P$4="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function L$4(t){var e={exports:{}};return t(e,e.exports),e.exports}var R$4,k$3,N$3=function(t){return t&&t.Math===Math&&t},z$3=N$3("object"==typeof globalThis&&globalThis)||N$3("object"==typeof window&&window)||N$3("object"==typeof self&&self)||N$3("object"==typeof P$4&&P$4)||N$3("object"==typeof P$4&&P$4)||function(){return this}()||Function("return this")(),M$3=Object.defineProperty,_$4=function(t,e){try{M$3(z$3,t,{value:e,configurable:!0,writable:!0});}catch(r){z$3[t]=e;}return e},C$3=L$4((function(t){var e="__core-js_shared__",r=t.exports=z$3[e]||_$4(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),F$4=function(t,e){return C$3[t]||(C$3[t]=e||{})},D$4=Object,B$4=function(t){return D$4(A$3(t))},H$3=b$2({}.hasOwnProperty),$$4=Object.hasOwn||function(t,e){return H$3(B$4(t),e)},G$4=0,V$4=Math.random(),W$4=b$2(1..toString),U$4=function(t){return "Symbol("+(void 0===t?"":t)+")_"+W$4(++G$4+V$4,36)},K$4=z$3.navigator,Y$4=K$4&&K$4.userAgent,X$4=Y$4?String(Y$4):"",q$4=z$3.process,J$4=z$3.Deno,Q$4=q$4&&q$4.versions||J$4&&J$4.version,Z$4=Q$4&&Q$4.v8;Z$4&&(k$3=(R$4=Z$4.split("."))[0]>0&&R$4[0]<4?1:+(R$4[0]+R$4[1])),!k$3&&X$4&&(!(R$4=X$4.match(/Edge\/(\d+)/))||R$4[1]>=74)&&(R$4=X$4.match(/Chrome\/(\d+)/))&&(k$3=+R$4[1]);var tt$4,et$4=k$3,rt$4=z$3.String,nt$4=!!Object.getOwnPropertySymbols&&!v$2((function(){var t=Symbol("symbol detection");return !rt$4(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&et$4&&et$4<41})),ot$4=nt$4&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,it$4=z$3.Symbol,ut$4=F$4("wks"),at$4=ot$4?it$4.for||it$4:it$4&&it$4.withoutSetter||U$4,ct$4=function(t){return $$4(ut$4,t)||(ut$4[t]=nt$4&&$$4(it$4,t)?it$4[t]:at$4("Symbol."+t)),ut$4[t]},ft$4="object"==typeof document&&document.all,lt$4=void 0===ft$4&&void 0!==ft$4?function(t){return "function"==typeof t||t===ft$4}:function(t){return "function"==typeof t},st$4=function(t){return "object"==typeof t?null!==t:lt$4(t)},dt$4=String,vt$4=TypeError,pt$4=function(t){if(st$4(t))return t;throw new vt$4(dt$4(t)+" is not an object")},yt$4=!v$2((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ht$4=yt$4&&v$2((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),gt$4=z$3.document,bt$4=st$4(gt$4)&&st$4(gt$4.createElement),mt$4=function(t){return bt$4?gt$4.createElement(t):{}},wt$4=!yt$4&&!v$2((function(){return 7!==Object.defineProperty(mt$4("div"),"a",{get:function(){return 7}}).a})),Ot$4=Function.prototype.call,St$4=p$2?Ot$4.bind(Ot$4):function(){return Ot$4.apply(Ot$4,arguments)},xt$4=function(t,e){return arguments.length<2?(r=z$3[t],lt$4(r)?r:void 0):z$3[t]&&z$3[t][e];var r;},Et$4=b$2({}.isPrototypeOf),jt$4=Object,Tt$4=ot$4?function(t){return "symbol"==typeof t}:function(t){var e=xt$4("Symbol");return lt$4(e)&&Et$4(e.prototype,jt$4(t))},At$4=String,It$4=function(t){try{return At$4(t)}catch(t){return "Object"}},Pt$4=TypeError,Lt$4=function(t){if(lt$4(t))return t;throw new Pt$4(It$4(t)+" is not a function")},Rt$4=function(t,e){var r=t[e];return j$4(r)?void 0:Lt$4(r)},kt$4=TypeError,Nt$4=TypeError,zt$4=ct$4("toPrimitive"),Mt$4=function(t,e){if(!st$4(t)||Tt$4(t))return t;var r,n=Rt$4(t,zt$4);if(n){if(void 0===e&&(e="default"),r=St$4(n,t,e),!st$4(r)||Tt$4(r))return r;throw new Nt$4("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&<$4(r=t.toString)&&!st$4(n=St$4(r,t)))return n;if(lt$4(r=t.valueOf)&&!st$4(n=St$4(r,t)))return n;if("string"!==e&<$4(r=t.toString)&&!st$4(n=St$4(r,t)))return n;throw new kt$4("Can't convert object to primitive value")}(t,e)},_t$4=function(t){var e=Mt$4(t,"string");return Tt$4(e)?e:e+""},Ct$4=TypeError,Ft$4=Object.defineProperty,Dt$4=Object.getOwnPropertyDescriptor,Bt$4="enumerable",Ht$4="configurable",$t$4="writable",Gt$4={f:yt$4?ht$4?function(t,e,r){if(pt$4(t),e=_t$4(e),pt$4(r),"function"==typeof t&&"prototype"===e&&"value"in r&&$t$4 in r&&!r[$t$4]){var n=Dt$4(t,e);n&&n[$t$4]&&(t[e]=r.value,r={configurable:Ht$4 in r?r[Ht$4]:n[Ht$4],enumerable:Bt$4 in r?r[Bt$4]:n[Bt$4],writable:!1});}return Ft$4(t,e,r)}:Ft$4:function(t,e,r){if(pt$4(t),e=_t$4(e),pt$4(r),wt$4)try{return Ft$4(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Ct$4("Accessors not supported");return "value"in r&&(t[e]=r.value),t}},Vt$4=Math.ceil,Wt$4=Math.floor,Ut$4=Math.trunc||function(t){var e=+t;return (e>0?Wt$4:Vt$4)(e)},Kt$4=function(t){var e=+t;return e!=e||0===e?0:Ut$4(e)},Yt$4=Math.max,Xt$4=Math.min,qt$4=Math.min,Jt$4=function(t){var e=Kt$4(t);return e>0?qt$4(e,9007199254740991):0},Qt$4=function(t){return Jt$4(t.length)},Zt$4=function(t){return function(e,r,n){var o=I$4(e),i=Qt$4(o);if(0===i)return !t&&-1;var u,a=function(t,e){var r=Kt$4(t);return r<0?Yt$4(r+e,0):Xt$4(r,e)}(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return !t&&-1}},te$4={includes:Zt$4(!0),indexOf:Zt$4(!1)},ee$4={},re$4=te$4.indexOf,ne$4=b$2([].push),oe$4=function(t,e){var r,n=I$4(t),o=0,i=[];for(r in n)!$$4(ee$4,r)&&$$4(n,r)&&ne$4(i,r);for(;e.length>o;)$$4(n,r=e[o++])&&(~re$4(i,r)||ne$4(i,r));return i},ie$4=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ue$4=Object.keys||function(t){return oe$4(t,ie$4)},ae$4=yt$4&&!ht$4?Object.defineProperties:function(t,e){pt$4(t);for(var r,n=I$4(e),o=ue$4(e),i=o.length,u=0;i>u;)Gt$4.f(t,r=o[u++],n[r]);return t},ce$4={f:ae$4},fe$4=xt$4("document","documentElement"),le$4=F$4("keys"),se$4=function(t){return le$4[t]||(le$4[t]=U$4(t))},de$4="prototype",ve$4="script",pe$4=se$4("IE_PROTO"),ye$4=function(){},he$4=function(t){return "<"+ve$4+">"+t+"</"+ve$4+">"},ge$4=function(t){t.write(he$4("")),t.close();var e=t.parentWindow.Object;return t=null,e},be$4=function(){try{tt$4=new ActiveXObject("htmlfile");}catch(t){}var t,e,r;be$4="undefined"!=typeof document?document.domain&&tt$4?ge$4(tt$4):(e=mt$4("iframe"),r="java"+ve$4+":",e.style.display="none",fe$4.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(he$4("document.F=Object")),t.close(),t.F):ge$4(tt$4);for(var n=ie$4.length;n--;)delete be$4[de$4][ie$4[n]];return be$4()};ee$4[pe$4]=!0;var me$4=Object.create||function(t,e){var r;return null!==t?(ye$4[de$4]=pt$4(t),r=new ye$4,ye$4[de$4]=null,r[pe$4]=t):r=be$4(),void 0===e?r:ce$4.f(r,e)},we$4=Gt$4.f,Oe$4=ct$4("unscopables"),Se$4=Array.prototype;void 0===Se$4[Oe$4]&&we$4(Se$4,Oe$4,{configurable:!0,value:me$4(null)});var xe$4,Ee$4,je$4,Te$4=function(t){Se$4[Oe$4][t]=!0;},Ae$4={},Ie$4=z$3.WeakMap,Pe$4=lt$4(Ie$4)&&/native code/.test(String(Ie$4)),Le$4=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Re$4=yt$4?function(t,e,r){return Gt$4.f(t,e,Le$4(1,r))}:function(t,e,r){return t[e]=r,t},ke$4="Object already initialized",Ne$4=z$3.TypeError,ze$4=z$3.WeakMap;if(Pe$4||C$3.state){var Me$4=C$3.state||(C$3.state=new ze$4);Me$4.get=Me$4.get,Me$4.has=Me$4.has,Me$4.set=Me$4.set,xe$4=function(t,e){if(Me$4.has(t))throw new Ne$4(ke$4);return e.facade=t,Me$4.set(t,e),e},Ee$4=function(t){return Me$4.get(t)||{}},je$4=function(t){return Me$4.has(t)};}else {var _e$4=se$4("state");ee$4[_e$4]=!0,xe$4=function(t,e){if($$4(t,_e$4))throw new Ne$4(ke$4);return e.facade=t,Re$4(t,_e$4,e),e},Ee$4=function(t){return $$4(t,_e$4)?t[_e$4]:{}},je$4=function(t){return $$4(t,_e$4)};}var Ce$4={set:xe$4,get:Ee$4,has:je$4,enforce:function(t){return je$4(t)?Ee$4(t):xe$4(t,{})},getterFor:function(t){return function(e){var r;if(!st$4(e)||(r=Ee$4(e)).type!==t)throw new Ne$4("Incompatible receiver, "+t+" required");return r}}},Fe$4={}.propertyIsEnumerable,De$4=Object.getOwnPropertyDescriptor,Be$4={f:De$4&&!Fe$4.call({1:2},1)?function(t){var e=De$4(this,t);return !!e&&e.enumerable}:Fe$4},He$4=Object.getOwnPropertyDescriptor,$e$4={f:yt$4?He$4:function(t,e){if(t=I$4(t),e=_t$4(e),wt$4)try{return He$4(t,e)}catch(t){}if($$4(t,e))return Le$4(!St$4(Be$4.f,t,e),t[e])}},Ge$4=Function.prototype,Ve$4=yt$4&&Object.getOwnPropertyDescriptor,We$4=$$4(Ge$4,"name"),Ue$4={EXISTS:We$4,PROPER:We$4&&"something"===function(){}.name,CONFIGURABLE:We$4&&(!yt$4||yt$4&&Ve$4(Ge$4,"name").configurable)},Ke$4=b$2(Function.toString);lt$4(C$3.inspectSource)||(C$3.inspectSource=function(t){return Ke$4(t)});var Ye$4,Xe$4,qe$4,Je$4=C$3.inspectSource,Qe$4=L$4((function(t){var e=Ue$4.CONFIGURABLE,r=Ce$4.enforce,n=Ce$4.get,o=String,i=Object.defineProperty,u=b$2("".slice),a=b$2("".replace),c=b$2([].join),f=yt$4&&!v$2((function(){return 8!==i((function(){}),"length",{value:8}).length})),l=String(String).split("String"),s=t.exports=function(t,n,s){"Symbol("===u(o(n),0,7)&&(n="["+a(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),s&&s.getter&&(n="get "+n),s&&s.setter&&(n="set "+n),(!$$4(t,"name")||e&&t.name!==n)&&(yt$4?i(t,"name",{value:n,configurable:!0}):t.name=n),f&&s&&$$4(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&$$4(s,"constructor")&&s.constructor?yt$4&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=r(t);return $$4(d,"source")||(d.source=c(l,"string"==typeof n?n:"")),t};Function.prototype.toString=s((function(){return lt$4(this)&&n(this).source||Je$4(this)}),"toString");})),Ze$4=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(lt$4(r)&&Qe$4(r,i,n),n.global)o?t[e]=r:_$4(e,r);else {try{n.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=r:Gt$4.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable});}return t},tr$3=ie$4.concat("length","prototype"),er$3={f:Object.getOwnPropertyNames||function(t){return oe$4(t,tr$3)}},rr$3={f:Object.getOwnPropertySymbols},nr$3=b$2([].concat),or$3=xt$4("Reflect","ownKeys")||function(t){var e=er$3.f(pt$4(t)),r=rr$3.f;return r?nr$3(e,r(t)):e},ir$3=function(t,e,r){for(var n=or$3(e),o=Gt$4.f,i=$e$4.f,u=0;u<n.length;u++){var a=n[u];$$4(t,a)||r&&$$4(r,a)||o(t,a,i(e,a));}},ur$3=/#|\.prototype\./,ar$3=function(t,e){var r=fr$3[cr$3(t)];return r===sr$3||r!==lr$3&&(lt$4(e)?v$2(e):!!e)},cr$3=ar$3.normalize=function(t){return String(t).replace(ur$3,".").toLowerCase()},fr$3=ar$3.data={},lr$3=ar$3.NATIVE="N",sr$3=ar$3.POLYFILL="P",dr$3=ar$3,vr$3=$e$4.f,pr$3=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?z$3:f?z$3[a]||_$4(a,{}):z$3[a]&&z$3[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=vr$3(r,n))&&u.value:r[n],!dr$3(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ir$3(i,o);}(t.sham||o&&o.sham)&&Re$4(i,"sham",!0),Ze$4(r,n,i,t);}},yr$3=!v$2((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),hr$3=se$4("IE_PROTO"),gr$3=Object,br$3=gr$3.prototype,mr$3=yr$3?gr$3.getPrototypeOf:function(t){var e=B$4(t);if($$4(e,hr$3))return e[hr$3];var r=e.constructor;return lt$4(r)&&e instanceof r?r.prototype:e instanceof gr$3?br$3:null},wr$3=ct$4("iterator"),Or$3=!1;[].keys&&("next"in(qe$4=[].keys())?(Xe$4=mr$3(mr$3(qe$4)))!==Object.prototype&&(Ye$4=Xe$4):Or$3=!0);var Sr$3=!st$4(Ye$4)||v$2((function(){var t={};return Ye$4[wr$3].call(t)!==t}));Sr$3&&(Ye$4={}),lt$4(Ye$4[wr$3])||Ze$4(Ye$4,wr$3,(function(){return this}));var xr$3={IteratorPrototype:Ye$4,BUGGY_SAFARI_ITERATORS:Or$3},Er$3=Gt$4.f,jr$3=ct$4("toStringTag"),Tr$3=function(t,e,r){t&&!r&&(t=t.prototype),t&&!$$4(t,jr$3)&&Er$3(t,jr$3,{configurable:!0,value:e});},Ar$3=xr$3.IteratorPrototype,Ir$3=function(){return this},Pr$3=String,Lr$3=TypeError,Rr$3=function(t){if(function(t){return st$4(t)||null===t}(t))return t;throw new Lr$3("Can't set "+Pr$3(t)+" as a prototype")},kr$3=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return b$2(Lt$4(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array;}catch(t){}return function(r,n){return A$3(r),Rr$3(n),st$4(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Nr$3=Ue$4.PROPER,zr$3=Ue$4.CONFIGURABLE,Mr$3=xr$3.IteratorPrototype,_r$3=xr$3.BUGGY_SAFARI_ITERATORS,Cr$3=ct$4("iterator"),Fr$3="keys",Dr$3="values",Br$3="entries",Hr$3=function(){return this},$r$3=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=me$4(Ar$3,{next:Le$4(+!n,r)}),Tr$3(t,o,!1),Ae$4[o]=Ir$3;}(r,e,n);var a,c,f,l=function(t){if(t===o&&y)return y;if(!_r$3&&t&&t in v)return v[t];switch(t){case Fr$3:case Dr$3:case Br$3:return function(){return new r(this,t)}}return function(){return new r(this)}},s=e+" Iterator",d=!1,v=t.prototype,p=v[Cr$3]||v["@@iterator"]||o&&v[o],y=!_r$3&&p||l(o),h="Array"===e&&v.entries||p;if(h&&(a=mr$3(h.call(new t)))!==Object.prototype&&a.next&&(mr$3(a)!==Mr$3&&(kr$3?kr$3(a,Mr$3):lt$4(a[Cr$3])||Ze$4(a,Cr$3,Hr$3)),Tr$3(a,s,!0)),Nr$3&&o===Dr$3&&p&&p.name!==Dr$3&&(zr$3?Re$4(v,"name",Dr$3):(d=!0,y=function(){return St$4(p,this)})),o)if(c={values:l(Dr$3),keys:i?y:l(Fr$3),entries:l(Br$3)},u)for(f in c)(_r$3||d||!(f in v))&&Ze$4(v,f,c[f]);else pr$3({target:e,proto:!0,forced:_r$3||d},c);return v[Cr$3]!==y&&Ze$4(v,Cr$3,y,{name:o}),Ae$4[e]=y,c},Gr$3=function(t,e){return {value:t,done:e}},Vr$3=Gt$4.f,Wr$3="Array Iterator",Ur$3=Ce$4.set,Kr$3=Ce$4.getterFor(Wr$3),Yr$3=$r$3(Array,"Array",(function(t,e){Ur$3(this,{type:Wr$3,target:I$4(t),index:0,kind:e});}),(function(){var t=Kr$3(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Gr$3(void 0,!0);switch(t.kind){case"keys":return Gr$3(r,!1);case"values":return Gr$3(e[r],!1)}return Gr$3([r,e[r]],!1)}),"values"),Xr$3=Ae$4.Arguments=Ae$4.Array;if(Te$4("keys"),Te$4("values"),Te$4("entries"),yt$4&&"values"!==Xr$3.name)try{Vr$3(Xr$3,"name",{value:"values"});}catch(t){}var qr$3={};qr$3[ct$4("toStringTag")]="z";var Jr$3="[object z]"===String(qr$3),Qr$3=ct$4("toStringTag"),Zr$3=Object,tn$4="Arguments"===O$3(function(){return arguments}()),en$4=Jr$3?O$3:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Zr$3(t),Qr$3))?r:tn$4?O$3(e):"Object"===(n=O$3(e))&<$4(e.callee)?"Arguments":n},rn$4=Jr$3?{}.toString:function(){return "[object "+en$4(this)+"]"};Jr$3||Ze$4(Object.prototype,"toString",rn$4,{unsafe:!0});var nn$4=String,on$4=function(t){if("Symbol"===en$4(t))throw new TypeError("Cannot convert a Symbol value to a string");return nn$4(t)},un$4=b$2("".charAt),an$4=b$2("".charCodeAt),cn$4=b$2("".slice),fn$4=function(t){return function(e,r){var n,o,i=on$4(A$3(e)),u=Kt$4(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=an$4(i,u))<55296||n>56319||u+1===a||(o=an$4(i,u+1))<56320||o>57343?t?un$4(i,u):n:t?cn$4(i,u,u+2):o-56320+(n-55296<<10)+65536}},ln$4={codeAt:fn$4(!1),charAt:fn$4(!0)},sn$4=ln$4.charAt,dn$4="String Iterator",vn$4=Ce$4.set,pn$4=Ce$4.getterFor(dn$4);$r$3(String,"String",(function(t){vn$4(this,{type:dn$4,string:on$4(t),index:0});}),(function(){var t,e=pn$4(this),r=e.string,n=e.index;return n>=r.length?Gr$3(void 0,!0):(t=sn$4(r,n),e.index+=t.length,Gr$3(t,!1))}));var yn$4=!v$2((function(){return Object.isExtensible(Object.preventExtensions({}))})),hn$4=function(t,e,r){for(var n in e)Ze$4(t,n,e[n],r);return t},gn$4=b$2([].slice),bn$4=er$3.f,mn$4="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wn$4={f:function(t){return mn$4&&"Window"===O$3(t)?function(t){try{return bn$4(t)}catch(t){return gn$4(mn$4)}}(t):bn$4(I$4(t))}},On$4=v$2((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Sn$4=Object.isExtensible,xn$4=v$2((function(){Sn$4(1);}))||On$4?function(t){return !!st$4(t)&&((!On$4||"ArrayBuffer"!==O$3(t))&&(!Sn$4||Sn$4(t)))}:Sn$4,En$4=L$4((function(t){var e=Gt$4.f,r=!1,n=U$4("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=er$3.f,e=b$2([].splice),o={};o[n]=1,t(o).length&&(er$3.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},pr$3({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wn$4.f}));},fastKey:function(t,e){if(!st$4(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!$$4(t,n)){if(!xn$4(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!$$4(t,n)){if(!xn$4(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return yn$4&&r&&xn$4(t)&&!$$4(t,n)&&i(t),t}};ee$4[n]=!0;})),jn$4=function(t){if("Function"===O$3(t))return b$2(t)},Tn$4=jn$4(jn$4.bind),An$4=function(t,e){return Lt$4(t),void 0===e?t:p$2?Tn$4(t,e):function(){return t.apply(e,arguments)}},In$4=ct$4("iterator"),Pn$4=Array.prototype,Ln$4=ct$4("iterator"),Rn$4=function(t){if(!j$4(t))return Rt$4(t,Ln$4)||Rt$4(t,"@@iterator")||Ae$4[en$4(t)]},kn$4=TypeError,Nn$4=function(t,e,r){var n,o;pt$4(t);try{if(!(n=Rt$4(t,"return"))){if("throw"===e)throw r;return r}n=St$4(n,t);}catch(t){o=!0,n=t;}if("throw"===e)throw r;if(o)throw n;return pt$4(n),r},zn$4=TypeError,Mn$4=function(t,e){this.stopped=t,this.result=e;},_n$4=Mn$4.prototype,Cn$4=function(t,e,r){var n,o,i,u,a,c,f,l,s=r&&r.that,d=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),h=An$4(e,s),g=function(t){return n&&Nn$4(n,"normal",t),new Mn$4(!0,t)},b=function(t){return d?(pt$4(t),y?h(t[0],t[1],g):h(t[0],t[1])):y?h(t,g):h(t)};if(v)n=t.iterator;else if(p)n=t;else {if(!(o=Rn$4(t)))throw new zn$4(It$4(t)+" is not iterable");if(void 0!==(l=o)&&(Ae$4.Array===l||Pn$4[In$4]===l)){for(i=0,u=Qt$4(t);u>i;i++)if((a=b(t[i]))&&Et$4(_n$4,a))return a;return new Mn$4(!1)}n=function(t,e){var r=arguments.length<2?Rn$4(t):e;if(Lt$4(r))return pt$4(St$4(r,t));throw new kn$4(It$4(t)+" is not iterable")}(t,o);}for(c=v?t.next:n.next;!(f=St$4(c,n)).done;){try{a=b(f.value);}catch(t){Nn$4(n,"throw",t);}if("object"==typeof a&&a&&Et$4(_n$4,a))return a}return new Mn$4(!1)},Fn$4=TypeError,Dn$4=function(t,e){if(Et$4(e,t))return t;throw new Fn$4("Incorrect invocation")},Bn$4=ct$4("iterator"),Hn$4=!1;try{var $n$4=0,Gn$4={next:function(){return {done:!!$n$4++}},return:function(){Hn$4=!0;}};Gn$4[Bn$4]=function(){return this},Array.from(Gn$4,(function(){throw 2}));}catch(t){}var Vn$4=Array.isArray||function(t){return "Array"===O$3(t)},Wn$4=function(){},Un$4=xt$4("Reflect","construct"),Kn$4=/^\s*(?:class|function)\b/,Yn$4=b$2(Kn$4.exec),Xn$4=!Kn$4.test(Wn$4),qn$4=function(t){if(!lt$4(t))return !1;try{return Un$4(Wn$4,[],t),!0}catch(t){return !1}},Jn$4=function(t){if(!lt$4(t))return !1;switch(en$4(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Xn$4||!!Yn$4(Kn$4,Je$4(t))}catch(t){return !0}};Jn$4.sham=!0;var Qn$4=!Un$4||v$2((function(){var t;return qn$4(qn$4.call)||!qn$4(Object)||!qn$4((function(){t=!0;}))||t}))?Jn$4:qn$4,Zn$4=ct$4("species"),to$3=Array,eo$3=function(t,e){return new(function(t){var e;return Vn$4(t)&&(e=t.constructor,(Qn$4(e)&&(e===to$3||Vn$4(e.prototype))||st$4(e)&&null===(e=e[Zn$4]))&&(e=void 0)),void 0===e?to$3:e}(t))(0===e?0:e)},ro$3=b$2([].push),no$3=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,l,s){for(var d,v,p=B$4(c),y=E$3(p),h=Qt$4(y),g=An$4(f,l),b=0,m=s||eo$3,w=e?m(c,h):r||u?m(c,0):void 0;h>b;b++)if((a||b in y)&&(v=g(d=y[b],b,p),t))if(e)w[b]=v;else if(v)switch(t){case 3:return !0;case 5:return d;case 6:return b;case 2:ro$3(w,d);}else switch(t){case 4:return !1;case 7:ro$3(w,d);}return i?-1:n||o?o:w}},oo$3={forEach:no$3(0),map:no$3(1),filter:no$3(2),some:no$3(3),every:no$3(4),find:no$3(5),findIndex:no$3(6),filterReject:no$3(7)},io$3=En$4.getWeakData,uo$3=Ce$4.set,ao$3=Ce$4.getterFor,co$3=oo$3.find,fo$3=oo$3.findIndex,lo$3=b$2([].splice),so$3=0,vo$3=function(t){return t.frozen||(t.frozen=new po$3)},po$3=function(){this.entries=[];},yo$3=function(t,e){return co$3(t.entries,(function(t){return t[0]===e}))};po$3.prototype={get:function(t){var e=yo$3(this,t);if(e)return e[1]},has:function(t){return !!yo$3(this,t)},set:function(t,e){var r=yo$3(this,t);r?r[1]=e:this.entries.push([t,e]);},delete:function(t){var e=fo$3(this.entries,(function(e){return e[0]===t}));return ~e&&lo$3(this.entries,e,1),!!~e}};var ho$3,go$3={getConstructor:function(t,e,r,n){var o=t((function(t,o){Dn$4(t,i),uo$3(t,{type:e,id:so$3++,frozen:null}),j$4(o)||Cn$4(o,t[n],{that:t,AS_ENTRIES:r});})),i=o.prototype,u=ao$3(e),a=function(t,e,r){var n=u(t),o=io$3(pt$4(e),!0);return !0===o?vo$3(n).set(e,r):o[n.id]=r,t};return hn$4(i,{delete:function(t){var e=u(this);if(!st$4(t))return !1;var r=io$3(t);return !0===r?vo$3(e).delete(t):r&&$$4(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!st$4(t))return !1;var r=io$3(t);return !0===r?vo$3(e).has(t):r&&$$4(r,e.id)}}),hn$4(i,r?{get:function(t){var e=u(this);if(st$4(t)){var r=io$3(t);if(!0===r)return vo$3(e).get(t);if(r)return r[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},bo$3=Ce$4.enforce,mo$3=Object,wo$3=Array.isArray,Oo$3=mo$3.isExtensible,So$3=mo$3.isFrozen,xo$3=mo$3.isSealed,Eo$3=mo$3.freeze,jo$3=mo$3.seal,To$3=!z$3.ActiveXObject&&"ActiveXObject"in z$3,Ao$3=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Io$3=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=z$3[t],a=u&&u.prototype,c=u,f={},l=function(t){var e=b$2(a[t]);Ze$4(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!st$4(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!st$4(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!st$4(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this});};if(dr$3(t,!lt$4(u)||!(o||a.forEach&&!v$2((function(){(new u).entries().next();})))))c=r.getConstructor(e,t,n,i),En$4.enable();else if(dr$3(t,!0)){var s=new c,d=s[i](o?{}:-0,1)!==s,p=v$2((function(){s.has(1);})),y=function(t,e){try{if(!e&&!Hn$4)return !1}catch(t){return !1}var r=!1;try{var n={};n[Bn$4]=function(){return {next:function(){return {done:r=!0}}}},t(n);}catch(t){}return r}((function(t){new u(t);})),h=!o&&v$2((function(){for(var t=new u,e=5;e--;)t[i](e,e);return !t.has(-0)}));y||((c=e((function(t,e){Dn$4(t,a);var r=function(t,e,r){var n,o;return kr$3&<$4(n=e.constructor)&&n!==r&&st$4(o=n.prototype)&&o!==r.prototype&&kr$3(t,o),t}(new u,t,c);return j$4(e)||Cn$4(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(p||h)&&(l("delete"),l("has"),n&&l("get")),(h||d)&&l(i),o&&a.clear&&delete a.clear;}return f[t]=c,pr$3({global:!0,constructor:!0,forced:c!==u},f),Tr$3(c,t),o||r.setStrong(c,t,n),c}("WeakMap",Ao$3,go$3),Po$3=Io$3.prototype,Lo$3=b$2(Po$3.set);if(Pe$4)if(To$3){ho$3=go$3.getConstructor(Ao$3,"WeakMap",!0),En$4.enable();var Ro$3=b$2(Po$3.delete),ko$3=b$2(Po$3.has),No$3=b$2(Po$3.get);hn$4(Po$3,{delete:function(t){if(st$4(t)&&!Oo$3(t)){var e=bo$3(this);return e.frozen||(e.frozen=new ho$3),Ro$3(this,t)||e.frozen.delete(t)}return Ro$3(this,t)},has:function(t){if(st$4(t)&&!Oo$3(t)){var e=bo$3(this);return e.frozen||(e.frozen=new ho$3),ko$3(this,t)||e.frozen.has(t)}return ko$3(this,t)},get:function(t){if(st$4(t)&&!Oo$3(t)){var e=bo$3(this);return e.frozen||(e.frozen=new ho$3),ko$3(this,t)?No$3(this,t):e.frozen.get(t)}return No$3(this,t)},set:function(t,e){if(st$4(t)&&!Oo$3(t)){var r=bo$3(this);r.frozen||(r.frozen=new ho$3),ko$3(this,t)?Lo$3(this,t,e):r.frozen.set(t,e);}else Lo$3(this,t,e);return this}});}else yn$4&&v$2((function(){var t=Eo$3([]);return Lo$3(new Io$3,t,1),!So$3(t)}))&&hn$4(Po$3,{set:function(t,e){var r;return wo$3(t)&&(So$3(t)?r=Eo$3:xo$3(t)&&(r=jo$3)),Lo$3(this,t,e),r&&r(t),this}});var zo$3={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},Mo$3=mt$4("span").classList,_o$3=Mo$3&&Mo$3.constructor&&Mo$3.constructor.prototype,Co$3=_o$3===Object.prototype?void 0:_o$3,Fo$3=ct$4("iterator"),Do$3=Yr$3.values,Bo$3=function(t,e){if(t){if(t[Fo$3]!==Do$3)try{Re$4(t,Fo$3,Do$3);}catch(e){t[Fo$3]=Do$3;}if(Tr$3(t,e,!0),zo$3[e])for(var r in Yr$3)if(t[r]!==Yr$3[r])try{Re$4(t,r,Yr$3[r]);}catch(e){t[r]=Yr$3[r];}}};for(var Ho$3 in zo$3)Bo$3(z$3[Ho$3]&&z$3[Ho$3].prototype,Ho$3);Bo$3(Co$3,"DOMTokenList");var $o$3=new WeakMap;function Go$3(t){var e,r=t.children||[],o=r.length;if(0===o)return "";for(var i=0;i<o&&!e;i++){var u=r[i];Text.isText(u)&&(e=u);}return null==e?"":e.color||""}var Vo$3={type:"list-item",renderElem:function(t,r,n){$o$3.set(t,n);var u=t,a=u.level,f=void 0===a?0:a,l=u.ordered,s={margin:"5px 0 5px "+20*f+"px"},d="";if(void 0!==l&&l){var v=function(t,r){var n=r,u=n.type,a=n.level,c=void 0===a?0:a,f=n.ordered,l=void 0!==f&&f,s=1,d=r,v=Ic$2.findPath(t,d);if(0===v[0])return 1;for(;v[0]>0;){var p=Path.previous(v),y=Editor.node(t,p);if(null==y)break;var h=y[0],g=h.level,b=void 0===g?0:g,m=h.type,w=h.ordered;if(m!==u)break;if(b<c)break;if(b===c){if(w!==l)break;s++;}d=h,v=p;}return s}(n,t);d=v+".";}else d=function(t){void 0===t&&(t=0);var e="";switch(t){case 0:e="•";break;case 1:e="◦";break;default:e="▪";}return e}(f);var p=Go$3(t);return jsx("div",{style:s},jsx("span",{contentEditable:!1,style:{marginRight:"0.5em",color:p},"data-w-e-reserve":!0},d),jsx("span",null,r))}},Wo$3=function(t,e){return Wo$3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);},Wo$3(t,e)};function Uo$3(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}Wo$3(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}function Ko$3(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yo$3(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value);}catch(t){o={error:t};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error}}return u}function Xo$3(t,r,n){for(var u=r.type,a=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);}return r}(r,["type"]),c=void 0!==n?n:a.level||0,f=Ic$2.findPath(t,r),l=f;;){if(0===l.length||0===f[f.length-1])return null;l=Path.previous(l);var s=Editor.node(t,l);if(!s)return null;var d=Yo$3(s,1)[0],v=d.level,p=void 0===v?0:v;if(Ic$2.getNodeType(d)!==u)return null;if(p===c)return d}}function qo$3(t,e,r){var n=Xo$3(t,e,r);return !!n&&n.ordered===e.ordered}function Jo$3(t){return Editor.nodes(t,{at:t.selection||void 0,match:function(r){return 1===Ic$2.findPath(t,r).length}})}"function"==typeof SuppressedError&&SuppressedError;var Qo$3=te$4.includes,Zo$3=v$2((function(){return !Array(1).includes()}));pr$3({target:"Array",proto:!0,forced:Zo$3},{includes:function(t){return Qo$3(this,t,arguments.length>1?arguments[1]:void 0)}}),Te$4("includes");var ti$3,ei$3,ri$3=function(){var t=pt$4(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ni$3=z$3.RegExp,oi$3=v$2((function(){var t=ni$3("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),ii$3=oi$3||v$2((function(){return !ni$3("a","y").sticky})),ui$3={BROKEN_CARET:oi$3||v$2((function(){var t=ni$3("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:ii$3,UNSUPPORTED_Y:oi$3},ai$3=z$3.RegExp,ci$3=v$2((function(){var t=ai$3(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),fi$3=z$3.RegExp,li$3=v$2((function(){var t=fi$3("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),si$3=Ce$4.get,di$3=F$4("native-string-replace",String.prototype.replace),vi$3=RegExp.prototype.exec,pi$3=vi$3,yi$3=b$2("".charAt),hi$3=b$2("".indexOf),gi$3=b$2("".replace),bi$3=b$2("".slice),mi$3=(ei$3=/b*/g,St$4(vi$3,ti$3=/a/,"a"),St$4(vi$3,ei$3,"a"),0!==ti$3.lastIndex||0!==ei$3.lastIndex),wi$3=ui$3.BROKEN_CARET,Oi$3=void 0!==/()??/.exec("")[1];(mi$3||Oi$3||wi$3||ci$3||li$3)&&(pi$3=function(t){var e,r,n,o,i,u,a,c=this,f=si$3(c),l=on$4(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,e=St$4(pi$3,s,l),c.lastIndex=s.lastIndex,e;var d=f.groups,v=wi$3&&c.sticky,p=St$4(ri$3,c),y=c.source,h=0,g=l;if(v&&(p=gi$3(p,"y",""),-1===hi$3(p,"g")&&(p+="g"),g=bi$3(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==yi$3(l,c.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,h++),r=new RegExp("^(?:"+y+")",p)),Oi$3&&(r=new RegExp("^"+y+"$(?!\\s)",p)),mi$3&&(n=c.lastIndex),o=St$4(vi$3,v?r:c,g),v?o?(o.input=bi$3(o.input,h),o[0]=bi$3(o[0],h),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:mi$3&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Oi$3&&o&&o.length>1&&St$4(di$3,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=u=me$4(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var Si$3=pi$3;pr$3({target:"RegExp",proto:!0,forced:/./.exec!==Si$3},{exec:Si$3});var xi$3=function(){function t(){this.type="list-item",this.tag="button";}return t.prototype.getListNode=function(t){var r=this.type;return Ic$2.getSelectedNodeByType(t,r)},t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){var e=this.getListNode(t);if(null==e)return !1;var r=e.ordered;return (void 0!==r&&r)===this.ordered},t.prototype.isDisabled=function(t){return null==t.selection||!!Ic$2.getSelectedElems(t).some((function(e){if(Editor.isVoid(t,e)&&Editor.isBlock(t,e))return !0;var r=e.type;return !!["pre","code","table"].includes(r)||void 0}))},t.prototype.exec=function(t,e){this.isActive(t)?Transforms.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):Transforms.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0});},t}(),Ei$3=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!1,e.title=Wp$1("listModule.unOrderedList"),e.iconSvg='<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>',e}return Uo$3(e,t),e}(xi$3),ji$3=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ordered=!0,e.title=Wp$1("listModule.orderedList"),e.iconSvg='<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>',e}return Uo$3(e,t),e}(xi$3),Ti$3={key:"bulletedList",factory:function(){return new Ei$3}},Ai$3={key:"numberedList",factory:function(){return new ji$3}};var Ii$3=[];var Pi$3,Li$3={type:"list-item",elemToHtml:function(t,r){var n="",u="",a=t.ordered,c=void 0!==a&&a?"ol":"ul",f=function(t){var r=$o$3.get(t);if(null==r)return 0;var n=t,u=n.type,a=n.ordered,c=void 0!==a&&a,f=n.level,l=void 0===f?0:f,s=Ic$2.findPath(r,t);if(0===s[0])return l+1;var d=Path.previous(s),v=Editor.node(r,d);if(!v)return 0;var p=Yo$3(v,1)[0];if(Ic$2.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?l-m:m>l?qo$3(r,t)?0:1:m===l?g===c?0:1:0}(t);if(f>0)for(var l=0;l<f;l++)n+="<"+c+">",Ii$3.push(c);var s=function(t){var r=$o$3.get(t);if(null==r)return 0;var n=t,u=n.type,a=n.ordered,c=void 0!==a&&a,f=n.level,l=void 0===f?0:f,s=Ic$2.findPath(r,t);if(s[0]===r.children.length-1)return l+1;var d=Path.next(s),v=Editor.node(r,d);if(!v)return 0;var p=Yo$3(v,1)[0];if(Ic$2.getNodeType(p)!==u)return l+1;var y=p,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?qo$3(r,p)?l-m:l-m+1:m>l?0:m===l?g===c?0:1:0}(t);if(s>0)for(l=0;l<s;l++){u+="</"+Ii$3.pop()+">";}var d=Go$3(t);return {html:"<li"+(d?' style="color:'+d+'"':"")+">"+r+"</li>",prefix:n,suffix:u}}},Ri$3=ct$4("species"),ki$3=oo$3.filter,Ni$3=(Pi$3="filter",et$4>=51||!v$2((function(){var t=[];return (t.constructor={})[Ri$3]=function(){return {foo:1}},1!==t[Pi$3](Boolean).foo})));pr$3({target:"Array",proto:!0,forced:!Ni$3},{filter:function(t){return ki$3(this,t,arguments.length>1?arguments[1]:void 0)}});var zi$3=TypeError,Mi$3=function(t){if(t>9007199254740991)throw zi$3("Maximum allowed index exceeded");return t},_i$3=function(t,e,r,n,o,i,u,a){for(var c,f,l=o,s=0,d=!!u&&An$4(u,a);s<n;)s in r&&(c=d?d(r[s],s,e):r[s],i>0&&Vn$4(c)?(f=Qt$4(c),l=_i$3(t,e,c,f,l,i-1)-1):(Mi$3(l+1),t[l]=c),l++),s++;return l},Ci$3=_i$3;pr$3({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=B$4(this),r=Qt$4(e),n=eo$3(e,0);return n.length=Ci$3(n,e,e,r,0,void 0===t?1:Kt$4(t)),n}}),Te$4("flat");var Fi$3=Function.prototype,Di$3=Fi$3.apply,Bi$3=Fi$3.call,Hi$3="object"==typeof Reflect&&Reflect.apply||(p$2?Bi$3.bind(Di$3):function(){return Bi$3.apply(Di$3,arguments)}),$i$3=ct$4("species"),Gi$3=RegExp.prototype,Vi$3=ln$4.charAt,Wi$3=function(t,e,r){return e+(r?Vi$3(t,e).length:1)},Ui$3=Math.floor,Ki$3=b$2("".charAt),Yi$3=b$2("".replace),Xi$3=b$2("".slice),qi$3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ji$3=/\$([$&'`]|\d{1,2})/g,Qi$3=function(t,e,r,n,o,i){var u=r+t.length,a=n.length,c=Ji$3;return void 0!==o&&(o=B$4(o),c=qi$3),Yi$3(i,c,(function(i,c){var f;switch(Ki$3(c,0)){case"$":return "$";case"&":return t;case"`":return Xi$3(e,0,r);case"'":return Xi$3(e,u);case"<":f=o[Xi$3(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>a){var s=Ui$3(l/10);return 0===s?i:s<=a?void 0===n[s-1]?Ki$3(c,1):n[s-1]+Ki$3(c,1):i}f=n[l-1];}return void 0===f?"":f}))},Zi$3=TypeError,tu$3=function(t,e){var r=t.exec;if(lt$4(r)){var n=St$4(r,t,e);return null!==n&&pt$4(n),n}if("RegExp"===O$3(t))return St$4(Si$3,t,e);throw new Zi$3("RegExp#exec called on incompatible receiver")},eu$3=ct$4("replace"),ru$3=Math.max,nu$3=Math.min,ou$3=b$2([].concat),iu$3=b$2([].push),uu$3=b$2("".indexOf),au$3=b$2("".slice),cu$3="$0"==="a".replace(/./,"$0"),fu$3=!!/./[eu$3]&&""===/./[eu$3]("a","$0");function lu$3(t){return t.length?t[0].tagName.toLowerCase():""}!function(t,e,r,n){var o=ct$4(t),i=!v$2((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!v$2((function(){var e=!1,r=/a/;return "split"===t&&((r={}).constructor={},r.constructor[$i$3]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!u||r){var a=/./[o],c=e(o,""[t],(function(t,e,r,n,o){var u=e.exec;return u===Si$3||u===Gi$3.exec?i&&!o?{done:!0,value:St$4(a,e,r,n)}:{done:!0,value:St$4(t,r,e,n)}:{done:!1}}));Ze$4(String.prototype,t,c[0]),Ze$4(Gi$3,o,c[1]);}n&&Re$4(Gi$3[o],"sham",!0);}("replace",(function(t,e,r){var n=fu$3?"$":"$0";return [function(t,r){var n=A$3(this),o=j$4(t)?void 0:Rt$4(t,eu$3);return o?St$4(o,t,n,r):St$4(e,on$4(n),t,r)},function(t,o){var i=pt$4(this),u=on$4(t);if("string"==typeof o&&-1===uu$3(o,n)&&-1===uu$3(o,"$<")){var a=r(e,i,u,o);if(a.done)return a.value}var c=lt$4(o);c||(o=on$4(o));var f,l=i.global;l&&(f=i.unicode,i.lastIndex=0);for(var s,d=[];null!==(s=tu$3(i,u))&&(iu$3(d,s),l);){""===on$4(s[0])&&(i.lastIndex=Wi$3(u,Jt$4(i.lastIndex),f));}for(var v,p="",y=0,h=0;h<d.length;h++){for(var g,b=on$4((s=d[h])[0]),m=ru$3(nu$3(Kt$4(s.index),u.length),0),w=[],O=1;O<s.length;O++)iu$3(w,void 0===(v=s[O])?v:String(v));var S=s.groups;if(c){var x=ou$3([b],w,m,u);void 0!==S&&iu$3(x,S),g=on$4(Hi$3(o,void 0,x));}else g=Qi$3(b,u,m,w,S,o);m>=y&&(p+=au$3(u,y,m)+g,y=m+b.length);}return p+au$3(u,y)}]}),!!v$2((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!cu$3||fu$3),pr$3({global:!0,forced:z$3.globalThis!==z$3},{globalThis:z$3}),append&&($$6.fn.append=append),attr&&($$6.fn.attr=attr),parent&&($$6.fn.parent=parent);var su$3={renderElems:[Vo$3],editorPlugin:function(t){var r=t.deleteBackward,n=t.handleTab,o=t.normalizeNode,c=t.insertBreak,f=t;return f.insertBreak=function(){var r=Yo$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"list-item")},universal:!0}),1)[0];return r?""!==r[0].children[0].text?c():void Transforms.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0}):c()},f.deleteBackward=function(n){var o=f.selection;if(null!=o)if(Range.isExpanded(o))r(n);else {var i=Ic$2.getSelectedNodeByType(f,"list-item");if(null!=i)if(0!==o.focus.offset)r(n);else {var c=i,l=c.level,s=void 0===l?0:l,d=c.ordered,v=void 0!==d&&d;if(s>0){var p=Xo$3(t,i,s-1);p&&p.ordered!==v?Transforms.setNodes(f,{level:s-1,ordered:!v}):Transforms.setNodes(f,{level:s-1});}else Transforms.setNodes(f,{type:"paragraph",ordered:void 0,level:void 0});}else r(n);}else r(n);},f.handleTab=function(){var t,r,o,i,c=f.selection;if(null!=c){if(Range.isCollapsed(c)){var l=Ic$2.getSelectedNodeByType(f,"list-item");if(null==l)return void n();if(0===c.focus.offset){var s=l.level,d=void 0===s?0:s;return void Transforms.setNodes(f,{level:d+1})}}if(Range.isExpanded(c)){var v=0,p=!1;try{for(var y=Ko$3(Jo$3(f)),h=y.next();!h.done;h=y.next()){var g=Yo$3(h.value,1)[0];"list-item"===Ic$2.getNodeType(g)?v++:p=!0;}}catch(e){t={error:e};}finally{try{h&&!h.done&&(r=y.return)&&r.call(y);}finally{if(t)throw t.error}}if(p||v<=1)return void n();try{for(var b=Ko$3(Jo$3(f)),m=b.next();!m.done;m=b.next()){var w=Yo$3(m.value,2),O=(g=w[0],w[1]),S=g.level;d=void 0===S?0:S;Transforms.setNodes(f,{level:d+1},{at:O});}}catch(t){o={error:t};}finally{try{m&&!m.done&&(i=b.return)&&i.call(b);}finally{if(o)throw o.error}}}else n();}else n();},f.normalizeNode=function(t){var r=Yo$3(t,2),n=r[0],i=r[1],a=Ic$2.getNodeType(n);return "bulleted-list"!==a&&"numbered-list"!==a||Transforms.unwrapNodes(f,{at:i}),o([n,i])},f},menus:[Ti$3,Ai$3],elemsToHtml:[Li$3],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(t,e,r){return e.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(t,e,r){var o=$$6(t);0===(e=e.filter((function(t){return !!Text.isText(t)||!!r.isInline(t)}))).length&&(e=[{text:o.text().replace(/\s+/gm," ")}]);var i=function(t){return "ol"===lu$3(t.parent())}(o),u=function(t){for(var e=0,r=t.parent(),n=lu$3(r);"ul"===n||"ol"===n;)n=lu$3(r=r.parent()),e++;return e-1}(o);return {type:"list-item",ordered:i,level:u,children:e}}}]};
|
|
17551
17551
|
|
|
17552
|
-
Fp$1("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),Fp$1("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var j$3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P$3(t){var e={exports:{}};return t(e,e.exports),e.exports}var V$3,I$3,R$3=function(t){return t&&t.Math===Math&&t},L$3=R$3("object"==typeof globalThis&&globalThis)||R$3("object"==typeof window&&window)||R$3("object"==typeof self&&self)||R$3("object"==typeof j$3&&j$3)||R$3("object"==typeof j$3&&j$3)||function(){return this}()||Function("return this")(),D$3=function(t){try{return !!t()}catch(t){return !0}},B$3=!D$3((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),W$3=!D$3((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),_$3=Function.prototype.call,F$3=W$3?_$3.bind(_$3):function(){return _$3.apply(_$3,arguments)},$$3={}.propertyIsEnumerable,q$3=Object.getOwnPropertyDescriptor,G$3={f:q$3&&!$$3.call({1:2},1)?function(t){var e=q$3(this,t);return !!e&&e.enumerable}:$$3},U$3=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},X$3=Function.prototype,K$3=X$3.call,Y$3=W$3&&X$3.bind.bind(K$3,K$3),J$3=W$3?Y$3:function(t){return function(){return K$3.apply(t,arguments)}},Q$3=J$3({}.toString),Z$3=J$3("".slice),tt$3=function(t){return Z$3(Q$3(t),8,-1)},et$3=Object,rt$3=J$3("".split),nt$3=D$3((function(){return !et$3("z").propertyIsEnumerable(0)}))?function(t){return "String"===tt$3(t)?rt$3(t,""):et$3(t)}:et$3,ot$3=function(t){return null==t},it$3=TypeError,at$3=function(t){if(ot$3(t))throw new it$3("Can't call method on "+t);return t},lt$3=function(t){return nt$3(at$3(t))},ut$3="object"==typeof document&&document.all,ct$3=void 0===ut$3&&void 0!==ut$3?function(t){return "function"==typeof t||t===ut$3}:function(t){return "function"==typeof t},st$3=function(t){return "object"==typeof t?null!==t:ct$3(t)},ft$3=function(t,e){return arguments.length<2?(r=L$3[t],ct$3(r)?r:void 0):L$3[t]&&L$3[t][e];var r;},dt$3=J$3({}.isPrototypeOf),vt$3=L$3.navigator,ht$3=vt$3&&vt$3.userAgent,pt$3=ht$3?String(ht$3):"",yt$3=L$3.process,gt$3=L$3.Deno,bt$3=yt$3&&yt$3.versions||gt$3&>$3.version,mt$3=bt$3&&bt$3.v8;mt$3&&(I$3=(V$3=mt$3.split("."))[0]>0&&V$3[0]<4?1:+(V$3[0]+V$3[1])),!I$3&&pt$3&&(!(V$3=pt$3.match(/Edge\/(\d+)/))||V$3[1]>=74)&&(V$3=pt$3.match(/Chrome\/(\d+)/))&&(I$3=+V$3[1]);var wt$3=I$3,xt$3=L$3.String,St$3=!!Object.getOwnPropertySymbols&&!D$3((function(){var t=Symbol("symbol detection");return !xt$3(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt$3&&wt$3<41})),zt$3=St$3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt$3=Object,Tt$3=zt$3?function(t){return "symbol"==typeof t}:function(t){var e=ft$3("Symbol");return ct$3(e)&&dt$3(e.prototype,Mt$3(t))},Ot$3=String,Nt$3=function(t){try{return Ot$3(t)}catch(t){return "Object"}},Et$3=TypeError,kt$3=function(t){if(ct$3(t))return t;throw new Et$3(Nt$3(t)+" is not a function")},At$3=function(t,e){var r=t[e];return ot$3(r)?void 0:kt$3(r)},Ht$3=TypeError,Ct$3=Object.defineProperty,jt$3=function(t,e){try{Ct$3(L$3,t,{value:e,configurable:!0,writable:!0});}catch(r){L$3[t]=e;}return e},Pt$3=P$3((function(t){var e="__core-js_shared__",r=t.exports=L$3[e]||jt$3(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),Vt$3=function(t,e){return Pt$3[t]||(Pt$3[t]=e||{})},It$3=Object,Rt$3=function(t){return It$3(at$3(t))},Lt$3=J$3({}.hasOwnProperty),Dt$3=Object.hasOwn||function(t,e){return Lt$3(Rt$3(t),e)},Bt$3=0,Wt$3=Math.random(),_t$3=J$3(1..toString),Ft$3=function(t){return "Symbol("+(void 0===t?"":t)+")_"+_t$3(++Bt$3+Wt$3,36)},$t$3=L$3.Symbol,qt$3=Vt$3("wks"),Gt$3=zt$3?$t$3.for||$t$3:$t$3&&$t$3.withoutSetter||Ft$3,Ut$3=function(t){return Dt$3(qt$3,t)||(qt$3[t]=St$3&&Dt$3($t$3,t)?$t$3[t]:Gt$3("Symbol."+t)),qt$3[t]},Xt$3=TypeError,Kt$3=Ut$3("toPrimitive"),Yt$3=function(t,e){if(!st$3(t)||Tt$3(t))return t;var r,n=At$3(t,Kt$3);if(n){if(void 0===e&&(e="default"),r=F$3(n,t,e),!st$3(r)||Tt$3(r))return r;throw new Xt$3("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&ct$3(r=t.toString)&&!st$3(n=F$3(r,t)))return n;if(ct$3(r=t.valueOf)&&!st$3(n=F$3(r,t)))return n;if("string"!==e&&ct$3(r=t.toString)&&!st$3(n=F$3(r,t)))return n;throw new Ht$3("Can't convert object to primitive value")}(t,e)},Jt$3=function(t){var e=Yt$3(t,"string");return Tt$3(e)?e:e+""},Qt$3=L$3.document,Zt$3=st$3(Qt$3)&&st$3(Qt$3.createElement),te$3=function(t){return Zt$3?Qt$3.createElement(t):{}},ee$3=!B$3&&!D$3((function(){return 7!==Object.defineProperty(te$3("div"),"a",{get:function(){return 7}}).a})),re$3=Object.getOwnPropertyDescriptor,ne$3={f:B$3?re$3:function(t,e){if(t=lt$3(t),e=Jt$3(e),ee$3)try{return re$3(t,e)}catch(t){}if(Dt$3(t,e))return U$3(!F$3(G$3.f,t,e),t[e])}},oe$3=B$3&&D$3((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ie$3=String,ae$3=TypeError,le$3=function(t){if(st$3(t))return t;throw new ae$3(ie$3(t)+" is not an object")},ue$3=TypeError,ce$3=Object.defineProperty,se$3=Object.getOwnPropertyDescriptor,fe$3="enumerable",de$3="configurable",ve$3="writable",he$3={f:B$3?oe$3?function(t,e,r){if(le$3(t),e=Jt$3(e),le$3(r),"function"==typeof t&&"prototype"===e&&"value"in r&&ve$3 in r&&!r[ve$3]){var n=se$3(t,e);n&&n[ve$3]&&(t[e]=r.value,r={configurable:de$3 in r?r[de$3]:n[de$3],enumerable:fe$3 in r?r[fe$3]:n[fe$3],writable:!1});}return ce$3(t,e,r)}:ce$3:function(t,e,r){if(le$3(t),e=Jt$3(e),le$3(r),ee$3)try{return ce$3(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new ue$3("Accessors not supported");return "value"in r&&(t[e]=r.value),t}},pe$3=B$3?function(t,e,r){return he$3.f(t,e,U$3(1,r))}:function(t,e,r){return t[e]=r,t},ye$3=Function.prototype,ge$3=B$3&&Object.getOwnPropertyDescriptor,be$3=Dt$3(ye$3,"name"),me$3={EXISTS:be$3,PROPER:be$3&&"something"===function(){}.name,CONFIGURABLE:be$3&&(!B$3||B$3&&ge$3(ye$3,"name").configurable)},we$3=J$3(Function.toString);ct$3(Pt$3.inspectSource)||(Pt$3.inspectSource=function(t){return we$3(t)});var xe$3,Se$3,ze$3,Me$3=Pt$3.inspectSource,Te$3=L$3.WeakMap,Oe$3=ct$3(Te$3)&&/native code/.test(String(Te$3)),Ne$3=Vt$3("keys"),Ee$3=function(t){return Ne$3[t]||(Ne$3[t]=Ft$3(t))},ke$3={},Ae$3="Object already initialized",He$3=L$3.TypeError,Ce$3=L$3.WeakMap;if(Oe$3||Pt$3.state){var je$3=Pt$3.state||(Pt$3.state=new Ce$3);je$3.get=je$3.get,je$3.has=je$3.has,je$3.set=je$3.set,xe$3=function(t,e){if(je$3.has(t))throw new He$3(Ae$3);return e.facade=t,je$3.set(t,e),e},Se$3=function(t){return je$3.get(t)||{}},ze$3=function(t){return je$3.has(t)};}else {var Pe$3=Ee$3("state");ke$3[Pe$3]=!0,xe$3=function(t,e){if(Dt$3(t,Pe$3))throw new He$3(Ae$3);return e.facade=t,pe$3(t,Pe$3,e),e},Se$3=function(t){return Dt$3(t,Pe$3)?t[Pe$3]:{}},ze$3=function(t){return Dt$3(t,Pe$3)};}var Ve$3={set:xe$3,get:Se$3,has:ze$3,enforce:function(t){return ze$3(t)?Se$3(t):xe$3(t,{})},getterFor:function(t){return function(e){var r;if(!st$3(e)||(r=Se$3(e)).type!==t)throw new He$3("Incompatible receiver, "+t+" required");return r}}},Ie$3=P$3((function(t){var e=me$3.CONFIGURABLE,r=Ve$3.enforce,n=Ve$3.get,o=String,i=Object.defineProperty,a=J$3("".slice),l=J$3("".replace),u=J$3([].join),c=B$3&&!D$3((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),f=t.exports=function(t,n,f){"Symbol("===a(o(n),0,7)&&(n="["+l(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(n="get "+n),f&&f.setter&&(n="set "+n),(!Dt$3(t,"name")||e&&t.name!==n)&&(B$3?i(t,"name",{value:n,configurable:!0}):t.name=n),c&&f&&Dt$3(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&Dt$3(f,"constructor")&&f.constructor?B$3&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=r(t);return Dt$3(d,"source")||(d.source=u(s,"string"==typeof n?n:"")),t};Function.prototype.toString=f((function(){return ct$3(this)&&n(this).source||Me$3(this)}),"toString");})),Re$3=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(ct$3(r)&&Ie$3(r,i,n),n.global)o?t[e]=r:jt$3(e,r);else {try{n.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=r:he$3.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable});}return t},Le$3=Math.ceil,De$3=Math.floor,Be$3=Math.trunc||function(t){var e=+t;return (e>0?De$3:Le$3)(e)},We$3=function(t){var e=+t;return e!=e||0===e?0:Be$3(e)},_e$3=Math.max,Fe$3=Math.min,$e$3=function(t,e){var r=We$3(t);return r<0?_e$3(r+e,0):Fe$3(r,e)},qe$3=Math.min,Ge$3=function(t){var e=We$3(t);return e>0?qe$3(e,9007199254740991):0},Ue$3=function(t){return Ge$3(t.length)},Xe$3=function(t){return function(e,r,n){var o=lt$3(e),i=Ue$3(o);if(0===i)return !t&&-1;var a,l=$e$3(n,i);if(t&&r!=r){for(;i>l;)if((a=o[l++])!=a)return !0}else for(;i>l;l++)if((t||l in o)&&o[l]===r)return t||l||0;return !t&&-1}},Ke$3={includes:Xe$3(!0),indexOf:Xe$3(!1)},Ye$3=Ke$3.indexOf,Je$3=J$3([].push),Qe$3=function(t,e){var r,n=lt$3(t),o=0,i=[];for(r in n)!Dt$3(ke$3,r)&&Dt$3(n,r)&&Je$3(i,r);for(;e.length>o;)Dt$3(n,r=e[o++])&&(~Ye$3(i,r)||Je$3(i,r));return i},Ze$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tr$2=Ze$3.concat("length","prototype"),er$2={f:Object.getOwnPropertyNames||function(t){return Qe$3(t,tr$2)}},rr$2={f:Object.getOwnPropertySymbols},nr$2=J$3([].concat),or$2=ft$3("Reflect","ownKeys")||function(t){var e=er$2.f(le$3(t)),r=rr$2.f;return r?nr$2(e,r(t)):e},ir$2=function(t,e,r){for(var n=or$2(e),o=he$3.f,i=ne$3.f,a=0;a<n.length;a++){var l=n[a];Dt$3(t,l)||r&&Dt$3(r,l)||o(t,l,i(e,l));}},ar$2=/#|\.prototype\./,lr$2=function(t,e){var r=cr$2[ur$2(t)];return r===fr$2||r!==sr$2&&(ct$3(e)?D$3(e):!!e)},ur$2=lr$2.normalize=function(t){return String(t).replace(ar$2,".").toLowerCase()},cr$2=lr$2.data={},sr$2=lr$2.NATIVE="N",fr$2=lr$2.POLYFILL="P",dr$2=lr$2,vr$2=ne$3.f,hr$2=function(t,e){var r,n,o,i,a,l=t.target,u=t.global,c=t.stat;if(r=u?L$3:c?L$3[l]||jt$3(l,{}):L$3[l]&&L$3[l].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=vr$2(r,n))&&a.value:r[n],!dr$2(u?n:l+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ir$2(i,o);}(t.sham||o&&o.sham)&&pe$3(i,"sham",!0),Re$3(r,n,i,t);}},pr$2=Array.isArray||function(t){return "Array"===tt$3(t)},yr$2={};yr$2[Ut$3("toStringTag")]="z";var gr$2="[object z]"===String(yr$2),br$2=Ut$3("toStringTag"),mr$2=Object,wr$2="Arguments"===tt$3(function(){return arguments}()),xr$2=gr$2?tt$3:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=mr$2(t),br$2))?r:wr$2?tt$3(e):"Object"===(n=tt$3(e))&&ct$3(e.callee)?"Arguments":n},Sr$2=function(){},zr$2=ft$3("Reflect","construct"),Mr$2=/^\s*(?:class|function)\b/,Tr$2=J$3(Mr$2.exec),Or$2=!Mr$2.test(Sr$2),Nr$2=function(t){if(!ct$3(t))return !1;try{return zr$2(Sr$2,[],t),!0}catch(t){return !1}},Er$2=function(t){if(!ct$3(t))return !1;switch(xr$2(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Or$2||!!Tr$2(Mr$2,Me$3(t))}catch(t){return !0}};Er$2.sham=!0;var kr$2=!zr$2||D$3((function(){var t;return Nr$2(Nr$2.call)||!Nr$2(Object)||!Nr$2((function(){t=!0;}))||t}))?Er$2:Nr$2,Ar$2=function(t,e,r){B$3?he$3.f(t,e,U$3(0,r)):t[e]=r;},Hr$2=Ut$3("species"),Cr$2=function(t){return wt$3>=51||!D$3((function(){var e=[];return (e.constructor={})[Hr$2]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},jr$2=J$3([].slice),Pr$2=Cr$2("slice"),Vr$2=Ut$3("species"),Ir$2=Array,Rr$2=Math.max;hr$2({target:"Array",proto:!0,forced:!Pr$2},{slice:function(t,e){var r,n,o,i=lt$3(this),a=Ue$3(i),l=$e$3(t,a),u=$e$3(void 0===e?a:e,a);if(pr$2(i)&&(r=i.constructor,(kr$2(r)&&(r===Ir$2||pr$2(r.prototype))||st$3(r)&&null===(r=r[Vr$2]))&&(r=void 0),r===Ir$2||void 0===r))return jr$2(i,l,u);for(n=new(void 0===r?Ir$2:r)(Rr$2(u-l,0)),o=0;l<u;l++,o++)l in i&&Ar$2(n,o,i[l]);return n.length=o,n}});var Lr$2,Dr$2=String,Br$2=function(t){if("Symbol"===xr$2(t))throw new TypeError("Cannot convert a Symbol value to a string");return Dr$2(t)},Wr$2=function(){var t=le$3(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},_r$2=L$3.RegExp,Fr$2=D$3((function(){var t=_r$2("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),$r$2=Fr$2||D$3((function(){return !_r$2("a","y").sticky})),qr$2={BROKEN_CARET:Fr$2||D$3((function(){var t=_r$2("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:$r$2,UNSUPPORTED_Y:Fr$2},Gr$2=Object.keys||function(t){return Qe$3(t,Ze$3)},Ur$2=B$3&&!oe$3?Object.defineProperties:function(t,e){le$3(t);for(var r,n=lt$3(e),o=Gr$2(e),i=o.length,a=0;i>a;)he$3.f(t,r=o[a++],n[r]);return t},Xr$2={f:Ur$2},Kr$2=ft$3("document","documentElement"),Yr$2="prototype",Jr$2="script",Qr$2=Ee$3("IE_PROTO"),Zr$2=function(){},tn$3=function(t){return "<"+Jr$2+">"+t+"</"+Jr$2+">"},en$3=function(t){t.write(tn$3("")),t.close();var e=t.parentWindow.Object;return t=null,e},rn$3=function(){try{Lr$2=new ActiveXObject("htmlfile");}catch(t){}var t,e,r;rn$3="undefined"!=typeof document?document.domain&&Lr$2?en$3(Lr$2):(e=te$3("iframe"),r="java"+Jr$2+":",e.style.display="none",Kr$2.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(tn$3("document.F=Object")),t.close(),t.F):en$3(Lr$2);for(var n=Ze$3.length;n--;)delete rn$3[Yr$2][Ze$3[n]];return rn$3()};ke$3[Qr$2]=!0;var nn$3,on$3,an$3=Object.create||function(t,e){var r;return null!==t?(Zr$2[Yr$2]=le$3(t),r=new Zr$2,Zr$2[Yr$2]=null,r[Qr$2]=t):r=rn$3(),void 0===e?r:Xr$2.f(r,e)},ln$3=L$3.RegExp,un$3=D$3((function(){var t=ln$3(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),cn$3=L$3.RegExp,sn$3=D$3((function(){var t=cn$3("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),fn$3=Ve$3.get,dn$3=Vt$3("native-string-replace",String.prototype.replace),vn$3=RegExp.prototype.exec,hn$3=vn$3,pn$3=J$3("".charAt),yn$3=J$3("".indexOf),gn$3=J$3("".replace),bn$3=J$3("".slice),mn$3=(on$3=/b*/g,F$3(vn$3,nn$3=/a/,"a"),F$3(vn$3,on$3,"a"),0!==nn$3.lastIndex||0!==on$3.lastIndex),wn$3=qr$2.BROKEN_CARET,xn$3=void 0!==/()??/.exec("")[1];(mn$3||xn$3||wn$3||un$3||sn$3)&&(hn$3=function(t){var e,r,n,o,i,a,l,u=this,c=fn$3(u),s=Br$2(t),f=c.raw;if(f)return f.lastIndex=u.lastIndex,e=F$3(hn$3,f,s),u.lastIndex=f.lastIndex,e;var d=c.groups,v=wn$3&&u.sticky,h=F$3(Wr$2,u),p=u.source,y=0,g=s;if(v&&(h=gn$3(h,"y",""),-1===yn$3(h,"g")&&(h+="g"),g=bn$3(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==pn$3(s,u.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),r=new RegExp("^(?:"+p+")",h)),xn$3&&(r=new RegExp("^"+p+"$(?!\\s)",h)),mn$3&&(n=u.lastIndex),o=F$3(vn$3,v?r:u,g),v?o?(o.input=bn$3(o.input,y),o[0]=bn$3(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:mn$3&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),xn$3&&o&&o.length>1&&F$3(dn$3,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=a=an$3(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var Sn$3=hn$3;hr$2({target:"RegExp",proto:!0,forced:/./.exec!==Sn$3},{exec:Sn$3});var zn$3,Mn$3=/"/g,Tn$3=J$3("".replace);hr$2({target:"String",proto:!0,forced:(zn$3="anchor",D$3((function(){var t=""[zn$3]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return e="a",r="name",n=t,o=Br$2(at$3(this)),i="<"+e,""!==r&&(i+=" "+r+'="'+Tn$3(Br$2(n),Mn$3,""")+'"'),i+">"+o+"</"+e+">";var e,r,n,o,i;}});var On$3=function(t,e){return On$3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);},On$3(t,e)};var Nn$3=function(){return Nn$3=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Nn$3.apply(this,arguments)};function En$3(t,e){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:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a);}catch(t){l=[6,t],n=0;}finally{r=o=0;}if(5&l[0])throw l[1];return {value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function kn$3(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function An$3(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value);}catch(t){o={error:t};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error}}return a}function Hn$3(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Cn$3=he$3.f,jn$3=Ut$3("unscopables"),Pn$3=Array.prototype;void 0===Pn$3[jn$3]&&Cn$3(Pn$3,jn$3,{configurable:!0,value:an$3(null)});var Vn$3,In$3,Rn$3,Ln$3=function(t){Pn$3[jn$3][t]=!0;},Dn$3={},Bn$3=!D$3((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wn$3=Ee$3("IE_PROTO"),_n$3=Object,Fn$3=_n$3.prototype,$n$3=Bn$3?_n$3.getPrototypeOf:function(t){var e=Rt$3(t);if(Dt$3(e,Wn$3))return e[Wn$3];var r=e.constructor;return ct$3(r)&&e instanceof r?r.prototype:e instanceof _n$3?Fn$3:null},qn$3=Ut$3("iterator"),Gn$3=!1;[].keys&&("next"in(Rn$3=[].keys())?(In$3=$n$3($n$3(Rn$3)))!==Object.prototype&&(Vn$3=In$3):Gn$3=!0);var Un$3=!st$3(Vn$3)||D$3((function(){var t={};return Vn$3[qn$3].call(t)!==t}));Un$3&&(Vn$3={}),ct$3(Vn$3[qn$3])||Re$3(Vn$3,qn$3,(function(){return this}));var Xn$3={IteratorPrototype:Vn$3,BUGGY_SAFARI_ITERATORS:Gn$3},Kn$3=he$3.f,Yn$3=Ut$3("toStringTag"),Jn$3=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Dt$3(t,Yn$3)&&Kn$3(t,Yn$3,{configurable:!0,value:e});},Qn$3=Xn$3.IteratorPrototype,Zn$3=function(){return this},to$2=String,eo$2=TypeError,ro$2=function(t){if(function(t){return st$3(t)||null===t}(t))return t;throw new eo$2("Can't set "+to$2(t)+" as a prototype")},no$2=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return J$3(kt$3(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array;}catch(t){}return function(r,n){return at$3(r),ro$2(n),st$3(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),oo$2=me$3.PROPER,io$2=me$3.CONFIGURABLE,ao$2=Xn$3.IteratorPrototype,lo$2=Xn$3.BUGGY_SAFARI_ITERATORS,uo$2=Ut$3("iterator"),co$2="keys",so$2="values",fo$2="entries",vo$2=function(){return this},ho$2=function(t,e,r,n,o,i,a){!function(t,e,r,n){var o=e+" Iterator";t.prototype=an$3(Qn$3,{next:U$3(+!n,r)}),Jn$3(t,o,!1),Dn$3[o]=Zn$3;}(r,e,n);var l,u,c,s=function(t){if(t===o&&p)return p;if(!lo$2&&t&&t in v)return v[t];switch(t){case co$2:case so$2:case fo$2:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,v=t.prototype,h=v[uo$2]||v["@@iterator"]||o&&v[o],p=!lo$2&&h||s(o),y="Array"===e&&v.entries||h;if(y&&(l=$n$3(y.call(new t)))!==Object.prototype&&l.next&&($n$3(l)!==ao$2&&(no$2?no$2(l,ao$2):ct$3(l[uo$2])||Re$3(l,uo$2,vo$2)),Jn$3(l,f,!0)),oo$2&&o===so$2&&h&&h.name!==so$2&&(io$2?pe$3(v,"name",so$2):(d=!0,p=function(){return F$3(h,this)})),o)if(u={values:s(so$2),keys:i?p:s(co$2),entries:s(fo$2)},a)for(c in u)(lo$2||d||!(c in v))&&Re$3(v,c,u[c]);else hr$2({target:e,proto:!0,forced:lo$2||d},u);return v[uo$2]!==p&&Re$3(v,uo$2,p,{name:o}),Dn$3[e]=p,u},po$2=function(t,e){return {value:t,done:e}},yo$2=he$3.f,go$2="Array Iterator",bo$2=Ve$3.set,mo$2=Ve$3.getterFor(go$2),wo$2=ho$2(Array,"Array",(function(t,e){bo$2(this,{type:go$2,target:lt$3(t),index:0,kind:e});}),(function(){var t=mo$2(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,po$2(void 0,!0);switch(t.kind){case"keys":return po$2(r,!1);case"values":return po$2(e[r],!1)}return po$2([r,e[r]],!1)}),"values"),xo$2=Dn$3.Arguments=Dn$3.Array;if(Ln$3("keys"),Ln$3("values"),Ln$3("entries"),B$3&&"values"!==xo$2.name)try{yo$2(xo$2,"name",{value:"values"});}catch(t){}var So$2=gr$2?{}.toString:function(){return "[object "+xr$2(this)+"]"};gr$2||Re$3(Object.prototype,"toString",So$2,{unsafe:!0});var zo$2=J$3("".charAt),Mo$2=J$3("".charCodeAt),To$2=J$3("".slice),Oo$2=function(t){return function(e,r){var n,o,i=Br$2(at$3(e)),a=We$3(r),l=i.length;return a<0||a>=l?t?"":void 0:(n=Mo$2(i,a))<55296||n>56319||a+1===l||(o=Mo$2(i,a+1))<56320||o>57343?t?zo$2(i,a):n:t?To$2(i,a,a+2):o-56320+(n-55296<<10)+65536}},No$2={codeAt:Oo$2(!1),charAt:Oo$2(!0)},Eo$2=No$2.charAt,ko$2="String Iterator",Ao$2=Ve$3.set,Ho$2=Ve$3.getterFor(ko$2);ho$2(String,"String",(function(t){Ao$2(this,{type:ko$2,string:Br$2(t),index:0});}),(function(){var t,e=Ho$2(this),r=e.string,n=e.index;return n>=r.length?po$2(void 0,!0):(t=Eo$2(r,n),e.index+=t.length,po$2(t,!1))}));var Co$2=er$2.f,jo$2="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Po$2={f:function(t){return jo$2&&"Window"===tt$3(t)?function(t){try{return Co$2(t)}catch(t){return jr$2(jo$2)}}(t):Co$2(lt$3(t))}},Vo$2=D$3((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Io$2=Object.isExtensible,Ro$2=D$3((function(){Io$2(1);}))||Vo$2?function(t){return !!st$3(t)&&((!Vo$2||"ArrayBuffer"!==tt$3(t))&&(!Io$2||Io$2(t)))}:Io$2,Lo$2=!D$3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Do$2=P$3((function(t){var e=he$3.f,r=!1,n=Ft$3("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}});},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=er$2.f,e=J$3([].splice),o={};o[n]=1,t(o).length&&(er$2.f=function(r){for(var o=t(r),i=0,a=o.length;i<a;i++)if(o[i]===n){e(o,i,1);break}return o},hr$2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Po$2.f}));},fastKey:function(t,e){if(!st$3(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Dt$3(t,n)){if(!Ro$2(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!Dt$3(t,n)){if(!Ro$2(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return Lo$2&&r&&Ro$2(t)&&!Dt$3(t,n)&&i(t),t}};ke$3[n]=!0;})),Bo$2=function(t){if("Function"===tt$3(t))return J$3(t)},Wo$2=Bo$2(Bo$2.bind),_o$2=function(t,e){return kt$3(t),void 0===e?t:W$3?Wo$2(t,e):function(){return t.apply(e,arguments)}},Fo$2=Ut$3("iterator"),$o$2=Array.prototype,qo$2=function(t){return void 0!==t&&(Dn$3.Array===t||$o$2[Fo$2]===t)},Go$2=Ut$3("iterator"),Uo$2=function(t){if(!ot$3(t))return At$3(t,Go$2)||At$3(t,"@@iterator")||Dn$3[xr$2(t)]},Xo$2=TypeError,Ko$2=function(t,e){var r=arguments.length<2?Uo$2(t):e;if(kt$3(r))return le$3(F$3(r,t));throw new Xo$2(Nt$3(t)+" is not iterable")},Yo$2=function(t,e,r){var n,o;le$3(t);try{if(!(n=At$3(t,"return"))){if("throw"===e)throw r;return r}n=F$3(n,t);}catch(t){o=!0,n=t;}if("throw"===e)throw r;if(o)throw n;return le$3(n),r},Jo$2=TypeError,Qo$2=function(t,e){this.stopped=t,this.result=e;},Zo$2=Qo$2.prototype,ti$2=function(t,e,r){var n,o,i,a,l,u,c,s=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),v=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),p=_o$2(e,s),y=function(t){return n&&Yo$2(n,"normal",t),new Qo$2(!0,t)},g=function(t){return f?(le$3(t),h?p(t[0],t[1],y):p(t[0],t[1])):h?p(t,y):p(t)};if(d)n=t.iterator;else if(v)n=t;else {if(!(o=Uo$2(t)))throw new Jo$2(Nt$3(t)+" is not iterable");if(qo$2(o)){for(i=0,a=Ue$3(t);a>i;i++)if((l=g(t[i]))&&dt$3(Zo$2,l))return l;return new Qo$2(!1)}n=Ko$2(t,o);}for(u=d?t.next:n.next;!(c=F$3(u,n)).done;){try{l=g(c.value);}catch(t){Yo$2(n,"throw",t);}if("object"==typeof l&&l&&dt$3(Zo$2,l))return l}return new Qo$2(!1)},ei$2=TypeError,ri$2=function(t,e){if(dt$3(e,t))return t;throw new ei$2("Incorrect invocation")},ni$2=Ut$3("iterator"),oi$2=!1;try{var ii$2=0,ai$2={next:function(){return {done:!!ii$2++}},return:function(){oi$2=!0;}};ai$2[ni$2]=function(){return this},Array.from(ai$2,(function(){throw 2}));}catch(t){}var li$2=function(t,e){try{if(!e&&!oi$2)return !1}catch(t){return !1}var r=!1;try{var n={};n[ni$2]=function(){return {next:function(){return {done:r=!0}}}},t(n);}catch(t){}return r},ui$2=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=L$3[t],l=a&&a.prototype,u=a,c={},s=function(t){var e=J$3(l[t]);Re$3(l,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!st$3(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!st$3(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!st$3(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this});};if(dr$2(t,!ct$3(a)||!(o||l.forEach&&!D$3((function(){(new a).entries().next();})))))u=r.getConstructor(e,t,n,i),Do$2.enable();else if(dr$2(t,!0)){var f=new u,d=f[i](o?{}:-0,1)!==f,v=D$3((function(){f.has(1);})),h=li$2((function(t){new a(t);})),p=!o&&D$3((function(){for(var t=new a,e=5;e--;)t[i](e,e);return !t.has(-0)}));h||((u=e((function(t,e){ri$2(t,l);var r=function(t,e,r){var n,o;return no$2&&ct$3(n=e.constructor)&&n!==r&&st$3(o=n.prototype)&&o!==r.prototype&&no$2(t,o),t}(new a,t,u);return ot$3(e)||ti$2(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=l,l.constructor=u),(v||p)&&(s("delete"),s("has"),n&&s("get")),(p||d)&&s(i),o&&l.clear&&delete l.clear;}return c[t]=u,hr$2({global:!0,constructor:!0,forced:u!==a},c),Jn$3(u,t),o||r.setStrong(u,t,n),u},ci$2=function(t,e,r){for(var n in e)Re$3(t,n,e[n],r);return t},si$2=Ut$3("species"),fi$2=Array,di$2=function(t,e){return new(function(t){var e;return pr$2(t)&&(e=t.constructor,(kr$2(e)&&(e===fi$2||pr$2(e.prototype))||st$3(e)&&null===(e=e[si$2]))&&(e=void 0)),void 0===e?fi$2:e}(t))(0===e?0:e)},vi$2=J$3([].push),hi$2=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,l=5===t||i;return function(u,c,s,f){for(var d,v,h=Rt$3(u),p=nt$3(h),y=Ue$3(p),g=_o$2(c,s),b=0,m=f||di$2,w=e?m(u,y):r||a?m(u,0):void 0;y>b;b++)if((l||b in p)&&(v=g(d=p[b],b,h),t))if(e)w[b]=v;else if(v)switch(t){case 3:return !0;case 5:return d;case 6:return b;case 2:vi$2(w,d);}else switch(t){case 4:return !1;case 7:vi$2(w,d);}return i?-1:n||o?o:w}},pi$2={forEach:hi$2(0),map:hi$2(1),filter:hi$2(2),some:hi$2(3),every:hi$2(4),find:hi$2(5),findIndex:hi$2(6),filterReject:hi$2(7)},yi$2=Do$2.getWeakData,gi$2=Ve$3.set,bi$2=Ve$3.getterFor,mi$2=pi$2.find,wi$2=pi$2.findIndex,xi$2=J$3([].splice),Si$2=0,zi$2=function(t){return t.frozen||(t.frozen=new Mi$2)},Mi$2=function(){this.entries=[];},Ti$2=function(t,e){return mi$2(t.entries,(function(t){return t[0]===e}))};Mi$2.prototype={get:function(t){var e=Ti$2(this,t);if(e)return e[1]},has:function(t){return !!Ti$2(this,t)},set:function(t,e){var r=Ti$2(this,t);r?r[1]=e:this.entries.push([t,e]);},delete:function(t){var e=wi$2(this.entries,(function(e){return e[0]===t}));return ~e&&xi$2(this.entries,e,1),!!~e}};var Oi$2={getConstructor:function(t,e,r,n){var o=t((function(t,o){ri$2(t,i),gi$2(t,{type:e,id:Si$2++,frozen:null}),ot$3(o)||ti$2(o,t[n],{that:t,AS_ENTRIES:r});})),i=o.prototype,a=bi$2(e),l=function(t,e,r){var n=a(t),o=yi$2(le$3(e),!0);return !0===o?zi$2(n).set(e,r):o[n.id]=r,t};return ci$2(i,{delete:function(t){var e=a(this);if(!st$3(t))return !1;var r=yi$2(t);return !0===r?zi$2(e).delete(t):r&&Dt$3(r,e.id)&&delete r[e.id]},has:function(t){var e=a(this);if(!st$3(t))return !1;var r=yi$2(t);return !0===r?zi$2(e).has(t):r&&Dt$3(r,e.id)}}),ci$2(i,r?{get:function(t){var e=a(this);if(st$3(t)){var r=yi$2(t);if(!0===r)return zi$2(e).get(t);if(r)return r[e.id]}},set:function(t,e){return l(this,t,e)}}:{add:function(t){return l(this,t,!0)}}),o}};ui$2("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Oi$2);var Ni$2={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},Ei$2=te$3("span").classList,ki$2=Ei$2&&Ei$2.constructor&&Ei$2.constructor.prototype,Ai$2=ki$2===Object.prototype?void 0:ki$2,Hi$2=Ut$3("iterator"),Ci$2=wo$2.values,ji$2=function(t,e){if(t){if(t[Hi$2]!==Ci$2)try{pe$3(t,Hi$2,Ci$2);}catch(e){t[Hi$2]=Ci$2;}if(Jn$3(t,e,!0),Ni$2[e])for(var r in wo$2)if(t[r]!==wo$2[r])try{pe$3(t,r,wo$2[r]);}catch(e){t[r]=wo$2[r];}}};for(var Pi$2 in Ni$2)ji$2(L$3[Pi$2]&&L$3[Pi$2].prototype,Pi$2);ji$2(Ai$2,"DOMTokenList");var Vi$2,Ii$2=Ve$3.enforce,Ri$2=Object,Li$2=Array.isArray,Di$2=Ri$2.isExtensible,Bi$2=Ri$2.isFrozen,Wi$2=Ri$2.isSealed,_i$2=Ri$2.freeze,Fi$2=Ri$2.seal,$i$2=!L$3.ActiveXObject&&"ActiveXObject"in L$3,qi$2=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Gi$2=ui$2("WeakMap",qi$2,Oi$2),Ui$2=Gi$2.prototype,Xi$2=J$3(Ui$2.set);if(Oe$3)if($i$2){Vi$2=Oi$2.getConstructor(qi$2,"WeakMap",!0),Do$2.enable();var Ki$2=J$3(Ui$2.delete),Yi$2=J$3(Ui$2.has),Ji$2=J$3(Ui$2.get);ci$2(Ui$2,{delete:function(t){if(st$3(t)&&!Di$2(t)){var e=Ii$2(this);return e.frozen||(e.frozen=new Vi$2),Ki$2(this,t)||e.frozen.delete(t)}return Ki$2(this,t)},has:function(t){if(st$3(t)&&!Di$2(t)){var e=Ii$2(this);return e.frozen||(e.frozen=new Vi$2),Yi$2(this,t)||e.frozen.has(t)}return Yi$2(this,t)},get:function(t){if(st$3(t)&&!Di$2(t)){var e=Ii$2(this);return e.frozen||(e.frozen=new Vi$2),Yi$2(this,t)?Ji$2(this,t):e.frozen.get(t)}return Ji$2(this,t)},set:function(t,e){if(st$3(t)&&!Di$2(t)){var r=Ii$2(this);r.frozen||(r.frozen=new Vi$2),Yi$2(this,t)?Xi$2(this,t,e):r.frozen.set(t,e);}else Xi$2(this,t,e);return this}});}else Lo$2&&D$3((function(){var t=_i$2([]);return Xi$2(new Gi$2,t,1),!Bi$2(t)}))&&ci$2(Ui$2,{set:function(t,e){var r;return Li$2(t)&&(Bi$2(t)?r=_i$2:Wi$2(t)&&(r=Fi$2)),Xi$2(this,t,e),r&&r(t),this}});var Qi$2=new WeakMap,Zi$2=new WeakMap,ta$3=Ke$3.includes,ea$3=D$3((function(){return !Array(1).includes()}));hr$2({target:"Array",proto:!0,forced:ea$3},{includes:function(t){return ta$3(this,t,arguments.length>1?arguments[1]:void 0)}}),Ln$3("includes");var ra$3=pi$2.map,na$3=Cr$2("map");hr$2({target:"Array",proto:!0,forced:!na$3},{map:function(t){return ra$3(this,t,arguments.length>1?arguments[1]:void 0)}});var oa$3=Ut$3("match"),ia$3=TypeError,aa$3=function(t){if(function(t){var e;return st$3(t)&&(void 0!==(e=t[oa$3])?!!e:"RegExp"===tt$3(t))}(t))throw new ia$3("The method doesn't accept regular expressions");return t},la$3=Ut$3("match"),ua$3=J$3("".indexOf);hr$2({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e);}catch(r){try{return e[la$3]=!1,"/./"[t](e)}catch(t){}}return !1}("includes")},{includes:function(t){return !!~ua$3(Br$2(at$3(this)),Br$2(aa$3(t)),arguments.length>1?arguments[1]:void 0)}});var ca$3={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function sa$3(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=ca$3,a=e.map((function(t){var e;return null===(e=null==n?void 0:n.blocks)||void 0===e?void 0:e[t]}));return function(t){return function(t){return !Editor.isEditor(t)&&Element$1.isElement(t)&&"type"in t}(t)&&a.includes(t.type)}}function fa$3(t,e){for(var r=An$3(e,2),n=r[0],i=r[1],l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];var c=An$3(Node$1.common(t,n,i),2),s=c[0],f=c[1];return !!sa$3.apply(void 0,Hn$3([t],An$3(l)))(s,f)||!!Editor.above(t,{match:sa$3.apply(void 0,Hn$3([t],An$3(l))),at:f})}function da$3(t,e){var r,n;void 0===e&&(e={});var i=[];try{for(var a=kn$3(function(t,e){var r,n,i,a,l,u,c,s,f,d,v,h,p,y,g,b,m,w;return void 0===e&&(e={}),En$3(this,(function(x){switch(x.label){case 0:if(r=An$3(Editor.nodes(t,{match:sa$3(t,"table"),at:e.at}),1),!(n=r[0]))return [2,[]];i=An$3(n,2),a=i[1],x.label=1;case 1:x.trys.push([1,6,7,8]),l=kn$3(Editor.nodes(t,{match:sa$3(t,"table"),at:a})),u=l.next(),x.label=2;case 2:if(u.done)return [3,5];c=An$3(u.value,2),s=c[1],f=[];try{for(m=void 0,d=kn$3(Editor.nodes(t,{match:sa$3(t,"tr"),at:s})),v=d.next();!v.done;v=d.next())h=An$3(v.value,2),p=h[1],f.push(Hn$3([],An$3(Editor.nodes(t,{match:sa$3(t,"th","td"),at:p}))));}catch(t){m={error:t};}finally{try{v&&!v.done&&(w=d.return)&&w.call(d);}finally{if(m)throw m.error}}return [4,f];case 3:x.sent(),x.label=4;case 4:return u=l.next(),[3,2];case 5:return [3,8];case 6:return y=x.sent(),g={error:y},[3,8];case 7:try{u&&!u.done&&(b=l.return)&&b.call(l);}finally{if(g)throw g.error}return [7];case 8:return [2]}}))}(t,{at:e.at})),l=a.next();!l.done;l=a.next()){for(var u=l.value,c=[],s=0;s<u.length;s++){c[s]||(c[s]=[]);for(var f=0;f<u[s].length;f++)for(var d=An$3(u[s][f],1)[0],v=d.rowSpan,h=void 0===v?1:v,p=d.colSpan,y=void 0===p?1:p,g=0;g<y+0;g++)for(var b=0;b<h;b++)c[s+b]||(c[s+b]=[]),c[s+b][f+g]||(c[s+b][f+g]=[u[s+b][f+g],{rtl:g-0+1,ltr:y-g+0,ttb:b+1,btt:h-b}]);}i.push.apply(i,Hn$3([],An$3(c)));}}catch(t){r={error:t};}finally{try{l&&!l.done&&(n=a.return)&&n.call(a);}finally{if(r)throw r.error}}return i}var va$2=function(){function t(t,e){this.x=t,this.y=e;}return t.valueOf=function(t,e){return new this(t,e)},t.equals=function(t,e){return t.x===e.x&&t.y===e.y},t}(),ha$3={isInTable:function(t,e){return void 0===e&&(e={}),!!An$3(Editor.nodes(t,{match:sa$3(t,"table"),at:e.at}),1)[0]},selection:function(t){var e,r,n,o,i,a,l,u;return En$3(this,(function(c){switch(c.label){case 0:e=Qi$2.get(t),r=0,c.label=1;case 1:if(!(e&&r<e.length))return [3,4];for(n=[],o=0;o<e[r].length;o++)i=An$3(e[r][o],2),a=i[0],l=i[1],u=l.ltr,1===l.ttb&&n.push(a),o+=u-1;return [4,n];case 2:c.sent(),c.label=3;case 3:return r++,[3,1];case 4:return [2]}}))},unselect:function(t){Zi$2.delete(t),Qi$2.delete(t);},isSelected:function(t,e){var r=Zi$2.get(t);return !!r&&r.has(e)}};function pa$3(t){var r=t.selection;if(null==r)return !1;var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")}}),1)[0];if(n){var i=An$3(n,2)[1],a=Editor.start(t,i);if(Point.equals(r.anchor,a))return !0}return !1}var ya$2=pi$2.find,ga$3="find",ba$3=!0;ga$3 in[]&&Array(1)[ga$3]((function(){ba$3=!1;})),hr$2({target:"Array",proto:!0,forced:ba$3},{find:function(t){return ya$2(this,t,arguments.length>1?arguments[1]:void 0)}}),Ln$3(ga$3);var ma$3="\t\n\v\f\r \u2028\u2029\ufeff",wa$2=J$3("".replace),xa$2=RegExp("^["+ma$3+"]+"),Sa$3=RegExp("(^|[^"+ma$3+"])["+ma$3+"]+$"),za$1=function(t){return function(e){var r=Br$2(at$3(e));return 1&t&&(r=wa$2(r,xa$2,"")),2&t&&(r=wa$2(r,Sa$3,"$1")),r}},Ma$1={start:za$1(1),end:za$1(2),trim:za$1(3)},Ta$3=me$3.PROPER,Oa$2=Ma$1.trim;function Na$2(t){return t.length?t[0].tagName.toLowerCase():""}function Ea$3(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var l=a.split(":");l[0].trim()===e&&(r=l[1].trim());}}return r}function ka$2(t){var e,r,n=[],o=t.reduce((function(t,e){return t+e}),0);try{for(var i=kn$3(t),a=i.next();!a.done;a=i.next()){var l=a.value;n.push(l/o);}}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}hr$2({target:"String",proto:!0,forced:function(t){return D$3((function(){return !!ma$3[t]()||"
"!=="
"[t]()||Ta$3&&ma$3[t].name!==t}))}("trim")},{trim:function(){return Oa$2(this)}}),hr$2({global:!0,forced:L$3.globalThis!==L$3},{globalThis:L$3}),append&&($$6.fn.append=append),on$7&&($$6.fn.on=on$7),focus&&($$6.fn.focus=focus),attr&&($$6.fn.attr=attr),val&&($$6.fn.val=val),html&&($$6.fn.html=html),dataset&&($$6.fn.dataset=dataset),addClass&&($$6.fn.addClass=addClass),removeClass&&($$6.fn.removeClass=removeClass),children&&($$6.fn.children=children),each&&($$6.fn.each=each),find&&($$6.fn.find=find),data&&($$6.fn.data=data),hide&&($$6.fn.hide=hide),show&&($$6.fn.show=show);var Aa$2=null;var Ha$1=!1,Ca$2=!1,ja$2=0,Pa$2=0,Va$1=null,Ia$2=$$6(window);Ia$2.on("mousedown",(function(t){var e=t.target;if(e.closest('[data-block-type="table-cell"]'))Ha$1=!0;else if("DIV"==e.tagName&&e.closest(".column-resizer-item")){if(null==Va$1)return;var r=An$3(Editor.nodes(Va$1,{match:sa$3(Va$1,"table")}),1),n=An$3(r[0],1)[0],i=n.columnWidths,a=void 0===i?[]:i,l=n.resizingIndex,u=void 0===l?-1:l;Ca$2=!0;var c=t.clientX;ja$2=c,Pa$2=a[u],document.body.style.cursor="col-resize",t.preventDefault();}Ia$2.on("mousemove",Ra$2),Ia$2.on("mouseup",La$2);}));var Ra$2=lodash_throttle((function(t){if(Ca$2&&null!=Va$1){t.preventDefault();var e=t.clientX,r=Pa$2+(e-ja$2);(r=Math.floor(100*r)/100)<30&&(r=30);var n=An$3(Editor.nodes(Va$1,{match:sa$3(Va$1,"table")}),1),i=An$3(n[0],1)[0],a=i.columnWidths,l=void 0===a?[]:a,u=i.resizingIndex,c=void 0===u?-1:u,f=l.reduce((function(t,e){return t+e}),0)-l[c],d=document.querySelector(".table-container");if(!(d&&f+r>d.clientWidth)){var v=Hn$3([],An$3(l)).map((function(t){return Math.floor(t)}));v[c]=r,Transforms.setNodes(Va$1,{columnWidths:v},{mode:"highest"});}}}),100);function La$2(t){Ha$1=!1,Ca$2=!1,Va$1=null,document.body.style.cursor="",Ia$2.off("mousemove",Ra$2),Ia$2.off("mouseup",La$2);}function Da$1(t,e,n,o){if(!t.isDisabled()&&!Ha$1&&!Ca$2){var i=e,a=i.width,l=void 0===a?"auto":a,u=i.columnWidths,c=void 0===u?[]:u,f=i.isHoverCellBorder,d=i.resizingIndex,v=n.clientX,h=n.target;if(ic$2(h))if(v>(g=h.getBoundingClientRect()).x+5&&v<g.x+g.width-5)return void(f&&Transforms.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(ic$2(h)){var p=h.closest(".table");if(p)for(var y=n.clientX,g=p.getBoundingClientRect(),b=function(t){var e,r,n=[],o=0;try{for(var i=kn$3(t),a=i.next();!a.done;a=i.next())o+=a.value,n.push(o);}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}("100%"===l?ka$2(c).map((function(t){return t*o})):c),m=0;m<b.length;m++)if(y-g.x>=b[m]-5&&y-g.x<b[m]+5){if(d==m)return;return void Transforms.setNodes(t,{isHoverCellBorder:!0,resizingIndex:m},{mode:"highest"})}}1==f&&Transforms.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"});}}function Ba$1(t,e){"mouseenter"===e.type?Transforms.setNodes(t,{isResizing:!0},{mode:"highest"}):Transforms.setNodes(t,{isResizing:!1},{mode:"highest"});}function Wa$1(t){var e=t.children||[];return 0===e.length?[]:(e[0]||{}).children||[]}function _a$1(t){return Wa$1(t).every((function(t){return !!t.isHeader}))}var Fa$1={type:"table",renderElem:function(t,n,i){var a=function(t,r){if(t.isDisabled())return !1;var n=t.selection;if(null==n)return !0;if(Range.isCollapsed(n))return !0;var i=n.anchor,a=n.focus,l=Ic$2.findPath(t,r),s=Editor.start(t,l),d=Editor.end(t,l),v=Point.compare(i,d)<=0&&Point.compare(i,s)>=0,h=Point.compare(a,d)<=0&&Point.compare(a,s)>=0;return !!(v&&h&&Path.equals(i.path.slice(0,3),a.path.slice(0,3)))}(i,t),l=t,d=l.width,y=void 0===d?"auto":d,g=l.height,b=l.columnWidths,m=void 0===b?[]:b,w=l.scrollWidth,x=void 0===w?0:w,S=l.isHoverCellBorder,z=l.resizingIndex,M=l.isResizing,T=Ic$2.isNodeSelected(i,t),O=An$3(ha$3.selection(i),1)[0],N=ka$2(m),E=jsx("div",{className:"table-container","data-selected":T,on:{mousedown:function(r){if("DIV"===r.target.tagName&&r.preventDefault(),!i.isDisabled()){r.target.closest('[data-block-type="table-cell"]')&&ha$3.unselect(i);var n=Ic$2.findPath(i,t),a=Editor.start(i,n),l=i.selection;if(null!=l)l.anchor.path[0]!==n[0]&&i.select(a);else i.select(a);}}}},jsx("table",{width:y,contentEditable:a,className:"table "+(O?"table-selection-none":""),style:{width:"100%"==y?y:m.reduce((function(t,e){return t+e}),0)+"px"},on:{mousemove:lodash_debounce((function(e){return Da$1(i,t,e,x)}),25)}},jsx("colgroup",{contentEditable:!1},m.map((function(t){return jsx("col",{width:t})}))),jsx("tbody",null,n)),jsx("div",{className:"column-resizer",contenteditable:"false"},m.map((function(t,e){var r=t;return "100%"==y&&(r=N[e]*x),jsx("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},jsx("div",{className:"resizer-line-hotzone "+(S&&e==z?"visible ":"")+(M&&e==z?"highlight":""),style:{height:g+"px"},on:{mouseenter:function(t){return Ba$1(i,t)},mouseleave:function(t){return Ba$1(i,t)},mousedown:function(t){return function(t){Ca$2||(Va$1=t);}(i)}}},jsx("div",{className:"resizer-line"})))})))),k=h$3("div",{hook:{postpatch:function(t){var e=t.elm;return function(t,e){if(ic$2(e)){var n=e.querySelector("table");n&&(Aa$2=new ResizeObserver((function(e){var r=An$3(e,1)[0].contentRect;Transforms.setNodes(t,{scrollWidth:r.width,height:r.height},{mode:"highest"});})),Aa$2.observe(n));}}(i,e)},destroy:function(){Aa$2&&(null==Aa$2||Aa$2.disconnect(),Aa$2=null);}}},E);return k}},$a$1={type:"table-row",renderElem:function(t,e,r){return jsx("tr",null,e)}},qa$1={type:"table-cell",renderElem:function(t,r,n){var o=function(t,r){var n=Ic$2.getParentNode(t,r);if(null==n)return !1;var o=Ic$2.getParentNode(t,n);return null!=o&&Wa$1(o).some((function(t){return t===r}))}(n,t),i=t,a=i.colSpan,l=void 0===a?1:a,u=i.rowSpan,c=void 0===u?1:u,s=i.isHeader,f=void 0!==s&&s,d=i.hidden,v=void 0!==d&&d,p=ha$3.isSelected(n,t);return jsx(o&&f?"th":"td",{colSpan:l,rowSpan:c,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:v?"none":""}},r)}},Ga$1=function(t,e){var r=[][t];return !!r&&D$3((function(){r.call(null,e||function(){return 1},1);}))},Ua$1=J$3([].join),Xa$1=nt$3!==Object||!Ga$1("join",",");hr$2({target:"Array",proto:!0,forced:Xa$1},{join:function(t){return Ua$1(lt$3(this),void 0===t?",":t)}});var Ka$1={type:"table",elemToHtml:function(t,e){var r=t,n=r.width,o=void 0===n?"auto":n,i=r.columnWidths,a=r.height,l=void 0===a?"auto":a,u=null==i?void 0:i.map((function(t){return "<col width="+t+"></col>"})).join("");return '<table style="width: '+o+";table-layout: fixed;height:"+l+'">'+(u?'<colgroup contentEditable="false">'+u+"</colgroup>":"")+"<tbody>"+e+"</tbody></table>"}},Ya$1={type:"table-row",elemToHtml:function(t,e){return "<tr>"+e+"</tr>"}},Ja$1={type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=void 0===n?1:n,i=r.rowSpan,a=void 0===i?1:i,l=r.isHeader,u=void 0!==l&&l,c=r.width,s=void 0===c?"auto":c,f=r.hidden,d=u?"th":"td";return "<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+s+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+e+"</"+d+">"}};var Qa$1={selector:"table",preParseHtml:function(t){var e=$$6(t);if("table"!==Na$2(e))return t;var r=e.find("tbody");if(0===r.length)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},Za$1=Object.assign,tl=Object.defineProperty,el=J$3([].concat),rl=!Za$1||D$3((function(){if(B$3&&1!==Za$1({b:1},Za$1(tl({},"a",{enumerable:!0,get:function(){tl(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t;})),7!==Za$1({},t)[r]||Gr$2(Za$1({},e)).join("")!==n}))?function(t,e){for(var r=Rt$3(t),n=arguments.length,o=1,i=rr$2.f,a=G$3.f;n>o;)for(var l,u=nt$3(arguments[o++]),c=i?el(Gr$2(u),i(u)):Gr$2(u),s=c.length,f=0;s>f;)l=c[f++],B$3&&!F$3(a,u,l)||(r[l]=u[l]);return r}:Za$1;function nl(t,e){null==t.data&&(t.data={});var r=t.data;null==r.style&&(r.style={}),Object.assign(r.style,e);}hr$2({target:"Object",stat:!0,arity:2,forced:Object.assign!==rl},{assign:rl});var ol,il=Function.prototype,al=il.apply,ll=il.call,ul="object"==typeof Reflect&&Reflect.apply||(W$3?ll.bind(al):function(){return ll.apply(al,arguments)}),cl=Ut$3("species"),sl=RegExp.prototype,fl=function(t,e,r,n){var o=Ut$3(t),i=!D$3((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!D$3((function(){var e=!1,r=/a/;return "split"===t&&((r={}).constructor={},r.constructor[cl]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var l=/./[o],u=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===Sn$3||a===sl.exec?i&&!o?{done:!0,value:F$3(l,e,r,n)}:{done:!0,value:F$3(t,r,e,n)}:{done:!1}}));Re$3(String.prototype,t,u[0]),Re$3(sl,o,u[1]);}n&&pe$3(sl[o],"sham",!0);},dl=No$2.charAt,vl=function(t,e,r){return e+(r?dl(t,e).length:1)},hl=Math.floor,pl=J$3("".charAt),yl=J$3("".replace),gl=J$3("".slice),bl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ml=/\$([$&'`]|\d{1,2})/g,wl=function(t,e,r,n,o,i){var a=r+t.length,l=n.length,u=ml;return void 0!==o&&(o=Rt$3(o),u=bl),yl(i,u,(function(i,u){var c;switch(pl(u,0)){case"$":return "$";case"&":return t;case"`":return gl(e,0,r);case"'":return gl(e,a);case"<":c=o[gl(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>l){var f=hl(s/10);return 0===f?i:f<=l?void 0===n[f-1]?pl(u,1):n[f-1]+pl(u,1):i}c=n[s-1];}return void 0===c?"":c}))},xl=TypeError,Sl=function(t,e){var r=t.exec;if(ct$3(r)){var n=F$3(r,t,e);return null!==n&&le$3(n),n}if("RegExp"===tt$3(t))return F$3(Sn$3,t,e);throw new xl("RegExp#exec called on incompatible receiver")},zl=Ut$3("replace"),Ml=Math.max,Tl=Math.min,Ol=J$3([].concat),Nl=J$3([].push),El=J$3("".indexOf),kl=J$3("".slice),Al="$0"==="a".replace(/./,"$0"),Hl=!!/./[zl]&&""===/./[zl]("a","$0");fl("replace",(function(t,e,r){var n=Hl?"$":"$0";return [function(t,r){var n=at$3(this),o=ot$3(t)?void 0:At$3(t,zl);return o?F$3(o,t,n,r):F$3(e,Br$2(n),t,r)},function(t,o){var i=le$3(this),a=Br$2(t);if("string"==typeof o&&-1===El(o,n)&&-1===El(o,"$<")){var l=r(e,i,a,o);if(l.done)return l.value}var u=ct$3(o);u||(o=Br$2(o));var c,s=i.global;s&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Sl(i,a))&&(Nl(d,f),s);){""===Br$2(f[0])&&(i.lastIndex=vl(a,Ge$3(i.lastIndex),c));}for(var v,h="",p=0,y=0;y<d.length;y++){for(var g,b=Br$2((f=d[y])[0]),m=Ml(Tl(We$3(f.index),a.length),0),w=[],x=1;x<f.length;x++)Nl(w,void 0===(v=f[x])?v:String(v));var S=f.groups;if(u){var z=Ol([b],w,m,a);void 0!==S&&Nl(z,S),g=Br$2(ul(o,void 0,z));}else g=wl(b,a,m,w,S,o);m>=p&&(h+=kl(a,p,m)+g,p=m+b.length);}return h+kl(a,p)}]}),!!D$3((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Al||Hl);var Cl=null===(ol=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===ol?void 0:ol.getPropertyValue("--w-e-textarea-border-color");var jl=pi$2.filter,Pl=Cr$2("filter");hr$2({target:"Array",proto:!0,forced:!Pl},{filter:function(t){return jl(this,t,arguments.length>1?arguments[1]:void 0)}});var Vl=function(t,e,r,n){try{return n?e(le$3(r)[0],r[1]):e(r)}catch(e){Yo$2(t,"throw",e);}},Il=Array,Rl=!li$2((function(t){Array.from(t);}));hr$2({target:"Array",stat:!0,forced:Rl},{from:function(t){var e=Rt$3(t),r=kr$2(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=_o$2(o,n>2?arguments[2]:void 0));var a,l,u,c,s,f,d=Uo$2(e),v=0;if(!d||this===Il&&qo$2(d))for(a=Ue$3(e),l=r?new this(a):Il(a);a>v;v++)f=i?o(e[v],v):e[v],Ar$2(l,v,f);else for(l=r?new this:[],s=(c=Ko$2(e,d)).next;!(u=F$3(s,c)).done;v++)f=i?Vl(c,o,[u.value,v],!0):u.value,Ar$2(l,v,f);return l.length=v,l}});var Ll=pi$2.forEach,Dl=Ga$1("forEach")?[].forEach:function(t){return Ll(this,t,arguments.length>1?arguments[1]:void 0)},Bl=function(t){if(t&&t.forEach!==Dl)try{pe$3(t,"forEach",Dl);}catch(e){t.forEach=Dl;}};for(var Wl in Ni$2)Ni$2[Wl]&&Bl(L$3[Wl]&&L$3[Wl].prototype);Bl(Ai$2);var _l={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,r,n){var o=$$6(t);0===(r=r.filter((function(t){return "paragraph"===Ic$2.getNodeType(t)||(!!Text.isText(t)||!!n.isInline(t))}))).length&&(r=[{text:o.text().replace(/\s+/gm," ")}]);var i=parseInt(o.attr("colSpan")||"1"),a=parseInt(o.attr("rowSpan")||"1"),l="none"===Ea$3(o,"display"),u=o.attr("width")||"auto";return {type:"table-cell",isHeader:"th"===Na$2(o),colSpan:i,rowSpan:a,width:u,children:r,hidden:l}}};var Fl={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,r,n){return {type:"table-row",children:r.filter((function(t){return "table-cell"===Ic$2.getNodeType(t)}))}}};var $l={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,r,n){var o,i,a=$$6(t),l="auto";"100%"===Ea$3(a,"width")&&(l="100%"),"100%"===a.attr("width")&&(l="100%");var u={type:"table",width:l,height:parseInt(Ea$3(a,"height")||"0"),children:r.filter((function(t){return "table-row"===Ic$2.getNodeType(t)}))},c=(null===(o=a.find("tr")[0])||void 0===o?void 0:o.children)||[],s=(null===(i=a.find("colgroup")[0])||void 0===i?void 0:i.children)||null;if(s)u.columnWidths=Array.from(s).map((function(t){return parseInt(t.getAttribute("width"))}));else if(c.length>0){var f=[];Array.from(c).forEach((function(t){for(var e=parseInt($$6(t).attr("colspan")||"1",10),r=parseInt(Ea$3($$6(t),"width")||"180",10),n=0;n<e;n++)f.push(r);})),u.columnWidths=f;}return u}};hr$2({target:"Array",proto:!0},{fill:function(t){for(var e=Rt$3(this),r=Ue$3(e),n=arguments.length,o=$e$3(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:$e$3(i,r);a>o;)e[o++]=t;return e}}),Ln$3("fill");var ql=RegExp.prototype,Gl=me$3.PROPER,Ul="toString",Xl=RegExp.prototype,Kl=Xl[Ul],Yl=D$3((function(){return "/a/b"!==Kl.call({source:"a",flags:"b"})})),Jl=Gl&&Kl.name!==Ul;(Yl||Jl)&&Re$3(Xl,Ul,(function(){var t=le$3(this),e=Br$2(t.source),r=Br$2(function(t){var e=t.flags;return void 0!==e||"flags"in ql||Dt$3(t,"flags")||!dt$3(ql,t)?e:F$3(Wr$2,t)}(t));return "/"+e+"/"+r}),{unsafe:!0});var Ql='<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>';var Zl=function(){function t(){this.title=Wp$1("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null;}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||!!Ic$2.getSelectedElems(t).some((function(r){var n=Ic$2.getNodeType(r);return "pre"===n||("table"===n||("list-item"===n||!!t.isVoid(r)))})))},t.prototype.getPanelContentElem=function(t){var e=this;if(this.$content)return this.$content[0];for(var r=$$6('<div class="w-e-panel-content-table"></div>'),n=$$6("<span>0 × 0</span>"),o=$$6("<table></table>"),i=0;i<10;i++){for(var a=$$6("<tr></tr>"),l=0;l<10;l++){var u=$$6("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",(function(t){var e=t.target;if(null!=e){var r=$$6(e).dataset(),i=r.x,a=r.y;n[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(t){$$6(t).children().each((function(t){var e=$$6(t),r=e.dataset(),n=r.x,o=r.y;n<=i&&o<=a?e.addClass("active"):e.removeClass("active");}));}));}})),u.on("click",(function(r){r.preventDefault();var n=r.target;if(null!=n){var o=$$6(n).dataset(),i=o.x,a=o.y;e.insertTable(t,a+1,i+1);}}));}o.append(a);}return r.append(o),r.append(n),this.$content=r,r[0]},t.prototype.insertTable=function(t,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){if(Ic$2.isSelectedEmptyParagraph(t)&&Transforms.removeNodes(t,{mode:"highest"}),0===t.children.length){Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}var a=function(t,e,r){for(var n,o=[],i=t.getMenuConfig("insertTable"),a=i.minWidth,l=void 0===a?60:a,u=i.tableFullWidth,c=i.tableHeader,s=Array(r).fill(parseInt(l)||60),f=0;f<e;f++){for(var d=[],v=0;v<r;v++){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(n=null==c?void 0:c.selected)||void 0===n||n),d.push(h);}o.push({type:"table-row",children:d});}return {type:"table",width:(null==u?void 0:u.selected)?"100%":"auto",children:o,columnWidths:s}}(t,o,i);Transforms.insertNodes(t,a,{mode:"highest"});}},t}(),tu$2=function(){function t(){this.title=Wp$1("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==Ic$2.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){this.isDisabled(t)||Transforms.removeNodes(t,{mode:"highest"});},t}(),eu$2=function(){function t(){this.title=Wp$1("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),i=An$3(n[0],2),a=i[0],l=i[1],u=Ic$2.getParentNode(t,a),f=(null==u?void 0:u.children.length)||0;if(0!==f){var d=da$3(t),v=0;t:for(var h=0;h<d.length;h++)for(var p=0;p<d[h].length;p++){var y=An$3(d[h][p],1),g=An$3(y[0],2)[1];if(Path.equals(l,g)){v=h;break t}}Editor.withoutNormalizing(t,(function(){for(var e=v+1,r=e>=0&&e<d.length,n=[],o=0;r&&o<d[v].length;o++){var i=An$3(d[v][o],2)[1],a=i.ttb,u=i.btt;if(a>1||u>1){if(1==u)continue;var h=An$3(d[v-(a-1)][o],1),p=An$3(h[0],2),y=p[0],g=p[1],b=y.rowSpan||1;n.push(o),y.hidden||Transforms.setNodes(t,{rowSpan:b+1},{at:g});}}for(var m={type:"table-row",children:[]},w=0;w<f;w++){var x={type:"table-cell",hidden:n.includes(w),children:[{text:""}]};m.children.push(x);}var S=Path.parent(l),z=Path.next(S);Transforms.insertNodes(t,m,{at:z});}));}}},t}(),ru$2=function(){function t(){this.title=Wp$1("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table-row"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-row")},universal:!0}),1),i=An$3(n[0],2),l=i[0],u=i[1],f=Ic$2.getParentNode(t,l);if(((null==f?void 0:f.children.length)||0)<=1)Transforms.removeNodes(t,{mode:"highest"});else {var d=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),v=An$3(d[0],2)[1],h=da$3(t),p=0;t:for(var y=0;y<h.length;y++)for(var g=0;g<h[y].length;g++){var b=An$3(h[y][g],1),m=An$3(b[0],2)[1];if(Path.equals(v,m)){p=y;break t}}Editor.withoutNormalizing(t,(function(){for(var e,r,n=0;n<h[p].length;n++){var o=An$3(h[p][n],2),i=An$3(o[0],1)[0].hidden,l=o[1],c=l.ttb,f=l.btt;if(c>1||f>1){var d=An$3(h[p-(c-1)][n],1),v=An$3(d[0],2),y=v[0],g=y.rowSpan,b=void 0===g?1:g,m=y.colSpan,w=void 0===m?1:m,x=v[1];if(i)Transforms.setNodes(t,{rowSpan:Math.max(b-1,1),colSpan:w},{at:x});else {var S=An$3(h[p+1][n],1),z=An$3(S[0],2)[1];Transforms.setNodes(t,{rowSpan:b-1,colSpan:w,hidden:!1},{at:z});try{for(var M=(e=void 0,kn$3(Node$1.children(t,x,{reverse:!0}))),T=M.next();!T.done;T=M.next()){var O=An$3(T.value,2)[1];Transforms.moveNodes(t,{to:Hn$3(Hn$3([],An$3(z)),[0]),at:O});}}catch(t){e={error:t};}finally{try{T&&!T.done&&(r=M.return)&&r.call(M);}finally{if(e)throw e.error}}}}}Transforms.removeNodes(t,{at:u});}));}}},t}(),nu$2=TypeError,ou$2=Object.getOwnPropertyDescriptor,iu$2=B$3&&!function(){if(void 0!==this)return !0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError}}()?function(t,e){if(pr$2(t)&&!ou$2(t,"length").writable)throw new nu$2("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},au$2=TypeError,lu$2=TypeError,uu$2=function(t,e){if(!delete t[e])throw new lu$2("Cannot delete property "+Nt$3(e)+" of "+Nt$3(t))},cu$2=Cr$2("splice"),su$2=Math.max,fu$2=Math.min;hr$2({target:"Array",proto:!0,forced:!cu$2},{splice:function(t,e){var r,n,o,i,a,l,u=Rt$3(this),c=Ue$3(u),s=$e$3(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-s):(r=f-2,n=fu$2(su$2(We$3(e),0),c-s)),function(t){if(t>9007199254740991)throw au$2("Maximum allowed index exceeded")}(c+r-n),o=di$2(u,n),i=0;i<n;i++)(a=s+i)in u&&Ar$2(o,i,u[a]);if(o.length=n,r<n){for(i=s;i<c-n;i++)l=i+r,(a=i+n)in u?u[l]=u[a]:uu$2(u,l);for(i=c;i>c-n+r;i--)uu$2(u,i-1);}else if(r>n)for(i=c-n;i>s;i--)l=i+r-1,(a=i+n-1)in u?u[l]=u[a]:uu$2(u,l);for(i=0;i<r;i++)u[i+s]=arguments[i+2];return iu$2(u,c-n+r),o}});var du$2=function(){function t(){this.title=Wp$1("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),i=An$3(n[0],2),a=i[0],l=i[1],u=Ic$2.getParentNode(t,a);if(null!=u){var f=Ic$2.getParentNode(t,u);if(null!=f){var d=da$3(t),v=0;t:for(var h=0;h<d.length;h++)for(var p=0;p<d[h].length;p++){var y=An$3(d[h][p],1),g=An$3(y[0],2)[1];if(Path.equals(l,g)){v=p;break t}}Editor.withoutNormalizing(t,(function(){for(var r=[],n=0;n<d.length;n++){var i=An$3(d[n][v],2)[1],a=i.ltr,l=i.rtl;if(a>1||l>1){if(1==l)continue;var u=An$3(d[n][v-(l-1)],1),c=An$3(u[0],2),h=c[0],p=c[1],y=h.colSpan||1;r.push(n),h.hidden||Transforms.setNodes(t,{colSpan:y+1},{at:p});}}for(n=0;n<d.length;n++){var g={type:"table-cell",hidden:r.includes(n),children:[{text:""}]};0===n&&_a$1(f)&&(g.isHeader=!0);var b=An$3(d[n][v],1),m=An$3(b[0],2)[1];Transforms.insertNodes(t,g,{at:m});}var w=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table")},universal:!0}),1)[0];if(w){var x=An$3(w,2),S=x[0],z=x[1],M=S.columnWidths,T=Hn$3([],An$3(void 0===M?[]:M)),O=t.getMenuConfig("insertTable").minWidth,N=void 0===O?60:O;T.splice(v,0,parseInt(N)||60),Transforms.setNodes(t,{columnWidths:T},{at:z});}}));}}}},t}(),vu$2=function(){function t(){this.title=Wp$1("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table-cell"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),i=An$3(n[0],2),l=i[0],u=i[1],f=Ic$2.getParentNode(t,l),d=(null==f?void 0:f.children.length)||0;if(!f||d<=1)Transforms.removeNodes(t,{mode:"highest"});else if(null!=Ic$2.getParentNode(t,f)){var v=da$3(t),h=0;t:for(var p=0;p<v.length;p++)for(var y=0;y<v[p].length;y++){var g=An$3(v[p][y],1),b=An$3(g[0],2)[1];if(Path.equals(u,b)){h=y;break t}}Editor.withoutNormalizing(t,(function(){for(var r,n,i=0;i<v.length;i++){var l=An$3(v[i][h],2),u=An$3(l[0],1)[0].hidden,c=l[1],f=c.rtl,d=c.ltr;if(f>1||d>1){var p=An$3(v[i][h-(f-1)],1),y=An$3(p[0],2),g=y[0],b=g.rowSpan,m=void 0===b?1:b,w=g.colSpan,x=void 0===w?1:w,S=y[1];if(u)Transforms.setNodes(t,{rowSpan:m,colSpan:Math.max(x-1,1)},{at:S});else {var z=An$3(v[i][h+1],1),M=An$3(z[0],2)[1];Transforms.setNodes(t,{rowSpan:m,colSpan:x-1,hidden:!1},{at:M});try{for(var T=(r=void 0,kn$3(Node$1.children(t,S,{reverse:!0}))),O=T.next();!O.done;O=T.next()){var N=An$3(O.value,2)[1];Transforms.moveNodes(t,{to:Hn$3(Hn$3([],An$3(M)),[0]),at:N});}}catch(t){r={error:t};}finally{try{O&&!O.done&&(n=T.return)&&n.call(T);}finally{if(r)throw r.error}}}}}for(i=0;i<v.length;i++){var E=An$3(v[i][h],1);S=An$3(E[0],2)[1];Transforms.removeNodes(t,{at:S});}var k=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table")},universal:!0}),1)[0];if(k){var A=An$3(k,2),H=A[0],C=A[1],j=H.columnWidths,P=Hn$3([],An$3(void 0===j?[]:j));P.splice(h,1),Transforms.setNodes(t,{columnWidths:P},{at:C});}}));}}},t}(),hu$2=function(){function t(){this.title=Wp$1("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){var r=Ic$2.getSelectedNodeByType(t,"table");return null!=r&&_a$1(r)},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=!r,o=Ic$2.getSelectedNodeByType(t,"table");if(null!=o)Wa$1(o).forEach((function(r){return Transforms.setNodes(t,{isHeader:n},{at:Ic$2.findPath(t,r)})}));}},t}(),pu$2=function(){function t(){this.title=Wp$1("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){var r=Ic$2.getSelectedNodeByType(t,"table");return null!=r&&"100%"===r.width},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r={width:e?"auto":"100%"};Transforms.setNodes(t,r,{mode:"highest"});}},t}(),yu$2=function(){function t(){this.title=Wp$1("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return !this.canMerge(t)},t.prototype.exec=function(t,e){this.isDisabled(t)||(this.merge(t),ha$3.unselect(t));},t.prototype.canMerge=function(t){var e=Qi$2.get(t);if(!e||!e.length)return !1;var r=An$3(e[e.length-1][e[e.length-1].length-1],1),n=An$3(r[0],2)[1],o=An$3(e[0][0],1);return !!fa$3(t,[An$3(o[0],2)[1],n],"table")},t.prototype.merge=function(t){if(this.canMerge(t)){var e=Qi$2.get(t);if(e&&e.length){var r=An$3(e[0][0],1),n=An$3(r[0],2)[1],i=An$3(Node$1.children(t,n,{reverse:!0}),1),l=An$3(i[0],2)[1];da$3(t,{at:n}),Editor.withoutNormalizing(t,(function(){for(var r,i,u=0,f=0,d=e.length-1;d>=0;d--,u++){f=0;for(var v=e[d].length-1;v>=0;v--,f++){var h=An$3(e[d][v],2),p=An$3(h[0],2)[1],y=h[1].ttb;if(!(Path.equals(n,p)||y>1)){try{for(var g=(r=void 0,kn$3(Node$1.children(t,p,{reverse:!0}))),b=g.next();!b.done;b=g.next()){var m=An$3(b.value,2)[1];Transforms.moveNodes(t,{to:Path.next(l),at:m});}}catch(t){r={error:t};}finally{try{b&&!b.done&&(i=g.return)&&i.call(g);}finally{if(r)throw r.error}}var w=An$3(Editor.nodes(t,{match:sa$3(t,"tr"),at:p}),1),x=An$3(w[0],2)[1];An$3(Node$1.children(t,x),2)[1]&&Transforms.setNodes(t,{hidden:!0},{at:p});}}}Transforms.setNodes(t,{rowSpan:u,colSpan:f},{at:n});}));}}},t}(),gu$2=TypeError,bu$2=Ut$3("species"),mu$2=function(t,e){var r,n=le$3(t).constructor;return void 0===n||ot$3(r=le$3(n)[bu$2])?e:function(t){if(kr$2(t))return t;throw new gu$2(Nt$3(t)+" is not a constructor")}(r)},wu$2=qr$2.UNSUPPORTED_Y,xu$2=Math.min,Su$2=J$3([].push),zu$2=J$3("".slice),Mu$2=!D$3((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Tu$2="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;fl("split",(function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:F$3(e,this,t,r)}:e;return [function(e,r){var o=at$3(this),i=ot$3(e)?void 0:At$3(e,t);return i?F$3(i,e,o,r):F$3(n,Br$2(o),e,r)},function(t,o){var i=le$3(this),a=Br$2(t);if(!Tu$2){var l=r(n,i,a,o,n!==e);if(l.done)return l.value}var u=mu$2(i,RegExp),c=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(wu$2?"g":"y"),f=new u(wu$2?"^(?:"+i.source+")":i,s),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===Sl(f,a)?[a]:[];for(var v=0,h=0,p=[];h<a.length;){f.lastIndex=wu$2?0:h;var y,g=Sl(f,wu$2?zu$2(a,h):a);if(null===g||(y=xu$2(Ge$3(f.lastIndex+(wu$2?h:0)),a.length))===v)h=vl(a,h,c);else {if(Su$2(p,zu$2(a,v,h)),p.length===d)return p;for(var b=1;b<=g.length-1;b++)if(Su$2(p,g[b]),p.length===d)return p;h=v=y;}}return Su$2(p,zu$2(a,v)),p}]}),Tu$2||!Mu$2,wu$2);var Ou$2=function(){function t(){this.title=Wp$1("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var e=An$3(Editor.nodes(t,{match:sa$3(t,"td")}),1),r=An$3(e[0],1)[0],n=r.rowSpan,i=void 0===n?1:n,a=r.colSpan;return !(i>1||(void 0===a?1:a)>1)},t.prototype.exec=function(t,e){this.isDisabled(t)||this.split(t);},t.prototype.split=function(t,e){void 0===e&&(e={});var r=An$3(Editor.nodes(t,{match:sa$3(t,"table","th","td"),at:e.at}),2),n=r[0],i=r[1];if(n&&i){var a=Qi$2.get(t)||[],l=da$3(t,{at:e.at});Editor.withoutNormalizing(t,(function(){for(var r=l.length-1;r>=0;r--)for(var n=l[r].length-1;n>=0;n--){var u=An$3(l[r][n],2),f=An$3(u[0],2)[1],d=u[1],v=d.ltr,h=d.rtl,p=d.btt,y=d.ttb;if(h>1)n-=h-2;else if(!(y>1||1===p&&1===v)){var g=!!e.all;if(a.length)t:for(var b=0;!e.all&&b<a.length;b++)for(var m=0;m<a[b].length;m++){var w=An$3(a[b][m],1),x=An$3(w[0],2)[1];if(Path.equals(x,f)){g=!0;break t}}else {x=An$3(i,2)[1];Path.equals(x,f)&&(g=!0);}if(g){var S=An$3(Editor.nodes(t,{match:sa$3(t,"table"),at:f}),1);An$3(S[0],1)[0];t:for(var z=1;z<p;z++)for(b=n;b>=0;b--){var M=An$3(l[r+z][b],2);if(An$3(M[0],2)[1],1!=M[1].ttb){for(var T=0;T<v;T++){var O=An$3(l[r+z][b+T],1),N=An$3(O[0],2)[1];Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:N});}continue t}}for(T=1;T<v;T++){var E=An$3(l[r][n+T],1);N=An$3(E[0],2)[1];Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:N});}Transforms.setNodes(t,{rowSpan:1,colSpan:1},{at:f});}}}}));}},t}(),Nu$2=function(){function t(){this.title=Wp$1("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.borderStyle=[{value:"none",label:Wp$1("tableModule.borderStyle.none")},{value:"solid",label:Wp$1("tableModule.borderStyle.solid")},{value:"dotted",label:Wp$1("tableModule.borderStyle.dotted")},{value:"dashed",label:Wp$1("tableModule.borderStyle.dashed")},{value:"double",label:Wp$1("tableModule.borderStyle.double")},{value:"groove",label:Wp$1("tableModule.borderStyle.groove")},{value:"ridge",label:Wp$1("tableModule.borderStyle.ridge")},{value:"inset",label:Wp$1("tableModule.borderStyle.inset")},{value:"outset",label:Wp$1("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:Wp$1("justify.left"),svg:'<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>'},{value:"center",label:Wp$1("justify.center"),svg:'<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>'},{value:"right",label:Wp$1("justify.right"),svg:'<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>'},{value:"justify",label:Wp$1("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}];}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,e){},t.prototype.getModalContentNode=function(t){return An$3(Editor.nodes(t,{match:sa$3(t,"table")}),1)[0]},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,r=this.getModalContentNode(t);if(!r)return null;var o=An$3(r,2),i=o[0],a=o[1],l=$$6('<div>\n <label class="babel-container">\n <span>'+Wp$1("tableModule.modal.border")+'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n '+this.borderStyle.map((function(t){return '<option value="'+t.value+'">'+t.label+"</option>"})).join("")+'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="'+Wp$1("tableModule.modal.borderWidth")+'">\n </span>\n </label>\n <div class="babel-container">\n <span>'+Wp$1("tableModule.modal.bgColor")+'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>'+Wp$1("tableModule.modal.align")+'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n '+this.textAlignOptions.map((function(t){return '<option value="'+t.value+'">'+t.label+"</option>"})).join("")+'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">'+Wp$1("tableModule.modal.ok")+"</button>\n </div>\n </div>");l.find("[name]").each((function(t){$$6(t).val(i[$$6(t).attr("name")]);}));var u=function(t,e){e?$$6(".color-group-block",t).css("background-color",e).empty():$$6(".color-group-block",t).css("background-color","").html(Ql);};return l.find(".color-group").each((function(r){var n=$$6('[type="hidden"]',r).val()||"";u(r,n);var o=$$6(r);o.on("click",(function(){l.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=e.getPanelContentElem(t,{mark:o.data("mark"),selectedColor:n,callback:function(t){$$6('[type="hidden"]',r).val(t||""),u(r,t),i.hide();}}),o.append(i),o.data("panel",i));}));})),l.find("button").on("click",(function(){var e=Array.from(l.find("[name]")).reduce((function(t,e){return t[$$6(e).attr("name")]=$$6(e).val(),t}),{});Transforms.setNodes(t,e,{at:a}),setTimeout((function(){t.focus();}));})),l[0]},t.prototype.getPanelContentElem=function(t,e){var r=e.mark,o=e.selectedColor,i=e.callback,a=$$6('<ul class="w-e-panel-content-color"></ul>');a.on("click","li",(function(t){var e=t.target;if(e){t.preventDefault(),t.stopPropagation();var r=$$6(e).attr("data-value");i(r);}}));var l=t.getMenuConfig(r).colors;(void 0===l?[]:l).forEach((function(t){var e=$$6('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var r=$$6('<li data-value="'+t+'"></li>');o===t&&r.addClass("active"),r.append(e),a.append(r);}));var u="";"color"===r&&(u=Wp$1("tableModule.color.default")),"bgColor"===r&&(u=Wp$1("tableModule.color.clear"));var c=$$6('\n <li data-value="" class="clear">\n '+Ql+"\n "+u+"\n </li>\n ");a.prepend(c);var s=$$6('<div class="w-e-drop-panel"></div>');return s.append(a),s},t}(),Eu$2=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=Wp$1("tableModule.cellProperty"),e.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',e.tag="button",e.showModal=!0,e.modalWidth=300,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}On$3(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}(e,t),e.prototype.getModalContentNode=function(t){return An$3(Editor.nodes(t,{match:sa$3(t,"td")}),1)[0]},e}(Nu$2),ku$2={renderStyle:function(t,e){var r,n;if(!Element$1.isElement(t))return e;var o=t,a=o.backgroundColor,l=o.borderWidth,u=o.borderStyle,c=o.borderColor,s=o.textAlign,f={};a&&(f.backgroundColor=a),l&&(f.borderWidth=l+"px"),u&&(f.borderStyle=u),c&&(f.borderColor=c),s&&(f.textAlign=s);var d=e;return "table"===t.type?nl(null===(n=(null===(r=d.children)||void 0===r?void 0:r[0]).children)||void 0===n?void 0:n[0],f):nl(d,f),d},styleToHtml:function(t,e){if("table"!==t.type&&"table-cell"!==t.type)return e;var r=t.backgroundColor,n=t.borderWidth,o=t.borderStyle,i=t.borderColor,a=t.textAlign;if(!(r||n||o||i||a))return e;var l=$$6(e);return r&&l.css("background-color",r),n&&l.css("border-width",n+"px"),o&&l.css("border-style",o),i&&l.css("border-color",i),a&&l.css("text-align",a),function(t){return 0===t.length?"":t[0].outerHTML}(l)},parseStyleHtml:function(t,e,r){if("TABLE"!==t.tagName&&"TD"!==t.tagName)return e;var n=$$6(t),o=e,i=Ea$3(n,"background-color");i||(i=Ea$3(n,"background")),i&&(o.backgroundColor=i);var a=Ea$3(n,"border");a||"TD"!==t.tagName||(a="1px solid "+Cl);var l=An$3((null==a?void 0:a.split(" "))||[],3),u=l[0],c=l[1],s=l[2];(u=Ea$3(n,"border-width")||u)&&(o.borderWidth=u.replace(/[^\d]/g,"")),(c=Ea$3(n,"border-style")||c)&&(o.borderStyle=c),(s=Ea$3(n,"border-color")||s)&&(o.borderColor=s);var f=Ea$3(n,"text-align");return (f=Ea$3(n,"text-align")||f)&&(o.textAlign=f),e},renderElems:[Fa$1,$a$1,qa$1],elemsToHtml:[Ka$1,Ya$1,Ja$1],preParseHtml:[Qa$1],parseElemsHtml:[_l,Fl,$l],menus:[{key:"insertTable",factory:function(){return new Zl}},{key:"deleteTable",factory:function(){return new tu$2}},{key:"insertTableRow",factory:function(){return new eu$2}},{key:"deleteTableRow",factory:function(){return new ru$2}},{key:"insertTableCol",factory:function(){return new du$2}},{key:"deleteTableCol",factory:function(){return new vu$2}},{key:"tableHeader",factory:function(){return new hu$2}},{key:"tableFullWidth",factory:function(){return new pu$2}},{key:"mergeTableCell",factory:function(){return new yu$2}},{key:"splitTableCell",factory:function(){return new Ou$2}},{key:"setTableProperty",factory:function(){return new Nu$2}},{key:"setTableCellProperty",factory:function(){return new Eu$2}}],editorPlugin:function(t){var r=t.insertBreak,n=t.deleteBackward,i=t.deleteForward,f=t.normalizeNode,d=t.insertData,v=t.handleTab,h=t.selectAll,p=t;return p.insertBreak=function(){null==Ic$2.getSelectedNodeByType(p,"table")?r():p.insertText("\n");},p.deleteBackward=function(t){if(!pa$3(p)){var r=p.selection;if(r){var i=Editor.before(p,r);if(i){var a=function(t,r){var n,i,a=Editor.nodes(t,{at:r,match:function(t){return "table"===Ic$2.getNodeType(t)}}),l=!1;try{for(var u=kn$3(a),c=u.next();!c.done;c=u.next())c.value,l=!0;}catch(t){n={error:t};}finally{try{c&&!c.done&&(i=u.return)&&i.call(u);}finally{if(n)throw n.error}}return l}(p,i);if(a&&Ic$2.getSelectedNodeByType(p,"paragraph"))return}}n(t);}},p.handleTab=function(){var r;if(Ic$2.getSelectedNodeByType(p,"table")){var n=Editor.above(t);Ic$2.checkNodeType(n[0],"table-cell")&&Transforms.select(t,n[1]);var i=Editor.next(t);if(i)i[0]&&i[0].text&&(i=null!==(r=Editor.above(t,{at:i[1]}))&&void 0!==r?r:i),Transforms.select(t,i[1]);else {var a=p.children||[],l=a.length;if(Ic$2.checkNodeType(a[l-1],"table")){var u=Ic$2.genEmptyParagraph();Transforms.insertNodes(p,u,{at:[l]}),p.handleTab();}}}else v();},p.deleteForward=function(t){pa$3(p)||i(t);},p.normalizeNode=function(t){var r=An$3(t,2),n=r[0],o=r[1];if("table"!==Ic$2.getNodeType(n))return f([n,o]);if(Ic$2.isLastNode(p,n)){var i=Ic$2.genEmptyParagraph();Transforms.insertNodes(p,i,{at:[o[0]+1]});}},p.insertData=function(t){if(null!=Ic$2.getSelectedNodeByType(p,"table")){var r=t.getData("text/plain");"\n"===r||/<img[^>]+>/.test(t.getData("text/html"))?d(t):Editor.insertText(p,r);}else d(t);},p.selectAll=function(){var t=p.selection;if(null!=t){var r=Ic$2.getSelectedNodeByType(p,"table-cell");if(null!=r){var n=t.anchor,i=t.focus;if(Path.equals(n.path.slice(0,3),i.path.slice(0,3)))if(0!==Node$1.string(r).length){var l=Ic$2.findPath(p,r),u={anchor:Editor.start(p,l),focus:Editor.end(p,l)};p.select(u);}else h();else h();}else h();}else h();},function(t){var e=t.apply;t.apply=function(r){if(!Operation.isSelectionOperation(r)||!r.newProperties)return e(r);var n=Nn$3(Nn$3({},t.selection),r.newProperties);if(!Range.isRange(n))return ha$3.unselect(t),e(r);var i=An$3(Editor.nodes(t,{match:sa$3(t,"th","td"),at:Range.start(n)}),1)[0],a=An$3(Editor.nodes(t,{match:sa$3(t,"th","td"),at:Range.end(n)}),1)[0];if(!i||!a)return ha$3.unselect(t),e(r);var s=An$3(i,2)[1],f=An$3(a,2)[1];if(Path.equals(s,f)||!fa$3(t,[s,f],"table"))return ha$3.unselect(t),e(r);var d=da$3(t,{at:s}),v=va$2.valueOf(0,0),h=va$2.valueOf(0,0);t:for(var p=0;p<d.length;p++)for(var y=0;y<d[p].length;y++){var g=An$3(d[p][y],1),b=An$3(g[0],2)[1];if(Path.equals(s,b)&&(v.x=p,v.y=y),Path.equals(f,b)){h.x=p,h.y=y;break t}}for(var m=va$2.valueOf(Math.min(v.x,h.x),Math.min(v.y,h.y)),w=va$2.valueOf(Math.max(v.x,h.x),Math.max(v.y,h.y));;){var x=va$2.valueOf(m.x,m.y),S=va$2.valueOf(w.x,w.y);for(p=x.x;p<=S.x;p++)for(y=x.y;y<=S.y;y++){var z=An$3(d[p][y],2)[1],M=z.rtl,T=z.ltr,O=z.btt,N=z.ttb;x.x=Math.min(x.x,p-(N-1)),x.y=Math.min(x.y,y-(M-1)),S.x=Math.max(S.x,p+(O-1)),S.y=Math.max(S.y,y+(T-1));}if(va$2.equals(m,x)&&va$2.equals(w,S))break;m=x,w=S;}var E=[],k=new WeakSet;for(p=m.x;p<=w.x;p++){var A=[];for(y=m.y;y<=w.y;y++){var H=An$3(d[p][y],1),C=An$3(H[0],1)[0];k.add(C),A.push(d[p][y]);}E.push(A);}Qi$2.set(t,E),Zi$2.set(t,k),e(r);};}(p),p}};
|
|
17552
|
+
Fp$1("en",{tableModule:{modal:{border:"Border",borderWidth:"Width",bgColor:"Back color",align:"Text Align",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),Fp$1("zh-CN",{tableModule:{modal:{border:"边框",borderWidth:"宽度",bgColor:"背景色",align:"对齐方式",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var j$3="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function P$3(t){var e={exports:{}};return t(e,e.exports),e.exports}var V$3,I$3,R$3=function(t){return t&&t.Math===Math&&t},L$3=R$3("object"==typeof globalThis&&globalThis)||R$3("object"==typeof window&&window)||R$3("object"==typeof self&&self)||R$3("object"==typeof j$3&&j$3)||R$3("object"==typeof j$3&&j$3)||function(){return this}()||Function("return this")(),D$3=function(t){try{return !!t()}catch(t){return !0}},B$3=!D$3((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),W$3=!D$3((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),_$3=Function.prototype.call,F$3=W$3?_$3.bind(_$3):function(){return _$3.apply(_$3,arguments)},$$3={}.propertyIsEnumerable,q$3=Object.getOwnPropertyDescriptor,G$3={f:q$3&&!$$3.call({1:2},1)?function(t){var e=q$3(this,t);return !!e&&e.enumerable}:$$3},U$3=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},X$3=Function.prototype,K$3=X$3.call,Y$3=W$3&&X$3.bind.bind(K$3,K$3),J$3=W$3?Y$3:function(t){return function(){return K$3.apply(t,arguments)}},Q$3=J$3({}.toString),Z$3=J$3("".slice),tt$3=function(t){return Z$3(Q$3(t),8,-1)},et$3=Object,rt$3=J$3("".split),nt$3=D$3((function(){return !et$3("z").propertyIsEnumerable(0)}))?function(t){return "String"===tt$3(t)?rt$3(t,""):et$3(t)}:et$3,ot$3=function(t){return null==t},it$3=TypeError,at$3=function(t){if(ot$3(t))throw new it$3("Can't call method on "+t);return t},lt$3=function(t){return nt$3(at$3(t))},ut$3="object"==typeof document&&document.all,ct$3=void 0===ut$3&&void 0!==ut$3?function(t){return "function"==typeof t||t===ut$3}:function(t){return "function"==typeof t},st$3=function(t){return "object"==typeof t?null!==t:ct$3(t)},ft$3=function(t,e){return arguments.length<2?(r=L$3[t],ct$3(r)?r:void 0):L$3[t]&&L$3[t][e];var r;},dt$3=J$3({}.isPrototypeOf),vt$3=L$3.navigator,ht$3=vt$3&&vt$3.userAgent,pt$3=ht$3?String(ht$3):"",yt$3=L$3.process,gt$3=L$3.Deno,bt$3=yt$3&&yt$3.versions||gt$3&>$3.version,mt$3=bt$3&&bt$3.v8;mt$3&&(I$3=(V$3=mt$3.split("."))[0]>0&&V$3[0]<4?1:+(V$3[0]+V$3[1])),!I$3&&pt$3&&(!(V$3=pt$3.match(/Edge\/(\d+)/))||V$3[1]>=74)&&(V$3=pt$3.match(/Chrome\/(\d+)/))&&(I$3=+V$3[1]);var wt$3=I$3,xt$3=L$3.String,St$3=!!Object.getOwnPropertySymbols&&!D$3((function(){var t=Symbol("symbol detection");return !xt$3(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&wt$3&&wt$3<41})),zt$3=St$3&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt$3=Object,Tt$3=zt$3?function(t){return "symbol"==typeof t}:function(t){var e=ft$3("Symbol");return ct$3(e)&&dt$3(e.prototype,Mt$3(t))},Ot$3=String,Nt$3=function(t){try{return Ot$3(t)}catch(t){return "Object"}},Et$3=TypeError,kt$3=function(t){if(ct$3(t))return t;throw new Et$3(Nt$3(t)+" is not a function")},At$3=function(t,e){var r=t[e];return ot$3(r)?void 0:kt$3(r)},Ht$3=TypeError,Ct$3=Object.defineProperty,jt$3=function(t,e){try{Ct$3(L$3,t,{value:e,configurable:!0,writable:!0});}catch(r){L$3[t]=e;}return e},Pt$3=P$3((function(t){var e="__core-js_shared__",r=t.exports=L$3[e]||jt$3(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),Vt$3=function(t,e){return Pt$3[t]||(Pt$3[t]=e||{})},It$3=Object,Rt$3=function(t){return It$3(at$3(t))},Lt$3=J$3({}.hasOwnProperty),Dt$3=Object.hasOwn||function(t,e){return Lt$3(Rt$3(t),e)},Bt$3=0,Wt$3=Math.random(),_t$3=J$3(1..toString),Ft$3=function(t){return "Symbol("+(void 0===t?"":t)+")_"+_t$3(++Bt$3+Wt$3,36)},$t$3=L$3.Symbol,qt$3=Vt$3("wks"),Gt$3=zt$3?$t$3.for||$t$3:$t$3&&$t$3.withoutSetter||Ft$3,Ut$3=function(t){return Dt$3(qt$3,t)||(qt$3[t]=St$3&&Dt$3($t$3,t)?$t$3[t]:Gt$3("Symbol."+t)),qt$3[t]},Xt$3=TypeError,Kt$3=Ut$3("toPrimitive"),Yt$3=function(t,e){if(!st$3(t)||Tt$3(t))return t;var r,n=At$3(t,Kt$3);if(n){if(void 0===e&&(e="default"),r=F$3(n,t,e),!st$3(r)||Tt$3(r))return r;throw new Xt$3("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&ct$3(r=t.toString)&&!st$3(n=F$3(r,t)))return n;if(ct$3(r=t.valueOf)&&!st$3(n=F$3(r,t)))return n;if("string"!==e&&ct$3(r=t.toString)&&!st$3(n=F$3(r,t)))return n;throw new Ht$3("Can't convert object to primitive value")}(t,e)},Jt$3=function(t){var e=Yt$3(t,"string");return Tt$3(e)?e:e+""},Qt$3=L$3.document,Zt$3=st$3(Qt$3)&&st$3(Qt$3.createElement),te$3=function(t){return Zt$3?Qt$3.createElement(t):{}},ee$3=!B$3&&!D$3((function(){return 7!==Object.defineProperty(te$3("div"),"a",{get:function(){return 7}}).a})),re$3=Object.getOwnPropertyDescriptor,ne$3={f:B$3?re$3:function(t,e){if(t=lt$3(t),e=Jt$3(e),ee$3)try{return re$3(t,e)}catch(t){}if(Dt$3(t,e))return U$3(!F$3(G$3.f,t,e),t[e])}},oe$3=B$3&&D$3((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ie$3=String,ae$3=TypeError,le$3=function(t){if(st$3(t))return t;throw new ae$3(ie$3(t)+" is not an object")},ue$3=TypeError,ce$3=Object.defineProperty,se$3=Object.getOwnPropertyDescriptor,fe$3="enumerable",de$3="configurable",ve$3="writable",he$3={f:B$3?oe$3?function(t,e,r){if(le$3(t),e=Jt$3(e),le$3(r),"function"==typeof t&&"prototype"===e&&"value"in r&&ve$3 in r&&!r[ve$3]){var n=se$3(t,e);n&&n[ve$3]&&(t[e]=r.value,r={configurable:de$3 in r?r[de$3]:n[de$3],enumerable:fe$3 in r?r[fe$3]:n[fe$3],writable:!1});}return ce$3(t,e,r)}:ce$3:function(t,e,r){if(le$3(t),e=Jt$3(e),le$3(r),ee$3)try{return ce$3(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new ue$3("Accessors not supported");return "value"in r&&(t[e]=r.value),t}},pe$3=B$3?function(t,e,r){return he$3.f(t,e,U$3(1,r))}:function(t,e,r){return t[e]=r,t},ye$3=Function.prototype,ge$3=B$3&&Object.getOwnPropertyDescriptor,be$3=Dt$3(ye$3,"name"),me$3={EXISTS:be$3,PROPER:be$3&&"something"===function(){}.name,CONFIGURABLE:be$3&&(!B$3||B$3&&ge$3(ye$3,"name").configurable)},we$3=J$3(Function.toString);ct$3(Pt$3.inspectSource)||(Pt$3.inspectSource=function(t){return we$3(t)});var xe$3,Se$3,ze$3,Me$3=Pt$3.inspectSource,Te$3=L$3.WeakMap,Oe$3=ct$3(Te$3)&&/native code/.test(String(Te$3)),Ne$3=Vt$3("keys"),Ee$3=function(t){return Ne$3[t]||(Ne$3[t]=Ft$3(t))},ke$3={},Ae$3="Object already initialized",He$3=L$3.TypeError,Ce$3=L$3.WeakMap;if(Oe$3||Pt$3.state){var je$3=Pt$3.state||(Pt$3.state=new Ce$3);je$3.get=je$3.get,je$3.has=je$3.has,je$3.set=je$3.set,xe$3=function(t,e){if(je$3.has(t))throw new He$3(Ae$3);return e.facade=t,je$3.set(t,e),e},Se$3=function(t){return je$3.get(t)||{}},ze$3=function(t){return je$3.has(t)};}else {var Pe$3=Ee$3("state");ke$3[Pe$3]=!0,xe$3=function(t,e){if(Dt$3(t,Pe$3))throw new He$3(Ae$3);return e.facade=t,pe$3(t,Pe$3,e),e},Se$3=function(t){return Dt$3(t,Pe$3)?t[Pe$3]:{}},ze$3=function(t){return Dt$3(t,Pe$3)};}var Ve$3={set:xe$3,get:Se$3,has:ze$3,enforce:function(t){return ze$3(t)?Se$3(t):xe$3(t,{})},getterFor:function(t){return function(e){var r;if(!st$3(e)||(r=Se$3(e)).type!==t)throw new He$3("Incompatible receiver, "+t+" required");return r}}},Ie$3=P$3((function(t){var e=me$3.CONFIGURABLE,r=Ve$3.enforce,n=Ve$3.get,o=String,i=Object.defineProperty,a=J$3("".slice),l=J$3("".replace),u=J$3([].join),c=B$3&&!D$3((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),f=t.exports=function(t,n,f){"Symbol("===a(o(n),0,7)&&(n="["+l(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),f&&f.getter&&(n="get "+n),f&&f.setter&&(n="set "+n),(!Dt$3(t,"name")||e&&t.name!==n)&&(B$3?i(t,"name",{value:n,configurable:!0}):t.name=n),c&&f&&Dt$3(f,"arity")&&t.length!==f.arity&&i(t,"length",{value:f.arity});try{f&&Dt$3(f,"constructor")&&f.constructor?B$3&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=r(t);return Dt$3(d,"source")||(d.source=u(s,"string"==typeof n?n:"")),t};Function.prototype.toString=f((function(){return ct$3(this)&&n(this).source||Me$3(this)}),"toString");})),Re$3=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(ct$3(r)&&Ie$3(r,i,n),n.global)o?t[e]=r:jt$3(e,r);else {try{n.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=r:he$3.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable});}return t},Le$3=Math.ceil,De$3=Math.floor,Be$3=Math.trunc||function(t){var e=+t;return (e>0?De$3:Le$3)(e)},We$3=function(t){var e=+t;return e!=e||0===e?0:Be$3(e)},_e$3=Math.max,Fe$3=Math.min,$e$3=function(t,e){var r=We$3(t);return r<0?_e$3(r+e,0):Fe$3(r,e)},qe$3=Math.min,Ge$3=function(t){var e=We$3(t);return e>0?qe$3(e,9007199254740991):0},Ue$3=function(t){return Ge$3(t.length)},Xe$3=function(t){return function(e,r,n){var o=lt$3(e),i=Ue$3(o);if(0===i)return !t&&-1;var a,l=$e$3(n,i);if(t&&r!=r){for(;i>l;)if((a=o[l++])!=a)return !0}else for(;i>l;l++)if((t||l in o)&&o[l]===r)return t||l||0;return !t&&-1}},Ke$3={includes:Xe$3(!0),indexOf:Xe$3(!1)},Ye$3=Ke$3.indexOf,Je$3=J$3([].push),Qe$3=function(t,e){var r,n=lt$3(t),o=0,i=[];for(r in n)!Dt$3(ke$3,r)&&Dt$3(n,r)&&Je$3(i,r);for(;e.length>o;)Dt$3(n,r=e[o++])&&(~Ye$3(i,r)||Je$3(i,r));return i},Ze$3=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tr$2=Ze$3.concat("length","prototype"),er$2={f:Object.getOwnPropertyNames||function(t){return Qe$3(t,tr$2)}},rr$2={f:Object.getOwnPropertySymbols},nr$2=J$3([].concat),or$2=ft$3("Reflect","ownKeys")||function(t){var e=er$2.f(le$3(t)),r=rr$2.f;return r?nr$2(e,r(t)):e},ir$2=function(t,e,r){for(var n=or$2(e),o=he$3.f,i=ne$3.f,a=0;a<n.length;a++){var l=n[a];Dt$3(t,l)||r&&Dt$3(r,l)||o(t,l,i(e,l));}},ar$2=/#|\.prototype\./,lr$2=function(t,e){var r=cr$2[ur$2(t)];return r===fr$2||r!==sr$2&&(ct$3(e)?D$3(e):!!e)},ur$2=lr$2.normalize=function(t){return String(t).replace(ar$2,".").toLowerCase()},cr$2=lr$2.data={},sr$2=lr$2.NATIVE="N",fr$2=lr$2.POLYFILL="P",dr$2=lr$2,vr$2=ne$3.f,hr$2=function(t,e){var r,n,o,i,a,l=t.target,u=t.global,c=t.stat;if(r=u?L$3:c?L$3[l]||jt$3(l,{}):L$3[l]&&L$3[l].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=vr$2(r,n))&&a.value:r[n],!dr$2(u?n:l+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ir$2(i,o);}(t.sham||o&&o.sham)&&pe$3(i,"sham",!0),Re$3(r,n,i,t);}},pr$2=Array.isArray||function(t){return "Array"===tt$3(t)},yr$2={};yr$2[Ut$3("toStringTag")]="z";var gr$2="[object z]"===String(yr$2),br$2=Ut$3("toStringTag"),mr$2=Object,wr$2="Arguments"===tt$3(function(){return arguments}()),xr$2=gr$2?tt$3:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=mr$2(t),br$2))?r:wr$2?tt$3(e):"Object"===(n=tt$3(e))&&ct$3(e.callee)?"Arguments":n},Sr$2=function(){},zr$2=ft$3("Reflect","construct"),Mr$2=/^\s*(?:class|function)\b/,Tr$2=J$3(Mr$2.exec),Or$2=!Mr$2.test(Sr$2),Nr$2=function(t){if(!ct$3(t))return !1;try{return zr$2(Sr$2,[],t),!0}catch(t){return !1}},Er$2=function(t){if(!ct$3(t))return !1;switch(xr$2(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Or$2||!!Tr$2(Mr$2,Me$3(t))}catch(t){return !0}};Er$2.sham=!0;var kr$2=!zr$2||D$3((function(){var t;return Nr$2(Nr$2.call)||!Nr$2(Object)||!Nr$2((function(){t=!0;}))||t}))?Er$2:Nr$2,Ar$2=function(t,e,r){B$3?he$3.f(t,e,U$3(0,r)):t[e]=r;},Hr$2=Ut$3("species"),Cr$2=function(t){return wt$3>=51||!D$3((function(){var e=[];return (e.constructor={})[Hr$2]=function(){return {foo:1}},1!==e[t](Boolean).foo}))},jr$2=J$3([].slice),Pr$2=Cr$2("slice"),Vr$2=Ut$3("species"),Ir$2=Array,Rr$2=Math.max;hr$2({target:"Array",proto:!0,forced:!Pr$2},{slice:function(t,e){var r,n,o,i=lt$3(this),a=Ue$3(i),l=$e$3(t,a),u=$e$3(void 0===e?a:e,a);if(pr$2(i)&&(r=i.constructor,(kr$2(r)&&(r===Ir$2||pr$2(r.prototype))||st$3(r)&&null===(r=r[Vr$2]))&&(r=void 0),r===Ir$2||void 0===r))return jr$2(i,l,u);for(n=new(void 0===r?Ir$2:r)(Rr$2(u-l,0)),o=0;l<u;l++,o++)l in i&&Ar$2(n,o,i[l]);return n.length=o,n}});var Lr$2,Dr$2=String,Br$2=function(t){if("Symbol"===xr$2(t))throw new TypeError("Cannot convert a Symbol value to a string");return Dr$2(t)},Wr$2=function(){var t=le$3(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},_r$2=L$3.RegExp,Fr$2=D$3((function(){var t=_r$2("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),$r$2=Fr$2||D$3((function(){return !_r$2("a","y").sticky})),qr$2={BROKEN_CARET:Fr$2||D$3((function(){var t=_r$2("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:$r$2,UNSUPPORTED_Y:Fr$2},Gr$2=Object.keys||function(t){return Qe$3(t,Ze$3)},Ur$2=B$3&&!oe$3?Object.defineProperties:function(t,e){le$3(t);for(var r,n=lt$3(e),o=Gr$2(e),i=o.length,a=0;i>a;)he$3.f(t,r=o[a++],n[r]);return t},Xr$2={f:Ur$2},Kr$2=ft$3("document","documentElement"),Yr$2="prototype",Jr$2="script",Qr$2=Ee$3("IE_PROTO"),Zr$2=function(){},tn$3=function(t){return "<"+Jr$2+">"+t+"</"+Jr$2+">"},en$3=function(t){t.write(tn$3("")),t.close();var e=t.parentWindow.Object;return t=null,e},rn$3=function(){try{Lr$2=new ActiveXObject("htmlfile");}catch(t){}var t,e,r;rn$3="undefined"!=typeof document?document.domain&&Lr$2?en$3(Lr$2):(e=te$3("iframe"),r="java"+Jr$2+":",e.style.display="none",Kr$2.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(tn$3("document.F=Object")),t.close(),t.F):en$3(Lr$2);for(var n=Ze$3.length;n--;)delete rn$3[Yr$2][Ze$3[n]];return rn$3()};ke$3[Qr$2]=!0;var nn$3,on$3,an$3=Object.create||function(t,e){var r;return null!==t?(Zr$2[Yr$2]=le$3(t),r=new Zr$2,Zr$2[Yr$2]=null,r[Qr$2]=t):r=rn$3(),void 0===e?r:Xr$2.f(r,e)},ln$3=L$3.RegExp,un$3=D$3((function(){var t=ln$3(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),cn$3=L$3.RegExp,sn$3=D$3((function(){var t=cn$3("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),fn$3=Ve$3.get,dn$3=Vt$3("native-string-replace",String.prototype.replace),vn$3=RegExp.prototype.exec,hn$3=vn$3,pn$3=J$3("".charAt),yn$3=J$3("".indexOf),gn$3=J$3("".replace),bn$3=J$3("".slice),mn$3=(on$3=/b*/g,F$3(vn$3,nn$3=/a/,"a"),F$3(vn$3,on$3,"a"),0!==nn$3.lastIndex||0!==on$3.lastIndex),wn$3=qr$2.BROKEN_CARET,xn$3=void 0!==/()??/.exec("")[1];(mn$3||xn$3||wn$3||un$3||sn$3)&&(hn$3=function(t){var e,r,n,o,i,a,l,u=this,c=fn$3(u),s=Br$2(t),f=c.raw;if(f)return f.lastIndex=u.lastIndex,e=F$3(hn$3,f,s),u.lastIndex=f.lastIndex,e;var d=c.groups,v=wn$3&&u.sticky,h=F$3(Wr$2,u),p=u.source,y=0,g=s;if(v&&(h=gn$3(h,"y",""),-1===yn$3(h,"g")&&(h+="g"),g=bn$3(s,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==pn$3(s,u.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),r=new RegExp("^(?:"+p+")",h)),xn$3&&(r=new RegExp("^"+p+"$(?!\\s)",h)),mn$3&&(n=u.lastIndex),o=F$3(vn$3,v?r:u,g),v?o?(o.input=bn$3(o.input,y),o[0]=bn$3(o[0],y),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:mn$3&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),xn$3&&o&&o.length>1&&F$3(dn$3,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=a=an$3(null),i=0;i<d.length;i++)a[(l=d[i])[0]]=o[l[1]];return o});var Sn$3=hn$3;hr$2({target:"RegExp",proto:!0,forced:/./.exec!==Sn$3},{exec:Sn$3});var zn$3,Mn$3=/"/g,Tn$3=J$3("".replace);hr$2({target:"String",proto:!0,forced:(zn$3="anchor",D$3((function(){var t=""[zn$3]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return e="a",r="name",n=t,o=Br$2(at$3(this)),i="<"+e,""!==r&&(i+=" "+r+'="'+Tn$3(Br$2(n),Mn$3,""")+'"'),i+">"+o+"</"+e+">";var e,r,n,o,i;}});var On$3=function(t,e){return On$3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e;}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);},On$3(t,e)};var Nn$3=function(){return Nn$3=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Nn$3.apply(this,arguments)};function En$3(t,e){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:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(u){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=e.call(t,a);}catch(t){l=[6,t],n=0;}finally{r=o=0;}if(5&l[0])throw l[1];return {value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function kn$3(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function An$3(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value);}catch(t){o={error:t};}finally{try{n&&!n.done&&(r=i.return)&&r.call(i);}finally{if(o)throw o.error}}return a}function Hn$3(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var Cn$3=he$3.f,jn$3=Ut$3("unscopables"),Pn$3=Array.prototype;void 0===Pn$3[jn$3]&&Cn$3(Pn$3,jn$3,{configurable:!0,value:an$3(null)});var Vn$3,In$3,Rn$3,Ln$3=function(t){Pn$3[jn$3][t]=!0;},Dn$3={},Bn$3=!D$3((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Wn$3=Ee$3("IE_PROTO"),_n$3=Object,Fn$3=_n$3.prototype,$n$3=Bn$3?_n$3.getPrototypeOf:function(t){var e=Rt$3(t);if(Dt$3(e,Wn$3))return e[Wn$3];var r=e.constructor;return ct$3(r)&&e instanceof r?r.prototype:e instanceof _n$3?Fn$3:null},qn$3=Ut$3("iterator"),Gn$3=!1;[].keys&&("next"in(Rn$3=[].keys())?(In$3=$n$3($n$3(Rn$3)))!==Object.prototype&&(Vn$3=In$3):Gn$3=!0);var Un$3=!st$3(Vn$3)||D$3((function(){var t={};return Vn$3[qn$3].call(t)!==t}));Un$3&&(Vn$3={}),ct$3(Vn$3[qn$3])||Re$3(Vn$3,qn$3,(function(){return this}));var Xn$3={IteratorPrototype:Vn$3,BUGGY_SAFARI_ITERATORS:Gn$3},Kn$3=he$3.f,Yn$3=Ut$3("toStringTag"),Jn$3=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Dt$3(t,Yn$3)&&Kn$3(t,Yn$3,{configurable:!0,value:e});},Qn$3=Xn$3.IteratorPrototype,Zn$3=function(){return this},to$2=String,eo$2=TypeError,ro$2=function(t){if(function(t){return st$3(t)||null===t}(t))return t;throw new eo$2("Can't set "+to$2(t)+" as a prototype")},no$2=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return J$3(kt$3(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array;}catch(t){}return function(r,n){return at$3(r),ro$2(n),st$3(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),oo$2=me$3.PROPER,io$2=me$3.CONFIGURABLE,ao$2=Xn$3.IteratorPrototype,lo$2=Xn$3.BUGGY_SAFARI_ITERATORS,uo$2=Ut$3("iterator"),co$2="keys",so$2="values",fo$2="entries",vo$2=function(){return this},ho$2=function(t,e,r,n,o,i,a){!function(t,e,r,n){var o=e+" Iterator";t.prototype=an$3(Qn$3,{next:U$3(+!n,r)}),Jn$3(t,o,!1),Dn$3[o]=Zn$3;}(r,e,n);var l,u,c,s=function(t){if(t===o&&p)return p;if(!lo$2&&t&&t in v)return v[t];switch(t){case co$2:case so$2:case fo$2:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,v=t.prototype,h=v[uo$2]||v["@@iterator"]||o&&v[o],p=!lo$2&&h||s(o),y="Array"===e&&v.entries||h;if(y&&(l=$n$3(y.call(new t)))!==Object.prototype&&l.next&&($n$3(l)!==ao$2&&(no$2?no$2(l,ao$2):ct$3(l[uo$2])||Re$3(l,uo$2,vo$2)),Jn$3(l,f,!0)),oo$2&&o===so$2&&h&&h.name!==so$2&&(io$2?pe$3(v,"name",so$2):(d=!0,p=function(){return F$3(h,this)})),o)if(u={values:s(so$2),keys:i?p:s(co$2),entries:s(fo$2)},a)for(c in u)(lo$2||d||!(c in v))&&Re$3(v,c,u[c]);else hr$2({target:e,proto:!0,forced:lo$2||d},u);return v[uo$2]!==p&&Re$3(v,uo$2,p,{name:o}),Dn$3[e]=p,u},po$2=function(t,e){return {value:t,done:e}},yo$2=he$3.f,go$2="Array Iterator",bo$2=Ve$3.set,mo$2=Ve$3.getterFor(go$2),wo$2=ho$2(Array,"Array",(function(t,e){bo$2(this,{type:go$2,target:lt$3(t),index:0,kind:e});}),(function(){var t=mo$2(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,po$2(void 0,!0);switch(t.kind){case"keys":return po$2(r,!1);case"values":return po$2(e[r],!1)}return po$2([r,e[r]],!1)}),"values"),xo$2=Dn$3.Arguments=Dn$3.Array;if(Ln$3("keys"),Ln$3("values"),Ln$3("entries"),B$3&&"values"!==xo$2.name)try{yo$2(xo$2,"name",{value:"values"});}catch(t){}var So$2=gr$2?{}.toString:function(){return "[object "+xr$2(this)+"]"};gr$2||Re$3(Object.prototype,"toString",So$2,{unsafe:!0});var zo$2=J$3("".charAt),Mo$2=J$3("".charCodeAt),To$2=J$3("".slice),Oo$2=function(t){return function(e,r){var n,o,i=Br$2(at$3(e)),a=We$3(r),l=i.length;return a<0||a>=l?t?"":void 0:(n=Mo$2(i,a))<55296||n>56319||a+1===l||(o=Mo$2(i,a+1))<56320||o>57343?t?zo$2(i,a):n:t?To$2(i,a,a+2):o-56320+(n-55296<<10)+65536}},No$2={codeAt:Oo$2(!1),charAt:Oo$2(!0)},Eo$2=No$2.charAt,ko$2="String Iterator",Ao$2=Ve$3.set,Ho$2=Ve$3.getterFor(ko$2);ho$2(String,"String",(function(t){Ao$2(this,{type:ko$2,string:Br$2(t),index:0});}),(function(){var t,e=Ho$2(this),r=e.string,n=e.index;return n>=r.length?po$2(void 0,!0):(t=Eo$2(r,n),e.index+=t.length,po$2(t,!1))}));var Co$2=er$2.f,jo$2="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Po$2={f:function(t){return jo$2&&"Window"===tt$3(t)?function(t){try{return Co$2(t)}catch(t){return jr$2(jo$2)}}(t):Co$2(lt$3(t))}},Vo$2=D$3((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Io$2=Object.isExtensible,Ro$2=D$3((function(){Io$2(1);}))||Vo$2?function(t){return !!st$3(t)&&((!Vo$2||"ArrayBuffer"!==tt$3(t))&&(!Io$2||Io$2(t)))}:Io$2,Lo$2=!D$3((function(){return Object.isExtensible(Object.preventExtensions({}))})),Do$2=P$3((function(t){var e=he$3.f,r=!1,n=Ft$3("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}});},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=er$2.f,e=J$3([].splice),o={};o[n]=1,t(o).length&&(er$2.f=function(r){for(var o=t(r),i=0,a=o.length;i<a;i++)if(o[i]===n){e(o,i,1);break}return o},hr$2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Po$2.f}));},fastKey:function(t,e){if(!st$3(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Dt$3(t,n)){if(!Ro$2(t))return "F";if(!e)return "E";i(t);}return t[n].objectID},getWeakData:function(t,e){if(!Dt$3(t,n)){if(!Ro$2(t))return !0;if(!e)return !1;i(t);}return t[n].weakData},onFreeze:function(t){return Lo$2&&r&&Ro$2(t)&&!Dt$3(t,n)&&i(t),t}};ke$3[n]=!0;})),Bo$2=function(t){if("Function"===tt$3(t))return J$3(t)},Wo$2=Bo$2(Bo$2.bind),_o$2=function(t,e){return kt$3(t),void 0===e?t:W$3?Wo$2(t,e):function(){return t.apply(e,arguments)}},Fo$2=Ut$3("iterator"),$o$2=Array.prototype,qo$2=function(t){return void 0!==t&&(Dn$3.Array===t||$o$2[Fo$2]===t)},Go$2=Ut$3("iterator"),Uo$2=function(t){if(!ot$3(t))return At$3(t,Go$2)||At$3(t,"@@iterator")||Dn$3[xr$2(t)]},Xo$2=TypeError,Ko$2=function(t,e){var r=arguments.length<2?Uo$2(t):e;if(kt$3(r))return le$3(F$3(r,t));throw new Xo$2(Nt$3(t)+" is not iterable")},Yo$2=function(t,e,r){var n,o;le$3(t);try{if(!(n=At$3(t,"return"))){if("throw"===e)throw r;return r}n=F$3(n,t);}catch(t){o=!0,n=t;}if("throw"===e)throw r;if(o)throw n;return le$3(n),r},Jo$2=TypeError,Qo$2=function(t,e){this.stopped=t,this.result=e;},Zo$2=Qo$2.prototype,ti$2=function(t,e,r){var n,o,i,a,l,u,c,s=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),v=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),p=_o$2(e,s),y=function(t){return n&&Yo$2(n,"normal",t),new Qo$2(!0,t)},g=function(t){return f?(le$3(t),h?p(t[0],t[1],y):p(t[0],t[1])):h?p(t,y):p(t)};if(d)n=t.iterator;else if(v)n=t;else {if(!(o=Uo$2(t)))throw new Jo$2(Nt$3(t)+" is not iterable");if(qo$2(o)){for(i=0,a=Ue$3(t);a>i;i++)if((l=g(t[i]))&&dt$3(Zo$2,l))return l;return new Qo$2(!1)}n=Ko$2(t,o);}for(u=d?t.next:n.next;!(c=F$3(u,n)).done;){try{l=g(c.value);}catch(t){Yo$2(n,"throw",t);}if("object"==typeof l&&l&&dt$3(Zo$2,l))return l}return new Qo$2(!1)},ei$2=TypeError,ri$2=function(t,e){if(dt$3(e,t))return t;throw new ei$2("Incorrect invocation")},ni$2=Ut$3("iterator"),oi$2=!1;try{var ii$2=0,ai$2={next:function(){return {done:!!ii$2++}},return:function(){oi$2=!0;}};ai$2[ni$2]=function(){return this},Array.from(ai$2,(function(){throw 2}));}catch(t){}var li$2=function(t,e){try{if(!e&&!oi$2)return !1}catch(t){return !1}var r=!1;try{var n={};n[ni$2]=function(){return {next:function(){return {done:r=!0}}}},t(n);}catch(t){}return r},ui$2=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",a=L$3[t],l=a&&a.prototype,u=a,c={},s=function(t){var e=J$3(l[t]);Re$3(l,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!st$3(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!st$3(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!st$3(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this});};if(dr$2(t,!ct$3(a)||!(o||l.forEach&&!D$3((function(){(new a).entries().next();})))))u=r.getConstructor(e,t,n,i),Do$2.enable();else if(dr$2(t,!0)){var f=new u,d=f[i](o?{}:-0,1)!==f,v=D$3((function(){f.has(1);})),h=li$2((function(t){new a(t);})),p=!o&&D$3((function(){for(var t=new a,e=5;e--;)t[i](e,e);return !t.has(-0)}));h||((u=e((function(t,e){ri$2(t,l);var r=function(t,e,r){var n,o;return no$2&&ct$3(n=e.constructor)&&n!==r&&st$3(o=n.prototype)&&o!==r.prototype&&no$2(t,o),t}(new a,t,u);return ot$3(e)||ti$2(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=l,l.constructor=u),(v||p)&&(s("delete"),s("has"),n&&s("get")),(p||d)&&s(i),o&&l.clear&&delete l.clear;}return c[t]=u,hr$2({global:!0,constructor:!0,forced:u!==a},c),Jn$3(u,t),o||r.setStrong(u,t,n),u},ci$2=function(t,e,r){for(var n in e)Re$3(t,n,e[n],r);return t},si$2=Ut$3("species"),fi$2=Array,di$2=function(t,e){return new(function(t){var e;return pr$2(t)&&(e=t.constructor,(kr$2(e)&&(e===fi$2||pr$2(e.prototype))||st$3(e)&&null===(e=e[si$2]))&&(e=void 0)),void 0===e?fi$2:e}(t))(0===e?0:e)},vi$2=J$3([].push),hi$2=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,a=7===t,l=5===t||i;return function(u,c,s,f){for(var d,v,h=Rt$3(u),p=nt$3(h),y=Ue$3(p),g=_o$2(c,s),b=0,m=f||di$2,w=e?m(u,y):r||a?m(u,0):void 0;y>b;b++)if((l||b in p)&&(v=g(d=p[b],b,h),t))if(e)w[b]=v;else if(v)switch(t){case 3:return !0;case 5:return d;case 6:return b;case 2:vi$2(w,d);}else switch(t){case 4:return !1;case 7:vi$2(w,d);}return i?-1:n||o?o:w}},pi$2={forEach:hi$2(0),map:hi$2(1),filter:hi$2(2),some:hi$2(3),every:hi$2(4),find:hi$2(5),findIndex:hi$2(6),filterReject:hi$2(7)},yi$2=Do$2.getWeakData,gi$2=Ve$3.set,bi$2=Ve$3.getterFor,mi$2=pi$2.find,wi$2=pi$2.findIndex,xi$2=J$3([].splice),Si$2=0,zi$2=function(t){return t.frozen||(t.frozen=new Mi$2)},Mi$2=function(){this.entries=[];},Ti$2=function(t,e){return mi$2(t.entries,(function(t){return t[0]===e}))};Mi$2.prototype={get:function(t){var e=Ti$2(this,t);if(e)return e[1]},has:function(t){return !!Ti$2(this,t)},set:function(t,e){var r=Ti$2(this,t);r?r[1]=e:this.entries.push([t,e]);},delete:function(t){var e=wi$2(this.entries,(function(e){return e[0]===t}));return ~e&&xi$2(this.entries,e,1),!!~e}};var Oi$2={getConstructor:function(t,e,r,n){var o=t((function(t,o){ri$2(t,i),gi$2(t,{type:e,id:Si$2++,frozen:null}),ot$3(o)||ti$2(o,t[n],{that:t,AS_ENTRIES:r});})),i=o.prototype,a=bi$2(e),l=function(t,e,r){var n=a(t),o=yi$2(le$3(e),!0);return !0===o?zi$2(n).set(e,r):o[n.id]=r,t};return ci$2(i,{delete:function(t){var e=a(this);if(!st$3(t))return !1;var r=yi$2(t);return !0===r?zi$2(e).delete(t):r&&Dt$3(r,e.id)&&delete r[e.id]},has:function(t){var e=a(this);if(!st$3(t))return !1;var r=yi$2(t);return !0===r?zi$2(e).has(t):r&&Dt$3(r,e.id)}}),ci$2(i,r?{get:function(t){var e=a(this);if(st$3(t)){var r=yi$2(t);if(!0===r)return zi$2(e).get(t);if(r)return r[e.id]}},set:function(t,e){return l(this,t,e)}}:{add:function(t){return l(this,t,!0)}}),o}};ui$2("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Oi$2);var Ni$2={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},Ei$2=te$3("span").classList,ki$2=Ei$2&&Ei$2.constructor&&Ei$2.constructor.prototype,Ai$2=ki$2===Object.prototype?void 0:ki$2,Hi$2=Ut$3("iterator"),Ci$2=wo$2.values,ji$2=function(t,e){if(t){if(t[Hi$2]!==Ci$2)try{pe$3(t,Hi$2,Ci$2);}catch(e){t[Hi$2]=Ci$2;}if(Jn$3(t,e,!0),Ni$2[e])for(var r in wo$2)if(t[r]!==wo$2[r])try{pe$3(t,r,wo$2[r]);}catch(e){t[r]=wo$2[r];}}};for(var Pi$2 in Ni$2)ji$2(L$3[Pi$2]&&L$3[Pi$2].prototype,Pi$2);ji$2(Ai$2,"DOMTokenList");var Vi$2,Ii$2=Ve$3.enforce,Ri$2=Object,Li$2=Array.isArray,Di$2=Ri$2.isExtensible,Bi$2=Ri$2.isFrozen,Wi$2=Ri$2.isSealed,_i$2=Ri$2.freeze,Fi$2=Ri$2.seal,$i$2=!L$3.ActiveXObject&&"ActiveXObject"in L$3,qi$2=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Gi$2=ui$2("WeakMap",qi$2,Oi$2),Ui$2=Gi$2.prototype,Xi$2=J$3(Ui$2.set);if(Oe$3)if($i$2){Vi$2=Oi$2.getConstructor(qi$2,"WeakMap",!0),Do$2.enable();var Ki$2=J$3(Ui$2.delete),Yi$2=J$3(Ui$2.has),Ji$2=J$3(Ui$2.get);ci$2(Ui$2,{delete:function(t){if(st$3(t)&&!Di$2(t)){var e=Ii$2(this);return e.frozen||(e.frozen=new Vi$2),Ki$2(this,t)||e.frozen.delete(t)}return Ki$2(this,t)},has:function(t){if(st$3(t)&&!Di$2(t)){var e=Ii$2(this);return e.frozen||(e.frozen=new Vi$2),Yi$2(this,t)||e.frozen.has(t)}return Yi$2(this,t)},get:function(t){if(st$3(t)&&!Di$2(t)){var e=Ii$2(this);return e.frozen||(e.frozen=new Vi$2),Yi$2(this,t)?Ji$2(this,t):e.frozen.get(t)}return Ji$2(this,t)},set:function(t,e){if(st$3(t)&&!Di$2(t)){var r=Ii$2(this);r.frozen||(r.frozen=new Vi$2),Yi$2(this,t)?Xi$2(this,t,e):r.frozen.set(t,e);}else Xi$2(this,t,e);return this}});}else Lo$2&&D$3((function(){var t=_i$2([]);return Xi$2(new Gi$2,t,1),!Bi$2(t)}))&&ci$2(Ui$2,{set:function(t,e){var r;return Li$2(t)&&(Bi$2(t)?r=_i$2:Wi$2(t)&&(r=Fi$2)),Xi$2(this,t,e),r&&r(t),this}});var Qi$2=new WeakMap,Zi$2=new WeakMap,ta$3=Ke$3.includes,ea$3=D$3((function(){return !Array(1).includes()}));hr$2({target:"Array",proto:!0,forced:ea$3},{includes:function(t){return ta$3(this,t,arguments.length>1?arguments[1]:void 0)}}),Ln$3("includes");var ra$3=pi$2.map,na$3=Cr$2("map");hr$2({target:"Array",proto:!0,forced:!na$3},{map:function(t){return ra$3(this,t,arguments.length>1?arguments[1]:void 0)}});var oa$3=Ut$3("match"),ia$3=TypeError,aa$3=function(t){if(function(t){var e;return st$3(t)&&(void 0!==(e=t[oa$3])?!!e:"RegExp"===tt$3(t))}(t))throw new ia$3("The method doesn't accept regular expressions");return t},la$3=Ut$3("match"),ua$3=J$3("".indexOf);hr$2({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e);}catch(r){try{return e[la$3]=!1,"/./"[t](e)}catch(t){}}return !1}("includes")},{includes:function(t){return !!~ua$3(Br$2(at$3(this)),Br$2(aa$3(t)),arguments.length>1?arguments[1]:void 0)}});var ca$3={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function sa$3(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=ca$3,a=e.map((function(t){var e;return null===(e=null==n?void 0:n.blocks)||void 0===e?void 0:e[t]}));return function(t){return function(t){return !Editor.isEditor(t)&&Element$1.isElement(t)&&"type"in t}(t)&&a.includes(t.type)}}function fa$3(t,e){for(var r=An$3(e,2),n=r[0],i=r[1],l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];var c=An$3(Node$1.common(t,n,i),2),s=c[0],f=c[1];return !!sa$3.apply(void 0,Hn$3([t],An$3(l)))(s,f)||!!Editor.above(t,{match:sa$3.apply(void 0,Hn$3([t],An$3(l))),at:f})}function da$3(t,e){var r,n;void 0===e&&(e={});var i=[];try{for(var a=kn$3(function(t,e){var r,n,i,a,l,u,c,s,f,d,v,h,p,y,g,b,m,w;return void 0===e&&(e={}),En$3(this,(function(x){switch(x.label){case 0:if(r=An$3(Editor.nodes(t,{match:sa$3(t,"table"),at:e.at}),1),!(n=r[0]))return [2,[]];i=An$3(n,2),a=i[1],x.label=1;case 1:x.trys.push([1,6,7,8]),l=kn$3(Editor.nodes(t,{match:sa$3(t,"table"),at:a})),u=l.next(),x.label=2;case 2:if(u.done)return [3,5];c=An$3(u.value,2),s=c[1],f=[];try{for(m=void 0,d=kn$3(Editor.nodes(t,{match:sa$3(t,"tr"),at:s})),v=d.next();!v.done;v=d.next())h=An$3(v.value,2),p=h[1],f.push(Hn$3([],An$3(Editor.nodes(t,{match:sa$3(t,"th","td"),at:p}))));}catch(t){m={error:t};}finally{try{v&&!v.done&&(w=d.return)&&w.call(d);}finally{if(m)throw m.error}}return [4,f];case 3:x.sent(),x.label=4;case 4:return u=l.next(),[3,2];case 5:return [3,8];case 6:return y=x.sent(),g={error:y},[3,8];case 7:try{u&&!u.done&&(b=l.return)&&b.call(l);}finally{if(g)throw g.error}return [7];case 8:return [2]}}))}(t,{at:e.at})),l=a.next();!l.done;l=a.next()){for(var u=l.value,c=[],s=0;s<u.length;s++){c[s]||(c[s]=[]);for(var f=0;f<u[s].length;f++)for(var d=An$3(u[s][f],1)[0],v=d.rowSpan,h=void 0===v?1:v,p=d.colSpan,y=void 0===p?1:p,g=0;g<y+0;g++)for(var b=0;b<h;b++)c[s+b]||(c[s+b]=[]),c[s+b][f+g]||(c[s+b][f+g]=[u[s+b][f+g],{rtl:g-0+1,ltr:y-g+0,ttb:b+1,btt:h-b}]);}i.push.apply(i,Hn$3([],An$3(c)));}}catch(t){r={error:t};}finally{try{l&&!l.done&&(n=a.return)&&n.call(a);}finally{if(r)throw r.error}}return i}var va$2=function(){function t(t,e){this.x=t,this.y=e;}return t.valueOf=function(t,e){return new this(t,e)},t.equals=function(t,e){return t.x===e.x&&t.y===e.y},t}(),ha$3={isInTable:function(t,e){return void 0===e&&(e={}),!!An$3(Editor.nodes(t,{match:sa$3(t,"table"),at:e.at}),1)[0]},selection:function(t){var e,r,n,o,i,a,l,u;return En$3(this,(function(c){switch(c.label){case 0:e=Qi$2.get(t),r=0,c.label=1;case 1:if(!(e&&r<e.length))return [3,4];for(n=[],o=0;o<e[r].length;o++)i=An$3(e[r][o],2),a=i[0],l=i[1],u=l.ltr,1===l.ttb&&n.push(a),o+=u-1;return [4,n];case 2:c.sent(),c.label=3;case 3:return r++,[3,1];case 4:return [2]}}))},unselect:function(t){Zi$2.delete(t),Qi$2.delete(t);},isSelected:function(t,e){var r=Zi$2.get(t);return !!r&&r.has(e)}};function pa$3(t){var r=t.selection;if(null==r)return !1;var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")}}),1)[0];if(n){var i=An$3(n,2)[1],a=Editor.start(t,i);if(Point.equals(r.anchor,a))return !0}return !1}var ya$2=pi$2.find,ga$3="find",ba$3=!0;ga$3 in[]&&Array(1)[ga$3]((function(){ba$3=!1;})),hr$2({target:"Array",proto:!0,forced:ba$3},{find:function(t){return ya$2(this,t,arguments.length>1?arguments[1]:void 0)}}),Ln$3(ga$3);var ma$3="\t\n\v\f\r \u2028\u2029\ufeff",wa$2=J$3("".replace),xa$2=RegExp("^["+ma$3+"]+"),Sa$3=RegExp("(^|[^"+ma$3+"])["+ma$3+"]+$"),za$1=function(t){return function(e){var r=Br$2(at$3(e));return 1&t&&(r=wa$2(r,xa$2,"")),2&t&&(r=wa$2(r,Sa$3,"$1")),r}},Ma$1={start:za$1(1),end:za$1(2),trim:za$1(3)},Ta$3=me$3.PROPER,Oa$2=Ma$1.trim;function Na$2(t){return t.length?t[0].tagName.toLowerCase():""}function Ea$3(t,e){for(var r="",n=(t.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var l=a.split(":");l[0].trim()===e&&(r=l[1].trim());}}return r}function ka$2(t){var e,r,n=[],o=t.reduce((function(t,e){return t+e}),0);try{for(var i=kn$3(t),a=i.next();!a.done;a=i.next()){var l=a.value;n.push(l/o);}}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}hr$2({target:"String",proto:!0,forced:function(t){return D$3((function(){return !!ma$3[t]()||"
"!=="
"[t]()||Ta$3&&ma$3[t].name!==t}))}("trim")},{trim:function(){return Oa$2(this)}}),hr$2({global:!0,forced:L$3.globalThis!==L$3},{globalThis:L$3}),append&&($$6.fn.append=append),on$7&&($$6.fn.on=on$7),focus&&($$6.fn.focus=focus),attr&&($$6.fn.attr=attr),val&&($$6.fn.val=val),html&&($$6.fn.html=html),dataset&&($$6.fn.dataset=dataset),addClass&&($$6.fn.addClass=addClass),removeClass&&($$6.fn.removeClass=removeClass),children&&($$6.fn.children=children),each&&($$6.fn.each=each),find&&($$6.fn.find=find),data&&($$6.fn.data=data),hide&&($$6.fn.hide=hide),show&&($$6.fn.show=show);var Aa$2=null;var Ha$1=!1,Ca$2=!1,ja$2=0,Pa$2=0,Va$1=null,Ia$2=$$6(window);Ia$2.on("mousedown",(function(t){var e=t.target;if(e.closest('[data-block-type="table-cell"]'))Ha$1=!0;else if("DIV"==e.tagName&&e.closest(".column-resizer-item")){if(null==Va$1)return;var r=An$3(Editor.nodes(Va$1,{match:sa$3(Va$1,"table")}),1),n=An$3(r[0],1)[0],i=n.columnWidths,a=void 0===i?[]:i,l=n.resizingIndex,u=void 0===l?-1:l;Ca$2=!0;var c=t.clientX;ja$2=c,Pa$2=a[u],document.body.style.cursor="col-resize",t.preventDefault();}Ia$2.on("mousemove",Ra$2),Ia$2.on("mouseup",La$2);}));var Ra$2=lodash_throttle((function(t){if(Ca$2&&null!=Va$1){t.preventDefault();var e=t.clientX,r=Pa$2+(e-ja$2);(r=Math.floor(100*r)/100)<30&&(r=30);var n=An$3(Editor.nodes(Va$1,{match:sa$3(Va$1,"table")}),1),i=An$3(n[0],1)[0],a=i.columnWidths,l=void 0===a?[]:a,u=i.resizingIndex,c=void 0===u?-1:u,f=l.reduce((function(t,e){return t+e}),0)-l[c],d=document.querySelector(".table-container");if(!(d&&f+r>d.clientWidth)){var v=Hn$3([],An$3(l)).map((function(t){return Math.floor(t)}));v[c]=r,Transforms.setNodes(Va$1,{columnWidths:v},{mode:"highest"});}}}),100);function La$2(t){Ha$1=!1,Ca$2=!1,Va$1=null,document.body.style.cursor="",Ia$2.off("mousemove",Ra$2),Ia$2.off("mouseup",La$2);}function Da$1(t,e,n,o){if(!t.isDisabled()&&!Ha$1&&!Ca$2){var i=e,a=i.width,l=void 0===a?"auto":a,u=i.columnWidths,c=void 0===u?[]:u,f=i.isHoverCellBorder,d=i.resizingIndex,v=n.clientX,h=n.target;if(ic$2(h))if(v>(g=h.getBoundingClientRect()).x+5&&v<g.x+g.width-5)return void(f&&Transforms.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(ic$2(h)){var p=h.closest(".table");if(p)for(var y=n.clientX,g=p.getBoundingClientRect(),b=function(t){var e,r,n=[],o=0;try{for(var i=kn$3(t),a=i.next();!a.done;a=i.next())o+=a.value,n.push(o);}catch(t){e={error:t};}finally{try{a&&!a.done&&(r=i.return)&&r.call(i);}finally{if(e)throw e.error}}return n}("100%"===l?ka$2(c).map((function(t){return t*o})):c),m=0;m<b.length;m++)if(y-g.x>=b[m]-5&&y-g.x<b[m]+5){if(d==m)return;return void Transforms.setNodes(t,{isHoverCellBorder:!0,resizingIndex:m},{mode:"highest"})}}1==f&&Transforms.setNodes(t,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"});}}function Ba$1(t,e){"mouseenter"===e.type?Transforms.setNodes(t,{isResizing:!0},{mode:"highest"}):Transforms.setNodes(t,{isResizing:!1},{mode:"highest"});}function Wa$1(t){var e=t.children||[];return 0===e.length?[]:(e[0]||{}).children||[]}function _a$1(t){return Wa$1(t).every((function(t){return !!t.isHeader}))}var Fa$1={type:"table",renderElem:function(t,n,i){var a=function(t,r){if(t.isDisabled())return !1;var n=t.selection;if(null==n)return !0;if(Range.isCollapsed(n))return !0;var i=n.anchor,a=n.focus,l=Ic$2.findPath(t,r),s=Editor.start(t,l),d=Editor.end(t,l),v=Point.compare(i,d)<=0&&Point.compare(i,s)>=0,h=Point.compare(a,d)<=0&&Point.compare(a,s)>=0;return !!(v&&h&&Path.equals(i.path.slice(0,3),a.path.slice(0,3)))}(i,t),l=t,d=l.width,y=void 0===d?"auto":d,g=l.height,b=l.columnWidths,m=void 0===b?[]:b,w=l.scrollWidth,x=void 0===w?0:w,S=l.isHoverCellBorder,z=l.resizingIndex,M=l.isResizing,T=Ic$2.isNodeSelected(i,t),O=An$3(ha$3.selection(i),1)[0],N=ka$2(m),E=jsx("div",{className:"table-container","data-selected":T,on:{mousedown:function(r){if("DIV"===r.target.tagName&&r.preventDefault(),!i.isDisabled()){r.target.closest('[data-block-type="table-cell"]')&&ha$3.unselect(i);var n=Ic$2.findPath(i,t),a=Editor.start(i,n),l=i.selection;if(null!=l)l.anchor.path[0]!==n[0]&&i.select(a);else i.select(a);}}}},jsx("table",{width:y,contentEditable:a,className:"table "+(O?"table-selection-none":""),style:{width:"100%"==y?y:m.reduce((function(t,e){return t+e}),0)+"px"},on:{mousemove:lodash_debounce((function(e){return Da$1(i,t,e,x)}),25)}},jsx("colgroup",{contentEditable:!1},m.map((function(t){return jsx("col",{width:t})}))),jsx("tbody",null,n)),jsx("div",{className:"column-resizer",contenteditable:"false"},m.map((function(t,e){var r=t;return "100%"==y&&(r=N[e]*x),jsx("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},jsx("div",{className:"resizer-line-hotzone "+(S&&e==z?"visible ":"")+(M&&e==z?"highlight":""),style:{height:g+"px"},on:{mouseenter:function(t){return Ba$1(i,t)},mouseleave:function(t){return Ba$1(i,t)},mousedown:function(t){return function(t){Ca$2||(Va$1=t);}(i)}}},jsx("div",{className:"resizer-line"})))})))),k=h$3("div",{hook:{insert:function(t){var e=t.elm;return function(t,e){if(ic$2(e)){var n=e.querySelector("table");n&&(Aa$2=new ResizeObserver((function(e){var r=An$3(e,1)[0].contentRect;Transforms.setNodes(t,{scrollWidth:r.width,height:r.height},{mode:"highest"});})),Aa$2.observe(n));}}(i,e)},destroy:function(){Aa$2&&(null==Aa$2||Aa$2.disconnect(),Aa$2=null);}}},E);return k}},$a$1={type:"table-row",renderElem:function(t,e,r){return jsx("tr",null,e)}},qa$1={type:"table-cell",renderElem:function(t,r,n){var o=function(t,r){var n=Ic$2.getParentNode(t,r);if(null==n)return !1;var o=Ic$2.getParentNode(t,n);return null!=o&&Wa$1(o).some((function(t){return t===r}))}(n,t),i=t,a=i.colSpan,l=void 0===a?1:a,u=i.rowSpan,c=void 0===u?1:u,s=i.isHeader,f=void 0!==s&&s,d=i.hidden,v=void 0!==d&&d,p=ha$3.isSelected(n,t);return jsx(o&&f?"th":"td",{colSpan:l,rowSpan:c,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:v?"none":""}},r)}},Ga$1=function(t,e){var r=[][t];return !!r&&D$3((function(){r.call(null,e||function(){return 1},1);}))},Ua$1=J$3([].join),Xa$1=nt$3!==Object||!Ga$1("join",",");hr$2({target:"Array",proto:!0,forced:Xa$1},{join:function(t){return Ua$1(lt$3(this),void 0===t?",":t)}});var Ka$1={type:"table",elemToHtml:function(t,e){var r=t,n=r.width,o=void 0===n?"auto":n,i=r.columnWidths,a=r.height,l=void 0===a?"auto":a,u=null==i?void 0:i.map((function(t){return "<col width="+t+"></col>"})).join("");return '<table style="width: '+o+";table-layout: fixed;height:"+l+'">'+(u?'<colgroup contentEditable="false">'+u+"</colgroup>":"")+"<tbody>"+e+"</tbody></table>"}},Ya$1={type:"table-row",elemToHtml:function(t,e){return "<tr>"+e+"</tr>"}},Ja$1={type:"table-cell",elemToHtml:function(t,e){var r=t,n=r.colSpan,o=void 0===n?1:n,i=r.rowSpan,a=void 0===i?1:i,l=r.isHeader,u=void 0!==l&&l,c=r.width,s=void 0===c?"auto":c,f=r.hidden,d=u?"th":"td";return "<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+s+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+e+"</"+d+">"}};var Qa$1={selector:"table",preParseHtml:function(t){var e=$$6(t);if("table"!==Na$2(e))return t;var r=e.find("tbody");if(0===r.length)return t;var n=e.find("tr");return e.append(n),r.remove(),e[0]}},Za$1=Object.assign,tl=Object.defineProperty,el=J$3([].concat),rl=!Za$1||D$3((function(){if(B$3&&1!==Za$1({b:1},Za$1(tl({},"a",{enumerable:!0,get:function(){tl(this,"b",{value:3,enumerable:!1});}}),{b:2})).b)return !0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t;})),7!==Za$1({},t)[r]||Gr$2(Za$1({},e)).join("")!==n}))?function(t,e){for(var r=Rt$3(t),n=arguments.length,o=1,i=rr$2.f,a=G$3.f;n>o;)for(var l,u=nt$3(arguments[o++]),c=i?el(Gr$2(u),i(u)):Gr$2(u),s=c.length,f=0;s>f;)l=c[f++],B$3&&!F$3(a,u,l)||(r[l]=u[l]);return r}:Za$1;function nl(t,e){null==t.data&&(t.data={});var r=t.data;null==r.style&&(r.style={}),Object.assign(r.style,e);}hr$2({target:"Object",stat:!0,arity:2,forced:Object.assign!==rl},{assign:rl});var ol,il=Function.prototype,al=il.apply,ll=il.call,ul="object"==typeof Reflect&&Reflect.apply||(W$3?ll.bind(al):function(){return ll.apply(al,arguments)}),cl=Ut$3("species"),sl=RegExp.prototype,fl=function(t,e,r,n){var o=Ut$3(t),i=!D$3((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),a=i&&!D$3((function(){var e=!1,r=/a/;return "split"===t&&((r={}).constructor={},r.constructor[cl]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var l=/./[o],u=e(o,""[t],(function(t,e,r,n,o){var a=e.exec;return a===Sn$3||a===sl.exec?i&&!o?{done:!0,value:F$3(l,e,r,n)}:{done:!0,value:F$3(t,r,e,n)}:{done:!1}}));Re$3(String.prototype,t,u[0]),Re$3(sl,o,u[1]);}n&&pe$3(sl[o],"sham",!0);},dl=No$2.charAt,vl=function(t,e,r){return e+(r?dl(t,e).length:1)},hl=Math.floor,pl=J$3("".charAt),yl=J$3("".replace),gl=J$3("".slice),bl=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ml=/\$([$&'`]|\d{1,2})/g,wl=function(t,e,r,n,o,i){var a=r+t.length,l=n.length,u=ml;return void 0!==o&&(o=Rt$3(o),u=bl),yl(i,u,(function(i,u){var c;switch(pl(u,0)){case"$":return "$";case"&":return t;case"`":return gl(e,0,r);case"'":return gl(e,a);case"<":c=o[gl(u,1,-1)];break;default:var s=+u;if(0===s)return i;if(s>l){var f=hl(s/10);return 0===f?i:f<=l?void 0===n[f-1]?pl(u,1):n[f-1]+pl(u,1):i}c=n[s-1];}return void 0===c?"":c}))},xl=TypeError,Sl=function(t,e){var r=t.exec;if(ct$3(r)){var n=F$3(r,t,e);return null!==n&&le$3(n),n}if("RegExp"===tt$3(t))return F$3(Sn$3,t,e);throw new xl("RegExp#exec called on incompatible receiver")},zl=Ut$3("replace"),Ml=Math.max,Tl=Math.min,Ol=J$3([].concat),Nl=J$3([].push),El=J$3("".indexOf),kl=J$3("".slice),Al="$0"==="a".replace(/./,"$0"),Hl=!!/./[zl]&&""===/./[zl]("a","$0");fl("replace",(function(t,e,r){var n=Hl?"$":"$0";return [function(t,r){var n=at$3(this),o=ot$3(t)?void 0:At$3(t,zl);return o?F$3(o,t,n,r):F$3(e,Br$2(n),t,r)},function(t,o){var i=le$3(this),a=Br$2(t);if("string"==typeof o&&-1===El(o,n)&&-1===El(o,"$<")){var l=r(e,i,a,o);if(l.done)return l.value}var u=ct$3(o);u||(o=Br$2(o));var c,s=i.global;s&&(c=i.unicode,i.lastIndex=0);for(var f,d=[];null!==(f=Sl(i,a))&&(Nl(d,f),s);){""===Br$2(f[0])&&(i.lastIndex=vl(a,Ge$3(i.lastIndex),c));}for(var v,h="",p=0,y=0;y<d.length;y++){for(var g,b=Br$2((f=d[y])[0]),m=Ml(Tl(We$3(f.index),a.length),0),w=[],x=1;x<f.length;x++)Nl(w,void 0===(v=f[x])?v:String(v));var S=f.groups;if(u){var z=Ol([b],w,m,a);void 0!==S&&Nl(z,S),g=Br$2(ul(o,void 0,z));}else g=wl(b,a,m,w,S,o);m>=p&&(h+=kl(a,p,m)+g,p=m+b.length);}return h+kl(a,p)}]}),!!D$3((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Al||Hl);var Cl=null===(ol=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===ol?void 0:ol.getPropertyValue("--w-e-textarea-border-color");var jl=pi$2.filter,Pl=Cr$2("filter");hr$2({target:"Array",proto:!0,forced:!Pl},{filter:function(t){return jl(this,t,arguments.length>1?arguments[1]:void 0)}});var Vl=function(t,e,r,n){try{return n?e(le$3(r)[0],r[1]):e(r)}catch(e){Yo$2(t,"throw",e);}},Il=Array,Rl=!li$2((function(t){Array.from(t);}));hr$2({target:"Array",stat:!0,forced:Rl},{from:function(t){var e=Rt$3(t),r=kr$2(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=_o$2(o,n>2?arguments[2]:void 0));var a,l,u,c,s,f,d=Uo$2(e),v=0;if(!d||this===Il&&qo$2(d))for(a=Ue$3(e),l=r?new this(a):Il(a);a>v;v++)f=i?o(e[v],v):e[v],Ar$2(l,v,f);else for(l=r?new this:[],s=(c=Ko$2(e,d)).next;!(u=F$3(s,c)).done;v++)f=i?Vl(c,o,[u.value,v],!0):u.value,Ar$2(l,v,f);return l.length=v,l}});var Ll=pi$2.forEach,Dl=Ga$1("forEach")?[].forEach:function(t){return Ll(this,t,arguments.length>1?arguments[1]:void 0)},Bl=function(t){if(t&&t.forEach!==Dl)try{pe$3(t,"forEach",Dl);}catch(e){t.forEach=Dl;}};for(var Wl in Ni$2)Ni$2[Wl]&&Bl(L$3[Wl]&&L$3[Wl].prototype);Bl(Ai$2);var _l={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(t,r,n){var o=$$6(t);0===(r=r.filter((function(t){return "paragraph"===Ic$2.getNodeType(t)||(!!Text.isText(t)||!!n.isInline(t))}))).length&&(r=[{text:o.text().replace(/\s+/gm," ")}]);var i=parseInt(o.attr("colSpan")||"1"),a=parseInt(o.attr("rowSpan")||"1"),l="none"===Ea$3(o,"display"),u=o.attr("width")||"auto";return {type:"table-cell",isHeader:"th"===Na$2(o),colSpan:i,rowSpan:a,width:u,children:r,hidden:l}}};var Fl={selector:"tr:not([data-w-e-type])",parseElemHtml:function(t,r,n){return {type:"table-row",children:r.filter((function(t){return "table-cell"===Ic$2.getNodeType(t)}))}}};var $l={selector:"table:not([data-w-e-type])",parseElemHtml:function(t,r,n){var o,i,a=$$6(t),l="auto";"100%"===Ea$3(a,"width")&&(l="100%"),"100%"===a.attr("width")&&(l="100%");var u={type:"table",width:l,height:parseInt(Ea$3(a,"height")||"0"),children:r.filter((function(t){return "table-row"===Ic$2.getNodeType(t)}))},c=(null===(o=a.find("tr")[0])||void 0===o?void 0:o.children)||[],s=(null===(i=a.find("colgroup")[0])||void 0===i?void 0:i.children)||null;if(s)u.columnWidths=Array.from(s).map((function(t){return parseInt(t.getAttribute("width"))}));else if(c.length>0){var f=[];Array.from(c).forEach((function(t){for(var e=parseInt($$6(t).attr("colspan")||"1",10),r=parseInt(Ea$3($$6(t),"width")||"180",10),n=0;n<e;n++)f.push(r);})),u.columnWidths=f;}return u}};hr$2({target:"Array",proto:!0},{fill:function(t){for(var e=Rt$3(this),r=Ue$3(e),n=arguments.length,o=$e$3(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:$e$3(i,r);a>o;)e[o++]=t;return e}}),Ln$3("fill");var ql=RegExp.prototype,Gl=me$3.PROPER,Ul="toString",Xl=RegExp.prototype,Kl=Xl[Ul],Yl=D$3((function(){return "/a/b"!==Kl.call({source:"a",flags:"b"})})),Jl=Gl&&Kl.name!==Ul;(Yl||Jl)&&Re$3(Xl,Ul,(function(){var t=le$3(this),e=Br$2(t.source),r=Br$2(function(t){var e=t.flags;return void 0!==e||"flags"in ql||Dt$3(t,"flags")||!dt$3(ql,t)?e:F$3(Wr$2,t)}(t));return "/"+e+"/"+r}),{unsafe:!0});var Ql='<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>';var Zl=function(){function t(){this.title=Wp$1("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null;}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||!!Ic$2.getSelectedElems(t).some((function(r){var n=Ic$2.getNodeType(r);return "pre"===n||("table"===n||("list-item"===n||!!t.isVoid(r)))})))},t.prototype.getPanelContentElem=function(t){var e=this;if(this.$content)return this.$content[0];for(var r=$$6('<div class="w-e-panel-content-table"></div>'),n=$$6("<span>0 × 0</span>"),o=$$6("<table></table>"),i=0;i<10;i++){for(var a=$$6("<tr></tr>"),l=0;l<10;l++){var u=$$6("<td></td>");u.attr("data-x",l.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",(function(t){var e=t.target;if(null!=e){var r=$$6(e).dataset(),i=r.x,a=r.y;n[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(t){$$6(t).children().each((function(t){var e=$$6(t),r=e.dataset(),n=r.x,o=r.y;n<=i&&o<=a?e.addClass("active"):e.removeClass("active");}));}));}})),u.on("click",(function(r){r.preventDefault();var n=r.target;if(null!=n){var o=$$6(n).dataset(),i=o.x,a=o.y;e.insertTable(t,a+1,i+1);}}));}o.append(a);}return r.append(o),r.append(n),this.$content=r,r[0]},t.prototype.insertTable=function(t,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){if(Ic$2.isSelectedEmptyParagraph(t)&&Transforms.removeNodes(t,{mode:"highest"}),0===t.children.length){Transforms.insertNodes(t,{type:"paragraph",children:[{text:""}]},{mode:"highest"});}var a=function(t,e,r){for(var n,o=[],i=t.getMenuConfig("insertTable"),a=i.minWidth,l=void 0===a?60:a,u=i.tableFullWidth,c=i.tableHeader,s=Array(r).fill(parseInt(l)||60),f=0;f<e;f++){for(var d=[],v=0;v<r;v++){var h={type:"table-cell",children:[{text:""}]};0===f&&(h.isHeader=null===(n=null==c?void 0:c.selected)||void 0===n||n),d.push(h);}o.push({type:"table-row",children:d});}return {type:"table",width:(null==u?void 0:u.selected)?"100%":"auto",children:o,columnWidths:s}}(t,o,i);Transforms.insertNodes(t,a,{mode:"highest"});}},t}(),tu$2=function(){function t(){this.title=Wp$1("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return null==t.selection||null==Ic$2.getSelectedNodeByType(t,"table")},t.prototype.exec=function(t,e){this.isDisabled(t)||Transforms.removeNodes(t,{mode:"highest"});},t}(),eu$2=function(){function t(){this.title=Wp$1("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),i=An$3(n[0],2),a=i[0],l=i[1],u=Ic$2.getParentNode(t,a),f=(null==u?void 0:u.children.length)||0;if(0!==f){var d=da$3(t),v=0;t:for(var h=0;h<d.length;h++)for(var p=0;p<d[h].length;p++){var y=An$3(d[h][p],1),g=An$3(y[0],2)[1];if(Path.equals(l,g)){v=h;break t}}Editor.withoutNormalizing(t,(function(){for(var e=v+1,r=e>=0&&e<d.length,n=[],o=0;r&&o<d[v].length;o++){var i=An$3(d[v][o],2)[1],a=i.ttb,u=i.btt;if(a>1||u>1){if(1==u)continue;var h=An$3(d[v-(a-1)][o],1),p=An$3(h[0],2),y=p[0],g=p[1],b=y.rowSpan||1;n.push(o),y.hidden||Transforms.setNodes(t,{rowSpan:b+1},{at:g});}}for(var m={type:"table-row",children:[]},w=0;w<f;w++){var x={type:"table-cell",hidden:n.includes(w),children:[{text:""}]};m.children.push(x);}var S=Path.parent(l),z=Path.next(S);Transforms.insertNodes(t,m,{at:z});}));}}},t}(),ru$2=function(){function t(){this.title=Wp$1("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table-row"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-row")},universal:!0}),1),i=An$3(n[0],2),l=i[0],u=i[1],f=Ic$2.getParentNode(t,l);if(((null==f?void 0:f.children.length)||0)<=1)Transforms.removeNodes(t,{mode:"highest"});else {var d=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),v=An$3(d[0],2)[1],h=da$3(t),p=0;t:for(var y=0;y<h.length;y++)for(var g=0;g<h[y].length;g++){var b=An$3(h[y][g],1),m=An$3(b[0],2)[1];if(Path.equals(v,m)){p=y;break t}}Editor.withoutNormalizing(t,(function(){for(var e,r,n=0;n<h[p].length;n++){var o=An$3(h[p][n],2),i=An$3(o[0],1)[0].hidden,l=o[1],c=l.ttb,f=l.btt;if(c>1||f>1){var d=An$3(h[p-(c-1)][n],1),v=An$3(d[0],2),y=v[0],g=y.rowSpan,b=void 0===g?1:g,m=y.colSpan,w=void 0===m?1:m,x=v[1];if(i)Transforms.setNodes(t,{rowSpan:Math.max(b-1,1),colSpan:w},{at:x});else {var S=An$3(h[p+1][n],1),z=An$3(S[0],2)[1];Transforms.setNodes(t,{rowSpan:b-1,colSpan:w,hidden:!1},{at:z});try{for(var M=(e=void 0,kn$3(Node$1.children(t,x,{reverse:!0}))),T=M.next();!T.done;T=M.next()){var O=An$3(T.value,2)[1];Transforms.moveNodes(t,{to:Hn$3(Hn$3([],An$3(z)),[0]),at:O});}}catch(t){e={error:t};}finally{try{T&&!T.done&&(r=M.return)&&r.call(M);}finally{if(e)throw e.error}}}}}Transforms.removeNodes(t,{at:u});}));}}},t}(),nu$2=TypeError,ou$2=Object.getOwnPropertyDescriptor,iu$2=B$3&&!function(){if(void 0!==this)return !0;try{Object.defineProperty([],"length",{writable:!1}).length=1;}catch(t){return t instanceof TypeError}}()?function(t,e){if(pr$2(t)&&!ou$2(t,"length").writable)throw new nu$2("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},au$2=TypeError,lu$2=TypeError,uu$2=function(t,e){if(!delete t[e])throw new lu$2("Cannot delete property "+Nt$3(e)+" of "+Nt$3(t))},cu$2=Cr$2("splice"),su$2=Math.max,fu$2=Math.min;hr$2({target:"Array",proto:!0,forced:!cu$2},{splice:function(t,e){var r,n,o,i,a,l,u=Rt$3(this),c=Ue$3(u),s=$e$3(t,c),f=arguments.length;for(0===f?r=n=0:1===f?(r=0,n=c-s):(r=f-2,n=fu$2(su$2(We$3(e),0),c-s)),function(t){if(t>9007199254740991)throw au$2("Maximum allowed index exceeded")}(c+r-n),o=di$2(u,n),i=0;i<n;i++)(a=s+i)in u&&Ar$2(o,i,u[a]);if(o.length=n,r<n){for(i=s;i<c-n;i++)l=i+r,(a=i+n)in u?u[l]=u[a]:uu$2(u,l);for(i=c;i>c-n+r;i--)uu$2(u,i-1);}else if(r>n)for(i=c-n;i>s;i--)l=i+r-1,(a=i+n-1)in u?u[l]=u[a]:uu$2(u,l);for(i=0;i<r;i++)u[i+s]=arguments[i+2];return iu$2(u,c-n+r),o}});var du$2=function(){function t(){this.title=Wp$1("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),i=An$3(n[0],2),a=i[0],l=i[1],u=Ic$2.getParentNode(t,a);if(null!=u){var f=Ic$2.getParentNode(t,u);if(null!=f){var d=da$3(t),v=0;t:for(var h=0;h<d.length;h++)for(var p=0;p<d[h].length;p++){var y=An$3(d[h][p],1),g=An$3(y[0],2)[1];if(Path.equals(l,g)){v=p;break t}}Editor.withoutNormalizing(t,(function(){for(var r=[],n=0;n<d.length;n++){var i=An$3(d[n][v],2)[1],a=i.ltr,l=i.rtl;if(a>1||l>1){if(1==l)continue;var u=An$3(d[n][v-(l-1)],1),c=An$3(u[0],2),h=c[0],p=c[1],y=h.colSpan||1;r.push(n),h.hidden||Transforms.setNodes(t,{colSpan:y+1},{at:p});}}for(n=0;n<d.length;n++){var g={type:"table-cell",hidden:r.includes(n),children:[{text:""}]};0===n&&_a$1(f)&&(g.isHeader=!0);var b=An$3(d[n][v],1),m=An$3(b[0],2)[1];Transforms.insertNodes(t,g,{at:m});}var w=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table")},universal:!0}),1)[0];if(w){var x=An$3(w,2),S=x[0],z=x[1],M=S.columnWidths,T=Hn$3([],An$3(void 0===M?[]:M)),O=t.getMenuConfig("insertTable").minWidth,N=void 0===O?60:O;T.splice(v,0,parseInt(N)||60),Transforms.setNodes(t,{columnWidths:T},{at:z});}}));}}}},t}(),vu$2=function(){function t(){this.title=Wp$1("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table-cell"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table-cell")},universal:!0}),1),i=An$3(n[0],2),l=i[0],u=i[1],f=Ic$2.getParentNode(t,l),d=(null==f?void 0:f.children.length)||0;if(!f||d<=1)Transforms.removeNodes(t,{mode:"highest"});else if(null!=Ic$2.getParentNode(t,f)){var v=da$3(t),h=0;t:for(var p=0;p<v.length;p++)for(var y=0;y<v[p].length;y++){var g=An$3(v[p][y],1),b=An$3(g[0],2)[1];if(Path.equals(u,b)){h=y;break t}}Editor.withoutNormalizing(t,(function(){for(var r,n,i=0;i<v.length;i++){var l=An$3(v[i][h],2),u=An$3(l[0],1)[0].hidden,c=l[1],f=c.rtl,d=c.ltr;if(f>1||d>1){var p=An$3(v[i][h-(f-1)],1),y=An$3(p[0],2),g=y[0],b=g.rowSpan,m=void 0===b?1:b,w=g.colSpan,x=void 0===w?1:w,S=y[1];if(u)Transforms.setNodes(t,{rowSpan:m,colSpan:Math.max(x-1,1)},{at:S});else {var z=An$3(v[i][h+1],1),M=An$3(z[0],2)[1];Transforms.setNodes(t,{rowSpan:m,colSpan:x-1,hidden:!1},{at:M});try{for(var T=(r=void 0,kn$3(Node$1.children(t,S,{reverse:!0}))),O=T.next();!O.done;O=T.next()){var N=An$3(O.value,2)[1];Transforms.moveNodes(t,{to:Hn$3(Hn$3([],An$3(M)),[0]),at:N});}}catch(t){r={error:t};}finally{try{O&&!O.done&&(n=T.return)&&n.call(T);}finally{if(r)throw r.error}}}}}for(i=0;i<v.length;i++){var E=An$3(v[i][h],1);S=An$3(E[0],2)[1];Transforms.removeNodes(t,{at:S});}var k=An$3(Editor.nodes(t,{match:function(t){return Ic$2.checkNodeType(t,"table")},universal:!0}),1)[0];if(k){var A=An$3(k,2),H=A[0],C=A[1],j=H.columnWidths,P=Hn$3([],An$3(void 0===j?[]:j));P.splice(h,1),Transforms.setNodes(t,{columnWidths:P},{at:C});}}));}}},t}(),hu$2=function(){function t(){this.title=Wp$1("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){var r=Ic$2.getSelectedNodeByType(t,"table");return null!=r&&_a$1(r)},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=!r,o=Ic$2.getSelectedNodeByType(t,"table");if(null!=o)Wa$1(o).forEach((function(r){return Transforms.setNodes(t,{isHeader:n},{at:Ic$2.findPath(t,r)})}));}},t}(),pu$2=function(){function t(){this.title=Wp$1("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){var r=Ic$2.getSelectedNodeByType(t,"table");return null!=r&&"100%"===r.width},t.prototype.isActive=function(t){return !!this.getValue(t)},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var r={width:e?"auto":"100%"};Transforms.setNodes(t,r,{mode:"highest"});}},t}(),yu$2=function(){function t(){this.title=Wp$1("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){return !this.canMerge(t)},t.prototype.exec=function(t,e){this.isDisabled(t)||(this.merge(t),ha$3.unselect(t));},t.prototype.canMerge=function(t){var e=Qi$2.get(t);if(!e||!e.length)return !1;var r=An$3(e[e.length-1][e[e.length-1].length-1],1),n=An$3(r[0],2)[1],o=An$3(e[0][0],1);return !!fa$3(t,[An$3(o[0],2)[1],n],"table")},t.prototype.merge=function(t){if(this.canMerge(t)){var e=Qi$2.get(t);if(e&&e.length){var r=An$3(e[0][0],1),n=An$3(r[0],2)[1],i=An$3(Node$1.children(t,n,{reverse:!0}),1),l=An$3(i[0],2)[1];da$3(t,{at:n}),Editor.withoutNormalizing(t,(function(){for(var r,i,u=0,f=0,d=e.length-1;d>=0;d--,u++){f=0;for(var v=e[d].length-1;v>=0;v--,f++){var h=An$3(e[d][v],2),p=An$3(h[0],2)[1],y=h[1].ttb;if(!(Path.equals(n,p)||y>1)){try{for(var g=(r=void 0,kn$3(Node$1.children(t,p,{reverse:!0}))),b=g.next();!b.done;b=g.next()){var m=An$3(b.value,2)[1];Transforms.moveNodes(t,{to:Path.next(l),at:m});}}catch(t){r={error:t};}finally{try{b&&!b.done&&(i=g.return)&&i.call(g);}finally{if(r)throw r.error}}var w=An$3(Editor.nodes(t,{match:sa$3(t,"tr"),at:p}),1),x=An$3(w[0],2)[1];An$3(Node$1.children(t,x),2)[1]&&Transforms.setNodes(t,{hidden:!0},{at:p});}}}Transforms.setNodes(t,{rowSpan:u,colSpan:f},{at:n});}));}}},t}(),gu$2=TypeError,bu$2=Ut$3("species"),mu$2=function(t,e){var r,n=le$3(t).constructor;return void 0===n||ot$3(r=le$3(n)[bu$2])?e:function(t){if(kr$2(t))return t;throw new gu$2(Nt$3(t)+" is not a constructor")}(r)},wu$2=qr$2.UNSUPPORTED_Y,xu$2=Math.min,Su$2=J$3([].push),zu$2=J$3("".slice),Mu$2=!D$3((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),Tu$2="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;fl("split",(function(t,e,r){var n="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:F$3(e,this,t,r)}:e;return [function(e,r){var o=at$3(this),i=ot$3(e)?void 0:At$3(e,t);return i?F$3(i,e,o,r):F$3(n,Br$2(o),e,r)},function(t,o){var i=le$3(this),a=Br$2(t);if(!Tu$2){var l=r(n,i,a,o,n!==e);if(l.done)return l.value}var u=mu$2(i,RegExp),c=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(wu$2?"g":"y"),f=new u(wu$2?"^(?:"+i.source+")":i,s),d=void 0===o?4294967295:o>>>0;if(0===d)return [];if(0===a.length)return null===Sl(f,a)?[a]:[];for(var v=0,h=0,p=[];h<a.length;){f.lastIndex=wu$2?0:h;var y,g=Sl(f,wu$2?zu$2(a,h):a);if(null===g||(y=xu$2(Ge$3(f.lastIndex+(wu$2?h:0)),a.length))===v)h=vl(a,h,c);else {if(Su$2(p,zu$2(a,v,h)),p.length===d)return p;for(var b=1;b<=g.length-1;b++)if(Su$2(p,g[b]),p.length===d)return p;h=v=y;}}return Su$2(p,zu$2(a,v)),p}]}),Tu$2||!Mu$2,wu$2);var Ou$2=function(){function t(){this.title=Wp$1("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var e=An$3(Editor.nodes(t,{match:sa$3(t,"td")}),1),r=An$3(e[0],1)[0],n=r.rowSpan,i=void 0===n?1:n,a=r.colSpan;return !(i>1||(void 0===a?1:a)>1)},t.prototype.exec=function(t,e){this.isDisabled(t)||this.split(t);},t.prototype.split=function(t,e){void 0===e&&(e={});var r=An$3(Editor.nodes(t,{match:sa$3(t,"table","th","td"),at:e.at}),2),n=r[0],i=r[1];if(n&&i){var a=Qi$2.get(t)||[],l=da$3(t,{at:e.at});Editor.withoutNormalizing(t,(function(){for(var r=l.length-1;r>=0;r--)for(var n=l[r].length-1;n>=0;n--){var u=An$3(l[r][n],2),f=An$3(u[0],2)[1],d=u[1],v=d.ltr,h=d.rtl,p=d.btt,y=d.ttb;if(h>1)n-=h-2;else if(!(y>1||1===p&&1===v)){var g=!!e.all;if(a.length)t:for(var b=0;!e.all&&b<a.length;b++)for(var m=0;m<a[b].length;m++){var w=An$3(a[b][m],1),x=An$3(w[0],2)[1];if(Path.equals(x,f)){g=!0;break t}}else {x=An$3(i,2)[1];Path.equals(x,f)&&(g=!0);}if(g){var S=An$3(Editor.nodes(t,{match:sa$3(t,"table"),at:f}),1);An$3(S[0],1)[0];t:for(var z=1;z<p;z++)for(b=n;b>=0;b--){var M=An$3(l[r+z][b],2);if(An$3(M[0],2)[1],1!=M[1].ttb){for(var T=0;T<v;T++){var O=An$3(l[r+z][b+T],1),N=An$3(O[0],2)[1];Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:N});}continue t}}for(T=1;T<v;T++){var E=An$3(l[r][n+T],1);N=An$3(E[0],2)[1];Transforms.unsetNodes(t,["hidden","colSpan","rowSpan"],{at:N});}Transforms.setNodes(t,{rowSpan:1,colSpan:1},{at:f});}}}}));}},t}(),Nu$2=function(){function t(){this.title=Wp$1("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.borderStyle=[{value:"none",label:Wp$1("tableModule.borderStyle.none")},{value:"solid",label:Wp$1("tableModule.borderStyle.solid")},{value:"dotted",label:Wp$1("tableModule.borderStyle.dotted")},{value:"dashed",label:Wp$1("tableModule.borderStyle.dashed")},{value:"double",label:Wp$1("tableModule.borderStyle.double")},{value:"groove",label:Wp$1("tableModule.borderStyle.groove")},{value:"ridge",label:Wp$1("tableModule.borderStyle.ridge")},{value:"inset",label:Wp$1("tableModule.borderStyle.inset")},{value:"outset",label:Wp$1("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:Wp$1("justify.left"),svg:'<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>'},{value:"center",label:Wp$1("justify.center"),svg:'<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>'},{value:"right",label:Wp$1("justify.right"),svg:'<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>'},{value:"justify",label:Wp$1("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}];}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.isDisabled=function(t){var r=t.selection;return null==r||(!Range.isCollapsed(r)||null==Ic$2.getSelectedNodeByType(t,"table"))},t.prototype.exec=function(t,e){},t.prototype.getModalContentNode=function(t){return An$3(Editor.nodes(t,{match:sa$3(t,"table")}),1)[0]},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,r=this.getModalContentNode(t);if(!r)return null;var o=An$3(r,2),i=o[0],a=o[1],l=$$6('<div>\n <label class="babel-container">\n <span>'+Wp$1("tableModule.modal.border")+'</span>\n <span class="babel-container-border">\n <select name="borderStyle">\n '+this.borderStyle.map((function(t){return '<option value="'+t.value+'">'+t.label+"</option>"})).join("")+'\n </select>\n <span class="color-group" data-mark="color">\n <span class="color-group-block"></span>\n <input name="borderColor" type="hidden">\n </span>\n <input name="borderWidth" type="number" placeholder="'+Wp$1("tableModule.modal.borderWidth")+'">\n </span>\n </label>\n <div class="babel-container">\n <span>'+Wp$1("tableModule.modal.bgColor")+'</span>\n <span class="babel-container-background">\n <span class="color-group" data-mark="bgColor">\n <span class="color-group-block"></span>\n <input name="backgroundColor" type="hidden">\n </span>\n </span>\n </div>\n <label class="babel-container">\n <span>'+Wp$1("tableModule.modal.align")+'</span>\n <span class="babel-container-align">\n <select name="textAlign">\n '+this.textAlignOptions.map((function(t){return '<option value="'+t.value+'">'+t.label+"</option>"})).join("")+'\n </select>\n </span>\n </label>\n <div class="button-container">\n <button type="button">'+Wp$1("tableModule.modal.ok")+"</button>\n </div>\n </div>");l.find("[name]").each((function(t){$$6(t).val(i[$$6(t).attr("name")]);}));var u=function(t,e){e?$$6(".color-group-block",t).css("background-color",e).empty():$$6(".color-group-block",t).css("background-color","").html(Ql);};return l.find(".color-group").each((function(r){var n=$$6('[type="hidden"]',r).val()||"";u(r,n);var o=$$6(r);o.on("click",(function(){l.find(".color-group .w-e-drop-panel").hide();var i=o.data("panel");i?i.show():(i=e.getPanelContentElem(t,{mark:o.data("mark"),selectedColor:n,callback:function(t){$$6('[type="hidden"]',r).val(t||""),u(r,t),i.hide();}}),o.append(i),o.data("panel",i));}));})),l.find("button").on("click",(function(){var e=Array.from(l.find("[name]")).reduce((function(t,e){return t[$$6(e).attr("name")]=$$6(e).val(),t}),{});Transforms.setNodes(t,e,{at:a}),setTimeout((function(){t.focus();}));})),l[0]},t.prototype.getPanelContentElem=function(t,e){var r=e.mark,o=e.selectedColor,i=e.callback,a=$$6('<ul class="w-e-panel-content-color"></ul>');a.on("click","li",(function(t){var e=t.target;if(e){t.preventDefault(),t.stopPropagation();var r=$$6(e).attr("data-value");i(r);}}));var l=t.getMenuConfig(r).colors;(void 0===l?[]:l).forEach((function(t){var e=$$6('<div class="color-block" data-value="'+t+'"></div>');e.css("background-color",t);var r=$$6('<li data-value="'+t+'"></li>');o===t&&r.addClass("active"),r.append(e),a.append(r);}));var u="";"color"===r&&(u=Wp$1("tableModule.color.default")),"bgColor"===r&&(u=Wp$1("tableModule.color.clear"));var c=$$6('\n <li data-value="" class="clear">\n '+Ql+"\n "+u+"\n </li>\n ");a.prepend(c);var s=$$6('<div class="w-e-drop-panel"></div>');return s.append(a),s},t}(),Eu$2=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.title=Wp$1("tableModule.cellProperty"),e.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',e.tag="button",e.showModal=!0,e.modalWidth=300,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t;}On$3(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r);}(e,t),e.prototype.getModalContentNode=function(t){return An$3(Editor.nodes(t,{match:sa$3(t,"td")}),1)[0]},e}(Nu$2),ku$2={renderStyle:function(t,e){var r,n;if(!Element$1.isElement(t))return e;var o=t,a=o.backgroundColor,l=o.borderWidth,u=o.borderStyle,c=o.borderColor,s=o.textAlign,f={};a&&(f.backgroundColor=a),l&&(f.borderWidth=l+"px"),u&&(f.borderStyle=u),c&&(f.borderColor=c),s&&(f.textAlign=s);var d=e;return "table"===t.type?nl(null===(n=(null===(r=d.children)||void 0===r?void 0:r[0]).children)||void 0===n?void 0:n[0],f):nl(d,f),d},styleToHtml:function(t,e){if("table"!==t.type&&"table-cell"!==t.type)return e;var r=t.backgroundColor,n=t.borderWidth,o=t.borderStyle,i=t.borderColor,a=t.textAlign;if(!(r||n||o||i||a))return e;var l=$$6(e);return r&&l.css("background-color",r),n&&l.css("border-width",n+"px"),o&&l.css("border-style",o),i&&l.css("border-color",i),a&&l.css("text-align",a),function(t){return 0===t.length?"":t[0].outerHTML}(l)},parseStyleHtml:function(t,e,r){if("TABLE"!==t.tagName&&"TD"!==t.tagName)return e;var n=$$6(t),o=e,i=Ea$3(n,"background-color");i||(i=Ea$3(n,"background")),i&&(o.backgroundColor=i);var a=Ea$3(n,"border");a||"TD"!==t.tagName||(a="1px solid "+Cl);var l=An$3((null==a?void 0:a.split(" "))||[],3),u=l[0],c=l[1],s=l[2];(u=Ea$3(n,"border-width")||u)&&(o.borderWidth=u.replace(/[^\d]/g,"")),(c=Ea$3(n,"border-style")||c)&&(o.borderStyle=c),(s=Ea$3(n,"border-color")||s)&&(o.borderColor=s);var f=Ea$3(n,"text-align");return (f=Ea$3(n,"text-align")||f)&&(o.textAlign=f),e},renderElems:[Fa$1,$a$1,qa$1],elemsToHtml:[Ka$1,Ya$1,Ja$1],preParseHtml:[Qa$1],parseElemsHtml:[_l,Fl,$l],menus:[{key:"insertTable",factory:function(){return new Zl}},{key:"deleteTable",factory:function(){return new tu$2}},{key:"insertTableRow",factory:function(){return new eu$2}},{key:"deleteTableRow",factory:function(){return new ru$2}},{key:"insertTableCol",factory:function(){return new du$2}},{key:"deleteTableCol",factory:function(){return new vu$2}},{key:"tableHeader",factory:function(){return new hu$2}},{key:"tableFullWidth",factory:function(){return new pu$2}},{key:"mergeTableCell",factory:function(){return new yu$2}},{key:"splitTableCell",factory:function(){return new Ou$2}},{key:"setTableProperty",factory:function(){return new Nu$2}},{key:"setTableCellProperty",factory:function(){return new Eu$2}}],editorPlugin:function(t){var r=t.insertBreak,n=t.deleteBackward,i=t.deleteForward,f=t.normalizeNode,d=t.insertData,v=t.handleTab,h=t.selectAll,p=t;return p.insertBreak=function(){null==Ic$2.getSelectedNodeByType(p,"table")?r():p.insertText("\n");},p.deleteBackward=function(t){if(!pa$3(p)){var r=p.selection;if(r){var i=Editor.before(p,r);if(i){var a=function(t,r){var n,i,a=Editor.nodes(t,{at:r,match:function(t){return "table"===Ic$2.getNodeType(t)}}),l=!1;try{for(var u=kn$3(a),c=u.next();!c.done;c=u.next())c.value,l=!0;}catch(t){n={error:t};}finally{try{c&&!c.done&&(i=u.return)&&i.call(u);}finally{if(n)throw n.error}}return l}(p,i);if(a&&Ic$2.getSelectedNodeByType(p,"paragraph"))return}}n(t);}},p.handleTab=function(){var r;if(Ic$2.getSelectedNodeByType(p,"table")){var n=Editor.above(t);Ic$2.checkNodeType(n[0],"table-cell")&&Transforms.select(t,n[1]);var i=Editor.next(t);if(i)i[0]&&i[0].text&&(i=null!==(r=Editor.above(t,{at:i[1]}))&&void 0!==r?r:i),Transforms.select(t,i[1]);else {var a=p.children||[],l=a.length;if(Ic$2.checkNodeType(a[l-1],"table")){var u=Ic$2.genEmptyParagraph();Transforms.insertNodes(p,u,{at:[l]}),p.handleTab();}}}else v();},p.deleteForward=function(t){pa$3(p)||i(t);},p.normalizeNode=function(t){var r=An$3(t,2),n=r[0],o=r[1];if("table"!==Ic$2.getNodeType(n))return f([n,o]);if(Ic$2.isLastNode(p,n)){var i=Ic$2.genEmptyParagraph();Transforms.insertNodes(p,i,{at:[o[0]+1]});}},p.insertData=function(t){if(null!=Ic$2.getSelectedNodeByType(p,"table")){var r=t.getData("text/plain");"\n"===r||/<img[^>]+>/.test(t.getData("text/html"))?d(t):Editor.insertText(p,r);}else d(t);},p.selectAll=function(){var t=p.selection;if(null!=t){var r=Ic$2.getSelectedNodeByType(p,"table-cell");if(null!=r){var n=t.anchor,i=t.focus;if(Path.equals(n.path.slice(0,3),i.path.slice(0,3)))if(0!==Node$1.string(r).length){var l=Ic$2.findPath(p,r),u={anchor:Editor.start(p,l),focus:Editor.end(p,l)};p.select(u);}else h();else h();}else h();}else h();},function(t){var e=t.apply;t.apply=function(r){if(!Operation.isSelectionOperation(r)||!r.newProperties)return e(r);var n=Nn$3(Nn$3({},t.selection),r.newProperties);if(!Range.isRange(n))return ha$3.unselect(t),e(r);var i=An$3(Editor.nodes(t,{match:sa$3(t,"th","td"),at:Range.start(n)}),1)[0],a=An$3(Editor.nodes(t,{match:sa$3(t,"th","td"),at:Range.end(n)}),1)[0];if(!i||!a)return ha$3.unselect(t),e(r);var s=An$3(i,2)[1],f=An$3(a,2)[1];if(Path.equals(s,f)||!fa$3(t,[s,f],"table"))return ha$3.unselect(t),e(r);var d=da$3(t,{at:s}),v=va$2.valueOf(0,0),h=va$2.valueOf(0,0);t:for(var p=0;p<d.length;p++)for(var y=0;y<d[p].length;y++){var g=An$3(d[p][y],1),b=An$3(g[0],2)[1];if(Path.equals(s,b)&&(v.x=p,v.y=y),Path.equals(f,b)){h.x=p,h.y=y;break t}}for(var m=va$2.valueOf(Math.min(v.x,h.x),Math.min(v.y,h.y)),w=va$2.valueOf(Math.max(v.x,h.x),Math.max(v.y,h.y));;){var x=va$2.valueOf(m.x,m.y),S=va$2.valueOf(w.x,w.y);for(p=x.x;p<=S.x;p++)for(y=x.y;y<=S.y;y++){var z=An$3(d[p][y],2)[1],M=z.rtl,T=z.ltr,O=z.btt,N=z.ttb;x.x=Math.min(x.x,p-(N-1)),x.y=Math.min(x.y,y-(M-1)),S.x=Math.max(S.x,p+(O-1)),S.y=Math.max(S.y,y+(T-1));}if(va$2.equals(m,x)&&va$2.equals(w,S))break;m=x,w=S;}var E=[],k=new WeakSet;for(p=m.x;p<=w.x;p++){var A=[];for(y=m.y;y<=w.y;y++){var H=An$3(d[p][y],1),C=An$3(H[0],1)[0];k.add(C),A.push(d[p][y]);}E.push(A);}Qi$2.set(t,E),Zi$2.set(t,k),e(r);};}(p),p}};
|
|
17553
17553
|
|
|
17554
17554
|
Fp$1("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",edit:"Edit video",width:"Width",height:"Height"}}),Fp$1("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var S$2=function(){return S$2=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},S$2.apply(this,arguments)};function O$2(t,e,n,r){return new(n||(n=Promise))((function(o,i){function u(t){try{c(r.next(t));}catch(t){i(t);}}function a(t){try{c(r.throw(t));}catch(t){i(t);}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e);}))).then(u,a);}c((r=r.apply(t,e||[])).next());}))}function E$2(t,e){var n,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u);}catch(t){a=[6,t],r=0;}finally{n=o=0;}if(5&a[0])throw a[1];return {value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function x$2(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return {next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function I$2(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value);}catch(t){o={error:t};}finally{try{r&&!r.done&&(n=i.return)&&n.call(i);}finally{if(o)throw o.error}}return u}function P$2(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=x$2(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,o){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n});}),e);})(r,o,(e=t[n](e)).done,e.value);}))};}}"function"==typeof SuppressedError&&SuppressedError;var j$2="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T$2(t){var e={exports:{}};return t(e,e.exports),e.exports}var M$2,A$2,N$2=function(t){return t&&t.Math===Math&&t},R$2=N$2("object"==typeof globalThis&&globalThis)||N$2("object"==typeof window&&window)||N$2("object"==typeof self&&self)||N$2("object"==typeof j$2&&j$2)||N$2("object"==typeof j$2&&j$2)||function(){return this}()||Function("return this")(),C$2=function(t){try{return !!t()}catch(t){return !0}},k$2=!C$2((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),L$2=!C$2((function(){var t=function(){}.bind();return "function"!=typeof t||t.hasOwnProperty("prototype")})),V$2=Function.prototype.call,z$2=L$2?V$2.bind(V$2):function(){return V$2.apply(V$2,arguments)},D$2={}.propertyIsEnumerable,F$2=Object.getOwnPropertyDescriptor,_$2={f:F$2&&!D$2.call({1:2},1)?function(t){var e=F$2(this,t);return !!e&&e.enumerable}:D$2},$$2=function(t,e){return {enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},B$2=Function.prototype,U$2=B$2.call,H$2=L$2&&B$2.bind.bind(U$2,U$2),W$2=L$2?H$2:function(t){return function(){return U$2.apply(t,arguments)}},G$2=W$2({}.toString),K$2=W$2("".slice),X$2=function(t){return K$2(G$2(t),8,-1)},Y$2=Object,q$2=W$2("".split),J$2=C$2((function(){return !Y$2("z").propertyIsEnumerable(0)}))?function(t){return "String"===X$2(t)?q$2(t,""):Y$2(t)}:Y$2,Q$2=function(t){return null==t},Z$2=TypeError,tt$2=function(t){if(Q$2(t))throw new Z$2("Can't call method on "+t);return t},et$2=function(t){return J$2(tt$2(t))},nt$2="object"==typeof document&&document.all,rt$2=void 0===nt$2&&void 0!==nt$2?function(t){return "function"==typeof t||t===nt$2}:function(t){return "function"==typeof t},ot$2=function(t){return "object"==typeof t?null!==t:rt$2(t)},it$2=function(t,e){return arguments.length<2?(n=R$2[t],rt$2(n)?n:void 0):R$2[t]&&R$2[t][e];var n;},ut$2=W$2({}.isPrototypeOf),at$2=R$2.navigator,ct$2=at$2&&at$2.userAgent,st$2=ct$2?String(ct$2):"",ft$2=R$2.process,lt$2=R$2.Deno,dt$2=ft$2&&ft$2.versions||lt$2&<$2.version,pt$2=dt$2&&dt$2.v8;pt$2&&(A$2=(M$2=pt$2.split("."))[0]>0&&M$2[0]<4?1:+(M$2[0]+M$2[1])),!A$2&&st$2&&(!(M$2=st$2.match(/Edge\/(\d+)/))||M$2[1]>=74)&&(M$2=st$2.match(/Chrome\/(\d+)/))&&(A$2=+M$2[1]);var vt$2=A$2,ht$2=R$2.String,yt$2=!!Object.getOwnPropertySymbols&&!C$2((function(){var t=Symbol("symbol detection");return !ht$2(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt$2&&vt$2<41})),gt$2=yt$2&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mt$2=Object,bt$2=gt$2?function(t){return "symbol"==typeof t}:function(t){var e=it$2("Symbol");return rt$2(e)&&ut$2(e.prototype,mt$2(t))},wt$2=String,St$2=function(t){try{return wt$2(t)}catch(t){return "Object"}},Ot$2=TypeError,Et$2=function(t){if(rt$2(t))return t;throw new Ot$2(St$2(t)+" is not a function")},xt$2=function(t,e){var n=t[e];return Q$2(n)?void 0:Et$2(n)},It$2=TypeError,Pt$2=Object.defineProperty,jt$2=function(t,e){try{Pt$2(R$2,t,{value:e,configurable:!0,writable:!0});}catch(n){R$2[t]=e;}return e},Tt$2=T$2((function(t){var e="__core-js_shared__",n=t.exports=R$2[e]||jt$2(e,{});(n.versions||(n.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});})),Mt$2=function(t,e){return Tt$2[t]||(Tt$2[t]=e||{})},At$2=Object,Nt$2=function(t){return At$2(tt$2(t))},Rt$2=W$2({}.hasOwnProperty),Ct$2=Object.hasOwn||function(t,e){return Rt$2(Nt$2(t),e)},kt$2=0,Lt$2=Math.random(),Vt$2=W$2(1..toString),zt$2=function(t){return "Symbol("+(void 0===t?"":t)+")_"+Vt$2(++kt$2+Lt$2,36)},Dt$2=R$2.Symbol,Ft$2=Mt$2("wks"),_t$2=gt$2?Dt$2.for||Dt$2:Dt$2&&Dt$2.withoutSetter||zt$2,$t$2=function(t){return Ct$2(Ft$2,t)||(Ft$2[t]=yt$2&&Ct$2(Dt$2,t)?Dt$2[t]:_t$2("Symbol."+t)),Ft$2[t]},Bt$2=TypeError,Ut$2=$t$2("toPrimitive"),Ht$2=function(t,e){if(!ot$2(t)||bt$2(t))return t;var n,r=xt$2(t,Ut$2);if(r){if(void 0===e&&(e="default"),n=z$2(r,t,e),!ot$2(n)||bt$2(n))return n;throw new Bt$2("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&rt$2(n=t.toString)&&!ot$2(r=z$2(n,t)))return r;if(rt$2(n=t.valueOf)&&!ot$2(r=z$2(n,t)))return r;if("string"!==e&&rt$2(n=t.toString)&&!ot$2(r=z$2(n,t)))return r;throw new It$2("Can't convert object to primitive value")}(t,e)},Wt$2=function(t){var e=Ht$2(t,"string");return bt$2(e)?e:e+""},Gt$2=R$2.document,Kt$2=ot$2(Gt$2)&&ot$2(Gt$2.createElement),Xt$2=function(t){return Kt$2?Gt$2.createElement(t):{}},Yt$2=!k$2&&!C$2((function(){return 7!==Object.defineProperty(Xt$2("div"),"a",{get:function(){return 7}}).a})),qt$2=Object.getOwnPropertyDescriptor,Jt$2={f:k$2?qt$2:function(t,e){if(t=et$2(t),e=Wt$2(e),Yt$2)try{return qt$2(t,e)}catch(t){}if(Ct$2(t,e))return $$2(!z$2(_$2.f,t,e),t[e])}},Qt$2=k$2&&C$2((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Zt$2=String,te$2=TypeError,ee$2=function(t){if(ot$2(t))return t;throw new te$2(Zt$2(t)+" is not an object")},ne$2=TypeError,re$2=Object.defineProperty,oe$2=Object.getOwnPropertyDescriptor,ie$2="enumerable",ue$2="configurable",ae$2="writable",ce$2={f:k$2?Qt$2?function(t,e,n){if(ee$2(t),e=Wt$2(e),ee$2(n),"function"==typeof t&&"prototype"===e&&"value"in n&&ae$2 in n&&!n[ae$2]){var r=oe$2(t,e);r&&r[ae$2]&&(t[e]=n.value,n={configurable:ue$2 in n?n[ue$2]:r[ue$2],enumerable:ie$2 in n?n[ie$2]:r[ie$2],writable:!1});}return re$2(t,e,n)}:re$2:function(t,e,n){if(ee$2(t),e=Wt$2(e),ee$2(n),Yt$2)try{return re$2(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new ne$2("Accessors not supported");return "value"in n&&(t[e]=n.value),t}},se$2=k$2?function(t,e,n){return ce$2.f(t,e,$$2(1,n))}:function(t,e,n){return t[e]=n,t},fe$2=Function.prototype,le$2=k$2&&Object.getOwnPropertyDescriptor,de$2=Ct$2(fe$2,"name"),pe$2={EXISTS:de$2,PROPER:de$2&&"something"===function(){}.name,CONFIGURABLE:de$2&&(!k$2||k$2&&le$2(fe$2,"name").configurable)},ve$2=W$2(Function.toString);rt$2(Tt$2.inspectSource)||(Tt$2.inspectSource=function(t){return ve$2(t)});var he$2,ye$2,ge$2,me$2=Tt$2.inspectSource,be$2=R$2.WeakMap,we$2=rt$2(be$2)&&/native code/.test(String(be$2)),Se$2=Mt$2("keys"),Oe$2=function(t){return Se$2[t]||(Se$2[t]=zt$2(t))},Ee$2={},xe$2="Object already initialized",Ie$2=R$2.TypeError,Pe$2=R$2.WeakMap;if(we$2||Tt$2.state){var je$2=Tt$2.state||(Tt$2.state=new Pe$2);je$2.get=je$2.get,je$2.has=je$2.has,je$2.set=je$2.set,he$2=function(t,e){if(je$2.has(t))throw new Ie$2(xe$2);return e.facade=t,je$2.set(t,e),e},ye$2=function(t){return je$2.get(t)||{}},ge$2=function(t){return je$2.has(t)};}else {var Te$2=Oe$2("state");Ee$2[Te$2]=!0,he$2=function(t,e){if(Ct$2(t,Te$2))throw new Ie$2(xe$2);return e.facade=t,se$2(t,Te$2,e),e},ye$2=function(t){return Ct$2(t,Te$2)?t[Te$2]:{}},ge$2=function(t){return Ct$2(t,Te$2)};}var Me$2={set:he$2,get:ye$2,has:ge$2,enforce:function(t){return ge$2(t)?ye$2(t):he$2(t,{})},getterFor:function(t){return function(e){var n;if(!ot$2(e)||(n=ye$2(e)).type!==t)throw new Ie$2("Incompatible receiver, "+t+" required");return n}}},Ae$2=T$2((function(t){var e=pe$2.CONFIGURABLE,n=Me$2.enforce,r=Me$2.get,o=String,i=Object.defineProperty,u=W$2("".slice),a=W$2("".replace),c=W$2([].join),s=k$2&&!C$2((function(){return 8!==i((function(){}),"length",{value:8}).length})),f=String(String).split("String"),l=t.exports=function(t,r,l){"Symbol("===u(o(r),0,7)&&(r="["+a(o(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(r="get "+r),l&&l.setter&&(r="set "+r),(!Ct$2(t,"name")||e&&t.name!==r)&&(k$2?i(t,"name",{value:r,configurable:!0}):t.name=r),s&&l&&Ct$2(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&Ct$2(l,"constructor")&&l.constructor?k$2&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0);}catch(t){}var d=n(t);return Ct$2(d,"source")||(d.source=c(f,"string"==typeof r?r:"")),t};Function.prototype.toString=l((function(){return rt$2(this)&&r(this).source||me$2(this)}),"toString");})),Ne$2=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(rt$2(n)&&Ae$2(n,i,r),r.global)o?t[e]=n:jt$2(e,n);else {try{r.unsafe?t[e]&&(o=!0):delete t[e];}catch(t){}o?t[e]=n:ce$2.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable});}return t},Re$2=Math.ceil,Ce$2=Math.floor,ke$2=Math.trunc||function(t){var e=+t;return (e>0?Ce$2:Re$2)(e)},Le$2=function(t){var e=+t;return e!=e||0===e?0:ke$2(e)},Ve$2=Math.max,ze$2=Math.min,De$2=function(t,e){var n=Le$2(t);return n<0?Ve$2(n+e,0):ze$2(n,e)},Fe$2=Math.min,_e$2=function(t){var e=Le$2(t);return e>0?Fe$2(e,9007199254740991):0},$e$2=function(t){return _e$2(t.length)},Be$2=function(t){return function(e,n,r){var o=et$2(e),i=$e$2(o);if(0===i)return !t&&-1;var u,a=De$2(r,i);if(t&&n!=n){for(;i>a;)if((u=o[a++])!=u)return !0}else for(;i>a;a++)if((t||a in o)&&o[a]===n)return t||a||0;return !t&&-1}},Ue$2={includes:Be$2(!0),indexOf:Be$2(!1)},He$2=Ue$2.indexOf,We$2=W$2([].push),Ge$2=function(t,e){var n,r=et$2(t),o=0,i=[];for(n in r)!Ct$2(Ee$2,n)&&Ct$2(r,n)&&We$2(i,n);for(;e.length>o;)Ct$2(r,n=e[o++])&&(~He$2(i,n)||We$2(i,n));return i},Ke$2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Xe$2=Ke$2.concat("length","prototype"),Ye$2={f:Object.getOwnPropertyNames||function(t){return Ge$2(t,Xe$2)}},qe$2={f:Object.getOwnPropertySymbols},Je$2=W$2([].concat),Qe$2=it$2("Reflect","ownKeys")||function(t){var e=Ye$2.f(ee$2(t)),n=qe$2.f;return n?Je$2(e,n(t)):e},Ze$2=function(t,e,n){for(var r=Qe$2(e),o=ce$2.f,i=Jt$2.f,u=0;u<r.length;u++){var a=r[u];Ct$2(t,a)||n&&Ct$2(n,a)||o(t,a,i(e,a));}},tn$2=/#|\.prototype\./,en$2=function(t,e){var n=rn$2[nn$2(t)];return n===un$2||n!==on$2&&(rt$2(e)?C$2(e):!!e)},nn$2=en$2.normalize=function(t){return String(t).replace(tn$2,".").toLowerCase()},rn$2=en$2.data={},on$2=en$2.NATIVE="N",un$2=en$2.POLYFILL="P",an$2=en$2,cn$2=Jt$2.f,sn$2=function(t,e){var n,r,o,i,u,a=t.target,c=t.global,s=t.stat;if(n=c?R$2:s?R$2[a]||jt$2(a,{}):R$2[a]&&R$2[a].prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(u=cn$2(n,r))&&u.value:n[r],!an$2(c?r:a+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ze$2(i,o);}(t.sham||o&&o.sham)&&se$2(i,"sham",!0),Ne$2(n,r,i,t);}},fn$2={};fn$2[$t$2("toStringTag")]="z";var ln$2,dn$2="[object z]"===String(fn$2),pn$2=$t$2("toStringTag"),vn$2=Object,hn$2="Arguments"===X$2(function(){return arguments}()),yn$2=dn$2?X$2:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=vn$2(t),pn$2))?n:hn$2?X$2(e):"Object"===(r=X$2(e))&&rt$2(e.callee)?"Arguments":r},gn$2=String,mn$2=function(t){if("Symbol"===yn$2(t))throw new TypeError("Cannot convert a Symbol value to a string");return gn$2(t)},bn$2="\t\n\v\f\r \u2028\u2029\ufeff",wn$2=W$2("".replace),Sn$2=RegExp("^["+bn$2+"]+"),On$2=RegExp("(^|[^"+bn$2+"])["+bn$2+"]+$"),En$2=function(t){return function(e){var n=mn$2(tt$2(e));return 1&t&&(n=wn$2(n,Sn$2,"")),2&t&&(n=wn$2(n,On$2,"$1")),n}},xn$2={start:En$2(1),end:En$2(2),trim:En$2(3)},In$2=pe$2.PROPER,Pn$2=xn$2.trim;function jn$2(t){return t.length?t[0].tagName.toLowerCase():""}function Tn$2(t,e,n,r){void 0===e&&(e="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=$$6(t),i=r.width,u=void 0===i?"":i,a=r.height,c=void 0===a?"":a,s="";return u&&(s+="width: "+u+";"),c&&(s+="height: "+c+";"),o.attr("width",e),o.attr("height",n),o.attr("style",s),o[0].outerHTML}sn$2({target:"String",proto:!0,forced:(ln$2="trim",C$2((function(){return !!bn$2[ln$2]()||"
"!=="
"[ln$2]()||In$2&&bn$2[ln$2].name!==ln$2})))},{trim:function(){return Pn$2(this)}}),sn$2({global:!0,forced:R$2.globalThis!==R$2},{globalThis:R$2}),append&&($$6.fn.append=append),on$7&&($$6.fn.on=on$7),focus&&($$6.fn.focus=focus),attr&&($$6.fn.attr=attr),val&&($$6.fn.val=val),html&&($$6.fn.html=html),parent&&($$6.fn.parent=parent),hasClass&&($$6.fn.hasClass=hasClass),empty&&($$6.fn.empty=empty);var Mn$2={type:"video",renderElem:function(t,n,r){var o,i=t,u=i.src,a=void 0===u?"":u,f=i.poster,l=void 0===f?"":f,d=i.key,p=void 0===d?"":d,v=i.width,h=void 0===v?"auto":v,y=i.height,g=void 0===y?"auto":y,m=i.style,b=void 0===m?{}:m,w=i.textAlign,S=void 0===w?"center":w,O=Ic$2.isNodeSelected(r,t);if(0===a.trim().indexOf("<iframe ")){var E=Tn$2(a,h,g,b);o=jsx("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S},innerHTML:E});}else {var x=jsx("video",{key:p,poster:l,controls:!0,style:b},jsx("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==h&&(x.data.width=h),"auto"!==g&&(x.data.height=g),o=jsx("div",{className:"w-e-textarea-video-container","data-selected":O?"true":"",style:{textAlign:S}},x);}return h$3("div",{props:{contentEditable:!1},on:{mousedown:function(t){return t.preventDefault()}}},o)}};var An$2,Nn$2={type:"video",elemToHtml:function(t,e){var n=t,r=n.src,o=void 0===r?"":r,i=n.poster,u=void 0===i?"":i,a=n.width,c=void 0===a?"auto":a,s=n.height,f=void 0===s?"auto":s,l=n.style,d=void 0===l?{}:l,p=n.textAlign,v='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe ")){v+=Tn$2(o,c,f,d);}else {var h=d.width,y=void 0===h?"":h,g=d.height,m=void 0===g?"":g,b="";y&&(b+="width: "+y+";"),m&&(b+="height: "+m+";"),v+='<video poster="'+u+'" controls="true" width="'+c+'" height="'+f+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>';}return v+="\n</div>"}},Rn$2=Object.keys||function(t){return Ge$2(t,Ke$2)},Cn$2=k$2&&!Qt$2?Object.defineProperties:function(t,e){ee$2(t);for(var n,r=et$2(e),o=Rn$2(e),i=o.length,u=0;i>u;)ce$2.f(t,n=o[u++],r[n]);return t},kn$2={f:Cn$2},Ln$2=it$2("document","documentElement"),Vn$2="prototype",zn$2="script",Dn$2=Oe$2("IE_PROTO"),Fn$2=function(){},_n$2=function(t){return "<"+zn$2+">"+t+"</"+zn$2+">"},$n$2=function(t){t.write(_n$2("")),t.close();var e=t.parentWindow.Object;return t=null,e},Bn$2=function(){try{An$2=new ActiveXObject("htmlfile");}catch(t){}var t,e,n;Bn$2="undefined"!=typeof document?document.domain&&An$2?$n$2(An$2):(e=Xt$2("iframe"),n="java"+zn$2+":",e.style.display="none",Ln$2.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(_n$2("document.F=Object")),t.close(),t.F):$n$2(An$2);for(var r=Ke$2.length;r--;)delete Bn$2[Vn$2][Ke$2[r]];return Bn$2()};Ee$2[Dn$2]=!0;var Un$2=Object.create||function(t,e){var n;return null!==t?(Fn$2[Vn$2]=ee$2(t),n=new Fn$2,Fn$2[Vn$2]=null,n[Dn$2]=t):n=Bn$2(),void 0===e?n:kn$2.f(n,e)},Hn$2=ce$2.f,Wn$2=$t$2("unscopables"),Gn$2=Array.prototype;void 0===Gn$2[Wn$2]&&Hn$2(Gn$2,Wn$2,{configurable:!0,value:Un$2(null)});var Kn$2=function(t){Gn$2[Wn$2][t]=!0;},Xn$2=Ue$2.includes,Yn$2=C$2((function(){return !Array(1).includes()}));sn$2({target:"Array",proto:!0,forced:Yn$2},{includes:function(t){return Xn$2(this,t,arguments.length>1?arguments[1]:void 0)}}),Kn$2("includes");var qn$2={selector:"iframe,video,p",preParseHtml:function(t){var e=$$6(t),n=e;if("p"===jn$2(e)){var r=e.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=$$6(o));}}var u=jn$2(n);if("iframe"!==u&&"video"!==u)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var a=$$6('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return a.append(n),a[0]}},Jn$2=function(t){if("Function"===X$2(t))return W$2(t)},Qn$2=Jn$2(Jn$2.bind),Zn$2=function(t,e){return Et$2(t),void 0===e?t:L$2?Qn$2(t,e):function(){return t.apply(e,arguments)}},tr$1=Array.isArray||function(t){return "Array"===X$2(t)},er$1=function(){},nr$1=it$2("Reflect","construct"),rr$1=/^\s*(?:class|function)\b/,or$1=W$2(rr$1.exec),ir$1=!rr$1.test(er$1),ur$1=function(t){if(!rt$2(t))return !1;try{return nr$1(er$1,[],t),!0}catch(t){return !1}},ar$1=function(t){if(!rt$2(t))return !1;switch(yn$2(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return ir$1||!!or$1(rr$1,me$2(t))}catch(t){return !0}};ar$1.sham=!0;var cr$1=!nr$1||C$2((function(){var t;return ur$1(ur$1.call)||!ur$1(Object)||!ur$1((function(){t=!0;}))||t}))?ar$1:ur$1,sr$1=$t$2("species"),fr$1=Array,lr$1=function(t,e){return new(function(t){var e;return tr$1(t)&&(e=t.constructor,(cr$1(e)&&(e===fr$1||tr$1(e.prototype))||ot$2(e)&&null===(e=e[sr$1]))&&(e=void 0)),void 0===e?fr$1:e}(t))(0===e?0:e)},dr$1=W$2([].push),pr$1=function(t){var e=1===t,n=2===t,r=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,s,f,l){for(var d,p,v=Nt$2(c),h=J$2(v),y=$e$2(h),g=Zn$2(s,f),m=0,b=l||lr$1,w=e?b(c,y):n||u?b(c,0):void 0;y>m;m++)if((a||m in h)&&(p=g(d=h[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return !0;case 5:return d;case 6:return m;case 2:dr$1(w,d);}else switch(t){case 4:return !1;case 7:dr$1(w,d);}return i?-1:r||o?o:w}},vr$1={forEach:pr$1(0),map:pr$1(1),filter:pr$1(2),some:pr$1(3),every:pr$1(4),find:pr$1(5),findIndex:pr$1(6),filterReject:pr$1(7)},hr$1=vr$1.find,yr$1="find",gr$1=!0;yr$1 in[]&&Array(1)[yr$1]((function(){gr$1=!1;})),sn$2({target:"Array",proto:!0,forced:gr$1},{find:function(t){return hr$1(this,t,arguments.length>1?arguments[1]:void 0)}}),Kn$2(yr$1);var mr$1=dn$2?{}.toString:function(){return "[object "+yn$2(this)+"]"};dn$2||Ne$2(Object.prototype,"toString",mr$1,{unsafe:!0});var br$1,wr$1,Sr$1=function(){var t=ee$2(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},Or$1=R$2.RegExp,Er$1=C$2((function(){var t=Or$1("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),xr$1=Er$1||C$2((function(){return !Or$1("a","y").sticky})),Ir$1={BROKEN_CARET:Er$1||C$2((function(){var t=Or$1("^r","gy");return t.lastIndex=2,null!==t.exec("str")})),MISSED_STICKY:xr$1,UNSUPPORTED_Y:Er$1},Pr$1=R$2.RegExp,jr$1=C$2((function(){var t=Pr$1(".","s");return !(t.dotAll&&t.test("\n")&&"s"===t.flags)})),Tr$1=R$2.RegExp,Mr$1=C$2((function(){var t=Tr$1("(?<a>b)","g");return "b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ar$1=Me$2.get,Nr$1=Mt$2("native-string-replace",String.prototype.replace),Rr$1=RegExp.prototype.exec,Cr$1=Rr$1,kr$1=W$2("".charAt),Lr$1=W$2("".indexOf),Vr$1=W$2("".replace),zr$1=W$2("".slice),Dr$1=(wr$1=/b*/g,z$2(Rr$1,br$1=/a/,"a"),z$2(Rr$1,wr$1,"a"),0!==br$1.lastIndex||0!==wr$1.lastIndex),Fr$1=Ir$1.BROKEN_CARET,_r$1=void 0!==/()??/.exec("")[1];(Dr$1||_r$1||Fr$1||jr$1||Mr$1)&&(Cr$1=function(t){var e,n,r,o,i,u,a,c=this,s=Ar$1(c),f=mn$2(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=z$2(Cr$1,l,f),c.lastIndex=l.lastIndex,e;var d=s.groups,p=Fr$1&&c.sticky,v=z$2(Sr$1,c),h=c.source,y=0,g=f;if(p&&(v=Vr$1(v,"y",""),-1===Lr$1(v,"g")&&(v+="g"),g=zr$1(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==kr$1(f,c.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",v)),_r$1&&(n=new RegExp("^"+h+"$(?!\\s)",v)),Dr$1&&(r=c.lastIndex),o=z$2(Rr$1,p?n:c,g),p?o?(o.input=zr$1(o.input,y),o[0]=zr$1(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Dr$1&&o&&(c.lastIndex=c.global?o.index+o[0].length:r),_r$1&&o&&o.length>1&&z$2(Nr$1,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0);})),o&&d)for(o.groups=u=Un$2(null),i=0;i<d.length;i++)u[(a=d[i])[0]]=o[a[1]];return o});var $r$1=Cr$1;sn$2({target:"RegExp",proto:!0,forced:/./.exec!==$r$1},{exec:$r$1});var Br$1=Function.prototype,Ur$1=Br$1.apply,Hr$1=Br$1.call,Wr$1="object"==typeof Reflect&&Reflect.apply||(L$2?Hr$1.bind(Ur$1):function(){return Hr$1.apply(Ur$1,arguments)}),Gr$1=$t$2("species"),Kr$1=RegExp.prototype,Xr$1=W$2("".charAt),Yr$1=W$2("".charCodeAt),qr$1=W$2("".slice),Jr$1=function(t){return function(e,n){var r,o,i=mn$2(tt$2(e)),u=Le$2(n),a=i.length;return u<0||u>=a?t?"":void 0:(r=Yr$1(i,u))<55296||r>56319||u+1===a||(o=Yr$1(i,u+1))<56320||o>57343?t?Xr$1(i,u):r:t?qr$1(i,u,u+2):o-56320+(r-55296<<10)+65536}},Qr$1={codeAt:Jr$1(!1),charAt:Jr$1(!0)},Zr$1=Qr$1.charAt,to$1=function(t,e,n){return e+(n?Zr$1(t,e).length:1)},eo$1=Math.floor,no$1=W$2("".charAt),ro$1=W$2("".replace),oo$1=W$2("".slice),io$1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,uo$1=/\$([$&'`]|\d{1,2})/g,ao$1=function(t,e,n,r,o,i){var u=n+t.length,a=r.length,c=uo$1;return void 0!==o&&(o=Nt$2(o),c=io$1),ro$1(i,c,(function(i,c){var s;switch(no$1(c,0)){case"$":return "$";case"&":return t;case"`":return oo$1(e,0,n);case"'":return oo$1(e,u);case"<":s=o[oo$1(c,1,-1)];break;default:var f=+c;if(0===f)return i;if(f>a){var l=eo$1(f/10);return 0===l?i:l<=a?void 0===r[l-1]?no$1(c,1):r[l-1]+no$1(c,1):i}s=r[f-1];}return void 0===s?"":s}))},co$1=TypeError,so$1=function(t,e){var n=t.exec;if(rt$2(n)){var r=z$2(n,t,e);return null!==r&&ee$2(r),r}if("RegExp"===X$2(t))return z$2($r$1,t,e);throw new co$1("RegExp#exec called on incompatible receiver")},fo$1=$t$2("replace"),lo$1=Math.max,po$1=Math.min,vo$1=W$2([].concat),ho$1=W$2([].push),yo$1=W$2("".indexOf),go$1=W$2("".slice),mo$1="$0"==="a".replace(/./,"$0"),bo$1=!!/./[fo$1]&&""===/./[fo$1]("a","$0");!function(t,e,n,r){var o=$t$2(t),i=!C$2((function(){var e={};return e[o]=function(){return 7},7!==""[t](e)})),u=i&&!C$2((function(){var e=!1,n=/a/;return "split"===t&&((n={}).constructor={},n.constructor[Gr$1]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!u||n){var a=/./[o],c=e(o,""[t],(function(t,e,n,r,o){var u=e.exec;return u===$r$1||u===Kr$1.exec?i&&!o?{done:!0,value:z$2(a,e,n,r)}:{done:!0,value:z$2(t,n,e,r)}:{done:!1}}));Ne$2(String.prototype,t,c[0]),Ne$2(Kr$1,o,c[1]);}r&&se$2(Kr$1[o],"sham",!0);}("replace",(function(t,e,n){var r=bo$1?"$":"$0";return [function(t,n){var r=tt$2(this),o=Q$2(t)?void 0:xt$2(t,fo$1);return o?z$2(o,t,r,n):z$2(e,mn$2(r),t,n)},function(t,o){var i=ee$2(this),u=mn$2(t);if("string"==typeof o&&-1===yo$1(o,r)&&-1===yo$1(o,"$<")){var a=n(e,i,u,o);if(a.done)return a.value}var c=rt$2(o);c||(o=mn$2(o));var s,f=i.global;f&&(s=i.unicode,i.lastIndex=0);for(var l,d=[];null!==(l=so$1(i,u))&&(ho$1(d,l),f);){""===mn$2(l[0])&&(i.lastIndex=to$1(u,_e$2(i.lastIndex),s));}for(var p,v="",h=0,y=0;y<d.length;y++){for(var g,m=mn$2((l=d[y])[0]),b=lo$1(po$1(Le$2(l.index),u.length),0),w=[],S=1;S<l.length;S++)ho$1(w,void 0===(p=l[S])?p:String(p));var O=l.groups;if(c){var E=vo$1([m],w,b,u);void 0!==O&&ho$1(E,O),g=mn$2(Wr$1(o,void 0,E));}else g=ao$1(m,u,b,w,O,o);b>=h&&(v+=go$1(u,h,b)+g,h=b+m.length);}return v+go$1(u,h)}]}),!!C$2((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!mo$1||bo$1);var wo$1={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},So$1=Xt$2("span").classList,Oo$1=So$1&&So$1.constructor&&So$1.constructor.prototype,Eo$1=Oo$1===Object.prototype?void 0:Oo$1,xo$1=function(t,e){var n=[][t];return !!n&&C$2((function(){n.call(null,e||function(){return 1},1);}))},Io$1=vr$1.forEach,Po$1=xo$1("forEach")?[].forEach:function(t){return Io$1(this,t,arguments.length>1?arguments[1]:void 0)},jo$1=function(t){if(t&&t.forEach!==Po$1)try{se$2(t,"forEach",Po$1);}catch(e){t.forEach=Po$1;}};for(var To$1 in wo$1)wo$1[To$1]&&jo$1(R$2[To$1]&&R$2[To$1].prototype);function Mo$1(t){return void 0===t&&(t="r"),t+"-"+nanoid$3()}function Ao$1(t){var e={};return t.trim().split(";").forEach((function(t){if(t){var n=I$2(t.split(":"),2),r=n[0],o=n[1];r&&o&&(e[r.trim()]=o.trim());}})),e}function No$1(t,e,n,r,o){return void 0===e&&(e=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:t,poster:e,width:n,height:r,style:o,children:[{text:""}]}}jo$1(Eo$1);var Ro$1,Co$1,ko$1,Lo$1,Vo$1={selector:'div[data-w-e-type="video"]',parseElemHtml:function(t,e,n){var r=$$6(t),o="",i="",u="auto",a="auto",c={},s=r.find("iframe");if(s.length>0)return u=s.attr("width")||"auto",a=s.attr("height")||"auto",c=Ao$1(c=s.attr("style")||""),No$1(o=s[0].outerHTML,i,u,a,c);var l=r.find("video");return (o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),u=l.attr("width")||"auto",a=l.attr("height")||"auto",No$1(o,i=l.attr("poster")||"",u,a,c=Ao$1(c=l.attr("style")||""))}},zo$1=function(t){return st$2.slice(0,t.length)===t},Do$1=zo$1("Bun/")?"BUN":zo$1("Cloudflare-Workers")?"CLOUDFLARE":zo$1("Deno/")?"DENO":zo$1("Node.js/")?"NODE":R$2.Bun&&"string"==typeof Bun.version?"BUN":R$2.Deno&&"object"==typeof Deno.version?"DENO":"process"===X$2(R$2.process)?"NODE":R$2.window&&R$2.document?"BROWSER":"REST",Fo$1="NODE"===Do$1,_o$1=String,$o$1=TypeError,Bo$1=function(t){if(function(t){return ot$2(t)||null===t}(t))return t;throw new $o$1("Can't set "+_o$1(t)+" as a prototype")},Uo$1=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=function(t,e,n){try{return W$2(Et$2(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array;}catch(t){}return function(n,r){return tt$2(n),Bo$1(r),ot$2(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0),Ho$1=ce$2.f,Wo$1=$t$2("toStringTag"),Go$1=function(t,e,n){t&&!n&&(t=t.prototype),t&&!Ct$2(t,Wo$1)&&Ho$1(t,Wo$1,{configurable:!0,value:e});},Ko$1=function(t,e,n){return n.get&&Ae$2(n.get,e,{getter:!0}),n.set&&Ae$2(n.set,e,{setter:!0}),ce$2.f(t,e,n)},Xo$1=$t$2("species"),Yo$1=TypeError,qo$1=function(t,e){if(ut$2(e,t))return t;throw new Yo$1("Incorrect invocation")},Jo$1=TypeError,Qo$1=$t$2("species"),Zo$1=function(t,e){var n,r=ee$2(t).constructor;return void 0===r||Q$2(n=ee$2(r)[Qo$1])?e:function(t){if(cr$1(t))return t;throw new Jo$1(St$2(t)+" is not a constructor")}(n)},ti$1=W$2([].slice),ei$1=TypeError,ni$1=/(?:ipad|iphone|ipod).*applewebkit/i.test(st$2),ri$1=R$2.setImmediate,oi$1=R$2.clearImmediate,ii$1=R$2.process,ui$1=R$2.Dispatch,ai$1=R$2.Function,ci$1=R$2.MessageChannel,si$1=R$2.String,fi$1=0,li$1={},di$1="onreadystatechange";C$2((function(){Ro$1=R$2.location;}));var pi$1=function(t){if(Ct$2(li$1,t)){var e=li$1[t];delete li$1[t],e();}},vi$1=function(t){return function(){pi$1(t);}},hi$1=function(t){pi$1(t.data);},yi$1=function(t){R$2.postMessage(si$1(t),Ro$1.protocol+"//"+Ro$1.host);};ri$1&&oi$1||(ri$1=function(t){!function(t,e){if(t<e)throw new ei$1("Not enough arguments")}(arguments.length,1);var e=rt$2(t)?t:ai$1(t),n=ti$1(arguments,1);return li$1[++fi$1]=function(){Wr$1(e,void 0,n);},Co$1(fi$1),fi$1},oi$1=function(t){delete li$1[t];},Fo$1?Co$1=function(t){ii$1.nextTick(vi$1(t));}:ui$1&&ui$1.now?Co$1=function(t){ui$1.now(vi$1(t));}:ci$1&&!ni$1?(Lo$1=(ko$1=new ci$1).port2,ko$1.port1.onmessage=hi$1,Co$1=Zn$2(Lo$1.postMessage,Lo$1)):R$2.addEventListener&&rt$2(R$2.postMessage)&&!R$2.importScripts&&Ro$1&&"file:"!==Ro$1.protocol&&!C$2(yi$1)?(Co$1=yi$1,R$2.addEventListener("message",hi$1,!1)):Co$1=di$1 in Xt$2("script")?function(t){Ln$2.appendChild(Xt$2("script"))[di$1]=function(){Ln$2.removeChild(this),pi$1(t);};}:function(t){setTimeout(vi$1(t),0);});var gi$1={set:ri$1,clear:oi$1},mi$1=Object.getOwnPropertyDescriptor,bi$1=function(){this.head=null,this.tail=null;};bi$1.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e;},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var wi$1,Si$1,Oi$1,Ei$1,xi$1,Ii$1=bi$1,Pi$1=/ipad|iphone|ipod/i.test(st$2)&&"undefined"!=typeof Pebble,ji$1=/web0s(?!.*chrome)/i.test(st$2),Ti$1=gi$1.set,Mi$1=R$2.MutationObserver||R$2.WebKitMutationObserver,Ai$1=R$2.document,Ni$1=R$2.process,Ri$1=R$2.Promise,Ci$1=function(t){if(!k$2)return R$2[t];var e=mi$1(R$2,t);return e&&e.value}("queueMicrotask");if(!Ci$1){var ki$1=new Ii$1,Li$1=function(){var t,e;for(Fo$1&&(t=Ni$1.domain)&&t.exit();e=ki$1.get();)try{e();}catch(t){throw ki$1.head&&wi$1(),t}t&&t.enter();};ni$1||Fo$1||ji$1||!Mi$1||!Ai$1?!Pi$1&&Ri$1&&Ri$1.resolve?((Ei$1=Ri$1.resolve(void 0)).constructor=Ri$1,xi$1=Zn$2(Ei$1.then,Ei$1),wi$1=function(){xi$1(Li$1);}):Fo$1?wi$1=function(){Ni$1.nextTick(Li$1);}:(Ti$1=Zn$2(Ti$1,R$2),wi$1=function(){Ti$1(Li$1);}):(Si$1=!0,Oi$1=Ai$1.createTextNode(""),new Mi$1(Li$1).observe(Oi$1,{characterData:!0}),wi$1=function(){Oi$1.data=Si$1=!Si$1;}),Ci$1=function(t){ki$1.head||wi$1(),ki$1.add(t);};}var Vi$1=Ci$1,zi$1=function(t){try{return {error:!1,value:t()}}catch(t){return {error:!0,value:t}}},Di$1=R$2.Promise;Di$1&&Di$1.prototype;var Fi$1,_i$1,$i$1,Bi$1,Ui$1=$t$2("species"),Hi$1=!1,Wi$1=rt$2(R$2.PromiseRejectionEvent),Gi$1=an$2("Promise",(function(){var t=me$2(Di$1),e=t!==String(Di$1);if(!e&&66===vt$2)return !0;if(!vt$2||vt$2<51||!/native code/.test(t)){var n=new Di$1((function(t){t(1);})),r=function(t){t((function(){}),(function(){}));};if((n.constructor={})[Ui$1]=r,!(Hi$1=n.then((function(){}))instanceof r))return !0}return !(e||"BROWSER"!==Do$1&&"DENO"!==Do$1||Wi$1)})),Ki$1={CONSTRUCTOR:Gi$1,REJECTION_EVENT:Wi$1,SUBCLASSING:Hi$1},Xi$1=TypeError,Yi$1=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new Xi$1("Bad Promise constructor");e=t,n=r;})),this.resolve=Et$2(e),this.reject=Et$2(n);},qi$1={f:function(t){return new Yi$1(t)}},Ji$1=gi$1.set,Qi$1="Promise",Zi$1=Ki$1.CONSTRUCTOR,tu$1=Ki$1.REJECTION_EVENT,eu$1=Ki$1.SUBCLASSING,nu$1=Me$2.getterFor(Qi$1),ru$1=Me$2.set,ou$1=Di$1&&Di$1.prototype,iu$1=Di$1,uu$1=ou$1,au$1=R$2.TypeError,cu$1=R$2.document,su$1=R$2.process,fu$1=qi$1.f,lu$1=fu$1,du$1=!!(cu$1&&cu$1.createEvent&&R$2.dispatchEvent),pu$1="unhandledrejection",vu$1=function(t){var e;return !(!ot$2(t)||!rt$2(e=t.then))&&e},hu$1=function(t,e){var n,r,o,i=e.value,u=1===e.state,a=u?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&wu$1(e),e.rejection=1),!0===a?n=i:(f&&f.enter(),n=a(i),f&&(f.exit(),o=!0)),n===t.promise?s(new au$1("Promise-chain cycle")):(r=vu$1(n))?z$2(r,n,c,s):c(n)):s(i);}catch(t){f&&!o&&f.exit(),s(t);}},yu$1=function(t,e){t.notified||(t.notified=!0,Vi$1((function(){for(var n,r=t.reactions;n=r.get();)hu$1(n,t);t.notified=!1,e&&!t.rejection&&mu$1(t);})));},gu$1=function(t,e,n){var r,o;du$1?((r=cu$1.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),R$2.dispatchEvent(r)):r={promise:e,reason:n},!tu$1&&(o=R$2["on"+t])?o(r):t===pu$1&&function(t,e){try{1===arguments.length?console.error(t):console.error(t,e);}catch(t){}}("Unhandled promise rejection",n);},mu$1=function(t){z$2(Ji$1,R$2,(function(){var e,n=t.facade,r=t.value;if(bu$1(t)&&(e=zi$1((function(){Fo$1?su$1.emit("unhandledRejection",r,n):gu$1(pu$1,n,r);})),t.rejection=Fo$1||bu$1(t)?2:1,e.error))throw e.value}));},bu$1=function(t){return 1!==t.rejection&&!t.parent},wu$1=function(t){z$2(Ji$1,R$2,(function(){var e=t.facade;Fo$1?su$1.emit("rejectionHandled",e):gu$1("rejectionhandled",e,t.value);}));},Su$1=function(t,e,n){return function(r){t(e,r,n);}},Ou$1=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,yu$1(t,!0));},Eu$1=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new au$1("Promise can't be resolved itself");var r=vu$1(e);r?Vi$1((function(){var n={done:!1};try{z$2(r,e,Su$1(Eu$1,n,t),Su$1(Ou$1,n,t));}catch(e){Ou$1(n,e,t);}})):(t.value=e,t.state=1,yu$1(t,!1));}catch(e){Ou$1({done:!1},e,t);}}};if(Zi$1&&(uu$1=(iu$1=function(t){qo$1(this,uu$1),Et$2(t),z$2(Fi$1,this);var e=nu$1(this);try{t(Su$1(Eu$1,e),Su$1(Ou$1,e));}catch(t){Ou$1(e,t);}}).prototype,(Fi$1=function(t){ru$1(this,{type:Qi$1,done:!1,notified:!1,parent:!1,reactions:new Ii$1,rejection:!1,state:0,value:null});}).prototype=Ne$2(uu$1,"then",(function(t,e){var n=nu$1(this),r=fu$1(Zo$1(this,iu$1));return n.parent=!0,r.ok=!rt$2(t)||t,r.fail=rt$2(e)&&e,r.domain=Fo$1?su$1.domain:void 0,0===n.state?n.reactions.add(r):Vi$1((function(){hu$1(r,n);})),r.promise})),_i$1=function(){var t=new Fi$1,e=nu$1(t);this.promise=t,this.resolve=Su$1(Eu$1,e),this.reject=Su$1(Ou$1,e);},qi$1.f=fu$1=function(t){return t===iu$1||undefined===t?new _i$1(t):lu$1(t)},rt$2(Di$1)&&ou$1!==Object.prototype)){$i$1=ou$1.then,eu$1||Ne$2(ou$1,"then",(function(t,e){var n=this;return new iu$1((function(t,e){z$2($i$1,n,t,e);})).then(t,e)}),{unsafe:!0});try{delete ou$1.constructor;}catch(t){}Uo$1&&Uo$1(ou$1,uu$1);}sn$2({global:!0,constructor:!0,wrap:!0,forced:Zi$1},{Promise:iu$1}),Go$1(iu$1,Qi$1,!1),Bi$1=it$2(Qi$1),k$2&&Bi$1&&!Bi$1[Xo$1]&&Ko$1(Bi$1,Xo$1,{configurable:!0,get:function(){return this}});var xu$1={},Iu$1=$t$2("iterator"),Pu$1=Array.prototype,ju$1=$t$2("iterator"),Tu$1=function(t){if(!Q$2(t))return xt$2(t,ju$1)||xt$2(t,"@@iterator")||xu$1[yn$2(t)]},Mu$1=TypeError,Au$1=function(t,e,n){var r,o;ee$2(t);try{if(!(r=xt$2(t,"return"))){if("throw"===e)throw n;return n}r=z$2(r,t);}catch(t){o=!0,r=t;}if("throw"===e)throw n;if(o)throw r;return ee$2(r),n},Nu$1=TypeError,Ru$1=function(t,e){this.stopped=t,this.result=e;},Cu$1=Ru$1.prototype,ku$1=function(t,e,n){var r,o,i,u,a,c,s,f,l=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_RECORD),v=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),y=Zn$2(e,l),g=function(t){return r&&Au$1(r,"normal",t),new Ru$1(!0,t)},m=function(t){return d?(ee$2(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(p)r=t.iterator;else if(v)r=t;else {if(!(o=Tu$1(t)))throw new Nu$1(St$2(t)+" is not iterable");if(void 0!==(f=o)&&(xu$1.Array===f||Pu$1[Iu$1]===f)){for(i=0,u=$e$2(t);u>i;i++)if((a=m(t[i]))&&ut$2(Cu$1,a))return a;return new Ru$1(!1)}r=function(t,e){var n=arguments.length<2?Tu$1(t):e;if(Et$2(n))return ee$2(z$2(n,t));throw new Mu$1(St$2(t)+" is not iterable")}(t,o);}for(c=p?t.next:r.next;!(s=z$2(c,r)).done;){try{a=m(s.value);}catch(t){Au$1(r,"throw",t);}if("object"==typeof a&&a&&ut$2(Cu$1,a))return a}return new Ru$1(!1)},Lu$1=$t$2("iterator"),Vu$1=!1;try{var zu$1=0,Du$1={next:function(){return {done:!!zu$1++}},return:function(){Vu$1=!0;}};Du$1[Lu$1]=function(){return this},Array.from(Du$1,(function(){throw 2}));}catch(t){}var Fu$1=function(t,e){try{if(!e&&!Vu$1)return !1}catch(t){return !1}var n=!1;try{var r={};r[Lu$1]=function(){return {next:function(){return {done:n=!0}}}},t(r);}catch(t){}return n},_u$1=Ki$1.CONSTRUCTOR||!Fu$1((function(t){Di$1.all(t).then(void 0,(function(){}));}));sn$2({target:"Promise",stat:!0,forced:_u$1},{all:function(t){var e=this,n=qi$1.f(e),r=n.resolve,o=n.reject,i=zi$1((function(){var n=Et$2(e.resolve),i=[],u=0,a=1;ku$1(t,(function(t){var c=u++,s=!1;a++,z$2(n,e,t).then((function(t){s||(s=!0,i[c]=t,--a||r(i));}),o);})),--a||r(i);}));return i.error&&o(i.value),n.promise}});var $u$1=Ki$1.CONSTRUCTOR,Bu$1=Di$1&&Di$1.prototype;if(sn$2({target:"Promise",proto:!0,forced:$u$1,real:!0},{catch:function(t){return this.then(void 0,t)}}),rt$2(Di$1)){var Uu$1=it$2("Promise").prototype.catch;Bu$1.catch!==Uu$1&&Ne$2(Bu$1,"catch",Uu$1,{unsafe:!0});}sn$2({target:"Promise",stat:!0,forced:_u$1},{race:function(t){var e=this,n=qi$1.f(e),r=n.reject,o=zi$1((function(){var o=Et$2(e.resolve);ku$1(t,(function(t){z$2(o,e,t).then(n.resolve,r);}));}));return o.error&&r(o.value),n.promise}}),sn$2({target:"Promise",stat:!0,forced:Ki$1.CONSTRUCTOR},{reject:function(t){var e=qi$1.f(this);return (0, e.reject)(t),e.promise}});var Hu$1=Ki$1.CONSTRUCTOR;function Wu$1(t,n,r,o,i){return void 0===r&&(r=""),void 0===o&&(o=""),void 0===i&&(i=""),O$2(this,void 0,void 0,(function(){var a,c,s,f,l,d,p;return E$2(this,(function(v){switch(v.label){case 0:return n?(t.restoreSelection(),a=t.getMenuConfig("insertVideo"),c=a.onInsertedVideo,s=a.checkVideo,f=a.parseVideoSrc,[4,s(n,r)]):[2];case 1:return "string"==typeof(l=v.sent())?(t.alert(l,"error"),[2]):null==l?[2]:[4,f(n)];case 2:return 0!==(d=v.sent()).trim().indexOf("<iframe ")&&(d=d.replace(/</g,"<").replace(/>/g,">")),p={type:"video",src:d,poster:r,children:[{text:""}],style:{width:o,height:i}},Promise.resolve().then((function(){Ic$2.isSelectedEmptyParagraph(t)&&Transforms.removeNodes(t,{mode:"highest"}),Transforms.insertNodes(t,p,{mode:"highest"});})),c(p),[2]}}))}))}function Gu$1(){return Mo$1("w-e-insert-video")}it$2("Promise"),sn$2({target:"Promise",stat:!0,forced:Hu$1},{resolve:function(t){return function(t,e){if(ee$2(t),ot$2(e)&&e.constructor===t)return e;var n=qi$1.f(t);return (0, n.resolve)(e),n.promise}(this,t)}});var Ku$1=function(){function t(){this.title=Wp$1("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=Gu$1(),this.posterInputId=Gu$1(),this.buttonId=Gu$1();}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!Range.isCollapsed(n)||!!Ic$2.getSelectedElems(t).some((function(n){var r=Ic$2.getNodeType(n);return "pre"===r||("list-item"===r||!!t.isVoid(n))})))},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var e=this,i=this,u=i.srcInputId,a=i.posterInputId,c=i.buttonId,s=I$2(Bh$1(Wp$1("videoModule.videoSrc"),u,Wp$1("videoModule.videoSrcPlaceHolder")),2),l=s[0],d=s[1],p=I$2(Bh$1(Wp$1("videoModule.videoPoster"),a,Wp$1("videoModule.videoPosterPlaceHolder")),2),v=p[0],h=p[1],y=$$6(d),g=$$6(h),m=I$2($h$1(c,Wp$1("videoModule.ok")),1)[0];if(null==this.$content){var b=$$6("<div></div>");b.on("click","#"+c,(function(n){return O$2(e,void 0,void 0,(function(){var e,r;return E$2(this,(function(o){switch(o.label){case 0:return n.preventDefault(),e=b.find("#"+u).val().trim(),r=b.find("#"+a).val().trim(),[4,Wu$1(t,e,r)];case 1:return o.sent(),t.hidePanelOrModal(),[2]}}))}))})),this.$content=b;}var w=this.$content;return w.empty(),w.append(l),w.append(v),w.append(m),y.val(""),g.val(""),setTimeout((function(){y.focus();})),w[0]},t}(),Xu$1=W$2([].join),Yu$1=J$2!==Object||!xo$1("join",",");sn$2({target:"Array",proto:!0,forced:Yu$1},{join:function(t){return Xu$1(et$2(this),void 0===t?",":t)}});var qu$1,Ju$1,Qu$1,Zu$1=!C$2((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ta$2=Oe$2("IE_PROTO"),ea$2=Object,na$2=ea$2.prototype,ra$2=Zu$1?ea$2.getPrototypeOf:function(t){var e=Nt$2(t);if(Ct$2(e,ta$2))return e[ta$2];var n=e.constructor;return rt$2(n)&&e instanceof n?n.prototype:e instanceof ea$2?na$2:null},oa$2=$t$2("iterator"),ia$2=!1;[].keys&&("next"in(Qu$1=[].keys())?(Ju$1=ra$2(ra$2(Qu$1)))!==Object.prototype&&(qu$1=Ju$1):ia$2=!0);var ua$2=!ot$2(qu$1)||C$2((function(){var t={};return qu$1[oa$2].call(t)!==t}));ua$2&&(qu$1={}),rt$2(qu$1[oa$2])||Ne$2(qu$1,oa$2,(function(){return this}));var aa$2={IteratorPrototype:qu$1,BUGGY_SAFARI_ITERATORS:ia$2},ca$2=aa$2.IteratorPrototype,sa$2=function(){return this},fa$2=pe$2.PROPER,la$2=pe$2.CONFIGURABLE,da$2=aa$2.IteratorPrototype,pa$2=aa$2.BUGGY_SAFARI_ITERATORS,va$1=$t$2("iterator"),ha$2="keys",ya$1="values",ga$2="entries",ma$2=function(){return this},ba$2=function(t,e,n,r,o,i,u){!function(t,e,n,r){var o=e+" Iterator";t.prototype=Un$2(ca$2,{next:$$2(+!r,n)}),Go$1(t,o,!1),xu$1[o]=sa$2;}(n,e,r);var a,c,s,f=function(t){if(t===o&&h)return h;if(!pa$2&&t&&t in p)return p[t];switch(t){case ha$2:case ya$1:case ga$2:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",d=!1,p=t.prototype,v=p[va$1]||p["@@iterator"]||o&&p[o],h=!pa$2&&v||f(o),y="Array"===e&&p.entries||v;if(y&&(a=ra$2(y.call(new t)))!==Object.prototype&&a.next&&(ra$2(a)!==da$2&&(Uo$1?Uo$1(a,da$2):rt$2(a[va$1])||Ne$2(a,va$1,ma$2)),Go$1(a,l,!0)),fa$2&&o===ya$1&&v&&v.name!==ya$1&&(la$2?se$2(p,"name",ya$1):(d=!0,h=function(){return z$2(v,this)})),o)if(c={values:f(ya$1),keys:i?h:f(ha$2),entries:f(ga$2)},u)for(s in c)(pa$2||d||!(s in p))&&Ne$2(p,s,c[s]);else sn$2({target:e,proto:!0,forced:pa$2||d},c);return p[va$1]!==h&&Ne$2(p,va$1,h,{name:o}),xu$1[e]=h,c},wa$1=function(t,e){return {value:t,done:e}},Sa$2=ce$2.f,Oa$1="Array Iterator",Ea$2=Me$2.set,xa$1=Me$2.getterFor(Oa$1),Ia$1=ba$2(Array,"Array",(function(t,e){Ea$2(this,{type:Oa$1,target:et$2(t),index:0,kind:e});}),(function(){var t=xa$1(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,wa$1(void 0,!0);switch(t.kind){case"keys":return wa$1(n,!1);case"values":return wa$1(e[n],!1)}return wa$1([n,e[n]],!1)}),"values"),Pa$1=xu$1.Arguments=xu$1.Array;if(Kn$2("keys"),Kn$2("values"),Kn$2("entries"),k$2&&"values"!==Pa$1.name)try{Sa$2(Pa$1,"name",{value:"values"});}catch(t){}var ja$1=$t$2("species"),Ta$2=function(t){return vt$2>=51||!C$2((function(){var e=[];return (e.constructor={})[ja$1]=function(){return {foo:1}},1!==e[t](Boolean).foo}))}("slice"),Ma=$t$2("species"),Aa$1=Array,Na$1=Math.max;sn$2({target:"Array",proto:!0,forced:!Ta$2},{slice:function(t,e){var n,r,o,i,u,a,c=et$2(this),s=$e$2(c),f=De$2(t,s),l=De$2(void 0===e?s:e,s);if(tr$1(c)&&(n=c.constructor,(cr$1(n)&&(n===Aa$1||tr$1(n.prototype))||ot$2(n)&&null===(n=n[Ma]))&&(n=void 0),n===Aa$1||void 0===n))return ti$1(c,f,l);for(r=new(void 0===n?Aa$1:n)(Na$1(l-f,0)),o=0;f<l;f++,o++)f in c&&(i=r,u=o,a=c[f],k$2?ce$2.f(i,u,$$2(0,a)):i[u]=a);return r.length=o,r}});var Ra$1=pe$2.EXISTS,Ca$1=Function.prototype,ka$1=W$2(Ca$1.toString),La$1=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Va=W$2(La$1.exec);k$2&&!Ra$1&&Ko$1(Ca$1,"name",{configurable:!0,get:function(){try{return Va(La$1,ka$1(this))[1]}catch(t){return ""}}});var za=Qr$1.charAt,Da="String Iterator",Fa=Me$2.set,_a=Me$2.getterFor(Da);ba$2(String,"String",(function(t){Fa(this,{type:Da,string:mn$2(t),index:0});}),(function(){var t,e=_a(this),n=e.string,r=e.index;return r>=n.length?wa$1(void 0,!0):(t=za(n,r),e.index+=t.length,wa$1(t,!1))}));var $a=!C$2((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ba=function(t,e,n){for(var r in e)Ne$2(t,r,e[r],n);return t},Ua=Ye$2.f,Ha="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Wa={f:function(t){return Ha&&"Window"===X$2(t)?function(t){try{return Ua(t)}catch(t){return ti$1(Ha)}}(t):Ua(et$2(t))}},Ga=C$2((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8});}})),Ka=Object.isExtensible,Xa=C$2((function(){Ka(1);}))||Ga?function(t){return !!ot$2(t)&&((!Ga||"ArrayBuffer"!==X$2(t))&&(!Ka||Ka(t)))}:Ka,Ya=T$2((function(t){var e=ce$2.f,n=!1,r=zt$2("meta"),o=0,i=function(t){e(t,r,{value:{objectID:"O"+o++,weakData:{}}});},u=t.exports={enable:function(){u.enable=function(){},n=!0;var t=Ye$2.f,e=W$2([].splice),o={};o[r]=1,t(o).length&&(Ye$2.f=function(n){for(var o=t(n),i=0,u=o.length;i<u;i++)if(o[i]===r){e(o,i,1);break}return o},sn$2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Wa.f}));},fastKey:function(t,e){if(!ot$2(t))return "symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!Ct$2(t,r)){if(!Xa(t))return "F";if(!e)return "E";i(t);}return t[r].objectID},getWeakData:function(t,e){if(!Ct$2(t,r)){if(!Xa(t))return !0;if(!e)return !1;i(t);}return t[r].weakData},onFreeze:function(t){return $a&&n&&Xa(t)&&!Ct$2(t,r)&&i(t),t}};Ee$2[r]=!0;})),qa=Ya.getWeakData,Ja=Me$2.set,Qa=Me$2.getterFor,Za=vr$1.find,tc=vr$1.findIndex,ec=W$2([].splice),nc=0,rc=function(t){return t.frozen||(t.frozen=new oc)},oc=function(){this.entries=[];},ic=function(t,e){return Za(t.entries,(function(t){return t[0]===e}))};oc.prototype={get:function(t){var e=ic(this,t);if(e)return e[1]},has:function(t){return !!ic(this,t)},set:function(t,e){var n=ic(this,t);n?n[1]=e:this.entries.push([t,e]);},delete:function(t){var e=tc(this.entries,(function(e){return e[0]===t}));return ~e&&ec(this.entries,e,1),!!~e}};var uc,ac={getConstructor:function(t,e,n,r){var o=t((function(t,o){qo$1(t,i),Ja(t,{type:e,id:nc++,frozen:null}),Q$2(o)||ku$1(o,t[r],{that:t,AS_ENTRIES:n});})),i=o.prototype,u=Qa(e),a=function(t,e,n){var r=u(t),o=qa(ee$2(e),!0);return !0===o?rc(r).set(e,n):o[r.id]=n,t};return Ba(i,{delete:function(t){var e=u(this);if(!ot$2(t))return !1;var n=qa(t);return !0===n?rc(e).delete(t):n&&Ct$2(n,e.id)&&delete n[e.id]},has:function(t){var e=u(this);if(!ot$2(t))return !1;var n=qa(t);return !0===n?rc(e).has(t):n&&Ct$2(n,e.id)}}),Ba(i,n?{get:function(t){var e=u(this);if(ot$2(t)){var n=qa(t);if(!0===n)return rc(e).get(t);if(n)return n[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},cc=Me$2.enforce,sc=Object,fc=Array.isArray,lc=sc.isExtensible,dc=sc.isFrozen,pc=sc.isSealed,vc=sc.freeze,hc=sc.seal,yc=!R$2.ActiveXObject&&"ActiveXObject"in R$2,gc=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},mc=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",u=R$2[t],a=u&&u.prototype,c=u,s={},f=function(t){var e=W$2(a[t]);Ne$2(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return !(o&&!ot$2(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!ot$2(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return !(o&&!ot$2(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this});};if(an$2(t,!rt$2(u)||!(o||a.forEach&&!C$2((function(){(new u).entries().next();})))))c=n.getConstructor(e,t,r,i),Ya.enable();else if(an$2(t,!0)){var l=new c,d=l[i](o?{}:-0,1)!==l,p=C$2((function(){l.has(1);})),v=Fu$1((function(t){new u(t);})),h=!o&&C$2((function(){for(var t=new u,e=5;e--;)t[i](e,e);return !t.has(-0)}));v||((c=e((function(t,e){qo$1(t,a);var n=function(t,e,n){var r,o;return Uo$1&&rt$2(r=e.constructor)&&r!==n&&ot$2(o=r.prototype)&&o!==n.prototype&&Uo$1(t,o),t}(new u,t,c);return Q$2(e)||ku$1(e,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=a,a.constructor=c),(p||h)&&(f("delete"),f("has"),r&&f("get")),(h||d)&&f(i),o&&a.clear&&delete a.clear;}return s[t]=c,sn$2({global:!0,constructor:!0,forced:c!==u},s),Go$1(c,t),o||n.setStrong(c,t,r),c}("WeakMap",gc,ac),bc=mc.prototype,wc=W$2(bc.set);if(we$2)if(yc){uc=ac.getConstructor(gc,"WeakMap",!0),Ya.enable();var Sc=W$2(bc.delete),Oc=W$2(bc.has),Ec=W$2(bc.get);Ba(bc,{delete:function(t){if(ot$2(t)&&!lc(t)){var e=cc(this);return e.frozen||(e.frozen=new uc),Sc(this,t)||e.frozen.delete(t)}return Sc(this,t)},has:function(t){if(ot$2(t)&&!lc(t)){var e=cc(this);return e.frozen||(e.frozen=new uc),Oc(this,t)||e.frozen.has(t)}return Oc(this,t)},get:function(t){if(ot$2(t)&&!lc(t)){var e=cc(this);return e.frozen||(e.frozen=new uc),Oc(this,t)?Ec(this,t):e.frozen.get(t)}return Ec(this,t)},set:function(t,e){if(ot$2(t)&&!lc(t)){var n=cc(this);n.frozen||(n.frozen=new uc),Oc(this,t)?wc(this,t,e):n.frozen.set(t,e);}else wc(this,t,e);return this}});}else $a&&C$2((function(){var t=vc([]);return wc(new mc,t,1),!dc(t)}))&&Ba(bc,{set:function(t,e){var n;return fc(t)&&(dc(t)?n=vc:pc(t)&&(n=hc)),wc(this,t,e),n&&n(t),this}});var xc=$t$2("iterator"),Ic=Ia$1.values,Pc=function(t,e){if(t){if(t[xc]!==Ic)try{se$2(t,xc,Ic);}catch(e){t[xc]=Ic;}if(Go$1(t,e,!0),wo$1[e])for(var n in Ia$1)if(t[n]!==Ia$1[n])try{se$2(t,n,Ia$1[n]);}catch(e){t[n]=Ia$1[n];}}};for(var jc in wo$1)Pc(R$2[jc]&&R$2[jc].prototype,jc);function Tc(t){return t.getMenuConfig("uploadVideo")}Pc(Eo$1,"DOMTokenList");var Mc=new WeakMap;function Ac(t,e){return O$2(this,void 0,void 0,(function(){var n,r,o,u;return E$2(this,(function(a){switch(a.label){case 0:return n=function(t){var e=Mc.get(t);if(null!=e)return e;var n=Tc(t),r=n.onSuccess,o=n.onProgress,u=n.onFailed,a=n.customInsert,c=n.onError;return e=lg(S$2(S$2({},n),{onProgress:function(e){t.showProgressBar(e),o&&o(e);},onSuccess:function(e,n){if(a)return a(n,(function(e,n){return Wu$1(t,e,n)})),void r(e,n);var o=n.errno,i=void 0===o?1:o,c=n.data,s=void 0===c?{}:c;if(0===i){var f=s.url,l=void 0===f?"":f,d=s.poster;Wu$1(t,l,void 0===d?"":d),r(e,n);}else u(e,n);},onError:function(t,e,n){c(t,e,n);}})),Mc.set(t,e),e}(t),r=e.name,o=e.type,u=e.size,n.addFile({name:r,type:o,size:u,data:e}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var Nc=function(){function t(){this.title=Wp$1("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button";}return t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){var n=this.getMenuConfig(t),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(e,n){return Wu$1(t,e,n)}));else {var u="";o.length>0&&(u='accept="'+o.join(", ")+'"');var a=$$6("body"),c=$$6('<input type="file" '+u+" multiple/>");c.hide(),a.append(c),c.click(),c.on("change",(function(){var e=c[0].files;!function(t,e){var n,r;O$2(this,void 0,void 0,(function(){var o,i,u,a,c,s;return E$2(this,(function(f){switch(f.label){case 0:if(null==e)return [2];o=Array.prototype.slice.call(e),i=Tc(t).customUpload,f.label=1;case 1:f.trys.push([1,9,10,15]),u=P$2(o),f.label=2;case 2:return [4,u.next()];case 3:return (a=f.sent()).done?[3,8]:(c=a.value,i?[4,i(c,(function(e,n){return Wu$1(t,e,n)}))]:[3,5]);case 4:return f.sent(),[3,7];case 5:return [4,Ac(t,c)];case 6:f.sent(),f.label=7;case 7:return [3,2];case 8:return [3,15];case 9:return s=f.sent(),n={error:s},[3,15];case 10:return f.trys.push([10,,13,14]),a&&!a.done&&(r=u.return)?[4,r.call(u)]:[3,12];case 11:f.sent(),f.label=12;case 12:return [3,14];case 13:if(n)throw n.error;return [7];case 14:return [7];case 15:return [2]}}))}));}(t,e);}));}},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!Range.isCollapsed(n)||!!Ic$2.getSelectedElems(t).some((function(n){var r=Ic$2.getNodeType(n);return "pre"===r||("list-item"===r||!!t.isVoid(n))})))},t.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},t}();function Rc(){return Mo$1("w-e-insert-video")}var Cc=function(){function t(){this.title=Wp$1("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Rc(),this.heightInputId=Rc(),this.buttonId=Rc();}return t.prototype.getSelectedVideoNode=function(t){return Ic$2.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,a=i.widthInputId,c=i.heightInputId,s=i.buttonId,l=I$2(Bh$1(Wp$1("videoModule.width"),a,"auto"),2),d=l[0],p=l[1],v=$$6(p),h=I$2(Bh$1(Wp$1("videoModule.height"),c,"auto"),2),y=h[0],g=h[1],m=$$6(g),b=I$2($h$1(s,Wp$1("videoModule.ok")),1)[0];if(null==this.$content){var w=$$6("<div></div>");w.on("click","#"+s,(function(n){n.preventDefault();var r=w.find("#"+a).val().trim(),o=w.find("#"+c).val().trim(),i=function(t){return /^\d+(\.\d+)?%$/.test(t)},s=function(t){return /^\d+(\.\d+)?$/.test(t)},f="auto",l="auto";i(r)?f=r:s(r)&&(f=parseInt(r)+"px"),i(o)?l=o:s(o)&&(l=parseInt(o)+"px");var d=E.style,p=void 0===d?{}:d;t.restoreSelection();var v={style:S$2(S$2({},p),{width:f,height:l})};Transforms.setNodes(t,v,{match:function(t){return Ic$2.checkNodeType(t,"video")}}),t.hidePanelOrModal();})),this.$content=w;}var O=this.$content;O.empty(),O.append(d),O.append(y),O.append(b);var E=this.getSelectedVideoNode(t);if(null==E)return O[0];var x=E.style,P=void 0===x?{}:x,j=P.width,T=void 0===j?"":j,M=P.height,A=void 0===M?"":M;return v.val(T),m.val(A),setTimeout((function(){v.focus();})),O[0]},t}();function kc(){return Mo$1("w-e-edit-video")}var Lc=function(){function t(){this.title=Wp$1("videoModule.edit"),this.iconSvg='<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>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=kc(),this.posterInputId=kc(),this.buttonId=kc();}return t.prototype.getSelectedVideoNode=function(t){return Ic$2.getSelectedNodeByType(t,"video")},t.prototype.getValue=function(t){return ""},t.prototype.isActive=function(t){return !1},t.prototype.exec=function(t,e){},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedVideoNode(t)},t.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},t.prototype.getModalContentElem=function(t){var i=this,a=this,c=a.srcInputId,s=a.posterInputId,l=a.buttonId,d=I$2(Bh$1(Wp$1("videoModule.videoSrc"),c,Wp$1("videoModule.videoSrcPlaceHolder")),2),p=d[0],v=d[1],h=I$2(Bh$1(Wp$1("videoModule.videoPoster"),s,Wp$1("videoModule.videoPosterPlaceHolder")),2),y=h[0],g=h[1],m=$$6(v),b=$$6(g),w=I$2($h$1(l,Wp$1("videoModule.ok")),1)[0];if(null==this.$content){var S=$$6("<div></div>");S.on("click","#"+l,(function(n){return O$2(i,void 0,void 0,(function(){var r,o,i,a;return E$2(this,(function(f){return n.preventDefault(),r=S.find("#"+c).val().trim(),o=S.find("#"+s).val().trim(),i=Mo$1("video-"),a={src:r,poster:o,key:i},t.restoreSelection(),Transforms.setNodes(t,a,{match:function(t){return Ic$2.checkNodeType(t,"video")}}),t.hidePanelOrModal(),[2]}))}))})),this.$content=S;}var x=this.$content;x.empty(),x.append(p),x.append(y),x.append(w);var P=this.getSelectedVideoNode(t);if(null==P)return x[0];var j=P.src,T=void 0===j?"":j,M=P.poster,A=void 0===M?"":M;return m.val(T),b.val(A),setTimeout((function(){m.focus();})),x[0]},t}();var Vc={renderElems:[Mn$2],elemsToHtml:[Nn$2],preParseHtml:[qn$2],parseElemsHtml:[Vo$1],menus:[{key:"insertVideo",factory:function(){return new Ku$1},config:{onInsertedVideo:function(t){},checkVideo:function(t,e){return !0},parseVideoSrc:function(t){return t}}},{key:"uploadVideo",factory:function(){return new Nc},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(t){return t},onProgress:function(t){},onSuccess:function(t,e){},onFailed:function(t,e){console.error("'"+t.name+"' upload failed",e);},onError:function(t,e,n){console.error("'"+t.name+" upload error",e,n);}}},{key:"editVideoSize",factory:function(){return new Cc}},{key:"editVideoSrc",factory:function(){return new Lc}}],editorPlugin:function(t){var n=t.isVoid,r=t.normalizeNode,o=t;return o.isVoid=function(t){return "video"===t.type||n(t)},o.normalizeNode=function(t){var n=I$2(t,2),i=n[0],a=n[1];"video"===Ic$2.getNodeType(i)&&(Ic$2.isLastNode(o,i)&&Transforms.insertNodes(o,Ic$2.genEmptyParagraph(),{at:[a[0]+1]}));return r([i,a])},o}};
|
|
17555
17555
|
|