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