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";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";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("")&&(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";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";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").concat(n,"")},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",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[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)("
"):" "+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");y++)d+=h[y];return Math.max(d.split("").length-1,d.split("").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").concat(i,"");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)return[e,t];for(var r=i;r";)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(""),"")),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(//)?l:""}},function(_,s,p){Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(l){return l.replace(//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};