mutual-exclusion/editor/assets/index-ae82a772.js

140 lines
159 KiB
JavaScript
Raw Normal View History

2023-02-12 00:49:41 +00:00
var Qd=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var pc=Qd((ln,Yd)=>{(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))t(d);new MutationObserver(d=>{for(const s of d)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&t(a)}).observe(document,{childList:!0,subtree:!0});function n(d){const s={};return d.integrity&&(s.integrity=d.integrity),d.referrerpolicy&&(s.referrerPolicy=d.referrerpolicy),d.crossorigin==="use-credentials"?s.credentials="include":d.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function t(d){if(d.ep)return;d.ep=!0;const s=n(d);fetch(d.href,s)}})();function hn(e,r){const n=Object.create(null),t=e.split(",");for(let d=0;d<t.length;d++)n[t[d]]=!0;return r?d=>!!n[d.toLowerCase()]:d=>!!n[d]}function pn(e){if(J(e)){const r={};for(let n=0;n<e.length;n++){const t=e[n],d=ge(t)?ts(t):pn(t);if(d)for(const s in d)r[s]=d[s]}return r}else{if(ge(e))return e;if(ae(e))return e}}const xd=/;(?![^(]*\))/g,es=/:([^]+)/,rs=/\/\*.*?\*\//gs;function ts(e){const r={};return e.replace(rs,"").split(xd).forEach(n=>{if(n){const t=n.split(es);t.length>1&&(r[t[0].trim()]=t[1].trim())}}),r}function mn(e){let r="";if(ge(e))r=e;else if(J(e))for(let n=0;n<e.length;n++){const t=mn(e[n]);t&&(r+=t+" ")}else if(ae(e))for(const n in e)e[n]&&(r+=n+" ");return r.trim()}const ns="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",us=hn(ns);function Ru(e){return!!e||e===""}function ds(e,r){if(e.length!==r.length)return!1;let n=!0;for(let t=0;n&&t<e.length;t++)n=yt(e[t],r[t]);return n}function yt(e,r){if(e===r)return!0;let n=$n(e),t=$n(r);if(n||t)return n&&t?e.getTime()===r.getTime():!1;if(n=Br(e),t=Br(r),n||t)return e===r;if(n=J(e),t=J(r),n||t)return n&&t?ds(e,r):!1;if(n=ae(e),t=ae(r),n||t){if(!n||!t)return!1;const d=Object.keys(e).length,s=Object.keys(r).length;if(d!==s)return!1;for(const a in e){const c=e.hasOwnProperty(a),h=r.hasOwnProperty(a);if(c&&!h||!c&&h||!yt(e[a],r[a]))return!1}}return String(e)===String(r)}function Lu(e,r){return e.findIndex(n=>yt(n,r))}const Xr=e=>ge(e)?e:e==null?"":J(e)||ae(e)&&(e.toString===Iu||!X(e.toString))?JSON.stringify(e,zu,2):String(e),zu=(e,r)=>r&&r.__v_isRef?zu(e,r.value):br(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((n,[t,d])=>(n[`${t} =>`]=d,n),{})}:kt(r)?{[`Set(${r.size})`]:[...r.values()]}:ae(r)&&!J(r)&&!Bu(r)?String(r):r,oe={},gr=[],ze=()=>{},ss=()=>!1,is=/^on[^a-z]/,vt=e=>is.test(e),_n=e=>e.startsWith("onUpdate:"),Ee=Object.assign,gn=(e,r)=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)},os=Object.prototype.hasOwnProperty,re=(e,r)=>os.call(e,r),J=Array.isArray,br=e=>Wr(e)==="[object Map]",kt=e=>Wr(e)==="[object Set]",$n=e=>Wr(e)==="[object Date]",X=e=>typeof e=="function",ge=e=>typeof e=="string",Br=e=>typeof e=="symbol",ae=e=>e!==null&&typeof e=="object",Nu=e=>ae(e)&&X(e.then)&&X(e.catch),Iu=Object.prototype.toString,Wr=e=>Iu.call(e),as=e=>Wr(e).slice(8,-1),Bu=e=>Wr(e)==="[object Object]",bn=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nt=hn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Et=e=>{const r=Object.create(null);return n=>r[n]||(r[n]=e(n))},cs=/-(\w)/g,vr=Et(e=>e.replace(cs,(r,n)=>n?n.toUpperCase():"")),fs=/\B([A-Z])/g,Sr=Et(e=>e.replace(fs,"-$1").toLowerCase()),Fu=Et(e=>e.charAt(0).toUpperCase()+e.slice(1)),zt=Et(e=>e?`on${Fu(e)}`:""),Fr=(e,r)=>!Object.is(e,r),ut=(e,r)=>{for(let n=0;n<e.length;n++)e[n](r)},ht=(e,r,n)=>{Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value:n})},Wt=e=>{const r=parseFloat(e);return isNaN(r)?e:r};let qn;const ls=()=>qn||(qn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Oe;class hs{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Oe,!r&&Oe&&(this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1)}get active(
`),l=l.replace(/\r/g,`
`),l=l.replace(/\u00A0/g,"&nbsp;"),o.smartIndentationFix&&(l=M(l)),l=`
`+l+`
`,l=t.subParser("detab")(l,o,E),l=l.replace(/^[ \t]+$/mg,""),t.helper.forEach(i,function(R){l=t.subParser("runExtension")(R,l,o,E)}),l=t.subParser("metadata")(l,o,E),l=t.subParser("hashPreCodeTags")(l,o,E),l=t.subParser("githubCodeBlocks")(l,o,E),l=t.subParser("hashHTMLBlocks")(l,o,E),l=t.subParser("hashCodeTags")(l,o,E),l=t.subParser("stripLinkDefinitions")(l,o,E),l=t.subParser("blockGamut")(l,o,E),l=t.subParser("unhashHTMLSpans")(l,o,E),l=t.subParser("unescapeSpecialChars")(l,o,E),l=l.replace(/¨D/g,"$$"),l=l.replace(/¨T/g,"¨"),l=t.subParser("completeHTMLDocument")(l,o,E),t.helper.forEach(f,function(R){l=t.subParser("runExtension")(R,l,o,E)}),p=E.metadata,l},this.makeMarkdown=this.makeMd=function(l,E){if(l=l.replace(/\r\n/g,`
`),l=l.replace(/\r/g,`
`),l=l.replace(/>[ \t]+</,">¨NBSP;<"),!E)if(window&&window.document)E=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var R=E.createElement("div");R.innerHTML=l;var $={preList:Ae(R)};be(R);for(var Q=R.childNodes,q="",de=0;de<Q.length;de++)q+=t.subParser("makeMarkdown.node")(Q[de],$);function be(le){for(var ie=0;ie<le.childNodes.length;++ie){var he=le.childNodes[ie];he.nodeType===3?!/\S/.test(he.nodeValue)&&!/^[ ]+$/.test(he.nodeValue)?(le.removeChild(he),--ie):(he.nodeValue=he.nodeValue.split(`
`).join(" "),he.nodeValue=he.nodeValue.replace(/(\s)+/g,"$1")):he.nodeType===1&&be(he)}}function Ae(le){for(var ie=le.querySelectorAll("pre"),he=[],we=0;we<ie.length;++we)if(ie[we].childElementCount===1&&ie[we].firstChild.tagName.toLowerCase()==="code"){var Ie=ie[we].firstChild.innerHTML.trim(),rr=ie[we].firstChild.getAttribute("data-language")||"";if(rr==="")for(var mr=ie[we].firstChild.className.split(" "),m=0;m<mr.length;++m){var b=mr[m].match(/^language-(.+)$/);if(b!==null){rr=b[1];break}}Ie=t.helper.unescapeHTMLEntities(Ie),he.push(Ie),ie[we].outerHTML='<precode language="'+rr+'" precodenum="'+we.toString()+'"></precode>'}else he.push(ie[we].innerHTML),ie[we].innerHTML="",ie[we].setAttribute("prenum",we.toString());return he}return q},this.setOption=function(l,E){o[l]=E},this.getOption=function(l){return o[l]},this.getOptions=function(){return o},this.addExtension=function(l,E){E=E||null,N(l,E)},this.useExtension=function(l){N(l)},this.setFlavor=function(l){if(!h.hasOwnProperty(l))throw Error(l+" flavor was not found");var E=h[l];w=l;for(var R in E)E.hasOwnProperty(R)&&(o[R]=E[R])},this.getFlavor=function(){return w},this.removeExtension=function(l){t.helper.isArray(l)||(l=[l]);for(var E=0;E<l.length;++E){for(var R=l[E],$=0;$<i.length;++$)i[$]===R&&i.splice($,1);for(var Q=0;Q<f.length;++Q)f[Q]===R&&f.splice(Q,1)}},this.getAllExtensions=function(){return{language:i,output:f}},this.getMetadata=function(l){return l?p.raw:p.parsed},this.getMetadataFormat=function(){return p.format},this._setMetadataPair=function(l,E){p.parsed[l]=E},this._setMetadataFormat=function(l){p.format=l},this._setMetadataRaw=function(l){p.raw=l}},t.subParser("anchors",function(u,o,i){u=i.converter._dispatch("anchors.before",u,o,i);var f=function(_,w,p,y,N,j,T){if(t.helper.isUndefined(T)&&(T=""),p=p.toLowerCase(),_.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)y="";else if(!y)if(p||(p=w.toLowerCase().replace(/ ?\n/g," ")),y="#"+p,!t.helper.isUndefined(i.gUrls[p]))y=i.gUrls[p],t.helper.isUndefined(i.gTitles[p])||(T=i.gTitles[p]);else return _;y=y.replace(t.helper.regexes.asteriskDashAndColon,t.helper.escapeCharactersCallback);var M='<a href="'+y+'"';return T!==""&&T!==null&&(T=T.replace(/"/g,"&quot;"),T=T.replace(t.helper.regexes.asteriskDashAndColon,t.helper.escapeCharactersCallback),M+=' title="'+T+'"'),o.openLinksInNewWindow&&!/^#/.test(y)&&(M+=' rel="noopener noreferrer" target="¨E95Eblank"'),M+=">"+w+"</a>",M};return u=u.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,f),u=u.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,f),u=u.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,f),u=u.replace(/\[([^\[\]]+)]()()()()()/g,f),o.ghMentions&&(u=u.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(_,w,p,y,N){if(p==="\\")return w+y;if(!t.helper.isString(o.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var j=o.ghMentionsLink.replace(/\{u}/g,N),T="";return o.openLinksInNewWindow&&(T=' rel="noopener noreferrer" target="¨E95Eblank"'),w+'<a href="'+j+'"'+T+">"+y+"</a>"})),u=i.converter._dispatch("anchors.after",u,o,i),u});var F=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,U=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,B=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,L=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,ee=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,Y=function(u){return function(o,i,f,_,w,p,y){f=f.replace(t.helper.regexes.asteriskDashAndColon,t.helper.escapeCharactersCallback);var N=f,j="",T="",M=i||"",l=y||"";return/^www\./i.test(f)&&(f=f.replace(/^www\./i,"http://www.")),u.excludeTrailingPunctuationFromURLs&&p&&(j=p),u.openLinksInNewWindow&&(T=' rel="noopener noreferrer" target="¨E95Eblank"'),M+'<a href="'+f+'"'+T+">"+N+"</a>"+j+l}},_e=function(u,o){return function(i
`;var f=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return o.splitAdjacentBlockquotes&&(f=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),u=u.replace(f,function(_){return _=_.replace(/^[ \t]*>[ \t]?/gm,""),_=_.replace(/¨0/g,""),_=_.replace(/^[ \t]+$/gm,""),_=t.subParser("githubCodeBlocks")(_,o,i),_=t.subParser("blockGamut")(_,o,i),_=_.replace(/(^|\n)/g,"$1 "),_=_.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(w,p){var y=p;return y=y.replace(/^ /mg,"¨0"),y=y.replace(/¨0/g,""),y}),t.subParser("hashBlock")(`<blockquote>
`+_+`
</blockquote>`,o,i)}),u=i.converter._dispatch("blockQuotes.after",u,o,i),u}),t.subParser("codeBlocks",function(u,o,i){u=i.converter._dispatch("codeBlocks.before",u,o,i),u+="¨0";var f=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return u=u.replace(f,function(_,w,p){var y=w,N=p,j=`
`;return y=t.subParser("outdent")(y,o,i),y=t.subParser("encodeCode")(y,o,i),y=t.subParser("detab")(y,o,i),y=y.replace(/^\n+/g,""),y=y.replace(/\n+$/g,""),o.omitExtraWLInCodeBlocks&&(j=""),y="<pre><code>"+y+j+"</code></pre>",t.subParser("hashBlock")(y,o,i)+N}),u=u.replace(/¨0/,""),u=i.converter._dispatch("codeBlocks.after",u,o,i),u}),t.subParser("codeSpans",function(u,o,i){return u=i.converter._dispatch("codeSpans.before",u,o,i),typeof u>"u"&&(u=""),u=u.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(f,_,w,p){var y=p;return y=y.replace(/^([ \t]*)/g,""),y=y.replace(/[ \t]*$/g,""),y=t.subParser("encodeCode")(y,o,i),y=_+"<code>"+y+"</code>",y=t.subParser("hashHTMLSpans")(y,o,i),y}),u=i.converter._dispatch("codeSpans.after",u,o,i),u}),t.subParser("completeHTMLDocument",function(u,o,i){if(!o.completeHTMLDocument)return u;u=i.converter._dispatch("completeHTMLDocument.before",u,o,i);var f="html",_=`<!DOCTYPE HTML>
`,w="",p=`<meta charset="utf-8">
`,y="",N="";typeof i.metadata.parsed.doctype<"u"&&(_="<!DOCTYPE "+i.metadata.parsed.doctype+`>
`,f=i.metadata.parsed.doctype.toString().toLowerCase(),(f==="html"||f==="html5")&&(p='<meta charset="utf-8">'));for(var j in i.metadata.parsed)if(i.metadata.parsed.hasOwnProperty(j))switch(j.toLowerCase()){case"doctype":break;case"title":w="<title>"+i.metadata.parsed.title+`</title>
`;break;case"charset":f==="html"||f==="html5"?p='<meta charset="'+i.metadata.parsed.charset+`">
`:p='<meta name="charset" content="'+i.metadata.parsed.charset+`">
`;break;case"language":case"lang":y=' lang="'+i.metadata.parsed[j]+'"',N+='<meta name="'+j+'" content="'+i.metadata.parsed[j]+`">
`;break;default:N+='<meta name="'+j+'" content="'+i.metadata.parsed[j]+`">
`}return u=_+"<html"+y+`>
<head>
`+w+p+N+`</head>
<body>
`+u.trim()+`
</body>
</html>`,u=i.converter._dispatch("completeHTMLDocument.after",u,o,i),u}),t.subParser("detab",function(u,o,i){return u=i.converter._dispatch("detab.before",u,o,i),u=u.replace(/\t(?=\t)/g," "),u=u.replace(/\t/g,"¨A¨B"),u=u.replace(/¨B(.+?)¨A/g,function(f,_){for(var w=_,p=4-w.length%4,y=0;y<p;y++)w+=" ";return w}),u=u.replace(/¨A/g," "),u=u.replace(/¨B/g,""),u=i.converter._dispatch("detab.after",u,o,i),u}),t.subParser("ellipsis",function(u,o,i){return o.ellipsis&&(u=i.converter._dispatch("ellipsis.before",u,o,i),u=u.replace(/\.\.\./g,"…"),u=i.converter._dispatch("ellipsis.after",u,o,i)),u}),t.subParser("emoji",function(u,o,i){if(!o.emoji)return u;u=i.converter._dispatch("emoji.before",u,o,i);var f=/:([\S]+?):/g;return u=u.replace(f,function(_,w){return t.helper.emojis.hasOwnProperty(w)?t.helper.emojis[w]:_}),u=i.converter._dispatch("emoji.after",u,o,i),u}),t.subParser("encodeAmpsAndAngles",function(u,o,i){return u=i.converter._dispatch("encodeAmpsAndAngles.before",u,o,i),u=u.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;"),u=u.replace(/<(?![a-z\/?$!])/gi,"&lt;"),u=u.replace(/</g,"&lt;"),u=u.replace(/>/g,"&gt;"),u=i.converter._dispatch("encodeAmpsAndAngles.after",u,o,i),u}),t.subParser("encodeBackslashEscapes",function(u,o,i){return u=i.converter._dispatch("encodeBackslashEscapes.before",u,o,i),u=u.replace(/\\(\\)/g,t.helper.escapeCharactersCallback),u=u.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,t.helper.escapeCharactersCallback),u=i.converter._dispatch("encodeBackslashEscapes.after",u,o,i),u}),t.subParser("encodeCode",function(u,o,i){return u=i.converter._dispatch("encodeCode.before",u,o,i),u=u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,t.helper.escapeCharactersCallback),u=i.converter._dispatch("encodeCode.after",u,o,i),u}),t.subParser("escapeSpecialCharsWithinTagAttributes",function(u,o,i){u=i.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",u,o,i);var f=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,_=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return u=u.replace(f,function(w){return w.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,t.helper.escapeCharactersCallback)}),u=u.replace(_,function(w){return w.replace(/([\\`*_~=|])/g,t.helper.escapeCharactersCallback)}),u=i.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",u,o,i),u}),t.subParser("githubCodeBlocks",function(u,o,i){return o.ghCodeBlocks?(u=i.converter._dispatch("githubCodeBlocks.before",u,o,i),u+="¨0",u=u.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(f,_,w,p){var y=o.omitExtraWLInCodeBlocks?"":`
`;return p=t.subParser("encodeCode")(p,o,i),p=t.subParser("detab")(p,o,i),p=p.replace(/^\n+/g,""),p=p.replace(/\n+$/g,""),p="<pre><code"+(w?' class="'+w+" language-"+w+'"':"")+">"+p+y+"</code></pre>",p=t.subParser("hashBlock")(p,o,i),`
¨G`+(i.ghCodeBlocks.push({text:f,codeblock:p})-1)+`G
`}),u=u.replace(/¨0/,""),i.converter._dispatch("githubCodeBlocks.after",u,o,i)):u}),t.subParser("hashBlock",function(u,o,i){return u=i.converter._dispatch("hashBlock.before",u,o,i),u=u.replace(/(^\n+|\n+$)/g,""),u=`
¨K`+(i.gHtmlBlocks.push(u)-1)+`K
`,u=i.converter._dispatch("hashBlock.after",u,o,i),u}),t.subParser("hashCodeTags",function(u,o,i){u=i.converter._dispatch("hashCodeTags.before",u,o,i);var f=function(_,w,p,y){var N=p+t.subParser("encodeCode")(w,o,i)+y;return"¨C"+(i.gHtmlSpans.push(N)-1)+"C"};return u=t.helper.replaceRecursiveRegExp(u,f,"<code\\b[^>]*>","</code>","gim"),u=i.converter._dispatch("hashCodeTags.after",u,o,i),u}),t.subParser("hashElement",function(u,o,i){return function(f,_){var w=_;return w=w.replace(/\n\n/g,`
`),w=w.replace(/^\n/,""),w=w.replace(/\n+$/g,""),w=`
¨K`+(i.gHtmlBlocks.push(w)-1)+`K
`,w}}),t.subParser("hashHTMLBlocks",function(u,o,i){u=i.converter._dispatch("hashHTMLBlocks.before",u,o,i);var f=["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","p"],_=function(l,E,R,$){var Q=l;return R.search(/\bmarkdown\b/)!==-1&&(Q=R+i.converter.makeHtml(E)+$),`
¨K`+(i.gHtmlBlocks.push(Q)-1)+`K
`};o.backslashEscapesHTMLTags&&(u=u.replace(/\\<(\/?[^>]+?)>/g,function(l,E){return"&lt;"+E+"&gt;"}));for(var w=0;w<f.length;++w)for(var p,y=new RegExp("^ {0,3}(<"+f[w]+"\\b[^>]*>)","im"),N="<"+f[w]+"\\b[^>]*>",j="</"+f[w]+">";(p=t.helper.regexIndexOf(u,y))!==-1;){var T=t.helper.splitAtIndex(u,p),M=t.helper.replaceRecursiveRegExp(T[1],_,N,j,"im");if(M===T[1])break;u=T[0].concat(M)}return u=u.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,t.subParser("hashElement")(u,o,i)),u=t.helper.replaceRecursiveRegExp(u,function(l){return`
¨K`+(i.gHtmlBlocks.push(l)-1)+`K
`},"^ {0,3}<!--","-->","gm"),u=u.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,t.subParser("hashElement")(u,o,i)),u=i.converter._dispatch("hashHTMLBlocks.after",u,o,i),u}),t.subParser("hashHTMLSpans",function(u,o,i){u=i.converter._dispatch("hashHTMLSpans.before",u,o,i);function f(_){return"¨C"+(i.gHtmlSpans.push(_)-1)+"C"}return u=u.replace(/<[^>]+?\/>/gi,function(_){return f(_)}),u=u.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(_){return f(_)}),u=u.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(_){return f(_)}),u=u.replace(/<[^>]+?>/gi,function(_){return f(_)}),u=i.converter._dispatch("hashHTMLSpans.after",u,o,i),u}),t.subParser("unhashHTMLSpans",function(u,o,i){u=i.converter._dispatch("unhashHTMLSpans.before",u,o,i);for(var f=0;f<i.gHtmlSpans.length;++f){for(var _=i.gHtmlSpans[f],w=0;/¨C(\d+)C/.test(_);){var p=RegExp.$1;if(_=_.replace("¨C"+p+"C",i.gHtmlSpans[p]),w===10){console.error("maximum nesting of 10 spans reached!!!");break}++w}u=u.replace("¨C"+f+"C",_)}return u=i.converter._dispatch("unhashHTMLSpans.after",u,o,i),u}),t.subParser("hashPreCodeTags",function(u,o,i){u=i.converter._dispatch("hashPreCodeTags.before",u,o,i);var f=function(_,w,p,y){var N=p+t.subParser("encodeCode")(w,o,i)+y;return`
¨G`+(i.ghCodeBlocks.push({text:_,codeblock:N})-1)+`G
`};return u=t.helper.replaceRecursiveRegExp(u,f,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),u=i.converter._dispatch("hashPreCodeTags.after",u,o,i),u}),t.subParser("headers",function(u,o,i){u=i.converter._dispatch("headers.before",u,o,i);var f=isNaN(parseInt(o.headerLevelStart))?1:parseInt(o.headerLevelStart),_=o.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,w=o.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;u=u.replace(_,function(N,j){var T=t.subParser("spanGamut")(j,o,i),M=o.noHeaderId?"":' id="'+y(j)+'"',l=f,E="<h"+l+M+">"+T+"</h"+l+">";return t.subParser("hashBlock")(E,o,i)}),u=u.replace(w,function(N,j){var T=t.subParser("spanGamut")(j,o,i),M=o.noHeaderId?"":' id="'+y(j)+'"',l=f+1,E="<h"+l+M+">"+T+"</h"+l+">";return t.subParser("hashBlock")(E,o,i)});var p=o.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;u=u.replace(p,function(N,j,T){var M=T;o.customizedHeaderId&&(M=T.replace(/\s?\{([^{]+?)}\s*$/,""));var l=t.subParser("spanGamut")(M,o,i),E=o.noHeaderId?"":' id="'+y(T)+'"',R=f-1+j.length,$="<h"+R+E+">"+l+"</h"+R+">";return t.subParser("hashBlock")($,o,i)});function y(N){var j,T;if(o.customizedHeaderId){var M=N.match(/\{([^{]+?)}\s*$/);M&&M[1]&&(N=M[1])}return j=N,t.helper.isString(o.prefixHeaderId)?T=o.prefixHeaderId:o.prefixHeaderId===!0?T="section-":T="",o.rawPrefixHeaderId||(j=T+j),o.ghCompatibleHeaderId?j=j.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():o.rawHeaderId?j=j.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():j=j.replace(/[^\w]/g,"").toLowerCase(),o.rawPrefixHeaderId&&(j=T+j),i.hashLinkCounts[j]?j=j+"-"+i.hashLinkCounts[j]++:i.hashLinkCounts[j]=1,j}return u=i.converter._dispatch("headers.after",u,o,i),u}),t.subParser("horizontalRule",function(u,o,i){u=i.converter._dispatch("horizontalRule.before",u,o,i);var f=t.subParser("hashBlock")("<hr />",o,i);return u=u.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,f),u=u.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,f),u=u.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,f),u=i.converter._dispatch("horizontalRule.after",u,o,i),u}),t.subParser("images",function(u,o,i){u=i.converter._dispatch("images.before",u,o,i);var f=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,_=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,w=/!\[([^\]]*?)][ \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,p=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,y=/!\[([^\[\]]+)]()()()()()/g;function N(T,M,l,E,R,$,Q,q){return E=E.replace(/\s/g,""),j(T,M,l,E,R,$,Q,q)}function j(T,M,l,E,R,$,Q,q){var de=i.gUrls,be=i.gTitles,Ae=i.gDimensions;if(l=l.toLowerCase(),q||(q=""),T.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)E="";else if(E===""||E===null)if((l===""||l===null)&&(l=M.toLowerCase().replace(/ ?\n/g," ")),E="#"+l,!t.helper.isUndefined(de[l]))E=de[l],t.helper.isUndefined(be[l])||(q=be[l]),t.helper.isUndefined(Ae[l])||(R=Ae[l].width,$=Ae[l].height);else return T;M=M.replace(/"/g,"&quot;").replace(t.helper.regexes.asteriskDashAndColon,t.helper.escapeCharactersCallback),E=E.replace(t.helper.regexes.asteriskDashAndColon,t.helper.escapeCharactersCallback);var le='<img src="'+E+'" alt="'+M+'"';return q&&t.helper.isString(q)&&(q=q.replace(/"/g,"&quot;").replace(t.helper.regexes.asteriskDashAndColon,t.helper.escapeCharactersCallback),le+=' title="'+q+'"'),R&&$&&(R=R==="*"?"auto":R,$=$==="*"?"auto":$,le+=' width="'+R+'"',le+=' height="'+$+'"'),le+=" />",le}return u=u.replace(p,j),u=u.replace(w,N),u=u.replace(_,j),u=u.replace(f,j),u=u.replace(y,j),u=i.converter._dispatch("images.after",u,o,i),u}),t.subParser("italicsAndBold",function(u,o,i){u=i
`),p+="¨0";var N=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,j=/\n[ \t]*\n(?!¨0)/.test(p);return o.disableForced4SpacesIndentedSublists&&(N=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),p=p.replace(N,function(T,M,l,E,R,$,Q){Q=Q&&Q.trim()!=="";var q=t.subParser("outdent")(R,o,i),de="";return $&&o.tasklists&&(de=' class="task-list-item" style="list-style-type: none;"',q=q.replace(/^[ \t]*\[(x|X| )?]/m,function(){var be='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return Q&&(be+=" checked"),be+=">",be})),q=q.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(be){return"¨A"+be}),M||q.search(/\n{2,}/)>-1?(q=t.subParser("githubCodeBlocks")(q,o,i),q=t.subParser("blockGamut")(q,o,i)):(q=t.subParser("lists")(q,o,i),q=q.replace(/\n$/,""),q=t.subParser("hashHTMLBlocks")(q,o,i),q=q.replace(/\n\n+/g,`
`),j?q=t.subParser("paragraphs")(q,o,i):q=t.subParser("spanGamut")(q,o,i)),q=q.replace("¨A",""),q="<li"+de+">"+q+`</li>
`,q}),p=p.replace(/¨0/g,""),i.gListLevel--,y&&(p=p.replace(/\s+$/,"")),p}function _(p,y){if(y==="ol"){var N=p.match(/^ *(\d+)\./);if(N&&N[1]!=="1")return' start="'+N[1]+'"'}return""}function w(p,y,N){var j=o.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,T=o.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,M=y==="ul"?j:T,l="";if(p.search(M)!==-1)(function R($){var Q=$.search(M),q=_(p,y);Q!==-1?(l+=`
<`+y+q+`>
`+f($.slice(0,Q),!!N)+"</"+y+`>
`,y=y==="ul"?"ol":"ul",M=y==="ul"?j:T,R($.slice(Q))):l+=`
<`+y+q+`>
`+f($,!!N)+"</"+y+`>
`})(p);else{var E=_(p,y);l=`
<`+y+E+`>
`+f(p,!!N)+"</"+y+`>
`}return l}return u=i.converter._dispatch("lists.before",u,o,i),u+="¨0",i.gListLevel?u=u.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(p,y,N){var j=N.search(/[*+-]/g)>-1?"ul":"ol";return w(y,j,!0)}):u=u.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(p,y,N,j){var T=j.search(/[*+-]/g)>-1?"ul":"ol";return w(N,T,!1)}),u=u.replace(/¨0/,""),u=i.converter._dispatch("lists.after",u,o,i),u}),t.subParser("metadata",function(u,o,i){if(!o.metadata)return u;u=i.converter._dispatch("metadata.before",u,o,i);function f(_){i.metadata.raw=_,_=_.replace(/&/g,"&amp;").replace(/"/g,"&quot;"),_=_.replace(/\n {4}/g," "),_.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(w,p,y){return i.metadata.parsed[p]=y,""})}return u=u.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(_,w,p){return f(p),"¨M"}),u=u.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(_,w,p){return w&&(i.metadata.format=w),f(p),"¨M"}),u=u.replace(/¨M/g,""),u=i.converter._dispatch("metadata.after",u,o,i),u}),t.subParser("outdent",function(u,o,i){return u=i.converter._dispatch("outdent.before",u,o,i),u=u.replace(/^(\t|[ ]{1,4})/gm,"¨0"),u=u.replace(/¨0/g,""),u=i.converter._dispatch("outdent.after",u,o,i),u}),t.subParser("paragraphs",function(u,o,i){u=i.converter._dispatch("paragraphs.before",u,o,i),u=u.replace(/^\n+/g,""),u=u.replace(/\n+$/g,"");for(var f=u.split(/\n{2,}/g),_=[],w=f.length,p=0;p<w;p++){var y=f[p];y.search(/¨(K|G)(\d+)\1/g)>=0?_.push(y):y.search(/\S/)>=0&&(y=t.subParser("spanGamut")(y,o,i),y=y.replace(/^([ \t]*)/g,"<p>"),y+="</p>",_.push(y))}for(w=_.length,p=0;p<w;p++){for(var N="",j=_[p],T=!1;/¨(K|G)(\d+)\1/.test(j);){var M=RegExp.$1,l=RegExp.$2;M==="K"?N=i.gHtmlBlocks[l]:T?N=t.subParser("encodeCode")(i.ghCodeBlocks[l].text,o,i):N=i.ghCodeBlocks[l].codeblock,N=N.replace(/\$/g,"$$$$"),j=j.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,N),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(j)&&(T=!0)}_[p]=j}return u=_.join(`
`),u=u.replace(/^\n+/g,""),u=u.replace(/\n+$/g,""),i.converter._dispatch("paragraphs.after",u,o,i)}),t.subParser("runExtension",function(u,o,i,f){if(u.filter)o=u.filter(o,f.converter,i);else if(u.regex){var _=u.regex;_ instanceof RegExp||(_=new RegExp(_,"g")),o=o.replace(_,u.replace)}return o}),t.subParser("spanGamut",function(u,o,i){return u=i.converter._dispatch("spanGamut.before",u,o,i),u=t.subParser("codeSpans")(u,o,i),u=t.subParser("escapeSpecialCharsWithinTagAttributes")(u,o,i),u=t.subParser("encodeBackslashEscapes")(u,o,i),u=t.subParser("images")(u,o,i),u=t.subParser("anchors")(u,o,i),u=t.subParser("autoLinks")(u,o,i),u=t.subParser("simplifiedAutoLinks")(u,o,i),u=t.subParser("emoji")(u,o,i),u=t.subParser("underline")(u,o,i),u=t.subParser("italicsAndBold")(u,o,i),u=t.subParser("strikethrough")(u,o,i),u=t.subParser("ellipsis")(u,o,i),u=t.subParser("hashHTMLSpans")(u,o,i),u=t.subParser("encodeAmpsAndAngles")(u,o,i),o.simpleLineBreaks?/\n\n¨K/.test(u)||(u=u.replace(/\n+/g,`<br />
`)):u=u.replace(/ +\n/g,`<br />
`),u=i.converter._dispatch("spanGamut.after",u,o,i),u}),t.subParser("strikethrough",function(u,o,i){function f(_){return o.simplifiedAutoLink&&(_=t.subParser("simplifiedAutoLinks")(_,o,i)),"<del>"+_+"</del>"}return o.strikethrough&&(u=i.converter._dispatch("strikethrough.before",u,o,i),u=u.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(_,w){return f(w)}),u=i.converter._dispatch("strikethrough.after",u,o,i)),u}),t.subParser("stripLinkDefinitions",function(u,o,i){var f=/^ {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,_=/^ {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;u+="¨0";var w=function(p,y,N,j,T,M,l){return y=y.toLowerCase(),u.toLowerCase().split(y).length-1<2?p:(N.match(/^data:.+?\/.+?;base64,/)?i.gUrls[y]=N.replace(/\s/g,""):i.gUrls[y]=t.subParser("encodeAmpsAndAngles")(N,o,i),M?M+l:(l&&(i.gTitles[y]=l.replace(/"|'/g,"&quot;")),o.parseImgDimensions&&j&&T&&(i.gDimensions[y]={width:j,height:T}),""))};return u=u.replace(_,w),u=u.replace(f,w),u=u.replace(/¨0/,""),u}),t.subParser("tables",function(u,o,i){if(!o.tables)return u;var f=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,_=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function w(T){return/^:[ \t]*--*$/.test(T)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(T)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(T)?' style="text-align:center;"':""}function p(T,M){var l="";return T=T.trim(),(o.tablesHeaderId||o.tableHeaderId)&&(l=' id="'+T.replace(/ /g,"_").toLowerCase()+'"'),T=t.subParser("spanGamut")(T,o,i),"<th"+l+M+">"+T+`</th>
`}function y(T,M){var l=t.subParser("spanGamut")(T,o,i);return"<td"+M+">"+l+`</td>
`}function N(T,M){for(var l=`<table>
<thead>
<tr>
`,E=T.length,R=0;R<E;++R)l+=T[R];for(l+=`</tr>
</thead>
<tbody>
`,R=0;R<M.length;++R){l+=`<tr>
`;for(var $=0;$<E;++$)l+=M[R][$];l+=`</tr>
`}return l+=`</tbody>
</table>
`,l}function j(T){var M,l=T.split(`
`);for(M=0;M<l.length;++M)/^ {0,3}\|/.test(l[M])&&(l[M]=l[M].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[M])&&(l[M]=l[M].replace(/\|[ \t]*$/,"")),l[M]=t.subParser("codeSpans")(l[M],o,i);var E=l[0].split("|").map(function(le){return le.trim()}),R=l[1].split("|").map(function(le){return le.trim()}),$=[],Q=[],q=[],de=[];for(l.shift(),l.shift(),M=0;M<l.length;++M)l[M].trim()!==""&&$.push(l[M].split("|").map(function(le){return le.trim()}));if(E.length<R.length)return T;for(M=0;M<R.length;++M)q.push(w(R[M]));for(M=0;M<E.length;++M)t.helper.isUndefined(q[M])&&(q[M]=""),Q.push(p(E[M],q[M]));for(M=0;M<$.length;++M){for(var be=[],Ae=0;Ae<Q.length;++Ae)t.helper.isUndefined($[M][Ae]),be.push(y($[M][Ae],q[Ae]));de.push(be)}return N(Q,de)}return u=i.converter._dispatch("tables.before",u,o,i),u=u.replace(/\\(\|)/g,t.helper.escapeCharactersCallback),u=u.replace(f,j),u=u.replace(_,j),u=i.converter._dispatch("tables.after",u,o,i),u}),t.subParser("underline",function(u,o,i){return o.underline&&(u=i.converter._dispatch("underline.before",u,o,i),o.literalMidWordUnderscores?(u=u.replace(/\b___(\S[\s\S]*?)___\b/g,function(f,_){return"<u>"+_+"</u>"}),u=u.replace(/\b__(\S[\s\S]*?)__\b/g,function(f,_){return"<u>"+_+"</u>"})):(u=u.replace(/___(\S[\s\S]*?)___/g,function(f,_){return/\S$/.test(_)?"<u>"+_+"</u>":f}),u=u.replace(/__(\S[\s\S]*?)__/g,function(f,_){return/\S$/.test(_)?"<u>"+_+"</u>":f})),u=u.replace(/(_)/g,t.helper.escapeCharactersCallback),u=i.converter._dispatch("underline.after",u,o,i)),u}),t.subParser("unescapeSpecialChars",function(u,o,i){return u=i.converter._dispatch("unescapeSpecialChars.before",u,o,i),u=u.replace(/¨E(\d+)E/g,function(f,_){var w=parseInt(_);return String.fromCharCode(w)}),u=i.converter._dispatch("unescapeSpecialChars.after",u,o,i),u}),t.subParser("makeMarkdown.blockquote",function(u,o){var i="";if(u.hasChildNodes())for(var f=u.childNodes,_=f.length,w=0;w<_;++w){var p=t.subParser("makeMarkdown.node")(f[w],o);p!==""&&(i+=p)}return i=i.trim(),i="> "+i.split(`
`).join(`
> `),i}),t.subParser("makeMarkdown.codeBlock",function(u,o){var i=u.getAttribute("language"),f=u.getAttribute("precodenum");return"```"+i+`
`+o.preList[f]+"\n```"}),t.subParser("makeMarkdown.codeSpan",function(u){return"`"+u.innerHTML+"`"}),t.subParser("makeMarkdown.emphasis",function(u,o){var i="";if(u.hasChildNodes()){i+="*";for(var f=u.childNodes,_=f.length,w=0;w<_;++w)i+=t.subParser("makeMarkdown.node")(f[w],o);i+="*"}return i}),t.subParser("makeMarkdown.header",function(u,o,i){var f=new Array(i+1).join("#"),_="";if(u.hasChildNodes()){_=f+" ";for(var w=u.childNodes,p=w.length,y=0;y<p;++y)_+=t.subParser("makeMarkdown.node")(w[y],o)}return _}),t.subParser("makeMarkdown.hr",function(){return"---"}),t.subParser("makeMarkdown.image",function(u){var o="";return u.hasAttribute("src")&&(o+="!["+u.getAttribute("alt")+"](",o+="<"+u.getAttribute("src")+">",u.hasAttribute("width")&&u.hasAttribute("height")&&(o+=" ="+u.getAttribute("width")+"x"+u.getAttribute("height")),u.hasAttribute("title")&&(o+=' "'+u.getAttribute("title")+'"'),o+=")"),o}),t.subParser("makeMarkdown.links",function(u,o){var i="";if(u.hasChildNodes()&&u.hasAttribute("href")){var f=u.childNodes,_=f.length;i="[";for(var w=0;w<_;++w)i+=t.subParser("makeMarkdown.node")(f[w],o);i+="](",i+="<"+u.getAttribute("href")+">",u.hasAttribute("title")&&(i+=' "'+u.getAttribute("title")+'"'),i+=")"}return i}),t.subParser("makeMarkdown.list",function(u,o,i){var f="";if(!u.hasChildNodes())return"";for(var _=u.childNodes,w=_.length,p=u.getAttribute("start")||1,y=0;y<w;++y)if(!(typeof _[y].tagName>"u"||_[y].tagName.toLowerCase()!=="li")){var N="";i==="ol"?N=p.toString()+". ":N="- ",f+=N+t.subParser("makeMarkdown.listItem")(_[y],o),++p}return f+=`
<!-- -->
`,f.trim()}),t.subParser("makeMarkdown.listItem",function(u,o){for(var i="",f=u.childNodes,_=f.length,w=0;w<_;++w)i+=t.subParser("makeMarkdown.node")(f[w],o);return/\n$/.test(i)?i=i.split(`
`).join(`
`).replace(/^ {4}$/gm,"").replace(/\n\n+/g,`
`):i+=`
`,i}),t.subParser("makeMarkdown.node",function(u,o,i){i=i||!1;var f="";if(u.nodeType===3)return t.subParser("makeMarkdown.txt")(u,o);if(u.nodeType===8)return"<!--"+u.data+`-->
`;if(u.nodeType!==1)return"";var _=u.tagName.toLowerCase();switch(_){case"h1":i||(f=t.subParser("makeMarkdown.header")(u,o,1)+`
`);break;case"h2":i||(f=t.subParser("makeMarkdown.header")(u,o,2)+`
`);break;case"h3":i||(f=t.subParser("makeMarkdown.header")(u,o,3)+`
`);break;case"h4":i||(f=t.subParser("makeMarkdown.header")(u,o,4)+`
`);break;case"h5":i||(f=t.subParser("makeMarkdown.header")(u,o,5)+`
`);break;case"h6":i||(f=t.subParser("makeMarkdown.header")(u,o,6)+`
`);break;case"p":i||(f=t.subParser("makeMarkdown.paragraph")(u,o)+`
`);break;case"blockquote":i||(f=t.subParser("makeMarkdown.blockquote")(u,o)+`
`);break;case"hr":i||(f=t.subParser("makeMarkdown.hr")(u,o)+`
`);break;case"ol":i||(f=t.subParser("makeMarkdown.list")(u,o,"ol")+`
`);break;case"ul":i||(f=t.subParser("makeMarkdown.list")(u,o,"ul")+`
`);break;case"precode":i||(f=t.subParser("makeMarkdown.codeBlock")(u,o)+`
`);break;case"pre":i||(f=t.subParser("makeMarkdown.pre")(u,o)+`
`);break;case"table":i||(f=t.subParser("makeMarkdown.table")(u,o)+`
`);break;case"code":f=t.subParser("makeMarkdown.codeSpan")(u,o);break;case"em":case"i":f=t.subParser("makeMarkdown.emphasis")(u,o);break;case"strong":case"b":f=t.subParser("makeMarkdown.strong")(u,o);break;case"del":f=t.subParser("makeMarkdown.strikethrough")(u,o);break;case"a":f=t.subParser("makeMarkdown.links")(u,o);break;case"img":f=t.subParser("makeMarkdown.image")(u,o);break;default:f=u.outerHTML+`
`}return f}),t.subParser("makeMarkdown.paragraph",function(u,o){var i="";if(u.hasChildNodes())for(var f=u.childNodes,_=f.length,w=0;w<_;++w)i+=t.subParser("makeMarkdown.node")(f[w],o);return i=i.trim(),i}),t.subParser("makeMarkdown.pre",function(u,o){var i=u.getAttribute("prenum");return"<pre>"+o.preList[i]+"</pre>"}),t.subParser("makeMarkdown.strikethrough",function(u,o){var i="";if(u.hasChildNodes()){i+="~~";for(var f=u.childNodes,_=f.length,w=0;w<_;++w)i+=t.subParser("makeMarkdown.node")(f[w],o);i+="~~"}return i}),t.subParser("makeMarkdown.strong",function(u,o){var i="";if(u.hasChildNodes()){i+="**";for(var f=u.childNodes,_=f.length,w=0;w<_;++w)i+=t.subParser("makeMarkdown.node")(f[w],o);i+="**"}return i}),t.subParser("makeMarkdown.table",function(u,o){var i="",f=[[],[]],_=u.querySelectorAll("thead>tr>th"),w=u.querySelectorAll("tbody>tr"),p,y;for(p=0;p<_.length;++p){var N=t.subParser("makeMarkdown.tableCell")(_[p],o),j="---";if(_[p].hasAttribute("style")){var T=_[p].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(T){case"text-align:left;":j=":---";break;case"text-align:right;":j="---:";break;case"text-align:center;":j=":---:";break}}f[0][p]=N.trim(),f[1][p]=j}for(p=0;p<w.length;++p){var M=f.push([])-1,l=w[p].getElementsByTagName("td");for(y=0;y<_.length;++y){var E=" ";typeof l[y]<"u"&&(E=t.subParser("makeMarkdown.tableCell")(l[y],o)),f[M].push(E)}}var R=3;for(p=0;p<f.length;++p)for(y=0;y<f[p].length;++y){var $=f[p][y].length;$>R&&(R=$)}for(p=0;p<f.length;++p){for(y=0;y<f[p].length;++y)p===1?f[p][y].slice(-1)===":"?f[p][y]=t.helper.padEnd(f[p][y].slice(-1),R-1,"-")+":":f[p][y]=t.helper.padEnd(f[p][y],R,"-"):f[p][y]=t.helper.padEnd(f[p][y],R);i+="| "+f[p].join(" | ")+` |
`}return i.trim()}),t.subParser("makeMarkdown.tableCell",function(u,o){var i="";if(!u.hasChildNodes())return"";for(var f=u.childNodes,_=f.length,w=0;w<_;++w)i+=t.subParser("makeMarkdown.node")(f[w],o,!0);return i.trim()}),t.subParser("makeMarkdown.txt",function(u){var o=u.nodeValue;return o=o.replace(/ +/g," "),o=o.replace(/¨NBSP;/g," "),o=t.helper.unescapeHTMLEntities(o),o=o.replace(/([*_~|`])/g,"\\$1"),o=o.replace(/^(\s*)>/g,"\\$1>"),o=o.replace(/^#/gm,"\\#"),o=o.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),o=o.replace(/^( {0,3}\d+)\./gm,"$1\\."),o=o.replace(/^( {0,3})([+-])/gm,"$1\\$2"),o=o.replace(/]([\s]*)\(/g,"\\]$1\\("),o=o.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),o});var Z=this;e.exports?e.exports=t:Z.showdown=t}).call(So)})(Ao);const To=sn;/*!
* vue-showdown - Use showdown as a vue component
*
* @version v4.0.0
* @link https://vue-showdown.js.org
* @license MIT
* @copyright 2018-2022 meteorlxy
*/const Td=cd({name:"VueShowdown",props:{markdown:{type:String,required:!1,default:null},tag:{type:String,required:!1,default:"div"},flavor:{type:String,required:!1,default:null},options:{type:Object,required:!1,default:()=>({})},extensions:{type:Array,required:!1,default:null},vueTemplate:{type:Boolean,required:!1,default:!1},vueTemplateData:{type:Object,required:!1,default:()=>({})}},setup(e,{slots:r}){const n=hr(()=>{const s=new To.Converter({extensions:e.extensions||void 0});return e.flavor!==null&&s.setFlavor(e.flavor),Object.entries(e.options).forEach(([a,c])=>{s.setOption(a,c)}),s}),t=hr(()=>{var a;if(e.markdown!==null)return e.markdown;const s=(a=r.default)==null?void 0:a.call(r)[0];return(s==null?void 0:s.type)===Jr?s.children:""}),d=hr(()=>n.value.makeHtml(t.value));return()=>e.vueTemplate?au({setup:()=>e.vueTemplateData,template:`<${e.tag}>${d.value}</${e.tag}>`}):au(e.tag,{innerHTML:d.value})}});function jd(e,r){return function(){return e.apply(r,arguments)}}const{toString:Od}=Object.prototype,{getPrototypeOf:Rn}=Object,Ln=(e=>r=>{const n=Od.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),r=>Ln(r)===e),Ot=e=>r=>typeof r===e,{isArray:jr}=Array,Vr=Ot("undefined");function jo(e){return e!==null&&!Vr(e)&&e.constructor!==null&&!Vr(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Md=Je("ArrayBuffer");function Oo(e){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&Md(e.buffer),r}const Mo=Ot("string"),er=Ot("function"),Rd=Ot("number"),zn=e=>e!==null&&typeof e=="object",Ro=e=>e===!0||e===!1,ot=e=>{if(Ln(e)!=="object")return!1;const r=Rn(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lo=Je("Date"),zo=Je("File"),No=Je("Blob"),Io=Je("FileList"),Bo=e=>zn(e)&&er(e.pipe),Fo=e=>{const r="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Od.call(e)===r||er(e.toString)&&e.toString()===r)},Ho=Je("URLSearchParams"),Do=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gr(e,r,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let t,d;if(typeof e!="object"&&(e=[e]),jr(e))for(t=0,d=e.length;t<d;t++)r.call(null,e[t],t,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let c;for(t=0;t<a;t++)c=s[t],r.call(null,e[c],c,e)}}function Ld(e,r){r=r.toLowerCase();const n=Object.keys(e);let t=n.length,d;for(;t-- >0;)if(d=n[t],r===d.toLowerCase())return d;return null}const zd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Nd=e=>!Vr(e)&&e!==zd;function on(){const{caseless:e}=Nd(this)&&this||{},r={},n=(t,d)=>{const s=e&&Ld(r,d)||d;ot(r[s])&&ot(t)?r[s]=on(r[s],t):ot(t)?r[s]=on({},t):jr(t)?r[s]=t.slice():r[s]=t};for(let t=0,d=arguments.length;t<d;t++)arguments[t]&&Gr(arguments[t],n);return r}const Uo=(e,r,n,{allOwnKeys:t}={})=>(Gr(r,(d,s)=>{n&&er(d)?e[s]=jd(d,n):e[s]=d},{allOwnKeys:t}),e),$o=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qo=(e,r,n,t)=>{e.prototype=Object.create(r.prototype,t),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),n&&Object.assign(e.prototype,n)},Vo=(e,r,n,t)=>{let d,s,a;const c={};if(r=r||{},e==null)return r;do{for(d=Object.getOwnPropertyNames(e),s=d.length;s-- >0;)a=d[s],(!t||t(a,e,r))&&!c[a]&&(r[a]=e[a],c[a]=!0);e=n!==!1&&Rn(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},Ko=(e,r,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=r.length;const t=e.indexOf(r,n);return t!==-1&&t===n},Wo=e=>{if(!e)return null;if(jr(e))return e;let r=e.length;if(!Rd(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=e[r];return n},Jo=(e=>r=>e&&r instanceof e)(typeof Uint8Array<"u"&&Rn(Uint8Array)),Go=(e,r)=>{const t=(e&&e[Symbol.iterator]).call(e);let d;for(;(d=t.next())&&!d.done;){const s=d.value;r.call(e,s[0],s[1])}},Zo=(e,r)=>{let n;const t=[];for(;(n=e.exec(r))!==null;)t.push(n);return t},Xo=Je("HTMLFormElement"),Yo=e=>e.toLowerCase().replace(/
`).forEach(function(a){d=a.indexOf(":"),n=a.substring(0,d).trim().toLowerCase(),t=a.substring(d+1).trim(),!(!n||r[n]&&ya[n])&&(n==="set-cookie"?r[n]?r[n].push(t):r[n]=[t]:r[n]=r[n]?r[n]+", "+t:t)}),r},Cu=Symbol("internals");function Rr(e){return e&&String(e).trim().toLowerCase()}function at(e){return e===!1||e==null?e:P.isArray(e)?e.map(at):String(e)}function ka(e){const r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(e);)r[t[1]]=t[2];return r}function Ea(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function qt(e,r,n,t){if(P.isFunction(t))return t.call(this,r,n);if(P.isString(r)){if(P.isString(t))return r.indexOf(t)!==-1;if(P.isRegExp(t))return t.test(r)}}function Pa(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,t)=>n.toUpperCase()+t)}function Ca(e,r){const n=P.toCamelCase(" "+r);["get","set","has"].forEach(t=>{Object.defineProperty(e,t+n,{value:function(d,s,a){return this[t].call(this,r,d,s,a)},configurable:!0})})}class Lt{constructor(r){r&&this.set(r)}set(r,n,t){const d=this;function s(c,h,g){const v=Rr(h);if(!v)throw new Error("header name must be a non-empty string");const C=P.findKey(d,v);(!C||d[C]===void 0||g===!0||g===void 0&&d[C]!==!1)&&(d[C||h]=at(c))}const a=(c,h)=>P.forEach(c,(g,v)=>s(g,v,h));return P.isPlainObject(r)||r instanceof this.constructor?a(r,n):P.isString(r)&&(r=r.trim())&&!Ea(r)?a(va(r),n):r!=null&&s(n,r,t),this}get(r,n){if(r=Rr(r),r){const t=P.findKey(this,r);if(t){const d=this[t];if(!n)return d;if(n===!0)return ka(d);if(P.isFunction(n))return n.call(this,d,t);if(P.isRegExp(n))return n.exec(d);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=Rr(r),r){const t=P.findKey(this,r);return!!(t&&this[t]!==void 0&&(!n||qt(this,this[t],t,n)))}return!1}delete(r,n){const t=this;let d=!1;function s(a){if(a=Rr(a),a){const c=P.findKey(t,a);c&&(!n||qt(t,t[c],c,n))&&(delete t[c],d=!0)}}return P.isArray(r)?r.forEach(s):s(r),d}clear(r){const n=Object.keys(this);let t=n.length,d=!1;for(;t--;){const s=n[t];(!r||qt(this,this[s],s,r))&&(delete this[s],d=!0)}return d}normalize(r){const n=this,t={};return P.forEach(this,(d,s)=>{const a=P.findKey(t,s);if(a){n[a]=at(d),delete n[s];return}const c=r?Pa(s):String(s).trim();c!==s&&delete n[s],n[c]=at(d),t[c]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const n=Object.create(null);return P.forEach(this,(t,d)=>{t!=null&&t!==!1&&(n[d]=r&&P.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const t=new this(r);return n.forEach(d=>t.set(d)),t}static accessor(r){const t=(this[Cu]=this[Cu]={accessors:{}}).accessors,d=this.prototype;function s(a){const c=Rr(a);t[c]||(Ca(d,a),t[c]=!0)}return P.isArray(r)?r.forEach(s):s(r),this}}Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.freezeMethods(Lt.prototype);P.freezeMethods(Lt);const Ve=Lt;function Vt(e,r){const n=this||In,t=r||n,d=Ve.from(t.headers);let s=t.data;return P.forEach(e,function(c){s=c.call(n,s,d.normalize(),r?r.status:void 0)}),d.normalize(),s}function Kd(e){return!!(e&&e.__CANCEL__)}function Zr(e,r,n){te.call(this,e??"canceled",te.ERR_CANCELED,r,n),this.name="CanceledError"}P.inherits(Zr,te,{__CANCEL__:!0});function Sa(e,r,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?e(n):r(new te("Request failed with status code "+n.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Aa=$e.isStandardBrowserEnv?function(){return{write:function(n,t,d,s,a,c){const h=[];h.push(n+"="+encodeURIComponent(t)),P.isNumber(d)&&h.push("expires="+new Date(d).toGMTString()),P.isString(s)&&h.push("path="+s),P.isString(a)&&h.push("domain="+a),c===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(n){const t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Ta(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ja(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}function Wd(e,r){return e&&!Ta(r)?ja(e,r):r}const Oa=$e.isStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let t;function d(s){let a=s;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return t=d(window.location.href),function(a){const c=P.isString(a)?d(a):a;return c.protocol===t.protocol&&c.host===t.host}}():function(){return function(){return!0}}();function Ma(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function Ra(e,r){e=e||10;const n=new Array(e),t=new Array(e);let d=0,s=0,a;return r=r!==void 0?r:1e3,function(h){const g=Date.now(),v=t[s];a||(a=g),n[d]=h,t[d]=g;let C=s,F=0;for(;C!==d;)F+=n[C++],C=C%e;if(d=(d+1)%e,d===s&&(s=(s+1)%e),g-a<r)return;const U=v&&g-v;return U?Math.round(F*1e3/U):void 0}}function Su(e,r){let n=0;const t=Ra(50,250);return d=>{const s=d.loaded,a=d.lengthComputable?d.total:void 0,c=s-n,h=t(c),g=s<=a;n=s;const v={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:h||void 0,estimated:h&&a&&g?(a-s)/h:void 0,event:d};v[r?"download":"upload"]=!0,e(v)}}const La=typeof XMLHttpRequest<"u",za=La&&function(e){return new Promise(function(n,t){let d=e.data;const s=Ve.from(e.headers).normalize(),a=e.responseType;let c;function h(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}P.isFormData(d)&&($e.isStandardBrowserEnv||$e.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let g=new XMLHttpRequest;if(e.auth){const U=e.auth.username||"",B=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(U+":"+B))}const v=Wd(e.baseURL,e.url);g.open(e.method.toUpperCase(),$d(v,e.params,e.paramsSerializer),!0),g.timeout=e.timeout;function C(){if(!g)return;const U=Ve.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),L={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:U,config:e,request:g};Sa(function(Y){n(Y),h()},function(Y){t(Y),h()