From f6d78579f9a270793638840fdffe973b3074b659 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= "+e+"
\n":"'+(n?e:l(e,!0))+"
"},r.prototype.blockquote=function(e){return""+(n?e:l(e,!0))+"
\n"+e+"
\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n,i){return this.options.headerIds?"
\n":"
\n"},r.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+i+">\n"},r.prototype.listitem=function(e){return"\n\n"+e+"\n"+t+"
\n"},r.prototype.tablerow=function(e){return"\n"+e+" \n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+"
"},r.prototype.br=function(){return this.options.xhtml?"
":"
"},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"+n+""},r.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var i='":">")},r.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},a.parse=function(e,t){return new a(t).parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,m({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,c(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o="",r="";for(n="",e=0;e
"+l(e.message+"",!0)+"";throw e}}f.exec=f,_.options=_.setOptions=function(e){return m(_.defaults,e),_},_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new r,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},_.defaults=_.getDefaults(),_.Parser=a,_.parser=a.parse,_.Renderer=r,_.TextRenderer=s,_.Lexer=n,_.lexer=n.lex,_.InlineLexer=o,_.inlineLexer=o.output,_.Slugger=u,_.parse=_,aD=_}).call(void 0),aD.Parser,aD.parser;var mD=aD.Renderer,yD=(aD.TextRenderer,aD.Lexer,aD.lexer,aD.InlineLexer,aD.inlineLexer,aD.parse);function vD(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}function bD(e,t){void 0===t&&(t={});var n=vD(t);return function e(t,n,i){var o;if(2===n.type)o=document.createTextNode(n.content||"");else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&i){var r=document.createElement("a");r.href="#",i.disposeables.push(Ve(r,"click",function(e){i.callback(String(n.index),e)})),o=r}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);o&&t!==o&&t.appendChild(o),o&&Array.isArray(n.children)&&n.children.forEach(function(t){e(o,t,i)})}(n,function(e){for(var t={type:1,children:[]},n=0,i=t,o=[],r=new MD(e);!r.eos();){var s=r.next(),a="\\"===s&&0!==wD(r.peek());if(a&&(s=r.next()),a||0===wD(s)||s!==r.peek())if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var u={type:2,content:s};i.children.push(u),o.push(i),i=u}else i.content+=s;else{r.advance(),2===i.type&&(i=o.pop());var l=wD(s);if(i.type===l||5===i.type&&6===l)i=o.pop();else{var c={type:l,children:[]};5===l&&(c.index=n,n++),i.children.push(c),o.push(i),i=c}}}return 2===i.type&&(i=o.pop()),o.length,t}(e),t.actionHandler),n}function _D(e,t){void 0===t&&(t={});var n,i=vD(t),o=function(t){var n=e.uris&&e.uris[t];if(!n)return t;var i=Ot.a.revive(n);return i.query&&(i=i.with({query:function(t){var n;try{n=Pt(decodeURIComponent(t))}catch(e){}return n?(n=l(n,function(t){return e.uris&&e.uris[t]?Ot.a.revive(e.uris[t]):void 0}),encodeURIComponent(JSON.stringify(n))):t}(i.query)})),n&&(t=i.toString(!0)),t},r=new Promise(function(e){return n=e}),s=new mD;s.image=function(e,t,n){var i=[];if(e=o(e)){var r=e.split("|").map(function(e){return e.trim()});e=r[0];var s=r[1];if(s){var a=/height=(\d+)/.exec(s),u=/width=(\d+)/.exec(s),l=a?a[1]:"",c=u?u[1]:"",d=isFinite(parseInt(c)),h=isFinite(parseInt(l));d&&i.push('width="'+c+'"'),h&&i.push('height="'+l+'"')}}var p=[];return e&&p.push('src="'+e+'"'),n&&p.push('alt="'+n+'"'),t&&p.push('title="'+t+'"'),i.length&&(p=p.concat(i)),""},s.link=function(t,n,i){return t===i&&(i=fD(i)),t=o(t),n=fD(n),!(t=fD(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?i:'/g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(n||t)+'">'+i+""},s.paragraph=function(e){return"
"+e+"
"},t.codeBlockRenderer&&(s.code=function(e,n){var o=t.codeBlockRenderer(n,e),s=cD.nextId(),a=Promise.all([o,r]).then(function(e){var t=e[0],n=i.querySelector('div[data-code="'+s+'"]');n&&(n.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'language | '+Object(zt.m)(d.languageIdentifier.language)+" | ",s+='
token type | '+this._tokenTypeToString(d.tokenType)+" | ",s+='
font style | '+this._fontStyleToString(d.fontStyle)+" | ",s+='
foreground | '+tc.Format.CSS.formatHex(d.foreground)+" | ",s+='
background | '+tc.Format.CSS.formatHex(d.background)+" | ",s+="