mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 02:12:53 +00:00
76 lines
60 KiB
JavaScript
Vendored
76 lines
60 KiB
JavaScript
Vendored
import{c as it,g as at}from"./@babel.f9bcab46.js";var G={exports:{}};(function($,ut){(function(_,s){$.exports=s()})(it,function(){return function(_){var s={};function p(l){if(s[l])return s[l].exports;var f=s[l]={i:l,l:!1,exports:{}};return _[l].call(f.exports,f,f.exports,p),f.l=!0,f.exports}return p.m=_,p.c=s,p.d=function(l,f,c){p.o(l,f)||Object.defineProperty(l,f,{enumerable:!0,get:c})},p.r=function(l){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},p.t=function(l,f){if(1&f&&(l=p(l)),8&f||4&f&&typeof l=="object"&&l&&l.__esModule)return l;var c=Object.create(null);if(p.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:l}),2&f&&typeof l!="string")for(var i in l)p.d(c,i,function(t){return l[t]}.bind(null,i));return c},p.n=function(l){var f=l&&l.__esModule?function(){return l.default}:function(){return l};return p.d(f,"a",f),f},p.o=function(l,f){return Object.prototype.hasOwnProperty.call(l,f)},p.p="",p(p.s=46)}([function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(1),f=p(12),c=p(6),i=p(7),t=p(2),e=function(){function o(n,a,r){var u=r===void 0?{}:r,h=u.keepSpace,d=h!==void 0&&h,y=u.prevTagName,v=y===void 0?"":y,g=u.nextTagName,b=g===void 0?"":g,O=u.prevTagStr,T=O===void 0?"":O,x=u.nextTagStr,j=x===void 0?"":x,P=u.parentTag,S=P===void 0?"":P,m=u.isFirstSubTag,w=m===void 0||m,M=u.calcLeading,E=M!==void 0&&M,C=u.leadingSpace,N=C===void 0?"":C,L=u.layer,J=L===void 0?1:L,A=u.noWrap,z=A!==void 0&&A,H=u.prevHasEndSpace,K=H!==void 0&&H,W=u.prevHasStartSpace,Y=W!==void 0&&W,V=u.match,Z=V===void 0?null:V,R=u.indentSpace,Q=R===void 0?"":R,I=u.language,X=I===void 0?"":I,D=u.count,tt=D===void 0?1:D,q=u.tableColumnCount,et=q===void 0?0:q,U=u.noExtraLine,nt=U!==void 0&&U,B=u.inTable,ot=B!==void 0&&B;if(this.tagName=a,this.rawStr=n,this.parentTag=S,this.prevTagName=v,this.nextTagName=b,this.prevTagStr=T,this.nextTagStr=j,this.isFirstSubTag=w,this.calcLeading=E,this.leadingSpace=N,this.layer=J,this.noWrap=z,this.match=Z,this.indentSpace=Q,this.language=X,this.count=tt,this.inTable=ot,this.tableColumnCount=et,this.noExtraLine=nt,this.prevHasEndSpace=K,this.prevHasStartSpace=Y,this.hasStartSpace=!1,this.hasEndSpace=!1,this.keepSpace=d,!this.__detectStr__(n,this.tagName))return this.attrs={},void(this.innerHTML="");var F=this.__fetchTagAttrAndInnerHTML__(n),rt=F.attr,k=F.innerHTML;k.startsWith(" ")&&(0,l.isSpacePassingTag)(a)&&(this.hasStartSpace=!0),k.endsWith(" ")&&(0,l.isSpacePassingTag)(a)&&(this.hasEndSpace=!0),this.attrs=rt,this.innerHTML=k}return o.prototype.__detectStr__=function(n,a){if(n[0]!=="<")return"Not a valid tag, current tag name: ".concat(this.tagName,", tag content: ").concat(n),!1;for(var r="",u=!1,h=1;h<n.length&&n[h]!==">";h++)!u&&/(\s|\/)/.test(n[h])&&(u=!0),u||(r+=n[h]);return r===a},o.prototype.__fetchTagAttrAndInnerHTML__=function(n){for(var a="",r=1;r<n.length&&n[r]!==">";r++)a+=n[r];for(var u=n.slice(r+1),h="",d=-1,y=u.length-1;y>=0;y--)if((h=u[y]+h).startsWith("</")){h.startsWith("</"+this.tagName+">")&&(d=y);break}d===-1&&(0,l.isSelfClosing)(this.tagName)&&this.tagName;var v=(0,l.getTagAttributes)(a);return this.tagName&&delete v[this.tagName],{attr:v,innerHTML:u.slice(0,d)}},o.prototype.__onlyLeadingSpace__=function(n){n=n.trim();for(var a=0;a<n.length;a++)if(n[a]!==c.SINGLE)return!1;return!0},o.prototype.__isEmpty__=function(n){return!this.keepSpace&&(n===""&&this.tagName!=="td"||this.calcLeading&&this.__onlyLeadingSpace__(n))},o.prototype.getValidSubTagName=function(n){return n},o.prototype.beforeParse=function(){var n=t.default.get().tagListener;if(n){var a=n(this.tagName,{parentTag:this.parentTag,prevTagName:this.prevTagName,nextTagName:this.nextTagName,isFirstSubTag:this.isFirstSubTag,attrs:this.attrs,innerHTML:this.innerHTML,language:this.language,match:this.match,isSelfClosing:!1}),r=a.attrs,u=a.language,h=a.match;this.attrs=r,typeof u=="string"&&(this.language=u),typeof h!="undefined"&&(this.match=h)}return""},o.prototype.parseValidSubTag=function(n,a,r){var u=new((0,l.getTagConstructor)(a))(n,a,r);return[u.exec(),u]},o.prototype.parseOnlyString=function(n,a,r){var u=new f.default(n,a,r);return[u.exec(),u]},o.prototype.afterParsed=function(n){return n},o.prototype.slim=function(n){return this.keepSpace?n:n.trim()},o.prototype.beforeMergeSpace=function(n){return n},o.prototype.mergeSpace=function(n,a,r){return this.keepSpace&&this.tagName!=="pre"?n.endsWith(`
|
|
`)?n:n+r.replace(/\n+/g,`
|
|
`):a+n+r},o.prototype.afterMergeSpace=function(n){return n},o.prototype.beforeReturn=function(n){return!((0,l.isSpacePassingTag)(this.prevTagName)&&this.prevHasEndSpace||(0,l.isSpacePassingTag)(this.tagName)&&this.hasStartSpace)||/^\s+/.test(n)||/\s+$/.test(this.prevTagStr)?n:" "+n},o.prototype.exec=function(n,a){n===void 0&&(n=""),a===void 0&&(a="");for(var r=this.beforeParse(),u=(0,l.generateGetNextValidTag)(this.innerHTML),h=u(),d=h[0],y=h[1],v=null,g=!1,b=!1;y!=="";){var O,T=u(),x=T[0],j=T[1],P={parentTag:this.tagName,nextTagName:x,nextTagStr:j,prevTagName:v,prevTagStr:r,prevHasEndSpace:b,prevHasStartSpace:g,leadingSpace:this.leadingSpace,layer:this.layer,keepSpace:this.keepSpace,inTable:this.inTable,calcLeading:(this.tagName==="li"||this.tagName==="ol"||this.tagName==="ul")&&this.calcLeading},S=void 0,m=void 0;d!=null?(S=(O=this.parseValidSubTag(y,d,P))[0],m=O[1]):(S=(O=this.parseOnlyString(y,d,P))[0],m=O[1]),b=(m==null?void 0:m.hasEndSpace)||!1,g=(m==null?void 0:m.hasStartSpace)||!1;var w=this.getValidSubTagName(d);d=x,y=j,w==null&&this.__isEmpty__(S)||(!this.keepSpace&&(0,i.default)(v)&&(0,i.default)(w)&&(r=r.replace(/\n+$/,`
|
|
`),S=S.replace(/^\n+/,`
|
|
`)),v=w,this.isFirstSubTag=!1,r+=S)}return r=this.afterParsed(r),r=this.slim(r),this.__isEmpty__(r)?"":(r=this.beforeMergeSpace(r),!this.noExtraLine&&(0,i.default)(this.tagName)&&this.prevTagName&&!r.startsWith(`
|
|
`)&&!(0,i.default)(this.prevTagName)&&this.parentTag&&(n=`
|
|
|
|
`),r=this.mergeSpace(r,n,a),this.noWrap&&!this.keepSpace&&(r=r.replace(/\s+/g," ")),r=this.afterMergeSpace(r),r=this.beforeReturn(r))},o}();s.default=e},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0}),s.isSpacePassingTag=s.isIndependentTag=s.clearComment=s.getLanguage=s.getTableAlign=s.getTagAttributes=s.isSelfClosing=s.generateGetNextValidTag=s.getTagConstructor=s.getRealTagName=s.unescapeStr=s.extraEscape=void 0;var l=p(18);Object.defineProperty(s,"extraEscape",{enumerable:!0,get:function(){return l.extraEscape}}),Object.defineProperty(s,"unescapeStr",{enumerable:!0,get:function(){return l.unescapeStr}});var f=p(47);s.generateGetNextValidTag=f.default;var c=p(48);s.getTagConstructor=c.default;var i=p(11);s.isSelfClosing=i.default;var t=p(51);s.getTagAttributes=t.default;var e=p(52);s.getLanguage=e.default;var o=p(53);s.clearComment=o.default;var n=p(13);s.getRealTagName=n.default;var a=p(7);s.isIndependentTag=a.default;var r=p(54);s.isSpacePassingTag=r.default;var u=p(55);s.getTableAlign=u.default},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=function(){function i(t){var e=t===void 0?{}:t,o=e.skipTags,n=o===void 0?[]:o,a=e.emptyTags,r=a===void 0?[]:a,u=e.ignoreTags,h=u===void 0?[]:u,d=e.aliasTags,y=d===void 0?{}:d,v=e.renderCustomTags,g=v===void 0||v,b=e.tagListener,O=b===void 0?function(T,x){return x}:b;this.options={skipTags:n,emptyTags:r,ignoreTags:h,aliasTags:y,renderCustomTags:g,tagListener:O}}return i.prototype.get=function(){return this.options},i.prototype.clear=function(){this.options={}},i.prototype.set=function(t,e){var o=this;t&&Object.prototype.toString.call(t)==="[object Object]"&&Object.keys(t).forEach(function(n){e?o.options[n]=t[n]:function(a,r,u){if(!(u in a))return void(a[u]=r[u]);var h=Array.isArray(a[u]),d=Object.prototype.toString.call(a[u])==="[object Object]";a[u]=h?a[u].concat(r[u]):d?Object.assign(a[u],r[u]):r[u]}(o.options,t,n)})},i.prototype.reset=function(){this.options=JSON.parse(JSON.stringify(f)),this.options.tagListener=function(t,e){return e}},i}(),f={ignoreTags:["","style","head","!doctype","form","svg","noscript","script","meta"],skipTags:["div","html","body","nav","section","footer","main","aside","article","header"],emptyTags:[],aliasTags:{figure:"p",dl:"p",dd:"p",dt:"p",figcaption:"p"},renderCustomTags:!0},c=new l;c.reset(),s.default=c},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="h1");var o=c.call(this,t,e)||this;return o.match="#",o}return l(i,c),i.prototype.beforeMergeSpace=function(t){return this.match+" "+t},i.prototype.exec=function(t,e){return t||(t=`
|
|
`),e||(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(1),f=p(2),c=function(){function i(t,e,o){var n=o===void 0?{}:o,a=n.parentTag,r=a===void 0?"":a,u=n.leadingSpace,h=u===void 0?"":u,d=n.layer,y=d===void 0?1:d,v=n.isFirstSubTag,g=v!==void 0&&v,b=n.inTable,O=b!==void 0&&b,T=n.match,x=T===void 0?null:T,j=n.prevTagName,P=j===void 0?"":j,S=n.nextTagName,m=S===void 0?"":S;if(this.tagName=e,this.rawStr=t,this.parentTag=r,this.isFirstSubTag=g,this.prevTagName=P,this.nextTagName=m,this.leadingSpace=h,this.layer=y,this.innerHTML="",this.match=x,this.inTable=O,this.__detectStr__(t,this.tagName)){var w=this.__fetchTagAttr__(t).attr;this.attrs=w}else this.attrs={}}return i.prototype.__detectStr__=function(t,e){if(t[0]!=="<")return"Not a valid tag, current tag name: ".concat(this.tagName,", tag content: ").concat(t),!1;for(var o="",n=!1,a=1;a<t.length&&t[a]!==">";a++)!n&&/(\s|\/)/.test(t[a])&&(n=!0),n||(o+=t[a]);return o===e},i.prototype.__fetchTagAttr__=function(t){for(var e="",o=1;o<t.length&&t[o]!==">";o++)e+=t[o];return{attr:(0,l.getTagAttributes)(e)}},i.prototype.beforeParse=function(){var t=f.default.get().tagListener;if(t){var e=t(this.tagName,{parentTag:this.parentTag,prevTagName:this.prevTagName,nextTagName:this.nextTagName,isFirstSubTag:this.isFirstSubTag,attrs:this.attrs,innerHTML:this.innerHTML,match:this.match,isSelfClosing:!0}),o=e.attrs,n=e.match;this.attrs=o,this.match=n}return""},i.prototype.beforeMergeSpace=function(t){return t},i.prototype.afterMergeSpace=function(t){return t},i.prototype.beforeReturn=function(t){return t},i.prototype.exec=function(t,e){t===void 0&&(t=""),e===void 0&&(e="");var o=this.beforeParse();return o=t+(o=this.beforeMergeSpace(o))+e,o=this.afterMergeSpace(o),o=this.beforeReturn(o)},i}();s.default=c},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=function(){function f(){}return f.prototype.exec=function(){return""},f}();s.default=l},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0}),s.TRIPLE=s.DOUBLE=s.SINGLE=void 0,s.SINGLE="\u2608",s.DOUBLE="\u2608\u2608",s.TRIPLE="\u2608\u2608\u2608"},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(13),f={html:!0,body:!0,p:!0,div:!0,pre:!0,section:!0,blockquote:!0,aside:!0,li:!0,ul:!0,ol:!0,form:!0,hr:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,dl:!0,dd:!0,dt:!0,br:!0,table:!0};s.default=function(c){if(!c)return!1;var i=(0,l.default)(c);return!!i&&!!f[i]}},function(_,s,p){var l=this&&this.__extends||function(){var o=function(n,a){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(r[h]=u[h])})(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function r(){this.constructor=n}o(n,a),n.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(o){for(var n,a=1,r=arguments.length;a<r;a++)for(var u in n=arguments[a])Object.prototype.hasOwnProperty.call(n,u)&&(o[u]=n[u]);return o}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0}),s.__EmptySelfClose__=s.__Empty__=void 0;var c=p(0),i=p(4),t=function(o){function n(a,r,u){return r===void 0&&(r="__empty__"),o.call(this,a,r,u)||this}return l(n,o),n.prototype.slim=function(a){return a},n.prototype.parseValidSubTag=function(a,r,u){if(this.tagName==="__skip__")return o.prototype.parseValidSubTag.call(this,a,r,u);var h=new n(a,r,f({},u));return[h.exec(),h]},n.prototype.parseOnlyString=function(a,r,u){return this.tagName==="__skip__"?o.prototype.parseOnlyString.call(this,a,r,u):[a,null]},n.prototype.exec=function(){return o.prototype.exec.call(this,"","")},n}(c.default);s.__Empty__=t;var e=function(o){function n(a,r){r===void 0&&(r="__emptyselfclose__");var u=o.call(this,a,r)||this;return u.tagName=r,u}return l(n,o),n.prototype.exec=function(){return o.prototype.exec.call(this,"","")},n}(i.default);s.__EmptySelfClose__=e},function(_,s,p){var l=this&&this.__extends||function(){var o=function(n,a){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(r[h]=u[h])})(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function r(){this.constructor=n}o(n,a),n.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(s,"__esModule",{value:!0}),s.__SkipSelfClose__=s.__Skip__=void 0;var f=p(0),c=p(4),i=p(1),t=function(o){function n(a,r,u){r===void 0&&(r="__skip__");var h=o.call(this,a,r,u)||this;return h.noNeedWrap=["td","th"],h}return l(n,o),n.prototype.exec=function(){var a=(0,i.isIndependentTag)((0,i.getRealTagName)(this.tagName))&&(!this.parentTag||!this.noNeedWrap.includes(this.parentTag)),r=a?`
|
|
`:"",u=a?`
|
|
`:"";return o.prototype.exec.call(this,r,u)},n}(f.default);s.__Skip__=t;var e=function(o){function n(a,r,u){return r===void 0&&(r="__skipselfclose__"),o.call(this,a,r,u)||this}return l(n,o),n.prototype.exec=function(){return""},n}(c.default);s.__SkipSelfClose__=e},function(_,s,p){var l=this&&this.__extends||function(){var e=function(o,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])})(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function a(){this.constructor=o}e(o,n),o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}();Object.defineProperty(s,"__esModule",{value:!0}),s.__NoMatchSelfClose__=s.__NoMatch__=void 0;var f=p(0),c=p(4),i=function(e){function o(n,a){return a===void 0&&(a="__nomatch__"),e.call(this,n,a)||this}return l(o,e),o.prototype.beforeMergeSpace=function(n){return"<".concat(this.tagName,">").concat(n,"</").concat(this.tagName,">")},o.prototype.exec=function(){return e.prototype.exec.call(this,"","")},o}(f.default);s.__NoMatch__=i;var t=function(e){function o(n,a){return a===void 0&&(a="__nomatchselfclose__"),e.call(this,n,a)||this}return l(o,e),o.prototype.exec=function(){return"<".concat(this.tagName," />")},o}(c.default);s.__NoMatchSelfClose__=t},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l={img:!0,hr:!0,input:!0,br:!0,meta:!0,link:!0,"!doctype":!0,base:!0,col:!0,area:!0,param:!0,object:!0,embed:!0,keygen:!0,source:!0};s.default=function(f){return f!=null&&!!l[f.toLowerCase()]}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(1),f=p(7),c=function(){function i(t,e,o){e===void 0&&(e="__nomatch__");var n=o===void 0?{}:o,a=n.keepSpace,r=a!==void 0&&a,u=n.prevTagName,h=u===void 0?"":u,d=n.nextTagName,y=d===void 0?"":d,v=n.prevTagStr,g=v===void 0?"":v,b=n.prevHasEndSpace,O=b!==void 0&&b,T=n.prevHasStartSpace,x=T!==void 0&&T,j=n.parentTag,P=j===void 0?"":j,S=n.calcLeading,m=S!==void 0&&S,w=n.layer,M=w===void 0?1:w,E=n.leadingSpace,C=E===void 0?"":E,N=n.inTable,L=N!==void 0&&N;this.tagName=e,this.nextTagName=y,this.prevTagName=h,this.parentTag=P,this.prevTagStr=g,this.keepSpace=r,this.calcLeading=m,this.leadingSpace=C,this.layer=M,this.rawStr=t,this.inTable=L,this.prevHasEndSpace=O,this.prevHasStartSpace=x,this.hasEndSpace=!1,this.hasStartSpace=!1,t.startsWith(" ")&&(this.hasStartSpace=!0),t.endsWith(" ")&&(this.hasEndSpace=!0)}return i.prototype.slim=function(t){if(this.keepSpace)return t;var e=t.replace(/\s+/g," ");return(0,f.default)(this.prevTagName)&&(e=e.trimLeft()),(0,f.default)(this.nextTagName)&&(e=e.trimRight()),e},i.prototype.beforeReturn=function(t){if(this.keepSpace)return t;if(this.calcLeading)return this.leadingSpace+(0,l.extraEscape)(t);var e=(0,l.extraEscape)(t);return this.inTable&&(e=e.replace(/\|/g,"\\|")),this.prevTagName,this.prevHasEndSpace,this.prevTagStr,(0,l.isSpacePassingTag)(this.prevTagName)&&this.prevHasEndSpace&&!/^\s+/.test(t)&&!/\s+$/.test(this.prevTagStr)?" "+t:e},i.prototype.exec=function(){var t=this.rawStr;return t=this.slim(t),t=this.beforeReturn(t)},i}();s.default=c},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(2);s.default=function(f){if(!f)return f;var c=l.default.get().aliasTags;return(c==null?void 0:c[f])!=null?c[f]:f}},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){e===void 0&&(e="strong");var n=c.call(this,t,e,o)||this;return n.layer=1,n.match=n.match||"**",n}return l(i,c),i.prototype.beforeMergeSpace=function(t){return this.match+t+this.match},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),this.match!=null&&this.prevTagStr&&!this.prevTagStr.endsWith("\\"+this.match[0])&&this.prevTagStr.endsWith(this.match[0])&&(t=" "),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="del");var o=c.call(this,t,e)||this;return o.match=o.match||"~~",o}return l(i,c),i.prototype.beforeMergeSpace=function(t){return this.match+t+this.match},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){e===void 0&&(e="em");var n=c.call(this,t,e,o)||this;return n.match=n.match||"*",n}return l(i,c),i.prototype.beforeMergeSpace=function(t){return this.match+t+this.match},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),this.parentTag==="strong"&&this.nextTagStr&&(e=" "),this.match!=null&&this.prevTagStr&&!this.prevTagStr.endsWith("\\"+this.match)&&this.prevTagStr.endsWith(this.match)&&(t=" "),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){e===void 0&&(e="th");var n=c.call(this,t,e,o)||this;return n.tagName=e,n}return l(i,c),i.prototype.beforeMergeSpace=function(t){return t+"|"},i.prototype.parseValidSubTag=function(t,e,o){return e==="ul"||e==="ol"||e==="table"||e==="pre"?[t.replace(/([\n\r])/g,""),null]:c.prototype.parseValidSubTag.call(this,t,e,o)},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0}),s.unescapeStr=s.extraEscape=s.escapeStr=void 0;var l={"&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","`":"`","“":"\u201C","”":"\u201D"},f={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","\u201C":"“","\u201D":"”"},c=/[&<>"'`\u201c\u201d]/g,i=RegExp(c.source),t=/&(?:amp|lt|gt|quot|#39|apos|#x60|ldquo|rdquo);/g,e=RegExp(t.source),o=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];s.escapeStr=function(n){return n&&i.test(n)?n.replace(c,function(a){return f[a]}):n},s.unescapeStr=function(n){return n=n&&e.test(n)?n.replace(t,function(a){return l[a]}):n},s.extraEscape=function(n){return o.reduce(function(a,r){return a.replace(r[0],r[1])},n)}},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="a"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.beforeMergeSpace=function(t){var e=this.attrs,o=e.href,n=e.title,a=o||"";return n?"[".concat(t,"](").concat(a,' "').concat(n,'")'):"[".concat(t,"](").concat(a,")")},i.prototype.parseOnlyString=function(t,e,o){return this.parentTag==="tbody"||this.parentTag==="thead"?[t,null]:c.prototype.parseOnlyString.call(this,t,e,o)},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="b"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.exec=function(t,e){return c.prototype.exec.call(this,t,e)},i}(p(14).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var o=function(n,a){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(r[h]=u[h])})(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function r(){this.constructor=n}o(n,a),n.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(o){for(var n,a=1,r=arguments.length;a<r;a++)for(var u in n=arguments[a])Object.prototype.hasOwnProperty.call(n,u)&&(o[u]=n[u]);return o}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var c=p(7),i=p(0),t=p(1),e=function(o){function n(a,r,u){r===void 0&&(r="blockquote");var h=o.call(this,a,r,u)||this;return h.match=h.match||">",h.fillPerLine=h.fillPerLine.bind(h),h}return l(n,o),n.prototype.beforeMergeSpace=function(a){if(a.trim()==="")return"";var r=this.match+" "+a;return this.calcLeading?this.leadingSpace+r:r},n.prototype.afterMergeSpace=function(a){for(var r=this,u=a.split(`
|
|
`),h=u.length-1;h>=0;h--)h<u.length-1&&u[h].trim()===">"&&u[h+1].trim()===">"&&u.splice(h,1);return(u=u.map(function(d){return d===""?"":r.fillPerLine(d)})).join(`
|
|
`)},n.prototype.beforeReturn=function(a){return a.replace(`
|
|
|
|
`,`
|
|
`)},n.prototype.fillPerLine=function(a){var r=">";if(this.calcLeading&&(r=this.leadingSpace+">"),!a.startsWith(r)){var u=this.match+" "+a;return this.calcLeading?this.leadingSpace+u:u}return a},n.prototype.parseValidSubTag=function(a,r,u){var h;r==="blockquote"?h=new((0,t.getTagConstructor)(r))(a,r,f(f({},u),{calcLeading:this.calcLeading,match:this.match+">",noExtraLine:!0})):h=new((0,t.getTagConstructor)(r))(a,r,f(f({},u),{noExtraLine:!0}));var d=h.exec(),y="";this.calcLeading&&(y=this.leadingSpace);var v=(0,c.default)(u.prevTagName)&&u.prevTagName!=="br",g=(0,c.default)(u.nextTagName)&&u.nextTagName!=="br",b=(0,c.default)(r)&&r!=="br";return this.isFirstSubTag?[d.trimLeft().replace(y,""),h]:b?(d=y+this.match+d,v||(d=`
|
|
`+d),!g&&u.nextTagStr&&u.nextTagStr.trim()&&(d+=this.match+`
|
|
`),[d,h]):v?[y+this.match+`
|
|
`+d,h]:[d,h]},n.prototype.exec=function(a,r){return a===void 0&&(a=`
|
|
`),r===void 0&&(r=`
|
|
`),o.prototype.exec.call(this,a,r)},n}(i.default);s.default=e},function(_,s,p){var l=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])})(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=p(4),c=p(18),i=function(t){function e(o,n,a){return n===void 0&&(n="b"),t.call(this,o,n,a)||this}return l(e,t),e.prototype.exec=function(o,n){return n===void 0&&(n=`
|
|
`),this.inTable?(0,c.escapeStr)("<br />"):" "+n},e}(f.default);s.default=i},function(_,s,p){var l=this&&this.__extends||function(){var e=function(o,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])})(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function a(){this.constructor=o}e(o,n),o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var o,n=1,a=arguments.length;n<a;n++)for(var r in o=arguments[n])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var c=p(0),i=p(1),t=function(e){function o(n,a,r){a===void 0&&(a="code");var u=e.call(this,n,a,r)||this;return u.match=u.match==null?"`":u.match,u.noWrap=u.match==="`",u.layer=1,u}return l(o,e),o.prototype.beforeMergeSpace=function(n){var a,r;return this.match!==""&&this.match!=="`"?(a=this.match+" ",r=" "+this.match):(a=this.match,r=this.match),a+n+r},o.prototype.parseValidSubTag=function(n,a,r){var u;return a==="pre"?[(u=new((0,i.getTagConstructor)(a))(n,a,f(f({},r),{language:"",match:""}))).exec("",`
|
|
`),u]:[(u=new((0,i.getTagConstructor)(a))(n,a,f(f({},r),{keepSpace:this.keepSpace,noWrap:this.noWrap}))).exec("",""),u]},o.prototype.parseOnlyString=function(n){if(this.match!==""&&n){var a=1;(n.startsWith("`")||n.endsWith("`"))&&(a=2,(n.startsWith("``")||n.endsWith("``"))&&(a=3)),this.match="`".repeat(a)}return[(0,i.unescapeStr)(n),null]},o.prototype.slim=function(n){return this.keepSpace?n:n.trim()},o.prototype.exec=function(n,a){return n===void 0&&(n=""),a===void 0&&(a=""),e.prototype.exec.call(this,n,a)},o}(c.default);s.default=t},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="h1");var o=c.call(this,t,e)||this;return o.match="#",o}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(3).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="h2");var o=c.call(this,t,e)||this;return o.match="##",o}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(3).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="h3");var o=c.call(this,t,e)||this;return o.match="###",o}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(3).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="h4");var o=c.call(this,t,e)||this;return o.match="####",o}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(3).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="h5");var o=c.call(this,t,e)||this;return o.match="#####",o}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(3).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){e===void 0&&(e="h6");var o=c.call(this,t,e)||this;return o.match="######",o}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(3).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){e===void 0&&(e="hr");var n=c.call(this,t,e,o)||this;return n.match="---",n}return l(i,c),i.prototype.beforeMergeSpace=function(){return this.leadingSpace+this.match},i.prototype.beforeReturn=function(t){return t.replace(/^(?:\n\s*)/,`
|
|
|
|
`).replace(/(?:\n\s*)$/,`
|
|
|
|
`),t},i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),c.prototype.exec.call(this,t,e)},i}(p(4).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="i"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.exec=function(t,e){return c.prototype.exec.call(this,t,e)},i}(p(16).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="img"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.beforeMergeSpace=function(){var t=this.attrs,e=t.src,o=t.alt;return o||(o=""),e||(e=""),".concat(e,")")},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(4).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="input"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.beforeMergeSpace=function(){var t=this.attrs,e=t.type,o=t.checked;return this.parentTag==="li"&&e==="checkbox"?o!=null?"[x] ":"[ ] ":""},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(4).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var n=function(a,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(u[d]=h[d])})(a,r)};return function(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function u(){this.constructor=a}n(a,r),a.prototype=r===null?Object.create(r):(u.prototype=r.prototype,new u)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(n){for(var a,r=1,u=arguments.length;r<u;r++)for(var h in a=arguments[r])Object.prototype.hasOwnProperty.call(a,h)&&(n[h]=a[h]);return n}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var c=p(0),i=p(1),t=p(7),e=p(6),o=function(n){function a(r,u,h){u===void 0&&(u="li");var d=n.call(this,r,u,h)||this;return d.match=d.match||"*",d.extraGap="",d}return l(a,n),a.prototype.beforeMergeSpace=function(r){return this.extraGap+this.leadingSpace+this.match+" "+r},a.prototype.__calcNextLeading__=function(){var r,u,h;return((r=this.match)===null||r===void 0?void 0:r.length)===1?e.DOUBLE:((u=this.match)===null||u===void 0?void 0:u.length)===2?e.TRIPLE:((h=this.match)===null||h===void 0?void 0:h.length)===3?e.DOUBLE:e.TRIPLE+e.DOUBLE},a.prototype.parseValidSubTag=function(r,u,h){var d=(0,i.getTagConstructor)(u),y=this.__calcNextLeading__(),v=new d(r,u,f(f({},h),{calcLeading:!0,leadingSpace:this.leadingSpace+y,layer:this.layer+1})),g=v.exec();return u==="p"&&(this.extraGap=`
|
|
`),this.isFirstSubTag?[g.trimLeft().replace(this.leadingSpace+y,""),v]:[g,v]},a.prototype.parseOnlyString=function(r,u,h){var d=!1;(0,t.default)(h.prevTagName)&&(d=!0);var y=this.__calcNextLeading__(),v=n.prototype.parseOnlyString.call(this,r,u,f(f({},h),{calcLeading:d,leadingSpace:this.leadingSpace+y,layer:this.layer+1})),g=v[0],b=v[1];return this.isFirstSubTag?[g.replace(this.leadingSpace+y,""),b]:[g,b]},a.prototype.beforeReturn=function(r){return n.prototype.beforeReturn.call(this,r)},a.prototype.exec=function(r,u){return r===void 0&&(r=`
|
|
`),u===void 0&&(u=`
|
|
`),n.prototype.exec.call(this,r,u)},a}(c.default);s.default=o},function(_,s,p){var l=this&&this.__extends||function(){var n=function(a,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(u[d]=h[d])})(a,r)};return function(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function u(){this.constructor=a}n(a,r),a.prototype=r===null?Object.create(r):(u.prototype=r.prototype,new u)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(n){for(var a,r=1,u=arguments.length;r<u;r++)for(var h in a=arguments[r])Object.prototype.hasOwnProperty.call(a,h)&&(n[h]=a[h]);return n}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var c=p(0),i=p(5),t=p(1),e=p(2),o=function(n){function a(r,u,h){u===void 0&&(u="ol");var d,y=this;y=n.call(this,r,u,h)||this;var v=parseInt((d=y==null?void 0:y.attrs)===null||d===void 0?void 0:d.start,10);return y.count=isNaN(v)?1:v,y}return l(a,n),a.prototype.__isValidSubTag__=function(r){if(!r)return!1;var u=e.default.get().aliasTags,h=(0,t.getTagConstructor)(r);return r==="li"||(u==null?void 0:u[r])=="li"||h===i.default},a.prototype.getValidSubTagName=function(r){return r&&this.__isValidSubTag__(r)?r:null},a.prototype.parseValidSubTag=function(r,u,h){var d=(0,t.getTagConstructor)(u);if(this.__isValidSubTag__(u)){var y=this.count+".",v=new d(r,u,f(f({},h),{calcLeading:!0,leadingSpace:this.leadingSpace,layer:this.layer,match:y}));return this.count++,[v.exec("",`
|
|
`),v]}return["",null]},a.prototype.parseOnlyString=function(){return["",null]},a.prototype.exec=function(r,u){return r===void 0&&(r=`
|
|
`),u===void 0&&(u=`
|
|
`),n.prototype.exec.call(this,r,u)},a}(c.default);s.default=o},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="p"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.beforeMergeSpace=function(t){return this.calcLeading?this.leadingSpace+t:t},i.prototype.exec=function(t,e){return t===void 0&&(t=`
|
|
`),e===void 0&&(e=`
|
|
`),this.prevTagName||!this.prevTagStr||this.prevTagStr.endsWith(`
|
|
`)||(t=`
|
|
|
|
`),this.nextTagName||!this.nextTagStr||this.nextTagStr.startsWith(`
|
|
`)||(e=`
|
|
|
|
`),this.inTable&&(t="",e=""),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var n=function(a,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(u[d]=h[d])})(a,r)};return function(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function u(){this.constructor=a}n(a,r),a.prototype=r===null?Object.create(r):(u.prototype=r.prototype,new u)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(n){for(var a,r=1,u=arguments.length;r<u;r++)for(var h in a=arguments[r])Object.prototype.hasOwnProperty.call(a,h)&&(n[h]=a[h]);return n}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var c=p(0),i=p(8),t=p(1),e=p(6),o=function(n){function a(r,u,h){u===void 0&&(u="pre");var d=n.call(this,r,u,h)||this;return d.indentSpace=e.DOUBLE+e.DOUBLE,d.isIndent=d.innerHTML.includes("```"),d.match=d.isIndent?"":"```",d.language=d.language||(0,t.getLanguage)(r),d.keepSpace=!0,d}return l(a,n),a.prototype.beforeMergeSpace=function(r){var u=this.isIndent||this.parentTag==="code"?"":this.match+this.language+`
|
|
`,h="";return r.endsWith(`
|
|
`)||(h=`
|
|
`),u+r+(this.isIndent||this.parentTag==="code"?"":h+this.match)},a.prototype.fillPerLine=function(r){var u="";return this.calcLeading&&(u=this.leadingSpace),this.isIndent?u+this.indentSpace+r:u+r},a.prototype.afterMergeSpace=function(r){var u=this,h=r.split(`
|
|
`);return(h=h.map(function(d){return d===""?"":u.fillPerLine(d)})).join(`
|
|
`)},a.prototype.parseValidSubTag=function(r,u,h){if(u==="code"){var d=new((0,t.getTagConstructor)(u))(r,u,f(f({},h),{match:"",language:this.language,keepSpace:!0}));return[d.exec("",""),d]}var y=void 0;return[(y=(0,t.isSelfClosing)(u)?new i.__EmptySelfClose__(r,u):new i.__Empty__(r,u,f(f({},h),{keepSpace:!0}))).exec(),y]},a.prototype.parseOnlyString=function(r){return[r,null]},a.prototype.slim=function(r){return r},a.prototype.exec=function(r,u){return r===void 0&&(r=`
|
|
`),u===void 0&&(u=`
|
|
`),n.prototype.exec.call(this,r,u)},a}(c.default);s.default=o},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e){return e===void 0&&(e="s"),c.call(this,t,e)||this}return l(i,c),i.prototype.exec=function(t,e){return c.prototype.exec.call(this,t,e)},i}(p(15).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="span"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var e=function(o,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(a[u]=r[u])})(o,n)};return function(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function a(){this.constructor=o}e(o,n),o.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(e){for(var o,n=1,a=arguments.length;n<a;n++)for(var r in o=arguments[n])Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r]);return e}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var c=p(0),i=p(1),t=function(e){function o(n,a,r){a===void 0&&(a="table");var u=e.call(this,n,a,r)||this;return u.exist_thead=!1,u.exist_tbody=!1,u.empty_tbody=!0,u.tableColumnCount=function(h){for(var d="",y=0;y<h.length&&!d.endsWith("</tr>");y++)d+=h[y];return Math.max(d.split("</td>").length-1,d.split("</th>").length-1)}(u.innerHTML),u}return l(o,e),o.prototype.parseValidSubTag=function(n,a,r){a==="thead"&&(this.exist_thead=!0),a==="tbody"&&(this.exist_tbody=!0,this.empty_tbody=!1),a==="tr"&&(this.empty_tbody=!1);var u=new((0,i.getTagConstructor)(a))(n,a,f(f({},r),{tableColumnCount:this.tableColumnCount,inTable:!0}));return[u.exec("",`
|
|
`),u]},o.prototype.parseOnlyString=function(){return["",null]},o.prototype.beforeReturn=function(n){if(!this.exist_thead&&!this.exist_tbody&&this.empty_tbody||this.tableColumnCount===0)return"";if(!this.exist_tbody){for(var a=(0,i.getTableAlign)(this.innerHTML,this.tableColumnCount),r=this.leadingSpace+"|",u=0;u<a.length;u++)r+=a[u];n=this.empty_tbody?n+r+`
|
|
`:r+""+n}return this.exist_thead||(n=`
|
|
`+this.leadingSpace+"|".repeat(this.tableColumnCount+1)+(n.startsWith(`
|
|
`)?"":`
|
|
`)+n),n},o.prototype.exec=function(n,a){return n===void 0&&(n=`
|
|
`),a===void 0&&(a=`
|
|
`),e.prototype.exec.call(this,n,a)},o}(c.default);s.default=t},function(_,s,p){var l=this&&this.__extends||function(){var t=function(e,o){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])})(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=p(0),c=p(1),i=function(t){function e(o,n,a){return n===void 0&&(n="tbody"),t.call(this,o,n,a)||this}return l(e,t),e.prototype.beforeMergeSpace=function(o){for(var n=(0,c.getTableAlign)(this.innerHTML,this.tableColumnCount),a=this.leadingSpace+"|",r=0;r<n.length;r++)a+=n[r];return a+`
|
|
`+o},e.prototype.parseOnlyString=function(){return["",null]},e.prototype.exec=function(o,n){return o===void 0&&(o=""),n===void 0&&(n=""),t.prototype.exec.call(this,o,n)},e}(f.default);s.default=i},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="td"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.parseValidSubTag=function(t,e,o){return e==="ul"||e==="ol"||e==="table"||e==="pre"?[t.replace(/([\n\r])/g,""),null]:c.prototype.parseValidSubTag.call(this,t,e,o)},i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(17).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var c=function(i,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])})(i,t)};return function(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}c(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=function(c){function i(t,e,o){return e===void 0&&(e="thead"),c.call(this,t,e,o)||this}return l(i,c),i.prototype.exec=function(t,e){return t===void 0&&(t=""),e===void 0&&(e=""),c.prototype.exec.call(this,t,e)},i}(p(0).default);s.default=f},function(_,s,p){var l=this&&this.__extends||function(){var o=function(n,a){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(r[h]=u[h])})(n,a)};return function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function r(){this.constructor=n}o(n,a),n.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(s,"__esModule",{value:!0});var f=p(0),c=p(5),i=p(1),t=p(2),e=function(o){function n(a,r,u){return r===void 0&&(r="tr"),o.call(this,a,r,u)||this}return l(n,o),n.prototype.beforeMergeSpace=function(a){return this.leadingSpace+"|"+a},n.prototype.parseValidSubTag=function(a,r,u){var h=t.default.get().aliasTags,d=(0,i.getTagConstructor)(r);if(r!=="td"&&r!=="th"&&(h==null?void 0:h[r])!=="td"&&(h==null?void 0:h[r])!=="th"&&d!==c.default)return["",null];var y=new d(a,r,u);return[y.exec("",""),y]},n.prototype.parseOnlyString=function(){return["",null]},n.prototype.exec=function(a,r){return a===void 0&&(a=""),r===void 0&&(r=`
|
|
`),o.prototype.exec.call(this,a,r)},n}(f.default);s.default=e},function(_,s,p){var l=this&&this.__extends||function(){var n=function(a,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var d in h)Object.prototype.hasOwnProperty.call(h,d)&&(u[d]=h[d])})(a,r)};return function(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function u(){this.constructor=a}n(a,r),a.prototype=r===null?Object.create(r):(u.prototype=r.prototype,new u)}}(),f=this&&this.__assign||function(){return(f=Object.assign||function(n){for(var a,r=1,u=arguments.length;r<u;r++)for(var h in a=arguments[r])Object.prototype.hasOwnProperty.call(a,h)&&(n[h]=a[h]);return n}).apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0});var c=p(0),i=p(5),t=p(1),e=p(2).default.get().aliasTags,o=function(n){function a(r,u,h){return u===void 0&&(u="ul"),n.call(this,r,u,h)||this}return l(a,n),a.prototype.__isValidSubTag__=function(r){if(!r)return!1;var u=(0,t.getTagConstructor)(r);return r==="li"||(e==null?void 0:e[r])=="li"||u===i.default},a.prototype.getValidSubTagName=function(r){return r&&this.__isValidSubTag__(r)?r:null},a.prototype.parseValidSubTag=function(r,u,h){var d=(0,t.getTagConstructor)(u);if(this.__isValidSubTag__(u)){var y=new d(r,u,f(f({},h),{calcLeading:!0,leadingSpace:this.leadingSpace,layer:this.layer,match:"*"}));return[y.exec("",`
|
|
`),y]}return["",null]},a.prototype.parseOnlyString=function(){return["",null]},a.prototype.exec=function(r,u){return r===void 0&&(r=`
|
|
`),u===void 0&&(u=`
|
|
`),n.prototype.exec.call(this,r,u)},a}(c.default);s.default=o},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(1),f=p(2),c=p(6);s.default=function(i,t,e){e===void 0&&(e=!1),f.default.reset(),f.default.set(t,e),i=(i=(i=(0,l.clearComment)(i)).trim()).replace(/(\r\n)/g,"").replace(/ /g," "),i="<".concat(c.DOUBLE,"skip").concat(c.DOUBLE,">").concat(i,"</").concat(c.DOUBLE,"skip").concat(c.DOUBLE,">");var o="",n="".concat(c.DOUBLE,"skip").concat(c.DOUBLE),a=i;return o+=new((0,l.getTagConstructor)(n))(a,n,{parentTag:null,prevTagName:null,prevTagStr:o}).exec(),function(r){return r=(r=(r=r.replace(/^\s+/,"")).replace(/\s+$/,"")).replace(/\u2608/g," ")}((0,l.unescapeStr)(o))}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(11);function f(c,i){for(var t="";i<c.length&&/[a-zA-Z0-9!\-_]/.test(c[i]);)t+=c[i++];return t.toLowerCase()}s.default=function(c){var i=0;return function(){var t="",e=null,o=0,n=null,a=!1;if(i>=c.length)return[e,t];for(var r=i;r<c.length;r++){if(c[r]==="<"&&c[r+1]!=="/"){if(t!==""&&e==null&&!a)return i=r,[e,t];var u=f(c,r+1);e==null&&(e=u),e===u&&o++,(0,l.default)(e)&&(--o===0&&(a=!0),o<0&&"Tag ".concat(e," is abnormal"))}else if(c[r]==="<"&&c[r+1]==="/"){if(e==null){"Tag is not integrity, current tagStr is ".concat(c.slice(i));for(var h=r;h<c.length&&c[h]!==">";)h++;r=h;continue}e===(n=f(c,r+2))&&o--,o<=0&&(a=!0)}if(t+=c[r],c[r]===">"&&a)return i=r+1,[e,t];r===c.length-1&&e!==n&&(n!=null&&e!=null&&(t=t.replace("<".concat(e,">"),"").replace("</".concat(n,">"),"")),e=null)}return i=c.length,[e,t]}}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(2),f=p(6),c=p(11),i=p(49);s.default=function t(e){var o,n=l.default.get(),a=n.skipTags,r=n.emptyTags,u=n.ignoreTags,h=n.aliasTags,d=n.renderCustomTags,y=(0,c.default)(e);if((a==null?void 0:a.includes(e))||e==="".concat(f.DOUBLE,"skip").concat(f.DOUBLE)){var v=p(9);return y?v.__SkipSelfClose__:v.__Skip__}if(r!=null&&r.includes(e)){var g=p(8);return y?g.__EmptySelfClose__:g.__Empty__}if(u!=null&&u.includes(e))return p(5).default;if((h==null?void 0:h[e])!=null)return t(h[e]);var b=e.toLowerCase();if(d!==!0&&!(0,i.default)(b)){if(d===!1||d==="SKIP")return v=p(9),y?v.__SkipSelfClose__:v.__Skip__;if(d==="EMPTY")return g=p(8),y?g.__EmptySelfClose__:g.__Empty__;if(d==="IGNORE")return p(5).default}try{o=p(50)("./".concat(e)).default}catch{o=y?p(10).__NoMatchSelfClose__:p(10).__NoMatch__}return o}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=["!doctype","a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","circle","cite","clipPath","code","col","colgroup","command","content","data","datalist","dd","defs","del","details","dfn","dialog","dir","div","dl","dt","element","ellipse","em","embed","fieldset","figcaption","figure","font","footer","foreignObject","form","frame","frameset","g","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","line","linearGradient","link","listing","main","map","mark","marquee","mask","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","path","pattern","picture","plaintext","polygon","polyline","pre","progress","q","radialGradient","rb","rbc","rect","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","stop","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","text","textarea","tfoot","th","thead","time","title","tr","track","tspan","tt","u","ul","var","video","wbr","xmp"];s.default=function(f){return typeof f=="string"&&l.includes(f.toLowerCase())}},function(_,s,p){var l={"./__Heading__":3,"./__Heading__.ts":3,"./__empty__":8,"./__empty__.ts":8,"./__ignore__":5,"./__ignore__.ts":5,"./__nomatch__":10,"./__nomatch__.ts":10,"./__rawString__":12,"./__rawString__.ts":12,"./__skip__":9,"./__skip__.ts":9,"./a":19,"./a.ts":19,"./b":20,"./b.ts":20,"./blockquote":21,"./blockquote.ts":21,"./br":22,"./br.ts":22,"./code":23,"./code.ts":23,"./del":15,"./del.ts":15,"./em":16,"./em.ts":16,"./h1":24,"./h1.ts":24,"./h2":25,"./h2.ts":25,"./h3":26,"./h3.ts":26,"./h4":27,"./h4.ts":27,"./h5":28,"./h5.ts":28,"./h6":29,"./h6.ts":29,"./hr":30,"./hr.ts":30,"./i":31,"./i.ts":31,"./img":32,"./img.ts":32,"./input":33,"./input.ts":33,"./li":34,"./li.ts":34,"./ol":35,"./ol.ts":35,"./p":36,"./p.ts":36,"./pre":37,"./pre.ts":37,"./s":38,"./s.ts":38,"./span":39,"./span.ts":39,"./strong":14,"./strong.ts":14,"./table":40,"./table.ts":40,"./tbody":41,"./tbody.ts":41,"./td":42,"./td.ts":42,"./th":17,"./th.ts":17,"./thead":43,"./thead.ts":43,"./tr":44,"./tr.ts":44,"./ul":45,"./ul.ts":45};function f(i){var t=c(i);return p(t)}function c(i){if(!p.o(l,i)){var t=new Error("Cannot find module '"+i+"'");throw t.code="MODULE_NOT_FOUND",t}return l[i]}f.keys=function(){return Object.keys(l)},f.resolve=c,_.exports=f,f.id=50},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(l){for(var f={},c=!1,i="",t="",e=null,o=0;o<=l.length;o++){if(o===l.length||/\s/.test(l[o])){if(o===l.length||!c){var n=i.trim();n[n.length-1]==="/"&&(n=n.slice(0,n.length-1)),n&&(f[n]=t.trim()),i="",t=""}}else{if(/['"]/.test(l[o])&&(!e||l[o]===e)){(c=!c)&&(e=l[o]);continue}if(l[o]==="="&&!c)continue}if(o===l.length)break;c?t+=l[o]:i+=l[o]}return f}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l="javascript";s.default=function(f){var c=f.match(/<.*?class=".*?language-([^\s"]*)?.*".*>/);return c?c[1]||"":f.match(/<span.*?hljs-(comment|keyword|number|string|literal|built_in|function|title|bullet).*?<\/span>/)?l:""}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(l){return l.replace(/<!--(?:[\s\S]*?)-->/g,"")}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0});var l=p(13),f={b:!0,a:!0,del:!0,em:!0,i:!0,s:!0,span:!0,strong:!0};s.default=function(c){if(c===null)return!0;if(!c)return!1;var i=(0,l.default)(c);return!!i&&!!f[i]}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(l,f){var c={_default_:"---|",center:":---:|",left:":---|",right:"---:|",start:":---|",end:"---:|"},i=Array(f).fill(c._default_),t=l.match(/<(td|th)(.*?)>/g);return t?i=(i=t.slice(0,f)).map(function(e){var o=e.match(/align\s*=\s*['"]\s*(center|left|right|start|end)/),n=e.match(/text-align\s*:\s*(center|left|right|start|end)/);return o||n?o&&!n?c[o[1]]||c._default_:n?c[n[1]]||c._default_:void 0:c._default_}):i}}]).default})})(G);var st=at(G.exports);export{st as h};
|