/*! showdown v 3.0.0-alpha - 03-04-2022 */
!function(){function a(e){"use strict";let t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:1,describe:"The header blocks level start",type:"number"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex:
[^\r]+?<\/pre>)/gm,function(e,t){return t.replace(/^ {2}/gm,"")}),r=n.attributes,"\n"+e+"\n"),new y.helper.Event("makehtml.blockquote.onHash",t));return s.setOutput(t)._setGlobals(i)._setOptions(o),s=i.converter.dispatch(s),t=s.output,y.subParser("makehtml.hashBlock")(t,o,i)}),new y.helper.Event("makehtml.blockquote.onEnd",e));return r.setOutput(e)._setGlobals(i)._setOptions(o),(r=i.converter.dispatch(r)).output}),y.subParser("makehtml.codeBlock",function(e,u,h){"use strict";let t=new y.helper.Event("makehtml.codeBlock.onStart",e),p=(t.setOutput(e)._setGlobals(h)._setOptions(u),e=(t=h.converter.dispatch(t)).output,/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g),r=(e=(e=(e+="¨0").replace(p,function(e,t,r){let a=t,n=r,s="\n",o,i={pre:{},code:{}},l=new y.helper.Event("makehtml.codeBlock.onCapture",a),c=(l.setOutput(null)._setGlobals(h)._setOptions(u).setRegexp(p).setMatches({_wholeMatch:e,codeblock:a}).setAttributes(i),(l=h.converter.dispatch(l)).output&&""!==l.output?o=l.output:(a=l.matches.codeblock,a=y.subParser("makehtml.outdent")(a,u,h),a=y.subParser("makehtml.encodeCode")(a,u,h),a=(a=(a=y.subParser("makehtml.detab")(a,u,h)).replace(/^\n+/g,"")).replace(/\n+$/g,""),i=l.attributes,o="",y.helper.isUndefined(i)||(o="
",o+=""),new y.helper.Event("makehtml.codeBlock.onHash",o));return c.setOutput(o)._setGlobals(h)._setOptions(u),c=h.converter.dispatch(c),o=c.output,y.subParser("makehtml.hashBlock")(o,u,h)+n})).replace(/¨0/,""),new y.helper.Event("makehtml.codeBlock.onEnd",e));return r.setOutput(e)._setGlobals(h)._setOptions(u),(r=h.converter.dispatch(r)).output}),y.subParser("makehtml.codeSpan",function(e,i,l){"use strict";let t=new y.helper.Event("makehtml.codeSpan.onStart",e),c=(t.setOutput(e)._setGlobals(l)._setOptions(i),e=(t=l.converter.dispatch(t)).output,y.helper.isUndefined(e)&&(e=""),/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm),r=(e=e.replace(c,function(e,t,r,a){let n,s=(a=(a=a.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),new y.helper.Event("makehtml.codeSpan.onCapture",a)),o=(s.setOutput(null)._setGlobals(l)._setOptions(i).setRegexp(c).setMatches({_wholeMatch:e,code:a}).setAttributes({}),s=l.converter.dispatch(s),n=s.output&&""!==s.output?t+s.output:(a=s.matches.code,a=y.subParser("makehtml.encodeCode")(a,i,l),t+""),u.omitExtraWLInCodeBlocks&&(s=""),o+=a+s+"
"+a+"
"),new y.helper.Event("makehtml.codeSpan.onHash",n));return o.setOutput(n)._setGlobals(l)._setOptions(i),o=l.converter.dispatch(o),n=o.output,y.subParser("makehtml.hashHTMLSpans")(n,i,l)}),new y.helper.Event("makehtml.codeSpan.onEnd",e));return r.setOutput(e)._setGlobals(l)._setOptions(i),(r=l.converter.dispatch(r)).output}),y.subParser("makehtml.completeHTMLDocument",function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;let a=new y.helper.Event("makehtml.completeHTMLDocument.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(a=r.converter.dispatch(a)).output,"html"),s="\n",o="",i='\n',l="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(s="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o=""+r.metadata.parsed.title+" \n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":l=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}e=s+"\n\n"+o+i+c+"\n\n"+e.trim()+"\n\n";let h=new y.helper.Event("makehtml.completeHTMLDocument.onEnd",e);return h.setOutput(e)._setGlobals(r)._setOptions(t),(h=r.converter.dispatch(h)).output}),y.subParser("makehtml.detab",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.detab.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(e=(e=(e=(e=(e=(a=r.converter.dispatch(a)).output).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var r=t,a=4-r.length%4,n=0;n":s={em:{}},o="emphasis";break;case"":s={strong:{}},o="strong";break;case"":s={em:{},strong:{}},o="emphasisAndStrong";break;default:s={},o="emphasisAndStrong"}let i=new y.helper.Event("makehtml."+o+".onCapture",e);if(i.setOutput(null)._setGlobals(u)._setOptions(c).setRegexp(a).setMatches({_wholeMatch:r,text:e}).setAttributes(s),(i=u.converter.dispatch(i)).output&&""!==i.output)n=i.output;else switch(s=i.attributes,y.helper.isUndefined(s.em)&&(s.em={}),y.helper.isUndefined(s.strong)&&(s.strong={}),t){case"":n=""+e+"";break;case"":n=""+e+"";break;case"":n=""+e+""}let l=new y.helper.Event("makehtml."+o+".onHash",n);return l.setOutput(n)._setGlobals(u)._setOptions(c),l=u.converter.dispatch(l),n=l.output}t.setOutput(e)._setGlobals(u)._setOptions(c),e=(t=u.converter.dispatch(t)).output;const a=/\b___(\S[\s\S]*?)___\b/g,n=/\b__(\S[\s\S]*?)__\b/g,s=/\b_(\S[\s\S]*?)_\b/g,o=/___(\S[\s\S]*?)___/g,i=/__(\S[\s\S]*?)__/g,l=/_([^\s_][\s\S]*?)_/g,h=/\*\*\*(\S[\s\S]*?)\*\*\*/g,p=/\*\*(\S[\s\S]*?)\*\*/g,m=/\*([^\s*][\s\S]*?)\*/g;e=(e=(e=(e=c.literalMidWordUnderscores?(e=(e=e.replace(a,function(e,t){return r(t,"",e,a)})).replace(n,function(e,t){return r(t,"",e,n)})).replace(s,function(e,t){return r(t,"",e,s)}):(e=(e=e.replace(o,function(e,t){return/\S$/.test(t)?r(t,"",e,o):e})).replace(i,function(e,t){return/\S$/.test(t)?r(t,"",e,i):e})).replace(l,function(e,t){return/\S$/.test(t)?r(t,"",e,l):e})).replace(h,function(e,t){return/\S$/.test(t)?r(t,"",e,h):e})).replace(p,function(e,t){return/\S$/.test(t)?r(t,"",e,p):e})).replace(m,function(e,t){return/\S$/.test(t)?r(t,"",e,m):e});let d=new y.helper.Event("makehtml.emphasisAndStrong.onEnd",e);return d.setOutput(e)._setGlobals(u)._setOptions(c),(d=u.converter.dispatch(d)).output}),y.subParser("makehtml.encodeAmpsAndAngles",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.encodeAmpsAndAngles.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(e=(e=(e=(e=(a=r.converter.dispatch(a)).output).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(//g,">"),new y.helper.Event("makehtml.encodeAmpsAndAngles.onEnd",e));return n.setOutput(e)._setGlobals(r)._setOptions(t),(n=r.converter.dispatch(n)).output}),y.subParser("makehtml.encodeBackslashEscapes",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.encodeBackslashEscapes.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(e=(e=(a=r.converter.dispatch(a)).output).replace(/\\(\\)/g,y.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,y.helper.escapeCharactersCallback),new y.helper.Event("makehtml.encodeBackslashEscapes.onEnd",e));return n.setOutput(e)._setGlobals(r)._setOptions(t),(n=r.converter.dispatch(n)).output}),y.subParser("makehtml.encodeCode",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.encodeCode.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(e=(a=r.converter.dispatch(a)).output).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,y.helper.escapeCharactersCallback),new y.helper.Event("makehtml.encodeCode.onEnd",e));return n.setOutput(e)._setGlobals(r)._setOptions(t),(n=r.converter.dispatch(n)).output}),y.subParser("makehtml.escapeSpecialCharsWithinTagAttributes",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.escapeSpecialCharsWithinTagAttributes.onStart",e);a.setOutput(e)._setGlobals(r)._setOptions(t);e=(e=(e=(a=r.converter.dispatch(a)).output).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,y.helper.escapeCharactersCallback)})).replace(/-]|-[^>])([^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,y.helper.escapeCharactersCallback)});let n=new y.helper.Event("makehtml.escapeSpecialCharsWithinTagAttributes.onEnd",e);return n.setOutput(e)._setGlobals(r)._setOptions(t),(n=r.converter.dispatch(n)).output}),y.subParser("makehtml.githubCodeBlock",function(e,c,u){"use strict";if(!c.ghCodeBlocks)return e;let t=new y.helper.Event("makehtml.githubCodeBlock.onStart",e),h=(t.setOutput(e)._setGlobals(u)._setOptions(c),e=(t=u.converter.dispatch(t)).output+"¨0",/(?:^|\n) {0,3}(```+|~~~+) *([^\n\t`~]*)\n([\s\S]*?)\n {0,3}\1/g),r=(e=(e=e.replace(h,function(e,t,r,a){let n=c.omitExtraWLInCodeBlocks?"":"\n",s,o={pre:{},code:{}},i=new y.helper.Event("makehtml.githubCodeBlock.onCapture",a);if(i.setOutput(null)._setGlobals(u)._setOptions(c).setRegexp(h).setMatches({_whoteMatch:e,codeblock:a,infostring:r}).setAttributes(o),(i=u.converter.dispatch(i)).output&&""!==i.output)s=i.output;else{let e=i.matches.infostring;r=e.trim().split(" ")[0];a=i.matches.codeblock,a=y.subParser("makehtml.encodeCode")(a,c,u),a=(a=y.subParser("makehtml.detab")(a,c,u)).replace(/^\n+/g,"").replace(/\n+$/g,""),o=i.attributes,s=""}),y.subParser("makeMarkdown.strikethrough",function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var a=e.childNodes,n=a.length,s=0;s",y.helper.isUndefined(o)||(s="
",e&&(o.code||(o.code={}),o.code.classes||(o.code.classes=[]),o.code.classes&&(y.helper.isString(o.code.classes)?o.code.classes+=" "+r+" language-"+r:y.helper.isArray(o.code.classes)&&(o.code.classes.push(r),o.code.classes.push("language-"+r)))),s+=""}let l=new y.helper.Event("makehtml.githubCodeBlock.onHash",s);return l.setOutput(s)._setGlobals(u)._setOptions(c),l=u.converter.dispatch(l),s=l.output,s=y.subParser("makehtml.hashBlock")(s,c,u),"\n\n¨G"+(u.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"})).replace(/¨0/,""),new y.helper.Event("makehtml.githubCodeBlock.onEnd",e));return r.setOutput(e)._setGlobals(u)._setOptions(c),(r=u.converter.dispatch(r)).output}),y.subParser("makehtml.hashBlock",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.hashBlock.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(e=(a=r.converter.dispatch(a)).output).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",new y.helper.Event("makehtml.hashBlock.onEnd",e));return n.setOutput(e)._setGlobals(r)._setOptions(t),(n=r.converter.dispatch(n)).output}),y.subParser("makehtml.hashCodeTags",function(e,n,s){"use strict";let t=new y.helper.Event("makehtml.hashCodeTags.onStart",e);t.setOutput(e)._setGlobals(s)._setOptions(n),e=(t=s.converter.dispatch(t)).output;e=y.helper.replaceRecursiveRegExp(e,function(e,t,r,a){r=r+y.subParser("makehtml.encodeCode")(t,n,s)+a;return"¨C"+(s.gHtmlSpans.push(r)-1)+"C"},""),c.omitExtraWLInCodeBlocks&&(n=""),s+=a+n+"
]*>","
","gim");let r=new y.helper.Event("makehtml.hashCodeTags.onEnd",e);return r.setOutput(e)._setGlobals(s)._setOptions(n),(r=s.converter.dispatch(r)).output}),y.subParser("makehtml.hashElement",function(e,t,a){"use strict";return function(e,t){let r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),r="\n\n¨K"+(a.gHtmlBlocks.push(r)-1)+"K\n\n"}}),y.subParser("makehtml.hashHTMLBlocks",function(r,e,s){"use strict";let t=new y.helper.Event("makehtml.hashHTMLBlocks.onStart",r);t.setOutput(r)._setGlobals(s)._setOptions(e),r=(t=s.converter.dispatch(t)).output;function a(e,t,r,a){let n=e;return-1!==r.search(/\bmarkdown\b/)&&(n=r+s.converter.makeHtml(t)+a),"\n\n¨K"+(s.gHtmlBlocks.push(n)-1)+"K\n\n"}var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","details","p"];e.backslashEscapesHTMLTags&&(r=r.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(let e=0;e]*>)","im"),l="<"+n[e]+"\\b[^>]*>",c=""+n[e]+">";-1!==(o=y.helper.regexIndexOf(r,i));){let e=y.helper.splitAtIndex(r,o),t=y.helper.replaceRecursiveRegExp(e[1],a,l,c,"im");if(t===e[1])break;r=e[0].concat(t)}r=r.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,y.subParser("makehtml.hashElement")(r,e,s)),r=(r=y.helper.replaceRecursiveRegExp(r,function(e){return"\n\n¨K"+(s.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/\n\n( {0,3}<([?%])[^\r]*?\2>[ \t]*(?=\n{2,}))/g,y.subParser("makehtml.hashElement")(r,e,s));let u=new y.helper.Event("makehtml.hashHTMLBlocks.onEnd",r);return u.setOutput(r)._setGlobals(s)._setOptions(e),(u=s.converter.dispatch(u)).output}),y.subParser("makehtml.hashHTMLSpans",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.hashHTMLSpans.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(e=(e=(e=(e=(a=r.converter.dispatch(a)).output).replace(/<[^>]+?\/>/gi,function(e){return y.helper._hashHTMLSpan(e,r)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return y.helper._hashHTMLSpan(e,r)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return y.helper._hashHTMLSpan(e,r)})).replace(/<[^>]+?>/gi,function(e){return y.helper._hashHTMLSpan(e,r)}),new y.helper.Event("makehtml.hashHTMLSpans.onEnd",e));return n.setOutput(e)._setGlobals(r)._setOptions(t),(n=r.converter.dispatch(n)).output}),y.subParser("makehtml.hashPreCodeTags",function(e,n,s){"use strict";let t=new y.helper.Event("makehtml.hashHTMLBlocks.onStart",e);t.setOutput(e)._setGlobals(s)._setOptions(n),e=(t=s.converter.dispatch(t)).output;e=y.helper.replaceRecursiveRegExp(e,function(e,t,r,a){r=r+y.subParser("makehtml.encodeCode")(t,n,s)+a;return"\n\n¨G"+(s.ghCodeBlocks.push({text:e,codeblock:r})-1)+"G\n\n"},"^ {0,3} ]*>\\s*","gim");let r=new y.helper.Event("makehtml.hashPreCodeTags.onEnd",e);return r.setOutput(e)._setGlobals(s)._setOptions(n),(r=s.converter.dispatch(r)).output}),y.subParser("makehtml.heading",function(e,l,c){"use strict";function n(e,t,r,a,n){let s=new y.helper.Event("makehtml.heading.onCapture",r),o;s.setOutput(null)._setGlobals(c)._setOptions(l).setRegexp(e).setMatches({_wholeMatch:t,heading:r}).setAttributes({id:n}),s=c.converter.dispatch(s),o=s.output&&""!==s.output?s.output:(r=s.matches.heading,e=y.subParser("makehtml.spanGamut")(r,l,c),t=s.attributes,"]*>","^ {0,3}
\\s*"+e+" ");let i=new y.helper.Event("makehtml.heading.onHash",o);return i.setOutput(o)._setGlobals(c)._setOptions(l),i=c.converter.dispatch(i),o=i.output,y.subParser("makehtml.hashBlock")(o,l,c)}let t=new y.helper.Event("makehtml.heading.onStart",e),a=(t.setOutput(e)._setGlobals(c)._setOptions(l),e=(t=c.converter.dispatch(t)).output,l.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm),s=l.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm,r=l.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,o=(e=(e=(e=e.replace(a,function(e,t){var r=l.noHeaderId?null:y.subParser("makehtml.heading.id")(t,l,c);return n(a,e,t,l.headerLevelStart,r)})).replace(s,function(e,t){var r=l.noHeaderId?null:y.subParser("makehtml.heading.id")(t,l,c);return n(s,e,t,l.headerLevelStart+1,r)})).replace(r,function(e,t,r){var t=l.headerLevelStart-1+t.length,a=l.customizedHeaderId?r.replace(/\s?{([^{]+?)}\s*$/,""):r,r=l.noHeaderId?null:y.subParser("makehtml.heading.id")(r,l,c);return n(s,e,a,t,r)}),new y.helper.Event("makehtml.heading.onEnd",e));return o.setOutput(e)._setGlobals(c)._setOptions(l),(o=c.converter.dispatch(o)).output}),y.subParser("makehtml.heading.id",function(e,t,r){let a,n;var s;return t.customizedHeaderId&&(s=e.match(/{([^{]+?)}\s*$/))&&s[1]&&(e=s[1]),a=e,n=y.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(a=n+a),a=(t.ghCompatibleHeaderId?a.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,""):t.rawHeaderId?a.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-"):a.replace(/[^\w]/g,"")).toLowerCase(),t.rawPrefixHeaderId&&(a=n+a),r.hashLinkCounts[a]?a=a+"-"+r.hashLinkCounts[a]++:r.hashLinkCounts[a]=1,a}),y.subParser("makehtml.horizontalRule",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.horizontalRule.onStart",e);a.setOutput(e)._setGlobals(r)._setOptions(t),e=(a=r.converter.dispatch(a)).output;var n=y.subParser("makehtml.hashBlock")("
",t,r);e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n);let s=new y.helper.Event("makehtml.horizontalRule.onEnd",e);return s.setOutput(e)._setGlobals(r)._setOptions(t),(s=r.converter.dispatch(s)).output}),y.subParser("makehtml.image",function(e,b,f){"use strict";function i(e,t,r,a,n,s,o,i,l){let c=f.gUrls,u=f.gTitles,h=f.gDimensions,p={_wholeMatch:t,_altText:r,_linkId:a,_url:n,_width:s,_height:o,_title:l},m,d;if(a=a.toLowerCase(),l=l||null,-1? ?(['"].*['"])?\)$/m))n="";else if(""===n||null===n){if(n="#"+(a=""!==a&&null!==a?a:r.toLowerCase().replace(/ ?\n/g," ")),y.helper.isUndefined(c[a]))return t;n=c[a],y.helper.isUndefined(u[a])||(l=u[a]),y.helper.isUndefined(h[a])||(s=h[a].width,o=h[a].height)}r=r.replace(/"/g,""").replace(y.helper.regexes.asteriskDashTildeAndColon,y.helper.escapeCharactersCallback),n=n.replace(y.helper.regexes.asteriskDashTildeAndColon,y.helper.escapeCharactersCallback),l&&y.helper.isString(l)&&(l=l.replace(/"/g,""").replace(y.helper.regexes.asteriskDashTildeAndColon,y.helper.escapeCharactersCallback)),s=s?"*"===s?"auto":s:null,o=o?"*"===o?"auto":o:null;let _=new y.helper.Event("makehtml.image.onCapture",t),g=(_.setOutput(null)._setGlobals(f)._setOptions(b).setRegexp(e).setMatches(p).setAttributes({src:n,alt:r,title:l,width:s,height:o}),_=f.converter.dispatch(_),m=_.output&&""!==_.output?_.output:(d=_.attributes,""),new y.helper.Event("makehtml.image.onHash",m));return g.setOutput(m)._setGlobals(f)._setOptions(b),g=f.converter.dispatch(g),m=g.output}let t=new y.helper.Event("makehtml.image.onStart",e),l=(t.setOutput(e)._setGlobals(f)._setOptions(b),e=(t=f.converter.dispatch(t)).output,/!\[([^\]]*?)][ \t]*\([ \t]?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\5)?[ \t]?\)/g),c=/!\[([^\]]*?)][ \t]*\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\5)?[ \t]?\)/g,u=/!\[([^\]]*?)][ \t]*\([ \t]?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,a=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]/g,r=/!\[([^\[\]]+)]/g,n=(e=(e=(e=(e=(e=e.replace(a,function(e,t,r){return i(a,e,t,r,"")})).replace(u,function(e,t,r,a,n,s,o){return r=r.replace(/\s/g,""),i(u,e,t,"",r,a,n,0,o)})).replace(c,function(e,t,r,a,n,s,o){return r=y.helper.applyBaseUrl(b.relativePathBaseUrl,r),i(c,e,t,"",r,a,n,0,o)})).replace(l,function(e,t,r,a,n,s,o){return r=y.helper.applyBaseUrl(b.relativePathBaseUrl,r),i(l,e,t,"",r,a,n,0,o)})).replace(r,function(e,t){return i(r,e,t,"","")}),new y.helper.Event("makehtml.image.onEnd",e));return n.setOutput(e)._setGlobals(f)._setOptions(b),(n=f.converter.dispatch(n)).output}),n="makehtml.links",y.subParser("makehtml.links",function(e,t,r){return e=r.converter._dispatch(n+".start",e,t,r).getText(),e=y.subParser("makehtml.links.reference")(e,t,r),e=y.subParser("makehtml.links.inline")(e,t,r),e=y.subParser("makehtml.links.referenceShortcut")(e,t,r),e=y.subParser("makehtml.links.angleBrackets")(e,t,r),e=(e=(e=y.subParser("makehtml.links.ghMentions")(e,t,r)).replace(/]*>[\s\S]*<\/a>/g,function(e){return y.helper._hashHTMLSpan(e,r)})).replace(/]*\/?>/g,function(e){return y.helper._hashHTMLSpan(e,r)}),e=y.subParser("makehtml.links.naked")(e,t,r),e=r.converter._dispatch(n+".end",e,t,r).getText()}),y.subParser("makehtml.links.inline",function(e,t,r){var a=void 0+".inline",n=/\[(.*?)]()()()()\( ?>? ?(?:["'](.*)["'])?\)/g,s=/\[((?:\[[^\]]*]|[^\[\]])*)]()\s?\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o=/\[([\S ]*?)]\s?()\( *([^\s'"]*?(?:\([\S]*?\)[\S]*?)?)>?\s*(?:()(['"])(.*?)\5)? *\)/g,i=/\[([\S ]*?)]\s?()\( *([^\s'"]*?(?:\([\S]*?\)[\S]*?)?)>?\s+()()\((.*?)\) *\)/g;return e=(e=(e=(e=(e=r.converter._dispatch(a+".start",e,t,r).getText()).replace(n,c(n,a,t,r,!0))).replace(s,c(s,a,t,r))).replace(o,c(o,a,t,r))).replace(i,c(i,a,t,r)),e=r.converter._dispatch(a+".end",e,t,r).getText()}),y.subParser("makehtml.links.reference",function(e,t,r){var a=void 0+".reference",n=/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g;return e=(e=r.converter._dispatch(a+".start",e,t,r).getText()).replace(n,o(n,a,t,r)),e=r.converter._dispatch(a+".end",e,t,r).getText()}),y.subParser("makehtml.links.referenceShortcut",function(e,t,r){var a=void 0+".referenceShortcut",n=/\[([^\[\]]+)]()()()()()/g;return e=(e=r.converter._dispatch(a+".start",e,t,r).getText()).replace(n,o(n,a,t,r)),e=r.converter._dispatch(a+".end",e,t,r).getText()}),y.subParser("makehtml.links.ghMentions",function(e,s,o){var i=void 0+"ghMentions";if(!s.ghMentions)return e;e=o.converter._dispatch(i+".start",e,s,o).getText();var l=/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d._-]+?[a-z\d]+)*))/gi;return e=e.replace(l,function(e,t,r,a,n){if("\\"===r)return t+a;if(!y.helper.isString(s.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");r=s.ghMentionsLink.replace(/{u}/g,n);return t+b(g(l,i+".captureStart",e,a,null,r,null,s,o),s,o)}),e=o.converter._dispatch(i+".end",e,s,o).getText()}),y.subParser("makehtml.links.angleBrackets",function(e,a,n){var s="makehtml.links.angleBrackets",o=(e=n.converter._dispatch(s+".start",e,a,n).getText(),/<(((?:https?|ftp):\/\/|www\.)[^'">\s]+)>/gi),i=(e=e.replace(o,function(e,t,r){return b(g(o,s+".captureStart",e,t,null,t="www."===r?"http://"+t:t,null,a,n),a,n)}),/<(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi);return e=e.replace(i,function(e,t){var r="mailto:";return t=y.subParser("makehtml.unescapeSpecialChars")(t,a,n),a.encodeEmails?(r=y.helper.encodeEmailAddress(r+t),t=y.helper.encodeEmailAddress(t)):r+=t,b(g(i,s+".captureStart",e,t,null,r,null,a,n),a,n)}),e=n.converter._dispatch(s+".end",e,a,n).getText()}),y.subParser("makehtml.links.naked",function(e,u,h){if(!u.simplifiedAutoLink)return e;var p="makehtml.links.naked",m=(e=h.converter._dispatch(p+".start",e,u,h).getText(),/([_*~]*?)(((?:https?|ftp):\/\/|www\.)[^\s<>"'`´.-][^\s<>"'`´]*?\.[a-z\d.]+[^\s<>"']*)\1/gi),n=(e=e.replace(m,function(e,t,r,a){for(var n="",s=r.length-1;0<=s;--s){var o=r.charAt(s);if(/[_*~,;:.!?]/.test(o))r=r.slice(0,-1),n=o+n;else if(/\)/.test(o)){var i=r.match(/\(/g)||[],l=r.match(/\)/g);if(!(i.length "})),n=n.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(e){return"¨A"+e}),/^#+.+\n.+/.test(n)&&(n=n.replace(/^(#+.+)$/m,"$1\n")),t||-1 "),p+="",c.push(p))}n=(n=(n=c.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,"")}else n=(n=y.subParser("makehtml.lists")(n,d,_)).replace(/\n$/,""),n=(n=y.subParser("makehtml.hashHTMLBlocks")(n,d,_)).replace(/\n\n+/g,"\n\n"),n=(m?y.subParser("makehtml.paragraphs"):y.subParser("makehtml.spanGamut"))(n,d,_);return n=" "+(n=n.replace("¨A",""))+" \n"})).replace(/¨0/g,""),_.gListLevel--,e=t?e.replace(/\s+$/,""):e}function p(e,t){if("ol"===t){t=e.match(/^ *(\d+)\./);if(t&&"1"!==t[1])return' start="'+t[1]+'"'}return""}function n(n,s,o){var e,i=d.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,l=d.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===s?i:l,u="";return-1!==n.search(c)?function e(t){var r=t.search(c),a=p(n,s);-1!==r?(u+="\n\n<"+s+a+">\n"+h(t.slice(0,r),!!o)+""+s+">\n",c="ul"===(s="ul"===s?"ol":"ul")?i:l,e(t.slice(r))):u+="\n\n<"+s+a+">\n"+h(t,!!o)+""+s+">\n"}(n):(e=p(n,s),u="\n\n<"+s+e+">\n"+h(n,!!o)+""+s+">\n"),u}return e=_.converter._dispatch("lists.before",e,d,_).getText(),e+="¨0",e=(e=_.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r){return n(t,-1"),i+="",n.push(i))}for(s=n.length,o=0;o ]*>\s*]*>/.test(c)&&(u=!0)}n[o]=c}return e=(e=(e=n.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("makehtml.paragraphs.after",e,t,r).getText()}),y.subParser("makehtml.runExtension",function(e,t,r,a){"use strict";return e.filter?t=e.filter(t,a.converter,r):e.regex&&((a=e.regex)instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)),t}),y.subParser("makehtml.spanGamut",function(e,t,r){"use strict";let a=new y.helper.Event("makehtml.spanGamut.onStart",e),n=(a.setOutput(e)._setGlobals(r)._setOptions(t),e=(a=r.converter.dispatch(a)).output,e=y.subParser("makehtml.codeSpan")(e,t,r),e=y.subParser("makehtml.escapeSpecialCharsWithinTagAttributes")(e,t,r),e=y.subParser("makehtml.encodeBackslashEscapes")(e,t,r),e=y.subParser("makehtml.image")(e,t,r),e=r.converter._dispatch("smakehtml.links.before",e,t,r).getText(),e=y.subParser("makehtml.links")(e,t,r),e=r.converter._dispatch("smakehtml.links.after",e,t,r).getText(),e=y.subParser("makehtml.emoji")(e,t,r),e=y.subParser("makehtml.underline")(e,t,r),e=y.subParser("makehtml.emphasisAndStrong")(e,t,r),e=y.subParser("makehtml.strikethrough")(e,t,r),e=y.subParser("makehtml.ellipsis")(e,t,r),e=y.subParser("makehtml.hashHTMLSpans")(e,t,r),e=y.subParser("makehtml.encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),new y.helper.Event("makehtml.spanGamut.onEnd",e));return n.setOutput(e)._setGlobals(r)._setOptions(t),(n=r.converter.dispatch(n)).output}),y.subParser("makehtml.strikethrough",function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("makehtml.strikethrough.before",e,t,r).getText()).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,t){return""+t+""}),e=r.converter._dispatch("makehtml.strikethrough.after",e,t,r).getText()),e}),y.subParser("makehtml.stripLinkDefinitions",function(i,l,c){"use strict";function e(e,t,r,a,n,s,o){return t=t.toLowerCase(),i.toLowerCase().split(t).length-1<2?e:(r.match(/^data:.+?\/.+?;base64,/)?c.gUrls[t]=r.replace(/\s/g,""):(r=y.helper.applyBaseUrl(l.relativePathBaseUrl,r),c.gUrls[t]=y.subParser("makehtml.encodeAmpsAndAngles")(r,l,c)),s?s+o:(o&&(c.gTitles[t]=o.replace(/"|'/g,""")),l.parseImgDimensions&&a&&n&&(c.gDimensions[t]={width:a,height:n}),""))}return i=(i=(i=(i+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,e)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,e)).replace(/¨0/,"")}),y.subParser("makehtml.tables",function(e,w,v){"use strict";if(!w.tables)return e;function t(e){let t=e.split("\n");for(let e=0;e"+(c=y.subParser("makehtml.spanGamut")(c,w,v))+"\n"))}for(let r=0;r "+y.subParser("makehtml.spanGamut")(p,w,v)+"\n"))}i.push(t)}for(var d=s,_=i,g=" \n\n
\n"}return e=(e=(e=(e=v.converter._dispatch("makehtml.tables.before",e,w,v).getText()).replace(/\\(\|)/g,y.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*[-=]{2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*[-=]{2,}[\s\S]+?(?:\n\n|¨0)/gm,t)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*[-=]{2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,t),e=v.converter._dispatch("makehtml.tables.after",e,w,v).getText()}),y.subParser("makehtml.underline",function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("makehtml.underline.before",e,t,r).getText(),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return""+t+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return""+t+""}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,y.helper.escapeCharactersCallback),r.converter._dispatch("makehtml.underline.after",e,t,r).getText()):e}),y.subParser("makehtml.unescapeSpecialChars",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("makehtml.unescapeSpecialChars.before",e,t,r).getText()).replace(/¨E(\d+)E/g,function(e,t){t=parseInt(t);return String.fromCharCode(t)}),e=r.converter._dispatch("makehtml.unescapeSpecialChars.after",e,t,r).getText()}),y.subParser("makehtml.unhashHTMLSpans",function(a,e,n){"use strict";let t=new y.helper.Event("makehtml.unhashHTMLSpans.onStart",a);t.setOutput(a)._setGlobals(n)._setOptions(e),a=(t=n.converter.dispatch(t)).output;for(let r=0;r\n",b=d.length,f=0;f\n \n\n",f=0;f<_.length;++f){g+="\n";for(var k=0;k\n"}return g+=" \n")}),y.subParser("makeMarkdown.break",function(){"use strict";return" \n"}),y.subParser("makeMarkdown.codeBlock",function(e,t){"use strict";var r=e.getAttribute("language"),e=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[e]+"\n```"}),y.subParser("makeMarkdown.codeSpan",function(e){"use strict";return"`"+e.innerHTML+"`"}),y.subParser("makeMarkdown.emphasis",function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var a=e.childNodes,n=a.length,s=0;s ",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),y.subParser("makeMarkdown.input",function(e,t){"use strict";for(var r="",a=(null!==e.getAttribute("checked")?r+="[x]":r+="[ ]",e.childNodes),n=a.length,s=0;s "),e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r}),y.subParser("makeMarkdown.list",function(e,t,r){"use strict";var a="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,s=n.length,o=e.getAttribute("start")||1,i=0;i "+t.preList[e]+"thead").length&&0!==e.querySelectorAll(":scope>thead>tr").length)for(var l=e.querySelectorAll(":scope>thead>tr"),c=0;c tbody").length&&0!==e.querySelectorAll(":scope>tbody>tr").length){var u=e.querySelectorAll(":scope>tbody>tr");for(c=0;c tfoot").length&&0!==e.querySelectorAll(":scope>tfoot>tr").length){var h=e.querySelectorAll(":scope>tfoot>tr");for(c=0;c tr").length){var p=e.querySelectorAll(":scope>tr");for(c=0;c /g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}),y.Converter=function(e){"use strict";var t,r,n={},i=[],l=[],c={},a=m,s={parsed:{},raw:"",format:""};for(t in e=e||{},p)p.hasOwnProperty(t)&&(n[t]=p[t]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);function o(e,t){if(t=t||null,y.helper.isString(e)){if(t=e=y.helper.stdExtName(e),y.extensions[e]){console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!");var r=y.extensions[e],a=e;if("function"==typeof r&&(r=r(new y.Converter)),y.helper.isArray(r)||(r=[r]),!(a=_(r,a)).valid)throw Error(a.error);for(var n=0;n [ \t]+,">¨NBSP;<");for(var t=y.helper.document.createElement("div"),r=(t.innerHTML=e,{preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],a=0;a '}else r.push(t[a].innerHTML),t[a].innerHTML="",t[a].setAttribute("prenum",a.toString());return r}(t)}),a=(!function e(t){for(var r=0;r