"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[28336],{47593:function(e,t,r){r.d(t,{A:function(){return et}});var n={};r.r(n),r.d(n,{arrayReplaceAt:function(){return k},assign:function(){return d},escapeHtml:function(){return w},escapeRE:function(){return L},fromCodePoint:function(){return m},has:function(){return f},isMdAsciiPunct:function(){return $},isPunctChar:function(){return E},isSpace:function(){return z},isString:function(){return u},isValidEntityCode:function(){return v},isWhiteSpace:function(){return T},lib:function(){return q},normalizeReference:function(){return O},unescapeAll:function(){return y},unescapeMd:function(){return C}});var i={};r.r(i),r.d(i,{parseLinkDestination:function(){return R},parseLinkLabel:function(){return P},parseLinkTitle:function(){return j}}),r(24776),r(14382),r(84734),r(89336),r(83810),r(78557),r(95021),r(46968),r(23630),r(29305),r(32733),r(84701),r(44962),r(96054),r(646),r(73687),r(83994),r(93062),r(82367);var s=r(15603),o=r(47692),a=r(95131),c=r(74546),l=r(86942);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function u(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}var p=Object.prototype.hasOwnProperty;function f(e,t){return p.call(e,t)}function d(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!==h(t))throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e}function k(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function v(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function m(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var g=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,b=new RegExp(g.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),_=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function C(e){return e.indexOf("\\")<0?e:e.replace(g,"$1")}function y(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(b,(function(e,t,r){return t||function(e,t){if(35===t.charCodeAt(0)&&_.test(t)){var r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return v(r)?m(r):e}var n=(0,l.Gz)(e);return n!==e?n:e}(e,r)}))}var A=/[&<>"]/,x=/[&<>"]/g,M={"&":"&","<":"<",">":">",'"':"""};function S(e){return M[e]}function w(e){return A.test(e)?e.replace(x,S):e}var I=/[.?*+^$[\]\\(){}|-]/g;function L(e){return e.replace(I,"\\$&")}function z(e){switch(e){case 9:case 32:return!0}return!1}function T(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function E(e){return o.A.test(e)||a.A.test(e)}function $(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function O(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}var q={mdurl:s,ucmicro:c};function P(e,t,r){var n,i,s,o,a=e.posMax,c=e.pos;for(e.pos=t+1,n=1;e.pos32)return s;if(41===n){if(0===o)break;o--}i++}return t===i||0!==o||(s.str=y(e.slice(t,i)),s.pos=i,s.ok=!0),s}function j(e,t,r,n){var i,s=t,o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(s>=r)return o;var a=e.charCodeAt(s);if(34!==a&&39!==a&&40!==a)return o;t++,s++,40===a&&(a=41),o.marker=a}for(;s"+w(s.content)+""},Z.code_block=function(e,t,r,n,i){var s=e[t];return""+w(e[t].content)+"\n"},Z.fence=function(e,t,r,n,i){var s,o=e[t],a=o.info?y(o.info).trim():"",c="",l="";if(a){var h=a.split(/(\s+)/g);c=h[0],l=h.slice(2).join("")}if(0===(s=r.highlight&&r.highlight(o.content,c,l)||w(o.content)).indexOf("").concat(s,"\n")}return"
").concat(s,"
\n")},Z.image=function(e,t,r,n,i){var s=e[t];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,r,n),i.renderToken(e,t,r)},Z.hardbreak=function(e,t,r){return r.xhtmlOut?"
\n":"
\n"},Z.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"
\n":"
\n":"\n"},Z.text=function(e,t){return w(e[t].content)},Z.html_block=function(e,t){return e[t].content},Z.html_inline=function(e,t){return e[t].content},D.prototype.renderAttrs=function(e){var t,r,n;if(!e.attrs)return"";for(n="",t=0,r=e.attrs.length;t\n":">")},D.prototype.renderInline=function(e,t,r){for(var n="",i=this.rules,s=0,o=e.length;s=0&&(r=this.attrs[t][1]),r},W.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};var F=W;function U(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}U.prototype.Token=F;var H=U,J=/\r\n?|\n/g,V=/\0/g;function K(e){return/^<\/a\s*>/i.test(e)}r(53819);var Q=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,X=/\((c|tm|r)\)/i,Y=/\((c|tm|r)\)/gi,ee={c:"©",r:"®",tm:"™"};function te(e,t){return ee[t.toLowerCase()]}function re(e){for(var t=0,r=e.length-1;r>=0;r--){var n=e[r];"text"!==n.type||t||(n.content=n.content.replace(Y,te)),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}function ne(e){for(var t=0,r=e.length-1;r>=0;r--){var n=e[r];"text"!==n.type||t||Q.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&t--,"link_close"===n.type&&"auto"===n.info&&t++}}var ie=/['"]/,se=/['"]/g;function oe(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function ae(e,t){for(var r,n=[],i=0;i=0&&!(n[r].level<=o);r--);if(n.length=r+1,"text"===s.type){var a=s.content,c=0,l=a.length;e:for(;c=0)d=a.charCodeAt(h.index-1);else for(r=i-1;r>=0&&"softbreak"!==e[r].type&&"hardbreak"!==e[r].type;r--)if(e[r].content){d=e[r].content.charCodeAt(e[r].content.length-1);break}var k=32;if(c=48&&d<=57&&(p=u=!1),u&&p&&(u=v,p=m),u||p){if(p)for(r=n.length-1;r>=0;r--){var _=n[r];if(n[r].level=0;a--){var c=s[a];if("link_close"!==c.type){if("html_inline"===c.type&&(t=c.content,/^\s]/i.test(t)&&o>0&&o--,K(c.content)&&o++),!(o>0)&&"text"===c.type&&e.md.linkify.test(c.content)){var l=c.content,h=e.md.linkify.match(l),u=[],p=c.level,f=0;h.length>0&&0===h[0].index&&a>0&&"text_special"===s[a-1].type&&(h=h.slice(1));for(var d=0;df){var _=new e.Token("text","",0);_.content=l.slice(f,b),_.level=p,u.push(_)}var C=new e.Token("link_open","a",1);C.attrs=[["href",m]],C.level=p++,C.markup="linkify",C.info="auto",u.push(C);var y=new e.Token("text","",0);y.content=g,y.level=p,u.push(y);var A=new e.Token("link_close","a",-1);A.level=--p,A.markup="linkify",A.info="auto",u.push(A),f=h[d].lastIndex}}if(f=0;t--)"inline"===e.tokens[t].type&&(X.test(e.tokens[t].content)&&re(e.tokens[t].children),Q.test(e.tokens[t].content)&&ne(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(var t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&ie.test(e.tokens[t].content)&&ae(e.tokens[t].children,e)}],["text_join",function(e){for(var t,r,n=e.tokens,i=n.length,s=0;s0&&this.level++,this.tokens.push(n),n},ue.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ue.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!z(this.src.charCodeAt(--e)))return e+1;return e},ue.prototype.skipChars=function(e,t){for(var r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},ue.prototype.getLines=function(e,t,r,n){if(e>=t)return"";for(var i=new Array(t-e),s=0,o=e;or?new Array(c-r+1).join(" ")+this.src.slice(h,a):this.src.slice(h,a)}return i.join("")},ue.prototype.Token=F;var pe=ue;function fe(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function de(e){for(var t=[],r=e.length,n=0,i=e.charCodeAt(n),s=!1,o=0,a="";n=n)return-1;var s=e.src.charCodeAt(i++);if(s<48||s>57)return-1;for(;;){if(i>=n)return-1;if(!((s=e.src.charCodeAt(i++))>=48&&s<=57)){if(41===s||46===s)break;return-1}if(i-r>=10)return-1}return i`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",ge="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",be=new RegExp("^(?:"+me+"|"+ge+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),_e=new RegExp("^(?:"+me+"|"+ge+")"),Ce=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(_e.source+"\\s*$"),/^$/,!1]],ye=[["table",function(e,t,r,n){if(t+2>r)return!1;var i=t+1;if(e.sCount[i]=4)return!1;var s=e.bMarks[i]+e.tShift[i];if(s>=e.eMarks[i])return!1;var o=e.src.charCodeAt(s++);if(124!==o&&45!==o&&58!==o)return!1;if(s>=e.eMarks[i])return!1;var a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a&&!z(a))return!1;if(45===o&&z(a))return!1;for(;s=4)return!1;(h=de(l)).length&&""===h[0]&&h.shift(),h.length&&""===h[h.length-1]&&h.pop();var d=h.length;if(0===d||d!==u.length)return!1;if(n)return!0;var k=e.parentType;e.parentType="table";var v,m=e.md.block.ruler.getRules("blockquote"),g=[t,0];e.push("table_open","table",1).map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(var b=0;b=4)break;if((h=de(l)).length&&""===h[0]&&h.shift(),h.length&&""===h[h.length-1]&&h.pop(),(y+=d-h.length)>65536)break;i===t+2&&(e.push("tbody_open","tbody",1).map=v=[t+2,0]),e.push("tr_open","tr",1).map=[i,i+1];for(var S=0;S=4))break;i=++n}e.line=i;var s=e.push("code_block","code",0);return s.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}],["fence",function(e,t,r,n){var i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>s)return!1;var o=e.src.charCodeAt(i);if(126!==o&&96!==o)return!1;var a=i,c=(i=e.skipChars(i,o))-a;if(c<3)return!1;var l=e.src.slice(a,i),h=e.src.slice(i,s);if(96===o&&h.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;for(var u=t,p=!1;!(++u>=r||(i=a=e.bMarks[u]+e.tShift[u])<(s=e.eMarks[u])&&e.sCount[u]=4||(i=e.skipChars(i,o))-a=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(n)return!0;var a=[],c=[],l=[],h=[],u=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";var f,d=!1;for(f=t;f=(s=e.eMarks[f]))break;if(62!==e.src.charCodeAt(i++)||k){if(d)break;for(var v=!1,m=0,g=u.length;m=s,c.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(_?1:0),l.push(e.sCount[f]),e.sCount[f]=y-b,h.push(e.tShift[f]),e.tShift[f]=i-e.bMarks[f]}}var x=e.blkIndent;e.blkIndent=0;var M=e.push("blockquote_open","blockquote",1);M.markup=">";var S=[t,0];M.map=S,e.md.block.tokenize(e,t,f),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=o,e.parentType=p,S[1]=e.line;for(var w=0;w=4)return!1;var s=e.bMarks[t]+e.tShift[t],o=e.src.charCodeAt(s++);if(42!==o&&45!==o&&95!==o)return!1;for(var a=1;s=4)return!1;if(e.listIndent>=0&&e.sCount[c]-e.listIndent>=4&&e.sCount[c]=e.blkIndent&&(f=!0),(p=ve(e,c))>=0){if(h=!0,o=e.bMarks[c]+e.tShift[c],u=Number(e.src.slice(o,p-1)),f&&1!==u)return!1}else{if(!((p=ke(e,c))>=0))return!1;h=!1}if(f&&e.skipSpaces(p)>=e.eMarks[c])return!1;if(n)return!0;var d=e.src.charCodeAt(p-1),k=e.tokens.length;h?(a=e.push("ordered_list_open","ol",1),1!==u&&(a.attrs=[["start",u]])):a=e.push("bullet_list_open","ul",1);var v=[c,0];a.map=v,a.markup=String.fromCharCode(d);var m=!1,g=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";c=i?1:C-_)>4&&(x=1);var M=_+x;(a=e.push("list_item_open","li",1)).markup=String.fromCharCode(d);var S=[c,0];a.map=S,h&&(a.info=e.src.slice(o,p-1));var w=e.tight,I=e.tShift[c],L=e.sCount[c],z=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=M,e.tight=!0,e.tShift[c]=A-e.bMarks[c],e.sCount[c]=C,A>=i&&e.isEmpty(c+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,c,r,!0),e.tight&&!m||(l=!1),m=e.line-c>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=z,e.tShift[c]=I,e.sCount[c]=L,e.tight=w,(a=e.push("list_item_close","li",-1)).markup=String.fromCharCode(d),c=e.line,S[1]=c,c>=r)break;if(e.sCount[c]=4)break;for(var T=!1,E=0,$=g.length;E<$;E++)if(g[E](e,c,r,!0)){T=!0;break}if(T)break;if(h){if((p=ve(e,c))<0)break;o=e.bMarks[c]+e.tShift[c]}else if((p=ke(e,c))<0)break;if(d!==e.src.charCodeAt(p-1))break}return(a=h?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(d),v[1]=c,e.line=c,e.parentType=b,l&&function(e,t){for(var r=e.level+2,n=t+2,i=e.tokens.length-2;n=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function a(t){var r=e.lineMax;if(t>=r||e.isEmpty(t))return null;var n=!1;if(e.sCount[t]-e.blkIndent>3&&(n=!0),e.sCount[t]<0&&(n=!0),!n){var i=e.md.block.ruler.getRules("reference"),s=e.parentType;e.parentType="reference";for(var o=!1,a=0,c=i.length;a=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;for(var o=e.src.slice(i,s),a=0;a=4)return!1;var o=e.src.charCodeAt(i);if(35!==o||i>=s)return!1;var a=1;for(o=e.src.charCodeAt(++i);35===o&&i6||ii&&z(e.src.charCodeAt(c-1))&&(s=c),e.line=t+1;var l=e.push("heading_open","h"+String(a),1);l.markup="########".slice(0,a),l.map=[t,e.line];var h=e.push("inline","",0);return h.content=e.src.slice(i,s).trim(),h.map=[t,e.line],h.children=[],e.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,r){var n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;var i=e.parentType;e.parentType="paragraph";for(var s,o=0,a=t+1;a3)){if(e.sCount[a]>=e.blkIndent){var c=e.bMarks[a]+e.tShift[a],l=e.eMarks[a];if(c=l)){o=61===s?1:2;break}}if(!(e.sCount[a]<0)){for(var h=!1,u=0,p=n.length;u3||e.sCount[s]<0)){for(var o=!1,a=0,c=n.length;a=r))&&!(e.sCount[o]=s){e.line=r;break}for(var c=e.line,l=!1,h=0;h=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(o=e.line)0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n},Me.prototype.scanDelims=function(e,t){for(var r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32,s=e;s?@[]^_`{|}~-".split("").forEach((function(e){Le[e.charCodeAt(0)]=1}));var Ee={tokenize:function(e,t){var r=e.pos,n=e.src.charCodeAt(r);if(t)return!1;if(126!==n)return!1;var i=e.scanDelims(e.pos,!0),s=i.length,o=String.fromCharCode(n);if(s<2)return!1;s%2&&(e.push("text","",0).content=o,s--);for(var a=0;a=0;r--){var n=t[r];if((95===n.marker||42===n.marker)&&-1!==n.end){var i=t[n.end],s=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===i.token+1,o=String.fromCharCode(n.marker),a=e.tokens[n.token];a.type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?o+o:o,a.content="";var c=e.tokens[i.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?o+o:o,c.content="",s&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--)}}}var Oe={tokenize:function(e,t){var r=e.pos,n=e.src.charCodeAt(r);if(t)return!1;if(95!==n&&42!==n)return!1;for(var i=e.scanDelims(e.pos,42===n),s=0;s\x00-\x20]*)$/,Re=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,je=/^&([a-z][a-z0-9]{1,31});/i;function Ze(e){var t={},r=e.length;if(r)for(var n=0,i=-2,s=[],o=0;oc;l-=s[l]+1){var u=e[l];if(u.marker===a.marker&&u.open&&u.end<0){var p=!1;if((u.close||a.open)&&(u.length+a.length)%3==0&&(u.length%3==0&&a.length%3==0||(p=!0)),!p){var f=l>0&&!e[l-1].open?s[l-1]+1:0;s[o]=o-l+f,s[l]=f,a.open=!1,u.end=o,u.close=!1,h=-1,i=-2;break}}}-1!==h&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=h)}}}var De=[["text",function(e,t){for(var r=e.pos;r0)return!1;var r=e.pos;if(r+3>e.posMax)return!1;if(58!==e.src.charCodeAt(r))return!1;if(47!==e.src.charCodeAt(r+1))return!1;if(47!==e.src.charCodeAt(r+2))return!1;var n=e.pending.match(Ie);if(!n)return!1;var i=n[1],s=e.md.linkify.matchAtStart(e.src.slice(r-i.length));if(!s)return!1;var o=s.url;if(o.length<=i.length)return!1;o=o.replace(/\*+$/,"");var a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);var c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="linkify",c.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);var l=e.push("link_close","a",-1);l.markup="linkify",l.info="auto"}return e.pos+=o.length-i.length,!0}],["newline",function(e,t){var r=e.pos;if(10!==e.src.charCodeAt(r))return!1;var n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(var s=n-1;s>=1&&32===e.pending.charCodeAt(s-1);)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r=n)return!1;var i=e.src.charCodeAt(r);if(10===i){for(t||e.push("hardbreak","br",0),r++;r=55296&&i<=56319&&r+1=56320&&o<=57343&&(s+=e.src[r+1],r++)}var a="\\"+s;if(!t){var c=e.push("text_special","",0);i<256&&0!==Le[i]?c.content=s:c.content=a,c.markup=a,c.info="escape"}return e.pos=r+1,!0}],["backticks",function(e,t){var r=e.pos;if(96!==e.src.charCodeAt(r))return!1;var n=r;r++;for(var i=e.posMax;r=u)return!1;if(c=d,(i=e.md.helpers.parseLinkDestination(e.src,d,e.posMax)).ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?d=i.pos:o="",c=d;d=u||41!==e.src.charCodeAt(d))&&(l=!0),d++}if(l){if(void 0===e.env.references)return!1;if(d=0?n=e.src.slice(c,d++):d=f+1):d=f+1,n||(n=e.src.slice(p,f)),!(s=e.env.references[O(n)]))return e.pos=h,!1;o=s.href,a=s.title}if(!t){e.pos=p,e.posMax=f;var k=[["href",o]];e.push("link_open","a",1).attrs=k,a&&k.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=d,e.posMax=u,!0}],["image",function(e,t){var r,n,i,s,o,a,c,l,h="",u=e.pos,p=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;var f=e.pos+2,d=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(d<0)return!1;if((s=d+1)=p)return!1;for(l=s,(a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(h=e.md.normalizeLink(a.str),e.md.validateLink(h)?s=a.pos:h=""),l=s;s=p||41!==e.src.charCodeAt(s))return e.pos=u,!1;s++}else{if(void 0===e.env.references)return!1;if(s=0?i=e.src.slice(l,s++):s=d+1):s=d+1,i||(i=e.src.slice(f,d)),!(o=e.env.references[O(i)]))return e.pos=u,!1;h=o.href,c=o.title}if(!t){n=e.src.slice(f,d);var k=[];e.md.inline.parse(n,e.md,e.env,k);var v=e.push("image","img",0),m=[["src",h],["alt",""]];v.attrs=m,v.children=k,v.content=n,c&&m.push(["title",c])}return e.pos=s,e.posMax=p,!0}],["autolink",function(e,t){var r=e.pos;if(60!==e.src.charCodeAt(r))return!1;for(var n=e.pos,i=e.posMax;;){if(++r>=i)return!1;var s=e.src.charCodeAt(r);if(60===s)return!1;if(62===s)break}var o=e.src.slice(n+1,r);if(Pe.test(o)){var a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){var c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="autolink",c.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);var l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=o.length+2,!0}if(qe.test(o)){var h=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(h))return!1;if(!t){var u=e.push("link_open","a",1);u.attrs=[["href",h]],u.markup="autolink",u.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);var p=e.push("link_close","a",-1);p.markup="autolink",p.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;var r=e.posMax,n=e.pos;if(60!==e.src.charCodeAt(n)||n+2>=r)return!1;var i=e.src.charCodeAt(n+1);if(33!==i&&63!==i&&47!==i&&!function(e){var t=32|e;return t>=97&&t<=122}(i))return!1;var s,o=e.src.slice(n).match(be);if(!o)return!1;if(!t){var a=e.push("html_inline","",0);a.content=o[0],s=a.content,/^\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}],["entity",function(e,t){var r=e.pos,n=e.posMax;if(38!==e.src.charCodeAt(r))return!1;if(r+1>=n)return!1;if(35===e.src.charCodeAt(r+1)){var i=e.src.slice(r).match(Re);if(i){if(!t){var s="x"===i[1][0].toLowerCase()?parseInt(i[1].slice(1),16):parseInt(i[1],10),o=e.push("text_special","",0);o.content=v(s)?m(s):m(65533),o.markup=i[0],o.info="entity"}return e.pos+=i[0].length,!0}}else{var a=e.src.slice(r).match(je);if(a){var c=(0,l.Gz)(a[0]);if(c!==a[0]){if(!t){var h=e.push("text_special","",0);h.content=c,h.markup=a[0],h.info="entity"}return e.pos+=a[0].length,!0}}}return!1}]],Ne=[["balance_pairs",function(e){var t=e.tokens_meta,r=e.tokens_meta.length;Ze(e.delimiters);for(var n=0;n0&&n++,"text"===i[t].type&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,s[t]=e.pos}else e.pos=s[t]},Be.prototype.tokenize=function(e){for(var t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(o){if(e.pos>=n)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Be.prototype.parse=function(e,t,r,n){var i=new this.State(e,t,r,n);this.tokenize(i);for(var s=this.ruler2.getRules(""),o=s.length,a=0;a=0))try{t.hostname=Fe.Ay.toASCII(t.hostname)}catch(e){}return s.encode(s.format(t))}function Xe(e){var t=s.parse(e,!0);if(t.hostname&&(!t.protocol||Ke.indexOf(t.protocol)>=0))try{t.hostname=Fe.Ay.toUnicode(t.hostname)}catch(e){}return s.decode(s.format(t),s.decode.defaultChars+"%")}function Ye(e,t){if(!(this instanceof Ye))return new Ye(e,t);t||u(e)||(t=e||{},e="default"),this.inline=new Ge,this.block=new xe,this.core=new he,this.renderer=new N,this.linkify=new We.A,this.validateLink=Ve,this.normalizeLink=Qe,this.normalizeLinkText=Xe,this.utils=n,this.helpers=d({},i),this.options={},this.configure(e),t&&this.set(t)}Ye.prototype.set=function(e){return d(this.options,e),this},Ye.prototype.configure=function(e){var t=this;if(u(e)){var r=e;if(!(e=Ue[r]))throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)})),this},Ye.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},Ye.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},Ye.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Ye.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},Ye.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ye.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},Ye.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var et=Ye}}]);