adaptivecards-react
Version:
React.js Adaptive Cards Javascript library for HTML Clients
2 lines • 362 kB
JavaScript
/*! For license information please see adaptivecards-react.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React")):"function"==typeof define&&define.amd?define(["React"],t):"object"==typeof exports?exports.AdaptiveCards=t(require("React")):e.AdaptiveCards=t(e.React)}(this,(function(e){return(()=>{var t={8337:(e,t,r)=>{"use strict";function n(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e}function i(e){return Object.prototype.toString.call(e)}function o(e){return"[object Function]"===i(e)}function s(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},l={"http:":{validate:function(e,t,r){var n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){var n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function c(e){var t=e.re=r(6066)(e.__opts__),n=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var r=e.__schemas__[t];if(null!==r){var n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===i(r))return"[object RegExp]"!==i(r.validate)?o(r.validate)?n.validate=r.validate:u(t,r):n.validate=function(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(o(r.normalize)?n.normalize=r.normalize:r.normalize?u(t,r):n.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(r)?u(t,r):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function h(e,t){var r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function d(e,t){if(!(this instanceof d))return new d(e,t);var r;t||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=n({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},d.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,n,i,o,s,a,l;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(i=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(n=e.match(this.re.email_fuzzy))&&(o=n.index+n[1].length,s=n.index+n[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},d.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(h(this,t)),t=this.__last_index__);for(var n=t?e.slice(t):e;this.test(n);)r.push(h(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,r){return e!==r[t-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d},6066:(e,t,r)=>{"use strict";e.exports=function(e){var t={};return t.src_Any=r(9369).source,t.src_Cc=r(9413).source,t.src_Z=r(5045).source,t.src_P=r(3189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},9980:(e,t,r)=>{"use strict";e.exports=r(7024)},6233:(e,t,r)=>{"use strict";e.exports=r(9323)},813:e=>{"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},1947:e=>{"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",n=new RegExp("^(?:"+t+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=new RegExp("^(?:"+t+"|"+r+")");e.exports.n=n,e.exports.q=i},7022:(e,t,r)=>{"use strict";var n=Object.prototype.hasOwnProperty;function i(e,t){return n.call(e,t)}function o(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,l=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),u=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,c=r(6233),p=/[&<>"]/,h=/[&<>"]/g,d={"&":"&","<":"<",">":">",'"':"""};function f(e){return d[e]}var y=/[.?*+^$[\]\\(){}|-]/g,g=r(3189);t.lib={},t.lib.mdurl=r(8765),t.lib.ucmicro=r(4205),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=i,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(l,(function(e,t,r){return t||function(e,t){var r=0;return i(c,t)?c[t]:35===t.charCodeAt(0)&&u.test(t)&&o(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(r):e}(e,r)}))},t.isValidEntityCode=o,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(h,f):e},t.arrayReplaceAt=function(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(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},t.isMdAsciiPunct=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}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(y,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}},1685:(e,t,r)=>{"use strict";t.parseLinkLabel=r(3595),t.parseLinkDestination=r(2548),t.parseLinkTitle=r(8040)},2548:(e,t,r)=>{"use strict";var n=r(7022).unescapeAll;e.exports=function(e,t,r){var i,o,s=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<r;){if(10===(i=e.charCodeAt(t)))return a;if(60===i)return a;if(62===i)return a.pos=t+1,a.str=n(e.slice(s+1,t)),a.ok=!0,a;92===i&&t+1<r?t+=2:t++}return a}for(o=0;t<r&&32!==(i=e.charCodeAt(t))&&!(i<32||127===i);)if(92===i&&t+1<r){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===i&&++o>32)return a;if(41===i){if(0===o)break;o--}t++}return s===t||0!==o||(a.str=n(e.slice(s,t)),a.lines=0,a.pos=t,a.ok=!0),a}},3595:e=>{"use strict";e.exports=function(e,t,r){var n,i,o,s,a=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,n=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--n){i=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===o)if(s===e.pos-1)n++;else if(r)return e.pos=u,-1}return i&&(a=e.pos),e.pos=u,a}},8040:(e,t,r)=>{"use strict";var n=r(7022).unescapeAll;e.exports=function(e,t,r){var i,o,s=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=r)return l;if(34!==(o=e.charCodeAt(t))&&39!==o&&40!==o)return l;for(t++,40===o&&(o=41);t<r;){if((i=e.charCodeAt(t))===o)return l.pos=t+1,l.lines=s,l.str=n(e.slice(a+1,t)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?s++:92===i&&t+1<r&&(t++,10===e.charCodeAt(t)&&s++),t++}return l}},7024:(e,t,r)=>{"use strict";var n=r(7022),i=r(1685),o=r(7529),s=r(7346),a=r(2471),l=r(4485),u=r(8337),c=r(8765),p=r(8770),h={default:r(4218),zero:r(873),commonmark:r(6895)},d=/^(vbscript|javascript|file|data):/,f=/^data:image\/(gif|png|jpeg|webp);/;function y(e){var t=e.trim().toLowerCase();return!d.test(t)||!!f.test(t)}var g=["http:","https:","mailto:"];function m(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toASCII(t.hostname)}catch(e){}return c.encode(c.format(t))}function v(e){var t=c.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(e){}return c.decode(c.format(t),c.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||n.isString(e)||(t=e||{},e="default"),this.inline=new l,this.block=new a,this.core=new s,this.renderer=new o,this.linkify=new u,this.validateLink=y,this.normalizeLink=m,this.normalizeLinkText=v,this.utils=n,this.helpers=n.assign({},i),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return n.assign(this.options,e),this},b.prototype.configure=function(e){var t,r=this;if(n.isString(e)&&!(e=h[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.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},b.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},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.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},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},2471:(e,t,r)=>{"use strict";var n=r(9580),i=[["table",r(1785),["paragraph","reference"]],["code",r(8768)],["fence",r(3542),["paragraph","reference","blockquote","list"]],["blockquote",r(5258),["paragraph","reference","blockquote","list"]],["hr",r(5634),["paragraph","reference","blockquote","list"]],["list",r(8532),["paragraph","reference","blockquote"]],["reference",r(3804)],["html_block",r(6329),["paragraph","reference","blockquote"]],["heading",r(1630),["paragraph","reference","blockquote"]],["lheading",r(6850)],["paragraph",r(6864)]];function o(){this.ruler=new n;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1],{alt:(i[e][2]||[]).slice()})}o.prototype.tokenize=function(e,t,r){for(var n,i=this.ruler.getRules(""),o=i.length,s=t,a=!1,l=e.md.options.maxNesting;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=l){e.line=r;break}for(n=0;n<o&&!i[n](e,s,r,!1);n++);e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<r&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},o.prototype.parse=function(e,t,r,n){var i;e&&(i=new this.State(e,t,r,n),this.tokenize(i,i.line,i.lineMax))},o.prototype.State=r(2948),e.exports=o},7346:(e,t,r)=>{"use strict";var n=r(9580),i=[["normalize",r(4129)],["block",r(898)],["inline",r(9827)],["linkify",r(7830)],["replacements",r(2834)],["smartquotes",r(8450)]];function o(){this.ruler=new n;for(var e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1])}o.prototype.process=function(e){var t,r,n;for(t=0,r=(n=this.ruler.getRules("")).length;t<r;t++)n[t](e)},o.prototype.State=r(6480),e.exports=o},4485:(e,t,r)=>{"use strict";var n=r(9580),i=[["text",r(9941)],["newline",r(3905)],["escape",r(1917)],["backticks",r(9755)],["strikethrough",r(4814).w],["emphasis",r(7894).w],["link",r(1727)],["image",r(3006)],["autolink",r(3420)],["html_inline",r(1779)],["entity",r(9391)]],o=[["balance_pairs",r(9354)],["strikethrough",r(4814).g],["emphasis",r(7894).g],["text_collapse",r(8996)]];function s(){var e;for(this.ruler=new n,e=0;e<i.length;e++)this.ruler.push(i[e][0],i[e][1]);for(this.ruler2=new n,e=0;e<o.length;e++)this.ruler2.push(o[e][0],o[e][1])}s.prototype.skipToken=function(e){var t,r,n=e.pos,i=this.ruler.getRules(""),o=i.length,s=e.md.options.maxNesting,a=e.cache;if(void 0===a[n]){if(e.level<s)for(r=0;r<o&&(e.level++,t=i[r](e,!0),e.level--,!t);r++);else e.pos=e.posMax;t||e.pos++,a[n]=e.pos}else e.pos=a[n]},s.prototype.tokenize=function(e){for(var t,r,n=this.ruler.getRules(""),i=n.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(e.level<s)for(r=0;r<i&&!(t=n[r](e,!1));r++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},s.prototype.parse=function(e,t,r,n){var i,o,s,a=new this.State(e,t,r,n);for(this.tokenize(a),s=(o=this.ruler2.getRules("")).length,i=0;i<s;i++)o[i](a)},s.prototype.State=r(670),e.exports=s},6895:e=>{"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}},4218:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}},873:e=>{"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}},7529:(e,t,r)=>{"use strict";var n=r(7022).assign,i=r(7022).unescapeAll,o=r(7022).escapeHtml,s={};function a(){this.rules=n({},s)}s.code_inline=function(e,t,r,n,i){var s=e[t];return"<code"+i.renderAttrs(s)+">"+o(e[t].content)+"</code>"},s.code_block=function(e,t,r,n,i){var s=e[t];return"<pre"+i.renderAttrs(s)+"><code>"+o(e[t].content)+"</code></pre>\n"},s.fence=function(e,t,r,n,s){var a,l,u,c,p,h=e[t],d=h.info?i(h.info).trim():"",f="",y="";return d&&(f=(u=d.split(/(\s+)/g))[0],y=u.slice(2).join("")),0===(a=r.highlight&&r.highlight(h.content,f,y)||o(h.content)).indexOf("<pre")?a+"\n":d?(l=h.attrIndex("class"),c=h.attrs?h.attrs.slice():[],l<0?c.push(["class",r.langPrefix+f]):(c[l]=c[l].slice(),c[l][1]+=" "+r.langPrefix+f),p={attrs:c},"<pre><code"+s.renderAttrs(p)+">"+a+"</code></pre>\n"):"<pre><code"+s.renderAttrs(h)+">"+a+"</code></pre>\n"},s.image=function(e,t,r,n,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(e,t,r)},s.hardbreak=function(e,t,r){return r.xhtmlOut?"<br />\n":"<br>\n"},s.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"<br />\n":"<br>\n":"\n"},s.text=function(e,t){return o(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,r,n;if(!e.attrs)return"";for(n="",t=0,r=e.attrs.length;t<r;t++)n+=" "+o(e.attrs[t][0])+'="'+o(e.attrs[t][1])+'"';return n},a.prototype.renderToken=function(e,t,r){var n,i="",o=!1,s=e[t];return s.hidden?"":(s.block&&-1!==s.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===s.nesting?"</":"<")+s.tag,i+=this.renderAttrs(s),0===s.nesting&&r.xhtmlOut&&(i+=" /"),s.block&&(o=!0,1===s.nesting&&t+1<e.length&&("inline"===(n=e[t+1]).type||n.hidden||-1===n.nesting&&n.tag===s.tag)&&(o=!1)),i+=o?">\n":">")},a.prototype.renderInline=function(e,t,r){for(var n,i="",o=this.rules,s=0,a=e.length;s<a;s++)void 0!==o[n=e[s].type]?i+=o[n](e,s,t,r,this):i+=this.renderToken(e,s,t);return i},a.prototype.renderInlineAsText=function(e,t,r){for(var n="",i=0,o=e.length;i<o;i++)"text"===e[i].type?n+=e[i].content:"image"===e[i].type?n+=this.renderInlineAsText(e[i].children,t,r):"softbreak"===e[i].type&&(n+="\n");return n},a.prototype.render=function(e,t,r){var n,i,o,s="",a=this.rules;for(n=0,i=e.length;n<i;n++)"inline"===(o=e[n].type)?s+=this.renderInline(e[n].children,t,r):void 0!==a[o]?s+=a[e[n].type](e,n,t,r,this):s+=this.renderToken(e,n,t,r);return s},e.exports=a},9580:e=>{"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(r){r.enabled&&(t&&r.alt.indexOf(t)<0||e.__cache__[t].push(r.fn))}))}))},t.prototype.at=function(e,t,r){var n=this.__find__(e),i=r||{};if(-1===n)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,r,n){var i=this.__find__(e),o=n||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!0,r.push(e)}),this),this.__cache__=null,r},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach((function(e){var n=this.__find__(e);if(n<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[n].enabled=!1,r.push(e)}),this),this.__cache__=null,r},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t},5258:(e,t,r)=>{"use strict";var n=r(7022).isSpace;e.exports=function(e,t,r,i){var o,s,a,l,u,c,p,h,d,f,y,g,m,v,b,_,C,S,A,w,E=e.lineMax,x=e.bMarks[t]+e.tShift[t],P=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(x++))return!1;if(i)return!0;for(l=d=e.sCount[t]+1,32===e.src.charCodeAt(x)?(x++,l++,d++,o=!1,_=!0):9===e.src.charCodeAt(x)?(_=!0,(e.bsCount[t]+d)%4==3?(x++,l++,d++,o=!1):o=!0):_=!1,f=[e.bMarks[t]],e.bMarks[t]=x;x<P&&(s=e.src.charCodeAt(x),n(s));)9===s?d+=4-(d+e.bsCount[t]+(o?1:0))%4:d++,x++;for(y=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(_?1:0),c=x>=P,v=[e.sCount[t]],e.sCount[t]=d-l,b=[e.tShift[t]],e.tShift[t]=x-e.bMarks[t],S=e.md.block.ruler.getRules("blockquote"),m=e.parentType,e.parentType="blockquote",h=t+1;h<r&&(w=e.sCount[h]<e.blkIndent,!((x=e.bMarks[h]+e.tShift[h])>=(P=e.eMarks[h])));h++)if(62!==e.src.charCodeAt(x++)||w){if(c)break;for(C=!1,a=0,u=S.length;a<u;a++)if(S[a](e,h,r,!0)){C=!0;break}if(C){e.lineMax=h,0!==e.blkIndent&&(f.push(e.bMarks[h]),y.push(e.bsCount[h]),b.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}f.push(e.bMarks[h]),y.push(e.bsCount[h]),b.push(e.tShift[h]),v.push(e.sCount[h]),e.sCount[h]=-1}else{for(l=d=e.sCount[h]+1,32===e.src.charCodeAt(x)?(x++,l++,d++,o=!1,_=!0):9===e.src.charCodeAt(x)?(_=!0,(e.bsCount[h]+d)%4==3?(x++,l++,d++,o=!1):o=!0):_=!1,f.push(e.bMarks[h]),e.bMarks[h]=x;x<P&&(s=e.src.charCodeAt(x),n(s));)9===s?d+=4-(d+e.bsCount[h]+(o?1:0))%4:d++,x++;c=x>=P,y.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(_?1:0),v.push(e.sCount[h]),e.sCount[h]=d-l,b.push(e.tShift[h]),e.tShift[h]=x-e.bMarks[h]}for(g=e.blkIndent,e.blkIndent=0,(A=e.push("blockquote_open","blockquote",1)).markup=">",A.map=p=[t,0],e.md.block.tokenize(e,t,h),(A=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=E,e.parentType=m,p[1]=e.line,a=0;a<b.length;a++)e.bMarks[a+t]=f[a],e.tShift[a+t]=b[a],e.sCount[a+t]=v[a],e.bsCount[a+t]=y[a];return e.blkIndent=g,!0}},8768:e=>{"use strict";e.exports=function(e,t,r){var n,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=n=t+1;n<r;)if(e.isEmpty(n))n++;else{if(!(e.sCount[n]-e.blkIndent>=4))break;i=++n}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}},3542:e=>{"use strict";e.exports=function(e,t,r,n){var i,o,s,a,l,u,c,p=!1,h=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(h+3>d)return!1;if(126!==(i=e.src.charCodeAt(h))&&96!==i)return!1;if(l=h,(o=(h=e.skipChars(h,i))-l)<3)return!1;if(c=e.src.slice(l,h),s=e.src.slice(h,d),96===i&&s.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;for(a=t;!(++a>=r||(h=l=e.bMarks[a]+e.tShift[a])<(d=e.eMarks[a])&&e.sCount[a]<e.blkIndent);)if(e.src.charCodeAt(h)===i&&!(e.sCount[a]-e.blkIndent>=4||(h=e.skipChars(h,i))-l<o||(h=e.skipSpaces(h))<d)){p=!0;break}return o=e.sCount[t],e.line=a+(p?1:0),(u=e.push("fence","code",0)).info=s,u.content=e.getLines(t+1,a,o,!0),u.markup=c,u.map=[t,e.line],!0}},1630:(e,t,r)=>{"use strict";var n=r(7022).isSpace;e.exports=function(e,t,r,i){var o,s,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(u))||u>=c)return!1;for(s=1,o=e.src.charCodeAt(++u);35===o&&u<c&&s<=6;)s++,o=e.src.charCodeAt(++u);return!(s>6||u<c&&!n(o)||(i||(c=e.skipSpacesBack(c,u),(a=e.skipCharsBack(c,35,u))>u&&n(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,(l=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),l.map=[t,e.line],(l=e.push("inline","",0)).content=e.src.slice(u,c).trim(),l.map=[t,e.line],l.children=[],(l=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s)),0))}},5634:(e,t,r)=>{"use strict";var n=r(7022).isSpace;e.exports=function(e,t,r,i){var o,s,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(u++))&&45!==o&&95!==o)return!1;for(s=1;u<c;){if((a=e.src.charCodeAt(u++))!==o&&!n(a))return!1;a===o&&s++}return!(s<3||(i||(e.line=t+1,(l=e.push("hr","hr",0)).map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(o))),0))}},6329:(e,t,r)=>{"use strict";var n=r(813),i=r(1947).q,o=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+n.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(i.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,r,n){var i,s,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(l=e.src.slice(u,c),i=0;i<o.length&&!o[i][0].test(l);i++);if(i===o.length)return!1;if(n)return o[i][2];if(s=t+1,!o[i][1].test(l))for(;s<r&&!(e.sCount[s]<e.blkIndent);s++)if(u=e.bMarks[s]+e.tShift[s],c=e.eMarks[s],l=e.src.slice(u,c),o[i][1].test(l)){0!==l.length&&s++;break}return e.line=s,(a=e.push("html_block","",0)).map=[t,s],a.content=e.getLines(t,s,e.blkIndent,!0),!0}},6850:e=>{"use strict";e.exports=function(e,t,r){var n,i,o,s,a,l,u,c,p,h,d=t+1,f=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(h=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d])<(u=e.eMarks[d])&&(45===(p=e.src.charCodeAt(l))||61===p)&&(l=e.skipChars(l,p),(l=e.skipSpaces(l))>=u)){c=61===p?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,s=f.length;o<s;o++)if(f[o](e,d,r,!0)){i=!0;break}if(i)break}}return!!c&&(n=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(a=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(p),a.map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line-1],a.children=[],(a=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(p),e.parentType=h,!0)}},8532:(e,t,r)=>{"use strict";var n=r(7022).isSpace;function i(e,t){var r,i,o,s;return i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],42!==(r=e.src.charCodeAt(i++))&&45!==r&&43!==r||i<o&&(s=e.src.charCodeAt(i),!n(s))?-1:i}function o(e,t){var r,i=e.bMarks[t]+e.tShift[t],o=i,s=e.eMarks[t];if(o+1>=s)return-1;if((r=e.src.charCodeAt(o++))<48||r>57)return-1;for(;;){if(o>=s)return-1;if(!((r=e.src.charCodeAt(o++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(o-i>=10)return-1}return o<s&&(r=e.src.charCodeAt(o),!n(r))?-1:o}e.exports=function(e,t,r,n){var s,a,l,u,c,p,h,d,f,y,g,m,v,b,_,C,S,A,w,E,x,P,k,I,T,V,O,D,z=!1,R=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(n&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(z=!0),(k=o(e,t))>=0){if(h=!0,T=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(T,k-1)),z&&1!==v)return!1}else{if(!((k=i(e,t))>=0))return!1;h=!1}if(z&&e.skipSpaces(k)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(k-1),n)return!0;for(g=e.tokens.length,h?(D=e.push("ordered_list_open","ol",1),1!==v&&(D.attrs=[["start",v]])):D=e.push("bullet_list_open","ul",1),D.map=y=[t,0],D.markup=String.fromCharCode(m),_=t,I=!1,O=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";_<r;){for(P=k,b=e.eMarks[_],p=C=e.sCount[_]+k-(e.bMarks[t]+e.tShift[t]);P<b;){if(9===(s=e.src.charCodeAt(P)))C+=4-(C+e.bsCount[_])%4;else{if(32!==s)break;C++}P++}if((c=(a=P)>=b?1:C-p)>4&&(c=1),u=p+c,(D=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),D.map=d=[t,0],h&&(D.info=e.src.slice(T,k-1)),x=e.tight,E=e.tShift[t],w=e.sCount[t],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[t]=a-e.bMarks[t],e.sCount[t]=C,a>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,t,r,!0),e.tight&&!I||(R=!1),I=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[t]=E,e.sCount[t]=w,e.tight=x,(D=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),_=t=e.line,d[1]=_,a=e.bMarks[t],_>=r)break;if(e.sCount[_]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(V=!1,l=0,f=O.length;l<f;l++)if(O[l](e,_,r,!0)){V=!0;break}if(V)break;if(h){if((k=o(e,_))<0)break;T=e.bMarks[_]+e.tShift[_]}else if((k=i(e,_))<0)break;if(m!==e.src.charCodeAt(k-1))break}return(D=h?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),y[1]=_,e.line=_,e.parentType=A,R&&function(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,g),!0}},6864:e=>{"use strict";e.exports=function(e,t){var r,n,i,o,s,a,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(n=!1,i=0,o=u.length;i<o;i++)if(u[i](e,l,c,!0)){n=!0;break}if(n)break}return r=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(s=e.push("paragraph_open","p",1)).map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line],s.children=[],s=e.push("paragraph_close","p",-1),e.parentType=a,!0}},3804:(e,t,r)=>{"use strict";var n=r(7022).normalizeReference,i=r(7022).isSpace;e.exports=function(e,t,r,o){var s,a,l,u,c,p,h,d,f,y,g,m,v,b,_,C,S=0,A=e.bMarks[t]+e.tShift[t],w=e.eMarks[t],E=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(A))return!1;for(;++A<w;)if(93===e.src.charCodeAt(A)&&92!==e.src.charCodeAt(A-1)){if(A+1===w)return!1;if(58!==e.src.charCodeAt(A+1))return!1;break}for(u=e.lineMax,_=e.md.block.ruler.getRules("reference"),y=e.parentType,e.parentType="reference";E<u&&!e.isEmpty(E);E++)if(!(e.sCount[E]-e.blkIndent>3||e.sCount[E]<0)){for(b=!1,p=0,h=_.length;p<h;p++)if(_[p](e,E,u,!0)){b=!0;break}if(b)break}for(w=(v=e.getLines(t,E,e.blkIndent,!1).trim()).length,A=1;A<w;A++){if(91===(s=v.charCodeAt(A)))return!1;if(93===s){f=A;break}(10===s||92===s&&++A<w&&10===v.charCodeAt(A))&&S++}if(f<0||58!==v.charCodeAt(f+1))return!1;for(A=f+2;A<w;A++)if(10===(s=v.charCodeAt(A)))S++;else if(!i(s))break;if(!(g=e.md.helpers.parseLinkDestination(v,A,w)).ok)return!1;if(c=e.md.normalizeLink(g.str),!e.md.validateLink(c))return!1;for(a=A=g.pos,l=S+=g.lines,m=A;A<w;A++)if(10===(s=v.charCodeAt(A)))S++;else if(!i(s))break;for(g=e.md.helpers.parseLinkTitle(v,A,w),A<w&&m!==A&&g.ok?(C=g.str,A=g.pos,S+=g.lines):(C="",A=a,S=l);A<w&&(s=v.charCodeAt(A),i(s));)A++;if(A<w&&10!==v.charCodeAt(A)&&C)for(C="",A=a,S=l;A<w&&(s=v.charCodeAt(A),i(s));)A++;return!(A<w&&10!==v.charCodeAt(A)||!(d=n(v.slice(1,f)))||(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[d]&&(e.env.references[d]={title:C,href:c}),e.parentType=y,e.line=t+S+1),0))}},2948:(e,t,r)=>{"use strict";var n=r(5872),i=r(7022).isSpace;function o(e,t,r,n){var o,s,a,l,u,c,p,h;for(this.src=e,this.md=t,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",h=!1,a=l=c=p=0,u=(s=this.src).length;l<u;l++){if(o=s.charCodeAt(l),!h){if(i(o)){c++,9===o?p+=4-p%4:p++;continue}h=!0}10!==o&&l!==u-1||(10!==o&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(p),this.bsCount.push(0),h=!1,c=0,p=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}o.prototype.push=function(e,t,r){var i=new n(e,t,r);return i.block=!0,r<0&&this.level--,i.level=this.level,r>0&&this.level++,this.tokens.push(i),i},o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},o.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},o.prototype.skipSpaces=function(e){for(var t,r=this.src.length;e<r&&(t=this.src.charCodeAt(e),i(t));e++);return e},o.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!i(this.src.charCodeAt(--e)))return e+1;return e},o.prototype.skipChars=function(e,t){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===t;e++);return e},o.prototype.skipCharsBack=function(e,t,r){if(e<=r)return e;for(;e>r;)if(t!==this.src.charCodeAt(--e))return e+1;return e},o.prototype.getLines=function(e,t,r,n){var o,s,a,l,u,c,p,h=e;if(e>=t)return"";for(c=new Array(t-e),o=0;h<t;h++,o++){for(s=0,p=l=this.bMarks[h],u=h+1<t||n?this.eMarks[h]+1:this.eMarks[h];l<u&&s<r;){if(a=this.src.charCodeAt(l),i(a))9===a?s+=4-(s+this.bsCount[h])%4:s++;else{if(!(l-p<this.tShift[h]))break;s++}l++}c[o]=s>r?new Array(s-r+1).join(" ")+this.src.slice(l,u):this.src.slice(l,u)}return c.join("")},o.prototype.Token=n,e.exports=o},1785:(e,t,r)=>{"use strict";var n=r(7022).isSpace;function i(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.substr(r,n-r)}function o(e){var t,r=[],n=0,i=e.length,o=!1,s=0,a="";for(t=e.charCodeAt(n);n<i;)124===t&&(o?(a+=e.substring(s,n-1),s=n):(r.push(a+e.substring(s,n)),a="",s=n+1)),o=92===t,n++,t=e.charCodeAt(n);return r.push(a+e.substring(s)),r}e.exports=function(e,t,r,s){var a,l,u,c,p,h,d,f,y,g,m,v,b,_,C,S,A,w;if(t+2>r)return!1;if(h=t+1,e.sCount[h]<e.blkIndent)return!1;if(e.sCount[h]-e.blkIndent>=4)return!1;if((u=e.bMarks[h]+e.tShift[h])>=e.eMarks[h])return!1;if(124!==(A=e.src.charCodeAt(u++))&&45!==A&&58!==A)return!1;if(u>=e.eMarks[h])return!1;if(124!==(w=e.src.charCodeAt(u++))&&45!==w&&58!==w&&!n(w))return!1;if(45===A&&n(w))return!1;for(;u<e.eMarks[h];){if(124!==(a=e.src.charCodeAt(u))&&45!==a&&58!==a&&!n(a))return!1;u++}for(d=(l=i(e,t+1)).split("|"),g=[],c=0;c<d.length;c++){if(!(m=d[c].trim())){if(0===c||c===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;58===m.charCodeAt(m.length-1)?g.push(58===m.charCodeAt(0)?"center":"right"):58===m.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=i(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((d=o(l)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),0===(f=d.length)||f!==g.length)return!1;if(s)return!0;for(_=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),(y=e.push("table_open","table",1)).map=v=[t,0],(y=e.push("thead_open","thead",1)).map=[t,t+1],(y=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<d.length;c++)y=e.push("th_open","th",1),g[c]&&(y.attrs=[["style","text-align:"+g[c]]]),(y=e.push("inline","",0)).content=d[c].trim(),y.children=[],y=e.push("th_close","th",-1);for(y=e.push("tr_close","tr",-1),y=e.push("thead_close","thead",-1),h=t+2;h<r&&!(e.sCount[h]<e.blkIndent);h++){for(C=!1,c=0,p=S.length;c<p;c++)if(S[c](e,h,r,!0)){C=!0;break}if(C)break;if(!(l=i(e,h).trim()))break;if(e.sCount[h]-e.blkIndent>=4)break;for((d=o(l)).length&&""===d[0]&&d.shift(),d.length&&""===d[d.length-1]&&d.pop(),h===t+2&&((y=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(y=e.push("tr_open","tr",1)).map=[h,h+1],c=0;c<f;c++)y=e.push("td_open","td",1),g[c]&&(y.attrs=[["style","text-align:"+g[c]]]),(y=e.push("inline","",0)).content=d[c]?d[c].trim():"",y.children=[],y=e.push("td_close","td",-1);y=e.push("tr_close","tr",-1)}return b&&(y=e.push("tbody_close","tbody",-1),b[1]=h),y=e.push("table_close","table",-1),v[1]=h,e.parentType=_,e.line=h,!0}},898:e=>{"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}},9827:e=>{"use strict";e.exports=function(e){var t,r,n,i=e.tokens;for(r=0,n=i.length;r<n;r++)"inline"===(t=i[r]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}},7830:(e,t,r)=>{"use strict";var n=r(7022).arrayReplaceAt;function i(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var t,r,o,s,a,l,u,c,p,h,d,f,y,g,m,v,b,_,C=e.tokens;if(e.md.options.linkify)for(r=0,o=C.length;r<o;r++)if("inline"===C[r].type&&e.md.linkify.pretest(C[r].content))for(y=0,t=(s=C[r].children).length-1;t>=0;t--)if("link_close"!==(l=s[t]).type){if("html_inline"===l.type&&(_=l.content,/^<a[>\s]/i.test(_)&&y>0&&y--,i(l.content)&&y++),!(y>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(p=l.content,b=e.md.linkify.match(p),u=[],f=l.level,d=0,c=0;c<b.length;c++)g=b[c].url,m=e.md.normalizeLink(g),e.md.validateLink(m)&&(v=b[c].text,v=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(h=b[c].index)>d&&((a=new e.Token("text","",0)).content=p.slice(d,h),a.level=f,u.push(a)),(a=new e.Token("link_open","a",1)).attrs=[["href",m]],a.level=f++,a.markup="linkify",a.info="auto",u.push(a),(a=new e.Token("text","",0)).content=v,a.level=f,u.push(a),(a=new e.Token("link_close","a",-1)).level=--f,a.markup="linkify",a.info="auto",u.push(a),d=b[c].lastIndex);d<p.length&&((a=new e.Token("text","",0)).content=p.slice(d),a.level=f,u.push(a)),C[r].children=s=n(s,t,u)}}else for(t--;s[t].level!==l.level&&"link_open"!==s[t].type;)t--}},4129:e=>{"use strict";var t=/\r\n?|\n/g,r=/\0/g;e.exports=function(e){var n;n=(n=e.src.replace(t,"\n")).replace(r,"�"),e.src=n}},2834:e=>{"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,r=/\((c|tm|r|p)\)/i,n=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function s(e){var t,r,i=0;for(t=e.length-1;t>=0;t--)"text"!==(r=e[t]).type||i||(r.content=r.content.replace(n,o)),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}function a(e){var r,n,i=0;for(r=e.length-1;r>=0;r--)"text"!==(n=e[r]).type||i||t.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&&i--,"link_close"===n.type&&"auto"===n.info&&i++}e.exports=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)"inline"===e.tokens[n].type&&(r.test(e.tokens[n].content)&&s(e.tokens[n].children),t.test(e.tokens[n].content)&&a(e.tokens[n].children))}},8450:(e,t,r)=>{"use strict";var n=r(7022).isWhiteSpace,i=r(7022).isPunctChar,o=r(7022).isMdAsciiPunct,s=/['"]/,a=/['"]/g;function l(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function u(e,t){var r,s,u,c,p,h,d,f,y,g,m,v,b,_,C,S,A,w,E,x,P;for(E=[],r=0;r<e.length;r++){for(s=e[r],d=e[r].level,A=E.length-1;A>=0&&!(E[A].level<=d);A--);if(E.length=A+1,"text"===s.type){p=0,h=(u=s.content).length;e:for(;p<h&&(a.lastIndex=p,c=a.exec(u));){if(C=S=!0,p=c.index+1,w="'"===c[0],y=32,c.index-1>=0)y=u.charCodeAt(c.index-1);else for(A=r-1;A>=0&&"softbreak"!==e[A].type&&"hardbreak"!==e[A].type;A--)if(e[A].content){y=e[A].content.charCodeAt(e[A].content.length-1);break}if(g=32,p<h)g=u.charCodeAt(p);else for(A=r+1;A<e.length&&"softbreak"!==e[A].type&&"hardbreak"!==e[A].type;A++)if(e[A].content){g=e[A].content.charCodeAt(0);break}if(m=o(y)||i(String.fromCharCode(y)),v=o(g)||i(String.fromCharCode(g)),b=n(y),(_=n(g))?C=!1:v&&(b||m||(C=!1)),b?S=!1:m&&(_||v||(S=!1)),34===g&&'"'===c[0]&&y>=48&&y<=57&&(S=C=!1),C&&S&&(C=m,S=v),C||S){if(S)for(A=E.length-1;A>=0&&(f=E[A],!(E[A].level<d));A--)if(f.single===w&&E[A].level===d){f=E[A],w?(x=t.md.options.quotes[2],P=t.md.options.quotes[3]):(x=t.md.options.quotes[0],P=t.md.options.quotes[1]),s.content=l(s.content,c.index,P),e[f.token].content=l(e[f.token].content,f.pos,x),p+=P.length-1,f.token===r&&(p+=x.length-1),h=(u=s.content).length,E.length=A;continue e}C?E.push({token:r,pos:c.index,single:w,level:d}):S&&w&&(s.content=l(s.content,c.index,"’"))}else w&&(s.content=l(s.content,c.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&s.test(e.tokens[t].content)&&u(e.tokens[t].children,e)}},6480:(e,t,r)=>{"use strict";var n=r(5872);function i(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}i.prototype.Token=n,e.exports=i},3420:e=>{"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,r=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,n){var i,o,s,a,l,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(l=e.pos,u=e.posMax;;){if(++c>=u)return!1;if(60===(a=e.src.charCodeAt(c)))return!1;if(62===a)break}return i=e.src.slice(l+1,c),r.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",o]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",o]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(i),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=i.length+2,!0))}},9755:e=>{"use strict";e.exports=function(e,t){var r,n,i,o,s,a,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(r=c,c++,n=e.posMax;c<n&&96===e.src.charCodeAt(c);)c++;if(l=(i=e.src.slice(r,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=r)return t||(e.pending+=i),e.pos+=l,!0;for(s=a=c;-1!==(s=e.src.indexOf("`",a));){for(a=s+1;a<n&&96===e.src.charCodeAt(a);)a++;if((u=a-s)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[u]=s}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}},9354:e=>{"use strict";function t(e,t){var r,n,i,o,s,a,l,u,c={},p=t.length;if(p){var h=0,d=-2,f=[];for(r=0;r<p;r++)if(i=t[r],f.push(0),t[h].marker===i.marker&&d===i.token-1||(h=r),d=i.token,i.length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),s=c[i.marker][(i.open?3:0)+i.length%3],a=n=h-f[h]-1;n>s;n-=f[n]+1)if((o=t[n]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){u=n>0&&!t[n-1].open?f[n-1]+1:0,f[r]=r-n+u,f[n]=u,i.open=!1,o.end=r,o.close=!1,a=-1,d=-2;break}-1!==a&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=a)}}}e.exports=function(e){var r,n=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),r=0;r<i;r++)n[r]&&n[r].delimiters&&t(0,n[r].delimiters)}},7894:e=>{"use strict";function t(e,t){var r,n,i,o,s,a;for(r=t.length-1;r>=0;r--)95!==(n=t[r]).marker&&42!==n.marker||-1!==n.end&&(i=t[n.end],a=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,s=String.fromCharCode(n.marker),(o=e.tokens[n.token]).type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="",(o=e.tokens[i.token]).type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?s+s:s,o.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}e.exports.w=function(e,t){var r,n,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(n=e.scanDelims(e.pos,42===o),r=0;r<n.length;r++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:n.length,token:e.tokens.length-1,end:-1,open:n.can_open,close:n.can_close});return e.pos+=n.length,!0},e.exports.g=function(e){var r,n=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),r=0;r<i;r++)n[r]&&n[r].delimiters&&t(e,n[r].delimiters)}},9391:(e,t,r)=>{"use strict";var n=r(6233),i=r(7022).has,o=r(7022).isValidEntityCode,s=r(7022).fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,t){var r,u,c=e.pos,p=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<p)if(35===e.src.charCodeAt(c+1)){if(u=e.src.slice(c).match(a))return t||(r="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),e.pending+=o(r)?s(r):s(65533)),e.pos+=u[0].length,!0}else if((u=e.src.slice(c).match(l))&&i(n,u[1]))return t||(e.pending+=n[u[1]]),e.pos+=u[0].length,!0;return t||(e.pending+="&"),e.pos++,!0}},1917:(e,t,r)=>{"use strict";for(var n=r(7022).isSpace,i=[],o=0;o<256;o++)i.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){i[e.charCodeAt(0)]=1})),e.exports=function(e,t){var r,o=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<s){if((r=e.src.charCodeAt(o))<256&&0!==i[r])return t||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===r){for(t||e.push("hardbreak","br",0),o++;o<s&&(r=e.src.charCodeAt(o),n(r));)o++;return e.pos=o,!0}}return t||(e.pending+="\\"),e.pos++,!0}},1779:(e,t,r)=>{"use strict";var n=r(1947).n;e.exports=function(e,t){var r,i,o,s=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(s)||s+2>=o||33!==(r=e.src.charCodeAt(s+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r)||!(i=e.src.slice(s).match(n))||(t||