1import{R as Ne}from"./chunk-XPV7SQ5Y.js";import{$ as ke,$b as Pe,A as de,Ad as Me,Ca as B,Fb as Ae,Gb as _e,Gc as ve,Ia as ye,L as ge,La as Se,Oa as Re,Ob as ze,P as fe,Qb as Oe,Rb as Ce,Sa as W,Xa as Te,ca as me,cc as Ie,d as N,da as xe,dc as Le,eb as Ee,gb as X,gd as $,hb as $e,la as be,m as he,ma as we,na as C,pa as w,r as pe,vd as De,y as ue}from"./chunk-T5IFD54H.js";import{a as f,b as O,g as E}from"./chunk-CS7K6LXP.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var z=J();function Ze(n){z=n}var A={exec:()=>null};function d(n,e=""){let i=typeof n=="string"?n:n.source,r={replace:(t,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(b.caret,"$1"),i=i.replace(t,s),r},getRegex:()=>new RegExp(i,e)};return r}var it=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch(n){return!1}})(),b={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,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,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}>`)},st=/^(?:[ \t]*(?:\n|$))+/,lt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,at=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,M=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ot=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,We=d(Qe).replace(/bull/g,Y).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(),ct=d(Qe).replace(/bull/g,Y).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(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ht=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,pt=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ut=d(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),H="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",re=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,dt=d("^ {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|/?>
vendor: 20,751 bytes, lines 1-26
1)[\\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",re).replace("tag",H).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=d(ee).replace("hr",M).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",H).getRegex(),gt=d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),ne={blockquote:gt,code:lt,def:pt,fences:at,heading:ot,hr:M,html:dt,lheading:We,list:ut,newline:st,paragraph:Xe,table:A,text:ht},Be=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",M).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",H).getRegex(),ft=O(f({},ne),{lheading:ct,table:Be,paragraph:d(ee).replace("hr",M).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Be).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",H).getRegex()}),kt=O(f({},ne),{html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",re).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:A,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(ee).replace("hr",M).replace("heading",` *#{1,6} *[^ 2]`).replace("lheading",We).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),mt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ke=/^( {2,}|\\)\n(?!\s*$)/,bt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,P=/[\p{P}\p{S}]/u,U=/[\s\p{P}\p{S}]/u,ie=/[^\s\p{P}\p{S}]/u,wt=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,U).getRegex(),Ge=/(?!~)[\p{P}\p{S}]/u,yt=/(?!~)[\s\p{P}\p{S}]/u,St=/(?:[^\s\p{P}\p{S}]|~)/u,Rt=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",it?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ve=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Tt=d(Ve,"u").replace(/punct/g,P).getRegex(),Et=d(Ve,"u").replace(/punct/g,Ge).getRegex(),Je="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$t=d(Je,"gu").replace(/notPunctSpace/g,ie).replace(/punctSpace/g,U).replace(/punct/g,P).getRegex(),At=d(Je,"gu").replace(/notPunctSpace/g,St).replace(/punctSpace/g,yt).replace(/punct/g,Ge).getRegex(),_t=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ie).replace(/punctSpace/g,U).replace(/punct/g,P).getRegex(),zt=d(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,P).getRegex(),Ot="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ct=d(Ot,"gu").replace(/notPunctSpace/g,ie).replace(/punctSpace/g,U).replace(/punct/g,P).getRegex(),Pt=d(/\\(punct)/,"gu").replace(/punct/g,P).getRegex(),It=d(/^<(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(),Lt=d(re).replace("(?:-->|$)","-->").getRegex(),vt=d("^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",Lt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Dt=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ye=d(/^!?\[(label)\]\[(ref)\]/).replace("label",q).replace("ref",te).getRegex(),et=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",te).getRegex(),Mt=d("reflink|nolink(?!\\()","g").replace("reflink",Ye).replace("nolink",et).getRegex(),je=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,se={_backpedal:A,anyPunctuation:Pt,autolink:It,blockSkip:Rt,br:Ke,code:xt,del:A,delLDelim:A,delRDelim:A,emStrongLDelim:Tt,emStrongRDelimAst:$t,emStrongRDelimUnd:_t,escape:mt,link:Dt,nolink:et,punctuation:wt,reflink:Ye,reflinkSearch:Mt,tag:vt,text:bt,url:A},Nt=O(f({},se),{link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",q).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q).getRegex()}),K=O(f({},se),{emStrongRDelimAst:At,emStrongLDelim:Et,delLDelim:zt,delRDelim:Ct,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",je).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:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",je).getRegex()}),Bt=O(f({},K),{br:d(Ke).replace("{2,}","*").getRegex(),text:d(K.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),j={normal:ne,gfm:ft,pedantic:kt},L={normal:se,gfm:K,breaks:Bt,pedantic:Nt},jt={"&":"&","<":"<",">":">",'"':""","'":"'"},qe=n=>jt[n];function R(n,e){if(e){if(b.escapeTest.test(n))return n.replace(b.escapeReplace,qe)}else if(b.escapeTestNoEncode.test(n))return n.replace(b.escapeReplaceNoEncode,qe);return n}function Fe(n){try{n=encodeURI(n).replace(b.percentDecode,"%")}catch(e){return null}return n}function He(n,e){let i=n.replace(b.findPipe,(l,s,o)=>{let a=!1,h=s;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),r=i.split(b.splitPipe),t=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;t<r.length;t++)r[t]=r[t].trim().replace(b.slashPipe,"|");return r}function v(n,e,i){let r=n.length;if(r===0)return"";let t=0;for(;t<r;){let l=n.charAt(r-t-1);if(l===e&&!i)t++;else if(l!==e&&i)t++;else break}return n.slice(0,r-t)}function qt(n,e){if(n.indexOf(e[1])===-1)return-1;let i=0;for(let r=0;r<n.length;r++)if(n[r]==="\\")r++;else if(n[r]===e[0])i++;else if(n[r]===e[1]&&(i--,i<0))return r;return i>0?-2:-1}function Ft(n,e=0){let i=e,r="";for(let t of n)if(t===" "){let l=4-i%4;r+=" ".repeat(l),i+=l}else r+=t,i++;return r}function Ue(n,e,i,r,t){let l=e.href,s=e.title||null,o=n[1].replace(t.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:n[0].charAt(0)==="!"?"image":"link",raw:i,href:l,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}function Ht(n,e,i){let r=n.match(i.other.indentCodeCompensation);if(r===null)return e;let t=r[1];return e.split(` 3`).map(l=>{let s=l.match(i.other.beginningSpace);if(s===null)return l;let[o]=s;return o.length>=t.length?l.slice(t.length):l}).join(` 4`)}var F=class{options;rules;lexer;constructor(n){this.options=n||z}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:v(i,` 5`)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let i=e[0],r=Ht(i,e[3]||"",this.rules);return{type:"code",raw:i,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let i=e[2].trim();if(this.rules.other.endingHash.test(i)){let r=v(i,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(i=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:v(e[0],` 6`)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let i=v(e[0],` 7`).split(` 8`),r="",t="",l=[];for(;i.length>0;){let s=!1,o=[],a;for(a=0;a<i.length;a++)if(this.rules.other.blockquoteStart.test(i[a]))o.push(i[a]),s=!0;else if(!s)o.push(i[a]);else break;i=i.slice(a);let h=o.join(` 9`),c=h.replace(this.rules.other.blockquoteSetextReplace,` 10 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r} 11${h}`:h,t=t?`${t} 12${c}`:c;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,l,!0),this.lexer.state.top=u,i.length===0)break;let p=l.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let m=p,k=m.raw+` 13`+i.join(` 14`),x=this.blockquote(k);l[l.length-1]=x,r=r.substring(0,r.length-m.raw.length)+x.raw,t=t.substring(0,t.length-m.text.length)+x.text;break}else if(p?.type==="list"){let m=p,k=m.raw+` 15`+i.join(` 16`),x=this.list(k);l[l.length-1]=x,r=r.substring(0,r.length-p.raw.length)+x.raw,t=t.substring(0,t.length-m.raw.length)+x.raw,i=k.substring(l.at(-1).raw.length).split(` 17`);continue}}return{type:"blockquote",raw:r,tokens:l,text:t}}}list(n){let e=this.rules.block.list.exec(n);if(e){let i=e[1].trim(),r=i.length>1,t={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");let l=this.rules.other.listItemRegex(i),s=!1;for(;n;){let a=!1,h="",c="";if(!(e=l.exec(n))||this.rules.block.hr.test(n))break;h=e[0],n=n.substring(h.length);let u=Ft(e[2].split(` 18`,1)[0],e[1].length),p=n.split(` 19`,1)[0],m=!u.trim(),k=0;if(this.options.pedantic?(k=2,c=u.trimStart()):m?k=e[1].length+1:(k=u.search(this.rules.other.nonSpaceChar),k=k>4?1:k,c=u.slice(k),k+=e[1].length),m&&this.rules.other.blankLine.test(p)&&(h+=p+` 20`,n=n.substring(p.length+1),a=!0),!a){let x=this.rules.other.nextBulletRegex(k),Z=this.rules.other.hrRegex(k),oe=this.rules.other.fencesBeginRegex(k),ce=this.rules.other.headingBeginRegex(k),rt=this.rules.other.htmlBeginRegex(k),nt=this.rules.other.blockquoteBeginRegex(k);for(;n;){let Q=n.split(` 21`,1)[0],I;if(p=Q,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),I=p):I=p.replace(this.rules.other.tabCharGlobal," "),oe.test(p)||ce.test(p)||rt.test(p)||nt.test(p)||x.test(p)||Z.test(p))break;if(I.search(this.rules.other.nonSpaceChar)>=k||!p.trim())c+=` 22`+I.slice(k);else{if(m||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||oe.test(u)||ce.test(u)||Z.test(u))break;c+=` 23`+p}m=!p.trim(),h+=Q+` 24`,n=n.substring(Q.length+1),u=I.slice(k)}}t.loose||(s?t.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(s=!0)),t.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),t.raw+=h}let o=t.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let a of t.items){if(this.lexer.state.top=!1,a.tokens=this.lexer.blockTokens(a.text,[]),a.task){if(a.text=a.text.replace(this.rules.other.listReplaceTask,""),a.tokens[0]?.type==="text"||a.tokens[0]?.type==="paragraph"){a.tokens[0].raw=a.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),a.tokens[0].text=a.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(a.raw);if(h){let c={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};a.checked=c.checked,t.loose?a.tokens[0]&&["paragraph","text"].includes(a.tokens[0].type)&&"tokens"in a.tokens[0]&&a.tokens[0].tokens?(a.tokens[0].raw=c.raw+a.tokens[0].raw,a.tokens[0].text=c.raw+a.tokens[0].text,a.tokens[0].tokens.unshift(c)):a.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):a.tokens.unshift(c)}}if(!t.loose){let h=a.tokens.filter(u=>u.type==="space"),c=h.length>0&&h.some(u=>this.rules.other.anyLine.test(u.raw));t.loose=c}}if(t.loose)for(let a of t.items){a.loose=!0;for(let h of a.tokens)h.type==="text"&&(h.type="paragraph")}return t}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let i=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=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:i,raw:e[0],href:r,title:t}}}table(n){let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let i=He(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(` 25`):[],l={type:"table",raw:e[0],header:[],align:[],rows:[]};if(i.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?l.align.push("right"):this.rules.other.tableAlignCenter.test(s)?l.align.push("center"):this.rules.other.tableAlignLeft.test(s)?l.align.push("left"):l.align.push(null);for(let s=0;s<i.length;s++)l.header.push({text:i[s],tokens:this.lexer.inline(i[s]),header:!0,align:l.align[s]});for(let s of t)l.rows.push(He(s,l.header.length).map((o,a)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:l.align[a]})));return l}}lheading(n){let e=this.rules.block.lheading.exec(n);if(e){let i=e[1].trim();return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(n){let e=this.rules.block.paragraph.exec(n);if(e){let i=e[1].charAt(e[1].length-1)===` 26`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:i,tokens:this.lexer.inline(i)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);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(n){let e=this.rules.inline.link.exec(n);if(e){let i=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=v(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=qt(e[2],"()");if(l===-2)return;if(l>-1){let s=(e[0].indexOf("!")===0?5:4)+e[1].length+l;e[2]=e[2].substring(0,l),e[0]=e[0].substring(0,s).trim(),e[3]=""}}let r=e[2],t="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(r);l&&(r=l[1],t=l[3])}else t=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?r=r.slice(1):r=r.slice(1,-1)),Ue(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let i;if((i=this.rules.inline.reflink.exec(n))||(i=this.rules.inline.nolink.exec(n))){let r=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=e[r.toLowerCase()];if(!t){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return Ue(i,t,i[0],this.lexer,this.rules)}}emStrong(n,e,i=""){let r=this.rules.inline.emStrongLDelim.exec(n);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!i||this.rules.inline.punctuation.exec(i))){let t=[...r[0]].length-1,l,s,o=t,a=0,h=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+t);(r=h.exec(e))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(s=[...l].length,r[3]||r[4]){o+=s;continue}else if((r[5]||r[6])&&t%3&&!((t+s)%3)){a+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+a);let c=[...r[0]][0].length,u=n.slice(0,t+r.index+c+s);if(Math.min(t,s)%2){let m=u.slice(1,-1);return{type:"em",raw:u,text:m,tokens:this.lexer.inlineTokens(m)}}let p=u.slice(2,-2);return{type:"strong",raw:u,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let i=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(i),t=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return r&&t&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:e[0],text:i}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n,e,i=""){let r=this.rules.inline.delLDelim.exec(n);if(r&&(!r[1]||!i||this.rules.inline.punctuation.exec(i))){let t=[...r[0]].length-1,l,s,o=t,a=this.rules.inline.delRDelim;for(a.lastIndex=0,e=e.slice(-1*n.length+t);(r=a.exec(e))!=null;){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l||(s=[...l].length,s!==t))continue;if(r[3]||r[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let h=[...r[0]][0].length,c=n.slice(0,t+r.index+h+s),u=c.slice(t,-t);return{type:"del",raw:c,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let i,r;return e[2]==="@"?(i=e[1],r="mailto:"+i):(i=e[1],r=i),{type:"link",raw:e[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(n){let e;if(e=this.rules.inline.url.exec(n)){let i,r;if(e[2]==="@")i=e[0],r="mailto:"+i;else{let t;do t=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(t!==e[0]);i=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let i=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:i}}}},y=class G{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||z,this.options.tokenizer=this.options.tokenizer||new F,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 i={other:b,block:j.normal,inline:L.normal};this.options.pedantic?(i.block=j.pedantic,i.inline=L.pedantic):this.options.gfm&&(i.block=j.gfm,this.options.breaks?i.inline=L.breaks:i.inline=L.gfm),this.tokenizer.rules=i}static get rules(){return{block:j,inline:L}}static lex(e,i){return new G(i).lex(e)}
vendor: 5,445 bytes, lines 26-41
26static lexInline(e,i){return new G(i).inlineTokens(e)}lex(e){e=e.replace(b.carriageReturn,` 27`),this.blockTokens(e,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let r=this.inlineQueue[i];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,i=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));e;){let t;if(this.options.extensions?.block?.some(s=>(t=s.call({lexer:this},e,i))?(e=e.substring(t.raw.length),i.push(t),!0):!1))continue;if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length);let s=i.at(-1);t.raw.length===1&&s!==void 0?s.raw+=` 28`:i.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length);let s=i.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` 29`)?"":` 30`)+t.raw,s.text+=` 31`+t.text,this.inlineQueue.at(-1).src=s.text):i.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length);let s=i.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(` 32`)?"":` 33`)+t.raw,s.text+=` 34`+t.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},i.push(t));continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),i.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),i.push(t);continue}let l=e;if(this.options.extensions?.startBlock){let s=1/0,o=e.slice(1),a;this.options.extensions.startBlock.forEach(h=>{a=h.call({lexer:this},o),typeof a=="number"&&a>=0&&(s=Math.min(s,a))}),s<1/0&&s>=0&&(l=e.substring(0,s+1))}if(this.state.top&&(t=this.tokenizer.paragraph(l))){let s=i.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(` 35`)?"":` 36`)+t.raw,s.text+=` 37`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):i.push(t),r=l.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length);let s=i.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(` 38`)?"":` 39`)+t.raw,s.text+=` 40`+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):i.push(t);continue}if(e){let s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,i}inline(e,i=[]){return this.inlineQueue.push({src:e,tokens:i}),i}inlineTokens(e,i=[]){this.tokenizer.lexer=this;let r=e,t=null;if(this.tokens.links){let a=Object.keys(this.tokens.links);if(a.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)a.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,t.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)l=t[2]?t[2].length:0,r=r.slice(0,t.index+l)+"["+"a".repeat(t[0].length-l-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,o="";for(;e;){s||(o=""),s=!1;let a;if(this.options.extensions?.inline?.some(c=>(a=c.call({lexer:this},e,i))?(e=e.substring(a.raw.length),i.push(a),!0):!1))continue;if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length);let c=i.at(-1);a.type==="text"&&c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):i.push(a);continue}if(a=this.tokenizer.emStrong(e,r,o)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.del(e,r,o)){e=e.substring(a.raw.length),i.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),i.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),i.push(a);continue}let h=e;if(this.options.extensions?.startInline){let c=1/0,u=e.slice(1),p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},u),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(h=e.substring(0,c+1))}if(a=this.tokenizer.inlineText(h)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),s=!0;let c=i.at(-1);c?.type==="text"?(c.raw+=a.raw,c.text+=a.text):i.push(a);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return i}},T=class{options;parser;constructor(n){this.options=n||z}space(n){return""}code({text:n,lang:e,escaped:i}){let r=(e||"").match(b.notSpaceStart)?.[0],t=n.replace(b.endingNewline,"")+` 41`;return r?'<pre><code class="language-'+R(r)+'">
41'+(i?t:R(t,!0))+`</code></pre> 42`:"<pre><code>"+(i?t:R(t,!0))+`</code></pre> 43`}blockquote({tokens:n}){return`<blockquote> 44${this.parser.parse(n)}</blockquote> 45`}html({text:n}){return n}def(n){return""}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}> 46`}hr(n){return`<hr> 47`}list(n){let e=n.ordered,i=n.start,r="";for(let s=0;s<n.items.length;s++){let o=n.items[s];r+=this.listitem(o)}let t=e?"ol":"ul",l=e&&i!==1?' start="'+i+'"':"";return"<"+t+l+`> 48`+r+"</"+t+`> 49`}listitem(n){return`<li>${this.parser.parse(n.tokens)}</li> 50`}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p> 51`}table(n){let e="",i="";for(let t=0;t<n.header.length;t++)i+=this.tablecell(n.header[t]);e+=this.tablerow({text:i});let r="";for(let t=0;t<n.rows.length;t++){let l=n.rows[t];i="";for(let s=0;s<l.length;s++)i+=this.tablecell(l[s]);r+=this.tablerow({text:i})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 52<thead> 53`+e+`</thead> 54`+r+`</table> 55`}tablerow({text:n}){return`<tr> 56${n}</tr> 57`}tablecell(n){let e=this.parser.parseInline(n.tokens),i=n.header?"th":"td";return(n.align?`<${i} align="${n.align}">`:`<${i}>`)+e+`</${i}> 58`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${R(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:i}){let r=this.parser.parseInline(i),t=Fe(n);if(t===null)return r;n=t;let l='<a href="'+n+'"';return e&&(l+=' title="'+R(e)+'"'),l+=">"+r+"</a>",l}image({href:n,title:e,text:i,tokens:r}){r&&(i=this.parser.parseInline(r,this.parser.textRenderer));let t=Fe(n);if(t===null)return R(i);n=t;let l=`<img src="${n}" alt="${R(i)}"`;return e&&(l+=` title="${R(e)}"`),l+=">",l}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:R(n.text)}},le=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}checkbox({raw:n}){return n}},S=class V{options;renderer;textRenderer;constructor(e){this.options=e||z,this.options.renderer=this.options.renderer||new T,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new le}static parse(e,i){return new V(i).parse(e)}static parseInline(e,i){return new V(i).parseInline(e)}parse(e){this.renderer.parser=this;let i="";for(let r=0;r<e.length;r++){let t=e[r];if(this.options.extensions?.renderers?.[t.type]){let s=t,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){i+=o||"";continue}}let l=t;switch(l.type){case"space":{i+=this.renderer.space(l);break}case"hr":{i+=this.renderer.hr(l);break}case"heading":{i+=this.renderer.heading(l);break}case"code":{i+=this.renderer.code(l);break}case"table":{i+=this.renderer.table(l);break}case"blockquote":{i+=this.renderer.blockquote(l);break}case"list":{i+=this.renderer.list(l);break}case"checkbox":{i+=this.renderer.checkbox(l);break}case"html":{i+=this.renderer.html(l);break}case"def":{i+=this.renderer.def(l);break}case"paragraph":{i+=this.renderer.paragraph(l);break}case"text":{i+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}parseInline(e,i=this.renderer){this.renderer.parser=this;let r="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=o||"";continue}}let s=l;switch(s.type){case"escape":{r+=i.text(s);break}case"html":{r+=i.html(s);break}case"link":{r+=i.link(s);break}case"image":{r+=i.image(s);break}case"checkbox":{r+=i.checkbox(s);break}case"strong":{r+=i.strong(s);break}case"em":{r+=i.em(s);break}case"codespan":{r+=i.codespan(s);break}case"br":{r+=i.br(s);break}case"del":{r+=i.del(s);break}case"text":{r+=i.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},D=class{options;block;constructor(n){this.options=n||z}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?y.lex:y.lexInline}provideParser(){return this.block?S.parse:S.parseInline}},Ut=class{defaults=J();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=S;Renderer=T;TextRenderer=le;Lexer=y;Tokenizer=F;Hooks=D;constructor(...n){this.use(...n)}walkTokens(n,e){let i=[];for(let r of n)switch(i=i.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let l of t.header)i=i.concat(this.walkTokens(l.tokens,e));for(let l of t.rows)for(let s of l)i=i.concat(this.walkTokens(s.tokens,e));break}case"list":{let t=r;
58i=i.concat(this.walkTokens(t.items,e));break}default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(l=>{let s=t[l].flat(1/0);i=i.concat(this.walkTokens(s,e))}):t.tokens&&(i=i.concat(this.walkTokens(t.tokens,e)))}}return i}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(i=>{let r=f({},i);if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let l=e.renderers[t.name];l?e.renderers[t.name]=function(...s){let o=t.renderer.apply(this,s);return o===!1&&(o=l.apply(this,s)),o}: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 l=e[t.level];l?l.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)}),r.extensions=e),i.renderer){let t=this.defaults.renderer||new T(this.defaults);for(let l in i.renderer){if(!(l in t))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let s=l,o=i.renderer[s],a=t[s];t[s]=(...h)=>{let c=o.apply(t,h);return c===!1&&(c=a.apply(t,h)),c||""}}r.renderer=t}if(i.tokenizer){let t=this.defaults.tokenizer||new F(this.defaults);for(let l in i.tokenizer){if(!(l in t))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let s=l,o=i.tokenizer[s],a=t[s];t[s]=(...h)=>{let c=o.apply(t,h);return c===!1&&(c=a.apply(t,h)),c}}r.tokenizer=t}if(i.hooks){let t=this.defaults.hooks||new D;for(let l in i.hooks){if(!(l in t))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let s=l,o=i.hooks[s],a=t[s];D.passThroughHooks.has(l)?t[s]=h=>{if(this.defaults.async&&D.passThroughHooksRespectAsync.has(l))return E(this,null,function*(){let u=yield o.call(t,h);return a.call(t,u)});let c=o.call(t,h);return a.call(t,c)}:t[s]=(...h)=>{if(this.defaults.async)return E(this,null,function*(){let u=yield o.apply(t,h);return u===!1&&(u=yield a.apply(t,h)),u});let c=o.apply(t,h);return c===!1&&(c=a.apply(t,h)),c}}r.hooks=t}if(i.walkTokens){let t=this.defaults.walkTokens,l=i.walkTokens;r.walkTokens=function(s){let o=[];return o.push(l.call(this,s)),t&&(o=o.concat(t.call(this,s))),o}}this.defaults=f(f({},this.defaults),r)}),this}setOptions(n){return this.defaults=f(f({},this.defaults),n),this}lexer(n,e){return y.lex(n,e??this.defaults)}parser(n,e){return S.parse(n,e??this.defaults)}parseMarkdown(n){return(e,i)=>{let r=f({},i),t=f(f({},this.defaults),r),l=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&r.async===!1)return l(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 l(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l(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=n),t.async)return E(this,null,function*(){let s=t.hooks?yield t.hooks.preprocess(e):e,o=yield(t.hooks?yield t.hooks.provideLexer():n?y.lex:y.lexInline)(s,t),a=t.hooks?yield t.hooks.processAllTokens(o):o;t.walkTokens&&(yield Promise.all(this.walkTokens(a,t.walkTokens)));let h=yield(t.hooks?yield t.hooks.provideParser():n?S.parse:S.parseInline)(a,t);return t.hooks?yield t.hooks.postprocess(h):h}).catch(l);try{t.hooks&&(e=t.hooks.preprocess(e));let s=(t.hooks?t.hooks.provideLexer():n?y.lex:y.lexInline)(e,t);t.hooks&&(s=t.hooks.processAllTokens(s)),t.walkTokens&&this.walkTokens(s,t.walkTokens);let o=(t.hooks?t.hooks.provideParser():n?S.parse:S.parseInline)(s,t);return t.hooks&&(o=t.hooks.postprocess(o)),o}catch(s){return l(s)}}}onError(n,e){return i=>{if(i.message+=` 59Please report this to https://github.com/markedjs/marked.`,n){let r="<p>An error occurred:</p><pre>"+R(i.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(i);throw i}}},_=new Ut;function g(n,e){return _.parse(n,e)}g.options=g.setOptions=function(n){return _.setOptions(n),g.defaults=_.defaults,Ze(g.defaults),g};g.getDefaults=J;g.defaults=z;g.use=function(...n){return _.use(...n),g.defaults=_.defaults,Ze(g.defaults),g};g.walkTokens=function(n,e){return _.walkTokens(n,e)};g.parseInline=_.parseInline;g.Parser=S;g.parser=S.parse;g.Renderer=T;g.TextRenderer=le;g.Lexer=y;g.lexer=y.lex;g.Tokenizer=F;g.Hooks=D;g.parse=g;var or=g.options,cr=g.setOptions,hr=g.use,pr=g.walkTokens,ur=g.parseInline;var dr=S.parse,gr=y.lex;var Zt=["*"],Qt="Copy",Wt="Copied",Xt=(()=>{let e=class e{constructor(){this._buttonClick$=new N,this.copied=Ne(this._buttonClick$.pipe(me(()=>de(he(!0),ue(3e3).pipe(ge(!1)))),fe(),ke(1))),this.copiedText=ve(()=>this.copied()?Wt:Qt)}onCopyToClipboardClick(){this._buttonClick$.next()}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=X({type:e,selectors:[["markdown-clipboard"]],decls:2,vars:3,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(t,l){t&1&&(Ae(0,"button",0),ze("click",function(){return l.onCopyToClipboardClick()}),Ie(1),_e()),t&2&&(Pe("copied",l.copied()),Te(),Le(l.copiedText()))},encapsulation:2,changeDetection:0});let n=e;return n}
59)(),Kt=new C("CLIPBOARD_OPTIONS");var Gt=new C("MARKED_EXTENSIONS"),Vt=new C("MARKED_OPTIONS"),Jt=new C("MERMAID_OPTIONS"),Yt=new C("SANITIZE");function er(n){return typeof n=="function"}var tr="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information",rr="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",nr="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",ir="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",sr="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",lr="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information";var tt=(()=>{let e=class e{get options(){return this._options}set options(r){this._options=f(f({},this.DEFAULT_MARKED_OPTIONS),r)}get renderer(){return this.options.renderer}set renderer(r){this.options.renderer=r}constructor(){this.clipboardOptions=w(Kt,{optional:!0}),this.extensions=w(Gt,{optional:!0}),this.http=w(De,{optional:!0}),this.mermaidOptions=w(Jt,{optional:!0}),this.platform=w(Re),this.sanitize=w(Yt,{optional:!0}),this.sanitizer=w(Me),this.DEFAULT_MARKED_OPTIONS={renderer:new T},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_SECURITY_CONTEXT=W.HTML,this._options=null,this._reload$=new N,this.reload$=this._reload$.asObservable(),this.options=w(Vt,{optional:!0})}parse(r,t=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:l,inline:s,emoji:o,mermaid:a,disableSanitizer:h}=t,c=f(f({},this.options),t.markedOptions),u=c.renderer||this.renderer||new T;this.extensions&&(this.renderer=this.extendsRendererForExtensions(u)),a&&(this.renderer=this.extendsRendererForMermaid(u));let p=this.trimIndentation(r),m=l?this.decodeHtml(p):p,k=o?this.parseEmoji(m):m,x=this.parseMarked(k,c,s);return h?x:this.sanitizeHtml(x)}render(r,t=this.DEFAULT_RENDER_OPTIONS,l){let{clipboard:s,clipboardOptions:o,katex:a,katexOptions:h,mermaid:c,mermaidOptions:u}=t;a&&this.renderKatex(r,f(f({},this.DEFAULT_KATEX_OPTIONS),h)),c&&this.renderMermaid(r,f(f(f({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),u)),s&&this.renderClipboard(r,l,f(f(f({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),o)),this.highlight(r)}reload(){this._reload$.next()}getSource(r){if(!this.http)throw new Error(lr);return this.http.get(r,{responseType:"text"}).pipe(pe(t=>this.handleExtension(r,t)))}highlight(r){if(!$(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;r||(r=document);let t=r.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(t,l=>l.classList.add("language-none")),Prism.highlightAllUnder(r)}decodeHtml(r){if(!$(this.platform))return r;let t=document.createElement("textarea");return t.innerHTML=r,t.value}extendsRendererForExtensions(r){let t=r;return t.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions&&this.extensions.length>0&&g.use(...this.extensions),t.\u0275NgxMarkdownRendererExtendedForExtensions=!0),r}extendsRendererForMermaid(r){let t=r;if(t.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return r;let l=r.code;return r.code=s=>s.lang==="mermaid"?`<div class="mermaid">${s.text}</div>`:l(s),t.\u0275NgxMarkdownRendererExtendedForMermaid=!0,r}handleExtension(r,t){let l=r.lastIndexOf("://"),s=l>-1?r.substring(l+4):r,o=s.lastIndexOf("/"),a=o>-1?s.substring(o+1).split("?")[0]:"",h=a.lastIndexOf("."),c=h>-1?a.substring(h+1):"";return c&&c!=="md"?"```"+c+` 60`+t+"\n```":t}parseMarked(r,t,l=!1){if(t.renderer){let s=f({},t.renderer);delete s.\u0275NgxMarkdownRendererExtendedForExtensions,delete s.\u0275NgxMarkdownRendererExtendedForMermaid,delete t.renderer,g.use({renderer:s})}return l?g.parseInline(r,t):g.parse(r,t)}parseEmoji(r){if(!$(this.platform))return r;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(tr);return joypixels.shortnameToUnicode(r)}renderKatex(r,t){if($(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(rr);renderMathInElement(r,t)}}renderClipboard(r,t,l){if(!$(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(ir);if(!t)throw new Error(sr);let{buttonComponent:s,buttonTemplate:o}=l,a=r.querySelectorAll("pre");for(let h=0;h<a.length;h++){let c=a.item(h),u=document.createElement("div");
60u.style.position="relative",c.parentNode.insertBefore(u,c),u.appendChild(c);let p=document.createElement("div");p.classList.add("markdown-clipboard-toolbar"),p.style.position="absolute",p.style.top=".5em",p.style.right=".5em",p.style.zIndex="1",u.insertAdjacentElement("beforeend",p),u.onmouseenter=()=>p.classList.add("hover"),u.onmouseleave=()=>p.classList.remove("hover");let m;if(s){let x=t.createComponent(s);m=x.hostView,x.changeDetectorRef.markForCheck()}else if(o)m=t.createEmbeddedView(o);else{let x=t.createComponent(Xt);m=x.hostView,x.changeDetectorRef.markForCheck()}let k;m.rootNodes.forEach(x=>{p.appendChild(x),k=new ClipboardJS(x,{text:()=>c.innerText})}),m.onDestroy(()=>k.destroy())}}renderMermaid(r,t=this.DEFAULT_MERMAID_OPTIONS){if(!$(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(nr);let l=r.querySelectorAll(".mermaid");l.length!==0&&(mermaid.initialize(t),mermaid.run({nodes:l}))}trimIndentation(r){if(!r)return"";let t;return r.split(` 61`).map(l=>{let s=t;return l.length>0&&(s=isNaN(s)?l.search(/\S|$/):Math.min(l.search(/\S|$/),s)),isNaN(t)&&(t=s),s?l.substring(s):l}).join(` 62`)}sanitizeHtml(r){return E(this,null,function*(){return er(this.sanitize)?this.sanitize(yield r):this.sanitize!==W.NONE?this.sanitizer.sanitize(this.sanitize??this.DEFAULT_SECURITY_CONTEXT,r)??"":r})}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=be({token:e,factory:e.\u0275fac});let n=e;return n})(),ae=(function(n){return n.CommandLine="command-line",n.LineHighlight="line-highlight",n.LineNumbers="line-numbers",n})(ae||{}),qr=(()=>{let e=class e{constructor(){this.element=w(Se),this.markdownService=w(tt),this.viewContainerRef=w(Ee),this.error=new B,this.load=new B,this.ready=new B,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new N}get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(r){this._disableSanitizer=this.coerceBooleanProperty(r)}get inline(){return this._inline}set inline(r){this._inline=this.coerceBooleanProperty(r)}get clipboard(){return this._clipboard}set clipboard(r){this._clipboard=this.coerceBooleanProperty(r)}get emoji(){return this._emoji}set emoji(r){this._emoji=this.coerceBooleanProperty(r)}get katex(){return this._katex}set katex(r){this._katex=this.coerceBooleanProperty(r)}get mermaid(){return this._mermaid}set mermaid(r){this._mermaid=this.coerceBooleanProperty(r)}get lineHighlight(){return this._lineHighlight}set lineHighlight(r){this._lineHighlight=this.coerceBooleanProperty(r)}get lineNumbers(){return this._lineNumbers}set lineNumbers(r){this._lineNumbers=this.coerceBooleanProperty(r)}get commandLine(){return this._commandLine}set commandLine(r){this._commandLine=this.coerceBooleanProperty(r)}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(xe(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(r,t=!1){return E(this,null,function*(){let l={decodeHtml:t,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},s={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},o=yield this.markdownService.parse(r,l);this.element.nativeElement.innerHTML=o,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(r){return r!=null&&`${String(r)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:r=>{this.render(r).then(()=>{this.load.emit(r)})},error:r=>this.error.emit(r)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,ae.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,ae.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(r,t){let l=r.querySelectorAll("pre");for(let s=0;s<l.length;s++){let o=t instanceof Array?t:[t];l.item(s).classList.add(...o)}}setPluginOptions(r,t){let l=r.querySelectorAll("pre");for(let s=0;s<l.length;s++)Object.keys(t).forEach(o=>{let a=t[o];if(a){let h=this.toLispCase(o);l.item(s).setAttribute(h,a.toString())}})}toLispCase(r){let t=r.match(/([A-Z])/g);if(!t)return r;let l=r.toString();for(let s=0,o=t.length;s<o;s++)l=l.replace(new RegExp(t[s]),"-"+t[s].toLowerCase());return l.slice(0,1)==="-"&&(l=l.slice(1)),l}};e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=X({type:e,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"
62clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[ye],ngContentSelectors:Zt,decls:1,vars:0,template:function(t,l){t&1&&(Oe(),Ce(0))},encapsulation:2});let n=e;return n})();function ar(n){return[tt,n?.loader??[],n?.clipboardOptions??[],n?.markedOptions??[],n?.mermaidOptions??[],n?.markedExtensions??[],n?.sanitize??[]]}var Fr=(()=>{let e=class e{static forRoot(r){return{ngModule:e,providers:[ar(r)]}}static forChild(){return{ngModule:e}}};e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=$e({type:e}),e.\u0275inj=we({});let n=e;return n})();export{Yt as a,tt as b,qr as c,ar as d,Fr as e}; 63//# sourceMappingURL=chunk-GGMUMHXP.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.