Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wangeditor/list-module

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wangeditor/list-module - npm Package Compare versions

Comparing version 0.7.12 to 0.7.13

2

dist/index.esm.js

@@ -1,2 +0,2 @@

import{i18nAddResources as t,DomEditor as e,t as n}from"@wangeditor/core";import{jsx as r}from"snabbdom";import{Editor as o,Transforms as i,Node as u,Element as c}from"slate";t("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(t){var e={exports:{}};return t(e,e.exports),e.exports}var f,s,p=function(t){return t&&t.Math==Math&&t},d=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),y=function(t){try{return!!t()}catch(t){return!0}},v=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g=Function.prototype.call,h=g.bind?g.bind(g):function(){return g.apply(g,arguments)},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,w={f:b&&!m.call({1:2},1)?function(t){var e=b(this,t);return!!e&&e.enumerable}:m},O=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=Function.prototype,x=S.bind,j=S.call,E=x&&x.bind(j),T=x?function(t){return t&&E(j,t)}:function(t){return t&&function(){return j.apply(t,arguments)}},I=T({}.toString),P=T("".slice),N=function(t){return P(I(t),8,-1)},_=d.Object,M=T("".split),z=y((function(){return!_("z").propertyIsEnumerable(0)}))?function(t){return"String"==N(t)?M(t,""):_(t)}:_,L=d.TypeError,k=function(t){if(null==t)throw L("Can't call method on "+t);return t},A=function(t){return z(k(t))},R=function(t){return"function"==typeof t},H=function(t){return"object"==typeof t?null!==t:R(t)},C=function(t){return R(t)?t:void 0},B=function(t,e){return arguments.length<2?C(d[t]):d[t]&&d[t][e]},F=T({}.isPrototypeOf),D=B("navigator","userAgent")||"",V=d.process,U=d.Deno,G=V&&V.versions||U&&U.version,K=G&&G.v8;K&&(s=(f=K.split("."))[0]>0&&f[0]<4?1:+(f[0]+f[1])),!s&&D&&(!(f=D.match(/Edge\/(\d+)/))||f[1]>=74)&&(f=D.match(/Chrome\/(\d+)/))&&(s=+f[1]);var W=s,Y=!!Object.getOwnPropertySymbols&&!y((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&W&&W<41})),$=Y&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=d.Object,q=$?function(t){return"symbol"==typeof t}:function(t){var e=B("Symbol");return R(e)&&F(e.prototype,X(t))},J=d.String,Q=d.TypeError,Z=function(t){if(R(t))return t;throw Q(function(t){try{return J(t)}catch(t){return"Object"}}(t)+" is not a function")},tt=d.TypeError,et=Object.defineProperty,nt=function(t,e){try{et(d,t,{value:e,configurable:!0,writable:!0})}catch(n){d[t]=e}return e},rt=d["__core-js_shared__"]||nt("__core-js_shared__",{}),ot=a((function(t){(t.exports=function(t,e){return rt[t]||(rt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),it=d.Object,ut=T({}.hasOwnProperty),ct=Object.hasOwn||function(t,e){return ut(it(k(t)),e)},lt=0,at=Math.random(),ft=T(1..toString),st=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ft(++lt+at,36)},pt=ot("wks"),dt=d.Symbol,yt=dt&&dt.for,vt=$?dt:dt&&dt.withoutSetter||st,gt=function(t){if(!ct(pt,t)||!Y&&"string"!=typeof pt[t]){var e="Symbol."+t;Y&&ct(dt,t)?pt[t]=dt[t]:pt[t]=$&&yt?yt(e):vt(e)}return pt[t]},ht=d.TypeError,mt=gt("toPrimitive"),bt=function(t,e){if(!H(t)||q(t))return t;var n,r,o=null==(n=t[mt])?void 0:Z(n);if(o){if(void 0===e&&(e="default"),r=h(o,t,e),!H(r)||q(r))return r;throw ht("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&R(n=t.toString)&&!H(r=h(n,t)))return r;if(R(n=t.valueOf)&&!H(r=h(n,t)))return r;if("string"!==e&&R(n=t.toString)&&!H(r=h(n,t)))return r;throw tt("Can't convert object to primitive value")}(t,e)},wt=function(t){var e=bt(t,"string");return q(e)?e:e+""},Ot=d.document,St=H(Ot)&&H(Ot.createElement),xt=function(t){return St?Ot.createElement(t):{}},jt=!v&&!y((function(){return 7!=Object.defineProperty(xt("div"),"a",{get:function(){return 7}}).a})),Et=Object.getOwnPropertyDescriptor,Tt={f:v?Et:function(t,e){if(t=A(t),e=wt(e),jt)try{return Et(t,e)}catch(t){}if(ct(t,e))return O(!h(w.f,t,e),t[e])}},It=d.String,Pt=d.TypeError,Nt=function(t){if(H(t))return t;throw Pt(It(t)+" is not an object")},_t=d.TypeError,Mt=Object.defineProperty,zt={f:v?Mt:function(t,e,n){if(Nt(t),e=wt(e),Nt(n),jt)try{return Mt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw _t("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Lt=v?function(t,e,n){return zt.f(t,e,O(1,n))}:function(t,e,n){return t[e]=n,t},kt=T(Function.toString);R(rt.inspectSource)||(rt.inspectSource=function(t){return kt(t)});var At,Rt,Ht,Ct=rt.inspectSource,Bt=d.WeakMap,Ft=R(Bt)&&/native code/.test(Ct(Bt)),Dt=ot("keys"),Vt=function(t){return Dt[t]||(Dt[t]=st(t))},Ut={},Gt=d.TypeError,Kt=d.WeakMap;if(Ft||rt.state){var Wt=rt.state||(rt.state=new Kt),Yt=T(Wt.get),$t=T(Wt.has),Xt=T(Wt.set);At=function(t,e){if($t(Wt,t))throw new Gt("Object already initialized");return e.facade=t,Xt(Wt,t,e),e},Rt=function(t){return Yt(Wt,t)||{}},Ht=function(t){return $t(Wt,t)}}else{var qt=Vt("state");Ut[qt]=!0,At=function(t,e){if(ct(t,qt))throw new Gt("Object already initialized");return e.facade=t,Lt(t,qt,e),e},Rt=function(t){return ct(t,qt)?t[qt]:{}},Ht=function(t){return ct(t,qt)}}var Jt,Qt={set:At,get:Rt,has:Ht,enforce:function(t){return Ht(t)?Rt(t):At(t,{})},getterFor:function(t){return function(e){var n;if(!H(e)||(n=Rt(e)).type!==t)throw Gt("Incompatible receiver, "+t+" required");return n}}},Zt=Function.prototype,te=v&&Object.getOwnPropertyDescriptor,ee=ct(Zt,"name"),ne={EXISTS:ee,PROPER:ee&&"something"===function(){}.name,CONFIGURABLE:ee&&(!v||v&&te(Zt,"name").configurable)},re=a((function(t){var e=ne.CONFIGURABLE,n=Qt.get,r=Qt.enforce,o=String(String).split("String");(t.exports=function(t,n,i,u){var c,l=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet,s=u&&void 0!==u.name?u.name:n;R(i)&&("Symbol("===String(s).slice(0,7)&&(s="["+String(s).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ct(i,"name")||e&&i.name!==s)&&Lt(i,"name",s),(c=r(i)).source||(c.source=o.join("string"==typeof s?s:""))),t!==d?(l?!f&&t[n]&&(a=!0):delete t[n],a?t[n]=i:Lt(t,n,i)):a?t[n]=i:nt(n,i)})(Function.prototype,"toString",(function(){return R(this)&&n(this).source||Ct(this)}))})),oe=Math.ceil,ie=Math.floor,ue=function(t){var e=+t;return e!=e||0===e?0:(e>0?ie:oe)(e)},ce=Math.max,le=Math.min,ae=Math.min,fe=function(t){return(e=t.length)>0?ae(ue(e),9007199254740991):0;var e},se=function(t){return function(e,n,r){var o,i=A(e),u=fe(i),c=function(t,e){var n=ue(t);return n<0?ce(n+e,0):le(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},pe={includes:se(!0),indexOf:se(!1)},de=pe.indexOf,ye=T([].push),ve=function(t,e){var n,r=A(t),o=0,i=[];for(n in r)!ct(Ut,n)&&ct(r,n)&&ye(i,n);for(;e.length>o;)ct(r,n=e[o++])&&(~de(i,n)||ye(i,n));return i},ge=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],he=ge.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(t){return ve(t,he)}},be={f:Object.getOwnPropertySymbols},we=T([].concat),Oe=B("Reflect","ownKeys")||function(t){var e=me.f(Nt(t)),n=be.f;return n?we(e,n(t)):e},Se=function(t,e){for(var n=Oe(e),r=zt.f,o=Tt.f,i=0;i<n.length;i++){var u=n[i];ct(t,u)||r(t,u,o(e,u))}},xe=/#|\.prototype\./,je=function(t,e){var n=Te[Ee(t)];return n==Pe||n!=Ie&&(R(e)?y(e):!!e)},Ee=je.normalize=function(t){return String(t).replace(xe,".").toLowerCase()},Te=je.data={},Ie=je.NATIVE="N",Pe=je.POLYFILL="P",Ne=je,_e=Tt.f,Me=function(t,e){var n,r,o,i,u,c=t.target,l=t.global,a=t.stat;if(n=l?d:a?d[c]||nt(c,{}):(d[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=_e(n,r))&&u.value:n[r],!Ne(l?r:c+(a?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Se(i,o)}(t.sham||o&&o.sham)&&Lt(i,"sham",!0),re(n,r,i,t)}},ze=Object.keys||function(t){return ve(t,ge)},Le=v?Object.defineProperties:function(t,e){Nt(t);for(var n,r=A(e),o=ze(e),i=o.length,u=0;i>u;)zt.f(t,n=o[u++],r[n]);return t},ke=B("document","documentElement"),Ae=Vt("IE_PROTO"),Re=function(){},He=function(t){return"<script>"+t+"<\/script>"},Ce=function(t){t.write(He("")),t.close();var e=t.parentWindow.Object;return t=null,e},Be=function(){try{Jt=new ActiveXObject("htmlfile")}catch(t){}var t,e;Be="undefined"!=typeof document?document.domain&&Jt?Ce(Jt):((e=xt("iframe")).style.display="none",ke.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(He("document.F=Object")),t.close(),t.F):Ce(Jt);for(var n=ge.length;n--;)delete Be.prototype[ge[n]];return Be()};Ut[Ae]=!0;var Fe=Object.create||function(t,e){var n;return null!==t?(Re.prototype=Nt(t),n=new Re,Re.prototype=null,n[Ae]=t):n=Be(),void 0===e?n:Le(n,e)},De=gt("unscopables"),Ve=Array.prototype;null==Ve[De]&&zt.f(Ve,De,{configurable:!0,value:Fe(null)});var Ue,Ge=pe.includes;function Ke(t){if("bulleted-list"===t)return"ul";if("numbered-list"===t)return"ol";if("list-item"===t)return"li";throw new Error("list type '"+t+"' is invalid")}function We(t){var n=e.getNodeType(t);return["bulleted-list","numbered-list"].includes(n)}function Ye(t){return function(e,n,o){var i=Ke(t);return r(i,null,n)}}Me({target:"Array",proto:!0},{includes:function(t){return Ge(this,t,arguments.length>1?arguments[1]:void 0)}}),Ue="includes",Ve[De][Ue]=!0;var $e={type:"bulleted-list",renderElem:Ye("bulleted-list")},Xe={type:"numbered-list",renderElem:Ye("numbered-list")},qe={type:"list-item",renderElem:Ye("list-item")};function Je(t){var e=Ke(t);return function(t,n){return"<"+e+">"+n+"</"+e+">"}}var Qe={type:"bulleted-list",elemToHtml:Je("bulleted-list")},Ze={type:"numbered-list",elemToHtml:Je("numbered-list")},tn={type:"list-item",elemToHtml:Je("list-item")},en=function(t,e){return en=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},en(t,e)};function nn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}en(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function rn(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}var on={};on[gt("toStringTag")]="z";var un="[object z]"===String(on),cn=gt("toStringTag"),ln=d.Object,an="Arguments"==N(function(){return arguments}()),fn=un?N:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=ln(t),cn))?n:an?N(e):"Object"==(r=N(e))&&R(e.callee)?"Arguments":r},sn=un?{}.toString:function(){return"[object "+fn(this)+"]"};un||re(Object.prototype,"toString",sn,{unsafe:!0});var pn,dn,yn=d.String,vn=function(){var t=Nt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},gn=d.RegExp,hn=y((function(){var t=gn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),mn=hn||y((function(){return!gn("a","y").sticky})),bn={BROKEN_CARET:hn||y((function(){var t=gn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:mn,UNSUPPORTED_Y:hn},wn=d.RegExp,On=y((function(){var t=wn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Sn=d.RegExp,xn=y((function(){var t=Sn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),jn=Qt.get,En=ot("native-string-replace",String.prototype.replace),Tn=RegExp.prototype.exec,In=Tn,Pn=T("".charAt),Nn=T("".indexOf),_n=T("".replace),Mn=T("".slice),zn=(dn=/b*/g,h(Tn,pn=/a/,"a"),h(Tn,dn,"a"),0!==pn.lastIndex||0!==dn.lastIndex),Ln=bn.BROKEN_CARET,kn=void 0!==/()??/.exec("")[1];(zn||kn||Ln||On||xn)&&(In=function(t){var e,n,r,o,i,u,c,l=this,a=jn(l),f=function(t){if("Symbol"===fn(t))throw TypeError("Cannot convert a Symbol value to a string");return yn(t)}(t),s=a.raw;if(s)return s.lastIndex=l.lastIndex,e=h(In,s,f),l.lastIndex=s.lastIndex,e;var p=a.groups,d=Ln&&l.sticky,y=h(vn,l),v=l.source,g=0,m=f;if(d&&(y=_n(y,"y",""),-1===Nn(y,"g")&&(y+="g"),m=Mn(f,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Pn(f,l.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,g++),n=new RegExp("^(?:"+v+")",y)),kn&&(n=new RegExp("^"+v+"$(?!\\s)",y)),zn&&(r=l.lastIndex),o=h(Tn,d?n:l,m),d?o?(o.input=Mn(o.input,g),o[0]=Mn(o[0],g),o.index=l.lastIndex,l.lastIndex+=o[0].length):l.lastIndex=0:zn&&o&&(l.lastIndex=l.global?o.index+o[0].length:r),kn&&o&&o.length>1&&h(En,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=Fe(null),i=0;i<p.length;i++)u[(c=p[i])[0]]=o[c[1]];return o});Me({target:"RegExp",proto:!0,forced:/./.exec!==In},{exec:In});var An=function(){function t(){this.tag="button"}return t.prototype.getListNode=function(t){var n=this.type;return e.getSelectedNodeByType(t,n)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!this.getListNode(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!e.getSelectedElems(t).some((function(e){if(o.isVoid(t,e)&&o.isBlock(t,e))return!0;var n=e.type;return!!["pre","code","table"].includes(n)||void 0}))},t.prototype.getMatchListType=function(t){var n=rn(o.nodes(t,{match:function(t){return We(t)},universal:!0}),1),r=n[0];if(null==r)return"";var i=rn(r,1)[0];return e.getNodeType(i)},t.prototype.exec=function(t,e){var n=this.type,r=this.isActive(t);i.unwrapNodes(t,{match:function(t){return We(t)},split:!0}),i.setNodes(t,{type:r?"paragraph":"list-item"});var o={type:n,children:[]};r||i.wrapNodes(t,o);var u=this.getMatchListType(t);""!=u&&u!==n&&i.wrapNodes(t,o)},t}(),Rn='<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>',Hn='<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>',Cn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bulleted-list",e.title=n("listModule.unOrderedList"),e.iconSvg=Rn,e}return nn(e,t),e}(An),Bn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="numbered-list",e.title=n("listModule.orderedList"),e.iconSvg=Hn,e}return nn(e,t),e}(An);var Fn={renderElems:[$e,Xe,qe],elemsToHtml:[Qe,Ze,tn],menus:[{key:"bulletedList",factory:function(){return new Cn}},{key:"numberedList",factory:function(){return new Bn}}],editorPlugin:function(t){var n=t.insertBreak,r=t.deleteBackward,l=t;return l.insertBreak=function(){var t=e.getSelectedNodeByType(l,"list-item");if(null!=t){var r=e.getParentNode(l,t),o=(null==r?void 0:r.children)||[];if(t===o[o.length-1])if(""===u.string(t)){i.removeNodes(l,{match:function(t){return e.checkNodeType(t,"list-item")}});return void i.insertNodes(l,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n()}else n()},l.deleteBackward=function(t){var e=function(t){var e=rn(o.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return!1;var r=n[0];return!(!c.isElement(r)||u.string(r)||!We(r)||(i.unwrapNodes(t,{match:function(t){return We(t)},split:!0}),i.setNodes(t,{type:"paragraph"}),0))}(l);e||r(t)},l}};export{Fn as default};
import{i18nAddResources as t,DomEditor as e,t as r}from"@wangeditor/core";import{jsx as n}from"snabbdom";import{Editor as o,Transforms as i,Node as u,Element as c}from"slate";t("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function l(t){var e={exports:{}};return t(e,e.exports),e.exports}var s,f,p=function(t){return t&&t.Math==Math&&t},d=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof a&&a)||function(){return this}()||Function("return this")(),y=function(t){try{return!!t()}catch(t){return!0}},v=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=Function.prototype.call,g=h.bind?h.bind(h):function(){return h.apply(h,arguments)},m={}.propertyIsEnumerable,b=Object.getOwnPropertyDescriptor,S={f:b&&!m.call({1:2},1)?function(t){var e=b(this,t);return!!e&&e.enumerable}:m},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=Function.prototype,x=O.bind,E=O.call,T=x&&x.bind(E),j=x?function(t){return t&&T(E,t)}:function(t){return t&&function(){return E.apply(t,arguments)}},L=j({}.toString),A=j("".slice),I=function(t){return A(L(t),8,-1)},P=d.Object,_=j("".split),N=y((function(){return!P("z").propertyIsEnumerable(0)}))?function(t){return"String"==I(t)?_(t,""):P(t)}:P,R=d.TypeError,M=function(t){if(null==t)throw R("Can't call method on "+t);return t},C=function(t){return N(M(t))},k=function(t){return"function"==typeof t},F=function(t){return"object"==typeof t?null!==t:k(t)},H=function(t){return k(t)?t:void 0},z=function(t,e){return arguments.length<2?H(d[t]):d[t]&&d[t][e]},B=j({}.isPrototypeOf),G=z("navigator","userAgent")||"",D=d.process,V=d.Deno,U=D&&D.versions||V&&V.version,Y=U&&U.v8;Y&&(f=(s=Y.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!f&&G&&(!(s=G.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=G.match(/Chrome\/(\d+)/))&&(f=+s[1]);var K=f,W=!!Object.getOwnPropertySymbols&&!y((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&K&&K<41})),$=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,q=d.Object,X=$?function(t){return"symbol"==typeof t}:function(t){var e=z("Symbol");return k(e)&&B(e.prototype,q(t))},J=d.String,Q=function(t){try{return J(t)}catch(t){return"Object"}},Z=d.TypeError,tt=function(t){if(k(t))return t;throw Z(Q(t)+" is not a function")},et=function(t,e){var r=t[e];return null==r?void 0:tt(r)},rt=d.TypeError,nt=Object.defineProperty,ot=function(t,e){try{nt(d,t,{value:e,configurable:!0,writable:!0})}catch(r){d[t]=e}return e},it=d["__core-js_shared__"]||ot("__core-js_shared__",{}),ut=l((function(t){(t.exports=function(t,e){return it[t]||(it[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ct=d.Object,at=function(t){return ct(M(t))},lt=j({}.hasOwnProperty),st=Object.hasOwn||function(t,e){return lt(at(t),e)},ft=0,pt=Math.random(),dt=j(1..toString),yt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+dt(++ft+pt,36)},vt=ut("wks"),ht=d.Symbol,gt=ht&&ht.for,mt=$?ht:ht&&ht.withoutSetter||yt,bt=function(t){if(!st(vt,t)||!W&&"string"!=typeof vt[t]){var e="Symbol."+t;W&&st(ht,t)?vt[t]=ht[t]:vt[t]=$&&gt?gt(e):mt(e)}return vt[t]},St=d.TypeError,wt=bt("toPrimitive"),Ot=function(t,e){if(!F(t)||X(t))return t;var r,n=et(t,wt);if(n){if(void 0===e&&(e="default"),r=g(n,t,e),!F(r)||X(r))return r;throw St("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&k(r=t.toString)&&!F(n=g(r,t)))return n;if(k(r=t.valueOf)&&!F(n=g(r,t)))return n;if("string"!==e&&k(r=t.toString)&&!F(n=g(r,t)))return n;throw rt("Can't convert object to primitive value")}(t,e)},xt=function(t){var e=Ot(t,"string");return X(e)?e:e+""},Et=d.document,Tt=F(Et)&&F(Et.createElement),jt=function(t){return Tt?Et.createElement(t):{}},Lt=!v&&!y((function(){return 7!=Object.defineProperty(jt("div"),"a",{get:function(){return 7}}).a})),At=Object.getOwnPropertyDescriptor,It={f:v?At:function(t,e){if(t=C(t),e=xt(e),Lt)try{return At(t,e)}catch(t){}if(st(t,e))return w(!g(S.f,t,e),t[e])}},Pt=d.String,_t=d.TypeError,Nt=function(t){if(F(t))return t;throw _t(Pt(t)+" is not an object")},Rt=d.TypeError,Mt=Object.defineProperty,Ct={f:v?Mt:function(t,e,r){if(Nt(t),e=xt(e),Nt(r),Lt)try{return Mt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Rt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},kt=v?function(t,e,r){return Ct.f(t,e,w(1,r))}:function(t,e,r){return t[e]=r,t},Ft=j(Function.toString);k(it.inspectSource)||(it.inspectSource=function(t){return Ft(t)});var Ht,zt,Bt,Gt=it.inspectSource,Dt=d.WeakMap,Vt=k(Dt)&&/native code/.test(Gt(Dt)),Ut=ut("keys"),Yt=function(t){return Ut[t]||(Ut[t]=yt(t))},Kt={},Wt=d.TypeError,$t=d.WeakMap;if(Vt||it.state){var qt=it.state||(it.state=new $t),Xt=j(qt.get),Jt=j(qt.has),Qt=j(qt.set);Ht=function(t,e){if(Jt(qt,t))throw new Wt("Object already initialized");return e.facade=t,Qt(qt,t,e),e},zt=function(t){return Xt(qt,t)||{}},Bt=function(t){return Jt(qt,t)}}else{var Zt=Yt("state");Kt[Zt]=!0,Ht=function(t,e){if(st(t,Zt))throw new Wt("Object already initialized");return e.facade=t,kt(t,Zt,e),e},zt=function(t){return st(t,Zt)?t[Zt]:{}},Bt=function(t){return st(t,Zt)}}var te,ee={set:Ht,get:zt,has:Bt,enforce:function(t){return Bt(t)?zt(t):Ht(t,{})},getterFor:function(t){return function(e){var r;if(!F(e)||(r=zt(e)).type!==t)throw Wt("Incompatible receiver, "+t+" required");return r}}},re=Function.prototype,ne=v&&Object.getOwnPropertyDescriptor,oe=st(re,"name"),ie={EXISTS:oe,PROPER:oe&&"something"===function(){}.name,CONFIGURABLE:oe&&(!v||v&&ne(re,"name").configurable)},ue=l((function(t){var e=ie.CONFIGURABLE,r=ee.get,n=ee.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var c,a=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,s=!!u&&!!u.noTargetGet,f=u&&void 0!==u.name?u.name:r;k(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!st(i,"name")||e&&i.name!==f)&&kt(i,"name",f),(c=n(i)).source||(c.source=o.join("string"==typeof f?f:""))),t!==d?(a?!s&&t[r]&&(l=!0):delete t[r],l?t[r]=i:kt(t,r,i)):l?t[r]=i:ot(r,i)})(Function.prototype,"toString",(function(){return k(this)&&r(this).source||Gt(this)}))})),ce=Math.ceil,ae=Math.floor,le=function(t){var e=+t;return e!=e||0===e?0:(e>0?ae:ce)(e)},se=Math.max,fe=Math.min,pe=Math.min,de=function(t){return(e=t.length)>0?pe(le(e),9007199254740991):0;var e},ye=function(t){return function(e,r,n){var o,i=C(e),u=de(i),c=function(t,e){var r=le(t);return r<0?se(r+e,0):fe(r,e)}(n,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},ve={includes:ye(!0),indexOf:ye(!1)},he=ve.indexOf,ge=j([].push),me=function(t,e){var r,n=C(t),o=0,i=[];for(r in n)!st(Kt,r)&&st(n,r)&&ge(i,r);for(;e.length>o;)st(n,r=e[o++])&&(~he(i,r)||ge(i,r));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=be.concat("length","prototype"),we={f:Object.getOwnPropertyNames||function(t){return me(t,Se)}},Oe={f:Object.getOwnPropertySymbols},xe=j([].concat),Ee=z("Reflect","ownKeys")||function(t){var e=we.f(Nt(t)),r=Oe.f;return r?xe(e,r(t)):e},Te=function(t,e){for(var r=Ee(e),n=Ct.f,o=It.f,i=0;i<r.length;i++){var u=r[i];st(t,u)||n(t,u,o(e,u))}},je=/#|\.prototype\./,Le=function(t,e){var r=Ie[Ae(t)];return r==_e||r!=Pe&&(k(e)?y(e):!!e)},Ae=Le.normalize=function(t){return String(t).replace(je,".").toLowerCase()},Ie=Le.data={},Pe=Le.NATIVE="N",_e=Le.POLYFILL="P",Ne=Le,Re=It.f,Me=function(t,e){var r,n,o,i,u,c=t.target,a=t.global,l=t.stat;if(r=a?d:l?d[c]||ot(c,{}):(d[c]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=Re(r,n))&&u.value:r[n],!Ne(a?n:c+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Te(i,o)}(t.sham||o&&o.sham)&&kt(i,"sham",!0),ue(r,n,i,t)}},Ce=Object.keys||function(t){return me(t,be)},ke=v?Object.defineProperties:function(t,e){Nt(t);for(var r,n=C(e),o=Ce(e),i=o.length,u=0;i>u;)Ct.f(t,r=o[u++],n[r]);return t},Fe=z("document","documentElement"),He=Yt("IE_PROTO"),ze=function(){},Be=function(t){return"<script>"+t+"<\/script>"},Ge=function(t){t.write(Be("")),t.close();var e=t.parentWindow.Object;return t=null,e},De=function(){try{te=new ActiveXObject("htmlfile")}catch(t){}var t,e;De="undefined"!=typeof document?document.domain&&te?Ge(te):((e=jt("iframe")).style.display="none",Fe.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Be("document.F=Object")),t.close(),t.F):Ge(te);for(var r=be.length;r--;)delete De.prototype[be[r]];return De()};Kt[He]=!0;var Ve=Object.create||function(t,e){var r;return null!==t?(ze.prototype=Nt(t),r=new ze,ze.prototype=null,r[He]=t):r=De(),void 0===e?r:ke(r,e)},Ue=bt("unscopables"),Ye=Array.prototype;null==Ye[Ue]&&Ct.f(Ye,Ue,{configurable:!0,value:Ve(null)});var Ke,We=ve.includes;function $e(t){if("bulleted-list"===t)return"ul";if("numbered-list"===t)return"ol";if("list-item"===t)return"li";throw new Error("list type '"+t+"' is invalid")}function qe(t){var r=e.getNodeType(t);return["bulleted-list","numbered-list"].includes(r)}function Xe(t){return function(e,r,o){var i=$e(t);return n(i,null,r)}}Me({target:"Array",proto:!0},{includes:function(t){return We(this,t,arguments.length>1?arguments[1]:void 0)}}),Ke="includes",Ye[Ue][Ke]=!0;var Je={type:"bulleted-list",renderElem:Xe("bulleted-list")},Qe={type:"numbered-list",renderElem:Xe("numbered-list")},Ze={type:"list-item",renderElem:Xe("list-item")};function tr(t){var e=$e(t);return function(t,r){return"<"+e+">"+r+"</"+e+">"}}var er={type:"bulleted-list",elemToHtml:tr("bulleted-list")},rr={type:"numbered-list",elemToHtml:tr("numbered-list")},nr={type:"list-item",elemToHtml:tr("list-item")},or=function(t,e){return or=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])},or(t,e)};function ir(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}or(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ur(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}var cr={};cr[bt("toStringTag")]="z";var ar="[object z]"===String(cr),lr=bt("toStringTag"),sr=d.Object,fr="Arguments"==I(function(){return arguments}()),pr=ar?I: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=sr(t),lr))?r:fr?I(e):"Object"==(n=I(e))&&k(e.callee)?"Arguments":n},dr=ar?{}.toString:function(){return"[object "+pr(this)+"]"};ar||ue(Object.prototype,"toString",dr,{unsafe:!0});var yr,vr,hr=d.String,gr=function(t){if("Symbol"===pr(t))throw TypeError("Cannot convert a Symbol value to a string");return hr(t)},mr=function(){var t=Nt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},br=d.RegExp,Sr=y((function(){var t=br("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),wr=Sr||y((function(){return!br("a","y").sticky})),Or={BROKEN_CARET:Sr||y((function(){var t=br("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:wr,UNSUPPORTED_Y:Sr},xr=d.RegExp,Er=y((function(){var t=xr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Tr=d.RegExp,jr=y((function(){var t=Tr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Lr=ee.get,Ar=ut("native-string-replace",String.prototype.replace),Ir=RegExp.prototype.exec,Pr=Ir,_r=j("".charAt),Nr=j("".indexOf),Rr=j("".replace),Mr=j("".slice),Cr=(vr=/b*/g,g(Ir,yr=/a/,"a"),g(Ir,vr,"a"),0!==yr.lastIndex||0!==vr.lastIndex),kr=Or.BROKEN_CARET,Fr=void 0!==/()??/.exec("")[1];(Cr||Fr||kr||Er||jr)&&(Pr=function(t){var e,r,n,o,i,u,c,a=this,l=Lr(a),s=gr(t),f=l.raw;if(f)return f.lastIndex=a.lastIndex,e=g(Pr,f,s),a.lastIndex=f.lastIndex,e;var p=l.groups,d=kr&&a.sticky,y=g(mr,a),v=a.source,h=0,m=s;if(d&&(y=Rr(y,"y",""),-1===Nr(y,"g")&&(y+="g"),m=Mr(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==_r(s,a.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,h++),r=new RegExp("^(?:"+v+")",y)),Fr&&(r=new RegExp("^"+v+"$(?!\\s)",y)),Cr&&(n=a.lastIndex),o=g(Ir,d?r:a,m),d?o?(o.input=Mr(o.input,h),o[0]=Mr(o[0],h),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Cr&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Fr&&o&&o.length>1&&g(Ar,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=Ve(null),i=0;i<p.length;i++)u[(c=p[i])[0]]=o[c[1]];return o});Me({target:"RegExp",proto:!0,forced:/./.exec!==Pr},{exec:Pr});var Hr,zr,Br=function(){function t(){this.tag="button"}return t.prototype.getListNode=function(t){var r=this.type;return e.getSelectedNodeByType(t,r)},t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!!this.getListNode(t)},t.prototype.isDisabled=function(t){return null==t.selection||!!e.getSelectedElems(t).some((function(e){if(o.isVoid(t,e)&&o.isBlock(t,e))return!0;var r=e.type;return!!["pre","code","table"].includes(r)||void 0}))},t.prototype.getMatchListType=function(t){var r=ur(o.nodes(t,{match:function(t){return qe(t)},universal:!0}),1),n=r[0];if(null==n)return"";var i=ur(n,1)[0];return e.getNodeType(i)},t.prototype.exec=function(t,e){var r=this.type,n=this.isActive(t);i.unwrapNodes(t,{match:function(t){return qe(t)},split:!0}),i.setNodes(t,{type:n?"paragraph":"list-item"});var o={type:r,children:[]};n||i.wrapNodes(t,o);var u=this.getMatchListType(t);""!=u&&u!==r&&i.wrapNodes(t,o)},t}(),Gr='<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>',Dr='<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>',Vr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bulleted-list",e.title=r("listModule.unOrderedList"),e.iconSvg=Gr,e}return ir(e,t),e}(Br),Ur=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="numbered-list",e.title=r("listModule.orderedList"),e.iconSvg=Dr,e}return ir(e,t),e}(Br),Yr={key:"bulletedList",factory:function(){return new Vr}},Kr={key:"numberedList",factory:function(){return new Ur}},Wr={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},$r=jt("span").classList,qr=$r&&$r.constructor&&$r.constructor.prototype,Xr=qr===Object.prototype?void 0:qr,Jr=j(j.bind),Qr=function(t,e){return tt(t),void 0===e?t:Jr?Jr(t,e):function(){return t.apply(e,arguments)}},Zr=Array.isArray||function(t){return"Array"==I(t)},tn=function(){},en=[],rn=z("Reflect","construct"),nn=/^\s*(?:class|function)\b/,on=j(nn.exec),un=!nn.exec(tn),cn=function(t){if(!k(t))return!1;try{return rn(tn,en,t),!0}catch(t){return!1}},an=!rn||y((function(){var t;return cn(cn.call)||!cn(Object)||!cn((function(){t=!0}))||t}))?function(t){if(!k(t))return!1;switch(pr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return un||!!on(nn,Gt(t))}:cn,ln=bt("species"),sn=d.Array,fn=function(t,e){return new(function(t){var e;return Zr(t)&&(e=t.constructor,(an(e)&&(e===sn||Zr(e.prototype))||F(e)&&null===(e=e[ln]))&&(e=void 0)),void 0===e?sn:e}(t))(0===e?0:e)},pn=j([].push),dn=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,c=5==t||i;return function(a,l,s,f){for(var p,d,y=at(a),v=N(y),h=Qr(l,s),g=de(v),m=0,b=f||fn,S=e?b(a,g):r||u?b(a,0):void 0;g>m;m++)if((c||m in v)&&(d=h(p=v[m],m,y),t))if(e)S[m]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:pn(S,p)}else switch(t){case 4:return!1;case 7:pn(S,p)}return i?-1:n||o?o:S}},yn={forEach:dn(0),map:dn(1),filter:dn(2),some:dn(3),every:dn(4),find:dn(5),findIndex:dn(6),filterReject:dn(7)}.forEach,vn=!!(zr=[]["forEach"])&&y((function(){zr.call(null,Hr||function(){throw 1},1)}))?[].forEach:function(t){return yn(this,t,arguments.length>1?arguments[1]:void 0)},hn=function(t){if(t&&t.forEach!==vn)try{kt(t,"forEach",vn)}catch(e){t.forEach=vn}};for(var gn in Wr)Wr[gn]&&hn(d[gn]&&d[gn].prototype);hn(Xr);var mn=function(t,e,r,n){try{return n?e(Nt(r)[0],r[1]):e(r)}catch(e){!function(t,e,r){var n,o;Nt(t);try{if(!(n=et(t,"return"))){if("throw"===e)throw r;return r}n=g(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;Nt(n)}(t,"throw",e)}},bn={},Sn=bt("iterator"),wn=Array.prototype,On=function(t){return void 0!==t&&(bn.Array===t||wn[Sn]===t)},xn=function(t,e,r){var n=xt(e);n in t?Ct.f(t,n,w(0,r)):t[n]=r},En=bt("iterator"),Tn=function(t){if(null!=t)return et(t,En)||et(t,"@@iterator")||bn[pr(t)]},jn=d.TypeError,Ln=function(t,e){var r=arguments.length<2?Tn(t):e;if(tt(r))return Nt(g(r,t));throw jn(Q(t)+" is not iterable")},An=d.Array,In=bt("iterator"),Pn=!1;try{var _n=0,Nn={next:function(){return{done:!!_n++}},return:function(){Pn=!0}};Nn[In]=function(){return this},Array.from(Nn,(function(){throw 2}))}catch(t){}var Rn=!function(t,e){if(!e&&!Pn)return!1;var r=!1;try{var n={};n[In]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){Array.from(t)}));Me({target:"Array",stat:!0,forced:Rn},{from:function(t){var e=at(t),r=an(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Qr(o,n>2?arguments[2]:void 0));var u,c,a,l,s,f,p=Tn(e),d=0;if(!p||this==An&&On(p))for(u=de(e),c=r?new this(u):An(u);u>d;d++)f=i?o(e[d],d):e[d],xn(c,d,f);else for(s=(l=Ln(e,p)).next,c=r?new this:[];!(a=g(s,l)).done;d++)f=i?mn(l,o,[a.value,d],!0):a.value,xn(c,d,f);return c.length=d,c}});var Mn,Cn,kn,Fn=j("".charAt),Hn=j("".charCodeAt),zn=j("".slice),Bn=function(t){return function(e,r){var n,o,i=gr(M(e)),u=le(r),c=i.length;return u<0||u>=c?t?"":void 0:(n=Hn(i,u))<55296||n>56319||u+1===c||(o=Hn(i,u+1))<56320||o>57343?t?Fn(i,u):n:t?zn(i,u,u+2):o-56320+(n-55296<<10)+65536}},Gn={codeAt:Bn(!1),charAt:Bn(!0)},Dn=!y((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Vn=Yt("IE_PROTO"),Un=d.Object,Yn=Un.prototype,Kn=Dn?Un.getPrototypeOf:function(t){var e=at(t);if(st(e,Vn))return e[Vn];var r=e.constructor;return k(r)&&e instanceof r?r.prototype:e instanceof Un?Yn:null},Wn=bt("iterator"),$n=!1;[].keys&&("next"in(kn=[].keys())?(Cn=Kn(Kn(kn)))!==Object.prototype&&(Mn=Cn):$n=!0);var qn=null==Mn||y((function(){var t={};return Mn[Wn].call(t)!==t}));qn&&(Mn={}),k(Mn[Wn])||ue(Mn,Wn,(function(){return this}));var Xn={IteratorPrototype:Mn,BUGGY_SAFARI_ITERATORS:$n},Jn=Ct.f,Qn=bt("toStringTag"),Zn=function(t,e,r){t&&!st(t=r?t:t.prototype,Qn)&&Jn(t,Qn,{configurable:!0,value:e})},to=Xn.IteratorPrototype,eo=function(){return this},ro=d.String,no=d.TypeError,oo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=j(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Nt(r),function(t){if("object"==typeof t||k(t))return t;throw no("Can't set "+ro(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),io=ie.PROPER,uo=ie.CONFIGURABLE,co=Xn.IteratorPrototype,ao=Xn.BUGGY_SAFARI_ITERATORS,lo=bt("iterator"),so=function(){return this},fo=Gn.charAt,po=ee.set,yo=ee.getterFor("String Iterator");!function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Ve(to,{next:w(+!n,r)}),Zn(t,o,!1),bn[o]=eo}(r,e,n);var c,a,l,s=function(t){if(t===o&&v)return v;if(!ao&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",p=!1,d=t.prototype,y=d[lo]||d["@@iterator"]||o&&d[o],v=!ao&&y||s(o),h="Array"==e&&d.entries||y;if(h&&(c=Kn(h.call(new t)))!==Object.prototype&&c.next&&(Kn(c)!==co&&(oo?oo(c,co):k(c[lo])||ue(c,lo,so)),Zn(c,f,!0)),io&&"values"==o&&y&&"values"!==y.name&&(uo?kt(d,"name","values"):(p=!0,v=function(){return g(y,this)})),o)if(a={values:s("values"),keys:i?v:s("keys"),entries:s("entries")},u)for(l in a)(ao||p||!(l in d))&&ue(d,l,a[l]);else Me({target:e,proto:!0,forced:ao||p},a);d[lo]!==v&&ue(d,lo,v,{name:o}),bn[e]=v}(String,"String",(function(t){po(this,{type:"String Iterator",string:gr(t),index:0})}),(function(){var t,e=yo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=fo(r,n),e.index+=t.length,{value:t,done:!1})}));var vo={type:"paragraph",children:[{text:""}]};var ho={renderElems:[Je,Qe,Ze],elemsToHtml:[er,rr,nr],menus:[Yr,Kr],editorPlugin:function(t){var r=t.insertBreak,n=t.deleteBackward,a=t.insertDomElem,l=t.insertNode,s=t;return s.insertBreak=function(){var t=e.getSelectedNodeByType(s,"list-item");if(null!=t){var n=e.getParentNode(s,t),o=(null==n?void 0:n.children)||[];if(t===o[o.length-1])if(""===u.string(t))return i.removeNodes(s,{match:function(t){return e.checkNodeType(t,"list-item")}}),void i.insertNodes(s,vo,{mode:"highest"});r()}else r()},s.deleteBackward=function(t){var e=function(t){var e=ur(o.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),r=e[0];if(null==r)return!1;var n=r[0];return!(!c.isElement(n)||u.string(n)||!qe(n)||(i.unwrapNodes(t,{match:function(t){return qe(t)},split:!0}),i.setNodes(t,{type:"paragraph"}),0))}(s);e||n(t)},s.insertDomElem=function(t){var e=t.tagName.toLowerCase();if("ol"===e||"ul"===e){var r=[];Array.from(t.children).forEach((function(t){if("li"===t.tagName.toLowerCase()){var e=t.textContent;e&&r.push({type:"list-item",children:[{text:e}]})}})),0!==r.length&&(l({type:"ol"===e?"numbered-list":"bulleted-list",children:r}),i.insertNodes(s,vo,{mode:"highest"}))}else a(t)},s}};export{ho as default};
//# sourceMappingURL=index.esm.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@wangeditor/core"),require("snabbdom"),require("slate")):"function"==typeof define&&define.amd?define(["@wangeditor/core","snabbdom","slate"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorListModule=e(t.core,t.snabbdom,t.slate)}(this,(function(t,e,n){"use strict";t.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){var e={exports:{}};return t(e,e.exports),e.exports}var i,u,c=function(t){return t&&t.Math==Math&&t},a=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof r&&r)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(t){return!0}},s=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=Function.prototype.call,d=f.bind?f.bind(f):function(){return f.apply(f,arguments)},p={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,v={f:y&&!p.call({1:2},1)?function(t){var e=y(this,t);return!!e&&e.enumerable}:p},m=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,h=g.bind,b=g.call,w=h&&h.bind(b),O=h?function(t){return t&&w(b,t)}:function(t){return t&&function(){return b.apply(t,arguments)}},S=O({}.toString),E=O("".slice),x=function(t){return E(S(t),8,-1)},T=a.Object,j=O("".split),I=l((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?j(t,""):T(t)}:T,N=a.TypeError,P=function(t){if(null==t)throw N("Can't call method on "+t);return t},M=function(t){return I(P(t))},A=function(t){return"function"==typeof t},L=function(t){return"object"==typeof t?null!==t:A(t)},R=function(t){return A(t)?t:void 0},z=function(t,e){return arguments.length<2?R(a[t]):a[t]&&a[t][e]},_=O({}.isPrototypeOf),k=z("navigator","userAgent")||"",H=a.process,C=a.Deno,D=H&&H.versions||C&&C.version,B=D&&D.v8;B&&(u=(i=B.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&k&&(!(i=k.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=k.match(/Chrome\/(\d+)/))&&(u=+i[1]);var F=u,V=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&F&&F<41})),U=V&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=a.Object,q=U?function(t){return"symbol"==typeof t}:function(t){var e=z("Symbol");return A(e)&&_(e.prototype,W(t))},G=a.String,K=a.TypeError,Y=function(t){if(A(t))return t;throw K(function(t){try{return G(t)}catch(t){return"Object"}}(t)+" is not a function")},$=a.TypeError,X=Object.defineProperty,J=function(t,e){try{X(a,t,{value:e,configurable:!0,writable:!0})}catch(n){a[t]=e}return e},Q="__core-js_shared__",Z=a[Q]||J(Q,{}),tt=o((function(t){(t.exports=function(t,e){return Z[t]||(Z[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),et=a.Object,nt=O({}.hasOwnProperty),rt=Object.hasOwn||function(t,e){return nt(et(P(t)),e)},ot=0,it=Math.random(),ut=O(1..toString),ct=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ut(++ot+it,36)},at=tt("wks"),lt=a.Symbol,st=lt&&lt.for,ft=U?lt:lt&&lt.withoutSetter||ct,dt=function(t){if(!rt(at,t)||!V&&"string"!=typeof at[t]){var e="Symbol."+t;V&&rt(lt,t)?at[t]=lt[t]:at[t]=U&&st?st(e):ft(e)}return at[t]},pt=a.TypeError,yt=dt("toPrimitive"),vt=function(t,e){if(!L(t)||q(t))return t;var n,r,o=null==(n=t[yt])?void 0:Y(n);if(o){if(void 0===e&&(e="default"),r=d(o,t,e),!L(r)||q(r))return r;throw pt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&A(n=t.toString)&&!L(r=d(n,t)))return r;if(A(n=t.valueOf)&&!L(r=d(n,t)))return r;if("string"!==e&&A(n=t.toString)&&!L(r=d(n,t)))return r;throw $("Can't convert object to primitive value")}(t,e)},mt=function(t){var e=vt(t,"string");return q(e)?e:e+""},gt=a.document,ht=L(gt)&&L(gt.createElement),bt=function(t){return ht?gt.createElement(t):{}},wt=!s&&!l((function(){return 7!=Object.defineProperty(bt("div"),"a",{get:function(){return 7}}).a})),Ot=Object.getOwnPropertyDescriptor,St={f:s?Ot:function(t,e){if(t=M(t),e=mt(e),wt)try{return Ot(t,e)}catch(t){}if(rt(t,e))return m(!d(v.f,t,e),t[e])}},Et=a.String,xt=a.TypeError,Tt=function(t){if(L(t))return t;throw xt(Et(t)+" is not an object")},jt=a.TypeError,It=Object.defineProperty,Nt={f:s?It:function(t,e,n){if(Tt(t),e=mt(e),Tt(n),wt)try{return It(t,e,n)}catch(t){}if("get"in n||"set"in n)throw jt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Pt=s?function(t,e,n){return Nt.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},Mt=O(Function.toString);A(Z.inspectSource)||(Z.inspectSource=function(t){return Mt(t)});var At,Lt,Rt,zt=Z.inspectSource,_t=a.WeakMap,kt=A(_t)&&/native code/.test(zt(_t)),Ht=tt("keys"),Ct=function(t){return Ht[t]||(Ht[t]=ct(t))},Dt={},Bt="Object already initialized",Ft=a.TypeError,Vt=a.WeakMap;if(kt||Z.state){var Ut=Z.state||(Z.state=new Vt),Wt=O(Ut.get),qt=O(Ut.has),Gt=O(Ut.set);At=function(t,e){if(qt(Ut,t))throw new Ft(Bt);return e.facade=t,Gt(Ut,t,e),e},Lt=function(t){return Wt(Ut,t)||{}},Rt=function(t){return qt(Ut,t)}}else{var Kt=Ct("state");Dt[Kt]=!0,At=function(t,e){if(rt(t,Kt))throw new Ft(Bt);return e.facade=t,Pt(t,Kt,e),e},Lt=function(t){return rt(t,Kt)?t[Kt]:{}},Rt=function(t){return rt(t,Kt)}}var Yt,$t={set:At,get:Lt,has:Rt,enforce:function(t){return Rt(t)?Lt(t):At(t,{})},getterFor:function(t){return function(e){var n;if(!L(e)||(n=Lt(e)).type!==t)throw Ft("Incompatible receiver, "+t+" required");return n}}},Xt=Function.prototype,Jt=s&&Object.getOwnPropertyDescriptor,Qt=rt(Xt,"name"),Zt={EXISTS:Qt,PROPER:Qt&&"something"===function(){}.name,CONFIGURABLE:Qt&&(!s||s&&Jt(Xt,"name").configurable)},te=o((function(t){var e=Zt.CONFIGURABLE,n=$t.get,r=$t.enforce,o=String(String).split("String");(t.exports=function(t,n,i,u){var c,l=!!u&&!!u.unsafe,s=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet,d=u&&void 0!==u.name?u.name:n;A(i)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!rt(i,"name")||e&&i.name!==d)&&Pt(i,"name",d),(c=r(i)).source||(c.source=o.join("string"==typeof d?d:""))),t!==a?(l?!f&&t[n]&&(s=!0):delete t[n],s?t[n]=i:Pt(t,n,i)):s?t[n]=i:J(n,i)})(Function.prototype,"toString",(function(){return A(this)&&n(this).source||zt(this)}))})),ee=Math.ceil,ne=Math.floor,re=function(t){var e=+t;return e!=e||0===e?0:(e>0?ne:ee)(e)},oe=Math.max,ie=Math.min,ue=Math.min,ce=function(t){return(e=t.length)>0?ue(re(e),9007199254740991):0;var e},ae=function(t){return function(e,n,r){var o,i=M(e),u=ce(i),c=function(t,e){var n=re(t);return n<0?oe(n+e,0):ie(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},le={includes:ae(!0),indexOf:ae(!1)},se=le.indexOf,fe=O([].push),de=function(t,e){var n,r=M(t),o=0,i=[];for(n in r)!rt(Dt,n)&&rt(r,n)&&fe(i,n);for(;e.length>o;)rt(r,n=e[o++])&&(~se(i,n)||fe(i,n));return i},pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=pe.concat("length","prototype"),ve={f:Object.getOwnPropertyNames||function(t){return de(t,ye)}},me={f:Object.getOwnPropertySymbols},ge=O([].concat),he=z("Reflect","ownKeys")||function(t){var e=ve.f(Tt(t)),n=me.f;return n?ge(e,n(t)):e},be=function(t,e){for(var n=he(e),r=Nt.f,o=St.f,i=0;i<n.length;i++){var u=n[i];rt(t,u)||r(t,u,o(e,u))}},we=/#|\.prototype\./,Oe=function(t,e){var n=Ee[Se(t)];return n==Te||n!=xe&&(A(e)?l(e):!!e)},Se=Oe.normalize=function(t){return String(t).replace(we,".").toLowerCase()},Ee=Oe.data={},xe=Oe.NATIVE="N",Te=Oe.POLYFILL="P",je=Oe,Ie=St.f,Ne=function(t,e){var n,r,o,i,u,c=t.target,l=t.global,s=t.stat;if(n=l?a:s?a[c]||J(c,{}):(a[c]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Ie(n,r))&&u.value:n[r],!je(l?r:c+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;be(i,o)}(t.sham||o&&o.sham)&&Pt(i,"sham",!0),te(n,r,i,t)}},Pe=Object.keys||function(t){return de(t,pe)},Me=s?Object.defineProperties:function(t,e){Tt(t);for(var n,r=M(e),o=Pe(e),i=o.length,u=0;i>u;)Nt.f(t,n=o[u++],r[n]);return t},Ae=z("document","documentElement"),Le=Ct("IE_PROTO"),Re=function(){},ze=function(t){return"<script>"+t+"</"+"script>"},_e=function(t){t.write(ze("")),t.close();var e=t.parentWindow.Object;return t=null,e},ke=function(){try{Yt=new ActiveXObject("htmlfile")}catch(t){}var t,e;ke="undefined"!=typeof document?document.domain&&Yt?_e(Yt):((e=bt("iframe")).style.display="none",Ae.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ze("document.F=Object")),t.close(),t.F):_e(Yt);for(var n=pe.length;n--;)delete ke.prototype[pe[n]];return ke()};Dt[Le]=!0;var He=Object.create||function(t,e){var n;return null!==t?(Re.prototype=Tt(t),n=new Re,Re.prototype=null,n[Le]=t):n=ke(),void 0===e?n:Me(n,e)},Ce=dt("unscopables"),De=Array.prototype;null==De[Ce]&&Nt.f(De,Ce,{configurable:!0,value:He(null)});var Be,Fe=le.includes;function Ve(t){if("bulleted-list"===t)return"ul";if("numbered-list"===t)return"ol";if("list-item"===t)return"li";throw new Error("list type '"+t+"' is invalid")}function Ue(e){var n=t.DomEditor.getNodeType(e);return["bulleted-list","numbered-list"].includes(n)}function We(t){return function(n,r,o){var i=Ve(t);return e.jsx(i,null,r)}}Ne({target:"Array",proto:!0},{includes:function(t){return Fe(this,t,arguments.length>1?arguments[1]:void 0)}}),Be="includes",De[Ce][Be]=!0;var qe={type:"bulleted-list",renderElem:We("bulleted-list")},Ge={type:"numbered-list",renderElem:We("numbered-list")},Ke={type:"list-item",renderElem:We("list-item")};function Ye(t){var e=Ve(t);return function(t,n){return"<"+e+">"+n+"</"+e+">"}}var $e={type:"bulleted-list",elemToHtml:Ye("bulleted-list")},Xe={type:"numbered-list",elemToHtml:Ye("numbered-list")},Je={type:"list-item",elemToHtml:Ye("list-item")},Qe=function(t,e){return Qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},Qe(t,e)};function Ze(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Qe(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function tn(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return u}var en={};en[dt("toStringTag")]="z";var nn="[object z]"===String(en),rn=dt("toStringTag"),on=a.Object,un="Arguments"==x(function(){return arguments}()),cn=nn?x:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=on(t),rn))?n:un?x(e):"Object"==(r=x(e))&&A(e.callee)?"Arguments":r},an=nn?{}.toString:function(){return"[object "+cn(this)+"]"};nn||te(Object.prototype,"toString",an,{unsafe:!0});var ln,sn,fn=a.String,dn=function(){var t=Tt(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},pn=a.RegExp,yn=l((function(){var t=pn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),vn=yn||l((function(){return!pn("a","y").sticky})),mn={BROKEN_CARET:yn||l((function(){var t=pn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:vn,UNSUPPORTED_Y:yn},gn=a.RegExp,hn=l((function(){var t=gn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),bn=a.RegExp,wn=l((function(){var t=bn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),On=$t.get,Sn=tt("native-string-replace",String.prototype.replace),En=RegExp.prototype.exec,xn=En,Tn=O("".charAt),jn=O("".indexOf),In=O("".replace),Nn=O("".slice),Pn=(sn=/b*/g,d(En,ln=/a/,"a"),d(En,sn,"a"),0!==ln.lastIndex||0!==sn.lastIndex),Mn=mn.BROKEN_CARET,An=void 0!==/()??/.exec("")[1];(Pn||An||Mn||hn||wn)&&(xn=function(t){var e,n,r,o,i,u,c,a=this,l=On(a),s=function(t){if("Symbol"===cn(t))throw TypeError("Cannot convert a Symbol value to a string");return fn(t)}(t),f=l.raw;if(f)return f.lastIndex=a.lastIndex,e=d(xn,f,s),a.lastIndex=f.lastIndex,e;var p=l.groups,y=Mn&&a.sticky,v=d(dn,a),m=a.source,g=0,h=s;if(y&&(v=In(v,"y",""),-1===jn(v,"g")&&(v+="g"),h=Nn(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Tn(s,a.lastIndex-1))&&(m="(?: "+m+")",h=" "+h,g++),n=new RegExp("^(?:"+m+")",v)),An&&(n=new RegExp("^"+m+"$(?!\\s)",v)),Pn&&(r=a.lastIndex),o=d(En,y?n:a,h),y?o?(o.input=Nn(o.input,g),o[0]=Nn(o[0],g),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Pn&&o&&(a.lastIndex=a.global?o.index+o[0].length:r),An&&o&&o.length>1&&d(Sn,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=u=He(null),i=0;i<p.length;i++)u[(c=p[i])[0]]=o[c[1]];return o});Ne({target:"RegExp",proto:!0,forced:/./.exec!==xn},{exec:xn});var Ln=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(e){var n=this.type;return t.DomEditor.getSelectedNodeByType(e,n)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!this.getListNode(t)},e.prototype.isDisabled=function(e){return null==e.selection||!!t.DomEditor.getSelectedElems(e).some((function(t){if(n.Editor.isVoid(e,t)&&n.Editor.isBlock(e,t))return!0;var r=t.type;return!!["pre","code","table"].includes(r)||void 0}))},e.prototype.getMatchListType=function(e){var r=tn(n.Editor.nodes(e,{match:function(t){return Ue(t)},universal:!0}),1),o=r[0];if(null==o)return"";var i=tn(o,1)[0];return t.DomEditor.getNodeType(i)},e.prototype.exec=function(t,e){var r=this.type,o=this.isActive(t);n.Transforms.unwrapNodes(t,{match:function(t){return Ue(t)},split:!0}),n.Transforms.setNodes(t,{type:o?"paragraph":"list-item"});var i={type:r,children:[]};o||n.Transforms.wrapNodes(t,i);var u=this.getMatchListType(t);""!=u&&u!==r&&n.Transforms.wrapNodes(t,i)},e}(),Rn='<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>',zn='<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=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type="bulleted-list",n.title=t.t("listModule.unOrderedList"),n.iconSvg=Rn,n}return Ze(n,e),n}(Ln),kn=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type="numbered-list",n.title=t.t("listModule.orderedList"),n.iconSvg=zn,n}return Ze(n,e),n}(Ln);return{renderElems:[qe,Ge,Ke],elemsToHtml:[$e,Xe,Je],menus:[{key:"bulletedList",factory:function(){return new _n}},{key:"numberedList",factory:function(){return new kn}}],editorPlugin:function(e){var r=e.insertBreak,o=e.deleteBackward,i=e;return i.insertBreak=function(){var e=t.DomEditor.getSelectedNodeByType(i,"list-item");if(null!=e){var o=t.DomEditor.getParentNode(i,e),u=(null==o?void 0:o.children)||[];if(e===u[u.length-1])if(""===n.Node.string(e)){n.Transforms.removeNodes(i,{match:function(e){return t.DomEditor.checkNodeType(e,"list-item")}});return void n.Transforms.insertNodes(i,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r()}else r()},i.deleteBackward=function(t){var e=function(t){var e=tn(n.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),r=e[0];if(null==r)return!1;var o=r[0];return!(!n.Element.isElement(o)||n.Node.string(o)||!Ue(o)||(n.Transforms.unwrapNodes(t,{match:function(t){return Ue(t)},split:!0}),n.Transforms.setNodes(t,{type:"paragraph"}),0))}(i);e||o(t)},i}}}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@wangeditor/core"),require("snabbdom"),require("slate")):"function"==typeof define&&define.amd?define(["@wangeditor/core","snabbdom","slate"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorListModule=e(t.core,t.snabbdom,t.slate)}(this,(function(t,e,r){"use strict";t.i18nAddResources("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),t.i18nAddResources("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){var e={exports:{}};return t(e,e.exports),e.exports}var i,u,c=function(t){return t&&t.Math==Math&&t},a=c("object"==typeof globalThis&&globalThis)||c("object"==typeof window&&window)||c("object"==typeof self&&self)||c("object"==typeof n&&n)||function(){return this}()||Function("return this")(),s=function(t){try{return!!t()}catch(t){return!0}},l=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),f=Function.prototype.call,p=f.bind?f.bind(f):function(){return f.apply(f,arguments)},d={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,v={f:y&&!d.call({1:2},1)?function(t){var e=y(this,t);return!!e&&e.enumerable}:d},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=Function.prototype,m=g.bind,b=g.call,w=m&&m.bind(b),S=m?function(t){return t&&w(b,t)}:function(t){return t&&function(){return b.apply(t,arguments)}},O=S({}.toString),E=S("".slice),x=function(t){return E(O(t),8,-1)},T=a.Object,j=S("".split),L=s((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?j(t,""):T(t)}:T,A=a.TypeError,P=function(t){if(null==t)throw A("Can't call method on "+t);return t},I=function(t){return L(P(t))},N=function(t){return"function"==typeof t},R=function(t){return"object"==typeof t?null!==t:N(t)},_=function(t){return N(t)?t:void 0},M=function(t,e){return arguments.length<2?_(a[t]):a[t]&&a[t][e]},C=S({}.isPrototypeOf),k=M("navigator","userAgent")||"",D=a.process,F=a.Deno,H=D&&D.versions||F&&F.version,z=H&&H.v8;z&&(u=(i=z.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!u&&k&&(!(i=k.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=k.match(/Chrome\/(\d+)/))&&(u=+i[1]);var B=u,G=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&B&&B<41})),V=G&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,U=a.Object,q=V?function(t){return"symbol"==typeof t}:function(t){var e=M("Symbol");return N(e)&&C(e.prototype,U(t))},W=a.String,Y=function(t){try{return W(t)}catch(t){return"Object"}},K=a.TypeError,$=function(t){if(N(t))return t;throw K(Y(t)+" is not a function")},X=function(t,e){var r=t[e];return null==r?void 0:$(r)},J=a.TypeError,Q=Object.defineProperty,Z=function(t,e){try{Q(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},tt="__core-js_shared__",et=a[tt]||Z(tt,{}),rt=o((function(t){(t.exports=function(t,e){return et[t]||(et[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),nt=a.Object,ot=function(t){return nt(P(t))},it=S({}.hasOwnProperty),ut=Object.hasOwn||function(t,e){return it(ot(t),e)},ct=0,at=Math.random(),st=S(1..toString),lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+st(++ct+at,36)},ft=rt("wks"),pt=a.Symbol,dt=pt&&pt.for,yt=V?pt:pt&&pt.withoutSetter||lt,vt=function(t){if(!ut(ft,t)||!G&&"string"!=typeof ft[t]){var e="Symbol."+t;G&&ut(pt,t)?ft[t]=pt[t]:ft[t]=V&&dt?dt(e):yt(e)}return ft[t]},ht=a.TypeError,gt=vt("toPrimitive"),mt=function(t,e){if(!R(t)||q(t))return t;var r,n=X(t,gt);if(n){if(void 0===e&&(e="default"),r=p(n,t,e),!R(r)||q(r))return r;throw ht("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&N(r=t.toString)&&!R(n=p(r,t)))return n;if(N(r=t.valueOf)&&!R(n=p(r,t)))return n;if("string"!==e&&N(r=t.toString)&&!R(n=p(r,t)))return n;throw J("Can't convert object to primitive value")}(t,e)},bt=function(t){var e=mt(t,"string");return q(e)?e:e+""},wt=a.document,St=R(wt)&&R(wt.createElement),Ot=function(t){return St?wt.createElement(t):{}},Et=!l&&!s((function(){return 7!=Object.defineProperty(Ot("div"),"a",{get:function(){return 7}}).a})),xt=Object.getOwnPropertyDescriptor,Tt={f:l?xt:function(t,e){if(t=I(t),e=bt(e),Et)try{return xt(t,e)}catch(t){}if(ut(t,e))return h(!p(v.f,t,e),t[e])}},jt=a.String,Lt=a.TypeError,At=function(t){if(R(t))return t;throw Lt(jt(t)+" is not an object")},Pt=a.TypeError,It=Object.defineProperty,Nt={f:l?It:function(t,e,r){if(At(t),e=bt(e),At(r),Et)try{return It(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Pt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Rt=l?function(t,e,r){return Nt.f(t,e,h(1,r))}:function(t,e,r){return t[e]=r,t},_t=S(Function.toString);N(et.inspectSource)||(et.inspectSource=function(t){return _t(t)});var Mt,Ct,kt,Dt=et.inspectSource,Ft=a.WeakMap,Ht=N(Ft)&&/native code/.test(Dt(Ft)),zt=rt("keys"),Bt=function(t){return zt[t]||(zt[t]=lt(t))},Gt={},Vt="Object already initialized",Ut=a.TypeError,qt=a.WeakMap;if(Ht||et.state){var Wt=et.state||(et.state=new qt),Yt=S(Wt.get),Kt=S(Wt.has),$t=S(Wt.set);Mt=function(t,e){if(Kt(Wt,t))throw new Ut(Vt);return e.facade=t,$t(Wt,t,e),e},Ct=function(t){return Yt(Wt,t)||{}},kt=function(t){return Kt(Wt,t)}}else{var Xt=Bt("state");Gt[Xt]=!0,Mt=function(t,e){if(ut(t,Xt))throw new Ut(Vt);return e.facade=t,Rt(t,Xt,e),e},Ct=function(t){return ut(t,Xt)?t[Xt]:{}},kt=function(t){return ut(t,Xt)}}var Jt,Qt={set:Mt,get:Ct,has:kt,enforce:function(t){return kt(t)?Ct(t):Mt(t,{})},getterFor:function(t){return function(e){var r;if(!R(e)||(r=Ct(e)).type!==t)throw Ut("Incompatible receiver, "+t+" required");return r}}},Zt=Function.prototype,te=l&&Object.getOwnPropertyDescriptor,ee=ut(Zt,"name"),re={EXISTS:ee,PROPER:ee&&"something"===function(){}.name,CONFIGURABLE:ee&&(!l||l&&te(Zt,"name").configurable)},ne=o((function(t){var e=re.CONFIGURABLE,r=Qt.get,n=Qt.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var c,s=!!u&&!!u.unsafe,l=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet,p=u&&void 0!==u.name?u.name:r;N(i)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ut(i,"name")||e&&i.name!==p)&&Rt(i,"name",p),(c=n(i)).source||(c.source=o.join("string"==typeof p?p:""))),t!==a?(s?!f&&t[r]&&(l=!0):delete t[r],l?t[r]=i:Rt(t,r,i)):l?t[r]=i:Z(r,i)})(Function.prototype,"toString",(function(){return N(this)&&r(this).source||Dt(this)}))})),oe=Math.ceil,ie=Math.floor,ue=function(t){var e=+t;return e!=e||0===e?0:(e>0?ie:oe)(e)},ce=Math.max,ae=Math.min,se=Math.min,le=function(t){return(e=t.length)>0?se(ue(e),9007199254740991):0;var e},fe=function(t){return function(e,r,n){var o,i=I(e),u=le(i),c=function(t,e){var r=ue(t);return r<0?ce(r+e,0):ae(r,e)}(n,u);if(t&&r!=r){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},pe={includes:fe(!0),indexOf:fe(!1)},de=pe.indexOf,ye=S([].push),ve=function(t,e){var r,n=I(t),o=0,i=[];for(r in n)!ut(Gt,r)&&ut(n,r)&&ye(i,r);for(;e.length>o;)ut(n,r=e[o++])&&(~de(i,r)||ye(i,r));return i},he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ge=he.concat("length","prototype"),me={f:Object.getOwnPropertyNames||function(t){return ve(t,ge)}},be={f:Object.getOwnPropertySymbols},we=S([].concat),Se=M("Reflect","ownKeys")||function(t){var e=me.f(At(t)),r=be.f;return r?we(e,r(t)):e},Oe=function(t,e){for(var r=Se(e),n=Nt.f,o=Tt.f,i=0;i<r.length;i++){var u=r[i];ut(t,u)||n(t,u,o(e,u))}},Ee=/#|\.prototype\./,xe=function(t,e){var r=je[Te(t)];return r==Ae||r!=Le&&(N(e)?s(e):!!e)},Te=xe.normalize=function(t){return String(t).replace(Ee,".").toLowerCase()},je=xe.data={},Le=xe.NATIVE="N",Ae=xe.POLYFILL="P",Pe=xe,Ie=Tt.f,Ne=function(t,e){var r,n,o,i,u,c=t.target,s=t.global,l=t.stat;if(r=s?a:l?a[c]||Z(c,{}):(a[c]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=Ie(r,n))&&u.value:r[n],!Pe(s?n:c+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Oe(i,o)}(t.sham||o&&o.sham)&&Rt(i,"sham",!0),ne(r,n,i,t)}},Re=Object.keys||function(t){return ve(t,he)},_e=l?Object.defineProperties:function(t,e){At(t);for(var r,n=I(e),o=Re(e),i=o.length,u=0;i>u;)Nt.f(t,r=o[u++],n[r]);return t},Me=M("document","documentElement"),Ce=Bt("IE_PROTO"),ke=function(){},De=function(t){return"<script>"+t+"</"+"script>"},Fe=function(t){t.write(De("")),t.close();var e=t.parentWindow.Object;return t=null,e},He=function(){try{Jt=new ActiveXObject("htmlfile")}catch(t){}var t,e;He="undefined"!=typeof document?document.domain&&Jt?Fe(Jt):((e=Ot("iframe")).style.display="none",Me.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(De("document.F=Object")),t.close(),t.F):Fe(Jt);for(var r=he.length;r--;)delete He.prototype[he[r]];return He()};Gt[Ce]=!0;var ze=Object.create||function(t,e){var r;return null!==t?(ke.prototype=At(t),r=new ke,ke.prototype=null,r[Ce]=t):r=He(),void 0===e?r:_e(r,e)},Be=vt("unscopables"),Ge=Array.prototype;null==Ge[Be]&&Nt.f(Ge,Be,{configurable:!0,value:ze(null)});var Ve,Ue=pe.includes;function qe(t){if("bulleted-list"===t)return"ul";if("numbered-list"===t)return"ol";if("list-item"===t)return"li";throw new Error("list type '"+t+"' is invalid")}function We(e){var r=t.DomEditor.getNodeType(e);return["bulleted-list","numbered-list"].includes(r)}function Ye(t){return function(r,n,o){var i=qe(t);return e.jsx(i,null,n)}}Ne({target:"Array",proto:!0},{includes:function(t){return Ue(this,t,arguments.length>1?arguments[1]:void 0)}}),Ve="includes",Ge[Be][Ve]=!0;var Ke={type:"bulleted-list",renderElem:Ye("bulleted-list")},$e={type:"numbered-list",renderElem:Ye("numbered-list")},Xe={type:"list-item",renderElem:Ye("list-item")};function Je(t){var e=qe(t);return function(t,r){return"<"+e+">"+r+"</"+e+">"}}var Qe={type:"bulleted-list",elemToHtml:Je("bulleted-list")},Ze={type:"numbered-list",elemToHtml:Je("numbered-list")},tr={type:"list-item",elemToHtml:Je("list-item")},er=function(t,e){return er=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])},er(t,e)};function rr(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}er(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function nr(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}var or={};or[vt("toStringTag")]="z";var ir="[object z]"===String(or),ur=vt("toStringTag"),cr=a.Object,ar="Arguments"==x(function(){return arguments}()),sr=ir?x: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=cr(t),ur))?r:ar?x(e):"Object"==(n=x(e))&&N(e.callee)?"Arguments":n},lr=ir?{}.toString:function(){return"[object "+sr(this)+"]"};ir||ne(Object.prototype,"toString",lr,{unsafe:!0});var fr,pr,dr=a.String,yr=function(t){if("Symbol"===sr(t))throw TypeError("Cannot convert a Symbol value to a string");return dr(t)},vr=function(){var t=At(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},hr=a.RegExp,gr=s((function(){var t=hr("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),mr=gr||s((function(){return!hr("a","y").sticky})),br={BROKEN_CARET:gr||s((function(){var t=hr("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:mr,UNSUPPORTED_Y:gr},wr=a.RegExp,Sr=s((function(){var t=wr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Or=a.RegExp,Er=s((function(){var t=Or("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),xr=Qt.get,Tr=rt("native-string-replace",String.prototype.replace),jr=RegExp.prototype.exec,Lr=jr,Ar=S("".charAt),Pr=S("".indexOf),Ir=S("".replace),Nr=S("".slice),Rr=(pr=/b*/g,p(jr,fr=/a/,"a"),p(jr,pr,"a"),0!==fr.lastIndex||0!==pr.lastIndex),_r=br.BROKEN_CARET,Mr=void 0!==/()??/.exec("")[1];(Rr||Mr||_r||Sr||Er)&&(Lr=function(t){var e,r,n,o,i,u,c,a=this,s=xr(a),l=yr(t),f=s.raw;if(f)return f.lastIndex=a.lastIndex,e=p(Lr,f,l),a.lastIndex=f.lastIndex,e;var d=s.groups,y=_r&&a.sticky,v=p(vr,a),h=a.source,g=0,m=l;if(y&&(v=Ir(v,"y",""),-1===Pr(v,"g")&&(v+="g"),m=Nr(l,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Ar(l,a.lastIndex-1))&&(h="(?: "+h+")",m=" "+m,g++),r=new RegExp("^(?:"+h+")",v)),Mr&&(r=new RegExp("^"+h+"$(?!\\s)",v)),Rr&&(n=a.lastIndex),o=p(jr,y?r:a,m),y?o?(o.input=Nr(o.input,g),o[0]=Nr(o[0],g),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Rr&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Mr&&o&&o.length>1&&p(Tr,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=ze(null),i=0;i<d.length;i++)u[(c=d[i])[0]]=o[c[1]];return o});Ne({target:"RegExp",proto:!0,forced:/./.exec!==Lr},{exec:Lr});var Cr,kr,Dr=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(e){var r=this.type;return t.DomEditor.getSelectedNodeByType(e,r)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!this.getListNode(t)},e.prototype.isDisabled=function(e){return null==e.selection||!!t.DomEditor.getSelectedElems(e).some((function(t){if(r.Editor.isVoid(e,t)&&r.Editor.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.getMatchListType=function(e){var n=nr(r.Editor.nodes(e,{match:function(t){return We(t)},universal:!0}),1),o=n[0];if(null==o)return"";var i=nr(o,1)[0];return t.DomEditor.getNodeType(i)},e.prototype.exec=function(t,e){var n=this.type,o=this.isActive(t);r.Transforms.unwrapNodes(t,{match:function(t){return We(t)},split:!0}),r.Transforms.setNodes(t,{type:o?"paragraph":"list-item"});var i={type:n,children:[]};o||r.Transforms.wrapNodes(t,i);var u=this.getMatchListType(t);""!=u&&u!==n&&r.Transforms.wrapNodes(t,i)},e}(),Fr='<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>',Hr='<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>',zr=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.type="bulleted-list",r.title=t.t("listModule.unOrderedList"),r.iconSvg=Fr,r}return rr(r,e),r}(Dr),Br=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.type="numbered-list",r.title=t.t("listModule.orderedList"),r.iconSvg=Hr,r}return rr(r,e),r}(Dr),Gr={key:"bulletedList",factory:function(){return new zr}},Vr={key:"numberedList",factory:function(){return new Br}},Ur={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},qr=Ot("span").classList,Wr=qr&&qr.constructor&&qr.constructor.prototype,Yr=Wr===Object.prototype?void 0:Wr,Kr=S(S.bind),$r=function(t,e){return $(t),void 0===e?t:Kr?Kr(t,e):function(){return t.apply(e,arguments)}},Xr=Array.isArray||function(t){return"Array"==x(t)},Jr=function(){},Qr=[],Zr=M("Reflect","construct"),tn=/^\s*(?:class|function)\b/,en=S(tn.exec),rn=!tn.exec(Jr),nn=function(t){if(!N(t))return!1;try{return Zr(Jr,Qr,t),!0}catch(t){return!1}},on=!Zr||s((function(){var t;return nn(nn.call)||!nn(Object)||!nn((function(){t=!0}))||t}))?function(t){if(!N(t))return!1;switch(sr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rn||!!en(tn,Dt(t))}:nn,un=vt("species"),cn=a.Array,an=function(t,e){return new(function(t){var e;return Xr(t)&&(e=t.constructor,(on(e)&&(e===cn||Xr(e.prototype))||R(e)&&null===(e=e[un]))&&(e=void 0)),void 0===e?cn:e}(t))(0===e?0:e)},sn=S([].push),ln=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,c=5==t||i;return function(a,s,l,f){for(var p,d,y=ot(a),v=L(y),h=$r(s,l),g=le(v),m=0,b=f||an,w=e?b(a,g):r||u?b(a,0):void 0;g>m;m++)if((c||m in v)&&(d=h(p=v[m],m,y),t))if(e)w[m]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:sn(w,p)}else switch(t){case 4:return!1;case 7:sn(w,p)}return i?-1:n||o?o:w}},fn={forEach:ln(0),map:ln(1),filter:ln(2),some:ln(3),every:ln(4),find:ln(5),findIndex:ln(6),filterReject:ln(7)}.forEach,pn=!!(kr=[]["forEach"])&&s((function(){kr.call(null,Cr||function(){throw 1},1)}))?[].forEach:function(t){return fn(this,t,arguments.length>1?arguments[1]:void 0)},dn=function(t){if(t&&t.forEach!==pn)try{Rt(t,"forEach",pn)}catch(e){t.forEach=pn}};for(var yn in Ur)Ur[yn]&&dn(a[yn]&&a[yn].prototype);dn(Yr);var vn=function(t,e,r,n){try{return n?e(At(r)[0],r[1]):e(r)}catch(e){!function(t,e,r){var n,o;At(t);try{if(!(n=X(t,"return"))){if("throw"===e)throw r;return r}n=p(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;At(n)}(t,"throw",e)}},hn={},gn=vt("iterator"),mn=Array.prototype,bn=function(t){return void 0!==t&&(hn.Array===t||mn[gn]===t)},wn=function(t,e,r){var n=bt(e);n in t?Nt.f(t,n,h(0,r)):t[n]=r},Sn=vt("iterator"),On=function(t){if(null!=t)return X(t,Sn)||X(t,"@@iterator")||hn[sr(t)]},En=a.TypeError,xn=function(t,e){var r=arguments.length<2?On(t):e;if($(r))return At(p(r,t));throw En(Y(t)+" is not iterable")},Tn=a.Array,jn=vt("iterator"),Ln=!1;try{var An=0,Pn={next:function(){return{done:!!An++}},return:function(){Ln=!0}};Pn[jn]=function(){return this},Array.from(Pn,(function(){throw 2}))}catch(t){}var In=!function(t,e){if(!e&&!Ln)return!1;var r=!1;try{var n={};n[jn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){Array.from(t)}));Ne({target:"Array",stat:!0,forced:In},{from:function(t){var e=ot(t),r=on(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=$r(o,n>2?arguments[2]:void 0));var u,c,a,s,l,f,d=On(e),y=0;if(!d||this==Tn&&bn(d))for(u=le(e),c=r?new this(u):Tn(u);u>y;y++)f=i?o(e[y],y):e[y],wn(c,y,f);else for(l=(s=xn(e,d)).next,c=r?new this:[];!(a=p(l,s)).done;y++)f=i?vn(s,o,[a.value,y],!0):a.value,wn(c,y,f);return c.length=y,c}});var Nn,Rn,_n,Mn=S("".charAt),Cn=S("".charCodeAt),kn=S("".slice),Dn=function(t){return function(e,r){var n,o,i=yr(P(e)),u=ue(r),c=i.length;return u<0||u>=c?t?"":void 0:(n=Cn(i,u))<55296||n>56319||u+1===c||(o=Cn(i,u+1))<56320||o>57343?t?Mn(i,u):n:t?kn(i,u,u+2):o-56320+(n-55296<<10)+65536}},Fn={codeAt:Dn(!1),charAt:Dn(!0)},Hn=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),zn=Bt("IE_PROTO"),Bn=a.Object,Gn=Bn.prototype,Vn=Hn?Bn.getPrototypeOf:function(t){var e=ot(t);if(ut(e,zn))return e[zn];var r=e.constructor;return N(r)&&e instanceof r?r.prototype:e instanceof Bn?Gn:null},Un=vt("iterator"),qn=!1;[].keys&&("next"in(_n=[].keys())?(Rn=Vn(Vn(_n)))!==Object.prototype&&(Nn=Rn):qn=!0);var Wn=null==Nn||s((function(){var t={};return Nn[Un].call(t)!==t}));Wn&&(Nn={}),N(Nn[Un])||ne(Nn,Un,(function(){return this}));var Yn={IteratorPrototype:Nn,BUGGY_SAFARI_ITERATORS:qn},Kn=Nt.f,$n=vt("toStringTag"),Xn=function(t,e,r){t&&!ut(t=r?t:t.prototype,$n)&&Kn(t,$n,{configurable:!0,value:e})},Jn=Yn.IteratorPrototype,Qn=function(){return this},Zn=a.String,to=a.TypeError,eo=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=S(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return At(r),function(t){if("object"==typeof t||N(t))return t;throw to("Can't set "+Zn(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),ro=re.PROPER,no=re.CONFIGURABLE,oo=Yn.IteratorPrototype,io=Yn.BUGGY_SAFARI_ITERATORS,uo=vt("iterator"),co="keys",ao="values",so="entries",lo=function(){return this},fo=Fn.charAt,po="String Iterator",yo=Qt.set,vo=Qt.getterFor(po);!function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=ze(Jn,{next:h(+!n,r)}),Xn(t,o,!1),hn[o]=Qn}(r,e,n);var c,a,s,l=function(t){if(t===o&&g)return g;if(!io&&t in y)return y[t];switch(t){case co:case ao:case so:return function(){return new r(this,t)}}return function(){return new r(this)}},f=e+" Iterator",d=!1,y=t.prototype,v=y[uo]||y["@@iterator"]||o&&y[o],g=!io&&v||l(o),m="Array"==e&&y.entries||v;if(m&&(c=Vn(m.call(new t)))!==Object.prototype&&c.next&&(Vn(c)!==oo&&(eo?eo(c,oo):N(c[uo])||ne(c,uo,lo)),Xn(c,f,!0)),ro&&o==ao&&v&&v.name!==ao&&(no?Rt(y,"name",ao):(d=!0,g=function(){return p(v,this)})),o)if(a={values:l(ao),keys:i?g:l(co),entries:l(so)},u)for(s in a)(io||d||!(s in y))&&ne(y,s,a[s]);else Ne({target:e,proto:!0,forced:io||d},a);y[uo]!==g&&ne(y,uo,g,{name:o}),hn[e]=g}(String,"String",(function(t){yo(this,{type:po,string:yr(t),index:0})}),(function(){var t,e=vo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=fo(r,n),e.index+=t.length,{value:t,done:!1})}));var ho={type:"paragraph",children:[{text:""}]};return{renderElems:[Ke,$e,Xe],elemsToHtml:[Qe,Ze,tr],menus:[Gr,Vr],editorPlugin:function(e){var n=e.insertBreak,o=e.deleteBackward,i=e.insertDomElem,u=e.insertNode,c=e;return c.insertBreak=function(){var e=t.DomEditor.getSelectedNodeByType(c,"list-item");if(null!=e){var o=t.DomEditor.getParentNode(c,e),i=(null==o?void 0:o.children)||[];if(e===i[i.length-1])if(""===r.Node.string(e))return r.Transforms.removeNodes(c,{match:function(e){return t.DomEditor.checkNodeType(e,"list-item")}}),void r.Transforms.insertNodes(c,ho,{mode:"highest"});n()}else n()},c.deleteBackward=function(t){var e=function(t){var e=nr(r.Editor.nodes(t,{match:function(e){return t.children[0]===e},mode:"highest"}),1),n=e[0];if(null==n)return!1;var o=n[0];return!(!r.Element.isElement(o)||r.Node.string(o)||!We(o)||(r.Transforms.unwrapNodes(t,{match:function(t){return We(t)},split:!0}),r.Transforms.setNodes(t,{type:"paragraph"}),0))}(c);e||o(t)},c.insertDomElem=function(t){var e=t.tagName.toLowerCase();if("ol"===e||"ul"===e){var n=[];Array.from(t.children).forEach((function(t){if("li"===t.tagName.toLowerCase()){var e=t.textContent;e&&n.push({type:"list-item",children:[{text:e}]})}})),0!==n.length&&(u({type:"ol"===e?"numbered-list":"bulleted-list",children:n}),r.Transforms.insertNodes(c,ho,{mode:"highest"}))}else i(t)},c}}}));
//# sourceMappingURL=index.js.map
{
"name": "@wangeditor/list-module",
"version": "0.7.12",
"version": "0.7.13",
"description": "wangEditor list module",

@@ -50,3 +50,3 @@ "author": "wangfupeng1988 <wangfupeng1988@163.com>",

},
"gitHead": "338d14e5c6dbf6e363f93da2a0f5b80078bae5fa"
"gitHead": "d1ef5c41cda1f3de94321dfd15ab65c42e4d7f8c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc