mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
9f8c7199ea
* startrefactoring the event system * refactor: blockquotes, code blocks and links refactored * refactor codeblock to new event system * refactor subparser until ghcode to new events * finish adating ghcodeblock to new event * add headings to new events * add image to event system * add emphasisAndStrong to event system * fix wrong event name in emphasisAndStrong onEnd event * spanGamut and build * showdown.helper.event refactored to showdown.Event * partial * add links * add metadata * add strikethrough and table * build * add underline * add unescapeSpecialChars * small refactoring * remove old tables parser * add lists * add simple event trigger tests * build * fix browserstack * fix browserstack * remove testing for ie11 and bumped firefox min version to 45 * fixes and closes #920 * build
4 lines
113 KiB
JavaScript
4 lines
113 KiB
JavaScript
/*! showdown v 3.0.0-alpha - 25-04-2022 */
|
||
!function(){function r(e){"use strict";let t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:1,describe:"The header blocks level start",type:"number"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"},moreStyling:{defaultValue:!1,describe:"Adds some useful styling css classes in the generated html",type:"boolean"},relativePathBaseUrl:{defaultValue:"",describe:"Prepends a base URL to relative paths",type:"string"}};if(!1===e)return JSON.parse(JSON.stringify(t));let a={};for(var r in t)t.hasOwnProperty(r)&&(a[r]=t[r].defaultValue);return a}var v={},a={},h={},p=r(!0),m="vanilla",d={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:r(!0),allOn:function(){"use strict";let e=r(!0),t={};for(var a in e)e.hasOwnProperty(a)&&(t[a]=!0);return t}()};function _(e,t){"use strict";var a=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:!0,error:""};v.helper.isArray(e)||(e=[e]);for(var n=0;n<e.length;++n){var s=a+" sub-extension "+n+": ",o=e[n];if("object"!=typeof o)return r.valid=!1,r.error=s+"must be an object, but "+typeof o+" given",r;if(!v.helper.isString(o.type))return r.valid=!1,r.error=s+'property "type" must be a string, but '+typeof o.type+" given",r;var i=o.type=o.type.toLowerCase();if("lang"!==(i="html"===(i="language"===i?o.type="lang":i)?o.type="output":i)&&"output"!==i&&"listener"!==i)return r.valid=!1,r.error=s+"type "+i+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',r;if("listener"===i){if(v.helper.isUndefined(o.listeners))return r.valid=!1,r.error=s+'. Extensions of type "listener" must have a property called "listeners"',r}else if(v.helper.isUndefined(o.filter)&&v.helper.isUndefined(o.regex))return r.valid=!1,r.error=s+i+' extensions must define either a "regex" property or a "filter" method',r;if(o.listeners){if("object"!=typeof o.listeners)return r.valid=!1,r.error=s+'"listeners" property must be an object but '+typeof o.listeners+" given",r;for(var l in o.listeners)if(o.listeners.hasOwnProperty(l)&&"function"!=typeof o.listeners[l])return r.valid=!1,r.error=s+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+l+" must be a function but "+typeof o.listeners[l]+" given",r}if(o.filter){if("function"!=typeof o.filter)return r.valid=!1,r.error=s+'"filter" must be a function, but '+typeof o.filter+" given",r}else if(o.regex){if(v.helper.isString(o.regex)&&(o.regex=new RegExp(o.regex,"g")),!(o.regex instanceof RegExp))return r.valid=!1,r.error=s+'"regex" property must either be a string or a RegExp object, but '+typeof o.regex+" given",r;if(v.helper.isUndefined(o.replace))return r.valid=!1,r.error=s+'"regex" extensions must implement a replace string or function',r}}return r}if(v.helper={},v.extensions={},v.setOption=function(e,t){"use strict";return p[e]=t,this},v.getOption=function(e){"use strict";return p[e]},v.getOptions=function(){"use strict";return p},v.resetOptions=function(){"use strict";p=r(!0)},v.setFlavor=function(e){"use strict";if(!d.hasOwnProperty(e))throw Error(e+" flavor was not found");v.resetOptions();var t,a=d[e];for(t in m=e,a)a.hasOwnProperty(t)&&(p[t]=a[t])},v.getFlavor=function(){"use strict";return m},v.getFlavorOptions=function(e){"use strict";if(d.hasOwnProperty(e))return d[e]},v.getDefaultOptions=r,v.subParser=function(e,t){"use strict";if(!v.helper.isString(e))throw Error("showdown.subParser function first argument must be a string (the name of the subparser)");if(void 0===t){if(a.hasOwnProperty(e))return a[e];throw Error("SubParser named "+e+" not registered!")}a[e]=t},v.getSubParserList=function(){return a},v.extension=function(e,t){"use strict";if(!v.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=v.helper.stdExtName(e),v.helper.isUndefined(t)){if(h.hasOwnProperty(e))return h[e];throw Error("Extension named "+e+" is not registered!")}"function"==typeof t&&(t=t());var a=_(t=v.helper.isArray(t)?t:[t],e);if(!a.valid)throw Error(a.error);h[e]=t},v.getAllExtensions=function(){"use strict";return h},v.removeExtension=function(e){"use strict";delete h[e]},v.resetExtensions=function(){"use strict";h={}},v.validateExtension=function(e){"use strict";e=_(e,null);return!!e.valid||(console.warn(e.error),!1)},v.hasOwnProperty("helper")||(v.helper={}),void 0===this&&"undefined"!=typeof window)v.helper.document=window.document;else{if(void 0===this.document&&void 0===this.window){let e=require("jsdom");this.window=new e.JSDOM("",{}).window}v.helper.document=this.window.document}function n(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}v.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},v.helper.isNumber=function(e){return!isNaN(e)},v.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},v.helper.isArray=function(e){"use strict";let t;return(t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)},v.helper.isUndefined=function(e){"use strict";return void 0===e},v.helper.isObject=function(e){"use strict";return"object"==typeof e&&!Array.isArray(e)&&null!==e},v.helper.forEach=function(t,a){"use strict";if(v.helper.isUndefined(t))throw new Error("obj param is required");if(v.helper.isUndefined(a))throw new Error("callback param is required");if(!v.helper.isFunction(a))throw new Error("callback param must be a function/closure");if("function"==typeof t.forEach)t.forEach(a);else if(v.helper.isArray(t))for(let e=0;e<t.length;e++)a(t[e],e,t);else{if("object"!=typeof t)throw new Error("obj does not seem to be an array or an iterable object");for(var e in t)t.hasOwnProperty(e)&&a(t[e],e,t)}},v.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},v.helper.escapeCharactersCallback=n,v.helper.escapeCharacters=function(e,t,a){"use strict";let r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";a&&(r="\\\\"+r);t=new RegExp(r,"g");return e=e.replace(t,n)};function l(e,t,a,r){"use strict";let n=r||"",s=-1<n.indexOf("g"),o=new RegExp(t+"|"+a,"g"+n.replace(/g/g,"")),i=new RegExp(t,n.replace(/g/g,"")),l=[],u,c,h,p,m;do{for(u=0;h=o.exec(e);)if(i.test(h[0]))u++||(c=o.lastIndex,p=c-h[0].length);else if(u&&!--u){m=h.index+h[0].length;var d={left:{start:p,end:c},match:{start:c,end:h.index},right:{start:h.index,end:m},wholeMatch:{start:p,end:m}};if(l.push(d),!s)return l}}while(u&&(o.lastIndex=c));return l}v.helper.matchRecursiveRegExp=function(t,e,a,r){"use strict";let n=l(t,e,a,r),s=[];for(let e=0;e<n.length;++e)s.push([t.slice(n[e].wholeMatch.start,n[e].wholeMatch.end),t.slice(n[e].match.start,n[e].match.end),t.slice(n[e].left.start,n[e].left.end),t.slice(n[e].right.start,n[e].right.end)]);return s},v.helper.replaceRecursiveRegExp=function(a,r,e,t,n){"use strict";if(!v.helper.isFunction(r)){let e=r;r=function(){return e}}let s=l(a,e,t,n),o=a,i=s.length;if(0<i){let t=[];0!==s[0].wholeMatch.start&&t.push(a.slice(0,s[0].wholeMatch.start));for(let e=0;e<i;++e)t.push(r(a.slice(s[e].wholeMatch.start,s[e].wholeMatch.end),a.slice(s[e].match.start,s[e].match.end),a.slice(s[e].left.start,s[e].left.end),a.slice(s[e].right.start,s[e].right.end))),e<i-1&&t.push(a.slice(s[e].wholeMatch.end,s[e+1].wholeMatch.start));s[i-1].wholeMatch.end<a.length&&t.push(a.slice(s[i-1].wholeMatch.end)),o=t.join("")}return o},v.helper.regexIndexOf=function(e,t,a){"use strict";if(!v.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(t instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";e=e.substring(a||0).search(t);return 0<=e?e+(a||0):e},v.helper.splitAtIndex=function(e,t){"use strict";if(v.helper.isString(e))return[e.substring(0,t),e.substring(t)];throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string"},v.helper.encodeEmailAddress=function(e){"use strict";let a=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}],r=(t=function(a){let e;for(let e=0,t=1779033703^a.length;e<a.length;e++)t=(t=Math.imul(t^a.charCodeAt(e),3432918353))<<13|t>>>19;return function(){return e=Math.imul(e^e>>>16,2246822507),e=Math.imul(e^e>>>13,3266489909),(e^=e>>>16)>>>0}}(e),function(){var e=t+=1831565813,e=Math.imul(e^e>>>15,1|e);return(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/4294967296});var t;return e=e.replace(/./g,function(e){var t;return e="@"===e?a[Math.floor(2*r())](e):.9<(t=r())?a[2](e):.45<t?a[1](e):a[0](e)})},v.helper.repeat=function(e,t){"use strict";if(!v.helper.isUndefined(String.prototype.repeat))return e.repeat(t);if(e=""+e,t<0)throw new RangeError("repeat count must be non-negative");if(t===1/0)throw new RangeError("repeat count must be less than infinity");if(t=Math.floor(t),0===e.length||0===t)return"";if(e.length*t>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var a=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+=e.substring(0,a-e.length)},v.helper.padEnd=function(e,t,a){"use strict";return t>>=0,a=String(a||" "),e.length>t?String(e):((t-=e.length)>a.length&&(a+=v.helper.repeat(a,t/a.length)),String(e)+a.slice(0,t))},v.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")},v.helper._hashHTMLSpan=function(e,t){return"¨C"+(t.gHtmlSpans.push(e)-1)+"C"},v.helper.applyBaseUrl=function(e,t){return t=e&&""!==e&&!v.helper.isAbsolutePath(t)?new v.helper.URLUtils(t,e).href:t},v.helper.isAbsolutePath=function(e){return/(^([a-z]+:)?\/\/)|(^#)/i.test(e)},v.helper.URLUtils=function(e,a){e=String(e).trim().match(/^([^:\/?#]+:)?(?:\/\/(?:([^:@\/?#]*)(?::([^:@\/?#]*))?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);if(!e)throw new RangeError;let r=e[1]||"",n=e[2]||"",s=e[3]||"",o=e[4]||"",i=e[5]||"",l=e[6]||"",u=e[7]||"",c=e[8]||"";e=e[9]||"";if(void 0!==a){let e=new v.helper.URLUtils(a);a=""===r&&""===o&&""===n;a&&""===u&&""===c&&(c=e.search),a&&"/"!==u.charAt(0)&&(u=""!==u?(""===e.host&&""===e.username||""!==e.pathname?"":"/")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+u:e.pathname);let t=[];u.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),u=t.join("").replace(/^\//,"/"===u.charAt(0)?"/":""),a&&(l=e.port,i=e.hostname,o=e.host,s=e.password,n=e.username),""===r&&(r=e.protocol)}this.origin=r+(""!==r||""!==o?"//":"")+o,this.href=r+(""!==r||""!==o?"//":"")+(""!==n?n+(""!==s?":"+s:"")+"@":"")+o+u+c+e,this.protocol=r,this.username=n,this.password=s,this.host=o,this.hostname=i,this.port=l,this.pathname=u,this.search=c,this.hash=e},v.helper.cloneObject=function(t,e){if(e=!!e,null===t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t);if(e)return"function"==typeof structuredClone?structuredClone(t):JSON.parse(JSON.stringify(t));{let e={};for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e}},v.helper._populateAttributes=function(a){let r="";if(!a||!v.helper.isObject(a))return r;for(var n in a)if(a.hasOwnProperty(n)){let e=n,t;if("classes"===n&&(e="class"),null===a[n]||v.helper.isUndefined(a[n]))t=null;else if(v.helper.isArray(a[n]))""===(t=a[n].join(" "))&&(t=null);else if(v.helper.isString(a[n]))t=a[n];else{if(!v.helper.isNumber(a[n]))throw new TypeError('Attribute "'+n+'" must be either an array or string but '+typeof a[n]+" given");t=String(a[n])}switch(n){case"checked":case"disabled":!0!==t&&"true"!==t&&t!==n||(r+=" "+e);break;default:r+=null===t?"":" "+e+'="'+t+'"'}}return r},v.helper.outdent=function(e){"use strict";return v.helper.isString(e)?e.replace(/^(\t| {1,4})/gm,""):e},v.helper.validateOptions=function(e){if(!v.helper.isObject(e))throw new TypeError("Options must be an object, but "+typeof e+" given");let t=r(!1);for(var a in t)if(t.hasOwnProperty(a))switch(e.hasOwnProperty(a)||(e[a]=t[a].defaultValue),a){case"prefixHeaderId":if("boolean"==typeof e[a]||v.helper.isString(e[a]))break;throw new TypeError("Option prefixHeaderId must be of type boolean or string but "+typeof e[a]+" given");default:if(typeof e[a]!==t[a].type)throw new TypeError("Option "+a+" must be of type "+t[a].type+" but "+typeof e[a]+" given")}return e},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),Math.imul||(Math.imul=function(e,t){let a=(4194303&e)*(t|=0);return 4290772992&e&&(a+=(4290772992&e)*t|0),0|a}),v.helper.regexes={asteriskDashTildeAndColon:/([*_:~])/g,asteriskDashAndTilde:/([*_~])/g},v.helper.emojis={100:"💯",1234:"🔢","+1":"👍","-1":"👎","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abacus:"🧮",abc:"🔤",abcd:"🔡",accept:"🉑",adhesive_bandage:"🩹",adult:"🧑",aerial_tramway:"🚡",afghanistan:"🇦🇫",airplane:"✈️",aland_islands:"🇦🇽",alarm_clock:"⏰",albania:"🇦🇱",alembic:"⚗️",algeria:"🇩🇿",alien:"👽",ambulance:"🚑",american_samoa:"🇦🇸",amphora:"🏺",anchor:"⚓",andorra:"🇦🇩",angel:"👼",anger:"💢",angola:"🇦🇴",angry:"😠",anguilla:"🇦🇮",anguished:"😧",ant:"🐜",antarctica:"🇦🇶",antigua_barbuda:"🇦🇬",apple:"🍎",aquarius:"♒",argentina:"🇦🇷",aries:"♈",armenia:"🇦🇲",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰️",artist:"🧑🎨",aruba:"🇦🇼",ascension_island:"🇦🇨",asterisk:"*️⃣",astonished:"😲",astronaut:"🧑🚀",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",australia:"🇦🇺",austria:"🇦🇹",auto_rickshaw:"🛺",avocado:"🥑",axe:"🪓",azerbaijan:"🇦🇿",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badger:"🦡",badminton:"🏸",bagel:"🥯",baggage_claim:"🛄",baguette_bread:"🥖",bahamas:"🇧🇸",bahrain:"🇧🇭",balance_scale:"⚖️",bald_man:"👨🦲",bald_woman:"👩🦲",ballet_shoes:"🩰",balloon:"🎈",ballot_box:"🗳️",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bangladesh:"🇧🇩",banjo:"🪕",bank:"🏦",bar_chart:"📊",barbados:"🇧🇧",barber:"💈",baseball:"⚾",basket:"🧺",basketball:"🏀",basketball_man:"⛹️♂️",basketball_woman:"⛹️♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖️",bear:"🐻",bearded_person:"🧔",bed:"🛏️",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",belarus:"🇧🇾",belgium:"🇧🇪",belize:"🇧🇿",bell:"🔔",bellhop_bell:"🛎️",benin:"🇧🇯",bento:"🍱",bermuda:"🇧🇲",beverage_box:"🧃",bhutan:"🇧🇹",bicyclist:"🚴",bike:"🚲",biking_man:"🚴♂️",biking_woman:"🚴♀️",bikini:"👙",billed_cap:"🧢",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛",black_medium_small_square:"◾",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blond_haired_man:"👱♂️",blond_haired_person:"👱",blond_haired_woman:"👱♀️",blonde_woman:"👱♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blue_square:"🟦",blush:"😊",boar:"🐗",boat:"⛵",bolivia:"🇧🇴",bomb:"💣",bone:"🦴",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bosnia_herzegovina:"🇧🇦",botswana:"🇧🇼",bouncing_ball_man:"⛹️♂️",bouncing_ball_person:"⛹️",bouncing_ball_woman:"⛹️♀️",bouquet:"💐",bouvet_island:"🇧🇻",bow:"🙇",bow_and_arrow:"🏹",bowing_man:"🙇♂️",bowing_woman:"🙇♀️",bowl_with_spoon:"🥣",bowling:"🎳",boxing_glove:"🥊",boy:"👦",brain:"🧠",brazil:"🇧🇷",bread:"🍞",breast_feeding:"🤱",bricks:"🧱",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",british_indian_ocean_territory:"🇮🇴",british_virgin_islands:"🇻🇬",broccoli:"🥦",broken_heart:"💔",broom:"🧹",brown_circle:"🟤",brown_heart:"🤎",brown_square:"🟫",brunei:"🇧🇳",bug:"🐛",building_construction:"🏗️",bulb:"💡",bulgaria:"🇧🇬",bullettrain_front:"🚅",bullettrain_side:"🚄",burkina_faso:"🇧🇫",burrito:"🌯",burundi:"🇧🇮",bus:"🚌",business_suit_levitating:"🕴️",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butter:"🧈",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",cambodia:"🇰🇭",camel:"🐫",camera:"📷",camera_flash:"📸",cameroon:"🇨🇲",camping:"🏕️",canada:"🇨🇦",canary_islands:"🇮🇨",cancer:"♋",candle:"🕯️",candy:"🍬",canned_food:"🥫",canoe:"🛶",cape_verde:"🇨🇻",capital_abcd:"🔠",capricorn:"♑",car:"🚗",card_file_box:"🗃️",card_index:"📇",card_index_dividers:"🗂️",caribbean_netherlands:"🇧🇶",carousel_horse:"🎠",carrot:"🥕",cartwheeling:"🤸",cat:"🐱",cat2:"🐈",cayman_islands:"🇰🇾",cd:"💿",central_african_republic:"🇨🇫",ceuta_melilla:"🇪🇦",chad:"🇹🇩",chains:"⛓️",chair:"🪑",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chess_pawn:"♟️",chestnut:"🌰",chicken:"🐔",child:"🧒",children_crossing:"🚸",chile:"🇨🇱",chipmunk:"🐿️",chocolate_bar:"🍫",chopsticks:"🥢",christmas_island:"🇨🇽",christmas_tree:"🎄",church:"⛪",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙️",cl:"🆑",clamp:"🗜️",clap:"👏",clapper:"🎬",classical_building:"🏛️",climbing:"🧗",climbing_man:"🧗♂️",climbing_woman:"🧗♀️",clinking_glasses:"🥂",clipboard:"📋",clipperton_island:"🇨🇵",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩️",cloud_with_lightning_and_rain:"⛈️",cloud_with_rain:"🌧️",cloud_with_snow:"🌨️",clown_face:"🤡",clubs:"♣️",cn:"🇨🇳",coat:"🧥",cocktail:"🍸",coconut:"🥥",cocos_islands:"🇨🇨",coffee:"☕",coffin:"⚰️",cold_face:"🥶",cold_sweat:"😰",collision:"💥",colombia:"🇨🇴",comet:"☄️",comoros:"🇰🇲",compass:"🧭",computer:"💻",computer_mouse:"🖱️",confetti_ball:"🎊",confounded:"😖",confused:"😕",congo_brazzaville:"🇨🇬",congo_kinshasa:"🇨🇩",congratulations:"㊗️",construction:"🚧",construction_worker:"👷",construction_worker_man:"👷♂️",construction_worker_woman:"👷♀️",control_knobs:"🎛️",convenience_store:"🏪",cook:"🧑🍳",cook_islands:"🇨🇰",cookie:"🍪",cool:"🆒",cop:"👮",copyright:"©️",corn:"🌽",costa_rica:"🇨🇷",cote_divoire:"🇨🇮",couch_and_lamp:"🛋️",couple:"👫",couple_with_heart:"💑",couple_with_heart_man_man:"👨❤️👨",couple_with_heart_woman_man:"👩❤️👨",couple_with_heart_woman_woman:"👩❤️👩",couplekiss:"💏",couplekiss_man_man:"👨❤️💋👨",couplekiss_man_woman:"👩❤️💋👨",couplekiss_woman_woman:"👩❤️💋👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍️",credit_card:"💳",crescent_moon:"🌙",cricket:"🦗",cricket_game:"🏏",croatia:"🇭🇷",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cuba:"🇨🇺",cucumber:"🥒",cup_with_straw:"🥤",cupcake:"🧁",cupid:"💘",curacao:"🇨🇼",curling_stone:"🥌",curly_haired_man:"👨🦱",curly_haired_woman:"👩🦱",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",cursing_face:"🤬",custard:"🍮",customs:"🛃",cut_of_meat:"🥩",cyclone:"🌀",cyprus:"🇨🇾",czech_republic:"🇨🇿",dagger:"🗡️",dancer:"💃",dancers:"👯",dancing_men:"👯♂️",dancing_women:"👯♀️",dango:"🍡",dark_sunglasses:"🕶️",dart:"🎯",dash:"💨",date:"📅",de:"🇩🇪",deaf_man:"🧏♂️",deaf_person:"🧏",deaf_woman:"🧏♀️",deciduous_tree:"🌳",deer:"🦌",denmark:"🇩🇰",department_store:"🏬",derelict_house:"🏚️",desert:"🏜️",desert_island:"🏝️",desktop_computer:"🖥️",detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",diego_garcia:"🇩🇬",disappointed:"😞",disappointed_relieved:"😥",diving_mask:"🤿",diya_lamp:"🪔",dizzy:"💫",dizzy_face:"😵",djibouti:"🇩🇯",dna:"🧬",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",dominica:"🇩🇲",dominican_republic:"🇩🇴",door:"🚪",doughnut:"🍩",dove:"🕊️",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",drop_of_blood:"🩸",droplet:"💧",drum:"🥁",duck:"🦆",dumpling:"🥟",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",ear_with_hearing_aid:"🦻",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",ecuador:"🇪🇨",egg:"🥚",eggplant:"🍆",egypt:"🇪🇬",eight:"8️⃣",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",eject_button:"⏏️",el_salvador:"🇸🇻",electric_plug:"🔌",elephant:"🐘",elf:"🧝",elf_man:"🧝♂️",elf_woman:"🧝♀️",email:"✉️",end:"🔚",england:"🏴",envelope:"✉️",envelope_with_arrow:"📩",equatorial_guinea:"🇬🇶",eritrea:"🇪🇷",es:"🇪🇸",estonia:"🇪🇪",ethiopia:"🇪🇹",eu:"🇪🇺",euro:"💶",european_castle:"🏰",european_post_office:"🏤",european_union:"🇪🇺",evergreen_tree:"🌲",exclamation:"❗",exploding_head:"🤯",expressionless:"😑",eye:"👁️",eye_speech_bubble:"👁️🗨️",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",facepalm:"🤦",facepunch:"👊",factory:"🏭",factory_worker:"🧑🏭",fairy:"🧚",fairy_man:"🧚♂️",fairy_woman:"🧚♀️",falafel:"🧆",falkland_islands:"🇫🇰",fallen_leaf:"🍂",family:"👪",family_man_boy:"👨👦",family_man_boy_boy:"👨👦👦",family_man_girl:"👨👧",family_man_girl_boy:"👨👧👦",family_man_girl_girl:"👨👧👧",family_man_man_boy:"👨👨👦",family_man_man_boy_boy:"👨👨👦👦",family_man_man_girl:"👨👨👧",family_man_man_girl_boy:"👨👨👧👦",family_man_man_girl_girl:"👨👨👧👧",family_man_woman_boy:"👨👩👦",family_man_woman_boy_boy:"👨👩👦👦",family_man_woman_girl:"👨👩👧",family_man_woman_girl_boy:"👨👩👧👦",family_man_woman_girl_girl:"👨👩👧👧",family_woman_boy:"👩👦",family_woman_boy_boy:"👩👦👦",family_woman_girl:"👩👧",family_woman_girl_boy:"👩👧👦",family_woman_girl_girl:"👩👧👧",family_woman_woman_boy:"👩👩👦",family_woman_woman_boy_boy:"👩👩👦👦",family_woman_woman_girl:"👩👩👧",family_woman_woman_girl_boy:"👩👩👧👦",family_woman_woman_girl_girl:"👩👩👧👧",farmer:"🧑🌾",faroe_islands:"🇫🇴",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️♀️",female_sign:"♀️",ferris_wheel:"🎡",ferry:"⛴️",field_hockey:"🏑",fiji:"🇫🇯",file_cabinet:"🗄️",file_folder:"📁",film_projector:"📽️",film_strip:"🎞️",finland:"🇫🇮",fire:"🔥",fire_engine:"🚒",fire_extinguisher:"🧯",firecracker:"🧨",firefighter:"🧑🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist:"✊",fist_left:"🤛",fist_oncoming:"👊",fist_raised:"✊",fist_right:"🤜",five:"5️⃣",flags:"🎏",flamingo:"🦩",flashlight:"🔦",flat_shoe:"🥿",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",flipper:"🐬",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",flying_disc:"🥏",flying_saucer:"🛸",fog:"🌫️",foggy:"🌁",foot:"🦶",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fortune_cookie:"🥠",fountain:"⛲",fountain_pen:"🖋️",four:"4️⃣",four_leaf_clover:"🍀",fox_face:"🦊",fr:"🇫🇷",framed_picture:"🖼️",free:"🆓",french_guiana:"🇬🇫",french_polynesia:"🇵🇫",french_southern_territories:"🇹🇫",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍♂️",frowning_person:"🙍",frowning_woman:"🙍♀️",fu:"🖕",fuelpump:"⛽",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",gabon:"🇬🇦",gambia:"🇬🇲",game_die:"🎲",garlic:"🧄",gb:"🇬🇧",gear:"⚙️",gem:"💎",gemini:"♊",genie:"🧞",genie_man:"🧞♂️",genie_woman:"🧞♀️",georgia:"🇬🇪",ghana:"🇬🇭",ghost:"👻",gibraltar:"🇬🇮",gift:"🎁",gift_heart:"💝",giraffe:"🦒",girl:"👧",globe_with_meridians:"🌐",gloves:"🧤",goal_net:"🥅",goat:"🐐",goggles:"🥽",golf:"⛳",golfing:"🏌️",golfing_man:"🏌️♂️",golfing_woman:"🏌️♀️",gorilla:"🦍",grapes:"🍇",greece:"🇬🇷",green_apple:"🍏",green_book:"📗",green_circle:"🟢",green_heart:"💚",green_salad:"🥗",green_square:"🟩",greenland:"🇬🇱",grenada:"🇬🇩",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guadeloupe:"🇬🇵",guam:"🇬🇺",guard:"💂",guardsman:"💂♂️",guardswoman:"💂♀️",guatemala:"🇬🇹",guernsey:"🇬🇬",guide_dog:"🦮",guinea:"🇬🇳",guinea_bissau:"🇬🇼",guitar:"🎸",gun:"🔫",guyana:"🇬🇾",haircut:"💇",haircut_man:"💇♂️",haircut_woman:"💇♀️",haiti:"🇭🇹",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒️",hammer_and_wrench:"🛠️",hamster:"🐹",hand:"✋",hand_over_mouth:"🤭",handbag:"👜",handball_person:"🤾",handshake:"🤝",hankey:"💩",hash:"#️⃣",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",health_worker:"🧑⚕️",hear_no_evil:"🙉",heard_mcdonald_islands:"🇭🇲",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_exclamation_mark:"❗",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",hedgehog:"🦔",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hiking_boot:"🥾",hindu_temple:"🛕",hippopotamus:"🦛",hocho:"🔪",hole:"🕳️",honduras:"🇭🇳",honey_pot:"🍯",honeybee:"🐝",hong_kong:"🇭🇰",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_face:"🥵",hot_pepper:"🌶️",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘️",hugs:"🤗",hungary:"🇭🇺",hushed:"😯",ice_cream:"🍨",ice_cube:"🧊",ice_hockey:"🏒",ice_skate:"⛸️",icecream:"🍦",iceland:"🇮🇸",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",india:"🇮🇳",indonesia:"🇮🇩",infinity:"♾️",information_desk_person:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",iran:"🇮🇷",iraq:"🇮🇶",ireland:"🇮🇪",isle_of_man:"🇮🇲",israel:"🇮🇱",it:"🇮🇹",izakaya_lantern:"🏮",jack_o_lantern:"🎃",jamaica:"🇯🇲",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",jersey:"🇯🇪",jigsaw:"🧩",jordan:"🇯🇴",joy:"😂",joy_cat:"😹",joystick:"🕹️",jp:"🇯🇵",judge:"🧑⚖️",juggling_person:"🤹",kaaba:"🕋",kangaroo:"🦘",kazakhstan:"🇰🇿",kenya:"🇰🇪",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiribati:"🇰🇮",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kite:"🪁",kiwi_fruit:"🥝",kneeling_man:"🧎♂️",kneeling_person:"🧎",kneeling_woman:"🧎♀️",knife:"🔪",koala:"🐨",koko:"🈁",kosovo:"🇽🇰",kr:"🇰🇷",kuwait:"🇰🇼",kyrgyzstan:"🇰🇬",lab_coat:"🥼",label:"🏷️",lacrosse:"🥍",lantern:"🏮",laos:"🇱🇦",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",latvia:"🇱🇻",laughing:"😆",leafy_green:"🥬",leaves:"🍃",lebanon:"🇱🇧",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",left_speech_bubble:"🗨️",leftwards_arrow_with_hook:"↩️",leg:"🦵",lemon:"🍋",leo:"♌",leopard:"🐆",lesotho:"🇱🇸",level_slider:"🎚️",liberia:"🇱🇷",libra:"♎",libya:"🇱🇾",liechtenstein:"🇱🇮",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lithuania:"🇱🇹",lizard:"🦎",llama:"🦙",lobster:"🦞",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",lotion_bottle:"🧴",lotus_position:"🧘",lotus_position_man:"🧘♂️",lotus_position_woman:"🧘♀️",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",love_you_gesture:"🤟",low_brightness:"🔅",luggage:"🧳",luxembourg:"🇱🇺",lying_face:"🤥",m:"Ⓜ️",macau:"🇲🇴",macedonia:"🇲🇰",madagascar:"🇲🇬",mag:"🔍",mag_right:"🔎",mage:"🧙",mage_man:"🧙♂️",mage_woman:"🧙♀️",magnet:"🧲",mahjong:"🀄",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",malawi:"🇲🇼",malaysia:"🇲🇾",maldives:"🇲🇻",male_detective:"🕵️♂️",male_sign:"♂️",mali:"🇲🇱",malta:"🇲🇹",man:"👨",man_artist:"👨🎨",man_astronaut:"👨🚀",man_cartwheeling:"🤸♂️",man_cook:"👨🍳",man_dancing:"🕺",man_facepalming:"🤦♂️",man_factory_worker:"👨🏭",man_farmer:"👨🌾",man_firefighter:"👨🚒",man_health_worker:"👨⚕️",man_in_manual_wheelchair:"👨🦽",man_in_motorized_wheelchair:"👨🦼",man_in_tuxedo:"🤵",man_judge:"👨⚖️",man_juggling:"🤹♂️",man_mechanic:"👨🔧",man_office_worker:"👨💼",man_pilot:"👨✈️",man_playing_handball:"🤾♂️",man_playing_water_polo:"🤽♂️",man_scientist:"👨🔬",man_shrugging:"🤷♂️",man_singer:"👨🎤",man_student:"👨🎓",man_teacher:"👨🏫",man_technologist:"👨💻",man_with_gua_pi_mao:"👲",man_with_probing_cane:"👨🦯",man_with_turban:"👳♂️",mandarin:"🍊",mango:"🥭",mans_shoe:"👞",mantelpiece_clock:"🕰️",manual_wheelchair:"🦽",maple_leaf:"🍁",marshall_islands:"🇲🇭",martial_arts_uniform:"🥋",martinique:"🇲🇶",mask:"😷",massage:"💆",massage_man:"💆♂️",massage_woman:"💆♀️",mate:"🧉",mauritania:"🇲🇷",mauritius:"🇲🇺",mayotte:"🇾🇹",meat_on_bone:"🍖",mechanic:"🧑🔧",mechanical_arm:"🦾",mechanical_leg:"🦿",medal_military:"🎖️",medal_sports:"🏅",medical_symbol:"⚕️",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼♂️",menorah:"🕎",mens:"🚹",mermaid:"🧜♀️",merman:"🧜♂️",merperson:"🧜",metal:"🤘",metro:"🚇",mexico:"🇲🇽",microbe:"🦠",micronesia:"🇫🇲",microphone:"🎤",microscope:"🔬",middle_finger:"🖕",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",moldova:"🇲🇩",monaco:"🇲🇨",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",mongolia:"🇲🇳",monkey:"🐒",monkey_face:"🐵",monocle_face:"🧐",monorail:"🚝",montenegro:"🇲🇪",montserrat:"🇲🇸",moon:"🌔",moon_cake:"🥮",morocco:"🇲🇦",mortar_board:"🎓",mosque:"🕌",mosquito:"🦟",motor_boat:"🛥️",motor_scooter:"🛵",motorcycle:"🏍️",motorized_wheelchair:"🦼",motorway:"🛣️",mount_fuji:"🗻",mountain:"⛰️",mountain_bicyclist:"🚵",mountain_biking_man:"🚵♂️",mountain_biking_woman:"🚵♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔️",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mozambique:"🇲🇿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",myanmar:"🇲🇲",nail_care:"💅",name_badge:"📛",namibia:"🇳🇦",national_park:"🏞️",nauru:"🇳🇷",nauseated_face:"🤢",nazar_amulet:"🧿",necktie:"👔",negative_squared_cross_mark:"❎",nepal:"🇳🇵",nerd_face:"🤓",netherlands:"🇳🇱",neutral_face:"😐",new:"🆕",new_caledonia:"🇳🇨",new_moon:"🌑",new_moon_with_face:"🌚",new_zealand:"🇳🇿",newspaper:"📰",newspaper_roll:"🗞️",next_track_button:"⏭️",ng:"🆖",ng_man:"🙅♂️",ng_woman:"🙅♀️",nicaragua:"🇳🇮",niger:"🇳🇪",nigeria:"🇳🇬",night_with_stars:"🌃",nine:"9️⃣",niue:"🇳🇺",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔",no_entry_sign:"🚫",no_good:"🙅",no_good_man:"🙅♂️",no_good_woman:"🙅♀️",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",norfolk_island:"🇳🇫",north_korea:"🇰🇵",northern_mariana_islands:"🇲🇵",norway:"🇳🇴",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",office_worker:"🧑💼",oil_drum:"🛢️",ok:"🆗",ok_hand:"👌",ok_man:"🙆♂️",ok_person:"🙆",ok_woman:"🙆♀️",old_key:"🗝️",older_adult:"🧓",older_man:"👴",older_woman:"👵",om:"🕉️",oman:"🇴🇲",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",one:"1️⃣",one_piece_swimsuit:"🩱",onion:"🧅",open_book:"📖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange:"🍊",orange_book:"📙",orange_circle:"🟠",orange_heart:"🧡",orange_square:"🟧",orangutan:"🦧",orthodox_cross:"☦️",otter:"🦦",outbox_tray:"📤",owl:"🦉",ox:"🐂",oyster:"🦪",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌️",pakistan:"🇵🇰",palau:"🇵🇼",palestinian_territories:"🇵🇸",palm_tree:"🌴",palms_up_together:"🤲",panama:"🇵🇦",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇️",papua_new_guinea:"🇵🇬",parachute:"🪂",paraguay:"🇵🇾",parasol_on_ground:"⛱️",parking:"🅿️",parrot:"🦜",part_alternation_mark:"〽️",partly_sunny:"⛅",partying_face:"🥳",passenger_ship:"🛳️",passport_control:"🛂",pause_button:"⏸️",paw_prints:"🐾",peace_symbol:"☮️",peach:"🍑",peacock:"🦚",peanuts:"🥜",pear:"🍐",pen:"🖊️",pencil:"📝",pencil2:"✏️",penguin:"🐧",pensive:"😔",people_holding_hands:"🧑🤝🧑",performing_arts:"🎭",persevere:"😣",person_bald:"🧑🦲",person_curly_hair:"🧑🦱",person_fencing:"🤺",person_in_manual_wheelchair:"🧑🦽",person_in_motorized_wheelchair:"🧑🦼",person_red_hair:"🧑🦰",person_white_hair:"🧑🦳",person_with_probing_cane:"🧑🦯",person_with_turban:"👳",peru:"🇵🇪",petri_dish:"🧫",philippines:"🇵🇭",phone:"☎️",pick:"⛏️",pie:"🥧",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pilot:"🧑✈️",pinching_hand:"🤏",pineapple:"🍍",ping_pong:"🏓",pirate_flag:"🏴☠️",pisces:"♓",pitcairn_islands:"🇵🇳",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽️",play_or_pause_button:"⏯️",pleading_face:"🥺",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",poland:"🇵🇱",police_car:"🚓",police_officer:"👮",policeman:"👮♂️",policewoman:"👮♀️",poodle:"🐩",poop:"💩",popcorn:"🍿",portugal:"🇵🇹",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",pout:"😡",pouting_cat:"😾",pouting_face:"🙎",pouting_man:"🙎♂️",pouting_woman:"🙎♀️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",pretzel:"🥨",previous_track_button:"⏮️",prince:"🤴",princess:"👸",printer:"🖨️",probing_cane:"🦯",puerto_rico:"🇵🇷",punch:"👊",purple_circle:"🟣",purple_heart:"💜",purple_square:"🟪",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",qatar:"🇶🇦",question:"❓",rabbit:"🐰",rabbit2:"🐇",raccoon:"🦝",racehorse:"🐎",racing_car:"🏎️",radio:"📻",radio_button:"🔘",radioactive:"☢️",rage:"😡",railway_car:"🚃",railway_track:"🛤️",rainbow:"🌈",rainbow_flag:"🏳️🌈",raised_back_of_hand:"🤚",raised_eyebrow:"🤨",raised_hand:"✋",raised_hand_with_fingers_splayed:"🖐️",raised_hands:"🙌",raising_hand:"🙋",raising_hand_man:"🙋♂️",raising_hand_woman:"🙋♀️",ram:"🐏",ramen:"🍜",rat:"🐀",razor:"🪒",receipt:"🧾",record_button:"⏺️",recycle:"♻️",red_car:"🚗",red_circle:"🔴",red_envelope:"🧧",red_haired_man:"👨🦰",red_haired_woman:"👩🦰",red_square:"🟥",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗️",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑️",restroom:"🚻",reunion:"🇷🇪",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯️",ring:"💍",ringed_planet:"🪐",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roll_of_paper:"🧻",roller_coaster:"🎢",romania:"🇷🇴",rooster:"🐓",rose:"🌹",rosette:"🏵️",rotating_light:"🚨",round_pushpin:"📍",rowboat:"🚣",rowing_man:"🚣♂️",rowing_woman:"🚣♀️",ru:"🇷🇺",rugby_football:"🏉",runner:"🏃",running:"🏃",running_man:"🏃♂️",running_shirt_with_sash:"🎽",running_woman:"🏃♀️",rwanda:"🇷🇼",sa:"🈂️",safety_pin:"🧷",safety_vest:"🦺",sagittarius:"♐",sailboat:"⛵",sake:"🍶",salt:"🧂",samoa:"🇼🇸",san_marino:"🇸🇲",sandal:"👡",sandwich:"🥪",santa:"🎅",sao_tome_principe:"🇸🇹",sari:"🥻",sassy_man:"💁♂️",sassy_woman:"💁♀️",satellite:"📡",satisfied:"😆",saudi_arabia:"🇸🇦",sauna_man:"🧖♂️",sauna_person:"🧖",sauna_woman:"🧖♀️",sauropod:"🦕",saxophone:"🎷",scarf:"🧣",school:"🏫",school_satchel:"🎒",scientist:"🧑🔬",scissors:"✂️",scorpion:"🦂",scorpius:"♏",scotland:"🏴",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",senegal:"🇸🇳",serbia:"🇷🇸",service_dog:"🐕🦺",seven:"7️⃣",seychelles:"🇸🇨",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡️",shinto_shrine:"⛩️",ship:"🚢",shirt:"👕",shit:"💩",shoe:"👞",shopping:"🛍️",shopping_cart:"🛒",shorts:"🩳",shower:"🚿",shrimp:"🦐",shrug:"🤷",shushing_face:"🤫",sierra_leone:"🇸🇱",signal_strength:"📶",singapore:"🇸🇬",singer:"🧑🎤",sint_maarten:"🇸🇽",six:"6️⃣",six_pointed_star:"🔯",skateboard:"🛹",ski:"🎿",skier:"⛷️",skull:"💀",skull_and_crossbones:"☠️",skunk:"🦨",sled:"🛷",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",sloth:"🦥",slovakia:"🇸🇰",slovenia:"🇸🇮",small_airplane:"🛩️",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_face_with_three_hearts:"🥰",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄",snowman_with_snow:"☃️",soap:"🧼",sob:"😭",soccer:"⚽",socks:"🧦",softball:"🥎",solomon_islands:"🇸🇧",somalia:"🇸🇴",soon:"🔜",sos:"🆘",sound:"🔉",south_africa:"🇿🇦",south_georgia_south_sandwich_islands:"🇬🇸",south_sudan:"🇸🇸",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣️",speech_balloon:"💬",speedboat:"🚤",spider:"🕷️",spider_web:"🕸️",spiral_calendar:"🗓️",spiral_notepad:"🗒️",sponge:"🧽",spoon:"🥄",squid:"🦑",sri_lanka:"🇱🇰",st_barthelemy:"🇧🇱",st_helena:"🇸🇭",st_kitts_nevis:"🇰🇳",st_lucia:"🇱🇨",st_martin:"🇲🇫",st_pierre_miquelon:"🇵🇲",st_vincent_grenadines:"🇻🇨",stadium:"🏟️",standing_man:"🧍♂️",standing_person:"🧍",standing_woman:"🧍♀️",star:"⭐",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",star_struck:"🤩",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stethoscope:"🩺",stew:"🍲",stop_button:"⏹️",stop_sign:"🛑",stopwatch:"⏱️",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",student:"🧑🎓",studio_microphone:"🎙️",stuffed_flatbread:"🥙",sudan:"🇸🇩",sun_behind_large_cloud:"🌥️",sun_behind_rain_cloud:"🌦️",sun_behind_small_cloud:"🌤️",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",superhero:"🦸",superhero_man:"🦸♂️",superhero_woman:"🦸♀️",supervillain:"🦹",supervillain_man:"🦹♂️",supervillain_woman:"🦹♀️",surfer:"🏄",surfing_man:"🏄♂️",surfing_woman:"🏄♀️",suriname:"🇸🇷",sushi:"🍣",suspension_railway:"🚟",svalbard_jan_mayen:"🇸🇯",swan:"🦢",swaziland:"🇸🇿",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweden:"🇸🇪",sweet_potato:"🍠",swim_brief:"🩲",swimmer:"🏊",swimming_man:"🏊♂️",swimming_woman:"🏊♀️",switzerland:"🇨🇭",symbols:"🔣",synagogue:"🕍",syria:"🇸🇾",syringe:"💉","t-rex":"🦖",taco:"🌮",tada:"🎉",taiwan:"🇹🇼",tajikistan:"🇹🇯",takeout_box:"🥡",tanabata_tree:"🎋",tangerine:"🍊",tanzania:"🇹🇿",taurus:"♉",taxi:"🚕",tea:"🍵",teacher:"🧑🏫",technologist:"🧑💻",teddy_bear:"🧸",telephone:"☎️",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺",test_tube:"🧪",thailand:"🇹🇭",thermometer:"🌡️",thinking:"🤔",thought_balloon:"💭",thread:"🧵",three:"3️⃣",thumbsdown:"👎",thumbsup:"👍",ticket:"🎫",tickets:"🎟️",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲️",timor_leste:"🇹🇱",tipping_hand_man:"💁♂️",tipping_hand_person:"💁",tipping_hand_woman:"💁♀️",tired_face:"😫",tm:"™️",togo:"🇹🇬",toilet:"🚽",tokelau:"🇹🇰",tokyo_tower:"🗼",tomato:"🍅",tonga:"🇹🇴",tongue:"👅",toolbox:"🧰",tooth:"🦷",top:"🔝",tophat:"🎩",tornado:"🌪️",tr:"🇹🇷",trackball:"🖲️",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",trinidad_tobago:"🇹🇹",tristan_da_cunha:"🇹🇦",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tshirt:"👕",tulip:"🌷",tumbler_glass:"🥃",tunisia:"🇹🇳",turkey:"🦃",turkmenistan:"🇹🇲",turks_caicos_islands:"🇹🇨",turtle:"🐢",tuvalu:"🇹🇻",tv:"📺",twisted_rightwards_arrows:"🔀",two:"2️⃣",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",uganda:"🇺🇬",uk:"🇬🇧",ukraine:"🇺🇦",umbrella:"☔",unamused:"😒",underage:"🔞",unicorn:"🦄",united_arab_emirates:"🇦🇪",united_nations:"🇺🇳",unlock:"🔓",up:"🆙",upside_down_face:"🙃",uruguay:"🇺🇾",us:"🇺🇸",us_outlying_islands:"🇺🇲",us_virgin_islands:"🇻🇮",uzbekistan:"🇺🇿",v:"✌️",vampire:"🧛",vampire_man:"🧛♂️",vampire_woman:"🧛♀️",vanuatu:"🇻🇺",vatican_city:"🇻🇦",venezuela:"🇻🇪",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",vietnam:"🇻🇳",violin:"🎻",virgo:"♍",volcano:"🌋",volleyball:"🏐",vomiting_face:"🤮",vs:"🆚",vulcan_salute:"🖖",waffle:"🧇",wales:"🏴",walking:"🚶",walking_man:"🚶♂️",walking_woman:"🚶♀️",wallis_futuna:"🇼🇫",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑️",watch:"⌚",water_buffalo:"🐃",water_polo:"🤽",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",waxing_gibbous_moon:"🌔",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting:"🏋️",weight_lifting_man:"🏋️♂️",weight_lifting_woman:"🏋️♀️",western_sahara:"🇪🇭",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿",white_check_mark:"✅",white_circle:"⚪",white_flag:"🏳️",white_flower:"💮",white_haired_man:"👨🦳",white_haired_woman:"👩🦳",white_heart:"🤍",white_large_square:"⬜",white_medium_small_square:"◽",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬️",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩🎨",woman_astronaut:"👩🚀",woman_cartwheeling:"🤸♀️",woman_cook:"👩🍳",woman_dancing:"💃",woman_facepalming:"🤦♀️",woman_factory_worker:"👩🏭",woman_farmer:"👩🌾",woman_firefighter:"👩🚒",woman_health_worker:"👩⚕️",woman_in_manual_wheelchair:"👩🦽",woman_in_motorized_wheelchair:"👩🦼",woman_judge:"👩⚖️",woman_juggling:"🤹♀️",woman_mechanic:"👩🔧",woman_office_worker:"👩💼",woman_pilot:"👩✈️",woman_playing_handball:"🤾♀️",woman_playing_water_polo:"🤽♀️",woman_scientist:"👩🔬",woman_shrugging:"🤷♀️",woman_singer:"👩🎤",woman_student:"👩🎓",woman_teacher:"👩🏫",woman_technologist:"👩💻",woman_with_headscarf:"🧕",woman_with_probing_cane:"👩🦯",woman_with_turban:"👳♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼♀️",womens:"🚺",woozy_face:"🥴",world_map:"🗺️",worried:"😟",wrench:"🔧",wrestling:"🤼",writing_hand:"✍️",x:"❌",yarn:"🧶",yawning_face:"🥱",yellow_circle:"🟡",yellow_heart:"💛",yellow_square:"🟨",yemen:"🇾🇪",yen:"💴",yin_yang:"☯️",yo_yo:"🪀",yum:"😋",zambia:"🇿🇲",zany_face:"🤪",zap:"⚡",zebra:"🦓",zero:"0️⃣",zimbabwe:"🇿🇼",zipper_mouth_face:"🤐",zombie:"🧟",zombie_man:"🧟♂️",zombie_woman:"🧟♀️",zzz:"💤",atom:'<img alt="atom" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/atom.png?v8">',basecamp:'<img alt="basecamp" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/basecamp.png?v8">',basecampy:'<img alt="basecampy" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/basecampy.png?v8">',bowtie:'<img alt="bowtie" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/bowtie.png?v8">',electron:'<img alt="electron" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/electron.png?v8">',feelsgood:'<img alt="feelsgood" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/feelsgood.png?v8">',finnadie:'<img alt="finnadie" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/finnadie.png?v8">',goberserk:'<img alt="goberserk" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/goberserk.png?v8">',godmode:'<img alt="godmode" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/godmode.png?v8">',hurtrealbad:'<img alt="hurtrealbad" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/hurtrealbad.png?v8">',neckbeard:'<img alt="neckbeard" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/neckbeard.png?v8">',octocat:'<img alt="octocat" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/octocat.png?v8">',rage1:'<img alt="rage1" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/rage1.png?v8">',rage2:'<img alt="rage2" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/rage2.png?v8">',rage3:'<img alt="rage3" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/rage3.png?v8">',rage4:'<img alt="rage4" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/rage4.png?v8">',shipit:'<img alt="shipit" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/shipit.png?v8">',suspect:'<img alt="suspect" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/suspect.png?v8">',trollface:'<img alt="trollface" width="20" height="20" align="absmiddle" src="https://github.githubassets.com/images/icons/emoji/trollface.png?v8">',showdown:'<img alt="showdown" width="20" height="20" align="absmiddle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAS1BMVEX///8jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS0jJS3b1q3b1q3b1q3b1q3b1q3b1q3b1q3b1q0565CIAAAAGXRSTlMAQHCAYCCw/+DQwPCQUBAwoHCAEP+wwFBgS2fvBgAAAUZJREFUeAHs1cGy7BAUheFFsEDw/k97VTq3T6ge2EmdM+pvrP6Iwd74XV9Kb52xuMU4/uc1YNgZLFOeV8FGdhGrNk5SEgUyPxAEdj4LlMRDyhVAMVEa2M7TBSeVZAFPdqHgzSZJwPKgcLFLAooHDJo4EDCw4gAtBoJA5UFj4Ng5LOGLwVXZuoIlji/jeQHFk7+baHxrCjeUwB9+s88KndvlhcyBN5BSkYNQIVVb4pV+Npm7hhuKDs/uMP5KxT3WzSNNLIuuoDpMmuAVMruMSeDyQBi24DTr43LAY7ILA1QYaWkgfHzFthYYzg67SQsCbB8GhJUEGCtO9n0rSaCLxgJQjS/JSgMTg2eBDEHAJ+H350AsjYNYscrErgI2e/l+mdR967TCX/v6N0EhPECYCP0i+IAoYQOE8BogNhQMEMdrgAQWHaMAAGi5I5euoY9NAAAAAElFTkSuQmCC">'},v.Event=class{constructor(e,t,a){var{output:a,regexp:r,matches:n,attributes:s,globals:o,options:i,converter:l}=a=a||{};if(!v.helper.isString(e)&&!v.helper.isString(e))throw new TypeError("Event.name must be a string but "+typeof e+" given");this._name=e.toLowerCase(),this.input=t,this.output=a||t,this.regexp=r||null,this.matches=n||{},this.attributes=s||{},this._globals=o||{},this._options=v.helper.cloneObject(i,!0)||{},this._converter=l||void 0}get name(){return this._name}get input(){return this._input}set input(e){if(!v.helper.isString(e))throw new TypeError("Event.input must be a string but "+typeof e+" given");this._input=e}get output(){return this._output}set output(e){if(!v.helper.isString(e)&&null!==e)throw new TypeError("Event.output must be a string but "+typeof e+" given");this._output=e}get regexp(){return this._regexp}set regexp(e){if(!(e instanceof RegExp)&&null!==e)throw new TypeError("Event.regexp must be a RegExp object (or null) but "+typeof e+" given");this._regexp=e}get matches(){return this._matches}set matches(t){if("object"!=typeof t)throw new TypeError("Event.matches must be an object (or null) but "+typeof t+" given");for(var a in this._matches={},t)if(t.hasOwnProperty(a)){let e={};e=/^_(.+)/.test(a)?{enumerable:!0,configurable:!1,writable:!1,value:t[a]}:{enumerable:!0,configurable:!1,writable:!0,value:t[a]},Object.defineProperty(this._matches,a,e)}}get attributes(){return this._attributes}set attributes(e){if("object"!=typeof e)throw new TypeError("Event.attributes must be an object (or null) but "+typeof e+" given");this._attributes=e}set converter(e){this._converter=e}get converter(){return this._converter}get options(){return this._options}get globals(){return this._globals}setInput(e){return this.input=e,this}setOutput(e){return this.output=e,this}setRegexp(e){return this.regexp=e,this}setMatches(e){return this.matches=e,this}setAttributes(e){return this.attributes=e,this}_setOptions(e){return this._options=e,this}_setGlobals(e){return this._globals=e,this}_setConverter(e){return this.converter=e,this}getText(){return this.output}getMatches(){return this.matches}},v.subParser("makehtml.blockGamut",function(e,t,a){"use strict";let r=new v.Event("makehtml.blockGamut.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(r=a.converter.dispatch(r)).output,e=v.subParser("makehtml.blockquote")(e,t,a),e=v.subParser("makehtml.heading")(e,t,a),e=v.subParser("makehtml.horizontalRule")(e,t,a),e=v.subParser("makehtml.list")(e,t,a),e=v.subParser("makehtml.codeBlock")(e,t,a),e=v.subParser("makehtml.table")(e,t,a),e=v.subParser("makehtml.hashHTMLBlocks")(e,t,a),e=v.subParser("makehtml.paragraphs")(e,t,a),new v.Event("makehtml.blockGamut.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.blockquote",function(e,o,i){"use strict";let t=new v.Event("makehtml.blockquote.onStart",e),l=(t.setOutput(e)._setGlobals(i)._setOptions(o),e=(t=i.converter.dispatch(t)).output,e+="\n\n",/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm),a=(o.splitAdjacentBlockquotes&&(l=/^ {0,3}>[\s\S]*?\n\n/gm),e=e.replace(l,function(e){let t,a,r=e,n=(e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),new v.Event("makehtml.blockquote.onCapture",e)),s=(n.setOutput(null)._setGlobals(i)._setOptions(o).setRegexp(l).setMatches({_wholeMatch:r,blockquote:e}).setAttributes({}),n=i.converter.dispatch(n),t=n.output&&""!==n.output?n.output:(e=n.matches.blockquote,e=v.subParser("makehtml.githubCodeBlock")(e,o,i),e=(e=(e=v.subParser("makehtml.blockGamut")(e,o,i)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(e,t){return t.replace(/^ {2}/gm,"")}),a=n.attributes,"<blockquote"+v.helper._populateAttributes(a)+">\n"+e+"\n</blockquote>"),new v.Event("makehtml.blockquote.onHash",t));return s.setOutput(t)._setGlobals(i)._setOptions(o),s=i.converter.dispatch(s),t=s.output,v.subParser("makehtml.hashBlock")(t,o,i)}),new v.Event("makehtml.blockquote.onEnd",e));return a.setOutput(e)._setGlobals(i)._setOptions(o),(a=i.converter.dispatch(a)).output}),v.subParser("makehtml.codeBlock",function(e,c,h){"use strict";let t=new v.Event("makehtml.codeBlock.onStart",e),p=(t.setOutput(e)._setGlobals(h)._setOptions(c),e=(t=h.converter.dispatch(t)).output,/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g),a=(e=(e=(e+="¨0").replace(p,function(e,t,a){let r=t,n=a,s="\n",o,i={pre:{},code:{}},l=new v.Event("makehtml.codeBlock.onCapture",r),u=(l.setOutput(null)._setGlobals(h)._setOptions(c).setRegexp(p).setMatches({_wholeMatch:e,codeblock:r}).setAttributes(i),(l=h.converter.dispatch(l)).output&&""!==l.output?o=l.output:(r=l.matches.codeblock,r=v.helper.outdent(r),r=v.subParser("makehtml.encodeCode")(r,c,h),r=(r=(r=v.subParser("makehtml.detab")(r,c,h)).replace(/^\n+/g,"")).replace(/\n+$/g,""),i=l.attributes,o="<pre><code>",v.helper.isUndefined(i)||(o="<pre"+v.helper._populateAttributes(i.pre)+">",o+="<code"+v.helper._populateAttributes(i.code)+">"),c.omitExtraWLInCodeBlocks&&(s=""),o+=r+s+"</code></pre>"),new v.Event("makehtml.codeBlock.onHash",o));return u.setOutput(o)._setGlobals(h)._setOptions(c),u=h.converter.dispatch(u),o=u.output,v.subParser("makehtml.hashBlock")(o,c,h)+n})).replace(/¨0/,""),new v.Event("makehtml.codeBlock.onEnd",e));return a.setOutput(e)._setGlobals(h)._setOptions(c),(a=h.converter.dispatch(a)).output}),v.subParser("makehtml.codeSpan",function(e,i,l){"use strict";let t=new v.Event("makehtml.codeSpan.onStart",e),u=(t.setOutput(e)._setGlobals(l)._setOptions(i),e=(t=l.converter.dispatch(t)).output,v.helper.isUndefined(e)&&(e=""),/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm),a=(e=e.replace(u,function(e,t,a,r){let n,s=(r=(r=r.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),new v.Event("makehtml.codeSpan.onCapture",r)),o=(s.setOutput(null)._setGlobals(l)._setOptions(i).setRegexp(u).setMatches({_wholeMatch:e,code:r}).setAttributes({}),s=l.converter.dispatch(s),n=s.output&&""!==s.output?t+s.output:(r=s.matches.code,r=v.subParser("makehtml.encodeCode")(r,i,l),t+"<code"+v.helper._populateAttributes({})+">"+r+"</code>"),new v.Event("makehtml.codeSpan.onHash",n));return o.setOutput(n)._setGlobals(l)._setOptions(i),o=l.converter.dispatch(o),n=o.output,v.subParser("makehtml.hashHTMLSpans")(n,i,l)}),new v.Event("makehtml.codeSpan.onEnd",e));return a.setOutput(e)._setGlobals(l)._setOptions(i),(a=l.converter.dispatch(a)).output}),v.subParser("makehtml.completeHTMLDocument",function(e,t,a){"use strict";if(!t.completeHTMLDocument)return e;let r=new v.Event("makehtml.completeHTMLDocument.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(r=a.converter.dispatch(r)).output,"html"),s="<!DOCTYPE HTML>\n",o="",i='<meta charset="utf-8">\n',l="",u="";for(var c in void 0!==a.metadata.parsed.doctype&&(s="<!DOCTYPE "+a.metadata.parsed.doctype+">\n","html"!==(n=a.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='<meta charset="utf-8">')),a.metadata.parsed)if(a.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":o="<title>"+a.metadata.parsed.title+"</title>\n";break;case"charset":i="html"===n||"html5"===n?'<meta charset="'+a.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+a.metadata.parsed.charset+'">\n';break;case"language":case"lang":l=' lang="'+a.metadata.parsed[c]+'"',u+='<meta name="'+c+'" content="'+a.metadata.parsed[c]+'">\n';break;default:u+='<meta name="'+c+'" content="'+a.metadata.parsed[c]+'">\n'}e=s+"<html"+l+">\n<head>\n"+o+i+u+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>";let h=new v.Event("makehtml.completeHTMLDocument.onEnd",e);return h.setOutput(e)._setGlobals(a)._setOptions(t),(h=a.converter.dispatch(h)).output}),v.subParser("makehtml.detab",function(e,t,a){"use strict";let r=new v.Event("makehtml.detab.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var a=t,r=4-a.length%4,n=0;n<r;n++)a+=" ";return a})).replace(/¨A/g," ")).replace(/¨B/g,""),new v.Event("makehtml.detab.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.ellipsis",function(e,t,a){"use strict";if(!t.ellipsis)return e;let r=new v.Event("makehtml.ellipsis.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(r=a.converter.dispatch(r)).output).replace(/\.\.\./g,"…"),new v.Event("makehtml.ellipsis.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.emoji",function(e,s,o){"use strict";if(!s.emoji)return e;let t=new v.Event("makehtml.emoji.onStart",e),i=(t.setOutput(e)._setGlobals(o)._setOptions(s),e=(t=o.converter.dispatch(t)).output,/:(\S+?):/g),a=(e=e.replace(i,function(e,t){if(!v.helper.emojis.hasOwnProperty(t))return e;let a="",r=new v.Event("makehtml.emoji.onCapture",t),n=(r.setOutput(null)._setGlobals(o)._setOptions(s).setRegexp(i).setMatches({_wholeMatch:e,emojiCode:t}).setAttributes({}),r=o.converter.dispatch(r),a=r.output&&""!==r.output?r.output:v.helper.emojis[t],new v.Event("makehtml.emoji.onHash",a));return n.setOutput(a)._setGlobals(o)._setOptions(s),(n=o.converter.dispatch(n)).output}),new v.Event("makehtml.emoji.onEnd",e));return a.setOutput(e)._setGlobals(o)._setOptions(s),(a=o.converter.dispatch(a)).output}),v.subParser("makehtml.emphasisAndStrong",function(e,u,c){"use strict";let t=new v.Event("makehtml.emphasisAndStrong.onStart",e);function a(e,t,a,r){let n="ERROR",s,o;switch(t){case"<em>":s={em:{}},o="emphasis";break;case"<strong>":s={strong:{}},o="strong";break;case"<strong><em>":s={em:{},strong:{}},o="emphasisAndStrong";break;default:s={},o="emphasisAndStrong"}let i=new v.Event("makehtml.emphasisAndStrong."+o+".onCapture",e);if(i.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(r).setMatches({_wholeMatch:a,text:e}).setAttributes(s),(i=c.converter.dispatch(i)).output&&""!==i.output)n=i.output;else switch(s=i.attributes,v.helper.isUndefined(s.em)&&(s.em={}),v.helper.isUndefined(s.strong)&&(s.strong={}),t){case"<em>":n="<em"+v.helper._populateAttributes(s.em)+">"+e+"</em>";break;case"<strong>":n="<strong"+v.helper._populateAttributes(s.strong)+">"+e+"</strong>";break;case"<strong><em>":n="<strong"+v.helper._populateAttributes(s.strong)+"><em"+v.helper._populateAttributes(s.em)+">"+e+"</em></strong>"}let l=new v.Event("makehtml.emphasisAndStrong."+o+".onHash",n);return l.setOutput(n)._setGlobals(c)._setOptions(u),l=c.converter.dispatch(l),n=l.output}t.setOutput(e)._setGlobals(c)._setOptions(u),e=(t=c.converter.dispatch(t)).output;const r=/\b___(\S[\s\S]*?)___\b/g,n=/\b__(\S[\s\S]*?)__\b/g,s=/\b_(\S[\s\S]*?)_\b/g,o=/___(\S[\s\S]*?)___/g,i=/__(\S[\s\S]*?)__/g,l=/_([^\s_][\s\S]*?)_/g,h=/\*\*\*(\S[\s\S]*?)\*\*\*/g,p=/\*\*(\S[\s\S]*?)\*\*/g,m=/\*([^\s*][\s\S]*?)\*/g;e=(e=(e=(e=u.literalMidWordUnderscores?(e=(e=e.replace(r,function(e,t){return a(t,"<strong><em>",e,r)})).replace(n,function(e,t){return a(t,"<strong>",e,n)})).replace(s,function(e,t){return a(t,"<em>",e,s)}):(e=(e=e.replace(o,function(e,t){return/\S$/.test(t)?a(t,"<strong><em>",e,o):e})).replace(i,function(e,t){return/\S$/.test(t)?a(t,"<strong>",e,i):e})).replace(l,function(e,t){return/\S$/.test(t)?a(t,"<em>",e,l):e})).replace(h,function(e,t){return/\S$/.test(t)?a(t,"<strong><em>",e,h):e})).replace(p,function(e,t){return/\S$/.test(t)?a(t,"<strong>",e,p):e})).replace(m,function(e,t){return/\S$/.test(t)?a(t,"<em>",e,m):e});let d=new v.Event("makehtml.emphasisAndStrong.onEnd",e);return d.setOutput(e)._setGlobals(c)._setOptions(u),(d=c.converter.dispatch(d)).output}),v.subParser("makehtml.encodeAmpsAndAngles",function(e,t,a){"use strict";let r=new v.Event("makehtml.encodeAmpsAndAngles.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/&(?!#?[xX]?(?:[\da-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),new v.Event("makehtml.encodeAmpsAndAngles.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.encodeBackslashEscapes",function(e,t,a){"use strict";let r=new v.Event("makehtml.encodeBackslashEscapes.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/\\(\\)/g,v.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,v.helper.escapeCharactersCallback),new v.Event("makehtml.encodeBackslashEscapes.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.encodeCode",function(e,t,a){"use strict";let r=new v.Event("makehtml.encodeCode.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(r=a.converter.dispatch(r)).output).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/([*_{}\[\]\\=~-])/g,v.helper.escapeCharactersCallback),new v.Event("makehtml.encodeCode.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.escapeSpecialCharsWithinTagAttributes",function(e,t,a){"use strict";let r=new v.Event("makehtml.escapeSpecialCharsWithinTagAttributes.onStart",e);r.setOutput(e)._setGlobals(a)._setOptions(t);e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,v.helper.escapeCharactersCallback)})).replace(/<!(--(([^>-]|-[^>])([^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,v.helper.escapeCharactersCallback)});let n=new v.Event("makehtml.escapeSpecialCharsWithinTagAttributes.onEnd",e);return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.githubCodeBlock",function(e,u,c){"use strict";if(!u.ghCodeBlocks)return e;let t=new v.Event("makehtml.githubCodeBlock.onStart",e),h=(t.setOutput(e)._setGlobals(c)._setOptions(u),e=(t=c.converter.dispatch(t)).output+"¨0",/(?:^|\n) {0,3}(```+|~~~+) *([^\n\t`~]*)\n([\s\S]*?)\n {0,3}\1/g),a=(e=(e=e.replace(h,function(e,t,a,r){let n=u.omitExtraWLInCodeBlocks?"":"\n",s,o={pre:{},code:{}},i=new v.Event("makehtml.githubCodeBlock.onCapture",r);if(i.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(h).setMatches({_whoteMatch:e,codeblock:r,infostring:a}).setAttributes(o),(i=c.converter.dispatch(i)).output&&""!==i.output)s=i.output;else{let e=i.matches.infostring;a=e.trim().split(" ")[0];r=i.matches.codeblock,r=v.subParser("makehtml.encodeCode")(r,u,c),r=(r=v.subParser("makehtml.detab")(r,u,c)).replace(/^\n+/g,"").replace(/\n+$/g,""),o=i.attributes,s="<pre><code>",v.helper.isUndefined(o)||(s="<pre"+v.helper._populateAttributes(o.pre)+">",e&&(o.code||(o.code={}),o.code.classes||(o.code.classes=[]),o.code.classes&&(v.helper.isString(o.code.classes)?o.code.classes+=" "+a+" language-"+a:v.helper.isArray(o.code.classes)&&(o.code.classes.push(a),o.code.classes.push("language-"+a)))),s+="<code"+v.helper._populateAttributes(o.code)+">"),u.omitExtraWLInCodeBlocks&&(n=""),s+=r+n+"</code></pre>"}let l=new v.Event("makehtml.githubCodeBlock.onHash",s);return l.setOutput(s)._setGlobals(c)._setOptions(u),l=c.converter.dispatch(l),s=l.output,s=v.subParser("makehtml.hashBlock")(s,u,c),"\n\n¨G"+(c.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"})).replace(/¨0/,""),new v.Event("makehtml.githubCodeBlock.onEnd",e));return a.setOutput(e)._setGlobals(c)._setOptions(u),(a=c.converter.dispatch(a)).output}),v.subParser("makehtml.hashBlock",function(e,t,a){"use strict";let r=new v.Event("makehtml.hashBlock.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(r=a.converter.dispatch(r)).output).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(a.gHtmlBlocks.push(e)-1)+"K\n\n",new v.Event("makehtml.hashBlock.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.hashCodeTags",function(e,n,s){"use strict";let t=new v.Event("makehtml.hashCodeTags.onStart",e);t.setOutput(e)._setGlobals(s)._setOptions(n),e=(t=s.converter.dispatch(t)).output;e=v.helper.replaceRecursiveRegExp(e,function(e,t,a,r){a=a+v.subParser("makehtml.encodeCode")(t,n,s)+r;return"¨C"+(s.gHtmlSpans.push(a)-1)+"C"},"<code\\b[^>]*>","</code>","gim");let a=new v.Event("makehtml.hashCodeTags.onEnd",e);return a.setOutput(e)._setGlobals(s)._setOptions(n),(a=s.converter.dispatch(a)).output}),v.subParser("makehtml.hashElement",function(e,t,r){"use strict";return function(e,t){let a=t;return a=(a=(a=a.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),a="\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"}}),v.subParser("makehtml.hashHTMLBlocks",function(a,e,s){"use strict";let t=new v.Event("makehtml.hashHTMLBlocks.onStart",a);t.setOutput(a)._setGlobals(s)._setOptions(e),a=(t=s.converter.dispatch(t)).output;function r(e,t,a,r){let n=e;return-1!==a.search(/\bmarkdown\b/)&&(n=a+s.converter.makeHtml(t)+r),"\n\n¨K"+(s.gHtmlBlocks.push(n)-1)+"K\n\n"}var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","details","p"];e.backslashEscapesHTMLTags&&(a=a.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(let e=0;e<n.length;++e)for(var o,i=new RegExp("^ {0,3}(<"+n[e]+"\\b[^>]*>)","im"),l="<"+n[e]+"\\b[^>]*>",u="</"+n[e]+">";-1!==(o=v.helper.regexIndexOf(a,i));){let e=v.helper.splitAtIndex(a,o),t=v.helper.replaceRecursiveRegExp(e[1],r,l,u,"im");if(t===e[1])break;a=e[0].concat(t)}a=a.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,v.subParser("makehtml.hashElement")(a,e,s)),a=(a=v.helper.replaceRecursiveRegExp(a,function(e){return"\n\n¨K"+(s.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/\n\n( {0,3}<([?%])[^\r]*?\2>[ \t]*(?=\n{2,}))/g,v.subParser("makehtml.hashElement")(a,e,s));let c=new v.Event("makehtml.hashHTMLBlocks.onEnd",a);return c.setOutput(a)._setGlobals(s)._setOptions(e),(c=s.converter.dispatch(c)).output}),v.subParser("makehtml.hashHTMLSpans",function(e,t,a){"use strict";let r=new v.Event("makehtml.hashHTMLSpans.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(e=(e=(e=(r=a.converter.dispatch(r)).output).replace(/<[^>]+?\/>/gi,function(e){return v.helper._hashHTMLSpan(e,a)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return v.helper._hashHTMLSpan(e,a)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return v.helper._hashHTMLSpan(e,a)})).replace(/<[^>]+?>/gi,function(e){return v.helper._hashHTMLSpan(e,a)}),new v.Event("makehtml.hashHTMLSpans.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.hashPreCodeTags",function(e,n,s){"use strict";let t=new v.Event("makehtml.hashPreCodeTags.onStart",e);t.setOutput(e)._setGlobals(s)._setOptions(n),e=(t=s.converter.dispatch(t)).output;e=v.helper.replaceRecursiveRegExp(e,function(e,t,a,r){a=a+v.subParser("makehtml.encodeCode")(t,n,s)+r;return"\n\n¨G"+(s.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"},"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim");let a=new v.Event("makehtml.hashPreCodeTags.onEnd",e);return a.setOutput(e)._setGlobals(s)._setOptions(n),(a=s.converter.dispatch(a)).output}),v.subParser("makehtml.heading",function(e,l,u){"use strict";function n(e,t,a,r,n){let s=new v.Event("makehtml.heading.onCapture",a),o;s.setOutput(null)._setGlobals(u)._setOptions(l).setRegexp(e).setMatches({_wholeMatch:t,heading:a}).setAttributes({id:n}),s=u.converter.dispatch(s),o=s.output&&""!==s.output?s.output:(a=s.matches.heading,e=v.subParser("makehtml.spanGamut")(a,l,u),t=s.attributes,"<h"+r+v.helper._populateAttributes(t)+">"+e+"</h"+r+">");let i=new v.Event("makehtml.heading.onHash",o);return i.setOutput(o)._setGlobals(u)._setOptions(l),i=u.converter.dispatch(i),o=i.output,v.subParser("makehtml.hashBlock")(o,l,u)}let t=new v.Event("makehtml.heading.onStart",e),r=(t.setOutput(e)._setGlobals(u)._setOptions(l),e=(t=u.converter.dispatch(t)).output,l.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm),s=l.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm,a=l.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,o=(e=(e=(e=e.replace(r,function(e,t){var a=l.noHeaderId?null:v.subParser("makehtml.heading.id")(t,l,u);return n(r,e,t,l.headerLevelStart,a)})).replace(s,function(e,t){var a=l.noHeaderId?null:v.subParser("makehtml.heading.id")(t,l,u);return n(s,e,t,l.headerLevelStart+1,a)})).replace(a,function(e,t,a){var t=l.headerLevelStart-1+t.length,r=l.customizedHeaderId?a.replace(/\s?{([^{]+?)}\s*$/,""):a,a=l.noHeaderId?null:v.subParser("makehtml.heading.id")(a,l,u);return n(s,e,r,t,a)}),new v.Event("makehtml.heading.onEnd",e));return o.setOutput(e)._setGlobals(u)._setOptions(l),(o=u.converter.dispatch(o)).output}),v.subParser("makehtml.heading.id",function(e,t,a){let r,n;var s;return t.customizedHeaderId&&(s=e.match(/{([^{]+?)}\s*$/))&&s[1]&&(e=s[1]),r=e,n=v.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(r=n+r),r=(t.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,""):t.rawHeaderId?r.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-"):r.replace(/[^\w]/g,"")).toLowerCase(),t.rawPrefixHeaderId&&(r=n+r),a.hashLinkCounts[r]?r=r+"-"+a.hashLinkCounts[r]++:a.hashLinkCounts[r]=1,r}),v.subParser("makehtml.horizontalRule",function(e,s,o){"use strict";let t=new v.Event("makehtml.horizontalRule.onStart",e);t.setOutput(e)._setGlobals(o)._setOptions(s),e=(t=o.converter.dispatch(t)).output;const a=/^ {0,2}( ?-){3,}[ \t]*$/gm,r=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,function(e){return l(a,e)}),/^ {0,2}( ?\*){3,}[ \t]*$/gm),n=(e=e.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,function(e){return l(r,e)}),/^ {0,2}( ?\*){3,}[ \t]*$/gm);e=e.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,function(e){return l(n,e)});let i=new v.Event("makehtml.horizontalRule.onEnd",e);return i.setOutput(e)._setGlobals(o)._setOptions(s),(i=o.converter.dispatch(i)).output;function l(e,t){let a,r=new v.Event("makehtml.horizontalRule.onCapture",t),n=(r.setOutput(null)._setGlobals(o)._setOptions(s).setRegexp(e).setMatches({_whoteMatch:t}).setAttributes({}),r=o.converter.dispatch(r),a=r.output&&""!==r.output?r.output:"<hr"+v.helper._populateAttributes(r.attributes)+" />",new v.Event("makehtml.horizontalRule.onHash",a));return n.setOutput(a)._setGlobals(o)._setOptions(s),n=o.converter.dispatch(n),a=n.output,a=v.subParser("makehtml.hashBlock")(a,s,o)}}),v.subParser("makehtml.image",function(e,b,f){"use strict";let t=new v.Event("makehtml.image.onStart",e),i=(t.setOutput(e)._setGlobals(f)._setOptions(b),e=(t=f.converter.dispatch(t)).output,/!\[([^\]]*?)][ \t]*\([ \t]?<?(\S+?(?:\(\S*?\)\S*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\5)?[ \t]?\)/g),l=/!\[([^\]]*?)][ \t]*\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\5)?[ \t]?\)/g,u=/!\[([^\]]*?)][ \t]*\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z\d+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,r=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]/g,a=/!\[([^\[\]]+)]/g,n=(e=(e=(e=(e=(e=e.replace(r,function(e,t,a){return c("reference",r,e,t,null,a)})).replace(u,function(e,t,a,r,n,s,o){return a=a.replace(/\s/g,""),c("inline",u,e,t,a,null,r,n,o)})).replace(l,function(e,t,a,r,n,s,o){return a=v.helper.applyBaseUrl(b.relativePathBaseUrl,a),c("inline",l,e,t,a,null,r,n,o)})).replace(i,function(e,t,a,r,n,s,o){return a=v.helper.applyBaseUrl(b.relativePathBaseUrl,a),c("inline",i,e,t,a,null,r,n,o)})).replace(a,function(e,t){return c("reference",a,e,t)}),new v.Event("makehtml.image.onEnd",e));return n.setOutput(e)._setGlobals(f)._setOptions(b),(n=f.converter.dispatch(n)).output;function c(e,t,a,r,n,s,o,i,l){let u=f.gUrls,c=f.gTitles,h=f.gDimensions,p={_wholeMatch:a,_altText:r,_linkId:s,_url:n,_width:o,_height:i,_title:l},m,d;if(s=s?s.toLowerCase():null,l=l||null,-1<a.search(/\(<?\s*>? ?(['"].*['"])?\)$/m))n="";else if(v.helper.isUndefined(n)||""===n||null===n){if(n="#"+(s=""!==s&&null!==s?s:r.toLowerCase().replace(/ ?\n/g," ")),v.helper.isUndefined(u[s]))return a;n=u[s],v.helper.isUndefined(c[s])||(l=c[s]),v.helper.isUndefined(h[s])||(o=h[s].width,i=h[s].height)}r=r.replace(/"/g,""").replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback),n=n.replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback),l&&v.helper.isString(l)&&(l=l.replace(/"/g,""").replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback)),o=o?"*"===o?"auto":o:null,i=i?"*"===i?"auto":i:null;let _=new v.Event("makehtml.image."+e+".onCapture",a),g=(_.setOutput(null)._setGlobals(f)._setOptions(b).setRegexp(t).setMatches(p).setAttributes({src:n,alt:r,title:l,width:o,height:i}),_=f.converter.dispatch(_),m=_.output&&""!==_.output?_.output:(d=_.attributes,"<img"+v.helper._populateAttributes(d)+" />"),new v.Event("makehtml.image."+e+".onHash",m));return g.setOutput(m)._setGlobals(f)._setOptions(b),g=f.converter.dispatch(g),m=g.output}}),v.subParser("makehtml.link",function(e,m,d){let t=new v.Event("makehtml.link.onStart",e),r=(t.setOutput(e)._setGlobals(d)._setOptions(m),e=(t=d.converter.dispatch(t)).output,/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]/g),n=(e=e.replace(r,function(e,t,a){return/\n\n/.test(e)?e:h("reference",r,e,t,a)}),/\[(.*?)]\(<? ?>? ?(["'](.*)["'])?\)/g),o=(e=e.replace(n,function(e,t,a,r){return h("inline",n,e,t,null,null,r,!0)}),/\[((?:\[[^\]]*]|[^\[\]])*)]\s?\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\4))?[ \t]?\)/g),s=(e=e.replace(o,function(e,t,a,r,n,s){return h("inline",o,e,t,null,a,s)}),/\[([\S ]*?)]\s?\( *<?([^\s'"]*?(?:\(\S*?\)\S*?)?)>?\s*(?:(['"])(.*?)\3)? *\)/g),i=(e=e.replace(s,function(e,t,a,r,n){return h("inline",s,e,t,null,a,n)}),/\[([\S ]*?)]\s?\( *<?([^\s'"]*?(?:\(\S*?\)\S*?)?)>?\s+\((.*?)\) *\)/g),a=(e=e.replace(i,function(e,t,a,r){return h("inline",i,e,t,null,a,r)}),/\[([^\[\]]+)]/g),l=(e=e.replace(a,function(e,t){return h("reference",a,e,t)}),/<(((?:https?|ftp):\/\/|www\.)[^'">\s]+)>/gi),u=(e=e.replace(l,function(e,t,a){var r=t;return t="www."===a?"http://"+t:t,h("angleBrackets",l,e,r,null,t)}),/<(?:mailto:)?([-.\w]+@[-a-z\d]+(\.[-a-z\d]+)*\.[a-z]+)>/gi);if(e=e.replace(u,function(e,t){t=p(t);return h("angleBrackets",u,e,t.mail,null,t.url)}),m.ghMentions){let s=/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d._-]+?[a-z\d]+)*))/gi;e=e.replace(s,function(e,t,a,r,n){if("\\"===a)return t+r;if(!v.helper.isString(m.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");a=m.ghMentionsLink.replace(/\{u}/g,n);return t+h("reference",s,e,r,null,a)})}if(e=(e=e.replace(/<a\s[^>]*>[\s\S]*<\/a>/g,function(e){return v.helper._hashHTMLSpan(e,d)})).replace(/<img\s[^>]*\/?>/g,function(e){return v.helper._hashHTMLSpan(e,d)}),m.simplifiedAutoLink){let i=/([_*~]*?)(((?:https?|ftp):\/\/|www\.)[^\s<>"'`´.-][^\s<>"'`´]*?\.[a-z\d.]+[^\s<>"']*)\1/gi,r=(e=e.replace(i,function(e,t,a,r){let n="";for(let e=a.length-1;0<=e;--e){var s=a.charAt(e);if(/[_*~,;:.!?]/.test(s))a=a.slice(0,-1),n=s+n;else{if(!/[)\]]/.test(s))break;{let e,t;if(t=/\)/.test(s)?(e=a.match(/\(/g)||[],a.match(/\)/g)):(e=a.match(/\[/g)||[],a.match(/]/g)),!(e.length<t.length))break;a=a.slice(0,-1),n=s+n}}}let o=a;return a="www."===r?"http://"+a:a,o=o.replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback),t+h("autoLink",i,e,o,null,a)+n+t}),/(^|\s)(?:mailto:)?([A-Za-z\d!#$%&'*+-/=?^_`{|}~.]+@[-a-z\d]+(\.[-a-z\d]+)*\.[a-z]+)(?=$|\s)/gim);e=e.replace(r,function(e,t,a){a=p(a);return t+h("autoLink",r,e,a.mail,null,a.url)})}let c=new v.Event("makehtml.link.onEnd",e);return c.setOutput(e)._setGlobals(d)._setOptions(m),(c=d.converter.dispatch(c)).output;function h(e,t,a,r,n,s,o,i){let l={_wholeMatch:a,_linkId:n,_url:s,_title:o,text:r},u,c={};if(o=o||null,s=s||null,n=n?n.toLowerCase():null,i=!!i)s="";else if(!s){if(s="#"+(n=n||r.toLowerCase().replace(/ ?\n/g," ")),v.helper.isUndefined(d.gUrls[n]))return a;s=d.gUrls[n],v.helper.isUndefined(d.gTitles[n])||(o=d.gTitles[n])}s=(s=v.helper.applyBaseUrl(m.relativePathBaseUrl,s)).replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback),c.href=s,o&&v.helper.isString(o)&&(o=o.replace(/"/g,""").replace(v.helper.regexes.asteriskDashTildeAndColon,v.helper.escapeCharactersCallback),c.title=o),m.openLinksInNewWindow&&!/^#/.test(s)&&(c.rel="noopener noreferrer",c.target="¨E95Eblank");let h=new v.Event("makehtml.link."+e+".onCapture",a),p=(h.setOutput(null)._setGlobals(d)._setOptions(m).setRegexp(t).setMatches(l).setAttributes(c),h=d.converter.dispatch(h),u=h.output&&""!==h.output?h.output:(c=h.attributes,r=h.matches.text||"",r=v.subParser("makehtml.codeSpan")(r,m,d),r=v.subParser("makehtml.emoji")(r,m,d),r=v.subParser("makehtml.underline")(r,m,d),r=v.subParser("makehtml.emphasisAndStrong")(r,m,d),r=v.subParser("makehtml.strikethrough")(r,m,d),r=v.subParser("makehtml.ellipsis")(r,m,d),r=v.subParser("makehtml.hashHTMLSpans")(r,m,d),"<a"+v.helper._populateAttributes(c)+">"+r+"</a>"),new v.Event("makehtml.link."+e+".onHash",u));return p.setOutput(u)._setGlobals(d)._setOptions(m),p=d.converter.dispatch(p),u=p.output,v.subParser("makehtml.hashHTMLSpans")(u,m,d)}function p(e){let t="mailto:";return e=v.subParser("makehtml.unescapeSpecialChars")(e,m,d),m.encodeEmails?(t=v.helper.encodeEmailAddress(t+e),e=v.helper.encodeEmailAddress(e)):t+=e,{mail:e,url:t}}}),v.subParser("makehtml.list",function(e,k,w){"use strict";const r=/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,n=/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,s=/[*+-]/g;let t=new v.Event("makehtml.list.onStart",e),a=(t.setOutput(e)._setGlobals(w)._setOptions(k),e=(t=w.converter.dispatch(t)).output,e+="¨0",e=(e=w.gListLevel?e.replace(r,function(e,t,a){return o(r,t,-1<a.search(s)?"ul":"ol",!0)}):e.replace(n,function(e,t,a,r){return o(n,a,-1<r.search(s)?"ul":"ol",!1)})).replace(/¨0/,""),new v.Event("makehtml.list.onEnd",e));return a.setOutput(e)._setGlobals(w)._setOptions(k),(a=w.converter.dispatch(a)).output;function h(e,t){w.gListLevel++,e=e.replace(/\n{2,}$/,"\n");let b=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[([xX ])])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,f=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return k.disableForced4SpacesIndentedSublists&&(b=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[([xX ])])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(b,function(e,t,a,r,n,s,o){let i=v.helper.outdent(n),l={},u=o&&""!==o.trim(),c="makehtml.list.listItem",h,p={_wholeMatch:e,listItem:i};if(s&&k.tasklists&&(l.classes=["task-list-item"],l.style="list-style-type: none;",k.moreStyling&&u&&l.classes.push("task-list-item-complete"),c="makehtml.list.taskListItem",p._taskListButton=s,p._taskListButtonChecked=o),(h=new v.Event(c+".onCapture",i)).setOutput(null)._setGlobals(w)._setOptions(k).setRegexp(b).setMatches(p).setAttributes(l),(h=w.converter.dispatch(h)).output&&""!==h.output)i=h.output;else{if(l=h.attributes,i=h.matches.listItem,i=(i=k.tasklists?(m=b,d=i,_=u,d=d.replace(/^[ \t]*\[([xX ])]/m,function(e,t){var a={type:"checkbox",disabled:!0,style:"margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;",checked:!!_};let r=new v.Event("makehtml.list.taskListItem.checkbox.onCapture",d);r.setOutput(null)._setGlobals(w)._setOptions(k).setRegexp(m).setMatches({_wholeMatch:d,_tasklistButton:e,_taksListButtonChecked:t}).setAttributes(a),r=w.converter.dispatch(r);let n,s=(n=r.output&&""!==r.output?r.output:(a=r.attributes,"<input"+v.helper._populateAttributes(a)+">"),new v.Event("makehtml.list.taskListItem.checkbox.onHash",n));return s.setOutput(n)._setGlobals(w)._setOptions(k),s=w.converter.dispatch(s),n=s.output})):i).replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(e){return"¨A"+e}),/^#+.+\n.+/.test(i)&&(i=i.replace(/^(#+.+)$/m,"$1\n")),t||-1<i.search(/\n{2,}/)){i=v.subParser("makehtml.githubCodeBlock")(i,k,w),i=v.subParser("makehtml.blockquote")(i,k,w),i=v.subParser("makehtml.heading")(i,k,w),i=v.subParser("makehtml.list")(i,k,w),i=v.subParser("makehtml.codeBlock")(i,k,w),i=v.subParser("makehtml.table")(i,k,w);let a=(i=(i=(i=v.subParser("makehtml.hashHTMLBlocks")(i,k,w)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),r=[],e=a.length;for(let t=0;t<e;t++){let e=a[t];0<=e.search(/¨([KG])(\d+)\1/g)?r.push(e):0<=e.search(/\S/)&&(e=(e=v.subParser("makehtml.spanGamut")(e,k,w)).replace(/^([ \t]*)/g,"<p>"),e+="</p>",r.push(e))}i=(i=(i=r.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,"")}else i=(i=v.subParser("makehtml.list")(i,k,w)).replace(/\n$/,""),i=(i=v.subParser("makehtml.hashHTMLBlocks")(i,k,w)).replace(/\n\n+/g,"\n\n"),i=(f?v.subParser("makehtml.paragraphs"):v.subParser("makehtml.spanGamut"))(i,k,w);i=i.replace("¨A",""),i="<li"+v.helper._populateAttributes(l)+">"+i+"</li>\n"}var m,d,_;let g=new v.Event(c+".onHash",i);return g.setOutput(i)._setGlobals(w)._setOptions(k),(g=w.converter.dispatch(g)).output})).replace(/¨0/g,""),w.gListLevel--,e=t?e.replace(/\s+$/,""):e}function p(e,t){if("ol"===t){t=e.match(/^ *(\d+)\./);if(t&&"1"!==t[1])return t[1]}return null}function o(e,s,o,i){let l="",t=new v.Event("makehtml.list.onCapture",s);t.setOutput(null)._setGlobals(w)._setOptions(k).setRegexp(e).setMatches({_wholeMatch:s,list:s}).setAttributes({});e=(t=w.converter.dispatch(t)).attributes;if(t.output&&""!==t.output)l=t.output;else{const u=k.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,c=k.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm;let r="ul"===o?u:c,n=v.helper.cloneObject(e);-1!==s.search(r)?function e(t){var a=t.search(r);n.start=p(s,o),-1!==a?(l+="\n\n<"+o+v.helper._populateAttributes(n)+">\n"+h(t.slice(0,a),!!i)+"</"+o+">\n",o="ul"===o?"ol":"ul",r="ul"===o?u:c,e(t.slice(a),n)):l+="\n\n<"+o+v.helper._populateAttributes(n)+">\n"+h(t,!!i)+"</"+o+">\n"}(s):(n.start=p(s,o),l="\n\n<"+o+v.helper._populateAttributes(n)+">\n"+h(s,!!i)+"</"+o+">\n")}return l}}),v.subParser("makehtml.metadata",function(e,i,l){"use strict";if(!i.metadata)return e;let t=new v.Event("makehtml.metadata.onStart",e);function r(e,t,a,r){let n,s=new v.Event("makehtml.metadata.onCapture",r),o=(s.setOutput(null)._setGlobals(l)._setOptions(i).setRegexp(e).setMatches({_wholeMatch:t,format:a,content:r}).setAttributes({}),a=(s=l.converter.dispatch(s)).matches.format,r=s.matches.content,n=s.output&&""!==s.output?s.output:"¨M",l.metadata.raw=r,l.metadata.format=a,(r=r.replace(/&/g,"&").replace(/"/g,""").replace(/¨D/g,"$$").replace(/¨T/g,"¨").replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,a){return l.metadata.parsed[t]=a,""}),new v.Event("makehtml.metadata.onHash",n));return o.setOutput(n)._setGlobals(l)._setOptions(i),o=l.converter.dispatch(o),n=(n=o.output)||"¨M"}t.setOutput(e)._setGlobals(l)._setOptions(i),e=(t=l.converter.dispatch(t)).output;const n=/^\s*«««+\s*(\S*?)\n([\s\S]+?)\n»»»+\s*\n/;e=(e=(e=e.replace(n,function(e,t,a){return r(n,e,t,a)})).replace(/^\s*---+\s*(\S*?)\n([\s\S]+?)\n---+\s*\n/,function(e,t,a){return r(n,e,t,a)})).replace(/¨M/g,"");let a=new v.Event("makehtml.metadata.onEnd",e);return a.setOutput(e)._setGlobals(l)._setOptions(i),(a=l.converter.dispatch(a)).output}),v.subParser("makehtml.paragraphs",function(e,t,a){"use strict";for(var r=(e=(e=e.replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),n=[],s=r.length,o=0;o<s;o++){var i=r[o];0<=i.search(/¨(K|G)(\d+)\1/g)?n.push(i):0<=i.search(/\S/)&&(i=(i=v.subParser("makehtml.spanGamut")(i,t,a)).replace(/^([ \t]*)/g,"<p>"),i+="</p>",n.push(i))}for(s=n.length,o=0;o<s;o++){for(var l="",u=n[o],c=!1;/¨([KG])(\d+)\1/.test(u);){var h=RegExp.$1,p=RegExp.$2;l=(l="K"===h?a.gHtmlBlocks[p]:c?v.subParser("makehtml.encodeCode")(a.ghCodeBlocks[p].text,t,a):a.ghCodeBlocks[p].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?¨([KG])\d+\2(\n\n)?/,l),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)&&(c=!0)}n[o]=u}return e=(e=(e=n.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,"")}),v.subParser("makehtml.runExtension",function(t,a,e,r){"use strict";if(t.filter)a=t.filter(a,r.converter,e);else if(t.regex){let e=t.regex;e instanceof RegExp||(e=new RegExp(e,"g")),a=a.replace(e,t.replace)}return a}),v.subParser("makehtml.spanGamut",function(e,t,a){"use strict";let r=new v.Event("makehtml.spanGamut.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(r=a.converter.dispatch(r)).output,e=v.subParser("makehtml.codeSpan")(e,t,a),e=v.subParser("makehtml.escapeSpecialCharsWithinTagAttributes")(e,t,a),e=v.subParser("makehtml.encodeBackslashEscapes")(e,t,a),e=v.subParser("makehtml.image")(e,t,a),e=v.subParser("makehtml.link")(e,t,a),e=v.subParser("makehtml.emoji")(e,t,a),e=v.subParser("makehtml.underline")(e,t,a),e=v.subParser("makehtml.emphasisAndStrong")(e,t,a),e=v.subParser("makehtml.strikethrough")(e,t,a),e=v.subParser("makehtml.ellipsis")(e,t,a),e=v.subParser("makehtml.hashHTMLSpans")(e,t,a),e=v.subParser("makehtml.encodeAmpsAndAngles")(e,t,a),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),new v.Event("makehtml.spanGamut.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.strikethrough",function(e,s,o){"use strict";if(!s.strikethrough)return e;let t=new v.Event("makehtml.strikethrough.onStart",e);t.setOutput(e)._setGlobals(o)._setOptions(s),e=(t=o.converter.dispatch(t)).output;const i=/~{2}([\s\S]+?)~{2}/g;e=e.replace(i,function(e,t){let a,r=new v.Event("makehtml.strikethrough.onCapture",t),n=(r.setOutput(null)._setGlobals(o)._setOptions(s).setRegexp(i).setMatches({_wholeMatch:e,strikethrough:t}).setAttributes({}),r=o.converter.dispatch(r),a=r.output&&""!==r.output?r.output:"<del"+v.helper._populateAttributes(r.attributes)+">"+t+"</del>",new v.Event("makehtml.strikethrough.onHash",a));return n.setOutput(a)._setGlobals(o)._setOptions(s),(n=o.converter.dispatch(n)).output});let a=new v.Event("makehtml.strikethrough.onEnd",e);return a.setOutput(e)._setGlobals(o)._setOptions(s),(a=o.converter.dispatch(a)).output}),v.subParser("makehtml.stripLinkDefinitions",function(i,l,u){"use strict";function e(e,t,a,r,n,s,o){return t=t.toLowerCase(),i.toLowerCase().split(t).length-1<2?e:(a.match(/^data:.+?\/.+?;base64,/)?u.gUrls[t]=a.replace(/\s/g,""):(a=v.helper.applyBaseUrl(l.relativePathBaseUrl,a),u.gUrls[t]=v.subParser("makehtml.encodeAmpsAndAngles")(a,l,u)),s?s+o:(o&&(u.gTitles[t]=o.replace(/["']/g,""")),l.parseImgDimensions&&r&&n&&(u.gDimensions[t]={width:r,height:n}),""))}return i=(i=(i=(i+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z\d+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,e)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,e)).replace(/¨0/,"")}),v.subParser("makehtml.table",function(e,u,c){"use strict";if(!u.tables)return e;e=e.replace(/\\(\|)/g,v.helper.escapeCharactersCallback);let t=new v.Event("makehtml.table.onStart",e);t.setOutput(e)._setGlobals(c)._setOptions(u),e=(t=c.converter.dispatch(t)).output;const a=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*[-=]{2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*[-=]{2,}[\s\S]+?(?:\n\n|¨0)/gm,r=(e=e.replace(a,function(e){return s(a,e)}),/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*[-=]{2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm);e=e.replace(r,function(e){return s(r,e)});let n=new v.Event("makehtml.table.onEnd",e);return n.setOutput(e)._setGlobals(c)._setOptions(u),(n=c.converter.dispatch(n)).output;function s(e,t){var a=h(t);if(!a)return t;let r=a.rawHeaders,n=a.rawStyles,s=a.rawCells,o,i=new v.Event("makehtml.table.onCapture",t);if(i.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(e).setMatches({_wholeMatch:t,table:t}).setAttributes({}),(i=c.converter.dispatch(i)).output&&""!==i.output)o=i.output;else{if(i.matches.table!==t){if(!(a=h(i.matches.table)))return t;r=a.rawHeaders,n=a.rawStyles,s=a.rawCells}e=function(n,t,i){const s=[],e=[],l=[],a=n.length,r=i.length;for(let e=0;e<a;++e)l.push(function(e){return/^:[ \t]*-+$/.test(e)?{style:"text-align:left;"}:/^-+[ \t]*:[ \t]*$/.test(e)?{style:"text-align:right;"}:/^:[ \t]*-+[ \t]*:$/.test(e)?{style:"text-align:center;"}:{}}(t[e]));for(let r=0;r<a;++r){let e=n[r],t=new v.Event("makehtml.table.header.onCapture",n[r]),a=(t.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(null).setMatches({_wholeMatch:n[r],header:n[r]}).setAttributes(l[r]),t=c.converter.dispatch(t),e=t.output&&""!==t.output?t.output:function(e,t){e=e.trim(),e=v.subParser("makehtml.spanGamut")(e,u,c),(u.tablesHeaderId||u.tableHeaderId)&&(t.id=e.replace(/ /g,"_").toLowerCase());return"<th"+v.helper._populateAttributes(t)+">"+e+"</th>\n"}(t.matches.header,l[r]),new v.Event("makehtml.table.header.onHash",e));a.setOutput(e)._setGlobals(c)._setOptions(u),a=c.converter.dispatch(a),e=a.output,s.push(e)}for(let o=0;o<r;++o){let s=[];for(let n=0;n<a;++n){let e=v.helper.isUndefined(i[o][n])?"":i[o][n],t=v.helper.isUndefined(l[n])?{}:l[n],a=(t.id&&(t.classes=[t.id]+"_col",delete t.id),new v.Event("makehtml.table.cell.onCapture",e)),r=(a.setOutput(null)._setGlobals(c)._setOptions(u).setRegexp(null).setMatches({_wholeMatch:e,cell:e}).setAttributes(t),a=c.converter.dispatch(a),e=a.output&&""!==a.output?a.output:(t=a.attributes,function(e,t){return e=v.subParser("makehtml.spanGamut")(e,u,c),"<td"+v.helper._populateAttributes(t)+">"+e+"</td>\n"}(a.matches.cell,t)),new v.Event("makehtml.table.cell.onHash",e));r.setOutput(e)._setGlobals(c)._setOptions(u),r=c.converter.dispatch(r),e=r.output,s.push(e)}e.push(s)}return{headers:s,cells:e}}(r,n,s),t=i.attributes;o=function(t,a,e){let r;var n=t.length,s=a.length;r="<table"+v.helper._populateAttributes(e)+">\n<thead>\n<tr>\n";for(let e=0;e<n;++e)r+=t[e];r+="</tr>\n</thead>\n<tbody>\n";for(let t=0;t<s;++t){r+="<tr>\n";for(let e=0;e<n;++e)r+=a[t][e];r+="</tr>\n"}return r+="</tbody>\n</table>\n"}(e.headers,e.cells,t)}let l=new v.Event("makehtml.table.onHash",o);return l.setOutput(o)._setGlobals(c)._setOptions(u),l=c.converter.dispatch(l),o=l.output}function h(e){let t=e.split("\n");for(let e=0;e<t.length;++e)/^ {0,3}\|/.test(t[e])&&(t[e]=t[e].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(t[e])&&(t[e]=t[e].replace(/\|[ \t]*$/,"")),t[e]=v.subParser("makehtml.codeSpan")(t[e],u,c);let a=t[0].split("|").map(function(e){return e.trim()}),r=t[1].split("|").map(function(e){return e.trim()}),n=[];t.shift(),t.shift();for(let e=0;e<t.length;++e)""!==t[e].trim()&&n.push(t[e].split("|").map(function(e){return e.trim()}));return a.length<r.length?null:{rawHeaders:a,rawStyles:r,rawCells:n}}}),v.subParser("makehtml.underline",function(e,o,i){"use strict";if(!o.underline)return e;let t=new v.Event("makehtml.underline.onStart",e);if(t.setOutput(e)._setGlobals(i)._setOptions(o),e=(t=i.converter.dispatch(t)).output,o.literalMidWordUnderscores){const n=/\b___(\S[\s\S]*?)___\b/g,s=(e=e.replace(n,function(e,t){return r(n,e,t)}),/\b__(\S[\s\S]*?)__\b/g);e=e.replace(s,function(e,t){return r(s,e,t)})}else{const l=/___(\S[\s\S]*?)___/g,u=(e=e.replace(l,function(e,t){return/\S$/.test(t)?r(l,e,t):e}),/__(\S[\s\S]*?)__/g);e=e.replace(u,function(e,t){return/\S$/.test(t)?r(u,e,t):e})}e=e.replace(/(_)/g,v.helper.escapeCharactersCallback);let a=new v.Event("makehtml.underline.onEnd",e);return a.setOutput(e)._setGlobals(i)._setOptions(o),(a=i.converter.dispatch(a)).output;function r(e,t,a){let r,n=new v.Event("makehtml.underline.onCapture",a),s=(n.setOutput(null)._setGlobals(i)._setOptions(o).setRegexp(e).setMatches({_wholeMatch:t,strikethrough:a}).setAttributes({}),n=i.converter.dispatch(n),r=n.output&&""!==n.output?n.output:"<u"+v.helper._populateAttributes(n.attributes)+">"+a+"</u>",new v.Event("makehtml.underline.onHash",r));return s.setOutput(r)._setGlobals(i)._setOptions(o),(s=i.converter.dispatch(s)).output}}),v.subParser("makehtml.unescapeSpecialChars",function(e,t,a){"use strict";let r=new v.Event("makehtml.unescapeSpecialChars.onStart",e),n=(r.setOutput(e)._setGlobals(a)._setOptions(t),e=(e=(r=a.converter.dispatch(r)).output).replace(/¨E(\d+)E/g,function(e,t){t=parseInt(t);return String.fromCharCode(t)}),new v.Event("makehtml.unescapeSpecialChars.onEnd",e));return n.setOutput(e)._setGlobals(a)._setOptions(t),(n=a.converter.dispatch(n)).output}),v.subParser("makehtml.unhashHTMLSpans",function(r,e,n){"use strict";let t=new v.Event("makehtml.unhashHTMLSpans.onStart",r);t.setOutput(r)._setGlobals(n)._setOptions(e),r=(t=n.converter.dispatch(t)).output;for(let a=0;a<n.gHtmlSpans.length;++a){let e=n.gHtmlSpans[a],t=0;for(;/¨C(\d+)C/.test(e);){var s=e.match(/¨C(\d+)C/)[1];if(e=e.replace("¨C"+s+"C",n.gHtmlSpans[s]),10===t){console.error("maximum nesting of 20 spans reached!!!");break}++t}r=r.replace("¨C"+a+"C",e)}let a=new v.Event("makehtml.unhashHTMLSpans.onEnd",r);return a.setOutput(r)._setGlobals(n)._setOptions(e),(a=n.converter.dispatch(a)).output}),v.subParser("makeMarkdown.blockquote",function(e,t){"use strict";var a="";if(e.hasChildNodes())for(var r=e.childNodes,n=r.length,s=0;s<n;++s){var o=v.subParser("makeMarkdown.node")(r[s],t);""!==o&&(a+=o)}return a="> "+(a=a.trim()).split("\n").join("\n> ")}),v.subParser("makeMarkdown.break",function(){"use strict";return" \n"}),v.subParser("makeMarkdown.codeBlock",function(e,t){"use strict";var a=e.getAttribute("language"),e=e.getAttribute("precodenum");return"```"+a+"\n"+t.preList[e]+"\n```"}),v.subParser("makeMarkdown.codeSpan",function(e){"use strict";return"`"+e.innerHTML+"`"}),v.subParser("makeMarkdown.emphasis",function(e,t){"use strict";var a="";if(e.hasChildNodes()){a+="*";for(var r=e.childNodes,n=r.length,s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t);a+="*"}return a}),v.subParser("makeMarkdown.header",function(e,t,a){"use strict";var a=new Array(a+1).join("#"),r="";if(e.hasChildNodes())for(var r=a+" ",n=e.childNodes,s=n.length,o=0;o<s;++o)r+=v.subParser("makeMarkdown.node")(n[o],t);return r}),v.subParser("makeMarkdown.hr",function(){"use strict";return"---"}),v.subParser("makeMarkdown.image",function(e){"use strict";var t="";return e.hasAttribute("src")&&(t=(t+="!["+e.getAttribute("alt")+"](")+"<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),v.subParser("makeMarkdown.input",function(e,t){"use strict";for(var a="",r=(null!==e.getAttribute("checked")?a+="[x]":a+="[ ]",e.childNodes),n=r.length,s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t);return a}),v.subParser("makeMarkdown.links",function(e,t){"use strict";var a="";if(e.hasChildNodes()&&e.hasAttribute("href")){for(var r=e.childNodes,n=r.length,a="[",s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t);a=(a+="](")+("<"+e.getAttribute("href")+">"),e.hasAttribute("title")&&(a+=' "'+e.getAttribute("title")+'"'),a+=")"}return a}),v.subParser("makeMarkdown.list",function(e,t,a){"use strict";var r="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,s=n.length,o=e.getAttribute("start")||1,i=0;i<s;++i)void 0!==n[i].tagName&&"li"===n[i].tagName.toLowerCase()&&(r+=("ol"===a?o.toString()+". ":"- ")+v.subParser("makeMarkdown.listItem")(n[i],t),++o);return r.trim()}),v.subParser("makeMarkdown.listItem",function(e,t){"use strict";for(var a="",r=e.childNodes,n=r.length,s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t);return/\n$/.test(a)?a=a.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):a+="\n",a}),v.subParser("makeMarkdown.node",function(e,t,a){"use strict";a=a||!1;var r="";if(3===e.nodeType)return v.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":a||(r=v.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":a||(r=v.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":a||(r=v.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":a||(r=v.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":a||(r=v.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":a||(r=v.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":a||(r=v.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":a||(r=v.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":a||(r=v.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":a||(r=v.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":a||(r=v.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":a||(r=v.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":a||(r=v.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":a||(r=v.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":r=v.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":r=v.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":r=v.subParser("makeMarkdown.strong")(e,t);break;case"del":r=v.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":r=v.subParser("makeMarkdown.links")(e,t);break;case"img":r=v.subParser("makeMarkdown.image")(e,t);break;case"br":r=v.subParser("makeMarkdown.break")(e,t);break;case"input":r=v.subParser("makeMarkdown.input")(e,t);break;default:r=e.outerHTML+"\n\n"}return r}),v.subParser("makeMarkdown.paragraph",function(e,t){"use strict";var a="";if(e.hasChildNodes())for(var r=e.childNodes,n=r.length,s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t);return a=a.trim()}),v.subParser("makeMarkdown.pre",function(e,t){"use strict";e=e.getAttribute("prenum");return"<pre>"+t.preList[e]+"</pre>"}),v.subParser("makeMarkdown.strikethrough",function(e,t){"use strict";var a="";if(e.hasChildNodes()){a+="~~";for(var r=e.childNodes,n=r.length,s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t);a+="~~"}return a}),v.subParser("makeMarkdown.strong",function(e,t){"use strict";var a="";if(e.hasChildNodes()){a+="**";for(var r=e.childNodes,n=r.length,s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t);a+="**"}return a}),v.subParser("makeMarkdown.table",function(e,t){"use strict";var a,r,n="",s=[[],[]],o=[];function i(e){for(var t=e.childNodes,a=[],r=0;r<t.length;++r){var n=t[r].nodeName.toUpperCase();"TD"!==n&&"TH"!==n||a.push(t[r])}return a}if(0!==e.querySelectorAll(":scope>thead").length&&0!==e.querySelectorAll(":scope>thead>tr").length)for(var l=e.querySelectorAll(":scope>thead>tr"),u=0;u<l.length;++u)o.push(i(l[u]));if(0!==e.querySelectorAll(":scope>tbody").length&&0!==e.querySelectorAll(":scope>tbody>tr").length){var c=e.querySelectorAll(":scope>tbody>tr");for(u=0;u<c.length;++u)o.push(i(c[u]))}if(0!==e.querySelectorAll(":scope>tfoot").length&&0!==e.querySelectorAll(":scope>tfoot>tr").length){var h=e.querySelectorAll(":scope>tfoot>tr");for(u=0;u<h.length;++u)o.push(i(h[u]))}if(0!==e.querySelectorAll(":scope>tr").length){var p=e.querySelectorAll(":scope>tr");for(u=0;u<p.length;++u)o.push(i(p[u]))}if(0===o.length)return n;for(r=o[0].length,a=o.shift(),u=0;u<a.length;++u){var m=v.subParser("makeMarkdown.tableCell")(a[u],t),d="---";if(a[u].hasAttribute("style"))switch(a[u].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":d=":---";break;case"text-align:right;":d="---:";break;case"text-align:center;":d=":---:"}s[0][u]=m.trim(),s[1][u]=d}for(u=0;u<o.length;++u)for(var _=s.push([])-1,g=0;g<r;++g){var b=" ";void 0!==o[u][g]&&(b=v.subParser("makeMarkdown.tableCell")(o[u][g],t)),s[_].push(b)}var f=3;for(u=0;u<s.length;++u)for(g=0;g<s[u].length;++g){var k=s[u][g].length;f<k&&(f=k)}for(u=0;u<s.length;++u){for(g=0;g<s[u].length;++g)1===u?":"===s[u][g].slice(-1)?s[u][g]=v.helper.padEnd(s[u][g].slice(0,-1),f-1,"-")+":":s[u][g]=v.helper.padEnd(s[u][g],f,"-"):s[u][g]=v.helper.padEnd(s[u][g],f);n+="| "+s[u].join(" | ")+" |\n"}return n.trim()}),v.subParser("makeMarkdown.tableCell",function(e,t){"use strict";var a="";if(!e.hasChildNodes())return"";for(var r=e.childNodes,n=r.length,s=0;s<n;++s)a+=v.subParser("makeMarkdown.node")(r[s],t,!0);return a.trim()}),v.subParser("makeMarkdown.txt",function(e){"use strict";e=e.nodeValue;return e=(e=e.replace(/ +/g," ")).replace(/¨NBSP;/g," "),e=(e=(e=(e=(e=(e=(e=(e=(e=v.helper.unescapeHTMLEntities(e)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}),v.Converter=function(e){"use strict";let n={},i=[],l=[],r={},s=m,o={parsed:{},raw:"",format:""};for(var t in e=e||{},p)p.hasOwnProperty(t)&&(n[t]=p[t]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);function u(e,t){if(t=t||null,v.helper.isString(e)){if(t=e=v.helper.stdExtName(e),v.extensions[e]){console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!");var a=v.extensions[e],r=e;if("function"==typeof a&&(a=a(new v.Converter)),v.helper.isArray(a)||(a=[a]),!(r=_(a,r)).valid)throw Error(r.error);for(var n=0;n<a.length;++n)switch(a[n].type){case"lang":i.push(a[n]);break;case"output":l.push(a[n]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}return}if(v.helper.isUndefined(h[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=h[e]}"function"==typeof e&&(e=e());r=_(e=v.helper.isArray(e)?e:[e],t);if(!r.valid)throw Error(r.error);for(var s=0;s<e.length;++s){switch(e[s].type){case"lang":i.push(e[s]);break;case"output":l.push(e[s])}if(e[s].hasOwnProperty("listeners"))for(var o in e[s].listeners)e[s].listeners.hasOwnProperty(o)&&c(o,e[s].listeners[o])}}function c(e,t){if(!v.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");e=e.toLowerCase(),r.hasOwnProperty(e)||(r[e]=[]),r[e].push(t)}n.extensions&&v.helper.forEach(n.extensions,u),n=v.helper.validateOptions(n),this.dispatch=function(t){if(!(t instanceof v.Event))throw new TypeError("dispatch only accepts showdown.Event objects as param, but "+typeof t+" given");if(t.converter=this,r.hasOwnProperty(t.name))for(let e=0;e<r[t.name].length;++e){var a=r[t.name][e](t);v.helper.isString(a)?(t.output=a,t.input=a):a instanceof v.Event&&a.name===t.name&&(t=a)}return t},this.listen=function(e,t){return c(e,t),this},this.makeHtml=function(t){if(!t)return t;var e,a,r={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:i,outputModifiers:l,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return t=(t=(t=(t=(t=t.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),n.smartIndentationFix&&(a=(e=t).match(/^\s*/)[0].length,a=new RegExp("^\\s{0,"+a+"}","gm"),t=e.replace(a,"")),t="\n\n"+t+"\n\n",t=(t=v.subParser("makehtml.detab")(t,n,r)).replace(/^[ \t]+$/gm,""),v.helper.forEach(i,function(e){t=v.subParser("makehtml.runExtension")(e,t,n,r)}),t=v.subParser("makehtml.metadata")(t,n,r),t=v.subParser("makehtml.hashPreCodeTags")(t,n,r),t=v.subParser("makehtml.githubCodeBlock")(t,n,r),t=v.subParser("makehtml.hashHTMLBlocks")(t,n,r),t=v.subParser("makehtml.hashCodeTags")(t,n,r),t=v.subParser("makehtml.stripLinkDefinitions")(t,n,r),t=v.subParser("makehtml.blockGamut")(t,n,r),t=v.subParser("makehtml.unhashHTMLSpans")(t,n,r),t=(t=(t=v.subParser("makehtml.unescapeSpecialChars")(t,n,r)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),t=v.subParser("makehtml.completeHTMLDocument")(t,n,r),v.helper.forEach(l,function(e){t=v.subParser("makehtml.runExtension")(e,t,n,r)}),o=r.metadata,t},this.makeMarkdown=function(e){e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<");for(var t=v.helper.document.createElement("div"),a=(t.innerHTML=e,{preList:function(e){for(var t=e.querySelectorAll("pre"),a=[],r=0;r<t.length;++r)if(1===t[r].childElementCount&&"code"===t[r].firstChild.tagName.toLowerCase()){var n=t[r].firstChild.innerHTML.trim(),s=t[r].firstChild.getAttribute("data-language")||"";if(""===s)for(var o=t[r].firstChild.className.split(" "),i=0;i<o.length;++i){var l=o[i].match(/^language-(.+)$/);if(null!==l){s=l[1];break}}n=v.helper.unescapeHTMLEntities(n),a.push(n),t[r].outerHTML='<precode language="'+s+'" precodenum="'+r.toString()+'"></precode>'}else a.push(t[r].innerHTML),t[r].innerHTML="",t[r].setAttribute("prenum",r.toString());return a}(t)}),r=(!function e(t){for(var a=0;a<t.childNodes.length;++a){var r=t.childNodes[a];3===r.nodeType?/\S/.test(r.nodeValue)||/^[ ]+$/.test(r.nodeValue)?(r.nodeValue=r.nodeValue.split("\n").join(" "),r.nodeValue=r.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(r),--a):1===r.nodeType&&e(r)}}(t),t.childNodes),n="",s=0;s<r.length;s++)n+=v.subParser("makeMarkdown.node")(r[s],a);return n},this.setOption=function(e,t){n[e]=t},this.getOption=function(e){return n[e]},this.getOptions=function(){return n},this.addExtension=function(e,t){u(e,t=t||null)},this.useExtension=function(e){u(e)},this.setFlavor=function(e){if(!d.hasOwnProperty(e))throw Error(e+" flavor was not found");var t,a=d[e];for(t in s=e,a)a.hasOwnProperty(t)&&(n[t]=a[t])},this.getFlavor=function(){return s},this.removeExtension=function(e){v.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var a=e[t],r=0;r<i.length;++r)i[r]===a&&i.splice(r,1);for(var n=0;n<l.length;++n)l[n]===a&&l.splice(n,1)}},this.getAllExtensions=function(){return{language:i,output:l}},this.getMetadata=function(e){return e?o.raw:o.parsed},this.getMetadataFormat=function(){return o.format},this._setMetadataPair=function(e,t){o.parsed[e]=t},this._setMetadataFormat=function(e){o.format=e},this._setMetadataRaw=function(e){o.raw=e}};"function"==typeof define&&define.amd?define(function(){"use strict";return v}):"undefined"!=typeof module&&module.exports?module.exports=v:this.showdown=v}.call(this);
|
||
//# sourceMappingURL=showdown.min.js.map
|