2019-11-06 11:11:39 -06:00
! function ( e , t ) { "object" == typeof exports && "undefined" != typeof module ? module . exports = t ( ) : "function" == typeof define && define . amd ? define ( t ) : ( e = e || self ) . marked = t ( ) } ( this , function ( ) { "use strict" ; function n ( e ) { return ( n = "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 } ) ( e ) } function r ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } function s ( e , t ) { for ( var n = 0 ; n < t . length ; n ++ ) { var r = t [ n ] ; r . enumerable = r . enumerable || ! 1 , r . configurable = ! 0 , "value" in r && ( r . writable = ! 0 ) , Object . defineProperty ( e , r . key , r ) } } function i ( e , t , n ) { return t && s ( e . prototype , t ) , n && s ( e , n ) , e } var t = { baseUrl : null , breaks : ! 1 , gfm : ! 0 , headerIds : ! 0 , headerPrefix : "" , highlight : null , langPrefix : "language-" , mangle : ! 0 , pedantic : ! 1 , renderer : null , sanitize : ! 1 , sanitizer : null , silent : ! 1 , smartLists : ! 1 , smartypants : ! 1 , xhtml : ! 1 } ; function e ( ) { return { baseUrl : null , breaks : ! 1 , gfm : ! 0 , headerIds : ! 0 , headerPrefix : "" , highlight : null , langPrefix : "language-" , mangle : ! 0 , pedantic : ! 1 , renderer : null , sanitize : ! 1 , sanitizer : null , silent : ! 1 , smartLists : ! 1 , smartypants : ! 1 , xhtml : ! 1 } } var l = { defaults : t , getDefaults : e , changeDefaults : function ( e ) { t = e } } ;
2014-04-26 06:53:30 -05:00
/ * *
2019-11-05 15:31:51 -06:00
* marked - a markdown parser
* Copyright ( c ) 2011 - 2018 , Christopher Jeffrey . ( MIT Licensed )
* https : //github.com/markedjs/marked
2019-11-06 11:11:39 -06:00
* /function a(e,t){if(t){if(a.escapeTest.test(e))return e.replace(a.escapeReplace,function(e){return a.replacements[e]})}else if(a.escapeTestNoEncode.test(e))return e.replace(a.escapeReplaceNoEncode,function(e){return a.replacements[e]});return e}function o(e){return e.replace(/ & ( # ( ? : \ d + ) | ( ? : # x [ 0 - 9 A - Fa - f ] + ) | ( ? : \ w + ) ) ; ? /gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function u(e,t){h[" "+e]||(/ ^ [ ^ : ] + : \ /*[^/]*$/.test(e)?h[" "+e]=e+"/":h[" "+e]=g(e,"/",!0));var n=-1===(e=h[" "+e]).indexOf(":");return"//"===t.slice(0,2)?n?t:e.replace(/^([^:]+:)[\s\S]*$/,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(/^([^:]+:\/*[^/]*)[\s\S]*$/,"$1")+t:e+t}a.escapeTest=/[&<>"']/,a.escapeReplace=/[&<>"']/g,a.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},a.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,a.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var h={},c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(){}function g(e,t,n){var r=e.length;if(0===r)return"";for(var s=0;s<r;){var i=e.charAt(r-s-1);if(i!==t||n){if(i===t||!n)break;s++}else s++}return e.substr(0,r-s)}var f=a,d=o,k=function(e,t,n){if(e){var r;try{r=decodeURIComponent(o(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!c.test(n)&&(n=u(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},m=function(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},b=function(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,s=t;0<=--s&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},x=g,y=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,s=0;s<n;s++)if("\\"===e[s])s++;else if(e[s]===t[0])r++;else if(e[s]===t[1]&&--r<0)return s;return-1},_=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},v=p.exec=p,w=function(n,e){return n=n.source||n,e=e||"",{replace:function(e,t){return t=(t=t.source||t).replace(/(^|[^\[])\^/g,"$1"),n=n.replace(e,t),this},getRegex:function(){return new RegExp(n,e)}}},$=m,S={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */ ? > ( ? = [ \ \ t ] * ( ? : \ \ n | $ ) ) [ \ \ s \ \ S ] * ? ( ? : \ \ n { 2 , } | $ ) | < /(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/ ^ { 0 , 3 } \ [ ( label ) \ ] : * \ n ? * < ? ( [ ^ \ s > ] + ) > ? ( ? : ( ? : + \ n ? * | * \ n * ) ( title ) ) ? * ( ? : \ n + | $ ) / , nptable : v , table : v , lheading : /^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/ , _paragraph : /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/ , text : /^[^\n]+/ , _label : /(?!\s*\])(?:\\[\[\]]|[^\[\]])+/ , _title : /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/ } ;
2019-11-05 15:31:51 -06:00
/ * *
* marked - a markdown parser
* Copyright ( c ) 2011 - 2018 , Christopher Jeffrey . ( MIT Licensed )
* https : //github.com/markedjs/marked
2019-11-06 11:11:39 -06:00
* /S.def=w(S.def).replace("label",S._label).replace("title",S._title).getRegex(),S.bullet=/ ( ? : [ * + - ] | \ d { 1 , 9 } \ . ) / , S . item = /^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/ , S . item = w ( S . item , "gm" ) . replace ( /bull/g , S . bullet ) . getRegex ( ) , S . list = w ( S . list ) . replace ( /bull/g , S . bullet ) . replace ( "hr" , "\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))" ) . replace ( "def" , "\\n+(?=" + S . def . source + ")" ) . getRegex ( ) , S . _tag = "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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul" , S . _comment = /<!--(?!-?>)[\s\S]*?-->/ , S . html = w ( S . html , "i" ) . replace ( "comment" , S . _comment ) . replace ( "tag" , S . _tag ) . replace ( "attribute" , / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/ ) . getRegex ( ) , S . paragraph = w ( S . _paragraph ) . replace ( "hr" , S . hr ) . replace ( "heading" , " {0,3}#{1,6} +" ) . replace ( "|lheading" , "" ) . replace ( "blockquote" , " {0,3}>" ) . replace ( "fences" , " {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n" ) . replace ( "list" , " {0,3}(?:[*+-]|1[.)]) " ) . replace ( "html" , "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)" ) . replace ( "tag" , S . _tag ) . getRegex ( ) , S . blockquote = w ( S . blockquote ) . replace ( "paragraph" , S . paragraph ) . getRegex ( ) , S . normal = $ ( { } , S ) , S . gfm = $ ( { } , S . normal , { nptable : /^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/ , table : /^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/ } ) , S . pedantic = $ ( { } , S . normal , { html : w ( "^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))" ) . replace ( "comment" , S . _comment ) . replace ( /tag/g , "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b" ) . getRegex ( ) , def : /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/ , heading : /^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/ , fences : v , paragraph : w ( S . normal . _paragraph ) . replace ( "hr" , S . hr ) . replace ( "heading" , " *#{1,6} *[^\n]" ) . replace ( "lheading" , S . lheading ) . replace ( "blockquote" , " {0,3}>" ) . replace ( "|fences" , "" ) . replace ( "|list" , "" ) . replace ( "|html" , "" ) . getRegex ( ) } ) ; var z = { escape : /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/ , autolink : /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ , url : v , tag : "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" , link : /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ , reflink : /^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/ , nolink : /^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/ , strong : /^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/ , em : /^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/ , code : /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br : /^( {2,}|\\)\n(?!\s*$)/ , del : v , text : /^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/ , _punctuation : "!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~" } ; z . em = w ( z . em ) . replace ( /punctuation/g , z . _punctuation ) . getRegex ( ) , z . _escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g , z . _scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ , z . _email = /[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])?)+(?![-_])/ , z . autolink = w ( z . autolink ) . replace ( "scheme" , z . _scheme ) . replace ( "email" , z . _email ) . getRegex ( ) , z . _attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ , z . tag = w ( z . tag ) . replace ( "comment" , S . _comment ) . replace ( "attribute" , z . _attribute ) . getRegex ( ) , z . _label = /(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ , z . _href = /<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/ , z . _title = / " ( ? : \ \ " ? | [ ^ " \ \ ] ) * " | ' ( ? : \ \ ' ? | [
2019-11-05 15:31:51 -06:00
/ * *
* marked - a markdown parser
* Copyright ( c ) 2011 - 2018 , Christopher Jeffrey . ( MIT Licensed )
* https : //github.com/markedjs/marked
2019-11-06 11:11:39 -06:00
* /function te(t,l,a){if(null==t)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof t)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected");if(a||"function"==typeof l){var e=function(){a||(a=l,l=null),l=J({},te.defaults,l||{}),K(l);var n,r,s=l.highlight,e=0;try{n=E.lex(t,l)}catch(e){return{v:a(e)}}r=n.length;function i(t){if(t)return l.highlight=s,a(t);var e;try{e=H.parse(n,l)}catch(e){t=e}return l.highlight=s,t?a(t):a(null,e)}if(!s||s.length<3)return{v:i()};if(delete l.highlight,!r)return{v:i()};for(;e<n.length;e++)!function(n){"code"!==n.type?--r||i():s(n.text,n.lang,function(e,t){return e?i(e):null==t||t===n.text?--r||i():(n.text=t,n.escaped=!0,void(--r||i()))})}(n[e]);return{v:void 0}}();if("object"===n(e))return e.v}try{return l=l&&J({},te.defaults,l),K(l),H.parse(E.lex(t,l),l)}catch(e){if(e.message+="\nPlease report this to https:/ / github . com / markedjs / marked . ",(l||te.defaults).silent)return" < p > An error occurred : < / p > < p r e > " + Q ( e . m e s s a g e + " " , ! 0 ) + " < / p r e > " ; t h r o w e } } r e t u r n t e . o p t i o n s = t e . s e t O p t i o n s = f u n c t i o n ( e ) { r e t u r n J ( t e . d e f a u l t s , e ) , Y ( t e . d e f a u l t s ) , t e } , t e . g e t D e f a u l t s = W , t e . d e f a u l t s = e e , t e . P a r s e r = H , t e . p a r s e r = H . p a r s e , t e . R e n d e r e r = j , t e . T e x t R e n d e r e r = X , t e . L e x e r = E , t e . l e x e r = E . l e x , t e . I n l i n e L e x e r = F , t e . i n l i n e L e x e r = F . o u t p u t , t e . S l u g g e r = I , t e . p a r s e = t e } ) ;