@wangeditor-next/list-module 1.1.51 → 1.1.53
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.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i18nAddResources as r,DomEditor as t,t as n}from"@wangeditor-next/core";import{Text as e,Path as i,Editor as o,Transforms as u,Range as f}from"slate";import a,{append as c,attr as l,parent as s}from"dom7";import{jsx as v}from"snabbdom";r("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),r("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var p,d,y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={};function g(){if(d)return p;d=1;var r=function(r){return r&&r.Math===Math&&r};return p=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof y&&y)||r("object"==typeof p&&p)||function(){return this}()||Function("return this")()}var b,m,w,x,O,S,E,j,T={};function A(){return m?b:(m=1,b=function(r){try{return!!r()}catch(r){return!0}})}function I(){if(x)return w;x=1;var r=A();return w=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function P(){if(S)return O;S=1;var r=A();return O=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function k(){if(j)return E;j=1;var r=P(),t=Function.prototype.call;return E=r?t.bind(t):function(){return t.apply(t,arguments)},E}var R,L,N,z,M,_,C,F,D,B,H,$,G,V,W,U,K,Y,X,q,J,Q,Z,rr,tr,nr,er,ir,or,ur,fr,ar,cr,lr,sr,vr,pr,dr,yr,hr,gr,br={};function mr(){return N?L:(N=1,L=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function wr(){if(M)return z;M=1;var r=P(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return z=r?e:function(r){return function(){return n.apply(r,arguments)}},z}function xr(){if(C)return _;C=1;var r=wr(),t=r({}.toString),n=r("".slice);return _=function(r){return n(t(r),8,-1)}}function Or(){if(D)return F;D=1;var r=wr(),t=A(),n=xr(),e=Object,i=r("".split);return F=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?i(r,""):e(r)}:e}function Sr(){return H?B:(H=1,B=function(r){return null==r})}function Er(){if(G)return $;G=1;var r=Sr(),t=TypeError;return $=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function jr(){if(W)return V;W=1;var r=Or(),t=Er();return V=function(n){return r(t(n))}}function Tr(){if(K)return U;K=1;var r="object"==typeof document&&document.all;return U=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function Ar(){if(X)return Y;X=1;var r=Tr();return Y=function(t){return"object"==typeof t?null!==t:r(t)}}function Ir(){if(J)return q;J=1;var r=g(),t=Tr();return q=function(n,e){return arguments.length<2?(i=r[n],t(i)?i:void 0):r[n]&&r[n][e];var i},q}function Pr(){if(Z)return Q;Z=1;var r=wr();return Q=r({}.isPrototypeOf)}function kr(){if(er)return nr;er=1;var r,t,n=g(),e=function(){if(tr)return rr;tr=1;var r=g().navigator,t=r&&r.userAgent;return rr=t?String(t):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.version,f=u&&u.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),nr=t}function Rr(){if(or)return ir;or=1;var r=kr(),t=A(),n=g().String;return ir=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function Lr(){if(fr)return ur;fr=1;var r=Rr();return ur=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Nr(){if(cr)return ar;cr=1;var r=Ir(),t=Tr(),n=Pr(),e=Lr(),i=Object;return ar=e?function(r){return"symbol"==typeof r}:function(e){var o=r("Symbol");return t(o)&&n(o.prototype,i(e))}}function zr(){if(sr)return lr;sr=1;var r=String;return lr=function(t){try{return r(t)}catch(r){return"Object"}}}function Mr(){if(pr)return vr;pr=1;var r=Tr(),t=zr(),n=TypeError;return vr=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function _r(){if(yr)return dr;yr=1;var r=Mr(),t=Sr();return dr=function(n,e){var i=n[e];return t(i)?void 0:r(i)}}function Cr(){if(gr)return hr;gr=1;var r=k(),t=Tr(),n=Ar(),e=TypeError;return hr=function(i,o){var u,f;if("string"===o&&t(u=i.toString)&&!n(f=r(u,i)))return f;if(t(u=i.valueOf)&&!n(f=r(u,i)))return f;if("string"!==o&&t(u=i.toString)&&!n(f=r(u,i)))return f;throw new e("Can't convert object to primitive value")}}var Fr,Dr,Br,Hr,$r,Gr,Vr,Wr,Ur,Kr,Yr,Xr,qr,Jr,Qr,Zr,rt,tt,nt,et,it,ot,ut,ft,at={exports:{}};function ct(){return Dr?Fr:(Dr=1,Fr=!1)}function lt(){if(Hr)return Br;Hr=1;var r=g(),t=Object.defineProperty;return Br=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function st(){if($r)return at.exports;$r=1;var r=ct(),t=g(),n=lt(),e="__core-js_shared__",i=at.exports=t[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.45.1",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),at.exports}function vt(){if(Vr)return Gr;Vr=1;var r=st();return Gr=function(t,n){return r[t]||(r[t]=n||{})}}function pt(){if(Ur)return Wr;Ur=1;var r=Er(),t=Object;return Wr=function(n){return t(r(n))}}function dt(){if(Yr)return Kr;Yr=1;var r=wr(),t=pt(),n=r({}.hasOwnProperty);return Kr=Object.hasOwn||function(r,e){return n(t(r),e)}}function yt(){if(qr)return Xr;qr=1;var r=wr(),t=0,n=Math.random(),e=r(1.1.toString);return Xr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function ht(){if(Qr)return Jr;Qr=1;var r=g(),t=vt(),n=dt(),e=yt(),i=Rr(),o=Lr(),u=r.Symbol,f=t("wks"),a=o?u.for||u:u&&u.withoutSetter||e;return Jr=function(r){return n(f,r)||(f[r]=i&&n(u,r)?u[r]:a("Symbol."+r)),f[r]}}function gt(){if(rt)return Zr;rt=1;var r=k(),t=Ar(),n=Nr(),e=_r(),i=Cr(),o=ht(),u=TypeError,f=o("toPrimitive");return Zr=function(o,a){if(!t(o)||n(o))return o;var c,l=e(o,f);if(l){if(void 0===a&&(a="default"),c=r(l,o,a),!t(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function bt(){if(nt)return tt;nt=1;var r=gt(),t=Nr();return tt=function(n){var e=r(n,"string");return t(e)?e:e+""}}function mt(){if(it)return et;it=1;var r=g(),t=Ar(),n=r.document,e=t(n)&&t(n.createElement);return et=function(r){return e?n.createElement(r):{}}}function wt(){if(ut)return ot;ut=1;var r=I(),t=A(),n=mt();return ot=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function xt(){if(ft)return T;ft=1;var r=I(),t=k(),n=function(){if(R)return br;R=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return br.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,br}(),e=mr(),i=jr(),o=bt(),u=dt(),f=wt(),a=Object.getOwnPropertyDescriptor;return T.f=r?a:function(r,c){if(r=i(r),c=o(c),f)try{return a(r,c)}catch(r){}if(u(r,c))return e(!t(n.f,r,c),r[c])},T}var Ot,St,Et,jt,Tt,At,It,Pt={};function kt(){if(St)return Ot;St=1;var r=I(),t=A();return Ot=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Rt(){if(jt)return Et;jt=1;var r=Ar(),t=String,n=TypeError;return Et=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function Lt(){if(Tt)return Pt;Tt=1;var r=I(),t=wt(),n=kt(),e=Rt(),i=bt(),o=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",l="writable";return Pt.f=r?n?function(r,t,n){if(e(r),t=i(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var o=f(r,t);o&&o[l]&&(r[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=i(n),e(f),t)try{return u(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new o("Accessors not supported");return"value"in f&&(r[n]=f.value),r},Pt}function Nt(){if(It)return At;It=1;var r=I(),t=Lt(),n=mr();return At=r?function(r,e,i){return t.f(r,e,n(1,i))}:function(r,t,n){return r[t]=n,r}}var zt,Mt,_t,Ct,Ft,Dt,Bt,Ht,$t,Gt,Vt,Wt,Ut,Kt,Yt,Xt={exports:{}};function qt(){if(Mt)return zt;Mt=1;var r=I(),t=dt(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!r||r&&e(n,"name").configurable);return zt={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function Jt(){if(Ct)return _t;Ct=1;var r=wr(),t=Tr(),n=st(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),_t=n.inspectSource}function Qt(){if(Dt)return Ft;Dt=1;var r=g(),t=Tr(),n=r.WeakMap;return Ft=t(n)&&/native code/.test(String(n))}function Zt(){if(Ht)return Bt;Ht=1;var r=vt(),t=yt(),n=r("keys");return Bt=function(r){return n[r]||(n[r]=t(r))}}function rn(){return Gt?$t:(Gt=1,$t={})}function tn(){if(Wt)return Vt;Wt=1;var r,t,n,e=Qt(),i=g(),o=Ar(),u=Nt(),f=dt(),a=st(),c=Zt(),l=rn(),s="Object already initialized",v=i.TypeError,p=i.WeakMap;if(e||a.state){var d=a.state||(a.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,r=function(r,t){if(d.has(r))throw new v(s);return t.facade=r,d.set(r,t),t},t=function(r){return d.get(r)||{}},n=function(r){return d.has(r)}}else{var y=c("state");l[y]=!0,r=function(r,t){if(f(r,y))throw new v(s);return t.facade=r,u(r,y,t),t},t=function(r){return f(r,y)?r[y]:{}},n=function(r){return f(r,y)}}return Vt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!o(n)||(e=t(n)).type!==r)throw new v("Incompatible receiver, "+r+" required");return e}}}}function nn(){if(Ut)return Xt.exports;Ut=1;var r=wr(),t=A(),n=Tr(),e=dt(),i=I(),o=qt().CONFIGURABLE,u=Jt(),f=tn(),a=f.enforce,c=f.get,l=String,s=Object.defineProperty,v=r("".slice),p=r("".replace),d=r([].join),y=i&&!t(function(){return 8!==s(function(){},"length",{value:8}).length}),h=String(String).split("String"),g=Xt.exports=function(r,t,n){"Symbol("===v(l(t),0,7)&&(t="["+p(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||o&&r.name!==t)&&(i?s(r,"name",{value:t,configurable:!0}):r.name=t),y&&n&&e(n,"arity")&&r.length!==n.arity&&s(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&s(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=d(h,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&c(this).source||u(this)},"toString"),Xt.exports}function en(){if(Yt)return Kt;Yt=1;var r=Tr(),t=Lt(),n=nn(),e=lt();return Kt=function(i,o,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:o;if(r(u)&&n(u,c,f),f.global)a?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(a=!0):delete i[o]}catch(r){}a?i[o]=u:t.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var on,un,fn,an,cn,ln,sn,vn,pn,dn,yn,hn,gn,bn,mn,wn,xn,On={};function Sn(){if(an)return fn;an=1;var r=function(){if(un)return on;un=1;var r=Math.ceil,t=Math.floor;return on=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return fn=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function En(){if(ln)return cn;ln=1;var r=Sn(),t=Math.max,n=Math.min;return cn=function(e,i){var o=r(e);return o<0?t(o+i,0):n(o,i)}}function jn(){if(vn)return sn;vn=1;var r=Sn(),t=Math.min;return sn=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function Tn(){if(dn)return pn;dn=1;var r=jn();return pn=function(t){return r(t.length)}}function An(){if(hn)return yn;hn=1;var r=jr(),t=En(),n=Tn(),e=function(e){return function(i,o,u){var f=r(i),a=n(f);if(0===a)return!e&&-1;var c,l=t(u,a);if(e&&o!=o){for(;a>l;)if((c=f[l++])!=c)return!0}else for(;a>l;l++)if((e||l in f)&&f[l]===o)return e||l||0;return!e&&-1}};return yn={includes:e(!0),indexOf:e(!1)}}function In(){if(bn)return gn;bn=1;var r=wr(),t=dt(),n=jr(),e=An().indexOf,i=rn(),o=r([].push);return gn=function(r,u){var f,a=n(r),c=0,l=[];for(f in a)!t(i,f)&&t(a,f)&&o(l,f);for(;u.length>c;)t(a,f=u[c++])&&(~e(l,f)||o(l,f));return l}}function Pn(){return wn?mn:(wn=1,mn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function kn(){if(xn)return On;xn=1;var r=In(),t=Pn().concat("length","prototype");return On.f=Object.getOwnPropertyNames||function(n){return r(n,t)},On}var Rn,Ln,Nn,zn,Mn,_n,Cn,Fn,Dn,Bn,Hn,$n,Gn,Vn,Wn,Un,Kn,Yn,Xn,qn,Jn,Qn,Zn,re,te,ne,ee,ie,oe={};function ue(){if(Nn)return Ln;Nn=1;var r=Ir(),t=wr(),n=kn(),e=(Rn||(Rn=1,oe.f=Object.getOwnPropertySymbols),oe),i=Rt(),o=t([].concat);return Ln=r("Reflect","ownKeys")||function(r){var t=n.f(i(r)),u=e.f;return u?o(t,u(r)):t}}function fe(){if(Mn)return zn;Mn=1;var r=dt(),t=ue(),n=xt(),e=Lt();return zn=function(i,o,u){for(var f=t(o),a=e.f,c=n.f,l=0;l<f.length;l++){var s=f[l];r(i,s)||u&&r(u,s)||a(i,s,c(o,s))}}}function ae(){if(Cn)return _n;Cn=1;var r=A(),t=Tr(),n=/#|\.prototype\./,e=function(n,e){var a=o[i(n)];return a===f||a!==u&&(t(e)?r(e):!!e)},i=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return _n=e}function ce(){if(Dn)return Fn;Dn=1;var r=g(),t=xt().f,n=Nt(),e=en(),i=lt(),o=fe(),u=ae();return Fn=function(f,a){var c,l,s,v,p,d=f.target,y=f.global,h=f.stat;if(c=y?r:h?r[d]||i(d,{}):r[d]&&r[d].prototype)for(l in a){if(v=a[l],s=f.dontCallGetSet?(p=t(c,l))&&p.value:c[l],!u(y?l:d+(h?".":"#")+l,f.forced)&&void 0!==s){if(typeof v==typeof s)continue;o(v,s)}(f.sham||s&&s.sham)&&n(v,"sham",!0),e(c,l,v,f)}}}function le(){if(Hn)return Bn;Hn=1;var r=xr();return Bn=Array.isArray||function(t){return"Array"===r(t)}}function se(){if(Gn)return $n;Gn=1;var r=TypeError;return $n=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}}function ve(){if(Wn)return Vn;Wn=1;var r=I(),t=Lt(),n=mr();return Vn=function(e,i,o){r?t.f(e,i,n(0,o)):e[i]=o}}function pe(){if(Kn)return Un;Kn=1;var r={};return r[ht()("toStringTag")]="z",Un="[object z]"===String(r)}function de(){if(Xn)return Yn;Xn=1;var r=pe(),t=Tr(),n=xr(),e=ht()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Yn=r?n:function(r){var u,f,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(u=i(r),e))?f:o?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function ye(){if(Jn)return qn;Jn=1;var r=wr(),t=A(),n=Tr(),e=de(),i=Ir(),o=Jt(),u=function(){},f=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,c=r(a.exec),l=!a.test(u),s=function(r){if(!n(r))return!1;try{return f(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(a,o(r))}catch(r){return!0}};return v.sham=!0,qn=!f||t(function(){var r;return s(s.call)||!s(Object)||!s(function(){r=!0})||r})?v:s}function he(){if(Zn)return Qn;Zn=1;var r=le(),t=ye(),n=Ar(),e=ht()("species"),i=Array;return Qn=function(o){var u;return r(o)&&(u=o.constructor,(t(u)&&(u===i||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}function ge(){if(te)return re;te=1;var r=he();return re=function(t,n){return new(r(t))(0===n?0:n)}}function be(){if(ee)return ne;ee=1;var r=A(),t=ht(),n=kr(),e=t("species");return ne=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(ie)return h;ie=1;var r=ce(),t=A(),n=le(),e=Ar(),i=pt(),o=Tn(),u=se(),f=ve(),a=ge(),c=be(),l=ht(),s=kr(),v=l("isConcatSpreadable"),p=s>=51||!t(function(){var r=[];return r[v]=!1,r.concat()[0]!==r}),d=function(r){if(!e(r))return!1;var t=r[v];return void 0!==t?!!t:n(r)};r({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(r){var t,n,e,c,l,s=i(this),v=a(s,0),p=0;for(t=-1,e=arguments.length;t<e;t++)if(d(l=-1===t?s:arguments[t]))for(c=o(l),u(p+c),n=0;n<c;n++,p++)n in l&&f(v,p,l[n]);else u(p+1),f(v,p++,l);return v.length=p,v}})}();var me=function(r,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},me(r,t)};function we(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=r}me(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function xe(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oe(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,i,o=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(r){i={error:r}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function Se(r,t,n){if(n||2===arguments.length)for(var e,i=0,o=t.length;i<o;i++)!e&&i in t||(e||(e=Array.prototype.slice.call(t,0,i)),e[i]=t[i]);return r.concat(e||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Ee,je,Te,Ae,Ie,Pe,ke,Re,Le,Ne,ze,Me,_e,Ce,Fe,De,Be,He,$e,Ge,Ve,We,Ue,Ke,Ye,Xe,qe,Je,Qe,Ze,ri,ti,ni,ei,ii,oi={};function ui(){if(je)return Ee;je=1;var r=In(),t=Pn();return Ee=Object.keys||function(n){return r(n,t)}}function fi(){if(Ie)return Ae;Ie=1;var r=Ir();return Ae=r("document","documentElement")}function ai(){if(ke)return Pe;ke=1;var r,t=Rt(),n=function(){if(Te)return oi;Te=1;var r=I(),t=kt(),n=Lt(),e=Rt(),i=jr(),o=ui();return oi.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,f=i(t),a=o(t),c=a.length,l=0;c>l;)n.f(r,u=a[l++],f[u]);return r},oi}(),e=Pn(),i=rn(),o=fi(),u=mt(),f=Zt(),a="prototype",c="script",l=f("IE_PROTO"),s=function(){},v=function(r){return"<"+c+">"+r+"</"+c+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},d=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,i;d="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),i="java"+c+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var f=e.length;f--;)delete d[a][e[f]];return d()};return i[l]=!0,Pe=Object.create||function(r,e){var i;return null!==r?(s[a]=t(r),i=new s,s[a]=null,i[l]=r):i=d(),void 0===e?i:n.f(i,e)}}function ci(){if(Le)return Re;Le=1;var r=ht(),t=ai(),n=Lt().f,e=r("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:t(null)}),Re=function(r){i[e][r]=!0}}function li(){return ze?Ne:(ze=1,Ne={})}function si(){if(Fe)return Ce;Fe=1;var r=dt(),t=Tr(),n=pt(),e=Zt(),i=function(){if(_e)return Me;_e=1;var r=A();return Me=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),o=e("IE_PROTO"),u=Object,f=u.prototype;return Ce=i?u.getPrototypeOf:function(e){var i=n(e);if(r(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof u?f:null}}function vi(){if(Be)return De;Be=1;var r,t,n,e=A(),i=Tr(),o=Ar(),u=ai(),f=si(),a=en(),c=ht(),l=ct(),s=c("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!o(r)||e(function(){var t={};return r[s].call(t)!==t})?r={}:l&&(r=u(r)),i(r[s])||a(r,s,function(){return this}),De={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function pi(){if($e)return He;$e=1;var r=Lt().f,t=dt(),n=ht()("toStringTag");return He=function(e,i,o){e&&!o&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:i})}}function di(){if(Ye)return Ke;Ye=1;var r=Ar();return Ke=function(t){return r(t)||null===t}}function yi(){if(qe)return Xe;qe=1;var r=di(),t=String,n=TypeError;return Xe=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function hi(){if(Qe)return Je;Qe=1;var r=function(){if(Ue)return We;Ue=1;var r=wr(),t=Mr();return We=function(n,e,i){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[i]))}catch(r){}}}(),t=Ar(),n=Er(),e=yi();return Je=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=r(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(o?i(r,u):r.__proto__=u,r):r}}():void 0)}function gi(){if(ri)return Ze;ri=1;var r=ce(),t=k(),n=ct(),e=qt(),i=Tr(),o=function(){if(Ve)return Ge;Ve=1;var r=vi().IteratorPrototype,t=ai(),n=mr(),e=pi(),i=li(),o=function(){return this};return Ge=function(u,f,a,c){var l=f+" Iterator";return u.prototype=t(r,{next:n(+!c,a)}),e(u,l,!1,!0),i[l]=o,u}}(),u=si(),f=hi(),a=pi(),c=Nt(),l=en(),s=ht(),v=li(),p=vi(),d=e.PROPER,y=e.CONFIGURABLE,h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=s("iterator"),m="keys",w="values",x="entries",O=function(){return this};return Ze=function(e,s,p,S,E,j,T){o(p,s,S);var A,I,P,k=function(r){if(r===E&&M)return M;if(!g&&r&&r in N)return N[r];switch(r){case m:case w:case x:return function(){return new p(this,r)}}return function(){return new p(this)}},R=s+" Iterator",L=!1,N=e.prototype,z=N[b]||N["@@iterator"]||E&&N[E],M=!g&&z||k(E),_="Array"===s&&N.entries||z;if(_&&(A=u(_.call(new e)))!==Object.prototype&&A.next&&(n||u(A)===h||(f?f(A,h):i(A[b])||l(A,b,O)),a(A,R,!0,!0),n&&(v[R]=O)),d&&E===w&&z&&z.name!==w&&(!n&&y?c(N,"name",w):(L=!0,M=function(){return t(z,this)})),E)if(I={values:k(w),keys:j?M:k(m),entries:k(x)},T)for(P in I)(g||L||!(P in N))&&l(N,P,I[P]);else r({target:s,proto:!0,forced:g||L},I);return n&&!T||N[b]===M||l(N,b,M,{name:E}),v[s]=M,I}}function bi(){return ni?ti:(ni=1,ti=function(r,t){return{value:r,done:t}})}function mi(){if(ii)return ei;ii=1;var r=jr(),t=ci(),n=li(),e=tn(),i=Lt().f,o=gi(),u=bi(),f=ct(),a=I(),c="Array Iterator",l=e.set,s=e.getterFor(c);ei=o(Array,"Array",function(t,n){l(this,{type:c,target:r(t),index:0,kind:n})},function(){var r=s(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&a&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(r){}return ei}mi();var wi,xi,Oi,Si={};!function(){if(Oi)return Si;Oi=1;var r=pe(),t=en(),n=function(){if(xi)return wi;xi=1;var r=pe(),t=de();return wi=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var Ei,ji,Ti,Ai,Ii,Pi={};function ki(){if(ji)return Ei;ji=1;var r=de(),t=String;return Ei=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Ri(){if(Ai)return Ti;Ai=1;var r=wr(),t=Sn(),n=ki(),e=Er(),i=r("".charAt),o=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,a){var c,l,s=n(e(f)),v=t(a),p=s.length;return v<0||v>=p?r?"":void 0:(c=o(s,v))<55296||c>56319||v+1===p||(l=o(s,v+1))<56320||l>57343?r?i(s,v):c:r?u(s,v,v+2):l-56320+(c-55296<<10)+65536}};return Ti={codeAt:f(!1),charAt:f(!0)}}!function(){if(Ii)return Pi;Ii=1;var r=Ri().charAt,t=ki(),n=tn(),e=gi(),i=bi(),o="String Iterator",u=n.set,f=n.getterFor(o);e(String,"String",function(r){u(this,{type:o,string:t(r),index:0})},function(){var t,n=f(this),e=n.string,o=n.index;return o>=e.length?i(void 0,!0):(t=r(e,o),n.index+=t.length,i(t,!1))})}();var Li,Ni,zi,Mi,_i={};function Ci(){if(Ni)return Li;Ni=1;var r=A();return Li=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Fi(){if(Mi)return zi;Mi=1;var r=en();return zi=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}}var Di,Bi,Hi,$i,Gi,Vi,Wi,Ui,Ki,Yi,Xi,qi,Ji,Qi,Zi,ro,to,no,eo,io,oo,uo,fo,ao,co,lo,so,vo,po,yo,ho,go,bo,mo,wo,xo,Oo={exports:{}},So={};function Eo(){if(Bi)return Di;Bi=1;var r=wr();return Di=r([].slice)}function jo(){if(Hi)return So;Hi=1;var r=xr(),t=jr(),n=kn().f,e=Eo(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return So.f=function(o){return i&&"Window"===r(o)?function(r){try{return n(r)}catch(r){return e(i)}}(o):n(t(o))},So}function To(){if(Wi)return Vi;Wi=1;var r=A(),t=Ar(),n=xr(),e=function(){if(Gi)return $i;Gi=1;var r=A();return $i=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),i=Object.isExtensible,o=r(function(){});return Vi=o||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!i||i(r)))}:i}function Ao(){if(Ui)return Oo.exports;Ui=1;var r=ce(),t=wr(),n=rn(),e=Ar(),i=dt(),o=Lt().f,u=kn(),f=jo(),a=To(),c=yt(),l=Ci(),s=!1,v=c("meta"),p=0,d=function(r){o(r,v,{value:{objectID:"O"+p++,weakData:{}}})},y=Oo.exports={enable:function(){y.enable=function(){},s=!0;var n=u.f,e=t([].splice),i={};i[v]=1,n(i).length&&(u.f=function(r){for(var t=n(r),i=0,o=t.length;i<o;i++)if(t[i]===v){e(t,i,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!i(r,v)){if(!a(r))return"F";if(!t)return"E";d(r)}return r[v].objectID},getWeakData:function(r,t){if(!i(r,v)){if(!a(r))return!0;if(!t)return!1;d(r)}return r[v].weakData},onFreeze:function(r){return l&&s&&a(r)&&!i(r,v)&&d(r),r}};return n[v]=!0,Oo.exports}function Io(){if(qi)return Xi;qi=1;var r=function(){if(Yi)return Ki;Yi=1;var r=xr(),t=wr();return Ki=function(n){if("Function"===r(n))return t(n)}}(),t=Mr(),n=P(),e=r(r.bind);return Xi=function(r,i){return t(r),void 0===i?r:n?e(r,i):function(){return r.apply(i,arguments)}},Xi}function Po(){if(Qi)return Ji;Qi=1;var r=ht(),t=li(),n=r("iterator"),e=Array.prototype;return Ji=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function ko(){if(ro)return Zi;ro=1;var r=de(),t=_r(),n=Sr(),e=li(),i=ht()("iterator");return Zi=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||e[r(o)]}}function Ro(){if(no)return to;no=1;var r=k(),t=Mr(),n=Rt(),e=zr(),i=ko(),o=TypeError;return to=function(u,f){var a=arguments.length<2?i(u):f;if(t(a))return n(r(a,u));throw new o(e(u)+" is not iterable")},to}function Lo(){if(io)return eo;io=1;var r=k(),t=Rt(),n=_r();return eo=function(e,i,o){var u,f;t(e);try{if(!(u=n(e,"return"))){if("throw"===i)throw o;return o}u=r(u,e)}catch(r){f=!0,u=r}if("throw"===i)throw o;if(f)throw u;return t(u),o}}function No(){if(uo)return oo;uo=1;var r=Io(),t=k(),n=Rt(),e=zr(),i=Po(),o=Tn(),u=Pr(),f=Ro(),a=ko(),c=Lo(),l=TypeError,s=function(r,t){this.stopped=r,this.result=t},v=s.prototype;return oo=function(p,d,y){var h,g,b,m,w,x,O,S=y&&y.that,E=!(!y||!y.AS_ENTRIES),j=!(!y||!y.IS_RECORD),T=!(!y||!y.IS_ITERATOR),A=!(!y||!y.INTERRUPTED),I=r(d,S),P=function(r){return h&&c(h,"normal"),new s(!0,r)},k=function(r){return E?(n(r),A?I(r[0],r[1],P):I(r[0],r[1])):A?I(r,P):I(r)};if(j)h=p.iterator;else if(T)h=p;else{if(!(g=a(p)))throw new l(e(p)+" is not iterable");if(i(g)){for(b=0,m=o(p);m>b;b++)if((w=k(p[b]))&&u(v,w))return w;return new s(!1)}h=f(p,g)}for(x=j?p.next:h.next;!(O=t(x,h)).done;){try{w=k(O.value)}catch(r){c(h,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new s(!1)}}function zo(){if(ao)return fo;ao=1;var r=Pr(),t=TypeError;return fo=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function Mo(){if(lo)return co;lo=1;var r=ht()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return co=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var i=!1;try{var o={};o[r]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(r){}return i}}function _o(){if(vo)return so;vo=1;var r=Tr(),t=Ar(),n=hi();return so=function(e,i,o){var u,f;return n&&r(u=i.constructor)&&u!==o&&t(f=u.prototype)&&f!==o.prototype&&n(e,f),e}}function Co(){if(yo)return po;yo=1;var r=ce(),t=g(),n=wr(),e=ae(),i=en(),o=Ao(),u=No(),f=zo(),a=Tr(),c=Sr(),l=Ar(),s=A(),v=Mo(),p=pi(),d=_o();return po=function(y,h,g){var b=-1!==y.indexOf("Map"),m=-1!==y.indexOf("Weak"),w=b?"set":"add",x=t[y],O=x&&x.prototype,S=x,E={},j=function(r){var t=n(O[r]);i(O,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return m&&!l(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(y,!a(x)||!(m||O.forEach&&!s(function(){(new x).entries().next()}))))S=g.getConstructor(h,y,b,w),o.enable();else if(e(y,!0)){var T=new S,A=T[w](m?{}:-0,1)!==T,I=s(function(){T.has(1)}),P=v(function(r){new x(r)}),k=!m&&s(function(){for(var r=new x,t=5;t--;)r[w](t,t);return!r.has(-0)});P||((S=h(function(r,t){f(r,O);var n=d(new x,r,S);return c(t)||u(t,n[w],{that:n,AS_ENTRIES:b}),n})).prototype=O,O.constructor=S),(I||k)&&(j("delete"),j("has"),b&&j("get")),(k||A)&&j(w),m&&O.clear&&delete O.clear}return E[y]=S,r({global:!0,constructor:!0,forced:S!==x},E),p(S,y),m||g.setStrong(S,y,b),S}}function Fo(){if(go)return ho;go=1;var r=Io(),t=wr(),n=Or(),e=pt(),i=Tn(),o=ge(),u=t([].push),f=function(t){var f=1===t,a=2===t,c=3===t,l=4===t,s=6===t,v=7===t,p=5===t||s;return function(d,y,h,g){for(var b,m,w=e(d),x=n(w),O=i(x),S=r(y,h),E=0,j=g||o,T=f?j(d,O):a||v?j(d,0):void 0;O>E;E++)if((p||E in x)&&(m=S(b=x[E],E,w),t))if(f)T[E]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:u(T,b)}else switch(t){case 4:return!1;case 7:u(T,b)}return s?-1:c||l?l:T}};return ho={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}}function Do(){if(mo)return bo;mo=1;var r=wr(),t=Fi(),n=Ao().getWeakData,e=zo(),i=Rt(),o=Sr(),u=Ar(),f=No(),a=Fo(),c=dt(),l=tn(),s=l.set,v=l.getterFor,p=a.find,d=a.findIndex,y=r([].splice),h=0,g=function(r){return r.frozen||(r.frozen=new b)},b=function(){this.entries=[]},m=function(r,t){return p(r.entries,function(r){return r[0]===t})};return b.prototype={get:function(r){var t=m(this,r);if(t)return t[1]},has:function(r){return!!m(this,r)},set:function(r,t){var n=m(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=d(this.entries,function(t){return t[0]===r});return~t&&y(this.entries,t,1),!!~t}},bo={getConstructor:function(r,a,l,p){var d=r(function(r,t){e(r,y),s(r,{type:a,id:h++,frozen:null}),o(t)||f(t,r[p],{that:r,AS_ENTRIES:l})}),y=d.prototype,b=v(a),m=function(r,t,e){var o=b(r),u=n(i(t),!0);return!0===u?g(o).set(t,e):u[o.id]=e,r};return t(y,{delete:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&c(e,t.id)&&delete e[t.id]},has:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&c(e,t.id)}}),t(y,l?{get:function(r){var t=b(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return m(this,r,t)}}:{add:function(r){return m(this,r,!0)}}),d}}}xo||(xo=1,function(){if(wo)return _i;wo=1;var r,t=Ci(),n=g(),e=wr(),i=Fi(),o=Ao(),u=Co(),f=Do(),a=Ar(),c=tn().enforce,l=A(),s=Qt(),v=Object,p=Array.isArray,d=v.isExtensible,y=v.isFrozen,h=v.isSealed,b=v.freeze,m=v.seal,w=!n.ActiveXObject&&"ActiveXObject"in n,x=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},O=u("WeakMap",x,f),S=O.prototype,E=e(S.set);if(s)if(w){r=f.getConstructor(x,"WeakMap",!0),o.enable();var j=e(S.delete),T=e(S.has),I=e(S.get);i(S,{delete:function(t){if(a(t)&&!d(t)){var n=c(this);return n.frozen||(n.frozen=new r),j(this,t)||n.frozen.delete(t)}return j(this,t)},has:function(t){if(a(t)&&!d(t)){var n=c(this);return n.frozen||(n.frozen=new r),T(this,t)||n.frozen.has(t)}return T(this,t)},get:function(t){if(a(t)&&!d(t)){var n=c(this);return n.frozen||(n.frozen=new r),T(this,t)?I(this,t):n.frozen.get(t)}return I(this,t)},set:function(t,n){if(a(t)&&!d(t)){var e=c(this);e.frozen||(e.frozen=new r),T(this,t)?E(this,t,n):e.frozen.set(t,n)}else E(this,t,n);return this}})}else t&&l(function(){var r=b([]);return E(new O,r,1),!y(r)})&&i(S,{set:function(r,t){var n;return p(r)&&(y(r)?n=b:h(r)&&(n=m)),E(this,r,t),n&&n(r),this}})}());var Bo,Ho,$o,Go,Vo,Wo={};!function(){if(Vo)return Wo;Vo=1;var r=g(),t=Ho?Bo:(Ho=1,Bo={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}),n=function(){if(Go)return $o;Go=1;var r=mt()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return $o=t===Object.prototype?void 0:t}(),e=mi(),i=Nt(),o=pi(),u=ht()("iterator"),f=e.values,a=function(r,n){if(r){if(r[u]!==f)try{i(r,u,f)}catch(t){r[u]=f}if(o(r,n,!0),t[n])for(var a in e)if(r[a]!==e[a])try{i(r,a,e[a])}catch(t){r[a]=e[a]}}};for(var c in t)a(r[c]&&r[c].prototype,c);a(n,"DOMTokenList")}();var Uo=new WeakMap;function Ko(r){var t,n=r.children||[],i=n.length;if(0===i)return"";for(var o=0;o<i&&!t;o+=1){var u=n[o];e.isText(u)&&(t=u)}return null==t?"":t.color||""}function Yo(r,n,e){for(var u=n.type,f=function(r,t){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(n[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(r);i<e.length;i++)t.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i])&&(n[e[i]]=r[e[i]])}return n}(n,["type"]),a=void 0!==e?e:f.level||0,c=t.findPath(r,n),l=c;;){if(0===l.length||0===c[c.length-1])return null;l=i.previous(l);var s=o.node(r,l);if(!s)return null;var v=Oe(s,1)[0],p=v.level,d=void 0===p?0:p;if(t.getNodeType(v)!==u)return null;if(d===a)return v}}function Xo(r,t,n){var e=Yo(r,t,n);return!!e&&e.ordered===t.ordered}var qo=[];var Jo,Qo={type:"list-item",elemToHtml:function(r,n){var e="",u="",f=r.ordered,a=void 0!==f&&f?"ol":"ul",c=function(r){var n=Uo.get(r);if(null==n)return 0;var e=r,u=e.type,f=e.ordered,a=void 0!==f&&f,c=e.level,l=void 0===c?0:c,s=t.findPath(n,r);if(0===s[0])return l+1;var v=i.previous(s),p=o.node(n,v);if(!p)return 0;var d=Oe(p,1)[0];if(t.getNodeType(d)!==u)return l+1;var y=d,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?l-m:m>l?Xo(n,r)?0:1:m===l?g===a?0:1:0}(r);if(c>0)for(var l=0;l<c;l+=1)e+="<".concat(a,">"),qo.push(a);var s=function(r){var n=Uo.get(r);if(null==n)return 0;var e=r,u=e.type,f=e.ordered,a=void 0!==f&&f,c=e.level,l=void 0===c?0:c,s=t.findPath(n,r);if(s[0]===n.children.length-1)return l+1;var v=i.next(s),p=o.node(n,v);if(!p)return 0;var d=Oe(p,1)[0];if(t.getNodeType(d)!==u)return l+1;var y=d,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?Xo(n,d)?l-m:l-m+1:m>l?0:m===l?g===a?0:1:0}(r);if(s>0)for(l=0;l<s;l+=1){var v=qo.pop();u+="</".concat(v,">")}var p=Ko(r),d=p?' style="color:'.concat(p,'"'):"";return{html:"<li".concat(d,">").concat(n,"</li>"),prefix:e,suffix:u}}},Zo={};!function(){if(Jo)return Zo;Jo=1;var r=ce(),t=An().includes,n=A(),e=ci();r({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),e("includes")}();var ru,tu,nu,eu,iu,ou,uu,fu,au,cu,lu,su={};function vu(){if(tu)return ru;tu=1;var r=Rt();return ru=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function pu(){if(cu)return au;cu=1;var r,t,n=k(),e=wr(),i=ki(),o=vu(),u=function(){if(eu)return nu;eu=1;var r=A(),t=g().RegExp,n=r(function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")}),e=n||r(function(){return!t("a","y").sticky}),i=n||r(function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")});return nu={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),f=vt(),a=ai(),c=tn().get,l=function(){if(ou)return iu;ou=1;var r=A(),t=g().RegExp;return iu=r(function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})}(),s=function(){if(fu)return uu;fu=1;var r=A(),t=g().RegExp;return uu=r(function(){var r=t("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})}(),v=f("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,y=e("".charAt),h=e("".indexOf),b=e("".replace),m=e("".slice),w=(t=/b*/g,n(p,r=/a/,"a"),n(p,t,"a"),0!==r.lastIndex||0!==t.lastIndex),x=u.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];return(w||O||x||l||s)&&(d=function(r){var t,e,u,f,l,s,g,S=this,E=c(S),j=i(r),T=E.raw;if(T)return T.lastIndex=S.lastIndex,t=n(d,T,j),S.lastIndex=T.lastIndex,t;var A=E.groups,I=x&&S.sticky,P=n(o,S),k=S.source,R=0,L=j;if(I&&(P=b(P,"y",""),-1===h(P,"g")&&(P+="g"),L=m(j,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==y(j,S.lastIndex-1))&&(k="(?: "+k+")",L=" "+L,R++),e=new RegExp("^(?:"+k+")",P)),O&&(e=new RegExp("^"+k+"$(?!\\s)",P)),w&&(u=S.lastIndex),f=n(p,I?e:S,L),I?f?(f.input=m(f.input,R),f[0]=m(f[0],R),f.index=S.lastIndex,S.lastIndex+=f[0].length):S.lastIndex=0:w&&f&&(S.lastIndex=S.global?f.index+f[0].length:u),O&&f&&f.length>1&&n(v,f[0],e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(f[l]=void 0)}),f&&A)for(f.groups=s=a(null),l=0;l<A.length;l++)s[(g=A[l])[0]]=f[g[1]];return f}),au=d}function du(){if(lu)return su;lu=1;var r=ce(),t=pu();return r({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),su}du();var yu,hu=function(){function r(){this.type="list-item",this.tag="button"}return r.prototype.getListNode=function(r){var n=this.type;return t.getSelectedNodeByType(r,n)},r.prototype.getValue=function(r){return""},r.prototype.isActive=function(r){var t=this.getListNode(r);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},r.prototype.isDisabled=function(r){return null==r.selection||!!t.getSelectedElems(r).some(function(t){if(o.isVoid(r,t)&&o.isBlock(r,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})},r.prototype.exec=function(r,t){this.isActive(r)?u.setNodes(r,{type:"paragraph",ordered:void 0,level:void 0}):u.setNodes(r,{type:"list-item",ordered:this.ordered,indent:void 0})},r}(),gu=function(r){function t(){var t=r.apply(this,Se([],Oe(arguments),!1))||this;return t.ordered=!1,t.title=n("listModule.unOrderedList"),t.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>',t}return we(t,r),t}(hu),bu=function(r){function t(){var t=r.apply(this,Se([],Oe(arguments),!1))||this;return t.ordered=!0,t.title=n("listModule.orderedList"),t.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>',t}return we(t,r),t}(hu),mu={key:"bulletedList",factory:function(){return new gu}},wu={key:"numberedList",factory:function(){return new bu}},xu={};!function(){if(yu)return xu;yu=1;var r=ce(),t=Fo().filter;r({target:"Array",proto:!0,forced:!be()("filter")},{filter:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var Ou,Su,Eu,ju={};!function(){if(Eu)return ju;Eu=1;var r=ce(),t=function(){if(Su)return Ou;Su=1;var r=le(),t=Tn(),n=se(),e=Io(),i=function(o,u,f,a,c,l,s,v){for(var p,d,y=c,h=0,g=!!s&&e(s,v);h<a;)h in f&&(p=g?g(f[h],h,u):f[h],l>0&&r(p)?(d=t(p),y=i(o,u,p,d,y,l-1)-1):(n(y+1),o[y]=p),y++),h++;return y};return Ou=i}(),n=pt(),e=Tn(),i=Sn(),o=ge();r({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,u=n(this),f=e(u),a=o(u,0);return a.length=t(a,u,u,f,0,void 0===r?1:i(r)),a}})}();var Tu;Tu||(Tu=1,ci()("flat"));var Au,Iu,Pu,ku,Ru,Lu,Nu,zu,Mu,_u,Cu,Fu,Du,Bu,Hu,$u={};function Gu(){if(Lu)return Ru;Lu=1;var r=Ri().charAt;return Ru=function(t,n,e){return n+(e?r(t,n).length:1)}}function Vu(){if(zu)return Nu;zu=1;var r=wr(),t=pt(),n=Math.floor,e=r("".charAt),i=r("".replace),o=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return Nu=function(r,a,c,l,s,v){var p=c+r.length,d=l.length,y=f;return void 0!==s&&(s=t(s),y=u),i(v,y,function(t,i){var u;switch(e(i,0)){case"$":return"$";case"&":return r;case"`":return o(a,0,c);case"'":return o(a,p);case"<":u=s[o(i,1,-1)];break;default:var f=+i;if(0===f)return t;if(f>d){var v=n(f/10);return 0===v?t:v<=d?void 0===l[v-1]?e(i,1):l[v-1]+e(i,1):t}u=l[f-1]}return void 0===u?"":u})}}function Wu(){if(Fu)return Cu;Fu=1;var r=k(),t=dt(),n=Pr(),e=function(){if(_u)return Mu;_u=1;var r=g(),t=A(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",i=r?"dgimsy":"gimsy",o=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in r&&(u.hasIndices="d"),u)o(f,u[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||e!==i});return Mu={correct:e}}(),i=vu(),o=RegExp.prototype;return Cu=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(o,u)||t(u,"flags")?u.flags:r(i,u)}}!function(){if(Hu)return $u;Hu=1;var r=function(){if(Iu)return Au;Iu=1;var r=P(),t=Function.prototype,n=t.apply,e=t.call;return Au="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),Au}(),t=k(),n=wr(),e=function(){if(ku)return Pu;ku=1,du();var r=k(),t=en(),n=pu(),e=A(),i=ht(),o=Nt(),u=i("species"),f=RegExp.prototype;return Pu=function(a,c,l,s){var v=i(a),p=!e(function(){var r={};return r[v]=function(){return 7},7!==""[a](r)}),d=p&&!e(function(){var r=!1,t=/a/;return"split"===a&&((t={}).constructor={},t.constructor[u]=function(){return t},t.flags="",t[v]=/./[v]),t.exec=function(){return r=!0,null},t[v](""),!r});if(!p||!d||l){var y=/./[v],h=c(v,""[a],function(t,e,i,o,u){var a=e.exec;return a===n||a===f.exec?p&&!u?{done:!0,value:r(y,e,i,o)}:{done:!0,value:r(t,i,e,o)}:{done:!1}});t(String.prototype,a,h[0]),t(f,v,h[1])}s&&o(f[v],"sham",!0)}}(),i=A(),o=Rt(),u=Tr(),f=Ar(),a=Sn(),c=jn(),l=ki(),s=Er(),v=Gu(),p=_r(),d=Vu(),y=Wu(),h=function(){if(Bu)return Du;Bu=1;var r=k(),t=Rt(),n=Tr(),e=xr(),i=pu(),o=TypeError;return Du=function(u,f){var a=u.exec;if(n(a)){var c=r(a,u,f);return null!==c&&t(c),c}if("RegExp"===e(u))return r(i,u,f);throw new o("RegExp#exec called on incompatible receiver")}}(),g=ht()("replace"),b=Math.max,m=Math.min,w=n([].concat),x=n([].push),O=n("".indexOf),S=n("".slice),E=function(r){return void 0===r?r:String(r)},j="$0"==="a".replace(/./,"$0"),T=!!/./[g]&&""===/./[g]("a","$0");e("replace",function(n,e,i){var j=T?"$":"$0";return[function(r,n){var i=s(this),o=f(r)?p(r,g):void 0;return o?t(o,r,i,n):t(e,l(i),r,n)},function(t,n){var f=o(this),s=l(t);if("string"==typeof n&&-1===O(n,j)&&-1===O(n,"$<")){var p=i(e,f,s,n);if(p.done)return p.value}var g=u(n);g||(n=l(n));var T,A=l(y(f)),I=-1!==O(A,"g");I&&(T=-1!==O(A,"u"),f.lastIndex=0);for(var P,k=[];null!==(P=h(f,s))&&(x(k,P),I);){""===l(P[0])&&(f.lastIndex=v(s,c(f.lastIndex),T))}for(var R="",L=0,N=0;N<k.length;N++){for(var z,M=l((P=k[N])[0]),_=b(m(a(P.index),s.length),0),C=[],F=1;F<P.length;F++)x(C,E(P[F]));var D=P.groups;if(g){var B=w([M],C,_,s);void 0!==D&&x(B,D),z=l(r(n,void 0,B))}else z=d(M,s,_,C,D,n);_>=L&&(R+=S(s,L,_)+z,L=_+M.length)}return R+S(s,L)}]},!!i(function(){var r=/./;return r.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(r,"$<a>")})||!j||T)}();var Uu,Ku,Yu={};function Xu(r){return r.length?r[0].tagName.toLowerCase():""}function qu(r){return o.nodes(r,{at:r.selection||void 0,match:function(n){return 1===t.findPath(r,n).length}})}Ku||(Ku=1,function(){if(Uu)return Yu;Uu=1;var r=ce(),t=g();r({global:!0,forced:t.globalThis!==t},{globalThis:t})}()),c&&(a.fn.append=c),l&&(a.fn.attr=l),s&&(a.fn.parent=s);var Ju={renderElems:[{type:"list-item",renderElem:function(r,n,e){Uo.set(r,e);var u=r,f=u.level,a=void 0===f?0:f,c=u.ordered,l=void 0!==c&&c,s={margin:"5px 0 5px ".concat(20*a,"px"),display:"flex",alignItems:"flex-start"},p="";if(l){var d=function(r,n){var e=n,u=e.type,f=e.level,a=void 0===f?0:f,c=e.ordered,l=void 0!==c&&c,s=1,v=n,p=t.findPath(r,v);if(0===p[0])return 1;for(;p[0]>0;){var d=i.previous(p),y=o.node(r,d);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<a)break;if(b===a){if(w!==l)break;s+=1}v=h,p=d}return s}(e,r);p="".concat(d,".")}else p=function(r){void 0===r&&(r=0);var t="";switch(r){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(a);var y=Ko(r);return v("div",{style:s},v("span",{contentEditable:!1,style:{marginRight:"0.5em",color:y},"data-w-e-reserve":!0},p),v("span",{style:{flex:"1",wordBreak:"break-word"}},n))}}],editorPlugin:function(r){var n=r.deleteBackward,e=r.handleTab,i=r.normalizeNode,a=r.insertBreak,c=r;return c.insertBreak=function(){var n=Oe(o.nodes(r,{match:function(r){return t.checkNodeType(r,"list-item")},universal:!0}),1)[0];return n?""!==n[0].children[0].text?a():void u.setNodes(c,{type:"paragraph",ordered:void 0,level:void 0}):a()},c.deleteBackward=function(e){var i=c.selection;if(null!=i)if(f.isExpanded(i))n(e);else{var o=t.getSelectedNodeByType(c,"list-item");if(null!=o)if(0!==i.focus.offset)n(e);else{var a=o,l=a.level,s=void 0===l?0:l,v=a.ordered,p=void 0!==v&&v;if(s>0){var d=Yo(r,o,s-1);d&&d.ordered!==p?u.setNodes(c,{level:s-1,ordered:!p}):u.setNodes(c,{level:s-1})}else u.setNodes(c,{type:"paragraph",ordered:void 0,level:void 0})}else n(e)}else n(e)},c.handleTab=function(){var r,n,i,o,a=c.selection;if(null!=a){if(f.isCollapsed(a)){var l=t.getSelectedNodeByType(c,"list-item");if(null==l)return void e();if(0===a.focus.offset){var s=l.level,v=void 0===s?0:s;return void u.setNodes(c,{level:v+1})}}if(f.isExpanded(a)){var p=0,d=!1;try{for(var y=xe(qu(c)),h=y.next();!h.done;h=y.next()){var g=Oe(h.value,1)[0];"list-item"===t.getNodeType(g)?p+=1:d=!0}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}if(d||p<=1)return void e();try{for(var b=xe(qu(c)),m=b.next();!m.done;m=b.next()){var w=Oe(m.value,2),x=(g=w[0],w[1]),O=g.level;v=void 0===O?0:O;u.setNodes(c,{level:v+1},{at:x})}}catch(r){i={error:r}}finally{try{m&&!m.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}}else e()}else e()},c.normalizeNode=function(r){var n=Oe(r,2),e=n[0],o=n[1],f=t.getNodeType(e);return"bulleted-list"!==f&&"numbered-list"!==f||u.unwrapNodes(c,{at:o}),i([e,o])},c},menus:[mu,wu],elemsToHtml:[Qo],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(r,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(r,t,n){var i=a(r);0===(t=t.filter(function(r){return!!e.isText(r)||!!n.isInline(r)})).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]);var o=function(r){return"ol"===Xu(r.parent())}(i),u=function(r){for(var t=0,n=r.parent(),e=Xu(n);"ul"===e||"ol"===e;)e=Xu(n=n.parent()),t+=1;return t-1}(i);return{type:"list-item",ordered:o,level:u,children:t}}}]};export{Ju as default};
|
|
1
|
+
import{i18nAddResources as r,DomEditor as t,t as n}from"@wangeditor-next/core";import{Text as e,Path as i,Editor as o,Transforms as u,Range as f}from"slate";import a,{append as c,attr as l,parent as s}from"dom7";import{jsx as v}from"snabbdom";r("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),r("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var p,d,y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={};function g(){if(d)return p;d=1;var r=function(r){return r&&r.Math===Math&&r};return p=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof y&&y)||r("object"==typeof p&&p)||function(){return this}()||Function("return this")()}var b,m,w,O,x,S,E,j,T={};function A(){return m?b:(m=1,b=function(r){try{return!!r()}catch(r){return!0}})}function P(){if(O)return w;O=1;var r=A();return w=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function I(){if(S)return x;S=1;var r=A();return x=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function k(){if(j)return E;j=1;var r=I(),t=Function.prototype.call;return E=r?t.bind(t):function(){return t.apply(t,arguments)},E}var R,L,N,z,M,_,C,F,D,B,H,$,G,V,W,U,K,Y,X,q,J,Q,Z,rr,tr,nr,er,ir,or,ur,fr,ar,cr,lr,sr,vr,pr,dr,yr,hr,gr,br={};function mr(){return N?L:(N=1,L=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function wr(){if(M)return z;M=1;var r=I(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return z=r?e:function(r){return function(){return n.apply(r,arguments)}},z}function Or(){if(C)return _;C=1;var r=wr(),t=r({}.toString),n=r("".slice);return _=function(r){return n(t(r),8,-1)}}function xr(){if(D)return F;D=1;var r=wr(),t=A(),n=Or(),e=Object,i=r("".split);return F=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?i(r,""):e(r)}:e}function Sr(){return H?B:(H=1,B=function(r){return null==r})}function Er(){if(G)return $;G=1;var r=Sr(),t=TypeError;return $=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function jr(){if(W)return V;W=1;var r=xr(),t=Er();return V=function(n){return r(t(n))}}function Tr(){if(K)return U;K=1;var r="object"==typeof document&&document.all;return U=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function Ar(){if(X)return Y;X=1;var r=Tr();return Y=function(t){return"object"==typeof t?null!==t:r(t)}}function Pr(){if(J)return q;J=1;var r=g(),t=Tr();return q=function(n,e){return arguments.length<2?(i=r[n],t(i)?i:void 0):r[n]&&r[n][e];var i},q}function Ir(){if(Z)return Q;Z=1;var r=wr();return Q=r({}.isPrototypeOf)}function kr(){if(er)return nr;er=1;var r,t,n=g(),e=function(){if(tr)return rr;tr=1;var r=g().navigator,t=r&&r.userAgent;return rr=t?String(t):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.version,f=u&&u.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),nr=t}function Rr(){if(or)return ir;or=1;var r=kr(),t=A(),n=g().String;return ir=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function Lr(){if(fr)return ur;fr=1;var r=Rr();return ur=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Nr(){if(cr)return ar;cr=1;var r=Pr(),t=Tr(),n=Ir(),e=Lr(),i=Object;return ar=e?function(r){return"symbol"==typeof r}:function(e){var o=r("Symbol");return t(o)&&n(o.prototype,i(e))}}function zr(){if(sr)return lr;sr=1;var r=String;return lr=function(t){try{return r(t)}catch(r){return"Object"}}}function Mr(){if(pr)return vr;pr=1;var r=Tr(),t=zr(),n=TypeError;return vr=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function _r(){if(yr)return dr;yr=1;var r=Mr(),t=Sr();return dr=function(n,e){var i=n[e];return t(i)?void 0:r(i)}}function Cr(){if(gr)return hr;gr=1;var r=k(),t=Tr(),n=Ar(),e=TypeError;return hr=function(i,o){var u,f;if("string"===o&&t(u=i.toString)&&!n(f=r(u,i)))return f;if(t(u=i.valueOf)&&!n(f=r(u,i)))return f;if("string"!==o&&t(u=i.toString)&&!n(f=r(u,i)))return f;throw new e("Can't convert object to primitive value")}}var Fr,Dr,Br,Hr,$r,Gr,Vr,Wr,Ur,Kr,Yr,Xr,qr,Jr,Qr,Zr,rt,tt,nt,et,it,ot,ut,ft,at={exports:{}};function ct(){return Dr?Fr:(Dr=1,Fr=!1)}function lt(){if(Hr)return Br;Hr=1;var r=g(),t=Object.defineProperty;return Br=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function st(){if($r)return at.exports;$r=1;var r=ct(),t=g(),n=lt(),e="__core-js_shared__",i=at.exports=t[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),at.exports}function vt(){if(Vr)return Gr;Vr=1;var r=st();return Gr=function(t,n){return r[t]||(r[t]=n||{})}}function pt(){if(Ur)return Wr;Ur=1;var r=Er(),t=Object;return Wr=function(n){return t(r(n))}}function dt(){if(Yr)return Kr;Yr=1;var r=wr(),t=pt(),n=r({}.hasOwnProperty);return Kr=Object.hasOwn||function(r,e){return n(t(r),e)}}function yt(){if(qr)return Xr;qr=1;var r=wr(),t=0,n=Math.random(),e=r(1.1.toString);return Xr=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function ht(){if(Qr)return Jr;Qr=1;var r=g(),t=vt(),n=dt(),e=yt(),i=Rr(),o=Lr(),u=r.Symbol,f=t("wks"),a=o?u.for||u:u&&u.withoutSetter||e;return Jr=function(r){return n(f,r)||(f[r]=i&&n(u,r)?u[r]:a("Symbol."+r)),f[r]}}function gt(){if(rt)return Zr;rt=1;var r=k(),t=Ar(),n=Nr(),e=_r(),i=Cr(),o=ht(),u=TypeError,f=o("toPrimitive");return Zr=function(o,a){if(!t(o)||n(o))return o;var c,l=e(o,f);if(l){if(void 0===a&&(a="default"),c=r(l,o,a),!t(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function bt(){if(nt)return tt;nt=1;var r=gt(),t=Nr();return tt=function(n){var e=r(n,"string");return t(e)?e:e+""}}function mt(){if(it)return et;it=1;var r=g(),t=Ar(),n=r.document,e=t(n)&&t(n.createElement);return et=function(r){return e?n.createElement(r):{}}}function wt(){if(ut)return ot;ut=1;var r=P(),t=A(),n=mt();return ot=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ot(){if(ft)return T;ft=1;var r=P(),t=k(),n=function(){if(R)return br;R=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return br.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,br}(),e=mr(),i=jr(),o=bt(),u=dt(),f=wt(),a=Object.getOwnPropertyDescriptor;return T.f=r?a:function(r,c){if(r=i(r),c=o(c),f)try{return a(r,c)}catch(r){}if(u(r,c))return e(!t(n.f,r,c),r[c])},T}var xt,St,Et,jt,Tt,At,Pt,It={};function kt(){if(St)return xt;St=1;var r=P(),t=A();return xt=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Rt(){if(jt)return Et;jt=1;var r=Ar(),t=String,n=TypeError;return Et=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function Lt(){if(Tt)return It;Tt=1;var r=P(),t=wt(),n=kt(),e=Rt(),i=bt(),o=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",l="writable";return It.f=r?n?function(r,t,n){if(e(r),t=i(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&l in n&&!n[l]){var o=f(r,t);o&&o[l]&&(r[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=i(n),e(f),t)try{return u(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new o("Accessors not supported");return"value"in f&&(r[n]=f.value),r},It}function Nt(){if(Pt)return At;Pt=1;var r=P(),t=Lt(),n=mr();return At=r?function(r,e,i){return t.f(r,e,n(1,i))}:function(r,t,n){return r[t]=n,r}}var zt,Mt,_t,Ct,Ft,Dt,Bt,Ht,$t,Gt,Vt,Wt,Ut,Kt,Yt,Xt={exports:{}};function qt(){if(Mt)return zt;Mt=1;var r=P(),t=dt(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!r||r&&e(n,"name").configurable);return zt={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function Jt(){if(Ct)return _t;Ct=1;var r=wr(),t=Tr(),n=st(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),_t=n.inspectSource}function Qt(){if(Dt)return Ft;Dt=1;var r=g(),t=Tr(),n=r.WeakMap;return Ft=t(n)&&/native code/.test(String(n))}function Zt(){if(Ht)return Bt;Ht=1;var r=vt(),t=yt(),n=r("keys");return Bt=function(r){return n[r]||(n[r]=t(r))}}function rn(){return Gt?$t:(Gt=1,$t={})}function tn(){if(Wt)return Vt;Wt=1;var r,t,n,e=Qt(),i=g(),o=Ar(),u=Nt(),f=dt(),a=st(),c=Zt(),l=rn(),s="Object already initialized",v=i.TypeError,p=i.WeakMap;if(e||a.state){var d=a.state||(a.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,r=function(r,t){if(d.has(r))throw new v(s);return t.facade=r,d.set(r,t),t},t=function(r){return d.get(r)||{}},n=function(r){return d.has(r)}}else{var y=c("state");l[y]=!0,r=function(r,t){if(f(r,y))throw new v(s);return t.facade=r,u(r,y,t),t},t=function(r){return f(r,y)?r[y]:{}},n=function(r){return f(r,y)}}return Vt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!o(n)||(e=t(n)).type!==r)throw new v("Incompatible receiver, "+r+" required");return e}}}}function nn(){if(Ut)return Xt.exports;Ut=1;var r=wr(),t=A(),n=Tr(),e=dt(),i=P(),o=qt().CONFIGURABLE,u=Jt(),f=tn(),a=f.enforce,c=f.get,l=String,s=Object.defineProperty,v=r("".slice),p=r("".replace),d=r([].join),y=i&&!t(function(){return 8!==s(function(){},"length",{value:8}).length}),h=String(String).split("String"),g=Xt.exports=function(r,t,n){"Symbol("===v(l(t),0,7)&&(t="["+p(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||o&&r.name!==t)&&(i?s(r,"name",{value:t,configurable:!0}):r.name=t),y&&n&&e(n,"arity")&&r.length!==n.arity&&s(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&s(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=d(h,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&c(this).source||u(this)},"toString"),Xt.exports}function en(){if(Yt)return Kt;Yt=1;var r=Tr(),t=Lt(),n=nn(),e=lt();return Kt=function(i,o,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:o;if(r(u)&&n(u,c,f),f.global)a?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(a=!0):delete i[o]}catch(r){}a?i[o]=u:t.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var on,un,fn,an,cn,ln,sn,vn,pn,dn,yn,hn,gn,bn,mn,wn,On,xn={};function Sn(){if(an)return fn;an=1;var r=function(){if(un)return on;un=1;var r=Math.ceil,t=Math.floor;return on=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return fn=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function En(){if(ln)return cn;ln=1;var r=Sn(),t=Math.max,n=Math.min;return cn=function(e,i){var o=r(e);return o<0?t(o+i,0):n(o,i)}}function jn(){if(vn)return sn;vn=1;var r=Sn(),t=Math.min;return sn=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function Tn(){if(dn)return pn;dn=1;var r=jn();return pn=function(t){return r(t.length)}}function An(){if(hn)return yn;hn=1;var r=jr(),t=En(),n=Tn(),e=function(e){return function(i,o,u){var f=r(i),a=n(f);if(0===a)return!e&&-1;var c,l=t(u,a);if(e&&o!=o){for(;a>l;)if((c=f[l++])!=c)return!0}else for(;a>l;l++)if((e||l in f)&&f[l]===o)return e||l||0;return!e&&-1}};return yn={includes:e(!0),indexOf:e(!1)}}function Pn(){if(bn)return gn;bn=1;var r=wr(),t=dt(),n=jr(),e=An().indexOf,i=rn(),o=r([].push);return gn=function(r,u){var f,a=n(r),c=0,l=[];for(f in a)!t(i,f)&&t(a,f)&&o(l,f);for(;u.length>c;)t(a,f=u[c++])&&(~e(l,f)||o(l,f));return l}}function In(){return wn?mn:(wn=1,mn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function kn(){if(On)return xn;On=1;var r=Pn(),t=In().concat("length","prototype");return xn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},xn}var Rn,Ln,Nn,zn,Mn,_n,Cn,Fn,Dn,Bn,Hn,$n,Gn,Vn,Wn,Un,Kn,Yn,Xn,qn,Jn,Qn,Zn,re,te,ne,ee,ie,oe,ue,fe={};function ae(){if(Nn)return Ln;Nn=1;var r=Pr(),t=wr(),n=kn(),e=(Rn||(Rn=1,fe.f=Object.getOwnPropertySymbols),fe),i=Rt(),o=t([].concat);return Ln=r("Reflect","ownKeys")||function(r){var t=n.f(i(r)),u=e.f;return u?o(t,u(r)):t}}function ce(){if(Mn)return zn;Mn=1;var r=dt(),t=ae(),n=Ot(),e=Lt();return zn=function(i,o,u){for(var f=t(o),a=e.f,c=n.f,l=0;l<f.length;l++){var s=f[l];r(i,s)||u&&r(u,s)||a(i,s,c(o,s))}}}function le(){if(Cn)return _n;Cn=1;var r=A(),t=Tr(),n=/#|\.prototype\./,e=function(n,e){var a=o[i(n)];return a===f||a!==u&&(t(e)?r(e):!!e)},i=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return _n=e}function se(){if(Dn)return Fn;Dn=1;var r=g(),t=Ot().f,n=Nt(),e=en(),i=lt(),o=ce(),u=le();return Fn=function(f,a){var c,l,s,v,p,d=f.target,y=f.global,h=f.stat;if(c=y?r:h?r[d]||i(d,{}):r[d]&&r[d].prototype)for(l in a){if(v=a[l],s=f.dontCallGetSet?(p=t(c,l))&&p.value:c[l],!u(y?l:d+(h?".":"#")+l,f.forced)&&void 0!==s){if(typeof v==typeof s)continue;o(v,s)}(f.sham||s&&s.sham)&&n(v,"sham",!0),e(c,l,v,f)}}}function ve(){if(Hn)return Bn;Hn=1;var r=Or();return Bn=Array.isArray||function(t){return"Array"===r(t)}}function pe(){if(Gn)return $n;Gn=1;var r=TypeError;return $n=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}}function de(){if(Wn)return Vn;Wn=1;var r=P(),t=Lt(),n=mr();return Vn=function(e,i,o){r?t.f(e,i,n(0,o)):e[i]=o}}function ye(){if(Xn)return Yn;Xn=1;var r={};return r[ht()("toStringTag")]="z",Yn="[object z]"===String(r)}function he(){if(Jn)return qn;Jn=1;var r=ye(),t=Tr(),n=Or(),e=ht()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return qn=r?n:function(r){var u,f,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(u=i(r),e))?f:o?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function ge(){if(Zn)return Qn;Zn=1;var r=wr(),t=A(),n=Tr(),e=he(),i=Pr(),o=Jt(),u=function(){},f=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,c=r(a.exec),l=!a.test(u),s=function(r){if(!n(r))return!1;try{return f(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(a,o(r))}catch(r){return!0}};return v.sham=!0,Qn=!f||t(function(){var r;return s(s.call)||!s(Object)||!s(function(){r=!0})||r})?v:s}function be(){if(te)return re;te=1;var r=ve(),t=ge(),n=Ar(),e=ht()("species"),i=Array;return re=function(o){var u;return r(o)&&(u=o.constructor,(t(u)&&(u===i||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}function me(){if(ee)return ne;ee=1;var r=be();return ne=function(t,n){return new(r(t))(0===n?0:n)}}function we(){if(oe)return ie;oe=1;var r=A(),t=ht(),n=kr(),e=t("species");return ie=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(ue)return h;ue=1;var r=se(),t=A(),n=ve(),e=Ar(),i=pt(),o=Tn(),u=pe(),f=de(),a=function(){if(Kn)return Un;Kn=1;var r=P(),t=ve(),n=TypeError,e=Object.getOwnPropertyDescriptor,i=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}();return Un=i?function(r,i){if(t(r)&&!e(r,"length").writable)throw new n("Cannot set read only .length");return r.length=i}:function(r,t){return r.length=t}}(),c=me(),l=we(),s=ht(),v=kr(),p=s("isConcatSpreadable"),d=v>=51||!t(function(){var r=[];return r[p]=!1,r.concat()[0]!==r}),y=function(r){if(!e(r))return!1;var t=r[p];return void 0!==t?!!t:n(r)};r({target:"Array",proto:!0,arity:1,forced:!d||!l("concat")},{concat:function(r){var t,n,e,l,s,v=i(this),p=c(v,0),d=0;for(t=-1,e=arguments.length;t<e;t++)if(y(s=-1===t?v:arguments[t]))for(l=o(s),u(d+l),n=0;n<l;n++,d++)n in s&&f(p,d,s[n]);else u(d+1),f(p,d++,s);return a(p,d),p}})}();var Oe=function(r,t){return Oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},Oe(r,t)};function xe(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=r}Oe(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Se(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ee(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,i,o=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(r){i={error:r}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function je(r,t,n){if(n||2===arguments.length)for(var e,i=0,o=t.length;i<o;i++)!e&&i in t||(e||(e=Array.prototype.slice.call(t,0,i)),e[i]=t[i]);return r.concat(e||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Te,Ae,Pe,Ie,ke,Re,Le,Ne,ze,Me,_e,Ce,Fe,De,Be,He,$e,Ge,Ve,We,Ue,Ke,Ye,Xe,qe,Je,Qe,Ze,ri,ti,ni,ei,ii,oi,ui,fi={};function ai(){if(Ae)return Te;Ae=1;var r=Pn(),t=In();return Te=Object.keys||function(n){return r(n,t)}}function ci(){if(ke)return Ie;ke=1;var r=Pr();return Ie=r("document","documentElement")}function li(){if(Le)return Re;Le=1;var r,t=Rt(),n=function(){if(Pe)return fi;Pe=1;var r=P(),t=kt(),n=Lt(),e=Rt(),i=jr(),o=ai();return fi.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,f=i(t),a=o(t),c=a.length,l=0;c>l;)n.f(r,u=a[l++],f[u]);return r},fi}(),e=In(),i=rn(),o=ci(),u=mt(),f=Zt(),a="prototype",c="script",l=f("IE_PROTO"),s=function(){},v=function(r){return"<"+c+">"+r+"</"+c+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},d=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,i;d="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),i="java"+c+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var f=e.length;f--;)delete d[a][e[f]];return d()};return i[l]=!0,Re=Object.create||function(r,e){var i;return null!==r?(s[a]=t(r),i=new s,s[a]=null,i[l]=r):i=d(),void 0===e?i:n.f(i,e)}}function si(){if(ze)return Ne;ze=1;var r=ht(),t=li(),n=Lt().f,e=r("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:t(null)}),Ne=function(r){i[e][r]=!0}}function vi(){return _e?Me:(_e=1,Me={})}function pi(){if(Be)return De;Be=1;var r=dt(),t=Tr(),n=pt(),e=Zt(),i=function(){if(Fe)return Ce;Fe=1;var r=A();return Ce=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),o=e("IE_PROTO"),u=Object,f=u.prototype;return De=i?u.getPrototypeOf:function(e){var i=n(e);if(r(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof u?f:null}}function di(){if($e)return He;$e=1;var r,t,n,e=A(),i=Tr(),o=Ar(),u=li(),f=pi(),a=en(),c=ht(),l=ct(),s=c("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!o(r)||e(function(){var t={};return r[s].call(t)!==t})?r={}:l&&(r=u(r)),i(r[s])||a(r,s,function(){return this}),He={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function yi(){if(Ve)return Ge;Ve=1;var r=Lt().f,t=dt(),n=ht()("toStringTag");return Ge=function(e,i,o){e&&!o&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:i})}}function hi(){if(qe)return Xe;qe=1;var r=Ar();return Xe=function(t){return r(t)||null===t}}function gi(){if(Qe)return Je;Qe=1;var r=hi(),t=String,n=TypeError;return Je=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function bi(){if(ri)return Ze;ri=1;var r=function(){if(Ye)return Ke;Ye=1;var r=wr(),t=Mr();return Ke=function(n,e,i){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[i]))}catch(r){}}}(),t=Ar(),n=Er(),e=gi();return Ze=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=r(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(o?i(r,u):r.__proto__=u,r):r}}():void 0)}function mi(){if(ni)return ti;ni=1;var r=se(),t=k(),n=ct(),e=qt(),i=Tr(),o=function(){if(Ue)return We;Ue=1;var r=di().IteratorPrototype,t=li(),n=mr(),e=yi(),i=vi(),o=function(){return this};return We=function(u,f,a,c){var l=f+" Iterator";return u.prototype=t(r,{next:n(+!c,a)}),e(u,l,!1,!0),i[l]=o,u}}(),u=pi(),f=bi(),a=yi(),c=Nt(),l=en(),s=ht(),v=vi(),p=di(),d=e.PROPER,y=e.CONFIGURABLE,h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=s("iterator"),m="keys",w="values",O="entries",x=function(){return this};return ti=function(e,s,p,S,E,j,T){o(p,s,S);var A,P,I,k=function(r){if(r===E&&M)return M;if(!g&&r&&r in N)return N[r];switch(r){case m:case w:case O:return function(){return new p(this,r)}}return function(){return new p(this)}},R=s+" Iterator",L=!1,N=e.prototype,z=N[b]||N["@@iterator"]||E&&N[E],M=!g&&z||k(E),_="Array"===s&&N.entries||z;if(_&&(A=u(_.call(new e)))!==Object.prototype&&A.next&&(n||u(A)===h||(f?f(A,h):i(A[b])||l(A,b,x)),a(A,R,!0,!0),n&&(v[R]=x)),d&&E===w&&z&&z.name!==w&&(!n&&y?c(N,"name",w):(L=!0,M=function(){return t(z,this)})),E)if(P={values:k(w),keys:j?M:k(m),entries:k(O)},T)for(I in P)(g||L||!(I in N))&&l(N,I,P[I]);else r({target:s,proto:!0,forced:g||L},P);return n&&!T||N[b]===M||l(N,b,M,{name:E}),v[s]=M,P}}function wi(){return ii?ei:(ii=1,ei=function(r,t){return{value:r,done:t}})}function Oi(){if(ui)return oi;ui=1;var r=jr(),t=si(),n=vi(),e=tn(),i=Lt().f,o=mi(),u=wi(),f=ct(),a=P(),c="Array Iterator",l=e.set,s=e.getterFor(c);oi=o(Array,"Array",function(t,n){l(this,{type:c,target:r(t),index:0,kind:n})},function(){var r=s(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&a&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(r){}return oi}Oi();var xi,Si,Ei,ji={};!function(){if(Ei)return ji;Ei=1;var r=ye(),t=en(),n=function(){if(Si)return xi;Si=1;var r=ye(),t=he();return xi=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var Ti,Ai,Pi,Ii,ki,Ri={};function Li(){if(Ai)return Ti;Ai=1;var r=he(),t=String;return Ti=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Ni(){if(Ii)return Pi;Ii=1;var r=wr(),t=Sn(),n=Li(),e=Er(),i=r("".charAt),o=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,a){var c,l,s=n(e(f)),v=t(a),p=s.length;return v<0||v>=p?r?"":void 0:(c=o(s,v))<55296||c>56319||v+1===p||(l=o(s,v+1))<56320||l>57343?r?i(s,v):c:r?u(s,v,v+2):l-56320+(c-55296<<10)+65536}};return Pi={codeAt:f(!1),charAt:f(!0)}}!function(){if(ki)return Ri;ki=1;var r=Ni().charAt,t=Li(),n=tn(),e=mi(),i=wi(),o="String Iterator",u=n.set,f=n.getterFor(o);e(String,"String",function(r){u(this,{type:o,string:t(r),index:0})},function(){var t,n=f(this),e=n.string,o=n.index;return o>=e.length?i(void 0,!0):(t=r(e,o),n.index+=t.length,i(t,!1))})}();var zi,Mi,_i,Ci,Fi={};function Di(){if(Mi)return zi;Mi=1;var r=A();return zi=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Bi(){if(Ci)return _i;Ci=1;var r=en();return _i=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}}var Hi,$i,Gi,Vi,Wi,Ui,Ki,Yi,Xi,qi,Ji,Qi,Zi,ro,to,no,eo,io,oo,uo,fo,ao,co,lo,so,vo,po,yo,ho,go,bo,mo,wo,Oo,xo,So,Eo={exports:{}},jo={};function To(){if($i)return Hi;$i=1;var r=wr();return Hi=r([].slice)}function Ao(){if(Gi)return jo;Gi=1;var r=Or(),t=jr(),n=kn().f,e=To(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return jo.f=function(o){return i&&"Window"===r(o)?function(r){try{return n(r)}catch(r){return e(i)}}(o):n(t(o))},jo}function Po(){if(Ki)return Ui;Ki=1;var r=A(),t=Ar(),n=Or(),e=function(){if(Wi)return Vi;Wi=1;var r=A();return Vi=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),i=Object.isExtensible,o=r(function(){});return Ui=o||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!i||i(r)))}:i}function Io(){if(Yi)return Eo.exports;Yi=1;var r=se(),t=wr(),n=rn(),e=Ar(),i=dt(),o=Lt().f,u=kn(),f=Ao(),a=Po(),c=yt(),l=Di(),s=!1,v=c("meta"),p=0,d=function(r){o(r,v,{value:{objectID:"O"+p++,weakData:{}}})},y=Eo.exports={enable:function(){y.enable=function(){},s=!0;var n=u.f,e=t([].splice),i={};i[v]=1,n(i).length&&(u.f=function(r){for(var t=n(r),i=0,o=t.length;i<o;i++)if(t[i]===v){e(t,i,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!i(r,v)){if(!a(r))return"F";if(!t)return"E";d(r)}return r[v].objectID},getWeakData:function(r,t){if(!i(r,v)){if(!a(r))return!0;if(!t)return!1;d(r)}return r[v].weakData},onFreeze:function(r){return l&&s&&a(r)&&!i(r,v)&&d(r),r}};return n[v]=!0,Eo.exports}function ko(){if(Qi)return Ji;Qi=1;var r=function(){if(qi)return Xi;qi=1;var r=Or(),t=wr();return Xi=function(n){if("Function"===r(n))return t(n)}}(),t=Mr(),n=I(),e=r(r.bind);return Ji=function(r,i){return t(r),void 0===i?r:n?e(r,i):function(){return r.apply(i,arguments)}},Ji}function Ro(){if(ro)return Zi;ro=1;var r=ht(),t=vi(),n=r("iterator"),e=Array.prototype;return Zi=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Lo(){if(no)return to;no=1;var r=he(),t=_r(),n=Sr(),e=vi(),i=ht()("iterator");return to=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||e[r(o)]}}function No(){if(io)return eo;io=1;var r=k(),t=Mr(),n=Rt(),e=zr(),i=Lo(),o=TypeError;return eo=function(u,f){var a=arguments.length<2?i(u):f;if(t(a))return n(r(a,u));throw new o(e(u)+" is not iterable")},eo}function zo(){if(uo)return oo;uo=1;var r=k(),t=Rt(),n=_r();return oo=function(e,i,o){var u,f;t(e);try{if(!(u=n(e,"return"))){if("throw"===i)throw o;return o}u=r(u,e)}catch(r){f=!0,u=r}if("throw"===i)throw o;if(f)throw u;return t(u),o}}function Mo(){if(ao)return fo;ao=1;var r=ko(),t=k(),n=Rt(),e=zr(),i=Ro(),o=Tn(),u=Ir(),f=No(),a=Lo(),c=zo(),l=TypeError,s=function(r,t){this.stopped=r,this.result=t},v=s.prototype;return fo=function(p,d,y){var h,g,b,m,w,O,x,S=y&&y.that,E=!(!y||!y.AS_ENTRIES),j=!(!y||!y.IS_RECORD),T=!(!y||!y.IS_ITERATOR),A=!(!y||!y.INTERRUPTED),P=r(d,S),I=function(r){return h&&c(h,"normal"),new s(!0,r)},k=function(r){return E?(n(r),A?P(r[0],r[1],I):P(r[0],r[1])):A?P(r,I):P(r)};if(j)h=p.iterator;else if(T)h=p;else{if(!(g=a(p)))throw new l(e(p)+" is not iterable");if(i(g)){for(b=0,m=o(p);m>b;b++)if((w=k(p[b]))&&u(v,w))return w;return new s(!1)}h=f(p,g)}for(O=j?p.next:h.next;!(x=t(O,h)).done;){try{w=k(x.value)}catch(r){c(h,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new s(!1)}}function _o(){if(lo)return co;lo=1;var r=Ir(),t=TypeError;return co=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function Co(){if(vo)return so;vo=1;var r=ht()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return so=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var i=!1;try{var o={};o[r]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(r){}return i}}function Fo(){if(yo)return po;yo=1;var r=Tr(),t=Ar(),n=bi();return po=function(e,i,o){var u,f;return n&&r(u=i.constructor)&&u!==o&&t(f=u.prototype)&&f!==o.prototype&&n(e,f),e}}function Do(){if(go)return ho;go=1;var r=se(),t=g(),n=wr(),e=le(),i=en(),o=Io(),u=Mo(),f=_o(),a=Tr(),c=Sr(),l=Ar(),s=A(),v=Co(),p=yi(),d=Fo();return ho=function(y,h,g){var b=-1!==y.indexOf("Map"),m=-1!==y.indexOf("Weak"),w=b?"set":"add",O=t[y],x=O&&O.prototype,S=O,E={},j=function(r){var t=n(x[r]);i(x,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return m&&!l(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(y,!a(O)||!(m||x.forEach&&!s(function(){(new O).entries().next()}))))S=g.getConstructor(h,y,b,w),o.enable();else if(e(y,!0)){var T=new S,A=T[w](m?{}:-0,1)!==T,P=s(function(){T.has(1)}),I=v(function(r){new O(r)}),k=!m&&s(function(){for(var r=new O,t=5;t--;)r[w](t,t);return!r.has(-0)});I||((S=h(function(r,t){f(r,x);var n=d(new O,r,S);return c(t)||u(t,n[w],{that:n,AS_ENTRIES:b}),n})).prototype=x,x.constructor=S),(P||k)&&(j("delete"),j("has"),b&&j("get")),(k||A)&&j(w),m&&x.clear&&delete x.clear}return E[y]=S,r({global:!0,constructor:!0,forced:S!==O},E),p(S,y),m||g.setStrong(S,y,b),S}}function Bo(){if(mo)return bo;mo=1;var r=ko(),t=xr(),n=pt(),e=Tn(),i=me(),o=de(),u=function(u){var f=1===u,a=2===u,c=3===u,l=4===u,s=6===u,v=7===u,p=5===u||s;return function(d,y,h){for(var g,b,m=n(d),w=t(m),O=e(w),x=r(y,h),S=0,E=0,j=f?i(d,O):a||v?i(d,0):void 0;O>S;S++)if((p||S in w)&&(b=x(g=w[S],S,m),u))if(f)o(j,S,b);else if(b)switch(u){case 3:return!0;case 5:return g;case 6:return S;case 2:o(j,E++,g)}else switch(u){case 4:return!1;case 7:o(j,E++,g)}return s?-1:c||l?l:j}};return bo={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function Ho(){if(Oo)return wo;Oo=1;var r=wr(),t=Bi(),n=Io().getWeakData,e=_o(),i=Rt(),o=Sr(),u=Ar(),f=Mo(),a=Bo(),c=dt(),l=tn(),s=l.set,v=l.getterFor,p=a.find,d=a.findIndex,y=r([].splice),h=0,g=function(r){return r.frozen||(r.frozen=new b)},b=function(){this.entries=[]},m=function(r,t){return p(r.entries,function(r){return r[0]===t})};return b.prototype={get:function(r){var t=m(this,r);if(t)return t[1]},has:function(r){return!!m(this,r)},set:function(r,t){var n=m(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=d(this.entries,function(t){return t[0]===r});return~t&&y(this.entries,t,1),!!~t}},wo={getConstructor:function(r,a,l,p){var d=r(function(r,t){e(r,y),s(r,{type:a,id:h++,frozen:null}),o(t)||f(t,r[p],{that:r,AS_ENTRIES:l})}),y=d.prototype,b=v(a),m=function(r,t,e){var o=b(r),u=n(i(t),!0);return!0===u?g(o).set(t,e):u[o.id]=e,r};return t(y,{delete:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&c(e,t.id)&&delete e[t.id]},has:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&c(e,t.id)}}),t(y,l?{get:function(r){var t=b(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return m(this,r,t)}}:{add:function(r){return m(this,r,!0)}}),d}}}So||(So=1,function(){if(xo)return Fi;xo=1;var r,t=Di(),n=g(),e=wr(),i=Bi(),o=Io(),u=Do(),f=Ho(),a=Ar(),c=tn().enforce,l=A(),s=Qt(),v=Object,p=Array.isArray,d=v.isExtensible,y=v.isFrozen,h=v.isSealed,b=v.freeze,m=v.seal,w=!n.ActiveXObject&&"ActiveXObject"in n,O=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},x=u("WeakMap",O,f),S=x.prototype,E=e(S.set);if(s)if(w){r=f.getConstructor(O,"WeakMap",!0),o.enable();var j=e(S.delete),T=e(S.has),P=e(S.get);i(S,{delete:function(t){if(a(t)&&!d(t)){var n=c(this);return n.frozen||(n.frozen=new r),j(this,t)||n.frozen.delete(t)}return j(this,t)},has:function(t){if(a(t)&&!d(t)){var n=c(this);return n.frozen||(n.frozen=new r),T(this,t)||n.frozen.has(t)}return T(this,t)},get:function(t){if(a(t)&&!d(t)){var n=c(this);return n.frozen||(n.frozen=new r),T(this,t)?P(this,t):n.frozen.get(t)}return P(this,t)},set:function(t,n){if(a(t)&&!d(t)){var e=c(this);e.frozen||(e.frozen=new r),T(this,t)?E(this,t,n):e.frozen.set(t,n)}else E(this,t,n);return this}})}else t&&l(function(){var r=b([]);return E(new x,r,1),!y(r)})&&i(S,{set:function(r,t){var n;return p(r)&&(y(r)?n=b:h(r)&&(n=m)),E(this,r,t),n&&n(r),this}})}());var $o,Go,Vo,Wo,Uo,Ko={};!function(){if(Uo)return Ko;Uo=1;var r=g(),t=Go?$o:(Go=1,$o={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}),n=function(){if(Wo)return Vo;Wo=1;var r=mt()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return Vo=t===Object.prototype?void 0:t}(),e=Oi(),i=Nt(),o=yi(),u=ht()("iterator"),f=e.values,a=function(r,n){if(r){if(r[u]!==f)try{i(r,u,f)}catch(t){r[u]=f}if(o(r,n,!0),t[n])for(var a in e)if(r[a]!==e[a])try{i(r,a,e[a])}catch(t){r[a]=e[a]}}};for(var c in t)a(r[c]&&r[c].prototype,c);a(n,"DOMTokenList")}();var Yo=new WeakMap;function Xo(r){var t,n=r.children||[],i=n.length;if(0===i)return"";for(var o=0;o<i&&!t;o+=1){var u=n[o];e.isText(u)&&(t=u)}return null==t?"":t.color||""}function qo(r,n,e){for(var u=n.type,f=function(r,t){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(n[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(r);i<e.length;i++)t.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i])&&(n[e[i]]=r[e[i]])}return n}(n,["type"]),a=void 0!==e?e:f.level||0,c=t.findPath(r,n);;){if(0===c.length||0===c[c.length-1])return null;c=i.previous(c);var l=o.node(r,c);if(!l)return null;var s=Ee(l,1)[0],v=s.level,p=void 0===v?0:v;if(t.getNodeType(s)!==u)return null;if(p===a)return s}}function Jo(r,t,n){var e=qo(r,t,n);return!!e&&e.ordered===t.ordered}var Qo=[];var Zo,ru={type:"list-item",elemToHtml:function(r,n){var e="",u="",f=r.ordered,a=void 0!==f&&f?"ol":"ul",c=function(r){var n=Yo.get(r);if(null==n)return 0;var e=r,u=e.type,f=e.ordered,a=void 0!==f&&f,c=e.level,l=void 0===c?0:c,s=t.findPath(n,r);if(0===s[0])return l+1;var v=i.previous(s),p=o.node(n,v);if(!p)return 0;var d=Ee(p,1)[0];if(t.getNodeType(d)!==u)return l+1;var y=d,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?l-m:m>l?Jo(n,r)?0:1:m===l?g===a?0:1:0}(r);if(c>0)for(var l=0;l<c;l+=1)e+="<".concat(a,">"),Qo.push(a);var s=function(r){var n=Yo.get(r);if(null==n)return 0;var e=r,u=e.type,f=e.ordered,a=void 0!==f&&f,c=e.level,l=void 0===c?0:c,s=t.findPath(n,r);if(s[0]===n.children.length-1)return l+1;var v=i.next(s),p=o.node(n,v);if(!p)return 0;var d=Ee(p,1)[0];if(t.getNodeType(d)!==u)return l+1;var y=d,h=y.ordered,g=void 0!==h&&h,b=y.level,m=void 0===b?0:b;return m<l?Jo(n,d)?l-m:l-m+1:m>l?0:m===l?g===a?0:1:0}(r);if(s>0)for(l=0;l<s;l+=1){var v=Qo.pop();u+="</".concat(v,">")}var p=Xo(r),d=p?' style="color:'.concat(p,'"'):"";return{html:"<li".concat(d,">").concat(n,"</li>"),prefix:e,suffix:u}}},tu={};!function(){if(Zo)return tu;Zo=1;var r=se(),t=An().includes,n=A(),e=si();r({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}}),e("includes")}();var nu,eu,iu,ou,uu,fu,au,cu,lu,su,vu,pu={};function du(){if(eu)return nu;eu=1;var r=Rt();return nu=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function yu(){if(su)return lu;su=1;var r,t,n=k(),e=wr(),i=Li(),o=du(),u=function(){if(ou)return iu;ou=1;var r=A(),t=g().RegExp,n=r(function(){var r=t("a","y");return r.lastIndex=2,null!==r.exec("abcd")}),e=n||r(function(){return!t("a","y").sticky}),i=n||r(function(){var r=t("^r","gy");return r.lastIndex=2,null!==r.exec("str")});return iu={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:n}}(),f=vt(),a=li(),c=tn().get,l=function(){if(fu)return uu;fu=1;var r=A(),t=g().RegExp;return uu=r(function(){var r=t(".","s");return!(r.dotAll&&r.test("\n")&&"s"===r.flags)})}(),s=function(){if(cu)return au;cu=1;var r=A(),t=g().RegExp;return au=r(function(){var r=t("(?<a>b)","g");return"b"!==r.exec("b").groups.a||"bc"!=="b".replace(r,"$<a>c")})}(),v=f("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,d=p,y=e("".charAt),h=e("".indexOf),b=e("".replace),m=e("".slice),w=(t=/b*/g,n(p,r=/a/,"a"),n(p,t,"a"),0!==r.lastIndex||0!==t.lastIndex),O=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(w||x||O||l||s)&&(d=function(r){var t,e,u,f,l,s,g,S=this,E=c(S),j=i(r),T=E.raw;if(T)return T.lastIndex=S.lastIndex,t=n(d,T,j),S.lastIndex=T.lastIndex,t;var A=E.groups,P=O&&S.sticky,I=n(o,S),k=S.source,R=0,L=j;if(P&&(I=b(I,"y",""),-1===h(I,"g")&&(I+="g"),L=m(j,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==y(j,S.lastIndex-1))&&(k="(?: "+k+")",L=" "+L,R++),e=new RegExp("^(?:"+k+")",I)),x&&(e=new RegExp("^"+k+"$(?!\\s)",I)),w&&(u=S.lastIndex),f=n(p,P?e:S,L),P?f?(f.input=m(f.input,R),f[0]=m(f[0],R),f.index=S.lastIndex,S.lastIndex+=f[0].length):S.lastIndex=0:w&&f&&(S.lastIndex=S.global?f.index+f[0].length:u),x&&f&&f.length>1&&n(v,f[0],e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(f[l]=void 0)}),f&&A)for(f.groups=s=a(null),l=0;l<A.length;l++)s[(g=A[l])[0]]=f[g[1]];return f}),lu=d}function hu(){if(vu)return pu;vu=1;var r=se(),t=yu();return r({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),pu}hu();var gu,bu=function(){function r(){this.type="list-item",this.tag="button"}return r.prototype.getListNode=function(r){var n=this.type;return t.getSelectedNodeByType(r,n)},r.prototype.getValue=function(r){return""},r.prototype.isActive=function(r){var t=this.getListNode(r);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},r.prototype.isDisabled=function(r){return null==r.selection||!!t.getSelectedElems(r).some(function(t){if(o.isVoid(r,t)&&o.isBlock(r,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)})},r.prototype.exec=function(r,t){this.isActive(r)?u.setNodes(r,{type:"paragraph",ordered:void 0,level:void 0}):u.setNodes(r,{type:"list-item",ordered:this.ordered,indent:void 0})},r}(),mu=function(r){function t(){var t=r.apply(this,je([],Ee(arguments),!1))||this;return t.ordered=!1,t.title=n("listModule.unOrderedList"),t.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>',t}return xe(t,r),t}(bu),wu=function(r){function t(){var t=r.apply(this,je([],Ee(arguments),!1))||this;return t.ordered=!0,t.title=n("listModule.orderedList"),t.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>',t}return xe(t,r),t}(bu),Ou={key:"bulletedList",factory:function(){return new mu}},xu={key:"numberedList",factory:function(){return new wu}},Su={};!function(){if(gu)return Su;gu=1;var r=se(),t=Bo().filter;r({target:"Array",proto:!0,forced:!we()("filter")},{filter:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var Eu,ju,Tu,Au={};!function(){if(Tu)return Au;Tu=1;var r=se(),t=function(){if(ju)return Eu;ju=1;var r=ve(),t=Tn(),n=pe(),e=ko(),i=de(),o=function(u,f,a,c,l,s,v,p){for(var d,y,h=l,g=0,b=!!v&&e(v,p);g<c;)g in a&&(d=b?b(a[g],g,f):a[g],s>0&&r(d)?(y=t(d),h=o(u,f,d,y,h,s-1)-1):(n(h+1),i(u,h,d)),h++),g++;return h};return Eu=o}(),n=pt(),e=Tn(),i=Sn(),o=me();r({target:"Array",proto:!0},{flat:function(){var r=arguments.length?arguments[0]:void 0,u=n(this),f=e(u),a=o(u,0);return t(a,u,u,f,0,void 0===r?1:i(r)),a}})}();var Pu;Pu||(Pu=1,si()("flat"));var Iu,ku,Ru,Lu,Nu,zu,Mu,_u,Cu,Fu,Du,Bu,Hu,$u,Gu,Vu={};function Wu(){if(zu)return Nu;zu=1;var r=Ni().charAt;return Nu=function(t,n,e){return n+(e?r(t,n).length:1)}}function Uu(){if(_u)return Mu;_u=1;var r=wr(),t=pt(),n=Math.floor,e=r("".charAt),i=r("".replace),o=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return Mu=function(r,a,c,l,s,v){var p=c+r.length,d=l.length,y=f;return void 0!==s&&(s=t(s),y=u),i(v,y,function(t,i){var u;switch(e(i,0)){case"$":return"$";case"&":return r;case"`":return o(a,0,c);case"'":return o(a,p);case"<":u=s[o(i,1,-1)];break;default:var f=+i;if(0===f)return t;if(f>d){var v=n(f/10);return 0===v?t:v<=d?void 0===l[v-1]?e(i,1):l[v-1]+e(i,1):t}u=l[f-1]}return void 0===u?"":u})}}function Ku(){if(Bu)return Du;Bu=1;var r=k(),t=dt(),n=Ir(),e=function(){if(Fu)return Cu;Fu=1;var r=g(),t=A(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",i=r?"dgimsy":"gimsy",o=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in r&&(u.hasIndices="d"),u)o(f,u[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||e!==i});return Cu={correct:e}}(),i=du(),o=RegExp.prototype;return Du=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(o,u)||t(u,"flags")?u.flags:r(i,u)}}!function(){if(Gu)return Vu;Gu=1;var r=function(){if(ku)return Iu;ku=1;var r=I(),t=Function.prototype,n=t.apply,e=t.call;return Iu="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),Iu}(),t=k(),n=wr(),e=function(){if(Lu)return Ru;Lu=1,hu();var r=k(),t=en(),n=yu(),e=A(),i=ht(),o=Nt(),u=i("species"),f=RegExp.prototype;return Ru=function(a,c,l,s){var v=i(a),p=!e(function(){var r={};return r[v]=function(){return 7},7!==""[a](r)}),d=p&&!e(function(){var r=!1,t=/a/;if("split"===a){var n={};n[u]=function(){return t},(t={constructor:n,flags:""})[v]=/./[v]}return t.exec=function(){return r=!0,null},t[v](""),!r});if(!p||!d||l){var y=/./[v],h=c(v,""[a],function(t,e,i,o,u){var a=e.exec;return a===n||a===f.exec?p&&!u?{done:!0,value:r(y,e,i,o)}:{done:!0,value:r(t,i,e,o)}:{done:!1}});t(String.prototype,a,h[0]),t(f,v,h[1])}s&&o(f[v],"sham",!0)}}(),i=A(),o=Rt(),u=Tr(),f=Ar(),a=Sn(),c=jn(),l=Li(),s=Er(),v=Wu(),p=_r(),d=Uu(),y=Ku(),h=function(){if($u)return Hu;$u=1;var r=k(),t=Rt(),n=Tr(),e=Or(),i=yu(),o=TypeError;return Hu=function(u,f){var a=u.exec;if(n(a)){var c=r(a,u,f);return null!==c&&t(c),c}if("RegExp"===e(u))return r(i,u,f);throw new o("RegExp#exec called on incompatible receiver")}}(),g=ht()("replace"),b=Math.max,m=Math.min,w=n([].concat),O=n([].push),x=n("".indexOf),S=n("".slice),E=function(r){return void 0===r?r:String(r)},j="$0"==="a".replace(/./,"$0"),T=!!/./[g]&&""===/./[g]("a","$0");e("replace",function(n,e,i){var j=T?"$":"$0";return[function(r,n){var i=s(this),o=f(r)?p(r,g):void 0;return o?t(o,r,i,n):t(e,l(i),r,n)},function(t,n){var f=o(this),s=l(t);if("string"==typeof n&&-1===x(n,j)&&-1===x(n,"$<")){var p=i(e,f,s,n);if(p.done)return p.value}var g=u(n);g||(n=l(n));var T,A=l(y(f)),P=-1!==x(A,"g");P&&(T=-1!==x(A,"u"),f.lastIndex=0);for(var I,k=[];null!==(I=h(f,s))&&(O(k,I),P);){""===l(I[0])&&(f.lastIndex=v(s,c(f.lastIndex),T))}for(var R="",L=0,N=0;N<k.length;N++){for(var z,M=l((I=k[N])[0]),_=b(m(a(I.index),s.length),0),C=[],F=1;F<I.length;F++)O(C,E(I[F]));var D=I.groups;if(g){var B=w([M],C,_,s);void 0!==D&&O(B,D),z=l(r(n,void 0,B))}else z=d(M,s,_,C,D,n);_>=L&&(R+=S(s,L,_)+z,L=_+M.length)}return R+S(s,L)}]},!!i(function(){var r=/./;return r.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(r,"$<a>")})||!j||T)}();var Yu,Xu,qu={};function Ju(r){return r.length?r[0].tagName.toLowerCase():""}function Qu(r){return o.nodes(r,{at:r.selection||void 0,match:function(n){return 1===t.findPath(r,n).length}})}Xu||(Xu=1,function(){if(Yu)return qu;Yu=1;var r=se(),t=g();r({global:!0,forced:t.globalThis!==t},{globalThis:t})}()),c&&(a.fn.append=c),l&&(a.fn.attr=l),s&&(a.fn.parent=s);var Zu={renderElems:[{type:"list-item",renderElem:function(r,n,e){Yo.set(r,e);var u=r,f=u.level,a=void 0===f?0:f,c=u.ordered,l=void 0!==c&&c,s={margin:"5px 0 5px ".concat(20*a,"px"),display:"flex",alignItems:"flex-start"},p="";if(l){var d=function(r,n){var e=n,u=e.type,f=e.level,a=void 0===f?0:f,c=e.ordered,l=void 0!==c&&c,s=1,v=n,p=t.findPath(r,v);if(0===p[0])return 1;for(;p[0]>0;){var d=i.previous(p),y=o.node(r,d);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<a)break;if(b===a){if(w!==l)break;s+=1}v=h,p=d}return s}(e,r);p="".concat(d,".")}else p=function(r){void 0===r&&(r=0);var t="";switch(r){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(a);var y=Xo(r);return v("div",{style:s},v("span",{contentEditable:!1,style:{marginRight:"0.5em",color:y},"data-w-e-reserve":!0},p),v("span",{style:{flex:"1",wordBreak:"break-word"}},n))}}],editorPlugin:function(r){var n=r.deleteBackward,e=r.handleTab,i=r.normalizeNode,a=r.insertBreak,c=r;return c.insertBreak=function(){var n=Ee(o.nodes(r,{match:function(r){return t.checkNodeType(r,"list-item")},universal:!0}),1)[0];return n?""!==n[0].children[0].text?a():void u.setNodes(c,{type:"paragraph",ordered:void 0,level:void 0}):a()},c.deleteBackward=function(e){var i=c.selection;if(null!=i)if(f.isExpanded(i))n(e);else{var o=t.getSelectedNodeByType(c,"list-item");if(null!=o)if(0!==i.focus.offset)n(e);else{var a=o,l=a.level,s=void 0===l?0:l,v=a.ordered,p=void 0!==v&&v;if(s>0){var d=qo(r,o,s-1);d&&d.ordered!==p?u.setNodes(c,{level:s-1,ordered:!p}):u.setNodes(c,{level:s-1})}else u.setNodes(c,{type:"paragraph",ordered:void 0,level:void 0})}else n(e)}else n(e)},c.handleTab=function(){var r,n,i,o,a=c.selection;if(null!=a){if(f.isCollapsed(a)){var l=t.getSelectedNodeByType(c,"list-item");if(null==l)return void e();if(0===a.focus.offset){var s=l.level,v=void 0===s?0:s;return void u.setNodes(c,{level:v+1})}}if(f.isExpanded(a)){var p=0,d=!1;try{for(var y=Se(Qu(c)),h=y.next();!h.done;h=y.next()){var g=Ee(h.value,1)[0];"list-item"===t.getNodeType(g)?p+=1:d=!0}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}if(d||p<=1)return void e();try{for(var b=Se(Qu(c)),m=b.next();!m.done;m=b.next()){var w=Ee(m.value,2),O=(g=w[0],w[1]),x=g.level;v=void 0===x?0:x;u.setNodes(c,{level:v+1},{at:O})}}catch(r){i={error:r}}finally{try{m&&!m.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}}else e()}else e()},c.normalizeNode=function(r){var n=Ee(r,2),e=n[0],o=n[1],f=t.getNodeType(e);return"bulleted-list"!==f&&"numbered-list"!==f||u.unwrapNodes(c,{at:o}),i([e,o])},c},menus:[Ou,xu],elemsToHtml:[ru],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(r,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(r,t,n){var i=a(r);0===(t=t.filter(function(r){return!!e.isText(r)||!!n.isInline(r)})).length&&(t=[{text:i.text().replace(/\s+/gm," ")}]);var o=function(r){return"ol"===Ju(r.parent())}(i),u=function(r){for(var t=0,n=r.parent(),e=Ju(n);"ul"===e||"ol"===e;)e=Ju(n=n.parent()),t+=1;return t-1}(i);return{type:"list-item",ordered:o,level:u,children:t}}}]};export{Zu as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|