Skip to content

WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。

88.8 KB
Raw Blame
/* Generated by tools/markdown-preview/build.mjs; marked 18.0.14 / DOMPurify 3.4.16. */
(()=>{function Ct(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var be=Ct();function Un(t){be=t}var me={exec:()=>null};function Ie(t){let e=[];return n=>{let s=Math.max(0,Math.min(3,n-1)),r=e[s];return r||(r=t(s),e[s]=r),r}}function b(t,e=""){let n=typeof t=="string"?t:t.source,s={replace:(r,o)=>{let c=typeof o=="string"?o:o.source;return c=c.replace(N.caret,"$1"),n=n.replace(r,c),s},getRegex:()=>new RegExp(n,e)};return s}var Gr=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),N={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,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,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,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:t=>new RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ie(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:Ie(t=>new RegExp(`^ {0,${t}}((?:-[ 	]*){3,}|(?:_[ 	]*){3,}|(?:\\*[ 	]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Ie(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ie(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ie(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Be})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Ie(t=>new RegExp(`^ {0,${t}}>`))},Wr=/^(?:[ \t]*(?:\n|$))+/,qr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Fe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Zr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,vt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Fn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Bn=b(Fn).replace(/bull/g,vt).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Yr=b(Fn).replace(/bull/g,vt).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}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Nt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Xr=/^[^\n]+/,zt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qr=b(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",zt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Vr=b(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,vt).getRegex(),Be="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",Mt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Kr=b("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",Mt).replace("tag",Be).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hn=t=>b(Nt).replace("hr",Fe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Be).getRegex(),Jr=Hn(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ei=Hn(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),ti=b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ei).getRegex(),$t={blockquote:ti,code:qr,def:Qr,fences:jr,heading:Zr,hr:Fe,html:Kr,lheading:Bn,list:Vr,newline:Wr,paragraph:Jr,table:me,text:Xr},On=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Fe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Be).getRegex(),ni={...$t,lheading:Yr,table:On,paragraph:b(Nt).replace("hr",Fe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",On).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Be).getRegex()},ri={...$t,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Mt).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:me,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(Nt).replace("hr",Fe).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Bn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ii=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,si=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Gn=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,oi=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,re=/[\p{P}\p{S}]/u,Pe=/[\s\p{P}\p{S}]/u,He=/[^\s\p{P}\p{S}]/u,li=b(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pe).getRegex(),ai=/[\p{Pi}\p{Ps}"']/u,Wn=/(?!~)[\p{P}\p{S}]/u,ci=/(?!~)[\s\p{P}\p{S}]/u,ui=/(?:[^\s\p{P}\p{S}]|~)/u,pi=b(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Gr?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,hi=b(qn,"u").replace(/punct/g,re).getRegex(),fi=b(qn,"u").replace(/punct/g,Wn).getRegex(),gi=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,di=b(gi,"u").replace(/openQuote/g,ai).replace(/punct/g,re).getRegex(),jn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",mi=b(jn,"gu").replace(/notPunctSpace/g,He).replace(/punctSpace/g,Pe).replace(/punct/g,re).getRegex(),ki=b(jn,"gu").replace(/notPunctSpace/g,ui).replace(/punctSpace/g,ci).replace(/punct/g,Wn).getRegex(),bi="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",xi=b(bi,"gu").replace(/notPunctSpace/g,He).replace(/punctSpace/g,Pe).replace(/punct/g,re).getRegex(),Ti=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,He).replace(/punctSpace/g,Pe).replace(/punct/g,re).getRegex(),_i="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",wi=b(_i,"gu").replace(/notPunctSpace/g,He).replace(/punctSpace/g,Pe).replace(/punct/g,re).getRegex(),yi=b(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,re).getRegex(),Ai="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Si=b(Ai,"gu").replace(/notPunctSpace/g,He).replace(/punctSpace/g,Pe).replace(/punct/g,re).getRegex(),Ei=b(/\\(punct)/,"gu").replace(/punct/g,re).getRegex(),Ri=b(/^<(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(),Li=b(Mt).replace("(?:-->|$)","-->").getRegex(),Oi=b("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Li).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Zn=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,lt=b(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Zn).getRegex(),Ii=b(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",lt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Pi=b(/^!?\[(label)\]\[(ref)\]/).replace("label",lt).replace("ref",zt).getRegex(),Di=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",zt).getRegex(),In=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Ci=b(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Zn).getRegex(),vi=b("reflink|nolink(?!\\()","g").replace("reflink",b(/^!?\[(label)\]\[(ref)\]/).replace("label",Ci).replace("ref",In).getRegex()).replace("nolink",b(/^!?\[(ref)\](?:\[\])?/).replace("ref",In).getRegex()).getRegex(),Pn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ni=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,zi=b(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Ni).getRegex(),Ut={_backpedal:me,anyPunctuation:Ei,autolink:Ri,blockSkip:pi,br:Gn,code:si,del:me,delLDelim:me,delRDelim:me,emStrongLDelim:hi,emStrongRDelimAst:mi,emStrongRDelimUnd:Ti,escape:ii,link:Ii,nolink:Di,punctuation:li,reflink:Pi,reflinkSearch:vi,tag:Oi,text:oi,url:me},Mi={...Ut,emStrongLDelim:di,emStrongRDelimAst:xi,emStrongRDelimUnd:wi,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",lt).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",lt).getRegex()},It={...Ut,emStrongRDelimAst:ki,emStrongLDelim:fi,delLDelim:yi,delRDelim:Si,url:b(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",zi).replace("protocol",Pn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:b(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",Pn).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},$i={...It,br:b(Gn).replace("{2,}","*").getRegex(),text:b(It.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ot={normal:$t,gfm:ni,pedantic:ri},$e={normal:Ut,gfm:It,breaks:$i,pedantic:Mi},Ui={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Dn=t=>Ui[t];function G(t,e){if(e){if(N.escapeTest.test(t))return t.replace(N.escapeReplace,Dn)}else if(N.escapeTestNoEncode.test(t))return t.replace(N.escapeReplaceNoEncode,Dn);return t}function Fi(t){return t.replace(N.numericCharacterReference,(e,n,s)=>{let r=n===void 0?Number.parseInt(s,16):Number.parseInt(n,10);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}function Cn(t){try{t=encodeURI(t).replace(N.percentDecode,"%")}catch{return null}return t}function vn(t,e){let n=t.replace(N.findPipe,(o,c,l)=>{let p=!1,h=c;for(;--h>=0&&l[h]==="\\";)p=!p;return p?"|":" |"}),s=n.split(N.splitPipe),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(N.slashPipe,"|");return s}function ce(t,e,n){let s=t.length;if(s===0)return"";let r=0;for(;r<s;){let o=t.charAt(s-r-1);if(o===e&&!n)r++;else if(o!==e&&n)r++;else break}return t.slice(0,s-r)}function Nn(t){let e=t.split(`
`),n=e.length-1;for(;n>=0&&N.blankLine.test(e[n]);)n--;return e.length-n<=2?t:e.slice(0,n+1).join(`
`)}function at(t){return t.trim().toLowerCase().toUpperCase().toLowerCase()}function Bi(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])n++;else if(t[s]===e[1]&&(n--,n<0))return s;return n>0?-2:-1}function zn(t,e=0){let n=e,s="";for(let r of t)if(r==="	"){let o=4-n%4;s+=" ".repeat(o),n+=o}else s+=r,n++;return s}function Mn(t,e,n,s,r){let o=e.href,c=e.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1"),p=t[0].charAt(0)==="!";s.state.inLink=!0;let h=s.state.linkEmitted,d=s.state.inRawBlock;s.state.linkEmitted=!1;let m=s.inlineTokens(l),D=s.state.linkEmitted;if(s.state.linkEmitted=h,s.state.inLink=!1,!p){if(D){s.state.inRawBlock=d;return}s.state.linkEmitted=!0}return{type:p?"image":"link",raw:n,href:o,title:c,text:l,tokens:m}}function Hi(t,e,n){let s=t.match(n.other.indentCodeCompensation);if(s===null)return e;let r=s[1];return e.split(`
`).map(o=>{let c=o.match(n.other.beginningSpace);if(c===null)return o;let[l]=c;return o.slice(Math.min(l.length,r.length))}).join(`
`)}function $n(t,e,n,s){if(!e.includes("<"))return!1;for(let r=0;r<e.length;r++){if(e[r]==="\\"){r++;continue}if(e[r]==="`"){let l=s.inline.code.exec(e.slice(r));if(l){r+=l[0].length-1;continue}}if(e[r]!=="<")continue;let o=t.slice(n+r),c=s.inline.tag.exec(o)||s.inline.autolink.exec(o);if(c){if(c[0].length>e.length-r)return!0;r+=c[0].length-1}}return!1}var ct=class{options;rules;lexer;constructor(t){this.options=t||be}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=this.options.pedantic?e[0]:Nn(e[0]),s=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:s}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],s=Hi(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:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let s=ce(n,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceTabChar.test(s))&&(n=s.trim())}return{type:"heading",raw:ce(e[0],`
`),depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:ce(e[0],`
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=ce(e[0],`
`).split(`
`),s="",r="",o=[];for(;n.length>0;){let c=!1,l=[],p;for(p=0;p<n.length;p++)if(this.rules.other.blockquoteStart.test(n[p]))l.push(n[p]),c=!0;else if(!c)l.push(n[p]);else break;n=n.slice(p);let h=l.join(`
`),d=h.replace(this.rules.other.blockquoteSetextReplace,`
    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
${h}`:h,r=r?`${r}
${d}`:d;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,o,!0),this.lexer.state.top=m,n.length===0)break;let D=o.at(-1);if(D?.type==="code")break;if(D?.type==="blockquote"){let S=D,w=n.join(`
`),z=S.raw+`
`+w.replace(this.rules.other.blockquoteSetextReplace2,""),y=this.blockquote(z);o[o.length-1]=y;let B=z.substring(y.raw.length).replace(/^\n/,""),ie=B?B.split(`
`).length:0,ee=ie?n.slice(0,-ie):n;ee.length>0&&(s=`${s}
${ee.join(`
`)}`),r=r.substring(0,r.length-S.text.length)+y.text;break}else if(D?.type==="list"){let S=D,w=S.raw+`
`+n.join(`
`),z=this.list(w);o[o.length-1]=z,s=s.substring(0,s.length-D.raw.length)+z.raw,r=r.substring(0,r.length-S.raw.length)+z.raw,n=w.substring(o.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:s,tokens:o,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");let o=this.rules.other.listItemRegex(n),c=!1;for(;t;){let p=!1,h="",d="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let m=e[2].split(`
`,1)[0],D=e[1].length,S=this.options.pedantic?zn(m,D):m.replace(this.rules.other.leadingSpaceTab,B=>zn(B,D)),w=t.split(`
`,1)[0],z=!S.trim(),y=0;if(this.options.pedantic?(y=2,d=S.trimStart()):z?y=D+1:(y=S.search(this.rules.other.nonSpaceChar),y=y>4?1:y,d=S.slice(y),y+=D),z&&this.rules.other.blankLine.test(w)&&(h+=w+`
`,t=t.substring(w.length+1),p=!0),!p){let B=this.rules.other.nextBulletRegex(y),ie=this.rules.other.hrRegex(y),ee=this.rules.other.fencesBeginRegex(y),Q=this.rules.other.headingBeginRegex(y),se=this.rules.other.htmlBeginRegex(y),Te=this.rules.other.blockquoteBeginRegex(y);for(;t;){let te=t.split(`
`,1)[0],ne;if(w=te,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting,"  "),ne=w):ne=w.replace(this.rules.other.leadingSpaceTab,M=>M.replace(this.rules.other.tabCharGlobal,"    ")),ee.test(w)||Q.test(w)||se.test(w)||Te.test(w)||B.test(w)||ie.test(w))break;if(ne.search(this.rules.other.nonSpaceChar)>=y||!w.trim())d+=`
`+ne.slice(y);else{if(z||S.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||ee.test(S)||Q.test(S)||ie.test(S))break;d+=`
`+w}z=!w.trim(),h+=te+`
`,t=t.substring(te.length+1),S=ne.slice(y)}}r.loose||(c?r.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(c=!0)),r.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(d),loose:!1,text:d,tokens:[]}),r.raw+=h}let l=r.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;r.raw=r.raw.trimEnd();for(let p of r.items)if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),!r.loose){let h=p.tokens.filter(m=>m.type==="space"),d=h.length>0&&h.some(m=>this.rules.other.anyLine.test(m.raw));r.loose=d}for(let p of r.items){let h=p.tokens[0];if(p.task&&(h?.type==="text"||h?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}let d=this.rules.other.listTaskCheckbox.exec(p.raw);if(d){let m={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};p.checked=m.checked,r.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=m.raw+p.tokens[0].raw,p.tokens[0].text=m.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(m)):p.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):p.tokens.unshift(m)}}else p.task&&(p.task=!1)}if(r.loose)for(let p of r.items){p.loose=!0;for(let h of p.tokens)h.type==="text"&&(h.type="paragraph")}return r}}html(t){let e=this.rules.block.html.exec(t);if(e){let n=Nn(e[0]);return{type:"html",block:!0,raw:n,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:n}}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=at(e[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:ce(e[0],`
`),href:s,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=vn(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),r=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],o={type:"table",raw:ce(e[0],`
`),header:[],align:[],rows:[]};if(n.length===s.length){for(let c of s)this.rules.other.tableAlignRight.test(c)?o.align.push("right"):this.rules.other.tableAlignCenter.test(c)?o.align.push("center"):this.rules.other.tableAlignLeft.test(c)?o.align.push("left"):o.align.push(null);for(let c=0;c<n.length;c++)o.header.push({text:n[c],tokens:this.lexer.inline(n[c]),header:!0,align:o.align[c]});for(let c of r)o.rows.push(vn(c,o.header.length).map((l,p)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[p]})));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let n=e[1].trim();return{type:"heading",raw:ce(e[0],`
`),depth:e[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);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(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);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(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&$n(t,e[1],n,this.rules))return;let s=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(s)){if(!this.rules.other.endAngleBracket.test(s))return;let c=ce(s.slice(0,-1),"\\");if((s.length-c.length)%2===0)return}else{let c=Bi(e[2],"()");if(c===-2)return;if(c>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+c;e[2]=e[2].substring(0,c),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],o="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(r);c&&(r=c[1],o=c[3])}else o=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(s)?r=r.slice(1):r=r.slice(1,-1)),Mn(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let s=n[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&$n(t,n[1],s,this.rules))return;let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=e[at(r)];if(!o){let c=n[0].charAt(0);return{type:"text",raw:c,text:c}}return Mn(n,o,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,o,c,l=r,p=0,h=s[0][0],d=n===h,m=h==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,e=e.slice(-1*t.length+r);(s=m.exec(e))!==null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o)continue;if(c=[...o].length,s[3]||s[4]){l+=c;continue}else if(s[5]||s[6]){if(r%3&&!((r+c)%3)){p+=c;continue}if(d)break}if(l-=c,l>0)continue;c=Math.min(c,c+l+p);let D=[...s[0]][0].length,S=t.slice(0,r+s.index+D+c);if(Math.min(r,c)%2){let z=S.slice(1,-1);return{type:"em",raw:S,text:z,tokens:this.lexer.inlineTokens(z)}}let w=S.slice(2,-2);return{type:"strong",raw:S,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(n),r=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return s&&r&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!n||this.rules.inline.punctuation.exec(n))){let r=[...s[0]].length-1,o,c,l=r,p=this.rules.inline.delRDelim;for(p.lastIndex=0,e=e.slice(-1*t.length+r);(s=p.exec(e))!==null;){if(o=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!o||(c=[...o].length,c!==r))continue;if(s[3]||s[4]){l+=c;continue}if(l-=c,l>0)continue;c=Math.min(c,c+l);let h=[...s[0]][0].length,d=t.slice(0,r+s.index+h+c),m=d.slice(r,-r);return{type:"del",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,s;return e[2]==="@"?(n=e[1],s="mailto:"+n):(n=e[1],s=n),{type:"link",raw:e[0],text:n,href:s,autolink:!0,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,s;if(e[2]==="@")n=e[0],s="mailto:"+n;else{let r;do r=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(r!==e[0]);n=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:n,href:s,autolink:!0,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:n?e[0]:Fi(e[0]),escaped:n}}}},Y=class Pt{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||be,this.options.tokenizer=this.options.tokenizer||new ct,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let n={other:N,block:ot.normal,inline:$e.normal};this.options.pedantic?(n.block=ot.pedantic,n.inline=$e.pedantic):this.options.gfm&&(n.block=ot.gfm,this.options.breaks?n.inline=$e.breaks:n.inline=$e.gfm),this.tokenizer.rules=n}static get rules(){return{block:ot,inline:$e}}static lex(e,n){return new Pt(n).lex(e)}static lexInline(e,n){return new Pt(n).inlineTokens(e)}lex(e){e=e.replace(N.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],s=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(N.tabCharGlobal,"    ").replace(N.spaceLine,""));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let o;if(this.options.extensions?.block?.some(l=>(o=l.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let l=n.at(-1);o.raw.length===1&&l!==void 0?l.raw+=`
`:n.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+o.raw,l.text+=`
`+o.text,this.inlineQueue.at(-1).src=l.text):n.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let l=n.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+o.raw,l.text+=`
`+o.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),n.push(o);continue}let c=e;if(this.options.extensions?.startBlock){let l=1/0,p=e.slice(1),h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},p),typeof h=="number"&&h>=0&&(l=Math.min(l,h))}),l<1/0&&l>=0&&(c=e.substring(0,l+1))}if(this.state.top&&(o=this.tokenizer.paragraph(c))){let l=n.at(-1);s&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+o.raw,l.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(o),s=c.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let l=n.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
`)?"":`
`)+o.raw,l.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):n.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}linkInText(e){if(!e.includes("["))return!1;let n=this.tokenizer.rules.inline.link;for(let s of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(n.test(s[0])&&e.charAt(s.index-1)!=="!")return!0;for(let s of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let r=s[0],o=r.lastIndexOf("[");if(!(r.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,at(r.slice(o+1,-1))))&&!(o>1&&this.linkInText(r.slice(1,o-1))))return!0}return!1}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let s=e;if(this.tokens.links&&e.includes("[")){let l=this.tokenizer.rules.inline.reflinkSearch,p=h=>{let d=h.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,at(h.slice(d+1,-1))))return h;if(d>1&&h.charAt(0)!=="!"){let m=h.slice(1,d-1);if(this.linkInText(m))return"["+m.replace(l,p)+"]["+"a".repeat(h.length-d-2)+"]"}return"["+"a".repeat(h.length-2)+"]"};s=s.replace(l,p)}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,l=>"+".repeat(l.length)),s=s.replace(this.tokenizer.rules.inline.blockSkip,(l,p,h)=>{let d=h?h.length:0;return l.slice(0,d)+"["+"a".repeat(l.length-d-2)+"]"}),s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let r=!1,o="",c=1/0;for(;e;){if(e.length<c)c=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(o=""),r=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},e,n))?(e=e.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length);let h=n.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(e,s,o)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(e,s,o)){e=e.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),n.push(l);continue}let p=e;if(this.options.extensions?.startInline){let h=1/0,d=e.slice(1),m;this.options.extensions.startInline.forEach(D=>{m=D.call({lexer:this},d),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(p=e.substring(0,h+1))}if(l=this.tokenizer.inlineText(p)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),r=!0;let h=n.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):n.push(l);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return n}infiniteLoopError(e){let n="Infinite loop on byte: "+e;if(this.options.silent)console.error(n);else throw new Error(n)}},ut=class{options;parser;constructor(t){this.options=t||be}space(t){return""}code({text:t,lang:e,escaped:n}){let s=(e||"").match(N.notSpaceStart)?.[0],r=t?t.replace(N.endingNewline,"")+`
`:"";return s?'<pre><code class="language-'+G(s)+'">'+(n?r:G(r,!0))+`</code></pre>
`:"<pre><code>"+(n?r:G(r,!0))+`</code></pre>
`}blockquote({tokens:t}){return`<blockquote>
${this.parser.parse(t)}</blockquote>
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
`}hr(t){return`<hr>
`}list(t){let e=t.ordered,n=t.start,s="";for(let c=0;c<t.items.length;c++){let l=t.items[c];s+=this.listitem(l)}let r=e?"ol":"ul",o=e&&n!==1?' start="'+n+'"':"";return"<"+r+o+`>
`+s+"</"+r+`>
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
`}table(t){let e="",n="";for(let r=0;r<t.header.length;r++)n+=this.tablecell(t.header[r]);e+=this.tablerow({text:n});let s="";for(let r=0;r<t.rows.length;r++){let o=t.rows[r];n="";for(let c=0;c<o.length;c++)n+=this.tablecell(o[c]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+s+`</table>
`}tablerow({text:t}){return`<tr>
${t}</tr>
`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${G(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,text:n,tokens:s,autolink:r}){let o=r?G(n,!0):this.parser.parseInline(s),c=Cn(t);if(c===null)return o;t=G(c,r);let l='<a href="'+t+'"';return e&&(l+=' title="'+G(e)+'"'),l+=">"+o+"</a>",l}image({href:t,title:e,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));let r=Cn(t);if(r===null)return G(n);t=r;let o=`<img src="${G(t)}" alt="${G(n)}"`;return e&&(o+=` title="${G(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:G(t.text)}},Ft=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},X=class Dt{options;renderer;textRenderer;constructor(e){this.options=e||be,this.options.renderer=this.options.renderer||new ut,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ft}static parse(e,n){return new Dt(n).parse(e)}static parseInline(e,n){return new Dt(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let s=0;s<e.length;s++){let r=e[s];if(this.options.extensions?.renderers?.[r.type]){let c=r,l=this.options.extensions.renderers[c.type].call({parser:this},c);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(c.type)){n+=l||"";continue}}let o=r;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let c='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let s="";for(let r=0;r<e.length;r++){let o=e[r];if(this.options.extensions?.renderers?.[o.type]){let l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(o.type)){s+=l||"";continue}}let c=o;switch(c.type){case"escape":{s+=n.text(c);break}case"html":{s+=n.html(c);break}case"link":{s+=n.link(c);break}case"image":{s+=n.image(c);break}case"checkbox":{s+=n.checkbox(c);break}case"strong":{s+=n.strong(c);break}case"em":{s+=n.em(c);break}case"codespan":{s+=n.codespan(c);break}case"br":{s+=n.br(c);break}case"del":{s+=n.del(c);break}case"text":{s+=n.text(c);break}default:{let l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return s}},Ue=class{options;block;constructor(t){this.options=t||be}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?Y.lex:Y.lexInline}provideParser(t=this.block){return t?X.parse:X.parseInline}},Bt=class{defaults=Ct();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=X;Renderer=ut;TextRenderer=Ft;Lexer=Y;Tokenizer=ct;Hooks=Ue;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let s of t)switch(n=n.concat(e.call(this,s)),s.type){case"table":{let r=s;for(let o of r.header)n=n.concat(this.walkTokens(o.tokens,e));for(let o of r.rows)for(let c of o)n=n.concat(this.walkTokens(c.tokens,e));break}case"list":{let r=s;n=n.concat(this.walkTokens(r.items,e));break}default:{let r=s;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(o=>{let c=r[o].flat(1/0);n=n.concat(this.walkTokens(c,e))}):r.tokens&&(n=n.concat(this.walkTokens(r.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let s={...n};if(s.async=this.defaults.async||s.async||!1,n.extensions&&(n.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){let o=e.renderers[r.name];o?e.renderers[r.name]=function(...c){let l=r.renderer.apply(this,c);return l===!1&&(l=o.apply(this,c)),l}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=e[r.level];o?o.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),s.extensions=e),n.renderer){let r=this.defaults.renderer||new ut(this.defaults);for(let o in n.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let c=o,l=n.renderer[c],p=r[c];r[c]=(...h)=>{let d=l.apply(r,h);return d===!1&&(d=p.apply(r,h)),d||""}}s.renderer=r}if(n.tokenizer){let r=this.defaults.tokenizer||new ct(this.defaults);for(let o in n.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let c=o,l=n.tokenizer[c],p=r[c];r[c]=(...h)=>{let d=l.apply(r,h);return d===!1&&(d=p.apply(r,h)),d}}s.tokenizer=r}if(n.hooks){let r=this.defaults.hooks||new Ue;for(let o in n.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let c=o,l=n.hooks[c],p=r[c];Ue.passThroughHooks.has(o)?r[c]=h=>{if(this.defaults.async&&Ue.passThroughHooksRespectAsync.has(o))return(async()=>{let m=await l.call(r,h);return p.call(r,m)})();let d=l.call(r,h);return p.call(r,d)}:r[c]=(...h)=>{if(this.defaults.async)return(async()=>{let m=await l.apply(r,h);return m===!1&&(m=await p.apply(r,h)),m})();let d=l.apply(r,h);return d===!1&&(d=p.apply(r,h)),d}}s.hooks=r}if(n.walkTokens){let r=this.defaults.walkTokens,o=n.walkTokens;s.walkTokens=function(c){let l=[];return l.push(o.call(this,c)),r&&(l=l.concat(r.call(this,c))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return Y.lex(t,e??this.defaults)}parser(t,e){return X.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let s={...n},r={...this.defaults,...s},o=this.onError(!!r.silent,!!r.async);if(this.defaults.async===!0&&s.async===!1)return o(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 o(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(r.hooks&&(r.hooks.options=r,r.hooks.block=t),r.async)return(async()=>{let c=r.hooks?await r.hooks.preprocess(e):e,l=await(r.hooks?await r.hooks.provideLexer(t):t?Y.lex:Y.lexInline)(c,r),p=r.hooks?await r.hooks.processAllTokens(l):l;r.walkTokens&&await Promise.all(this.walkTokens(p,r.walkTokens));let h=await(r.hooks?await r.hooks.provideParser(t):t?X.parse:X.parseInline)(p,r);return r.hooks?await r.hooks.postprocess(h):h})().catch(o);try{r.hooks&&(e=r.hooks.preprocess(e));let c=(r.hooks?r.hooks.provideLexer(t):t?Y.lex:Y.lexInline)(e,r);r.hooks&&(c=r.hooks.processAllTokens(c)),r.walkTokens&&this.walkTokens(c,r.walkTokens);let l=(r.hooks?r.hooks.provideParser(t):t?X.parse:X.parseInline)(c,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(c){return o(c)}}}onError(t,e){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+G(n.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(n);throw n}}},ke=new Bt;function A(t,e){return ke.parse(t,e)}A.options=A.setOptions=function(t){return ke.setOptions(t),A.defaults=ke.defaults,Un(A.defaults),A};A.getDefaults=Ct;A.defaults=be;function Gi(...t){return ke.use(...t),A.defaults=ke.defaults,Un(A.defaults),A}A.use=Gi;A.walkTokens=function(t,e){return ke.walkTokens(t,e)};A.parseInline=ke.parseInline;A.Parser=X;A.parser=X.parse;A.Renderer=ut;A.TextRenderer=Ft;A.Lexer=Y;A.lexer=Y.lex;A.Tokenizer=ct;A.Hooks=Ue;A.parse=A;var Es=A.options,Rs=A.setOptions,Ls=A.walkTokens,Os=A.parseInline;var Is=X.parse,Ps=Y.lex;function Wi(t,e){this.v=t,this.k=e}function Yn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,s=Array(e);n<e;n++)s[n]=t[n];return s}function qi(t){if(Array.isArray(t))return t}function ji(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var s,r,o,c,l=[],p=!0,h=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;p=!1}else for(;!(p=(s=o.call(n)).done)&&(l.push(s.value),l.length!==e);p=!0);}catch(d){h=!0,r=d}finally{try{if(!p&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(h)throw r}}return l}}function Zi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yi(t,e){return qi(t)||ji(t,e)||Xi(t,e)||Zi()}function Xi(t,e){if(t){if(typeof t=="string")return Yn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yn(t,e):void 0}}function pt(t){var e,n;function s(o,c){try{var l=t[o](c),p=l.value,h=p instanceof Wi;Promise.resolve(h?p.v:p).then(function(d){if(h){var m=o==="return"&&p.k?o:"next";if(!p.k||d.done)return s(m,d);d=t[m](d).value}r(!!l.done,d)},function(d){s("throw",d)})}catch(d){r(2,d)}}function r(o,c){o===2?e.reject(c):e.resolve({value:c,done:o}),(e=e.next)?s(e.key,e.arg):n=null}this._invoke=function(o,c){return new Promise(function(l,p){var h={key:o,arg:c,resolve:l,reject:p,next:null};n?n=n.next=h:(e=n=h,s(o,c))})},typeof t.return!="function"&&(this.return=void 0)}pt.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},pt.prototype.next=function(t){return this._invoke("next",t)},pt.prototype.throw=function(t){return this._invoke("throw",t)},pt.prototype.return=function(t){return this._invoke("return",t)};var cr=Object.entries,Xn=Object.setPrototypeOf,Qi=Object.isFrozen,Vi=Object.getPrototypeOf,Ki=Object.getOwnPropertyDescriptor,C=Object.freeze,v=Object.seal,De=Object.create,ur=typeof Reflect<"u"&&Reflect,Yt=ur.apply,Xt=ur.construct;C||(C=function(e){return e});v||(v=function(e){return e});Yt||(Yt=function(e,n){for(var s=arguments.length,r=new Array(s>2?s-2:0),o=2;o<s;o++)r[o-2]=arguments[o];return e.apply(n,r)});Xt||(Xt=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return new e(...s)});var xe=P(Array.prototype.forEach);Array.prototype.indexOf;var Ji=P(Array.prototype.lastIndexOf),Qn=P(Array.prototype.pop),Ge=P(Array.prototype.push);Array.prototype.slice;var es=P(Array.prototype.splice),Ce=Array.isArray,je=P(String.prototype.toLowerCase),Ht=P(String.prototype.toString),Vn=P(String.prototype.match),We=P(String.prototype.replace),Kn=P(String.prototype.indexOf),ts=P(String.prototype.trim),ns=P(Number.prototype.toString),rs=P(Boolean.prototype.toString),Jn=typeof BigInt>"u"?null:P(BigInt.prototype.toString),er=typeof Symbol>"u"?null:P(Symbol.prototype.toString),F=P(Object.prototype.hasOwnProperty),qe=P(Object.prototype.toString),$=P(RegExp.prototype.test),ue=is(TypeError);function P(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return Yt(t,e,s)}}function is(t){return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return Xt(t,n)}}function _(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:je;if(Xn&&Xn(t,null),!Ce(e))return t;let s=e.length;for(;s--;){let r=e[s];if(typeof r=="string"){let o=n(r);o!==r&&(Qi(e)||(e[s]=o),r=o)}t[r]=!0}return t}function ss(t){for(let e=0;e<t.length;e++)F(t,e)||(t[e]=null);return t}function q(t){let e=De(null);for(let s of cr(t)){var n=Yi(s,2);let r=n[0],o=n[1];F(t,r)&&(Ce(o)?e[r]=ss(o):o&&typeof o=="object"&&o.constructor===Object?e[r]=q(o):e[r]=o)}return e}function os(t){switch(typeof t){case"string":return t;case"number":return ns(t);case"boolean":return rs(t);case"bigint":return Jn?Jn(t):"0";case"symbol":return er?er(t):"Symbol()";case"undefined":return qe(t);case"function":case"object":{if(t===null)return qe(t);let e=t,n=Z(e,"toString");if(typeof n=="function"){let s=n(e);return typeof s=="string"?s:qe(s)}return qe(t)}default:return qe(t)}}function Z(t,e){for(;t!==null;){let s=Ki(t,e);if(s){if(s.get)return P(s.get);if(typeof s.value=="function")return P(s.value)}t=Vi(t)}function n(){return null}return n}function ls(t){try{return $(t,""),!0}catch{return!1}}var tr=C(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Gt=C(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Wt=C(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),as=C(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qt=C(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cs=C(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nr=C(["#text"]),rr=C(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),jt=C(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ir=C(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ht=C(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),us=v(/{{[\w\W]*|^[\w\W]*}}/g),ps=v(/<%[\w\W]*|^[\w\W]*%>/g),hs=v(/\${[\w\W]*/g),fs=v(/^data-[\-\w.\u00B7-\uFFFF]+$/),gs=v(/^aria-[\-\w]+$/),sr=v(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ds=v(/^(?:\w+script|data):/i),ms=v(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ks=v(/^html$/i),bs=v(/^[a-z][.\w]*(-[.\w]+)+$/i),or=v(/<[/\w!]/g),lr=v(/<[/\w]/g),xs=v(/<\/no(script|embed|frames)/i),Ts=v(/\/>/i),W={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},pr=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],_s=C(_({},pr)),ws=(function(){let t={};return xe(pr,e=>{t[e]=v(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),C(t)})(),ys=function(){return typeof window>"u"?null:window},As=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null,r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(s=n.getAttribute(r));let o="dompurify"+(s?"#"+s:"");try{return e.createPolicy(o,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ar=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},pe=function(e,n,s,r){return F(e,n)&&Ce(e[n])?_(r.base?q(r.base):{},e[n],r.transform):s},Zt=function(e,n,s){let r=F(e,n)?e[n]:void 0;return r&&typeof r=="object"?q(r):s()};function hr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ys(),e=f=>hr(f);if(e.version="3.4.16",e.removed=[],!t||!t.document||t.document.nodeType!==W.document||!t.Element)return e.isSupported=!1,e;let n=t.document,s=n,r=s.currentScript;t.DocumentFragment;let o=t.HTMLTemplateElement,c=t.Node,l=t.Element,p=t.NodeFilter;t.NamedNodeMap===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let h=t.DOMParser,d=t.trustedTypes,m=l.prototype,D=Z(m,"cloneNode"),S=Z(m,"remove"),w=Z(m,"removeAttributeNode"),z=Z(m,"nextSibling"),y=Z(m,"childNodes"),B=Z(m,"parentNode"),ie=Z(m,"shadowRoot"),ee=Z(m,"attributes"),Q=c&&c.prototype?Z(c.prototype,"nodeType"):null,se=c&&c.prototype?Z(c.prototype,"nodeName"):null,Te=c&&c.prototype?Z(c.prototype,"ownerDocument"):null,te=function(i){return Q?Q(i):i.nodeType},ne=function(i){return se?se(i):i.nodeName};if(typeof o=="function"){let f=n.createElement("template");f.content&&f.content.ownerDocument&&(n=f.content.ownerDocument)}let M,he="",ft,Qt=!1,ve=0,Vt=function(){if(ve>0)throw ue('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_e=function(i){Vt(),ve++;try{return M.createHTML(i)}finally{ve--}},dr=function(i){Vt(),ve++;try{return M.createScriptURL(i)}finally{ve--}},mr=function(){return Qt||(ft=As(d,r),Qt=!0),ft},Ze=n,gt=Ze.implementation,Kt=Ze.createNodeIterator,kr=Ze.createDocumentFragment,br=Ze.getElementsByTagName,xr=s.importNode,E=ar();e.isSupported=typeof cr=="function"&&typeof B=="function"&&gt&&gt.createHTMLDocument!==void 0;let Tr=us,_r=ps,wr=hs,yr=fs,Ar=gs,Sr=ds,Jt=ms,Er=bs,en=sr,R=null,dt=_({},[...tr,...Gt,...Wt,...qt,...nr]),L=null,mt=_({},[...rr,...jt,...ir,...ht]),V=Object.seal(De(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,tn=null,oe=Object.seal(De(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),nn=!0,kt=!0,rn=!1,sn=!0,le=!1,fe=!0,ge=!1,bt=!1,Ye=null,Xe=null,xt=!1,we=!1,Qe=!1,Ve=!1,on=!0,ln=!1,an="user-content-",Tt=!0,_t=!1,ye={},Ae=null,cn=_({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),un=null,pn=_({},["audio","video","img","source","image","track"]),hn=null,fn=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",K="http://www.w3.org/1999/xhtml",Se=K,wt=!1,yt=null,Rr=_({},[Ke,Je,K],Ht),gn=C(["mi","mo","mn","ms","mtext"]),At=_({},gn),dn=C(["annotation-xml"]),St=_({},dn),Lr=_({},["title","style","font","a","script"]),ze=null,Or=["application/xhtml+xml","text/html"],Ir="text/html",I=null,Ee=null,Pr=n.createElement("form"),mn=function(i){return i instanceof RegExp||i instanceof Function},Et=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ee&&Ee===i)return;(!i||typeof i!="object")&&(i={}),i=q(i),ze=Or.indexOf(i.PARSER_MEDIA_TYPE)===-1?Ir:i.PARSER_MEDIA_TYPE,I=ze==="application/xhtml+xml"?Ht:je,R=pe(i,"ALLOWED_TAGS",dt,{transform:I}),L=pe(i,"ALLOWED_ATTR",mt,{transform:I}),yt=pe(i,"ALLOWED_NAMESPACES",Rr,{transform:Ht}),hn=pe(i,"ADD_URI_SAFE_ATTR",fn,{transform:I,base:fn}),un=pe(i,"ADD_DATA_URI_TAGS",pn,{transform:I,base:pn}),Ae=pe(i,"FORBID_CONTENTS",cn,{transform:I}),Ne=pe(i,"FORBID_TAGS",q({}),{transform:I}),tn=pe(i,"FORBID_ATTR",q({}),{transform:I}),ye=F(i,"USE_PROFILES")?i.USE_PROFILES&&typeof i.USE_PROFILES=="object"?q(i.USE_PROFILES):i.USE_PROFILES:!1,nn=i.ALLOW_ARIA_ATTR!==!1,kt=i.ALLOW_DATA_ATTR!==!1,rn=i.ALLOW_UNKNOWN_PROTOCOLS||!1,sn=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,le=i.SAFE_FOR_TEMPLATES||!1,fe=i.SAFE_FOR_XML!==!1,ge=i.WHOLE_DOCUMENT||!1,we=i.RETURN_DOM||!1,Qe=i.RETURN_DOM_FRAGMENT||!1,Ve=i.RETURN_TRUSTED_TYPE||!1,xt=i.FORCE_BODY||!1,on=i.SANITIZE_DOM!==!1,ln=i.SANITIZE_NAMED_PROPS||!1,Tt=i.KEEP_CONTENT!==!1,_t=i.IN_PLACE||!1,en=ls(i.ALLOWED_URI_REGEXP)?i.ALLOWED_URI_REGEXP:sr,Se=typeof i.NAMESPACE=="string"?i.NAMESPACE:K,At=Zt(i,"MATHML_TEXT_INTEGRATION_POINTS",()=>_({},gn)),St=Zt(i,"HTML_INTEGRATION_POINTS",()=>_({},dn));let a=Zt(i,"CUSTOM_ELEMENT_HANDLING",()=>De(null));if(V=De(null),F(a,"tagNameCheck")&&mn(a.tagNameCheck)&&(V.tagNameCheck=a.tagNameCheck),F(a,"attributeNameCheck")&&mn(a.attributeNameCheck)&&(V.attributeNameCheck=a.attributeNameCheck),F(a,"allowCustomizedBuiltInElements")&&typeof a.allowCustomizedBuiltInElements=="boolean"&&(V.allowCustomizedBuiltInElements=a.allowCustomizedBuiltInElements),v(V),le&&(kt=!1),Qe&&(we=!0),ye&&(R=_({},nr),L=De(null),ye.html===!0&&(_(R,tr),_(L,rr)),ye.svg===!0&&(_(R,Gt),_(L,jt),_(L,ht)),ye.svgFilters===!0&&(_(R,Wt),_(L,jt),_(L,ht)),ye.mathMl===!0&&(_(R,qt),_(L,ir),_(L,ht))),oe.tagCheck=null,oe.attributeCheck=null,F(i,"ADD_TAGS")&&(typeof i.ADD_TAGS=="function"?oe.tagCheck=i.ADD_TAGS:Ce(i.ADD_TAGS)&&(R===dt&&(R=q(R)),_(R,i.ADD_TAGS,I))),F(i,"ADD_ATTR")&&(typeof i.ADD_ATTR=="function"?oe.attributeCheck=i.ADD_ATTR:Ce(i.ADD_ATTR)&&(L===mt&&(L=q(L)),_(L,i.ADD_ATTR,I))),F(i,"ADD_FORBID_CONTENTS")&&Ce(i.ADD_FORBID_CONTENTS)&&(Ae===cn&&(Ae=q(Ae)),_(Ae,i.ADD_FORBID_CONTENTS,I)),Tt&&(R["#text"]=!0),ge&&_(R,["html","head","body"]),R.table&&(_(R,["tbody"]),delete Ne.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ue('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let u=M;M=i.TRUSTED_TYPES_POLICY;try{he=_e("")}catch(g){throw M=u,g}}else i.TRUSTED_TYPES_POLICY===null?(M=void 0,he=""):(M===void 0&&(M=mr()),M&&typeof he=="string"&&(he=_e("")));C&&C(i),Ee=i},kn=_({},[...Gt,...Wt,...as]),bn=_({},[...qt,...cs]),Dr=function(i,a,u){return a.namespaceURI===K?i==="svg":a.namespaceURI===Ke?i==="svg"&&(u==="annotation-xml"||At[u]):!!kn[i]},Cr=function(i,a,u){return a.namespaceURI===K?i==="math":a.namespaceURI===Je?i==="math"&&St[u]:!!bn[i]},vr=function(i,a,u){return a.namespaceURI===Je&&!St[u]||a.namespaceURI===Ke&&!At[u]?!1:!bn[i]&&(Lr[i]||!kn[i])},Nr=function(i){let a=B(i);(!a||!a.tagName)&&(a={namespaceURI:Se,tagName:"template"});let u=je(i.tagName),g=je(a.tagName);return yt[i.namespaceURI]?i.namespaceURI===Je?Dr(u,a,g):i.namespaceURI===Ke?Cr(u,a,g):i.namespaceURI===K?vr(u,a,g):!!(ze==="application/xhtml+xml"&&yt[i.namespaceURI]):!1},ae=function(i){Ge(e.removed,{element:i});try{B(i).removeChild(i)}catch{if(S(i),!B(i))throw ue("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},xn=function(i,a,u){try{w(i,a)}catch{try{i.removeAttribute(u)}catch{}}},et=function(i){tt(i);let a=y(i);if(a){let g=[];xe(a,k=>{Ge(g,k)}),xe(g,k=>{try{S(k)}catch{}})}let u=ee(i);if(u)for(let g=u.length-1;g>=0;--g){let k=u[g],x=k&&k.name;typeof x=="string"&&xn(i,k,x)}},de=function(i,a,u){if(!u)try{u=a.getAttributeNode(i)}catch{u=null}Ge(e.removed,{attribute:u||null,from:a});try{u?w(a,u):a.removeAttribute(i)}catch{try{a.removeAttribute(i)}catch{}}if(i==="is")if(we||Qe)try{ae(a)}catch{}else try{a.setAttribute(i,"")}catch{}},zr=function(i){let a=ee(i);if(a)for(let u=a.length-1;u>=0;--u){let g=a[u],k=g&&g.name;typeof k!="string"||L[I(k)]||xn(i,g,k)}},tt=function(i){let a=[i];for(;a.length>0;){let u=a.pop();te(u)===W.element&&zr(u);let g=y(u);if(g)for(let k=g.length-1;k>=0;--k)a.push(g[k])}},Tn=function(i,a){return fe?i==="patchsrc"?!0:i==="for"&&a!=="label"&&a!=="output":!1},Mr=function(i){if(!fe)return;let a=[i];for(;a.length>0;){let u=a.pop(),g=te(u);if(g===W.processingInstruction||g===W.comment&&$(lr,u.data)){try{S(u)}catch{}continue}if(g===W.element){let x=u,T=I(ne(u));try{x.hasAttribute&&x.hasAttribute("patchsrc")&&x.removeAttribute("patchsrc"),x.hasAttribute&&x.hasAttribute("for")&&Tn("for",T)&&x.removeAttribute("for")}catch{}}let k=y(u);if(k)for(let x=k.length-1;x>=0;--x)a.push(k[x])}},_n=function(i){let a=null,u=null;if(xt)i="<remove></remove>"+i;else{let x=Vn(i,/^[\r\n\t ]+/);u=x&&x[0]}ze==="application/xhtml+xml"&&Se===K&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");let g=M?_e(i):i;if(Se===K)try{a=new h().parseFromString(g,ze)}catch{}if(!a||!a.documentElement){a=gt.createDocument(Se,"template",null);try{a.documentElement.innerHTML=wt?he:g}catch{}}let k=a.body||a.documentElement;return i&&u&&k.insertBefore(n.createTextNode(u),k.childNodes[0]||null),Se===K?br.call(a,ge?"html":"body")[0]:ge?a.documentElement:k},wn=function(i){let a=Te?Te(i):i.ownerDocument;return Kt.call(a||i,i,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},nt=function(i){return i=We(i,Tr," "),i=We(i,_r," "),i=We(i,wr," "),i},Rt=function(i){var a;i.normalize();let u=Te?Te(i):i.ownerDocument,g=Kt.call(u||i,i,p.SHOW_TEXT|p.SHOW_COMMENT|p.SHOW_CDATA_SECTION|p.SHOW_PROCESSING_INSTRUCTION,null),k=g.nextNode();for(;k;)k.data=nt(k.data),k=g.nextNode();let x=(a=i.querySelectorAll)===null||a===void 0?void 0:a.call(i,"template");x&&xe(x,T=>{Re(T.content)&&Rt(T.content)})},rt=function(i){let a=se?se(i):null;return typeof a!="string"||I(a)!=="form"?!1:typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||i.attributes!==ee(i)||typeof i.removeAttribute!="function"||typeof i.removeAttributeNode!="function"||typeof i.getAttributeNode!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function"||i.nodeType!==Q(i)||i.childNodes!==y(i)},Re=function(i){if(!Q||typeof i!="object"||i===null)return!1;try{return Q(i)===W.documentFragment}catch{return!1}},Me=function(i){if(!Q||typeof i!="object"||i===null)return!1;try{return typeof Q(i)=="number"}catch{return!1}};function J(f,i,a){f.length!==0&&xe(f,u=>{u.call(e,i,a,Ee)})}let $r=function(i,a){return!!(fe&&i.hasChildNodes()&&!Me(i.firstElementChild)&&$(or,i.textContent)&&$(or,i.innerHTML)||fe&&i.namespaceURI===K&&_s[a]&&(Me(i.firstElementChild)||typeof i.textContent=="string"&&$(ws[a],i.textContent))||i.nodeType===W.processingInstruction||fe&&i.nodeType===W.comment&&$(lr,i.data))},it=function(i,a){if(i instanceof RegExp)return $(i,a);if(i instanceof Function){for(var u=arguments.length,g=new Array(u>2?u-2:0),k=2;k<u;k++)g[k-2]=arguments[k];return!!i(a,...g)}return!1},Ur=function(i,a,u){if(!Ne[a]&&En(a)&&it(V.tagNameCheck,a))return!1;if(Tt&&!Ae[a]){let g=B(i),k=y(i);if(k&&g){let x=k.length;for(let T=x-1;T>=0;--T){let O=i===u?D(k[T],!0):k[T];g.insertBefore(O,z(i))}}}return ae(i),!0},yn=function(i,a,u,g){return i.length===0?a:a===u||a===g?q(a):a},Le=function(i,a){return i===a||B(i)!==null?!1:(_t&&tt(i),!0)},An=function(i,a){if(J(E.beforeSanitizeElements,i,null),Le(i,a))return!0;if(rt(i))return ae(i),!0;let u=I(ne(i));if(R=yn(E.uponSanitizeElement,R,dt,Ye),J(E.uponSanitizeElement,i,{tagName:u,allowedTags:R}),Le(i,a))return!0;if($r(i,u))return ae(i),!0;if(Ne[u]||!(oe.tagCheck instanceof Function&&oe.tagCheck(u))&&!R[u]){let g=Ur(i,u,a);return g===!1&&(J(E.afterSanitizeElements,i,null),Le(i,a))?!0:g}if(te(i)===W.element&&!Nr(i)||(u==="noscript"||u==="noembed"||u==="noframes")&&$(xs,i.innerHTML))return ae(i),!0;if(le&&i.nodeType===W.text){let g=nt(i.textContent);i.textContent!==g&&(Ge(e.removed,{element:i.cloneNode()}),i.textContent=g)}return J(E.afterSanitizeElements,i,null),Le(i,a)},Sn=function(i,a,u){if(tn[a]||Tn(a,i)||on&&(a==="id"||a==="name")&&(u in n||u in Pr))return!1;let g=L[a]||oe.attributeCheck instanceof Function&&oe.attributeCheck(a,i);return kt&&$(yr,a)||nn&&$(Ar,a)?!0:g?hn[a]||$(en,We(u,Jt,""))||(a==="src"||a==="xlink:href"||a==="href")&&i!=="script"&&Kn(u,"data:")===0&&un[i]||rn&&!$(Sr,We(u,Jt,""))?!0:!u:En(i)&&it(V.tagNameCheck,i)&&it(V.attributeNameCheck,a,i)||a==="is"&&V.allowCustomizedBuiltInElements&&it(V.tagNameCheck,u)},Fr=_({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),En=function(i){return!Fr[je(i)]&&$(Er,i)},Br=function(i,a,u,g){if(M&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!u)switch(d.getAttributeType(i,a)){case"TrustedHTML":return _e(g);case"TrustedScriptURL":return dr(g)}return g},Hr=function(i,a,u,g){try{return u?i.setAttributeNS(u,a,g):i.setAttribute(a,g),rt(i)?(ae(i),!1):!0}catch{return de(a,i),!1}},Rn=function(i,a){if(J(E.beforeSanitizeAttributes,i,null),Le(i,a))return;let u=i.attributes;if(!u||rt(i))return;L=yn(E.uponSanitizeAttribute,L,mt,Xe);let g={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:L,forceKeepAttr:void 0},k=u.length,x=I(i.nodeName);for(;k--;){let T=u[k],O=T.name,j=T.namespaceURI,H=T.value,Oe=I(O),Ot=H,U=O==="value"?Ot:ts(Ot),Ln=!1;if(g.attrName=Oe,g.attrValue=U,g.keepAttr=!0,g.forceKeepAttr=void 0,J(E.uponSanitizeAttribute,i,g),U=g.attrValue,ln&&(Oe==="id"||Oe==="name")&&Kn(U,an)!==0&&(de(O,i,T),U=an+U,Ln=!0),fe&&$(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,U)){de(O,i,T);continue}if(Oe==="attributename"&&Vn(U,"href")){de(O,i,T);continue}if(!g.forceKeepAttr){if(!g.keepAttr){de(O,i,T);continue}if(!sn&&$(Ts,U)){de(O,i,T);continue}if(le&&(U=nt(U)),!Sn(x,Oe,U)){de(O,i,T);continue}U=Br(x,Oe,j,U),U!==Ot&&Hr(i,O,j,U)&&Ln&&Qn(e.removed)}}J(E.afterSanitizeAttributes,i,null),Le(i,a)},st=function(i){let a=null,u=wn(i);for(J(E.beforeSanitizeShadowDOM,i,null);a=u.nextNode();)if(J(E.uponSanitizeShadowNode,a,null),An(a,i),Rn(a,i),Re(a.content)&&st(a.content),te(a)===W.element){let g=ie(a);Re(g)&&(Lt(g),st(g))}J(E.afterSanitizeShadowDOM,i,null)},Lt=function(i){let a=[{node:i,shadow:null}];for(;a.length>0;){let u=a.pop();if(u.shadow){st(u.shadow);continue}let g=u.node,k=te(g)===W.element,x=y(g);if(x)for(let T=x.length-1;T>=0;--T)a.push({node:x[T],shadow:null});if(k){let T=se?se(g):null;if(typeof T=="string"&&I(T)==="template"){let O=g.content;Re(O)&&a.push({node:O,shadow:null})}}if(k){let T=ie(g);Re(T)&&a.push({node:null,shadow:T},{node:T,shadow:null})}}};return e.sanitize=function(f){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,u=null,g=null,k=null;if(wt=!f,wt&&(f="<!-->"),typeof f!="string"&&!Me(f)&&(f=os(f),typeof f!="string"))throw ue("dirty is not a string, aborting");if(!e.isSupported)return f;bt?(R=Ye,L=Xe):Et(i),(E.uponSanitizeElement.length>0||E.uponSanitizeAttribute.length>0)&&(R=q(R)),E.uponSanitizeAttribute.length>0&&(L=q(L)),e.removed=[];let x=_t&&typeof f!="string"&&Me(f);if(x){Mr(f);let j=ne(f);if(typeof j=="string"){let H=I(j);if(!R[H]||Ne[H])throw et(f),ue("root node is forbidden and cannot be sanitized in-place")}if(rt(f))throw et(f),ue("root node is clobbered and cannot be sanitized in-place");try{Lt(f)}catch(H){throw et(f),H}}else if(Me(f))a=_n("<!---->"),u=a.ownerDocument.importNode(f,!0),u.nodeType===W.element&&u.nodeName==="BODY"||u.nodeName==="HTML"?a=u:a.appendChild(u),Lt(a);else{if(!we&&!le&&!ge&&f.indexOf("<")===-1)return M&&Ve?_e(f):f;if(a=_n(f),!a)return we?null:Ve?he:""}a&&xt&&ae(a.firstChild);let T=x?f:a;try{let j=wn(T);for(;g=j.nextNode();)An(g,T),Rn(g,T),Re(g.content)&&st(g.content)}catch(j){throw x&&(et(f),xe(e.removed,H=>{H.element&&tt(H.element)})),j}if(x){let j=!1;if(xe(e.removed,H=>{H.element&&(H.element===f&&(j=!0),tt(H.element))}),j)throw ue("a node selected for removal could not be safely returned; refusing to sanitize in place");return le&&Rt(f),f}if(we){if(le&&Rt(a),Qe)for(k=kr.call(a.ownerDocument);a.firstChild;)k.appendChild(a.firstChild);else k=a;return(L.shadowroot||L.shadowrootmode)&&(k=xr.call(s,k,!0)),k}let O=ge?a.outerHTML:a.innerHTML;return ge&&R["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&$(ks,a.ownerDocument.doctype.name)&&(O="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
`+O),le&&(O=nt(O)),M&&Ve?_e(O):O},e.setConfig=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Et(f),bt=!0,Ye=R,Xe=L},e.clearConfig=function(){Ee=null,bt=!1,Ye=null,Xe=null,M=ft,he=""},e.isValidAttribute=function(f,i,a){Ee||Et({});let u=I(f),g=I(i);return Sn(u,g,a)},e.addHook=function(f,i){typeof i=="function"&&F(E,f)&&Ge(E[f],i)},e.removeHook=function(f,i){if(F(E,f)){if(i!==void 0){let a=Ji(E[f],i);return a===-1?void 0:es(E[f],a,1)[0]}return Qn(E[f])}},e.removeHooks=function(f){F(E,f)&&(E[f]=[])},e.removeAllHooks=function(){E=ar()},e}var fr=hr();var gr=t=>String(t).replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e]),Ss=new Bt({gfm:!0,breaks:!1,renderer:{image({text:t}){return gr(t||"\u56FE\u7247")},html({text:t}){return gr(t)}}});window.__wbsMarkdownPreview={render(t){let e=Ss.parse(String(t).slice(0,2e4));return fr.sanitize(e,{ALLOWED_TAGS:["p","br","hr","h1","h2","h3","h4","h5","h6","strong","em","del","s","blockquote","ul","ol","li","pre","code","table","thead","tbody","tr","th","td","a","input"],ALLOWED_ATTR:["start","align","type","checked","disabled"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1,RETURN_DOM_FRAGMENT:!0,...window.__wbsTrustedHtmlPolicy?{TRUSTED_TYPES_POLICY:window.__wbsTrustedHtmlPolicy}:{}})}};})();
/*! Bundled license information:

dompurify/dist/purify.es.mjs:
  (*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE *)
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
*/

/* Third-party licenses:
marked
# License information

## Contribution License Agreement

If you contribute code to this project, you are implicitly allowing your code
to be distributed under the MIT license. You are also implicitly verifying that
all code is your original work. `</legalese>`

## Marked

Copyright (c) 2018+, MarkedJS (https://github.com/markedjs/)
Copyright (c) 2011-2018, Christopher Jeffrey (https://github.com/chjj/)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

## Markdown

Copyright © 2004, John Gruber
http://daringfireball.net/
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name “Markdown” nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

This software is provided by the copyright holders and contributors “as is” and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.


dompurify

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright [yyyy] [name of copyright owner]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

*/