/*! showdown v 3.0.0-alpha - 25-04-2022 */
!function(){function r(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,"")}),a=n.attributes,"\n"+e+"\n"),new v.Event("makehtml.blockquote.onHash",t));return s.setOutput(t)._setGlobals(i)._setOptions(o),s=i.converter.dispatch(s),t=s.output,v.subParser("makehtml.hashBlock")(t,o,i)}),new v.Event("makehtml.blockquote.onEnd",e));return a.setOutput(e)._setGlobals(i)._setOptions(o),(a=i.converter.dispatch(a)).output}),v.subParser("makehtml.codeBlock",function(e,c,h){"use strict";let t=new v.Event("makehtml.codeBlock.onStart",e),p=(t.setOutput(e)._setGlobals(h)._setOptions(c),e=(t=h.converter.dispatch(t)).output,/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g),a=(e=(e=(e+="¨0").replace(p,function(e,t,a){let r=t,n=a,s="\n",o,i={pre:{},code:{}},l=new v.Event("makehtml.codeBlock.onCapture",r),u=(l.setOutput(null)._setGlobals(h)._setOptions(c).setRegexp(p).setMatches({_wholeMatch:e,codeblock:r}).setAttributes(i),(l=h.converter.dispatch(l)).output&&""!==l.output?o=l.output:(r=l.matches.codeblock,r=v.helper.outdent(r),r=v.subParser("makehtml.encodeCode")(r,c,h),r=(r=(r=v.subParser("makehtml.detab")(r,c,h)).replace(/^\n+/g,"")).replace(/\n+$/g,""),i=l.attributes,o="",v.helper.isUndefined(i)||(o="
",o+=""),new v.Event("makehtml.codeBlock.onHash",o));return u.setOutput(o)._setGlobals(h)._setOptions(c),u=h.converter.dispatch(u),o=u.output,v.subParser("makehtml.hashBlock")(o,c,h)+n})).replace(/¨0/,""),new v.Event("makehtml.codeBlock.onEnd",e));return a.setOutput(e)._setGlobals(h)._setOptions(c),(a=h.converter.dispatch(a)).output}),v.subParser("makehtml.codeSpan",function(e,i,l){"use strict";let t=new v.Event("makehtml.codeSpan.onStart",e),u=(t.setOutput(e)._setGlobals(l)._setOptions(i),e=(t=l.converter.dispatch(t)).output,v.helper.isUndefined(e)&&(e=""),/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm),a=(e=e.replace(u,function(e,t,a,r){let n,s=(r=(r=r.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),new v.Event("makehtml.codeSpan.onCapture",r)),o=(s.setOutput(null)._setGlobals(l)._setOptions(i).setRegexp(u).setMatches({_wholeMatch:e,code:r}).setAttributes({}),s=l.converter.dispatch(s),n=s.output&&""!==s.output?t+s.output:(r=s.matches.code,r=v.subParser("makehtml.encodeCode")(r,i,l),t+""),c.omitExtraWLInCodeBlocks&&(s=""),o+=r+s+"
"+r+"
"),new v.Event("makehtml.codeSpan.onHash",n));return o.setOutput(n)._setGlobals(l)._setOptions(i),o=l.converter.dispatch(o),n=o.output,v.subParser("makehtml.hashHTMLSpans")(n,i,l)}),new v.Event("makehtml.codeSpan.onEnd",e));return a.setOutput(e)._setGlobals(l)._setOptions(i),(a=l.converter.dispatch(a)).output}),v.subParser("makehtml.completeHTMLDocument",function(e,t,a){"use strict";if(!t.completeHTMLDocument)return e;let r=new v.Event("makehtml.completeHTMLDocument.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(r=a.converter.dispatch(r)).output,"html"),s="\n",o="",i='\n',l="",u="";for(var c in void 0!==a.metadata.parsed.doctype&&(s="\n","html"!==(n=a.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),a.metadata.parsed)if(a.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":o=""+a.metadata.parsed.title+" \n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":l=' lang="'+a.metadata.parsed[c]+'"',u+='\n';break;default:u+='\n'}e=s+"\n\n"+o+i+u+"\n\n"+e.trim()+"\n\n";let h=new v.Event("makehtml.completeHTMLDocument.onEnd",e);return h.setOutput(e)._setGlobals(a)._setOptions(t),(h=a.converter.dispatch(h)).output}),v.subParser("makehtml.detab",function(e,t,a){"use strict";let r=new v.Event("makehtml.detab.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var a=t,r=4-a.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 v.Event("makehtml.emphasisAndStrong."+o+".onCapture",e);if(i.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(r).setMatches({_wholeMatch:a,text:e}).setAttributes(s),(i=c.converter.dispatch(i)).output&&""!==i.output)n=i.output;else switch(s=i.attributes,v.helper.isUndefined(s.em)&&(s.em={}),v.helper.isUndefined(s.strong)&&(s.strong={}),t){case"":n=""+e+"";break;case"":n=""+e+"";break;case"":n=""+e+""}let l=new v.Event("makehtml.emphasisAndStrong."+o+".onHash",n);return l.setOutput(n)._setGlobals(c)._setOptions(u),l=c.converter.dispatch(l),n=l.output}t.setOutput(e)._setGlobals(c)._setOptions(u),e=(t=c.converter.dispatch(t)).output;const r=/\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=u.literalMidWordUnderscores?(e=(e=e.replace(r,function(e,t){return a(t,"",e,r)})).replace(n,function(e,t){return a(t,"",e,n)})).replace(s,function(e,t){return a(t,"",e,s)}):(e=(e=e.replace(o,function(e,t){return/\S$/.test(t)?a(t,"",e,o):e})).replace(i,function(e,t){return/\S$/.test(t)?a(t,"",e,i):e})).replace(l,function(e,t){return/\S$/.test(t)?a(t,"",e,l):e})).replace(h,function(e,t){return/\S$/.test(t)?a(t,"",e,h):e})).replace(p,function(e,t){return/\S$/.test(t)?a(t,"",e,p):e})).replace(m,function(e,t){return/\S$/.test(t)?a(t,"",e,m):e});let d=new v.Event("makehtml.emphasisAndStrong.onEnd",e);return d.setOutput(e)._setGlobals(c)._setOptions(u),(d=c.converter.dispatch(d)).output}),v.subParser("makehtml.encodeAmpsAndAngles",function(e,t,a){"use strict";let r=new v.Event("makehtml.encodeAmpsAndAngles.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/&(?!#?[xX]?(?:[\da-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(//g,">"),new v.Event("makehtml.encodeAmpsAndAngles.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.encodeBackslashEscapes",function(e,t,a){"use strict";let r=new v.Event("makehtml.encodeBackslashEscapes.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/\\(\\)/g,v.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,v.helper.escapeCharactersCallback),new v.Event("makehtml.encodeBackslashEscapes.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.encodeCode",function(e,t,a){"use strict";let r=new v.Event("makehtml.encodeCode.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(r=a.converter.dispatch(r)).output).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,v.helper.escapeCharactersCallback),new v.Event("makehtml.encodeCode.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.escapeSpecialCharsWithinTagAttributes",function(e,t,a){"use strict";let r=new v.Event("makehtml.escapeSpecialCharsWithinTagAttributes.onStart",e);r.setOutput(e)._setGlobals(a)._setOptions(t);e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,v.helper.escapeCharactersCallback)})).replace(/-]|-[^>])([^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,v.helper.escapeCharactersCallback)});let n=new v.Event("makehtml.escapeSpecialCharsWithinTagAttributes.onEnd",e);return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.githubCodeBlock",function(e,u,c){"use strict";if(!u.ghCodeBlocks)return e;let t=new v.Event("makehtml.githubCodeBlock.onStart",e),h=(t.setOutput(e)._setGlobals(c)._setOptions(u),e=(t=c.converter.dispatch(t)).output+"¨0",/(?:^|\n) {0,3}(```+|~~~+) *([^\n\t`~]*)\n([\s\S]*?)\n {0,3}\1/g),a=(e=(e=e.replace(h,function(e,t,a,r){let n=u.omitExtraWLInCodeBlocks?"":"\n",s,o={pre:{},code:{}},i=new v.Event("makehtml.githubCodeBlock.onCapture",r);if(i.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(h).setMatches({_whoteMatch:e,codeblock:r,infostring:a}).setAttributes(o),(i=c.converter.dispatch(i)).output&&""!==i.output)s=i.output;else{let e=i.matches.infostring;a=e.trim().split(" ")[0];r=i.matches.codeblock,r=v.subParser("makehtml.encodeCode")(r,u,c),r=(r=v.subParser("makehtml.detab")(r,u,c)).replace(/^\n+/g,"").replace(/\n+$/g,""),o=i.attributes,s=" "}),v.subParser("makeMarkdown.strikethrough",function(e,t){"use strict";var a="";if(e.hasChildNodes()){a+="~~";for(var r=e.childNodes,n=r.length,s=0;s",v.helper.isUndefined(o)||(s="
",e&&(o.code||(o.code={}),o.code.classes||(o.code.classes=[]),o.code.classes&&(v.helper.isString(o.code.classes)?o.code.classes+=" "+a+" language-"+a:v.helper.isArray(o.code.classes)&&(o.code.classes.push(a),o.code.classes.push("language-"+a)))),s+=""}let l=new v.Event("makehtml.githubCodeBlock.onHash",s);return l.setOutput(s)._setGlobals(c)._setOptions(u),l=c.converter.dispatch(l),s=l.output,s=v.subParser("makehtml.hashBlock")(s,u,c),"\n\n¨G"+(c.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"})).replace(/¨0/,""),new v.Event("makehtml.githubCodeBlock.onEnd",e));return a.setOutput(e)._setGlobals(c)._setOptions(u),(a=c.converter.dispatch(a)).output}),v.subParser("makehtml.hashBlock",function(e,t,a){"use strict";let r=new v.Event("makehtml.hashBlock.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(r=a.converter.dispatch(r)).output).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n",new v.Event("makehtml.hashBlock.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.hashCodeTags",function(e,n,s){"use strict";let t=new v.Event("makehtml.hashCodeTags.onStart",e);t.setOutput(e)._setGlobals(s)._setOptions(n),e=(t=s.converter.dispatch(t)).output;e=v.helper.replaceRecursiveRegExp(e,function(e,t,a,r){a=a+v.subParser("makehtml.encodeCode")(t,n,s)+r;return"¨C"+(s.gHtmlSpans.push(a)-1)+"C"},""),u.omitExtraWLInCodeBlocks&&(n=""),s+=r+n+"
]*>","
","gim");let a=new v.Event("makehtml.hashCodeTags.onEnd",e);return a.setOutput(e)._setGlobals(s)._setOptions(n),(a=s.converter.dispatch(a)).output}),v.subParser("makehtml.hashElement",function(e,t,r){"use strict";return function(e,t){let a=t;return a=(a=(a=a.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),a="\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"}}),v.subParser("makehtml.hashHTMLBlocks",function(a,e,s){"use strict";let t=new v.Event("makehtml.hashHTMLBlocks.onStart",a);t.setOutput(a)._setGlobals(s)._setOptions(e),a=(t=s.converter.dispatch(t)).output;function r(e,t,a,r){let n=e;return-1!==a.search(/\bmarkdown\b/)&&(n=a+s.converter.makeHtml(t)+r),"\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&&(a=a.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(let e=0;e]*>)","im"),l="<"+n[e]+"\\b[^>]*>",u=""+n[e]+">";-1!==(o=v.helper.regexIndexOf(a,i));){let e=v.helper.splitAtIndex(a,o),t=v.helper.replaceRecursiveRegExp(e[1],r,l,u,"im");if(t===e[1])break;a=e[0].concat(t)}a=a.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,v.subParser("makehtml.hashElement")(a,e,s)),a=(a=v.helper.replaceRecursiveRegExp(a,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,v.subParser("makehtml.hashElement")(a,e,s));let c=new v.Event("makehtml.hashHTMLBlocks.onEnd",a);return c.setOutput(a)._setGlobals(s)._setOptions(e),(c=s.converter.dispatch(c)).output}),v.subParser("makehtml.hashHTMLSpans",function(e,t,a){"use strict";let r=new v.Event("makehtml.hashHTMLSpans.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/<[^>]+?\/>/gi,function(e){return v.helper._hashHTMLSpan(e,a)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return v.helper._hashHTMLSpan(e,a)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return v.helper._hashHTMLSpan(e,a)})).replace(/<[^>]+?>/gi,function(e){return v.helper._hashHTMLSpan(e,a)}),new v.Event("makehtml.hashHTMLSpans.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.hashPreCodeTags",function(e,n,s){"use strict";let t=new v.Event("makehtml.hashPreCodeTags.onStart",e);t.setOutput(e)._setGlobals(s)._setOptions(n),e=(t=s.converter.dispatch(t)).output;e=v.helper.replaceRecursiveRegExp(e,function(e,t,a,r){a=a+v.subParser("makehtml.encodeCode")(t,n,s)+r;return"\n\n¨G"+(s.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"},"^ {0,3} ]*>\\s*","gim");let a=new v.Event("makehtml.hashPreCodeTags.onEnd",e);return a.setOutput(e)._setGlobals(s)._setOptions(n),(a=s.converter.dispatch(a)).output}),v.subParser("makehtml.heading",function(e,l,u){"use strict";function n(e,t,a,r,n){let s=new v.Event("makehtml.heading.onCapture",a),o;s.setOutput(null)._setGlobals(u)._setOptions(l).setRegexp(e).setMatches({_wholeMatch:t,heading:a}).setAttributes({id:n}),s=u.converter.dispatch(s),o=s.output&&""!==s.output?s.output:(a=s.matches.heading,e=v.subParser("makehtml.spanGamut")(a,l,u),t=s.attributes,"]*>","^ {0,3}
\\s*"+e+" ");let i=new v.Event("makehtml.heading.onHash",o);return i.setOutput(o)._setGlobals(u)._setOptions(l),i=u.converter.dispatch(i),o=i.output,v.subParser("makehtml.hashBlock")(o,l,u)}let t=new v.Event("makehtml.heading.onStart",e),r=(t.setOutput(e)._setGlobals(u)._setOptions(l),e=(t=u.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,a=l.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,o=(e=(e=(e=e.replace(r,function(e,t){var a=l.noHeaderId?null:v.subParser("makehtml.heading.id")(t,l,u);return n(r,e,t,l.headerLevelStart,a)})).replace(s,function(e,t){var a=l.noHeaderId?null:v.subParser("makehtml.heading.id")(t,l,u);return n(s,e,t,l.headerLevelStart+1,a)})).replace(a,function(e,t,a){var t=l.headerLevelStart-1+t.length,r=l.customizedHeaderId?a.replace(/\s?{([^{]+?)}\s*$/,""):a,a=l.noHeaderId?null:v.subParser("makehtml.heading.id")(a,l,u);return n(s,e,r,t,a)}),new v.Event("makehtml.heading.onEnd",e));return o.setOutput(e)._setGlobals(u)._setOptions(l),(o=u.converter.dispatch(o)).output}),v.subParser("makehtml.heading.id",function(e,t,a){let r,n;var s;return t.customizedHeaderId&&(s=e.match(/{([^{]+?)}\s*$/))&&s[1]&&(e=s[1]),r=e,n=v.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(r=n+r),r=(t.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,""):t.rawHeaderId?r.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-"):r.replace(/[^\w]/g,"")).toLowerCase(),t.rawPrefixHeaderId&&(r=n+r),a.hashLinkCounts[r]?r=r+"-"+a.hashLinkCounts[r]++:a.hashLinkCounts[r]=1,r}),v.subParser("makehtml.horizontalRule",function(e,s,o){"use strict";let t=new v.Event("makehtml.horizontalRule.onStart",e);t.setOutput(e)._setGlobals(o)._setOptions(s),e=(t=o.converter.dispatch(t)).output;const a=/^ {0,2}( ?-){3,}[ \t]*$/gm,r=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,function(e){return l(a,e)}),/^ {0,2}( ?\*){3,}[ \t]*$/gm),n=(e=e.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,function(e){return l(r,e)}),/^ {0,2}( ?\*){3,}[ \t]*$/gm);e=e.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,function(e){return l(n,e)});let i=new v.Event("makehtml.horizontalRule.onEnd",e);return i.setOutput(e)._setGlobals(o)._setOptions(s),(i=o.converter.dispatch(i)).output;function l(e,t){let a,r=new v.Event("makehtml.horizontalRule.onCapture",t),n=(r.setOutput(null)._setGlobals(o)._setOptions(s).setRegexp(e).setMatches({_whoteMatch:t}).setAttributes({}),r=o.converter.dispatch(r),a=r.output&&""!==r.output?r.output:"
",new v.Event("makehtml.horizontalRule.onHash",a));return n.setOutput(a)._setGlobals(o)._setOptions(s),n=o.converter.dispatch(n),a=n.output,a=v.subParser("makehtml.hashBlock")(a,s,o)}}),v.subParser("makehtml.image",function(e,b,f){"use strict";let t=new v.Event("makehtml.image.onStart",e),i=(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),l=/!\[([^\]]*?)][ \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-z\d+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,r=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]/g,a=/!\[([^\[\]]+)]/g,n=(e=(e=(e=(e=(e=e.replace(r,function(e,t,a){return c("reference",r,e,t,null,a)})).replace(u,function(e,t,a,r,n,s,o){return a=a.replace(/\s/g,""),c("inline",u,e,t,a,null,r,n,o)})).replace(l,function(e,t,a,r,n,s,o){return a=v.helper.applyBaseUrl(b.relativePathBaseUrl,a),c("inline",l,e,t,a,null,r,n,o)})).replace(i,function(e,t,a,r,n,s,o){return a=v.helper.applyBaseUrl(b.relativePathBaseUrl,a),c("inline",i,e,t,a,null,r,n,o)})).replace(a,function(e,t){return c("reference",a,e,t)}),new v.Event("makehtml.image.onEnd",e));return n.setOutput(e)._setGlobals(f)._setOptions(b),(n=f.converter.dispatch(n)).output;function c(e,t,a,r,n,s,o,i,l){let u=f.gUrls,c=f.gTitles,h=f.gDimensions,p={_wholeMatch:a,_altText:r,_linkId:s,_url:n,_width:o,_height:i,_title:l},m,d;if(s=s?s.toLowerCase():null,l=l||null,-1? ?(['"].*['"])?\)$/m))n="";else if(v.helper.isUndefined(n)||""===n||null===n){if(n="#"+(s=""!==s&&null!==s?s:r.toLowerCase().replace(/ ?\n/g," ")),v.helper.isUndefined(u[s]))return a;n=u[s],v.helper.isUndefined(c[s])||(l=c[s]),v.helper.isUndefined(h[s])||(o=h[s].width,i=h[s].height)}r=r.replace(/"/g,""").replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback),n=n.replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback),l&&v.helper.isString(l)&&(l=l.replace(/"/g,""").replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback)),o=o?"*"===o?"auto":o:null,i=i?"*"===i?"auto":i:null;let _=new v.Event("makehtml.image."+e+".onCapture",a),g=(_.setOutput(null)._setGlobals(f)._setOptions(b).setRegexp(t).setMatches(p).setAttributes({src:n,alt:r,title:l,width:o,height:i}),_=f.converter.dispatch(_),m=_.output&&""!==_.output?_.output:(d=_.attributes,""),new v.Event("makehtml.image."+e+".onHash",m));return g.setOutput(m)._setGlobals(f)._setOptions(b),g=f.converter.dispatch(g),m=g.output}}),v.subParser("makehtml.link",function(e,m,d){let t=new v.Event("makehtml.link.onStart",e),r=(t.setOutput(e)._setGlobals(d)._setOptions(m),e=(t=d.converter.dispatch(t)).output,/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]/g),n=(e=e.replace(r,function(e,t,a){return/\n\n/.test(e)?e:h("reference",r,e,t,a)}),/\[(.*?)]\( ?>? ?(["'](.*)["'])?\)/g),o=(e=e.replace(n,function(e,t,a,r){return h("inline",n,e,t,null,null,r,!0)}),/\[((?:\[[^\]]*]|[^\[\]])*)]\s?\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\4))?[ \t]?\)/g),s=(e=e.replace(o,function(e,t,a,r,n,s){return h("inline",o,e,t,null,a,s)}),/\[([\S ]*?)]\s?\( *([^\s'"]*?(?:\(\S*?\)\S*?)?)>?\s*(?:(['"])(.*?)\3)? *\)/g),i=(e=e.replace(s,function(e,t,a,r,n){return h("inline",s,e,t,null,a,n)}),/\[([\S ]*?)]\s?\( *([^\s'"]*?(?:\(\S*?\)\S*?)?)>?\s+\((.*?)\) *\)/g),a=(e=e.replace(i,function(e,t,a,r){return h("inline",i,e,t,null,a,r)}),/\[([^\[\]]+)]/g),l=(e=e.replace(a,function(e,t){return h("reference",a,e,t)}),/<(((?:https?|ftp):\/\/|www\.)[^'">\s]+)>/gi),u=(e=e.replace(l,function(e,t,a){var r=t;return t="www."===a?"http://"+t:t,h("angleBrackets",l,e,r,null,t)}),/<(?:mailto:)?([-.\w]+@[-a-z\d]+(\.[-a-z\d]+)*\.[a-z]+)>/gi);if(e=e.replace(u,function(e,t){t=p(t);return h("angleBrackets",u,e,t.mail,null,t.url)}),m.ghMentions){let s=/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d._-]+?[a-z\d]+)*))/gi;e=e.replace(s,function(e,t,a,r,n){if("\\"===a)return t+r;if(!v.helper.isString(m.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");a=m.ghMentionsLink.replace(/\{u}/g,n);return t+h("reference",s,e,r,null,a)})}if(e=(e=e.replace(/]*>[\s\S]*<\/a>/g,function(e){return v.helper._hashHTMLSpan(e,d)})).replace(/]*\/?>/g,function(e){return v.helper._hashHTMLSpan(e,d)}),m.simplifiedAutoLink){let i=/([_*~]*?)(((?:https?|ftp):\/\/|www\.)[^\s<>"'`´.-][^\s<>"'`´]*?\.[a-z\d.]+[^\s<>"']*)\1/gi,r=(e=e.replace(i,function(e,t,a,r){let n="";for(let e=a.length-1;0<=e;--e){var s=a.charAt(e);if(/[_*~,;:.!?]/.test(s))a=a.slice(0,-1),n=s+n;else{if(!/[)\]]/.test(s))break;{let e,t;if(t=/\)/.test(s)?(e=a.match(/\(/g)||[],a.match(/\)/g)):(e=a.match(/\[/g)||[],a.match(/]/g)),!(e.length "+r+" "),new v.Event("makehtml.link."+e+".onHash",u));return p.setOutput(u)._setGlobals(d)._setOptions(m),p=d.converter.dispatch(p),u=p.output,v.subParser("makehtml.hashHTMLSpans")(u,m,d)}function p(e){let t="mailto:";return e=v.subParser("makehtml.unescapeSpecialChars")(e,m,d),m.encodeEmails?(t=v.helper.encodeEmailAddress(t+e),e=v.helper.encodeEmailAddress(e)):t+=e,{mail:e,url:t}}}),v.subParser("makehtml.list",function(e,k,w){"use strict";const r=/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,n=/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,s=/[*+-]/g;let t=new v.Event("makehtml.list.onStart",e),a=(t.setOutput(e)._setGlobals(w)._setOptions(k),e=(t=w.converter.dispatch(t)).output,e+="¨0",e=(e=w.gListLevel?e.replace(r,function(e,t,a){return o(r,t,-1"),new v.Event("makehtml.list.taskListItem.checkbox.onHash",n));return s.setOutput(n)._setGlobals(w)._setOptions(k),s=w.converter.dispatch(s),n=s.output})):i).replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(e){return"¨A"+e}),/^#+.+\n.+/.test(i)&&(i=i.replace(/^(#+.+)$/m,"$1\n")),t||-1 "),e+="",r.push(e))}i=(i=(i=r.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,"")}else i=(i=v.subParser("makehtml.list")(i,k,w)).replace(/\n$/,""),i=(i=v.subParser("makehtml.hashHTMLBlocks")(i,k,w)).replace(/\n\n+/g,"\n\n"),i=(f?v.subParser("makehtml.paragraphs"):v.subParser("makehtml.spanGamut"))(i,k,w);i=i.replace("¨A",""),i=" "+i+" \n"}var m,d,_;let g=new v.Event(c+".onHash",i);return g.setOutput(i)._setGlobals(w)._setOptions(k),(g=w.converter.dispatch(g)).output})).replace(/¨0/g,""),w.gListLevel--,e=t?e.replace(/\s+$/,""):e}function p(e,t){if("ol"===t){t=e.match(/^ *(\d+)\./);if(t&&"1"!==t[1])return t[1]}return null}function o(e,s,o,i){let l="",t=new v.Event("makehtml.list.onCapture",s);t.setOutput(null)._setGlobals(w)._setOptions(k).setRegexp(e).setMatches({_wholeMatch:s,list:s}).setAttributes({});e=(t=w.converter.dispatch(t)).attributes;if(t.output&&""!==t.output)l=t.output;else{const u=k.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,c=k.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm;let r="ul"===o?u:c,n=v.helper.cloneObject(e);-1!==s.search(r)?function e(t){var a=t.search(r);n.start=p(s,o),-1!==a?(l+="\n\n<"+o+v.helper._populateAttributes(n)+">\n"+h(t.slice(0,a),!!i)+""+o+">\n",o="ul"===o?"ol":"ul",r="ul"===o?u:c,e(t.slice(a),n)):l+="\n\n<"+o+v.helper._populateAttributes(n)+">\n"+h(t,!!i)+""+o+">\n"}(s):(n.start=p(s,o),l="\n\n<"+o+v.helper._populateAttributes(n)+">\n"+h(s,!!i)+""+o+">\n")}return l}}),v.subParser("makehtml.metadata",function(e,i,l){"use strict";if(!i.metadata)return e;let t=new v.Event("makehtml.metadata.onStart",e);function r(e,t,a,r){let n,s=new v.Event("makehtml.metadata.onCapture",r),o=(s.setOutput(null)._setGlobals(l)._setOptions(i).setRegexp(e).setMatches({_wholeMatch:t,format:a,content:r}).setAttributes({}),a=(s=l.converter.dispatch(s)).matches.format,r=s.matches.content,n=s.output&&""!==s.output?s.output:"¨M",l.metadata.raw=r,l.metadata.format=a,(r=r.replace(/&/g,"&").replace(/"/g,""").replace(/¨D/g,"$$").replace(/¨T/g,"¨").replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,a){return l.metadata.parsed[t]=a,""}),new v.Event("makehtml.metadata.onHash",n));return o.setOutput(n)._setGlobals(l)._setOptions(i),o=l.converter.dispatch(o),n=(n=o.output)||"¨M"}t.setOutput(e)._setGlobals(l)._setOptions(i),e=(t=l.converter.dispatch(t)).output;const n=/^\s*«««+\s*(\S*?)\n([\s\S]+?)\n»»»+\s*\n/;e=(e=(e=e.replace(n,function(e,t,a){return r(n,e,t,a)})).replace(/^\s*---+\s*(\S*?)\n([\s\S]+?)\n---+\s*\n/,function(e,t,a){return r(n,e,t,a)})).replace(/¨M/g,"");let a=new v.Event("makehtml.metadata.onEnd",e);return a.setOutput(e)._setGlobals(l)._setOptions(i),(a=l.converter.dispatch(a)).output}),v.subParser("makehtml.paragraphs",function(e,t,a){"use strict";for(var r=(e=(e=e.replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),n=[],s=r.length,o=0;o"),i+="",n.push(i))}for(s=n.length,o=0;o]*>\s*]*>/.test(u)&&(c=!0)}n[o]=u}return e=(e=(e=n.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,"")}),v.subParser("makehtml.runExtension",function(t,a,e,r){"use strict";if(t.filter)a=t.filter(a,r.converter,e);else if(t.regex){let e=t.regex;e instanceof RegExp||(e=new RegExp(e,"g")),a=a.replace(e,t.replace)}return a}),v.subParser("makehtml.spanGamut",function(e,t,a){"use strict";let r=new v.Event("makehtml.spanGamut.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(r=a.converter.dispatch(r)).output,e=v.subParser("makehtml.codeSpan")(e,t,a),e=v.subParser("makehtml.escapeSpecialCharsWithinTagAttributes")(e,t,a),e=v.subParser("makehtml.encodeBackslashEscapes")(e,t,a),e=v.subParser("makehtml.image")(e,t,a),e=v.subParser("makehtml.link")(e,t,a),e=v.subParser("makehtml.emoji")(e,t,a),e=v.subParser("makehtml.underline")(e,t,a),e=v.subParser("makehtml.emphasisAndStrong")(e,t,a),e=v.subParser("makehtml.strikethrough")(e,t,a),e=v.subParser("makehtml.ellipsis")(e,t,a),e=v.subParser("makehtml.hashHTMLSpans")(e,t,a),e=v.subParser("makehtml.encodeAmpsAndAngles")(e,t,a),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),new v.Event("makehtml.spanGamut.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.strikethrough",function(e,s,o){"use strict";if(!s.strikethrough)return e;let t=new v.Event("makehtml.strikethrough.onStart",e);t.setOutput(e)._setGlobals(o)._setOptions(s),e=(t=o.converter.dispatch(t)).output;const i=/~{2}([\s\S]+?)~{2}/g;e=e.replace(i,function(e,t){let a,r=new v.Event("makehtml.strikethrough.onCapture",t),n=(r.setOutput(null)._setGlobals(o)._setOptions(s).setRegexp(i).setMatches({_wholeMatch:e,strikethrough:t}).setAttributes({}),r=o.converter.dispatch(r),a=r.output&&""!==r.output?r.output:""+t+"",new v.Event("makehtml.strikethrough.onHash",a));return n.setOutput(a)._setGlobals(o)._setOptions(s),(n=o.converter.dispatch(n)).output});let a=new v.Event("makehtml.strikethrough.onEnd",e);return a.setOutput(e)._setGlobals(o)._setOptions(s),(a=o.converter.dispatch(a)).output}),v.subParser("makehtml.stripLinkDefinitions",function(i,l,u){"use strict";function e(e,t,a,r,n,s,o){return t=t.toLowerCase(),i.toLowerCase().split(t).length-1<2?e:(a.match(/^data:.+?\/.+?;base64,/)?u.gUrls[t]=a.replace(/\s/g,""):(a=v.helper.applyBaseUrl(l.relativePathBaseUrl,a),u.gUrls[t]=v.subParser("makehtml.encodeAmpsAndAngles")(a,l,u)),s?s+o:(o&&(u.gTitles[t]=o.replace(/["']/g,""")),l.parseImgDimensions&&r&&n&&(u.gDimensions[t]={width:r,height:n}),""))}return i=(i=(i=(i+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*(data:.+?\/.+?;base64,[A-Za-z\d+/=\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/,"")}),v.subParser("makehtml.table",function(e,u,c){"use strict";if(!u.tables)return e;e=e.replace(/\\(\|)/g,v.helper.escapeCharactersCallback);let t=new v.Event("makehtml.table.onStart",e);t.setOutput(e)._setGlobals(c)._setOptions(u),e=(t=c.converter.dispatch(t)).output;const a=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*[-=]{2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*[-=]{2,}[\s\S]+?(?:\n\n|¨0)/gm,r=(e=e.replace(a,function(e){return s(a,e)}),/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*[-=]{2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm);e=e.replace(r,function(e){return s(r,e)});let n=new v.Event("makehtml.table.onEnd",e);return n.setOutput(e)._setGlobals(c)._setOptions(u),(n=c.converter.dispatch(n)).output;function s(e,t){var a=h(t);if(!a)return t;let r=a.rawHeaders,n=a.rawStyles,s=a.rawCells,o,i=new v.Event("makehtml.table.onCapture",t);if(i.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(e).setMatches({_wholeMatch:t,table:t}).setAttributes({}),(i=c.converter.dispatch(i)).output&&""!==i.output)o=i.output;else{if(i.matches.table!==t){if(!(a=h(i.matches.table)))return t;r=a.rawHeaders,n=a.rawStyles,s=a.rawCells}e=function(n,t,i){const s=[],e=[],l=[],a=n.length,r=i.length;for(let e=0;e"+e+"\n"}(t.matches.header,l[r]),new v.Event("makehtml.table.header.onHash",e));a.setOutput(e)._setGlobals(c)._setOptions(u),a=c.converter.dispatch(a),e=a.output,s.push(e)}for(let o=0;o"+e+"\n"}(a.matches.cell,t)),new v.Event("makehtml.table.cell.onHash",e));r.setOutput(e)._setGlobals(c)._setOptions(u),r=c.converter.dispatch(r),e=r.output,s.push(e)}e.push(s)}return{headers:s,cells:e}}(r,n,s),t=i.attributes;o=function(t,a,e){let r;var n=t.length,s=a.length;r=" \n\n
\n"}(e.headers,e.cells,t)}let l=new v.Event("makehtml.table.onHash",o);return l.setOutput(o)._setGlobals(c)._setOptions(u),l=c.converter.dispatch(l),o=l.output}function h(e){let t=e.split("\n");for(let e=0;e\n";for(let e=0;e \n\n";for(let t=0;t\n \n";for(let e=0;e\n\n"}return r+=" "+a+"",new v.Event("makehtml.underline.onHash",r));return s.setOutput(r)._setGlobals(i)._setOptions(o),(s=i.converter.dispatch(s)).output}}),v.subParser("makehtml.unescapeSpecialChars",function(e,t,a){"use strict";let r=new v.Event("makehtml.unescapeSpecialChars.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(r=a.converter.dispatch(r)).output).replace(/¨E(\d+)E/g,function(e,t){t=parseInt(t);return String.fromCharCode(t)}),new v.Event("makehtml.unescapeSpecialChars.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.unhashHTMLSpans",function(r,e,n){"use strict";let t=new v.Event("makehtml.unhashHTMLSpans.onStart",r);t.setOutput(r)._setGlobals(n)._setOptions(e),r=(t=n.converter.dispatch(t)).output;for(let a=0;a ")}),v.subParser("makeMarkdown.break",function(){"use strict";return" \n"}),v.subParser("makeMarkdown.codeBlock",function(e,t){"use strict";var a=e.getAttribute("language"),e=e.getAttribute("precodenum");return"```"+a+"\n"+t.preList[e]+"\n```"}),v.subParser("makeMarkdown.codeSpan",function(e){"use strict";return"`"+e.innerHTML+"`"}),v.subParser("makeMarkdown.emphasis",function(e,t){"use strict";var a="";if(e.hasChildNodes()){a+="*";for(var r=e.childNodes,n=r.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}),v.subParser("makeMarkdown.input",function(e,t){"use strict";for(var a="",r=(null!==e.getAttribute("checked")?a+="[x]":a+="[ ]",e.childNodes),n=r.length,s=0;s "),e.hasAttribute("title")&&(a+=' "'+e.getAttribute("title")+'"'),a+=")"}return a}),v.subParser("makeMarkdown.list",function(e,t,a){"use strict";var r="";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"),u=0;u tbody").length&&0!==e.querySelectorAll(":scope>tbody>tr").length){var c=e.querySelectorAll(":scope>tbody>tr");for(u=0;u tfoot").length&&0!==e.querySelectorAll(":scope>tfoot>tr").length){var h=e.querySelectorAll(":scope>tfoot>tr");for(u=0;u tr").length){var p=e.querySelectorAll(":scope>tr");for(u=0;u /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]:")}),v.Converter=function(e){"use strict";let n={},i=[],l=[],r={},s=m,o={parsed:{},raw:"",format:""};for(var 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(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);function u(e,t){if(t=t||null,v.helper.isString(e)){if(t=e=v.helper.stdExtName(e),v.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 a=v.extensions[e],r=e;if("function"==typeof a&&(a=a(new v.Converter)),v.helper.isArray(a)||(a=[a]),!(r=_(a,r)).valid)throw Error(r.error);for(var n=0;n [ \t]+,">¨NBSP;<");for(var t=v.helper.document.createElement("div"),a=(t.innerHTML=e,{preList:function(e){for(var t=e.querySelectorAll("pre"),a=[],r=0;r '}else a.push(t[r].innerHTML),t[r].innerHTML="",t[r].setAttribute("prenum",r.toString());return a}(t)}),r=(!function e(t){for(var a=0;a