| Server IP : 35.80.110.71 / Your IP : 216.73.216.21 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/client-portal-laravel/releases/20260626120707/public/build/assets/ |
Upload File : |
function Ge(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var re=Ge();function Tt(r){re=r}var fe={exec:()=>null};function A(r,e=""){let n=typeof r=="string"?r:r.source,i={replace:(t,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(q.caret,"$1"),n=n.replace(t,l),i},getRegex:()=>new RegExp(n,e)};return i}var Pn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),q={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},Dn=/^(?:[ \t]*(?:\n|$))+/,Hn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,de=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,qn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ze=/(?:[*+-]|\d{1,9}[.)])/,At=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Mt=A(At).replace(/bull/g,Ze).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/\|table/g,"").getRegex(),Un=A(At).replace(/bull/g,Ze).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),We=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Gn=/^[^\n]+/,Fe=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Zn=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Fe).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Wn=A(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ze).getRegex(),$e="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",Qe=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Fn=A("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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",Qe).replace("tag",$e).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$t=A(We).replace("hr",de).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",$e).getRegex(),Qn=A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$t).getRegex(),Xe={blockquote:Qn,code:Hn,def:Zn,fences:jn,heading:qn,hr:de,html:Fn,lheading:Mt,list:Wn,newline:Dn,paragraph:$t,table:fe,text:Gn},wt=A("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",de).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\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",$e).getRegex(),Xn={...Xe,lheading:Un,table:wt,paragraph:A(We).replace("hr",de).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",wt).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",$e).getRegex()},Kn={...Xe,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Qe).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:fe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(We).replace("hr",de).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Mt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Yn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Jn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ot=/^( {2,}|\\)\n(?!\s*$)/,Vn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Oe=/[\p{P}\p{S}]/u,Ke=/[\s\p{P}\p{S}]/u,It=/[^\s\p{P}\p{S}]/u,er=A(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ke).getRegex(),Nt=/(?!~)[\p{P}\p{S}]/u,tr=/(?!~)[\s\p{P}\p{S}]/u,nr=/(?:[^\s\p{P}\p{S}]|~)/u,rr=A(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Pn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Bt=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,sr=A(Bt,"u").replace(/punct/g,Oe).getRegex(),ir=A(Bt,"u").replace(/punct/g,Nt).getRegex(),Ct="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lr=A(Ct,"gu").replace(/notPunctSpace/g,It).replace(/punctSpace/g,Ke).replace(/punct/g,Oe).getRegex(),ar=A(Ct,"gu").replace(/notPunctSpace/g,nr).replace(/punctSpace/g,tr).replace(/punct/g,Nt).getRegex(),or=A("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,It).replace(/punctSpace/g,Ke).replace(/punct/g,Oe).getRegex(),cr=A(/\\(punct)/,"gu").replace(/punct/g,Oe).getRegex(),hr=A(/^<(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(),ur=A(Qe).replace("(?:-->|$)","-->").getRegex(),pr=A("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ur).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,gr=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Lt=A(/^!?\[(label)\]\[(ref)\]/).replace("label",Te).replace("ref",Fe).getRegex(),vt=A(/^!?\[(ref)\](?:\[\])?/).replace("ref",Fe).getRegex(),fr=A("reflink|nolink(?!\\()","g").replace("reflink",Lt).replace("nolink",vt).getRegex(),yt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ye={_backpedal:fe,anyPunctuation:cr,autolink:hr,blockSkip:rr,br:Ot,code:Jn,del:fe,emStrongLDelim:sr,emStrongRDelimAst:lr,emStrongRDelimUnd:or,escape:Yn,link:gr,nolink:vt,punctuation:er,reflink:Lt,reflinkSearch:fr,tag:pr,text:Vn,url:fe},dr={...Ye,link:A(/^!?\[(label)\]\((.*?)\)/).replace("label",Te).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Te).getRegex()},je={...Ye,emStrongRDelimAst:ar,emStrongLDelim:ir,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",yt).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\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",yt).getRegex()},kr={...je,br:A(Ot).replace("{2,}","*").getRegex(),text:A(je.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},me={normal:Xe,gfm:Xn,pedantic:Kn},ue={normal:Ye,gfm:je,breaks:kr,pedantic:dr},br={"&":"&","<":"<",">":">",'"':""","'":"'"},Et=r=>br[r];function Y(r,e){if(e){if(q.escapeTest.test(r))return r.replace(q.escapeReplace,Et)}else if(q.escapeTestNoEncode.test(r))return r.replace(q.escapeReplaceNoEncode,Et);return r}function Rt(r){try{r=encodeURI(r).replace(q.percentDecode,"%")}catch{return null}return r}function _t(r,e){let n=r.replace(q.findPipe,(a,l,g)=>{let o=!1,w=l;for(;--w>=0&&g[w]==="\\";)o=!o;return o?"|":" |"}),i=n.split(q.splitPipe),t=0;if(i[0].trim()||i.shift(),i.length>0&&!i.at(-1)?.trim()&&i.pop(),e)if(i.length>e)i.splice(e);else for(;i.length<e;)i.push("");for(;t<i.length;t++)i[t]=i[t].trim().replace(q.slashPipe,"|");return i}function pe(r,e,n){let i=r.length;if(i===0)return"";let t=0;for(;t<i&&r.charAt(i-t-1)===e;)t++;return r.slice(0,i-t)}function xr(r,e){if(r.indexOf(e[1])===-1)return-1;let n=0;for(let i=0;i<r.length;i++)if(r[i]==="\\")i++;else if(r[i]===e[0])n++;else if(r[i]===e[1]&&(n--,n<0))return i;return n>0?-2:-1}function St(r,e,n,i,t){let a=e.href,l=e.title||null,g=r[1].replace(t.other.outputLinkReplace,"$1");i.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:l,text:g,tokens:i.inlineTokens(g)};return i.state.inLink=!1,o}function wr(r,e,n){let i=r.match(n.other.indentCodeCompensation);if(i===null)return e;let t=i[1];return e.split(`
`).map(a=>{let l=a.match(n.other.beginningSpace);if(l===null)return a;let[g]=l;return g.length>=t.length?a.slice(t.length):a}).join(`
`)}var Ae=class{options;rules;lexer;constructor(r){this.options=r||re}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let n=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:pe(n,`
`)}}}fences(r){let e=this.rules.block.fences.exec(r);if(e){let n=e[0],i=wr(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:i}}}heading(r){let e=this.rules.block.heading.exec(r);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let i=pe(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(r){let e=this.rules.block.hr.exec(r);if(e)return{type:"hr",raw:pe(e[0],`
`)}}blockquote(r){let e=this.rules.block.blockquote.exec(r);if(e){let n=pe(e[0],`
`).split(`
`),i="",t="",a=[];for(;n.length>0;){let l=!1,g=[],o;for(o=0;o<n.length;o++)if(this.rules.other.blockquoteStart.test(n[o]))g.push(n[o]),l=!0;else if(!l)g.push(n[o]);else break;n=n.slice(o);let w=g.join(`
`),d=w.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${w}`:w,t=t?`${t}
${d}`:d;let T=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,a,!0),this.lexer.state.top=T,n.length===0)break;let m=a.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let v=m,N=v.raw+`
`+n.join(`
`),z=this.blockquote(N);a[a.length-1]=z,i=i.substring(0,i.length-v.raw.length)+z.raw,t=t.substring(0,t.length-v.text.length)+z.text;break}else if(m?.type==="list"){let v=m,N=v.raw+`
`+n.join(`
`),z=this.list(N);a[a.length-1]=z,i=i.substring(0,i.length-m.raw.length)+z.raw,t=t.substring(0,t.length-v.raw.length)+z.raw,n=N.substring(a.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:a,text:t}}}list(r){let e=this.rules.block.list.exec(r);if(e){let n=e[1].trim(),i=n.length>1,t={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let a=this.rules.other.listItemRegex(n),l=!1;for(;r;){let o=!1,w="",d="";if(!(e=a.exec(r))||this.rules.block.hr.test(r))break;w=e[0],r=r.substring(w.length);let T=e[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,z=>" ".repeat(3*z.length)),m=r.split(`
`,1)[0],v=!T.trim(),N=0;if(this.options.pedantic?(N=2,d=T.trimStart()):v?N=e[1].length+1:(N=e[2].search(this.rules.other.nonSpaceChar),N=N>4?1:N,d=T.slice(N),N+=e[1].length),v&&this.rules.other.blankLine.test(m)&&(w+=m+`
`,r=r.substring(m.length+1),o=!0),!o){let z=this.rules.other.nextBulletRegex(N),ke=this.rules.other.hrRegex(N),se=this.rules.other.fencesBeginRegex(N),ae=this.rules.other.headingBeginRegex(N),Ie=this.rules.other.htmlBeginRegex(N);for(;r;){let oe=r.split(`
`,1)[0],X;if(m=oe,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),X=m):X=m.replace(this.rules.other.tabCharGlobal," "),se.test(m)||ae.test(m)||Ie.test(m)||z.test(m)||ke.test(m))break;if(X.search(this.rules.other.nonSpaceChar)>=N||!m.trim())d+=`
`+X.slice(N);else{if(v||T.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||se.test(T)||ae.test(T)||ke.test(T))break;d+=`
`+m}!v&&!m.trim()&&(v=!0),w+=oe+`
`,r=r.substring(oe.length+1),T=X.slice(N)}}t.loose||(l?t.loose=!0:this.rules.other.doubleBlankLine.test(w)&&(l=!0)),t.items.push({type:"list_item",raw:w,task:!!this.options.gfm&&this.rules.other.listIsTask.test(d),loose:!1,text:d,tokens:[]}),t.raw+=w}let g=t.items.at(-1);if(g)g.raw=g.raw.trimEnd(),g.text=g.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o of t.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let d=this.lexer.inlineQueue.length-1;d>=0;d--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[d].src)){this.lexer.inlineQueue[d].src=this.lexer.inlineQueue[d].src.replace(this.rules.other.listReplaceTask,"");break}}let w=this.rules.other.listTaskCheckbox.exec(o.raw);if(w){let d={type:"checkbox",raw:w[0]+" ",checked:w[0]!=="[ ]"};o.checked=d.checked,t.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=d.raw+o.tokens[0].raw,o.tokens[0].text=d.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(d)):o.tokens.unshift({type:"paragraph",raw:d.raw,text:d.raw,tokens:[d]}):o.tokens.unshift(d)}}if(!t.loose){let w=o.tokens.filter(T=>T.type==="space"),d=w.length>0&&w.some(T=>this.rules.other.anyLine.test(T.raw));t.loose=d}}if(t.loose)for(let o of t.items){o.loose=!0;for(let w of o.tokens)w.type==="text"&&(w.type="paragraph")}return t}}html(r){let e=this.rules.block.html.exec(r);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(r){let e=this.rules.block.def.exec(r);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:e[0],href:i,title:t}}}table(r){let e=this.rules.block.table.exec(r);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=_t(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of t)a.rows.push(_t(l,a.header.length).map((g,o)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:a.align[o]})));return a}}lheading(r){let e=this.rules.block.lheading.exec(r);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(r){let e=this.rules.block.paragraph.exec(r);if(e){let n=e[1].charAt(e[1].length-1)===`
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(r){let e=this.rules.block.text.exec(r);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(r){let e=this.rules.inline.escape.exec(r);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(r){let e=this.rules.inline.tag.exec(r);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(r){let e=this.rules.inline.link.exec(r);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=pe(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=xr(e[2],"()");if(a===-2)return;if(a>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let i=e[2],t="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],t=a[3])}else t=e[3]?e[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),St(e,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(r,e){let n;if((n=this.rules.inline.reflink.exec(r))||(n=this.rules.inline.nolink.exec(r))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[i.toLowerCase()];if(!t){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return St(n,t,n[0],this.lexer,this.rules)}}emStrong(r,e,n=""){let i=this.rules.inline.emStrongLDelim.exec(r);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let t=[...i[0]].length-1,a,l,g=t,o=0,w=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(w.lastIndex=0,e=e.slice(-1*r.length+t);(i=w.exec(e))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){g+=l;continue}else if((i[5]||i[6])&&t%3&&!((t+l)%3)){o+=l;continue}if(g-=l,g>0)continue;l=Math.min(l,l+g+o);let d=[...i[0]][0].length,T=r.slice(0,t+i.index+d+l);if(Math.min(t,l)%2){let v=T.slice(1,-1);return{type:"em",raw:T,text:v,tokens:this.lexer.inlineTokens(v)}}let m=T.slice(2,-2);return{type:"strong",raw:T,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(r){let e=this.rules.inline.code.exec(r);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),t=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&t&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(r){let e=this.rules.inline.br.exec(r);if(e)return{type:"br",raw:e[0]}}del(r){let e=this.rules.inline.del.exec(r);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(r){let e=this.rules.inline.autolink.exec(r);if(e){let n,i;return e[2]==="@"?(n=e[1],i="mailto:"+n):(n=e[1],i=n),{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(r){let e;if(e=this.rules.inline.url.exec(r)){let n,i;if(e[2]==="@")n=e[0],i="mailto:"+n;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);n=e[0],e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(r){let e=this.rules.inline.text.exec(r);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},Z=class qe{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||re,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:q,block:me.normal,inline:ue.normal};this.options.pedantic?(n.block=me.pedantic,n.inline=ue.pedantic):this.options.gfm&&(n.block=me.gfm,this.options.breaks?n.inline=ue.breaks:n.inline=ue.gfm),this.tokenizer.rules=n}static get rules(){return{block:me,inline:ue}}static lex(e,n){return new qe(n).lex(e)}static lexInline(e,n){return new qe(n).inlineTokens(e)}lex(e){e=e.replace(q.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],i=!1){for(this.options.pedantic&&(e=e.replace(q.tabCharGlobal," ").replace(q.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(l=>(t=l.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let l=n.at(-1);t.raw.length===1&&l!==void 0?l.raw+=`
`:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+t.raw,l.text+=`
`+t.text,this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+t.raw,l.text+=`
`+t.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},n.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}let a=e;if(this.options.extensions?.startBlock){let l=1/0,g=e.slice(1),o;this.options.extensions.startBlock.forEach(w=>{o=w.call({lexer:this},g),typeof o=="number"&&o>=0&&(l=Math.min(l,o))}),l<1/0&&l>=0&&(a=e.substring(0,l+1))}if(this.state.top&&(t=this.tokenizer.paragraph(a))){let l=n.at(-1);i&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+t.raw,l.text+=`
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t),i=a.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+t.raw,l.text+=`
`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(t);continue}if(e){let l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let i=e,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,t.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=t[2]?t[2].length:0,i=i.slice(0,t.index+a)+"["+"a".repeat(t[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let l=!1,g="";for(;e;){l||(g=""),l=!1;let o;if(this.options.extensions?.inline?.some(d=>(o=d.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let d=n.at(-1);o.type==="text"&&d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,i,g)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let w=e;if(this.options.extensions?.startInline){let d=1/0,T=e.slice(1),m;this.options.extensions.startInline.forEach(v=>{m=v.call({lexer:this},T),typeof m=="number"&&m>=0&&(d=Math.min(d,m))}),d<1/0&&d>=0&&(w=e.substring(0,d+1))}if(o=this.tokenizer.inlineText(w)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(g=o.raw.slice(-1)),l=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=o.raw,d.text+=o.text):n.push(o);continue}if(e){let d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},Me=class{options;parser;constructor(r){this.options=r||re}space(r){return""}code({text:r,lang:e,escaped:n}){let i=(e||"").match(q.notSpaceStart)?.[0],t=r.replace(q.endingNewline,"")+`
`;return i?'<pre><code class="language-'+Y(i)+'">'+(n?t:Y(t,!0))+`</code></pre>
`:"<pre><code>"+(n?t:Y(t,!0))+`</code></pre>
`}blockquote({tokens:r}){return`<blockquote>
${this.parser.parse(r)}</blockquote>
`}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:e}){return`<h${e}>${this.parser.parseInline(r)}</h${e}>
`}hr(r){return`<hr>
`}list(r){let e=r.ordered,n=r.start,i="";for(let l=0;l<r.items.length;l++){let g=r.items[l];i+=this.listitem(g)}let t=e?"ol":"ul",a=e&&n!==1?' start="'+n+'"':"";return"<"+t+a+`>
`+i+"</"+t+`>
`}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
`}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
`}table(r){let e="",n="";for(let t=0;t<r.header.length;t++)n+=this.tablecell(r.header[t]);e+=this.tablerow({text:n});let i="";for(let t=0;t<r.rows.length;t++){let a=r.rows[t];n="";for(let l=0;l<a.length;l++)n+=this.tablecell(a[l]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+i+`</table>
`}tablerow({text:r}){return`<tr>
${r}</tr>
`}tablecell(r){let e=this.parser.parseInline(r.tokens),n=r.header?"th":"td";return(r.align?`<${n} align="${r.align}">`:`<${n}>`)+e+`</${n}>
`}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${Y(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:e,tokens:n}){let i=this.parser.parseInline(n),t=Rt(r);if(t===null)return i;r=t;let a='<a href="'+r+'"';return e&&(a+=' title="'+Y(e)+'"'),a+=">"+i+"</a>",a}image({href:r,title:e,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let t=Rt(r);if(t===null)return Y(n);r=t;let a=`<img src="${r}" alt="${n}"`;return e&&(a+=` title="${Y(e)}"`),a+=">",a}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:Y(r.text)}},Je=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},W=class Ue{options;renderer;textRenderer;constructor(e){this.options=e||re,this.options.renderer=this.options.renderer||new Me,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Je}static parse(e,n){return new Ue(n).parse(e)}static parseInline(e,n){return new Ue(n).parseInline(e)}parse(e){let n="";for(let i=0;i<e.length;i++){let t=e[i];if(this.options.extensions?.renderers?.[t.type]){let l=t,g=this.options.extensions.renderers[l.type].call({parser:this},l);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){n+=g||"";continue}}let a=t;switch(a.type){case"space":{n+=this.renderer.space(a);break}case"hr":{n+=this.renderer.hr(a);break}case"heading":{n+=this.renderer.heading(a);break}case"code":{n+=this.renderer.code(a);break}case"table":{n+=this.renderer.table(a);break}case"blockquote":{n+=this.renderer.blockquote(a);break}case"list":{n+=this.renderer.list(a);break}case"checkbox":{n+=this.renderer.checkbox(a);break}case"html":{n+=this.renderer.html(a);break}case"def":{n+=this.renderer.def(a);break}case"paragraph":{n+=this.renderer.paragraph(a);break}case"text":{n+=this.renderer.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){let i="";for(let t=0;t<e.length;t++){let a=e[t];if(this.options.extensions?.renderers?.[a.type]){let g=this.options.extensions.renderers[a.type].call({parser:this},a);if(g!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=g||"";continue}}let l=a;switch(l.type){case"escape":{i+=n.text(l);break}case"html":{i+=n.html(l);break}case"link":{i+=n.link(l);break}case"image":{i+=n.image(l);break}case"checkbox":{i+=n.checkbox(l);break}case"strong":{i+=n.strong(l);break}case"em":{i+=n.em(l);break}case"codespan":{i+=n.codespan(l);break}case"br":{i+=n.br(l);break}case"del":{i+=n.del(l);break}case"text":{i+=n.text(l);break}default:{let g='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return i}},ge=class{options;block;constructor(r){this.options=r||re}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?Z.lex:Z.lexInline}provideParser(){return this.block?W.parse:W.parseInline}},yr=class{defaults=Ge();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=W;Renderer=Me;TextRenderer=Je;Lexer=Z;Tokenizer=Ae;Hooks=ge;constructor(...r){this.use(...r)}walkTokens(r,e){let n=[];for(let i of r)switch(n=n.concat(e.call(this,i)),i.type){case"table":{let t=i;for(let a of t.header)n=n.concat(this.walkTokens(a.tokens,e));for(let a of t.rows)for(let l of a)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let t=i;n=n.concat(this.walkTokens(t.items,e));break}default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(a=>{let l=t[a].flat(1/0);n=n.concat(this.walkTokens(l,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...r){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let a=e.renderers[t.name];a?e.renderers[t.name]=function(...l){let g=t.renderer.apply(this,l);return g===!1&&(g=a.apply(this,l)),g}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[t.level];a?a.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),i.extensions=e),n.renderer){let t=this.defaults.renderer||new Me(this.defaults);for(let a in n.renderer){if(!(a in t))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let l=a,g=n.renderer[l],o=t[l];t[l]=(...w)=>{let d=g.apply(t,w);return d===!1&&(d=o.apply(t,w)),d||""}}i.renderer=t}if(n.tokenizer){let t=this.defaults.tokenizer||new Ae(this.defaults);for(let a in n.tokenizer){if(!(a in t))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let l=a,g=n.tokenizer[l],o=t[l];t[l]=(...w)=>{let d=g.apply(t,w);return d===!1&&(d=o.apply(t,w)),d}}i.tokenizer=t}if(n.hooks){let t=this.defaults.hooks||new ge;for(let a in n.hooks){if(!(a in t))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let l=a,g=n.hooks[l],o=t[l];ge.passThroughHooks.has(a)?t[l]=w=>{if(this.defaults.async&&ge.passThroughHooksRespectAsync.has(a))return(async()=>{let T=await g.call(t,w);return o.call(t,T)})();let d=g.call(t,w);return o.call(t,d)}:t[l]=(...w)=>{if(this.defaults.async)return(async()=>{let T=await g.apply(t,w);return T===!1&&(T=await o.apply(t,w)),T})();let d=g.apply(t,w);return d===!1&&(d=o.apply(t,w)),d}}i.hooks=t}if(n.walkTokens){let t=this.defaults.walkTokens,a=n.walkTokens;i.walkTokens=function(l){let g=[];return g.push(a.call(this,l)),t&&(g=g.concat(t.call(this,l))),g}}this.defaults={...this.defaults,...i}}),this}setOptions(r){return this.defaults={...this.defaults,...r},this}lexer(r,e){return Z.lex(r,e??this.defaults)}parser(r,e){return W.parse(r,e??this.defaults)}parseMarkdown(r){return(e,n)=>{let i={...n},t={...this.defaults,...i},a=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return(async()=>{let l=t.hooks?await t.hooks.preprocess(e):e,g=await(t.hooks?await t.hooks.provideLexer():r?Z.lex:Z.lexInline)(l,t),o=t.hooks?await t.hooks.processAllTokens(g):g;t.walkTokens&&await Promise.all(this.walkTokens(o,t.walkTokens));let w=await(t.hooks?await t.hooks.provideParser():r?W.parse:W.parseInline)(o,t);return t.hooks?await t.hooks.postprocess(w):w})().catch(a);try{t.hooks&&(e=t.hooks.preprocess(e));let l=(t.hooks?t.hooks.provideLexer():r?Z.lex:Z.lexInline)(e,t);t.hooks&&(l=t.hooks.processAllTokens(l)),t.walkTokens&&this.walkTokens(l,t.walkTokens);let g=(t.hooks?t.hooks.provideParser():r?W.parse:W.parseInline)(l,t);return t.hooks&&(g=t.hooks.postprocess(g)),g}catch(l){return a(l)}}}onError(r,e){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,r){let i="<p>An error occurred:</p><pre>"+Y(n.message+"",!0)+"</pre>";return e?Promise.resolve(i):i}if(e)return Promise.reject(n);throw n}}},ne=new yr;function $(r,e){return ne.parse(r,e)}$.options=$.setOptions=function(r){return ne.setOptions(r),$.defaults=ne.defaults,Tt($.defaults),$};$.getDefaults=Ge;$.defaults=re;$.use=function(...r){return ne.use(...r),$.defaults=ne.defaults,Tt($.defaults),$};$.walkTokens=function(r,e){return ne.walkTokens(r,e)};$.parseInline=ne.parseInline;$.Parser=W;$.parser=W.parse;$.Renderer=Me;$.TextRenderer=Je;$.Lexer=Z;$.lexer=Z.lex;$.Tokenizer=Ae;$.Hooks=ge;$.parse=$;$.options;$.setOptions;$.use;$.walkTokens;$.parseInline;W.parse;Z.lex;var He,mt;function Rr(){if(mt)return He;mt=1;function r(s){return s instanceof Map?s.clear=s.delete=s.set=function(){throw new Error("map is read-only")}:s instanceof Set&&(s.add=s.clear=s.delete=function(){throw new Error("set is read-only")}),Object.freeze(s),Object.getOwnPropertyNames(s).forEach(c=>{const u=s[c],E=typeof u;(E==="object"||E==="function")&&!Object.isFrozen(u)&&r(u)}),s}class e{constructor(c){c.data===void 0&&(c.data={}),this.data=c.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(s,...c){const u=Object.create(null);for(const E in s)u[E]=s[E];return c.forEach(function(E){for(const B in E)u[B]=E[B]}),u}const t="</span>",a=s=>!!s.scope,l=(s,{prefix:c})=>{if(s.startsWith("language:"))return s.replace("language:","language-");if(s.includes(".")){const u=s.split(".");return[`${c}${u.shift()}`,...u.map((E,B)=>`${E}${"_".repeat(B+1)}`)].join(" ")}return`${c}${s}`};class g{constructor(c,u){this.buffer="",this.classPrefix=u.classPrefix,c.walk(this)}addText(c){this.buffer+=n(c)}openNode(c){if(!a(c))return;const u=l(c.scope,{prefix:this.classPrefix});this.span(u)}closeNode(c){a(c)&&(this.buffer+=t)}value(){return this.buffer}span(c){this.buffer+=`<span class="${c}">`}}const o=(s={})=>{const c={children:[]};return Object.assign(c,s),c};class w{constructor(){this.rootNode=o(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(c){this.top.children.push(c)}openNode(c){const u=o({scope:c});this.add(u),this.stack.push(u)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(c){return this.constructor._walk(c,this.rootNode)}static _walk(c,u){return typeof u=="string"?c.addText(u):u.children&&(c.openNode(u),u.children.forEach(E=>this._walk(c,E)),c.closeNode(u)),c}static _collapse(c){typeof c!="string"&&c.children&&(c.children.every(u=>typeof u=="string")?c.children=[c.children.join("")]:c.children.forEach(u=>{w._collapse(u)}))}}class d extends w{constructor(c){super(),this.options=c}addText(c){c!==""&&this.add(c)}startScope(c){this.openNode(c)}endScope(){this.closeNode()}__addSublanguage(c,u){const E=c.root;u&&(E.scope=`language:${u}`),this.add(E)}toHTML(){return new g(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function T(s){return s?typeof s=="string"?s:s.source:null}function m(s){return z("(?=",s,")")}function v(s){return z("(?:",s,")*")}function N(s){return z("(?:",s,")?")}function z(...s){return s.map(u=>T(u)).join("")}function ke(s){const c=s[s.length-1];return typeof c=="object"&&c.constructor===Object?(s.splice(s.length-1,1),c):{}}function se(...s){return"("+(ke(s).capture?"":"?:")+s.map(E=>T(E)).join("|")+")"}function ae(s){return new RegExp(s.toString()+"|").exec("").length-1}function Ie(s,c){const u=s&&s.exec(c);return u&&u.index===0}const oe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function X(s,{joinWith:c}){let u=0;return s.map(E=>{u+=1;const B=u;let C=T(E),k="";for(;C.length>0;){const f=oe.exec(C);if(!f){k+=C;break}k+=C.substring(0,f.index),C=C.substring(f.index+f[0].length),f[0][0]==="\\"&&f[1]?k+="\\"+String(Number(f[1])+B):(k+=f[0],f[0]==="("&&u++)}return k}).map(E=>`(${E})`).join(c)}const zt=/\b\B/,Ve="[a-zA-Z]\\w*",Ne="[a-zA-Z_]\\w*",et="\\b\\d+(\\.\\d+)?",tt="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",nt="\\b(0b[01]+)",Pt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Dt=(s={})=>{const c=/^#![ ]*\//;return s.binary&&(s.begin=z(c,/.*\b/,s.binary,/\b.*/)),i({scope:"meta",begin:c,end:/$/,relevance:0,"on:begin":(u,E)=>{u.index!==0&&E.ignoreMatch()}},s)},ce={begin:"\\\\[\\s\\S]",relevance:0},Ht={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ce]},jt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ce]},qt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},be=function(s,c,u={}){const E=i({scope:"comment",begin:s,end:c,contains:[]},u);E.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const B=se("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return E.contains.push({begin:z(/[ ]+/,"(",B,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),E},Ut=be("//","$"),Gt=be("/\\*","\\*/"),Zt=be("#","$"),Wt={scope:"number",begin:et,relevance:0},Ft={scope:"number",begin:tt,relevance:0},Qt={scope:"number",begin:nt,relevance:0},Xt={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ce,{begin:/\[/,end:/\]/,relevance:0,contains:[ce]}]},Kt={scope:"title",begin:Ve,relevance:0},Yt={scope:"title",begin:Ne,relevance:0},Jt={begin:"\\.\\s*"+Ne,relevance:0};var xe=Object.freeze({__proto__:null,APOS_STRING_MODE:Ht,BACKSLASH_ESCAPE:ce,BINARY_NUMBER_MODE:Qt,BINARY_NUMBER_RE:nt,COMMENT:be,C_BLOCK_COMMENT_MODE:Gt,C_LINE_COMMENT_MODE:Ut,C_NUMBER_MODE:Ft,C_NUMBER_RE:tt,END_SAME_AS_BEGIN:function(s){return Object.assign(s,{"on:begin":(c,u)=>{u.data._beginMatch=c[1]},"on:end":(c,u)=>{u.data._beginMatch!==c[1]&&u.ignoreMatch()}})},HASH_COMMENT_MODE:Zt,IDENT_RE:Ve,MATCH_NOTHING_RE:zt,METHOD_GUARD:Jt,NUMBER_MODE:Wt,NUMBER_RE:et,PHRASAL_WORDS_MODE:qt,QUOTE_STRING_MODE:jt,REGEXP_MODE:Xt,RE_STARTERS_RE:Pt,SHEBANG:Dt,TITLE_MODE:Kt,UNDERSCORE_IDENT_RE:Ne,UNDERSCORE_TITLE_MODE:Yt});function Vt(s,c){s.input[s.index-1]==="."&&c.ignoreMatch()}function en(s,c){s.className!==void 0&&(s.scope=s.className,delete s.className)}function tn(s,c){c&&s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",s.__beforeBegin=Vt,s.keywords=s.keywords||s.beginKeywords,delete s.beginKeywords,s.relevance===void 0&&(s.relevance=0))}function nn(s,c){Array.isArray(s.illegal)&&(s.illegal=se(...s.illegal))}function rn(s,c){if(s.match){if(s.begin||s.end)throw new Error("begin & end are not supported with match");s.begin=s.match,delete s.match}}function sn(s,c){s.relevance===void 0&&(s.relevance=1)}const ln=(s,c)=>{if(!s.beforeMatch)return;if(s.starts)throw new Error("beforeMatch cannot be used with starts");const u=Object.assign({},s);Object.keys(s).forEach(E=>{delete s[E]}),s.keywords=u.keywords,s.begin=z(u.beforeMatch,m(u.begin)),s.starts={relevance:0,contains:[Object.assign(u,{endsParent:!0})]},s.relevance=0,delete u.beforeMatch},an=["of","and","for","in","not","or","if","then","parent","list","value"],on="keyword";function rt(s,c,u=on){const E=Object.create(null);return typeof s=="string"?B(u,s.split(" ")):Array.isArray(s)?B(u,s):Object.keys(s).forEach(function(C){Object.assign(E,rt(s[C],c,C))}),E;function B(C,k){c&&(k=k.map(f=>f.toLowerCase())),k.forEach(function(f){const y=f.split("|");E[y[0]]=[C,cn(y[0],y[1])]})}}function cn(s,c){return c?Number(c):hn(s)?0:1}function hn(s){return an.includes(s.toLowerCase())}const st={},ee=s=>{console.error(s)},it=(s,...c)=>{console.log(`WARN: ${s}`,...c)},ie=(s,c)=>{st[`${s}/${c}`]||(console.log(`Deprecated as of ${s}. ${c}`),st[`${s}/${c}`]=!0)},we=new Error;function lt(s,c,{key:u}){let E=0;const B=s[u],C={},k={};for(let f=1;f<=c.length;f++)k[f+E]=B[f],C[f+E]=!0,E+=ae(c[f-1]);s[u]=k,s[u]._emit=C,s[u]._multi=!0}function un(s){if(Array.isArray(s.begin)){if(s.skip||s.excludeBegin||s.returnBegin)throw ee("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),we;if(typeof s.beginScope!="object"||s.beginScope===null)throw ee("beginScope must be object"),we;lt(s,s.begin,{key:"beginScope"}),s.begin=X(s.begin,{joinWith:""})}}function pn(s){if(Array.isArray(s.end)){if(s.skip||s.excludeEnd||s.returnEnd)throw ee("skip, excludeEnd, returnEnd not compatible with endScope: {}"),we;if(typeof s.endScope!="object"||s.endScope===null)throw ee("endScope must be object"),we;lt(s,s.end,{key:"endScope"}),s.end=X(s.end,{joinWith:""})}}function gn(s){s.scope&&typeof s.scope=="object"&&s.scope!==null&&(s.beginScope=s.scope,delete s.scope)}function fn(s){gn(s),typeof s.beginScope=="string"&&(s.beginScope={_wrap:s.beginScope}),typeof s.endScope=="string"&&(s.endScope={_wrap:s.endScope}),un(s),pn(s)}function dn(s){function c(k,f){return new RegExp(T(k),"m"+(s.case_insensitive?"i":"")+(s.unicodeRegex?"u":"")+(f?"g":""))}class u{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(f,y){y.position=this.position++,this.matchIndexes[this.matchAt]=y,this.regexes.push([y,f]),this.matchAt+=ae(f)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const f=this.regexes.map(y=>y[1]);this.matcherRe=c(X(f,{joinWith:"|"}),!0),this.lastIndex=0}exec(f){this.matcherRe.lastIndex=this.lastIndex;const y=this.matcherRe.exec(f);if(!y)return null;const D=y.findIndex((he,Ce)=>Ce>0&&he!==void 0),L=this.matchIndexes[D];return y.splice(0,D),Object.assign(y,L)}}class E{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(f){if(this.multiRegexes[f])return this.multiRegexes[f];const y=new u;return this.rules.slice(f).forEach(([D,L])=>y.addRule(D,L)),y.compile(),this.multiRegexes[f]=y,y}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(f,y){this.rules.push([f,y]),y.type==="begin"&&this.count++}exec(f){const y=this.getMatcher(this.regexIndex);y.lastIndex=this.lastIndex;let D=y.exec(f);if(this.resumingScanAtSamePosition()&&!(D&&D.index===this.lastIndex)){const L=this.getMatcher(0);L.lastIndex=this.lastIndex+1,D=L.exec(f)}return D&&(this.regexIndex+=D.position+1,this.regexIndex===this.count&&this.considerAll()),D}}function B(k){const f=new E;return k.contains.forEach(y=>f.addRule(y.begin,{rule:y,type:"begin"})),k.terminatorEnd&&f.addRule(k.terminatorEnd,{type:"end"}),k.illegal&&f.addRule(k.illegal,{type:"illegal"}),f}function C(k,f){const y=k;if(k.isCompiled)return y;[en,rn,fn,ln].forEach(L=>L(k,f)),s.compilerExtensions.forEach(L=>L(k,f)),k.__beforeBegin=null,[tn,nn,sn].forEach(L=>L(k,f)),k.isCompiled=!0;let D=null;return typeof k.keywords=="object"&&k.keywords.$pattern&&(k.keywords=Object.assign({},k.keywords),D=k.keywords.$pattern,delete k.keywords.$pattern),D=D||/\w+/,k.keywords&&(k.keywords=rt(k.keywords,s.case_insensitive)),y.keywordPatternRe=c(D,!0),f&&(k.begin||(k.begin=/\B|\b/),y.beginRe=c(y.begin),!k.end&&!k.endsWithParent&&(k.end=/\B|\b/),k.end&&(y.endRe=c(y.end)),y.terminatorEnd=T(y.end)||"",k.endsWithParent&&f.terminatorEnd&&(y.terminatorEnd+=(k.end?"|":"")+f.terminatorEnd)),k.illegal&&(y.illegalRe=c(k.illegal)),k.contains||(k.contains=[]),k.contains=[].concat(...k.contains.map(function(L){return kn(L==="self"?k:L)})),k.contains.forEach(function(L){C(L,y)}),k.starts&&C(k.starts,f),y.matcher=B(y),y}if(s.compilerExtensions||(s.compilerExtensions=[]),s.contains&&s.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return s.classNameAliases=i(s.classNameAliases||{}),C(s)}function at(s){return s?s.endsWithParent||at(s.starts):!1}function kn(s){return s.variants&&!s.cachedVariants&&(s.cachedVariants=s.variants.map(function(c){return i(s,{variants:null},c)})),s.cachedVariants?s.cachedVariants:at(s)?i(s,{starts:s.starts?i(s.starts):null}):Object.isFrozen(s)?i(s):s}var bn="11.11.1";class xn extends Error{constructor(c,u){super(c),this.name="HTMLInjectionError",this.html=u}}const Be=n,ot=i,ct=Symbol("nomatch"),wn=7,ht=function(s){const c=Object.create(null),u=Object.create(null),E=[];let B=!0;const C="Could not find the language '{}', did you forget to load/include a language module?",k={disableAutodetect:!0,name:"Plain text",contains:[]};let f={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function y(h){return f.noHighlightRe.test(h)}function D(h){let x=h.className+" ";x+=h.parentNode?h.parentNode.className:"";const S=f.languageDetectRe.exec(x);if(S){const O=J(S[1]);return O||(it(C.replace("{}",S[1])),it("Falling back to no-highlight mode for this block.",h)),O?S[1]:"no-highlight"}return x.split(/\s+/).find(O=>y(O)||J(O))}function L(h,x,S){let O="",P="";typeof x=="object"?(O=h,S=x.ignoreIllegals,P=x.language):(ie("10.7.0","highlight(lang, code, ...args) has been deprecated."),ie("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),P=h,O=x),S===void 0&&(S=!0);const G={code:O,language:P};Ee("before:highlight",G);const V=G.result?G.result:he(G.language,G.code,S);return V.code=G.code,Ee("after:highlight",V),V}function he(h,x,S,O){const P=Object.create(null);function G(p,b){return p.keywords[b]}function V(){if(!R.keywords){H.addText(I);return}let p=0;R.keywordPatternRe.lastIndex=0;let b=R.keywordPatternRe.exec(I),_="";for(;b;){_+=I.substring(p,b.index);const M=Q.case_insensitive?b[0].toLowerCase():b[0],j=G(R,M);if(j){const[K,vn]=j;if(H.addText(_),_="",P[M]=(P[M]||0)+1,P[M]<=wn&&(Se+=vn),K.startsWith("_"))_+=b[0];else{const zn=Q.classNameAliases[K]||K;F(b[0],zn)}}else _+=b[0];p=R.keywordPatternRe.lastIndex,b=R.keywordPatternRe.exec(I)}_+=I.substring(p),H.addText(_)}function Re(){if(I==="")return;let p=null;if(typeof R.subLanguage=="string"){if(!c[R.subLanguage]){H.addText(I);return}p=he(R.subLanguage,I,!0,xt[R.subLanguage]),xt[R.subLanguage]=p._top}else p=Le(I,R.subLanguage.length?R.subLanguage:null);R.relevance>0&&(Se+=p.relevance),H.__addSublanguage(p._emitter,p.language)}function U(){R.subLanguage!=null?Re():V(),I=""}function F(p,b){p!==""&&(H.startScope(b),H.addText(p),H.endScope())}function ft(p,b){let _=1;const M=b.length-1;for(;_<=M;){if(!p._emit[_]){_++;continue}const j=Q.classNameAliases[p[_]]||p[_],K=b[_];j?F(K,j):(I=K,V(),I=""),_++}}function dt(p,b){return p.scope&&typeof p.scope=="string"&&H.openNode(Q.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(F(I,Q.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),I=""):p.beginScope._multi&&(ft(p.beginScope,b),I="")),R=Object.create(p,{parent:{value:R}}),R}function kt(p,b,_){let M=Ie(p.endRe,_);if(M){if(p["on:end"]){const j=new e(p);p["on:end"](b,j),j.isMatchIgnored&&(M=!1)}if(M){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return kt(p.parent,b,_)}function In(p){return R.matcher.regexIndex===0?(I+=p[0],1):(De=!0,0)}function Nn(p){const b=p[0],_=p.rule,M=new e(_),j=[_.__beforeBegin,_["on:begin"]];for(const K of j)if(K&&(K(p,M),M.isMatchIgnored))return In(b);return _.skip?I+=b:(_.excludeBegin&&(I+=b),U(),!_.returnBegin&&!_.excludeBegin&&(I=b)),dt(_,p),_.returnBegin?0:b.length}function Bn(p){const b=p[0],_=x.substring(p.index),M=kt(R,p,_);if(!M)return ct;const j=R;R.endScope&&R.endScope._wrap?(U(),F(b,R.endScope._wrap)):R.endScope&&R.endScope._multi?(U(),ft(R.endScope,p)):j.skip?I+=b:(j.returnEnd||j.excludeEnd||(I+=b),U(),j.excludeEnd&&(I=b));do R.scope&&H.closeNode(),!R.skip&&!R.subLanguage&&(Se+=R.relevance),R=R.parent;while(R!==M.parent);return M.starts&&dt(M.starts,p),j.returnEnd?0:b.length}function Cn(){const p=[];for(let b=R;b!==Q;b=b.parent)b.scope&&p.unshift(b.scope);p.forEach(b=>H.openNode(b))}let _e={};function bt(p,b){const _=b&&b[0];if(I+=p,_==null)return U(),0;if(_e.type==="begin"&&b.type==="end"&&_e.index===b.index&&_===""){if(I+=x.slice(b.index,b.index+1),!B){const M=new Error(`0 width match regex (${h})`);throw M.languageName=h,M.badRule=_e.rule,M}return 1}if(_e=b,b.type==="begin")return Nn(b);if(b.type==="illegal"&&!S){const M=new Error('Illegal lexeme "'+_+'" for mode "'+(R.scope||"<unnamed>")+'"');throw M.mode=R,M}else if(b.type==="end"){const M=Bn(b);if(M!==ct)return M}if(b.type==="illegal"&&_==="")return I+=`
`,1;if(Pe>1e5&&Pe>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return I+=_,_.length}const Q=J(h);if(!Q)throw ee(C.replace("{}",h)),new Error('Unknown language: "'+h+'"');const Ln=dn(Q);let ze="",R=O||Ln;const xt={},H=new f.__emitter(f);Cn();let I="",Se=0,te=0,Pe=0,De=!1;try{if(Q.__emitTokens)Q.__emitTokens(x,H);else{for(R.matcher.considerAll();;){Pe++,De?De=!1:R.matcher.considerAll(),R.matcher.lastIndex=te;const p=R.matcher.exec(x);if(!p)break;const b=x.substring(te,p.index),_=bt(b,p);te=p.index+_}bt(x.substring(te))}return H.finalize(),ze=H.toHTML(),{language:h,value:ze,relevance:Se,illegal:!1,_emitter:H,_top:R}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:h,value:Be(x),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:te,context:x.slice(te-100,te+100),mode:p.mode,resultSoFar:ze},_emitter:H};if(B)return{language:h,value:Be(x),illegal:!1,relevance:0,errorRaised:p,_emitter:H,_top:R};throw p}}function Ce(h){const x={value:Be(h),illegal:!1,relevance:0,_top:k,_emitter:new f.__emitter(f)};return x._emitter.addText(h),x}function Le(h,x){x=x||f.languages||Object.keys(c);const S=Ce(h),O=x.filter(J).filter(gt).map(U=>he(U,h,!1));O.unshift(S);const P=O.sort((U,F)=>{if(U.relevance!==F.relevance)return F.relevance-U.relevance;if(U.language&&F.language){if(J(U.language).supersetOf===F.language)return 1;if(J(F.language).supersetOf===U.language)return-1}return 0}),[G,V]=P,Re=G;return Re.secondBest=V,Re}function yn(h,x,S){const O=x&&u[x]||S;h.classList.add("hljs"),h.classList.add(`language-${O}`)}function ve(h){let x=null;const S=D(h);if(y(S))return;if(Ee("before:highlightElement",{el:h,language:S}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(f.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(h)),f.throwUnescapedHTML))throw new xn("One of your code blocks includes unescaped HTML.",h.innerHTML);x=h;const O=x.textContent,P=S?L(O,{language:S,ignoreIllegals:!0}):Le(O);h.innerHTML=P.value,h.dataset.highlighted="yes",yn(h,S,P.language),h.result={language:P.language,re:P.relevance,relevance:P.relevance},P.secondBest&&(h.secondBest={language:P.secondBest.language,relevance:P.secondBest.relevance}),Ee("after:highlightElement",{el:h,result:P,text:O})}function En(h){f=ot(f,h)}const Rn=()=>{ye(),ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _n(){ye(),ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ut=!1;function ye(){function h(){ye()}if(document.readyState==="loading"){ut||window.addEventListener("DOMContentLoaded",h,!1),ut=!0;return}document.querySelectorAll(f.cssSelector).forEach(ve)}function Sn(h,x){let S=null;try{S=x(s)}catch(O){if(ee("Language definition for '{}' could not be registered.".replace("{}",h)),B)ee(O);else throw O;S=k}S.name||(S.name=h),c[h]=S,S.rawDefinition=x.bind(null,s),S.aliases&&pt(S.aliases,{languageName:h})}function mn(h){delete c[h];for(const x of Object.keys(u))u[x]===h&&delete u[x]}function Tn(){return Object.keys(c)}function J(h){return h=(h||"").toLowerCase(),c[h]||c[u[h]]}function pt(h,{languageName:x}){typeof h=="string"&&(h=[h]),h.forEach(S=>{u[S.toLowerCase()]=x})}function gt(h){const x=J(h);return x&&!x.disableAutodetect}function An(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=x=>{h["before:highlightBlock"](Object.assign({block:x.el},x))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=x=>{h["after:highlightBlock"](Object.assign({block:x.el},x))})}function Mn(h){An(h),E.push(h)}function $n(h){const x=E.indexOf(h);x!==-1&&E.splice(x,1)}function Ee(h,x){const S=h;E.forEach(function(O){O[S]&&O[S](x)})}function On(h){return ie("10.7.0","highlightBlock will be removed entirely in v12.0"),ie("10.7.0","Please use highlightElement now."),ve(h)}Object.assign(s,{highlight:L,highlightAuto:Le,highlightAll:ye,highlightElement:ve,highlightBlock:On,configure:En,initHighlighting:Rn,initHighlightingOnLoad:_n,registerLanguage:Sn,unregisterLanguage:mn,listLanguages:Tn,getLanguage:J,registerAliases:pt,autoDetection:gt,inherit:ot,addPlugin:Mn,removePlugin:$n}),s.debugMode=function(){B=!1},s.safeMode=function(){B=!0},s.versionString=bn,s.regex={concat:z,lookahead:m,either:se,optional:N,anyNumberOfTimes:v};for(const h in xe)typeof xe[h]=="object"&&r(xe[h]);return Object.assign(s,xe),s},le=ht({});return le.newInstance=()=>ht({}),He=le,le.HighlightJS=le,le.default=le,He}export{$ as d,Rr as r};