@jhuix/showdowns 0.6.11 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/showdowns.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* showdowns.min.js v0.6.
|
|
2
|
+
* showdowns.min.js v0.6.12
|
|
3
3
|
* Copyright (c) 2019-present, Jhuix (Hui Jin) <jhuix0117@gmail.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).showdowns=t()}(this,function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}function t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var r=1;arguments.length>r;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach(function(n){t(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function i(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){(function(){function t(e){var 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:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",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"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var n={},r={},i={},a=t(!0),o="vanilla",s={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!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,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:function(){var e=t(!0),n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}()};function l(e,t){var r=t?"Error in "+t+" extension->":"Error in unnamed extension",i={valid:!0,error:""};n.helper.isArray(e)||(e=[e]);for(var a=0;e.length>a;++a){var o=r+" sub-extension "+a+": ",s=e[a];if("object"!=typeof s)return i.valid=!1,i.error=o+"must be an object, but "+typeof s+" given",i;if(!n.helper.isString(s.type))return i.valid=!1,i.error=o+'property "type" must be a string, but '+typeof s.type+" given",i;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return i.valid=!1,i.error=o+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',i;if("listener"===l){if(n.helper.isUndefined(s.listeners))return i.valid=!1,i.error=o+'. Extensions of type "listener" must have a property called "listeners"',i}else if(n.helper.isUndefined(s.filter)&&n.helper.isUndefined(s.regex))return i.valid=!1,i.error=o+l+' extensions must define either a "regex" property or a "filter" method',i;if(s.listeners){if("object"!=typeof s.listeners)return i.valid=!1,i.error=o+'"listeners" property must be an object but '+typeof s.listeners+" given",i;for(var u in s.listeners)if(s.listeners.hasOwnProperty(u)&&"function"!=typeof s.listeners[u])return i.valid=!1,i.error=o+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+u+" must be a function but "+typeof s.listeners[u]+" given",i}if(s.filter){if("function"!=typeof s.filter)return i.valid=!1,i.error=o+'"filter" must be a function, but '+typeof s.filter+" given",i}else if(s.regex){if(n.helper.isString(s.regex)&&(s.regex=RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return i.valid=!1,i.error=o+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",i;if(n.helper.isUndefined(s.replace))return i.valid=!1,i.error=o+'"regex" extensions must implement a replace string or function',i}}return i}function u(e,t){return"¨E"+t.charCodeAt(0)+"E"}n.helper={},n.extensions={},n.setOption=function(e,t){return a[e]=t,this},n.getOption=function(e){return a[e]},n.getOptions=function(){return a},n.resetOptions=function(){a=t(!0)},n.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");n.resetOptions();var t=s[e];for(var r in o=e,t)t.hasOwnProperty(r)&&(a[r]=t[r])},n.getFlavor=function(){return o},n.getFlavorOptions=function(e){if(s.hasOwnProperty(e))return s[e]},n.getDefaultOptions=function(e){return t(e)},n.subParser=function(e,t){if(n.helper.isString(e)){if(void 0===t){if(r.hasOwnProperty(e))return r[e];throw Error("SubParser named "+e+" not registered!")}r[e]=t}},n.extension=function(e,t){if(!n.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=n.helper.stdExtName(e),n.helper.isUndefined(t)){if(!i.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return i[e]}"function"==typeof t&&(t=t()),n.helper.isArray(t)||(t=[t]);var r=l(t,e);if(!r.valid)throw Error(r.error);i[e]=t},n.getAllExtensions=function(){return i},n.removeExtension=function(e){delete i[e]},n.resetExtensions=function(){i={}},n.validateExtension=function(e){return!!l(e,null).valid},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(e){return"string"==typeof e||e instanceof String},n.helper.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},n.helper.isArray=function(e){return Array.isArray(e)},n.helper.isUndefined=function(e){return void 0===e},n.helper.forEach=function(e,t){if(n.helper.isUndefined(e))throw Error("obj param is required");if(n.helper.isUndefined(t))throw Error("callback param is required");if(!n.helper.isFunction(t))throw Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(n.helper.isArray(e))for(var r=0;e.length>r;r++)t(e[r],r,e);else{if("object"!=typeof e)throw Error("obj does not seem to be an array or an iterable object");for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)}},n.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},n.helper.escapeCharactersCallback=u,n.helper.escapeCharacters=function(e,t,n){var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var i=RegExp(r,"g");return e=e.replace(i,u)},n.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var c=function(e,t,n,r){var i,a,o,s,l,u=r||"",c=u.indexOf("g")>-1,d=RegExp(t+"|"+n,"g"+u.replace(/g/g,"")),h=RegExp(t,u.replace(/g/g,"")),f=[];do{for(i=0;o=d.exec(e);)if(h.test(o[0]))i++||(s=(a=d.lastIndex)-o[0].length);else if(i){if(! --i)if(f.push({left:{start:s,end:a},match:{start:a,end:o.index},right:{start:o.index,end:l=o.index+o[0].length},wholeMatch:{start:s,end:l}}),!c)return f}}while(i&&(d.lastIndex=a));return f};n.helper.matchRecursiveRegExp=function(e,t,n,r){for(var i=c(e,t,n,r),a=[],o=0;i.length>o;++o)a.push([e.slice(i[o].wholeMatch.start,i[o].wholeMatch.end),e.slice(i[o].match.start,i[o].match.end),e.slice(i[o].left.start,i[o].left.end),e.slice(i[o].right.start,i[o].right.end)]);return a},n.helper.replaceRecursiveRegExp=function(e,t,r,i,a){if(!n.helper.isFunction(t)){var o=t;t=function(){return o}}var s=c(e,r,i,a),l=e,u=s.length;if(u>0){var d=[];0!==s[0].wholeMatch.start&&d.push(e.slice(0,s[0].wholeMatch.start));for(var h=0;u>h;++h)d.push(t(e.slice(s[h].wholeMatch.start,s[h].wholeMatch.end),e.slice(s[h].match.start,s[h].match.end),e.slice(s[h].left.start,s[h].left.end),e.slice(s[h].right.start,s[h].right.end))),u-1>h&&d.push(e.slice(s[h].wholeMatch.end,s[h+1].wholeMatch.start));e.length>s[u-1].wholeMatch.end&&d.push(e.slice(s[u-1].wholeMatch.end)),l=d.join("")}return l},n.helper.regexIndexOf=function(e,t,r){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var i=e.substring(r||0).search(t);return 0>i?i:i+(r||0)},n.helper.splitAtIndex=function(e,t){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},n.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e})},n.helper.padEnd=function(e,t,n){return n=(n||" ")+"",e.length>(t|=0)?e+"":((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),e+""+n.slice(0,t))},void 0===console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",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:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",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:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",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:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",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_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:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",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_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_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",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:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",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_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",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_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},n.Converter=function(e){var t={},r=[],u=[],c={},d=o,h={parsed:{},raw:"",format:""};function f(e,t){if(t=t||null,n.helper.isString(e)){if(t=e=n.helper.stdExtName(e),n.extensions[e])return void function(e,t){"function"==typeof e&&(e=e(new n.Converter));n.helper.isArray(e)||(e=[e]);var i=l(e,t);if(!i.valid)throw Error(i.error);for(var a=0;e.length>a;++a)switch(e[a].type){case"lang":r.push(e[a]);break;case"output":u.push(e[a]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(n.extensions[e],e);if(n.helper.isUndefined(i[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=i[e]}"function"==typeof e&&(e=e()),n.helper.isArray(e)||(e=[e]);var a=l(e,t);if(!a.valid)throw Error(a.error);for(var o=0;e.length>o;++o){switch(e[o].type){case"lang":r.push(e[o]);break;case"output":u.push(e[o])}if(e[o].hasOwnProperty("listeners"))for(var s in e[o].listeners)e[o].listeners.hasOwnProperty(s)&&p(s,e[o].listeners[s])}}function p(e,t){if(!n.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");c.hasOwnProperty(e)||(c[e]=[]),c[e].push(t)}!function(){for(var r in e=e||{},a)a.hasOwnProperty(r)&&(t[r]=a[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.extensions&&n.helper.forEach(t.extensions,f)}(),this._dispatch=function(e,t,n,r){if(c.hasOwnProperty(e))for(var i=0;c[e].length>i;++i){var a=c[e][i](e,t,this,n,r);a&&void 0!==a&&(t=a)}return t},this.listen=function(e,t){return p(e,t),this},this.makeHtml=function(e){if(!e)return e;var i={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:u,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=n.subParser("detab")(e,t,i)).replace(/^[ \t]+$/gm,""),n.helper.forEach(r,function(r){e=n.subParser("runExtension")(r,e,t,i)}),e=n.subParser("metadata")(e,t,i),e=n.subParser("hashPreCodeTags")(e,t,i),e=n.subParser("githubCodeBlocks")(e,t,i),e=n.subParser("hashHTMLBlocks")(e,t,i),e=n.subParser("hashCodeTags")(e,t,i),e=n.subParser("stripLinkDefinitions")(e,t,i),e=n.subParser("blockGamut")(e,t,i),e=n.subParser("unhashHTMLSpans")(e,t,i),e=(e=(e=n.subParser("unescapeSpecialChars")(e,t,i)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=n.subParser("completeHTMLDocument")(e,t,i),n.helper.forEach(u,function(r){e=n.subParser("runExtension")(r,e,t,i)}),h=i.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var i={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],i=0;t.length>i;++i)if(1===t[i].childElementCount&&"code"===t[i].firstChild.tagName.toLowerCase()){var a=t[i].firstChild.innerHTML.trim(),o=t[i].firstChild.getAttribute("data-language")||"";if(""===o)for(var s=t[i].firstChild.className.split(" "),l=0;s.length>l;++l){var u=s[l].match(/^language-(.+)$/);if(null!==u){o=u[1];break}}a=n.helper.unescapeHTMLEntities(a),r.push(a),t[i].outerHTML='<precode language="'+o+'" precodenum="'+i+'"></precode>'}else r.push(t[i].innerHTML),t[i].innerHTML="",t[i].setAttribute("prenum",""+i);return r}(r)};!function e(t){for(var n=0;t.childNodes.length>n;++n){var r=t.childNodes[n];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),--n):1===r.nodeType&&e(r)}}(r);for(var a=r.childNodes,o="",s=0;a.length>s;s++)o+=n.subParser("makeMarkdown.node")(a[s],i);return o},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){f(e,t=t||null)},this.useExtension=function(e){f(e)},this.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=s[e];for(var r in d=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return d},this.removeExtension=function(e){n.helper.isArray(e)||(e=[e]);for(var t=0;e.length>t;++t){for(var i=e[t],a=0;r.length>a;++a)r[a]===i&&r.splice(a,1);for(var o=0;u.length>o;++o)u[o]===i&&u.splice(o,1)}},this.getAllExtensions=function(){return{language:r,output:u}},this.getMetadata=function(e){return e?h.raw:h.parsed},this.getMetadataFormat=function(){return h.format},this._setMetadataPair=function(e,t){h.parsed[e]=t},this._setMetadataFormat=function(e){h.format=e},this._setMetadataRaw=function(e){h.raw=e}},n.subParser("anchors",function(e,t,r){var i=function(e,i,a,o,s,l,u){if(n.helper.isUndefined(u)&&(u=""),a=a.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=i.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,n.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],n.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var c='<a href="'+(o=o.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"';return""!==u&&null!==u&&(c+=' title="'+(u=(u=u.replace(/"/g,""")).replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(o)&&(c+=' rel="noopener noreferrer" target="¨E95Eblank"'),c+=">"+i+"</a>"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,i)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i)).replace(/\[([^\[\]]+)]()()()()()/g,i),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,i,a,o){if("\\"===i)return r+a;if(!n.helper.isString(t.ghMentionsLink))throw Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'<a href="'+s+'"'+l+">"+a+"</a>"})),e=r.converter._dispatch("anchors.after",e,t,r)});var d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,f=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,p=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,m=function(e){return function(t,r,i,a,o,s,l){var u=i=i.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),c="",d="",h=r||"",f=l||"";return/^www\./i.test(i)&&(i=i.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(c=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),h+'<a href="'+i+'"'+d+">"+u+"</a>"+c+f}},_=function(e,t){return function(r,i,a){var o="mailto:";return i=i||"",a=n.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=n.helper.encodeEmailAddress(o+a),a=n.helper.encodeEmailAddress(a)):o+=a,i+'<a href="'+o+'">'+a+"</a>"}};n.subParser("autoLinks",function(e,t,n){return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(f,m(t))).replace(g,_(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)}),n.subParser("simplifiedAutoLinks",function(e,t,n){return t.simplifiedAutoLink?(e=(e=(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n)).replace(t.excludeTrailingPunctuationFromURLs?h:d,m(t))).replace(p,_(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e}),n.subParser("blockGamut",function(e,t,r){return e=r.converter._dispatch("blockGamut.before",e,t,r),e=n.subParser("blockQuotes")(e,t,r),e=n.subParser("headers")(e,t,r),e=n.subParser("horizontalRule")(e,t,r),e=n.subParser("lists")(e,t,r),e=n.subParser("codeBlocks")(e,t,r),e=n.subParser("tables")(e,t,r),e=n.subParser("hashHTMLBlocks")(e,t,r),e=n.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)}),n.subParser("blockQuotes",function(e,t,r){e=r.converter._dispatch("blockQuotes.before",e,t,r);var i=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(i=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=(e+="\n\n").replace(i,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=n.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=n.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(e,t){var n=t;return n=(n=n.replace(/^ /gm,"¨0")).replace(/¨0/g,"")}),n.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)}),e=r.converter._dispatch("blockQuotes.after",e,t,r)}),n.subParser("codeBlocks",function(e,t,r){e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,i,a){var o=i,s=a,l="\n";return o=n.subParser("outdent")(o,t,r),o=n.subParser("encodeCode")(o,t,r),o=(o=(o=n.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),o="<pre><code>"+o+l+"</code></pre>",n.subParser("hashBlock")(o,t,r)+s})).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)}),n.subParser("codeSpans",function(e,t,r){return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,i,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=i+"<code>"+(s=n.subParser("encodeCode")(s,t,r))+"</code>",s=n.subParser("hashHTMLSpans")(s,t,r)}),e=r.converter._dispatch("codeSpans.after",e,t,r)}),n.subParser("completeHTMLDocument",function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",i="<!DOCTYPE HTML>\n",a="",o='<meta charset="utf-8">\n',s="",l="";for(var u in void 0!==n.metadata.parsed.doctype&&(i="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(r=(""+n.metadata.parsed.doctype).toLowerCase())&&"html5"!==r||(o='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":a="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":o="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[u]+'"',l+='<meta name="'+u+'" content="'+n.metadata.parsed[u]+'">\n';break;default:l+='<meta name="'+u+'" content="'+n.metadata.parsed[u]+'">\n'}return e=i+"<html"+s+">\n<head>\n"+a+o+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)}),n.subParser("detab",function(e,t,n){return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var n=t,r=4-n.length%4,i=0;r>i;i++)n+=" ";return n})).replace(/¨A/g," ")).replace(/¨B/g,""),e=n.converter._dispatch("detab.after",e,t,n)}),n.subParser("ellipsis",function(e,t,n){return t.ellipsis?(e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"…"),e=n.converter._dispatch("ellipsis.after",e,t,n)):e}),n.subParser("emoji",function(e,t,r){if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,function(e,t){return n.helper.emojis.hasOwnProperty(t)?n.helper.emojis[t]:e}),e=r.converter._dispatch("emoji.after",e,t,r)}),n.subParser("encodeAmpsAndAngles",function(e,t,n){return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)}),n.subParser("encodeBackslashEscapes",function(e,t,r){return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,n.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)}),n.subParser("encodeCode",function(e,t,r){return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)}),n.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,r){return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)})).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)}),n.subParser("githubCodeBlocks",function(e,t,r){return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,i,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=n.subParser("encodeCode")(o,t,r),o="<pre><code"+(a?' class="'+a+" language-"+a+'"':"")+">"+(o=(o=(o=n.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",o=n.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"})).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e}),n.subParser("hashBlock",function(e,t,n){return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)}),n.subParser("hashCodeTags",function(e,t,r){e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,function(e,i,a,o){var s=a+n.subParser("encodeCode")(i,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"},"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)}),n.subParser("hashElement",function(e,t,n){return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}}),n.subParser("hashHTMLBlocks",function(e,t,r){e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var i=["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","p"],a=function(e,t,n,i){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+i),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var o=0;34>o;++o)for(var s,l=RegExp("^ {0,3}(<"+i[o]+"\\b[^>]*>)","im"),u="<"+i[o]+"\\b[^>]*>",c="</"+i[o]+">";-1!==(s=n.helper.regexIndexOf(e,l));){var d=n.helper.splitAtIndex(e,s),h=n.helper.replaceRecursiveRegExp(d[1],a,u,c,"im");if(h===d[1])break;e=d[0].concat(h)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=(e=n.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),n.subParser("hashHTMLSpans",function(e,t,n){function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,function(e){return r(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return r(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return r(e)})).replace(/<[^>]+?>/gi,function(e){return r(e)}),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)}),n.subParser("unhashHTMLSpans",function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;n.gHtmlSpans.length>r;++r){for(var i=n.gHtmlSpans[r],a=0;/¨C(\d+)C/.test(i);){var o=RegExp.$1;if(i=i.replace("¨C"+o+"C",n.gHtmlSpans[o]),10===a)break;++a}e=e.replace("¨C"+r+"C",i)}return e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n)}),n.subParser("hashPreCodeTags",function(e,t,r){e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,function(e,i,a,o){var s=a+n.subParser("encodeCode")(i,t,r)+o;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"},"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)}),n.subParser("headers",function(e,t,r){e=r.converter._dispatch("headers.before",e,t,r);var i=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;function o(e){var i,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return i=e,a=n.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(i=a+i),i=t.ghCompatibleHeaderId?i.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?i.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():i.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(i=a+i),r.hashLinkCounts[i]?i=i+"-"+r.hashLinkCounts[i]++:r.hashLinkCounts[i]=1,i}return e=(e=(e=e.replace(t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(e,a){var s=n.subParser("spanGamut")(a,t,r),l=t.noHeaderId?"":' id="'+o(a)+'"',u="<h"+i+l+">"+s+"</h"+i+">";return n.subParser("hashBlock")(u,t,r)})).replace(a,function(e,a){var s=n.subParser("spanGamut")(a,t,r),l=t.noHeaderId?"":' id="'+o(a)+'"',u=i+1,c="<h"+u+l+">"+s+"</h"+u+">";return n.subParser("hashBlock")(c,t,r)})).replace(t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,function(e,a,s){var l=s;t.customizedHeaderId&&(l=s.replace(/\s?\{([^{]+?)}\s*$/,""));var u=n.subParser("spanGamut")(l,t,r),c=t.noHeaderId?"":' id="'+o(s)+'"',d=i-1+a.length,h="<h"+d+c+">"+u+"</h"+d+">";return n.subParser("hashBlock")(h,t,r)}),e=r.converter._dispatch("headers.after",e,t,r)}),n.subParser("horizontalRule",function(e,t,r){e=r.converter._dispatch("horizontalRule.before",e,t,r);var i=n.subParser("hashBlock")("<hr />",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,i),e=r.converter._dispatch("horizontalRule.after",e,t,r)}),n.subParser("images",function(e,t,r){function i(e,t,i,a,o,s,l,u){var c=r.gUrls,d=r.gTitles,h=r.gDimensions;if(i=i.toLowerCase(),u||(u=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==i&&null!==i||(i=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+i,n.helper.isUndefined(c[i]))return e;a=c[i],n.helper.isUndefined(d[i])||(u=d[i]),n.helper.isUndefined(h[i])||(o=h[i].width,s=h[i].height)}t=t.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var f='<img src="'+(a=a.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'" alt="'+t+'"';return u&&n.helper.isString(u)&&(f+=' title="'+(u=u.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),o&&s&&(f+=' width="'+(o="*"===o?"auto":o)+'"',f+=' height="'+(s="*"===s?"auto":s)+'"'),f+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,i)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,n,r,a,o,s,l){return i(e,t,n,r=r.replace(/\s/g,""),a,o,s,l)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,i)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,i)).replace(/!\[([^\[\]]+)]()()()()()/g,i),e=r.converter._dispatch("images.after",e,t,r)}),n.subParser("italicsAndBold",function(e,t,n){function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return r(t,"<strong><em>","</em></strong>")})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return r(t,"<strong>","</strong>")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return r(t,"<em>","</em>")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,n){return r(n,t+"<strong><em>","</em></strong>")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,n){return r(n,t+"<strong>","</strong>")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,n){return r(n,t+"<em>","</em>")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}),e=n.converter._dispatch("italicsAndBold.after",e,t,n)}),n.subParser("lists",function(e,t,r){function i(e,i){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=e.replace(a,function(e,i,a,s,l,u,c){c=c&&""!==c.trim();var d=n.subParser("outdent")(l,t,r),h="";return u&&t.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return c&&(e+=" checked"),e+=">"})),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(e){return"¨A"+e}),i||d.search(/\n{2,}/)>-1?(d=n.subParser("githubCodeBlocks")(d,t,r),d=n.subParser("blockGamut")(d,t,r)):(d=(d=n.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=n.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?n.subParser("paragraphs")(d,t,r):n.subParser("spanGamut")(d,t,r)),d="<li"+h+">"+(d=d.replace("¨A",""))+"</li>\n"}),e=e.replace(/¨0/g,""),r.gListLevel--,i&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function o(e,n,r){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?o:s,u="";if(-1!==e.search(l))!function t(c){var d=c.search(l),h=a(e,n);-1!==d?(u+="\n\n<"+n+h+">\n"+i(c.slice(0,d),!!r)+"</"+n+">\n",l="ul"===(n="ul"===n?"ol":"ul")?o:s,t(c.slice(d))):u+="\n\n<"+n+h+">\n"+i(c,!!r)+"</"+n+">\n"}(e);else{var c=a(e,n);u="\n\n<"+n+c+">\n"+i(e,!!r)+"</"+n+">\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,n){return o(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,n,r){return o(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)}),n.subParser("metadata",function(e,t,n){if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,r){return n.metadata.parsed[t]=r,""})}return e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,n){return r(n),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,i){return t&&(n.metadata.format=t),r(i),"¨M"}),e=e.replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n)}),n.subParser("outdent",function(e,t,n){return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n)}),n.subParser("paragraphs",function(e,t,r){for(var i=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=i.length,s=0;o>s;s++){var l=i[s];0>l.search(/¨(K|G)(\d+)\1/g)?0>l.search(/\S/)||(l=(l=n.subParser("spanGamut")(l,t,r)).replace(/^([ \t]*)/g,"<p>"),a.push(l+="</p>")):a.push(l)}for(o=a.length,s=0;o>s;s++){for(var u="",c=a[s],d=!1;/¨(K|G)(\d+)\1/.test(c);){var h=RegExp.$2;u=(u="K"===RegExp.$1?r.gHtmlBlocks[h]:d?n.subParser("encodeCode")(r.ghCodeBlocks[h].text,t,r):r.ghCodeBlocks[h].codeblock).replace(/\$/g,"$$$$"),c=c.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,u),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(c)&&(d=!0)}a[s]=c}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)}),n.subParser("runExtension",function(e,t,n,r){if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=RegExp(i,"g")),t=t.replace(i,e.replace)}return t}),n.subParser("spanGamut",function(e,t,r){return e=r.converter._dispatch("spanGamut.before",e,t,r),e=n.subParser("codeSpans")(e,t,r),e=n.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=n.subParser("encodeBackslashEscapes")(e,t,r),e=n.subParser("images")(e,t,r),e=n.subParser("anchors")(e,t,r),e=n.subParser("autoLinks")(e,t,r),e=n.subParser("simplifiedAutoLinks")(e,t,r),e=n.subParser("emoji")(e,t,r),e=n.subParser("underline")(e,t,r),e=n.subParser("italicsAndBold")(e,t,r),e=n.subParser("strikethrough")(e,t,r),e=n.subParser("ellipsis")(e,t,r),e=n.subParser("hashHTMLSpans")(e,t,r),e=n.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)}),n.subParser("strikethrough",function(e,t,r){return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,i){return function(e){return t.simplifiedAutoLink&&(e=n.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(i)}),e=r.converter._dispatch("strikethrough.after",e,t,r)),e}),n.subParser("stripLinkDefinitions",function(e,t,r){var i=function(i,a,o,s,l,u,c){return a=a.toLowerCase(),2>e.toLowerCase().split(a).length-1?i:(r.gUrls[a]=o.match(/^data:.+?\/.+?;base64,/)?o.replace(/\s/g,""):n.subParser("encodeAmpsAndAngles")(o,t,r),u?u+c:(c&&(r.gTitles[a]=c.replace(/"|'/g,""")),t.parseImgDimensions&&s&&l&&(r.gDimensions[a]={width:s,height:l}),""))};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,i)).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,i)).replace(/¨0/,"")}),n.subParser("tables",function(e,t,r){if(!t.tables)return e;function i(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;"':""}function a(e,i){var a="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(a=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+a+i+">"+(e=n.subParser("spanGamut")(e,t,r))+"</th>\n"}function o(e,i){return"<td"+i+">"+n.subParser("spanGamut")(e,t,r)+"</td>\n"}function s(e){var s,l=e.split("\n");for(s=0;l.length>s;++s)/^ {0,3}\|/.test(l[s])&&(l[s]=l[s].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[s])&&(l[s]=l[s].replace(/\|[ \t]*$/,"")),l[s]=n.subParser("codeSpans")(l[s],t,r);var u=l[0].split("|").map(function(e){return e.trim()}),c=l[1].split("|").map(function(e){return e.trim()}),d=[],h=[],f=[],p=[];for(l.shift(),l.shift(),s=0;l.length>s;++s)""!==l[s].trim()&&d.push(l[s].split("|").map(function(e){return e.trim()}));if(c.length>u.length)return e;for(s=0;c.length>s;++s)f.push(i(c[s]));for(s=0;u.length>s;++s)n.helper.isUndefined(f[s])&&(f[s]=""),h.push(a(u[s],f[s]));for(s=0;d.length>s;++s){for(var g=[],m=0;h.length>m;++m)n.helper.isUndefined(d[s][m]),g.push(o(d[s][m],f[m]));p.push(g)}return function(e,t){for(var n="<table>\n<thead>\n<tr>\n",r=e.length,i=0;r>i;++i)n+=e[i];for(n+="</tr>\n</thead>\n<tbody>\n",i=0;t.length>i;++i){n+="<tr>\n";for(var a=0;r>a;++a)n+=t[i][a];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(h,p)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,n.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s),e=r.converter._dispatch("tables.after",e,t,r)}),n.subParser("underline",function(e,t,r){return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return"<u>"+t+"</u>"})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return"<u>"+t+"</u>"}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})).replace(/(_)/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e}),n.subParser("unescapeSpecialChars",function(e,t,n){return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,function(e,t){return String.fromCharCode(parseInt(t))}),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)}),n.subParser("makeMarkdown.blockquote",function(e,t){var r="";if(e.hasChildNodes())for(var i=e.childNodes,a=i.length,o=0;a>o;++o){var s=n.subParser("makeMarkdown.node")(i[o],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")}),n.subParser("makeMarkdown.codeBlock",function(e,t){var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"}),n.subParser("makeMarkdown.codeSpan",function(e){return"`"+e.innerHTML+"`"}),n.subParser("makeMarkdown.emphasis",function(e,t){var r="";if(e.hasChildNodes()){r+="*";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="*"}return r}),n.subParser("makeMarkdown.header",function(e,t,r){var i=Array(r+1).join("#"),a="";if(e.hasChildNodes()){a=i+" ";for(var o=e.childNodes,s=o.length,l=0;s>l;++l)a+=n.subParser("makeMarkdown.node")(o[l],t)}return a}),n.subParser("makeMarkdown.hr",function(){return"---"}),n.subParser("makeMarkdown.image",function(e){var t="";return e.hasAttribute("src")&&(t+="+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),n.subParser("makeMarkdown.links",function(e,t){var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var i=e.childNodes,a=i.length;r="[";for(var o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r}),n.subParser("makeMarkdown.list",function(e,t,r){var i="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,l=0;o>l;++l)if(void 0!==a[l].tagName&&"li"===a[l].tagName.toLowerCase()){i+=("ol"===r?s+". ":"- ")+n.subParser("makeMarkdown.listItem")(a[l],t),++s}return(i+="\n\x3c!-- --\x3e\n").trim()}),n.subParser("makeMarkdown.listItem",function(e,t){for(var r="",i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r}),n.subParser("makeMarkdown.node",function(e,t,r){r=r||!1;var i="";if(3===e.nodeType)return n.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":r||(i=n.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(i=n.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(i=n.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(i=n.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(i=n.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(i=n.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(i=n.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(i=n.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(i=n.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(i=n.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(i=n.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(i=n.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(i=n.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(i=n.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":i=n.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":i=n.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":i=n.subParser("makeMarkdown.strong")(e,t);break;case"del":i=n.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":i=n.subParser("makeMarkdown.links")(e,t);break;case"img":i=n.subParser("makeMarkdown.image")(e,t);break;default:i=e.outerHTML+"\n\n"}return i}),n.subParser("makeMarkdown.paragraph",function(e,t){var r="";if(e.hasChildNodes())for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);return r=r.trim()}),n.subParser("makeMarkdown.pre",function(e,t){var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(e,t){var r="";if(e.hasChildNodes()){r+="~~";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="~~"}return r}),n.subParser("makeMarkdown.strong",function(e,t){var r="";if(e.hasChildNodes()){r+="**";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="**"}return r}),n.subParser("makeMarkdown.table",function(e,t){var r,i,a="",o=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(r=0;s.length>r;++r){var u=n.subParser("makeMarkdown.tableCell")(s[r],t),c="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":c=":---";break;case"text-align:right;":c="---:";break;case"text-align:center;":c=":---:"}o[0][r]=u.trim(),o[1][r]=c}for(r=0;l.length>r;++r){var d=o.push([])-1,h=l[r].getElementsByTagName("td");for(i=0;s.length>i;++i){var f=" ";void 0!==h[i]&&(f=n.subParser("makeMarkdown.tableCell")(h[i],t)),o[d].push(f)}}var p=3;for(r=0;o.length>r;++r)for(i=0;o[r].length>i;++i){var g=o[r][i].length;g>p&&(p=g)}for(r=0;o.length>r;++r){for(i=0;o[r].length>i;++i)o[r][i]=1===r?":"===o[r][i].slice(-1)?n.helper.padEnd(o[r][i].slice(-1),p-1,"-")+":":n.helper.padEnd(o[r][i],p,"-"):n.helper.padEnd(o[r][i],p);a+="| "+o[r].join(" | ")+" |\n"}return a.trim()}),n.subParser("makeMarkdown.tableCell",function(e,t){var r="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t,!0);return r.trim()}),n.subParser("makeMarkdown.txt",function(e){var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=n.helper.unescapeHTMLEntities(t)).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]:")});e.exports?e.exports=n:this.showdown=n}).call(o)}(l);var u=s(l.exports);u.ConverterExtObj=function(e,t){var n=[],r=e;function i(e,t){if(t=t||null,u.helper.isString(e)&&(t=u.helper.stdExtName(e),e=u.asyncExtension(t),u.helper.isUndefined(e)))throw Error('Extension "'+t+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),u.helper.isArray(e)||(e=[e]),u.validateExtension(e))for(var r=0;e.length>r;++r)if("output"===e[r].type)n.push(e[r])}t&&u.helper.forEach(t,i),this.addAsyncExtension=function(e,t){i(e,t=t||null)},this.removeAsyncExtension=function(e){u.helper.isArray(e)||(e=[e]);for(var t=0;e.length>t;++t)for(var r=e[t],i=0;n.length>i;++i)n[i]===r&&n.splice(i,1)},this.getAsyncExtensions=function(){return n},this.getCurrFlavor=function(){return r},this.setCurrFlavor=function(e){r=e}},u.Converter.prototype.initConvertExtObj=function(e,t){return this.extObj=new u.ConverterExtObj(e,t),this.resetOptions=function(e){e=e||{};var t=u.getOptions(),n=this.getOptions();for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);if("object"===a(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i])},this.setFlavor=function(e){var t=u.getFlavorOptions(e);if(!u.helper.isUndefined(t)){this.extObj.setCurrFlavor(e);var n=u.getDefaultOptions(!0);for(var r in n)n.hasOwnProperty(r)&&(this.getOptions()[r]=n[r]);for(var r in t)t.hasOwnProperty(r)&&(this.getOptions()[r]=t[r])}},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(e,t){this.extObj.addAsyncExtension(e,t)},this.removeAsyncExtension=function(e){this.extObj.removeAsyncExtension(e)},this.removeExtension=function(e){u.helper.isArray(e)||(e=[e]);for(var t=this.getAllExtensions(),n=t.language,r=t.output,i=0;e.length>i;++i){for(var a=e[i],o=0;n.length>o;++o)n[o]===a&&n.splice(o,1);for(var s=0;r.length>s;++s)r[s]===a&&r.splice(s,1)}},this.asyncMakeHtml=function(e,t){var n=this.makeHtml(e),r=this.extObj.getAsyncExtensions();if(!r.length)return Promise.resolve({html:n});var i={outputs:r,converter:this},a=(new DOMParser).parseFromString(n,"text/html"),o=void 0!==a.body?a.body:a,s=this.getOptions(),l=Promise.resolve({wrapper:o,options:s,globals:i,scripts:[],cssLinks:[]});return r.forEach(function(e){l=l.then(function(t){var n=e.filter(t);return n||t})}),l.then(function(e){if("function"==typeof t&&t){var n=t(e);if(n instanceof Promise)return n.then(function(e){return{html:e.wrapper.innerHTML,extras:e.extras,scripts:e.scripts,cssLinks:e.cssLinks}})}return{html:e.wrapper.innerHTML,extras:e.extras,scripts:e.scripts,cssLinks:e.cssLinks}})},this},u.subParser("githubCodeBlocks",function(e,t,n){return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,r,i,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=u.subParser("encodeCode")(o,t,n),o=(o=(o=u.subParser("detab")(o,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""),o="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+(a?" data-lang='".concat(a,"'"):"")+">"+o+s+"</code></pre>",o=u.subParser("hashBlock")(o,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"})).replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e}),u.subParser("tables",function(e,t,n){if(!t.tables)return e;function r(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;"':""}function i(e,r){var i="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(i=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+i+r+">"+(e=u.subParser("spanGamut")(e,t,n))+"</th>\n"}function a(e,r,i,a,o){if(t.tablesMerge){var s=function(e,n,r,i){if(i){if(!t.tablesRowspan||"^^"!==i||!n)return;for(var a=n-1;a>=0;--a)if(e[a][r]){if("^^"!==e[a][r])return e[a][r]=e[a][r].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,r){return t+' rowspan="'+(n-a+1)+'"'+r}),i;if(0===a)return e[a][r]='<td rowspan="'+(n-a+1)+'"></td>\n',i}else for(var o=r-1;o>=0;-o){if(e[a+1][o]&&"^^"!==e[a+1][o])return;if(e[a][o]){if(!e[a+1][o])return;return e[a][o]=e[a][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,r){return t+' rowspan="'+(n-a+1)+'"'+r}),i}}}else if(r)for(o=r-1;o>=0;--o)if(e[n][o]){if("^^"!==e[n][o])return e[n][o]=e[n][o].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,n){return t+' colspan="'+(r-o+1)+'"'+n}),i;for(a=n-1;a>=0;--a){if(e[a][o+1])return;if("^^"!==e[a][o])return e[a][o]=e[a][o].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,n){return t+' colspan="'+(r-o+1)+'"'+n}),i}}else if(0===o)return e[n][o]='<td colspan="'+(r-o+1)+'"></td>\n',i}(e,r,i,a);if(!u.helper.isUndefined(s))return s}return a=a.trim(),"<td"+o+">"+u.subParser("spanGamut")(a,t,n)+"</td>\n"}function o(e,o){var s,l=e.split("\n");for(s=0;l.length>s;++s)/^ {0,3}\|/.test(l[s])&&(l[s]=l[s].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[s])&&(l[s]=l[s].replace(/\|[ \t]*$/,"")),l[s]=u.subParser("codeSpans")(l[s],t,n);var c=[],d=[],h=[],f=[],p=[];if(o)for(c=l[0].split("|").map(function(e){return e.trim()}),l.shift(),s=0;c.length>s;++s)f.push(r(c[s]));else{var g=l[0].split("|").map(function(e){return e.trim()});if(c=l[1].split("|").map(function(e){return e.trim()}),l.shift(),l.shift(),c.length>g.length)return e;for(s=0;c.length>s;++s)f.push(r(c[s]));for(s=0;g.length>s;++s)u.helper.isUndefined(f[s])&&(f[s]=""),h.push(i(g[s],f[s]))}for(s=0;l.length>s;++s)""!==l[s].trim()&&d.push(l[s].split("|").map(function(e){var t=e.trim();return""===t&&e.length>0?e:t}));for(s=0;d.length>s;++s){var m=[];p.push(m);for(var _=0;f.length>_;++_)u.helper.isUndefined(d[s][_])&&(d[s][_]=""),m.push(a(p,s,_,d[s][_],f[_]))}return function(e,n,r){var i="<table>\n",a=n.length;if(e.length){i+="<thead>\n<tr>\n";for(var o=0;e.length>o;++o)i+=e[o];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",o=0;r.length>o;++o){i+="<tr>\n";for(var s=0;a>s;++s)t.tablesMerge&&"^^"===r[o][s]||(i+=r[o][s]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(h,f,p)}function s(e){return o(e,!1)}function l(e){return o(e,!0)}return e=(e=(e=(e=n.converter._dispatch("tables.before",e,t,n)).replace(/\\(\|)/g,u.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s),t.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,l)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l)),e=n.converter._dispatch("tables.after",e,t,n)});var c="vanilla",d={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},h={};u.asyncExtension=function(e,t){if(!u.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=u.helper.stdExtName(e),u.helper.isUndefined(t)){if(!h.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return h[e]}"function"==typeof t&&(t=t()),u.helper.isArray(t)||(t=[t]),u.validateExtension(t)&&(h[e]=t)},u.removeAsyncExtension=function(e){e=u.helper.stdExtName(e),delete h[e]},u.resetAsyncExtensions=function(){h={}},u.removeExtension=function(e){e=u.helper.stdExtName(e),delete u.getAllExtensions[e]};var f=u.setFlavor,p=u.getFlavorOptions;function g(e){return"".concat((new Date).Format("yyyy-MM-dd HH:mm:ss.S")," ").concat(e)}u.setFlavor=function(e){try{if(f(e),c=e,!d.hasOwnProperty(e))return}catch(t){if(!d.hasOwnProperty(e))return;u.resetOptions(),c=e}var t=d[e];for(var n in t)t.hasOwnProperty(n)&&(u.getOptions()[n]=t[n])},u.getFlavor=function(){return c},u.setFlavorOptions=function(e,t){t&&(d[e]=Object.assign(d[e]||{},t))},u.getFlavorOptions=function(e){var t=p(e);return u.helper.isUndefined(t)?d.hasOwnProperty(e)?d[e]:void 0:d.hasOwnProperty(e)?Object.assign(t,d[e]):t},Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};e||(e="yyyy-MM-dd hh:mm:ss.S");var n=/(y+)/.exec(e);for(var r in n&&(e=e.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length))),t){var i=RegExp("("+r+")").exec(e);if(i){var a=t[r];1==i[1].length?a=("000"+t[r]).substring((""+t[r]).length):2==i[1].length&&(a=("00"+t[r]).substring((""+t[r]).length)),e=e.replace(i[1],a)}}return e};var m="jsdelivr",_="file:"===document.location.protocol?"https://":document.location.protocol+"//",v="",w="",b="",y={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/lib/viz-standalone.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.min.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.min.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.min.js"},cdnjs:{ABCJS:_+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.5.1/abcjs-basic-min.js",ABCJSCSS:_+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:_+"cdnjs.cloudflare.com/ajax/libs/echarts/5.6.0/echarts.min.js",Viz:_+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:_+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:_+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:_+"cdnjs.cloudflare.com/ajax/libs/mermaid/11.6.0/mermaid.min.js",katex:_+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.js",katexCSS:_+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.css",renderMathInElement:_+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/contrib/auto-render.js",railroad:_+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:_+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:_+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:_+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:_+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.7/underscore-min.js",sequence:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:_+"cdnjs.cloudflare.com/ajax/libs/vega/6.1.2/vega.min.js",vegaLite:_+"cdnjs.cloudflare.com/ajax/libs/vega-lite/6.1.0/vega-lite.min.js",vegaEmbed:_+"cdnjs.cloudflare.com/ajax/libs/vega-embed/7.0.2/vega-embed.min.js"},jsdelivr:{ABCJS:_+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:_+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:_+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:_+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:_+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:_+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:_+"cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",katex:_+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:_+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:_+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",railroad:_+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:_+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:_+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:_+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:_+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:_+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:_+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:_+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:_+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:_+"cdn.jsdelivr.net/npm/vega@6/build/vega.min.js",vegaLite:_+"cdn.jsdelivr.net/npm/vega-lite@6/build/vega-lite.min.js",vegaEmbed:_+"cdn.jsdelivr.net/npm/vega-embed@7/build/vega-embed.min.js"}};function k(){return m}function x(e){if("object"===a(e)){var t=Object.keys(e)[0],n=e[t];if("string"==typeof n)return t+"-"+n}return e}function E(e,t,n,r){if(void 0!==n&&n||(n=k()),y.hasOwnProperty(n)){var i=y[n],o="";if("object"===a(t)){var s=Object.keys(t)[0],l=t[s];i[s]&&"string"==typeof l&&l&&i[s][l]&&(o=i[s][l])}else i[t]&&(o=i[t]);o&&(r=e||o.substring(0,_.length)===_?o:"../dist/"===o.substring(0,8)?w+o:v+o)}return r}var S={setCDN:function(e,t,n,r){e in y&&(m=e),"string"==typeof t&&t&&(v=t),"string"==typeof n&&n&&(w=n),"string"==typeof r&&r&&("/"!==b.at(b.length-1)&&(r+="/"),b=r)},getCDN:k,getUrl:function(e){try{var t=new URL(e);if("dist:"===t.protocol)return e="../dist/"===(e=e.substring(t.protocol.length+2)).substring(0,8)?w+e:v+e;if("file:"===t.protocol)if(b)return e=new URL(b).origin+"/"+e.substring(8)}catch(t){if(b){var n="./";e.substring(0,2)===n&&(e=e.substring(2)),e=b+e}}return e},getSrc:E,loadScript:function(e,t){return new Promise(function(n,r){e&&"undefined"!=typeof document||r("Args is invaild!"),void 0===t&&(t=""),(t=E(!1,e,t))||r(e+" script source invaild!");var i="script-"+x(e).toLowerCase(),a=document.getElementById(i);if(a)return n(e);var o=document.head||document.getElementsByTagName("head")[0];(a=document.createElement("script")).src=t,a.id=i,a.onload=function(){n(e)},o.appendChild(a)})},unloadScript:function(e){e=x(e);var t=document.getElementById("script-"+e.toLowerCase());t&&(document.head||document.getElementsByTagName("head")[0]).removeChild(t)},loadStyleSheet:function(e,t){if(!e||"undefined"==typeof document)return"";if(void 0===t&&(t=""),!(t=E(!1,e,t)))return"";var n="css-"+x(e).toLowerCase();if(!document.getElementById(n)){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=t,i.id=n,r.appendChild(i)}return"local"===m?"":t},unloadStyleSheet:function(e){e=x(e);var t=document.getElementById("css-"+e.toLowerCase());t&&(document.head||document.getElementsByTagName("head")[0]).removeChild(t)}};var A={interopDefault:function(e){return e&&"object"===a(e)&&"default"in e?e.default:e},loadStyle:function(e,t){if(!e||!t||"undefined"==typeof document)return!1;var n="css-"+e.toLowerCase();if(!document.getElementById(n)){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.id=n,i.type="text/css",i.innerText=t,r.appendChild(i)}return!0},loadStylesheet:function(e,t){if(!e||"undefined"==typeof document)return!1;var n=null;if(t&&(n=document.getElementById(t)),!n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=e,t&&(i.id=t),r.appendChild(i)}return!0},loadScript:function(e,t,n){return new Promise(function(r,i){if(!e||!t||"undefined"==typeof document)return i("Args is invaild!");var a=document.getElementById(e);if(a)return r(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,(a=document.createElement("script")).id=e,a.type="text/javascript",a.text=t,n.appendChild(a),r(!0)})},removeAllStylesheet:function(e){if(e){var t=document.head||document.getElementsByTagName("head")[0];t.querySelectorAll("link").forEach(function(n){n.id&&n.id.substring(0,e.length)===e&&t.removeChild(n)})}},renderCacheElement:function(e,t,n,r){"undefined"!=typeof window&&window.document&&(e=window.document);var i=e.createElement("div");if(i.id=t,i.className=n,i.style.display="none",e.body.appendChild(i),"function"==typeof r&&r){var a=r(i);if(a instanceof Promise)return a.then(function(t){e.body.removeChild(t),t.style.display=""}),i.outerHTML}return e.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(e,t,n){"undefined"!=typeof window&&window.document&&(e=window.document);var r=e.createElement("div");return r.id=t,r.className=n,e.body.appendChild(r),r},createElementMeta:function(e,t,n){var r=t.dataset.lang,i=r?JSON.parse(r):null,a="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return!1;i.align&&("center"===i.align?a="diagram-center":"right"===i.align&&(a="diagram-right")),i.width&&"string"!=typeof i.width&&(i.width=i.width+"px"),i.height&&"string"!=typeof i.height&&(i.height=i.height+"px")}var o=t.textContent.trim();n&&"function"==typeof n&&(o=n(o));var s=(t.classList.length>0?t.classList[0]:"")+(t.className&&a?" ":"")+a,l=e.toLowerCase()+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return t.id=l,{id:l,container:l+"-container",className:s,data:o,element:t,lang:i}},addCssLink:function(e,t,n){return e.cssLinks?Array.isArray(e.cssLinks)||(e.cssLinks=[e.cssLinks]):e.cssLinks=[],e.cssLinks.push({id:n,link:t}),e},addScript:function(e,t){return e.scripts?Array.isArray(e.scripts)||(e.scripts=[e.scripts]):e.scripts=[],e.scripts.push(t),e},addExtra:function(e,t){return e.extras?Array.isArray(e.extras)||(e.extras=[e.extras]):e.extras=[],e.extras.push(t),e},hashString:function(e){for(var t=0,n=0;e.length>n;n++){var r=e.charCodeAt(n);t=Math.imul(31,t)+r|0}return t>>>0}},j="abc",L="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===C)var C=window.ABCJS||void 0;function z(){return!!C}var P=!1;function M(){if(void 0===e)var e=window.ABCJS||void 0;function t(e){var t=this;t.onReady=function(){},t.onStart=function(){var t=document.querySelector("#"+e+" svg"),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),t.appendChild(n)},t.beatSubdivisions=2,t.onBeat=function(e,t,n){},t.onEvent=function(t){if(!t.measureStart||null!==t.left){for(var n=document.querySelectorAll("#"+e+" svg .highlight"),r=0;n.length>r;r++)n[r].classList.remove("highlight");for(var i=0;t.elements.length>i;i++)for(var a=t.elements[i],o=0;a.length>o;o++)a[o].classList.add("highlight");var s=document.querySelector("#"+e+" svg .abcjs-cursor");s&&(s.setAttribute("x1",t.left-2),s.setAttribute("x2",t.left-2),s.setAttribute("y1",t.top),s.setAttribute("y2",t.top+t.height))}},t.onFinished=function(){for(var t=document.querySelectorAll("#"+e+" svg .highlight"),n=0;t.length>n;n++)t[n].classList.remove("highlight");var r=document.querySelector("#"+e+" svg .abcjs-cursor");r&&(r.setAttribute("x1",0),r.setAttribute("x2",0),r.setAttribute("y1",0),r.setAttribute("y2",0))}}window.abcEnv={abcOptions:{add_classes:!0,responsive:"resize"},setTune:function(t,n,r){var i=t.id,a=t.data;if(r){r.disable(!0);var o=e.renderAbc(i,a,this.abcOptions)[0];(new e.synth.CreateSynth).init({visualObj:o}).then(function(e){r.setTune(o,n).then(function(e){}).catch(function(e){})}).catch(function(e){})}else e.renderAbc(i,a,this.abcOptions)},load:function(n,r){var i;if(n){var a="#"+n;e.synth.supportsAudio()?(i=new e.synth.SynthController).load(a,new t(r.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0}):document.querySelector(a).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>"}this.setTune(r,!1,i)}}}function T(e,t){var n=function(){window.abcEnv.load(e,t)};return n.toString=function(){return"function(){\n const audio = '".concat(e,"';\n const render = ").concat(JSON.stringify(t),";\n window.abcEnv.load(audio, render);\n }")},n}function O(e,t,n){if(z()){var r=n.id,i=n.className,a=n.container,o="";n.lang&&(n.lang.width&&(o+="width:".concat(n.lang.width,";")),n.lang.height&&(o+="height:".concat(n.lang.height,";")));var s="";if(o?(s+='<div id="'.concat(a,'" class="').concat(i,'" style="').concat(o,'">'),s+='<div id="'.concat(r,'" style="width:100%;height:100%;display:inline-block"></div>')):(s+='<div id="'.concat(a,'" class="').concat(i,'">'),s+='<div id="'.concat(r,'"></div>')),!n.lang||!n.lang.audio){var l=n.data,u=n.element.ownerDocument;n.element.parentNode.outerHTML=s+="</div>";var c=u.getElementById(r);return C.renderAbc(c,l,{add_classes:!0,responsive:"resize"}),e(!0)}var d=n.cssLink,h=n.data,f=r+"-audio";s+=o?d?'<div id="'.concat(f,'" style="width:100%;height:100%;display:inline-block" class="css-abc" data-css="').concat(d,'"></div>'):'<div id="'.concat(f,'" style="width:100%;height:100%;display:inline-block"></div>'):d?'<div id="'.concat(f,'" class="css-abc" data-css="').concat(d,'"></div>'):'<div id="'.concat(f,'"></div>'),n.element.parentNode.outerHTML=s+="</div>";var p={id:a,code:T(f,{id:r,class:i,data:h}),host:"#".concat(a)};return t.push(p),e(!0)}setTimeout(function(){O(e,t,n)},10)}function R(e,t){return new Promise(function(n){var r=A.createElementMeta(j,e);if(!r)return n(!1);r.cssLink=S.getSrc(!0,L),O(n,t,r)})}function N(e,t){var n={outer:[{name:"ABCJS",src:S.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:M,inner:[]};return t.push(n),function(){var e=z();if("undefined"!=typeof window){if(P)return e;e||(P=!0,S.loadStyleSheet(L),A.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),S.loadScript("ABCJS").then(function(e){C=A.interopDefault(window[e])}))}}(),new Promise(function(t){var r=[];e.forEach(function(e){r.push(R(e,n.inner))}),Promise.all(r).then(function(){t(!0)})})}function B(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.abc.language-abc");return!!n.length&&(this.config={cssLink:S.getSrc(!0,L)},A.addCssLink(e,this.config.cssLink,"css-abc"),N(n,e.scripts).then(function(){return e}))}}]}function D(e,t,n,r,i){try{if(i){if(r>1){var a=n.parentNode;a&&"UL"===a.tagName&&a.classList.add("toc-multi")}var o=n.querySelector("div");if(o){o.classList.remove("toc-title"),o.classList.add("toc-multi-title");var s=o.querySelector("i");s&&(s.classList.remove("toc-chapter"),s.classList.add("toc-multi-chapter"),s.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-expand"></use></svg>')}(n=n.appendChild(e.ownerDocument.createElement("ul"))).classList.add(r>1?"toc-level-".concat(r):"toc-main")}if(n=n.appendChild(e.ownerDocument.createElement("li")),t){var l=n.appendChild(e.ownerDocument.createElement("div"));l.classList.add("toc-title-".concat(r),"toc-title");var u=l.appendChild(e.ownerDocument.createElement("i"));u.classList.add("iconfont","toc-chapter"),u.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>';var c=l.appendChild(e.ownerDocument.createElement("a"));c.appendChild(e.ownerDocument.createTextNode(t.textContent)),c.href="#"+t.id}}catch(e){}return n}function I(e,t,n,r){if(n.headingLevel>=r){for(var i=null;n&&n.headingLevel>=r;)n=(i=n).parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&I(e,t,n,r),n}if(r>n.preLevel){for(n.preLevel++;r>n.preLevel;)n.toc=D(e,null,n.toc,r,!0),n.preLevel++;n.toc=D(e,t,n.toc,r,!0)}else{for(;n.preLevel>r;)n.toc&&(n.toc=n.toc.parentNode),n.toc&&(n.toc=n.toc.parentNode),n.preLevel--;n.toc&&(n.toc=n.toc.parentNode),n.toc=D(e,t,n.toc,r,!1)}return n.parentNode&&I(e,t,n.parentNode,r),n}function q(){var e=document.querySelector("#total-showdown-toc");if(e){var t=document.getElementById("divider");if(t){var n=function(t){if(i>0){var n=t.clientX-i;if(0!=n){var r=a-n;5>r||r>document.documentElement.clientWidth-5||(e.style.width="".concat(r,"px"))}}},r=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.body.style.userSelect="",i=0},i=0,a=0;t.addEventListener("mousedown",function(t){i=t.clientX,a=e.clientWidth,document.body.style.userSelect="none",document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)})}var o=document.querySelector("#toc-fold-icon");o&&(o.onclick=function(e){var t=document.querySelectorAll(".total-toc ul"),n=document.querySelectorAll(".total-toc ul:not(.toc-main) .toc-multi-chapter use");if("toc-expand"===o.dataset.name)return t.forEach(function(e){e.classList.contains("toc-main")||e.classList.contains("toc-level-2")||e.classList.add("hidden")}),n.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")}),void(o.dataset.name="toc-fold");t.forEach(function(e){e.classList.remove("hidden")}),n.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")}),o.dataset.name="toc-expand"});var s=document.querySelector("#toc-close-icon");s&&(s.onclick=function(e){var t=document.querySelector("#total-showdown-toc");t&&t.classList.add("hidden");var n=document.querySelector("#toc-switch-button");n&&n.classList.remove("hidden")});var l=document.querySelector("#toc-switch-button");l&&(l.onclick=function(e){e.currentTarget.classList.add("hidden");var t=document.querySelector("#total-showdown-toc");t&&t.classList.remove("hidden")}),document.querySelectorAll(".total-toc .toc-multi-chapter").forEach(function(e){e.onclick=function(e){var t=e.currentTarget.parentNode;if(t&&(t=t.parentNode)){var n=t.querySelectorAll("ul"),r=t.querySelectorAll(".toc-multi-chapter use"),i=e.currentTarget.querySelector("use");if(i){if("#icon-expand"===i.getAttributeNS("http://www.w3.org/1999/xlink","href"))return n.forEach(function(e){e.classList.add("hidden")}),void r.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")});n.forEach(function(e){e.classList.remove("hidden")}),r.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")})}}}})}}function H(){return[{type:"output",config:{},filter:function(e){if("string"==typeof e){var t=(new DOMParser).parseFromString(e,"text/html"),n=void 0!==t.body?t.body:t;return function(e,t){var n=null,r=0,i=null,a=!1,o=!1,s=null;t.extraDocs=[],t.extraDocs.push('<div id="toc-svgs" class="hidden"><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="icon-chapter-s" viewBox="0 0 1024 1024"><path d="M725.108359 579.864261c11.519371-117.753568-94.714826-195.829303-165.110981-247.666471l-10.879406-7.679581-21.118846-15.359161c-40.317798-28.798427-81.915525-58.876784-95.994756-95.994756-15.999126-41.597728-13.439266-74.235945 7.67958-97.274686 26.878532-29.438392 90.235071-35.838042 120.313428-11.519371 26.238567 20.478881 26.878532 53.117098 24.958637 70.396154-2.55986 24.318672 14.719196 46.717448 39.037867 49.917274 24.318672 2.55986 46.717448-14.719196 49.917274-39.037868 7.039615-60.796679-14.079231-115.833673-58.236819-151.03175C547.838042-19.143018 432.644335-8.903578 373.127586 55.732892c-44.157588 47.997378-53.117098 115.193708-24.958637 189.429652 8.319546 23.038742 21.758811 42.877658 37.117973 60.156714-36.478007 34.558112-73.59598 78.075735-79.355665 138.872414C294.411886 561.94524 400.646083 640.020975 471.042237 691.858143l10.879406 7.679581 21.118846 15.359161c40.317798 28.798427 81.915525 58.876784 95.994757 95.994756 15.999126 41.597728 13.439266 74.235945-7.679581 97.274686-26.878532 29.438392-90.235071 35.838042-120.313428 11.519371-26.238567-20.478881-26.878532-53.117098-24.958636-70.396154 2.55986-24.318672-14.719196-46.717448-39.037868-49.917274s-46.717448 14.719196-49.917273 39.037868c-7.039615 60.796679 14.079231 115.833673 58.236819 151.03175 29.438392 23.038742 67.196329 34.558112 106.234197 34.558112 50.557238 0 102.394407-19.198951 135.672589-55.676959 44.157588-47.997378 53.117098-115.193708 24.958636-189.429652-8.319546-23.038742-21.758811-42.877658-37.117972-60.156714 36.478007-34.558112 74.235945-78.075735 79.99563-138.872414z m-201.588988 39.677833c-60.156714-44.157588-135.672589-99.834547-129.272939-166.390911 3.199825-33.278182 28.158462-60.156714 57.596854-87.675211 7.679581 5.759685 15.999126 11.519371 23.678707 17.279056 7.039615 5.11972 13.439266 9.599476 19.838916 14.719196l10.879406 8.319546c60.156714 44.157588 135.672589 99.834547 129.272938 166.39091-3.199825 33.278182-28.158462 60.156714-57.596854 87.675211-8.319546-5.759685-15.999126-11.519371-23.678706-17.279056-7.039615-5.11972-13.439266-9.599476-19.838917-14.719196l-10.879405-8.319545z"></path></symbol><symbol id="icon-chapter-l" viewBox="0 0 1024 1024"><path d="M791.272727 11.636364a81.454545 81.454545 0 0 1 81.175273 74.752L872.727273 93.090909v884.363636a34.909091 34.909091 0 0 1-51.060364 30.999273l-4.142545-2.606545-142.615273-101.888-142.615273 101.934545a34.909091 34.909091 0 0 1-30.813091 4.840727l-5.026909-2.048-4.747636-2.792727L349.090909 903.912727l-142.615273 101.934546a34.955636 34.955636 0 0 1-53.946181-18.944l-0.93091-4.654546L151.272727 977.454545V93.090909A81.454545 81.454545 0 0 1 226.024727 11.915636L232.727273 11.636364h558.545454z m-139.636363 605.090909H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 686.545455h279.272728l4.747636-0.325819A34.909091 34.909091 0 0 0 651.636364 616.727273z m0-186.181818H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 500.363636h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 430.545455z m0-186.181819H372.363636l-4.747636 0.325819A34.909091 34.909091 0 0 0 372.363636 314.181818h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 244.363636z"></path></symbol><symbol id="icon-toc" viewBox="0 0 1024 1024"><path d="M62.500473 512.163729l61.447491-40.958854 387.221112 202.039529L898.394281 471.204875l61.443397 40.958854-448.668603 244.728794L62.500473 512.163729zM62.500473 308.228013l448.668603-244.732887 448.668603 244.732887-448.668603 244.724701L62.500473 308.228013zM511.169075 877.18012l387.225205-202.035436 61.443397 40.958854L511.169075 960.836425 62.500473 716.104561l61.447491-40.958854L511.169075 877.18012z"></path></symbol><symbol id="icon-collapse" viewBox="0 0 1024 1024"><path d="M85.781832 219.399571h73.720856c20.35996 0 36.879928-16.359968 36.879928-36.559928s-16.519968-36.559929-36.879928-36.559929h-73.719856c-20.35996 0-36.860928 16.359968-36.860928 36.559929 0 20.199961 16.499968 36.559929 36.859928 36.559928zM50.462901 475.419071c0 20.199961 16.500968 36.579929 36.859928 36.579929h72.179859c20.35996 0 36.879928-16.379968 36.879928-36.579929s-16.519968-36.579929-36.879928-36.579928h-72.179859c-20.35996 0-36.859928 16.379968-36.859928 36.579928z m145.919715 292.577429c0-20.199961-16.519968-36.595929-36.879928-36.595929h-73.719856c-20.35996 0-36.860928 16.395968-36.860928 36.595929 0 20.180961 16.499968 36.562929 36.859928 36.562929h73.720856c20.35996 0 36.879928-16.381968 36.879928-36.562929z"></path><path d="M933.660176 38.839924l-73.718856-2.279995c0-20.198961-16.519968-36.559929-36.879928-36.559929h-661.998707c-20.35996 0-36.879928 16.359968-36.879928 36.559929v70.879861h36.879928s73.359857 6.840987 73.359857 73.140857c0 0 0.779998 73.279857-75.239853 73.279857l-34.999932 2.119996 0.759999 144.019719 34.399933-0.02s75.879852-0.02 75.879852 77.699848c0 0-7.057986 70.879862-76.179852 70.879862l-34.699932 0.019-0.619999 143.980718h36.740929s73.559856 2.279996 73.559856 75.437853c0 0-0.14 75.402853-76.179851 75.402853l-33.199935-2.279996-0.46 73.159857s42.239918 109.718786 106.759792 109.718786h705.018623s34.557933-6.877987 34.557932-34.298933V75.421853s-6.899987-36.580929-36.859928-36.580929zM306.9634 255.9795h479.238064v292.579429h-479.239064V255.9795zM897.939246 916.55821s1.159998 34.279933-37.999926 34.279933H233.243544s-38.019926-12.559975-38.019925-37.719926l627.838773-0.36c20.35996 0 36.879928-16.379968 36.879928-36.579928V69.719864l37.998926 12.559975v834.278371z"></path><path d="M694.042644 329.119357H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.319964 0 10.07998 8.239984 18.259964 18.439964 18.259965h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.259965 0-10.11898-8.239984-18.319964-18.419964-18.319964z m0 109.719786H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.279964 0 10.11998 8.239984 18.299964 18.439964 18.299964h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.299964 0-10.07998-8.239984-18.279964-18.419964-18.279964z"></path></symbol><symbol id="icon-chapter" viewBox="0 0 1024 1024"><path d="M832 128v768H256V128h576m64-64H192v896h704V64z" ></path><path d="M161.3 296.2v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z" ></path><path d="M288 277a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 469a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 662a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM384 256h385v40H384z m0 128h385v40H384z m0 128h385v40H384z m0 128h256v40H384z" ></path></symbol><symbol id="icon-expand" viewBox="0 0 1024 1024"><path d="M731.093333 128c82.346667 0 158.08 20.906667 218.88 56.32 6.4 3.626667 10.026667 10.88 10.026667 18.346667v667.306666c0 12.16-9.386667 20.906667-19.84 20.906667-2.986667 0-5.76-0.64-8.746667-2.133333-57.386667-29.226667-126.08-46.08-200.32-46.08s-141.866667 17.066667-199.04 45.653333c-2.986667 1.493333-5.973333 2.986667-8.96 4.693333-0.426667 0.213333-0.853333 0.64-1.493333 0.853334-5.973333 3.2-13.226667 3.2-19.2 0-3.413333-1.92-6.826667-3.626667-10.453333-5.546667-56.96-28.586667-125.44-45.653333-199.04-45.653333s-143.146667 16.853333-200.32 46.08c-2.773333 1.493333-5.76 2.133333-8.746667 2.133333-10.453333 0-19.84-8.746667-19.84-20.906667V202.453333c0-7.68 3.84-14.72 10.026667-18.346666C134.826667 148.693333 210.56 128 292.906667 128S451.2 149.333333 512 184.746667C572.8 149.333333 648.746667 128 731.093333 128zM701.866667 187.733333c-71.466667 0-137.386667 17.92-189.866667 47.786667-52.693333-29.866667-118.613333-47.786667-189.866667-47.786667s-136.96 17.493333-189.653333 47.36c-5.546667 3.2-8.746667 9.173333-8.746667 15.573334v563.626666c0 10.24 8.106667 17.493333 17.066667 17.493334 2.56 0 5.12-0.64 7.466667-1.92 49.706667-24.533333 109.44-38.826667 173.653333-38.826667s123.093333 14.293333 172.373333 38.4c3.2 1.493333 6.186667 2.986667 9.173334 4.693333 5.12 2.773333 11.52 2.773333 16.64 0 0.64-0.213333 0.853333-0.426667 1.493333-0.853333l7.68-3.84c49.493333-24.106667 108.8-38.4 172.373333-38.4s123.946667 14.293333 173.653334 38.826667c2.56 1.28 5.12 1.92 7.466666 1.92 8.96 0 17.066667-7.466667 17.066667-17.493334V250.666667c0-6.4-3.2-12.373333-8.746667-15.573334-52.693333-29.866667-118.186667-47.573333-189.653333-47.573333z" ></path><path d="M949.333333 771.84c-123.306667-71.68-260.266667-80.64-407.466666-26.666667V221.866667c0-16.426667-13.44-29.866667-29.866667-29.866667s-29.866667 13.44-29.866667 29.866667v529.066666c-120.533333-55.466667-253.226667-53.973333-395.093333 5.12-10.88 4.48-16 17.066667-11.52 27.946667 4.48 10.88 17.066667 16 27.946667 11.52 139.306667-58.026667 263.253333-57.173333 378.666666 2.773333v46.506667c0 16.426667 13.44 29.866667 29.866667 29.866667s29.866667-13.44 29.866667-29.866667v-53.973333c142.08-56.32 268.586667-50.56 386.133333 17.706666 3.413333 1.92 7.04 2.986667 10.666667 2.986667 7.253333 0 14.506667-3.84 18.56-10.666667a21.290667 21.290667 0 0 0-7.68-29.226666z"></path></symbol></svg></div>');for(var l=e.querySelectorAll("p,h1,h2,h3,h4,h5,h6"),u=0;l.length>u;u++)if(n=l[u],o||"h1"!=n.tagName.toLowerCase()||(o=!0),"[toc]"!=n.textContent.trim().toLowerCase()){if(n.tagName)switch(n.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":r=parseInt(n.tagName.substr(1)),i&&(i=I(e,n,i,r))}}else{var c=e.ownerDocument.createElement("div");if(c.classList.add("showdown-toc"),!o){s=c,t.extraDocs.push('<div id="divider" class="divider"></div>');var d=e.ownerDocument.createElement("div");d.id="toc-switch-button",d.classList.add("toc-switch","hidden"),d.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>',n.parentNode.insertBefore(d,n),c.id="total-showdown-toc",c.classList.add("total-toc"),c.innerHTML='<div class="toc-pin"><span class="toc-pin-text">目录</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>'}var h=e.ownerDocument.createElement("div");h.className="toc-view",c.appendChild(h);var f={parentNode:null,toc:h,headingLevel:r,preLevel:r,standalone:!1};if(i)if(r>i.headingLevel)f.parentNode=i;else{for(var p=i;p.headingLevel>r;)p=p.parentNode;p&&(f.parentNode=r===p.headingLevel?p.parentNode:p)}a=!0,(i=f).standalone=!o,o?n.parentNode.replaceChild(c,n):n.parentNode.removeChild(n)}for(s&&t.extraDocs.push(s.outerHTML);i;){var g=i;i=g.parentNode,g.parentNode=null,g.toc=null,g.headingLevel=null,g.preLevel=null}return a}(n,this.config)?n.innerHTML:e}if("object"!==a(e)||!e||!this.config.extraDocs||!Array.isArray(this.config.extraDocs))return!1;var r=e;return this.config.extraDocs.forEach(function(e){A.addExtra(r,e)}),A.addScript(r,{inner:[{id:"showdown-toc",code:q,host:"#total-showdown-toc"}]}),r}}]}function U(){return[{type:"output",filter:function(e){var t="css-ex-";A.removeAllStylesheet(t);var n=e.wrapper;if(!n)return!1;var r=n.querySelectorAll("a");return!!r.length&&(r.forEach(function(n){try{if(n.href&&"string"==typeof n.href&&"css:"===n.href.substr(0,4)){var r=n.href.substr(4).trim(),i="".concat(A.hashString(r));A.addCssLink(e,r,t+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),r=S.getUrl(r),A.loadStylesheet(r,t+i)}}catch(e){}}),e)}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===F)var F=window.Viz||void 0;var Z=["circo","dot","neato","osage","twopi"];function $(){return!(void 0===F||!F||void 0===F.instance)}var W=!1;function V(e,t){if($()){var n=t.id,r=t.className,i=t.data,a=t.element,o=t.element.dataset.lang,s="dot";if(o){var l=JSON.parse(o);l&&l.engine&&-1!=Z.indexOf(l.engine)&&(s=l.engine)}F.instance().then(function(t){var o=t.renderString(i,{format:"svg",engine:s});a.parentNode.outerHTML='<div id="'.concat(n,'" class="').concat(r,'">').concat(o,"</div>"),e(!0)})}else setTimeout(function(){V(e,t)},10)}function Y(e){return new Promise(function(t){var n=A.createElementMeta("viz",e);if(!n)return t(!1);V(t,n)})}function G(e){return function(){var e=$();if("undefined"!=typeof window){if(W)return e;e||(W=!0,S.loadScript("Viz").then(function(e){F=A.interopDefault(window[e])}))}}(),new Promise(function(t){var n=[];e.forEach(function(e){n.push(Y(e))}),Promise.all(n).then(function(){t(!0)})})}function J(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.dot.language-dot");return!!n.length&&G(n).then(function(){return e})}}]}var K="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===X)var X=window.vegaEmbed||void 0;function Q(){return!(void 0===X||!X)}var ee=!1;function te(e,t,n,r){var i=A.createElementMeta(K,e);if(!i)return Promise.resolve(!1);var a=i.container,o={id:a,code:function(e,t){var n=function(){var n=eval,r=document.getElementById(e.id);if(r)if(e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()){var i=n("(function(){".concat(e.data,"; return option;})();"));X(r,i,t)}else{var a=JSON.parse(e.data);X(r,a,t)}};return n.toString=function(){return e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()?"function(){\n let el = document.getElementById('".concat(e.id,"');\n if (el) {\n ").concat(e.data,";\n const config = ").concat(JSON.stringify(t),";\n vegaEmbed(el, option, config);\n }\n }"):"function(){\n let el = document.getElementById('".concat(e.id,"');\n if (el) {\n const option = ").concat(e.data,";\n const config = ").concat(JSON.stringify(t),";\n vegaEmbed(el, option, config);\n }\n }")},n}(i,t),host:"#".concat(a)};return n.push(o),new Promise(function(e){re(e,i)})}function ne(e,t,n,r){var i={outer:[{name:K,src:S.getSrc(!1,K,"jsdelivr")},{name:"vegaLite",src:S.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:S.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){var e=Q();if("undefined"!=typeof window){if(ee)return e;e||(ee=!0,S.loadScript(K).then(function(){return S.loadScript("vegaLite")}).then(function(){return S.loadScript("vegaEmbed")}).then(function(e){X=A.interopDefault(window[e])}))}}(),new Promise(function(n){var a=[];e.forEach(function(e){a.push(te(e,r,i.inner))}),t.forEach(function(e){a.push(te(e,r,i.inner))}),Promise.all(a).then(function(){n(!0)})})}function re(e,t){if(Q()){var n=t.id,r=t.className;return t.element.parentNode.outerHTML='<div id="'.concat(t.container,'" class="').concat(r,'"><div id="').concat(n,'"></div></div>'),e(!0)}setTimeout(function(){re(e,t)},10)}function ie(e){var t=function(){return r({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.vega.language-vega"),r=t.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!r.length)&&ne(n,r,e.scripts,this.config).then(function(){return e})}}]}function ae(){var e=new DOMParser;return[{type:"output",filter:function(t){var n=e.parseFromString(t,"text/html"),r=void 0!==n.body?n.body:n;return function(e){for(var t=null,n=null,r=!1,i=e.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph"),a=0;i.length>a;a++)for(n=(t=i[a]).firstChild;n;){if(3===n.nodeType){var o=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);o&&(":-:"===o[2]?(n.nodeValue=o[3],t.className?t.className+=" align-center":t.className="align-center",r=!0):"--:"===o[2]&&(n.nodeValue=o[3],t.className?t.className+=" align-right":t.className="align-right",r=!0));break}n=n.nextSibling}return r}(r)?r.innerHTML:t}}]}var oe=".",se={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},le=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:0},{input:"beta",tag:"mi",output:"β",tex:null,ttype:0},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:0},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:0},{input:"eta",tag:"mi",output:"η",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:0},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:8},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:0},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:0},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:0},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:0},{input:"pi",tag:"mi",output:"π",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:0},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:0},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:0},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:0},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:0},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:0},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:"/",ttype:0,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:0},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:0},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:8},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:7},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:0},{input:":=",tag:"mo",output:":=",tex:null,ttype:0},{input:"lt",tag:"mo",output:"<",tex:null,ttype:0},{input:"gt",tag:"mo",output:">",tex:null,ttype:0},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:0},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:0},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:0},{input:"in",tag:"mo",output:"∈",tex:null,ttype:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:0},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:0},{input:"and",tag:"mtext",output:"and",tex:null,ttype:6},{input:"or",tag:"mtext",output:"or",tex:null,ttype:6},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:8},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:5,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:4,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:5,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:4,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:4,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:5,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:0,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:8},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:0},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:0},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:0},{input:"%",tag:"mo",output:"%",tex:"%",ttype:0,notexcopy:!0},{input:"quad",tag:"mo",output:" ",tex:null,ttype:0},{input:"qquad",tag:"mo",output:" ",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:0,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:0,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:0,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:0,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:0,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:7},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:1,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:1,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:1,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:1,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:1,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:1,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:1,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:1,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:1,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:1,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:1,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:1,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:1,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:0,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:1,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:0},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:0},{input:"min",tag:"mo",output:"min",tex:null,ttype:7},{input:"max",tag:"mo",output:"max",tex:null,ttype:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:0},{input:"->",tag:"mo",output:"→",tex:"to",ttype:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"root",tag:"mroot",output:"root",tex:null,ttype:2},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:2},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"_",tag:"msub",output:"_",tex:null,ttype:3},{input:"^",tag:"msup",output:"^",tex:null,ttype:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:1,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},se,{input:"color",tag:"mstyle",ttype:2},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:1,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:1,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:1,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:1,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:1,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:1,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1}];function ue(e,t){return e.input>t.input?1:-1}var ce,de,he,fe=[];function pe(e,t){var n;n="\\"==e.charAt(t)&&"\\"!=e.charAt(t+1)&&" "!=e.charAt(t+1)?e.slice(t+1):e.slice(t);for(var r=0;n.length>r&&32>=n.charCodeAt(r);r+=1);return n.slice(r)}function ge(e,t,n){if(0==n){var r,i;for(n=-1,r=e.length;r>n+1;)t>e[i=n+r>>1]?n=i:r=i;return r}for(var a=n;e.length>a&&t>e[a];a++);return a}function me(e){for(var t,n,r,i=0,a="",o=!0,s=1;e.length>=s&&o;s++)n=e.slice(0,s),i=ge(fe,n,i),fe.length>i&&e.slice(0,fe[i].length)==fe[i]&&(t=i,s=(a=fe[i]).length),o=fe.length>i&&e.slice(0,fe[i].length)>=fe[i];if(de=he,""!=a)return he=le[t].ttype,le[t];he=0,i=1,n=e.slice(0,1);for(var l=!0;n>="0"&&"9">=n&&e.length>=i;)n=e.slice(i,i+1),i++;if(n==oe&&(n=e.slice(i,i+1))>="0"&&"9">=n)for(l=!1,i++;n>="0"&&"9">=n&&e.length>=i;)n=e.slice(i,i+1),i++;return l&&i>1||i>2?(n=e.slice(0,i-1),r="mn"):(i=2,r=("A">(n=e.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&3==de?(he=3,{input:n,tag:r,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:r,output:n,ttype:0,val:!0}}function _e(e){var t;if("{"==e.charAt(0)&&"}"==e.charAt(e.length-1)){var n=0;"\\left"==(t=e.substr(1,5))?"("==(t=e.charAt(6))||"["==t||"{"==t?n=7:"\\lbrace"==(t=e.substr(6,7))&&(n=13):"("!=(t=e.charAt(1))&&"["!=t||(n=2),n>0&&("\\right)}"==(t=e.substr(e.length-8))||"\\right]}"==t||"\\right.}"==t?e=(e="{"+e.substr(n)).substr(0,e.length-8)+"}":"\\rbrace}"==t&&(e=(e="{"+e.substr(n)).substr(0,e.length-14)+"}"))}return e}function ve(e){var t;return t="boolean"==typeof e.val&&e.val?"":"\\",null==e.tex?t+e.input:t+e.tex}function we(e){var t,n,r,i,a="";if(null==(t=me(e=pe(e,0)))||5==t.ttype&&ce>0)return[null,e];switch(8==t.ttype&&(t=me(e=t.output+pe(e,t.input.length))),t.ttype){case 7:case 0:e=pe(e,t.input.length);var o=ve(t);return"\\"==o.charAt(0)||"mo"==t.tag?[o,e]:["{"+o+"}",e];case 4:ce++,r=ye(e=pe(e,t.input.length),!0),ce--;var s=0;return"\\right"==r[0].substr(0,6)&&(")"==(u=r[0].charAt(6))||"]"==u||"}"==u?s=6:"."==u?s=7:"\\rbrace"==(u=r[0].substr(6,7))&&(s=13)),s>0?(r[0]=r[0].substr(s),n="boolean"==typeof t.invisible&&t.invisible?"{"+r[0]+"}":"{"+ve(t)+r[0]+"}"):n="boolean"==typeof t.invisible&&t.invisible?"{\\left."+r[0]+"}":"{\\left"+ve(t)+r[0]+"}",[n,r[1]];case 10:return t!=se&&(e=pe(e,t.input.length)),-1==(i="{"==e.charAt(0)?e.indexOf("}"):"("==e.charAt(0)?e.indexOf(")"):"["==e.charAt(0)?e.indexOf("]"):t==se?e.slice(1).indexOf('"')+1:0)&&(i=e.length)," "==(u=e.slice(1,i)).charAt(0)&&(a="\\ "),a+="\\text{"+u+"}"," "==u.charAt(u.length-1)&&(a+="\\ "),[a,e=pe(e,i+1)];case 1:return null==(r=we(e=pe(e,t.input.length)))[0]?["{"+ve(t)+"}",e]:"boolean"==typeof t.func&&t.func?"^"==(u=e.charAt(0))||"_"==u||"/"==u||"|"==u||","==u||1==t.input.length&&t.input.match(/\w/)&&"("!=u?["{"+ve(t)+"}",e]:[n="{"+ve(t)+"{"+r[0]+"}}",r[1]]:(r[0]=_e(r[0]),"sqrt"==t.input?["\\sqrt{"+r[0]+"}",r[1]]:"cancel"==t.input?["\\cancel{"+r[0]+"}",r[1]]:void 0!==t.rewriteleftright?["{\\left"+t.rewriteleftright[0]+r[0]+"\\right"+t.rewriteleftright[1]+"}",r[1]]:"boolean"==typeof t.acc&&t.acc?[ve(t)+"{"+r[0]+"}",r[1]]:["{"+ve(t)+"{"+r[0]+"}}",r[1]]);case 2:if(null==(r=we(e=pe(e,t.input.length)))[0])return["{"+ve(t)+"}",e];r[0]=_e(r[0]);var l=we(r[1]);return null==l[0]?["{"+ve(t)+"}",e]:(l[0]=_e(l[0]),[a="color"==t.input?"{\\color{"+r[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==t.input?"{\\sqrt["+r[0]+"]{"+l[0]+"}}":"{"+ve(t)+"{"+r[0]+"}{"+l[0]+"}}",l[1]]);case 3:return e=pe(e,t.input.length),[t.output,e];case 6:return e=pe(e,t.input.length),["{\\quad\\text{"+t.input+"}\\quad}",e];case 9:ce++,r=ye(e=pe(e,t.input.length),!1),ce--;var u="";return"|"==(u=r[0].charAt(r[0].length-1))&&","!==e.charAt(0)?[n="{\\left|"+r[0]+"}",r[1]]:[n="{\\mid}",e];default:return e=pe(e,t.input.length),["{"+ve(t)+"}",e]}}function be(e){var t,n,r,i,a;if(n=me(e=pe(e,0)),i=(a=we(e))[0],3==(t=me(e=a[1])).ttype&&"/"!=t.input){if((a=we(e=pe(e,t.input.length)))[0]=null==a[0]?"{}":_e(a[0]),e=a[1],"_"==t.input)if("^"==(r=me(e)).input){var o=we(e=pe(e,r.input.length));o[0]=_e(o[0]),e=o[1],i="{"+i,i+="_{"+a[0]+"}",i+="^{"+o[0]+"}",i+="}"}else i+="_{"+a[0]+"}";else i=i+"^{"+a[0]+"}";void 0!==n.func&&n.func&&(3==(r=me(e)).ttype||5==r.ttype||1>=n.input.length&&4!=r.ttype||(i="{"+i+(a=be(e))[0]+"}",e=a[1]))}return[i,e]}function ye(e,t){var n,r,i,a,o="",s=!1;do{r=(i=be(e=pe(e,0)))[0],3==(n=me(e=i[1])).ttype&&"/"==n.input?((i=be(e=pe(e,n.input.length)))[0]=null==i[0]?"{}":_e(i[0]),e=i[1],r="\\frac{"+(r=_e(r))+"}",o+=r+="{"+i[0]+"}",n=me(e)):null!=r&&(o+=r)}while((5!=n.ttype&&(9!=n.ttype||t)||0==ce)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=o.length;if(l>2&&"{"==o.charAt(0)&&o.indexOf(",")>0){var u=o.charAt(l-2);if(")"==u||"]"==u){var c=o.charAt(6);if("("==c&&")"==u&&"}"!=n.output||"["==c&&"]"==u){var d="",h=[];h.push(0);var f=!0,p=0,g=[];g[0]=[0];var m=0,_=0,v="";for(a=1;l-1>a;a++)o.charAt(a)==c&&p++,o.charAt(a)==u&&0==--p&&","==o.charAt(a+2)&&"{"==o.charAt(a+3)&&(h.push(a+2),g[m=a+2]=[a+2]),"["!=o.charAt(a)&&"("!=o.charAt(a)&&"{"!=o.charAt(a)||_++,"]"!=o.charAt(a)&&")"!=o.charAt(a)&&"}"!=o.charAt(a)||_--,","==o.charAt(a)&&1==_&&g[m].push(a),0>_&&(m==a+1?a++:f=!1);h.push(l);var w=-1;if(0==p&&h.length>0&&f)for(a=0;h.length-1>a;a++){if(a>0&&(d+="\\\\"),0==a)if(1==g[h[a]].length)var b=[o.substr(h[a]+7,h[a+1]-h[a]-15)];else{b=[o.substring(h[a]+7,g[h[a]][1])];for(var y=2;g[h[a]].length>y;y++)b.push(o.substring(g[h[a]][y-1]+1,g[h[a]][y]));b.push(o.substring(g[h[a]][g[h[a]].length-1]+1,h[a+1]-8))}else if(1==g[h[a]].length)b=[o.substr(h[a]+8,h[a+1]-h[a]-16)];else{for(b=[o.substring(h[a]+8,g[h[a]][1])],y=2;g[h[a]].length>y;y++)b.push(o.substring(g[h[a]][y-1]+1,g[h[a]][y]));b.push(o.substring(g[h[a]][g[h[a]].length-1]+1,h[a+1]-8))}for(y=b.length-1;y>=0;y--)"{\\mid}"==b[y]?(0==a&&(v="|"+v),b.splice(y,1)):0==a&&(v="c"+v);w>0&&b.length!=w?f=!1:-1==w&&(w=b.length),d+=b.join("&")}d="\\begin{array}{"+v+"} "+d+"\\end{array}",f&&(o=d)}}}e=pe(e,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(o+="\\right.",s=!0):(o+=r="\\right"+ve(n),s=!0)}return ce>0&&!s&&(o+="\\right."),[o,e]}function ke(e){return ce=0,null==(e=(e=(e=e.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":ye(e.replace(/^\s+/g,""),!1)[0]}if(function(){var e,t=le.length;for(e=0;t>e;e++)!le[e].tex||"boolean"==typeof le[e].notexcopy&&le[e].notexcopy||le.push({input:le[e].tex,tag:le[e].tag,output:le[e].output,ttype:le[e].ttype,acc:le[e].acc||!1});!function(){var e;for(le.sort(ue),e=0;le.length>e;e++)fe[e]=le[e].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===xe)var xe=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Ee=window.renderMathInElement||void 0;var Se=0;function Ae(){return!(void 0===Ee||!Ee||void 0===xe||!xe)}var je=!1,Le="katexCSS";function Ce(e){var t=Ae();if("undefined"!=typeof window){if(je)return t;if(!t)return je=!0,S.loadStyleSheet(Le),S.loadScript("katex").then(function(e){return xe=A.interopDefault(window[e]),S.loadScript("renderMathInElement")}).then(function(t){Ee=A.interopDefault(window[t]),"function"==typeof e&&e&&e(Ee)}).catch(function(e){}),t}return"function"==typeof e&&e&&e(Ee),t}function ze(e,t){if(Ae()){var n=t.className,r=t.input,i=t.data,a=t.cssLink,o=t.options,s=t.element.ownerDocument,l="";if(i instanceof Array)i.forEach(function(e){if(""===e)l+="<br>";else{var t=xe.renderToString(e,o);l+=a?'<div title="'.concat(r,'" class="').concat(n,' css-katex" data-css="').concat(a,'">').concat(t,"</div>"):'<div title="'.concat(r,'" class="').concat(n,'">').concat(t,"</div>")}});else{var u=xe.renderToString(i,o);l=a?'<div title="'.concat(r,'" class="').concat(n,' css-katex" data-css="').concat(a,'">').concat(u,"</div>"):'<div title="'.concat(r,'" class="').concat(n,'">').concat(u,"</div>")}t.element.parentNode.outerHTML=l,--Se||Ee(s.body,o),e(!0)}else setTimeout(function(){ze(e,t)},10)}function Pe(e,t,n){return new Promise(function(r){var i,a=A.createElementMeta("katex",e,function(e){var t;i=e;var r=e.split(/\n[ \f\r\t\v]*\n/);return r.length>1?(t=[],r.forEach(function(e){""!==(e=e.trim())&&(e=n?ke(e):e),t.push(e)})):t=n?ke(i):i,t});if(!a)return r(!1);a.cssLink=S.getSrc(!0,Le),a.input=i,a.options=t,ze(r,a)})}function Me(e){return e.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}var Te=function(){var e=r({displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});function t(e,t){return!(!e||"object"!==a(e)||!e.hasOwnProperty(t))}function n(e,n,r){return!!(t(e,n)&&t(e[n],r)&&(i=e[n][r],Array.isArray(i)&&i.length))&&(e[n][r].forEach(function(e){e.display="inline"!==r,"asciimath"===n&&(e.asciimath=!0)}),e[n][r]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(n(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(n(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(n(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(n(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function Oe(e){var t=0,n=Te(e),r=n.delimiters.map(function(e){var n=e.right,r=e.display,i=e.asciimath;return{test:RegExp("".concat(Me(e.left),"(.+?)").concat(Me(n)),"g"),replacer:function(e,n){return++t,i&&(n=ke(n)),r?"\\[".concat(n,"\\]"):"\\(".concat(n,"\\)")}}});return[{type:"output",config:n,filter:function(e){t=0;var n=e.wrapper;if(!n)return!1;r.length&&n.querySelectorAll(":not(code):not(pre)").forEach(function(e){i(e.childNodes).filter(function(e){return"#text"===e.nodeName&&e.nodeValue.trim()}).forEach(function(e){var t=r.reduce(function(e,t){return e.replace(t.test,t.replacer)},e.nodeValue);e.nodeValue=t})});var a=n.querySelectorAll("code.latex.language-latex"),o=n.querySelectorAll("code.asciimath.language-asciimath");if(!a.length&&!o.length){if(t>0){var s=function(e,t){Ae()?(t(n.ownerDocument.body,l.config),e(!0)):setTimeout(function(){s(e,t)},10)};this.config.cssLink=S.getSrc(!0,Le);var l=this;return new Promise(function(e){Ce(function(t){s(e,t)})}).then(function(){return e})}return!1}return this.config.cssLink=S.getSrc(!0,Le),A.addCssLink(e,this.config.cssLink,"css-katex"),function(e,t,n){return Se=e.length+t.length,Ce(),new Promise(function(r){var i=[];e.forEach(function(e){i.push(Pe(e,n,!1))}),t.forEach(function(e){i.push(Pe(e,n,!0))}),Promise.all(i).then(function(){r(!0)})})}(a,o,this.config).then(function(){return e})}}]}var Re="echarts";if("undefined"==typeof window)throw Error("The showdown echarts extension can only be used in browser environment!");if(void 0===Ne)var Ne=window.echarts||void 0;function Be(){return!!Ne}var De=!1;function Ie(e,t){if(Be()){var n=t.id,r=t.container,i=t.className,a=t.element.parentNode;t.lang?(t.lang.width||(t.lang.width="400px"),t.lang.height||(t.lang.height="300px")):t.lang={width:"400px",height:"300px"};var o="width:".concat(t.lang.width,"; height:").concat(t.lang.height,";");return a.outerHTML='<div id="'.concat(r,'" class="').concat(i,'" style="').concat(o,'"><div id="').concat(n,'" style="width:100%;height:100%;display:inline-block"></div></div>'),e(!0)}setTimeout(function(){Ie(e,t)},20)}function qe(e,t,n){var i=A.createElementMeta(Re,e);if(!i)return Promise.resolve(!1);n=r(r({},n),{},{ssr:!1,width:i.lang.width,height:i.lang.height});var a={id:i.container,code:function(e,t){var n=function(){var n=eval,r=document.getElementById(e.id);if(r){var i=Ne.getInstanceByDom(r);if(i||(r.innerHTML=""),i=Ne.init(r,null,t),e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()){var a=n("(function(){".concat(e.data,"; return option;})();"));i.setOption(a)}else{var o=JSON.parse(e.data);i.setOption(o)}}};return n.toString=function(){return e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()?"function(){\n const config = ".concat(JSON.stringify(t),";\n let el = document.getElementById('").concat(e.id,"');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n ").concat(e.data,"\n chart.setOption(option); \n }\n }"):"function(){\n const config = ".concat(JSON.stringify(t),";\n let el = document.getElementById('").concat(e.id,"');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n const option = ").concat(e.data,";\n chart.setOption(option);\n }\n }")},n}(i,n),host:"#".concat(i.container)};return t.push(a),new Promise(function(e){Ie(e,i)})}function He(e,t,n){var r={outer:[{name:Re,src:S.getSrc(!1,Re,"jsdelivr")}],inner:[]};return t.push(r),function(){var e=Be();if("undefined"!=typeof window){if(De)return e;e||(De=!0,S.loadScript(Re).then(function(e){Ne=A.interopDefault(window[e])}))}}(),new Promise(function(t){var i=[];e.forEach(function(e){i.push(qe(e,r.inner,n))}),Promise.all(i).then(function(){t(!0)})})}function Ue(e){var t=function(){return r({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.echarts.language-echarts");return!!n.length&&He(n,e.scripts,this.config).then(function(){return e})}}]}var Fe="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Ze)var Ze=window.mermaid||void 0;function $e(){return!(void 0===Ze||!Ze)}var We=!1;function Ve(e,t){if($e()){var n=t.className,r=t.element.parentNode;Ze.render(t.id,t.data).then(function(t){r.outerHTML='<div class="'.concat(n,'">').concat(t.svg,"</div>"),e(!0)})}else setTimeout(function(){Ve(e,t)},10)}function Ye(e){return new Promise(function(t){var n=A.createElementMeta(Fe,e);if(!n)return t(!1);Ve(t,n)})}function Ge(e,t){return function(e){var t=$e();if("undefined"!=typeof window){if(We)return t;if(!t)return We=!0,S.loadScript(Fe).then(function(t){(Ze=A.interopDefault(window[t])).initialize(e)}),t}Ze.initialize(e)}(t),new Promise(function(t){var n=[];e.forEach(function(e){n.push(Ye(e))}),Promise.all(n).then(function(){t(!0)})})}function Je(e){var t=function(){return r({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Ge(n,this.config).then(function(){return e})}}]}var Ke="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Xe=[],Qe=[],et="undefined"!=typeof Uint8Array?Uint8Array:Array,tt=!1;function nt(){tt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;64>t;++t)Xe[t]=e[t],Qe[e.charCodeAt(t)]=t;Qe[45]=62,Qe[95]=63}function rt(e){return Xe[e>>18&63]+Xe[e>>12&63]+Xe[e>>6&63]+Xe[63&e]}function it(e,t,n){for(var r=[],i=t;n>i;i+=3)r.push(rt((e[i]<<16)+(e[i+1]<<8)+e[i+2]));return r.join("")}function at(e){var t;tt||nt();for(var n=e.length,r=n%3,i="",a=[],o=16383,s=0,l=n-r;l>s;s+=o)a.push(it(e,s,s+o>l?l:s+o));return 1===r?(i+=Xe[(t=e[n-1])>>2],i+=Xe[t<<4&63],i+="=="):2===r&&(i+=Xe[(t=(e[n-2]<<8)+e[n-1])>>10],i+=Xe[t>>4&63],i+=Xe[t<<2&63],i+="="),a.push(i),a.join("")}function ot(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=u}return(f?-1:1)*o*Math.pow(2,a-r)}function st(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,h=23===i?5.960464477539062e-8:0,f=r?0:a-1,p=r?1:-1,g=0>t||0===t&&0>1/t?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(1>t*(l=Math.pow(2,-(o=Math.floor(Math.log(t)/Math.LN2))))&&(o--,l*=2),2>(t+=1>o+d?h*Math.pow(2,1-d):h/l)*l||(o++,l/=2),c>o+d?1>o+d?(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0):(s=(t*l-1)*Math.pow(2,i),o+=d):(s=0,o=c));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+f]=255&o,f+=p,o/=256,u-=8);e[n+f-p]|=128*g}var lt={}.toString,ut=Array.isArray||function(e){return"[object Array]"==lt.call(e)};function ct(){return ht.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function dt(e,t){if(ct()<t)throw new RangeError("Invalid typed array length");return ht.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ht.prototype:(null===e&&(e=new ht(t)),e.length=t),e}function ht(e,t,n){if(!(ht.TYPED_ARRAY_SUPPORT||this instanceof ht))return new ht(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return gt(this,e)}return ft(this,e,t,n)}function ft(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(0>n||n>t.byteLength)throw new RangeError("'offset' is out of bounds");if(n+(r||0)>t.byteLength)throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);ht.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ht.prototype:e=mt(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!ht.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|wt(t,n);e=dt(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(vt(t)){var n=0|_t(t.length);return 0===(e=dt(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?dt(e,0):mt(e,t);if("Buffer"===t.type&&ut(t.data))return mt(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function pt(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(0>e)throw new RangeError('"size" argument must not be negative')}function gt(e,t){if(pt(t),e=dt(e,0>t?0:0|_t(t)),!ht.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;++n)e[n]=0;return e}function mt(e,t){var n=0>t.length?0:0|_t(t.length);e=dt(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function _t(e){if(e>=ct())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ct().toString(16)+" bytes");return 0|e}function vt(e){return!(null==e||!e._isBuffer)}function wt(e,t){if(vt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Wt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Vt(e).length;default:if(r)return Wt(e).length;t=(""+t).toLowerCase(),r=!0}}function bt(e,t,n){var r=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if((t>>>=0)>=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rt(this,t,n);case"utf8":case"utf-8":return Pt(this,t,n);case"ascii":return Tt(this,t,n);case"latin1":case"binary":return Ot(this,t,n);case"base64":return zt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function yt(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function kt(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),isNaN(n=+n)&&(n=i?0:e.length-1),0>n&&(n=e.length+n),e.length>n){if(0>n){if(!i)return-1;n=0}}else{if(i)return-1;n=e.length-1}if("string"==typeof t&&(t=ht.from(t,r)),vt(t))return 0===t.length?-1:xt(e,t,n,r,i);if("number"==typeof t)return t&=255,ht.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):xt(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function xt(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=(r+"").toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(2>e.length||2>t.length)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;s>a;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;l>h;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return-1}function Et(e,t,n,r){var i=e.length-(n=Number(n)||0);r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;r>o;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function St(e,t,n,r){return Yt(Wt(t,e.length-n),e,n,r)}function At(e,t,n,r){return Yt(function(e){for(var t=[],n=0;e.length>n;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function jt(e,t,n,r){return At(e,t,n,r)}function Lt(e,t,n,r){return Yt(Vt(t),e,n,r)}function Ct(e,t,n,r){return Yt(function(e,t){for(var n,r,i=[],a=0;e.length>a&&0<=(t-=2);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function zt(e,t,n){return at(0===t&&n===e.length?e:e.slice(t,n))}function Pt(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;n>i;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(n>=i+d)switch(d){case 1:128>u&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:o=e[i+2],128==(192&(a=e[i+1]))&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(55296>l||l>57343)&&(c=l);break;case 4:o=e[i+2],s=e[i+3],128==(192&(a=e[i+1]))&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&1114112>l&&(c=l)}null===c?(c=65533,d=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(Mt>=t)return String.fromCharCode.apply(String,e);var n="",r=0;for(;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Mt));return n}(r)}ht.TYPED_ARRAY_SUPPORT=void 0===Ke.TYPED_ARRAY_SUPPORT||Ke.TYPED_ARRAY_SUPPORT,ct(),ht.poolSize=8192,ht._augment=function(e){return e.__proto__=ht.prototype,e},ht.from=function(e,t,n){return ft(null,e,t,n)},ht.TYPED_ARRAY_SUPPORT&&(ht.prototype.__proto__=Uint8Array.prototype,ht.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Symbol),ht.alloc=function(e,t,n){return function(e,t,n,r){return pt(t),t>0&&void 0!==n?"string"==typeof r?dt(e,t).fill(n,r):dt(e,t).fill(n):dt(e,t)}(null,e,t,n)},ht.allocUnsafe=function(e){return gt(null,e)},ht.allocUnsafeSlow=function(e){return gt(null,e)},ht.isBuffer=Gt,ht.compare=function(e,t){if(!vt(e)||!vt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);a>i;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return r>n?-1:n>r?1:0},ht.isEncoding=function(e){switch((e+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ht.concat=function(e,t){if(!ut(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ht.alloc(0);var n;if(void 0===t)for(t=0,n=0;e.length>n;++n)t+=e[n].length;var r=ht.allocUnsafe(t),i=0;for(n=0;e.length>n;++n){var a=e[n];if(!vt(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},ht.byteLength=wt,ht.prototype._isBuffer=!0,ht.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;e>t;t+=2)yt(this,t,t+1);return this},ht.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;e>t;t+=4)yt(this,t,t+3),yt(this,t+1,t+2);return this},ht.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;e>t;t+=8)yt(this,t,t+7),yt(this,t+1,t+6),yt(this,t+2,t+5),yt(this,t+3,t+4);return this},ht.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Pt(this,0,e):bt.apply(this,arguments)},ht.prototype.equals=function(e){if(!vt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ht.compare(this,e)},ht.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ht.prototype.compare=function(e,t,n,r,i){if(!vt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),0>t||n>e.length||0>r||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),c=0;s>c;++c)if(l[c]!==u[c]){a=l[c],o=u[c];break}return o>a?-1:a>o?1:0},ht.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},ht.prototype.indexOf=function(e,t,n){return kt(this,e,t,n,!0)},ht.prototype.lastIndexOf=function(e,t,n){return kt(this,e,t,n,!1)},ht.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return Et(this,e,t,n);case"utf8":case"utf-8":return St(this,e,t,n);case"ascii":return At(this,e,t,n);case"latin1":case"binary":return jt(this,e,t,n);case"base64":return Lt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ct(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},ht.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Mt=4096;function Tt(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(127&e[i]);return r}function Ot(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(e[i]);return r}function Rt(e,t,n){var r=e.length;t&&t>=0||(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",a=t;n>a;++a)i+=$t(e[a]);return i}function Nt(e,t,n){for(var r=e.slice(t,n),i="",a=0;r.length>a;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function Bt(e,t,n){if(e%1!=0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Dt(e,t,n,r,i,a){if(!vt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||a>t)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function It(e,t,n,r){0>t&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);a>i;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function qt(e,t,n,r){0>t&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);a>i;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Ht(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function Ut(e,t,n,r,i){return i||Ht(e,0,n,4),st(e,t,n,r,23,4),n+4}function Ft(e,t,n,r,i){return i||Ht(e,0,n,8),st(e,t,n,r,52,8),n+8}ht.prototype.slice=function(e,t){var n,r=this.length;if(0>(e=~~e)?0>(e+=r)&&(e=0):e>r&&(e=r),0>(t=void 0===t?r:~~t)?0>(t+=r)&&(t=0):t>r&&(t=r),e>t&&(t=e),ht.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ht.prototype;else{var i=t-e;n=new ht(i,void 0);for(var a=0;i>a;++a)n[a]=this[a+e]}return n},ht.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},ht.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},ht.prototype.readUInt8=function(e,t){return t||Bt(e,1,this.length),this[e]},ht.prototype.readUInt16LE=function(e,t){return t||Bt(e,2,this.length),this[e]|this[e+1]<<8},ht.prototype.readUInt16BE=function(e,t){return t||Bt(e,2,this.length),this[e]<<8|this[e+1]},ht.prototype.readUInt32LE=function(e,t){return t||Bt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ht.prototype.readUInt32BE=function(e,t){return t||Bt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ht.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return(i*=128)>r||(r-=Math.pow(2,8*t)),r},ht.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return(i*=128)>a||(a-=Math.pow(2,8*t)),a},ht.prototype.readInt8=function(e,t){return t||Bt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ht.prototype.readInt16LE=function(e,t){t||Bt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ht.prototype.readInt16BE=function(e,t){t||Bt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ht.prototype.readInt32LE=function(e,t){return t||Bt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ht.prototype.readInt32BE=function(e,t){return t||Bt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ht.prototype.readFloatLE=function(e,t){return t||Bt(e,4,this.length),ot(this,e,!0,23,4)},ht.prototype.readFloatBE=function(e,t){return t||Bt(e,4,this.length),ot(this,e,!1,23,4)},ht.prototype.readDoubleLE=function(e,t){return t||Bt(e,8,this.length),ot(this,e,!0,52,8)},ht.prototype.readDoubleBE=function(e,t){return t||Bt(e,8,this.length),ot(this,e,!1,52,8)},ht.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Dt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},ht.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Dt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},ht.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,1,255,0),ht.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ht.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):It(this,e,t,!0),t+2},ht.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):It(this,e,t,!1),t+2},ht.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):qt(this,e,t,!0),t+4},ht.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qt(this,e,t,!1),t+4},ht.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Dt(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)0>e&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},ht.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Dt(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)0>e&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},ht.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,1,127,-128),ht.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},ht.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):It(this,e,t,!0),t+2},ht.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):It(this,e,t,!1),t+2},ht.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,2147483647,-2147483648),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):qt(this,e,t,!0),t+4},ht.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qt(this,e,t,!1),t+4},ht.prototype.writeFloatLE=function(e,t,n){return Ut(this,e,t,!0,n)},ht.prototype.writeFloatBE=function(e,t,n){return Ut(this,e,t,!1,n)},ht.prototype.writeDoubleLE=function(e,t,n){return Ft(this,e,t,!0,n)},ht.prototype.writeDoubleBE=function(e,t,n){return Ft(this,e,t,!1,n)},ht.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),e.length>t||(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),r-n>e.length-t&&(r=e.length-t+n);var i,a=r-n;if(this===e&&t>n&&r>t)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(1e3>a||!ht.TYPED_ARRAY_SUPPORT)for(i=0;a>i;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},ht.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);256>i&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!ht.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(0>t||t>this.length||n>this.length)throw new RangeError("Out of range index");if(t>=n)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;n>a;++a)this[a]=e;else{var o=vt(e)?e:Wt(""+new ht(e,r)),s=o.length;for(a=0;n-t>a;++a)this[a+t]=o[a%s]}return this};var Zt=/[^+\/0-9A-Za-z-_]/g;function $t(e){return 16>e?"0"+e.toString(16):e.toString(16)}function Wt(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;r>o;++o){if((n=e.charCodeAt(o))>55295&&57344>n){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(56320>n){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,128>n){if(0>(t-=1))break;a.push(n)}else if(2048>n){if(0>(t-=2))break;a.push(n>>6|192,63&n|128)}else if(65536>n){if(0>(t-=3))break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(n>=1114112)throw Error("Invalid code point");if(0>(t-=4))break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Vt(e){return function(e){var t,n,r,i,a,o;tt||nt();var s=e.length;if(s%4>0)throw Error("Invalid string. Length must be a multiple of 4");o=new et(3*s/4-(a="="===e[s-2]?2:"="===e[s-1]?1:0)),r=a>0?s-4:s;var l=0;for(t=0,n=0;r>t;t+=4,n+=3)i=Qe[e.charCodeAt(t)]<<18|Qe[e.charCodeAt(t+1)]<<12|Qe[e.charCodeAt(t+2)]<<6|Qe[e.charCodeAt(t+3)],o[l++]=i>>16&255,o[l++]=i>>8&255,o[l++]=255&i;return 2===a?(i=Qe[e.charCodeAt(t)]<<2|Qe[e.charCodeAt(t+1)]>>4,o[l++]=255&i):1===a&&(i=Qe[e.charCodeAt(t)]<<10|Qe[e.charCodeAt(t+1)]<<4|Qe[e.charCodeAt(t+2)]>>2,o[l++]=i>>8&255,o[l++]=255&i),o}(function(e){if(2>(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Zt,"")).length)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Yt(e,t,n,r){for(var i=0;r>i&&(i+n<t.length&&i<e.length);++i)t[i+n]=e[i];return i}function Gt(e){return null!=e&&(!!e._isBuffer||Jt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Jt(e.slice(0,0))}(e))}function Jt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Kt(){throw Error("setTimeout has not been defined")}function Xt(){throw Error("clearTimeout has not been defined")}var Qt=Kt,en=Xt;function tn(e){if(Qt===setTimeout)return setTimeout(e,0);if((Qt===Kt||!Qt)&&setTimeout)return Qt=setTimeout,setTimeout(e,0);try{return Qt(e,0)}catch(t){try{return Qt.call(null,e,0)}catch(t){return Qt.call(this,e,0)}}}"function"==typeof Ke.setTimeout&&(Qt=setTimeout),"function"==typeof Ke.clearTimeout&&(en=clearTimeout);var nn,rn=[],an=!1,on=-1;function sn(){an&&nn&&(an=!1,nn.length?rn=nn.concat(rn):on=-1,rn.length&&ln())}function ln(){if(!an){var e=tn(sn);an=!0;for(var t=rn.length;t;){for(nn=rn,rn=[];++on<t;)nn&&nn[on].run();on=-1,t=rn.length}nn=null,an=!1,function(e){if(en===clearTimeout)return clearTimeout(e);if((en===Xt||!en)&&clearTimeout)return en=clearTimeout,clearTimeout(e);try{return en(e)}catch(t){try{return en.call(null,e)}catch(t){return en.call(this,e)}}}(e)}}function un(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;arguments.length>n;n++)t[n-1]=arguments[n];rn.push(new cn(e,t)),1!==rn.length||an||tn(ln)}function cn(e,t){this.fun=e,this.array=t}cn.prototype.run=function(){this.fun.apply(null,this.array)};var dn,hn={env:{}};function fn(){}function pn(){pn.init.call(this)}function gn(e){return void 0===e._maxListeners?pn.defaultMaxListeners:e._maxListeners}function mn(e,t,n,r){var i,a,o;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]):(a=e._events=new fn,e._eventsCount=0),o){if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),!o.warned&&(i=gn(e))&&i>0&&o.length>i){o.warned=!0;var s=Error("Possible EventEmitter memory leak detected. "+o.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length}}else o=a[t]=n,++e._eventsCount;return e}function _n(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function vn(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function wn(e,t){for(var n=Array(t);t--;)n[t]=e[t];return n}fn.prototype=Object.create(null),pn.EventEmitter=pn,pn.usingDomains=!1,pn.prototype.domain=void 0,pn.prototype._events=void 0,pn.prototype._maxListeners=void 0,pn.defaultMaxListeners=10,pn.init=function(){this.domain=null,pn.usingDomains&&(!dn.active||this instanceof dn.Domain||(this.domain=dn.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new fn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},pn.prototype.setMaxListeners=function(e){if("number"!=typeof e||0>e||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},pn.prototype.getMaxListeners=function(){return gn(this)},pn.prototype.emit=function(e){var t,n,r,i,a,o,s,l="error"===e;if(o=this._events)l=l&&null==o.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=o[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=wn(e,r),a=0;r>a;++a)i[a].call(n)}(n,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=wn(e,i),o=0;i>o;++o)a[o].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=wn(e,a),s=0;a>s;++s)o[s].call(n,r,i)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=wn(e,o),l=0;o>l;++l)s[l].call(n,r,i,a)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=Array(r-1),a=1;r>a;a++)i[a-1]=arguments[a];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=wn(e,i),o=0;i>o;++o)a[o].apply(n,r)}(n,c,this,i)}return!0},pn.prototype.on=pn.prototype.addListener=function(e,t){return mn(this,e,t,!1)},pn.prototype.prependListener=function(e,t){return mn(this,e,t,!0)},pn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,_n(this,e,t)),this},pn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,_n(this,e,t)),this},pn.prototype.removeListener=function(e,t){var n,r,i,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new fn:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){o=n[a].listener,i=a;break}if(0>i)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new fn,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;i>r;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,o||t)}return this},pn.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new fn,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new fn:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),a=0;i.length>a;++a)"removeListener"!==(r=i[a])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new fn,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},pn.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=Array(e.length),n=0;t.length>n;++n)t[n]=e[n].listener||e[n];return t}(t):[]},pn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):vn.call(e,t)},pn.prototype.listenerCount=vn,pn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var bn="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},yn=/%[sdj%]/g;function kn(e){if(!On(e)){for(var t=[],n=0;arguments.length>n;n++)t.push(An(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=(e+"").replace(yn,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return r[n++]+"";case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),o=r[n];i>n;o=r[++n])Tn(o)||!Bn(o)?a+=" "+o:a+=" "+An(o);return a}function xn(e,t){if(Rn(Ke.process))return function(){return xn(e,t).apply(this,arguments)};if(!0===hn.noDeprecation)return e;var n=!1;return function(){if(!n){if(hn.throwDeprecation)throw Error(t);n=!0}return e.apply(this,arguments)}}var En,Sn={};function An(e,t){var n={seen:[],stylize:Ln};return 3>arguments.length||(n.depth=arguments[2]),4>arguments.length||(n.colors=arguments[3]),Mn(t)?n.showHidden=t:t&&function(e,t){if(!t||!Bn(t))return e;var n=Object.keys(t),r=n.length;for(;r--;)e[n[r]]=t[n[r]]}(n,t),Rn(n.showHidden)&&(n.showHidden=!1),Rn(n.depth)&&(n.depth=2),Rn(n.colors)&&(n.colors=!1),Rn(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=jn),Cn(n,e,n.depth)}function jn(e,t){var n=An.styles[t];return n?"["+An.colors[n][0]+"m"+e+"["+An.colors[n][1]+"m":e}function Ln(e,t){return e}function Cn(e,t,n){if(e.customInspect&&t&&qn(t.inspect)&&t.inspect!==An&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return On(r)||(r=Cn(e,r,n)),r}var i=function(e,t){if(Rn(t))return e.stylize("undefined","undefined");if(On(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(r=t,"number"==typeof r)return e.stylize(""+t,"number");var r;if(Mn(t))return e.stylize(""+t,"boolean");if(Tn(t))return e.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),o=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),In(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return zn(t);if(0===a.length){if(qn(t))return e.stylize("[Function"+(t.name?": "+t.name:"")+"]","special");if(Nn(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Dn(t))return e.stylize(Date.prototype.toString.call(t),"date");if(In(t))return zn(t)}var s,l="",u=!1,c=["{","}"];(Array.isArray(t)&&(u=!0,c=["[","]"]),qn(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return Nn(t)&&(l=" "+RegExp.prototype.toString.call(t)),Dn(t)&&(l=" "+Date.prototype.toUTCString.call(t)),In(t)&&(l=" "+zn(t)),0!==a.length||u&&0!=t.length?0>n?Nn(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),s=u?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;s>o;++o)Un(t,o+"")?a.push(Pn(e,t,n,r,o+"",!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(Pn(e,t,n,r,i,!0))}),a}(e,t,n,o,a):a.map(function(r){return Pn(e,t,n,o,r,u)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,l,c)):c[0]+l+c[1]}function zn(e){return"["+Error.prototype.toString.call(e)+"]"}function Pn(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=e.stylize(l.set?"[Getter/Setter]":"[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),Un(r,i)||(o="["+i+"]"),s||(0>e.seen.indexOf(l.value)?(s=Tn(n)?Cn(e,l.value,null):Cn(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),Rn(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function Mn(e){return"boolean"==typeof e}function Tn(e){return null===e}function On(e){return"string"==typeof e}function Rn(e){return void 0===e}function Nn(e){return Bn(e)&&"[object RegExp]"===Hn(e)}function Bn(e){return"object"==typeof e&&null!==e}function Dn(e){return Bn(e)&&"[object Date]"===Hn(e)}function In(e){return Bn(e)&&("[object Error]"===Hn(e)||e instanceof Error)}function qn(e){return"function"==typeof e}function Hn(e){return Object.prototype.toString.call(e)}function Un(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Fn(){this.head=null,this.tail=null,this.length=0}An.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},An.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Fn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Fn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Fn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},Fn.prototype.clear=function(){this.head=this.tail=null,this.length=0},Fn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},Fn.prototype.concat=function(e){if(0===this.length)return ht.alloc(0);if(1===this.length)return this.head.data;for(var t=ht.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var Zn=ht.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function $n(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Zn(e))throw Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Vn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Yn;break;default:return void(this.write=Wn)}this.charBuffer=new ht(6),this.charReceived=0,this.charLength=0}function Wn(e){return e.toString(this.encoding)}function Vn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Yn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}$n.prototype.write=function(e){for(var t="";this.charLength;){var n=this.charLength-this.charReceived>e.length?e.length:this.charLength-this.charReceived;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charLength>this.charReceived)return"";if(e=e.slice(n,e.length),55296>(r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))||r>56319){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),(r=(t+=e.toString(this.encoding,0,i)).charCodeAt(i=t.length-1))>=55296&&56319>=r){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},$n.prototype.detectIncompleteChar=function(e){for(var t=3>e.length?e.length:3;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(2>=t&&n>>4==14){this.charLength=3;break}if(3>=t&&n>>3==30){this.charLength=4;break}}this.charReceived=t},$n.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.encoding;t+=this.charBuffer.slice(0,this.charReceived).toString(n)}return t},Kn.ReadableState=Jn;var Gn=function(e){if(Rn(En)&&(En=hn.env.NODE_DEBUG||""),e=e.toUpperCase(),!Sn[e])if(RegExp("\\b"+e+"\\b","i").test(En)){Sn[e]=function(){kn.apply(null,arguments)}}else Sn[e]=function(){};return Sn[e]}("stream");function Jn(e,t){this.objectMode=!!(e=e||{}).objectMode,t instanceof Sr&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=new Fn,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new $n(e.encoding),this.encoding=e.encoding)}function Kn(e){if(!(this instanceof Kn))return new Kn(e);this._readableState=new Jn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),pn.call(this)}function Xn(e,t,n,r,i){var a=function(e,t){var n=null;Gt(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(a)e.emit("error",a);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,tr(e)}(e,t);else if(t.objectMode||n&&n.length>0){if(t.ended&&!i)e.emit("error",Error("stream.push() after EOF"));else if(t.endEmitted&&i){e.emit("error",Error("stream.unshift() after end event"))}else{var o;!t.decoder||i||r||(n=t.decoder.write(n),o=!t.objectMode&&0===n.length),i||(t.reading=!1),o||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&tr(e))),function(e,t){t.readingMore||(t.readingMore=!0,un(rr,e,t))}(e,t)}}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.highWaterMark>e.length||0===e.length)}(t)}bn(Kn,pn),Kn.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=ht.from(e,t),t=""),Xn(this,n,e,t,!1)},Kn.prototype.unshift=function(e){return Xn(this,this._readableState,e,"",!0)},Kn.prototype.isPaused=function(){return!1===this._readableState.flowing},Kn.prototype.setEncoding=function(e){return this._readableState.decoder=new $n(e),this._readableState.encoding=e,this};var Qn=8388608;function er(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return Qn>e?(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++):e=Qn,e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function tr(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Gn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?un(nr,e):nr(e))}function nr(e){Gn("emit readable"),e.emit("readable"),or(e)}function rr(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.highWaterMark>t.length&&(Gn("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function ir(e){Gn("readable nexttick read 0"),e.read(0)}function ar(e,t){t.reading||(Gn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),or(e),t.flowing&&!t.reading&&e.read(0)}function or(e){var t=e._readableState;for(Gn("flow",t.flowing);t.flowing&&null!==e.read(););}function sr(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():e&&t.length>e?n=function(e,t,n){var r;t.head.data.length>e?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(i+=o===a.length?a:a.slice(0,e),0===(e-=o)){o===a.length?(++r,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=ht.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder):(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()),n);var n}function lr(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,un(ur,t,e))}function ur(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function cr(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function dr(){}function hr(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function fr(e,t){Object.defineProperty(this,"buffer",{get:xn(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),this.objectMode=!!(e=e||{}).objectMode,t instanceof Sr&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?un(i,r):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,i);else{var a=vr(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_r(e,n),r?un(mr,e,n,a,i):mr(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new yr(this)}function pr(e){if(!(this instanceof pr||this instanceof Sr))return new pr(e);this._writableState=new fr(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),pn.call(this)}function gr(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function mr(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),br(e,t)}function _r(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var a=0;n;)r[a]=n,n=n.next,a+=1;gr(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new yr(t)}else{for(;n;){var o=n.chunk;if(gr(e,t,!1,t.objectMode?1:o.length,o,n.encoding,n.callback),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function vr(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function wr(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function br(e,t){var n=vr(t);return n&&(0===t.pendingcb?(wr(e,t),t.finished=!0,e.emit("finish")):wr(e,t)),n}function yr(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Kn.prototype.read=function(e){Gn("read",e);var t=this._readableState,n=e=parseInt(e,10);if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Gn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?lr(this):tr(this),null;if(0===(e=er(e,t))&&t.ended)return 0===t.length&&lr(this),null;var r,i=t.needReadable;return Gn("need readable",i),(0===t.length||t.highWaterMark>t.length-e)&&Gn("length less than watermark",i=!0),t.ended||t.reading?Gn("reading or ended",i=!1):i&&(Gn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=er(n,t))),null===(r=e>0?sr(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&lr(this)),null!==r&&this.emit("data",r),r},Kn.prototype._read=function(e){this.emit("error",Error("not implemented"))},Kn.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Gn("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end?o:u;function a(e){Gn("onunpipe"),e===n&&u()}function o(){Gn("onend"),e.end()}r.endEmitted?un(i):n.once("end",i),e.on("unpipe",a);var s=function(e){return function(){var t=e._readableState;Gn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,or(e))}}(n);e.on("drain",s);var l=!1;function u(){Gn("cleanup"),e.removeListener("close",f),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",o),n.removeListener("end",u),n.removeListener("data",d),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function d(t){Gn("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==cr(r.pipes,e))&&!l&&(Gn("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function h(t){Gn("onerror",t),g(),e.removeListener("error",h),0===e.listeners("error").length&&e.emit("error",t)}function f(){e.removeListener("finish",p),g()}function p(){Gn("onfinish"),e.removeListener("close",f),g()}function g(){Gn("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",f),e.once("finish",p),e.emit("pipe",n),r.flowing||(Gn("pipe resume"),n.resume()),e},Kn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;r>i;i++)n[i].emit("unpipe",this);return this}var a=cr(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Kn.prototype.addListener=Kn.prototype.on=function(e,t){var n=pn.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&tr(this):un(ir,this))}return n},Kn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Gn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,un(ar,e,t))}(this,e)),this},Kn.prototype.pause=function(){return Gn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Gn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Kn.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(Gn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(Gn("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){Gn("wrapped _read",t),n&&(n=!1,e.resume())},r},Kn._fromList=sr,pr.WritableState=fr,bn(pr,pn),fr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},pr.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},pr.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),ht.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=dr),r.ended?function(e,t){var n=Error("write after end");e.emit("error",n),un(t,n)}(this,n):function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):ht.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),un(r,a),i=!1),i}(this,r,e,n)&&(r.pendingcb++,i=function(e,t,n,r,i){n=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=ht.from(t,n));return t}(t,n,r),ht.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var o=t.highWaterMark>t.length;o||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new hr(n,r,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else gr(e,t,!1,a,n,r,i);return o}(this,r,e,t,n)),i},pr.prototype.cork=function(){this._writableState.corked++},pr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_r(this,e))},pr.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())<=-1)throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},pr.prototype._write=function(e,t,n){n(Error("not implemented"))},pr.prototype._writev=null,pr.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,br(e,t),n&&(t.finished?un(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},bn(Sr,Kn);for(var kr=Object.keys(pr.prototype),xr=0;kr.length>xr;xr++){var Er=kr[xr];Sr.prototype[Er]||(Sr.prototype[Er]=pr.prototype[Er])}function Sr(e){if(!(this instanceof Sr))return new Sr(e);Kn.call(this,e),pr.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Ar)}function Ar(){this.allowHalfOpen||this._writableState.ended||un(jr,this)}function jr(e){e.end()}function Lr(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.highWaterMark>a.length)&&e._read(a.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Cr(e){if(!(this instanceof Cr))return new Cr(e);Sr.call(this,e),this._transformState=new Lr(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){zr(t,e)}):zr(t)})}function zr(e,t){if(t)return e.emit("error",t);var n=e._transformState;if(e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(n.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}function Pr(e){if(!(this instanceof Pr))return new Pr(e);Cr.call(this,e)}function Mr(){pn.call(this)}bn(Cr,Sr),Cr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Sr.prototype.push.call(this,e,t)},Cr.prototype._transform=function(e,t,n){throw Error("Not implemented")},Cr.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.highWaterMark>i.length)&&this._read(i.highWaterMark)}},Cr.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},bn(Pr,Cr),Pr.prototype._transform=function(e,t,n){n(null,e)},bn(Mr,pn),Mr.Readable=Kn,Mr.Writable=pr,Mr.Duplex=Sr,Mr.Transform=Cr,Mr.PassThrough=Pr,Mr.Stream=Mr,Mr.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",o),n.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===pn.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",s),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e};var Tr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Or(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Rr(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;r>a;a++)e[i+a]=t[n+a]}var Nr=Uint8Array,Br=Uint16Array,Dr=Int32Array;function Ir(e){for(var t=e.length;--t>=0;)e[t]=0}var qr=256,Hr=286,Ur=30,Fr=15,Zr=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$r=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Wr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Vr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Yr=Array(576);Ir(Yr);var Gr=Array(60);Ir(Gr);var Jr=Array(512);Ir(Jr);var Kr=Array(256);Ir(Kr);var Xr=Array(29);Ir(Xr);var Qr,ei,ti,ni=Array(Ur);function ri(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function ii(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ai(e){return 256>e?Jr[e]:Jr[256+(e>>>7)]}function oi(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function si(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,oi(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function li(e,t,n){si(e,n[2*t],n[2*t+1])}function ui(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function ci(e,t,n){var r,i,a=Array(16),o=0;for(r=1;Fr>=r;r++)a[r]=o=o+n[r-1]<<1;for(i=0;t>=i;i++){var s=e[2*i+1];0!==s&&(e[2*i]=ui(a[s]++,s))}}function di(e){var t;for(t=0;Hr>t;t++)e.dyn_ltree[2*t]=0;for(t=0;Ur>t;t++)e.dyn_dtree[2*t]=0;for(t=0;19>t;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function hi(e){e.bi_valid>8?oi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function fi(e,t,n,r){var i=2*t,a=2*n;return e[a]>e[i]||e[i]===e[a]&&r[n]>=r[t]}function pi(e,t,n){for(var r=e.heap[n],i=n<<1;e.heap_len>=i&&(e.heap_len>i&&fi(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!fi(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function gi(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?li(e,i,t):(li(e,(a=Kr[i])+qr+1,t),0!==(o=Zr[a])&&si(e,i-=Xr[a],o),li(e,a=ai(--r),n),0!==(o=$r[a])&&si(e,r-=ni[a],o))}while(e.last_lit>s);li(e,256,t)}function mi(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;l>n;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;2>e.heap_len;)a[2*(i=e.heap[++e.heap_len]=2>u?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)pi(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pi(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[r]>e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,pi(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(a=0;Fr>=a;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;573>n;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,g++),l[2*r+1]=a,r>u||(e.bl_count[a]++,o=0,f>r||(o=h[r-f]),e.opt_len+=(s=l[2*r])*(a+o),d&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==g){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)u<(i=e.heap[--n])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),ci(a,u,e.bl_count)}function _i(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;n>=r;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(u>s?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s>10?e.bl_tree[36]++:e.bl_tree[34]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function vi(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;n>=r;r++)if(i=o,o=t[2*(r+1)+1],++s>=l||i!==o){if(u>s)do{li(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==a&&(li(e,i,e.bl_tree),s--),li(e,16,e.bl_tree),si(e,s-3,2)):s>10?(li(e,18,e.bl_tree),si(e,s-11,7)):(li(e,17,e.bl_tree),si(e,s-3,3));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}Ir(ni);var wi=!1;function bi(e){wi||(!function(){var e,t,n,r,i,a=Array(16);for(n=0,r=0;28>r;r++)for(Xr[r]=n,e=0;1<<Zr[r]>e;e++)Kr[n++]=r;for(Kr[n-1]=r,i=0,r=0;16>r;r++)for(ni[r]=i,e=0;1<<$r[r]>e;e++)Jr[i++]=r;for(i>>=7;Ur>r;r++)for(ni[r]=i<<7,e=0;1<<$r[r]-7>e;e++)Jr[256+i++]=r;for(t=0;Fr>=t;t++)a[t]=0;for(e=0;143>=e;)Yr[2*e+1]=8,e++,a[8]++;for(;255>=e;)Yr[2*e+1]=9,e++,a[9]++;for(;279>=e;)Yr[2*e+1]=7,e++,a[7]++;for(;287>=e;)Yr[2*e+1]=8,e++,a[8]++;for(ci(Yr,287,a),e=0;Ur>e;e++)Gr[2*e+1]=5,Gr[2*e]=ui(e,5);Qr=new ri(Yr,Zr,257,Hr,Fr),ei=new ri(Gr,$r,0,Ur,Fr),ti=new ri([],Wr,0,19,7)}(),wi=!0),e.l_desc=new ii(e.dyn_ltree,Qr),e.d_desc=new ii(e.dyn_dtree,ei),e.bl_desc=new ii(e.bl_tree,ti),e.bi_buf=0,e.bi_valid=0,di(e)}function yi(e,t,n,r){si(e,0+(r?1:0),3),function(e,t,n){hi(e),oi(e,n),oi(e,~n),Rr(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}function ki(e){si(e,2,3),li(e,256,Yr),function(e){16===e.bi_valid?(oi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8>e.bi_valid||(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function xi(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;31>=t;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;qr>t;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),mi(e,e.l_desc),mi(e,e.d_desc),o=function(e){var t;for(_i(e,e.dyn_ltree,e.l_desc.max_code),_i(e,e.dyn_dtree,e.d_desc.max_code),mi(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Vr[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(a=e.static_len+3+7>>>3)>(i=e.opt_len+3+7>>>3)||(i=a)):i=a=n+5,n+4>i||-1===t?4===e.strategy||a===i?(si(e,2+(r?1:0),3),gi(e,Yr,Gr)):(si(e,4+(r?1:0),3),function(e,t,n,r){var i;for(si(e,t-257,5),si(e,n-1,5),si(e,r-4,4),i=0;r>i;i++)si(e,e.bl_tree[2*Vr[i]+1],3);vi(e,e.dyn_ltree,t-1),vi(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),gi(e,e.dyn_ltree,e.dyn_dtree)):yi(e,t,n,r),di(e),r&&hi(e)}function Ei(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Kr[n]+qr+1)]++,e.dyn_dtree[2*ai(t)]++),e.last_lit===e.lit_bufsize-1}function Si(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}var Ai=function(){for(var e,t=[],n=0;256>n;n++){e=n;for(var r=0;8>r;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function ji(e,t,n,r){var i=Ai,a=r+n;e^=-1;for(var o=r;a>o;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}var Li,Ci=-2,zi=258,Pi=262,Mi=103,Ti=113,Oi=666;function Ri(e,t){return e.msg=Tr[t],t}function Ni(e){return(e<<1)-(e>4?9:0)}function Bi(e){for(var t=e.length;--t>=0;)e[t]=0}function Di(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Rr(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Ii(e,t){xi(e,0>e.block_start?-1:e.block_start,e.strstart-e.block_start,t),e.block_start=e.strstart,Di(e.strm)}function qi(e,t){e.pending_buf[e.pending++]=t}function Hi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Ui(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,Rr(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=Si(e.adler,t,i,n):2===e.state.wrap&&(e.adler=ji(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function Fi(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Pi?e.strstart-(e.w_size-Pi):0,u=e.window,c=e.w_mask,d=e.prev,h=e.strstart+zi,f=u[a+o-1],p=u[a+o];e.good_match>e.prev_length||(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===f&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&h>a);if(r=zi-(h-a),a=h-zi,r>o){if(e.match_start=t,o=r,r>=s)break;f=u[a+o-1],p=u[a+o]}}}while((t=d[t&c])>l&&0!==--i);return o>e.lookahead?e.lookahead:o}function Zi(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-Pi)){Rr(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=o>r?0:r-o}while(--n);t=n=o;do{r=e.prev[--t],e.prev[t]=o>r?0:r-o}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=Ui(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=3)for(e.ins_h=e.window[a=e.strstart-e.insert],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert>=3););}while(Pi>e.lookahead&&0!==e.strm.avail_in)}function $i(e,t){for(var n,r;;){if(Pi>e.lookahead){if(Zi(e),Pi>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(n=0,3>e.lookahead||(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0===n||e.strstart-n>e.w_size-Pi||(e.match_length=Fi(e,n)),3>e.match_length)r=Ei(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;else if(r=Ei(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length>e.max_lazy_match||3>e.lookahead)e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else{e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}if(r&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=2>e.strstart?e.strstart:2,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}function Wi(e,t){for(var n,r,i;;){if(Pi>e.lookahead){if(Zi(e),Pi>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(n=0,3>e.lookahead||(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.max_lazy_match>e.prev_length&&e.w_size-Pi>=e.strstart-n&&(e.match_length=Fi(e,n),5>=e.match_length&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),3>e.prev_length||e.match_length>e.prev_length)if(e.match_available){if((r=Ei(e,0,e.window[e.strstart-1]))&&Ii(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--;else{i=e.strstart+e.lookahead-3,r=Ei(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart>i||(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Ii(e,!1),0===e.strm.avail_out))return 1}}return e.match_available&&(r=Ei(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=2>e.strstart?e.strstart:2,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}function Vi(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function Yi(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Br(1146),this.dyn_dtree=new Br(122),this.bl_tree=new Br(78),Bi(this.dyn_ltree),Bi(this.dyn_dtree),Bi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Br(16),this.heap=new Br(573),Bi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Br(573),Bi(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Gi(e){var t,n=function(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,0>t.wrap&&(t.wrap=-t.wrap),t.status=t.wrap?42:Ti,e.adler=2===t.wrap?0:1,t.last_flush=0,bi(t),0):Ri(e,Ci)}(e);return 0===n&&((t=e.state).window_size=2*t.w_size,Bi(t.head),t.max_lazy_match=Li[t.level].max_lazy,t.good_match=Li[t.level].good_length,t.nice_match=Li[t.level].nice_length,t.max_chain_length=Li[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function Ji(e,t){var n,r,i,a;if(!e||!e.state||t>5||0>t)return e?Ri(e,Ci):Ci;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Oi&&4!==t)return Ri(e,0===e.avail_out?-5:Ci);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,qi(r,31),qi(r,139),qi(r,8),r.gzhead?(qi(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),qi(r,255&r.gzhead.time),qi(r,r.gzhead.time>>8&255),qi(r,r.gzhead.time>>16&255),qi(r,r.gzhead.time>>24&255),qi(r,9===r.level?2:r.strategy>=2||2>r.level?4:0),qi(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(qi(r,255&r.gzhead.extra.length),qi(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=ji(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(qi(r,0),qi(r,0),qi(r,0),qi(r,0),qi(r,0),qi(r,9===r.level?2:r.strategy>=2||2>r.level?4:0),qi(r,3),r.status=Ti);else{var o=8+(r.w_bits-8<<4)<<8;o|=(r.strategy>=2||2>r.level?0:6>r.level?1:6===r.level?2:3)<<6,0!==r.strstart&&(o|=32),o+=31-o%31,r.status=Ti,Hi(r,o),0!==r.strstart&&(Hi(r,e.adler>>>16),Hi(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;(65535&r.gzhead.extra.length)>r.gzindex&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=ji(e.adler,r.pending_buf,r.pending-i,i)),Di(e),i=r.pending,r.pending!==r.pending_buf_size));)qi(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=ji(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ji(e.adler,r.pending_buf,r.pending-i,i)),Di(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzhead.name.length>r.gzindex?255&r.gzhead.name.charCodeAt(r.gzindex++):0,qi(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=ji(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ji(e.adler,r.pending_buf,r.pending-i,i)),Di(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzhead.comment.length>r.gzindex?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,qi(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=ji(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.status=Mi)}else r.status=Mi;if(r.status===Mi&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Di(e),r.pending+2>r.pending_buf_size||(qi(r,255&e.adler),qi(r,e.adler>>8&255),e.adler=0,r.status=Ti)):r.status=Ti),0!==r.pending){if(Di(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&Ni(t)<=Ni(n)&&4!==t)return Ri(e,-5);if(r.status===Oi&&0!==e.avail_in)return Ri(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==Oi){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Zi(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=Ei(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,a,o=e.window;;){if(zi>=e.lookahead){if(Zi(e),zi>=e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+zi;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&a>i);e.match_length=zi-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3>e.match_length?(n=Ei(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++):(n=Ei(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0),n&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}(r,t):Li[r.level].func(r,t);if(3!==s&&4!==s||(r.status=Oi),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===t?ki(r):5!==t&&(yi(r,0,0,!1),3===t&&(Bi(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Di(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap>0?(2===r.wrap?(qi(r,255&e.adler),qi(r,e.adler>>8&255),qi(r,e.adler>>16&255),qi(r,e.adler>>24&255),qi(r,255&e.total_in),qi(r,e.total_in>>8&255),qi(r,e.total_in>>16&255),qi(r,e.total_in>>24&255)):(Hi(r,e.adler>>>16),Hi(r,65535&e.adler)),Di(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1):1}Li=[new Vi(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(1>=e.lookahead){if(Zi(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Ii(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Pi&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&Ii(e,!1),1)}),new Vi(4,4,8,4,$i),new Vi(4,5,16,8,$i),new Vi(4,6,32,32,$i),new Vi(4,4,16,16,Wi),new Vi(8,16,32,32,Wi),new Vi(8,16,128,128,Wi),new Vi(8,32,128,256,Wi),new Vi(32,128,258,1024,Wi),new Vi(32,258,258,4096,Wi)];function Ki(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,g,m,_,v,w,b,y,k,x,E,S,A;S=e.input,i=(r=e.next_in)+(e.avail_in-5),A=e.output,o=(a=e.next_out)-(t-e.avail_out),s=a+(e.avail_out-257),l=(n=e.state).dmax,u=n.wsize,c=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{15>p&&(f+=S[r++]<<p,f+=S[r++]<<(p+=8),p+=8),w=g[f&_];t:for(;;){if(f>>>=b=w>>>24,p-=b,0===(b=w>>>16&255))A[a++]=65535&w;else{if(!(16&b)){if(64&b){if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=g[(65535&w)+(f&(1<<b)-1)];continue t}for(y=65535&w,(b&=15)&&(b>p&&(f+=S[r++]<<p,p+=8),y+=f&(1<<b)-1,f>>>=b,p-=b),15>p&&(f+=S[r++]<<p,f+=S[r++]<<(p+=8),p+=8),w=m[f&v];;){if(f>>>=b=w>>>24,p-=b,16&(b=w>>>16&255)){if(k=65535&w,(b&=15)>p&&(f+=S[r++]<<p,b>(p+=8)&&(f+=S[r++]<<p,p+=8)),(k+=f&(1<<b)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,k>(b=a-o)){if((b=k-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,E=h,0===d){if(x+=u-b,y>b){y-=b;do{A[a++]=h[x++]}while(--b);x=a-k,E=A}}else if(b>d){if(x+=u+d-b,y>(b-=d)){y-=b;do{A[a++]=h[x++]}while(--b);if(x=0,y>d){y-=b=d;do{A[a++]=h[x++]}while(--b);x=a-k,E=A}}}else if(x+=d-b,y>b){y-=b;do{A[a++]=h[x++]}while(--b);x=a-k,E=A}for(;y>2;)A[a++]=E[x++],A[a++]=E[x++],A[a++]=E[x++],y-=3;y&&(A[a++]=E[x++],y>1&&(A[a++]=E[x++]))}else{x=a-k;do{A[a++]=A[x++],A[a++]=A[x++],A[a++]=A[x++],y-=3}while(y>2);y&&(A[a++]=A[x++],y>1&&(A[a++]=A[x++]))}break}if(64&b){e.msg="invalid distance code",n.mode=30;break e}w=m[(65535&w)+(f&(1<<b)-1)]}}break}}while(i>r&&s>a);f&=(1<<(p-=(y=p>>3)<<3))-1,e.next_in=r-=y,e.next_out=a,e.avail_in=i>r?i-r+5:5-(r-i),e.avail_out=s>a?s-a+257:257-(a-s),n.hold=f,n.bits=p}var Xi=15,Qi=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],ea=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],ta=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],na=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function ra(e,t,n,r,i,a,o,s){var l,u,c,d,h,f,p,g,m,_=s.bits,v=0,w=0,b=0,y=0,k=0,x=0,E=0,S=0,A=0,j=0,L=null,C=0,z=new Br(16),P=new Br(16),M=null,T=0;for(v=0;Xi>=v;v++)z[v]=0;for(w=0;r>w;w++)z[t[n+w]]++;for(k=_,y=Xi;y>=1&&0===z[y];y--);if(k>y&&(k=y),0===y)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;y>b&&0===z[b];b++);for(b>k&&(k=b),S=1,v=1;Xi>=v;v++)if(S<<=1,0>(S-=z[v]))return-1;if(S>0&&(0===e||1!==y))return-1;for(P[1]=0,v=1;Xi>v;v++)P[v+1]=P[v]+z[v];for(w=0;r>w;w++)0!==t[n+w]&&(o[P[t[n+w]]++]=w);if(0===e?(L=M=o,f=19):1===e?(L=Qi,C-=257,M=ea,T-=257,f=256):(L=ta,M=na,f=-1),j=0,w=0,v=b,h=a,x=k,E=0,c=-1,d=(A=1<<k)-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){p=v-E,f>o[w]?(g=0,m=o[w]):o[w]>f?(g=M[T+o[w]],m=L[C+o[w]]):(g=96,m=0),l=1<<v-E,b=u=1<<x;do{i[h+(j>>E)+(u-=l)]=p<<24|g<<16|m}while(0!==u);for(l=1<<v-1;j&l;)l>>=1;if(0!==l?(j&=l-1,j+=l):j=0,w++,0===--z[v]){if(v===y)break;v=t[n+o[w]]}if(v>k&&(j&d)!==c){for(0===E&&(E=k),h+=b,S=1<<(x=v-E);y>x+E&&(S-=z[x+E])>0;)x++,S<<=1;if(A+=1<<x,1===e&&A>852||2===e&&A>592)return 1;i[c=j&d]=k<<24|x<<16|h-a}}return 0!==j&&(i[h+j]=v-E<<24|64<<16),s.bits=k,0}var ia=-2,aa=12,oa=30;function sa(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function la(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Br(320),this.work=new Br(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ua(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(e.total_in=e.total_out=(t=e.state).total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Dr(852),t.distcode=t.distdyn=new Dr(592),t.sane=1,t.back=-1,0):ia}(e)):ia}function ca(e,t){var n,r;return e?(r=new la,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(0>t?(n=0,t=-t):(n=1+(t>>4),48>t&&(t&=15)),t&&(8>t||t>15)?ia:(null!==(r=e.state).window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ua(e))):ia}(e,t),0!==n&&(e.state=null),n):ia}var da,ha,fa=!0;function pa(e){if(fa){var t;for(da=new Dr(512),ha=new Dr(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(ra(1,e.lens,0,288,da,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;ra(2,e.lens,0,32,ha,0,e.work,{bits:5}),fa=!1}e.lencode=da,e.lenbits=9,e.distcode=ha,e.distbits=5}function ga(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,g,m,_,v,w,b,y,k,x,E,S,A=0,j=new Nr(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return ia;(n=e.state).mode===aa&&(n.mode=13),o=e.next_out,i=e.output,a=e.next_in,r=e.input,u=n.hold,c=n.bits,d=s=e.avail_in,h=l=e.avail_out,x=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(2&n.wrap&&35615===u){n.check=0,j[0]=255&u,j[1]=u>>>8&255,n.check=ji(n.check,j,2,0),u=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=oa;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=oa;break}if(c-=4,k=8+(15&(u>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=oa;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&u?10:aa,u=0,c=0;break;case 2:for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=oa;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=oa;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,n.check=ji(n.check,j,2,0)),u=0,c=0,n.mode=3;case 3:for(;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,j[2]=u>>>16&255,j[3]=u>>>24&255,n.check=ji(n.check,j,4,0)),u=0,c=0,n.mode=4;case 4:for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,n.check=ji(n.check,j,2,0)),u=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(j[0]=255&u,j[1]=u>>>8&255,n.check=ji(n.check,j,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),Rr(n.head.extra,r,a,f,k)),512&n.flags&&(n.check=ji(n.check,r,f,a)),s-=f,a+=f,n.length-=f),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;f=0;do{k=r[a+f++],n.head&&k&&65536>n.length&&(n.head.name+=String.fromCharCode(k))}while(k&&s>f);if(512&n.flags&&(n.check=ji(n.check,r,f,a)),s-=f,a+=f,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;f=0;do{k=r[a+f++],n.head&&k&&65536>n.length&&(n.head.comment+=String.fromCharCode(k))}while(k&&s>f);if(512&n.flags&&(n.check=ji(n.check,r,f,a)),s-=f,a+=f,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=oa;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=aa;break;case 10:for(;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}e.adler=n.check=sa(u),u=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,2;e.adler=n.check=1,n.mode=aa;case aa:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&c,c-=7&c,n.mode=27;break}for(;3>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}switch(n.last=1&u,c-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(pa(n),n.mode=20,6===t){u>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=oa}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=oa;break}if(n.length=65535&u,u=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;Rr(i,r,a,f,o),s-=f,a+=f,l-=f,o+=f,n.length-=f;break}n.mode=aa;break;case 17:for(;14>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.nlen=257+(31&u),c-=5,n.ndist=1+(31&(u>>>=5)),c-=5,n.ncode=4+(15&(u>>>=5)),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=oa;break}n.have=0,n.mode=18;case 18:for(;n.ncode>n.have;){for(;3>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.lens[L[n.have++]]=7&u,u>>>=3,c-=3}for(;19>n.have;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x=ra(0,n.lens,0,19,n.lencode,0,n.work,E={bits:n.lenbits}),n.lenbits=E.bits,x){e.msg="invalid code lengths set",n.mode=oa;break}n.have=0,n.mode=19;case 19:for(;n.nlen+n.ndist>n.have;){for(;_=(A=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,v=65535&A,c<(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(16>v)u>>>=m,c-=m,n.lens[n.have++]=v;else{if(16===v){for(S=m+2;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u>>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=oa;break}k=n.lens[n.have-1],f=3+(3&u),u>>>=2,c-=2}else if(17===v){for(S=m+3;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=m,k=0,f=3+(7&(u>>>=m)),u>>>=3,c-=3}else{for(S=m+7;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=m,k=0,f=11+(127&(u>>>=m)),u>>>=7,c-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=oa;break}for(;f--;)n.lens[n.have++]=k}}if(n.mode===oa)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=oa;break}if(n.lenbits=9,x=ra(1,n.lens,0,n.nlen,n.lencode,0,n.work,E={bits:n.lenbits}),n.lenbits=E.bits,x){e.msg="invalid literal/lengths set",n.mode=oa;break}if(n.distbits=6,n.distcode=n.distdyn,x=ra(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E={bits:n.distbits}),n.distbits=E.bits,x){e.msg="invalid distances set",n.mode=oa;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,Ki(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===aa&&(n.back=-1);break}for(n.back=0;_=(A=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,v=65535&A,c<(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(_&&!(240&_)){for(w=m,b=_,y=v;_=(A=n.lencode[y+((u&(1<<w+b)-1)>>w)])>>>16&255,v=65535&A,c<w+(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=w,c-=w,n.back+=w}if(u>>>=m,c-=m,n.back+=m,n.length=v,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=aa;break}if(64&_){e.msg="invalid literal/length code",n.mode=oa;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(S=n.extra;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(A=n.distcode[u&(1<<n.distbits)-1])>>>16&255,v=65535&A,c<(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(!(240&_)){for(w=m,b=_,y=v;_=(A=n.distcode[y+((u&(1<<w+b)-1)>>w)])>>>16&255,v=65535&A,c<w+(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=w,c-=w,n.back+=w}if(u>>>=m,c-=m,n.back+=m,64&_){e.msg="invalid distance code",n.mode=oa;break}n.offset=v,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(S=n.extra;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=oa;break}n.mode=25;case 25:if(0===l)break e;if(n.offset>(f=h-l)){if((f=n.offset-f)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=oa;break}p=f>n.wnext?n.wsize-(f-=n.wnext):n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[o++]=g[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[o++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;32>c;){if(0===s)break e;s--,u|=r[a++]<<c,c+=8}if(e.total_out+=h-=l,n.total+=h,h&&(e.adler=n.check=n.flags?ji(n.check,i,h,o-h):Si(n.check,i,h,o-h)),h=l,(n.flags?u:sa(u))!==n.check){e.msg="incorrect data check",n.mode=oa;break}u=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=oa;break}u=0,c=0}n.mode=29;case 29:x=1;break e;case oa:x=-3;break e;case 31:return-4;default:return ia}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,(n.wsize||h!==e.avail_out&&oa>n.mode&&(27>n.mode||4!==t))&&function(e,t,n,r){var i,a=e.state;null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Nr(a.wsize)),a.wsize>r?((i=a.wsize-a.wnext)>r&&(i=r),Rr(a.window,t,n-r,i,a.wnext),(r-=i)?(Rr(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.wsize>a.whave&&(a.whave+=i))):(Rr(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize)}(e,e.output,e.next_out,h-e.avail_out),h-=e.avail_out,e.total_in+=d-=e.avail_in,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?ji(n.check,i,h,e.next_out-h):Si(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===aa?128:0)+(20===n.mode||15===n.mode?256:0),(0===d&&0===h||4===t)&&0===x&&(x=-5),x}var ma;function _a(e){if(1>e||e>7)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function va(e,t){for(var n=0;e.length>n;n++)this[t+n]=e[n]}_a.prototype.init=function(e,t,n,r,i){var a;switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Or,this.mode){case 1:case 3:case 5:a=function(e,t,n,r,i,a){if(!e)return Ci;var o=1;if(-1===t&&(t=6),0>r?(o=0,r=-r):r>15&&(o=2,r-=16),1>i||i>9||8!==n||8>r||r>15||0>t||t>9||0>a||a>4)return Ri(e,Ci);8===r&&(r=9);var s=new Yi;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Nr(2*s.w_size),s.head=new Br(s.hash_size),s.prev=new Br(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Nr(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,Gi(e)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case 7:a=ca(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}0===a?(this.write_in_progress=!1,this.init_done=!0):this._error(a)},_a.prototype.params=function(){throw Error("deflateParams Not supported")},_a.prototype._writeCheck=function(){if(!this.init_done)throw Error("write before init");if(0===this.mode)throw Error("already finalized");if(this.write_in_progress)throw Error("write already in progress");if(this.pending_close)throw Error("close is pending")},_a.prototype.write=function(e,t,n,r,i,a,o){this._writeCheck(),this.write_in_progress=!0;var s=this;return un(function(){s.write_in_progress=!1;var l=s._write(e,t,n,r,i,a,o);s.callback(l[0],l[1]),s.pending_close&&s.close()}),this},_a.prototype.writeSync=function(e,t,n,r,i,a,o){return this._writeCheck(),this._write(e,t,n,r,i,a,o)},_a.prototype._write=function(e,t,n,r,i,a,o){if(this.write_in_progress=!0,0!==e&&1!==e&&2!==e&&3!==e&&4!==e&&5!==e)throw Error("Invalid flush value");null==t&&(t=new ht(0),r=0,n=0),i.set=i._set?i._set:va;var s,l=this.strm;switch(l.avail_in=r,l.input=t,l.next_in=n,l.avail_out=o,l.output=i,l.next_out=a,this.mode){case 1:case 3:case 5:s=Ji(l,e);break;case 7:case 2:case 4:case 6:s=ga(l,e);break;default:throw Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[l.avail_in,l.avail_out]},_a.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,1===this.mode||3===this.mode||5===this.mode?function(e){var t;e&&e.state&&(42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==Mi&&t!==Ti&&t!==Oi?Ri(e,Ci):(e.state=null,t===Ti&&Ri(e,-3)))}(this.strm):function(e){if(!e||!e.state)return ia;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},_a.prototype.reset=function(){switch(this.mode){case 1:case 5:ma=Gi(this.strm);break;case 2:case 6:ma=ua(this.strm)}0!==ma&&this._error(ma)},_a.prototype._error=function(e){this.onerror(Tr[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var wa=Object.freeze({__proto__:null,DEFLATE:1,DEFLATERAW:5,GUNZIP:4,GZIP:3,INFLATE:2,INFLATERAW:6,NONE:0,UNZIP:7,Z_BEST_COMPRESSION:9,Z_BEST_SPEED:1,Z_BINARY:0,Z_BLOCK:5,Z_BUF_ERROR:-5,Z_DATA_ERROR:-3,Z_DEFAULT_COMPRESSION:-1,Z_DEFAULT_STRATEGY:0,Z_DEFLATED:8,Z_ERRNO:-1,Z_FILTERED:1,Z_FINISH:4,Z_FIXED:4,Z_FULL_FLUSH:3,Z_HUFFMAN_ONLY:2,Z_NEED_DICT:2,Z_NO_COMPRESSION:0,Z_NO_FLUSH:0,Z_OK:0,Z_PARTIAL_FLUSH:1,Z_RLE:3,Z_STREAM_END:1,Z_STREAM_ERROR:-2,Z_SYNC_FLUSH:2,Z_TEXT:1,Z_TREES:6,Z_UNKNOWN:2,Zlib:_a});var ba={};Object.keys(wa).forEach(function(e){ba[e]=wa[e]}),ba.Z_MIN_WINDOWBITS=8,ba.Z_MAX_WINDOWBITS=15,ba.Z_DEFAULT_WINDOWBITS=15,ba.Z_MIN_CHUNK=64,ba.Z_MAX_CHUNK=1/0,ba.Z_DEFAULT_CHUNK=16384,ba.Z_MIN_MEMLEVEL=1,ba.Z_MAX_MEMLEVEL=9,ba.Z_DEFAULT_MEMLEVEL=8,ba.Z_MIN_LEVEL=-1,ba.Z_MAX_LEVEL=9,ba.Z_DEFAULT_LEVEL=ba.Z_DEFAULT_COMPRESSION;var ya={Z_OK:ba.Z_OK,Z_STREAM_END:ba.Z_STREAM_END,Z_NEED_DICT:ba.Z_NEED_DICT,Z_ERRNO:ba.Z_ERRNO,Z_STREAM_ERROR:ba.Z_STREAM_ERROR,Z_DATA_ERROR:ba.Z_DATA_ERROR,Z_MEM_ERROR:ba.Z_MEM_ERROR,Z_BUF_ERROR:ba.Z_BUF_ERROR,Z_VERSION_ERROR:ba.Z_VERSION_ERROR};function ka(e,t,n){var r=[],i=0;function a(){for(var t;null!==(t=e.read());)r.push(t),i+=t.length;e.once("readable",a)}function o(){var t=ht.concat(r,i);r=[],n(null,t),e.close()}e.on("error",function(t){e.removeListener("end",o),e.removeListener("readable",a),n(t)}),e.on("end",o),e.end(t),a()}function xa(e,t){if("string"==typeof t&&(t=new ht(t)),!Gt(t))throw new TypeError("Not a string or buffer");return e._processChunk(t,ba.Z_FINISH)}function Ea(e){if(!(this instanceof Ea))return new Ea(e);Pa.call(this,e,ba.DEFLATE)}function Sa(e){if(!(this instanceof Sa))return new Sa(e);Pa.call(this,e,ba.INFLATE)}function Aa(e){if(!(this instanceof Aa))return new Aa(e);Pa.call(this,e,ba.GZIP)}function ja(e){if(!(this instanceof ja))return new ja(e);Pa.call(this,e,ba.GUNZIP)}function La(e){if(!(this instanceof La))return new La(e);Pa.call(this,e,ba.DEFLATERAW)}function Ca(e){if(!(this instanceof Ca))return new Ca(e);Pa.call(this,e,ba.INFLATERAW)}function za(e){if(!(this instanceof za))return new za(e);Pa.call(this,e,ba.UNZIP)}function Pa(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||ba.Z_DEFAULT_CHUNK,Cr.call(this,e),e.flush&&e.flush!==ba.Z_NO_FLUSH&&e.flush!==ba.Z_PARTIAL_FLUSH&&e.flush!==ba.Z_SYNC_FLUSH&&e.flush!==ba.Z_FULL_FLUSH&&e.flush!==ba.Z_FINISH&&e.flush!==ba.Z_BLOCK)throw Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||ba.Z_NO_FLUSH,e.chunkSize&&(ba.Z_MIN_CHUNK>e.chunkSize||e.chunkSize>ba.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(ba.Z_MIN_WINDOWBITS>e.windowBits||e.windowBits>ba.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+e.windowBits);if(e.level&&(ba.Z_MIN_LEVEL>e.level||e.level>ba.Z_MAX_LEVEL))throw Error("Invalid compression level: "+e.level);if(e.memLevel&&(ba.Z_MIN_MEMLEVEL>e.memLevel||e.memLevel>ba.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=ba.Z_FILTERED&&e.strategy!=ba.Z_HUFFMAN_ONLY&&e.strategy!=ba.Z_RLE&&e.strategy!=ba.Z_FIXED&&e.strategy!=ba.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Gt(e.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this._binding=new ba.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var r=Error(e);r.errno=t,r.code=ba.codes[t],n.emit("error",r)};var r=ba.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(r=e.level);var i=ba.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||ba.Z_DEFAULT_WINDOWBITS,r,e.memLevel||ba.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new ht(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(ya).forEach(function(e){ya[ya[e]]=e}),bn(Pa,Cr),Pa.prototype.params=function(e,t,n){if(ba.Z_MIN_LEVEL>e||e>ba.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=ba.Z_FILTERED&&t!=ba.Z_HUFFMAN_ONLY&&t!=ba.Z_RLE&&t!=ba.Z_FIXED&&t!=ba.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var r=this;this.flush(ba.Z_SYNC_FLUSH,function(){r._binding.params(e,t),r._hadError||(r._level=e,r._strategy=t,n&&n())})}else un(n)},Pa.prototype.reset=function(){return this._binding.reset()},Pa.prototype._flush=function(e){this._transform(new ht(0),"",e)},Pa.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=ba.Z_FULL_FLUSH),n.ended)t&&un(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var r=this;this.once("drain",function(){r.flush(t)})}else this._flushFlag=e,this.write(new ht(0),"",t)},Pa.prototype.close=function(e){if(e&&un(e),!this._closed){this._closed=!0,this._binding.close();var t=this;un(function(){t.emit("close")})}},Pa.prototype._transform=function(e,t,n){var r,i=this._writableState,a=(i.ending||i.ended)&&(!e||i.length===e.length);if(null===!e&&!Gt(e))return n(Error("invalid input"));a?r=ba.Z_FINISH:(r=this._flushFlag,i.length>e.length||(this._flushFlag=this._opts.flush||ba.Z_NO_FLUSH)),this._processChunk(e,r,n)},Pa.prototype._processChunk=function(e,t,n){var r=e&&e.length,i=this._chunkSize-this._offset,a=0,o=this,s="function"==typeof n;if(!s){var l,u=[],c=0;this.on("error",function(e){l=e});do{var d=this._binding.writeSync(t,e,a,r,this._buffer,this._offset,i)}while(!this._hadError&&p(d[0],d[1]));if(this._hadError)throw l;var h=ht.concat(u,c);return this.close(),h}var f=this._binding.write(t,e,a,r,this._buffer,this._offset,i);function p(l,d){if(!o._hadError){var h=i-d;if(function(e,t){if(!e)throw Error(t)}(h>=0,"have should not go down"),h>0){var f=o._buffer.slice(o._offset,o._offset+h);o._offset+=h,s?o.push(f):(u.push(f),c+=f.length)}if(0!==d&&o._chunkSize>o._offset||(i=o._chunkSize,o._offset=0,o._buffer=new ht(o._chunkSize)),0===d){if(a+=r-l,r=l,!s)return!0;var g=o._binding.write(t,e,a,r,o._buffer,o._offset,o._chunkSize);return g.callback=p,void(g.buffer=e)}if(!s)return!1;n()}}f.buffer=e,f.callback=p},bn(Ea,Pa),bn(Sa,Pa),bn(Aa,Pa),bn(ja,Pa),bn(La,Pa),bn(Ca,Pa),bn(za,Pa);var Ma={codes:ya,createDeflate:function(e){return new Ea(e)},createInflate:function(e){return new Sa(e)},createDeflateRaw:function(e){return new La(e)},createInflateRaw:function(e){return new Ca(e)},createGzip:function(e){return new Aa(e)},createGunzip:function(e){return new ja(e)},createUnzip:function(e){return new za(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Ea(t),e,n)},deflateSync:function(e,t){return xa(new Ea(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Aa(t),e,n)},gzipSync:function(e,t){return xa(new Aa(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new La(t),e,n)},deflateRawSync:function(e,t){return xa(new La(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new za(t),e,n)},unzipSync:function(e,t){return xa(new za(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Sa(t),e,n)},inflateSync:function(e,t){return xa(new Sa(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new ja(t),e,n)},gunzipSync:function(e,t){return xa(new ja(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Ca(t),e,n)},inflateRawSync:function(e,t){return xa(new Ca(t),e)},Deflate:Ea,Inflate:Sa,Gzip:Aa,Gunzip:ja,DeflateRaw:La,InflateRaw:Ca,Unzip:za,Zlib:Pa};function Ta(e,t,n){var r=(3&e)<<4|t>>4,i=(15&t)<<2|n>>6,a=63&n,o="";return o+=Oa(63&e>>2),o+=Oa(63&r),o+=Oa(63&i),o+=Oa(63&a)}function Oa(e){return 10>e?String.fromCharCode(48+e):26>(e-=10)?String.fromCharCode(65+e):26>(e-=26)?String.fromCharCode(97+e):0==(e-=26)?"-":1==e?"_":"?"}function Ra(e){var t=e.charCodeAt(0);return"_"===e?63:"-"===e?62:97>t?65>t?48>t?"?":t-48:t-55:t-61}function Na(e){var t=Ra(e[0]),n=Ra(e[1]),r=Ra(e[2]);return[t<<2|n>>4&63,n<<4&240|r>>2&15,r<<6&192|63&Ra(e[3])]}function Ba(e){return function(e){for(var t="",n=0;e.length>n;n+=3)t+=n+2==e.length?Ta(e.charCodeAt(n),e.charCodeAt(n+1),0):n+1==e.length?Ta(e.charCodeAt(n),0,0):Ta(e.charCodeAt(n),e.charCodeAt(n+1),e.charCodeAt(n+2));return t}(Ma.deflateRawSync(e,{level:9}).toString("binary"))}function Da(e){return""+Ma.inflateRawSync(ht.from(function(e){var t="",n=0;for(n=0;e.length>n;n+=4){var r=Na(e.substring(n,n+4));t+=String.fromCharCode(r[0]),t+=String.fromCharCode(r[1]),t+=String.fromCharCode(r[2])}return t}(e),"binary"))}var Ia={encodeuml:function(e){var t="@startuml",n="@enduml";return Ba("".concat(t).concat((e.split(t)[1]+"").split(n)[0]||"").concat(n))},decodeuml:function(e){return Da(e)}},qa="img",Ha=0;function Ua(e,t){return Ha=e.length,new Promise(function(n){var r=[];e.forEach(function(e){r.push(function(e,t){return new Promise(function(n){var r=e.dataset.lang,i=null;if(r)try{i=JSON.parse(r)}catch(e){}var a="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?a="diagram-center":"right"===i.align&&(a="diagram-right"))}var o=e.textContent.trim(),s=(e.classList.length>0?e.classList[0]:"")+(e.className&&a?" ":"")+a,l=t.imageFormat;if("svg"!==l){var u=window&&window.location.protocol,c=("http:"===u||"https:"===u?"//":"https://")+t.umlWebSite,d=l!==qa?".".concat(l):"",h=Ia.encodeuml(o),f="".concat(c,"/").concat(l,"/").concat(h).concat(d);return e.parentNode.outerHTML='<div class="'.concat(s,"\"><img src='").concat(f,"' alt=''></img></div>"),n(!0)}var p="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof t.svgRender&&t.svgRender)t.svgRender(p,s,o,Ha).then(function(t){e.parentNode.outerHTML='<div id="'.concat(p,'" class="').concat(s,'">').concat(t,"</div>"),n(!0)});else if("undefined"!=typeof window&&window.fetch&&window.dispatchEvent){var g=window&&window.location.protocol,m=("http:"===g||"https:"===g?"//":"https://")+t.umlWebSite,_=l!==qa?".".concat(l):"",v=Ia.encodeuml(o),w="".concat(m,"/").concat(l,"/").concat(v).concat(_);window.fetch(w).then(function(e){if(e.ok)return e.text()}).then(function(t){e.parentNode.outerHTML='<div id="'.concat(p,'" class="').concat(s,'">').concat(t,"</div>"),n(!0)})}})}(e,t))}),Promise.all(r).then(function(){n(!0)})})}function Fa(e){var t=function(){return r({umlWebSite:"www.plantuml.com/plantuml",imageFormat:qa,svgRender:null},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&Ua(n,this.config).then(function(){return e})}}]}var Za="railroad",$a="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");var Wa=!1;function Va(){return Wa}var Ya,Ga=!1;function Ja(e,t){if(Va()){var n=t.id,r=t.className,i=t.cssLink,a=window.eval(t.data).format(),o=t.element.ownerDocument;return t.element.parentNode.outerHTML=i?'<div id="'.concat(n,'" class="').concat(r,' css-railroad" data-css="').concat(i,'"></div>'):'<div id="'.concat(n,'" class="').concat(r,'"></div>'),a.addTo(o.getElementById(n)),e(!0)}setTimeout(function(){Ja(e,t)},10)}function Ka(e){return new Promise(function(t){var n=A.createElementMeta(Za,e);if(!n)return t(!1);n.cssLink=S.getSrc(!0,$a),Ja(t,n)})}function Xa(e){return function(){var e=Va();if("undefined"!=typeof window){if(Ga)return e;e||(Ga=!0,S.loadStyleSheet($a),S.loadScript(Za).then(function(){Wa=!0}))}}(),new Promise(function(t){var n=[];e.forEach(function(e){n.push(Ka(e))}),Promise.all(n).then(function(){t(!0)})})}function Qa(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:S.getSrc(!0,$a)},A.addCssLink(e,this.config.cssLink,"css-railroad"),Xa(n).then(function(){return e}))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===eo)var eo=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(Ya=window.Diagram,window.Diagram.Signal))var to=window.Diagram;var no=["simple","hand"];if(void 0===to&&"undefined"!=typeof window)to=window.SequenceJS;function ro(){return!!eo}function io(){return ro()&&!!to}var ao=!1,oo="sequenceCSS";function so(e){var t=e.dataset.lang,n=t?JSON.parse(t):null,r="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?r="diagram-center":"right"===n.align&&(r="diagram-right"))}var i=function(){var e=io();if("undefined"!=typeof window){if(ao)return e;e||(ao=!0,S.loadStyleSheet(oo),S.loadScript("WebFont").then(function(){return ro()?"Raphael":S.loadScript("Raphael")}).then(function(e){return eo=A.interopDefault(window[e]),S.loadScript("Snap")}).then(function(){return S.loadScript("underscore")}).then(function(){return!Ya&&window.Diagram&&(Ya=window.Diagram),S.loadScript("sequence")}).then(function(){to=window.Diagram,window.SequenceJS=to,Ya&&(window.Diagram=Ya)}))}return e}(),a=S.getSrc(!0,oo),o=e.textContent.trim(),s="js-sequence"+(r?" ":"")+r,l="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());e.id=l,a&&(e.className=e.className+(e.className?" ":"")+"css-sequence",e.dataset.css=a),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(l).then(function(e){window.dispatchEvent(new CustomEvent("sequence",{detail:{id:e,className:s,data:o,langattr:t,cssLink:a}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:l,className:s,data:o,langattr:t,cssLink:a}}))}function lo(e){if(io()){var t=e.id,n=e.className,r=e.data,i=e.cssLink,a="hand",o=e.langattr;if(o){var s=JSON.parse(o);s&&s.theme&&-1!=no.indexOf(s.theme)&&(a=s.theme)}var l=window.document.getElementById(t);if(l)return l.parentNode.outerHTML=i?'<div id="'.concat(t,'" class="').concat(n,' css-sequence" data-css="').concat(i,'"></div>'):'<div id="'.concat(t,'" class="').concat(n,'"></div>'),l=window.document.getElementById(t),void to.parse(r).drawSVG(l||t,{theme:a})}setTimeout(function(){lo(e)},10)}function uo(){var e=!1;return[{type:"output",filter:function(t){if("string"==typeof t){var n=(new DOMParser).parseFromString(t,"text/html"),r=void 0!==n.body?n.body:n,i=r.querySelectorAll("code.sequence.language-sequence");return i.length&&(e||"undefined"!=typeof window&&window.dispatchEvent&&(e=!0,window.addEventListener("sequence",function(e){e.detail&&lo(e.detail)})),this.config={cssLink:S.getSrc(!0,oo)}),function(e){return!!e.length&&(e.forEach(function(e){so(e)}),!0)}(i)?r.innerHTML:t}if(!t||!t.wrapper)return!1;var a=t;return a.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&A.addCssLink(a,S.getSrc(!0,oo),"css-sequence"),a}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===co)var co=window.WaveDrom||void 0;var ho=0,fo=0;function po(){return!!co}var go=!1;function mo(e,t){if(po()){var n=t.index,r=t.id,i=t.data,a=t.element;return a.parentNode.outerHTML=A.renderCacheElement(a.ownerDocument,r+n,t.className,function(e){var t=window.eval("(".concat(i,")"));co.RenderWaveForm(n,t,r);var a=document.getElementById("WaveDrom_Display_"+n);if(e!=a)for(;a.childNodes.length;)e.appendChild(a.removeChild(a.childNodes[0]))}),e(!0)}setTimeout(function(){mo(e,t)},10)}function _o(e){return new Promise(function(t){var n=e.dataset.lang,r=n?JSON.parse(n):null,i="";if(r){if("boolean"==typeof r.codeblock&&r.codeblock||"string"==typeof r.codeblock&&"true"===r.codeblock.toLowerCase())return;r.align&&("center"===r.align?i="diagram-center":"right"===r.align&&(i="diagram-right"))}var a=e.textContent.trim(),o=(e.classList.length>0?e.classList[0]:"")+(e.className&&i?" ":"")+i,s=fo;++fo,--ho||(fo=0);var l="WaveDrom_Display_";e.id=l+s,mo(t,{element:e,index:s,id:l,className:o,data:a})})}function vo(e,t){return function(e){var t=po();go||t||(go=!0,"undefined"!=typeof window&&S.loadScript({WaveDromSkin:e}).then(function(){return S.loadScript("WaveDrom")}).then(function(e){co=A.interopDefault(window[e])}))}(t),new Promise(function(t){var n=[];ho=e.length,e.forEach(function(e){n.push(_o(e))}),Promise.all(n).then(function(){t(!0)})})}function wo(e){var t=function(){return r({skin:"default"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(g("Begin render wavedrom elements."),vo(n,this.config.skin).then(function(){return g("End render wavedrom elements."),e}))}}]}function bo(){return[{type:"lang",filter:function(e,t){return e.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,function(e,n,r,i,a){var o=t.makeHtml(r.replace(RegExp("^".concat(a),"gm"),""));return'<div class="footnote" id="footnote-'.concat(n,'"><a href="#footnote-').concat(n,'"><sup>[').concat(n,"]</sup></a>:").concat(o,"</div>")})}},{type:"lang",filter:function(e){return e.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,function(e,t,n,r){return'<small class="footnote" id="footnote-'.concat(t,'"><a href="#footnote-').concat(t,'"><sup>[').concat(t,"]</sup></a>: ").concat(r,"</small>")})}},{type:"lang",filter:function(e){return e.replace(/([^\\])\[\^([\d\w]+)\]/gm,function(e,t,n){return"".concat(t,'<a href="#footnote-').concat(n,'"><sup>[').concat(n,"]</sup></a>")})}},{type:"lang",filter:function(e){return e.replace(/\\\[\^([\d\w]+)\]/gm,function(e,t){return"[^".concat(t,"]")})}}]}function yo(){return[{type:"lang",filter:function(e,t){return e.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,function(e,n,r,i,a){if(r){var o=r.split("-");o.length>1?o.forEach(function(e,t,n){t>0&&(n[t]=n[t-1]+"-"+e)}):o.unshift("container"),r=o.join(" ")}return a&&(a=t.makeHtml(a)),i=i?'<p class="container-title">'.concat(i,"</p>"):"",'<div class="showdown-container '.concat(r,'">').concat(i).concat(a,"</div>")})}}]}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===ko)var ko=window.Raphael||void 0;if(void 0===xo)var xo=window.flowchart||void 0;function Eo(){return!(void 0===ko||!ko||void 0===xo||!xo)}var So=!1;function Ao(){var e=Eo();if("undefined"!=typeof window){if(So)return e;if(!e){if(So=!0,!ko)return S.loadScript("Raphael").then(function(e){return ko=A.interopDefault(window[e]),S.loadScript("flowchart")}).then(function(e){xo=A.interopDefault(window[e])}),e;S.loadScript("flowchart").then(function(e){xo=A.interopDefault(window[e])})}}return e}function jo(e,t){if(Eo()){var n=t.data,r=t.options;return t.element.parentNode.outerHTML=A.renderCacheElement(t.element.ownerDocument,t.id,t.className,function(e){xo.parse(n).drawSVG(e,r)}),void e(!0)}setTimeout(function(){jo(e,t)},10)}function Lo(e,t){return new Promise(function(n){var r=A.createElementMeta("flowchart",e);if(!r)return n(!1);r.options=t,jo(n,r)})}function Co(e){var t=function(){return r({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.flowchart.language-flowchart"),r=t.querySelectorAll("code.flow.language-flow");return!(!n.length&&!r.length)&&function(e,t,n){return Ao(),new Promise(function(r){var i=[];e.forEach(function(e){i.push(Lo(e,n))}),t.forEach(function(e){i.push(Lo(e,n))}),Promise.all(i).then(function(){r(!0)})})}(n,r,this.config).then(function(){return e})}}]}var zo=function(){return r({flavor:"github"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},Po=function(e,t,n){if(!e||!t||"undefined"==typeof document)return!1;var r=document.getElementById(e);r||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=n);var i=r.tagName,a="script-".concat(e),o=document.querySelector("".concat(i," > #").concat(a));return o||((o=document.createElement("script")).id=a,o.type="text/javascript",o.text=t,r.appendChild(o)),!0},Mo=function(e,t,n){if(!e||!t||"undefined"==typeof document)return!1;var r=document.getElementById(e);r||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=n);var i=r.tagName,a="script-".concat(e),o=document.querySelector("".concat(i," > #").concat(a));return o||((o=document.createElement("script")).id=a,o.type="text/javascript",o.text=t,r.insertBefore(o,r.children[0])),!0};function To(e,t){return new Promise(function(n,r){e&&t&&"undefined"!=typeof document||r("Args is invaild!");var i="script-"+e.toLowerCase(),a=document.getElementById(i);if(a)return n(e);var o=document.head||document.getElementsByTagName("head")[0];(a=document.createElement("script")).src=t,a.id=i,a.onload=function(){n(e)},o.appendChild(a)})}var Oo=function(e,t,n){var r=t;if(e.host&&"string"==typeof e.host&&(r=document.querySelector(e.host)),!e.inner){if(!e.code)return!1;if("function"==typeof e.code){var i=e.code;return n?(n.then(function(){i()}),!0):(i(),!0)}return n?(n.then(function(){Po(e.id,e.code,r)}),!0):Po(e.id,e.code,r)}if(u.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code)if("function"==typeof e.code){var a=e.code;n?n.then(function(){a()}):a()}else n?n.then(function(){Mo(e.id,e.code,r)}):Mo(e.id,e.code,r);if(e.inner.length>0)for(var o=function(){var t=e.inner[s];if(!t.code)return 0;if("function"==typeof t.code){var i=t.code;return n?n.then(function(){i()}):i(),0}var a=r;if(t.host&&"string"==typeof t.host&&(a=document.querySelector(t.host)),n)return n.then(function(){Po(t.id,t.code,a)}),0;Po(t.id,t.code,a)},s=0;e.inner.length>s;++s)o();return!0},Ro=["github","ghost","vanilla","original","allon"],No=["default","forest","dark","neutral"],Bo=["excel","ggplot2","quartz","vox","dark"],Do=["canvas","svg"],Io=["svg","png","jpg"],qo={showdown:u,converter:null,defaultOptions:{showdown:zo(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(e){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(e){this.showdown.setFlavor(e),this.converter&&this.converter.setFlavor(e)},addOptions:function(e){for(var t in e)"flavor"!==t&&(this.showdown.setOption(t,e[t]),this.converter&&this.converter.setOption(t,e[t]))},addExtension:function(e,t){if(this.removeExtension(e),"string"==typeof e)try{u.extension(e,t),this.converter&&this.converter.addExtension(e)}catch(e){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){var t=null;try{t=u.extension(e)}catch(e){}if(!t)return;this.converter.removeExtension(t)}u.removeExtension(e)}},addAsyncExtension:function(e,t){if(this.removeAsyncExtension(e),"string"==typeof e)try{u.asyncExtension(e,t),this.converter&&this.converter.addAsyncExtension(e)}catch(e){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){var t=null;try{t=u.asyncExtension(e)}catch(e){}if(!t)return;this.converter.removeAsyncExtension(t)}u.removeAsyncExtension(e)}},setCDN:function(e,t,n,r){"string"==typeof e&&e&&S.setCDN(e,t,n,r)},setShowdownFlavor:function(e){this.initDefaultOptions(),e&&(-1===Ro.indexOf(e)&&(e="github"),this.defaultOptions.showdown.flavor=e,this.setFlavor(e))},setShowdownOptions:function(e){return this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},e),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},e);var t=this.defaultOptions.plantuml.imageFormat;return t&&-1===Io.indexOf(t)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",Fa(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},e);var t=this.defaultOptions.mermaid.theme;return t&&-1===No.indexOf(t)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",Je(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(e){return this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},e),this.converter&&this.addAsyncExtension("showdown-katex",Oe(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},e);var t=this.defaultOptions.vega.theme;t&&-1===Bo.indexOf(t)&&(this.defaultOptions.vega.theme="vox");var n=this.defaultOptions.vega.renderer;return n&&-1===Do.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",ie(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){var t={};if("object"===a(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e)){if(t.hasOwnProperty("option")&&t.option){var n=zo(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(n)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",Fa(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",Je(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",ie(this.defaultOptions.vega)))}}else{var i=zo(this.defaultOptions&&this.defaultOptions.showdown||{}),o=function(e){var t=r({"showdown-toc":H,"showdown-align":ae,"showdown-footnotes":bo,"showdown-container":yo,"showdown-sequence":uo},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=[];for(var i in t)t.hasOwnProperty(i)&&(u.extension(i,t[i]),n.push(i));return n}(this.defaultOptions,this.defaultExtensions),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e&&e.mermaid||{},i=e&&e.plantuml||{},a=e&&e.katex||{},o=e&&e.vega||{},s=function(e,t){var n=null;try{n=u.extension(e)}catch(e){}return n||t},l=r(r({"showdown-toc":s("showdown-toc",H),"showdown-plantuml":Fa(i),"showdown-mermaid":Je(n),"showdown-katex":Oe(a),"showdown-flowchart":Co,"showdown-viz":J,"showdown-vega":ie(o),"showdown-wavedrom":wo,"showdown-railroad":Qa,"showdown-abc":B,"showdown-echarts":Ue,"showdown-sequence":s("showdown-sequence",uo)},t),{},{"showdow-css":U}),c=[];for(var d in l)l.hasOwnProperty(d)&&(u.asyncExtension(d,l[d]),c.push(d));return c}(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(i.flavor),this.converter=new u.Converter({extensions:o}).initConvertExtObj(i.flavor,s),this.addOptions(i)}return this},makeHtml:function(e,t){var n="";if("object"===a(e)){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)n=this.zDecode(e.content);else n=this.markdownDecodeFilter(e)||e.content;else n=e.content}else n=e;if(this.converter&&n){return this.converter.asyncMakeHtml(n,function(e){return new Promise(function(n){return e.cssLinks&&Array.isArray(e.cssLinks)&&(e.cssTypes={css:{}},e.cssLinks.forEach(function(t){return"css-abc"===t.id?(e.cssTypes.hasAbc=!0,void(e.cssTypes.css.abc=t.link)):"css-katex"===t.id?(e.cssTypes.hasKatex=!0,void(e.cssTypes.css.katex=t.link)):"css-railroad"===t.id?(e.cssTypes.hasRailroad=!0,void(e.cssTypes.css.railroad=t.link)):void("css-sequence"===t.id&&(e.cssTypes.hasSequence=!0,e.cssTypes.css.sequence=t.link))}),"function"==typeof t&&t&&t(e.cssTypes)),n(e)})}).then(function(e){if(n="<div class='showdowns'>".concat(e.html,"</div>"),e.extras){var t=e.extras;u.helper.isArray(t)||(t=[t]);for(var r=0;t.length>r;++r)"string"==typeof t[r]&&(n+=t[r])}return{html:n,scripts:e.scripts,cssLinks:e.cssLinks}})}return Promise.reject(n?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,t){return u.helper.isArray(e)||(e=[e]),new Promise(function(n,r){"string"==typeof t&&(t=document.querySelector(t));for(var i,a=function(){var n=e[o];if(n.outer){u.helper.isArray(n.outer)||(n.outer=[n.outer]);for(var i=n.outer[0],a=To(i.name,i.src),s=1;n.outer.length>s;++s)i=n.outer[s],a=a.then(function(){return To(i.name,i.src)});return Oo(n,t,a),0}if(!Oo(n,t))return{v:r("Args is invaild!")}},o=0;e.length>o;++o)if(0!==(i=a())&&i)return i.v;n(!0)})},zDecode:function(e){return""+Ma.inflateRawSync(ht.from(e,"base64"))},zEncode:function(e){return Ma.deflateRawSync(e,{level:9}).toString("base64")}};return qo});
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).showdowns=t()}(this,function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}function t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var r=1;arguments.length>r;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach(function(n){t(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function i(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}};!function(e){(function(){function t(e){var 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:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",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"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var n={},r={},i={},a=t(!0),o="vanilla",s={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!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,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:function(){var e=t(!0),n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}()};function l(e,t){var r=t?"Error in "+t+" extension->":"Error in unnamed extension",i={valid:!0,error:""};n.helper.isArray(e)||(e=[e]);for(var a=0;e.length>a;++a){var o=r+" sub-extension "+a+": ",s=e[a];if("object"!=typeof s)return i.valid=!1,i.error=o+"must be an object, but "+typeof s+" given",i;if(!n.helper.isString(s.type))return i.valid=!1,i.error=o+'property "type" must be a string, but '+typeof s.type+" given",i;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return i.valid=!1,i.error=o+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',i;if("listener"===l){if(n.helper.isUndefined(s.listeners))return i.valid=!1,i.error=o+'. Extensions of type "listener" must have a property called "listeners"',i}else if(n.helper.isUndefined(s.filter)&&n.helper.isUndefined(s.regex))return i.valid=!1,i.error=o+l+' extensions must define either a "regex" property or a "filter" method',i;if(s.listeners){if("object"!=typeof s.listeners)return i.valid=!1,i.error=o+'"listeners" property must be an object but '+typeof s.listeners+" given",i;for(var u in s.listeners)if(s.listeners.hasOwnProperty(u)&&"function"!=typeof s.listeners[u])return i.valid=!1,i.error=o+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+u+" must be a function but "+typeof s.listeners[u]+" given",i}if(s.filter){if("function"!=typeof s.filter)return i.valid=!1,i.error=o+'"filter" must be a function, but '+typeof s.filter+" given",i}else if(s.regex){if(n.helper.isString(s.regex)&&(s.regex=RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return i.valid=!1,i.error=o+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",i;if(n.helper.isUndefined(s.replace))return i.valid=!1,i.error=o+'"regex" extensions must implement a replace string or function',i}}return i}function u(e,t){return"¨E"+t.charCodeAt(0)+"E"}n.helper={},n.extensions={},n.setOption=function(e,t){return a[e]=t,this},n.getOption=function(e){return a[e]},n.getOptions=function(){return a},n.resetOptions=function(){a=t(!0)},n.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");n.resetOptions();var t=s[e];for(var r in o=e,t)t.hasOwnProperty(r)&&(a[r]=t[r])},n.getFlavor=function(){return o},n.getFlavorOptions=function(e){if(s.hasOwnProperty(e))return s[e]},n.getDefaultOptions=function(e){return t(e)},n.subParser=function(e,t){if(n.helper.isString(e)){if(void 0===t){if(r.hasOwnProperty(e))return r[e];throw Error("SubParser named "+e+" not registered!")}r[e]=t}},n.extension=function(e,t){if(!n.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=n.helper.stdExtName(e),n.helper.isUndefined(t)){if(!i.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return i[e]}"function"==typeof t&&(t=t()),n.helper.isArray(t)||(t=[t]);var r=l(t,e);if(!r.valid)throw Error(r.error);i[e]=t},n.getAllExtensions=function(){return i},n.removeExtension=function(e){delete i[e]},n.resetExtensions=function(){i={}},n.validateExtension=function(e){return!!l(e,null).valid},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(e){return"string"==typeof e||e instanceof String},n.helper.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},n.helper.isArray=function(e){return Array.isArray(e)},n.helper.isUndefined=function(e){return void 0===e},n.helper.forEach=function(e,t){if(n.helper.isUndefined(e))throw Error("obj param is required");if(n.helper.isUndefined(t))throw Error("callback param is required");if(!n.helper.isFunction(t))throw Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(n.helper.isArray(e))for(var r=0;e.length>r;r++)t(e[r],r,e);else{if("object"!=typeof e)throw Error("obj does not seem to be an array or an iterable object");for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)}},n.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},n.helper.escapeCharactersCallback=u,n.helper.escapeCharacters=function(e,t,n){var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var i=RegExp(r,"g");return e=e.replace(i,u)},n.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var c=function(e,t,n,r){var i,a,o,s,l,u=r||"",c=u.indexOf("g")>-1,d=RegExp(t+"|"+n,"g"+u.replace(/g/g,"")),h=RegExp(t,u.replace(/g/g,"")),f=[];do{for(i=0;o=d.exec(e);)if(h.test(o[0]))i++||(s=(a=d.lastIndex)-o[0].length);else if(i){if(! --i)if(f.push({left:{start:s,end:a},match:{start:a,end:o.index},right:{start:o.index,end:l=o.index+o[0].length},wholeMatch:{start:s,end:l}}),!c)return f}}while(i&&(d.lastIndex=a));return f};n.helper.matchRecursiveRegExp=function(e,t,n,r){for(var i=c(e,t,n,r),a=[],o=0;i.length>o;++o)a.push([e.slice(i[o].wholeMatch.start,i[o].wholeMatch.end),e.slice(i[o].match.start,i[o].match.end),e.slice(i[o].left.start,i[o].left.end),e.slice(i[o].right.start,i[o].right.end)]);return a},n.helper.replaceRecursiveRegExp=function(e,t,r,i,a){if(!n.helper.isFunction(t)){var o=t;t=function(){return o}}var s=c(e,r,i,a),l=e,u=s.length;if(u>0){var d=[];0!==s[0].wholeMatch.start&&d.push(e.slice(0,s[0].wholeMatch.start));for(var h=0;u>h;++h)d.push(t(e.slice(s[h].wholeMatch.start,s[h].wholeMatch.end),e.slice(s[h].match.start,s[h].match.end),e.slice(s[h].left.start,s[h].left.end),e.slice(s[h].right.start,s[h].right.end))),u-1>h&&d.push(e.slice(s[h].wholeMatch.end,s[h+1].wholeMatch.start));e.length>s[u-1].wholeMatch.end&&d.push(e.slice(s[u-1].wholeMatch.end)),l=d.join("")}return l},n.helper.regexIndexOf=function(e,t,r){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var i=e.substring(r||0).search(t);return 0>i?i:i+(r||0)},n.helper.splitAtIndex=function(e,t){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},n.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e})},n.helper.padEnd=function(e,t,n){return n=(n||" ")+"",e.length>(t|=0)?e+"":((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),e+""+n.slice(0,t))},void 0===console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",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:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",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:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",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:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",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_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:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",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_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_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",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:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",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_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",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_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},n.Converter=function(e){var t={},r=[],u=[],c={},d=o,h={parsed:{},raw:"",format:""};function f(e,t){if(t=t||null,n.helper.isString(e)){if(t=e=n.helper.stdExtName(e),n.extensions[e])return void function(e,t){"function"==typeof e&&(e=e(new n.Converter));n.helper.isArray(e)||(e=[e]);var i=l(e,t);if(!i.valid)throw Error(i.error);for(var a=0;e.length>a;++a)switch(e[a].type){case"lang":r.push(e[a]);break;case"output":u.push(e[a]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(n.extensions[e],e);if(n.helper.isUndefined(i[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=i[e]}"function"==typeof e&&(e=e()),n.helper.isArray(e)||(e=[e]);var a=l(e,t);if(!a.valid)throw Error(a.error);for(var o=0;e.length>o;++o){switch(e[o].type){case"lang":r.push(e[o]);break;case"output":u.push(e[o])}if(e[o].hasOwnProperty("listeners"))for(var s in e[o].listeners)e[o].listeners.hasOwnProperty(s)&&p(s,e[o].listeners[s])}}function p(e,t){if(!n.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");c.hasOwnProperty(e)||(c[e]=[]),c[e].push(t)}!function(){for(var r in e=e||{},a)a.hasOwnProperty(r)&&(t[r]=a[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.extensions&&n.helper.forEach(t.extensions,f)}(),this._dispatch=function(e,t,n,r){if(c.hasOwnProperty(e))for(var i=0;c[e].length>i;++i){var a=c[e][i](e,t,this,n,r);a&&void 0!==a&&(t=a)}return t},this.listen=function(e,t){return p(e,t),this},this.makeHtml=function(e){if(!e)return e;var i={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:u,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=n.subParser("detab")(e,t,i)).replace(/^[ \t]+$/gm,""),n.helper.forEach(r,function(r){e=n.subParser("runExtension")(r,e,t,i)}),e=n.subParser("metadata")(e,t,i),e=n.subParser("hashPreCodeTags")(e,t,i),e=n.subParser("githubCodeBlocks")(e,t,i),e=n.subParser("hashHTMLBlocks")(e,t,i),e=n.subParser("hashCodeTags")(e,t,i),e=n.subParser("stripLinkDefinitions")(e,t,i),e=n.subParser("blockGamut")(e,t,i),e=n.subParser("unhashHTMLSpans")(e,t,i),e=(e=(e=n.subParser("unescapeSpecialChars")(e,t,i)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=n.subParser("completeHTMLDocument")(e,t,i),n.helper.forEach(u,function(r){e=n.subParser("runExtension")(r,e,t,i)}),h=i.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var i={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],i=0;t.length>i;++i)if(1===t[i].childElementCount&&"code"===t[i].firstChild.tagName.toLowerCase()){var a=t[i].firstChild.innerHTML.trim(),o=t[i].firstChild.getAttribute("data-language")||"";if(""===o)for(var s=t[i].firstChild.className.split(" "),l=0;s.length>l;++l){var u=s[l].match(/^language-(.+)$/);if(null!==u){o=u[1];break}}a=n.helper.unescapeHTMLEntities(a),r.push(a),t[i].outerHTML='<precode language="'+o+'" precodenum="'+i+'"></precode>'}else r.push(t[i].innerHTML),t[i].innerHTML="",t[i].setAttribute("prenum",""+i);return r}(r)};!function e(t){for(var n=0;t.childNodes.length>n;++n){var r=t.childNodes[n];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),--n):1===r.nodeType&&e(r)}}(r);for(var a=r.childNodes,o="",s=0;a.length>s;s++)o+=n.subParser("makeMarkdown.node")(a[s],i);return o},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){f(e,t=t||null)},this.useExtension=function(e){f(e)},this.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=s[e];for(var r in d=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return d},this.removeExtension=function(e){n.helper.isArray(e)||(e=[e]);for(var t=0;e.length>t;++t){for(var i=e[t],a=0;r.length>a;++a)r[a]===i&&r.splice(a,1);for(var o=0;u.length>o;++o)u[o]===i&&u.splice(o,1)}},this.getAllExtensions=function(){return{language:r,output:u}},this.getMetadata=function(e){return e?h.raw:h.parsed},this.getMetadataFormat=function(){return h.format},this._setMetadataPair=function(e,t){h.parsed[e]=t},this._setMetadataFormat=function(e){h.format=e},this._setMetadataRaw=function(e){h.raw=e}},n.subParser("anchors",function(e,t,r){var i=function(e,i,a,o,s,l,u){if(n.helper.isUndefined(u)&&(u=""),a=a.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(a||(a=i.toLowerCase().replace(/ ?\n/g," ")),o="#"+a,n.helper.isUndefined(r.gUrls[a]))return e;o=r.gUrls[a],n.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var c='<a href="'+(o=o.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"';return""!==u&&null!==u&&(c+=' title="'+(u=(u=u.replace(/"/g,""")).replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(o)&&(c+=' rel="noopener noreferrer" target="¨E95Eblank"'),c+=">"+i+"</a>"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,i)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,i)).replace(/\[([^\[\]]+)]()()()()()/g,i),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,i,a,o){if("\\"===i)return r+a;if(!n.helper.isString(t.ghMentionsLink))throw Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'<a href="'+s+'"'+l+">"+a+"</a>"})),e=r.converter._dispatch("anchors.after",e,t,r)});var d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,f=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,p=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,m=function(e){return function(t,r,i,a,o,s,l){var u=i=i.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),c="",d="",h=r||"",f=l||"";return/^www\./i.test(i)&&(i=i.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(c=s),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),h+'<a href="'+i+'"'+d+">"+u+"</a>"+c+f}},_=function(e,t){return function(r,i,a){var o="mailto:";return i=i||"",a=n.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(o=n.helper.encodeEmailAddress(o+a),a=n.helper.encodeEmailAddress(a)):o+=a,i+'<a href="'+o+'">'+a+"</a>"}};n.subParser("autoLinks",function(e,t,n){return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(f,m(t))).replace(g,_(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)}),n.subParser("simplifiedAutoLinks",function(e,t,n){return t.simplifiedAutoLink?(e=(e=(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n)).replace(t.excludeTrailingPunctuationFromURLs?h:d,m(t))).replace(p,_(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e}),n.subParser("blockGamut",function(e,t,r){return e=r.converter._dispatch("blockGamut.before",e,t,r),e=n.subParser("blockQuotes")(e,t,r),e=n.subParser("headers")(e,t,r),e=n.subParser("horizontalRule")(e,t,r),e=n.subParser("lists")(e,t,r),e=n.subParser("codeBlocks")(e,t,r),e=n.subParser("tables")(e,t,r),e=n.subParser("hashHTMLBlocks")(e,t,r),e=n.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)}),n.subParser("blockQuotes",function(e,t,r){e=r.converter._dispatch("blockQuotes.before",e,t,r);var i=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(i=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=(e+="\n\n").replace(i,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=n.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=n.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(e,t){var n=t;return n=(n=n.replace(/^ /gm,"¨0")).replace(/¨0/g,"")}),n.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)}),e=r.converter._dispatch("blockQuotes.after",e,t,r)}),n.subParser("codeBlocks",function(e,t,r){e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,i,a){var o=i,s=a,l="\n";return o=n.subParser("outdent")(o,t,r),o=n.subParser("encodeCode")(o,t,r),o=(o=(o=n.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),o="<pre><code>"+o+l+"</code></pre>",n.subParser("hashBlock")(o,t,r)+s})).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)}),n.subParser("codeSpans",function(e,t,r){return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,i,a,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=i+"<code>"+(s=n.subParser("encodeCode")(s,t,r))+"</code>",s=n.subParser("hashHTMLSpans")(s,t,r)}),e=r.converter._dispatch("codeSpans.after",e,t,r)}),n.subParser("completeHTMLDocument",function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",i="<!DOCTYPE HTML>\n",a="",o='<meta charset="utf-8">\n',s="",l="";for(var u in void 0!==n.metadata.parsed.doctype&&(i="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(r=(""+n.metadata.parsed.doctype).toLowerCase())&&"html5"!==r||(o='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":a="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":o="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[u]+'"',l+='<meta name="'+u+'" content="'+n.metadata.parsed[u]+'">\n';break;default:l+='<meta name="'+u+'" content="'+n.metadata.parsed[u]+'">\n'}return e=i+"<html"+s+">\n<head>\n"+a+o+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)}),n.subParser("detab",function(e,t,n){return e=(e=(e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var n=t,r=4-n.length%4,i=0;r>i;i++)n+=" ";return n})).replace(/¨A/g," ")).replace(/¨B/g,""),e=n.converter._dispatch("detab.after",e,t,n)}),n.subParser("ellipsis",function(e,t,n){return t.ellipsis?(e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"…"),e=n.converter._dispatch("ellipsis.after",e,t,n)):e}),n.subParser("emoji",function(e,t,r){if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,function(e,t){return n.helper.emojis.hasOwnProperty(t)?n.helper.emojis[t]:e}),e=r.converter._dispatch("emoji.after",e,t,r)}),n.subParser("encodeAmpsAndAngles",function(e,t,n){return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&")).replace(/<(?![a-z\/?$!])/gi,"<")).replace(/</g,"<")).replace(/>/g,">"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)}),n.subParser("encodeBackslashEscapes",function(e,t,r){return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,n.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)}),n.subParser("encodeCode",function(e,t,r){return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)}),n.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,r){return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)})).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)}),n.subParser("githubCodeBlocks",function(e,t,r){return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,i,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=n.subParser("encodeCode")(o,t,r),o="<pre><code"+(a?' class="'+a+" language-"+a+'"':"")+">"+(o=(o=(o=n.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",o=n.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"})).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e}),n.subParser("hashBlock",function(e,t,n){return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)}),n.subParser("hashCodeTags",function(e,t,r){e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,function(e,i,a,o){var s=a+n.subParser("encodeCode")(i,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"},"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)}),n.subParser("hashElement",function(e,t,n){return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}}),n.subParser("hashHTMLBlocks",function(e,t,r){e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var i=["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","p"],a=function(e,t,n,i){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+i),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var o=0;34>o;++o)for(var s,l=RegExp("^ {0,3}(<"+i[o]+"\\b[^>]*>)","im"),u="<"+i[o]+"\\b[^>]*>",c="</"+i[o]+">";-1!==(s=n.helper.regexIndexOf(e,l));){var d=n.helper.splitAtIndex(e,s),h=n.helper.replaceRecursiveRegExp(d[1],a,u,c,"im");if(h===d[1])break;e=d[0].concat(h)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=(e=n.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),n.subParser("hashHTMLSpans",function(e,t,n){function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,function(e){return r(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return r(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return r(e)})).replace(/<[^>]+?>/gi,function(e){return r(e)}),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)}),n.subParser("unhashHTMLSpans",function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;n.gHtmlSpans.length>r;++r){for(var i=n.gHtmlSpans[r],a=0;/¨C(\d+)C/.test(i);){var o=RegExp.$1;if(i=i.replace("¨C"+o+"C",n.gHtmlSpans[o]),10===a)break;++a}e=e.replace("¨C"+r+"C",i)}return e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n)}),n.subParser("hashPreCodeTags",function(e,t,r){e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,function(e,i,a,o){var s=a+n.subParser("encodeCode")(i,t,r)+o;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"},"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)}),n.subParser("headers",function(e,t,r){e=r.converter._dispatch("headers.before",e,t,r);var i=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;function o(e){var i,a;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return i=e,a=n.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(i=a+i),i=t.ghCompatibleHeaderId?i.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?i.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():i.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(i=a+i),r.hashLinkCounts[i]?i=i+"-"+r.hashLinkCounts[i]++:r.hashLinkCounts[i]=1,i}return e=(e=(e=e.replace(t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,function(e,a){var s=n.subParser("spanGamut")(a,t,r),l=t.noHeaderId?"":' id="'+o(a)+'"',u="<h"+i+l+">"+s+"</h"+i+">";return n.subParser("hashBlock")(u,t,r)})).replace(a,function(e,a){var s=n.subParser("spanGamut")(a,t,r),l=t.noHeaderId?"":' id="'+o(a)+'"',u=i+1,c="<h"+u+l+">"+s+"</h"+u+">";return n.subParser("hashBlock")(c,t,r)})).replace(t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm,function(e,a,s){var l=s;t.customizedHeaderId&&(l=s.replace(/\s?\{([^{]+?)}\s*$/,""));var u=n.subParser("spanGamut")(l,t,r),c=t.noHeaderId?"":' id="'+o(s)+'"',d=i-1+a.length,h="<h"+d+c+">"+u+"</h"+d+">";return n.subParser("hashBlock")(h,t,r)}),e=r.converter._dispatch("headers.after",e,t,r)}),n.subParser("horizontalRule",function(e,t,r){e=r.converter._dispatch("horizontalRule.before",e,t,r);var i=n.subParser("hashBlock")("<hr />",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,i)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,i),e=r.converter._dispatch("horizontalRule.after",e,t,r)}),n.subParser("images",function(e,t,r){function i(e,t,i,a,o,s,l,u){var c=r.gUrls,d=r.gTitles,h=r.gDimensions;if(i=i.toLowerCase(),u||(u=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==i&&null!==i||(i=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+i,n.helper.isUndefined(c[i]))return e;a=c[i],n.helper.isUndefined(d[i])||(u=d[i]),n.helper.isUndefined(h[i])||(o=h[i].width,s=h[i].height)}t=t.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var f='<img src="'+(a=a.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'" alt="'+t+'"';return u&&n.helper.isString(u)&&(f+=' title="'+(u=u.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),o&&s&&(f+=' width="'+(o="*"===o?"auto":o)+'"',f+=' height="'+(s="*"===s?"auto":s)+'"'),f+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,i)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,n,r,a,o,s,l){return i(e,t,n,r=r.replace(/\s/g,""),a,o,s,l)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,i)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,i)).replace(/!\[([^\[\]]+)]()()()()()/g,i),e=r.converter._dispatch("images.after",e,t,r)}),n.subParser("italicsAndBold",function(e,t,n){function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return r(t,"<strong><em>","</em></strong>")})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return r(t,"<strong>","</strong>")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return r(t,"<em>","</em>")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,n){return r(n,t+"<strong><em>","</em></strong>")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,n){return r(n,t+"<strong>","</strong>")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,n){return r(n,t+"<em>","</em>")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}),e=n.converter._dispatch("italicsAndBold.after",e,t,n)}),n.subParser("lists",function(e,t,r){function i(e,i){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=e.replace(a,function(e,i,a,s,l,u,c){c=c&&""!==c.trim();var d=n.subParser("outdent")(l,t,r),h="";return u&&t.tasklists&&(h=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return c&&(e+=" checked"),e+=">"})),d=d.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(e){return"¨A"+e}),i||d.search(/\n{2,}/)>-1?(d=n.subParser("githubCodeBlocks")(d,t,r),d=n.subParser("blockGamut")(d,t,r)):(d=(d=n.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=n.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=o?n.subParser("paragraphs")(d,t,r):n.subParser("spanGamut")(d,t,r)),d="<li"+h+">"+(d=d.replace("¨A",""))+"</li>\n"}),e=e.replace(/¨0/g,""),r.gListLevel--,i&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function o(e,n,r){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?o:s,u="";if(-1!==e.search(l))!function t(c){var d=c.search(l),h=a(e,n);-1!==d?(u+="\n\n<"+n+h+">\n"+i(c.slice(0,d),!!r)+"</"+n+">\n",l="ul"===(n="ul"===n?"ol":"ul")?o:s,t(c.slice(d))):u+="\n\n<"+n+h+">\n"+i(c,!!r)+"</"+n+">\n"}(e);else{var c=a(e,n);u="\n\n<"+n+c+">\n"+i(e,!!r)+"</"+n+">\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,n){return o(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,n,r){return o(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)}),n.subParser("metadata",function(e,t,n){if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,r){return n.metadata.parsed[t]=r,""})}return e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,n){return r(n),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,i){return t&&(n.metadata.format=t),r(i),"¨M"}),e=e.replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n)}),n.subParser("outdent",function(e,t,n){return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n)}),n.subParser("paragraphs",function(e,t,r){for(var i=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],o=i.length,s=0;o>s;s++){var l=i[s];0>l.search(/¨(K|G)(\d+)\1/g)?0>l.search(/\S/)||(l=(l=n.subParser("spanGamut")(l,t,r)).replace(/^([ \t]*)/g,"<p>"),a.push(l+="</p>")):a.push(l)}for(o=a.length,s=0;o>s;s++){for(var u="",c=a[s],d=!1;/¨(K|G)(\d+)\1/.test(c);){var h=RegExp.$2;u=(u="K"===RegExp.$1?r.gHtmlBlocks[h]:d?n.subParser("encodeCode")(r.ghCodeBlocks[h].text,t,r):r.ghCodeBlocks[h].codeblock).replace(/\$/g,"$$$$"),c=c.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,u),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(c)&&(d=!0)}a[s]=c}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)}),n.subParser("runExtension",function(e,t,n,r){if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=RegExp(i,"g")),t=t.replace(i,e.replace)}return t}),n.subParser("spanGamut",function(e,t,r){return e=r.converter._dispatch("spanGamut.before",e,t,r),e=n.subParser("codeSpans")(e,t,r),e=n.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=n.subParser("encodeBackslashEscapes")(e,t,r),e=n.subParser("images")(e,t,r),e=n.subParser("anchors")(e,t,r),e=n.subParser("autoLinks")(e,t,r),e=n.subParser("simplifiedAutoLinks")(e,t,r),e=n.subParser("emoji")(e,t,r),e=n.subParser("underline")(e,t,r),e=n.subParser("italicsAndBold")(e,t,r),e=n.subParser("strikethrough")(e,t,r),e=n.subParser("ellipsis")(e,t,r),e=n.subParser("hashHTMLSpans")(e,t,r),e=n.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)}),n.subParser("strikethrough",function(e,t,r){return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,i){return function(e){return t.simplifiedAutoLink&&(e=n.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(i)}),e=r.converter._dispatch("strikethrough.after",e,t,r)),e}),n.subParser("stripLinkDefinitions",function(e,t,r){var i=function(i,a,o,s,l,u,c){return a=a.toLowerCase(),2>e.toLowerCase().split(a).length-1?i:(r.gUrls[a]=o.match(/^data:.+?\/.+?;base64,/)?o.replace(/\s/g,""):n.subParser("encodeAmpsAndAngles")(o,t,r),u?u+c:(c&&(r.gTitles[a]=c.replace(/"|'/g,""")),t.parseImgDimensions&&s&&l&&(r.gDimensions[a]={width:s,height:l}),""))};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,i)).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,i)).replace(/¨0/,"")}),n.subParser("tables",function(e,t,r){if(!t.tables)return e;function i(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;"':""}function a(e,i){var a="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(a=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+a+i+">"+(e=n.subParser("spanGamut")(e,t,r))+"</th>\n"}function o(e,i){return"<td"+i+">"+n.subParser("spanGamut")(e,t,r)+"</td>\n"}function s(e){var s,l=e.split("\n");for(s=0;l.length>s;++s)/^ {0,3}\|/.test(l[s])&&(l[s]=l[s].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[s])&&(l[s]=l[s].replace(/\|[ \t]*$/,"")),l[s]=n.subParser("codeSpans")(l[s],t,r);var u=l[0].split("|").map(function(e){return e.trim()}),c=l[1].split("|").map(function(e){return e.trim()}),d=[],h=[],f=[],p=[];for(l.shift(),l.shift(),s=0;l.length>s;++s)""!==l[s].trim()&&d.push(l[s].split("|").map(function(e){return e.trim()}));if(c.length>u.length)return e;for(s=0;c.length>s;++s)f.push(i(c[s]));for(s=0;u.length>s;++s)n.helper.isUndefined(f[s])&&(f[s]=""),h.push(a(u[s],f[s]));for(s=0;d.length>s;++s){for(var g=[],m=0;h.length>m;++m)n.helper.isUndefined(d[s][m]),g.push(o(d[s][m],f[m]));p.push(g)}return function(e,t){for(var n="<table>\n<thead>\n<tr>\n",r=e.length,i=0;r>i;++i)n+=e[i];for(n+="</tr>\n</thead>\n<tbody>\n",i=0;t.length>i;++i){n+="<tr>\n";for(var a=0;r>a;++a)n+=t[i][a];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(h,p)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,n.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s),e=r.converter._dispatch("tables.after",e,t,r)}),n.subParser("underline",function(e,t,r){return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,t){return"<u>"+t+"</u>"})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,t){return"<u>"+t+"</u>"}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})).replace(/(_)/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e}),n.subParser("unescapeSpecialChars",function(e,t,n){return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,function(e,t){return String.fromCharCode(parseInt(t))}),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)}),n.subParser("makeMarkdown.blockquote",function(e,t){var r="";if(e.hasChildNodes())for(var i=e.childNodes,a=i.length,o=0;a>o;++o){var s=n.subParser("makeMarkdown.node")(i[o],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")}),n.subParser("makeMarkdown.codeBlock",function(e,t){var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"}),n.subParser("makeMarkdown.codeSpan",function(e){return"`"+e.innerHTML+"`"}),n.subParser("makeMarkdown.emphasis",function(e,t){var r="";if(e.hasChildNodes()){r+="*";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="*"}return r}),n.subParser("makeMarkdown.header",function(e,t,r){var i=Array(r+1).join("#"),a="";if(e.hasChildNodes()){a=i+" ";for(var o=e.childNodes,s=o.length,l=0;s>l;++l)a+=n.subParser("makeMarkdown.node")(o[l],t)}return a}),n.subParser("makeMarkdown.hr",function(){return"---"}),n.subParser("makeMarkdown.image",function(e){var t="";return e.hasAttribute("src")&&(t+="+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t}),n.subParser("makeMarkdown.links",function(e,t){var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var i=e.childNodes,a=i.length;r="[";for(var o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r}),n.subParser("makeMarkdown.list",function(e,t,r){var i="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,o=a.length,s=e.getAttribute("start")||1,l=0;o>l;++l)if(void 0!==a[l].tagName&&"li"===a[l].tagName.toLowerCase()){i+=("ol"===r?s+". ":"- ")+n.subParser("makeMarkdown.listItem")(a[l],t),++s}return(i+="\n\x3c!-- --\x3e\n").trim()}),n.subParser("makeMarkdown.listItem",function(e,t){for(var r="",i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r}),n.subParser("makeMarkdown.node",function(e,t,r){r=r||!1;var i="";if(3===e.nodeType)return n.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":r||(i=n.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(i=n.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(i=n.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(i=n.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(i=n.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(i=n.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(i=n.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(i=n.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(i=n.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(i=n.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(i=n.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(i=n.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(i=n.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(i=n.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":i=n.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":i=n.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":i=n.subParser("makeMarkdown.strong")(e,t);break;case"del":i=n.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":i=n.subParser("makeMarkdown.links")(e,t);break;case"img":i=n.subParser("makeMarkdown.image")(e,t);break;default:i=e.outerHTML+"\n\n"}return i}),n.subParser("makeMarkdown.paragraph",function(e,t){var r="";if(e.hasChildNodes())for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);return r=r.trim()}),n.subParser("makeMarkdown.pre",function(e,t){var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"}),n.subParser("makeMarkdown.strikethrough",function(e,t){var r="";if(e.hasChildNodes()){r+="~~";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="~~"}return r}),n.subParser("makeMarkdown.strong",function(e,t){var r="";if(e.hasChildNodes()){r+="**";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t);r+="**"}return r}),n.subParser("makeMarkdown.table",function(e,t){var r,i,a="",o=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(r=0;s.length>r;++r){var u=n.subParser("makeMarkdown.tableCell")(s[r],t),c="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":c=":---";break;case"text-align:right;":c="---:";break;case"text-align:center;":c=":---:"}o[0][r]=u.trim(),o[1][r]=c}for(r=0;l.length>r;++r){var d=o.push([])-1,h=l[r].getElementsByTagName("td");for(i=0;s.length>i;++i){var f=" ";void 0!==h[i]&&(f=n.subParser("makeMarkdown.tableCell")(h[i],t)),o[d].push(f)}}var p=3;for(r=0;o.length>r;++r)for(i=0;o[r].length>i;++i){var g=o[r][i].length;g>p&&(p=g)}for(r=0;o.length>r;++r){for(i=0;o[r].length>i;++i)o[r][i]=1===r?":"===o[r][i].slice(-1)?n.helper.padEnd(o[r][i].slice(-1),p-1,"-")+":":n.helper.padEnd(o[r][i],p,"-"):n.helper.padEnd(o[r][i],p);a+="| "+o[r].join(" | ")+" |\n"}return a.trim()}),n.subParser("makeMarkdown.tableCell",function(e,t){var r="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,a=i.length,o=0;a>o;++o)r+=n.subParser("makeMarkdown.node")(i[o],t,!0);return r.trim()}),n.subParser("makeMarkdown.txt",function(e){var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=n.helper.unescapeHTMLEntities(t)).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]:")});e.exports?e.exports=n:this.showdown=n}).call(o)}(l);var u=s(l.exports);u.ConverterExtObj=function(e,t){var n=[],r=e;function i(e,t){if(t=t||null,u.helper.isString(e)&&(t=u.helper.stdExtName(e),e=u.asyncExtension(t),u.helper.isUndefined(e)))throw Error('Extension "'+t+'" could not be loaded. It was either not found or is not a valid aync extension.');if("function"==typeof e&&(e=e()),u.helper.isArray(e)||(e=[e]),u.validateExtension(e))for(var r=0;e.length>r;++r)if("output"===e[r].type)n.push(e[r])}t&&u.helper.forEach(t,i),this.addAsyncExtension=function(e,t){i(e,t=t||null)},this.removeAsyncExtension=function(e){u.helper.isArray(e)||(e=[e]);for(var t=0;e.length>t;++t)for(var r=e[t],i=0;n.length>i;++i)n[i]===r&&n.splice(i,1)},this.getAsyncExtensions=function(){return n},this.getCurrFlavor=function(){return r},this.setCurrFlavor=function(e){r=e}},u.Converter.prototype.initConvertExtObj=function(e,t){return this.extObj=new u.ConverterExtObj(e,t),this.resetOptions=function(e){e=e||{};var t=u.getOptions(),n=this.getOptions();for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);if("object"===a(e))for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i])},this.setFlavor=function(e){var t=u.getFlavorOptions(e);if(!u.helper.isUndefined(t)){this.extObj.setCurrFlavor(e);var n=u.getDefaultOptions(!0);for(var r in n)n.hasOwnProperty(r)&&(this.getOptions()[r]=n[r]);for(var r in t)t.hasOwnProperty(r)&&(this.getOptions()[r]=t[r])}},this.getFlavor=function(){return this.extObj.getCurrFlavor()},this.addAsyncExtension=function(e,t){this.extObj.addAsyncExtension(e,t)},this.removeAsyncExtension=function(e){this.extObj.removeAsyncExtension(e)},this.removeExtension=function(e){u.helper.isArray(e)||(e=[e]);for(var t=this.getAllExtensions(),n=t.language,r=t.output,i=0;e.length>i;++i){for(var a=e[i],o=0;n.length>o;++o)n[o]===a&&n.splice(o,1);for(var s=0;r.length>s;++s)r[s]===a&&r.splice(s,1)}},this.asyncMakeHtml=function(e,t){var n=this.makeHtml(e),r=this.extObj.getAsyncExtensions();if(!r.length)return Promise.resolve({html:n});var i={outputs:r,converter:this},a=(new DOMParser).parseFromString(n,"text/html"),o=void 0!==a.body?a.body:a,s=this.getOptions(),l=Promise.resolve({wrapper:o,options:s,globals:i,scripts:[],cssLinks:[]});return r.forEach(function(e){l=l.then(function(t){var n=e.filter(t);return n||t})}),l.then(function(e){if("function"==typeof t&&t){var n=t(e);if(n instanceof Promise)return n.then(function(e){return{html:e.wrapper.innerHTML,extras:e.extras,scripts:e.scripts,cssLinks:e.cssLinks}})}return{html:e.wrapper.innerHTML,extras:e.extras,scripts:e.scripts,cssLinks:e.cssLinks}})},this},u.subParser("githubCodeBlocks",function(e,t,n){return t.ghCodeBlocks?(e=n.converter._dispatch("githubCodeBlocks.before",e,t,n),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*?)(?:[ \t]*?)((?:\{[\S\t ]*\}|\[[\S\t ]*\])?)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,r,i,a,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=u.subParser("encodeCode")(o,t,n),o=(o=(o=u.subParser("detab")(o,t,n)).replace(/^\n+/g,"")).replace(/\n+$/g,""),o="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+(a?" data-lang='".concat(a,"'"):"")+">"+o+s+"</code></pre>",o=u.subParser("hashBlock")(o,t,n),"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"})).replace(/¨0/,""),n.converter._dispatch("githubCodeBlocks.after",e,t,n)):e}),u.subParser("tables",function(e,t,n){if(!t.tables)return e;function r(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;"':""}function i(e,r){var i="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(i=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),"<th"+i+r+">"+(e=u.subParser("spanGamut")(e,t,n))+"</th>\n"}function a(e,r,i,a,o){if(t.tablesMerge){var s=function(e,n,r,i){if(i){if(!t.tablesRowspan||"^^"!==i||!n)return;for(var a=n-1;a>=0;--a)if(e[a][r]){if("^^"!==e[a][r])return e[a][r]=e[a][r].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,r){return t+' rowspan="'+(n-a+1)+'"'+r}),i;if(0===a)return e[a][r]='<td rowspan="'+(n-a+1)+'"></td>\n',i}else for(var o=r-1;o>=0;-o){if(e[a+1][o]&&"^^"!==e[a+1][o])return;if(e[a][o]){if(!e[a+1][o])return;return e[a][o]=e[a][o].replace(/rowspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,r){return t+' rowspan="'+(n-a+1)+'"'+r}),i}}}else if(r)for(o=r-1;o>=0;--o)if(e[n][o]){if("^^"!==e[n][o])return e[n][o]=e[n][o].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,n){return t+' colspan="'+(r-o+1)+'"'+n}),i;for(a=n-1;a>=0;--a){if(e[a][o+1])return;if("^^"!==e[a][o])return e[a][o]=e[a][o].replace(/colspan="[0-9]*"/g,"").replace(/^(<td[^<>\n\r]*?)(>.*<\/td>\n)/,function(e,t,n){return t+' colspan="'+(r-o+1)+'"'+n}),i}}else if(0===o)return e[n][o]='<td colspan="'+(r-o+1)+'"></td>\n',i}(e,r,i,a);if(!u.helper.isUndefined(s))return s}return a=a.trim(),"<td"+o+">"+u.subParser("spanGamut")(a,t,n)+"</td>\n"}function o(e,o){var s,l=e.split("\n");for(s=0;l.length>s;++s)/^ {0,3}\|/.test(l[s])&&(l[s]=l[s].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(l[s])&&(l[s]=l[s].replace(/\|[ \t]*$/,"")),l[s]=u.subParser("codeSpans")(l[s],t,n);var c=[],d=[],h=[],f=[],p=[];if(o)for(c=l[0].split("|").map(function(e){return e.trim()}),l.shift(),s=0;c.length>s;++s)f.push(r(c[s]));else{var g=l[0].split("|").map(function(e){return e.trim()});if(c=l[1].split("|").map(function(e){return e.trim()}),l.shift(),l.shift(),c.length>g.length)return e;for(s=0;c.length>s;++s)f.push(r(c[s]));for(s=0;g.length>s;++s)u.helper.isUndefined(f[s])&&(f[s]=""),h.push(i(g[s],f[s]))}for(s=0;l.length>s;++s)""!==l[s].trim()&&d.push(l[s].split("|").map(function(e){var t=e.trim();return""===t&&e.length>0?e:t}));for(s=0;d.length>s;++s){var m=[];p.push(m);for(var _=0;f.length>_;++_)u.helper.isUndefined(d[s][_])&&(d[s][_]=""),m.push(a(p,s,_,d[s][_],f[_]))}return function(e,n,r){var i="<table>\n",a=n.length;if(e.length){i+="<thead>\n<tr>\n";for(var o=0;e.length>o;++o)i+=e[o];i+="</tr>\n</thead>\n"}for(i+="<tbody>\n",o=0;r.length>o;++o){i+="<tr>\n";for(var s=0;a>s;++s)t.tablesMerge&&"^^"===r[o][s]||(i+=r[o][s]);i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(h,f,p)}function s(e){return o(e,!1)}function l(e){return o(e,!0)}return e=(e=(e=(e=n.converter._dispatch("tables.before",e,t,n)).replace(/\\(\|)/g,u.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,s),t.tablesHeaderless&&(e=(e=e.replace(/^ {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,l)).replace(/^ {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,l)),e=n.converter._dispatch("tables.after",e,t,n)});var c="vanilla",d={github:{ghCompatibleHeaderId:!1,underline:!0,rawHeaderId:!0,tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},ghost:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0},allOn:{tablesHeaderless:!0,tablesMerge:!0,tablesRowspan:!0}},h={};u.asyncExtension=function(e,t){if(!u.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=u.helper.stdExtName(e),u.helper.isUndefined(t)){if(!h.hasOwnProperty(e))throw Error("Async Extension named "+e+" is not registered!");return h[e]}"function"==typeof t&&(t=t()),u.helper.isArray(t)||(t=[t]),u.validateExtension(t)&&(h[e]=t)},u.removeAsyncExtension=function(e){e=u.helper.stdExtName(e),delete h[e]},u.resetAsyncExtensions=function(){h={}},u.removeExtension=function(e){e=u.helper.stdExtName(e),delete u.getAllExtensions[e]};var f=u.setFlavor,p=u.getFlavorOptions;function g(e){return"".concat((new Date).Format("yyyy-MM-dd HH:mm:ss.S")," ").concat(e)}u.setFlavor=function(e){try{if(f(e),c=e,!d.hasOwnProperty(e))return}catch(t){if(!d.hasOwnProperty(e))return;u.resetOptions(),c=e}var t=d[e];for(var n in t)t.hasOwnProperty(n)&&(u.getOptions()[n]=t[n])},u.getFlavor=function(){return c},u.setFlavorOptions=function(e,t){t&&(d[e]=Object.assign(d[e]||{},t))},u.getFlavorOptions=function(e){var t=p(e);return u.helper.isUndefined(t)?d.hasOwnProperty(e)?d[e]:void 0:d.hasOwnProperty(e)?Object.assign(t,d[e]):t},Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"H+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};e||(e="yyyy-MM-dd hh:mm:ss.S");var n=/(y+)/.exec(e);for(var r in n&&(e=e.replace(n[1],(this.getFullYear()+"").substring(4-n[1].length))),t){var i=RegExp("("+r+")").exec(e);if(i){var a=t[r];1==i[1].length?a=("000"+t[r]).substring((""+t[r]).length):2==i[1].length&&(a=("00"+t[r]).substring((""+t[r]).length)),e=e.replace(i[1],a)}}return e};var m="jsdelivr",_="file:"===document.location.protocol?"https://":document.location.protocol+"//",v="",w="",b="",y={local:{ABCJS:"../node_modules/abcjs/dist/abcjs-basic.js",ABCJSCSS:"../node_modules/abcjs/abcjs-audio.css",echarts:"../node_modules/echarts/dist/echarts.js",Viz:"../node_modules/@viz-js/viz/lib/viz-standalone.js",Raphael:"../node_modules/raphael/raphael.min.js",flowchart:"../dist/diagrams/flowchart/flowchart.min.js",mermaid:"../node_modules/mermaid/dist/mermaid.js",katex:"../node_modules/katex/dist/katex.min.js",katexCSS:"../node_modules/katex/dist/katex.min.css",renderMathInElement:"../node_modules/katex/dist/contrib/auto-render.js",railroad:"../node_modules/railroad-diagrams/railroad-diagrams.js",railroadCSS:"../node_modules/railroad-diagrams/railroad-diagrams.css",Snap:"../node_modules/snapsvg/dist/snap.svg-min.js",WebFont:"../node_modules/webfontloader/webfontloader.js",underscore:"../node_modules/underscore/underscore-min.js",sequence:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.js",sequenceCSS:"../node_modules/@rokt33r/js-sequence-diagrams/dist/sequence-diagram-min.css",WaveDrom:"../node_modules/wavedrom/wavedrom.min.js",WaveDromSkin:{default:"../node_modules/wavedrom/skins/default.js",lowkey:"../node_modules/wavedrom/skins/lowkey.js",narrow:"../node_modules/wavedrom/skins/narrow.js"},vega:"../node_modules/vega/build/vega.min.js",vegaLite:"../node_modules/vega-lite/build/vega-lite.min.js",vegaEmbed:"../node_modules/vega-embed/build/vega-embed.min.js"},cdnjs:{ABCJS:_+"cdnjs.cloudflare.com/ajax/libs/abcjs/6.5.1/abcjs-basic-min.js",ABCJSCSS:_+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:_+"cdnjs.cloudflare.com/ajax/libs/echarts/5.6.0/echarts.min.js",Viz:_+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:_+"cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js",flowchart:_+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:_+"cdnjs.cloudflare.com/ajax/libs/mermaid/11.6.0/mermaid.min.js",katex:_+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.js",katexCSS:_+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/katex.min.css",renderMathInElement:_+"cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.22/contrib/auto-render.js",railroad:_+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.js",railroadCSS:_+"cdnjs.cloudflare.com/ajax/libs/railroad-diagrams/1.0.0/railroad-diagrams.css",Snap:_+"cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js",WebFont:_+"cdnjs.cloudflare.com/ajax/libs/webfont/1.6.28/webfontloader.js",underscore:_+"cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.7/underscore-min.js",sequence:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/wavedrom.min.js",WaveDromSkin:{default:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/default.js",lowkey:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/lowkey.js",narrow:_+"cdnjs.cloudflare.com/ajax/libs/wavedrom/3.5.0/skins/narrow.js"},vega:_+"cdnjs.cloudflare.com/ajax/libs/vega/6.1.2/vega.min.js",vegaLite:_+"cdnjs.cloudflare.com/ajax/libs/vega-lite/6.1.0/vega-lite.min.js",vegaEmbed:_+"cdnjs.cloudflare.com/ajax/libs/vega-embed/7.0.2/vega-embed.min.js"},jsdelivr:{ABCJS:_+"cdn.jsdelivr.net/npm/abcjs@6/dist/abcjs-basic-min.js",ABCJSCSS:_+"cdn.jsdelivr.net/npm/abcjs@6/abcjs-audio.css",echarts:_+"cdn.jsdelivr.net/npm/echarts@5/dist/echarts.min.js",Viz:_+"cdn.jsdelivr.net/npm/@viz-js/viz@3/lib/viz-standalone.js",Raphael:_+"cdn.jsdelivr.net/npm/raphael@2/raphael.min.js",flowchart:_+"cdnjs.cloudflare.com/ajax/libs/flowchart/1.18.0/flowchart.min.js",mermaid:_+"cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js",katex:_+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.js",katexCSS:_+"cdn.jsdelivr.net/npm/katex@0/dist/katex.min.css",renderMathInElement:_+"cdn.jsdelivr.net/npm/katex@0/dist/contrib/auto-render.js",railroad:_+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.js",railroadCSS:_+"cdn.jsdelivr.net/npm/railroad-diagrams@1/railroad-diagrams.css",Snap:_+"cdn.jsdelivr.net/npm/snapsvg@0/dist/snap.svg-min.js",WebFont:_+"cdn.jsdelivr.net/npm/webfontloader@1/webfontloader.js",underscore:_+"cdn.jsdelivr.net/npm/underscore@1/underscore-min.js",sequence:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.js",sequenceCSS:_+"cdn.jsdelivr.net/npm/@rokt33r/js-sequence-diagrams@2.0.6-2/dist/sequence-diagram-min.css",WaveDrom:_+"cdn.jsdelivr.net/npm/wavedrom@3/wavedrom.min.js",WaveDromSkin:{default:_+"cdn.jsdelivr.net/npm/wavedrom@3/skins/default.js",lowkey:_+"cdn.jsdelivr.net/npm/wavedrom@3/skins/lowkey.js",narrow:_+"cdn.jsdelivr.net/npm/wavedrom@3/skins/narrow.js"},vega:_+"cdn.jsdelivr.net/npm/vega@6/build/vega.min.js",vegaLite:_+"cdn.jsdelivr.net/npm/vega-lite@6/build/vega-lite.min.js",vegaEmbed:_+"cdn.jsdelivr.net/npm/vega-embed@7/build/vega-embed.min.js"}};function k(){return m}function x(e){if("object"===a(e)){var t=Object.keys(e)[0],n=e[t];if("string"==typeof n)return t+"-"+n}return e}function E(e,t,n,r){if(void 0!==n&&n||(n=k()),y.hasOwnProperty(n)){var i=y[n],o="";if("object"===a(t)){var s=Object.keys(t)[0],l=t[s];i[s]&&"string"==typeof l&&l&&i[s][l]&&(o=i[s][l])}else i[t]&&(o=i[t]);o&&(r=e||o.substring(0,_.length)===_?o:"../dist/"===o.substring(0,8)?w+o:v+o)}return r}var S={setCDN:function(e,t,n,r){e in y&&(m=e),"string"==typeof t&&t&&(v=t),"string"==typeof n&&n&&(w=n),"string"==typeof r&&r&&("/"!==b.at(b.length-1)&&(r+="/"),b=r)},getCDN:k,getUrl:function(e){try{var t=new URL(e);if("dist:"===t.protocol)return e="../dist/"===(e=e.substring(t.protocol.length+2)).substring(0,8)?w+e:v+e;if("file:"===t.protocol)if(b)return e=new URL(b).origin+"/"+e.substring(8)}catch(t){if(b){var n="./";e.substring(0,2)===n&&(e=e.substring(2)),e=b+e}}return e},getSrc:E,loadScript:function(e,t){return new Promise(function(n,r){e&&"undefined"!=typeof document||r("Args is invaild!"),void 0===t&&(t=""),(t=E(!1,e,t))||r(e+" script source invaild!");var i="script-"+x(e).toLowerCase(),a=document.getElementById(i);if(a)return n(e);var o=document.head||document.getElementsByTagName("head")[0];(a=document.createElement("script")).src=t,a.id=i,a.onload=function(){n(e)},o.appendChild(a)})},unloadScript:function(e){e=x(e);var t=document.getElementById("script-"+e.toLowerCase());t&&(document.head||document.getElementsByTagName("head")[0]).removeChild(t)},loadStyleSheet:function(e,t){if(!e||"undefined"==typeof document)return"";if(void 0===t&&(t=""),!(t=E(!1,e,t)))return"";var n="css-"+x(e).toLowerCase();if(!document.getElementById(n)){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=t,i.id=n,r.appendChild(i)}return"local"===m?"":t},unloadStyleSheet:function(e){e=x(e);var t=document.getElementById("css-"+e.toLowerCase());t&&(document.head||document.getElementsByTagName("head")[0]).removeChild(t)}};var A={interopDefault:function(e){return e&&"object"===a(e)&&"default"in e?e.default:e},loadStyle:function(e,t){if(!e||!t||"undefined"==typeof document)return!1;var n="css-"+e.toLowerCase();if(!document.getElementById(n)){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.id=n,i.type="text/css",i.innerText=t,r.appendChild(i)}return!0},loadStylesheet:function(e,t){if(!e||"undefined"==typeof document)return!1;var n=null;if(t&&(n=document.getElementById(t)),!n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.href=e,t&&(i.id=t),r.appendChild(i)}return!0},loadScript:function(e,t,n){return new Promise(function(r,i){if(!e||!t||"undefined"==typeof document)return i("Args is invaild!");var a=document.getElementById(e);if(a)return r(!0);n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,(a=document.createElement("script")).id=e,a.type="text/javascript",a.text=t,n.appendChild(a),r(!0)})},removeAllStylesheet:function(e){if(e){var t=document.head||document.getElementsByTagName("head")[0];t.querySelectorAll("link").forEach(function(n){n.id&&n.id.substring(0,e.length)===e&&t.removeChild(n)})}},renderCacheElement:function(e,t,n,r){"undefined"!=typeof window&&window.document&&(e=window.document);var i=e.createElement("div");if(i.id=t,i.className=n,i.style.display="none",e.body.appendChild(i),"function"==typeof r&&r){var a=r(i);if(a instanceof Promise)return a.then(function(t){e.body.removeChild(t),t.style.display=""}),i.outerHTML}return e.body.removeChild(i),i.style.display="",i.outerHTML},renderElement:function(e,t,n){"undefined"!=typeof window&&window.document&&(e=window.document);var r=e.createElement("div");return r.id=t,r.className=n,e.body.appendChild(r),r},createElementMeta:function(e,t,n){var r=t.dataset.lang,i=r?JSON.parse(r):null,a="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return!1;i.align&&("center"===i.align?a="diagram-center":"right"===i.align&&(a="diagram-right")),i.width&&"string"!=typeof i.width&&(i.width=i.width+"px"),i.height&&"string"!=typeof i.height&&(i.height=i.height+"px")}var o=t.textContent.trim();n&&"function"==typeof n&&(o=n(o));var s=(t.classList.length>0?t.classList[0]:"")+(t.className&&a?" ":"")+a,l=e.toLowerCase()+"-"+Date.now()+"-"+Math.floor(1e4*Math.random());return t.id=l,{id:l,container:l+"-container",className:s,data:o,element:t,lang:i}},addCssLink:function(e,t,n){return e.cssLinks?Array.isArray(e.cssLinks)||(e.cssLinks=[e.cssLinks]):e.cssLinks=[],e.cssLinks.push({id:n,link:t}),e},addScript:function(e,t){return e.scripts?Array.isArray(e.scripts)||(e.scripts=[e.scripts]):e.scripts=[],e.scripts.push(t),e},addExtra:function(e,t){return e.extras?Array.isArray(e.extras)||(e.extras=[e.extras]):e.extras=[],e.extras.push(t),e},hashString:function(e){for(var t=0,n=0;e.length>n;n++){var r=e.charCodeAt(n);t=Math.imul(31,t)+r|0}return t>>>0}},L="abc",j="ABCJSCSS";if("undefined"==typeof window)throw Error("The showdown abcjs extension can only be used in browser environment!");if(void 0===C)var C=window.ABCJS||void 0;function z(){return!!C}var P=!1;function M(){if(void 0===e)var e=window.ABCJS||void 0;function t(e){var t=this;t.onReady=function(){},t.onStart=function(){var t=document.querySelector("#"+e+" svg"),n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("class","abcjs-cursor"),n.setAttributeNS(null,"x1",0),n.setAttributeNS(null,"y1",0),n.setAttributeNS(null,"x2",0),n.setAttributeNS(null,"y2",0),t.appendChild(n)},t.beatSubdivisions=2,t.onBeat=function(e,t,n){},t.onEvent=function(t){if(!t.measureStart||null!==t.left){for(var n=document.querySelectorAll("#"+e+" svg .highlight"),r=0;n.length>r;r++)n[r].classList.remove("highlight");for(var i=0;t.elements.length>i;i++)for(var a=t.elements[i],o=0;a.length>o;o++)a[o].classList.add("highlight");var s=document.querySelector("#"+e+" svg .abcjs-cursor");s&&(s.setAttribute("x1",t.left-2),s.setAttribute("x2",t.left-2),s.setAttribute("y1",t.top),s.setAttribute("y2",t.top+t.height))}},t.onFinished=function(){for(var t=document.querySelectorAll("#"+e+" svg .highlight"),n=0;t.length>n;n++)t[n].classList.remove("highlight");var r=document.querySelector("#"+e+" svg .abcjs-cursor");r&&(r.setAttribute("x1",0),r.setAttribute("x2",0),r.setAttribute("y1",0),r.setAttribute("y2",0))}}window.abcEnv={abcOptions:{add_classes:!0,responsive:"resize"},setTune:function(t,n,r){var i=t.id,a=t.data;if(r){r.disable(!0);var o=e.renderAbc(i,a,this.abcOptions)[0];(new e.synth.CreateSynth).init({visualObj:o}).then(function(e){r.setTune(o,n).then(function(e){}).catch(function(e){})}).catch(function(e){})}else e.renderAbc(i,a,this.abcOptions)},load:function(n,r){var i;if(n){var a="#"+n;e.synth.supportsAudio()?(i=new e.synth.SynthController).load(a,new t(r.id),{displayLoop:!0,displayRestart:!0,displayPlay:!0,displayProgress:!0,displayWarp:!0}):document.querySelector(a).innerHTML="<div class='audio-error'>Audio is not supported in this browser.</div>"}this.setTune(r,!1,i)}}}function T(e,t){var n=function(){window.abcEnv.load(e,t)};return n.toString=function(){return"function(){\n const audio = '".concat(e,"';\n const render = ").concat(JSON.stringify(t),";\n window.abcEnv.load(audio, render);\n }")},n}function O(e,t,n){if(z()){var r=n.id,i=n.className,a=n.container,o="";n.lang&&(n.lang.width&&(o+="width:".concat(n.lang.width,";")),n.lang.height&&(o+="height:".concat(n.lang.height,";")));var s="";if(o?(s+='<div id="'.concat(a,'" class="').concat(i,'" style="').concat(o,'">'),s+='<div id="'.concat(r,'" style="width:100%;height:100%;display:inline-block"></div>')):(s+='<div id="'.concat(a,'" class="').concat(i,'">'),s+='<div id="'.concat(r,'"></div>')),!n.lang||!n.lang.audio){var l=n.data,u=n.element.ownerDocument;n.element.parentNode.outerHTML=s+="</div>";var c=u.getElementById(r);return C.renderAbc(c,l,{add_classes:!0,responsive:"resize"}),e(!0)}var d=n.cssLink,h=n.data,f=r+"-audio";s+=o?d?'<div id="'.concat(f,'" style="width:100%;height:100%;display:inline-block" class="css-abc" data-css="').concat(d,'"></div>'):'<div id="'.concat(f,'" style="width:100%;height:100%;display:inline-block"></div>'):d?'<div id="'.concat(f,'" class="css-abc" data-css="').concat(d,'"></div>'):'<div id="'.concat(f,'"></div>'),n.element.parentNode.outerHTML=s+="</div>";var p={id:a,code:T(f,{id:r,class:i,data:h}),host:"#".concat(a)};return t.push(p),e(!0)}setTimeout(function(){O(e,t,n)},10)}function R(e,t){return new Promise(function(n){var r=A.createElementMeta(L,e);if(!r)return n(!1);r.cssLink=S.getSrc(!0,j),O(n,t,r)})}function N(e,t){var n={outer:[{name:"ABCJS",src:S.getSrc(!1,"ABCJS","jsdelivr")}],id:"abcjs-ext",code:M,inner:[]};return t.push(n),function(){var e=z();if("undefined"!=typeof window){if(P)return e;e||(P=!0,S.loadStyleSheet(j),A.loadStyle("abc-audio",".highlight{fill: #0a9ecc;} .abcjs-cursor{stroke: red;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed{border: none;} .abcjs-inline-audio .abcjs-midi-loop.abcjs-pushed svg path{fill: #6eaa49;}"),S.loadScript("ABCJS").then(function(e){C=A.interopDefault(window[e])}))}}(),new Promise(function(t){var r=[];e.forEach(function(e){r.push(R(e,n.inner))}),Promise.all(r).then(function(){t(!0)})})}function B(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.abc.language-abc");return!!n.length&&(this.config={cssLink:S.getSrc(!0,j)},A.addCssLink(e,this.config.cssLink,"css-abc"),N(n,e.scripts).then(function(){return e}))}}]}function D(e,t,n,r,i){try{if(i){if(r>1){var a=n.parentNode;a&&"UL"===a.tagName&&a.classList.add("toc-multi")}var o=n.querySelector("div");if(o){o.classList.remove("toc-title"),o.classList.add("toc-multi-title");var s=o.querySelector("i");s&&(s.classList.remove("toc-chapter"),s.classList.add("toc-multi-chapter"),s.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-expand"></use></svg>')}(n=n.appendChild(e.ownerDocument.createElement("ul"))).classList.add(r>1?"toc-level-".concat(r):"toc-main")}if(n=n.appendChild(e.ownerDocument.createElement("li")),t){var l=n.appendChild(e.ownerDocument.createElement("div"));l.classList.add("toc-title-".concat(r),"toc-title");var u=l.appendChild(e.ownerDocument.createElement("i"));u.classList.add("iconfont","toc-chapter"),u.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>';var c=l.appendChild(e.ownerDocument.createElement("a"));c.appendChild(e.ownerDocument.createTextNode(t.textContent)),c.href="#"+t.id}}catch(e){}return n}function I(e,t,n,r){if(n.headingLevel>=r){for(var i=null;n&&n.headingLevel>=r;)n=(i=n).parentNode,i.parentNode=null,i.toc=null,i.headingLevel=null,i.preLevel=null;return n&&I(e,t,n,r),n}if(r>n.preLevel){for(n.preLevel++;r>n.preLevel;)n.toc=D(e,null,n.toc,r,!0),n.preLevel++;n.toc=D(e,t,n.toc,r,!0)}else{for(;n.preLevel>r;)n.toc&&(n.toc=n.toc.parentNode),n.toc&&(n.toc=n.toc.parentNode),n.preLevel--;n.toc&&(n.toc=n.toc.parentNode),n.toc=D(e,t,n.toc,r,!1)}return n.parentNode&&I(e,t,n.parentNode,r),n}function q(){var e=document.querySelector("#total-showdown-toc");if(e){var t=document.getElementById("divider");if(t){var n=function(t){if(i>0){var n=t.clientX-i;if(0!=n){var r=a-n;5>r||r>document.documentElement.clientWidth-5||(e.style.width="".concat(r,"px"))}}},r=function(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.body.style.userSelect="",i=0},i=0,a=0;t.addEventListener("mousedown",function(t){i=t.clientX,a=e.clientWidth,document.body.style.userSelect="none",document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)})}var o=document.querySelector("#toc-fold-icon");o&&(o.onclick=function(e){var t=document.querySelectorAll(".total-toc ul"),n=document.querySelectorAll(".total-toc ul:not(.toc-main) .toc-multi-chapter use");if("toc-expand"===o.dataset.name)return t.forEach(function(e){e.classList.contains("toc-main")||e.classList.contains("toc-level-2")||e.classList.add("hidden")}),n.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")}),void(o.dataset.name="toc-fold");t.forEach(function(e){e.classList.remove("hidden")}),n.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")}),o.dataset.name="toc-expand"});var s=document.querySelector("#toc-close-icon");s&&(s.onclick=function(e){var t=document.querySelector("#total-showdown-toc");t&&t.classList.add("hidden");var n=document.querySelector("#toc-switch-button");n&&n.classList.remove("hidden")});var l=document.querySelector("#toc-switch-button");l&&(l.onclick=function(e){e.currentTarget.classList.add("hidden");var t=document.querySelector("#total-showdown-toc");t&&t.classList.remove("hidden")}),document.querySelectorAll(".total-toc .toc-multi-chapter").forEach(function(e){e.onclick=function(e){var t=e.currentTarget.parentNode;if(t&&(t=t.parentNode)){var n=t.querySelectorAll("ul"),r=t.querySelectorAll(".toc-multi-chapter use"),i=e.currentTarget.querySelector("use");if(i){if("#icon-expand"===i.getAttributeNS("http://www.w3.org/1999/xlink","href"))return n.forEach(function(e){e.classList.add("hidden")}),void r.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-collapse")});n.forEach(function(e){e.classList.remove("hidden")}),r.forEach(function(e){e.setAttributeNS("http://www.w3.org/1999/xlink","href","#icon-expand")})}}}})}}function H(){return[{type:"output",config:{},filter:function(e){if("string"==typeof e){var t=(new DOMParser).parseFromString(e,"text/html"),n=void 0!==t.body?t.body:t;return function(e,t){var n=null,r=0,i=null,a=!1,o=!1,s=null;t.extraDocs=[],t.extraDocs.push('<div id="toc-svgs" class="hidden"><svg aria-hidden="true" style="position: absolute; width: 0px; height: 0px; overflow: hidden;"><symbol id="icon-chapter-s" viewBox="0 0 1024 1024"><path d="M725.108359 579.864261c11.519371-117.753568-94.714826-195.829303-165.110981-247.666471l-10.879406-7.679581-21.118846-15.359161c-40.317798-28.798427-81.915525-58.876784-95.994756-95.994756-15.999126-41.597728-13.439266-74.235945 7.67958-97.274686 26.878532-29.438392 90.235071-35.838042 120.313428-11.519371 26.238567 20.478881 26.878532 53.117098 24.958637 70.396154-2.55986 24.318672 14.719196 46.717448 39.037867 49.917274 24.318672 2.55986 46.717448-14.719196 49.917274-39.037868 7.039615-60.796679-14.079231-115.833673-58.236819-151.03175C547.838042-19.143018 432.644335-8.903578 373.127586 55.732892c-44.157588 47.997378-53.117098 115.193708-24.958637 189.429652 8.319546 23.038742 21.758811 42.877658 37.117973 60.156714-36.478007 34.558112-73.59598 78.075735-79.355665 138.872414C294.411886 561.94524 400.646083 640.020975 471.042237 691.858143l10.879406 7.679581 21.118846 15.359161c40.317798 28.798427 81.915525 58.876784 95.994757 95.994756 15.999126 41.597728 13.439266 74.235945-7.679581 97.274686-26.878532 29.438392-90.235071 35.838042-120.313428 11.519371-26.238567-20.478881-26.878532-53.117098-24.958636-70.396154 2.55986-24.318672-14.719196-46.717448-39.037868-49.917274s-46.717448 14.719196-49.917273 39.037868c-7.039615 60.796679 14.079231 115.833673 58.236819 151.03175 29.438392 23.038742 67.196329 34.558112 106.234197 34.558112 50.557238 0 102.394407-19.198951 135.672589-55.676959 44.157588-47.997378 53.117098-115.193708 24.958636-189.429652-8.319546-23.038742-21.758811-42.877658-37.117972-60.156714 36.478007-34.558112 74.235945-78.075735 79.99563-138.872414z m-201.588988 39.677833c-60.156714-44.157588-135.672589-99.834547-129.272939-166.390911 3.199825-33.278182 28.158462-60.156714 57.596854-87.675211 7.679581 5.759685 15.999126 11.519371 23.678707 17.279056 7.039615 5.11972 13.439266 9.599476 19.838916 14.719196l10.879406 8.319546c60.156714 44.157588 135.672589 99.834547 129.272938 166.39091-3.199825 33.278182-28.158462 60.156714-57.596854 87.675211-8.319546-5.759685-15.999126-11.519371-23.678706-17.279056-7.039615-5.11972-13.439266-9.599476-19.838917-14.719196l-10.879405-8.319545z"></path></symbol><symbol id="icon-chapter-l" viewBox="0 0 1024 1024"><path d="M791.272727 11.636364a81.454545 81.454545 0 0 1 81.175273 74.752L872.727273 93.090909v884.363636a34.909091 34.909091 0 0 1-51.060364 30.999273l-4.142545-2.606545-142.615273-101.888-142.615273 101.934545a34.909091 34.909091 0 0 1-30.813091 4.840727l-5.026909-2.048-4.747636-2.792727L349.090909 903.912727l-142.615273 101.934546a34.955636 34.955636 0 0 1-53.946181-18.944l-0.93091-4.654546L151.272727 977.454545V93.090909A81.454545 81.454545 0 0 1 226.024727 11.915636L232.727273 11.636364h558.545454z m-139.636363 605.090909H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 686.545455h279.272728l4.747636-0.325819A34.909091 34.909091 0 0 0 651.636364 616.727273z m0-186.181818H372.363636l-4.747636 0.325818A34.909091 34.909091 0 0 0 372.363636 500.363636h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 430.545455z m0-186.181819H372.363636l-4.747636 0.325819A34.909091 34.909091 0 0 0 372.363636 314.181818h279.272728l4.747636-0.325818A34.909091 34.909091 0 0 0 651.636364 244.363636z"></path></symbol><symbol id="icon-toc" viewBox="0 0 1024 1024"><path d="M62.500473 512.163729l61.447491-40.958854 387.221112 202.039529L898.394281 471.204875l61.443397 40.958854-448.668603 244.728794L62.500473 512.163729zM62.500473 308.228013l448.668603-244.732887 448.668603 244.732887-448.668603 244.724701L62.500473 308.228013zM511.169075 877.18012l387.225205-202.035436 61.443397 40.958854L511.169075 960.836425 62.500473 716.104561l61.447491-40.958854L511.169075 877.18012z"></path></symbol><symbol id="icon-collapse" viewBox="0 0 1024 1024"><path d="M85.781832 219.399571h73.720856c20.35996 0 36.879928-16.359968 36.879928-36.559928s-16.519968-36.559929-36.879928-36.559929h-73.719856c-20.35996 0-36.860928 16.359968-36.860928 36.559929 0 20.199961 16.499968 36.559929 36.859928 36.559928zM50.462901 475.419071c0 20.199961 16.500968 36.579929 36.859928 36.579929h72.179859c20.35996 0 36.879928-16.379968 36.879928-36.579929s-16.519968-36.579929-36.879928-36.579928h-72.179859c-20.35996 0-36.859928 16.379968-36.859928 36.579928z m145.919715 292.577429c0-20.199961-16.519968-36.595929-36.879928-36.595929h-73.719856c-20.35996 0-36.860928 16.395968-36.860928 36.595929 0 20.180961 16.499968 36.562929 36.859928 36.562929h73.720856c20.35996 0 36.879928-16.381968 36.879928-36.562929z"></path><path d="M933.660176 38.839924l-73.718856-2.279995c0-20.198961-16.519968-36.559929-36.879928-36.559929h-661.998707c-20.35996 0-36.879928 16.359968-36.879928 36.559929v70.879861h36.879928s73.359857 6.840987 73.359857 73.140857c0 0 0.779998 73.279857-75.239853 73.279857l-34.999932 2.119996 0.759999 144.019719 34.399933-0.02s75.879852-0.02 75.879852 77.699848c0 0-7.057986 70.879862-76.179852 70.879862l-34.699932 0.019-0.619999 143.980718h36.740929s73.559856 2.279996 73.559856 75.437853c0 0-0.14 75.402853-76.179851 75.402853l-33.199935-2.279996-0.46 73.159857s42.239918 109.718786 106.759792 109.718786h705.018623s34.557933-6.877987 34.557932-34.298933V75.421853s-6.899987-36.580929-36.859928-36.580929zM306.9634 255.9795h479.238064v292.579429h-479.239064V255.9795zM897.939246 916.55821s1.159998 34.279933-37.999926 34.279933H233.243544s-38.019926-12.559975-38.019925-37.719926l627.838773-0.36c20.35996 0 36.879928-16.379968 36.879928-36.579928V69.719864l37.998926 12.559975v834.278371z"></path><path d="M694.042644 329.119357H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.319964 0 10.07998 8.239984 18.259964 18.439964 18.259965h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.259965 0-10.11898-8.239984-18.319964-18.419964-18.319964z m0 109.719786H399.14022c-10.19998 0-18.439964 8.199984-18.439964 18.279964 0 10.11998 8.239984 18.299964 18.439964 18.299964h294.901424c10.17898 0 18.418964-8.179984 18.418964-18.299964 0-10.07998-8.239984-18.279964-18.419964-18.279964z"></path></symbol><symbol id="icon-chapter" viewBox="0 0 1024 1024"><path d="M832 128v768H256V128h576m64-64H192v896h704V64z" ></path><path d="M161.3 296.2v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z m0 192v-0.2H320v-40H161.3c-35.5 0-64.3 28.7-64.3 64s28.8 64 64.3 64h90v-40h-90v-0.2c-13.3 0-24.1-10.7-24.1-23.8 0-13.1 10.8-23.8 24.1-23.8z" ></path><path d="M288 277a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 469a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM288 662a32 32 0 1 0 64 0 32 32 0 1 0-64 0zM384 256h385v40H384z m0 128h385v40H384z m0 128h385v40H384z m0 128h256v40H384z" ></path></symbol><symbol id="icon-expand" viewBox="0 0 1024 1024"><path d="M731.093333 128c82.346667 0 158.08 20.906667 218.88 56.32 6.4 3.626667 10.026667 10.88 10.026667 18.346667v667.306666c0 12.16-9.386667 20.906667-19.84 20.906667-2.986667 0-5.76-0.64-8.746667-2.133333-57.386667-29.226667-126.08-46.08-200.32-46.08s-141.866667 17.066667-199.04 45.653333c-2.986667 1.493333-5.973333 2.986667-8.96 4.693333-0.426667 0.213333-0.853333 0.64-1.493333 0.853334-5.973333 3.2-13.226667 3.2-19.2 0-3.413333-1.92-6.826667-3.626667-10.453333-5.546667-56.96-28.586667-125.44-45.653333-199.04-45.653333s-143.146667 16.853333-200.32 46.08c-2.773333 1.493333-5.76 2.133333-8.746667 2.133333-10.453333 0-19.84-8.746667-19.84-20.906667V202.453333c0-7.68 3.84-14.72 10.026667-18.346666C134.826667 148.693333 210.56 128 292.906667 128S451.2 149.333333 512 184.746667C572.8 149.333333 648.746667 128 731.093333 128zM701.866667 187.733333c-71.466667 0-137.386667 17.92-189.866667 47.786667-52.693333-29.866667-118.613333-47.786667-189.866667-47.786667s-136.96 17.493333-189.653333 47.36c-5.546667 3.2-8.746667 9.173333-8.746667 15.573334v563.626666c0 10.24 8.106667 17.493333 17.066667 17.493334 2.56 0 5.12-0.64 7.466667-1.92 49.706667-24.533333 109.44-38.826667 173.653333-38.826667s123.093333 14.293333 172.373333 38.4c3.2 1.493333 6.186667 2.986667 9.173334 4.693333 5.12 2.773333 11.52 2.773333 16.64 0 0.64-0.213333 0.853333-0.426667 1.493333-0.853333l7.68-3.84c49.493333-24.106667 108.8-38.4 172.373333-38.4s123.946667 14.293333 173.653334 38.826667c2.56 1.28 5.12 1.92 7.466666 1.92 8.96 0 17.066667-7.466667 17.066667-17.493334V250.666667c0-6.4-3.2-12.373333-8.746667-15.573334-52.693333-29.866667-118.186667-47.573333-189.653333-47.573333z" ></path><path d="M949.333333 771.84c-123.306667-71.68-260.266667-80.64-407.466666-26.666667V221.866667c0-16.426667-13.44-29.866667-29.866667-29.866667s-29.866667 13.44-29.866667 29.866667v529.066666c-120.533333-55.466667-253.226667-53.973333-395.093333 5.12-10.88 4.48-16 17.066667-11.52 27.946667 4.48 10.88 17.066667 16 27.946667 11.52 139.306667-58.026667 263.253333-57.173333 378.666666 2.773333v46.506667c0 16.426667 13.44 29.866667 29.866667 29.866667s29.866667-13.44 29.866667-29.866667v-53.973333c142.08-56.32 268.586667-50.56 386.133333 17.706666 3.413333 1.92 7.04 2.986667 10.666667 2.986667 7.253333 0 14.506667-3.84 18.56-10.666667a21.290667 21.290667 0 0 0-7.68-29.226666z"></path></symbol></svg></div>');for(var l=e.querySelectorAll("p,h1,h2,h3,h4,h5,h6"),u=0;l.length>u;u++)if(n=l[u],o||"h1"!=n.tagName.toLowerCase()||(o=!0),"[toc]"!=n.textContent.trim().toLowerCase()){if(n.tagName)switch(n.tagName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":r=parseInt(n.tagName.substr(1)),i&&(i=I(e,n,i,r))}}else{var c=null;if(o)(c=e.ownerDocument.createElement("div")).classList.add("showdown-toc");else{if(s){n.parentNode.removeChild(n);continue}(c=e.ownerDocument.createElement("div")).classList.add("showdown-toc"),s=c,t.extraDocs.push('<div id="divider" class="divider"></div>');var d=e.ownerDocument.createElement("div");d.id="toc-switch-button",d.classList.add("toc-switch","hidden"),d.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-l"></use></svg>',n.parentNode.insertBefore(d,n);var h="Table Of Contents",f=document.children[0].lang;f&&("zh-cn"!==(f=f.toLowerCase())&&"zh-hans"!==f||(h="目录")),c.id="total-showdown-toc",c.classList.add("total-toc"),c.innerHTML='<div class="toc-pin"><span class="toc-pin-text">'.concat(h,'</span><div class="toc-fold-wrap"><div id="toc-fold-icon" class="toc-fold toc-icon" data-name="toc-expand"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-toc"></use></svg></div><div id="toc-close-icon" class="toc-close toc-icon"><svg class="icon" aria-hidden="true"><use xlink:href="#icon-chapter-s"></use></svg></div></div></div>')}var p=e.ownerDocument.createElement("div");p.className="toc-view",c.appendChild(p);var g={parentNode:null,toc:p,headingLevel:r,preLevel:r,standalone:!1};if(i)if(r>i.headingLevel)g.parentNode=i;else{for(var m=i;m.headingLevel>r;)m=m.parentNode;m&&(g.parentNode=r===m.headingLevel?m.parentNode:m)}a=!0,(i=g).standalone=!o,o?n.parentNode.replaceChild(c,n):n.parentNode.removeChild(n)}for(s&&t.extraDocs.push(s.outerHTML);i;){var _=i;i=_.parentNode,_.parentNode=null,_.toc=null,_.headingLevel=null,_.preLevel=null}return a}(n,this.config)?n.innerHTML:e}if("object"!==a(e)||!e||!this.config.extraDocs||!Array.isArray(this.config.extraDocs))return!1;var r=e;return this.config.extraDocs.forEach(function(e){A.addExtra(r,e)}),A.addScript(r,{inner:[{id:"showdown-toc",code:q,host:"#total-showdown-toc"}]}),r}}]}function U(){return[{type:"output",filter:function(e){var t="css-ex-";A.removeAllStylesheet(t);var n=e.wrapper;if(!n)return!1;var r=n.querySelectorAll("a");return!!r.length&&(r.forEach(function(n){try{if(n.href&&"string"==typeof n.href&&"css:"===n.href.substr(0,4)){var r=n.href.substr(4).trim(),i="".concat(A.hashString(r));A.addCssLink(e,r,t+i),n.parentNode&&"P"===n.parentNode.tagName&&n.parentNode.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n),r=S.getUrl(r),A.loadStylesheet(r,t+i)}}catch(e){}}),e)}}]}if("undefined"==typeof window)throw Error("The showdown viz extension can only be used in browser environment!");if(void 0===F)var F=window.Viz||void 0;var Z=["circo","dot","neato","osage","twopi"];function $(){return!(void 0===F||!F||void 0===F.instance)}var W=!1;function V(e,t){if($()){var n=t.id,r=t.className,i=t.data,a=t.element,o=t.element.dataset.lang,s="dot";if(o){var l=JSON.parse(o);l&&l.engine&&-1!=Z.indexOf(l.engine)&&(s=l.engine)}F.instance().then(function(t){var o=t.renderString(i,{format:"svg",engine:s});a.parentNode.outerHTML='<div id="'.concat(n,'" class="').concat(r,'">').concat(o,"</div>"),e(!0)})}else setTimeout(function(){V(e,t)},10)}function Y(e){return new Promise(function(t){var n=A.createElementMeta("viz",e);if(!n)return t(!1);V(t,n)})}function G(e){return function(){var e=$();if("undefined"!=typeof window){if(W)return e;e||(W=!0,S.loadScript("Viz").then(function(e){F=A.interopDefault(window[e])}))}}(),new Promise(function(t){var n=[];e.forEach(function(e){n.push(Y(e))}),Promise.all(n).then(function(){t(!0)})})}function J(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.dot.language-dot");return!!n.length&&G(n).then(function(){return e})}}]}var K="vega";if("undefined"==typeof window)throw Error("The showdown vega extension can only be used in browser environment!");if(void 0===X)var X=window.vegaEmbed||void 0;function Q(){return!(void 0===X||!X)}var ee=!1;function te(e,t,n,r){var i=A.createElementMeta(K,e);if(!i)return Promise.resolve(!1);var a=i.container,o={id:a,code:function(e,t){var n=function(){var n=eval,r=document.getElementById(e.id);if(r)if(e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()){var i=n("(function(){".concat(e.data,"; return option;})();"));X(r,i,t)}else{var a=JSON.parse(e.data);X(r,a,t)}};return n.toString=function(){return e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()?"function(){\n let el = document.getElementById('".concat(e.id,"');\n if (el) {\n ").concat(e.data,";\n const config = ").concat(JSON.stringify(t),";\n vegaEmbed(el, option, config);\n }\n }"):"function(){\n let el = document.getElementById('".concat(e.id,"');\n if (el) {\n const option = ").concat(e.data,";\n const config = ").concat(JSON.stringify(t),";\n vegaEmbed(el, option, config);\n }\n }")},n}(i,t),host:"#".concat(a)};return n.push(o),new Promise(function(e){re(e,i)})}function ne(e,t,n,r){var i={outer:[{name:K,src:S.getSrc(!1,K,"jsdelivr")},{name:"vegaLite",src:S.getSrc(!1,"vegaLite","jsdelivr")},{name:"vegaEmbed",src:S.getSrc(!1,"vegaEmbed","jsdelivr")}],inner:[]};return n.push(i),function(){var e=Q();if("undefined"!=typeof window){if(ee)return e;e||(ee=!0,S.loadScript(K).then(function(){return S.loadScript("vegaLite")}).then(function(){return S.loadScript("vegaEmbed")}).then(function(e){X=A.interopDefault(window[e])}))}}(),new Promise(function(n){var a=[];e.forEach(function(e){a.push(te(e,r,i.inner))}),t.forEach(function(e){a.push(te(e,r,i.inner))}),Promise.all(a).then(function(){n(!0)})})}function re(e,t){if(Q()){var n=t.id,r=t.className;return t.element.parentNode.outerHTML='<div id="'.concat(t.container,'" class="').concat(r,'"><div id="').concat(n,'"></div></div>'),e(!0)}setTimeout(function(){re(e,t)},10)}function ie(e){var t=function(){return r({actions:{editor:!1},theme:"vox",tooltip:!1,renderer:"svg"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.vega.language-vega"),r=t.querySelectorAll("code.vega-lite.language-vega-lite");return!(!n.length&&!r.length)&&ne(n,r,e.scripts,this.config).then(function(){return e})}}]}function ae(){var e=new DOMParser;return[{type:"output",filter:function(t){var n=e.parseFromString(t,"text/html"),r=void 0!==n.body?n.body:n;return function(e){for(var t=null,n=null,r=!1,i=e.querySelectorAll("p, li, h1, h2, h3, h4, h5, h6, div.paragraph"),a=0;i.length>a;a++)for(n=(t=i[a]).firstChild;n;){if(3===n.nodeType){var o=n.nodeValue.match(/^([\s\S]*?)([:-]-:)(?:[\s]?)([\s\S]*)$/);o&&(":-:"===o[2]?(n.nodeValue=o[3],t.className?t.className+=" align-center":t.className="align-center",r=!0):"--:"===o[2]&&(n.nodeValue=o[3],t.className?t.className+=" align-right":t.className="align-right",r=!0));break}n=n.nextSibling}return r}(r)?r.innerHTML:t}}]}var oe=".",se={input:'"',tag:"mtext",output:"mbox",tex:null,ttype:10},le=[{input:"alpha",tag:"mi",output:"α",tex:null,ttype:0},{input:"beta",tag:"mi",output:"β",tex:null,ttype:0},{input:"chi",tag:"mi",output:"χ",tex:null,ttype:0},{input:"delta",tag:"mi",output:"δ",tex:null,ttype:0},{input:"Delta",tag:"mo",output:"Δ",tex:null,ttype:0},{input:"epsi",tag:"mi",output:"ε",tex:"epsilon",ttype:0},{input:"varepsilon",tag:"mi",output:"ɛ",tex:null,ttype:0},{input:"eta",tag:"mi",output:"η",tex:null,ttype:0},{input:"gamma",tag:"mi",output:"γ",tex:null,ttype:0},{input:"Gamma",tag:"mo",output:"Γ",tex:null,ttype:0},{input:"iota",tag:"mi",output:"ι",tex:null,ttype:0},{input:"kappa",tag:"mi",output:"κ",tex:null,ttype:0},{input:"lambda",tag:"mi",output:"λ",tex:null,ttype:0},{input:"Lambda",tag:"mo",output:"Λ",tex:null,ttype:0},{input:"lamda",tag:"mi",output:"lambda",tex:null,ttype:8},{input:"Lamda",tag:"mi",output:"Lambda",tex:null,ttype:8},{input:"mu",tag:"mi",output:"μ",tex:null,ttype:0},{input:"nu",tag:"mi",output:"ν",tex:null,ttype:0},{input:"omega",tag:"mi",output:"ω",tex:null,ttype:0},{input:"Omega",tag:"mo",output:"Ω",tex:null,ttype:0},{input:"phi",tag:"mi",output:"φ",tex:null,ttype:0},{input:"varphi",tag:"mi",output:"ϕ",tex:null,ttype:0},{input:"Phi",tag:"mo",output:"Φ",tex:null,ttype:0},{input:"pi",tag:"mi",output:"π",tex:null,ttype:0},{input:"Pi",tag:"mo",output:"Π",tex:null,ttype:0},{input:"psi",tag:"mi",output:"ψ",tex:null,ttype:0},{input:"Psi",tag:"mi",output:"Ψ",tex:null,ttype:0},{input:"rho",tag:"mi",output:"ρ",tex:null,ttype:0},{input:"sigma",tag:"mi",output:"σ",tex:null,ttype:0},{input:"Sigma",tag:"mo",output:"Σ",tex:null,ttype:0},{input:"tau",tag:"mi",output:"τ",tex:null,ttype:0},{input:"theta",tag:"mi",output:"θ",tex:null,ttype:0},{input:"vartheta",tag:"mi",output:"ϑ",tex:null,ttype:0},{input:"Theta",tag:"mo",output:"Θ",tex:null,ttype:0},{input:"upsilon",tag:"mi",output:"υ",tex:null,ttype:0},{input:"xi",tag:"mi",output:"ξ",tex:null,ttype:0},{input:"Xi",tag:"mo",output:"Ξ",tex:null,ttype:0},{input:"zeta",tag:"mi",output:"ζ",tex:null,ttype:0},{input:"*",tag:"mo",output:"⋅",tex:"cdot",ttype:0},{input:"**",tag:"mo",output:"∗",tex:"ast",ttype:0},{input:"***",tag:"mo",output:"⋆",tex:"star",ttype:0},{input:"//",tag:"mo",output:"/",tex:"/",ttype:0,val:!0,notexcopy:!0},{input:"\\\\",tag:"mo",output:"\\",tex:"backslash",ttype:0},{input:"setminus",tag:"mo",output:"\\",tex:null,ttype:0},{input:"xx",tag:"mo",output:"×",tex:"times",ttype:0},{input:"|><",tag:"mo",output:"⋉",tex:"ltimes",ttype:0},{input:"><|",tag:"mo",output:"⋊",tex:"rtimes",ttype:0},{input:"|><|",tag:"mo",output:"⋈",tex:"bowtie",ttype:0},{input:"-:",tag:"mo",output:"÷",tex:"div",ttype:0},{input:"divide",tag:"mo",output:"-:",tex:null,ttype:8},{input:"@",tag:"mo",output:"∘",tex:"circ",ttype:0},{input:"o+",tag:"mo",output:"⊕",tex:"oplus",ttype:0},{input:"ox",tag:"mo",output:"⊗",tex:"otimes",ttype:0},{input:"o.",tag:"mo",output:"⊙",tex:"odot",ttype:0},{input:"sum",tag:"mo",output:"∑",tex:null,ttype:7},{input:"prod",tag:"mo",output:"∏",tex:null,ttype:7},{input:"^^",tag:"mo",output:"∧",tex:"wedge",ttype:0},{input:"^^^",tag:"mo",output:"⋀",tex:"bigwedge",ttype:7},{input:"vv",tag:"mo",output:"∨",tex:"vee",ttype:0},{input:"vvv",tag:"mo",output:"⋁",tex:"bigvee",ttype:7},{input:"nn",tag:"mo",output:"∩",tex:"cap",ttype:0},{input:"nnn",tag:"mo",output:"⋂",tex:"bigcap",ttype:7},{input:"uu",tag:"mo",output:"∪",tex:"cup",ttype:0},{input:"uuu",tag:"mo",output:"⋃",tex:"bigcup",ttype:7},{input:"overset",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"underset",tag:"munder",output:"stackrel",tex:null,ttype:2},{input:"!=",tag:"mo",output:"≠",tex:"ne",ttype:0},{input:":=",tag:"mo",output:":=",tex:null,ttype:0},{input:"lt",tag:"mo",output:"<",tex:null,ttype:0},{input:"gt",tag:"mo",output:">",tex:null,ttype:0},{input:"<=",tag:"mo",output:"≤",tex:"le",ttype:0},{input:"lt=",tag:"mo",output:"≤",tex:"leq",ttype:0},{input:"gt=",tag:"mo",output:"≥",tex:"geq",ttype:0},{input:">=",tag:"mo",output:"≥",tex:"ge",ttype:0},{input:"-<",tag:"mo",output:"≺",tex:"prec",ttype:0},{input:"-lt",tag:"mo",output:"≺",tex:null,ttype:0},{input:">-",tag:"mo",output:"≻",tex:"succ",ttype:0},{input:"-<=",tag:"mo",output:"⪯",tex:"preceq",ttype:0},{input:">-=",tag:"mo",output:"⪰",tex:"succeq",ttype:0},{input:"in",tag:"mo",output:"∈",tex:null,ttype:0},{input:"!in",tag:"mo",output:"∉",tex:"notin",ttype:0},{input:"sub",tag:"mo",output:"⊂",tex:"subset",ttype:0},{input:"sup",tag:"mo",output:"⊃",tex:"supset",ttype:0},{input:"sube",tag:"mo",output:"⊆",tex:"subseteq",ttype:0},{input:"supe",tag:"mo",output:"⊇",tex:"supseteq",ttype:0},{input:"-=",tag:"mo",output:"≡",tex:"equiv",ttype:0},{input:"~=",tag:"mo",output:"≅",tex:"stackrel{\\sim}{=}",notexcopy:!0,ttype:0},{input:"cong",tag:"mo",output:"~=",tex:null,ttype:8},{input:"~~",tag:"mo",output:"≈",tex:"approx",ttype:0},{input:"prop",tag:"mo",output:"∝",tex:"propto",ttype:0},{input:"and",tag:"mtext",output:"and",tex:null,ttype:6},{input:"or",tag:"mtext",output:"or",tex:null,ttype:6},{input:"not",tag:"mo",output:"¬",tex:"neg",ttype:0},{input:"=>",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"implies",tag:"mo",output:"=>",tex:null,ttype:8},{input:"if",tag:"mo",output:"if",tex:null,ttype:6},{input:"<=>",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"iff",tag:"mo",output:"<=>",tex:null,ttype:8},{input:"AA",tag:"mo",output:"∀",tex:"forall",ttype:0},{input:"EE",tag:"mo",output:"∃",tex:"exists",ttype:0},{input:"_|_",tag:"mo",output:"⊥",tex:"bot",ttype:0},{input:"TT",tag:"mo",output:"⊤",tex:"top",ttype:0},{input:"|--",tag:"mo",output:"⊢",tex:"vdash",ttype:0},{input:"|==",tag:"mo",output:"⊨",tex:"models",ttype:0},{input:"(",tag:"mo",output:"(",tex:null,ttype:4,val:!0},{input:")",tag:"mo",output:")",tex:null,ttype:5,val:!0},{input:"[",tag:"mo",output:"[",tex:null,ttype:4,val:!0},{input:"]",tag:"mo",output:"]",tex:null,ttype:5,val:!0},{input:"left(",tag:"mo",output:"(",tex:"(",notexcopy:!0,ttype:4,val:!0},{input:"right)",tag:"mo",output:")",tex:")",notexcopy:!0,ttype:5,val:!0},{input:"left[",tag:"mo",output:"[",tex:"[",notexcopy:!0,ttype:4,val:!0},{input:"right]",tag:"mo",output:"]",tex:"]",notexcopy:!0,ttype:5,val:!0},{input:"{",tag:"mo",output:"{",tex:"lbrace",ttype:4},{input:"}",tag:"mo",output:"}",tex:"rbrace",ttype:5},{input:"|",tag:"mo",output:"|",tex:null,ttype:9,val:!0},{input:"|:",tag:"mo",output:"|",tex:"|",ttype:4,notexcopy:!0,val:!0},{input:":|",tag:"mo",output:"|",tex:"|",ttype:5,notexcopy:!0,val:!0},{input:":|:",tag:"mo",output:"|",tex:"|",ttype:0,notexcopy:!0,val:!0},{input:"(:",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:":)",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"<<",tag:"mo",output:"〈",tex:"langle",ttype:4},{input:">>",tag:"mo",output:"〉",tex:"rangle",ttype:5},{input:"{:",tag:"mo",output:"{:",tex:null,ttype:4,invisible:!0},{input:":}",tag:"mo",output:":}",tex:null,ttype:5,invisible:!0},{input:"int",tag:"mo",output:"∫",tex:null,ttype:0},{input:"dx",tag:"mi",output:"{:d x:}",tex:null,ttype:8},{input:"dy",tag:"mi",output:"{:d y:}",tex:null,ttype:8},{input:"dz",tag:"mi",output:"{:d z:}",tex:null,ttype:8},{input:"dt",tag:"mi",output:"{:d t:}",tex:null,ttype:8},{input:"oint",tag:"mo",output:"∮",tex:null,ttype:0},{input:"del",tag:"mo",output:"∂",tex:"partial",ttype:0},{input:"grad",tag:"mo",output:"∇",tex:"nabla",ttype:0},{input:"+-",tag:"mo",output:"±",tex:"pm",ttype:0},{input:"O/",tag:"mo",output:"∅",tex:"emptyset",ttype:0},{input:"oo",tag:"mo",output:"∞",tex:"infty",ttype:0},{input:"aleph",tag:"mo",output:"ℵ",tex:null,ttype:0},{input:"...",tag:"mo",output:"...",tex:"ldots",ttype:0},{input:":.",tag:"mo",output:"∴",tex:"therefore",ttype:0},{input:":'",tag:"mo",output:"∵",tex:"because",ttype:0},{input:"/_",tag:"mo",output:"∠",tex:"angle",ttype:0},{input:"/_\\",tag:"mo",output:"△",tex:"triangle",ttype:0},{input:"\\ ",tag:"mo",output:" ",tex:null,ttype:0,val:!0},{input:"frown",tag:"mo",output:"⌢",tex:null,ttype:0},{input:"%",tag:"mo",output:"%",tex:"%",ttype:0,notexcopy:!0},{input:"quad",tag:"mo",output:" ",tex:null,ttype:0},{input:"qquad",tag:"mo",output:" ",tex:null,ttype:0},{input:"cdots",tag:"mo",output:"⋯",tex:null,ttype:0},{input:"vdots",tag:"mo",output:"⋮",tex:null,ttype:0},{input:"ddots",tag:"mo",output:"⋱",tex:null,ttype:0},{input:"diamond",tag:"mo",output:"⋄",tex:null,ttype:0},{input:"square",tag:"mo",output:"□",tex:"boxempty",ttype:0},{input:"|__",tag:"mo",output:"⌊",tex:"lfloor",ttype:0},{input:"__|",tag:"mo",output:"⌋",tex:"rfloor",ttype:0},{input:"|~",tag:"mo",output:"⌈",tex:"lceil",ttype:0},{input:"lceiling",tag:"mo",output:"|~",tex:null,ttype:8},{input:"~|",tag:"mo",output:"⌉",tex:"rceil",ttype:0},{input:"rceiling",tag:"mo",output:"~|",tex:null,ttype:8},{input:"CC",tag:"mo",output:"ℂ",tex:"mathbb{C}",ttype:0,notexcopy:!0},{input:"NN",tag:"mo",output:"ℕ",tex:"mathbb{N}",ttype:0,notexcopy:!0},{input:"QQ",tag:"mo",output:"ℚ",tex:"mathbb{Q}",ttype:0,notexcopy:!0},{input:"RR",tag:"mo",output:"ℝ",tex:"mathbb{R}",ttype:0,notexcopy:!0},{input:"ZZ",tag:"mo",output:"ℤ",tex:"mathbb{Z}",ttype:0,notexcopy:!0},{input:"f",tag:"mi",output:"f",tex:null,ttype:1,func:!0,val:!0},{input:"g",tag:"mi",output:"g",tex:null,ttype:1,func:!0,val:!0},{input:"''",tag:"mo",output:"''",tex:null,val:!0},{input:"'''",tag:"mo",output:"'''",tex:null,val:!0},{input:"''''",tag:"mo",output:"''''",tex:null,val:!0},{input:"lim",tag:"mo",output:"lim",tex:null,ttype:7},{input:"Lim",tag:"mo",output:"Lim",tex:null,ttype:7},{input:"sin",tag:"mo",output:"sin",tex:null,ttype:1,func:!0},{input:"cos",tag:"mo",output:"cos",tex:null,ttype:1,func:!0},{input:"tan",tag:"mo",output:"tan",tex:null,ttype:1,func:!0},{input:"arcsin",tag:"mo",output:"arcsin",tex:null,ttype:1,func:!0},{input:"arccos",tag:"mo",output:"arccos",tex:null,ttype:1,func:!0},{input:"arctan",tag:"mo",output:"arctan",tex:null,ttype:1,func:!0},{input:"sinh",tag:"mo",output:"sinh",tex:null,ttype:1,func:!0},{input:"cosh",tag:"mo",output:"cosh",tex:null,ttype:1,func:!0},{input:"tanh",tag:"mo",output:"tanh",tex:null,ttype:1,func:!0},{input:"cot",tag:"mo",output:"cot",tex:null,ttype:1,func:!0},{input:"coth",tag:"mo",output:"coth",tex:null,ttype:1,func:!0},{input:"sech",tag:"mo",output:"sech",tex:null,ttype:1,func:!0},{input:"csch",tag:"mo",output:"csch",tex:null,ttype:1,func:!0},{input:"sec",tag:"mo",output:"sec",tex:null,ttype:1,func:!0},{input:"csc",tag:"mo",output:"csc",tex:null,ttype:1,func:!0},{input:"log",tag:"mo",output:"log",tex:null,ttype:1,func:!0},{input:"ln",tag:"mo",output:"ln",tex:null,ttype:1,func:!0},{input:"abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"norm",tag:"mo",output:"norm",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\|","\\|"]},{input:"floor",tag:"mo",output:"floor",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lfloor","\\rfloor"]},{input:"ceil",tag:"mo",output:"ceil",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["\\lceil","\\rceil"]},{input:"Sin",tag:"mo",output:"Sin",tex:null,ttype:1,func:!0},{input:"Cos",tag:"mo",output:"Cos",tex:null,ttype:1,func:!0},{input:"Tan",tag:"mo",output:"Tan",tex:null,ttype:1,func:!0},{input:"Arcsin",tag:"mo",output:"Arcsin",tex:null,ttype:1,func:!0},{input:"Arccos",tag:"mo",output:"Arccos",tex:null,ttype:1,func:!0},{input:"Arctan",tag:"mo",output:"Arctan",tex:null,ttype:1,func:!0},{input:"Sinh",tag:"mo",output:"Sinh",tex:null,ttype:1,func:!0},{input:"Cosh",tag:"mo",output:"Cosh",tex:null,ttype:1,func:!0},{input:"Tanh",tag:"mo",output:"Tanh",tex:null,ttype:1,func:!0},{input:"Cot",tag:"mo",output:"Cot",tex:null,ttype:1,func:!0},{input:"Sec",tag:"mo",output:"Sec",tex:null,ttype:1,func:!0},{input:"Csc",tag:"mo",output:"Csc",tex:null,ttype:1,func:!0},{input:"Log",tag:"mo",output:"Log",tex:null,ttype:1,func:!0},{input:"Ln",tag:"mo",output:"Ln",tex:null,ttype:1,func:!0},{input:"Abs",tag:"mo",output:"abs",tex:null,ttype:1,notexcopy:!0,rewriteleftright:["|","|"]},{input:"det",tag:"mo",output:"det",tex:null,ttype:1,func:!0},{input:"exp",tag:"mo",output:"exp",tex:null,ttype:1,func:!0},{input:"dim",tag:"mo",output:"dim",tex:null,ttype:0},{input:"mod",tag:"mo",output:"mod",tex:"text{mod}",ttype:0,notexcopy:!0},{input:"gcd",tag:"mo",output:"gcd",tex:null,ttype:1,func:!0},{input:"lcm",tag:"mo",output:"lcm",tex:"text{lcm}",ttype:1,func:!0,notexcopy:!0},{input:"lub",tag:"mo",output:"lub",tex:null,ttype:0},{input:"glb",tag:"mo",output:"glb",tex:null,ttype:0},{input:"min",tag:"mo",output:"min",tex:null,ttype:7},{input:"max",tag:"mo",output:"max",tex:null,ttype:7},{input:"uarr",tag:"mo",output:"↑",tex:"uparrow",ttype:0},{input:"darr",tag:"mo",output:"↓",tex:"downarrow",ttype:0},{input:"rarr",tag:"mo",output:"→",tex:"rightarrow",ttype:0},{input:"->",tag:"mo",output:"→",tex:"to",ttype:0},{input:">->",tag:"mo",output:"↣",tex:"rightarrowtail",ttype:0},{input:"->>",tag:"mo",output:"↠",tex:"twoheadrightarrow",ttype:0},{input:">->>",tag:"mo",output:"⤖",tex:"twoheadrightarrowtail",ttype:0},{input:"|->",tag:"mo",output:"↦",tex:"mapsto",ttype:0},{input:"larr",tag:"mo",output:"←",tex:"leftarrow",ttype:0},{input:"harr",tag:"mo",output:"↔",tex:"leftrightarrow",ttype:0},{input:"rArr",tag:"mo",output:"⇒",tex:"Rightarrow",ttype:0},{input:"lArr",tag:"mo",output:"⇐",tex:"Leftarrow",ttype:0},{input:"hArr",tag:"mo",output:"⇔",tex:"Leftrightarrow",ttype:0},{input:"sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"root",tag:"mroot",output:"root",tex:null,ttype:2},{input:"frac",tag:"mfrac",output:"/",tex:null,ttype:2},{input:"/",tag:"mfrac",output:"/",tex:null,ttype:3},{input:"stackrel",tag:"mover",output:"stackrel",tex:null,ttype:2},{input:"_",tag:"msub",output:"_",tex:null,ttype:3},{input:"^",tag:"msup",output:"^",tex:null,ttype:3},{input:"cancel",tag:"menclose",output:"cancel",tex:null,ttype:1},{input:"Sqrt",tag:"msqrt",output:"sqrt",tex:null,ttype:1},{input:"hat",tag:"mover",output:"^",tex:null,ttype:1,acc:!0},{input:"bar",tag:"mover",output:"¯",tex:"overline",ttype:1,acc:!0},{input:"vec",tag:"mover",output:"→",tex:null,ttype:1,acc:!0},{input:"tilde",tag:"mover",output:"~",tex:null,ttype:1,acc:!0},{input:"dot",tag:"mover",output:".",tex:null,ttype:1,acc:!0},{input:"ddot",tag:"mover",output:"..",tex:null,ttype:1,acc:!0},{input:"overarc",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"overparen",tag:"mover",output:"⏜",tex:"stackrel{\\frown}",notexcopy:!0,ttype:1,acc:!0},{input:"ul",tag:"munder",output:"̲",tex:"underline",ttype:1,acc:!0},{input:"ubrace",tag:"munder",output:"⏟",tex:"underbrace",ttype:1,acc:!0},{input:"obrace",tag:"mover",output:"⏞",tex:"overbrace",ttype:1,acc:!0},{input:"text",tag:"mtext",output:"text",tex:null,ttype:10},{input:"mbox",tag:"mtext",output:"mbox",tex:null,ttype:10},se,{input:"color",tag:"mstyle",ttype:2},{input:"bb",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"bb",tex:"mathbf",ttype:1,notexcopy:!0},{input:"mathbf",tag:"mstyle",atname:"mathvariant",atval:"bold",output:"mathbf",tex:null,ttype:1},{input:"sf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"sf",tex:"mathsf",ttype:1,notexcopy:!0},{input:"mathsf",tag:"mstyle",atname:"mathvariant",atval:"sans-serif",output:"mathsf",tex:null,ttype:1},{input:"bbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"bbb",tex:"mathbb",ttype:1,notexcopy:!0},{input:"mathbb",tag:"mstyle",atname:"mathvariant",atval:"double-struck",output:"mathbb",tex:null,ttype:1},{input:"cc",tag:"mstyle",atname:"mathvariant",atval:"script",output:"cc",tex:"mathcal",ttype:1,notexcopy:!0},{input:"mathcal",tag:"mstyle",atname:"mathvariant",atval:"script",output:"mathcal",tex:null,ttype:1},{input:"tt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"tt",tex:"mathtt",ttype:1,notexcopy:!0},{input:"mathtt",tag:"mstyle",atname:"mathvariant",atval:"monospace",output:"mathtt",tex:null,ttype:1},{input:"fr",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"fr",tex:"mathfrak",ttype:1,notexcopy:!0},{input:"mathfrak",tag:"mstyle",atname:"mathvariant",atval:"fraktur",output:"mathfrak",tex:null,ttype:1}];function ue(e,t){return e.input>t.input?1:-1}var ce,de,he,fe=[];function pe(e,t){var n;n="\\"==e.charAt(t)&&"\\"!=e.charAt(t+1)&&" "!=e.charAt(t+1)?e.slice(t+1):e.slice(t);for(var r=0;n.length>r&&32>=n.charCodeAt(r);r+=1);return n.slice(r)}function ge(e,t,n){if(0==n){var r,i;for(n=-1,r=e.length;r>n+1;)t>e[i=n+r>>1]?n=i:r=i;return r}for(var a=n;e.length>a&&t>e[a];a++);return a}function me(e){for(var t,n,r,i=0,a="",o=!0,s=1;e.length>=s&&o;s++)n=e.slice(0,s),i=ge(fe,n,i),fe.length>i&&e.slice(0,fe[i].length)==fe[i]&&(t=i,s=(a=fe[i]).length),o=fe.length>i&&e.slice(0,fe[i].length)>=fe[i];if(de=he,""!=a)return he=le[t].ttype,le[t];he=0,i=1,n=e.slice(0,1);for(var l=!0;n>="0"&&"9">=n&&e.length>=i;)n=e.slice(i,i+1),i++;if(n==oe&&(n=e.slice(i,i+1))>="0"&&"9">=n)for(l=!1,i++;n>="0"&&"9">=n&&e.length>=i;)n=e.slice(i,i+1),i++;return l&&i>1||i>2?(n=e.slice(0,i-1),r="mn"):(i=2,r=("A">(n=e.slice(0,1))||n>"Z")&&("a">n||n>"z")?"mo":"mi"),"-"==n&&3==de?(he=3,{input:n,tag:r,output:n,ttype:1,func:!0,val:!0}):{input:n,tag:r,output:n,ttype:0,val:!0}}function _e(e){var t;if("{"==e.charAt(0)&&"}"==e.charAt(e.length-1)){var n=0;"\\left"==(t=e.substr(1,5))?"("==(t=e.charAt(6))||"["==t||"{"==t?n=7:"\\lbrace"==(t=e.substr(6,7))&&(n=13):"("!=(t=e.charAt(1))&&"["!=t||(n=2),n>0&&("\\right)}"==(t=e.substr(e.length-8))||"\\right]}"==t||"\\right.}"==t?e=(e="{"+e.substr(n)).substr(0,e.length-8)+"}":"\\rbrace}"==t&&(e=(e="{"+e.substr(n)).substr(0,e.length-14)+"}"))}return e}function ve(e){var t;return t="boolean"==typeof e.val&&e.val?"":"\\",null==e.tex?t+e.input:t+e.tex}function we(e){var t,n,r,i,a="";if(null==(t=me(e=pe(e,0)))||5==t.ttype&&ce>0)return[null,e];switch(8==t.ttype&&(t=me(e=t.output+pe(e,t.input.length))),t.ttype){case 7:case 0:e=pe(e,t.input.length);var o=ve(t);return"\\"==o.charAt(0)||"mo"==t.tag?[o,e]:["{"+o+"}",e];case 4:ce++,r=ye(e=pe(e,t.input.length),!0),ce--;var s=0;return"\\right"==r[0].substr(0,6)&&(")"==(u=r[0].charAt(6))||"]"==u||"}"==u?s=6:"."==u?s=7:"\\rbrace"==(u=r[0].substr(6,7))&&(s=13)),s>0?(r[0]=r[0].substr(s),n="boolean"==typeof t.invisible&&t.invisible?"{"+r[0]+"}":"{"+ve(t)+r[0]+"}"):n="boolean"==typeof t.invisible&&t.invisible?"{\\left."+r[0]+"}":"{\\left"+ve(t)+r[0]+"}",[n,r[1]];case 10:return t!=se&&(e=pe(e,t.input.length)),-1==(i="{"==e.charAt(0)?e.indexOf("}"):"("==e.charAt(0)?e.indexOf(")"):"["==e.charAt(0)?e.indexOf("]"):t==se?e.slice(1).indexOf('"')+1:0)&&(i=e.length)," "==(u=e.slice(1,i)).charAt(0)&&(a="\\ "),a+="\\text{"+u+"}"," "==u.charAt(u.length-1)&&(a+="\\ "),[a,e=pe(e,i+1)];case 1:return null==(r=we(e=pe(e,t.input.length)))[0]?["{"+ve(t)+"}",e]:"boolean"==typeof t.func&&t.func?"^"==(u=e.charAt(0))||"_"==u||"/"==u||"|"==u||","==u||1==t.input.length&&t.input.match(/\w/)&&"("!=u?["{"+ve(t)+"}",e]:[n="{"+ve(t)+"{"+r[0]+"}}",r[1]]:(r[0]=_e(r[0]),"sqrt"==t.input?["\\sqrt{"+r[0]+"}",r[1]]:"cancel"==t.input?["\\cancel{"+r[0]+"}",r[1]]:void 0!==t.rewriteleftright?["{\\left"+t.rewriteleftright[0]+r[0]+"\\right"+t.rewriteleftright[1]+"}",r[1]]:"boolean"==typeof t.acc&&t.acc?[ve(t)+"{"+r[0]+"}",r[1]]:["{"+ve(t)+"{"+r[0]+"}}",r[1]]);case 2:if(null==(r=we(e=pe(e,t.input.length)))[0])return["{"+ve(t)+"}",e];r[0]=_e(r[0]);var l=we(r[1]);return null==l[0]?["{"+ve(t)+"}",e]:(l[0]=_e(l[0]),[a="color"==t.input?"{\\color{"+r[0].replace(/[\{\}]/g,"")+"}"+l[0]+"}":"root"==t.input?"{\\sqrt["+r[0]+"]{"+l[0]+"}}":"{"+ve(t)+"{"+r[0]+"}{"+l[0]+"}}",l[1]]);case 3:return e=pe(e,t.input.length),[t.output,e];case 6:return e=pe(e,t.input.length),["{\\quad\\text{"+t.input+"}\\quad}",e];case 9:ce++,r=ye(e=pe(e,t.input.length),!1),ce--;var u="";return"|"==(u=r[0].charAt(r[0].length-1))&&","!==e.charAt(0)?[n="{\\left|"+r[0]+"}",r[1]]:[n="{\\mid}",e];default:return e=pe(e,t.input.length),["{"+ve(t)+"}",e]}}function be(e){var t,n,r,i,a;if(n=me(e=pe(e,0)),i=(a=we(e))[0],3==(t=me(e=a[1])).ttype&&"/"!=t.input){if((a=we(e=pe(e,t.input.length)))[0]=null==a[0]?"{}":_e(a[0]),e=a[1],"_"==t.input)if("^"==(r=me(e)).input){var o=we(e=pe(e,r.input.length));o[0]=_e(o[0]),e=o[1],i="{"+i,i+="_{"+a[0]+"}",i+="^{"+o[0]+"}",i+="}"}else i+="_{"+a[0]+"}";else i=i+"^{"+a[0]+"}";void 0!==n.func&&n.func&&(3==(r=me(e)).ttype||5==r.ttype||1>=n.input.length&&4!=r.ttype||(i="{"+i+(a=be(e))[0]+"}",e=a[1]))}return[i,e]}function ye(e,t){var n,r,i,a,o="",s=!1;do{r=(i=be(e=pe(e,0)))[0],3==(n=me(e=i[1])).ttype&&"/"==n.input?((i=be(e=pe(e,n.input.length)))[0]=null==i[0]?"{}":_e(i[0]),e=i[1],r="\\frac{"+(r=_e(r))+"}",o+=r+="{"+i[0]+"}",n=me(e)):null!=r&&(o+=r)}while((5!=n.ttype&&(9!=n.ttype||t)||0==ce)&&null!=n&&""!=n.output);if(5==n.ttype||9==n.ttype){var l=o.length;if(l>2&&"{"==o.charAt(0)&&o.indexOf(",")>0){var u=o.charAt(l-2);if(")"==u||"]"==u){var c=o.charAt(6);if("("==c&&")"==u&&"}"!=n.output||"["==c&&"]"==u){var d="",h=[];h.push(0);var f=!0,p=0,g=[];g[0]=[0];var m=0,_=0,v="";for(a=1;l-1>a;a++)o.charAt(a)==c&&p++,o.charAt(a)==u&&0==--p&&","==o.charAt(a+2)&&"{"==o.charAt(a+3)&&(h.push(a+2),g[m=a+2]=[a+2]),"["!=o.charAt(a)&&"("!=o.charAt(a)&&"{"!=o.charAt(a)||_++,"]"!=o.charAt(a)&&")"!=o.charAt(a)&&"}"!=o.charAt(a)||_--,","==o.charAt(a)&&1==_&&g[m].push(a),0>_&&(m==a+1?a++:f=!1);h.push(l);var w=-1;if(0==p&&h.length>0&&f)for(a=0;h.length-1>a;a++){if(a>0&&(d+="\\\\"),0==a)if(1==g[h[a]].length)var b=[o.substr(h[a]+7,h[a+1]-h[a]-15)];else{b=[o.substring(h[a]+7,g[h[a]][1])];for(var y=2;g[h[a]].length>y;y++)b.push(o.substring(g[h[a]][y-1]+1,g[h[a]][y]));b.push(o.substring(g[h[a]][g[h[a]].length-1]+1,h[a+1]-8))}else if(1==g[h[a]].length)b=[o.substr(h[a]+8,h[a+1]-h[a]-16)];else{for(b=[o.substring(h[a]+8,g[h[a]][1])],y=2;g[h[a]].length>y;y++)b.push(o.substring(g[h[a]][y-1]+1,g[h[a]][y]));b.push(o.substring(g[h[a]][g[h[a]].length-1]+1,h[a+1]-8))}for(y=b.length-1;y>=0;y--)"{\\mid}"==b[y]?(0==a&&(v="|"+v),b.splice(y,1)):0==a&&(v="c"+v);w>0&&b.length!=w?f=!1:-1==w&&(w=b.length),d+=b.join("&")}d="\\begin{array}{"+v+"} "+d+"\\end{array}",f&&(o=d)}}}e=pe(e,n.input.length),"boolean"==typeof n.invisible&&n.invisible?(o+="\\right.",s=!0):(o+=r="\\right"+ve(n),s=!0)}return ce>0&&!s&&(o+="\\right."),[o,e]}function ke(e){return ce=0,null==(e=(e=(e=e.replace(/( |\u00a0| )/g,"")).replace(/>/g,">")).replace(/</g,"<")).match(/\S/)?"":ye(e.replace(/^\s+/g,""),!1)[0]}if(function(){var e,t=le.length;for(e=0;t>e;e++)!le[e].tex||"boolean"==typeof le[e].notexcopy&&le[e].notexcopy||le.push({input:le[e].tex,tag:le[e].tag,output:le[e].output,ttype:le[e].ttype,acc:le[e].acc||!1});!function(){var e;for(le.sort(ue),e=0;le.length>e;e++)fe[e]=le[e].input}()}(),"undefined"==typeof window)throw Error("The showdown katex extension can only be used in browser environment!");if(void 0===xe)var xe=window.katex||void 0;if("undefined"==typeof renderMathInElement)var Ee=window.renderMathInElement||void 0;var Se=0;function Ae(){return!(void 0===Ee||!Ee||void 0===xe||!xe)}var Le=!1,je="katexCSS";function Ce(e){var t=Ae();if("undefined"!=typeof window){if(Le)return t;if(!t)return Le=!0,S.loadStyleSheet(je),S.loadScript("katex").then(function(e){return xe=A.interopDefault(window[e]),S.loadScript("renderMathInElement")}).then(function(t){Ee=A.interopDefault(window[t]),"function"==typeof e&&e&&e(Ee)}).catch(function(e){}),t}return"function"==typeof e&&e&&e(Ee),t}function ze(e,t){if(Ae()){var n=t.className,r=t.input,i=t.data,a=t.cssLink,o=t.options,s=t.element.ownerDocument,l="";if(i instanceof Array)i.forEach(function(e){if(""===e)l+="<br>";else{var t=xe.renderToString(e,o);l+=a?'<div title="'.concat(r,'" class="').concat(n,' css-katex" data-css="').concat(a,'">').concat(t,"</div>"):'<div title="'.concat(r,'" class="').concat(n,'">').concat(t,"</div>")}});else{var u=xe.renderToString(i,o);l=a?'<div title="'.concat(r,'" class="').concat(n,' css-katex" data-css="').concat(a,'">').concat(u,"</div>"):'<div title="'.concat(r,'" class="').concat(n,'">').concat(u,"</div>")}t.element.parentNode.outerHTML=l,--Se||Ee(s.body,o),e(!0)}else setTimeout(function(){ze(e,t)},10)}function Pe(e,t,n){return new Promise(function(r){var i,a=A.createElementMeta("katex",e,function(e){var t;i=e;var r=e.split(/\n[ \f\r\t\v]*\n/);return r.length>1?(t=[],r.forEach(function(e){""!==(e=e.trim())&&(e=n?ke(e):e),t.push(e)})):t=n?ke(i):i,t});if(!a)return r(!1);a.cssLink=S.getSrc(!0,je),a.input=i,a.options=t,ze(r,a)})}function Me(e){return e.replace(/[-[\]/{}()*+?.\\$^|]/g,"\\$&")}var Te=function(){var e=r({displayMode:!0,throwOnError:!1,errorColor:"#ff0000",delimiters:null},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});function t(e,t){return!(!e||"object"!==a(e)||!e.hasOwnProperty(t))}function n(e,n,r){return!!(t(e,n)&&t(e[n],r)&&(i=e[n][r],Array.isArray(i)&&i.length))&&(e[n][r].forEach(function(e){e.display="inline"!==r,"asciimath"===n&&(e.asciimath=!0)}),e[n][r]);var i}return Array.isArray(e.delimiters)?e.delimiters.length||(e.delimiters=[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"@@",right:"@@",display:!0,asciimath:!0},{left:"\\$",right:"\\$",display:!1,asciimath:!0}]):e.delimiters=[].concat(n(e.delimiters,"texmath","display")||[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0}]).concat(n(e.delimiters,"texmath","inline")||[{left:"\\(",right:"\\)",display:!1}]).concat(n(e.delimiters,"asciimath","display")||[{left:"@@",right:"@@",display:!0,asciimath:!0}]).concat(n(e.delimiters,"asciimath","inline")||[{left:"\\$",right:"\\$",display:!1,asciimath:!0}]),e};function Oe(e){var t=0,n=Te(e),r=n.delimiters.map(function(e){var n=e.right,r=e.display,i=e.asciimath;return{test:RegExp("".concat(Me(e.left),"(.+?)").concat(Me(n)),"g"),replacer:function(e,n){return++t,i&&(n=ke(n)),r?"\\[".concat(n,"\\]"):"\\(".concat(n,"\\)")}}});return[{type:"output",config:n,filter:function(e){t=0;var n=e.wrapper;if(!n)return!1;r.length&&n.querySelectorAll(":not(code):not(pre)").forEach(function(e){i(e.childNodes).filter(function(e){return"#text"===e.nodeName&&e.nodeValue.trim()}).forEach(function(e){var t=r.reduce(function(e,t){return e.replace(t.test,t.replacer)},e.nodeValue);e.nodeValue=t})});var a=n.querySelectorAll("code.latex.language-latex"),o=n.querySelectorAll("code.asciimath.language-asciimath");if(!a.length&&!o.length){if(t>0){var s=function(e,t){Ae()?(t(n.ownerDocument.body,l.config),e(!0)):setTimeout(function(){s(e,t)},10)};this.config.cssLink=S.getSrc(!0,je);var l=this;return new Promise(function(e){Ce(function(t){s(e,t)})}).then(function(){return e})}return!1}return this.config.cssLink=S.getSrc(!0,je),A.addCssLink(e,this.config.cssLink,"css-katex"),function(e,t,n){return Se=e.length+t.length,Ce(),new Promise(function(r){var i=[];e.forEach(function(e){i.push(Pe(e,n,!1))}),t.forEach(function(e){i.push(Pe(e,n,!0))}),Promise.all(i).then(function(){r(!0)})})}(a,o,this.config).then(function(){return e})}}]}var Re="echarts";if("undefined"==typeof window)throw Error("The showdown echarts extension can only be used in browser environment!");if(void 0===Ne)var Ne=window.echarts||void 0;function Be(){return!!Ne}var De=!1;function Ie(e,t){if(Be()){var n=t.id,r=t.container,i=t.className,a=t.element.parentNode;t.lang?(t.lang.width||(t.lang.width="400px"),t.lang.height||(t.lang.height="300px")):t.lang={width:"400px",height:"300px"};var o="width:".concat(t.lang.width,"; height:").concat(t.lang.height,";");return a.outerHTML='<div id="'.concat(r,'" class="').concat(i,'" style="').concat(o,'"><div id="').concat(n,'" style="width:100%;height:100%;display:inline-block"></div></div>'),e(!0)}setTimeout(function(){Ie(e,t)},20)}function qe(e,t,n){var i=A.createElementMeta(Re,e);if(!i)return Promise.resolve(!1);n=r(r({},n),{},{ssr:!1,width:i.lang.width,height:i.lang.height});var a={id:i.container,code:function(e,t){var n=function(){var n=eval,r=document.getElementById(e.id);if(r){var i=Ne.getInstanceByDom(r);if(i||(r.innerHTML=""),i=Ne.init(r,null,t),e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()){var a=n("(function(){".concat(e.data,"; return option;})();"));i.setOption(a)}else{var o=JSON.parse(e.data);i.setOption(o)}}};return n.toString=function(){return e.lang&&e.lang.type&&"string"==typeof e.lang.type&&"javascript"==e.lang.type.toLowerCase()?"function(){\n const config = ".concat(JSON.stringify(t),";\n let el = document.getElementById('").concat(e.id,"');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n ").concat(e.data,"\n chart.setOption(option); \n }\n }"):"function(){\n const config = ".concat(JSON.stringify(t),";\n let el = document.getElementById('").concat(e.id,"');\n if (el) {\n let chart = echarts.getInstanceByDom(el);\n if (!chart) {\n el.innerHTML = '';\n }\n chart = echarts.init(el, null, config);\n const option = ").concat(e.data,";\n chart.setOption(option);\n }\n }")},n}(i,n),host:"#".concat(i.container)};return t.push(a),new Promise(function(e){Ie(e,i)})}function He(e,t,n){var r={outer:[{name:Re,src:S.getSrc(!1,Re,"jsdelivr")}],inner:[]};return t.push(r),function(){var e=Be();if("undefined"!=typeof window){if(De)return e;e||(De=!0,S.loadScript(Re).then(function(e){Ne=A.interopDefault(window[e])}))}}(),new Promise(function(t){var i=[];e.forEach(function(e){i.push(qe(e,r.inner,n))}),Promise.all(i).then(function(){t(!0)})})}function Ue(e){var t=function(){return r({renderer:"svg",ssr:!1,tooltip:{show:!0},animation:!0,useDirtyRect:!1},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.echarts.language-echarts");return!!n.length&&He(n,e.scripts,this.config).then(function(){return e})}}]}var Fe="mermaid";if("undefined"==typeof window)throw Error("The showdown mermaid extension can only be used in browser environment!");if(void 0===Ze)var Ze=window.mermaid||void 0;function $e(){return!(void 0===Ze||!Ze)}var We=!1;function Ve(e,t){if($e()){var n=t.className,r=t.element.parentNode;Ze.render(t.id,t.data).then(function(t){r.outerHTML='<div class="'.concat(n,'">').concat(t.svg,"</div>"),e(!0)})}else setTimeout(function(){Ve(e,t)},10)}function Ye(e){return new Promise(function(t){var n=A.createElementMeta(Fe,e);if(!n)return t(!1);Ve(t,n)})}function Ge(e,t){return function(e){var t=$e();if("undefined"!=typeof window){if(We)return t;if(!t)return We=!0,S.loadScript(Fe).then(function(t){(Ze=A.interopDefault(window[t])).initialize(e)}),t}Ze.initialize(e)}(t),new Promise(function(t){var n=[];e.forEach(function(e){n.push(Ye(e))}),Promise.all(n).then(function(){t(!0)})})}function Je(e){var t=function(){return r({theme:"forest",logLevel:4,startOnLoad:!1,arrowMarkerAbsolute:!1,flowchart:{curve:"basis"},gantt:{axisFormat:"%m/%d/%Y"},sequence:{actorMargin:50}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.mermaid.language-mermaid");return!!n.length&&Ge(n,this.config).then(function(){return e})}}]}var Ke="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Xe=[],Qe=[],et="undefined"!=typeof Uint8Array?Uint8Array:Array,tt=!1;function nt(){tt=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;64>t;++t)Xe[t]=e[t],Qe[e.charCodeAt(t)]=t;Qe[45]=62,Qe[95]=63}function rt(e){return Xe[e>>18&63]+Xe[e>>12&63]+Xe[e>>6&63]+Xe[63&e]}function it(e,t,n){for(var r=[],i=t;n>i;i+=3)r.push(rt((e[i]<<16)+(e[i+1]<<8)+e[i+2]));return r.join("")}function at(e){var t;tt||nt();for(var n=e.length,r=n%3,i="",a=[],o=16383,s=0,l=n-r;l>s;s+=o)a.push(it(e,s,s+o>l?l:s+o));return 1===r?(i+=Xe[(t=e[n-1])>>2],i+=Xe[t<<4&63],i+="=="):2===r&&(i+=Xe[(t=(e[n-2]<<8)+e[n-1])>>10],i+=Xe[t>>4&63],i+=Xe[t<<2&63],i+="="),a.push(i),a.join("")}function ot(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),a-=u}return(f?-1:1)*o*Math.pow(2,a-r)}function st(e,t,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,h=23===i?5.960464477539062e-8:0,f=r?0:a-1,p=r?1:-1,g=0>t||0===t&&0>1/t?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(1>t*(l=Math.pow(2,-(o=Math.floor(Math.log(t)/Math.LN2))))&&(o--,l*=2),2>(t+=1>o+d?h*Math.pow(2,1-d):h/l)*l||(o++,l/=2),c>o+d?1>o+d?(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0):(s=(t*l-1)*Math.pow(2,i),o+=d):(s=0,o=c));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[n+f]=255&o,f+=p,o/=256,u-=8);e[n+f-p]|=128*g}var lt={}.toString,ut=Array.isArray||function(e){return"[object Array]"==lt.call(e)};function ct(){return ht.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function dt(e,t){if(ct()<t)throw new RangeError("Invalid typed array length");return ht.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=ht.prototype:(null===e&&(e=new ht(t)),e.length=t),e}function ht(e,t,n){if(!(ht.TYPED_ARRAY_SUPPORT||this instanceof ht))return new ht(e,t,n);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return gt(this,e)}return ft(this,e,t,n)}function ft(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(0>n||n>t.byteLength)throw new RangeError("'offset' is out of bounds");if(n+(r||0)>t.byteLength)throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);ht.TYPED_ARRAY_SUPPORT?(e=t).__proto__=ht.prototype:e=mt(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!ht.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|wt(t,n);e=dt(e,r);var i=e.write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(vt(t)){var n=0|_t(t.length);return 0===(e=dt(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?dt(e,0):mt(e,t);if("Buffer"===t.type&&ut(t.data))return mt(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function pt(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(0>e)throw new RangeError('"size" argument must not be negative')}function gt(e,t){if(pt(t),e=dt(e,0>t?0:0|_t(t)),!ht.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;++n)e[n]=0;return e}function mt(e,t){var n=0>t.length?0:0|_t(t.length);e=dt(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function _t(e){if(e>=ct())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ct().toString(16)+" bytes");return 0|e}function vt(e){return!(null==e||!e._isBuffer)}function wt(e,t){if(vt(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Wt(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Vt(e).length;default:if(r)return Wt(e).length;t=(""+t).toLowerCase(),r=!0}}function bt(e,t,n){var r=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if((t>>>=0)>=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rt(this,t,n);case"utf8":case"utf-8":return Pt(this,t,n);case"ascii":return Tt(this,t,n);case"latin1":case"binary":return Ot(this,t,n);case"base64":return zt(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nt(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function yt(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function kt(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),isNaN(n=+n)&&(n=i?0:e.length-1),0>n&&(n=e.length+n),e.length>n){if(0>n){if(!i)return-1;n=0}}else{if(i)return-1;n=e.length-1}if("string"==typeof t&&(t=ht.from(t,r)),vt(t))return 0===t.length?-1:xt(e,t,n,r,i);if("number"==typeof t)return t&=255,ht.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):xt(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function xt(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=(r+"").toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(2>e.length||2>t.length)return-1;o=2,s/=2,l/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;s>a;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else-1!==c&&(a-=a-c),c=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;l>h;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return-1}function Et(e,t,n,r){var i=e.length-(n=Number(n)||0);r?(r=Number(r))>i&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;r>o;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function St(e,t,n,r){return Yt(Wt(t,e.length-n),e,n,r)}function At(e,t,n,r){return Yt(function(e){for(var t=[],n=0;e.length>n;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Lt(e,t,n,r){return At(e,t,n,r)}function jt(e,t,n,r){return Yt(Vt(t),e,n,r)}function Ct(e,t,n,r){return Yt(function(e,t){for(var n,r,i=[],a=0;e.length>a&&0<=(t-=2);++a)r=(n=e.charCodeAt(a))>>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function zt(e,t,n){return at(0===t&&n===e.length?e:e.slice(t,n))}function Pt(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;n>i;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(n>=i+d)switch(d){case 1:128>u&&(c=u);break;case 2:128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:o=e[i+2],128==(192&(a=e[i+1]))&&128==(192&o)&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(55296>l||l>57343)&&(c=l);break;case 4:o=e[i+2],s=e[i+3],128==(192&(a=e[i+1]))&&128==(192&o)&&128==(192&s)&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&1114112>l&&(c=l)}null===c?(c=65533,d=1):c>65535&&(r.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(Mt>=t)return String.fromCharCode.apply(String,e);var n="",r=0;for(;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Mt));return n}(r)}ht.TYPED_ARRAY_SUPPORT=void 0===Ke.TYPED_ARRAY_SUPPORT||Ke.TYPED_ARRAY_SUPPORT,ct(),ht.poolSize=8192,ht._augment=function(e){return e.__proto__=ht.prototype,e},ht.from=function(e,t,n){return ft(null,e,t,n)},ht.TYPED_ARRAY_SUPPORT&&(ht.prototype.__proto__=Uint8Array.prototype,ht.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Symbol),ht.alloc=function(e,t,n){return function(e,t,n,r){return pt(t),t>0&&void 0!==n?"string"==typeof r?dt(e,t).fill(n,r):dt(e,t).fill(n):dt(e,t)}(null,e,t,n)},ht.allocUnsafe=function(e){return gt(null,e)},ht.allocUnsafeSlow=function(e){return gt(null,e)},ht.isBuffer=Gt,ht.compare=function(e,t){if(!vt(e)||!vt(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);a>i;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return r>n?-1:n>r?1:0},ht.isEncoding=function(e){switch((e+"").toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ht.concat=function(e,t){if(!ut(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ht.alloc(0);var n;if(void 0===t)for(t=0,n=0;e.length>n;++n)t+=e[n].length;var r=ht.allocUnsafe(t),i=0;for(n=0;e.length>n;++n){var a=e[n];if(!vt(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},ht.byteLength=wt,ht.prototype._isBuffer=!0,ht.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;e>t;t+=2)yt(this,t,t+1);return this},ht.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;e>t;t+=4)yt(this,t,t+3),yt(this,t+1,t+2);return this},ht.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;e>t;t+=8)yt(this,t,t+7),yt(this,t+1,t+6),yt(this,t+2,t+5),yt(this,t+3,t+4);return this},ht.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Pt(this,0,e):bt.apply(this,arguments)},ht.prototype.equals=function(e){if(!vt(e))throw new TypeError("Argument must be a Buffer");return this===e||0===ht.compare(this,e)},ht.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},ht.prototype.compare=function(e,t,n,r,i){if(!vt(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),0>t||n>e.length||0>r||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),c=0;s>c;++c)if(l[c]!==u[c]){a=l[c],o=u[c];break}return o>a?-1:a>o?1:0},ht.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},ht.prototype.indexOf=function(e,t,n){return kt(this,e,t,n,!0)},ht.prototype.lastIndexOf=function(e,t,n){return kt(this,e,t,n,!1)},ht.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return Et(this,e,t,n);case"utf8":case"utf-8":return St(this,e,t,n);case"ascii":return At(this,e,t,n);case"latin1":case"binary":return Lt(this,e,t,n);case"base64":return jt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ct(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},ht.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Mt=4096;function Tt(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(127&e[i]);return r}function Ot(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(e[i]);return r}function Rt(e,t,n){var r=e.length;t&&t>=0||(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",a=t;n>a;++a)i+=$t(e[a]);return i}function Nt(e,t,n){for(var r=e.slice(t,n),i="",a=0;r.length>a;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function Bt(e,t,n){if(e%1!=0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Dt(e,t,n,r,i,a){if(!vt(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||a>t)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function It(e,t,n,r){0>t&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);a>i;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function qt(e,t,n,r){0>t&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);a>i;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function Ht(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function Ut(e,t,n,r,i){return i||Ht(e,0,n,4),st(e,t,n,r,23,4),n+4}function Ft(e,t,n,r,i){return i||Ht(e,0,n,8),st(e,t,n,r,52,8),n+8}ht.prototype.slice=function(e,t){var n,r=this.length;if(0>(e=~~e)?0>(e+=r)&&(e=0):e>r&&(e=r),0>(t=void 0===t?r:~~t)?0>(t+=r)&&(t=0):t>r&&(t=r),e>t&&(t=e),ht.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=ht.prototype;else{var i=t-e;n=new ht(i,void 0);for(var a=0;i>a;++a)n[a]=this[a+e]}return n},ht.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},ht.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},ht.prototype.readUInt8=function(e,t){return t||Bt(e,1,this.length),this[e]},ht.prototype.readUInt16LE=function(e,t){return t||Bt(e,2,this.length),this[e]|this[e+1]<<8},ht.prototype.readUInt16BE=function(e,t){return t||Bt(e,2,this.length),this[e]<<8|this[e+1]},ht.prototype.readUInt32LE=function(e,t){return t||Bt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ht.prototype.readUInt32BE=function(e,t){return t||Bt(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ht.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return(i*=128)>r||(r-=Math.pow(2,8*t)),r},ht.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Bt(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return(i*=128)>a||(a-=Math.pow(2,8*t)),a},ht.prototype.readInt8=function(e,t){return t||Bt(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ht.prototype.readInt16LE=function(e,t){t||Bt(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},ht.prototype.readInt16BE=function(e,t){t||Bt(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},ht.prototype.readInt32LE=function(e,t){return t||Bt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ht.prototype.readInt32BE=function(e,t){return t||Bt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ht.prototype.readFloatLE=function(e,t){return t||Bt(e,4,this.length),ot(this,e,!0,23,4)},ht.prototype.readFloatBE=function(e,t){return t||Bt(e,4,this.length),ot(this,e,!1,23,4)},ht.prototype.readDoubleLE=function(e,t){return t||Bt(e,8,this.length),ot(this,e,!0,52,8)},ht.prototype.readDoubleBE=function(e,t){return t||Bt(e,8,this.length),ot(this,e,!1,52,8)},ht.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Dt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},ht.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||Dt(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},ht.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,1,255,0),ht.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ht.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):It(this,e,t,!0),t+2},ht.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,65535,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):It(this,e,t,!1),t+2},ht.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):qt(this,e,t,!0),t+4},ht.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,4294967295,0),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qt(this,e,t,!1),t+4},ht.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Dt(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)0>e&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},ht.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);Dt(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)0>e&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},ht.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,1,127,-128),ht.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},ht.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):It(this,e,t,!0),t+2},ht.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,2,32767,-32768),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):It(this,e,t,!1),t+2},ht.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,2147483647,-2147483648),ht.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):qt(this,e,t,!0),t+4},ht.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||Dt(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),ht.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):qt(this,e,t,!1),t+4},ht.prototype.writeFloatLE=function(e,t,n){return Ut(this,e,t,!0,n)},ht.prototype.writeFloatBE=function(e,t,n){return Ut(this,e,t,!1,n)},ht.prototype.writeDoubleLE=function(e,t,n){return Ft(this,e,t,!0,n)},ht.prototype.writeDoubleBE=function(e,t,n){return Ft(this,e,t,!1,n)},ht.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),e.length>t||(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),r-n>e.length-t&&(r=e.length-t+n);var i,a=r-n;if(this===e&&t>n&&r>t)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(1e3>a||!ht.TYPED_ARRAY_SUPPORT)for(i=0;a>i;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},ht.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);256>i&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!ht.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(0>t||t>this.length||n>this.length)throw new RangeError("Out of range index");if(t>=n)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;n>a;++a)this[a]=e;else{var o=vt(e)?e:Wt(""+new ht(e,r)),s=o.length;for(a=0;n-t>a;++a)this[a+t]=o[a%s]}return this};var Zt=/[^+\/0-9A-Za-z-_]/g;function $t(e){return 16>e?"0"+e.toString(16):e.toString(16)}function Wt(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;r>o;++o){if((n=e.charCodeAt(o))>55295&&57344>n){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(56320>n){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,128>n){if(0>(t-=1))break;a.push(n)}else if(2048>n){if(0>(t-=2))break;a.push(n>>6|192,63&n|128)}else if(65536>n){if(0>(t-=3))break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(n>=1114112)throw Error("Invalid code point");if(0>(t-=4))break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Vt(e){return function(e){var t,n,r,i,a,o;tt||nt();var s=e.length;if(s%4>0)throw Error("Invalid string. Length must be a multiple of 4");o=new et(3*s/4-(a="="===e[s-2]?2:"="===e[s-1]?1:0)),r=a>0?s-4:s;var l=0;for(t=0,n=0;r>t;t+=4,n+=3)i=Qe[e.charCodeAt(t)]<<18|Qe[e.charCodeAt(t+1)]<<12|Qe[e.charCodeAt(t+2)]<<6|Qe[e.charCodeAt(t+3)],o[l++]=i>>16&255,o[l++]=i>>8&255,o[l++]=255&i;return 2===a?(i=Qe[e.charCodeAt(t)]<<2|Qe[e.charCodeAt(t+1)]>>4,o[l++]=255&i):1===a&&(i=Qe[e.charCodeAt(t)]<<10|Qe[e.charCodeAt(t+1)]<<4|Qe[e.charCodeAt(t+2)]>>2,o[l++]=i>>8&255,o[l++]=255&i),o}(function(e){if(2>(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Zt,"")).length)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Yt(e,t,n,r){for(var i=0;r>i&&(i+n<t.length&&i<e.length);++i)t[i+n]=e[i];return i}function Gt(e){return null!=e&&(!!e._isBuffer||Jt(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Jt(e.slice(0,0))}(e))}function Jt(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Kt(){throw Error("setTimeout has not been defined")}function Xt(){throw Error("clearTimeout has not been defined")}var Qt=Kt,en=Xt;function tn(e){if(Qt===setTimeout)return setTimeout(e,0);if((Qt===Kt||!Qt)&&setTimeout)return Qt=setTimeout,setTimeout(e,0);try{return Qt(e,0)}catch(t){try{return Qt.call(null,e,0)}catch(t){return Qt.call(this,e,0)}}}"function"==typeof Ke.setTimeout&&(Qt=setTimeout),"function"==typeof Ke.clearTimeout&&(en=clearTimeout);var nn,rn=[],an=!1,on=-1;function sn(){an&&nn&&(an=!1,nn.length?rn=nn.concat(rn):on=-1,rn.length&&ln())}function ln(){if(!an){var e=tn(sn);an=!0;for(var t=rn.length;t;){for(nn=rn,rn=[];++on<t;)nn&&nn[on].run();on=-1,t=rn.length}nn=null,an=!1,function(e){if(en===clearTimeout)return clearTimeout(e);if((en===Xt||!en)&&clearTimeout)return en=clearTimeout,clearTimeout(e);try{return en(e)}catch(t){try{return en.call(null,e)}catch(t){return en.call(this,e)}}}(e)}}function un(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;arguments.length>n;n++)t[n-1]=arguments[n];rn.push(new cn(e,t)),1!==rn.length||an||tn(ln)}function cn(e,t){this.fun=e,this.array=t}cn.prototype.run=function(){this.fun.apply(null,this.array)};var dn,hn={env:{}};function fn(){}function pn(){pn.init.call(this)}function gn(e){return void 0===e._maxListeners?pn.defaultMaxListeners:e._maxListeners}function mn(e,t,n,r){var i,a,o;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]):(a=e._events=new fn,e._eventsCount=0),o){if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),!o.warned&&(i=gn(e))&&i>0&&o.length>i){o.warned=!0;var s=Error("Possible EventEmitter memory leak detected. "+o.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length}}else o=a[t]=n,++e._eventsCount;return e}function _n(e,t,n){var r=!1;function i(){e.removeListener(t,i),r||(r=!0,n.apply(e,arguments))}return i.listener=n,i}function vn(e){var t=this._events;if(t){var n=t[e];if("function"==typeof n)return 1;if(n)return n.length}return 0}function wn(e,t){for(var n=Array(t);t--;)n[t]=e[t];return n}fn.prototype=Object.create(null),pn.EventEmitter=pn,pn.usingDomains=!1,pn.prototype.domain=void 0,pn.prototype._events=void 0,pn.prototype._maxListeners=void 0,pn.defaultMaxListeners=10,pn.init=function(){this.domain=null,pn.usingDomains&&(!dn.active||this instanceof dn.Domain||(this.domain=dn.active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new fn,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},pn.prototype.setMaxListeners=function(e){if("number"!=typeof e||0>e||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},pn.prototype.getMaxListeners=function(){return gn(this)},pn.prototype.emit=function(e){var t,n,r,i,a,o,s,l="error"===e;if(o=this._events)l=l&&null==o.error;else if(!l)return!1;if(s=this.domain,l){if(t=arguments[1],!s){if(t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=s,t.domainThrown=!1,s.emit("error",t),!1}if(!(n=o[e]))return!1;var c="function"==typeof n;switch(r=arguments.length){case 1:!function(e,t,n){if(t)e.call(n);else for(var r=e.length,i=wn(e,r),a=0;r>a;++a)i[a].call(n)}(n,c,this);break;case 2:!function(e,t,n,r){if(t)e.call(n,r);else for(var i=e.length,a=wn(e,i),o=0;i>o;++o)a[o].call(n,r)}(n,c,this,arguments[1]);break;case 3:!function(e,t,n,r,i){if(t)e.call(n,r,i);else for(var a=e.length,o=wn(e,a),s=0;a>s;++s)o[s].call(n,r,i)}(n,c,this,arguments[1],arguments[2]);break;case 4:!function(e,t,n,r,i,a){if(t)e.call(n,r,i,a);else for(var o=e.length,s=wn(e,o),l=0;o>l;++l)s[l].call(n,r,i,a)}(n,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=Array(r-1),a=1;r>a;a++)i[a-1]=arguments[a];!function(e,t,n,r){if(t)e.apply(n,r);else for(var i=e.length,a=wn(e,i),o=0;i>o;++o)a[o].apply(n,r)}(n,c,this,i)}return!0},pn.prototype.on=pn.prototype.addListener=function(e,t){return mn(this,e,t,!1)},pn.prototype.prependListener=function(e,t){return mn(this,e,t,!0)},pn.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,_n(this,e,t)),this},pn.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,_n(this,e,t)),this},pn.prototype.removeListener=function(e,t){var n,r,i,a,o;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(r=this._events))return this;if(!(n=r[e]))return this;if(n===t||n.listener&&n.listener===t)0===--this._eventsCount?this._events=new fn:(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){o=n[a].listener,i=a;break}if(0>i)return this;if(1===n.length){if(n[0]=void 0,0===--this._eventsCount)return this._events=new fn,this;delete r[e]}else!function(e,t){for(var n=t,r=n+1,i=e.length;i>r;n+=1,r+=1)e[n]=e[r];e.pop()}(n,i);r.removeListener&&this.emit("removeListener",e,o||t)}return this},pn.prototype.removeAllListeners=function(e){var t,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new fn,this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=new fn:delete n[e]),this;if(0===arguments.length){for(var r,i=Object.keys(n),a=0;i.length>a;++a)"removeListener"!==(r=i[a])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=new fn,this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},pn.prototype.listeners=function(e){var t,n=this._events;return n&&(t=n[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=Array(e.length),n=0;t.length>n;++n)t[n]=e[n].listener||e[n];return t}(t):[]},pn.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):vn.call(e,t)},pn.prototype.listenerCount=vn,pn.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var bn="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},yn=/%[sdj%]/g;function kn(e){if(!On(e)){for(var t=[],n=0;arguments.length>n;n++)t.push(An(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=(e+"").replace(yn,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return r[n++]+"";case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),o=r[n];i>n;o=r[++n])Tn(o)||!Bn(o)?a+=" "+o:a+=" "+An(o);return a}function xn(e,t){if(Rn(Ke.process))return function(){return xn(e,t).apply(this,arguments)};if(!0===hn.noDeprecation)return e;var n=!1;return function(){if(!n){if(hn.throwDeprecation)throw Error(t);n=!0}return e.apply(this,arguments)}}var En,Sn={};function An(e,t){var n={seen:[],stylize:jn};return 3>arguments.length||(n.depth=arguments[2]),4>arguments.length||(n.colors=arguments[3]),Mn(t)?n.showHidden=t:t&&function(e,t){if(!t||!Bn(t))return e;var n=Object.keys(t),r=n.length;for(;r--;)e[n[r]]=t[n[r]]}(n,t),Rn(n.showHidden)&&(n.showHidden=!1),Rn(n.depth)&&(n.depth=2),Rn(n.colors)&&(n.colors=!1),Rn(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Ln),Cn(n,e,n.depth)}function Ln(e,t){var n=An.styles[t];return n?"["+An.colors[n][0]+"m"+e+"["+An.colors[n][1]+"m":e}function jn(e,t){return e}function Cn(e,t,n){if(e.customInspect&&t&&qn(t.inspect)&&t.inspect!==An&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return On(r)||(r=Cn(e,r,n)),r}var i=function(e,t){if(Rn(t))return e.stylize("undefined","undefined");if(On(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(r=t,"number"==typeof r)return e.stylize(""+t,"number");var r;if(Mn(t))return e.stylize(""+t,"boolean");if(Tn(t))return e.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),o=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),In(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return zn(t);if(0===a.length){if(qn(t))return e.stylize("[Function"+(t.name?": "+t.name:"")+"]","special");if(Nn(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Dn(t))return e.stylize(Date.prototype.toString.call(t),"date");if(In(t))return zn(t)}var s,l="",u=!1,c=["{","}"];(Array.isArray(t)&&(u=!0,c=["[","]"]),qn(t))&&(l=" [Function"+(t.name?": "+t.name:"")+"]");return Nn(t)&&(l=" "+RegExp.prototype.toString.call(t)),Dn(t)&&(l=" "+Date.prototype.toUTCString.call(t)),In(t)&&(l=" "+zn(t)),0!==a.length||u&&0!=t.length?0>n?Nn(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),s=u?function(e,t,n,r,i){for(var a=[],o=0,s=t.length;s>o;++o)Un(t,o+"")?a.push(Pn(e,t,n,r,o+"",!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(Pn(e,t,n,r,i,!0))}),a}(e,t,n,o,a):a.map(function(r){return Pn(e,t,n,o,r,u)}),e.seen.pop(),function(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,l,c)):c[0]+l+c[1]}function zn(e){return"["+Error.prototype.toString.call(e)+"]"}function Pn(e,t,n,r,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=e.stylize(l.set?"[Getter/Setter]":"[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),Un(r,i)||(o="["+i+"]"),s||(0>e.seen.indexOf(l.value)?(s=Tn(n)?Cn(e,l.value,null):Cn(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),Rn(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function Mn(e){return"boolean"==typeof e}function Tn(e){return null===e}function On(e){return"string"==typeof e}function Rn(e){return void 0===e}function Nn(e){return Bn(e)&&"[object RegExp]"===Hn(e)}function Bn(e){return"object"==typeof e&&null!==e}function Dn(e){return Bn(e)&&"[object Date]"===Hn(e)}function In(e){return Bn(e)&&("[object Error]"===Hn(e)||e instanceof Error)}function qn(e){return"function"==typeof e}function Hn(e){return Object.prototype.toString.call(e)}function Un(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Fn(){this.head=null,this.tail=null,this.length=0}An.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},An.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Fn.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},Fn.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},Fn.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,e}},Fn.prototype.clear=function(){this.head=this.tail=null,this.length=0},Fn.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},Fn.prototype.concat=function(e){if(0===this.length)return ht.alloc(0);if(1===this.length)return this.head.data;for(var t=ht.allocUnsafe(e>>>0),n=this.head,r=0;n;)n.data.copy(t,r),r+=n.data.length,n=n.next;return t};var Zn=ht.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function $n(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!Zn(e))throw Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=Vn;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Yn;break;default:return void(this.write=Wn)}this.charBuffer=new ht(6),this.charReceived=0,this.charLength=0}function Wn(e){return e.toString(this.encoding)}function Vn(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function Yn(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}$n.prototype.write=function(e){for(var t="";this.charLength;){var n=this.charLength-this.charReceived>e.length?e.length:this.charLength-this.charReceived;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charLength>this.charReceived)return"";if(e=e.slice(n,e.length),55296>(r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))||r>56319){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var r,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),(r=(t+=e.toString(this.encoding,0,i)).charCodeAt(i=t.length-1))>=55296&&56319>=r){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),e.copy(this.charBuffer,0,0,a),t.substring(0,i)}return t},$n.prototype.detectIncompleteChar=function(e){for(var t=3>e.length?e.length:3;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(2>=t&&n>>4==14){this.charLength=3;break}if(3>=t&&n>>3==30){this.charLength=4;break}}this.charReceived=t},$n.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.encoding;t+=this.charBuffer.slice(0,this.charReceived).toString(n)}return t},Kn.ReadableState=Jn;var Gn=function(e){if(Rn(En)&&(En=hn.env.NODE_DEBUG||""),e=e.toUpperCase(),!Sn[e])if(RegExp("\\b"+e+"\\b","i").test(En)){Sn[e]=function(){kn.apply(null,arguments)}}else Sn[e]=function(){};return Sn[e]}("stream");function Jn(e,t){this.objectMode=!!(e=e||{}).objectMode,t instanceof Sr&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=new Fn,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(this.decoder=new $n(e.encoding),this.encoding=e.encoding)}function Kn(e){if(!(this instanceof Kn))return new Kn(e);this._readableState=new Jn(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),pn.call(this)}function Xn(e,t,n,r,i){var a=function(e,t){var n=null;Gt(t)||"string"==typeof t||null==t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));return n}(t,n);if(a)e.emit("error",a);else if(null===n)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,tr(e)}(e,t);else if(t.objectMode||n&&n.length>0){if(t.ended&&!i)e.emit("error",Error("stream.push() after EOF"));else if(t.endEmitted&&i){e.emit("error",Error("stream.unshift() after end event"))}else{var o;!t.decoder||i||r||(n=t.decoder.write(n),o=!t.objectMode&&0===n.length),i||(t.reading=!1),o||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&tr(e))),function(e,t){t.readingMore||(t.readingMore=!0,un(rr,e,t))}(e,t)}}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.highWaterMark>e.length||0===e.length)}(t)}bn(Kn,pn),Kn.prototype.push=function(e,t){var n=this._readableState;return n.objectMode||"string"!=typeof e||(t=t||n.defaultEncoding)!==n.encoding&&(e=ht.from(e,t),t=""),Xn(this,n,e,t,!1)},Kn.prototype.unshift=function(e){return Xn(this,this._readableState,e,"",!0)},Kn.prototype.isPaused=function(){return!1===this._readableState.flowing},Kn.prototype.setEncoding=function(e){return this._readableState.decoder=new $n(e),this._readableState.encoding=e,this};var Qn=8388608;function er(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return Qn>e?(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++):e=Qn,e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function tr(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(Gn("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?un(nr,e):nr(e))}function nr(e){Gn("emit readable"),e.emit("readable"),or(e)}function rr(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.highWaterMark>t.length&&(Gn("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function ir(e){Gn("readable nexttick read 0"),e.read(0)}function ar(e,t){t.reading||(Gn("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),or(e),t.flowing&&!t.reading&&e.read(0)}function or(e){var t=e._readableState;for(Gn("flow",t.flowing);t.flowing&&null!==e.read(););}function sr(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():e&&t.length>e?n=function(e,t,n){var r;t.head.data.length>e?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(i+=o===a.length?a:a.slice(0,e),0===(e-=o)){o===a.length?(++r,t.head=n.next?n.next:t.tail=null):(t.head=n,n.data=a.slice(o));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=ht.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(a.copy(n,n.length-e,0,o),0===(e-=o)){o===a.length?(++i,t.head=r.next?r.next:t.tail=null):(t.head=r,r.data=a.slice(o));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder):(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()),n);var n}function lr(e){var t=e._readableState;if(t.length>0)throw Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,un(ur,t,e))}function ur(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function cr(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function dr(){}function hr(e,t,n){this.chunk=e,this.encoding=t,this.callback=n,this.next=null}function fr(e,t){Object.defineProperty(this,"buffer",{get:xn(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),this.objectMode=!!(e=e||{}).objectMode,t instanceof Sr&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark;this.highWaterMark=n||0===n?n:this.objectMode?16:16384,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.decodeStrings=!(!1===e.decodeStrings),this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?un(i,r):i(r);e._writableState.errorEmitted=!0,e.emit("error",r)}(e,n,r,t,i);else{var a=vr(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_r(e,n),r?un(mr,e,n,a,i):mr(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new yr(this)}function pr(e){if(!(this instanceof pr||this instanceof Sr))return new pr(e);this._writableState=new fr(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),pn.call(this)}function gr(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function mr(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),br(e,t)}function _r(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=Array(t.bufferedRequestCount),i=t.corkedRequestsFree;i.entry=n;for(var a=0;n;)r[a]=n,n=n.next,a+=1;gr(e,t,!0,t.length,r,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new yr(t)}else{for(;n;){var o=n.chunk;if(gr(e,t,!1,t.objectMode?1:o.length,o,n.encoding,n.callback),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function vr(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function wr(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function br(e,t){var n=vr(t);return n&&(0===t.pendingcb?(wr(e,t),t.finished=!0,e.emit("finish")):wr(e,t)),n}function yr(e){var t=this;this.next=null,this.entry=null,this.finish=function(n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}Kn.prototype.read=function(e){Gn("read",e);var t=this._readableState,n=e=parseInt(e,10);if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return Gn("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?lr(this):tr(this),null;if(0===(e=er(e,t))&&t.ended)return 0===t.length&&lr(this),null;var r,i=t.needReadable;return Gn("need readable",i),(0===t.length||t.highWaterMark>t.length-e)&&Gn("length less than watermark",i=!0),t.ended||t.reading?Gn("reading or ended",i=!1):i&&(Gn("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=er(n,t))),null===(r=e>0?sr(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&lr(this)),null!==r&&this.emit("data",r),r},Kn.prototype._read=function(e){this.emit("error",Error("not implemented"))},Kn.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,Gn("pipe count=%d opts=%j",r.pipesCount,t);var i=!t||!1!==t.end?o:u;function a(e){Gn("onunpipe"),e===n&&u()}function o(){Gn("onend"),e.end()}r.endEmitted?un(i):n.once("end",i),e.on("unpipe",a);var s=function(e){return function(){var t=e._readableState;Gn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&e.listeners("data").length&&(t.flowing=!0,or(e))}}(n);e.on("drain",s);var l=!1;function u(){Gn("cleanup"),e.removeListener("close",f),e.removeListener("finish",p),e.removeListener("drain",s),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",o),n.removeListener("end",u),n.removeListener("data",d),l=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||s()}var c=!1;function d(t){Gn("ondata"),c=!1,!1!==e.write(t)||c||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==cr(r.pipes,e))&&!l&&(Gn("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,c=!0),n.pause())}function h(t){Gn("onerror",t),g(),e.removeListener("error",h),0===e.listeners("error").length&&e.emit("error",t)}function f(){e.removeListener("finish",p),g()}function p(){Gn("onfinish"),e.removeListener("close",f),g()}function g(){Gn("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",f),e.once("finish",p),e.emit("pipe",n),r.flowing||(Gn("pipe resume"),n.resume()),e},Kn.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;r>i;i++)n[i].emit("unpipe",this);return this}var a=cr(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},Kn.prototype.addListener=Kn.prototype.on=function(e,t){var n=pn.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&tr(this):un(ir,this))}return n},Kn.prototype.resume=function(){var e=this._readableState;return e.flowing||(Gn("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,un(ar,e,t))}(this,e)),this},Kn.prototype.pause=function(){return Gn("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(Gn("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Kn.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(Gn("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(Gn("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(e,t){for(var n=0,r=e.length;r>n;n++)t(e[n],n)}(["error","close","destroy","pause","resume"],function(t){e.on(t,r.emit.bind(r,t))}),r._read=function(t){Gn("wrapped _read",t),n&&(n=!1,e.resume())},r},Kn._fromList=sr,pr.WritableState=fr,bn(pr,pn),fr.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},pr.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},pr.prototype.write=function(e,t,n){var r=this._writableState,i=!1;return"function"==typeof t&&(n=t,t=null),ht.isBuffer(e)?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=dr),r.ended?function(e,t){var n=Error("write after end");e.emit("error",n),un(t,n)}(this,n):function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):ht.isBuffer(n)||"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),un(r,a),i=!1),i}(this,r,e,n)&&(r.pendingcb++,i=function(e,t,n,r,i){n=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=ht.from(t,n));return t}(t,n,r),ht.isBuffer(n)&&(r="buffer");var a=t.objectMode?1:n.length;t.length+=a;var o=t.highWaterMark>t.length;o||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new hr(n,r,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else gr(e,t,!1,a,n,r,i);return o}(this,r,e,t,n)),i},pr.prototype.cork=function(){this._writableState.corked++},pr.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_r(this,e))},pr.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())<=-1)throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},pr.prototype._write=function(e,t,n){n(Error("not implemented"))},pr.prototype._writev=null,pr.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,br(e,t),n&&(t.finished?un(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},bn(Sr,Kn);for(var kr=Object.keys(pr.prototype),xr=0;kr.length>xr;xr++){var Er=kr[xr];Sr.prototype[Er]||(Sr.prototype[Er]=pr.prototype[Er])}function Sr(e){if(!(this instanceof Sr))return new Sr(e);Kn.call(this,e),pr.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Ar)}function Ar(){this.allowHalfOpen||this._writableState.ended||un(Lr,this)}function Lr(e){e.end()}function jr(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.highWaterMark>a.length)&&e._read(a.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Cr(e){if(!(this instanceof Cr))return new Cr(e);Sr.call(this,e),this._transformState=new jr(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){zr(t,e)}):zr(t)})}function zr(e,t){if(t)return e.emit("error",t);var n=e._transformState;if(e._writableState.length)throw Error("Calling transform done when ws.length != 0");if(n.transforming)throw Error("Calling transform done when still transforming");return e.push(null)}function Pr(e){if(!(this instanceof Pr))return new Pr(e);Cr.call(this,e)}function Mr(){pn.call(this)}bn(Cr,Sr),Cr.prototype.push=function(e,t){return this._transformState.needTransform=!1,Sr.prototype.push.call(this,e,t)},Cr.prototype._transform=function(e,t,n){throw Error("Not implemented")},Cr.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.highWaterMark>i.length)&&this._read(i.highWaterMark)}},Cr.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},bn(Pr,Cr),Pr.prototype._transform=function(e,t,n){n(null,e)},bn(Mr,pn),Mr.Readable=Kn,Mr.Writable=pr,Mr.Duplex=Sr,Mr.Transform=Cr,Mr.PassThrough=Pr,Mr.Stream=Mr,Mr.prototype.pipe=function(e,t){var n=this;function r(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function i(){n.readable&&n.resume&&n.resume()}n.on("data",r),e.on("drain",i),e._isStdio||t&&!1===t.end||(n.on("end",o),n.on("close",s));var a=!1;function o(){a||(a=!0,e.end())}function s(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===pn.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",o),n.removeListener("close",s),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e};var Tr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Or(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function Rr(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;r>a;a++)e[i+a]=t[n+a]}var Nr=Uint8Array,Br=Uint16Array,Dr=Int32Array;function Ir(e){for(var t=e.length;--t>=0;)e[t]=0}var qr=256,Hr=286,Ur=30,Fr=15,Zr=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$r=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Wr=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Vr=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Yr=Array(576);Ir(Yr);var Gr=Array(60);Ir(Gr);var Jr=Array(512);Ir(Jr);var Kr=Array(256);Ir(Kr);var Xr=Array(29);Ir(Xr);var Qr,ei,ti,ni=Array(Ur);function ri(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function ii(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function ai(e){return 256>e?Jr[e]:Jr[256+(e>>>7)]}function oi(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function si(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,oi(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function li(e,t,n){si(e,n[2*t],n[2*t+1])}function ui(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function ci(e,t,n){var r,i,a=Array(16),o=0;for(r=1;Fr>=r;r++)a[r]=o=o+n[r-1]<<1;for(i=0;t>=i;i++){var s=e[2*i+1];0!==s&&(e[2*i]=ui(a[s]++,s))}}function di(e){var t;for(t=0;Hr>t;t++)e.dyn_ltree[2*t]=0;for(t=0;Ur>t;t++)e.dyn_dtree[2*t]=0;for(t=0;19>t;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function hi(e){e.bi_valid>8?oi(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function fi(e,t,n,r){var i=2*t,a=2*n;return e[a]>e[i]||e[i]===e[a]&&r[n]>=r[t]}function pi(e,t,n){for(var r=e.heap[n],i=n<<1;e.heap_len>=i&&(e.heap_len>i&&fi(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!fi(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function gi(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?li(e,i,t):(li(e,(a=Kr[i])+qr+1,t),0!==(o=Zr[a])&&si(e,i-=Xr[a],o),li(e,a=ai(--r),n),0!==(o=$r[a])&&si(e,r-=ni[a],o))}while(e.last_lit>s);li(e,256,t)}function mi(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;l>n;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;2>e.heap_len;)a[2*(i=e.heap[++e.heap_len]=2>u?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)pi(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pi(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[r]>e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,pi(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(a=0;Fr>=a;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;573>n;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>p&&(a=p,g++),l[2*r+1]=a,r>u||(e.bl_count[a]++,o=0,f>r||(o=h[r-f]),e.opt_len+=(s=l[2*r])*(a+o),d&&(e.static_len+=s*(c[2*r+1]+o)));if(0!==g){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,g-=2}while(g>0);for(a=p;0!==a;a--)for(r=e.bl_count[a];0!==r;)u<(i=e.heap[--n])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),ci(a,u,e.bl_count)}function _i(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;n>=r;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(u>s?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s>10?e.bl_tree[36]++:e.bl_tree[34]++,s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4))}function vi(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),r=0;n>=r;r++)if(i=o,o=t[2*(r+1)+1],++s>=l||i!==o){if(u>s)do{li(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==a&&(li(e,i,e.bl_tree),s--),li(e,16,e.bl_tree),si(e,s-3,2)):s>10?(li(e,18,e.bl_tree),si(e,s-11,7)):(li(e,17,e.bl_tree),si(e,s-3,3));s=0,a=i,0===o?(l=138,u=3):i===o?(l=6,u=3):(l=7,u=4)}}Ir(ni);var wi=!1;function bi(e){wi||(!function(){var e,t,n,r,i,a=Array(16);for(n=0,r=0;28>r;r++)for(Xr[r]=n,e=0;1<<Zr[r]>e;e++)Kr[n++]=r;for(Kr[n-1]=r,i=0,r=0;16>r;r++)for(ni[r]=i,e=0;1<<$r[r]>e;e++)Jr[i++]=r;for(i>>=7;Ur>r;r++)for(ni[r]=i<<7,e=0;1<<$r[r]-7>e;e++)Jr[256+i++]=r;for(t=0;Fr>=t;t++)a[t]=0;for(e=0;143>=e;)Yr[2*e+1]=8,e++,a[8]++;for(;255>=e;)Yr[2*e+1]=9,e++,a[9]++;for(;279>=e;)Yr[2*e+1]=7,e++,a[7]++;for(;287>=e;)Yr[2*e+1]=8,e++,a[8]++;for(ci(Yr,287,a),e=0;Ur>e;e++)Gr[2*e+1]=5,Gr[2*e]=ui(e,5);Qr=new ri(Yr,Zr,257,Hr,Fr),ei=new ri(Gr,$r,0,Ur,Fr),ti=new ri([],Wr,0,19,7)}(),wi=!0),e.l_desc=new ii(e.dyn_ltree,Qr),e.d_desc=new ii(e.dyn_dtree,ei),e.bl_desc=new ii(e.bl_tree,ti),e.bi_buf=0,e.bi_valid=0,di(e)}function yi(e,t,n,r){si(e,0+(r?1:0),3),function(e,t,n){hi(e),oi(e,n),oi(e,~n),Rr(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}function ki(e){si(e,2,3),li(e,256,Yr),function(e){16===e.bi_valid?(oi(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8>e.bi_valid||(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}function xi(e,t,n,r){var i,a,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;31>=t;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;qr>t;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),mi(e,e.l_desc),mi(e,e.d_desc),o=function(e){var t;for(_i(e,e.dyn_ltree,e.l_desc.max_code),_i(e,e.dyn_dtree,e.d_desc.max_code),mi(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*Vr[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),(a=e.static_len+3+7>>>3)>(i=e.opt_len+3+7>>>3)||(i=a)):i=a=n+5,n+4>i||-1===t?4===e.strategy||a===i?(si(e,2+(r?1:0),3),gi(e,Yr,Gr)):(si(e,4+(r?1:0),3),function(e,t,n,r){var i;for(si(e,t-257,5),si(e,n-1,5),si(e,r-4,4),i=0;r>i;i++)si(e,e.bl_tree[2*Vr[i]+1],3);vi(e,e.dyn_ltree,t-1),vi(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),gi(e,e.dyn_ltree,e.dyn_dtree)):yi(e,t,n,r),di(e),r&&hi(e)}function Ei(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Kr[n]+qr+1)]++,e.dyn_dtree[2*ai(t)]++),e.last_lit===e.lit_bufsize-1}function Si(e,t,n,r){for(var i=65535&e,a=e>>>16&65535,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16}var Ai=function(){for(var e,t=[],n=0;256>n;n++){e=n;for(var r=0;8>r;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();function Li(e,t,n,r){var i=Ai,a=r+n;e^=-1;for(var o=r;a>o;o++)e=e>>>8^i[255&(e^t[o])];return-1^e}var ji,Ci=-2,zi=258,Pi=262,Mi=103,Ti=113,Oi=666;function Ri(e,t){return e.msg=Tr[t],t}function Ni(e){return(e<<1)-(e>4?9:0)}function Bi(e){for(var t=e.length;--t>=0;)e[t]=0}function Di(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(Rr(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Ii(e,t){xi(e,0>e.block_start?-1:e.block_start,e.strstart-e.block_start,t),e.block_start=e.strstart,Di(e.strm)}function qi(e,t){e.pending_buf[e.pending++]=t}function Hi(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Ui(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,Rr(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=Si(e.adler,t,i,n):2===e.state.wrap&&(e.adler=Li(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function Fi(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Pi?e.strstart-(e.w_size-Pi):0,u=e.window,c=e.w_mask,d=e.prev,h=e.strstart+zi,f=u[a+o-1],p=u[a+o];e.good_match>e.prev_length||(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===f&&u[n]===u[a]&&u[++n]===u[a+1]){a+=2,n++;do{}while(u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&u[++a]===u[++n]&&h>a);if(r=zi-(h-a),a=h-zi,r>o){if(e.match_start=t,o=r,r>=s)break;f=u[a+o-1],p=u[a+o]}}}while((t=d[t&c])>l&&0!==--i);return o>e.lookahead?e.lookahead:o}function Zi(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-Pi)){Rr(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=o>r?0:r-o}while(--n);t=n=o;do{r=e.prev[--t],e.prev[t]=o>r?0:r-o}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=Ui(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=3)for(e.ins_h=e.window[a=e.strstart-e.insert],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+3-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert>=3););}while(Pi>e.lookahead&&0!==e.strm.avail_in)}function $i(e,t){for(var n,r;;){if(Pi>e.lookahead){if(Zi(e),Pi>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(n=0,3>e.lookahead||(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0===n||e.strstart-n>e.w_size-Pi||(e.match_length=Fi(e,n)),3>e.match_length)r=Ei(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;else if(r=Ei(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length>e.max_lazy_match||3>e.lookahead)e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else{e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}if(r&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=2>e.strstart?e.strstart:2,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}function Wi(e,t){for(var n,r,i;;){if(Pi>e.lookahead){if(Zi(e),Pi>e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(n=0,3>e.lookahead||(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.max_lazy_match>e.prev_length&&e.w_size-Pi>=e.strstart-n&&(e.match_length=Fi(e,n),5>=e.match_length&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),3>e.prev_length||e.match_length>e.prev_length)if(e.match_available){if((r=Ei(e,0,e.window[e.strstart-1]))&&Ii(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--;else{i=e.strstart+e.lookahead-3,r=Ei(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart>i||(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(Ii(e,!1),0===e.strm.avail_out))return 1}}return e.match_available&&(r=Ei(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=2>e.strstart?e.strstart:2,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}function Vi(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function Yi(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Br(1146),this.dyn_dtree=new Br(122),this.bl_tree=new Br(78),Bi(this.dyn_ltree),Bi(this.dyn_dtree),Bi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Br(16),this.heap=new Br(573),Bi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Br(573),Bi(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Gi(e){var t,n=function(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,0>t.wrap&&(t.wrap=-t.wrap),t.status=t.wrap?42:Ti,e.adler=2===t.wrap?0:1,t.last_flush=0,bi(t),0):Ri(e,Ci)}(e);return 0===n&&((t=e.state).window_size=2*t.w_size,Bi(t.head),t.max_lazy_match=ji[t.level].max_lazy,t.good_match=ji[t.level].good_length,t.nice_match=ji[t.level].nice_length,t.max_chain_length=ji[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function Ji(e,t){var n,r,i,a;if(!e||!e.state||t>5||0>t)return e?Ri(e,Ci):Ci;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Oi&&4!==t)return Ri(e,0===e.avail_out?-5:Ci);if(r.strm=e,n=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,qi(r,31),qi(r,139),qi(r,8),r.gzhead?(qi(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),qi(r,255&r.gzhead.time),qi(r,r.gzhead.time>>8&255),qi(r,r.gzhead.time>>16&255),qi(r,r.gzhead.time>>24&255),qi(r,9===r.level?2:r.strategy>=2||2>r.level?4:0),qi(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(qi(r,255&r.gzhead.extra.length),qi(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Li(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(qi(r,0),qi(r,0),qi(r,0),qi(r,0),qi(r,0),qi(r,9===r.level?2:r.strategy>=2||2>r.level?4:0),qi(r,3),r.status=Ti);else{var o=8+(r.w_bits-8<<4)<<8;o|=(r.strategy>=2||2>r.level?0:6>r.level?1:6===r.level?2:3)<<6,0!==r.strstart&&(o|=32),o+=31-o%31,r.status=Ti,Hi(r,o),0!==r.strstart&&(Hi(r,e.adler>>>16),Hi(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(i=r.pending;(65535&r.gzhead.extra.length)>r.gzindex&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>i&&(e.adler=Li(e.adler,r.pending_buf,r.pending-i,i)),Di(e),i=r.pending,r.pending!==r.pending_buf_size));)qi(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=Li(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Li(e.adler,r.pending_buf,r.pending-i,i)),Di(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzhead.name.length>r.gzindex?255&r.gzhead.name.charCodeAt(r.gzindex++):0,qi(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=Li(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Li(e.adler,r.pending_buf,r.pending-i,i)),Di(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzhead.comment.length>r.gzindex?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,qi(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=Li(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.status=Mi)}else r.status=Mi;if(r.status===Mi&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Di(e),r.pending+2>r.pending_buf_size||(qi(r,255&e.adler),qi(r,e.adler>>8&255),e.adler=0,r.status=Ti)):r.status=Ti),0!==r.pending){if(Di(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&Ni(t)<=Ni(n)&&4!==t)return Ri(e,-5);if(r.status===Oi&&0!==e.avail_in)return Ri(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==Oi){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Zi(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=Ei(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,i,a,o=e.window;;){if(zi>=e.lookahead){if(Zi(e),zi>=e.lookahead&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+zi;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&a>i);e.match_length=zi-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(3>e.match_length?(n=Ei(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++):(n=Ei(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0),n&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Ii(e,!1),0===e.strm.avail_out)?1:2}(r,t):ji[r.level].func(r,t);if(3!==s&&4!==s||(r.status=Oi),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===s&&(1===t?ki(r):5!==t&&(yi(r,0,0,!1),3===t&&(Bi(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Di(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap>0?(2===r.wrap?(qi(r,255&e.adler),qi(r,e.adler>>8&255),qi(r,e.adler>>16&255),qi(r,e.adler>>24&255),qi(r,255&e.total_in),qi(r,e.total_in>>8&255),qi(r,e.total_in>>16&255),qi(r,e.total_in>>24&255)):(Hi(r,e.adler>>>16),Hi(r,65535&e.adler)),Di(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1):1}ji=[new Vi(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(1>=e.lookahead){if(Zi(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Ii(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Pi&&(Ii(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Ii(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&Ii(e,!1),1)}),new Vi(4,4,8,4,$i),new Vi(4,5,16,8,$i),new Vi(4,6,32,32,$i),new Vi(4,4,16,16,Wi),new Vi(8,16,32,32,Wi),new Vi(8,16,128,128,Wi),new Vi(8,32,128,256,Wi),new Vi(32,128,258,1024,Wi),new Vi(32,258,258,4096,Wi)];function Ki(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,g,m,_,v,w,b,y,k,x,E,S,A;S=e.input,i=(r=e.next_in)+(e.avail_in-5),A=e.output,o=(a=e.next_out)-(t-e.avail_out),s=a+(e.avail_out-257),l=(n=e.state).dmax,u=n.wsize,c=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,g=n.lencode,m=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{15>p&&(f+=S[r++]<<p,f+=S[r++]<<(p+=8),p+=8),w=g[f&_];t:for(;;){if(f>>>=b=w>>>24,p-=b,0===(b=w>>>16&255))A[a++]=65535&w;else{if(!(16&b)){if(64&b){if(32&b){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}w=g[(65535&w)+(f&(1<<b)-1)];continue t}for(y=65535&w,(b&=15)&&(b>p&&(f+=S[r++]<<p,p+=8),y+=f&(1<<b)-1,f>>>=b,p-=b),15>p&&(f+=S[r++]<<p,f+=S[r++]<<(p+=8),p+=8),w=m[f&v];;){if(f>>>=b=w>>>24,p-=b,16&(b=w>>>16&255)){if(k=65535&w,(b&=15)>p&&(f+=S[r++]<<p,b>(p+=8)&&(f+=S[r++]<<p,p+=8)),(k+=f&(1<<b)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(f>>>=b,p-=b,k>(b=a-o)){if((b=k-b)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,E=h,0===d){if(x+=u-b,y>b){y-=b;do{A[a++]=h[x++]}while(--b);x=a-k,E=A}}else if(b>d){if(x+=u+d-b,y>(b-=d)){y-=b;do{A[a++]=h[x++]}while(--b);if(x=0,y>d){y-=b=d;do{A[a++]=h[x++]}while(--b);x=a-k,E=A}}}else if(x+=d-b,y>b){y-=b;do{A[a++]=h[x++]}while(--b);x=a-k,E=A}for(;y>2;)A[a++]=E[x++],A[a++]=E[x++],A[a++]=E[x++],y-=3;y&&(A[a++]=E[x++],y>1&&(A[a++]=E[x++]))}else{x=a-k;do{A[a++]=A[x++],A[a++]=A[x++],A[a++]=A[x++],y-=3}while(y>2);y&&(A[a++]=A[x++],y>1&&(A[a++]=A[x++]))}break}if(64&b){e.msg="invalid distance code",n.mode=30;break e}w=m[(65535&w)+(f&(1<<b)-1)]}}break}}while(i>r&&s>a);f&=(1<<(p-=(y=p>>3)<<3))-1,e.next_in=r-=y,e.next_out=a,e.avail_in=i>r?i-r+5:5-(r-i),e.avail_out=s>a?s-a+257:257-(a-s),n.hold=f,n.bits=p}var Xi=15,Qi=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],ea=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],ta=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],na=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function ra(e,t,n,r,i,a,o,s){var l,u,c,d,h,f,p,g,m,_=s.bits,v=0,w=0,b=0,y=0,k=0,x=0,E=0,S=0,A=0,L=0,j=null,C=0,z=new Br(16),P=new Br(16),M=null,T=0;for(v=0;Xi>=v;v++)z[v]=0;for(w=0;r>w;w++)z[t[n+w]]++;for(k=_,y=Xi;y>=1&&0===z[y];y--);if(k>y&&(k=y),0===y)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(b=1;y>b&&0===z[b];b++);for(b>k&&(k=b),S=1,v=1;Xi>=v;v++)if(S<<=1,0>(S-=z[v]))return-1;if(S>0&&(0===e||1!==y))return-1;for(P[1]=0,v=1;Xi>v;v++)P[v+1]=P[v]+z[v];for(w=0;r>w;w++)0!==t[n+w]&&(o[P[t[n+w]]++]=w);if(0===e?(j=M=o,f=19):1===e?(j=Qi,C-=257,M=ea,T-=257,f=256):(j=ta,M=na,f=-1),L=0,w=0,v=b,h=a,x=k,E=0,c=-1,d=(A=1<<k)-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){p=v-E,f>o[w]?(g=0,m=o[w]):o[w]>f?(g=M[T+o[w]],m=j[C+o[w]]):(g=96,m=0),l=1<<v-E,b=u=1<<x;do{i[h+(L>>E)+(u-=l)]=p<<24|g<<16|m}while(0!==u);for(l=1<<v-1;L&l;)l>>=1;if(0!==l?(L&=l-1,L+=l):L=0,w++,0===--z[v]){if(v===y)break;v=t[n+o[w]]}if(v>k&&(L&d)!==c){for(0===E&&(E=k),h+=b,S=1<<(x=v-E);y>x+E&&(S-=z[x+E])>0;)x++,S<<=1;if(A+=1<<x,1===e&&A>852||2===e&&A>592)return 1;i[c=L&d]=k<<24|x<<16|h-a}}return 0!==L&&(i[h+L]=v-E<<24|64<<16),s.bits=k,0}var ia=-2,aa=12,oa=30;function sa(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function la(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Br(320),this.work=new Br(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ua(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,function(e){var t;return e&&e.state?(e.total_in=e.total_out=(t=e.state).total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Dr(852),t.distcode=t.distdyn=new Dr(592),t.sane=1,t.back=-1,0):ia}(e)):ia}function ca(e,t){var n,r;return e?(r=new la,e.state=r,r.window=null,n=function(e,t){var n,r;return e&&e.state?(0>t?(n=0,t=-t):(n=1+(t>>4),48>t&&(t&=15)),t&&(8>t||t>15)?ia:(null!==(r=e.state).window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ua(e))):ia}(e,t),0!==n&&(e.state=null),n):ia}var da,ha,fa=!0;function pa(e){if(fa){var t;for(da=new Dr(512),ha=new Dr(32),t=0;144>t;)e.lens[t++]=8;for(;256>t;)e.lens[t++]=9;for(;280>t;)e.lens[t++]=7;for(;288>t;)e.lens[t++]=8;for(ra(1,e.lens,0,288,da,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5;ra(2,e.lens,0,32,ha,0,e.work,{bits:5}),fa=!1}e.lencode=da,e.lenbits=9,e.distcode=ha,e.distbits=5}function ga(e,t){var n,r,i,a,o,s,l,u,c,d,h,f,p,g,m,_,v,w,b,y,k,x,E,S,A=0,L=new Nr(4),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return ia;(n=e.state).mode===aa&&(n.mode=13),o=e.next_out,i=e.output,a=e.next_in,r=e.input,u=n.hold,c=n.bits,d=s=e.avail_in,h=l=e.avail_out,x=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(2&n.wrap&&35615===u){n.check=0,L[0]=255&u,L[1]=u>>>8&255,n.check=Li(n.check,L,2,0),u=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=oa;break}if(8!=(15&u)){e.msg="unknown compression method",n.mode=oa;break}if(c-=4,k=8+(15&(u>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=oa;break}n.dmax=1<<k,e.adler=n.check=1,n.mode=512&u?10:aa,u=0,c=0;break;case 2:for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.flags=u,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=oa;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=oa;break}n.head&&(n.head.text=u>>8&1),512&n.flags&&(L[0]=255&u,L[1]=u>>>8&255,n.check=Li(n.check,L,2,0)),u=0,c=0,n.mode=3;case 3:for(;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.time=u),512&n.flags&&(L[0]=255&u,L[1]=u>>>8&255,L[2]=u>>>16&255,L[3]=u>>>24&255,n.check=Li(n.check,L,4,0)),u=0,c=0,n.mode=4;case 4:for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.head&&(n.head.xflags=255&u,n.head.os=u>>8),512&n.flags&&(L[0]=255&u,L[1]=u>>>8&255,n.check=Li(n.check,L,2,0)),u=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length=u,n.head&&(n.head.extra_len=u),512&n.flags&&(L[0]=255&u,L[1]=u>>>8&255,n.check=Li(n.check,L,2,0)),u=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((f=n.length)>s&&(f=s),f&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),Rr(n.head.extra,r,a,f,k)),512&n.flags&&(n.check=Li(n.check,r,f,a)),s-=f,a+=f,n.length-=f),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;f=0;do{k=r[a+f++],n.head&&k&&65536>n.length&&(n.head.name+=String.fromCharCode(k))}while(k&&s>f);if(512&n.flags&&(n.check=Li(n.check,r,f,a)),s-=f,a+=f,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;f=0;do{k=r[a+f++],n.head&&k&&65536>n.length&&(n.head.comment+=String.fromCharCode(k))}while(k&&s>f);if(512&n.flags&&(n.check=Li(n.check,r,f,a)),s-=f,a+=f,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;16>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(65535&n.check)){e.msg="header crc mismatch",n.mode=oa;break}u=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=aa;break;case 10:for(;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}e.adler=n.check=sa(u),u=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,2;e.adler=n.check=1,n.mode=aa;case aa:if(5===t||6===t)break e;case 13:if(n.last){u>>>=7&c,c-=7&c,n.mode=27;break}for(;3>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}switch(n.last=1&u,c-=1,3&(u>>>=1)){case 0:n.mode=14;break;case 1:if(pa(n),n.mode=20,6===t){u>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=oa}u>>>=2,c-=2;break;case 14:for(u>>>=7&c,c-=7&c;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if((65535&u)!=(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=oa;break}if(n.length=65535&u,u=0,c=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(f=n.length){if(f>s&&(f=s),f>l&&(f=l),0===f)break e;Rr(i,r,a,f,o),s-=f,a+=f,l-=f,o+=f,n.length-=f;break}n.mode=aa;break;case 17:for(;14>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(n.nlen=257+(31&u),c-=5,n.ndist=1+(31&(u>>>=5)),c-=5,n.ncode=4+(15&(u>>>=5)),u>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=oa;break}n.have=0,n.mode=18;case 18:for(;n.ncode>n.have;){for(;3>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.lens[j[n.have++]]=7&u,u>>>=3,c-=3}for(;19>n.have;)n.lens[j[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x=ra(0,n.lens,0,19,n.lencode,0,n.work,E={bits:n.lenbits}),n.lenbits=E.bits,x){e.msg="invalid code lengths set",n.mode=oa;break}n.have=0,n.mode=19;case 19:for(;n.nlen+n.ndist>n.have;){for(;_=(A=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,v=65535&A,c<(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(16>v)u>>>=m,c-=m,n.lens[n.have++]=v;else{if(16===v){for(S=m+2;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u>>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=oa;break}k=n.lens[n.have-1],f=3+(3&u),u>>>=2,c-=2}else if(17===v){for(S=m+3;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=m,k=0,f=3+(7&(u>>>=m)),u>>>=3,c-=3}else{for(S=m+7;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}c-=m,k=0,f=11+(127&(u>>>=m)),u>>>=7,c-=7}if(n.have+f>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=oa;break}for(;f--;)n.lens[n.have++]=k}}if(n.mode===oa)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=oa;break}if(n.lenbits=9,x=ra(1,n.lens,0,n.nlen,n.lencode,0,n.work,E={bits:n.lenbits}),n.lenbits=E.bits,x){e.msg="invalid literal/lengths set",n.mode=oa;break}if(n.distbits=6,n.distcode=n.distdyn,x=ra(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,E={bits:n.distbits}),n.distbits=E.bits,x){e.msg="invalid distances set",n.mode=oa;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,Ki(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,u=n.hold,c=n.bits,n.mode===aa&&(n.back=-1);break}for(n.back=0;_=(A=n.lencode[u&(1<<n.lenbits)-1])>>>16&255,v=65535&A,c<(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(_&&!(240&_)){for(w=m,b=_,y=v;_=(A=n.lencode[y+((u&(1<<w+b)-1)>>w)])>>>16&255,v=65535&A,c<w+(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=w,c-=w,n.back+=w}if(u>>>=m,c-=m,n.back+=m,n.length=v,0===_){n.mode=26;break}if(32&_){n.back=-1,n.mode=aa;break}if(64&_){e.msg="invalid literal/length code",n.mode=oa;break}n.extra=15&_,n.mode=22;case 22:if(n.extra){for(S=n.extra;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;_=(A=n.distcode[u&(1<<n.distbits)-1])>>>16&255,v=65535&A,c<(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(!(240&_)){for(w=m,b=_,y=v;_=(A=n.distcode[y+((u&(1<<w+b)-1)>>w)])>>>16&255,v=65535&A,c<w+(m=A>>>24);){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}u>>>=w,c-=w,n.back+=w}if(u>>>=m,c-=m,n.back+=m,64&_){e.msg="invalid distance code",n.mode=oa;break}n.offset=v,n.extra=15&_,n.mode=24;case 24:if(n.extra){for(S=n.extra;S>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=oa;break}n.mode=25;case 25:if(0===l)break e;if(n.offset>(f=h-l)){if((f=n.offset-f)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=oa;break}p=f>n.wnext?n.wsize-(f-=n.wnext):n.wnext-f,f>n.length&&(f=n.length),g=n.window}else g=i,p=o-n.offset,f=n.length;f>l&&(f=l),l-=f,n.length-=f;do{i[o++]=g[p++]}while(--f);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;i[o++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;32>c;){if(0===s)break e;s--,u|=r[a++]<<c,c+=8}if(e.total_out+=h-=l,n.total+=h,h&&(e.adler=n.check=n.flags?Li(n.check,i,h,o-h):Si(n.check,i,h,o-h)),h=l,(n.flags?u:sa(u))!==n.check){e.msg="incorrect data check",n.mode=oa;break}u=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;32>c;){if(0===s)break e;s--,u+=r[a++]<<c,c+=8}if(u!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=oa;break}u=0,c=0}n.mode=29;case 29:x=1;break e;case oa:x=-3;break e;case 31:return-4;default:return ia}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=u,n.bits=c,(n.wsize||h!==e.avail_out&&oa>n.mode&&(27>n.mode||4!==t))&&function(e,t,n,r){var i,a=e.state;null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Nr(a.wsize)),a.wsize>r?((i=a.wsize-a.wnext)>r&&(i=r),Rr(a.window,t,n-r,i,a.wnext),(r-=i)?(Rr(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.wsize>a.whave&&(a.whave+=i))):(Rr(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize)}(e,e.output,e.next_out,h-e.avail_out),h-=e.avail_out,e.total_in+=d-=e.avail_in,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?Li(n.check,i,h,e.next_out-h):Si(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===aa?128:0)+(20===n.mode||15===n.mode?256:0),(0===d&&0===h||4===t)&&0===x&&(x=-5),x}var ma;function _a(e){if(1>e||e>7)throw new TypeError("Bad argument");this.mode=e,this.init_done=!1,this.write_in_progress=!1,this.pending_close=!1,this.windowBits=0,this.level=0,this.memLevel=0,this.strategy=0,this.dictionary=null}function va(e,t){for(var n=0;e.length>n;n++)this[t+n]=e[n]}_a.prototype.init=function(e,t,n,r,i){var a;switch(this.windowBits=e,this.level=t,this.memLevel=n,this.strategy=r,3!==this.mode&&4!==this.mode||(this.windowBits+=16),7===this.mode&&(this.windowBits+=32),5!==this.mode&&6!==this.mode||(this.windowBits=-this.windowBits),this.strm=new Or,this.mode){case 1:case 3:case 5:a=function(e,t,n,r,i,a){if(!e)return Ci;var o=1;if(-1===t&&(t=6),0>r?(o=0,r=-r):r>15&&(o=2,r-=16),1>i||i>9||8!==n||8>r||r>15||0>t||t>9||0>a||a>4)return Ri(e,Ci);8===r&&(r=9);var s=new Yi;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Nr(2*s.w_size),s.head=new Br(s.hash_size),s.prev=new Br(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Nr(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,Gi(e)}(this.strm,this.level,8,this.windowBits,this.memLevel,this.strategy);break;case 2:case 4:case 6:case 7:a=ca(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode)}0===a?(this.write_in_progress=!1,this.init_done=!0):this._error(a)},_a.prototype.params=function(){throw Error("deflateParams Not supported")},_a.prototype._writeCheck=function(){if(!this.init_done)throw Error("write before init");if(0===this.mode)throw Error("already finalized");if(this.write_in_progress)throw Error("write already in progress");if(this.pending_close)throw Error("close is pending")},_a.prototype.write=function(e,t,n,r,i,a,o){this._writeCheck(),this.write_in_progress=!0;var s=this;return un(function(){s.write_in_progress=!1;var l=s._write(e,t,n,r,i,a,o);s.callback(l[0],l[1]),s.pending_close&&s.close()}),this},_a.prototype.writeSync=function(e,t,n,r,i,a,o){return this._writeCheck(),this._write(e,t,n,r,i,a,o)},_a.prototype._write=function(e,t,n,r,i,a,o){if(this.write_in_progress=!0,0!==e&&1!==e&&2!==e&&3!==e&&4!==e&&5!==e)throw Error("Invalid flush value");null==t&&(t=new ht(0),r=0,n=0),i.set=i._set?i._set:va;var s,l=this.strm;switch(l.avail_in=r,l.input=t,l.next_in=n,l.avail_out=o,l.output=i,l.next_out=a,this.mode){case 1:case 3:case 5:s=Ji(l,e);break;case 7:case 2:case 4:case 6:s=ga(l,e);break;default:throw Error("Unknown mode "+this.mode)}return 1!==s&&0!==s&&this._error(s),this.write_in_progress=!1,[l.avail_in,l.avail_out]},_a.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,1===this.mode||3===this.mode||5===this.mode?function(e){var t;e&&e.state&&(42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==Mi&&t!==Ti&&t!==Oi?Ri(e,Ci):(e.state=null,t===Ti&&Ri(e,-3)))}(this.strm):function(e){if(!e||!e.state)return ia;var t=e.state;t.window&&(t.window=null),e.state=null}(this.strm),this.mode=0)},_a.prototype.reset=function(){switch(this.mode){case 1:case 5:ma=Gi(this.strm);break;case 2:case 6:ma=ua(this.strm)}0!==ma&&this._error(ma)},_a.prototype._error=function(e){this.onerror(Tr[e]+": "+this.strm.msg,e),this.write_in_progress=!1,this.pending_close&&this.close()};var wa=Object.freeze({__proto__:null,DEFLATE:1,DEFLATERAW:5,GUNZIP:4,GZIP:3,INFLATE:2,INFLATERAW:6,NONE:0,UNZIP:7,Z_BEST_COMPRESSION:9,Z_BEST_SPEED:1,Z_BINARY:0,Z_BLOCK:5,Z_BUF_ERROR:-5,Z_DATA_ERROR:-3,Z_DEFAULT_COMPRESSION:-1,Z_DEFAULT_STRATEGY:0,Z_DEFLATED:8,Z_ERRNO:-1,Z_FILTERED:1,Z_FINISH:4,Z_FIXED:4,Z_FULL_FLUSH:3,Z_HUFFMAN_ONLY:2,Z_NEED_DICT:2,Z_NO_COMPRESSION:0,Z_NO_FLUSH:0,Z_OK:0,Z_PARTIAL_FLUSH:1,Z_RLE:3,Z_STREAM_END:1,Z_STREAM_ERROR:-2,Z_SYNC_FLUSH:2,Z_TEXT:1,Z_TREES:6,Z_UNKNOWN:2,Zlib:_a});var ba={};Object.keys(wa).forEach(function(e){ba[e]=wa[e]}),ba.Z_MIN_WINDOWBITS=8,ba.Z_MAX_WINDOWBITS=15,ba.Z_DEFAULT_WINDOWBITS=15,ba.Z_MIN_CHUNK=64,ba.Z_MAX_CHUNK=1/0,ba.Z_DEFAULT_CHUNK=16384,ba.Z_MIN_MEMLEVEL=1,ba.Z_MAX_MEMLEVEL=9,ba.Z_DEFAULT_MEMLEVEL=8,ba.Z_MIN_LEVEL=-1,ba.Z_MAX_LEVEL=9,ba.Z_DEFAULT_LEVEL=ba.Z_DEFAULT_COMPRESSION;var ya={Z_OK:ba.Z_OK,Z_STREAM_END:ba.Z_STREAM_END,Z_NEED_DICT:ba.Z_NEED_DICT,Z_ERRNO:ba.Z_ERRNO,Z_STREAM_ERROR:ba.Z_STREAM_ERROR,Z_DATA_ERROR:ba.Z_DATA_ERROR,Z_MEM_ERROR:ba.Z_MEM_ERROR,Z_BUF_ERROR:ba.Z_BUF_ERROR,Z_VERSION_ERROR:ba.Z_VERSION_ERROR};function ka(e,t,n){var r=[],i=0;function a(){for(var t;null!==(t=e.read());)r.push(t),i+=t.length;e.once("readable",a)}function o(){var t=ht.concat(r,i);r=[],n(null,t),e.close()}e.on("error",function(t){e.removeListener("end",o),e.removeListener("readable",a),n(t)}),e.on("end",o),e.end(t),a()}function xa(e,t){if("string"==typeof t&&(t=new ht(t)),!Gt(t))throw new TypeError("Not a string or buffer");return e._processChunk(t,ba.Z_FINISH)}function Ea(e){if(!(this instanceof Ea))return new Ea(e);Pa.call(this,e,ba.DEFLATE)}function Sa(e){if(!(this instanceof Sa))return new Sa(e);Pa.call(this,e,ba.INFLATE)}function Aa(e){if(!(this instanceof Aa))return new Aa(e);Pa.call(this,e,ba.GZIP)}function La(e){if(!(this instanceof La))return new La(e);Pa.call(this,e,ba.GUNZIP)}function ja(e){if(!(this instanceof ja))return new ja(e);Pa.call(this,e,ba.DEFLATERAW)}function Ca(e){if(!(this instanceof Ca))return new Ca(e);Pa.call(this,e,ba.INFLATERAW)}function za(e){if(!(this instanceof za))return new za(e);Pa.call(this,e,ba.UNZIP)}function Pa(e,t){if(this._opts=e=e||{},this._chunkSize=e.chunkSize||ba.Z_DEFAULT_CHUNK,Cr.call(this,e),e.flush&&e.flush!==ba.Z_NO_FLUSH&&e.flush!==ba.Z_PARTIAL_FLUSH&&e.flush!==ba.Z_SYNC_FLUSH&&e.flush!==ba.Z_FULL_FLUSH&&e.flush!==ba.Z_FINISH&&e.flush!==ba.Z_BLOCK)throw Error("Invalid flush flag: "+e.flush);if(this._flushFlag=e.flush||ba.Z_NO_FLUSH,e.chunkSize&&(ba.Z_MIN_CHUNK>e.chunkSize||e.chunkSize>ba.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(ba.Z_MIN_WINDOWBITS>e.windowBits||e.windowBits>ba.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+e.windowBits);if(e.level&&(ba.Z_MIN_LEVEL>e.level||e.level>ba.Z_MAX_LEVEL))throw Error("Invalid compression level: "+e.level);if(e.memLevel&&(ba.Z_MIN_MEMLEVEL>e.memLevel||e.memLevel>ba.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=ba.Z_FILTERED&&e.strategy!=ba.Z_HUFFMAN_ONLY&&e.strategy!=ba.Z_RLE&&e.strategy!=ba.Z_FIXED&&e.strategy!=ba.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!Gt(e.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");this._binding=new ba.Zlib(t);var n=this;this._hadError=!1,this._binding.onerror=function(e,t){n._binding=null,n._hadError=!0;var r=Error(e);r.errno=t,r.code=ba.codes[t],n.emit("error",r)};var r=ba.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(r=e.level);var i=ba.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(i=e.strategy),this._binding.init(e.windowBits||ba.Z_DEFAULT_WINDOWBITS,r,e.memLevel||ba.Z_DEFAULT_MEMLEVEL,i,e.dictionary),this._buffer=new ht(this._chunkSize),this._offset=0,this._closed=!1,this._level=r,this._strategy=i,this.once("end",this.close)}Object.keys(ya).forEach(function(e){ya[ya[e]]=e}),bn(Pa,Cr),Pa.prototype.params=function(e,t,n){if(ba.Z_MIN_LEVEL>e||e>ba.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(t!=ba.Z_FILTERED&&t!=ba.Z_HUFFMAN_ONLY&&t!=ba.Z_RLE&&t!=ba.Z_FIXED&&t!=ba.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+t);if(this._level!==e||this._strategy!==t){var r=this;this.flush(ba.Z_SYNC_FLUSH,function(){r._binding.params(e,t),r._hadError||(r._level=e,r._strategy=t,n&&n())})}else un(n)},Pa.prototype.reset=function(){return this._binding.reset()},Pa.prototype._flush=function(e){this._transform(new ht(0),"",e)},Pa.prototype.flush=function(e,t){var n=this._writableState;if(("function"==typeof e||void 0===e&&!t)&&(t=e,e=ba.Z_FULL_FLUSH),n.ended)t&&un(t);else if(n.ending)t&&this.once("end",t);else if(n.needDrain){var r=this;this.once("drain",function(){r.flush(t)})}else this._flushFlag=e,this.write(new ht(0),"",t)},Pa.prototype.close=function(e){if(e&&un(e),!this._closed){this._closed=!0,this._binding.close();var t=this;un(function(){t.emit("close")})}},Pa.prototype._transform=function(e,t,n){var r,i=this._writableState,a=(i.ending||i.ended)&&(!e||i.length===e.length);if(null===!e&&!Gt(e))return n(Error("invalid input"));a?r=ba.Z_FINISH:(r=this._flushFlag,i.length>e.length||(this._flushFlag=this._opts.flush||ba.Z_NO_FLUSH)),this._processChunk(e,r,n)},Pa.prototype._processChunk=function(e,t,n){var r=e&&e.length,i=this._chunkSize-this._offset,a=0,o=this,s="function"==typeof n;if(!s){var l,u=[],c=0;this.on("error",function(e){l=e});do{var d=this._binding.writeSync(t,e,a,r,this._buffer,this._offset,i)}while(!this._hadError&&p(d[0],d[1]));if(this._hadError)throw l;var h=ht.concat(u,c);return this.close(),h}var f=this._binding.write(t,e,a,r,this._buffer,this._offset,i);function p(l,d){if(!o._hadError){var h=i-d;if(function(e,t){if(!e)throw Error(t)}(h>=0,"have should not go down"),h>0){var f=o._buffer.slice(o._offset,o._offset+h);o._offset+=h,s?o.push(f):(u.push(f),c+=f.length)}if(0!==d&&o._chunkSize>o._offset||(i=o._chunkSize,o._offset=0,o._buffer=new ht(o._chunkSize)),0===d){if(a+=r-l,r=l,!s)return!0;var g=o._binding.write(t,e,a,r,o._buffer,o._offset,o._chunkSize);return g.callback=p,void(g.buffer=e)}if(!s)return!1;n()}}f.buffer=e,f.callback=p},bn(Ea,Pa),bn(Sa,Pa),bn(Aa,Pa),bn(La,Pa),bn(ja,Pa),bn(Ca,Pa),bn(za,Pa);var Ma={codes:ya,createDeflate:function(e){return new Ea(e)},createInflate:function(e){return new Sa(e)},createDeflateRaw:function(e){return new ja(e)},createInflateRaw:function(e){return new Ca(e)},createGzip:function(e){return new Aa(e)},createGunzip:function(e){return new La(e)},createUnzip:function(e){return new za(e)},deflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Ea(t),e,n)},deflateSync:function(e,t){return xa(new Ea(t),e)},gzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Aa(t),e,n)},gzipSync:function(e,t){return xa(new Aa(t),e)},deflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new ja(t),e,n)},deflateRawSync:function(e,t){return xa(new ja(t),e)},unzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new za(t),e,n)},unzipSync:function(e,t){return xa(new za(t),e)},inflate:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Sa(t),e,n)},inflateSync:function(e,t){return xa(new Sa(t),e)},gunzip:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new La(t),e,n)},gunzipSync:function(e,t){return xa(new La(t),e)},inflateRaw:function(e,t,n){return"function"==typeof t&&(n=t,t={}),ka(new Ca(t),e,n)},inflateRawSync:function(e,t){return xa(new Ca(t),e)},Deflate:Ea,Inflate:Sa,Gzip:Aa,Gunzip:La,DeflateRaw:ja,InflateRaw:Ca,Unzip:za,Zlib:Pa};function Ta(e,t,n){var r=(3&e)<<4|t>>4,i=(15&t)<<2|n>>6,a=63&n,o="";return o+=Oa(63&e>>2),o+=Oa(63&r),o+=Oa(63&i),o+=Oa(63&a)}function Oa(e){return 10>e?String.fromCharCode(48+e):26>(e-=10)?String.fromCharCode(65+e):26>(e-=26)?String.fromCharCode(97+e):0==(e-=26)?"-":1==e?"_":"?"}function Ra(e){var t=e.charCodeAt(0);return"_"===e?63:"-"===e?62:97>t?65>t?48>t?"?":t-48:t-55:t-61}function Na(e){var t=Ra(e[0]),n=Ra(e[1]),r=Ra(e[2]);return[t<<2|n>>4&63,n<<4&240|r>>2&15,r<<6&192|63&Ra(e[3])]}function Ba(e){return function(e){for(var t="",n=0;e.length>n;n+=3)t+=n+2==e.length?Ta(e.charCodeAt(n),e.charCodeAt(n+1),0):n+1==e.length?Ta(e.charCodeAt(n),0,0):Ta(e.charCodeAt(n),e.charCodeAt(n+1),e.charCodeAt(n+2));return t}(Ma.deflateRawSync(e,{level:9}).toString("binary"))}function Da(e){return""+Ma.inflateRawSync(ht.from(function(e){var t="",n=0;for(n=0;e.length>n;n+=4){var r=Na(e.substring(n,n+4));t+=String.fromCharCode(r[0]),t+=String.fromCharCode(r[1]),t+=String.fromCharCode(r[2])}return t}(e),"binary"))}var Ia={encodeuml:function(e){var t="@startuml",n="@enduml";return Ba("".concat(t).concat((e.split(t)[1]+"").split(n)[0]||"").concat(n))},decodeuml:function(e){return Da(e)}},qa="img",Ha=0;function Ua(e,t){return Ha=e.length,new Promise(function(n){var r=[];e.forEach(function(e){r.push(function(e,t){return new Promise(function(n){var r=e.dataset.lang,i=null;if(r)try{i=JSON.parse(r)}catch(e){}var a="";if(i){if("boolean"==typeof i.codeblock&&i.codeblock||"string"==typeof i.codeblock&&"true"===i.codeblock.toLowerCase())return n(!1);i.align&&("center"===i.align?a="diagram-center":"right"===i.align&&(a="diagram-right"))}var o=e.textContent.trim(),s=(e.classList.length>0?e.classList[0]:"")+(e.className&&a?" ":"")+a,l=t.imageFormat;if("svg"!==l){var u=window&&window.location.protocol,c=("http:"===u||"https:"===u?"//":"https://")+t.umlWebSite,d=l!==qa?".".concat(l):"",h=Ia.encodeuml(o),f="".concat(c,"/").concat(l,"/").concat(h).concat(d);return e.parentNode.outerHTML='<div class="'.concat(s,"\"><img src='").concat(f,"' alt=''></img></div>"),n(!0)}var p="plantuml-"+Date.now()+"-"+Math.floor(1e4*Math.random());if("function"==typeof t.svgRender&&t.svgRender)t.svgRender(p,s,o,Ha).then(function(t){e.parentNode.outerHTML='<div id="'.concat(p,'" class="').concat(s,'">').concat(t,"</div>"),n(!0)});else if("undefined"!=typeof window&&window.fetch&&window.dispatchEvent){var g=window&&window.location.protocol,m=("http:"===g||"https:"===g?"//":"https://")+t.umlWebSite,_=l!==qa?".".concat(l):"",v=Ia.encodeuml(o),w="".concat(m,"/").concat(l,"/").concat(v).concat(_);window.fetch(w).then(function(e){if(e.ok)return e.text()}).then(function(t){e.parentNode.outerHTML='<div id="'.concat(p,'" class="').concat(s,'">').concat(t,"</div>"),n(!0)})}})}(e,t))}),Promise.all(r).then(function(){n(!0)})})}function Fa(e){var t=function(){return r({umlWebSite:"www.plantuml.com/plantuml",imageFormat:qa,svgRender:null},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.plantuml.language-plantuml");return!!n.length&&Ua(n,this.config).then(function(){return e})}}]}var Za="railroad",$a="railroadCSS";if("undefined"==typeof window)throw Error("The showdown railroad extension can only be used in browser environment!");var Wa=!1;function Va(){return Wa}var Ya,Ga=!1;function Ja(e,t){if(Va()){var n=t.id,r=t.className,i=t.cssLink,a=window.eval(t.data).format(),o=t.element.ownerDocument;return t.element.parentNode.outerHTML=i?'<div id="'.concat(n,'" class="').concat(r,' css-railroad" data-css="').concat(i,'"></div>'):'<div id="'.concat(n,'" class="').concat(r,'"></div>'),a.addTo(o.getElementById(n)),e(!0)}setTimeout(function(){Ja(e,t)},10)}function Ka(e){return new Promise(function(t){var n=A.createElementMeta(Za,e);if(!n)return t(!1);n.cssLink=S.getSrc(!0,$a),Ja(t,n)})}function Xa(e){return function(){var e=Va();if("undefined"!=typeof window){if(Ga)return e;e||(Ga=!0,S.loadStyleSheet($a),S.loadScript(Za).then(function(){Wa=!0}))}}(),new Promise(function(t){var n=[];e.forEach(function(e){n.push(Ka(e))}),Promise.all(n).then(function(){t(!0)})})}function Qa(){return[{type:"output",filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.railroad.language-railroad");return!!n.length&&(this.config={cssLink:S.getSrc(!0,$a)},A.addCssLink(e,this.config.cssLink,"css-railroad"),Xa(n).then(function(){return e}))}}]}if("undefined"==typeof window)throw Error("The showdown sequence extension can only be used in browser environment!");if(void 0===eo)var eo=window.Raphael||void 0;if("undefined"!=typeof window&&window.Diagram&&(Ya=window.Diagram,window.Diagram.Signal))var to=window.Diagram;var no=["simple","hand"];if(void 0===to&&"undefined"!=typeof window)to=window.SequenceJS;function ro(){return!!eo}function io(){return ro()&&!!to}var ao=!1,oo="sequenceCSS";function so(e){var t=e.dataset.lang,n=t?JSON.parse(t):null,r="";if(n){if("boolean"==typeof n.codeblock&&n.codeblock||"string"==typeof n.codeblock&&"true"===n.codeblock.toLowerCase())return;n.align&&("center"===n.align?r="diagram-center":"right"===n.align&&(r="diagram-right"))}var i=function(){var e=io();if("undefined"!=typeof window){if(ao)return e;e||(ao=!0,S.loadStyleSheet(oo),S.loadScript("WebFont").then(function(){return ro()?"Raphael":S.loadScript("Raphael")}).then(function(e){return eo=A.interopDefault(window[e]),S.loadScript("Snap")}).then(function(){return S.loadScript("underscore")}).then(function(){return!Ya&&window.Diagram&&(Ya=window.Diagram),S.loadScript("sequence")}).then(function(){to=window.Diagram,window.SequenceJS=to,Ya&&(window.Diagram=Ya)}))}return e}(),a=S.getSrc(!0,oo),o=e.textContent.trim(),s="js-sequence"+(r?" ":"")+r,l="sequence-"+Date.now()+"-"+Math.floor(1e4*Math.random());e.id=l,a&&(e.className=e.className+(e.className?" ":"")+"css-sequence",e.dataset.css=a),!i&&"undefined"!=typeof window&&window.dispatchEvent?Promise.resolve(l).then(function(e){window.dispatchEvent(new CustomEvent("sequence",{detail:{id:e,className:s,data:o,langattr:t,cssLink:a}}))}):"undefined"!=typeof window&&window.dispatchEvent&&window.dispatchEvent(new CustomEvent("sequence",{detail:{id:l,className:s,data:o,langattr:t,cssLink:a}}))}function lo(e){if(io()){var t=e.id,n=e.className,r=e.data,i=e.cssLink,a="hand",o=e.langattr;if(o){var s=JSON.parse(o);s&&s.theme&&-1!=no.indexOf(s.theme)&&(a=s.theme)}var l=window.document.getElementById(t);if(l)return l.parentNode.outerHTML=i?'<div id="'.concat(t,'" class="').concat(n,' css-sequence" data-css="').concat(i,'"></div>'):'<div id="'.concat(t,'" class="').concat(n,'"></div>'),l=window.document.getElementById(t),void to.parse(r).drawSVG(l||t,{theme:a})}setTimeout(function(){lo(e)},10)}function uo(){var e=!1;return[{type:"output",filter:function(t){if("string"==typeof t){var n=(new DOMParser).parseFromString(t,"text/html"),r=void 0!==n.body?n.body:n,i=r.querySelectorAll("code.sequence.language-sequence");return i.length&&(e||"undefined"!=typeof window&&window.dispatchEvent&&(e=!0,window.addEventListener("sequence",function(e){e.detail&&lo(e.detail)})),this.config={cssLink:S.getSrc(!0,oo)}),function(e){return!!e.length&&(e.forEach(function(e){so(e)}),!0)}(i)?r.innerHTML:t}if(!t||!t.wrapper)return!1;var a=t;return a.wrapper.querySelectorAll("code.sequence.language-sequence").length>0&&A.addCssLink(a,S.getSrc(!0,oo),"css-sequence"),a}}]}if("undefined"==typeof window)throw Error("The showdown wavedrom extension can only be used in browser environment!");if(void 0===co)var co=window.WaveDrom||void 0;var ho=0,fo=0;function po(){return!!co}var go=!1;function mo(e,t){if(po()){var n=t.index,r=t.id,i=t.data,a=t.element;return a.parentNode.outerHTML=A.renderCacheElement(a.ownerDocument,r+n,t.className,function(e){var t=window.eval("(".concat(i,")"));co.RenderWaveForm(n,t,r);var a=document.getElementById("WaveDrom_Display_"+n);if(e!=a)for(;a.childNodes.length;)e.appendChild(a.removeChild(a.childNodes[0]))}),e(!0)}setTimeout(function(){mo(e,t)},10)}function _o(e){return new Promise(function(t){var n=e.dataset.lang,r=n?JSON.parse(n):null,i="";if(r){if("boolean"==typeof r.codeblock&&r.codeblock||"string"==typeof r.codeblock&&"true"===r.codeblock.toLowerCase())return;r.align&&("center"===r.align?i="diagram-center":"right"===r.align&&(i="diagram-right"))}var a=e.textContent.trim(),o=(e.classList.length>0?e.classList[0]:"")+(e.className&&i?" ":"")+i,s=fo;++fo,--ho||(fo=0);var l="WaveDrom_Display_";e.id=l+s,mo(t,{element:e,index:s,id:l,className:o,data:a})})}function vo(e,t){return function(e){var t=po();go||t||(go=!0,"undefined"!=typeof window&&S.loadScript({WaveDromSkin:e}).then(function(){return S.loadScript("WaveDrom")}).then(function(e){co=A.interopDefault(window[e])}))}(t),new Promise(function(t){var n=[];ho=e.length,e.forEach(function(e){n.push(_o(e))}),Promise.all(n).then(function(){t(!0)})})}function wo(e){var t=function(){return r({skin:"default"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.wavedrom.language-wavedrom");return!!n.length&&(g("Begin render wavedrom elements."),vo(n,this.config.skin).then(function(){return g("End render wavedrom elements."),e}))}}]}function bo(){return[{type:"lang",filter:function(e,t){return e.replace(/^\[\^([\d\w]+)\]:\s*((\n+(\s{2,4}|\t).+)+)$/gm,function(e,n,r,i,a){var o=t.makeHtml(r.replace(RegExp("^".concat(a),"gm"),""));return'<div class="footnote" id="footnote-'.concat(n,'"><a href="#footnote-').concat(n,'"><sup>[').concat(n,"]</sup></a>:").concat(o,"</div>")})}},{type:"lang",filter:function(e){return e.replace(/^\[\^([\d\w]+)\]:( |\n)((.+\n)*.+)$/gm,function(e,t,n,r){return'<small class="footnote" id="footnote-'.concat(t,'"><a href="#footnote-').concat(t,'"><sup>[').concat(t,"]</sup></a>: ").concat(r,"</small>")})}},{type:"lang",filter:function(e){return e.replace(/([^\\])\[\^([\d\w]+)\]/gm,function(e,t,n){return"".concat(t,'<a href="#footnote-').concat(n,'"><sup>[').concat(n,"]</sup></a>")})}},{type:"lang",filter:function(e){return e.replace(/\\\[\^([\d\w]+)\]/gm,function(e,t){return"[^".concat(t,"]")})}}]}function yo(){return[{type:"lang",filter:function(e,t){return e.replace(/(?:^|\n)(?: {0,3})(:::+)(?: *)([\S]+)(?:[ \t]*)([^\s][\S\t ]*)?\n([\s\S]*?)\n(?: {0,3})\1(?:[ \t]*)\n/g,function(e,n,r,i,a){if(r){var o=r.split("-");o.length>1?o.forEach(function(e,t,n){t>0&&(n[t]=n[t-1]+"-"+e)}):o.unshift("container"),r=o.join(" ")}return a&&(a=t.makeHtml(a)),i=i?'<p class="container-title">'.concat(i,"</p>"):"",'<div class="showdown-container '.concat(r,'">').concat(i).concat(a,"</div>")})}}]}if("undefined"==typeof window)throw Error("The showdown flowchart extension can only be used in browser environment!");if(void 0===ko)var ko=window.Raphael||void 0;if(void 0===xo)var xo=window.flowchart||void 0;function Eo(){return!(void 0===ko||!ko||void 0===xo||!xo)}var So=!1;function Ao(){var e=Eo();if("undefined"!=typeof window){if(So)return e;if(!e){if(So=!0,!ko)return S.loadScript("Raphael").then(function(e){return ko=A.interopDefault(window[e]),S.loadScript("flowchart")}).then(function(e){xo=A.interopDefault(window[e])}),e;S.loadScript("flowchart").then(function(e){xo=A.interopDefault(window[e])})}}return e}function Lo(e,t){if(Eo()){var n=t.data,r=t.options;return t.element.parentNode.outerHTML=A.renderCacheElement(t.element.ownerDocument,t.id,t.className,function(e){xo.parse(n).drawSVG(e,r)}),void e(!0)}setTimeout(function(){Lo(e,t)},10)}function jo(e,t){return new Promise(function(n){var r=A.createElementMeta("flowchart",e);if(!r)return n(!1);r.options=t,Lo(n,r)})}function Co(e){var t=function(){return r({"line-width":3,maxWidth:3,"line-length":50,"text-margin":10,"font-size":14,font:"normal","font-family":"Helvetica","font-weight":"normal","font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",scale:1,symbols:{start:{"font-color":"red","element-color":"green",fill:"yellow"},end:{class:"end-element"}},flowstate:{past:{fill:"#CCCCCC","font-size":12},current:{fill:"yellow","font-color":"red","font-weight":"bold"},future:{fill:"#FFFF99"},request:{fill:"blue"},invalid:{fill:"#444444"},approved:{fill:"#58C4A3","font-size":12,"yes-text":"APPROVED","no-text":"n/a"},rejected:{fill:"#C45879","font-size":12,"yes-text":"n/a","no-text":"REJECTED"}}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}(e);return[{type:"output",config:t,filter:function(e){var t=e.wrapper;if(!t)return!1;var n=t.querySelectorAll("code.flowchart.language-flowchart"),r=t.querySelectorAll("code.flow.language-flow");return!(!n.length&&!r.length)&&function(e,t,n){return Ao(),new Promise(function(r){var i=[];e.forEach(function(e){i.push(jo(e,n))}),t.forEach(function(e){i.push(jo(e,n))}),Promise.all(i).then(function(){r(!0)})})}(n,r,this.config).then(function(){return e})}}]}var zo=function(){return r({flavor:"github"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},Po=function(e,t,n){if(!e||!t||"undefined"==typeof document)return!1;var r=document.getElementById(e);r||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=n);var i=r.tagName,a="script-".concat(e),o=document.querySelector("".concat(i," > #").concat(a));return o||((o=document.createElement("script")).id=a,o.type="text/javascript",o.text=t,r.appendChild(o)),!0},Mo=function(e,t,n){if(!e||!t||"undefined"==typeof document)return!1;var r=document.getElementById(e);r||(n?"string"==typeof n&&(n=document.querySelector(n)):n=document.body,r=n);var i=r.tagName,a="script-".concat(e),o=document.querySelector("".concat(i," > #").concat(a));return o||((o=document.createElement("script")).id=a,o.type="text/javascript",o.text=t,r.insertBefore(o,r.children[0])),!0};function To(e,t){return new Promise(function(n,r){e&&t&&"undefined"!=typeof document||r("Args is invaild!");var i="script-"+e.toLowerCase(),a=document.getElementById(i);if(a)return n(e);var o=document.head||document.getElementsByTagName("head")[0];(a=document.createElement("script")).src=t,a.id=i,a.onload=function(){n(e)},o.appendChild(a)})}var Oo=function(e,t,n){var r=t;if(e.host&&"string"==typeof e.host&&(r=document.querySelector(e.host)),!e.inner){if(!e.code)return!1;if("function"==typeof e.code){var i=e.code;return n?(n.then(function(){i()}),!0):(i(),!0)}return n?(n.then(function(){Po(e.id,e.code,r)}),!0):Po(e.id,e.code,r)}if(u.helper.isArray(e.inner)||(e.inner=[e.inner]),e.code)if("function"==typeof e.code){var a=e.code;n?n.then(function(){a()}):a()}else n?n.then(function(){Mo(e.id,e.code,r)}):Mo(e.id,e.code,r);if(e.inner.length>0)for(var o=function(){var t=e.inner[s];if(!t.code)return 0;if("function"==typeof t.code){var i=t.code;return n?n.then(function(){i()}):i(),0}var a=r;if(t.host&&"string"==typeof t.host&&(a=document.querySelector(t.host)),n)return n.then(function(){Po(t.id,t.code,a)}),0;Po(t.id,t.code,a)},s=0;e.inner.length>s;++s)o();return!0},Ro=["github","ghost","vanilla","original","allon"],No=["default","forest","dark","neutral"],Bo=["excel","ggplot2","quartz","vox","dark"],Do=["canvas","svg"],Io=["svg","png","jpg"],qo={showdown:u,converter:null,defaultOptions:{showdown:zo(),plantuml:{imageFormat:"svg"},mermaid:{theme:"default"},katex:{},vega:{theme:"vox"}},defaultExtensions:{},defaultAsyncExtensions:{},markdownDecodeFilter:function(e){return""},initDefaultOptions:function(){this.defaultOptions||(this.defaultOptions={showdown:{},plantuml:{},mermaid:{},katex:{},vega:{}})},setFlavor:function(e){this.showdown.setFlavor(e),this.converter&&this.converter.setFlavor(e)},addOptions:function(e){for(var t in e)"flavor"!==t&&(this.showdown.setOption(t,e[t]),this.converter&&this.converter.setOption(t,e[t]))},addExtension:function(e,t){if(this.removeExtension(e),"string"==typeof e)try{u.extension(e,t),this.converter&&this.converter.addExtension(e)}catch(e){}},removeExtension:function(e){if("string"==typeof e){if(this.converter){var t=null;try{t=u.extension(e)}catch(e){}if(!t)return;this.converter.removeExtension(t)}u.removeExtension(e)}},addAsyncExtension:function(e,t){if(this.removeAsyncExtension(e),"string"==typeof e)try{u.asyncExtension(e,t),this.converter&&this.converter.addAsyncExtension(e)}catch(e){}},removeAsyncExtension:function(e){if("string"==typeof e){if(this.converter){var t=null;try{t=u.asyncExtension(e)}catch(e){}if(!t)return;this.converter.removeAsyncExtension(t)}u.removeAsyncExtension(e)}},setCDN:function(e,t,n,r){"string"==typeof e&&e&&S.setCDN(e,t,n,r)},setShowdownFlavor:function(e){this.initDefaultOptions(),e&&(-1===Ro.indexOf(e)&&(e="github"),this.defaultOptions.showdown.flavor=e,this.setFlavor(e))},setShowdownOptions:function(e){return this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.showdown=Object.assign(this.defaultOptions.showdown||{},e),this.setShowdownFlavor(this.defaultOptions.showdown.flavor),this.addOptions(this.defaultOptions.showdown),this.defaultOptions.showdown},setPlantumlOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.plantuml=Object.assign(this.defaultOptions.plantuml||{},e);var t=this.defaultOptions.plantuml.imageFormat;return t&&-1===Io.indexOf(t)&&(this.defaultOptions.plantuml.imageFormat="png"),this.converter&&this.addAsyncExtension("showdown-plantuml",Fa(this.defaultOptions.plantuml)),this.defaultOptions.plantuml},setMermaidOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.mermaid=Object.assign(this.defaultOptions.mermaid||{},e);var t=this.defaultOptions.mermaid.theme;return t&&-1===No.indexOf(t)&&(this.defaultOptions.mermaid.theme="default"),this.converter&&this.addAsyncExtension("showdown-mermaid",Je(this.defaultOptions.mermaid)),this.defaultOptions.mermaid},setKatexOptions:function(e){return this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.katex=Object.assign(this.defaultOptions.katex||{},e),this.converter&&this.addAsyncExtension("showdown-katex",Oe(this.defaultOptions.katex)),this.defaultOptions.katex},setVegaOptions:function(e){this.initDefaultOptions(),"object"===a(e)&&e||(e={}),this.defaultOptions.vega=Object.assign(this.defaultOptions.vega||{},e);var t=this.defaultOptions.vega.theme;t&&-1===Bo.indexOf(t)&&(this.defaultOptions.vega.theme="vox");var n=this.defaultOptions.vega.renderer;return n&&-1===Do.indexOf(n)&&(this.defaultOptions.vega.renderer="canvas"),this.converter&&this.addAsyncExtension("showdown-vega",ie(this.defaultOptions.vega)),this.defaultOptions.vega},init:function(e){if(this.converter){var t={};if("object"===a(t="boolean"==typeof e&&e?{option:!0,extension:!0}:e)){if(t.hasOwnProperty("option")&&t.option){var n=zo(this.defaultOptions&&this.defaultOptions.showdown||{});this.addOptions(n)}t.hasOwnProperty("extension")&&t.extension&&(this.addAsyncExtension("showdown-plantuml",Fa(this.defaultOptions.plantuml)),this.addAsyncExtension("showdown-mermaid",Je(this.defaultOptions.mermaid)),this.addAsyncExtension("showdown-vega",ie(this.defaultOptions.vega)))}}else{var i=zo(this.defaultOptions&&this.defaultOptions.showdown||{}),o=function(e){var t=r({"showdown-toc":H,"showdown-align":ae,"showdown-footnotes":bo,"showdown-container":yo,"showdown-sequence":uo},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=[];for(var i in t)t.hasOwnProperty(i)&&(u.extension(i,t[i]),n.push(i));return n}(this.defaultOptions,this.defaultExtensions),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e&&e.mermaid||{},i=e&&e.plantuml||{},a=e&&e.katex||{},o=e&&e.vega||{},s=function(e,t){var n=null;try{n=u.extension(e)}catch(e){}return n||t},l=r(r({"showdown-toc":s("showdown-toc",H),"showdown-plantuml":Fa(i),"showdown-mermaid":Je(n),"showdown-katex":Oe(a),"showdown-flowchart":Co,"showdown-viz":J,"showdown-vega":ie(o),"showdown-wavedrom":wo,"showdown-railroad":Qa,"showdown-abc":B,"showdown-echarts":Ue,"showdown-sequence":s("showdown-sequence",uo)},t),{},{"showdow-css":U}),c=[];for(var d in l)l.hasOwnProperty(d)&&(u.asyncExtension(d,l[d]),c.push(d));return c}(this.defaultOptions,this.defaultAsyncExtensions);this.setFlavor(i.flavor),this.converter=new u.Converter({extensions:o}).initConvertExtObj(i.flavor,s),this.addOptions(i)}return this},makeHtml:function(e,t){var n="";if("object"===a(e)){if("string"==typeof e.content)if("string"==typeof e.type)if("zip"===e.type)n=this.zDecode(e.content);else n=this.markdownDecodeFilter(e)||e.content;else n=e.content}else n=e;if(this.converter&&n){return this.converter.asyncMakeHtml(n,function(e){return new Promise(function(n){return e.cssLinks&&Array.isArray(e.cssLinks)&&(e.cssTypes={css:{}},e.cssLinks.forEach(function(t){return"css-abc"===t.id?(e.cssTypes.hasAbc=!0,void(e.cssTypes.css.abc=t.link)):"css-katex"===t.id?(e.cssTypes.hasKatex=!0,void(e.cssTypes.css.katex=t.link)):"css-railroad"===t.id?(e.cssTypes.hasRailroad=!0,void(e.cssTypes.css.railroad=t.link)):void("css-sequence"===t.id&&(e.cssTypes.hasSequence=!0,e.cssTypes.css.sequence=t.link))}),"function"==typeof t&&t&&t(e.cssTypes)),n(e)})}).then(function(e){if(n="<div class='showdowns'>".concat(e.html,"</div>"),e.extras){var t=e.extras;u.helper.isArray(t)||(t=[t]);for(var r=0;t.length>r;++r)"string"==typeof t[r]&&(n+=t[r])}return{html:n,scripts:e.scripts,cssLinks:e.cssLinks}})}return Promise.reject(n?"Converter is invaild.":"Content is empty.")},completedHtml:function(e,t){return u.helper.isArray(e)||(e=[e]),new Promise(function(n,r){"string"==typeof t&&(t=document.querySelector(t));for(var i,a=function(){var n=e[o];if(n.outer){u.helper.isArray(n.outer)||(n.outer=[n.outer]);for(var i=n.outer[0],a=To(i.name,i.src),s=1;n.outer.length>s;++s)i=n.outer[s],a=a.then(function(){return To(i.name,i.src)});return Oo(n,t,a),0}if(!Oo(n,t))return{v:r("Args is invaild!")}},o=0;e.length>o;++o)if(0!==(i=a())&&i)return i.v;n(!0)})},zDecode:function(e){return""+Ma.inflateRawSync(ht.from(e,"base64"))},zEncode:function(e){return Ma.deflateRawSync(e,{level:9}).toString("base64")}};return qo});
|
|
7
7
|
//# sourceMappingURL=showdowns.min.js.map
|