/i.test(Ja[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ja[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ja[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:Ja[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:Ja[0]}}link(qa){const Ja=this.rules.inline.link.exec(qa);if(Ja){const ed=Ja[2].trim();if(!this.options.pedantic&&/^$/.test(ed))return;const od=rtrim$1(ed.slice(0,-1),"\\");if((ed.length-od.length)%2===0)return}else{const od=findClosingBracket$1(Ja[2],"()");if(od>-1){const ld=(Ja[0].indexOf("!")===0?5:4)+Ja[1].length+od;Ja[2]=Ja[2].substring(0,od),Ja[0]=Ja[0].substring(0,ld).trim(),Ja[3]=""}}let td=Ja[2],rd="";if(this.options.pedantic){const od=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(td);od&&(td=od[1],rd=od[3])}else rd=Ja[3]?Ja[3].slice(1,-1):"";return td=td.trim(),/^$/.test(ed)?td=td.slice(1):td=td.slice(1,-1)),outputLink$1(Ja,{href:td&&td.replace(this.rules.inline.anyPunctuation,"$1"),title:rd&&rd.replace(this.rules.inline.anyPunctuation,"$1")},Ja[0],this.lexer)}}reflink(qa,Ja){let ed;if((ed=this.rules.inline.reflink.exec(qa))||(ed=this.rules.inline.nolink.exec(qa))){const td=(ed[2]||ed[1]).replace(/\s+/g," "),rd=Ja[td.toLowerCase()];if(!rd){const od=ed[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink$1(ed,rd,ed[0],this.lexer)}}emStrong(qa,Ja,ed=""){let td=this.rules.inline.emStrongLDelim.exec(qa);if(!td||td[3]&&ed.match(/[\p{L}\p{N}]/u))return;if(!(td[1]||td[2]||"")||!ed||this.rules.inline.punctuation.exec(ed)){const od=[...td[0]].length-1;let sd,ld,cd=od,ud=0;const gd=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(gd.lastIndex=0,Ja=Ja.slice(-1*qa.length+od);(td=gd.exec(Ja))!=null;){if(sd=td[1]||td[2]||td[3]||td[4]||td[5]||td[6],!sd)continue;if(ld=[...sd].length,td[3]||td[4]){cd+=ld;continue}else if((td[5]||td[6])&&od%3&&!((od+ld)%3)){ud+=ld;continue}if(cd-=ld,cd>0)continue;ld=Math.min(ld,ld+cd+ud);const _d=[...td[0]][0].length,yd=qa.slice(0,od+td.index+_d+ld);if(Math.min(od,ld)%2){const Td=yd.slice(1,-1);return{type:"em",raw:yd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=yd.slice(2,-2);return{type:"strong",raw:yd,text:Ed,tokens:this.lexer.inlineTokens(Ed)}}}}codespan(qa){const Ja=this.rules.inline.code.exec(qa);if(Ja){let ed=Ja[2].replace(/\n/g," ");const td=/[^ ]/.test(ed),rd=/^ /.test(ed)&&/ $/.test(ed);return td&&rd&&(ed=ed.substring(1,ed.length-1)),ed=escape$1$2(ed,!0),{type:"codespan",raw:Ja[0],text:ed}}}br(qa){const Ja=this.rules.inline.br.exec(qa);if(Ja)return{type:"br",raw:Ja[0]}}del(qa){const Ja=this.rules.inline.del.exec(qa);if(Ja)return{type:"del",raw:Ja[0],text:Ja[2],tokens:this.lexer.inlineTokens(Ja[2])}}autolink(qa){const Ja=this.rules.inline.autolink.exec(qa);if(Ja){let ed,td;return Ja[2]==="@"?(ed=escape$1$2(Ja[1]),td="mailto:"+ed):(ed=escape$1$2(Ja[1]),td=ed),{type:"link",raw:Ja[0],text:ed,href:td,tokens:[{type:"text",raw:ed,text:ed}]}}}url(qa){var ed;let Ja;if(Ja=this.rules.inline.url.exec(qa)){let td,rd;if(Ja[2]==="@")td=escape$1$2(Ja[0]),rd="mailto:"+td;else{let od;do od=Ja[0],Ja[0]=((ed=this.rules.inline._backpedal.exec(Ja[0]))==null?void 0:ed[0])??"";while(od!==Ja[0]);td=escape$1$2(Ja[0]),Ja[1]==="www."?rd="http://"+Ja[0]:rd=Ja[0]}return{type:"link",raw:Ja[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}inlineText(qa){const Ja=this.rules.inline.text.exec(qa);if(Ja){let ed;return this.lexer.state.inRawBlock?ed=Ja[0]:ed=escape$1$2(Ja[0]),{type:"text",raw:Ja[0],text:ed}}}};const newline$1=/^(?: *(?:\n|$))+/,blockCode$1=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences$1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr$3=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading$1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bullet$3=/(?:[*+-]|\d{1,9}[.)])/,lheading$1=edit$1(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,bullet$3).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),_paragraph$1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,blockText$1=/^[^\n]+/,_blockLabel$1=/(?!\s*\])(?:\\.|[^\[\]\\])+/,def$1=edit$1(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",_blockLabel$1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),list$1=edit$1(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bullet$3).getRegex(),_tag$1="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_comment$1=/|$))/,html$3=edit$1("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",_comment$1).replace("tag",_tag$1).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),paragraph$1=edit$1(_paragraph$1).replace("hr",hr$3).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag$1).getRegex(),blockquote$1=edit$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",paragraph$1).getRegex(),blockNormal$1={blockquote:blockquote$1,code:blockCode$1,def:def$1,fences:fences$1,heading:heading$1,hr:hr$3,html:html$3,lheading:lheading$1,list:list$1,newline:newline$1,paragraph:paragraph$1,table:noopTest$1,text:blockText$1},gfmTable$1=edit$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",hr$3).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag$1).getRegex(),blockGfm$1={...blockNormal$1,table:gfmTable$1,paragraph:edit$1(_paragraph$1).replace("hr",hr$3).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gfmTable$1).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag$1).getRegex()},blockPedantic$1={...blockNormal$1,html:edit$1(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_comment$1).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest$1,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit$1(_paragraph$1).replace("hr",hr$3).replace("heading",` *#{1,6} *[^
-]`).replace("lheading",lheading$1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$5=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode$1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br$4=/^( {2,}|\\)\n(?!\s*$)/,inlineText$1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,emStrongLDelim$1=edit$1(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimAst$1=edit$1("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimUnd$1=edit$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,_punctuation$1).getRegex(),anyPunctuation$1=edit$1(/\\([punct])/,"gu").replace(/punct/g,_punctuation$1).getRegex(),autolink$1=edit$1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_inlineComment$1=edit$1(_comment$1).replace("(?:-->|$)","-->").getRegex(),tag$1=edit$1("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",_inlineComment$1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_inlineLabel$1=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,link$1=edit$1(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_inlineLabel$1).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),reflink$1=edit$1(/^!?\[(label)\]\[(ref)\]/).replace("label",_inlineLabel$1).replace("ref",_blockLabel$1).getRegex(),nolink$1=edit$1(/^!?\[(ref)\](?:\[\])?/).replace("ref",_blockLabel$1).getRegex(),reflinkSearch$1=edit$1("reflink|nolink(?!\\()","g").replace("reflink",reflink$1).replace("nolink",nolink$1).getRegex(),inlineNormal$1={_backpedal:noopTest$1,anyPunctuation:anyPunctuation$1,autolink:autolink$1,blockSkip:blockSkip$1,br:br$4,code:inlineCode$1,del:noopTest$1,emStrongLDelim:emStrongLDelim$1,emStrongRDelimAst:emStrongRDelimAst$1,emStrongRDelimUnd:emStrongRDelimUnd$1,escape:escape$5,link:link$1,nolink:nolink$1,punctuation:punctuation$1,reflink:reflink$1,reflinkSearch:reflinkSearch$1,tag:tag$1,text:inlineText$1,url:noopTest$1},inlinePedantic$1={...inlineNormal$1,link:edit$1(/^!?\[(label)\]\((.*?)\)/).replace("label",_inlineLabel$1).getRegex(),reflink:edit$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_inlineLabel$1).getRegex()},inlineGfm$1={...inlineNormal$1,escape:edit$1(escape$5).replace("])","~|])").getRegex(),url:edit$1(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\/i.test(Ja[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(Ja[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Ja[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:Ja[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:Ja[0]}}link(qa){const Ja=this.rules.inline.link.exec(qa);if(Ja){const ed=Ja[2].trim();if(!this.options.pedantic&&/^$/.test(ed))return;const od=rtrim$1(ed.slice(0,-1),"\\");if((ed.length-od.length)%2===0)return}else{const od=findClosingBracket$1(Ja[2],"()");if(od>-1){const ld=(Ja[0].indexOf("!")===0?5:4)+Ja[1].length+od;Ja[2]=Ja[2].substring(0,od),Ja[0]=Ja[0].substring(0,ld).trim(),Ja[3]=""}}let td=Ja[2],rd="";if(this.options.pedantic){const od=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(td);od&&(td=od[1],rd=od[3])}else rd=Ja[3]?Ja[3].slice(1,-1):"";return td=td.trim(),/^$/.test(ed)?td=td.slice(1):td=td.slice(1,-1)),outputLink$1(Ja,{href:td&&td.replace(this.rules.inline.anyPunctuation,"$1"),title:rd&&rd.replace(this.rules.inline.anyPunctuation,"$1")},Ja[0],this.lexer)}}reflink(qa,Ja){let ed;if((ed=this.rules.inline.reflink.exec(qa))||(ed=this.rules.inline.nolink.exec(qa))){const td=(ed[2]||ed[1]).replace(/\s+/g," "),rd=Ja[td.toLowerCase()];if(!rd){const od=ed[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink$1(ed,rd,ed[0],this.lexer)}}emStrong(qa,Ja,ed=""){let td=this.rules.inline.emStrongLDelim.exec(qa);if(!td||td[3]&&ed.match(/[\p{L}\p{N}]/u))return;if(!(td[1]||td[2]||"")||!ed||this.rules.inline.punctuation.exec(ed)){const od=[...td[0]].length-1;let sd,ld,cd=od,ud=0;const _d=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_d.lastIndex=0,Ja=Ja.slice(-1*qa.length+od);(td=_d.exec(Ja))!=null;){if(sd=td[1]||td[2]||td[3]||td[4]||td[5]||td[6],!sd)continue;if(ld=[...sd].length,td[3]||td[4]){cd+=ld;continue}else if((td[5]||td[6])&&od%3&&!((od+ld)%3)){ud+=ld;continue}if(cd-=ld,cd>0)continue;ld=Math.min(ld,ld+cd+ud);const yd=[...td[0]][0].length,gd=qa.slice(0,od+td.index+yd+ld);if(Math.min(od,ld)%2){const Td=gd.slice(1,-1);return{type:"em",raw:gd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=gd.slice(2,-2);return{type:"strong",raw:gd,text:Ed,tokens:this.lexer.inlineTokens(Ed)}}}}codespan(qa){const Ja=this.rules.inline.code.exec(qa);if(Ja){let ed=Ja[2].replace(/\n/g," ");const td=/[^ ]/.test(ed),rd=/^ /.test(ed)&&/ $/.test(ed);return td&&rd&&(ed=ed.substring(1,ed.length-1)),ed=escape$1$2(ed,!0),{type:"codespan",raw:Ja[0],text:ed}}}br(qa){const Ja=this.rules.inline.br.exec(qa);if(Ja)return{type:"br",raw:Ja[0]}}del(qa){const Ja=this.rules.inline.del.exec(qa);if(Ja)return{type:"del",raw:Ja[0],text:Ja[2],tokens:this.lexer.inlineTokens(Ja[2])}}autolink(qa){const Ja=this.rules.inline.autolink.exec(qa);if(Ja){let ed,td;return Ja[2]==="@"?(ed=escape$1$2(Ja[1]),td="mailto:"+ed):(ed=escape$1$2(Ja[1]),td=ed),{type:"link",raw:Ja[0],text:ed,href:td,tokens:[{type:"text",raw:ed,text:ed}]}}}url(qa){var ed;let Ja;if(Ja=this.rules.inline.url.exec(qa)){let td,rd;if(Ja[2]==="@")td=escape$1$2(Ja[0]),rd="mailto:"+td;else{let od;do od=Ja[0],Ja[0]=((ed=this.rules.inline._backpedal.exec(Ja[0]))==null?void 0:ed[0])??"";while(od!==Ja[0]);td=escape$1$2(Ja[0]),Ja[1]==="www."?rd="http://"+Ja[0]:rd=Ja[0]}return{type:"link",raw:Ja[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}inlineText(qa){const Ja=this.rules.inline.text.exec(qa);if(Ja){let ed;return this.lexer.state.inRawBlock?ed=Ja[0]:ed=escape$1$2(Ja[0]),{type:"text",raw:Ja[0],text:ed}}}};const newline$1=/^(?: *(?:\n|$))+/,blockCode$1=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences$1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr$3=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading$1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bullet$3=/(?:[*+-]|\d{1,9}[.)])/,lheading$1=edit$1(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,bullet$3).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),_paragraph$1=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,blockText$1=/^[^\n]+/,_blockLabel$1=/(?!\s*\])(?:\\.|[^\[\]\\])+/,def$1=edit$1(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",_blockLabel$1).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),list$1=edit$1(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bullet$3).getRegex(),_tag$1="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_comment$1=/|$))/,html$3=edit$1("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",_comment$1).replace("tag",_tag$1).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),paragraph$1=edit$1(_paragraph$1).replace("hr",hr$3).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag$1).getRegex(),blockquote$1=edit$1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",paragraph$1).getRegex(),blockNormal$1={blockquote:blockquote$1,code:blockCode$1,def:def$1,fences:fences$1,heading:heading$1,hr:hr$3,html:html$3,lheading:lheading$1,list:list$1,newline:newline$1,paragraph:paragraph$1,table:noopTest$1,text:blockText$1},gfmTable$1=edit$1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",hr$3).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag$1).getRegex(),blockGfm$1={...blockNormal$1,table:gfmTable$1,paragraph:edit$1(_paragraph$1).replace("hr",hr$3).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",gfmTable$1).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_tag$1).getRegex()},blockPedantic$1={...blockNormal$1,html:edit$1(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_comment$1).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest$1,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit$1(_paragraph$1).replace("hr",hr$3).replace("heading",` *#{1,6} *[^
+]`).replace("lheading",lheading$1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape$5=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,inlineCode$1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br$4=/^( {2,}|\\)\n(?!\s*$)/,inlineText$1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,emStrongLDelim$1=edit$1(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimAst$1=edit$1("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,_punctuation$1).getRegex(),emStrongRDelimUnd$1=edit$1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,_punctuation$1).getRegex(),anyPunctuation$1=edit$1(/\\([punct])/,"gu").replace(/punct/g,_punctuation$1).getRegex(),autolink$1=edit$1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),_inlineComment$1=edit$1(_comment$1).replace("(?:-->|$)","-->").getRegex(),tag$1=edit$1("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",_inlineComment$1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),_inlineLabel$1=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,link$1=edit$1(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",_inlineLabel$1).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),reflink$1=edit$1(/^!?\[(label)\]\[(ref)\]/).replace("label",_inlineLabel$1).replace("ref",_blockLabel$1).getRegex(),nolink$1=edit$1(/^!?\[(ref)\](?:\[\])?/).replace("ref",_blockLabel$1).getRegex(),reflinkSearch$1=edit$1("reflink|nolink(?!\\()","g").replace("reflink",reflink$1).replace("nolink",nolink$1).getRegex(),inlineNormal$1={_backpedal:noopTest$1,anyPunctuation:anyPunctuation$1,autolink:autolink$1,blockSkip:blockSkip$1,br:br$4,code:inlineCode$1,del:noopTest$1,emStrongLDelim:emStrongLDelim$1,emStrongRDelimAst:emStrongRDelimAst$1,emStrongRDelimUnd:emStrongRDelimUnd$1,escape:escape$5,link:link$1,nolink:nolink$1,punctuation:punctuation$1,reflink:reflink$1,reflinkSearch:reflinkSearch$1,tag:tag$1,text:inlineText$1,url:noopTest$1},inlinePedantic$1={...inlineNormal$1,link:edit$1(/^!?\[(label)\]\((.*?)\)/).replace("label",_inlineLabel$1).getRegex(),reflink:edit$1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_inlineLabel$1).getRegex()},inlineGfm$1={...inlineNormal$1,escape:edit$1(escape$5).replace("])","~|])").getRegex(),url:edit$1(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\ld+" ".repeat(cd.length));let td,rd,od;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(sd=>(td=sd.call({lexer:this},qa,Ja))?(qa=qa.substring(td.raw.length),Ja.push(td),!0):!1))){if(td=this.tokenizer.space(qa)){qa=qa.substring(td.raw.length),td.raw.length===1&&Ja.length>0?Ja[Ja.length-1].raw+=`
`:Ja.push(td);continue}if(td=this.tokenizer.code(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+=`
`+td.raw,rd.text+=`
@@ -53,7 +53,7 @@ ${gd}`:gd;const _d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.bl
`+td.raw,rd.text+=`
`+td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td),ed=od.length!==qa.length,qa=qa.substring(td.raw.length);continue}if(td=this.tokenizer.text(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&rd.type==="text"?(rd.raw+=`
`+td.raw,rd.text+=`
-`+td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(qa){const sd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(sd);break}else throw new Error(sd)}}return this.state.top=!0,Ja}inline(qa,Ja=[]){return this.inlineQueue.push({src:qa,tokens:Ja}),Ja}inlineTokens(qa,Ja=[]){let ed,td,rd,od=qa,sd,ld,cd;if(this.tokens.links){const ud=Object.keys(this.tokens.links);if(ud.length>0)for(;(sd=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)ud.includes(sd[0].slice(sd[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(sd=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(sd=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,sd.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ld||(cd=""),ld=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ud=>(ed=ud.call({lexer:this},qa,Ja))?(qa=qa.substring(ed.raw.length),Ja.push(ed),!0):!1))){if(ed=this.tokenizer.escape(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.tag(qa)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.link(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.emStrong(qa,od,cd)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.codespan(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.br(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.del(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.autolink(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(!this.state.inLink&&(ed=this.tokenizer.url(qa))){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(rd=qa,this.options.extensions&&this.options.extensions.startInline){let ud=1/0;const gd=qa.slice(1);let _d;this.options.extensions.startInline.forEach(yd=>{_d=yd.call({lexer:this},gd),typeof _d=="number"&&_d>=0&&(ud=Math.min(ud,_d))}),ud<1/0&&ud>=0&&(rd=qa.substring(0,ud+1))}if(ed=this.tokenizer.inlineText(rd)){qa=qa.substring(ed.raw.length),ed.raw.slice(-1)!=="_"&&(cd=ed.raw.slice(-1)),ld=!0,td=Ja[Ja.length-1],td&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(qa){const ud="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ud);break}else throw new Error(ud)}}return Ja}},_Renderer$1=class{constructor(qa){t1(this,"options");t1(this,"parser");this.options=qa||_defaults$1}space(qa){return""}code({text:qa,lang:Ja,escaped:ed}){var od;const td=(od=(Ja||"").match(/^\S*/))==null?void 0:od[0],rd=qa.replace(/\n$/,"")+`
+`+td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(qa){const sd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(sd);break}else throw new Error(sd)}}return this.state.top=!0,Ja}inline(qa,Ja=[]){return this.inlineQueue.push({src:qa,tokens:Ja}),Ja}inlineTokens(qa,Ja=[]){let ed,td,rd,od=qa,sd,ld,cd;if(this.tokens.links){const ud=Object.keys(this.tokens.links);if(ud.length>0)for(;(sd=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)ud.includes(sd[0].slice(sd[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(sd=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(sd=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,sd.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ld||(cd=""),ld=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ud=>(ed=ud.call({lexer:this},qa,Ja))?(qa=qa.substring(ed.raw.length),Ja.push(ed),!0):!1))){if(ed=this.tokenizer.escape(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.tag(qa)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.link(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.emStrong(qa,od,cd)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.codespan(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.br(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.del(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.autolink(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(!this.state.inLink&&(ed=this.tokenizer.url(qa))){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(rd=qa,this.options.extensions&&this.options.extensions.startInline){let ud=1/0;const _d=qa.slice(1);let yd;this.options.extensions.startInline.forEach(gd=>{yd=gd.call({lexer:this},_d),typeof yd=="number"&&yd>=0&&(ud=Math.min(ud,yd))}),ud<1/0&&ud>=0&&(rd=qa.substring(0,ud+1))}if(ed=this.tokenizer.inlineText(rd)){qa=qa.substring(ed.raw.length),ed.raw.slice(-1)!=="_"&&(cd=ed.raw.slice(-1)),ld=!0,td=Ja[Ja.length-1],td&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(qa){const ud="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ud);break}else throw new Error(ud)}}return Ja}},_Renderer$1=class{constructor(qa){e1(this,"options");e1(this,"parser");this.options=qa||_defaults$1}space(qa){return""}code({text:qa,lang:Ja,escaped:ed}){var od;const td=(od=(Ja||"").match(/^\S*/))==null?void 0:od[0],rd=qa.replace(/\n$/,"")+`
`;return td?''+(ed?rd:escape$1$2(rd,!0))+`
`:""+(ed?rd:escape$1$2(rd,!0))+`
`}blockquote({tokens:qa}){return`
@@ -71,32 +71,32 @@ ${this.parser.parse(qa)}
`}tablerow({text:qa}){return`
${qa}
`}tablecell(qa){const Ja=this.parser.parseInline(qa.tokens),ed=qa.header?"th":"td";return(qa.align?`<${ed} align="${qa.align}">`:`<${ed}>`)+Ja+`${ed}>
-`}strong({tokens:qa}){return`${this.parser.parseInline(qa)}`}em({tokens:qa}){return`${this.parser.parseInline(qa)}`}codespan({text:qa}){return`${qa}
`}br(qa){return"
"}del({tokens:qa}){return`${this.parser.parseInline(qa)}`}link({href:qa,title:Ja,tokens:ed}){const td=this.parser.parseInline(ed),rd=cleanUrl$1(qa);if(rd===null)return td;qa=rd;let od='